@composio/client 0.1.0-alpha.1 → 0.1.0-alpha.10
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 +137 -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 +28 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +28 -25
- 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 +75 -23
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +75 -23
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +18 -0
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +18 -0
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +106 -209
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +106 -209
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +18 -0
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +18 -0
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +126 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +126 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +21 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +17 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- 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 +37 -0
- package/resources/mcp/command.d.mts.map +1 -0
- package/resources/mcp/command.d.ts +37 -0
- package/resources/mcp/command.d.ts.map +1 -0
- package/resources/mcp/command.js +15 -0
- package/resources/mcp/command.js.map +1 -0
- package/resources/mcp/command.mjs +11 -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 +414 -0
- package/resources/mcp/mcp.d.mts.map +1 -0
- package/resources/mcp/mcp.d.ts +414 -0
- package/resources/mcp/mcp.d.ts.map +1 -0
- package/resources/mcp/mcp.js +65 -0
- package/resources/mcp/mcp.js.map +1 -0
- package/resources/mcp/mcp.mjs +60 -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 +23 -0
- package/resources/migration.d.mts.map +1 -0
- package/resources/migration.d.ts +23 -0
- package/resources/migration.d.ts.map +1 -0
- package/resources/migration.js +15 -0
- package/resources/migration.js.map +1 -0
- package/resources/migration.mjs +11 -0
- package/resources/migration.mjs.map +1 -0
- package/resources/org/api-key.d.mts +7 -0
- package/resources/org/api-key.d.mts.map +1 -1
- package/resources/org/api-key.d.ts +7 -0
- package/resources/org/api-key.d.ts.map +1 -1
- package/resources/org/api-key.js +7 -0
- package/resources/org/api-key.js.map +1 -1
- package/resources/org/api-key.mjs +7 -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/project.d.mts +9 -6
- package/resources/org/project/project.d.mts.map +1 -1
- package/resources/org/project/project.d.ts +9 -6
- package/resources/org/project/project.d.ts.map +1 -1
- package/resources/org/project/project.js +13 -26
- package/resources/org/project/project.js.map +1 -1
- package/resources/org/project/project.mjs +9 -0
- package/resources/org/project/project.mjs.map +1 -1
- package/resources/org/project/trigger.d.mts +0 -4
- package/resources/org/project/trigger.d.mts.map +1 -1
- package/resources/org/project/trigger.d.ts +0 -4
- package/resources/org/project/trigger.d.ts.map +1 -1
- package/resources/org/project/webhook.d.mts +3 -0
- package/resources/org/project/webhook.d.mts.map +1 -1
- package/resources/org/project/webhook.d.ts +3 -0
- package/resources/org/project/webhook.d.ts.map +1 -1
- package/resources/org/project/webhook.js +3 -0
- package/resources/org/project/webhook.js.map +1 -1
- package/resources/org/project/webhook.mjs +3 -0
- 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 +25 -2
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +25 -2
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +10 -0
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +10 -0
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +107 -0
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +107 -0
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +14 -0
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +14 -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/trigger-instances.d.mts +32 -9
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +32 -9
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +2 -24
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- 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 +11 -4
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +11 -4
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +7 -0
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +7 -0
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +132 -88
- 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 +100 -31
- package/src/resources/connected-accounts.ts +122 -295
- package/src/resources/files.ts +176 -0
- package/src/resources/index.ts +26 -8
- package/src/resources/mcp/command.ts +50 -0
- package/src/resources/mcp/index.ts +17 -0
- package/src/resources/mcp/mcp.ts +562 -0
- package/src/resources/mcp.ts +3 -0
- package/src/resources/migration.ts +37 -0
- package/src/resources/org/api-key.ts +7 -0
- package/src/resources/org/project/project.ts +9 -12
- package/src/resources/org/project/trigger.ts +0 -8
- package/src/resources/org/project/webhook.ts +3 -0
- package/src/resources/team-members.ts +12 -0
- package/src/resources/toolkits.ts +35 -2
- package/src/resources/tools.ts +128 -0
- package/src/resources/trigger-instances/handle.ts +10 -2
- package/src/resources/trigger-instances/trigger-instances.ts +36 -9
- package/src/resources/triggers-types.ts +13 -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
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export declare let getFile: () => FileConstructor;
|
|
3
|
-
type FileConstructor = typeof globalThis extends {
|
|
4
|
-
File: infer fileConstructor;
|
|
5
|
-
} ? fileConstructor : typeof FallbackFile;
|
|
6
|
-
export type File = InstanceType<FileConstructor>;
|
|
7
|
-
type FallbackBlobSource = ConstructorParameters<typeof Blob>[0] extends infer T ? T : never;
|
|
8
|
-
/**
|
|
9
|
-
* A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.
|
|
10
|
-
*/
|
|
11
|
-
declare class FallbackFile extends Blob {
|
|
12
|
-
constructor(sources: FallbackBlobSource, fileName: string, options?: any);
|
|
13
|
-
/**
|
|
14
|
-
* The name of the `File`.
|
|
15
|
-
*/
|
|
16
|
-
readonly name: string;
|
|
17
|
-
/**
|
|
18
|
-
* The last modified date of the `File`.
|
|
19
|
-
*/
|
|
20
|
-
readonly lastModified: number;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=file.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.mts","sourceRoot":"","sources":["../../src/internal/shims/file.ts"],"names":[],"mappings":";AAEA,eAAO,IAAI,OAAO,QAA2B,eAO5C,CAAC;AAEF,KAAK,eAAe,GAClB,OAAO,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,eAAe,CAAA;CAAE,GAAG,eAAe,GAAG,OAAO,YAAY,CAAC;AACpG,MAAM,MAAM,IAAI,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;AAIjD,KAAK,kBAAkB,GAAG,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAC5F;;GAEG;AACH,OAAO,OAAO,YAAa,SAAQ,IAAI;gBACzB,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG;IACxE;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B"}
|
package/internal/shims/file.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export declare let getFile: () => FileConstructor;
|
|
3
|
-
type FileConstructor = typeof globalThis extends {
|
|
4
|
-
File: infer fileConstructor;
|
|
5
|
-
} ? fileConstructor : typeof FallbackFile;
|
|
6
|
-
export type File = InstanceType<FileConstructor>;
|
|
7
|
-
type FallbackBlobSource = ConstructorParameters<typeof Blob>[0] extends infer T ? T : never;
|
|
8
|
-
/**
|
|
9
|
-
* A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.
|
|
10
|
-
*/
|
|
11
|
-
declare class FallbackFile extends Blob {
|
|
12
|
-
constructor(sources: FallbackBlobSource, fileName: string, options?: any);
|
|
13
|
-
/**
|
|
14
|
-
* The name of the `File`.
|
|
15
|
-
*/
|
|
16
|
-
readonly name: string;
|
|
17
|
-
/**
|
|
18
|
-
* The last modified date of the `File`.
|
|
19
|
-
*/
|
|
20
|
-
readonly lastModified: number;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/internal/shims/file.ts"],"names":[],"mappings":";AAEA,eAAO,IAAI,OAAO,QAA2B,eAO5C,CAAC;AAEF,KAAK,eAAe,GAClB,OAAO,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,eAAe,CAAA;CAAE,GAAG,eAAe,GAAG,OAAO,YAAY,CAAC;AACpG,MAAM,MAAM,IAAI,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;AAIjD,KAAK,kBAAkB,GAAG,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAC5F;;GAEG;AACH,OAAO,OAAO,YAAa,SAAQ,IAAI;gBACzB,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG;IACxE;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B"}
|
package/internal/shims/file.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFile = void 0;
|
|
4
|
-
const getBuiltinModule_1 = require("./getBuiltinModule.js");
|
|
5
|
-
let getFile = function lazyGetFile() {
|
|
6
|
-
if (exports.getFile !== lazyGetFile)
|
|
7
|
-
return (0, exports.getFile)();
|
|
8
|
-
// We can drop getBuiltinModule once we no longer support Node < 20.0.0
|
|
9
|
-
const File = globalThis.File ?? (0, getBuiltinModule_1.getBuiltinModule)?.('node:buffer')?.File;
|
|
10
|
-
if (!File)
|
|
11
|
-
throw new Error('`File` is not defined as a global, which is required for file uploads.');
|
|
12
|
-
exports.getFile = () => File;
|
|
13
|
-
return File;
|
|
14
|
-
};
|
|
15
|
-
exports.getFile = getFile;
|
|
16
|
-
//# sourceMappingURL=file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/internal/shims/file.ts"],"names":[],"mappings":";;;AAAA,4DAAsD;AAE/C,IAAI,OAAO,GAAG,SAAS,WAAW;IACvC,IAAI,eAAO,KAAK,WAAW;QAAE,OAAO,IAAA,eAAO,GAAE,CAAC;IAC9C,uEAAuE;IACvE,MAAM,IAAI,GAAI,UAAkB,CAAC,IAAI,IAAK,IAAA,mCAAgB,CAAA,EAAE,CAAC,aAAa,CAAS,EAAE,IAAI,CAAC;IAC1F,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,wEAAwE,CAAC,CAAC;IACrG,eAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;IACrB,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAPS,QAAA,OAAO,WAOhB"}
|
package/internal/shims/file.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { getBuiltinModule } from "./getBuiltinModule.mjs";
|
|
2
|
-
export let getFile = function lazyGetFile() {
|
|
3
|
-
if (getFile !== lazyGetFile)
|
|
4
|
-
return getFile();
|
|
5
|
-
// We can drop getBuiltinModule once we no longer support Node < 20.0.0
|
|
6
|
-
const File = globalThis.File ?? getBuiltinModule?.('node:buffer')?.File;
|
|
7
|
-
if (!File)
|
|
8
|
-
throw new Error('`File` is not defined as a global, which is required for file uploads.');
|
|
9
|
-
getFile = () => File;
|
|
10
|
-
return File;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=file.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.mjs","sourceRoot":"","sources":["../../src/internal/shims/file.ts"],"names":[],"mappings":"OAAO,EAAE,gBAAgB,EAAE;AAE3B,MAAM,CAAC,IAAI,OAAO,GAAG,SAAS,WAAW;IACvC,IAAI,OAAO,KAAK,WAAW;QAAE,OAAO,OAAO,EAAE,CAAC;IAC9C,uEAAuE;IACvE,MAAM,IAAI,GAAI,UAAkB,CAAC,IAAI,IAAK,gBAAgB,EAAE,CAAC,aAAa,CAAS,EAAE,IAAI,CAAC;IAC1F,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,wEAAwE,CAAC,CAAC;IACrG,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;IACrB,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -1,11 +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 declare let getBuiltinModule: null | ((id: string) => object | undefined);
|
|
11
|
-
//# sourceMappingURL=getBuiltinModule.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBuiltinModule.d.mts","sourceRoot":"","sources":["../../src/internal/shims/getBuiltinModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,IAAI,gBAAgB,EAAE,IAAI,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAsDtE,CAAC"}
|
|
@@ -1,11 +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 declare let getBuiltinModule: null | ((id: string) => object | undefined);
|
|
11
|
-
//# sourceMappingURL=getBuiltinModule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBuiltinModule.d.ts","sourceRoot":"","sources":["../../src/internal/shims/getBuiltinModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,IAAI,gBAAgB,EAAE,IAAI,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAsDtE,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBuiltinModule = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Load a Node built-in module. ID may or may not be prefixed by `node:` and
|
|
6
|
-
* will be normalized. If we used static imports then our bundle size would be bloated by
|
|
7
|
-
* injected polyfills, and if we used dynamic require then in addition to bundlers logging warnings,
|
|
8
|
-
* our code would not work when bundled to ESM and run in Node 18.
|
|
9
|
-
* @param {string} id ID of the built-in to be loaded.
|
|
10
|
-
* @returns {object|undefined} exports of the built-in. Undefined if the built-in
|
|
11
|
-
* does not exist.
|
|
12
|
-
*/
|
|
13
|
-
let getBuiltinModule = function getBuiltinModuleLazy(id) {
|
|
14
|
-
try {
|
|
15
|
-
if (exports.getBuiltinModule !== getBuiltinModuleLazy)
|
|
16
|
-
return exports.getBuiltinModule(id);
|
|
17
|
-
if (process.getBuiltinModule) {
|
|
18
|
-
exports.getBuiltinModule = process.getBuiltinModule;
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
/* Fallback implementation for Node 18 */
|
|
22
|
-
function createFallbackGetBuiltinModule(BuiltinModule) {
|
|
23
|
-
return function getBuiltinModule(id) {
|
|
24
|
-
id = BuiltinModule.normalizeRequirableId(String(id));
|
|
25
|
-
if (!BuiltinModule.canBeRequiredByUsers(id)) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const mod = BuiltinModule.map.get(id);
|
|
29
|
-
mod.compileForPublicLoader();
|
|
30
|
-
return mod.exports;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
const magicKey = Math.random() + '';
|
|
34
|
-
let module;
|
|
35
|
-
try {
|
|
36
|
-
const kClone = Object.getOwnPropertySymbols(Blob.prototype).find((e) => e.description?.includes('clone'));
|
|
37
|
-
Object.defineProperty(Object.prototype, magicKey, {
|
|
38
|
-
get() {
|
|
39
|
-
module = this;
|
|
40
|
-
throw null;
|
|
41
|
-
},
|
|
42
|
-
configurable: true,
|
|
43
|
-
});
|
|
44
|
-
structuredClone(new (class extends Blob {
|
|
45
|
-
[kClone]() {
|
|
46
|
-
return {
|
|
47
|
-
deserializeInfo: 'internal/bootstrap/realm:' + magicKey,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
})([]));
|
|
51
|
-
}
|
|
52
|
-
catch { }
|
|
53
|
-
delete Object.prototype[magicKey];
|
|
54
|
-
if (module) {
|
|
55
|
-
exports.getBuiltinModule = createFallbackGetBuiltinModule(module.BuiltinModule);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
exports.getBuiltinModule = () => undefined;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return exports.getBuiltinModule(id);
|
|
62
|
-
}
|
|
63
|
-
catch {
|
|
64
|
-
return undefined;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
exports.getBuiltinModule = getBuiltinModule;
|
|
68
|
-
//# sourceMappingURL=getBuiltinModule.js.map
|
|
@@ -1 +0,0 @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b,CAAC;oBACD,YAAY,EAAE,IAAI;iBACnB,CAAC,CAAC;gBACH,eAAe,CACb,IAAI,CAAC,KAAM,SAAQ,IAAI;oBACrB,CAAC,MAAM,CAAC;wBACN,OAAO;4BACL,eAAe,EAAE,2BAA2B,GAAG,QAAQ;yBACxD,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC,EAAE,CAAC,CACP,CAAC;aACH;YAAC,MAAM,GAAE;YACV,OAAQ,MAAM,CAAC,SAAiB,CAAC,QAAQ,CAAC,CAAC;YAC3C,IAAI,MAAM,EAAE;gBACV,wBAAgB,GAAG,8BAA8B,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;aACzE;iBAAM;gBACL,wBAAgB,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;aACpC;SACF;QACD,OAAO,wBAAiB,CAAC,EAAE,CAAC,CAAC;KAC9B;IAAC,MAAM;QACN,OAAO,SAAS,CAAC;KAClB;AACH,CAAC,CAAC;AAtDS,QAAA,gBAAgB,oBAsDzB"}
|
|
@@ -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 = function getBuiltinModuleLazy(id) {
|
|
11
|
-
try {
|
|
12
|
-
if (getBuiltinModule !== getBuiltinModuleLazy)
|
|
13
|
-
return getBuiltinModule(id);
|
|
14
|
-
if (process.getBuiltinModule) {
|
|
15
|
-
getBuiltinModule = process.getBuiltinModule;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
/* Fallback implementation for Node 18 */
|
|
19
|
-
function createFallbackGetBuiltinModule(BuiltinModule) {
|
|
20
|
-
return function getBuiltinModule(id) {
|
|
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;
|
|
32
|
-
try {
|
|
33
|
-
const kClone = Object.getOwnPropertySymbols(Blob.prototype).find((e) => e.description?.includes('clone'));
|
|
34
|
-
Object.defineProperty(Object.prototype, magicKey, {
|
|
35
|
-
get() {
|
|
36
|
-
module = this;
|
|
37
|
-
throw null;
|
|
38
|
-
},
|
|
39
|
-
configurable: true,
|
|
40
|
-
});
|
|
41
|
-
structuredClone(new (class extends Blob {
|
|
42
|
-
[kClone]() {
|
|
43
|
-
return {
|
|
44
|
-
deserializeInfo: 'internal/bootstrap/realm:' + magicKey,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
})([]));
|
|
48
|
-
}
|
|
49
|
-
catch { }
|
|
50
|
-
delete Object.prototype[magicKey];
|
|
51
|
-
if (module) {
|
|
52
|
-
getBuiltinModule = createFallbackGetBuiltinModule(module.BuiltinModule);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
getBuiltinModule = () => undefined;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return getBuiltinModule(id);
|
|
59
|
-
}
|
|
60
|
-
catch {
|
|
61
|
-
return undefined;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
//# sourceMappingURL=getBuiltinModule.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBuiltinModule.mjs","sourceRoot":"","sources":["../../src/internal/shims/getBuiltinModule.ts"],"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AC,KAAM,SAAQ,IAAI;oBACrB,CAAC,MAAM,CAAC;wBACN,OAAO;4BACL,eAAe,EAAE,2BAA2B,GAAG,QAAQ;yBACxD,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC,EAAE,CAAC,CACP,CAAC;aACH;YAAC,MAAM,GAAE;YACV,OAAQ,MAAM,CAAC,SAAiB,CAAC,QAAQ,CAAC,CAAC;YAC3C,IAAI,MAAM,EAAE;gBACV,gBAAgB,GAAG,8BAA8B,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;aACzE;iBAAM;gBACL,gBAAgB,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;aACpC;SACF;QACD,OAAO,gBAAiB,CAAC,EAAE,CAAC,CAAC;KAC9B;IAAC,MAAM;QACN,OAAO,SAAS,CAAC;KAClB;AACH,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nullGetBuiltinModule.d.mts","sourceRoot":"","sources":["../../src/internal/shims/nullGetBuiltinModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,MAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nullGetBuiltinModule.d.ts","sourceRoot":"","sources":["../../src/internal/shims/nullGetBuiltinModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,MAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nullGetBuiltinModule.js","sourceRoot":"","sources":["../../src/internal/shims/nullGetBuiltinModule.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,IAAI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nullGetBuiltinModule.mjs","sourceRoot":"","sources":["../../src/internal/shims/nullGetBuiltinModule.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
export declare class ActionExecution extends APIResource {
|
|
5
|
-
log(body: ActionExecutionLogParams, options?: RequestOptions): APIPromise<ActionExecutionLogResponse>;
|
|
6
|
-
retrieveFields(options?: RequestOptions): APIPromise<ActionExecutionRetrieveFieldsResponse>;
|
|
7
|
-
retrieveLog(id: string, options?: RequestOptions): APIPromise<ActionExecutionRetrieveLogResponse>;
|
|
8
|
-
}
|
|
9
|
-
export interface ActionExecutionLogResponse {
|
|
10
|
-
data: Array<ActionExecutionLogResponse.Data>;
|
|
11
|
-
nextCursor: number | null;
|
|
12
|
-
}
|
|
13
|
-
export declare namespace ActionExecutionLogResponse {
|
|
14
|
-
interface Data {
|
|
15
|
-
id: string;
|
|
16
|
-
actionKey: string;
|
|
17
|
-
app: Data.App;
|
|
18
|
-
appKey: string;
|
|
19
|
-
connectedAccountId: string;
|
|
20
|
-
createdAt: number;
|
|
21
|
-
entityId: string;
|
|
22
|
-
executionTime: number;
|
|
23
|
-
minimalResponse: string;
|
|
24
|
-
status: 'success' | 'failed';
|
|
25
|
-
}
|
|
26
|
-
namespace Data {
|
|
27
|
-
interface App {
|
|
28
|
-
icon: string;
|
|
29
|
-
name: string;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export interface ActionExecutionRetrieveFieldsResponse {
|
|
34
|
-
fields: Record<string, Array<ActionExecutionRetrieveFieldsResponse.Field>>;
|
|
35
|
-
}
|
|
36
|
-
export declare namespace ActionExecutionRetrieveFieldsResponse {
|
|
37
|
-
interface Field {
|
|
38
|
-
/**
|
|
39
|
-
* The id of the field
|
|
40
|
-
*/
|
|
41
|
-
id: string;
|
|
42
|
-
/**
|
|
43
|
-
* The display name of the field
|
|
44
|
-
*/
|
|
45
|
-
displayName: string;
|
|
46
|
-
/**
|
|
47
|
-
* The type of the field
|
|
48
|
-
*/
|
|
49
|
-
type: string;
|
|
50
|
-
/**
|
|
51
|
-
* The regex of the field
|
|
52
|
-
*/
|
|
53
|
-
regex?: string;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export interface ActionExecutionRetrieveLogResponse {
|
|
57
|
-
actionId: string;
|
|
58
|
-
actionLogId: string;
|
|
59
|
-
app: ActionExecutionRetrieveLogResponse.App;
|
|
60
|
-
connection: ActionExecutionRetrieveLogResponse.Connection;
|
|
61
|
-
endTime: number;
|
|
62
|
-
error: Record<string, unknown>;
|
|
63
|
-
executionMetadata: Record<string, unknown>;
|
|
64
|
-
payloadReceived: Record<string, unknown>;
|
|
65
|
-
response: Record<string, unknown>;
|
|
66
|
-
session: Record<string, unknown>;
|
|
67
|
-
startTime: number;
|
|
68
|
-
status: 'success' | 'error' | 'warning' | 'info';
|
|
69
|
-
steps: Array<ActionExecutionRetrieveLogResponse.Step>;
|
|
70
|
-
totalDuration: string;
|
|
71
|
-
version: string;
|
|
72
|
-
}
|
|
73
|
-
export declare namespace ActionExecutionRetrieveLogResponse {
|
|
74
|
-
interface App {
|
|
75
|
-
icon: string;
|
|
76
|
-
name: string;
|
|
77
|
-
uniqueId: string;
|
|
78
|
-
}
|
|
79
|
-
interface Connection {
|
|
80
|
-
entity: string;
|
|
81
|
-
id?: string;
|
|
82
|
-
}
|
|
83
|
-
interface Step {
|
|
84
|
-
endTime: number;
|
|
85
|
-
message: string;
|
|
86
|
-
startTime: number;
|
|
87
|
-
status: 'success' | 'error';
|
|
88
|
-
totalDuration: number;
|
|
89
|
-
type: 'tool_execution' | 'fetch_connection_details';
|
|
90
|
-
logs?: Array<Step.Log>;
|
|
91
|
-
metadata?: Step.Metadata;
|
|
92
|
-
}
|
|
93
|
-
namespace Step {
|
|
94
|
-
interface Log {
|
|
95
|
-
level: string;
|
|
96
|
-
message: string;
|
|
97
|
-
request: Log.Request;
|
|
98
|
-
requestId: string;
|
|
99
|
-
response: Log.Response;
|
|
100
|
-
time: number;
|
|
101
|
-
type: 'network' | 'system';
|
|
102
|
-
}
|
|
103
|
-
namespace Log {
|
|
104
|
-
interface Request {
|
|
105
|
-
method: string;
|
|
106
|
-
url: string;
|
|
107
|
-
headers?: Record<string, string>;
|
|
108
|
-
json?: Record<string, unknown>;
|
|
109
|
-
params?: Record<string, unknown>;
|
|
110
|
-
timeout?: number;
|
|
111
|
-
}
|
|
112
|
-
interface Response {
|
|
113
|
-
status: number;
|
|
114
|
-
time: string;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
interface Metadata {
|
|
118
|
-
encryption?: string;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
export interface ActionExecutionLogParams {
|
|
123
|
-
/**
|
|
124
|
-
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
125
|
-
*/
|
|
126
|
-
cursor: number | null;
|
|
127
|
-
/**
|
|
128
|
-
* whether_the_search_is_case_sensitive_or_not
|
|
129
|
-
*/
|
|
130
|
-
case_sensitive?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* start_time_of_the_logs_in_epoch_time
|
|
133
|
-
*/
|
|
134
|
-
from?: number;
|
|
135
|
-
/**
|
|
136
|
-
* number_of_logs_to_return
|
|
137
|
-
*/
|
|
138
|
-
limit?: number;
|
|
139
|
-
search_params?: Array<ActionExecutionLogParams.SearchParam>;
|
|
140
|
-
/**
|
|
141
|
-
* end_time_of_the_logs_in_epoch_time
|
|
142
|
-
*/
|
|
143
|
-
to?: number;
|
|
144
|
-
}
|
|
145
|
-
export declare namespace ActionExecutionLogParams {
|
|
146
|
-
interface SearchParam {
|
|
147
|
-
field?: string;
|
|
148
|
-
operation?: string;
|
|
149
|
-
value?: string;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
export declare namespace ActionExecution {
|
|
153
|
-
export { type ActionExecutionLogResponse as ActionExecutionLogResponse, type ActionExecutionRetrieveFieldsResponse as ActionExecutionRetrieveFieldsResponse, type ActionExecutionRetrieveLogResponse as ActionExecutionRetrieveLogResponse, type ActionExecutionLogParams as ActionExecutionLogParams, };
|
|
154
|
-
}
|
|
155
|
-
//# sourceMappingURL=action-execution.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-execution.d.mts","sourceRoot":"","sources":["../src/resources/action-execution.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C,GAAG,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIrG,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qCAAqC,CAAC;IAI3F,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGlG;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,KAAK,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;IAE7C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC;QAEd,MAAM,EAAE,MAAM,CAAC;QAEf,kBAAkB,EAAE,MAAM,CAAC;QAE3B,SAAS,EAAE,MAAM,CAAC;QAElB,QAAQ,EAAE,MAAM,CAAC;QAEjB,aAAa,EAAE,MAAM,CAAC;QAEtB,eAAe,EAAE,MAAM,CAAC;QAExB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;KAC9B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,GAAG;YAClB,IAAI,EAAE,M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;gBAEf,IAAI,EAAE,MAAM,CAAC;aACd;SACF;QAED,UAAiB,QAAQ;YACvB,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB;KACF;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,aAAa,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAE5D;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,yBAAiB,wBAAwB,CAAC;IACxC,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,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1,155 +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 ActionExecution extends APIResource {
|
|
5
|
-
log(body: ActionExecutionLogParams, options?: RequestOptions): APIPromise<ActionExecutionLogResponse>;
|
|
6
|
-
retrieveFields(options?: RequestOptions): APIPromise<ActionExecutionRetrieveFieldsResponse>;
|
|
7
|
-
retrieveLog(id: string, options?: RequestOptions): APIPromise<ActionExecutionRetrieveLogResponse>;
|
|
8
|
-
}
|
|
9
|
-
export interface ActionExecutionLogResponse {
|
|
10
|
-
data: Array<ActionExecutionLogResponse.Data>;
|
|
11
|
-
nextCursor: number | null;
|
|
12
|
-
}
|
|
13
|
-
export declare namespace ActionExecutionLogResponse {
|
|
14
|
-
interface Data {
|
|
15
|
-
id: string;
|
|
16
|
-
actionKey: string;
|
|
17
|
-
app: Data.App;
|
|
18
|
-
appKey: string;
|
|
19
|
-
connectedAccountId: string;
|
|
20
|
-
createdAt: number;
|
|
21
|
-
entityId: string;
|
|
22
|
-
executionTime: number;
|
|
23
|
-
minimalResponse: string;
|
|
24
|
-
status: 'success' | 'failed';
|
|
25
|
-
}
|
|
26
|
-
namespace Data {
|
|
27
|
-
interface App {
|
|
28
|
-
icon: string;
|
|
29
|
-
name: string;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export interface ActionExecutionRetrieveFieldsResponse {
|
|
34
|
-
fields: Record<string, Array<ActionExecutionRetrieveFieldsResponse.Field>>;
|
|
35
|
-
}
|
|
36
|
-
export declare namespace ActionExecutionRetrieveFieldsResponse {
|
|
37
|
-
interface Field {
|
|
38
|
-
/**
|
|
39
|
-
* The id of the field
|
|
40
|
-
*/
|
|
41
|
-
id: string;
|
|
42
|
-
/**
|
|
43
|
-
* The display name of the field
|
|
44
|
-
*/
|
|
45
|
-
displayName: string;
|
|
46
|
-
/**
|
|
47
|
-
* The type of the field
|
|
48
|
-
*/
|
|
49
|
-
type: string;
|
|
50
|
-
/**
|
|
51
|
-
* The regex of the field
|
|
52
|
-
*/
|
|
53
|
-
regex?: string;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export interface ActionExecutionRetrieveLogResponse {
|
|
57
|
-
actionId: string;
|
|
58
|
-
actionLogId: string;
|
|
59
|
-
app: ActionExecutionRetrieveLogResponse.App;
|
|
60
|
-
connection: ActionExecutionRetrieveLogResponse.Connection;
|
|
61
|
-
endTime: number;
|
|
62
|
-
error: Record<string, unknown>;
|
|
63
|
-
executionMetadata: Record<string, unknown>;
|
|
64
|
-
payloadReceived: Record<string, unknown>;
|
|
65
|
-
response: Record<string, unknown>;
|
|
66
|
-
session: Record<string, unknown>;
|
|
67
|
-
startTime: number;
|
|
68
|
-
status: 'success' | 'error' | 'warning' | 'info';
|
|
69
|
-
steps: Array<ActionExecutionRetrieveLogResponse.Step>;
|
|
70
|
-
totalDuration: string;
|
|
71
|
-
version: string;
|
|
72
|
-
}
|
|
73
|
-
export declare namespace ActionExecutionRetrieveLogResponse {
|
|
74
|
-
interface App {
|
|
75
|
-
icon: string;
|
|
76
|
-
name: string;
|
|
77
|
-
uniqueId: string;
|
|
78
|
-
}
|
|
79
|
-
interface Connection {
|
|
80
|
-
entity: string;
|
|
81
|
-
id?: string;
|
|
82
|
-
}
|
|
83
|
-
interface Step {
|
|
84
|
-
endTime: number;
|
|
85
|
-
message: string;
|
|
86
|
-
startTime: number;
|
|
87
|
-
status: 'success' | 'error';
|
|
88
|
-
totalDuration: number;
|
|
89
|
-
type: 'tool_execution' | 'fetch_connection_details';
|
|
90
|
-
logs?: Array<Step.Log>;
|
|
91
|
-
metadata?: Step.Metadata;
|
|
92
|
-
}
|
|
93
|
-
namespace Step {
|
|
94
|
-
interface Log {
|
|
95
|
-
level: string;
|
|
96
|
-
message: string;
|
|
97
|
-
request: Log.Request;
|
|
98
|
-
requestId: string;
|
|
99
|
-
response: Log.Response;
|
|
100
|
-
time: number;
|
|
101
|
-
type: 'network' | 'system';
|
|
102
|
-
}
|
|
103
|
-
namespace Log {
|
|
104
|
-
interface Request {
|
|
105
|
-
method: string;
|
|
106
|
-
url: string;
|
|
107
|
-
headers?: Record<string, string>;
|
|
108
|
-
json?: Record<string, unknown>;
|
|
109
|
-
params?: Record<string, unknown>;
|
|
110
|
-
timeout?: number;
|
|
111
|
-
}
|
|
112
|
-
interface Response {
|
|
113
|
-
status: number;
|
|
114
|
-
time: string;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
interface Metadata {
|
|
118
|
-
encryption?: string;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
export interface ActionExecutionLogParams {
|
|
123
|
-
/**
|
|
124
|
-
* cursor_that_can_be_used_to_paginate_through_the_logs
|
|
125
|
-
*/
|
|
126
|
-
cursor: number | null;
|
|
127
|
-
/**
|
|
128
|
-
* whether_the_search_is_case_sensitive_or_not
|
|
129
|
-
*/
|
|
130
|
-
case_sensitive?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* start_time_of_the_logs_in_epoch_time
|
|
133
|
-
*/
|
|
134
|
-
from?: number;
|
|
135
|
-
/**
|
|
136
|
-
* number_of_logs_to_return
|
|
137
|
-
*/
|
|
138
|
-
limit?: number;
|
|
139
|
-
search_params?: Array<ActionExecutionLogParams.SearchParam>;
|
|
140
|
-
/**
|
|
141
|
-
* end_time_of_the_logs_in_epoch_time
|
|
142
|
-
*/
|
|
143
|
-
to?: number;
|
|
144
|
-
}
|
|
145
|
-
export declare namespace ActionExecutionLogParams {
|
|
146
|
-
interface SearchParam {
|
|
147
|
-
field?: string;
|
|
148
|
-
operation?: string;
|
|
149
|
-
value?: string;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
export declare namespace ActionExecution {
|
|
153
|
-
export { type ActionExecutionLogResponse as ActionExecutionLogResponse, type ActionExecutionRetrieveFieldsResponse as ActionExecutionRetrieveFieldsResponse, type ActionExecutionRetrieveLogResponse as ActionExecutionRetrieveLogResponse, type ActionExecutionLogParams as ActionExecutionLogParams, };
|
|
154
|
-
}
|
|
155
|
-
//# sourceMappingURL=action-execution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-execution.d.ts","sourceRoot":"","sources":["../src/resources/action-execution.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C,GAAG,CA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C,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAE5D;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,yBAAiB,wBAAwB,CAAC;IACxC,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,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1,19 +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.ActionExecution = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const path_1 = require("../internal/utils/path.js");
|
|
7
|
-
class ActionExecution extends resource_1.APIResource {
|
|
8
|
-
log(body, options) {
|
|
9
|
-
return this._client.post('/api/v3/internal/action_execution/logs', { body, ...options });
|
|
10
|
-
}
|
|
11
|
-
retrieveFields(options) {
|
|
12
|
-
return this._client.get('/api/v3/internal/action_execution/fields', options);
|
|
13
|
-
}
|
|
14
|
-
retrieveLog(id, options) {
|
|
15
|
-
return this._client.get((0, path_1.path) `/api/v3/internal/action_execution/log/${id}`, options);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.ActionExecution = ActionExecution;
|
|
19
|
-
//# sourceMappingURL=action-execution.js.map
|