@composio/client 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/LICENSE +201 -0
- package/README.md +373 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +19 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +218 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +218 -0
- package/client.d.ts.map +1 -0
- package/client.js +506 -0
- package/client.js.map +1 -0
- package/client.mjs +479 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +47 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +47 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +84 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +80 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +47 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +47 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +19 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +75 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +75 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +21 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +21 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +77 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +72 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +13 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +13 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +36 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +33 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +33 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +28 -0
- package/internal/shim-types.d.ts +28 -0
- package/internal/shims/crypto.d.mts +13 -0
- package/internal/shims/crypto.d.mts.map +1 -0
- package/internal/shims/crypto.d.ts +13 -0
- package/internal/shims/crypto.d.ts.map +1 -0
- package/internal/shims/crypto.js +13 -0
- package/internal/shims/crypto.js.map +1 -0
- package/internal/shims/crypto.mjs +9 -0
- package/internal/shims/crypto.mjs.map +1 -0
- package/internal/shims/file.d.mts +23 -0
- package/internal/shims/file.d.mts.map +1 -0
- package/internal/shims/file.d.ts +23 -0
- package/internal/shims/file.d.ts.map +1 -0
- package/internal/shims/file.js +16 -0
- package/internal/shims/file.js.map +1 -0
- package/internal/shims/file.mjs +12 -0
- package/internal/shims/file.mjs.map +1 -0
- package/internal/shims/getBuiltinModule.d.mts +11 -0
- package/internal/shims/getBuiltinModule.d.mts.map +1 -0
- package/internal/shims/getBuiltinModule.d.ts +11 -0
- package/internal/shims/getBuiltinModule.d.ts.map +1 -0
- package/internal/shims/getBuiltinModule.js +68 -0
- package/internal/shims/getBuiltinModule.js.map +1 -0
- package/internal/shims/getBuiltinModule.mjs +64 -0
- package/internal/shims/getBuiltinModule.mjs.map +1 -0
- package/internal/shims/nullGetBuiltinModule.d.mts +2 -0
- package/internal/shims/nullGetBuiltinModule.d.mts.map +1 -0
- package/internal/shims/nullGetBuiltinModule.d.ts +2 -0
- package/internal/shims/nullGetBuiltinModule.d.ts.map +1 -0
- package/internal/shims/nullGetBuiltinModule.js +5 -0
- package/internal/shims/nullGetBuiltinModule.js.map +1 -0
- package/internal/shims/nullGetBuiltinModule.mjs +2 -0
- package/internal/shims/nullGetBuiltinModule.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +93 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +46 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +46 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +87 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/types.d.mts +68 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +68 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +44 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +44 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +131 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +122 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +33 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +28 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +38 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +38 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +58 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +53 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +20 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +16 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +16 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +16 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +109 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +92 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +24 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +146 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +19 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/action-execution.d.mts +155 -0
- package/resources/action-execution.d.mts.map +1 -0
- package/resources/action-execution.d.ts +155 -0
- package/resources/action-execution.d.ts.map +1 -0
- package/resources/action-execution.js +19 -0
- package/resources/action-execution.js.map +1 -0
- package/resources/action-execution.mjs +15 -0
- package/resources/action-execution.mjs.map +1 -0
- package/resources/auth-configs.d.mts +217 -0
- package/resources/auth-configs.d.mts.map +1 -0
- package/resources/auth-configs.d.ts +217 -0
- package/resources/auth-configs.d.ts.map +1 -0
- package/resources/auth-configs.js +29 -0
- package/resources/auth-configs.js.map +1 -0
- package/resources/auth-configs.mjs +25 -0
- package/resources/auth-configs.mjs.map +1 -0
- package/resources/connected-accounts.d.mts +449 -0
- package/resources/connected-accounts.d.mts.map +1 -0
- package/resources/connected-accounts.d.ts +449 -0
- package/resources/connected-accounts.d.ts.map +1 -0
- package/resources/connected-accounts.js +28 -0
- package/resources/connected-accounts.js.map +1 -0
- package/resources/connected-accounts.mjs +24 -0
- package/resources/connected-accounts.mjs.map +1 -0
- package/resources/index.d.mts +11 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +11 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +25 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +12 -0
- package/resources/index.mjs.map +1 -0
- package/resources/org/api-key.d.mts +17 -0
- package/resources/org/api-key.d.mts.map +1 -0
- package/resources/org/api-key.d.ts +17 -0
- package/resources/org/api-key.d.ts.map +1 -0
- package/resources/org/api-key.js +15 -0
- package/resources/org/api-key.js.map +1 -0
- package/resources/org/api-key.mjs +11 -0
- package/resources/org/api-key.mjs.map +1 -0
- package/resources/org/index.d.mts +4 -0
- package/resources/org/index.d.mts.map +1 -0
- package/resources/org/index.d.ts +4 -0
- package/resources/org/index.d.ts.map +1 -0
- package/resources/org/index.js +11 -0
- package/resources/org/index.js.map +1 -0
- package/resources/org/index.mjs +5 -0
- package/resources/org/index.mjs.map +1 -0
- package/resources/org/org.d.mts +14 -0
- package/resources/org/org.d.mts.map +1 -0
- package/resources/org/org.d.ts +14 -0
- package/resources/org/org.d.ts.map +1 -0
- package/resources/org/org.js +43 -0
- package/resources/org/org.js.map +1 -0
- package/resources/org/org.mjs +16 -0
- package/resources/org/org.mjs.map +1 -0
- package/resources/org/project/api-keys.d.mts +109 -0
- package/resources/org/project/api-keys.d.mts.map +1 -0
- package/resources/org/project/api-keys.d.ts +109 -0
- package/resources/org/project/api-keys.d.ts.map +1 -0
- package/resources/org/project/api-keys.js +23 -0
- package/resources/org/project/api-keys.js.map +1 -0
- package/resources/org/project/api-keys.mjs +19 -0
- package/resources/org/project/api-keys.mjs.map +1 -0
- package/resources/org/project/index.d.mts +5 -0
- package/resources/org/project/index.d.mts.map +1 -0
- package/resources/org/project/index.d.ts +5 -0
- package/resources/org/project/index.d.ts.map +1 -0
- package/resources/org/project/index.js +13 -0
- package/resources/org/project/index.js.map +1 -0
- package/resources/org/project/index.mjs +6 -0
- package/resources/org/project/index.mjs.map +1 -0
- package/resources/org/project/project.d.mts +90 -0
- package/resources/org/project/project.d.mts.map +1 -0
- package/resources/org/project/project.d.ts +90 -0
- package/resources/org/project/project.d.ts.map +1 -0
- package/resources/org/project/project.js +60 -0
- package/resources/org/project/project.js.map +1 -0
- package/resources/org/project/project.mjs +33 -0
- package/resources/org/project/project.mjs.map +1 -0
- package/resources/org/project/trigger.d.mts +51 -0
- package/resources/org/project/trigger.d.mts.map +1 -0
- package/resources/org/project/trigger.d.ts +51 -0
- package/resources/org/project/trigger.d.ts.map +1 -0
- package/resources/org/project/trigger.js +16 -0
- package/resources/org/project/trigger.js.map +1 -0
- package/resources/org/project/trigger.mjs +12 -0
- package/resources/org/project/trigger.mjs.map +1 -0
- package/resources/org/project/webhook.d.mts +92 -0
- package/resources/org/project/webhook.d.mts.map +1 -0
- package/resources/org/project/webhook.d.ts +92 -0
- package/resources/org/project/webhook.d.ts.map +1 -0
- package/resources/org/project/webhook.js +24 -0
- package/resources/org/project/webhook.js.map +1 -0
- package/resources/org/project/webhook.mjs +20 -0
- package/resources/org/project/webhook.mjs.map +1 -0
- package/resources/org/project.d.mts +2 -0
- package/resources/org/project.d.mts.map +1 -0
- package/resources/org/project.d.ts +2 -0
- package/resources/org/project.d.ts.map +1 -0
- package/resources/org/project.js +19 -0
- package/resources/org/project.js.map +1 -0
- package/resources/org/project.mjs +3 -0
- package/resources/org/project.mjs.map +1 -0
- package/resources/org.d.mts +2 -0
- package/resources/org.d.mts.map +1 -0
- package/resources/org.d.ts +2 -0
- package/resources/org.d.ts.map +1 -0
- package/resources/org.js +19 -0
- package/resources/org.js.map +1 -0
- package/resources/org.mjs +3 -0
- package/resources/org.mjs.map +1 -0
- package/resources/team-members.d.mts +57 -0
- package/resources/team-members.d.mts.map +1 -0
- package/resources/team-members.d.ts +57 -0
- package/resources/team-members.d.ts.map +1 -0
- package/resources/team-members.js +22 -0
- package/resources/team-members.js.map +1 -0
- package/resources/team-members.mjs +18 -0
- package/resources/team-members.mjs.map +1 -0
- package/resources/toolkits.d.mts +141 -0
- package/resources/toolkits.d.mts.map +1 -0
- package/resources/toolkits.d.ts +141 -0
- package/resources/toolkits.d.ts.map +1 -0
- package/resources/toolkits.js +19 -0
- package/resources/toolkits.js.map +1 -0
- package/resources/toolkits.mjs +15 -0
- package/resources/toolkits.mjs.map +1 -0
- package/resources/tools.d.mts +164 -0
- package/resources/tools.d.mts.map +1 -0
- package/resources/tools.d.ts +164 -0
- package/resources/tools.d.ts.map +1 -0
- package/resources/tools.js +28 -0
- package/resources/tools.js.map +1 -0
- package/resources/tools.mjs +24 -0
- package/resources/tools.mjs.map +1 -0
- package/resources/trigger-instances/handle.d.mts +25 -0
- package/resources/trigger-instances/handle.d.mts.map +1 -0
- package/resources/trigger-instances/handle.d.ts +25 -0
- package/resources/trigger-instances/handle.d.ts.map +1 -0
- package/resources/trigger-instances/handle.js +18 -0
- package/resources/trigger-instances/handle.js.map +1 -0
- package/resources/trigger-instances/handle.mjs +14 -0
- package/resources/trigger-instances/handle.mjs.map +1 -0
- package/resources/trigger-instances/index.d.mts +3 -0
- package/resources/trigger-instances/index.d.mts.map +1 -0
- package/resources/trigger-instances/index.d.ts +3 -0
- package/resources/trigger-instances/index.d.ts.map +1 -0
- package/resources/trigger-instances/index.js +9 -0
- package/resources/trigger-instances/index.js.map +1 -0
- package/resources/trigger-instances/index.mjs +4 -0
- package/resources/trigger-instances/index.mjs.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.mts +126 -0
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.ts +126 -0
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -0
- package/resources/trigger-instances/trigger-instances.js +53 -0
- package/resources/trigger-instances/trigger-instances.js.map +1 -0
- package/resources/trigger-instances/trigger-instances.mjs +26 -0
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -0
- package/resources/trigger-instances.d.mts +2 -0
- package/resources/trigger-instances.d.mts.map +1 -0
- package/resources/trigger-instances.d.ts +2 -0
- package/resources/trigger-instances.d.ts.map +1 -0
- package/resources/trigger-instances.js +19 -0
- package/resources/trigger-instances.js.map +1 -0
- package/resources/trigger-instances.mjs +3 -0
- package/resources/trigger-instances.mjs.map +1 -0
- package/resources/trigger.d.mts +73 -0
- package/resources/trigger.d.mts.map +1 -0
- package/resources/trigger.d.ts +73 -0
- package/resources/trigger.d.ts.map +1 -0
- package/resources/trigger.js +12 -0
- package/resources/trigger.js.map +1 -0
- package/resources/trigger.mjs +8 -0
- package/resources/trigger.mjs.map +1 -0
- package/resources/triggers-types.d.mts +59 -0
- package/resources/triggers-types.d.mts.map +1 -0
- package/resources/triggers-types.d.ts +59 -0
- package/resources/triggers-types.d.ts.map +1 -0
- package/resources/triggers-types.js +19 -0
- package/resources/triggers-types.js.map +1 -0
- package/resources/triggers-types.mjs +15 -0
- package/resources/triggers-types.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +898 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +96 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +37 -0
- package/src/internal/shim-types.d.ts +28 -0
- package/src/internal/shims/crypto.ts +18 -0
- package/src/internal/shims/file.ts +32 -0
- package/src/internal/shims/getBuiltinModule.ts +64 -0
- package/src/internal/shims/nullGetBuiltinModule.ts +1 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +152 -0
- package/src/internal/types.ts +92 -0
- package/src/internal/uploads.ts +175 -0
- package/src/internal/utils/base64.ts +37 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +65 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +19 -0
- package/src/internal/utils/values.ts +102 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/action-execution.ts +244 -0
- package/src/resources/auth-configs.ts +362 -0
- package/src/resources/connected-accounts.ts +661 -0
- package/src/resources/index.ts +82 -0
- package/src/resources/org/api-key.ts +30 -0
- package/src/resources/org/index.ts +12 -0
- package/src/resources/org/org.ts +39 -0
- package/src/resources/org/project/api-keys.ts +156 -0
- package/src/resources/org/project/index.ts +35 -0
- package/src/resources/org/project/project.ts +206 -0
- package/src/resources/org/project/trigger.ts +95 -0
- package/src/resources/org/project/webhook.ts +131 -0
- package/src/resources/org/project.ts +3 -0
- package/src/resources/org.ts +3 -0
- package/src/resources/team-members.ts +111 -0
- package/src/resources/toolkits.ts +232 -0
- package/src/resources/tools.ts +265 -0
- package/src/resources/trigger-instances/handle.ts +45 -0
- package/src/resources/trigger-instances/index.ts +19 -0
- package/src/resources/trigger-instances/trigger-instances.ts +202 -0
- package/src/resources/trigger-instances.ts +3 -0
- package/src/resources/trigger.ts +108 -0
- package/src/resources/triggers-types.ts +105 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +19 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./utils/values.js"), exports);
|
|
19
|
+
__exportStar(require("./utils/base64.js"), exports);
|
|
20
|
+
__exportStar(require("./utils/env.js"), exports);
|
|
21
|
+
__exportStar(require("./utils/log.js"), exports);
|
|
22
|
+
__exportStar(require("./utils/uuid.js"), exports);
|
|
23
|
+
__exportStar(require("./utils/sleep.js"), exports);
|
|
24
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,oDAA+B;AAC/B,oDAA+B;AAC/B,iDAA4B;AAC5B,iDAA4B;AAC5B,kDAA6B;AAC7B,mDAA8B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export * from "./utils/values.mjs";
|
|
3
|
+
export * from "./utils/base64.mjs";
|
|
4
|
+
export * from "./utils/env.mjs";
|
|
5
|
+
export * from "./utils/log.mjs";
|
|
6
|
+
export * from "./utils/uuid.mjs";
|
|
7
|
+
export * from "./utils/sleep.mjs";
|
|
8
|
+
//# sourceMappingURL=utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.mjs","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/package.json
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@composio/client",
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
|
+
"description": "The official TypeScript library for the Composio SDK API",
|
|
5
|
+
"author": "Composio SDK <dev-feedback@composio-sdk.com>",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"type": "commonjs",
|
|
9
|
+
"repository": "github:composiohq/composio-base-ts",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"packageManager": "yarn@1.22.22",
|
|
12
|
+
"files": [
|
|
13
|
+
"**/*"
|
|
14
|
+
],
|
|
15
|
+
"private": false,
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "./scripts/test",
|
|
18
|
+
"build": "./scripts/build",
|
|
19
|
+
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
20
|
+
"tsn": "ts-node -r tsconfig-paths/register",
|
|
21
|
+
"lint": "./scripts/lint",
|
|
22
|
+
"fix": "./scripts/format"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {},
|
|
25
|
+
"resolutions": {
|
|
26
|
+
"synckit": "0.8.8"
|
|
27
|
+
},
|
|
28
|
+
"browser": {
|
|
29
|
+
"./internal/shims/getBuiltinModule.mjs": "./internal/shims/nullGetBuiltinModule.mjs",
|
|
30
|
+
"./internal/shims/getBuiltinModule.js": "./internal/shims/nullGetBuiltinModule.js"
|
|
31
|
+
},
|
|
32
|
+
"imports": {
|
|
33
|
+
"@composio/client": ".",
|
|
34
|
+
"@composio/client/*": "./src/*"
|
|
35
|
+
},
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./index.d.ts",
|
|
40
|
+
"default": "./index.js"
|
|
41
|
+
},
|
|
42
|
+
"types": "./index.d.mts",
|
|
43
|
+
"default": "./index.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./api-promise": {
|
|
46
|
+
"import": "./api-promise.mjs",
|
|
47
|
+
"require": "./api-promise.js"
|
|
48
|
+
},
|
|
49
|
+
"./api-promise.js": {
|
|
50
|
+
"default": "./api-promise.js"
|
|
51
|
+
},
|
|
52
|
+
"./api-promise.mjs": {
|
|
53
|
+
"default": "./api-promise.mjs"
|
|
54
|
+
},
|
|
55
|
+
"./client": {
|
|
56
|
+
"import": "./client.mjs",
|
|
57
|
+
"require": "./client.js"
|
|
58
|
+
},
|
|
59
|
+
"./client.js": {
|
|
60
|
+
"default": "./client.js"
|
|
61
|
+
},
|
|
62
|
+
"./client.mjs": {
|
|
63
|
+
"default": "./client.mjs"
|
|
64
|
+
},
|
|
65
|
+
"./core/*.mjs": {
|
|
66
|
+
"default": "./core/*.mjs"
|
|
67
|
+
},
|
|
68
|
+
"./core/*.js": {
|
|
69
|
+
"default": "./core/*.js"
|
|
70
|
+
},
|
|
71
|
+
"./core/*": {
|
|
72
|
+
"import": "./core/*.mjs",
|
|
73
|
+
"require": "./core/*.js"
|
|
74
|
+
},
|
|
75
|
+
"./error": {
|
|
76
|
+
"import": "./error.mjs",
|
|
77
|
+
"require": "./error.js"
|
|
78
|
+
},
|
|
79
|
+
"./error.js": {
|
|
80
|
+
"default": "./error.js"
|
|
81
|
+
},
|
|
82
|
+
"./error.mjs": {
|
|
83
|
+
"default": "./error.mjs"
|
|
84
|
+
},
|
|
85
|
+
"./index": {
|
|
86
|
+
"import": "./index.mjs",
|
|
87
|
+
"require": "./index.js"
|
|
88
|
+
},
|
|
89
|
+
"./index.js": {
|
|
90
|
+
"default": "./index.js"
|
|
91
|
+
},
|
|
92
|
+
"./index.mjs": {
|
|
93
|
+
"default": "./index.mjs"
|
|
94
|
+
},
|
|
95
|
+
"./resource": {
|
|
96
|
+
"import": "./resource.mjs",
|
|
97
|
+
"require": "./resource.js"
|
|
98
|
+
},
|
|
99
|
+
"./resource.js": {
|
|
100
|
+
"default": "./resource.js"
|
|
101
|
+
},
|
|
102
|
+
"./resource.mjs": {
|
|
103
|
+
"default": "./resource.mjs"
|
|
104
|
+
},
|
|
105
|
+
"./resources/*.mjs": {
|
|
106
|
+
"default": "./resources/*.mjs"
|
|
107
|
+
},
|
|
108
|
+
"./resources/*.js": {
|
|
109
|
+
"default": "./resources/*.js"
|
|
110
|
+
},
|
|
111
|
+
"./resources/*": {
|
|
112
|
+
"import": "./resources/*.mjs",
|
|
113
|
+
"require": "./resources/*.js"
|
|
114
|
+
},
|
|
115
|
+
"./resources": {
|
|
116
|
+
"import": "./resources.mjs",
|
|
117
|
+
"require": "./resources.js"
|
|
118
|
+
},
|
|
119
|
+
"./resources.js": {
|
|
120
|
+
"default": "./resources.js"
|
|
121
|
+
},
|
|
122
|
+
"./resources.mjs": {
|
|
123
|
+
"default": "./resources.mjs"
|
|
124
|
+
},
|
|
125
|
+
"./uploads": {
|
|
126
|
+
"import": "./uploads.mjs",
|
|
127
|
+
"require": "./uploads.js"
|
|
128
|
+
},
|
|
129
|
+
"./uploads.js": {
|
|
130
|
+
"default": "./uploads.js"
|
|
131
|
+
},
|
|
132
|
+
"./uploads.mjs": {
|
|
133
|
+
"default": "./uploads.mjs"
|
|
134
|
+
},
|
|
135
|
+
"./version": {
|
|
136
|
+
"import": "./version.mjs",
|
|
137
|
+
"require": "./version.js"
|
|
138
|
+
},
|
|
139
|
+
"./version.js": {
|
|
140
|
+
"default": "./version.js"
|
|
141
|
+
},
|
|
142
|
+
"./version.mjs": {
|
|
143
|
+
"default": "./version.mjs"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
package/resource.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.d.mts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":""}
|
package/resource.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":""}
|
package/resource.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/** @deprecated Import from ./core/resource instead */
|
|
18
|
+
__exportStar(require("./core/resource.js"), exports);
|
|
19
|
+
//# sourceMappingURL=resource.js.map
|
package/resource.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAsD;AACtD,qDAAgC"}
|
package/resource.mjs
ADDED
package/resource.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,155 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-execution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;;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"}
|
|
@@ -0,0 +1,155 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,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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AAM,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-execution.js","sourceRoot":"","sources":["../src/resources/action-execution.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C,GAAG,CAAC,IAA8B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED,cAAc,CAAC,OAAwB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0CAA0C,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yCAAyC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AAZD,0CAYC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
export class ActionExecution extends APIResource {
|
|
5
|
+
log(body, options) {
|
|
6
|
+
return this._client.post('/api/v3/internal/action_execution/logs', { body, ...options });
|
|
7
|
+
}
|
|
8
|
+
retrieveFields(options) {
|
|
9
|
+
return this._client.get('/api/v3/internal/action_execution/fields', options);
|
|
10
|
+
}
|
|
11
|
+
retrieveLog(id, options) {
|
|
12
|
+
return this._client.get(path `/api/v3/internal/action_execution/log/${id}`, options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=action-execution.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-execution.mjs","sourceRoot":"","sources":["../src/resources/action-execution.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C,GAAG,CAAC,IAA8B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED,cAAc,CAAC,OAAwB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0CAA0C,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yCAAyC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF"}
|