@naturalpay/sdk 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +119 -0
- package/LICENSE +7 -0
- package/README.md +340 -26
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +255 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +255 -0
- package/client.d.ts.map +1 -0
- package/client.js +548 -0
- package/client.js.map +1 -0
- package/client.mjs +544 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +87 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +81 -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/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.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 +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/lib/envelope.d.mts +4 -0
- package/lib/envelope.d.mts.map +1 -0
- package/lib/envelope.d.ts +4 -0
- package/lib/envelope.d.ts.map +1 -0
- package/lib/envelope.js +43 -0
- package/lib/envelope.js.map +1 -0
- package/lib/envelope.mjs +39 -0
- package/lib/envelope.mjs.map +1 -0
- package/package.json +142 -76
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/agents.d.mts +1392 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +1392 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +192 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +188 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/api-keys.d.mts +539 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +539 -0
- package/resources/api-keys.d.ts.map +1 -0
- package/resources/api-keys.js +100 -0
- package/resources/api-keys.js.map +1 -0
- package/resources/api-keys.mjs +96 -0
- package/resources/api-keys.mjs.map +1 -0
- package/resources/counterparties.d.mts +139 -0
- package/resources/counterparties.d.mts.map +1 -0
- package/resources/counterparties.d.ts +139 -0
- package/resources/counterparties.d.ts.map +1 -0
- package/resources/counterparties.js +32 -0
- package/resources/counterparties.js.map +1 -0
- package/resources/counterparties.mjs +28 -0
- package/resources/counterparties.mjs.map +1 -0
- package/resources/customers.d.mts +272 -0
- package/resources/customers.d.mts.map +1 -0
- package/resources/customers.d.ts +272 -0
- package/resources/customers.d.ts.map +1 -0
- package/resources/customers.js +48 -0
- package/resources/customers.js.map +1 -0
- package/resources/customers.mjs +44 -0
- package/resources/customers.mjs.map +1 -0
- package/resources/delegations.d.mts +458 -0
- package/resources/delegations.d.mts.map +1 -0
- package/resources/delegations.d.ts +458 -0
- package/resources/delegations.d.ts.map +1 -0
- package/resources/delegations.js +47 -0
- package/resources/delegations.js.map +1 -0
- package/resources/delegations.mjs +43 -0
- package/resources/delegations.mjs.map +1 -0
- package/resources/index.d.mts +12 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +12 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +27 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +13 -0
- package/resources/index.mjs.map +1 -0
- package/resources/invitations.d.mts +304 -0
- package/resources/invitations.d.mts.map +1 -0
- package/resources/invitations.d.ts +304 -0
- package/resources/invitations.d.ts.map +1 -0
- package/resources/invitations.js +85 -0
- package/resources/invitations.js.map +1 -0
- package/resources/invitations.mjs +81 -0
- package/resources/invitations.mjs.map +1 -0
- package/resources/parties.d.mts +364 -0
- package/resources/parties.d.mts.map +1 -0
- package/resources/parties.d.ts +364 -0
- package/resources/parties.d.ts.map +1 -0
- package/resources/parties.js +78 -0
- package/resources/parties.js.map +1 -0
- package/resources/parties.mjs +74 -0
- package/resources/parties.mjs.map +1 -0
- package/resources/payment-requests.d.mts +442 -0
- package/resources/payment-requests.d.mts.map +1 -0
- package/resources/payment-requests.d.ts +442 -0
- package/resources/payment-requests.d.ts.map +1 -0
- package/resources/payment-requests.js +87 -0
- package/resources/payment-requests.js.map +1 -0
- package/resources/payment-requests.mjs +83 -0
- package/resources/payment-requests.mjs.map +1 -0
- package/resources/payments.d.mts +174 -0
- package/resources/payments.d.mts.map +1 -0
- package/resources/payments.d.ts +174 -0
- package/resources/payments.d.ts.map +1 -0
- package/resources/payments.js +40 -0
- package/resources/payments.js.map +1 -0
- package/resources/payments.mjs +36 -0
- package/resources/payments.mjs.map +1 -0
- package/resources/transactions.d.mts +478 -0
- package/resources/transactions.d.mts.map +1 -0
- package/resources/transactions.d.ts +478 -0
- package/resources/transactions.d.ts.map +1 -0
- package/resources/transactions.js +48 -0
- package/resources/transactions.js.map +1 -0
- package/resources/transactions.mjs +44 -0
- package/resources/transactions.mjs.map +1 -0
- package/resources/wallet.d.mts +628 -0
- package/resources/wallet.d.mts.map +1 -0
- package/resources/wallet.d.ts +628 -0
- package/resources/wallet.d.ts.map +1 -0
- package/resources/wallet.js +161 -0
- package/resources/wallet.js.map +1 -0
- package/resources/wallet.mjs +157 -0
- package/resources/wallet.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1020 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +93 -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 +128 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +7 -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 +9 -0
- package/src/lib/.keep +4 -0
- package/src/lib/envelope.ts +32 -0
- package/src/resource.ts +2 -0
- package/src/resources/agents.ts +1785 -0
- package/src/resources/api-keys.ts +743 -0
- package/src/resources/counterparties.ts +187 -0
- package/src/resources/customers.ts +365 -0
- package/src/resources/delegations.ts +580 -0
- package/src/resources/index.ts +95 -0
- package/src/resources/invitations.ts +414 -0
- package/src/resources/parties.ts +493 -0
- package/src/resources/payment-requests.ts +601 -0
- package/src/resources/payments.ts +228 -0
- package/src/resources/transactions.ts +610 -0
- package/src/resources/wallet.ts +864 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/dist/index.cjs +0 -1737
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -929
- package/dist/index.d.ts +0 -929
- package/dist/index.js +0 -1705
- package/dist/index.js.map +0 -1
- package/dist/mcp/cli.cjs +0 -166
- package/dist/mcp/cli.cjs.map +0 -1
- package/dist/mcp/cli.d.cts +0 -1
- package/dist/mcp/cli.d.ts +0 -1
- package/dist/mcp/cli.js +0 -164
- package/dist/mcp/cli.js.map +0 -1
- package/dist/mcp/index.cjs +0 -8
- package/dist/mcp/index.cjs.map +0 -1
- package/dist/mcp/index.d.cts +0 -9
- package/dist/mcp/index.d.ts +0 -9
- package/dist/mcp/index.js +0 -6
- package/dist/mcp/index.js.map +0 -1
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Customer management
|
|
6
|
+
*/
|
|
7
|
+
export declare class Customers extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List active customers you can operate on behalf of.
|
|
10
|
+
*/
|
|
11
|
+
list(params?: CustomerListParams | null | undefined, options?: RequestOptions): APIPromise<CustomerListResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* List the pending customer invitations you've sent — agent invitations grouped by
|
|
14
|
+
* recipient.
|
|
15
|
+
*/
|
|
16
|
+
listInvitations(params?: CustomerListInvitationsParams | null | undefined, options?: RequestOptions): APIPromise<CustomerListInvitationsResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface CustomerListResponse {
|
|
19
|
+
data: Array<CustomerListResponse.Data>;
|
|
20
|
+
meta: CustomerListResponse.Meta;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace CustomerListResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Customer resource for an active customer (type='customer', id=pty_xxx).
|
|
25
|
+
*/
|
|
26
|
+
interface Data {
|
|
27
|
+
/**
|
|
28
|
+
* Customer party handle (pty_xxx)
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* Resource attributes
|
|
33
|
+
*/
|
|
34
|
+
attributes: Data.Attributes;
|
|
35
|
+
/**
|
|
36
|
+
* Resource type
|
|
37
|
+
*/
|
|
38
|
+
type: string;
|
|
39
|
+
}
|
|
40
|
+
namespace Data {
|
|
41
|
+
/**
|
|
42
|
+
* Resource attributes
|
|
43
|
+
*/
|
|
44
|
+
interface Attributes {
|
|
45
|
+
/**
|
|
46
|
+
* When the delegation was created
|
|
47
|
+
*/
|
|
48
|
+
createdAt: string;
|
|
49
|
+
/**
|
|
50
|
+
* Customer email, if known
|
|
51
|
+
*/
|
|
52
|
+
email: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Party info
|
|
55
|
+
*/
|
|
56
|
+
party: Attributes.Party;
|
|
57
|
+
/**
|
|
58
|
+
* Granted permissions
|
|
59
|
+
*/
|
|
60
|
+
permissions: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Status (ACTIVE, etc.)
|
|
63
|
+
*/
|
|
64
|
+
status: string;
|
|
65
|
+
/**
|
|
66
|
+
* Why walletAvailableMinor may be null: "granted" balance is fresh; "denied"
|
|
67
|
+
* caller lacks wallets.read; "noWallet" party has not provisioned a wallet.
|
|
68
|
+
*/
|
|
69
|
+
walletAccess: 'granted' | 'denied' | 'noWallet';
|
|
70
|
+
/**
|
|
71
|
+
* Available wallet balance in cents. Null when access is denied or no wallet
|
|
72
|
+
* exists — see walletAccess.
|
|
73
|
+
*/
|
|
74
|
+
walletAvailableMinor: number | null;
|
|
75
|
+
}
|
|
76
|
+
namespace Attributes {
|
|
77
|
+
/**
|
|
78
|
+
* Party info
|
|
79
|
+
*/
|
|
80
|
+
interface Party {
|
|
81
|
+
/**
|
|
82
|
+
* Party handle (pty_xxx)
|
|
83
|
+
*/
|
|
84
|
+
id: string;
|
|
85
|
+
/**
|
|
86
|
+
* Primary email
|
|
87
|
+
*/
|
|
88
|
+
email: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Display name, falling back to legal name when display name is unset
|
|
91
|
+
*/
|
|
92
|
+
name: string;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
interface Meta {
|
|
97
|
+
pagination: Meta.Pagination;
|
|
98
|
+
}
|
|
99
|
+
namespace Meta {
|
|
100
|
+
interface Pagination {
|
|
101
|
+
hasMore: boolean;
|
|
102
|
+
nextCursor: string | null;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export interface CustomerListInvitationsResponse {
|
|
107
|
+
data: Array<CustomerListInvitationsResponse.Data>;
|
|
108
|
+
meta: CustomerListInvitationsResponse.Meta;
|
|
109
|
+
}
|
|
110
|
+
export declare namespace CustomerListInvitationsResponse {
|
|
111
|
+
/**
|
|
112
|
+
* A pending customer invitation (type='customerInvitation', id=recipient email) —
|
|
113
|
+
* a grouping of agent invitations sent to one recipient.
|
|
114
|
+
*/
|
|
115
|
+
interface Data {
|
|
116
|
+
/**
|
|
117
|
+
* Recipient email — the grouping key for the pending invitation. Stays the id even
|
|
118
|
+
* after the recipient creates an account.
|
|
119
|
+
*/
|
|
120
|
+
id: string;
|
|
121
|
+
/**
|
|
122
|
+
* Resource attributes
|
|
123
|
+
*/
|
|
124
|
+
attributes: Data.Attributes;
|
|
125
|
+
/**
|
|
126
|
+
* Resource type
|
|
127
|
+
*/
|
|
128
|
+
type: string;
|
|
129
|
+
}
|
|
130
|
+
namespace Data {
|
|
131
|
+
/**
|
|
132
|
+
* Resource attributes
|
|
133
|
+
*/
|
|
134
|
+
interface Attributes {
|
|
135
|
+
/**
|
|
136
|
+
* Pending agent delegation invitations sent to this recipient
|
|
137
|
+
*/
|
|
138
|
+
agentInvitations: Array<Attributes.AgentInvitation>;
|
|
139
|
+
/**
|
|
140
|
+
* When the earliest agent invitation was created
|
|
141
|
+
*/
|
|
142
|
+
createdAt: string;
|
|
143
|
+
/**
|
|
144
|
+
* Recipient email — the grouping key
|
|
145
|
+
*/
|
|
146
|
+
email: string;
|
|
147
|
+
/**
|
|
148
|
+
* Party info (null until the recipient creates an account)
|
|
149
|
+
*/
|
|
150
|
+
party: Attributes.Party | null;
|
|
151
|
+
/**
|
|
152
|
+
* Status (always PENDING)
|
|
153
|
+
*/
|
|
154
|
+
status: string;
|
|
155
|
+
/**
|
|
156
|
+
* Always 'denied' for pending customers
|
|
157
|
+
*/
|
|
158
|
+
walletAccess: 'granted' | 'denied' | 'noWallet';
|
|
159
|
+
/**
|
|
160
|
+
* Always null for pending customers
|
|
161
|
+
*/
|
|
162
|
+
walletAvailableMinor: number | null;
|
|
163
|
+
}
|
|
164
|
+
namespace Attributes {
|
|
165
|
+
interface AgentInvitation {
|
|
166
|
+
/**
|
|
167
|
+
* Agent the invitation targets
|
|
168
|
+
*/
|
|
169
|
+
agent: AgentInvitation.Agent;
|
|
170
|
+
/**
|
|
171
|
+
* When the agent invitation was created
|
|
172
|
+
*/
|
|
173
|
+
createdAt: string;
|
|
174
|
+
/**
|
|
175
|
+
* When the agent invitation expires (null if it does not expire)
|
|
176
|
+
*/
|
|
177
|
+
expiresAt: string | null;
|
|
178
|
+
/**
|
|
179
|
+
* Agent delegation invitation handle (adi_xxx)
|
|
180
|
+
*/
|
|
181
|
+
invitationId: string;
|
|
182
|
+
/**
|
|
183
|
+
* Permissions the invitation requests
|
|
184
|
+
*/
|
|
185
|
+
permissions: Array<string>;
|
|
186
|
+
}
|
|
187
|
+
namespace AgentInvitation {
|
|
188
|
+
/**
|
|
189
|
+
* Agent the invitation targets
|
|
190
|
+
*/
|
|
191
|
+
interface Agent {
|
|
192
|
+
/**
|
|
193
|
+
* Agent handle (agt_xxx)
|
|
194
|
+
*/
|
|
195
|
+
id: string;
|
|
196
|
+
/**
|
|
197
|
+
* Agent display name
|
|
198
|
+
*/
|
|
199
|
+
name: string | null;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Party info (null until the recipient creates an account)
|
|
204
|
+
*/
|
|
205
|
+
interface Party {
|
|
206
|
+
/**
|
|
207
|
+
* Party handle (pty_xxx)
|
|
208
|
+
*/
|
|
209
|
+
id: string;
|
|
210
|
+
/**
|
|
211
|
+
* Primary email
|
|
212
|
+
*/
|
|
213
|
+
email: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* Display name, falling back to legal name when display name is unset
|
|
216
|
+
*/
|
|
217
|
+
name: string;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
interface Meta {
|
|
222
|
+
pagination: Meta.Pagination;
|
|
223
|
+
}
|
|
224
|
+
namespace Meta {
|
|
225
|
+
interface Pagination {
|
|
226
|
+
hasMore: boolean;
|
|
227
|
+
nextCursor: string | null;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
export interface CustomerListParams {
|
|
232
|
+
/**
|
|
233
|
+
* Query param: Cursor for pagination
|
|
234
|
+
*/
|
|
235
|
+
cursor?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Query param: Maximum number of results
|
|
238
|
+
*/
|
|
239
|
+
limit?: number;
|
|
240
|
+
/**
|
|
241
|
+
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
242
|
+
*/
|
|
243
|
+
'X-Agent-ID'?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
246
|
+
* for agent observability.
|
|
247
|
+
*/
|
|
248
|
+
'X-Instance-ID'?: string;
|
|
249
|
+
}
|
|
250
|
+
export interface CustomerListInvitationsParams {
|
|
251
|
+
/**
|
|
252
|
+
* Query param: Cursor for pagination
|
|
253
|
+
*/
|
|
254
|
+
cursor?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Query param: Maximum number of results
|
|
257
|
+
*/
|
|
258
|
+
limit?: number;
|
|
259
|
+
/**
|
|
260
|
+
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
261
|
+
*/
|
|
262
|
+
'X-Agent-ID'?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
265
|
+
* for agent observability.
|
|
266
|
+
*/
|
|
267
|
+
'X-Instance-ID'?: string;
|
|
268
|
+
}
|
|
269
|
+
export declare namespace Customers {
|
|
270
|
+
export { type CustomerListResponse as CustomerListResponse, type CustomerListInvitationsResponse as CustomerListInvitationsResponse, type CustomerListParams as CustomerListParams, type CustomerListInvitationsParams as CustomerListInvitationsParams, };
|
|
271
|
+
}
|
|
272
|
+
//# sourceMappingURL=customers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CACF,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAenC;;;OAGG;IACH,eAAe,CACb,MAAM,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAc/C;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAEvC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC;CACjC;AAED,yBAAiB,oBAAoB,CAAC;IACpC;;OAEG;IACH,UAAiB,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AEG;gBACH,IAAI,EAAE,MAAM,CAAC;aACd;SACF;KACF;IAED,UAAiB,IAAI;QACnB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC7B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,UAAU;YACzB,OAAO,EAAE,OAAO,CAAC;YAEjB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;SAC3B;KACF;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Customer management
|
|
6
|
+
*/
|
|
7
|
+
export declare class Customers extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List active customers you can operate on behalf of.
|
|
10
|
+
*/
|
|
11
|
+
list(params?: CustomerListParams | null | undefined, options?: RequestOptions): APIPromise<CustomerListResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* List the pending customer invitations you've sent — agent invitations grouped by
|
|
14
|
+
* recipient.
|
|
15
|
+
*/
|
|
16
|
+
listInvitations(params?: CustomerListInvitationsParams | null | undefined, options?: RequestOptions): APIPromise<CustomerListInvitationsResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface CustomerListResponse {
|
|
19
|
+
data: Array<CustomerListResponse.Data>;
|
|
20
|
+
meta: CustomerListResponse.Meta;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace CustomerListResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Customer resource for an active customer (type='customer', id=pty_xxx).
|
|
25
|
+
*/
|
|
26
|
+
interface Data {
|
|
27
|
+
/**
|
|
28
|
+
* Customer party handle (pty_xxx)
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* Resource attributes
|
|
33
|
+
*/
|
|
34
|
+
attributes: Data.Attributes;
|
|
35
|
+
/**
|
|
36
|
+
* Resource type
|
|
37
|
+
*/
|
|
38
|
+
type: string;
|
|
39
|
+
}
|
|
40
|
+
namespace Data {
|
|
41
|
+
/**
|
|
42
|
+
* Resource attributes
|
|
43
|
+
*/
|
|
44
|
+
interface Attributes {
|
|
45
|
+
/**
|
|
46
|
+
* When the delegation was created
|
|
47
|
+
*/
|
|
48
|
+
createdAt: string;
|
|
49
|
+
/**
|
|
50
|
+
* Customer email, if known
|
|
51
|
+
*/
|
|
52
|
+
email: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Party info
|
|
55
|
+
*/
|
|
56
|
+
party: Attributes.Party;
|
|
57
|
+
/**
|
|
58
|
+
* Granted permissions
|
|
59
|
+
*/
|
|
60
|
+
permissions: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Status (ACTIVE, etc.)
|
|
63
|
+
*/
|
|
64
|
+
status: string;
|
|
65
|
+
/**
|
|
66
|
+
* Why walletAvailableMinor may be null: "granted" balance is fresh; "denied"
|
|
67
|
+
* caller lacks wallets.read; "noWallet" party has not provisioned a wallet.
|
|
68
|
+
*/
|
|
69
|
+
walletAccess: 'granted' | 'denied' | 'noWallet';
|
|
70
|
+
/**
|
|
71
|
+
* Available wallet balance in cents. Null when access is denied or no wallet
|
|
72
|
+
* exists — see walletAccess.
|
|
73
|
+
*/
|
|
74
|
+
walletAvailableMinor: number | null;
|
|
75
|
+
}
|
|
76
|
+
namespace Attributes {
|
|
77
|
+
/**
|
|
78
|
+
* Party info
|
|
79
|
+
*/
|
|
80
|
+
interface Party {
|
|
81
|
+
/**
|
|
82
|
+
* Party handle (pty_xxx)
|
|
83
|
+
*/
|
|
84
|
+
id: string;
|
|
85
|
+
/**
|
|
86
|
+
* Primary email
|
|
87
|
+
*/
|
|
88
|
+
email: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Display name, falling back to legal name when display name is unset
|
|
91
|
+
*/
|
|
92
|
+
name: string;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
interface Meta {
|
|
97
|
+
pagination: Meta.Pagination;
|
|
98
|
+
}
|
|
99
|
+
namespace Meta {
|
|
100
|
+
interface Pagination {
|
|
101
|
+
hasMore: boolean;
|
|
102
|
+
nextCursor: string | null;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export interface CustomerListInvitationsResponse {
|
|
107
|
+
data: Array<CustomerListInvitationsResponse.Data>;
|
|
108
|
+
meta: CustomerListInvitationsResponse.Meta;
|
|
109
|
+
}
|
|
110
|
+
export declare namespace CustomerListInvitationsResponse {
|
|
111
|
+
/**
|
|
112
|
+
* A pending customer invitation (type='customerInvitation', id=recipient email) —
|
|
113
|
+
* a grouping of agent invitations sent to one recipient.
|
|
114
|
+
*/
|
|
115
|
+
interface Data {
|
|
116
|
+
/**
|
|
117
|
+
* Recipient email — the grouping key for the pending invitation. Stays the id even
|
|
118
|
+
* after the recipient creates an account.
|
|
119
|
+
*/
|
|
120
|
+
id: string;
|
|
121
|
+
/**
|
|
122
|
+
* Resource attributes
|
|
123
|
+
*/
|
|
124
|
+
attributes: Data.Attributes;
|
|
125
|
+
/**
|
|
126
|
+
* Resource type
|
|
127
|
+
*/
|
|
128
|
+
type: string;
|
|
129
|
+
}
|
|
130
|
+
namespace Data {
|
|
131
|
+
/**
|
|
132
|
+
* Resource attributes
|
|
133
|
+
*/
|
|
134
|
+
interface Attributes {
|
|
135
|
+
/**
|
|
136
|
+
* Pending agent delegation invitations sent to this recipient
|
|
137
|
+
*/
|
|
138
|
+
agentInvitations: Array<Attributes.AgentInvitation>;
|
|
139
|
+
/**
|
|
140
|
+
* When the earliest agent invitation was created
|
|
141
|
+
*/
|
|
142
|
+
createdAt: string;
|
|
143
|
+
/**
|
|
144
|
+
* Recipient email — the grouping key
|
|
145
|
+
*/
|
|
146
|
+
email: string;
|
|
147
|
+
/**
|
|
148
|
+
* Party info (null until the recipient creates an account)
|
|
149
|
+
*/
|
|
150
|
+
party: Attributes.Party | null;
|
|
151
|
+
/**
|
|
152
|
+
* Status (always PENDING)
|
|
153
|
+
*/
|
|
154
|
+
status: string;
|
|
155
|
+
/**
|
|
156
|
+
* Always 'denied' for pending customers
|
|
157
|
+
*/
|
|
158
|
+
walletAccess: 'granted' | 'denied' | 'noWallet';
|
|
159
|
+
/**
|
|
160
|
+
* Always null for pending customers
|
|
161
|
+
*/
|
|
162
|
+
walletAvailableMinor: number | null;
|
|
163
|
+
}
|
|
164
|
+
namespace Attributes {
|
|
165
|
+
interface AgentInvitation {
|
|
166
|
+
/**
|
|
167
|
+
* Agent the invitation targets
|
|
168
|
+
*/
|
|
169
|
+
agent: AgentInvitation.Agent;
|
|
170
|
+
/**
|
|
171
|
+
* When the agent invitation was created
|
|
172
|
+
*/
|
|
173
|
+
createdAt: string;
|
|
174
|
+
/**
|
|
175
|
+
* When the agent invitation expires (null if it does not expire)
|
|
176
|
+
*/
|
|
177
|
+
expiresAt: string | null;
|
|
178
|
+
/**
|
|
179
|
+
* Agent delegation invitation handle (adi_xxx)
|
|
180
|
+
*/
|
|
181
|
+
invitationId: string;
|
|
182
|
+
/**
|
|
183
|
+
* Permissions the invitation requests
|
|
184
|
+
*/
|
|
185
|
+
permissions: Array<string>;
|
|
186
|
+
}
|
|
187
|
+
namespace AgentInvitation {
|
|
188
|
+
/**
|
|
189
|
+
* Agent the invitation targets
|
|
190
|
+
*/
|
|
191
|
+
interface Agent {
|
|
192
|
+
/**
|
|
193
|
+
* Agent handle (agt_xxx)
|
|
194
|
+
*/
|
|
195
|
+
id: string;
|
|
196
|
+
/**
|
|
197
|
+
* Agent display name
|
|
198
|
+
*/
|
|
199
|
+
name: string | null;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Party info (null until the recipient creates an account)
|
|
204
|
+
*/
|
|
205
|
+
interface Party {
|
|
206
|
+
/**
|
|
207
|
+
* Party handle (pty_xxx)
|
|
208
|
+
*/
|
|
209
|
+
id: string;
|
|
210
|
+
/**
|
|
211
|
+
* Primary email
|
|
212
|
+
*/
|
|
213
|
+
email: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* Display name, falling back to legal name when display name is unset
|
|
216
|
+
*/
|
|
217
|
+
name: string;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
interface Meta {
|
|
222
|
+
pagination: Meta.Pagination;
|
|
223
|
+
}
|
|
224
|
+
namespace Meta {
|
|
225
|
+
interface Pagination {
|
|
226
|
+
hasMore: boolean;
|
|
227
|
+
nextCursor: string | null;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
export interface CustomerListParams {
|
|
232
|
+
/**
|
|
233
|
+
* Query param: Cursor for pagination
|
|
234
|
+
*/
|
|
235
|
+
cursor?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Query param: Maximum number of results
|
|
238
|
+
*/
|
|
239
|
+
limit?: number;
|
|
240
|
+
/**
|
|
241
|
+
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
242
|
+
*/
|
|
243
|
+
'X-Agent-ID'?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
246
|
+
* for agent observability.
|
|
247
|
+
*/
|
|
248
|
+
'X-Instance-ID'?: string;
|
|
249
|
+
}
|
|
250
|
+
export interface CustomerListInvitationsParams {
|
|
251
|
+
/**
|
|
252
|
+
* Query param: Cursor for pagination
|
|
253
|
+
*/
|
|
254
|
+
cursor?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Query param: Maximum number of results
|
|
257
|
+
*/
|
|
258
|
+
limit?: number;
|
|
259
|
+
/**
|
|
260
|
+
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
261
|
+
*/
|
|
262
|
+
'X-Agent-ID'?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
265
|
+
* for agent observability.
|
|
266
|
+
*/
|
|
267
|
+
'X-Instance-ID'?: string;
|
|
268
|
+
}
|
|
269
|
+
export declare namespace Customers {
|
|
270
|
+
export { type CustomerListResponse as CustomerListResponse, type CustomerListInvitationsResponse as CustomerListInvitationsResponse, type CustomerListParams as CustomerListParams, type CustomerListInvitationsParams as CustomerListInvitationsParams, };
|
|
271
|
+
}
|
|
272
|
+
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CACF,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAA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B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Customers = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
/**
|
|
8
|
+
* Customer management
|
|
9
|
+
*/
|
|
10
|
+
class Customers extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* List active customers you can operate on behalf of.
|
|
13
|
+
*/
|
|
14
|
+
list(params = {}, options) {
|
|
15
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
16
|
+
return this._client.get('/customers', {
|
|
17
|
+
query,
|
|
18
|
+
...options,
|
|
19
|
+
headers: (0, headers_1.buildHeaders)([
|
|
20
|
+
{
|
|
21
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
22
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
23
|
+
},
|
|
24
|
+
options?.headers,
|
|
25
|
+
]),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* List the pending customer invitations you've sent — agent invitations grouped by
|
|
30
|
+
* recipient.
|
|
31
|
+
*/
|
|
32
|
+
listInvitations(params = {}, options) {
|
|
33
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
34
|
+
return this._client.get('/customers/invitations', {
|
|
35
|
+
query,
|
|
36
|
+
...options,
|
|
37
|
+
headers: (0, headers_1.buildHeaders)([
|
|
38
|
+
{
|
|
39
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
40
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
41
|
+
},
|
|
42
|
+
options?.headers,
|
|
43
|
+
]),
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.Customers = Customers;
|
|
48
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAGnD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,IAAI,CACF,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;YACpC,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC9D,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACxE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,eAAe,CACb,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE;YAChD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC9D,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACxE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA3CD,8BA2CC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Customer management
|
|
6
|
+
*/
|
|
7
|
+
export class Customers extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List active customers you can operate on behalf of.
|
|
10
|
+
*/
|
|
11
|
+
list(params = {}, options) {
|
|
12
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
13
|
+
return this._client.get('/customers', {
|
|
14
|
+
query,
|
|
15
|
+
...options,
|
|
16
|
+
headers: buildHeaders([
|
|
17
|
+
{
|
|
18
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
19
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
20
|
+
},
|
|
21
|
+
options?.headers,
|
|
22
|
+
]),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* List the pending customer invitations you've sent — agent invitations grouped by
|
|
27
|
+
* recipient.
|
|
28
|
+
*/
|
|
29
|
+
listInvitations(params = {}, options) {
|
|
30
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
31
|
+
return this._client.get('/customers/invitations', {
|
|
32
|
+
query,
|
|
33
|
+
...options,
|
|
34
|
+
headers: buildHeaders([
|
|
35
|
+
{
|
|
36
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
37
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
38
|
+
},
|
|
39
|
+
options?.headers,
|
|
40
|
+
]),
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=customers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CACF,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;YACpC,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC9D,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACxE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,eAAe,CACb,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MA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