@composio/client 0.1.0-alpha.7 → 0.1.0-alpha.71
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 +977 -0
- package/LICENSE +1 -1
- package/README.md +22 -35
- package/api-promise.js +2 -15
- package/api-promise.js.map +1 -1
- package/client.d.mts +85 -43
- package/client.d.mts.map +1 -1
- package/client.d.ts +85 -43
- package/client.d.ts.map +1 -1
- package/client.js +162 -108
- package/client.js.map +1 -1
- package/client.mjs +144 -67
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +0 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +0 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +4 -14
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +1 -11
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +0 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +0 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/error.js +2 -15
- package/error.js.map +1 -1
- package/internal/builtin-types.d.mts +0 -2
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts +0 -2
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/detect-platform.js +3 -3
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +3 -3
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +2 -2
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts +1 -2
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts +1 -2
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +7 -5
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +7 -5
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts +0 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +0 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +6 -2
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +1 -0
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +16 -19
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts +1 -0
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +22 -21
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +43 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +43 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shim-types.d.mts +11 -22
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +11 -22
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/{resources/org.mjs → internal/shim-types.mjs} +2 -2
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +2 -2
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +2 -2
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +5 -6
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -2
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +1 -2
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +5 -5
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +4 -3
- package/internal/to-file.mjs.map +1 -1
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +12 -11
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +12 -11
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +1 -3
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +1 -3
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +17 -7
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +13 -4
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +12 -7
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +12 -7
- package/internal/utils/base64.mjs.map +1 -1
- 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.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts +0 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +0 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +6 -5
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +4 -3
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +28 -7
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +27 -6
- package/internal/utils/path.mjs.map +1 -1
- 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.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/uuid.d.mts +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +1 -2
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +1 -2
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts +2 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +2 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +11 -8
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +5 -3
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +8 -20
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +14 -11
- package/resource.js +2 -15
- package/resource.js.map +1 -1
- package/resources/auth-configs.d.mts +511 -54
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +511 -54
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +79 -6
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +79 -6
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/cli/cli.d.mts +120 -0
- package/resources/cli/cli.d.mts.map +1 -0
- package/resources/cli/cli.d.ts +120 -0
- package/resources/cli/cli.d.ts.map +1 -0
- package/resources/cli/cli.js +36 -0
- package/resources/cli/cli.js.map +1 -0
- package/resources/cli/cli.mjs +31 -0
- package/resources/cli/cli.mjs.map +1 -0
- package/resources/cli/index.d.mts +3 -0
- package/resources/cli/index.d.mts.map +1 -0
- package/resources/cli/index.d.ts +3 -0
- package/resources/cli/index.d.ts.map +1 -0
- package/resources/cli/index.js +9 -0
- package/resources/cli/index.js.map +1 -0
- package/resources/cli/index.mjs +4 -0
- package/resources/cli/index.mjs.map +1 -0
- package/resources/cli/realtime.d.mts +56 -0
- package/resources/cli/realtime.d.mts.map +1 -0
- package/resources/cli/realtime.d.ts +56 -0
- package/resources/cli/realtime.d.ts.map +1 -0
- package/resources/cli/realtime.js +25 -0
- package/resources/cli/realtime.js.map +1 -0
- package/resources/cli/realtime.mjs +21 -0
- package/resources/cli/realtime.mjs.map +1 -0
- package/resources/cli.d.mts +1 -123
- package/resources/cli.d.mts.map +1 -1
- package/resources/cli.d.ts +1 -123
- package/resources/cli.d.ts.map +1 -1
- package/resources/cli.js +2 -14
- package/resources/cli.js.map +1 -1
- package/resources/cli.mjs +1 -12
- package/resources/cli.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +9882 -231
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +9882 -231
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +124 -7
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +124 -7
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +152 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +152 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +42 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +38 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +13 -12
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -12
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +14 -12
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -6
- package/resources/index.mjs.map +1 -1
- package/resources/link.d.mts +2273 -0
- package/resources/link.d.mts.map +1 -0
- package/resources/link.d.ts +2273 -0
- package/resources/link.d.ts.map +1 -0
- package/resources/link.js +19 -0
- package/resources/link.js.map +1 -0
- package/resources/link.mjs +15 -0
- package/resources/link.mjs.map +1 -0
- package/resources/logs/index.d.mts +4 -0
- package/resources/logs/index.d.mts.map +1 -0
- package/resources/logs/index.d.ts +4 -0
- package/resources/logs/index.d.ts.map +1 -0
- package/resources/logs/index.js +11 -0
- package/resources/logs/index.js.map +1 -0
- package/resources/logs/index.mjs +5 -0
- package/resources/logs/index.mjs.map +1 -0
- package/resources/logs/logs.d.mts +14 -0
- package/resources/logs/logs.d.mts.map +1 -0
- package/resources/logs/logs.d.ts +14 -0
- package/resources/logs/logs.d.ts.map +1 -0
- package/resources/logs/logs.js +21 -0
- package/resources/logs/logs.js.map +1 -0
- package/resources/logs/logs.mjs +16 -0
- package/resources/logs/logs.mjs.map +1 -0
- package/resources/logs/tools.d.mts +173 -0
- package/resources/logs/tools.d.mts.map +1 -0
- package/resources/logs/tools.d.ts +173 -0
- package/resources/logs/tools.d.ts.map +1 -0
- package/resources/logs/tools.js +35 -0
- package/resources/logs/tools.js.map +1 -0
- package/resources/logs/tools.mjs +31 -0
- package/resources/logs/tools.mjs.map +1 -0
- package/resources/logs/triggers.d.mts +161 -0
- package/resources/logs/triggers.d.mts.map +1 -0
- package/resources/logs/triggers.d.ts +161 -0
- package/resources/logs/triggers.d.ts.map +1 -0
- package/resources/logs/triggers.js +36 -0
- package/resources/logs/triggers.js.map +1 -0
- package/resources/logs/triggers.mjs +32 -0
- package/resources/logs/triggers.mjs.map +1 -0
- package/resources/logs.d.mts +2 -0
- package/resources/logs.d.mts.map +1 -0
- package/resources/logs.d.ts +2 -0
- package/resources/logs.d.ts.map +1 -0
- package/resources/logs.js +6 -0
- package/resources/logs.js.map +1 -0
- package/resources/{auth.mjs → logs.mjs} +2 -2
- package/resources/logs.mjs.map +1 -0
- package/resources/mcp/custom.d.mts +105 -0
- package/resources/mcp/custom.d.mts.map +1 -0
- package/resources/mcp/custom.d.ts +105 -0
- package/resources/mcp/custom.d.ts.map +1 -0
- package/resources/mcp/custom.js +29 -0
- package/resources/mcp/custom.js.map +1 -0
- package/resources/mcp/custom.mjs +25 -0
- package/resources/mcp/custom.mjs.map +1 -0
- package/resources/mcp/generate.d.mts +65 -0
- package/resources/mcp/generate.d.mts.map +1 -0
- package/resources/mcp/generate.d.ts +65 -0
- package/resources/mcp/generate.d.ts.map +1 -0
- package/resources/mcp/generate.js +32 -0
- package/resources/mcp/generate.js.map +1 -0
- package/resources/mcp/generate.mjs +28 -0
- package/resources/mcp/generate.mjs.map +1 -0
- package/resources/mcp/index.d.mts +3 -2
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts +3 -2
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.js +5 -3
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs +2 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +450 -175
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +450 -175
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +95 -42
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +94 -19
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/mcp.js +2 -15
- package/resources/mcp.js.map +1 -1
- package/resources/migration.d.mts +35 -0
- package/resources/migration.d.mts.map +1 -0
- package/resources/migration.d.ts +35 -0
- package/resources/migration.d.ts.map +1 -0
- package/resources/migration.js +20 -0
- package/resources/migration.js.map +1 -0
- package/resources/migration.mjs +16 -0
- package/resources/migration.mjs.map +1 -0
- package/resources/project/config.d.mts +71 -0
- package/resources/project/config.d.mts.map +1 -0
- package/resources/project/config.d.ts +71 -0
- package/resources/project/config.d.ts.map +1 -0
- package/resources/project/config.js +33 -0
- package/resources/project/config.js.map +1 -0
- package/resources/project/config.mjs +29 -0
- package/resources/project/config.mjs.map +1 -0
- package/resources/project/index.d.mts +3 -0
- package/resources/project/index.d.mts.map +1 -0
- package/resources/project/index.d.ts +3 -0
- package/resources/project/index.d.ts.map +1 -0
- package/resources/project/index.js +9 -0
- package/resources/project/index.js.map +1 -0
- package/resources/project/index.mjs +4 -0
- package/resources/project/index.mjs.map +1 -0
- package/resources/project/project.d.mts +10 -0
- package/resources/project/project.d.mts.map +1 -0
- package/resources/project/project.d.ts +10 -0
- package/resources/project/project.d.ts.map +1 -0
- package/resources/project/project.js +17 -0
- package/resources/project/project.js.map +1 -0
- package/resources/project/project.mjs +12 -0
- package/resources/project/project.mjs.map +1 -0
- package/resources/{org/project.d.mts.map → project.d.mts.map} +1 -1
- package/resources/{org/project.d.ts.map → project.d.ts.map} +1 -1
- package/resources/project.js +6 -0
- package/resources/project.js.map +1 -0
- package/resources/project.mjs.map +1 -0
- package/resources/tool-router/index.d.mts +3 -0
- package/resources/tool-router/index.d.mts.map +1 -0
- package/resources/tool-router/index.d.ts +3 -0
- package/resources/tool-router/index.d.ts.map +1 -0
- package/resources/tool-router/index.js +9 -0
- package/resources/tool-router/index.js.map +1 -0
- package/resources/tool-router/index.mjs +4 -0
- package/resources/tool-router/index.mjs.map +1 -0
- package/resources/tool-router/session/files.d.mts +205 -0
- package/resources/tool-router/session/files.d.mts.map +1 -0
- package/resources/tool-router/session/files.d.ts +205 -0
- package/resources/tool-router/session/files.d.ts.map +1 -0
- package/resources/tool-router/session/files.js +98 -0
- package/resources/tool-router/session/files.js.map +1 -0
- package/resources/tool-router/session/files.mjs +94 -0
- package/resources/tool-router/session/files.mjs.map +1 -0
- package/resources/tool-router/session/index.d.mts +3 -0
- package/resources/tool-router/session/index.d.mts.map +1 -0
- package/resources/tool-router/session/index.d.ts +3 -0
- package/resources/tool-router/session/index.d.ts.map +1 -0
- package/resources/{auth → tool-router/session}/index.js +3 -3
- package/resources/tool-router/session/index.js.map +1 -0
- package/resources/tool-router/session/index.mjs +4 -0
- package/resources/tool-router/session/index.mjs.map +1 -0
- package/resources/tool-router/session/session.d.mts +4024 -0
- package/resources/tool-router/session/session.d.mts.map +1 -0
- package/resources/tool-router/session/session.d.ts +4024 -0
- package/resources/tool-router/session/session.d.ts.map +1 -0
- package/resources/tool-router/session/session.js +224 -0
- package/resources/tool-router/session/session.js.map +1 -0
- package/resources/tool-router/session/session.mjs +219 -0
- package/resources/tool-router/session/session.mjs.map +1 -0
- package/resources/tool-router/session.d.mts +2 -0
- package/resources/tool-router/session.d.mts.map +1 -0
- package/resources/tool-router/session.d.ts +2 -0
- package/resources/tool-router/session.d.ts.map +1 -0
- package/resources/tool-router/session.js +6 -0
- package/resources/tool-router/session.js.map +1 -0
- package/resources/tool-router/session.mjs +3 -0
- package/resources/tool-router/session.mjs.map +1 -0
- package/resources/tool-router/tool-router.d.mts +94 -0
- package/resources/tool-router/tool-router.d.mts.map +1 -0
- package/resources/tool-router/tool-router.d.ts +94 -0
- package/resources/tool-router/tool-router.d.ts.map +1 -0
- package/resources/tool-router/tool-router.js +49 -0
- package/resources/tool-router/tool-router.js.map +1 -0
- package/resources/tool-router/tool-router.mjs +44 -0
- package/resources/tool-router/tool-router.mjs.map +1 -0
- package/resources/tool-router.d.mts +2 -0
- package/resources/tool-router.d.mts.map +1 -0
- package/resources/tool-router.d.ts +2 -0
- package/resources/tool-router.d.ts.map +1 -0
- package/resources/tool-router.js +6 -0
- package/resources/tool-router.js.map +1 -0
- package/resources/tool-router.mjs +3 -0
- package/resources/tool-router.mjs.map +1 -0
- package/resources/toolkits.d.mts +322 -6
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +322 -6
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +25 -4
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +25 -4
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +1407 -41
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +1407 -41
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +88 -9
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +88 -9
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +2 -2
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +2 -2
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js +3 -3
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/manage.d.mts +55 -0
- package/resources/trigger-instances/manage.d.mts.map +1 -0
- package/resources/trigger-instances/manage.d.ts +55 -0
- package/resources/trigger-instances/manage.d.ts.map +1 -0
- package/resources/trigger-instances/manage.js +45 -0
- package/resources/trigger-instances/manage.js.map +1 -0
- package/resources/trigger-instances/manage.mjs +41 -0
- package/resources/trigger-instances/manage.mjs.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.mts +190 -43
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +190 -43
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +36 -37
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +35 -14
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/trigger-instances.js +2 -15
- package/resources/trigger-instances.js.map +1 -1
- package/resources/triggers-types.d.mts +160 -12
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +160 -12
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +19 -4
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +19 -4
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +239 -131
- package/src/core/resource.ts +1 -1
- package/src/internal/detect-platform.ts +3 -3
- package/src/internal/headers.ts +9 -8
- package/src/internal/parse.ts +6 -0
- package/src/internal/qs/formats.ts +2 -1
- package/src/internal/qs/stringify.ts +17 -20
- package/src/internal/qs/utils.ts +14 -14
- package/src/internal/request-options.ts +54 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +2 -2
- package/src/internal/to-file.ts +5 -3
- package/src/internal/types.ts +13 -12
- package/src/internal/uploads.ts +17 -5
- package/src/internal/utils/base64.ts +13 -10
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +3 -2
- package/src/internal/utils/path.ts +33 -8
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/uuid.ts +1 -3
- package/src/internal/utils/values.ts +6 -3
- package/src/internal/utils.ts +1 -0
- package/src/resources/auth-configs.ts +587 -73
- package/src/resources/cli/cli.ts +163 -0
- package/src/resources/cli/index.ts +15 -0
- package/src/resources/cli/realtime.ts +75 -0
- package/src/resources/cli.ts +1 -164
- package/src/resources/connected-accounts.ts +18489 -448
- package/src/resources/files.ts +197 -0
- package/src/resources/index.ts +30 -28
- package/src/resources/link.ts +4266 -0
- package/src/resources/logs/index.ts +10 -0
- package/src/resources/logs/logs.ts +31 -0
- package/src/resources/logs/tools.ts +239 -0
- package/src/resources/logs/triggers.ts +241 -0
- package/src/resources/{auth.ts → logs.ts} +1 -1
- package/src/resources/mcp/custom.ts +125 -0
- package/src/resources/mcp/generate.ts +77 -0
- package/src/resources/mcp/index.ts +3 -3
- package/src/resources/mcp/mcp.ts +490 -203
- package/src/resources/migration.ts +49 -0
- package/src/resources/project/config.ts +110 -0
- package/src/resources/project/index.ts +9 -0
- package/src/resources/project/project.ts +20 -0
- package/src/resources/tool-router/index.ts +33 -0
- package/src/resources/tool-router/session/files.ts +284 -0
- package/src/resources/tool-router/session/index.ts +39 -0
- package/src/resources/tool-router/session/session.ts +5034 -0
- package/src/resources/{org.ts → tool-router/session.ts} +1 -1
- package/src/resources/tool-router/tool-router.ts +168 -0
- package/src/resources/tool-router.ts +3 -0
- package/src/resources/toolkits.ts +377 -10
- package/src/resources/tools.ts +2176 -63
- package/src/resources/trigger-instances/index.ts +5 -9
- package/src/resources/trigger-instances/manage.ts +75 -0
- package/src/resources/trigger-instances/trigger-instances.ts +206 -69
- package/src/resources/triggers-types.ts +168 -16
- package/src/version.ts +1 -1
- package/uploads.js +2 -15
- package/uploads.js.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/internal/shims/crypto.d.mts +0 -13
- package/internal/shims/crypto.d.mts.map +0 -1
- package/internal/shims/crypto.d.ts +0 -13
- package/internal/shims/crypto.d.ts.map +0 -1
- package/internal/shims/crypto.js +0 -13
- package/internal/shims/crypto.js.map +0 -1
- package/internal/shims/crypto.mjs +0 -9
- package/internal/shims/crypto.mjs.map +0 -1
- package/internal/shims/file.d.mts +0 -23
- package/internal/shims/file.d.mts.map +0 -1
- package/internal/shims/file.d.ts +0 -23
- package/internal/shims/file.d.ts.map +0 -1
- package/internal/shims/file.js +0 -16
- package/internal/shims/file.js.map +0 -1
- package/internal/shims/file.mjs +0 -12
- package/internal/shims/file.mjs.map +0 -1
- package/internal/shims/getBuiltinModule.d.mts +0 -11
- package/internal/shims/getBuiltinModule.d.mts.map +0 -1
- package/internal/shims/getBuiltinModule.d.ts +0 -11
- package/internal/shims/getBuiltinModule.d.ts.map +0 -1
- package/internal/shims/getBuiltinModule.js +0 -71
- package/internal/shims/getBuiltinModule.js.map +0 -1
- package/internal/shims/getBuiltinModule.mjs +0 -67
- package/internal/shims/getBuiltinModule.mjs.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.js +0 -5
- package/internal/shims/nullGetBuiltinModule.js.map +0 -1
- package/internal/shims/nullGetBuiltinModule.mjs +0 -2
- package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
- package/resources/action-execution.d.mts +0 -155
- package/resources/action-execution.d.mts.map +0 -1
- package/resources/action-execution.d.ts +0 -155
- package/resources/action-execution.d.ts.map +0 -1
- package/resources/action-execution.js +0 -19
- package/resources/action-execution.js.map +0 -1
- package/resources/action-execution.mjs +0 -15
- package/resources/action-execution.mjs.map +0 -1
- package/resources/auth/auth.d.mts +0 -10
- package/resources/auth/auth.d.mts.map +0 -1
- package/resources/auth/auth.d.ts +0 -10
- package/resources/auth/auth.d.ts.map +0 -1
- package/resources/auth/auth.js +0 -39
- package/resources/auth/auth.js.map +0 -1
- package/resources/auth/auth.mjs +0 -12
- package/resources/auth/auth.mjs.map +0 -1
- package/resources/auth/index.d.mts +0 -3
- package/resources/auth/index.d.mts.map +0 -1
- package/resources/auth/index.d.ts +0 -3
- package/resources/auth/index.d.ts.map +0 -1
- package/resources/auth/index.js.map +0 -1
- package/resources/auth/index.mjs +0 -4
- package/resources/auth/index.mjs.map +0 -1
- package/resources/auth/session.d.mts +0 -75
- package/resources/auth/session.d.mts.map +0 -1
- package/resources/auth/session.d.ts +0 -75
- package/resources/auth/session.d.ts.map +0 -1
- package/resources/auth/session.js +0 -12
- package/resources/auth/session.js.map +0 -1
- package/resources/auth/session.mjs +0 -8
- package/resources/auth/session.mjs.map +0 -1
- package/resources/auth.d.mts +0 -2
- package/resources/auth.d.mts.map +0 -1
- package/resources/auth.d.ts +0 -2
- package/resources/auth.d.ts.map +0 -1
- package/resources/auth.js +0 -19
- package/resources/auth.js.map +0 -1
- package/resources/auth.mjs.map +0 -1
- package/resources/mcp/command.d.mts +0 -34
- package/resources/mcp/command.d.mts.map +0 -1
- package/resources/mcp/command.d.ts +0 -34
- package/resources/mcp/command.d.ts.map +0 -1
- package/resources/mcp/command.js +0 -12
- package/resources/mcp/command.js.map +0 -1
- package/resources/mcp/command.mjs +0 -8
- package/resources/mcp/command.mjs.map +0 -1
- package/resources/org/api-key.d.mts +0 -17
- package/resources/org/api-key.d.mts.map +0 -1
- package/resources/org/api-key.d.ts +0 -17
- package/resources/org/api-key.d.ts.map +0 -1
- package/resources/org/api-key.js +0 -15
- package/resources/org/api-key.js.map +0 -1
- package/resources/org/api-key.mjs +0 -11
- package/resources/org/api-key.mjs.map +0 -1
- package/resources/org/index.d.mts +0 -4
- package/resources/org/index.d.mts.map +0 -1
- package/resources/org/index.d.ts +0 -4
- package/resources/org/index.d.ts.map +0 -1
- package/resources/org/index.js +0 -11
- package/resources/org/index.js.map +0 -1
- package/resources/org/index.mjs +0 -5
- package/resources/org/index.mjs.map +0 -1
- package/resources/org/org.d.mts +0 -14
- package/resources/org/org.d.mts.map +0 -1
- package/resources/org/org.d.ts +0 -14
- package/resources/org/org.d.ts.map +0 -1
- package/resources/org/org.js +0 -43
- package/resources/org/org.js.map +0 -1
- package/resources/org/org.mjs +0 -16
- package/resources/org/org.mjs.map +0 -1
- package/resources/org/project/api-keys.d.mts +0 -109
- package/resources/org/project/api-keys.d.mts.map +0 -1
- package/resources/org/project/api-keys.d.ts +0 -109
- package/resources/org/project/api-keys.d.ts.map +0 -1
- package/resources/org/project/api-keys.js +0 -23
- package/resources/org/project/api-keys.js.map +0 -1
- package/resources/org/project/api-keys.mjs +0 -19
- package/resources/org/project/api-keys.mjs.map +0 -1
- package/resources/org/project/index.d.mts +0 -5
- package/resources/org/project/index.d.mts.map +0 -1
- package/resources/org/project/index.d.ts +0 -5
- package/resources/org/project/index.d.ts.map +0 -1
- package/resources/org/project/index.js +0 -13
- package/resources/org/project/index.js.map +0 -1
- package/resources/org/project/index.mjs +0 -6
- package/resources/org/project/index.mjs.map +0 -1
- package/resources/org/project/project.d.mts +0 -90
- package/resources/org/project/project.d.mts.map +0 -1
- package/resources/org/project/project.d.ts +0 -90
- package/resources/org/project/project.d.ts.map +0 -1
- package/resources/org/project/project.js +0 -60
- package/resources/org/project/project.js.map +0 -1
- package/resources/org/project/project.mjs +0 -33
- package/resources/org/project/project.mjs.map +0 -1
- package/resources/org/project/trigger.d.mts +0 -51
- package/resources/org/project/trigger.d.mts.map +0 -1
- package/resources/org/project/trigger.d.ts +0 -51
- package/resources/org/project/trigger.d.ts.map +0 -1
- package/resources/org/project/trigger.js +0 -16
- package/resources/org/project/trigger.js.map +0 -1
- package/resources/org/project/trigger.mjs +0 -12
- package/resources/org/project/trigger.mjs.map +0 -1
- package/resources/org/project/webhook.d.mts +0 -92
- package/resources/org/project/webhook.d.mts.map +0 -1
- package/resources/org/project/webhook.d.ts +0 -92
- package/resources/org/project/webhook.d.ts.map +0 -1
- package/resources/org/project/webhook.js +0 -24
- package/resources/org/project/webhook.js.map +0 -1
- package/resources/org/project/webhook.mjs +0 -20
- package/resources/org/project/webhook.mjs.map +0 -1
- package/resources/org/project.js +0 -19
- package/resources/org/project.js.map +0 -1
- package/resources/org/project.mjs.map +0 -1
- package/resources/org.d.mts +0 -2
- package/resources/org.d.mts.map +0 -1
- package/resources/org.d.ts +0 -2
- package/resources/org.d.ts.map +0 -1
- package/resources/org.js +0 -19
- package/resources/org.js.map +0 -1
- package/resources/org.mjs.map +0 -1
- package/resources/team-members.d.mts +0 -57
- package/resources/team-members.d.mts.map +0 -1
- package/resources/team-members.d.ts +0 -57
- package/resources/team-members.d.ts.map +0 -1
- package/resources/team-members.js +0 -22
- package/resources/team-members.js.map +0 -1
- package/resources/team-members.mjs +0 -18
- package/resources/team-members.mjs.map +0 -1
- package/resources/trigger-instances/handle.d.mts +0 -25
- package/resources/trigger-instances/handle.d.mts.map +0 -1
- package/resources/trigger-instances/handle.d.ts +0 -25
- package/resources/trigger-instances/handle.d.ts.map +0 -1
- package/resources/trigger-instances/handle.js +0 -18
- package/resources/trigger-instances/handle.js.map +0 -1
- package/resources/trigger-instances/handle.mjs +0 -14
- package/resources/trigger-instances/handle.mjs.map +0 -1
- package/resources/trigger.d.mts +0 -73
- package/resources/trigger.d.mts.map +0 -1
- package/resources/trigger.d.ts +0 -73
- package/resources/trigger.d.ts.map +0 -1
- package/resources/trigger.js +0 -12
- package/resources/trigger.js.map +0 -1
- package/resources/trigger.mjs +0 -8
- package/resources/trigger.mjs.map +0 -1
- package/src/internal/shim-types.d.ts +0 -28
- package/src/internal/shims/crypto.ts +0 -18
- package/src/internal/shims/file.ts +0 -32
- package/src/internal/shims/getBuiltinModule.ts +0 -66
- package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
- package/src/resources/action-execution.ts +0 -244
- package/src/resources/auth/auth.ts +0 -15
- package/src/resources/auth/index.ts +0 -4
- package/src/resources/auth/session.ts +0 -127
- package/src/resources/mcp/command.ts +0 -47
- package/src/resources/org/api-key.ts +0 -30
- package/src/resources/org/index.ts +0 -12
- package/src/resources/org/org.ts +0 -39
- package/src/resources/org/project/api-keys.ts +0 -156
- package/src/resources/org/project/index.ts +0 -35
- package/src/resources/org/project/project.ts +0 -206
- package/src/resources/org/project/trigger.ts +0 -95
- package/src/resources/org/project/webhook.ts +0 -131
- package/src/resources/team-members.ts +0 -111
- package/src/resources/trigger-instances/handle.ts +0 -45
- package/src/resources/trigger.ts +0 -108
- /package/resources/{org/project.d.mts → project.d.mts} +0 -0
- /package/resources/{org/project.d.ts → project.d.ts} +0 -0
- /package/resources/{org/project.mjs → project.mjs} +0 -0
- /package/src/resources/{org/project.ts → project.ts} +0 -0
|
@@ -0,0 +1,173 @@
|
|
|
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
|
+
* Logging and monitoring
|
|
6
|
+
*/
|
|
7
|
+
export declare class Tools extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get detailed execution log by ID
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const tool = await client.logs.tools.retrieve('id');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Search and retrieve action execution logs
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const tools = await client.logs.tools.list({ cursor: 0 });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(body: ToolListParams, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
26
|
+
}
|
|
27
|
+
export interface ToolRetrieveResponse {
|
|
28
|
+
actionId: string;
|
|
29
|
+
actionLogId: string;
|
|
30
|
+
app: ToolRetrieveResponse.App;
|
|
31
|
+
connection: ToolRetrieveResponse.Connection;
|
|
32
|
+
endTime: number;
|
|
33
|
+
error: {
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
executionMetadata: {
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
payloadReceived: {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
response: {
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
session: {
|
|
46
|
+
[key: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
startTime: number;
|
|
49
|
+
status: 'success' | 'error' | 'warning' | 'info';
|
|
50
|
+
steps: Array<ToolRetrieveResponse.Step>;
|
|
51
|
+
totalDuration: string;
|
|
52
|
+
version: string;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace ToolRetrieveResponse {
|
|
55
|
+
interface App {
|
|
56
|
+
icon: string;
|
|
57
|
+
name: string;
|
|
58
|
+
uniqueId: string;
|
|
59
|
+
}
|
|
60
|
+
interface Connection {
|
|
61
|
+
id: string;
|
|
62
|
+
entity: string;
|
|
63
|
+
}
|
|
64
|
+
interface Step {
|
|
65
|
+
endTime: number;
|
|
66
|
+
message: string;
|
|
67
|
+
startTime: number;
|
|
68
|
+
status: 'success' | 'failure' | 'error';
|
|
69
|
+
totalDuration: number;
|
|
70
|
+
type: 'tool_execution' | 'fetch_connection_details';
|
|
71
|
+
logs?: Array<Step.Log>;
|
|
72
|
+
metadata?: Step.Metadata;
|
|
73
|
+
}
|
|
74
|
+
namespace Step {
|
|
75
|
+
interface Log {
|
|
76
|
+
level: string;
|
|
77
|
+
message: string;
|
|
78
|
+
request: Log.Request;
|
|
79
|
+
requestId: string;
|
|
80
|
+
response: Log.Response;
|
|
81
|
+
time: number;
|
|
82
|
+
type: 'network' | 'system';
|
|
83
|
+
}
|
|
84
|
+
namespace Log {
|
|
85
|
+
interface Request {
|
|
86
|
+
method: string;
|
|
87
|
+
url: string;
|
|
88
|
+
headers?: {
|
|
89
|
+
[key: string]: string;
|
|
90
|
+
};
|
|
91
|
+
json?: {
|
|
92
|
+
[key: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
params?: {
|
|
95
|
+
[key: string]: unknown;
|
|
96
|
+
};
|
|
97
|
+
timeout?: number;
|
|
98
|
+
}
|
|
99
|
+
interface Response {
|
|
100
|
+
status: number;
|
|
101
|
+
time: string;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
interface Metadata {
|
|
105
|
+
encryption?: string;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
export interface ToolListResponse {
|
|
110
|
+
data: Array<ToolListResponse.Data>;
|
|
111
|
+
nextCursor: number | null;
|
|
112
|
+
}
|
|
113
|
+
export declare namespace ToolListResponse {
|
|
114
|
+
interface Data {
|
|
115
|
+
id: string;
|
|
116
|
+
actionKey: string;
|
|
117
|
+
app: Data.App;
|
|
118
|
+
appKey: string;
|
|
119
|
+
connectedAccountId: string;
|
|
120
|
+
createdAt: number;
|
|
121
|
+
entityId: string;
|
|
122
|
+
executionTime: number;
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated
|
|
125
|
+
*/
|
|
126
|
+
minimalResponse: string;
|
|
127
|
+
status: 'success' | 'failed';
|
|
128
|
+
metadata?: Data.Metadata;
|
|
129
|
+
}
|
|
130
|
+
namespace Data {
|
|
131
|
+
interface App {
|
|
132
|
+
icon: string;
|
|
133
|
+
name: string;
|
|
134
|
+
}
|
|
135
|
+
interface Metadata {
|
|
136
|
+
recipe_id?: string;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
export interface ToolListParams {
|
|
141
|
+
/**
|
|
142
|
+
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
143
|
+
*/
|
|
144
|
+
cursor: number | null;
|
|
145
|
+
/**
|
|
146
|
+
* whether_the_search_is_case_sensitive_or_not
|
|
147
|
+
*/
|
|
148
|
+
case_sensitive?: boolean | null;
|
|
149
|
+
/**
|
|
150
|
+
* start_time_of_the_logs_in_epoch_time
|
|
151
|
+
*/
|
|
152
|
+
from?: number;
|
|
153
|
+
/**
|
|
154
|
+
* number_of_logs_to_return
|
|
155
|
+
*/
|
|
156
|
+
limit?: number;
|
|
157
|
+
search_params?: Array<ToolListParams.SearchParam>;
|
|
158
|
+
/**
|
|
159
|
+
* end_time_of_the_logs_in_epoch_time
|
|
160
|
+
*/
|
|
161
|
+
to?: number;
|
|
162
|
+
}
|
|
163
|
+
export declare namespace ToolListParams {
|
|
164
|
+
interface SearchParam {
|
|
165
|
+
field?: string;
|
|
166
|
+
operation?: string;
|
|
167
|
+
value?: string;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
export declare namespace Tools {
|
|
171
|
+
export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolListParams as ToolListParams, };
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;;;;;;OAOG;IACH,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,EAAE,MAAM,CAAC;IAEpB,GAAG,EAAE,oBAAoB,CAAC,GAAG,CAAC;IAE9B,UAAU,EAAE,oBAAoB,CAAC,UAAU,CAAC;IAE5C,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAElC,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE9C,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE5C,QAAQ,EAAE;QAAE,CAAC,GAAG,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AClB,IAAI,EAAE,MAAM,CAAC;YAEb,IAAI,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,QAAQ;YACvB,SAAS,CAAC,EAAE,MAAM,CAAC;SACpB;KACF;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAElD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,WAAW;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.Tools = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Logging and monitoring
|
|
9
|
+
*/
|
|
10
|
+
class Tools extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get detailed execution log by ID
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const tool = await client.logs.tools.retrieve('id');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id, options) {
|
|
20
|
+
return this._client.get((0, path_1.path) `/api/v3.1/internal/action_execution/log/${id}`, options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Search and retrieve action execution logs
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const tools = await client.logs.tools.list({ cursor: 0 });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(body, options) {
|
|
31
|
+
return this._client.post('/api/v3.1/internal/action_execution/logs', { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.Tools = Tools;
|
|
35
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2CAA2C,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,IAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AAxBD,sBAwBC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Logging and monitoring
|
|
6
|
+
*/
|
|
7
|
+
export class Tools extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get detailed execution log by ID
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const tool = await client.logs.tools.retrieve('id');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id, options) {
|
|
17
|
+
return this._client.get(path `/api/v3.1/internal/action_execution/log/${id}`, options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Search and retrieve action execution logs
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const tools = await client.logs.tools.list({ cursor: 0 });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(body, options) {
|
|
28
|
+
return this._client.post('/api/v3.1/internal/action_execution/logs', { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=tools.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2CAA2C,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,IAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
* Logging and monitoring
|
|
6
|
+
*/
|
|
7
|
+
export declare class Triggers extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get detailed trigger log by ID
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const trigger = await client.logs.triggers.retrieve('id');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TriggerRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Search and retrieve trigger event logs with advanced filtering capabilities
|
|
19
|
+
* including search parameters
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const triggers = await client.logs.triggers.list();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(body?: TriggerListParams | null | undefined, options?: RequestOptions): APIPromise<TriggerListResponse>;
|
|
27
|
+
}
|
|
28
|
+
export interface TriggerRetrieveResponse {
|
|
29
|
+
log: TriggerRetrieveResponse.Log;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace TriggerRetrieveResponse {
|
|
32
|
+
interface Log {
|
|
33
|
+
id: string;
|
|
34
|
+
appName: string;
|
|
35
|
+
clientId: string;
|
|
36
|
+
connectionId: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
entityId: string;
|
|
39
|
+
meta: Log.Meta;
|
|
40
|
+
status: string;
|
|
41
|
+
/**
|
|
42
|
+
* Log entity type (trigger or action)
|
|
43
|
+
*/
|
|
44
|
+
type: 'trigger' | 'action';
|
|
45
|
+
}
|
|
46
|
+
namespace Log {
|
|
47
|
+
interface Meta {
|
|
48
|
+
id: string;
|
|
49
|
+
clientId: string;
|
|
50
|
+
connectionId: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
provider: string;
|
|
53
|
+
/**
|
|
54
|
+
* Log entity type (trigger or action)
|
|
55
|
+
*/
|
|
56
|
+
type: 'trigger' | 'action';
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
triggerClientError?: string;
|
|
59
|
+
triggerClientPayload?: string;
|
|
60
|
+
triggerClientResponse?: string;
|
|
61
|
+
triggerId?: string;
|
|
62
|
+
triggerName?: string;
|
|
63
|
+
triggerNanoId?: string;
|
|
64
|
+
triggerProviderPayload?: string;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export interface TriggerListResponse {
|
|
69
|
+
nextCursor: string | null;
|
|
70
|
+
data?: Array<TriggerListResponse.Data>;
|
|
71
|
+
}
|
|
72
|
+
export declare namespace TriggerListResponse {
|
|
73
|
+
interface Data {
|
|
74
|
+
id: string;
|
|
75
|
+
appName: string;
|
|
76
|
+
clientId: string;
|
|
77
|
+
connectionId: string;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
entityId: string;
|
|
80
|
+
meta: Data.Meta;
|
|
81
|
+
status: string;
|
|
82
|
+
/**
|
|
83
|
+
* Log entity type (trigger or action)
|
|
84
|
+
*/
|
|
85
|
+
type: 'trigger' | 'action';
|
|
86
|
+
}
|
|
87
|
+
namespace Data {
|
|
88
|
+
interface Meta {
|
|
89
|
+
id: string;
|
|
90
|
+
clientId: string;
|
|
91
|
+
connectionId: string;
|
|
92
|
+
createdAt: string;
|
|
93
|
+
provider: string;
|
|
94
|
+
/**
|
|
95
|
+
* Log entity type (trigger or action)
|
|
96
|
+
*/
|
|
97
|
+
type: 'trigger' | 'action';
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
triggerClientError?: string;
|
|
100
|
+
triggerClientPayload?: string;
|
|
101
|
+
triggerClientResponse?: string;
|
|
102
|
+
triggerId?: string;
|
|
103
|
+
triggerName?: string;
|
|
104
|
+
triggerNanoId?: string;
|
|
105
|
+
triggerProviderPayload?: string;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
export interface TriggerListParams {
|
|
110
|
+
cursor?: string | null;
|
|
111
|
+
entityId?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Start time for logs (epoch timestamp in milliseconds)
|
|
114
|
+
*/
|
|
115
|
+
from?: number | null;
|
|
116
|
+
/**
|
|
117
|
+
* Whether to include payload fields in the response. Set to false for faster list
|
|
118
|
+
* views.
|
|
119
|
+
*/
|
|
120
|
+
include_payload?: boolean;
|
|
121
|
+
integrationId?: string;
|
|
122
|
+
/**
|
|
123
|
+
* The limit of trigger logs to return
|
|
124
|
+
*/
|
|
125
|
+
limit?: number | null;
|
|
126
|
+
/**
|
|
127
|
+
* Search term to filter logs
|
|
128
|
+
*/
|
|
129
|
+
search?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Advanced search parameters for filtering logs
|
|
132
|
+
*/
|
|
133
|
+
search_params?: Array<TriggerListParams.SearchParam>;
|
|
134
|
+
/**
|
|
135
|
+
* Filter logs by their status level
|
|
136
|
+
*/
|
|
137
|
+
status?: 'all' | 'success' | 'error';
|
|
138
|
+
/**
|
|
139
|
+
* Return logs from the last N time units
|
|
140
|
+
*/
|
|
141
|
+
time?: '5m' | '30m' | '6h' | '1d' | '1w' | '1month' | '1y';
|
|
142
|
+
/**
|
|
143
|
+
* End time for logs (epoch timestamp in milliseconds)
|
|
144
|
+
*/
|
|
145
|
+
to?: number | null;
|
|
146
|
+
/**
|
|
147
|
+
* Filter logs by user ID
|
|
148
|
+
*/
|
|
149
|
+
userId?: string;
|
|
150
|
+
}
|
|
151
|
+
export declare namespace TriggerListParams {
|
|
152
|
+
interface SearchParam {
|
|
153
|
+
field?: string;
|
|
154
|
+
operation?: string;
|
|
155
|
+
value?: string;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export declare namespace Triggers {
|
|
159
|
+
export { type TriggerRetrieveResponse as TriggerRetrieveResponse, type TriggerListResponse as TriggerListResponse, type TriggerListParams as TriggerListParams, };
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=triggers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"triggers.d.mts","sourceRoot":"","sources":["../../src/resources/logs/triggers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInF;;;;;;;;OAQG;IACH,IAAI,CACF,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,uBAAuB,CAAC,GAAG,CAAC;CAClC;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,GAAG;QAClB,EAAE,EAAE,MAAM,CAAC;QAEX,OAAO,EAAE,MAAM,CAAC;QAEhB,QAAQ,EAAE,MAAM,CAAC;QAEjB,YAAY,EAAE,MAAM,CAAC;QAErB,SAAS,EAAE,MAAM,CAAC;QAElB,QAAQ,EAAE,MAAM,CAAC;QAEjB,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;QAEf,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;KAC5B;IAED,UAAiB,GAAG,CAAC;QACnB,UAAiB,IAAI;YACnB,EAAE,EAAE,MAAM,CAAC;YAEX,QAAQ,EAAE,MAAM,CAAC;YAEjB,YAAY,EAAE,MAAM,CAAC;YAErB,SAAS,EAAE,MAAM,CAAC;YA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O,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
* Logging and monitoring
|
|
6
|
+
*/
|
|
7
|
+
export declare class Triggers extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get detailed trigger log by ID
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const trigger = await client.logs.triggers.retrieve('id');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TriggerRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Search and retrieve trigger event logs with advanced filtering capabilities
|
|
19
|
+
* including search parameters
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const triggers = await client.logs.triggers.list();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(body?: TriggerListParams | null | undefined, options?: RequestOptions): APIPromise<TriggerListResponse>;
|
|
27
|
+
}
|
|
28
|
+
export interface TriggerRetrieveResponse {
|
|
29
|
+
log: TriggerRetrieveResponse.Log;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace TriggerRetrieveResponse {
|
|
32
|
+
interface Log {
|
|
33
|
+
id: string;
|
|
34
|
+
appName: string;
|
|
35
|
+
clientId: string;
|
|
36
|
+
connectionId: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
entityId: string;
|
|
39
|
+
meta: Log.Meta;
|
|
40
|
+
status: string;
|
|
41
|
+
/**
|
|
42
|
+
* Log entity type (trigger or action)
|
|
43
|
+
*/
|
|
44
|
+
type: 'trigger' | 'action';
|
|
45
|
+
}
|
|
46
|
+
namespace Log {
|
|
47
|
+
interface Meta {
|
|
48
|
+
id: string;
|
|
49
|
+
clientId: string;
|
|
50
|
+
connectionId: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
provider: string;
|
|
53
|
+
/**
|
|
54
|
+
* Log entity type (trigger or action)
|
|
55
|
+
*/
|
|
56
|
+
type: 'trigger' | 'action';
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
triggerClientError?: string;
|
|
59
|
+
triggerClientPayload?: string;
|
|
60
|
+
triggerClientResponse?: string;
|
|
61
|
+
triggerId?: string;
|
|
62
|
+
triggerName?: string;
|
|
63
|
+
triggerNanoId?: string;
|
|
64
|
+
triggerProviderPayload?: string;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export interface TriggerListResponse {
|
|
69
|
+
nextCursor: string | null;
|
|
70
|
+
data?: Array<TriggerListResponse.Data>;
|
|
71
|
+
}
|
|
72
|
+
export declare namespace TriggerListResponse {
|
|
73
|
+
interface Data {
|
|
74
|
+
id: string;
|
|
75
|
+
appName: string;
|
|
76
|
+
clientId: string;
|
|
77
|
+
connectionId: string;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
entityId: string;
|
|
80
|
+
meta: Data.Meta;
|
|
81
|
+
status: string;
|
|
82
|
+
/**
|
|
83
|
+
* Log entity type (trigger or action)
|
|
84
|
+
*/
|
|
85
|
+
type: 'trigger' | 'action';
|
|
86
|
+
}
|
|
87
|
+
namespace Data {
|
|
88
|
+
interface Meta {
|
|
89
|
+
id: string;
|
|
90
|
+
clientId: string;
|
|
91
|
+
connectionId: string;
|
|
92
|
+
createdAt: string;
|
|
93
|
+
provider: string;
|
|
94
|
+
/**
|
|
95
|
+
* Log entity type (trigger or action)
|
|
96
|
+
*/
|
|
97
|
+
type: 'trigger' | 'action';
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
triggerClientError?: string;
|
|
100
|
+
triggerClientPayload?: string;
|
|
101
|
+
triggerClientResponse?: string;
|
|
102
|
+
triggerId?: string;
|
|
103
|
+
triggerName?: string;
|
|
104
|
+
triggerNanoId?: string;
|
|
105
|
+
triggerProviderPayload?: string;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
export interface TriggerListParams {
|
|
110
|
+
cursor?: string | null;
|
|
111
|
+
entityId?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Start time for logs (epoch timestamp in milliseconds)
|
|
114
|
+
*/
|
|
115
|
+
from?: number | null;
|
|
116
|
+
/**
|
|
117
|
+
* Whether to include payload fields in the response. Set to false for faster list
|
|
118
|
+
* views.
|
|
119
|
+
*/
|
|
120
|
+
include_payload?: boolean;
|
|
121
|
+
integrationId?: string;
|
|
122
|
+
/**
|
|
123
|
+
* The limit of trigger logs to return
|
|
124
|
+
*/
|
|
125
|
+
limit?: number | null;
|
|
126
|
+
/**
|
|
127
|
+
* Search term to filter logs
|
|
128
|
+
*/
|
|
129
|
+
search?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Advanced search parameters for filtering logs
|
|
132
|
+
*/
|
|
133
|
+
search_params?: Array<TriggerListParams.SearchParam>;
|
|
134
|
+
/**
|
|
135
|
+
* Filter logs by their status level
|
|
136
|
+
*/
|
|
137
|
+
status?: 'all' | 'success' | 'error';
|
|
138
|
+
/**
|
|
139
|
+
* Return logs from the last N time units
|
|
140
|
+
*/
|
|
141
|
+
time?: '5m' | '30m' | '6h' | '1d' | '1w' | '1month' | '1y';
|
|
142
|
+
/**
|
|
143
|
+
* End time for logs (epoch timestamp in milliseconds)
|
|
144
|
+
*/
|
|
145
|
+
to?: number | null;
|
|
146
|
+
/**
|
|
147
|
+
* Filter logs by user ID
|
|
148
|
+
*/
|
|
149
|
+
userId?: string;
|
|
150
|
+
}
|
|
151
|
+
export declare namespace TriggerListParams {
|
|
152
|
+
interface SearchParam {
|
|
153
|
+
field?: string;
|
|
154
|
+
operation?: string;
|
|
155
|
+
value?: string;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export declare namespace Triggers {
|
|
159
|
+
export { type TriggerRetrieveResponse as TriggerRetrieveResponse, type TriggerListResponse as TriggerListResponse, type TriggerListParams as TriggerListParams, };
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=triggers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../src/resources/logs/triggers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInF;;;;;;;;OAQG;IACH,IAAI,CACF,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,uBAAuB,CAAC,GAAG,CAAC;CAClC;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,GAAG;QAClB,EAAE,EAAE,MAAM,CAAC;QAEX,OAAO,EAAE,MAAM,CAAC;QAEhB,QAAQ,EAAE,MAAM,CAAC;QAEjB,YAAY,EAAE,MAAM,CAAC;QAErB,SAAS,EAAE,MAAM,CAAC;QAElB,QAAQ,EAAE,MAAM,CAAC;QAEjB,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;QAEf,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;KAC5B;IAED,UAAiB,GAAG,CAAC;QACnB,UAAiB,IAAI;YACnB,EAAE,EAAE,MAAM,CAAC;YAEX,Q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,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.Triggers = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Logging and monitoring
|
|
9
|
+
*/
|
|
10
|
+
class Triggers extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get detailed trigger log by ID
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const trigger = await client.logs.triggers.retrieve('id');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id, options) {
|
|
20
|
+
return this._client.get((0, path_1.path) `/api/v3.1/internal/trigger/log/${id}`, options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Search and retrieve trigger event logs with advanced filtering capabilities
|
|
24
|
+
* including search parameters
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const triggers = await client.logs.triggers.list();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
list(body = {}, options) {
|
|
32
|
+
return this._client.post('/api/v3.1/internal/trigger/logs', { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.Triggers = Triggers;
|
|
36
|
+
//# sourceMappingURL=triggers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../src/resources/logs/triggers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AA5BD,4BA4BC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Logging and monitoring
|
|
6
|
+
*/
|
|
7
|
+
export class Triggers extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get detailed trigger log by ID
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const trigger = await client.logs.triggers.retrieve('id');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id, options) {
|
|
17
|
+
return this._client.get(path `/api/v3.1/internal/trigger/log/${id}`, options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Search and retrieve trigger event logs with advanced filtering capabilities
|
|
21
|
+
* including search parameters
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const triggers = await client.logs.triggers.list();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(body = {}, options) {
|
|
29
|
+
return this._client.post('/api/v3.1/internal/trigger/logs', { body, ...options });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=triggers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"triggers.mjs","sourceRoot":"","sources":["../../src/resources/logs/triggers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":""}
|