@naturalpay/sdk 0.1.4 → 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 -1688
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -879
- package/dist/index.d.ts +0 -879
- package/dist/index.js +0 -1657
- 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,1785 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Agent management
|
|
11
|
+
*/
|
|
12
|
+
export class Agents extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Create a new agent for the authenticated party.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const agent = await client.agents.create({
|
|
19
|
+
* name: 'x',
|
|
20
|
+
* 'Idempotency-Key': 'Idempotency-Key',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(params: AgentCreateParams, options?: RequestOptions): APIPromise<AgentCreateResponse> {
|
|
25
|
+
const {
|
|
26
|
+
'Idempotency-Key': idempotencyKey,
|
|
27
|
+
'X-Agent-ID': xAgentID,
|
|
28
|
+
'X-Instance-ID': xInstanceID,
|
|
29
|
+
...body
|
|
30
|
+
} = params;
|
|
31
|
+
return this._client.post('/agents', {
|
|
32
|
+
body,
|
|
33
|
+
...options,
|
|
34
|
+
headers: buildHeaders([
|
|
35
|
+
{
|
|
36
|
+
'Idempotency-Key': idempotencyKey,
|
|
37
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
38
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
39
|
+
},
|
|
40
|
+
options?.headers,
|
|
41
|
+
]),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Update an existing agent's mutable fields or revoke it.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const agent = await client.agents.update(
|
|
51
|
+
* 'agt_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
52
|
+
* { 'Idempotency-Key': 'Idempotency-Key' },
|
|
53
|
+
* );
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
update(
|
|
57
|
+
agentID: string,
|
|
58
|
+
params: AgentUpdateParams,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): APIPromise<AgentUpdateResponse> {
|
|
61
|
+
const {
|
|
62
|
+
'Idempotency-Key': idempotencyKey,
|
|
63
|
+
'X-Agent-ID': xAgentID,
|
|
64
|
+
'X-Instance-ID': xInstanceID,
|
|
65
|
+
...body
|
|
66
|
+
} = params;
|
|
67
|
+
return this._client.put(path`/agents/${agentID}`, {
|
|
68
|
+
body,
|
|
69
|
+
...options,
|
|
70
|
+
headers: buildHeaders([
|
|
71
|
+
{
|
|
72
|
+
'Idempotency-Key': idempotencyKey,
|
|
73
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
74
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
75
|
+
},
|
|
76
|
+
options?.headers,
|
|
77
|
+
]),
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* List agents for the authenticated user's party.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const agents = await client.agents.list();
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
list(
|
|
90
|
+
params: AgentListParams | null | undefined = {},
|
|
91
|
+
options?: RequestOptions,
|
|
92
|
+
): APIPromise<AgentListResponse> {
|
|
93
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
94
|
+
return this._client.get('/agents', {
|
|
95
|
+
query,
|
|
96
|
+
...options,
|
|
97
|
+
headers: buildHeaders([
|
|
98
|
+
{
|
|
99
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
100
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
101
|
+
},
|
|
102
|
+
options?.headers,
|
|
103
|
+
]),
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Developer-only. Creates one invitation per agent and sends a single Resend email
|
|
109
|
+
* to the customer.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* const response = await client.agents.createInvitations({
|
|
114
|
+
* agents: [
|
|
115
|
+
* {
|
|
116
|
+
* agentId: 'agt_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
117
|
+
* permissions: ['string'],
|
|
118
|
+
* },
|
|
119
|
+
* ],
|
|
120
|
+
* customerEmail: 'dev@stainless.com',
|
|
121
|
+
* 'Idempotency-Key': 'Idempotency-Key',
|
|
122
|
+
* });
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
createInvitations(
|
|
126
|
+
params: AgentCreateInvitationsParams,
|
|
127
|
+
options?: RequestOptions,
|
|
128
|
+
): APIPromise<AgentCreateInvitationsResponse> {
|
|
129
|
+
const {
|
|
130
|
+
'Idempotency-Key': idempotencyKey,
|
|
131
|
+
'X-Agent-ID': xAgentID,
|
|
132
|
+
'X-Instance-ID': xInstanceID,
|
|
133
|
+
...body
|
|
134
|
+
} = params;
|
|
135
|
+
return this._client.post('/agents/invitations', {
|
|
136
|
+
body,
|
|
137
|
+
...options,
|
|
138
|
+
headers: buildHeaders([
|
|
139
|
+
{
|
|
140
|
+
'Idempotency-Key': idempotencyKey,
|
|
141
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
142
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
143
|
+
},
|
|
144
|
+
options?.headers,
|
|
145
|
+
]),
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Get agent details by its unique ID.
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* ```ts
|
|
154
|
+
* const agent = await client.agents.get(
|
|
155
|
+
* 'agt_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
156
|
+
* );
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
get(
|
|
160
|
+
agentID: string,
|
|
161
|
+
params: AgentGetParams | null | undefined = {},
|
|
162
|
+
options?: RequestOptions,
|
|
163
|
+
): APIPromise<AgentGetResponse> {
|
|
164
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
|
|
165
|
+
return this._client.get(path`/agents/${agentID}`, {
|
|
166
|
+
...options,
|
|
167
|
+
headers: buildHeaders([
|
|
168
|
+
{
|
|
169
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
170
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
171
|
+
},
|
|
172
|
+
options?.headers,
|
|
173
|
+
]),
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* List agent delegation invitations
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```ts
|
|
182
|
+
* const response =
|
|
183
|
+
* await client.agents.listInvitationsForDeveloper();
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
listInvitationsForDeveloper(
|
|
187
|
+
params: AgentListInvitationsForDeveloperParams | null | undefined = {},
|
|
188
|
+
options?: RequestOptions,
|
|
189
|
+
): APIPromise<AgentListInvitationsForDeveloperResponse> {
|
|
190
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
191
|
+
return this._client.get('/agents/invitations', {
|
|
192
|
+
query,
|
|
193
|
+
...options,
|
|
194
|
+
headers: buildHeaders([
|
|
195
|
+
{
|
|
196
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
197
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
198
|
+
},
|
|
199
|
+
options?.headers,
|
|
200
|
+
]),
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Delete an agent and clean up its delegations and policies.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* ```ts
|
|
209
|
+
* const agent = await client.agents.remove(
|
|
210
|
+
* 'agt_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
211
|
+
* { 'Idempotency-Key': 'Idempotency-Key' },
|
|
212
|
+
* );
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
215
|
+
remove(
|
|
216
|
+
agentID: string,
|
|
217
|
+
params: AgentRemoveParams,
|
|
218
|
+
options?: RequestOptions,
|
|
219
|
+
): APIPromise<AgentRemoveResponse> {
|
|
220
|
+
const {
|
|
221
|
+
'Idempotency-Key': idempotencyKey,
|
|
222
|
+
'X-Agent-ID': xAgentID,
|
|
223
|
+
'X-Instance-ID': xInstanceID,
|
|
224
|
+
} = params;
|
|
225
|
+
return this._client.delete(path`/agents/${agentID}`, {
|
|
226
|
+
...options,
|
|
227
|
+
headers: buildHeaders([
|
|
228
|
+
{
|
|
229
|
+
'Idempotency-Key': idempotencyKey,
|
|
230
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
231
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
232
|
+
},
|
|
233
|
+
options?.headers,
|
|
234
|
+
]),
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface AgentCreateResponse {
|
|
240
|
+
data: AgentCreateResponse.Data;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export namespace AgentCreateResponse {
|
|
244
|
+
export interface Data {
|
|
245
|
+
/**
|
|
246
|
+
* Resource ID
|
|
247
|
+
*/
|
|
248
|
+
id: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Resource attributes
|
|
252
|
+
*/
|
|
253
|
+
attributes: Data.Attributes;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Resource relationships
|
|
257
|
+
*/
|
|
258
|
+
relationships: Data.Relationships;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Resource type
|
|
262
|
+
*/
|
|
263
|
+
type: string;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export namespace Data {
|
|
267
|
+
/**
|
|
268
|
+
* Resource attributes
|
|
269
|
+
*/
|
|
270
|
+
export interface Attributes {
|
|
271
|
+
/**
|
|
272
|
+
* When this agent was created
|
|
273
|
+
*/
|
|
274
|
+
createdAt: string | null;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* User who created this agent (usr\_\*)
|
|
278
|
+
*/
|
|
279
|
+
createdBy: string | null;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Agent description
|
|
283
|
+
*/
|
|
284
|
+
description: string | null;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Per-transaction spend cap for actions this agent initiates on its owner's party.
|
|
288
|
+
* null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
|
|
289
|
+
*/
|
|
290
|
+
limits: Attributes.Limits | null;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Agent display name
|
|
294
|
+
*/
|
|
295
|
+
name: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Observability stats (null when unavailable)
|
|
299
|
+
*/
|
|
300
|
+
observability: Attributes.Observability | null;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Agent status
|
|
304
|
+
*/
|
|
305
|
+
status: 'ACTIVE' | 'REVOKED';
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* When this agent was last updated
|
|
309
|
+
*/
|
|
310
|
+
updatedAt: string | null;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* User who last updated this agent (usr\_\*)
|
|
314
|
+
*/
|
|
315
|
+
updatedBy: string | null;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export namespace Attributes {
|
|
319
|
+
/**
|
|
320
|
+
* Per-transaction spend cap for actions this agent initiates on its owner's party.
|
|
321
|
+
* null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
|
|
322
|
+
*/
|
|
323
|
+
export interface Limits {
|
|
324
|
+
/**
|
|
325
|
+
* Positive per-transaction limit in cents. null means no per-payment limit.
|
|
326
|
+
*/
|
|
327
|
+
perTransaction?: number | null;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Observability stats (null when unavailable)
|
|
332
|
+
*/
|
|
333
|
+
export interface Observability {
|
|
334
|
+
/**
|
|
335
|
+
* Errors in last 24h
|
|
336
|
+
*/
|
|
337
|
+
errorCount: number;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Last activity timestamp
|
|
341
|
+
*/
|
|
342
|
+
lastActiveAt: string | null;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Requests in last 24h
|
|
346
|
+
*/
|
|
347
|
+
requestCount: number;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Resource relationships
|
|
353
|
+
*/
|
|
354
|
+
export interface Relationships {
|
|
355
|
+
/**
|
|
356
|
+
* Party that owns the agent
|
|
357
|
+
*/
|
|
358
|
+
party: Relationships.Party;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export namespace Relationships {
|
|
362
|
+
/**
|
|
363
|
+
* Party that owns the agent
|
|
364
|
+
*/
|
|
365
|
+
export interface Party {
|
|
366
|
+
/**
|
|
367
|
+
* Related resource identifier
|
|
368
|
+
*/
|
|
369
|
+
data: Party.Data;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export namespace Party {
|
|
373
|
+
/**
|
|
374
|
+
* Related resource identifier
|
|
375
|
+
*/
|
|
376
|
+
export interface Data {
|
|
377
|
+
id: string;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Resource type
|
|
381
|
+
*/
|
|
382
|
+
type: string;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export interface AgentUpdateResponse {
|
|
390
|
+
data: AgentUpdateResponse.Data;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export namespace AgentUpdateResponse {
|
|
394
|
+
export interface Data {
|
|
395
|
+
/**
|
|
396
|
+
* Resource ID
|
|
397
|
+
*/
|
|
398
|
+
id: string;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Resource attributes
|
|
402
|
+
*/
|
|
403
|
+
attributes: Data.Attributes;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Resource relationships
|
|
407
|
+
*/
|
|
408
|
+
relationships: Data.Relationships;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Resource type
|
|
412
|
+
*/
|
|
413
|
+
type: string;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export namespace Data {
|
|
417
|
+
/**
|
|
418
|
+
* Resource attributes
|
|
419
|
+
*/
|
|
420
|
+
export interface Attributes {
|
|
421
|
+
/**
|
|
422
|
+
* When this agent was created
|
|
423
|
+
*/
|
|
424
|
+
createdAt: string | null;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* User who created this agent (usr\_\*)
|
|
428
|
+
*/
|
|
429
|
+
createdBy: string | null;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Agent description
|
|
433
|
+
*/
|
|
434
|
+
description: string | null;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Per-transaction spend cap for actions this agent initiates on its owner's party.
|
|
438
|
+
* null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
|
|
439
|
+
*/
|
|
440
|
+
limits: Attributes.Limits | null;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Agent display name
|
|
444
|
+
*/
|
|
445
|
+
name: string;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Observability stats (null when unavailable)
|
|
449
|
+
*/
|
|
450
|
+
observability: Attributes.Observability | null;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Agent status
|
|
454
|
+
*/
|
|
455
|
+
status: 'ACTIVE' | 'REVOKED';
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* When this agent was last updated
|
|
459
|
+
*/
|
|
460
|
+
updatedAt: string | null;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* User who last updated this agent (usr\_\*)
|
|
464
|
+
*/
|
|
465
|
+
updatedBy: string | null;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export namespace Attributes {
|
|
469
|
+
/**
|
|
470
|
+
* Per-transaction spend cap for actions this agent initiates on its owner's party.
|
|
471
|
+
* null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
|
|
472
|
+
*/
|
|
473
|
+
export interface Limits {
|
|
474
|
+
/**
|
|
475
|
+
* Positive per-transaction limit in cents. null means no per-payment limit.
|
|
476
|
+
*/
|
|
477
|
+
perTransaction?: number | null;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Observability stats (null when unavailable)
|
|
482
|
+
*/
|
|
483
|
+
export interface Observability {
|
|
484
|
+
/**
|
|
485
|
+
* Errors in last 24h
|
|
486
|
+
*/
|
|
487
|
+
errorCount: number;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Last activity timestamp
|
|
491
|
+
*/
|
|
492
|
+
lastActiveAt: string | null;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Requests in last 24h
|
|
496
|
+
*/
|
|
497
|
+
requestCount: number;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Resource relationships
|
|
503
|
+
*/
|
|
504
|
+
export interface Relationships {
|
|
505
|
+
/**
|
|
506
|
+
* Party that owns the agent
|
|
507
|
+
*/
|
|
508
|
+
party: Relationships.Party;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export namespace Relationships {
|
|
512
|
+
/**
|
|
513
|
+
* Party that owns the agent
|
|
514
|
+
*/
|
|
515
|
+
export interface Party {
|
|
516
|
+
/**
|
|
517
|
+
* Related resource identifier
|
|
518
|
+
*/
|
|
519
|
+
data: Party.Data;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export namespace Party {
|
|
523
|
+
/**
|
|
524
|
+
* Related resource identifier
|
|
525
|
+
*/
|
|
526
|
+
export interface Data {
|
|
527
|
+
id: string;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Resource type
|
|
531
|
+
*/
|
|
532
|
+
type: string;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export interface AgentListResponse {
|
|
540
|
+
data: Array<AgentListResponse.Data>;
|
|
541
|
+
|
|
542
|
+
meta: AgentListResponse.Meta;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export namespace AgentListResponse {
|
|
546
|
+
export interface Data {
|
|
547
|
+
/**
|
|
548
|
+
* Resource ID
|
|
549
|
+
*/
|
|
550
|
+
id: string;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Resource attributes
|
|
554
|
+
*/
|
|
555
|
+
attributes: Data.Attributes;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Resource relationships
|
|
559
|
+
*/
|
|
560
|
+
relationships: Data.Relationships;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Resource type
|
|
564
|
+
*/
|
|
565
|
+
type: string;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export namespace Data {
|
|
569
|
+
/**
|
|
570
|
+
* Resource attributes
|
|
571
|
+
*/
|
|
572
|
+
export interface Attributes {
|
|
573
|
+
/**
|
|
574
|
+
* When this agent was created
|
|
575
|
+
*/
|
|
576
|
+
createdAt: string | null;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* User who created this agent (usr\_\*)
|
|
580
|
+
*/
|
|
581
|
+
createdBy: string | null;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Agent description
|
|
585
|
+
*/
|
|
586
|
+
description: string | null;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Per-transaction spend cap for actions this agent initiates on its owner's party.
|
|
590
|
+
* null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
|
|
591
|
+
*/
|
|
592
|
+
limits: Attributes.Limits | null;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Agent display name
|
|
596
|
+
*/
|
|
597
|
+
name: string;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Observability stats (null when unavailable)
|
|
601
|
+
*/
|
|
602
|
+
observability: Attributes.Observability | null;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Agent status
|
|
606
|
+
*/
|
|
607
|
+
status: 'ACTIVE' | 'REVOKED';
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* When this agent was last updated
|
|
611
|
+
*/
|
|
612
|
+
updatedAt: string | null;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* User who last updated this agent (usr\_\*)
|
|
616
|
+
*/
|
|
617
|
+
updatedBy: string | null;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export namespace Attributes {
|
|
621
|
+
/**
|
|
622
|
+
* Per-transaction spend cap for actions this agent initiates on its owner's party.
|
|
623
|
+
* null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
|
|
624
|
+
*/
|
|
625
|
+
export interface Limits {
|
|
626
|
+
/**
|
|
627
|
+
* Positive per-transaction limit in cents. null means no per-payment limit.
|
|
628
|
+
*/
|
|
629
|
+
perTransaction?: number | null;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Observability stats (null when unavailable)
|
|
634
|
+
*/
|
|
635
|
+
export interface Observability {
|
|
636
|
+
/**
|
|
637
|
+
* Errors in last 24h
|
|
638
|
+
*/
|
|
639
|
+
errorCount: number;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Last activity timestamp
|
|
643
|
+
*/
|
|
644
|
+
lastActiveAt: string | null;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Requests in last 24h
|
|
648
|
+
*/
|
|
649
|
+
requestCount: number;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Resource relationships
|
|
655
|
+
*/
|
|
656
|
+
export interface Relationships {
|
|
657
|
+
/**
|
|
658
|
+
* Party that owns the agent
|
|
659
|
+
*/
|
|
660
|
+
party: Relationships.Party;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
export namespace Relationships {
|
|
664
|
+
/**
|
|
665
|
+
* Party that owns the agent
|
|
666
|
+
*/
|
|
667
|
+
export interface Party {
|
|
668
|
+
/**
|
|
669
|
+
* Related resource identifier
|
|
670
|
+
*/
|
|
671
|
+
data: Party.Data;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export namespace Party {
|
|
675
|
+
/**
|
|
676
|
+
* Related resource identifier
|
|
677
|
+
*/
|
|
678
|
+
export interface Data {
|
|
679
|
+
id: string;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Resource type
|
|
683
|
+
*/
|
|
684
|
+
type: string;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export interface Meta {
|
|
691
|
+
pagination: Meta.Pagination;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
export namespace Meta {
|
|
695
|
+
export interface Pagination {
|
|
696
|
+
hasMore: boolean;
|
|
697
|
+
|
|
698
|
+
nextCursor: string | null;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
export interface AgentCreateInvitationsResponse {
|
|
704
|
+
/**
|
|
705
|
+
* Successfully created invitation resources
|
|
706
|
+
*/
|
|
707
|
+
data: Array<AgentCreateInvitationsResponse.Data>;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Batch invitation metadata
|
|
711
|
+
*/
|
|
712
|
+
meta: AgentCreateInvitationsResponse.Meta;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
export namespace AgentCreateInvitationsResponse {
|
|
716
|
+
export interface Data {
|
|
717
|
+
/**
|
|
718
|
+
* Invitation ID (adi\_\*)
|
|
719
|
+
*/
|
|
720
|
+
id: string;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Resource attributes
|
|
724
|
+
*/
|
|
725
|
+
attributes: Data.Attributes;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Related resource identifiers
|
|
729
|
+
*/
|
|
730
|
+
relationships: Data.Relationships;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Resource type
|
|
734
|
+
*/
|
|
735
|
+
type: string;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
export namespace Data {
|
|
739
|
+
/**
|
|
740
|
+
* Resource attributes
|
|
741
|
+
*/
|
|
742
|
+
export interface Attributes {
|
|
743
|
+
/**
|
|
744
|
+
* When this invitation was accepted
|
|
745
|
+
*/
|
|
746
|
+
acceptedAt: string | null;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Display name of the agent being delegated
|
|
750
|
+
*/
|
|
751
|
+
agentName: string;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Why the invitation was cancelled
|
|
755
|
+
*/
|
|
756
|
+
cancelReason: 'AGENT_RETIRED' | 'DEVELOPER_RETIRED' | null;
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* When this invitation was created
|
|
760
|
+
*/
|
|
761
|
+
createdAt: string;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* When this invitation was declined
|
|
765
|
+
*/
|
|
766
|
+
declinedAt: string | null;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Display name of the developer party
|
|
770
|
+
*/
|
|
771
|
+
developerName: string;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Status after applying expiry and cancel-reason overlays
|
|
775
|
+
*/
|
|
776
|
+
effectiveStatus: 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED';
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Customer email the invitation was sent to
|
|
780
|
+
*/
|
|
781
|
+
email: string;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* When this invitation expires
|
|
785
|
+
*/
|
|
786
|
+
expiresAt: string;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Per-agent transaction limits
|
|
790
|
+
*/
|
|
791
|
+
limits: Attributes.Limits | null;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Permissions the agent will hold on accept
|
|
795
|
+
*/
|
|
796
|
+
permissions: Array<string>;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Raw persisted status
|
|
800
|
+
*/
|
|
801
|
+
status: 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED';
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* When this invitation was last updated
|
|
805
|
+
*/
|
|
806
|
+
updatedAt: string;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
export namespace Attributes {
|
|
810
|
+
/**
|
|
811
|
+
* Per-agent transaction limits
|
|
812
|
+
*/
|
|
813
|
+
export interface Limits {
|
|
814
|
+
/**
|
|
815
|
+
* Per-transaction cap, integer cents (USD).
|
|
816
|
+
*/
|
|
817
|
+
perTransaction?: number | null;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Related resource identifiers
|
|
823
|
+
*/
|
|
824
|
+
export interface Relationships {
|
|
825
|
+
/**
|
|
826
|
+
* Agent being delegated
|
|
827
|
+
*/
|
|
828
|
+
agent: Relationships.Agent;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Resulting agent delegation once accepted; currently null on public create/list
|
|
832
|
+
* responses
|
|
833
|
+
*/
|
|
834
|
+
agentDelegation: Relationships.AgentDelegation;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Customer party the invitation was accepted on (null until accept)
|
|
838
|
+
*/
|
|
839
|
+
customerParty: Relationships.CustomerParty;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Developer party that issued the invitation
|
|
843
|
+
*/
|
|
844
|
+
developerParty: Relationships.DeveloperParty;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
export namespace Relationships {
|
|
848
|
+
/**
|
|
849
|
+
* Agent being delegated
|
|
850
|
+
*/
|
|
851
|
+
export interface Agent {
|
|
852
|
+
/**
|
|
853
|
+
* Related resource identifier
|
|
854
|
+
*/
|
|
855
|
+
data: Agent.Data;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
export namespace Agent {
|
|
859
|
+
/**
|
|
860
|
+
* Related resource identifier
|
|
861
|
+
*/
|
|
862
|
+
export interface Data {
|
|
863
|
+
id: string;
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Resource type
|
|
867
|
+
*/
|
|
868
|
+
type: string;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Resulting agent delegation once accepted; currently null on public create/list
|
|
874
|
+
* responses
|
|
875
|
+
*/
|
|
876
|
+
export interface AgentDelegation {
|
|
877
|
+
/**
|
|
878
|
+
* Related resource identifier
|
|
879
|
+
*/
|
|
880
|
+
data: AgentDelegation.Data | null;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
export namespace AgentDelegation {
|
|
884
|
+
/**
|
|
885
|
+
* Related resource identifier
|
|
886
|
+
*/
|
|
887
|
+
export interface Data {
|
|
888
|
+
id: string;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Resource type
|
|
892
|
+
*/
|
|
893
|
+
type: string;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Customer party the invitation was accepted on (null until accept)
|
|
899
|
+
*/
|
|
900
|
+
export interface CustomerParty {
|
|
901
|
+
/**
|
|
902
|
+
* Related resource identifier
|
|
903
|
+
*/
|
|
904
|
+
data: CustomerParty.Data | null;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
export namespace CustomerParty {
|
|
908
|
+
/**
|
|
909
|
+
* Related resource identifier
|
|
910
|
+
*/
|
|
911
|
+
export interface Data {
|
|
912
|
+
id: string;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Resource type
|
|
916
|
+
*/
|
|
917
|
+
type: string;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Developer party that issued the invitation
|
|
923
|
+
*/
|
|
924
|
+
export interface DeveloperParty {
|
|
925
|
+
/**
|
|
926
|
+
* Related resource identifier
|
|
927
|
+
*/
|
|
928
|
+
data: DeveloperParty.Data;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
export namespace DeveloperParty {
|
|
932
|
+
/**
|
|
933
|
+
* Related resource identifier
|
|
934
|
+
*/
|
|
935
|
+
export interface Data {
|
|
936
|
+
id: string;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Resource type
|
|
940
|
+
*/
|
|
941
|
+
type: string;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Batch invitation metadata
|
|
949
|
+
*/
|
|
950
|
+
export interface Meta {
|
|
951
|
+
/**
|
|
952
|
+
* Invitation IDs whose welcome-email send failed. Invitations are still persisted;
|
|
953
|
+
* use the resend-email flow to retry.
|
|
954
|
+
*/
|
|
955
|
+
emailFailures: Array<string>;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
export interface AgentGetResponse {
|
|
960
|
+
data: AgentGetResponse.Data;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
export namespace AgentGetResponse {
|
|
964
|
+
export interface Data {
|
|
965
|
+
/**
|
|
966
|
+
* Resource ID
|
|
967
|
+
*/
|
|
968
|
+
id: string;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Resource attributes
|
|
972
|
+
*/
|
|
973
|
+
attributes: Data.Attributes;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Resource relationships
|
|
977
|
+
*/
|
|
978
|
+
relationships: Data.Relationships;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Resource type
|
|
982
|
+
*/
|
|
983
|
+
type: string;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export namespace Data {
|
|
987
|
+
/**
|
|
988
|
+
* Resource attributes
|
|
989
|
+
*/
|
|
990
|
+
export interface Attributes {
|
|
991
|
+
/**
|
|
992
|
+
* When this agent was created
|
|
993
|
+
*/
|
|
994
|
+
createdAt: string | null;
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* User who created this agent (usr\_\*)
|
|
998
|
+
*/
|
|
999
|
+
createdBy: string | null;
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Agent description
|
|
1003
|
+
*/
|
|
1004
|
+
description: string | null;
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* Per-transaction spend cap for actions this agent initiates on its owner's party.
|
|
1008
|
+
* null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
|
|
1009
|
+
*/
|
|
1010
|
+
limits: Attributes.Limits | null;
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Agent display name
|
|
1014
|
+
*/
|
|
1015
|
+
name: string;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Observability stats (null when unavailable)
|
|
1019
|
+
*/
|
|
1020
|
+
observability: Attributes.Observability | null;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Agent status
|
|
1024
|
+
*/
|
|
1025
|
+
status: 'ACTIVE' | 'REVOKED';
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* When this agent was last updated
|
|
1029
|
+
*/
|
|
1030
|
+
updatedAt: string | null;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* User who last updated this agent (usr\_\*)
|
|
1034
|
+
*/
|
|
1035
|
+
updatedBy: string | null;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
export namespace Attributes {
|
|
1039
|
+
/**
|
|
1040
|
+
* Per-transaction spend cap for actions this agent initiates on its owner's party.
|
|
1041
|
+
* null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
|
|
1042
|
+
*/
|
|
1043
|
+
export interface Limits {
|
|
1044
|
+
/**
|
|
1045
|
+
* Positive per-transaction limit in cents. null means no per-payment limit.
|
|
1046
|
+
*/
|
|
1047
|
+
perTransaction?: number | null;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Observability stats (null when unavailable)
|
|
1052
|
+
*/
|
|
1053
|
+
export interface Observability {
|
|
1054
|
+
/**
|
|
1055
|
+
* Errors in last 24h
|
|
1056
|
+
*/
|
|
1057
|
+
errorCount: number;
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* Last activity timestamp
|
|
1061
|
+
*/
|
|
1062
|
+
lastActiveAt: string | null;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Requests in last 24h
|
|
1066
|
+
*/
|
|
1067
|
+
requestCount: number;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* Resource relationships
|
|
1073
|
+
*/
|
|
1074
|
+
export interface Relationships {
|
|
1075
|
+
/**
|
|
1076
|
+
* Party that owns the agent
|
|
1077
|
+
*/
|
|
1078
|
+
party: Relationships.Party;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
export namespace Relationships {
|
|
1082
|
+
/**
|
|
1083
|
+
* Party that owns the agent
|
|
1084
|
+
*/
|
|
1085
|
+
export interface Party {
|
|
1086
|
+
/**
|
|
1087
|
+
* Related resource identifier
|
|
1088
|
+
*/
|
|
1089
|
+
data: Party.Data;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
export namespace Party {
|
|
1093
|
+
/**
|
|
1094
|
+
* Related resource identifier
|
|
1095
|
+
*/
|
|
1096
|
+
export interface Data {
|
|
1097
|
+
id: string;
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* Resource type
|
|
1101
|
+
*/
|
|
1102
|
+
type: string;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
export interface AgentListInvitationsForDeveloperResponse {
|
|
1110
|
+
data: Array<AgentListInvitationsForDeveloperResponse.Data>;
|
|
1111
|
+
|
|
1112
|
+
meta: AgentListInvitationsForDeveloperResponse.Meta;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
export namespace AgentListInvitationsForDeveloperResponse {
|
|
1116
|
+
export interface Data {
|
|
1117
|
+
/**
|
|
1118
|
+
* Invitation ID (adi\_\*)
|
|
1119
|
+
*/
|
|
1120
|
+
id: string;
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* Resource attributes
|
|
1124
|
+
*/
|
|
1125
|
+
attributes: Data.Attributes;
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Related resource identifiers
|
|
1129
|
+
*/
|
|
1130
|
+
relationships: Data.Relationships;
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Resource type
|
|
1134
|
+
*/
|
|
1135
|
+
type: string;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
export namespace Data {
|
|
1139
|
+
/**
|
|
1140
|
+
* Resource attributes
|
|
1141
|
+
*/
|
|
1142
|
+
export interface Attributes {
|
|
1143
|
+
/**
|
|
1144
|
+
* When this invitation was accepted
|
|
1145
|
+
*/
|
|
1146
|
+
acceptedAt: string | null;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Display name of the agent being delegated
|
|
1150
|
+
*/
|
|
1151
|
+
agentName: string;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Why the invitation was cancelled
|
|
1155
|
+
*/
|
|
1156
|
+
cancelReason: 'AGENT_RETIRED' | 'DEVELOPER_RETIRED' | null;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* When this invitation was created
|
|
1160
|
+
*/
|
|
1161
|
+
createdAt: string;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* When this invitation was declined
|
|
1165
|
+
*/
|
|
1166
|
+
declinedAt: string | null;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Display name of the developer party
|
|
1170
|
+
*/
|
|
1171
|
+
developerName: string;
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Status after applying expiry and cancel-reason overlays
|
|
1175
|
+
*/
|
|
1176
|
+
effectiveStatus: 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED';
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Customer email the invitation was sent to
|
|
1180
|
+
*/
|
|
1181
|
+
email: string;
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* When this invitation expires
|
|
1185
|
+
*/
|
|
1186
|
+
expiresAt: string;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Per-agent transaction limits
|
|
1190
|
+
*/
|
|
1191
|
+
limits: Attributes.Limits | null;
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* Permissions the agent will hold on accept
|
|
1195
|
+
*/
|
|
1196
|
+
permissions: Array<string>;
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Raw persisted status
|
|
1200
|
+
*/
|
|
1201
|
+
status: 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED';
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* When this invitation was last updated
|
|
1205
|
+
*/
|
|
1206
|
+
updatedAt: string;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
export namespace Attributes {
|
|
1210
|
+
/**
|
|
1211
|
+
* Per-agent transaction limits
|
|
1212
|
+
*/
|
|
1213
|
+
export interface Limits {
|
|
1214
|
+
/**
|
|
1215
|
+
* Per-transaction cap, integer cents (USD).
|
|
1216
|
+
*/
|
|
1217
|
+
perTransaction?: number | null;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* Related resource identifiers
|
|
1223
|
+
*/
|
|
1224
|
+
export interface Relationships {
|
|
1225
|
+
/**
|
|
1226
|
+
* Agent being delegated
|
|
1227
|
+
*/
|
|
1228
|
+
agent: Relationships.Agent;
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Resulting agent delegation once accepted; currently null on public create/list
|
|
1232
|
+
* responses
|
|
1233
|
+
*/
|
|
1234
|
+
agentDelegation: Relationships.AgentDelegation;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Customer party the invitation was accepted on (null until accept)
|
|
1238
|
+
*/
|
|
1239
|
+
customerParty: Relationships.CustomerParty;
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Developer party that issued the invitation
|
|
1243
|
+
*/
|
|
1244
|
+
developerParty: Relationships.DeveloperParty;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
export namespace Relationships {
|
|
1248
|
+
/**
|
|
1249
|
+
* Agent being delegated
|
|
1250
|
+
*/
|
|
1251
|
+
export interface Agent {
|
|
1252
|
+
/**
|
|
1253
|
+
* Related resource identifier
|
|
1254
|
+
*/
|
|
1255
|
+
data: Agent.Data;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
export namespace Agent {
|
|
1259
|
+
/**
|
|
1260
|
+
* Related resource identifier
|
|
1261
|
+
*/
|
|
1262
|
+
export interface Data {
|
|
1263
|
+
id: string;
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Resource type
|
|
1267
|
+
*/
|
|
1268
|
+
type: string;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Resulting agent delegation once accepted; currently null on public create/list
|
|
1274
|
+
* responses
|
|
1275
|
+
*/
|
|
1276
|
+
export interface AgentDelegation {
|
|
1277
|
+
/**
|
|
1278
|
+
* Related resource identifier
|
|
1279
|
+
*/
|
|
1280
|
+
data: AgentDelegation.Data | null;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
export namespace AgentDelegation {
|
|
1284
|
+
/**
|
|
1285
|
+
* Related resource identifier
|
|
1286
|
+
*/
|
|
1287
|
+
export interface Data {
|
|
1288
|
+
id: string;
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* Resource type
|
|
1292
|
+
*/
|
|
1293
|
+
type: string;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Customer party the invitation was accepted on (null until accept)
|
|
1299
|
+
*/
|
|
1300
|
+
export interface CustomerParty {
|
|
1301
|
+
/**
|
|
1302
|
+
* Related resource identifier
|
|
1303
|
+
*/
|
|
1304
|
+
data: CustomerParty.Data | null;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
export namespace CustomerParty {
|
|
1308
|
+
/**
|
|
1309
|
+
* Related resource identifier
|
|
1310
|
+
*/
|
|
1311
|
+
export interface Data {
|
|
1312
|
+
id: string;
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* Resource type
|
|
1316
|
+
*/
|
|
1317
|
+
type: string;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Developer party that issued the invitation
|
|
1323
|
+
*/
|
|
1324
|
+
export interface DeveloperParty {
|
|
1325
|
+
/**
|
|
1326
|
+
* Related resource identifier
|
|
1327
|
+
*/
|
|
1328
|
+
data: DeveloperParty.Data;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
export namespace DeveloperParty {
|
|
1332
|
+
/**
|
|
1333
|
+
* Related resource identifier
|
|
1334
|
+
*/
|
|
1335
|
+
export interface Data {
|
|
1336
|
+
id: string;
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* Resource type
|
|
1340
|
+
*/
|
|
1341
|
+
type: string;
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
export interface Meta {
|
|
1348
|
+
pagination: Meta.Pagination;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
export namespace Meta {
|
|
1352
|
+
export interface Pagination {
|
|
1353
|
+
hasMore: boolean;
|
|
1354
|
+
|
|
1355
|
+
nextCursor: string | null;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
export interface AgentRemoveResponse {
|
|
1361
|
+
data: AgentRemoveResponse.Data;
|
|
1362
|
+
|
|
1363
|
+
meta: AgentRemoveResponse.Meta;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
export namespace AgentRemoveResponse {
|
|
1367
|
+
export interface Data {
|
|
1368
|
+
/**
|
|
1369
|
+
* Resource ID
|
|
1370
|
+
*/
|
|
1371
|
+
id: string;
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Resource attributes
|
|
1375
|
+
*/
|
|
1376
|
+
attributes: Data.Attributes;
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Resource relationships
|
|
1380
|
+
*/
|
|
1381
|
+
relationships: Data.Relationships;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Resource type
|
|
1385
|
+
*/
|
|
1386
|
+
type: string;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
export namespace Data {
|
|
1390
|
+
/**
|
|
1391
|
+
* Resource attributes
|
|
1392
|
+
*/
|
|
1393
|
+
export interface Attributes {
|
|
1394
|
+
/**
|
|
1395
|
+
* When this agent was created
|
|
1396
|
+
*/
|
|
1397
|
+
createdAt: string | null;
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* User who created this agent (usr\_\*)
|
|
1401
|
+
*/
|
|
1402
|
+
createdBy: string | null;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Agent description
|
|
1406
|
+
*/
|
|
1407
|
+
description: string | null;
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* Per-transaction spend cap for actions this agent initiates on its owner's party.
|
|
1411
|
+
* null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
|
|
1412
|
+
*/
|
|
1413
|
+
limits: Attributes.Limits | null;
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* Agent display name
|
|
1417
|
+
*/
|
|
1418
|
+
name: string;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Observability stats (null when unavailable)
|
|
1422
|
+
*/
|
|
1423
|
+
observability: Attributes.Observability | null;
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Agent status
|
|
1427
|
+
*/
|
|
1428
|
+
status: 'ACTIVE' | 'REVOKED';
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* When this agent was last updated
|
|
1432
|
+
*/
|
|
1433
|
+
updatedAt: string | null;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* User who last updated this agent (usr\_\*)
|
|
1437
|
+
*/
|
|
1438
|
+
updatedBy: string | null;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
export namespace Attributes {
|
|
1442
|
+
/**
|
|
1443
|
+
* Per-transaction spend cap for actions this agent initiates on its owner's party.
|
|
1444
|
+
* null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
|
|
1445
|
+
*/
|
|
1446
|
+
export interface Limits {
|
|
1447
|
+
/**
|
|
1448
|
+
* Positive per-transaction limit in cents. null means no per-payment limit.
|
|
1449
|
+
*/
|
|
1450
|
+
perTransaction?: number | null;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Observability stats (null when unavailable)
|
|
1455
|
+
*/
|
|
1456
|
+
export interface Observability {
|
|
1457
|
+
/**
|
|
1458
|
+
* Errors in last 24h
|
|
1459
|
+
*/
|
|
1460
|
+
errorCount: number;
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Last activity timestamp
|
|
1464
|
+
*/
|
|
1465
|
+
lastActiveAt: string | null;
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* Requests in last 24h
|
|
1469
|
+
*/
|
|
1470
|
+
requestCount: number;
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* Resource relationships
|
|
1476
|
+
*/
|
|
1477
|
+
export interface Relationships {
|
|
1478
|
+
/**
|
|
1479
|
+
* Party that owns the agent
|
|
1480
|
+
*/
|
|
1481
|
+
party: Relationships.Party;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
export namespace Relationships {
|
|
1485
|
+
/**
|
|
1486
|
+
* Party that owns the agent
|
|
1487
|
+
*/
|
|
1488
|
+
export interface Party {
|
|
1489
|
+
/**
|
|
1490
|
+
* Related resource identifier
|
|
1491
|
+
*/
|
|
1492
|
+
data: Party.Data;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
export namespace Party {
|
|
1496
|
+
/**
|
|
1497
|
+
* Related resource identifier
|
|
1498
|
+
*/
|
|
1499
|
+
export interface Data {
|
|
1500
|
+
id: string;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* Resource type
|
|
1504
|
+
*/
|
|
1505
|
+
type: string;
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
export interface Meta {
|
|
1512
|
+
/**
|
|
1513
|
+
* Indicates the resource was deleted
|
|
1514
|
+
*/
|
|
1515
|
+
deleted: true;
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
export interface AgentCreateParams {
|
|
1520
|
+
/**
|
|
1521
|
+
* Body param: Agent display name
|
|
1522
|
+
*/
|
|
1523
|
+
name: string;
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Header param: Unique key for idempotent request handling. If a request with the
|
|
1527
|
+
* same key was already processed, the original response is returned.
|
|
1528
|
+
*/
|
|
1529
|
+
'Idempotency-Key': string;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Body param: Agent description
|
|
1533
|
+
*/
|
|
1534
|
+
description?: string;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Body param: Optional per-transaction limit for the agent
|
|
1538
|
+
*/
|
|
1539
|
+
limits?: AgentCreateParams.Limits;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
1543
|
+
*/
|
|
1544
|
+
'X-Agent-ID'?: string;
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
1548
|
+
* for agent observability.
|
|
1549
|
+
*/
|
|
1550
|
+
'X-Instance-ID'?: string;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
export namespace AgentCreateParams {
|
|
1554
|
+
/**
|
|
1555
|
+
* Optional per-transaction limit for the agent
|
|
1556
|
+
*/
|
|
1557
|
+
export interface Limits {
|
|
1558
|
+
/**
|
|
1559
|
+
* Positive per-transaction limit in cents. null means no per-payment limit.
|
|
1560
|
+
*/
|
|
1561
|
+
perTransaction?: number | null;
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
export interface AgentUpdateParams {
|
|
1566
|
+
/**
|
|
1567
|
+
* Header param: Unique key for idempotent request handling. If a request with the
|
|
1568
|
+
* same key was already processed, the original response is returned.
|
|
1569
|
+
*/
|
|
1570
|
+
'Idempotency-Key': string;
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* Body param: Updated description
|
|
1574
|
+
*/
|
|
1575
|
+
description?: string | null;
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* Body param: Per-transaction spend cap. null clears the limit; omitted leaves it
|
|
1579
|
+
* unchanged.
|
|
1580
|
+
*/
|
|
1581
|
+
limits?: AgentUpdateParams.Limits | null;
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Body param: Updated name for the agent
|
|
1585
|
+
*/
|
|
1586
|
+
name?: string | null;
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* Body param: Updated status
|
|
1590
|
+
*/
|
|
1591
|
+
status?: 'ACTIVE' | 'REVOKED' | null;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
1595
|
+
*/
|
|
1596
|
+
'X-Agent-ID'?: string;
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
1600
|
+
* for agent observability.
|
|
1601
|
+
*/
|
|
1602
|
+
'X-Instance-ID'?: string;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
export namespace AgentUpdateParams {
|
|
1606
|
+
/**
|
|
1607
|
+
* Per-transaction spend cap. null clears the limit; omitted leaves it unchanged.
|
|
1608
|
+
*/
|
|
1609
|
+
export interface Limits {
|
|
1610
|
+
/**
|
|
1611
|
+
* Positive per-transaction limit in cents. null means no per-payment limit.
|
|
1612
|
+
*/
|
|
1613
|
+
perTransaction?: number | null;
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
export interface AgentListParams {
|
|
1618
|
+
/**
|
|
1619
|
+
* Query param: Cursor for the next page
|
|
1620
|
+
*/
|
|
1621
|
+
cursor?: string;
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* Query param: Maximum number of agents to return
|
|
1625
|
+
*/
|
|
1626
|
+
limit?: number;
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* Query param: Filter by status
|
|
1630
|
+
*/
|
|
1631
|
+
status?: 'ACTIVE' | 'REVOKED';
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
1635
|
+
*/
|
|
1636
|
+
'X-Agent-ID'?: string;
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
1640
|
+
* for agent observability.
|
|
1641
|
+
*/
|
|
1642
|
+
'X-Instance-ID'?: string;
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
export interface AgentCreateInvitationsParams {
|
|
1646
|
+
/**
|
|
1647
|
+
* Body param: Per-agent delegation requests (1-50)
|
|
1648
|
+
*/
|
|
1649
|
+
agents: Array<AgentCreateInvitationsParams.Agent>;
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* Body param: Email address of the customer to invite
|
|
1653
|
+
*/
|
|
1654
|
+
customerEmail: string;
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Header param: Unique key for idempotent request handling. If a request with the
|
|
1658
|
+
* same key was already processed, the original response is returned.
|
|
1659
|
+
*/
|
|
1660
|
+
'Idempotency-Key': string;
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Body param: Optional explicit expiry timestamp; server defaults to 7 days
|
|
1664
|
+
*/
|
|
1665
|
+
expiresAt?: string;
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
1669
|
+
*/
|
|
1670
|
+
'X-Agent-ID'?: string;
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
1674
|
+
* for agent observability.
|
|
1675
|
+
*/
|
|
1676
|
+
'X-Instance-ID'?: string;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
export namespace AgentCreateInvitationsParams {
|
|
1680
|
+
export interface Agent {
|
|
1681
|
+
agentId: string;
|
|
1682
|
+
|
|
1683
|
+
permissions: Array<string>;
|
|
1684
|
+
|
|
1685
|
+
limits?: Agent.Limits;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
export namespace Agent {
|
|
1689
|
+
export interface Limits {
|
|
1690
|
+
/**
|
|
1691
|
+
* Per-transaction cap, integer cents (USD).
|
|
1692
|
+
*/
|
|
1693
|
+
perTransaction?: number | null;
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
export interface AgentGetParams {
|
|
1699
|
+
/**
|
|
1700
|
+
* Agent ID (agt_xxx) identifying which agent is making the request.
|
|
1701
|
+
*/
|
|
1702
|
+
'X-Agent-ID'?: string;
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* Required when X-Agent-ID is present. Session or conversation ID for agent
|
|
1706
|
+
* observability.
|
|
1707
|
+
*/
|
|
1708
|
+
'X-Instance-ID'?: string;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
export interface AgentListInvitationsForDeveloperParams {
|
|
1712
|
+
/**
|
|
1713
|
+
* Query param
|
|
1714
|
+
*/
|
|
1715
|
+
agentId?: string;
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* Query param
|
|
1719
|
+
*/
|
|
1720
|
+
cursor?: string;
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* Query param
|
|
1724
|
+
*/
|
|
1725
|
+
customerEmail?: string;
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* Query param
|
|
1729
|
+
*/
|
|
1730
|
+
limit?: number;
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* Query param
|
|
1734
|
+
*/
|
|
1735
|
+
status?: Array<'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED'>;
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
1739
|
+
*/
|
|
1740
|
+
'X-Agent-ID'?: string;
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
1744
|
+
* for agent observability.
|
|
1745
|
+
*/
|
|
1746
|
+
'X-Instance-ID'?: string;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
export interface AgentRemoveParams {
|
|
1750
|
+
/**
|
|
1751
|
+
* Unique key for idempotent request handling. If a request with the same key was
|
|
1752
|
+
* already processed, the original response is returned.
|
|
1753
|
+
*/
|
|
1754
|
+
'Idempotency-Key': string;
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* Agent ID (agt_xxx) identifying which agent is making the request.
|
|
1758
|
+
*/
|
|
1759
|
+
'X-Agent-ID'?: string;
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* Required when X-Agent-ID is present. Session or conversation ID for agent
|
|
1763
|
+
* observability.
|
|
1764
|
+
*/
|
|
1765
|
+
'X-Instance-ID'?: string;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
export declare namespace Agents {
|
|
1769
|
+
export {
|
|
1770
|
+
type AgentCreateResponse as AgentCreateResponse,
|
|
1771
|
+
type AgentUpdateResponse as AgentUpdateResponse,
|
|
1772
|
+
type AgentListResponse as AgentListResponse,
|
|
1773
|
+
type AgentCreateInvitationsResponse as AgentCreateInvitationsResponse,
|
|
1774
|
+
type AgentGetResponse as AgentGetResponse,
|
|
1775
|
+
type AgentListInvitationsForDeveloperResponse as AgentListInvitationsForDeveloperResponse,
|
|
1776
|
+
type AgentRemoveResponse as AgentRemoveResponse,
|
|
1777
|
+
type AgentCreateParams as AgentCreateParams,
|
|
1778
|
+
type AgentUpdateParams as AgentUpdateParams,
|
|
1779
|
+
type AgentListParams as AgentListParams,
|
|
1780
|
+
type AgentCreateInvitationsParams as AgentCreateInvitationsParams,
|
|
1781
|
+
type AgentGetParams as AgentGetParams,
|
|
1782
|
+
type AgentListInvitationsForDeveloperParams as AgentListInvitationsForDeveloperParams,
|
|
1783
|
+
type AgentRemoveParams as AgentRemoveParams,
|
|
1784
|
+
};
|
|
1785
|
+
}
|