@composio/client 0.1.0-alpha.1 → 0.1.0-alpha.11
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 +157 -0
- package/LICENSE +1 -1
- package/README.md +31 -31
- package/api-promise.js +2 -15
- package/api-promise.js.map +1 -1
- package/client.d.mts +32 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +32 -29
- package/client.d.ts.map +1 -1
- package/client.js +95 -113
- package/client.js.map +1 -1
- package/client.mjs +88 -83
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -3
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -3
- 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 +2 -3
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -3
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- 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/index.d.mts +3 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.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.map +1 -1
- 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 +3 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +3 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts +2 -3
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -3
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +1 -2
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +6 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -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 +279 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -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 +14 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -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 +0 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +0 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.js +6 -7
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/to-file.d.mts +0 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +0 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +4 -4
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +3 -2
- 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 +0 -1
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +0 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +5 -7
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +5 -7
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +16 -6
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +12 -3
- 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 +14 -9
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +15 -10
- 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.map +1 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -4
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -4
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -2
- package/internal/utils/log.js.map +1 -1
- 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 +3 -3
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- 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.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +10 -10
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.js +7 -20
- package/internal/utils.js.map +1 -1
- package/package.json +5 -9
- package/resource.js +2 -15
- package/resource.js.map +1 -1
- package/resources/auth-configs.d.mts +232 -41
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +232 -41
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +64 -0
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +64 -0
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +176 -216
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +176 -216
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +70 -0
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +70 -0
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +159 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +159 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +39 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +35 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +5 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/command.d.mts +4 -0
- package/resources/mcp/command.d.mts.map +1 -0
- package/resources/mcp/command.d.ts +4 -0
- package/resources/mcp/command.d.ts.map +1 -0
- package/resources/mcp/command.js +9 -0
- package/resources/mcp/command.js.map +1 -0
- package/resources/mcp/command.mjs +5 -0
- package/resources/mcp/command.mjs.map +1 -0
- package/resources/mcp/index.d.mts +3 -0
- package/resources/mcp/index.d.mts.map +1 -0
- package/resources/mcp/index.d.ts +3 -0
- package/resources/mcp/index.d.ts.map +1 -0
- package/resources/mcp/index.js +9 -0
- package/resources/mcp/index.js.map +1 -0
- package/resources/mcp/index.mjs +4 -0
- package/resources/mcp/index.mjs.map +1 -0
- package/resources/mcp/mcp.d.mts +411 -0
- package/resources/mcp/mcp.d.mts.map +1 -0
- package/resources/mcp/mcp.d.ts +411 -0
- package/resources/mcp/mcp.d.ts.map +1 -0
- package/resources/mcp/mcp.js +101 -0
- package/resources/mcp/mcp.js.map +1 -0
- package/resources/mcp/mcp.mjs +96 -0
- package/resources/mcp/mcp.mjs.map +1 -0
- package/resources/mcp.d.mts +2 -0
- package/resources/mcp.d.mts.map +1 -0
- package/resources/mcp.d.ts +2 -0
- package/resources/mcp.d.ts.map +1 -0
- package/resources/mcp.js +6 -0
- package/resources/mcp.js.map +1 -0
- package/resources/mcp.mjs +3 -0
- package/resources/mcp.mjs.map +1 -0
- package/resources/migration.d.mts +32 -0
- package/resources/migration.d.mts.map +1 -0
- package/resources/migration.d.ts +32 -0
- package/resources/migration.d.ts.map +1 -0
- package/resources/migration.js +17 -0
- package/resources/migration.js.map +1 -0
- package/resources/migration.mjs +13 -0
- package/resources/migration.mjs.map +1 -0
- package/resources/org/api-key.d.mts +28 -0
- package/resources/org/api-key.d.mts.map +1 -1
- package/resources/org/api-key.d.ts +28 -0
- package/resources/org/api-key.d.ts.map +1 -1
- package/resources/org/api-key.js +20 -0
- package/resources/org/api-key.js.map +1 -1
- package/resources/org/api-key.mjs +20 -0
- package/resources/org/api-key.mjs.map +1 -1
- package/resources/org/org.js +3 -25
- package/resources/org/org.js.map +1 -1
- package/resources/org/project/api-keys.d.mts +97 -20
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +97 -20
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/org/project/api-keys.js +57 -0
- package/resources/org/project/api-keys.js.map +1 -1
- package/resources/org/project/api-keys.mjs +57 -0
- package/resources/org/project/api-keys.mjs.map +1 -1
- package/resources/org/project/project.d.mts +182 -7
- package/resources/org/project/project.d.mts.map +1 -1
- package/resources/org/project/project.d.ts +182 -7
- package/resources/org/project/project.d.ts.map +1 -1
- package/resources/org/project/project.js +56 -26
- package/resources/org/project/project.js.map +1 -1
- package/resources/org/project/project.mjs +52 -0
- package/resources/org/project/project.mjs.map +1 -1
- package/resources/org/project/trigger.d.mts +101 -5
- package/resources/org/project/trigger.d.mts.map +1 -1
- package/resources/org/project/trigger.d.ts +101 -5
- package/resources/org/project/trigger.d.ts.map +1 -1
- package/resources/org/project/trigger.js +21 -0
- package/resources/org/project/trigger.js.map +1 -1
- package/resources/org/project/trigger.mjs +21 -0
- package/resources/org/project/trigger.mjs.map +1 -1
- package/resources/org/project/webhook.d.mts +88 -14
- package/resources/org/project/webhook.d.mts.map +1 -1
- package/resources/org/project/webhook.d.ts +88 -14
- package/resources/org/project/webhook.d.ts.map +1 -1
- package/resources/org/project/webhook.js +51 -1
- package/resources/org/project/webhook.js.map +1 -1
- package/resources/org/project/webhook.mjs +51 -1
- package/resources/org/project/webhook.mjs.map +1 -1
- package/resources/org/project.js +2 -15
- package/resources/org/project.js.map +1 -1
- package/resources/org.js +2 -15
- package/resources/org.js.map +1 -1
- package/resources/team-members.d.mts +12 -0
- package/resources/team-members.d.mts.map +1 -1
- package/resources/team-members.d.ts +12 -0
- package/resources/team-members.d.ts.map +1 -1
- package/resources/team-members.js +12 -0
- package/resources/team-members.js.map +1 -1
- package/resources/team-members.mjs +12 -0
- package/resources/team-members.mjs.map +1 -1
- package/resources/toolkits.d.mts +215 -4
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +215 -4
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +20 -2
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +20 -2
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +295 -21
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +295 -21
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +67 -0
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +67 -0
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/handle.d.mts +2 -2
- package/resources/trigger-instances/handle.d.mts.map +1 -1
- package/resources/trigger-instances/handle.d.ts +2 -2
- package/resources/trigger-instances/handle.d.ts.map +1 -1
- package/resources/trigger-instances/handle.js.map +1 -1
- package/resources/trigger-instances/handle.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +1 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +1 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +51 -31
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +51 -31
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +3 -32
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +1 -8
- 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 +105 -4
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +105 -4
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +29 -0
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +29 -0
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +128 -94
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/resource.ts +3 -3
- package/src/index.ts +3 -3
- package/src/internal/headers.ts +4 -3
- package/src/internal/parse.ts +2 -2
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/shims.ts +1 -1
- package/src/internal/to-file.ts +4 -2
- package/src/internal/uploads.ts +21 -9
- package/src/internal/utils/base64.ts +16 -13
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -4
- package/src/internal/utils/uuid.ts +1 -3
- package/src/internal/utils/values.ts +6 -6
- package/src/resources/auth-configs.ts +258 -49
- package/src/resources/connected-accounts.ts +192 -302
- package/src/resources/files.ts +209 -0
- package/src/resources/index.ts +24 -11
- package/src/resources/mcp/command.ts +5 -0
- package/src/resources/mcp/index.ts +14 -0
- package/src/resources/mcp/mcp.ts +522 -0
- package/src/resources/mcp.ts +3 -0
- package/src/resources/migration.ts +46 -0
- package/src/resources/org/api-key.ts +28 -0
- package/src/resources/org/project/api-keys.ts +97 -20
- package/src/resources/org/project/project.ts +182 -13
- package/src/resources/org/project/trigger.ts +101 -9
- package/src/resources/org/project/webhook.ts +88 -14
- package/src/resources/team-members.ts +12 -0
- package/src/resources/toolkits.ts +230 -4
- package/src/resources/tools.ts +316 -21
- package/src/resources/trigger-instances/handle.ts +10 -2
- package/src/resources/trigger-instances/index.ts +0 -3
- package/src/resources/trigger-instances/trigger-instances.ts +55 -44
- package/src/resources/triggers-types.ts +107 -6
- 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 -68
- package/internal/shims/getBuiltinModule.js.map +0 -1
- package/internal/shims/getBuiltinModule.mjs +0 -64
- 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/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/shims/crypto.ts +0 -18
- package/src/internal/shims/file.ts +0 -32
- package/src/internal/shims/getBuiltinModule.ts +0 -64
- package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
- package/src/resources/action-execution.ts +0 -244
- package/src/resources/trigger.ts +0 -108
package/resources/trigger.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
export declare class Trigger extends APIResource {
|
|
5
|
-
log(body: TriggerLogParams, options?: RequestOptions): APIPromise<TriggerLogResponse>;
|
|
6
|
-
}
|
|
7
|
-
export interface TriggerLogResponse {
|
|
8
|
-
nextCursor: string | null;
|
|
9
|
-
data?: Array<TriggerLogResponse.Data>;
|
|
10
|
-
}
|
|
11
|
-
export declare namespace TriggerLogResponse {
|
|
12
|
-
interface Data {
|
|
13
|
-
id: string;
|
|
14
|
-
appName: string;
|
|
15
|
-
clientId: string;
|
|
16
|
-
connectionId: string;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
entityId: string;
|
|
19
|
-
meta: Data.Meta;
|
|
20
|
-
status: string;
|
|
21
|
-
/**
|
|
22
|
-
* Log entity type (trigger or action)
|
|
23
|
-
*/
|
|
24
|
-
type: 'trigger' | 'action';
|
|
25
|
-
}
|
|
26
|
-
namespace Data {
|
|
27
|
-
interface Meta {
|
|
28
|
-
id: string;
|
|
29
|
-
clientId: string;
|
|
30
|
-
connectionId: string;
|
|
31
|
-
createdAt: string;
|
|
32
|
-
provider: string;
|
|
33
|
-
/**
|
|
34
|
-
* Log entity type (trigger or action)
|
|
35
|
-
*/
|
|
36
|
-
type: 'trigger' | 'action';
|
|
37
|
-
updatedAt: string;
|
|
38
|
-
triggerClientError?: string;
|
|
39
|
-
triggerClientPayload?: string;
|
|
40
|
-
triggerClientResponse?: string;
|
|
41
|
-
triggerName?: string;
|
|
42
|
-
triggerProviderPayload?: string;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
export interface TriggerLogParams {
|
|
47
|
-
/**
|
|
48
|
-
* cursor that can be used to paginate through the logs
|
|
49
|
-
*/
|
|
50
|
-
cursor: string | null;
|
|
51
|
-
entityId?: string;
|
|
52
|
-
integrationId?: string;
|
|
53
|
-
/**
|
|
54
|
-
* number of logs to return
|
|
55
|
-
*/
|
|
56
|
-
limit?: number;
|
|
57
|
-
/**
|
|
58
|
-
* Search term to filter logs
|
|
59
|
-
*/
|
|
60
|
-
search?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Filter logs by their status level
|
|
63
|
-
*/
|
|
64
|
-
status?: 'all' | 'success' | 'error';
|
|
65
|
-
/**
|
|
66
|
-
* Return logs from the last N time units
|
|
67
|
-
*/
|
|
68
|
-
time?: '5m' | '30m' | '6h' | '1d' | '1w' | '1month' | '1y';
|
|
69
|
-
}
|
|
70
|
-
export declare namespace Trigger {
|
|
71
|
-
export { type TriggerLogResponse as TriggerLogResponse, type TriggerLogParams as TriggerLogParams };
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../src/resources/trigger.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,GAAG,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGtF;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,IAAI,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB,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,IAAI,CAAC,IAAI,CAAC;QAEhB,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;KAC5B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,IAAI;YACnB,EAAE,EAAE,MAAM,CAAC;YAEX,QAAQ,EAAE,MAAM,CAAC;YAEjB,YAAY,EAAE,MAAM,CAAC;YAErB,SAAS,EAAE,MAAM,CAAC;YAElB,QAAQ,EAAE,MAAM,CAAC;YAEjB;;eAEG;YACH,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;YAE3B,SAAS,EAAE,MAAM,CAAC;YAElB,kBAAkB,CAAC,EAAE,MAAM,CAAC;YAE5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;YAE9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;YAE/B,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,sBAAsB,CAAC,EAAE,MAAM,CAAC;SACjC;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,OAAO,CAAC;IAErC;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC;CAC5D;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
|
package/resources/trigger.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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.Trigger = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class Trigger extends resource_1.APIResource {
|
|
7
|
-
log(body, options) {
|
|
8
|
-
return this._client.post('/api/v3/internal/trigger/logs', { body, ...options });
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.Trigger = Trigger;
|
|
12
|
-
//# sourceMappingURL=trigger.js.map
|
package/resources/trigger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../src/resources/trigger.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,OAAQ,SAAQ,sBAAW;IACtC,GAAG,CAAC,IAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAJD,0BAIC"}
|
package/resources/trigger.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
export class Trigger extends APIResource {
|
|
4
|
-
log(body, options) {
|
|
5
|
-
return this._client.post('/api/v3/internal/trigger/logs', { body, ...options });
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=trigger.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.mjs","sourceRoot":"","sources":["../src/resources/trigger.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC,GAAG,CAAC,IAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { getBuiltinModule } from './getBuiltinModule';
|
|
2
|
-
|
|
3
|
-
type Crypto = {
|
|
4
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
|
|
5
|
-
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
6
|
-
/**
|
|
7
|
-
* Available only in secure contexts.
|
|
8
|
-
*
|
|
9
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
|
|
10
|
-
*/
|
|
11
|
-
randomUUID?: () => string;
|
|
12
|
-
};
|
|
13
|
-
export let getCrypto: () => Crypto | undefined = function lazyGetCrypto() {
|
|
14
|
-
if (getCrypto !== lazyGetCrypto) return getCrypto();
|
|
15
|
-
const crypto: Crypto = (globalThis as any).crypto || (getBuiltinModule?.('node:crypto') as any)?.webcrypto;
|
|
16
|
-
getCrypto = () => crypto;
|
|
17
|
-
return crypto;
|
|
18
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { getBuiltinModule } from './getBuiltinModule';
|
|
2
|
-
|
|
3
|
-
export let getFile = function lazyGetFile(): FileConstructor {
|
|
4
|
-
if (getFile !== lazyGetFile) return getFile();
|
|
5
|
-
// We can drop getBuiltinModule once we no longer support Node < 20.0.0
|
|
6
|
-
const File = (globalThis as any).File ?? (getBuiltinModule?.('node:buffer') as any)?.File;
|
|
7
|
-
if (!File) throw new Error('`File` is not defined as a global, which is required for file uploads.');
|
|
8
|
-
getFile = () => File;
|
|
9
|
-
return File;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
type FileConstructor =
|
|
13
|
-
typeof globalThis extends { File: infer fileConstructor } ? fileConstructor : typeof FallbackFile;
|
|
14
|
-
export type File = InstanceType<FileConstructor>;
|
|
15
|
-
|
|
16
|
-
// The infer is to make TS show it as a nice union type,
|
|
17
|
-
// instead of literally `ConstructorParameters<typeof Blob>[0]`
|
|
18
|
-
type FallbackBlobSource = ConstructorParameters<typeof Blob>[0] extends infer T ? T : never;
|
|
19
|
-
/**
|
|
20
|
-
* A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.
|
|
21
|
-
*/
|
|
22
|
-
declare class FallbackFile extends Blob {
|
|
23
|
-
constructor(sources: FallbackBlobSource, fileName: string, options?: any);
|
|
24
|
-
/**
|
|
25
|
-
* The name of the `File`.
|
|
26
|
-
*/
|
|
27
|
-
readonly name: string;
|
|
28
|
-
/**
|
|
29
|
-
* The last modified date of the `File`.
|
|
30
|
-
*/
|
|
31
|
-
readonly lastModified: number;
|
|
32
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Load a Node built-in module. ID may or may not be prefixed by `node:` and
|
|
3
|
-
* will be normalized. If we used static imports then our bundle size would be bloated by
|
|
4
|
-
* injected polyfills, and if we used dynamic require then in addition to bundlers logging warnings,
|
|
5
|
-
* our code would not work when bundled to ESM and run in Node 18.
|
|
6
|
-
* @param {string} id ID of the built-in to be loaded.
|
|
7
|
-
* @returns {object|undefined} exports of the built-in. Undefined if the built-in
|
|
8
|
-
* does not exist.
|
|
9
|
-
*/
|
|
10
|
-
export let getBuiltinModule: null | ((id: string) => object | undefined) = function getBuiltinModuleLazy(
|
|
11
|
-
id: string,
|
|
12
|
-
): object | undefined {
|
|
13
|
-
try {
|
|
14
|
-
if (getBuiltinModule !== getBuiltinModuleLazy) return getBuiltinModule!(id);
|
|
15
|
-
if ((process as any).getBuiltinModule) {
|
|
16
|
-
getBuiltinModule = (process as any).getBuiltinModule;
|
|
17
|
-
} else {
|
|
18
|
-
/* Fallback implementation for Node 18 */
|
|
19
|
-
function createFallbackGetBuiltinModule(BuiltinModule: any) {
|
|
20
|
-
return function getBuiltinModule(id: string): object | undefined {
|
|
21
|
-
id = BuiltinModule.normalizeRequirableId(String(id));
|
|
22
|
-
if (!BuiltinModule.canBeRequiredByUsers(id)) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
const mod = BuiltinModule.map.get(id);
|
|
26
|
-
mod.compileForPublicLoader();
|
|
27
|
-
return mod.exports;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
const magicKey = Math.random() + '';
|
|
31
|
-
let module: { BuiltinModule: any } | undefined;
|
|
32
|
-
try {
|
|
33
|
-
const kClone = Object.getOwnPropertySymbols(Blob.prototype).find(
|
|
34
|
-
(e) => e.description?.includes('clone'),
|
|
35
|
-
)!;
|
|
36
|
-
Object.defineProperty(Object.prototype, magicKey, {
|
|
37
|
-
get() {
|
|
38
|
-
module = this;
|
|
39
|
-
throw null;
|
|
40
|
-
},
|
|
41
|
-
configurable: true,
|
|
42
|
-
});
|
|
43
|
-
structuredClone(
|
|
44
|
-
new (class extends Blob {
|
|
45
|
-
[kClone]() {
|
|
46
|
-
return {
|
|
47
|
-
deserializeInfo: 'internal/bootstrap/realm:' + magicKey,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
})([]),
|
|
51
|
-
);
|
|
52
|
-
} catch {}
|
|
53
|
-
delete (Object.prototype as any)[magicKey];
|
|
54
|
-
if (module) {
|
|
55
|
-
getBuiltinModule = createFallbackGetBuiltinModule(module.BuiltinModule);
|
|
56
|
-
} else {
|
|
57
|
-
getBuiltinModule = () => undefined;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return getBuiltinModule!(id);
|
|
61
|
-
} catch {
|
|
62
|
-
return undefined;
|
|
63
|
-
}
|
|
64
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const getBuiltinModule = null;
|
|
@@ -1,244 +0,0 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
6
|
-
import { path } from '../internal/utils/path';
|
|
7
|
-
|
|
8
|
-
export class ActionExecution extends APIResource {
|
|
9
|
-
log(body: ActionExecutionLogParams, options?: RequestOptions): APIPromise<ActionExecutionLogResponse> {
|
|
10
|
-
return this._client.post('/api/v3/internal/action_execution/logs', { body, ...options });
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
retrieveFields(options?: RequestOptions): APIPromise<ActionExecutionRetrieveFieldsResponse> {
|
|
14
|
-
return this._client.get('/api/v3/internal/action_execution/fields', options);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
retrieveLog(id: string, options?: RequestOptions): APIPromise<ActionExecutionRetrieveLogResponse> {
|
|
18
|
-
return this._client.get(path`/api/v3/internal/action_execution/log/${id}`, options);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ActionExecutionLogResponse {
|
|
23
|
-
data: Array<ActionExecutionLogResponse.Data>;
|
|
24
|
-
|
|
25
|
-
nextCursor: number | null;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export namespace ActionExecutionLogResponse {
|
|
29
|
-
export interface Data {
|
|
30
|
-
id: string;
|
|
31
|
-
|
|
32
|
-
actionKey: string;
|
|
33
|
-
|
|
34
|
-
app: Data.App;
|
|
35
|
-
|
|
36
|
-
appKey: string;
|
|
37
|
-
|
|
38
|
-
connectedAccountId: string;
|
|
39
|
-
|
|
40
|
-
createdAt: number;
|
|
41
|
-
|
|
42
|
-
entityId: string;
|
|
43
|
-
|
|
44
|
-
executionTime: number;
|
|
45
|
-
|
|
46
|
-
minimalResponse: string;
|
|
47
|
-
|
|
48
|
-
status: 'success' | 'failed';
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export namespace Data {
|
|
52
|
-
export interface App {
|
|
53
|
-
icon: string;
|
|
54
|
-
|
|
55
|
-
name: string;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface ActionExecutionRetrieveFieldsResponse {
|
|
61
|
-
fields: Record<string, Array<ActionExecutionRetrieveFieldsResponse.Field>>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export namespace ActionExecutionRetrieveFieldsResponse {
|
|
65
|
-
export interface Field {
|
|
66
|
-
/**
|
|
67
|
-
* The id of the field
|
|
68
|
-
*/
|
|
69
|
-
id: string;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* The display name of the field
|
|
73
|
-
*/
|
|
74
|
-
displayName: string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The type of the field
|
|
78
|
-
*/
|
|
79
|
-
type: string;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* The regex of the field
|
|
83
|
-
*/
|
|
84
|
-
regex?: string;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface ActionExecutionRetrieveLogResponse {
|
|
89
|
-
actionId: string;
|
|
90
|
-
|
|
91
|
-
actionLogId: string;
|
|
92
|
-
|
|
93
|
-
app: ActionExecutionRetrieveLogResponse.App;
|
|
94
|
-
|
|
95
|
-
connection: ActionExecutionRetrieveLogResponse.Connection;
|
|
96
|
-
|
|
97
|
-
endTime: number;
|
|
98
|
-
|
|
99
|
-
error: Record<string, unknown>;
|
|
100
|
-
|
|
101
|
-
executionMetadata: Record<string, unknown>;
|
|
102
|
-
|
|
103
|
-
payloadReceived: Record<string, unknown>;
|
|
104
|
-
|
|
105
|
-
response: Record<string, unknown>;
|
|
106
|
-
|
|
107
|
-
session: Record<string, unknown>;
|
|
108
|
-
|
|
109
|
-
startTime: number;
|
|
110
|
-
|
|
111
|
-
status: 'success' | 'error' | 'warning' | 'info';
|
|
112
|
-
|
|
113
|
-
steps: Array<ActionExecutionRetrieveLogResponse.Step>;
|
|
114
|
-
|
|
115
|
-
totalDuration: string;
|
|
116
|
-
|
|
117
|
-
version: string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export namespace ActionExecutionRetrieveLogResponse {
|
|
121
|
-
export interface App {
|
|
122
|
-
icon: string;
|
|
123
|
-
|
|
124
|
-
name: string;
|
|
125
|
-
|
|
126
|
-
uniqueId: string;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface Connection {
|
|
130
|
-
entity: string;
|
|
131
|
-
|
|
132
|
-
id?: string;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface Step {
|
|
136
|
-
endTime: number;
|
|
137
|
-
|
|
138
|
-
message: string;
|
|
139
|
-
|
|
140
|
-
startTime: number;
|
|
141
|
-
|
|
142
|
-
status: 'success' | 'error';
|
|
143
|
-
|
|
144
|
-
totalDuration: number;
|
|
145
|
-
|
|
146
|
-
type: 'tool_execution' | 'fetch_connection_details';
|
|
147
|
-
|
|
148
|
-
logs?: Array<Step.Log>;
|
|
149
|
-
|
|
150
|
-
metadata?: Step.Metadata;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export namespace Step {
|
|
154
|
-
export interface Log {
|
|
155
|
-
level: string;
|
|
156
|
-
|
|
157
|
-
message: string;
|
|
158
|
-
|
|
159
|
-
request: Log.Request;
|
|
160
|
-
|
|
161
|
-
requestId: string;
|
|
162
|
-
|
|
163
|
-
response: Log.Response;
|
|
164
|
-
|
|
165
|
-
time: number;
|
|
166
|
-
|
|
167
|
-
type: 'network' | 'system';
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export namespace Log {
|
|
171
|
-
export interface Request {
|
|
172
|
-
method: string;
|
|
173
|
-
|
|
174
|
-
url: string;
|
|
175
|
-
|
|
176
|
-
headers?: Record<string, string>;
|
|
177
|
-
|
|
178
|
-
json?: Record<string, unknown>;
|
|
179
|
-
|
|
180
|
-
params?: Record<string, unknown>;
|
|
181
|
-
|
|
182
|
-
timeout?: number;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export interface Response {
|
|
186
|
-
status: number;
|
|
187
|
-
|
|
188
|
-
time: string;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface Metadata {
|
|
193
|
-
encryption?: string;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface ActionExecutionLogParams {
|
|
199
|
-
/**
|
|
200
|
-
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
201
|
-
*/
|
|
202
|
-
cursor: number | null;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* whether_the_search_is_case_sensitive_or_not
|
|
206
|
-
*/
|
|
207
|
-
case_sensitive?: boolean;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* start_time_of_the_logs_in_epoch_time
|
|
211
|
-
*/
|
|
212
|
-
from?: number;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* number_of_logs_to_return
|
|
216
|
-
*/
|
|
217
|
-
limit?: number;
|
|
218
|
-
|
|
219
|
-
search_params?: Array<ActionExecutionLogParams.SearchParam>;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* end_time_of_the_logs_in_epoch_time
|
|
223
|
-
*/
|
|
224
|
-
to?: number;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export namespace ActionExecutionLogParams {
|
|
228
|
-
export interface SearchParam {
|
|
229
|
-
field?: string;
|
|
230
|
-
|
|
231
|
-
operation?: string;
|
|
232
|
-
|
|
233
|
-
value?: string;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export declare namespace ActionExecution {
|
|
238
|
-
export {
|
|
239
|
-
type ActionExecutionLogResponse as ActionExecutionLogResponse,
|
|
240
|
-
type ActionExecutionRetrieveFieldsResponse as ActionExecutionRetrieveFieldsResponse,
|
|
241
|
-
type ActionExecutionRetrieveLogResponse as ActionExecutionRetrieveLogResponse,
|
|
242
|
-
type ActionExecutionLogParams as ActionExecutionLogParams,
|
|
243
|
-
};
|
|
244
|
-
}
|
package/src/resources/trigger.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class Trigger extends APIResource {
|
|
8
|
-
log(body: TriggerLogParams, options?: RequestOptions): APIPromise<TriggerLogResponse> {
|
|
9
|
-
return this._client.post('/api/v3/internal/trigger/logs', { body, ...options });
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface TriggerLogResponse {
|
|
14
|
-
nextCursor: string | null;
|
|
15
|
-
|
|
16
|
-
data?: Array<TriggerLogResponse.Data>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export namespace TriggerLogResponse {
|
|
20
|
-
export interface Data {
|
|
21
|
-
id: string;
|
|
22
|
-
|
|
23
|
-
appName: string;
|
|
24
|
-
|
|
25
|
-
clientId: string;
|
|
26
|
-
|
|
27
|
-
connectionId: string;
|
|
28
|
-
|
|
29
|
-
createdAt: string;
|
|
30
|
-
|
|
31
|
-
entityId: string;
|
|
32
|
-
|
|
33
|
-
meta: Data.Meta;
|
|
34
|
-
|
|
35
|
-
status: string;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Log entity type (trigger or action)
|
|
39
|
-
*/
|
|
40
|
-
type: 'trigger' | 'action';
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export namespace Data {
|
|
44
|
-
export interface Meta {
|
|
45
|
-
id: string;
|
|
46
|
-
|
|
47
|
-
clientId: string;
|
|
48
|
-
|
|
49
|
-
connectionId: string;
|
|
50
|
-
|
|
51
|
-
createdAt: string;
|
|
52
|
-
|
|
53
|
-
provider: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Log entity type (trigger or action)
|
|
57
|
-
*/
|
|
58
|
-
type: 'trigger' | 'action';
|
|
59
|
-
|
|
60
|
-
updatedAt: string;
|
|
61
|
-
|
|
62
|
-
triggerClientError?: string;
|
|
63
|
-
|
|
64
|
-
triggerClientPayload?: string;
|
|
65
|
-
|
|
66
|
-
triggerClientResponse?: string;
|
|
67
|
-
|
|
68
|
-
triggerName?: string;
|
|
69
|
-
|
|
70
|
-
triggerProviderPayload?: string;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface TriggerLogParams {
|
|
76
|
-
/**
|
|
77
|
-
* cursor that can be used to paginate through the logs
|
|
78
|
-
*/
|
|
79
|
-
cursor: string | null;
|
|
80
|
-
|
|
81
|
-
entityId?: string;
|
|
82
|
-
|
|
83
|
-
integrationId?: string;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* number of logs to return
|
|
87
|
-
*/
|
|
88
|
-
limit?: number;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Search term to filter logs
|
|
92
|
-
*/
|
|
93
|
-
search?: string;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Filter logs by their status level
|
|
97
|
-
*/
|
|
98
|
-
status?: 'all' | 'success' | 'error';
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Return logs from the last N time units
|
|
102
|
-
*/
|
|
103
|
-
time?: '5m' | '30m' | '6h' | '1d' | '1w' | '1month' | '1y';
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export declare namespace Trigger {
|
|
107
|
-
export { type TriggerLogResponse as TriggerLogResponse, type TriggerLogParams as TriggerLogParams };
|
|
108
|
-
}
|