@composio/client 0.1.0-alpha.1 → 0.1.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +157 -0
- package/LICENSE +1 -1
- package/README.md +31 -31
- package/api-promise.js +2 -15
- package/api-promise.js.map +1 -1
- package/client.d.mts +32 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +32 -29
- package/client.d.ts.map +1 -1
- package/client.js +95 -113
- package/client.js.map +1 -1
- package/client.mjs +88 -83
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -3
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -3
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +4 -14
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +1 -11
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +2 -3
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -3
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/error.js +2 -15
- package/error.js.map +1 -1
- package/index.d.mts +3 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts +0 -2
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts +0 -2
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +2 -2
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts +1 -2
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts +1 -2
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +3 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +3 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts +2 -3
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -3
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +1 -2
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +6 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +279 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +14 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +0 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +0 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.js +6 -7
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/to-file.d.mts +0 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +0 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +4 -4
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +3 -2
- package/internal/to-file.mjs.map +1 -1
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +0 -1
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +0 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +5 -7
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +5 -7
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +16 -6
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +12 -3
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +14 -9
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +15 -10
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -4
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -4
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +3 -3
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/uuid.d.mts +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +1 -2
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +1 -2
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +10 -10
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.js +7 -20
- package/internal/utils.js.map +1 -1
- package/package.json +5 -9
- package/resource.js +2 -15
- package/resource.js.map +1 -1
- package/resources/auth-configs.d.mts +232 -41
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +232 -41
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +64 -0
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +64 -0
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +176 -216
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +176 -216
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +70 -0
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +70 -0
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +159 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +159 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +39 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +35 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +5 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/command.d.mts +4 -0
- package/resources/mcp/command.d.mts.map +1 -0
- package/resources/mcp/command.d.ts +4 -0
- package/resources/mcp/command.d.ts.map +1 -0
- package/resources/mcp/command.js +9 -0
- package/resources/mcp/command.js.map +1 -0
- package/resources/mcp/command.mjs +5 -0
- package/resources/mcp/command.mjs.map +1 -0
- package/resources/mcp/index.d.mts +3 -0
- package/resources/mcp/index.d.mts.map +1 -0
- package/resources/mcp/index.d.ts +3 -0
- package/resources/mcp/index.d.ts.map +1 -0
- package/resources/mcp/index.js +9 -0
- package/resources/mcp/index.js.map +1 -0
- package/resources/mcp/index.mjs +4 -0
- package/resources/mcp/index.mjs.map +1 -0
- package/resources/mcp/mcp.d.mts +411 -0
- package/resources/mcp/mcp.d.mts.map +1 -0
- package/resources/mcp/mcp.d.ts +411 -0
- package/resources/mcp/mcp.d.ts.map +1 -0
- package/resources/mcp/mcp.js +101 -0
- package/resources/mcp/mcp.js.map +1 -0
- package/resources/mcp/mcp.mjs +96 -0
- package/resources/mcp/mcp.mjs.map +1 -0
- package/resources/mcp.d.mts +2 -0
- package/resources/mcp.d.mts.map +1 -0
- package/resources/mcp.d.ts +2 -0
- package/resources/mcp.d.ts.map +1 -0
- package/resources/mcp.js +6 -0
- package/resources/mcp.js.map +1 -0
- package/resources/mcp.mjs +3 -0
- package/resources/mcp.mjs.map +1 -0
- package/resources/migration.d.mts +32 -0
- package/resources/migration.d.mts.map +1 -0
- package/resources/migration.d.ts +32 -0
- package/resources/migration.d.ts.map +1 -0
- package/resources/migration.js +17 -0
- package/resources/migration.js.map +1 -0
- package/resources/migration.mjs +13 -0
- package/resources/migration.mjs.map +1 -0
- package/resources/org/api-key.d.mts +28 -0
- package/resources/org/api-key.d.mts.map +1 -1
- package/resources/org/api-key.d.ts +28 -0
- package/resources/org/api-key.d.ts.map +1 -1
- package/resources/org/api-key.js +20 -0
- package/resources/org/api-key.js.map +1 -1
- package/resources/org/api-key.mjs +20 -0
- package/resources/org/api-key.mjs.map +1 -1
- package/resources/org/org.js +3 -25
- package/resources/org/org.js.map +1 -1
- package/resources/org/project/api-keys.d.mts +97 -20
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +97 -20
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/org/project/api-keys.js +57 -0
- package/resources/org/project/api-keys.js.map +1 -1
- package/resources/org/project/api-keys.mjs +57 -0
- package/resources/org/project/api-keys.mjs.map +1 -1
- package/resources/org/project/project.d.mts +182 -7
- package/resources/org/project/project.d.mts.map +1 -1
- package/resources/org/project/project.d.ts +182 -7
- package/resources/org/project/project.d.ts.map +1 -1
- package/resources/org/project/project.js +56 -26
- package/resources/org/project/project.js.map +1 -1
- package/resources/org/project/project.mjs +52 -0
- package/resources/org/project/project.mjs.map +1 -1
- package/resources/org/project/trigger.d.mts +101 -5
- package/resources/org/project/trigger.d.mts.map +1 -1
- package/resources/org/project/trigger.d.ts +101 -5
- package/resources/org/project/trigger.d.ts.map +1 -1
- package/resources/org/project/trigger.js +21 -0
- package/resources/org/project/trigger.js.map +1 -1
- package/resources/org/project/trigger.mjs +21 -0
- package/resources/org/project/trigger.mjs.map +1 -1
- package/resources/org/project/webhook.d.mts +88 -14
- package/resources/org/project/webhook.d.mts.map +1 -1
- package/resources/org/project/webhook.d.ts +88 -14
- package/resources/org/project/webhook.d.ts.map +1 -1
- package/resources/org/project/webhook.js +51 -1
- package/resources/org/project/webhook.js.map +1 -1
- package/resources/org/project/webhook.mjs +51 -1
- package/resources/org/project/webhook.mjs.map +1 -1
- package/resources/org/project.js +2 -15
- package/resources/org/project.js.map +1 -1
- package/resources/org.js +2 -15
- package/resources/org.js.map +1 -1
- package/resources/team-members.d.mts +12 -0
- package/resources/team-members.d.mts.map +1 -1
- package/resources/team-members.d.ts +12 -0
- package/resources/team-members.d.ts.map +1 -1
- package/resources/team-members.js +12 -0
- package/resources/team-members.js.map +1 -1
- package/resources/team-members.mjs +12 -0
- package/resources/team-members.mjs.map +1 -1
- package/resources/toolkits.d.mts +215 -4
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +215 -4
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +20 -2
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +20 -2
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +295 -21
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +295 -21
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +67 -0
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +67 -0
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/handle.d.mts +2 -2
- package/resources/trigger-instances/handle.d.mts.map +1 -1
- package/resources/trigger-instances/handle.d.ts +2 -2
- package/resources/trigger-instances/handle.d.ts.map +1 -1
- package/resources/trigger-instances/handle.js.map +1 -1
- package/resources/trigger-instances/handle.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +1 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +1 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +51 -31
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +51 -31
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +3 -32
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +1 -8
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/trigger-instances.js +2 -15
- package/resources/trigger-instances.js.map +1 -1
- package/resources/triggers-types.d.mts +105 -4
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +105 -4
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +29 -0
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +29 -0
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +128 -94
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/resource.ts +3 -3
- package/src/index.ts +3 -3
- package/src/internal/headers.ts +4 -3
- package/src/internal/parse.ts +2 -2
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/shims.ts +1 -1
- package/src/internal/to-file.ts +4 -2
- package/src/internal/uploads.ts +21 -9
- package/src/internal/utils/base64.ts +16 -13
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -4
- package/src/internal/utils/uuid.ts +1 -3
- package/src/internal/utils/values.ts +6 -6
- package/src/resources/auth-configs.ts +258 -49
- package/src/resources/connected-accounts.ts +192 -302
- package/src/resources/files.ts +209 -0
- package/src/resources/index.ts +24 -11
- package/src/resources/mcp/command.ts +5 -0
- package/src/resources/mcp/index.ts +14 -0
- package/src/resources/mcp/mcp.ts +522 -0
- package/src/resources/mcp.ts +3 -0
- package/src/resources/migration.ts +46 -0
- package/src/resources/org/api-key.ts +28 -0
- package/src/resources/org/project/api-keys.ts +97 -20
- package/src/resources/org/project/project.ts +182 -13
- package/src/resources/org/project/trigger.ts +101 -9
- package/src/resources/org/project/webhook.ts +88 -14
- package/src/resources/team-members.ts +12 -0
- package/src/resources/toolkits.ts +230 -4
- package/src/resources/tools.ts +316 -21
- package/src/resources/trigger-instances/handle.ts +10 -2
- package/src/resources/trigger-instances/index.ts +0 -3
- package/src/resources/trigger-instances/trigger-instances.ts +55 -44
- package/src/resources/triggers-types.ts +107 -6
- package/src/version.ts +1 -1
- package/uploads.js +2 -15
- package/uploads.js.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/internal/shims/crypto.d.mts +0 -13
- package/internal/shims/crypto.d.mts.map +0 -1
- package/internal/shims/crypto.d.ts +0 -13
- package/internal/shims/crypto.d.ts.map +0 -1
- package/internal/shims/crypto.js +0 -13
- package/internal/shims/crypto.js.map +0 -1
- package/internal/shims/crypto.mjs +0 -9
- package/internal/shims/crypto.mjs.map +0 -1
- package/internal/shims/file.d.mts +0 -23
- package/internal/shims/file.d.mts.map +0 -1
- package/internal/shims/file.d.ts +0 -23
- package/internal/shims/file.d.ts.map +0 -1
- package/internal/shims/file.js +0 -16
- package/internal/shims/file.js.map +0 -1
- package/internal/shims/file.mjs +0 -12
- package/internal/shims/file.mjs.map +0 -1
- package/internal/shims/getBuiltinModule.d.mts +0 -11
- package/internal/shims/getBuiltinModule.d.mts.map +0 -1
- package/internal/shims/getBuiltinModule.d.ts +0 -11
- package/internal/shims/getBuiltinModule.d.ts.map +0 -1
- package/internal/shims/getBuiltinModule.js +0 -68
- package/internal/shims/getBuiltinModule.js.map +0 -1
- package/internal/shims/getBuiltinModule.mjs +0 -64
- package/internal/shims/getBuiltinModule.mjs.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.js +0 -5
- package/internal/shims/nullGetBuiltinModule.js.map +0 -1
- package/internal/shims/nullGetBuiltinModule.mjs +0 -2
- package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
- package/resources/action-execution.d.mts +0 -155
- package/resources/action-execution.d.mts.map +0 -1
- package/resources/action-execution.d.ts +0 -155
- package/resources/action-execution.d.ts.map +0 -1
- package/resources/action-execution.js +0 -19
- package/resources/action-execution.js.map +0 -1
- package/resources/action-execution.mjs +0 -15
- package/resources/action-execution.mjs.map +0 -1
- package/resources/trigger.d.mts +0 -73
- package/resources/trigger.d.mts.map +0 -1
- package/resources/trigger.d.ts +0 -73
- package/resources/trigger.d.ts.map +0 -1
- package/resources/trigger.js +0 -12
- package/resources/trigger.js.map +0 -1
- package/resources/trigger.mjs +0 -8
- package/resources/trigger.mjs.map +0 -1
- package/src/internal/shims/crypto.ts +0 -18
- package/src/internal/shims/file.ts +0 -32
- package/src/internal/shims/getBuiltinModule.ts +0 -64
- package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
- package/src/resources/action-execution.ts +0 -244
- package/src/resources/trigger.ts +0 -108
|
@@ -2,23 +2,85 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class TriggersTypes extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve detailed information about a specific trigger type using its slug
|
|
7
|
+
* identifier
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const triggersType = await client.triggersTypes.retrieve(
|
|
12
|
+
* 'SLACK_NEW_MESSAGE',
|
|
13
|
+
* );
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
5
16
|
retrieve(slug: string, options?: RequestOptions): APIPromise<TriggersTypeRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
19
|
+
* Results are paginated and can be filtered by toolkit.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const triggersTypes = await client.triggersTypes.list();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
6
26
|
list(query?: TriggersTypeListParams | null | undefined, options?: RequestOptions): APIPromise<TriggersTypeListResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a list of all available trigger type enum values that can be used
|
|
29
|
+
* across the API
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const response = await client.triggersTypes.retrieveEnum();
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
7
36
|
retrieveEnum(options?: RequestOptions): APIPromise<string>;
|
|
8
37
|
}
|
|
9
38
|
export interface TriggersTypeRetrieveResponse {
|
|
39
|
+
/**
|
|
40
|
+
* Configuration parameters required for the trigger
|
|
41
|
+
*/
|
|
10
42
|
config: Record<string, unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* Detailed description of what the trigger does and when it fires
|
|
45
|
+
*/
|
|
11
46
|
description: string;
|
|
47
|
+
/**
|
|
48
|
+
* Step-by-step instructions on how to set up and use this trigger
|
|
49
|
+
*/
|
|
12
50
|
instructions: string;
|
|
51
|
+
/**
|
|
52
|
+
* Display name of the trigger type
|
|
53
|
+
*/
|
|
13
54
|
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Structure of the event payload that will be delivered by this trigger
|
|
57
|
+
*/
|
|
14
58
|
payload: Record<string, unknown>;
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier for the trigger type
|
|
61
|
+
*/
|
|
15
62
|
slug: string;
|
|
63
|
+
/**
|
|
64
|
+
* Information about the toolkit that contains this trigger
|
|
65
|
+
*/
|
|
16
66
|
toolkit: TriggersTypeRetrieveResponse.Toolkit;
|
|
17
67
|
}
|
|
18
68
|
export declare namespace TriggersTypeRetrieveResponse {
|
|
69
|
+
/**
|
|
70
|
+
* Information about the toolkit that contains this trigger
|
|
71
|
+
*/
|
|
19
72
|
interface Toolkit {
|
|
73
|
+
/**
|
|
74
|
+
* URL to the toolkit logo image
|
|
75
|
+
*/
|
|
20
76
|
logo: string;
|
|
77
|
+
/**
|
|
78
|
+
* Name of the toolkit that contains this trigger
|
|
79
|
+
*/
|
|
21
80
|
name: string;
|
|
81
|
+
/**
|
|
82
|
+
* Unique identifier for the associated toolkit
|
|
83
|
+
*/
|
|
22
84
|
uuid: string;
|
|
23
85
|
}
|
|
24
86
|
}
|
|
@@ -29,29 +91,68 @@ export interface TriggersTypeListResponse {
|
|
|
29
91
|
}
|
|
30
92
|
export declare namespace TriggersTypeListResponse {
|
|
31
93
|
interface Item {
|
|
94
|
+
/**
|
|
95
|
+
* Configuration schema required to set up this trigger
|
|
96
|
+
*/
|
|
97
|
+
config: Record<string, unknown>;
|
|
98
|
+
/**
|
|
99
|
+
* Detailed description of what the trigger does
|
|
100
|
+
*/
|
|
32
101
|
description: string;
|
|
102
|
+
/**
|
|
103
|
+
* Human-readable name of the trigger
|
|
104
|
+
*/
|
|
33
105
|
name: string;
|
|
106
|
+
/**
|
|
107
|
+
* Schema of the data payload this trigger will deliver when it fires
|
|
108
|
+
*/
|
|
109
|
+
payload: Record<string, unknown>;
|
|
110
|
+
/**
|
|
111
|
+
* Unique identifier for the trigger type
|
|
112
|
+
*/
|
|
34
113
|
slug: string;
|
|
114
|
+
/**
|
|
115
|
+
* Information about the toolkit that provides this trigger
|
|
116
|
+
*/
|
|
35
117
|
toolkit: Item.Toolkit;
|
|
118
|
+
/**
|
|
119
|
+
* The trigger mechanism - either webhook (event-based) or poll (scheduled check)
|
|
120
|
+
*/
|
|
36
121
|
type: 'webhook' | 'poll';
|
|
37
122
|
}
|
|
38
123
|
namespace Item {
|
|
124
|
+
/**
|
|
125
|
+
* Information about the toolkit that provides this trigger
|
|
126
|
+
*/
|
|
39
127
|
interface Toolkit {
|
|
128
|
+
/**
|
|
129
|
+
* Name of the parent toolkit
|
|
130
|
+
*/
|
|
40
131
|
name: string;
|
|
132
|
+
/**
|
|
133
|
+
* Unique identifier for the parent toolkit
|
|
134
|
+
*/
|
|
41
135
|
slug: string;
|
|
42
136
|
}
|
|
43
137
|
}
|
|
44
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* JSON string containing all trigger enum values
|
|
141
|
+
*/
|
|
45
142
|
export type TriggersTypeRetrieveEnumResponse = string;
|
|
46
143
|
export interface TriggersTypeListParams {
|
|
47
|
-
|
|
48
|
-
|
|
144
|
+
/**
|
|
145
|
+
* Pagination cursor for fetching next page of results
|
|
146
|
+
*/
|
|
49
147
|
cursor?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Number of items to return per page
|
|
150
|
+
*/
|
|
50
151
|
limit?: number | null;
|
|
51
152
|
/**
|
|
52
|
-
*
|
|
153
|
+
* Array of toolkit slugs to filter triggers by
|
|
53
154
|
*/
|
|
54
|
-
toolkit_slugs?: string;
|
|
155
|
+
toolkit_slugs?: Array<string> | null;
|
|
55
156
|
}
|
|
56
157
|
export declare namespace TriggersTypes {
|
|
57
158
|
export { type TriggersTypeRetrieveResponse as TriggersTypeRetrieveResponse, type TriggersTypeListResponse as TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse as TriggersTypeRetrieveEnumResponse, type TriggersTypeListParams as TriggersTypeListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-types.d.mts","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI1F,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG3D;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IAErB,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,4BAA4B,CAAC,OAAO,CAAC;CAC/C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,OAAO;QACtB,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAE5C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAA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CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -2,23 +2,85 @@ import { APIResource } from "../core/resource.js";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
export declare class TriggersTypes extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve detailed information about a specific trigger type using its slug
|
|
7
|
+
* identifier
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const triggersType = await client.triggersTypes.retrieve(
|
|
12
|
+
* 'SLACK_NEW_MESSAGE',
|
|
13
|
+
* );
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
5
16
|
retrieve(slug: string, options?: RequestOptions): APIPromise<TriggersTypeRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
19
|
+
* Results are paginated and can be filtered by toolkit.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const triggersTypes = await client.triggersTypes.list();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
6
26
|
list(query?: TriggersTypeListParams | null | undefined, options?: RequestOptions): APIPromise<TriggersTypeListResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a list of all available trigger type enum values that can be used
|
|
29
|
+
* across the API
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const response = await client.triggersTypes.retrieveEnum();
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
7
36
|
retrieveEnum(options?: RequestOptions): APIPromise<string>;
|
|
8
37
|
}
|
|
9
38
|
export interface TriggersTypeRetrieveResponse {
|
|
39
|
+
/**
|
|
40
|
+
* Configuration parameters required for the trigger
|
|
41
|
+
*/
|
|
10
42
|
config: Record<string, unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* Detailed description of what the trigger does and when it fires
|
|
45
|
+
*/
|
|
11
46
|
description: string;
|
|
47
|
+
/**
|
|
48
|
+
* Step-by-step instructions on how to set up and use this trigger
|
|
49
|
+
*/
|
|
12
50
|
instructions: string;
|
|
51
|
+
/**
|
|
52
|
+
* Display name of the trigger type
|
|
53
|
+
*/
|
|
13
54
|
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Structure of the event payload that will be delivered by this trigger
|
|
57
|
+
*/
|
|
14
58
|
payload: Record<string, unknown>;
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier for the trigger type
|
|
61
|
+
*/
|
|
15
62
|
slug: string;
|
|
63
|
+
/**
|
|
64
|
+
* Information about the toolkit that contains this trigger
|
|
65
|
+
*/
|
|
16
66
|
toolkit: TriggersTypeRetrieveResponse.Toolkit;
|
|
17
67
|
}
|
|
18
68
|
export declare namespace TriggersTypeRetrieveResponse {
|
|
69
|
+
/**
|
|
70
|
+
* Information about the toolkit that contains this trigger
|
|
71
|
+
*/
|
|
19
72
|
interface Toolkit {
|
|
73
|
+
/**
|
|
74
|
+
* URL to the toolkit logo image
|
|
75
|
+
*/
|
|
20
76
|
logo: string;
|
|
77
|
+
/**
|
|
78
|
+
* Name of the toolkit that contains this trigger
|
|
79
|
+
*/
|
|
21
80
|
name: string;
|
|
81
|
+
/**
|
|
82
|
+
* Unique identifier for the associated toolkit
|
|
83
|
+
*/
|
|
22
84
|
uuid: string;
|
|
23
85
|
}
|
|
24
86
|
}
|
|
@@ -29,29 +91,68 @@ export interface TriggersTypeListResponse {
|
|
|
29
91
|
}
|
|
30
92
|
export declare namespace TriggersTypeListResponse {
|
|
31
93
|
interface Item {
|
|
94
|
+
/**
|
|
95
|
+
* Configuration schema required to set up this trigger
|
|
96
|
+
*/
|
|
97
|
+
config: Record<string, unknown>;
|
|
98
|
+
/**
|
|
99
|
+
* Detailed description of what the trigger does
|
|
100
|
+
*/
|
|
32
101
|
description: string;
|
|
102
|
+
/**
|
|
103
|
+
* Human-readable name of the trigger
|
|
104
|
+
*/
|
|
33
105
|
name: string;
|
|
106
|
+
/**
|
|
107
|
+
* Schema of the data payload this trigger will deliver when it fires
|
|
108
|
+
*/
|
|
109
|
+
payload: Record<string, unknown>;
|
|
110
|
+
/**
|
|
111
|
+
* Unique identifier for the trigger type
|
|
112
|
+
*/
|
|
34
113
|
slug: string;
|
|
114
|
+
/**
|
|
115
|
+
* Information about the toolkit that provides this trigger
|
|
116
|
+
*/
|
|
35
117
|
toolkit: Item.Toolkit;
|
|
118
|
+
/**
|
|
119
|
+
* The trigger mechanism - either webhook (event-based) or poll (scheduled check)
|
|
120
|
+
*/
|
|
36
121
|
type: 'webhook' | 'poll';
|
|
37
122
|
}
|
|
38
123
|
namespace Item {
|
|
124
|
+
/**
|
|
125
|
+
* Information about the toolkit that provides this trigger
|
|
126
|
+
*/
|
|
39
127
|
interface Toolkit {
|
|
128
|
+
/**
|
|
129
|
+
* Name of the parent toolkit
|
|
130
|
+
*/
|
|
40
131
|
name: string;
|
|
132
|
+
/**
|
|
133
|
+
* Unique identifier for the parent toolkit
|
|
134
|
+
*/
|
|
41
135
|
slug: string;
|
|
42
136
|
}
|
|
43
137
|
}
|
|
44
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* JSON string containing all trigger enum values
|
|
141
|
+
*/
|
|
45
142
|
export type TriggersTypeRetrieveEnumResponse = string;
|
|
46
143
|
export interface TriggersTypeListParams {
|
|
47
|
-
|
|
48
|
-
|
|
144
|
+
/**
|
|
145
|
+
* Pagination cursor for fetching next page of results
|
|
146
|
+
*/
|
|
49
147
|
cursor?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Number of items to return per page
|
|
150
|
+
*/
|
|
50
151
|
limit?: number | null;
|
|
51
152
|
/**
|
|
52
|
-
*
|
|
153
|
+
* Array of toolkit slugs to filter triggers by
|
|
53
154
|
*/
|
|
54
|
-
toolkit_slugs?: string;
|
|
155
|
+
toolkit_slugs?: Array<string> | null;
|
|
55
156
|
}
|
|
56
157
|
export declare namespace TriggersTypes {
|
|
57
158
|
export { type TriggersTypeRetrieveResponse as TriggersTypeRetrieveResponse, type TriggersTypeListResponse as TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse as TriggersTypeRetrieveEnumResponse, type TriggersTypeListParams as TriggersTypeListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-types.d.ts","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI1F,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG3D;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IAErB,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC,IAAI,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b;;WAEG;QACH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QAEtB;;WAEG;QACH,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;KAC1B;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,OAAO;YACtB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -5,12 +5,41 @@ exports.TriggersTypes = void 0;
|
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const path_1 = require("../internal/utils/path.js");
|
|
7
7
|
class TriggersTypes extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve detailed information about a specific trigger type using its slug
|
|
10
|
+
* identifier
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const triggersType = await client.triggersTypes.retrieve(
|
|
15
|
+
* 'SLACK_NEW_MESSAGE',
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
8
19
|
retrieve(slug, options) {
|
|
9
20
|
return this._client.get((0, path_1.path) `/api/v3/triggers_types/${slug}`, options);
|
|
10
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
24
|
+
* Results are paginated and can be filtered by toolkit.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const triggersTypes = await client.triggersTypes.list();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
11
31
|
list(query = {}, options) {
|
|
12
32
|
return this._client.get('/api/v3/triggers_types', { query, ...options });
|
|
13
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves a list of all available trigger type enum values that can be used
|
|
36
|
+
* across the API
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const response = await client.triggersTypes.retrieveEnum();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
14
43
|
retrieveEnum(options) {
|
|
15
44
|
return this._client.get('/api/v3/triggers_types/list/enum', options);
|
|
16
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-types.js","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"triggers-types.js","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;OAQG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AA5CD,sCA4CC"}
|
|
@@ -2,12 +2,41 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { path } from "../internal/utils/path.mjs";
|
|
4
4
|
export class TriggersTypes extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve detailed information about a specific trigger type using its slug
|
|
7
|
+
* identifier
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const triggersType = await client.triggersTypes.retrieve(
|
|
12
|
+
* 'SLACK_NEW_MESSAGE',
|
|
13
|
+
* );
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
5
16
|
retrieve(slug, options) {
|
|
6
17
|
return this._client.get(path `/api/v3/triggers_types/${slug}`, options);
|
|
7
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve a list of available trigger types with optional filtering by toolkit.
|
|
21
|
+
* Results are paginated and can be filtered by toolkit.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const triggersTypes = await client.triggersTypes.list();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
8
28
|
list(query = {}, options) {
|
|
9
29
|
return this._client.get('/api/v3/triggers_types', { query, ...options });
|
|
10
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves a list of all available trigger type enum values that can be used
|
|
33
|
+
* across the API
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const response = await client.triggersTypes.retrieveEnum();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
11
40
|
retrieveEnum(options) {
|
|
12
41
|
return this._client.get('/api/v3/triggers_types/list/enum', options);
|
|
13
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-types.mjs","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"triggers-types.mjs","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;OAQG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF"}
|
package/resources.js
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
tslib_1.__exportStar(require("./resources/index.js"), exports);
|
|
18
5
|
//# sourceMappingURL=resources.js.map
|
package/resources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":";;;AAAA,+DAAkC"}
|