@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../src/resources/conversation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../src/resources/conversation.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
-
};
|
|
17
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./conversation/index.js"), exports);
|
|
19
6
|
//# sourceMappingURL=conversation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.js","sourceRoot":"","sources":["../src/resources/conversation.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"conversation.js","sourceRoot":"","sources":["../src/resources/conversation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kEAAqC"}
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ProfileAPI from "./profile.mjs";
|
|
3
|
+
import { Profile, ProfileSyncParams, ProfileSyncResponse } from "./profile.mjs";
|
|
4
|
+
import * as RemoteAPI from "./remote.mjs";
|
|
5
|
+
import { Remote, RemoteGetResponse, RemoteUpdateParams, RemoteUpdateResponse } from "./remote.mjs";
|
|
6
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
7
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
8
|
+
export declare class Customer extends APIResource {
|
|
9
|
+
remote: RemoteAPI.Remote;
|
|
10
|
+
profile: ProfileAPI.Profile;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const customer = await client.customer.create();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body: CustomerCreateParams, options?: RequestOptions): APIPromise<CustomerCreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const customer = await client.customer.update(
|
|
22
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
update(id: string, body: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerUpdateResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const customer = await client.customer.get();
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
get(query?: CustomerGetParams | null | undefined, options?: RequestOptions): APIPromise<CustomerGetResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const response = await client.customer.token();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
token(body: CustomerTokenParams, options?: RequestOptions): APIPromise<string>;
|
|
41
|
+
}
|
|
42
|
+
export interface CustomerCreateResponse {
|
|
43
|
+
/**
|
|
44
|
+
* The id of the customer in the subscriber system
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
* The timestamp of the when the customer was created in our system
|
|
49
|
+
*/
|
|
50
|
+
createdAt: string;
|
|
51
|
+
/**
|
|
52
|
+
* The URL of the customer avatar
|
|
53
|
+
*/
|
|
54
|
+
avatarUrl?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The display name of the customer
|
|
57
|
+
*/
|
|
58
|
+
displayName?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The email of the customer
|
|
61
|
+
*/
|
|
62
|
+
email?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The first name of the customer
|
|
65
|
+
*/
|
|
66
|
+
firstName?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The last name of the customer
|
|
69
|
+
*/
|
|
70
|
+
lastName?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The phone number of the customer (in international / E.164 format)
|
|
73
|
+
*/
|
|
74
|
+
phoneNumber?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
77
|
+
* stable and unique
|
|
78
|
+
*/
|
|
79
|
+
remoteId?: string;
|
|
80
|
+
/**
|
|
81
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
82
|
+
* example a cookie
|
|
83
|
+
*/
|
|
84
|
+
subscriberCustomerId?: string;
|
|
85
|
+
/**
|
|
86
|
+
* A token that can be used to authenticate the customer in the your system, like a
|
|
87
|
+
* JWT
|
|
88
|
+
*/
|
|
89
|
+
subscriberToken?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface CustomerUpdateResponse {
|
|
92
|
+
/**
|
|
93
|
+
* The id of the customer in the subscriber system
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* The timestamp of the when the customer was created in our system
|
|
98
|
+
*/
|
|
99
|
+
createdAt: string;
|
|
100
|
+
/**
|
|
101
|
+
* The URL of the customer avatar
|
|
102
|
+
*/
|
|
103
|
+
avatarUrl?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The display name of the customer
|
|
106
|
+
*/
|
|
107
|
+
displayName?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The email of the customer
|
|
110
|
+
*/
|
|
111
|
+
email?: string;
|
|
112
|
+
/**
|
|
113
|
+
* The first name of the customer
|
|
114
|
+
*/
|
|
115
|
+
firstName?: string;
|
|
116
|
+
/**
|
|
117
|
+
* The last name of the customer
|
|
118
|
+
*/
|
|
119
|
+
lastName?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The phone number of the customer (in international / E.164 format)
|
|
122
|
+
*/
|
|
123
|
+
phoneNumber?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
126
|
+
* stable and unique
|
|
127
|
+
*/
|
|
128
|
+
remoteId?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
131
|
+
* example a cookie
|
|
132
|
+
*/
|
|
133
|
+
subscriberCustomerId?: string;
|
|
134
|
+
/**
|
|
135
|
+
* A token that can be used to authenticate the customer in the your system, like a
|
|
136
|
+
* JWT
|
|
137
|
+
*/
|
|
138
|
+
subscriberToken?: string;
|
|
139
|
+
}
|
|
140
|
+
export interface CustomerGetResponse {
|
|
141
|
+
/**
|
|
142
|
+
* The id of the customer in the subscriber system
|
|
143
|
+
*/
|
|
144
|
+
id: string;
|
|
145
|
+
/**
|
|
146
|
+
* The timestamp of the when the customer was created in our system
|
|
147
|
+
*/
|
|
148
|
+
createdAt: string;
|
|
149
|
+
/**
|
|
150
|
+
* The URL of the customer avatar
|
|
151
|
+
*/
|
|
152
|
+
avatarUrl?: string;
|
|
153
|
+
/**
|
|
154
|
+
* The display name of the customer
|
|
155
|
+
*/
|
|
156
|
+
displayName?: string;
|
|
157
|
+
/**
|
|
158
|
+
* The email of the customer
|
|
159
|
+
*/
|
|
160
|
+
email?: string;
|
|
161
|
+
/**
|
|
162
|
+
* The first name of the customer
|
|
163
|
+
*/
|
|
164
|
+
firstName?: string;
|
|
165
|
+
/**
|
|
166
|
+
* The last name of the customer
|
|
167
|
+
*/
|
|
168
|
+
lastName?: string;
|
|
169
|
+
/**
|
|
170
|
+
* The phone number of the customer (in international / E.164 format)
|
|
171
|
+
*/
|
|
172
|
+
phoneNumber?: string;
|
|
173
|
+
/**
|
|
174
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
175
|
+
* stable and unique
|
|
176
|
+
*/
|
|
177
|
+
remoteId?: string;
|
|
178
|
+
/**
|
|
179
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
180
|
+
* example a cookie
|
|
181
|
+
*/
|
|
182
|
+
subscriberCustomerId?: string;
|
|
183
|
+
/**
|
|
184
|
+
* A token that can be used to authenticate the customer in the your system, like a
|
|
185
|
+
* JWT
|
|
186
|
+
*/
|
|
187
|
+
subscriberToken?: string;
|
|
188
|
+
}
|
|
189
|
+
export type CustomerTokenResponse = string;
|
|
190
|
+
export interface CustomerCreateParams {
|
|
191
|
+
/**
|
|
192
|
+
* The URL of the customer avatar
|
|
193
|
+
*/
|
|
194
|
+
avatarUrl?: string;
|
|
195
|
+
/**
|
|
196
|
+
* The display name of the customer
|
|
197
|
+
*/
|
|
198
|
+
displayName?: string;
|
|
199
|
+
/**
|
|
200
|
+
* The email of the customer
|
|
201
|
+
*/
|
|
202
|
+
email?: string;
|
|
203
|
+
/**
|
|
204
|
+
* The first name of the customer
|
|
205
|
+
*/
|
|
206
|
+
firstName?: string;
|
|
207
|
+
/**
|
|
208
|
+
* The last name of the customer
|
|
209
|
+
*/
|
|
210
|
+
lastName?: string;
|
|
211
|
+
/**
|
|
212
|
+
* The phone number of the customer (in international / E.164 format)
|
|
213
|
+
*/
|
|
214
|
+
phoneNumber?: string;
|
|
215
|
+
/**
|
|
216
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
217
|
+
* stable and unique
|
|
218
|
+
*/
|
|
219
|
+
remoteId?: string;
|
|
220
|
+
/**
|
|
221
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
222
|
+
* example a cookie
|
|
223
|
+
*/
|
|
224
|
+
subscriberCustomerId?: string;
|
|
225
|
+
/**
|
|
226
|
+
* A token that can be used to authenticate the customer in the your system, like a
|
|
227
|
+
* JWT
|
|
228
|
+
*/
|
|
229
|
+
subscriberToken?: string;
|
|
230
|
+
}
|
|
231
|
+
export interface CustomerUpdateParams {
|
|
232
|
+
/**
|
|
233
|
+
* The URL of the customer avatar
|
|
234
|
+
*/
|
|
235
|
+
avatarUrl?: string;
|
|
236
|
+
/**
|
|
237
|
+
* The display name of the customer
|
|
238
|
+
*/
|
|
239
|
+
displayName?: string;
|
|
240
|
+
/**
|
|
241
|
+
* The email of the customer
|
|
242
|
+
*/
|
|
243
|
+
email?: string;
|
|
244
|
+
/**
|
|
245
|
+
* The first name of the customer
|
|
246
|
+
*/
|
|
247
|
+
firstName?: string;
|
|
248
|
+
/**
|
|
249
|
+
* The last name of the customer
|
|
250
|
+
*/
|
|
251
|
+
lastName?: string;
|
|
252
|
+
/**
|
|
253
|
+
* The phone number of the customer (in international / E.164 format)
|
|
254
|
+
*/
|
|
255
|
+
phoneNumber?: string;
|
|
256
|
+
/**
|
|
257
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
258
|
+
* stable and unique
|
|
259
|
+
*/
|
|
260
|
+
remoteId?: string;
|
|
261
|
+
/**
|
|
262
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
263
|
+
* example a cookie
|
|
264
|
+
*/
|
|
265
|
+
subscriberCustomerId?: string;
|
|
266
|
+
/**
|
|
267
|
+
* A token that can be used to authenticate the customer in the your system, like a
|
|
268
|
+
* JWT
|
|
269
|
+
*/
|
|
270
|
+
subscriberToken?: string;
|
|
271
|
+
}
|
|
272
|
+
export interface CustomerGetParams {
|
|
273
|
+
/**
|
|
274
|
+
* The phone number of the customer
|
|
275
|
+
*/
|
|
276
|
+
phoneNumber?: string;
|
|
277
|
+
/**
|
|
278
|
+
* The remote id of the customer in your system
|
|
279
|
+
*/
|
|
280
|
+
remoteId?: string;
|
|
281
|
+
}
|
|
282
|
+
export interface CustomerTokenParams {
|
|
283
|
+
/**
|
|
284
|
+
* The URL of the customer avatar
|
|
285
|
+
*/
|
|
286
|
+
avatarUrl?: string;
|
|
287
|
+
/**
|
|
288
|
+
* The display name of the customer
|
|
289
|
+
*/
|
|
290
|
+
displayName?: string;
|
|
291
|
+
/**
|
|
292
|
+
* The email of the customer
|
|
293
|
+
*/
|
|
294
|
+
email?: string;
|
|
295
|
+
/**
|
|
296
|
+
* The expiry of the conversation initialization token, if not provided it will be
|
|
297
|
+
* set to 1 hour
|
|
298
|
+
*/
|
|
299
|
+
expiry?: string;
|
|
300
|
+
/**
|
|
301
|
+
* The first name of the customer
|
|
302
|
+
*/
|
|
303
|
+
firstName?: string;
|
|
304
|
+
/**
|
|
305
|
+
* The last name of the customer
|
|
306
|
+
*/
|
|
307
|
+
lastName?: string;
|
|
308
|
+
/**
|
|
309
|
+
* The phone number of the customer (in international / E.164 format)
|
|
310
|
+
*/
|
|
311
|
+
phoneNumber?: string;
|
|
312
|
+
/**
|
|
313
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
314
|
+
* stable and unique
|
|
315
|
+
*/
|
|
316
|
+
remoteId?: string;
|
|
317
|
+
/**
|
|
318
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
319
|
+
* example a cookie
|
|
320
|
+
*/
|
|
321
|
+
subscriberCustomerId?: string;
|
|
322
|
+
/**
|
|
323
|
+
* A token that can be used to authenticate the customer in the your system, like a
|
|
324
|
+
* JWT
|
|
325
|
+
*/
|
|
326
|
+
subscriberToken?: string;
|
|
327
|
+
}
|
|
328
|
+
export declare namespace Customer {
|
|
329
|
+
export { 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, };
|
|
330
|
+
export { Remote as Remote, type RemoteUpdateResponse as RemoteUpdateResponse, type RemoteGetResponse as RemoteGetResponse, type RemoteUpdateParams as RemoteUpdateParams, };
|
|
331
|
+
export { Profile as Profile, type ProfileSyncResponse as ProfileSyncResponse, type ProfileSyncParams as ProfileSyncParams, };
|
|
332
|
+
}
|
|
333
|
+
//# sourceMappingURL=customer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.d.mts","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE;OACnD,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OACvE,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG;;;;;;;OAOG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;OAKG;IACH,GAAG,CACD,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG/E;AAED,MA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EACL,MAAM,IAAI,MAAM,EAChB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
3
2
|
import * as ProfileAPI from "./profile.js";
|
|
4
3
|
import { Profile, ProfileSyncParams, ProfileSyncResponse } from "./profile.js";
|
|
5
4
|
import * as RemoteAPI from "./remote.js";
|
|
6
5
|
import { Remote, RemoteGetResponse, RemoteUpdateParams, RemoteUpdateResponse } from "./remote.js";
|
|
6
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
7
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
8
|
export declare class Customer extends APIResource {
|
|
8
9
|
remote: RemoteAPI.Remote;
|
|
9
10
|
profile: ProfileAPI.Profile;
|
|
@@ -13,7 +14,7 @@ export declare class Customer extends APIResource {
|
|
|
13
14
|
* const customer = await client.customer.create();
|
|
14
15
|
* ```
|
|
15
16
|
*/
|
|
16
|
-
create(body: CustomerCreateParams, options?:
|
|
17
|
+
create(body: CustomerCreateParams, options?: RequestOptions): APIPromise<CustomerCreateResponse>;
|
|
17
18
|
/**
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
@@ -22,23 +23,21 @@ export declare class Customer extends APIResource {
|
|
|
22
23
|
* );
|
|
23
24
|
* ```
|
|
24
25
|
*/
|
|
25
|
-
update(id: string, body: CustomerUpdateParams, options?:
|
|
26
|
+
update(id: string, body: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerUpdateResponse>;
|
|
26
27
|
/**
|
|
27
28
|
* @example
|
|
28
29
|
* ```ts
|
|
29
|
-
* const customer = await client.customer.get(
|
|
30
|
-
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
31
|
-
* );
|
|
30
|
+
* const customer = await client.customer.get();
|
|
32
31
|
* ```
|
|
33
32
|
*/
|
|
34
|
-
get(
|
|
33
|
+
get(query?: CustomerGetParams | null | undefined, options?: RequestOptions): APIPromise<CustomerGetResponse>;
|
|
35
34
|
/**
|
|
36
35
|
* @example
|
|
37
36
|
* ```ts
|
|
38
37
|
* const response = await client.customer.token();
|
|
39
38
|
* ```
|
|
40
39
|
*/
|
|
41
|
-
token(body: CustomerTokenParams, options?:
|
|
40
|
+
token(body: CustomerTokenParams, options?: RequestOptions): APIPromise<string>;
|
|
42
41
|
}
|
|
43
42
|
export interface CustomerCreateResponse {
|
|
44
43
|
/**
|
|
@@ -69,6 +68,10 @@ export interface CustomerCreateResponse {
|
|
|
69
68
|
* The last name of the customer
|
|
70
69
|
*/
|
|
71
70
|
lastName?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The phone number of the customer (in international / E.164 format)
|
|
73
|
+
*/
|
|
74
|
+
phoneNumber?: string;
|
|
72
75
|
/**
|
|
73
76
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
74
77
|
* stable and unique
|
|
@@ -114,6 +117,10 @@ export interface CustomerUpdateResponse {
|
|
|
114
117
|
* The last name of the customer
|
|
115
118
|
*/
|
|
116
119
|
lastName?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The phone number of the customer (in international / E.164 format)
|
|
122
|
+
*/
|
|
123
|
+
phoneNumber?: string;
|
|
117
124
|
/**
|
|
118
125
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
119
126
|
* stable and unique
|
|
@@ -159,6 +166,10 @@ export interface CustomerGetResponse {
|
|
|
159
166
|
* The last name of the customer
|
|
160
167
|
*/
|
|
161
168
|
lastName?: string;
|
|
169
|
+
/**
|
|
170
|
+
* The phone number of the customer (in international / E.164 format)
|
|
171
|
+
*/
|
|
172
|
+
phoneNumber?: string;
|
|
162
173
|
/**
|
|
163
174
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
164
175
|
* stable and unique
|
|
@@ -197,6 +208,10 @@ export interface CustomerCreateParams {
|
|
|
197
208
|
* The last name of the customer
|
|
198
209
|
*/
|
|
199
210
|
lastName?: string;
|
|
211
|
+
/**
|
|
212
|
+
* The phone number of the customer (in international / E.164 format)
|
|
213
|
+
*/
|
|
214
|
+
phoneNumber?: string;
|
|
200
215
|
/**
|
|
201
216
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
202
217
|
* stable and unique
|
|
@@ -234,6 +249,10 @@ export interface CustomerUpdateParams {
|
|
|
234
249
|
* The last name of the customer
|
|
235
250
|
*/
|
|
236
251
|
lastName?: string;
|
|
252
|
+
/**
|
|
253
|
+
* The phone number of the customer (in international / E.164 format)
|
|
254
|
+
*/
|
|
255
|
+
phoneNumber?: string;
|
|
237
256
|
/**
|
|
238
257
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
239
258
|
* stable and unique
|
|
@@ -250,6 +269,16 @@ export interface CustomerUpdateParams {
|
|
|
250
269
|
*/
|
|
251
270
|
subscriberToken?: string;
|
|
252
271
|
}
|
|
272
|
+
export interface CustomerGetParams {
|
|
273
|
+
/**
|
|
274
|
+
* The phone number of the customer
|
|
275
|
+
*/
|
|
276
|
+
phoneNumber?: string;
|
|
277
|
+
/**
|
|
278
|
+
* The remote id of the customer in your system
|
|
279
|
+
*/
|
|
280
|
+
remoteId?: string;
|
|
281
|
+
}
|
|
253
282
|
export interface CustomerTokenParams {
|
|
254
283
|
/**
|
|
255
284
|
* The URL of the customer avatar
|
|
@@ -276,6 +305,10 @@ export interface CustomerTokenParams {
|
|
|
276
305
|
* The last name of the customer
|
|
277
306
|
*/
|
|
278
307
|
lastName?: string;
|
|
308
|
+
/**
|
|
309
|
+
* The phone number of the customer (in international / E.164 format)
|
|
310
|
+
*/
|
|
311
|
+
phoneNumber?: string;
|
|
279
312
|
/**
|
|
280
313
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
281
314
|
* stable and unique
|
|
@@ -293,7 +326,7 @@ export interface CustomerTokenParams {
|
|
|
293
326
|
subscriberToken?: string;
|
|
294
327
|
}
|
|
295
328
|
export declare namespace Customer {
|
|
296
|
-
export { 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 CustomerTokenParams as CustomerTokenParams, };
|
|
329
|
+
export { 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, };
|
|
297
330
|
export { Remote as Remote, type RemoteUpdateResponse as RemoteUpdateResponse, type RemoteGetResponse as RemoteGetResponse, type RemoteUpdateParams as RemoteUpdateParams, };
|
|
298
331
|
export { Profile as Profile, type ProfileSyncResponse as ProfileSyncResponse, type ProfileSyncParams as ProfileSyncParams, };
|
|
299
332
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE;OACnD,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OACvE,EAAE,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AC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,35 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
4
|
exports.Customer = void 0;
|
|
28
|
-
const
|
|
29
|
-
const
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ProfileAPI = tslib_1.__importStar(require("./profile.js"));
|
|
30
8
|
const profile_1 = require("./profile.js");
|
|
31
|
-
const RemoteAPI = __importStar(require("./remote.js"));
|
|
9
|
+
const RemoteAPI = tslib_1.__importStar(require("./remote.js"));
|
|
32
10
|
const remote_1 = require("./remote.js");
|
|
11
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
33
12
|
class Customer extends resource_1.APIResource {
|
|
34
13
|
constructor() {
|
|
35
14
|
super(...arguments);
|
|
@@ -54,18 +33,16 @@ class Customer extends resource_1.APIResource {
|
|
|
54
33
|
* ```
|
|
55
34
|
*/
|
|
56
35
|
update(id, body, options) {
|
|
57
|
-
return this._client.put(`/v1/customer/${id}`, { body, ...options });
|
|
36
|
+
return this._client.put((0, path_1.path) `/v1/customer/${id}`, { body, ...options });
|
|
58
37
|
}
|
|
59
38
|
/**
|
|
60
39
|
* @example
|
|
61
40
|
* ```ts
|
|
62
|
-
* const customer = await client.customer.get(
|
|
63
|
-
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
64
|
-
* );
|
|
41
|
+
* const customer = await client.customer.get();
|
|
65
42
|
* ```
|
|
66
43
|
*/
|
|
67
|
-
get(
|
|
68
|
-
return this._client.get(
|
|
44
|
+
get(query = {}, options) {
|
|
45
|
+
return this._client.get('/v1/customer', { query, ...options });
|
|
69
46
|
}
|
|
70
47
|
/**
|
|
71
48
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,iEAAwC;AACxC,0CAA4E;AAC5E,+DAAsC;AACtC,wCAA+F;AAG/F,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkDrE,CAAC;IAhDC;;;;;OAKG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAyB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AApDD,4BAoDC;AAgWD,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC;AACzB,QAAQ,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as ProfileAPI from "./profile.mjs";
|
|
4
4
|
import { Profile } from "./profile.mjs";
|
|
5
5
|
import * as RemoteAPI from "./remote.mjs";
|
|
6
6
|
import { Remote } from "./remote.mjs";
|
|
7
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
7
8
|
export class Customer extends APIResource {
|
|
8
9
|
constructor() {
|
|
9
10
|
super(...arguments);
|
|
@@ -28,18 +29,16 @@ export class Customer extends APIResource {
|
|
|
28
29
|
* ```
|
|
29
30
|
*/
|
|
30
31
|
update(id, body, options) {
|
|
31
|
-
return this._client.put(`/v1/customer/${id}`, { body, ...options });
|
|
32
|
+
return this._client.put(path `/v1/customer/${id}`, { body, ...options });
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
35
|
* @example
|
|
35
36
|
* ```ts
|
|
36
|
-
* const customer = await client.customer.get(
|
|
37
|
-
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
38
|
-
* );
|
|
37
|
+
* const customer = await client.customer.get();
|
|
39
38
|
* ```
|
|
40
39
|
*/
|
|
41
|
-
get(
|
|
42
|
-
return this._client.get(
|
|
40
|
+
get(query = {}, options) {
|
|
41
|
+
return this._client.get('/v1/customer', { query, ...options });
|
|
43
42
|
}
|
|
44
43
|
/**
|
|
45
44
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.mjs","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"customer.mjs","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAA0C;OACnD,KAAK,SAAS;OACd,EAAE,MAAM,EAA+D;OAGvE,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkDrE,CAAC;IAhDC;;;;;OAKG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAyB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAgWD,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Customer, type CustomerCreateResponse, type CustomerUpdateResponse, type CustomerGetResponse, type CustomerTokenResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerGetParams, type CustomerTokenParams, } from "./customer.mjs";
|
|
2
|
+
export { Profile, type ProfileSyncResponse, type ProfileSyncParams } from "./profile.mjs";
|
|
3
|
+
export { Remote, type RemoteUpdateResponse, type RemoteGetResponse, type RemoteUpdateParams } from "./remote.mjs";
|
|
4
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/customer/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB;OACM,EAAE,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC7D,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Customer, type CustomerCreateResponse, type CustomerUpdateResponse, type CustomerGetResponse, type CustomerTokenResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerTokenParams, } from "./customer.js";
|
|
1
|
+
export { Customer, type CustomerCreateResponse, type CustomerUpdateResponse, type CustomerGetResponse, type CustomerTokenResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerGetParams, type CustomerTokenParams, } from "./customer.js";
|
|
2
2
|
export { Profile, type ProfileSyncResponse, type ProfileSyncParams } from "./profile.js";
|
|
3
3
|
export { Remote, type RemoteUpdateResponse, type RemoteGetResponse, type RemoteUpdateParams } from "./remote.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|