@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,21 +2,91 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { path } from "../internal/utils/path.mjs";
|
|
4
4
|
export class ConnectedAccounts extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new connected account
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const connectedAccount =
|
|
11
|
+
* await client.connectedAccounts.create({
|
|
12
|
+
* auth_config: { id: 'id' },
|
|
13
|
+
* connection: {},
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
5
17
|
create(body, options) {
|
|
6
18
|
return this._client.post('/api/v3/connected_accounts', { body, ...options });
|
|
7
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves comprehensive details of a connected account, including authentication
|
|
22
|
+
* configuration, connection status, and all parameters needed for API requests.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const connectedAccount =
|
|
27
|
+
* await client.connectedAccounts.retrieve(
|
|
28
|
+
* 'con_1a2b3c4d5e6f',
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
8
32
|
retrieve(nanoid, options) {
|
|
9
33
|
return this._client.get(path `/api/v3/connected_accounts/${nanoid}`, options);
|
|
10
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* List connected accounts with optional filters
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const connectedAccounts =
|
|
41
|
+
* await client.connectedAccounts.list();
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
11
44
|
list(query = {}, options) {
|
|
12
45
|
return this._client.get('/api/v3/connected_accounts', { query, ...options });
|
|
13
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Soft-deletes a connected account by marking it as deleted in the database. This
|
|
49
|
+
* prevents the account from being used for API calls but preserves the record for
|
|
50
|
+
* audit purposes.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const connectedAccount =
|
|
55
|
+
* await client.connectedAccounts.delete('con_1a2b3c4d5e6f');
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
14
58
|
delete(nanoid, options) {
|
|
15
59
|
return this._client.delete(path `/api/v3/connected_accounts/${nanoid}`, options);
|
|
16
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Initiates a new authentication flow for a connected account when credentials
|
|
63
|
+
* have expired or become invalid. This may generate a new authentication URL for
|
|
64
|
+
* OAuth flows or refresh tokens for other auth schemes.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const response = await client.connectedAccounts.refresh(
|
|
69
|
+
* 'con_1a2b3c4d5e6f',
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
17
73
|
refresh(nanoid, options) {
|
|
18
74
|
return this._client.post(path `/api/v3/connected_accounts/${nanoid}/refresh`, options);
|
|
19
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Updates the status of a connected account to either enabled (active) or disabled
|
|
78
|
+
* (inactive). Disabled accounts cannot be used for API calls but remain in the
|
|
79
|
+
* database.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const response =
|
|
84
|
+
* await client.connectedAccounts.updateStatus(
|
|
85
|
+
* 'con_1a2b3c4d5e6f',
|
|
86
|
+
* { enabled: true },
|
|
87
|
+
* );
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
20
90
|
updateStatus(nanoID, body, options) {
|
|
21
91
|
return this._client.patch(path `/api/v3/connected_accounts/${nanoID}/status`, { body, ...options });
|
|
22
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-accounts.mjs","sourceRoot":"","sources":["../src/resources/connected-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAChD,MAAM,CACJ,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,8BAA8B,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED,YAAY,CACV,MAAc,EACd,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,8BAA8B,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"connected-accounts.mjs","sourceRoot":"","sources":["../src/resources/connected-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,8BAA8B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,8BAA8B,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,YAAY,CACV,MAAc,EACd,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,8BAA8B,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF"}
|
|
@@ -0,0 +1,159 @@
|
|
|
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 Files extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves a list of files associated with the authenticated project. Results can
|
|
7
|
+
* be filtered by toolkit and tool slugs.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const files = await client.files.list();
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
list(query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Generates a presigned URL for uploading a file to S3. This endpoint handles
|
|
17
|
+
* deduplication by checking if a file with the same MD5 hash already exists.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const response = await client.files.createPresignedURL({
|
|
22
|
+
* filename: 'photo.jpg',
|
|
23
|
+
* md5: 'd41d8cd98f00b204e9800998ecf8427e',
|
|
24
|
+
* mimetype: 'image/jpeg',
|
|
25
|
+
* tool_slug: 'resize-image',
|
|
26
|
+
* toolkit_slug: 'image-processing',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
createPresignedURL(body: FileCreatePresignedURLParams, options?: RequestOptions): APIPromise<FileCreatePresignedURLResponse>;
|
|
31
|
+
}
|
|
32
|
+
export interface FileListResponse {
|
|
33
|
+
items: Array<FileListResponse.Item>;
|
|
34
|
+
next_cursor: string | null;
|
|
35
|
+
total_pages: number;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace FileListResponse {
|
|
38
|
+
interface Item {
|
|
39
|
+
/**
|
|
40
|
+
* Name of the original file. Example: "document.docx"
|
|
41
|
+
*/
|
|
42
|
+
filename: string;
|
|
43
|
+
/**
|
|
44
|
+
* MD5 hash of the file for integrity verification. Example:
|
|
45
|
+
* "d41d8cd98f00b204e9800998ecf8427e"
|
|
46
|
+
*/
|
|
47
|
+
md5: string;
|
|
48
|
+
/**
|
|
49
|
+
* Mime type of the original file. Example:
|
|
50
|
+
* "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
51
|
+
*/
|
|
52
|
+
mimetype: string;
|
|
53
|
+
/**
|
|
54
|
+
* Slug of the action where this file belongs to. Example: "convert-to-pdf"
|
|
55
|
+
*/
|
|
56
|
+
tool_slug: string;
|
|
57
|
+
/**
|
|
58
|
+
* Slug of the app where this file belongs to. Example: "file-converter"
|
|
59
|
+
*/
|
|
60
|
+
toolkit_slug: string;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export type FileCreatePresignedURLResponse = FileCreatePresignedURLResponse.UnionMember0 | FileCreatePresignedURLResponse.UnionMember1 | FileCreatePresignedURLResponse.UnionMember2;
|
|
64
|
+
export declare namespace FileCreatePresignedURLResponse {
|
|
65
|
+
interface UnionMember0 {
|
|
66
|
+
/**
|
|
67
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
68
|
+
*/
|
|
69
|
+
id: string;
|
|
70
|
+
/**
|
|
71
|
+
* URL of the existing request file. Example:
|
|
72
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg"
|
|
73
|
+
*/
|
|
74
|
+
existingUrl: string;
|
|
75
|
+
/**
|
|
76
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
77
|
+
*/
|
|
78
|
+
key: string;
|
|
79
|
+
/**
|
|
80
|
+
* Indicates the file already exists and does not need to be uploaded again
|
|
81
|
+
*/
|
|
82
|
+
type: 'existing';
|
|
83
|
+
}
|
|
84
|
+
interface UnionMember1 {
|
|
85
|
+
/**
|
|
86
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
/**
|
|
90
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
91
|
+
*/
|
|
92
|
+
key: string;
|
|
93
|
+
/**
|
|
94
|
+
* Presigned URL for upload. Example:
|
|
95
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
96
|
+
*/
|
|
97
|
+
newPresignedUrl: string;
|
|
98
|
+
/**
|
|
99
|
+
* Indicates this is a new file that needs to be uploaded
|
|
100
|
+
*/
|
|
101
|
+
type: 'new';
|
|
102
|
+
}
|
|
103
|
+
interface UnionMember2 {
|
|
104
|
+
/**
|
|
105
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
106
|
+
*/
|
|
107
|
+
id: string;
|
|
108
|
+
/**
|
|
109
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
110
|
+
*/
|
|
111
|
+
key: string;
|
|
112
|
+
/**
|
|
113
|
+
* Indicates this file exists but needs to be updated with a new version
|
|
114
|
+
*/
|
|
115
|
+
type: 'update';
|
|
116
|
+
/**
|
|
117
|
+
* Presigned URL for upload. Example:
|
|
118
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
119
|
+
*/
|
|
120
|
+
updatePresignedUrl: string;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
export interface FileListParams {
|
|
124
|
+
/**
|
|
125
|
+
* Filter files by action slug. Example: "convert-to-pdf"
|
|
126
|
+
*/
|
|
127
|
+
tool_slug?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Filter files by app slug. Example: "file-converter"
|
|
130
|
+
*/
|
|
131
|
+
toolkit_slug?: string;
|
|
132
|
+
}
|
|
133
|
+
export interface FileCreatePresignedURLParams {
|
|
134
|
+
/**
|
|
135
|
+
* Name of the original file. Example: "photo.jpg"
|
|
136
|
+
*/
|
|
137
|
+
filename: string;
|
|
138
|
+
/**
|
|
139
|
+
* MD5 hash of the file for deduplication and integrity verification. Example:
|
|
140
|
+
* "d41d8cd98f00b204e9800998ecf8427e"
|
|
141
|
+
*/
|
|
142
|
+
md5: string;
|
|
143
|
+
/**
|
|
144
|
+
* Mime type of the original file. Example: "image/jpeg"
|
|
145
|
+
*/
|
|
146
|
+
mimetype: string;
|
|
147
|
+
/**
|
|
148
|
+
* Slug of the action where this file belongs to. Example: "resize-image"
|
|
149
|
+
*/
|
|
150
|
+
tool_slug: string;
|
|
151
|
+
/**
|
|
152
|
+
* Slug of the app where this file belongs to. Example: "image-processing"
|
|
153
|
+
*/
|
|
154
|
+
toolkit_slug: string;
|
|
155
|
+
}
|
|
156
|
+
export declare namespace Files {
|
|
157
|
+
export { type FileListResponse as FileListResponse, type FileCreatePresignedURLResponse as FileCreatePresignedURLResponse, type FileListParams as FileListParams, type FileCreatePresignedURLParams as FileCreatePresignedURLParams, };
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=files.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEpC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,MAAM,8BAA8B,GACtC,8BAA8B,CAAC,YAAY,GAC3C,8BAA8B,CAAC,YAAY,GAC3C,8BAA8B,CAAC,YAAY,CAAC;AAEhD,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,YAAY;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;;WAGG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,EAAE,UAAU,CAAC;KAClB;IAED,UAAiB,YAAY;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;WAGG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,IAAI,EAAE,KAAK,CAAC;KACb;IAED,UAAiB,YAAY;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;QAEf;;;WAGG;QACH,kBAAkB,EAAE,MAAM,CAAC;KAC5B;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -0,0 +1,159 @@
|
|
|
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 Files extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves a list of files associated with the authenticated project. Results can
|
|
7
|
+
* be filtered by toolkit and tool slugs.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const files = await client.files.list();
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
list(query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Generates a presigned URL for uploading a file to S3. This endpoint handles
|
|
17
|
+
* deduplication by checking if a file with the same MD5 hash already exists.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const response = await client.files.createPresignedURL({
|
|
22
|
+
* filename: 'photo.jpg',
|
|
23
|
+
* md5: 'd41d8cd98f00b204e9800998ecf8427e',
|
|
24
|
+
* mimetype: 'image/jpeg',
|
|
25
|
+
* tool_slug: 'resize-image',
|
|
26
|
+
* toolkit_slug: 'image-processing',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
createPresignedURL(body: FileCreatePresignedURLParams, options?: RequestOptions): APIPromise<FileCreatePresignedURLResponse>;
|
|
31
|
+
}
|
|
32
|
+
export interface FileListResponse {
|
|
33
|
+
items: Array<FileListResponse.Item>;
|
|
34
|
+
next_cursor: string | null;
|
|
35
|
+
total_pages: number;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace FileListResponse {
|
|
38
|
+
interface Item {
|
|
39
|
+
/**
|
|
40
|
+
* Name of the original file. Example: "document.docx"
|
|
41
|
+
*/
|
|
42
|
+
filename: string;
|
|
43
|
+
/**
|
|
44
|
+
* MD5 hash of the file for integrity verification. Example:
|
|
45
|
+
* "d41d8cd98f00b204e9800998ecf8427e"
|
|
46
|
+
*/
|
|
47
|
+
md5: string;
|
|
48
|
+
/**
|
|
49
|
+
* Mime type of the original file. Example:
|
|
50
|
+
* "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
51
|
+
*/
|
|
52
|
+
mimetype: string;
|
|
53
|
+
/**
|
|
54
|
+
* Slug of the action where this file belongs to. Example: "convert-to-pdf"
|
|
55
|
+
*/
|
|
56
|
+
tool_slug: string;
|
|
57
|
+
/**
|
|
58
|
+
* Slug of the app where this file belongs to. Example: "file-converter"
|
|
59
|
+
*/
|
|
60
|
+
toolkit_slug: string;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export type FileCreatePresignedURLResponse = FileCreatePresignedURLResponse.UnionMember0 | FileCreatePresignedURLResponse.UnionMember1 | FileCreatePresignedURLResponse.UnionMember2;
|
|
64
|
+
export declare namespace FileCreatePresignedURLResponse {
|
|
65
|
+
interface UnionMember0 {
|
|
66
|
+
/**
|
|
67
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
68
|
+
*/
|
|
69
|
+
id: string;
|
|
70
|
+
/**
|
|
71
|
+
* URL of the existing request file. Example:
|
|
72
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg"
|
|
73
|
+
*/
|
|
74
|
+
existingUrl: string;
|
|
75
|
+
/**
|
|
76
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
77
|
+
*/
|
|
78
|
+
key: string;
|
|
79
|
+
/**
|
|
80
|
+
* Indicates the file already exists and does not need to be uploaded again
|
|
81
|
+
*/
|
|
82
|
+
type: 'existing';
|
|
83
|
+
}
|
|
84
|
+
interface UnionMember1 {
|
|
85
|
+
/**
|
|
86
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
/**
|
|
90
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
91
|
+
*/
|
|
92
|
+
key: string;
|
|
93
|
+
/**
|
|
94
|
+
* Presigned URL for upload. Example:
|
|
95
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
96
|
+
*/
|
|
97
|
+
newPresignedUrl: string;
|
|
98
|
+
/**
|
|
99
|
+
* Indicates this is a new file that needs to be uploaded
|
|
100
|
+
*/
|
|
101
|
+
type: 'new';
|
|
102
|
+
}
|
|
103
|
+
interface UnionMember2 {
|
|
104
|
+
/**
|
|
105
|
+
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
106
|
+
*/
|
|
107
|
+
id: string;
|
|
108
|
+
/**
|
|
109
|
+
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
110
|
+
*/
|
|
111
|
+
key: string;
|
|
112
|
+
/**
|
|
113
|
+
* Indicates this file exists but needs to be updated with a new version
|
|
114
|
+
*/
|
|
115
|
+
type: 'update';
|
|
116
|
+
/**
|
|
117
|
+
* Presigned URL for upload. Example:
|
|
118
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
119
|
+
*/
|
|
120
|
+
updatePresignedUrl: string;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
export interface FileListParams {
|
|
124
|
+
/**
|
|
125
|
+
* Filter files by action slug. Example: "convert-to-pdf"
|
|
126
|
+
*/
|
|
127
|
+
tool_slug?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Filter files by app slug. Example: "file-converter"
|
|
130
|
+
*/
|
|
131
|
+
toolkit_slug?: string;
|
|
132
|
+
}
|
|
133
|
+
export interface FileCreatePresignedURLParams {
|
|
134
|
+
/**
|
|
135
|
+
* Name of the original file. Example: "photo.jpg"
|
|
136
|
+
*/
|
|
137
|
+
filename: string;
|
|
138
|
+
/**
|
|
139
|
+
* MD5 hash of the file for deduplication and integrity verification. Example:
|
|
140
|
+
* "d41d8cd98f00b204e9800998ecf8427e"
|
|
141
|
+
*/
|
|
142
|
+
md5: string;
|
|
143
|
+
/**
|
|
144
|
+
* Mime type of the original file. Example: "image/jpeg"
|
|
145
|
+
*/
|
|
146
|
+
mimetype: string;
|
|
147
|
+
/**
|
|
148
|
+
* Slug of the action where this file belongs to. Example: "resize-image"
|
|
149
|
+
*/
|
|
150
|
+
tool_slug: string;
|
|
151
|
+
/**
|
|
152
|
+
* Slug of the app where this file belongs to. Example: "image-processing"
|
|
153
|
+
*/
|
|
154
|
+
toolkit_slug: string;
|
|
155
|
+
}
|
|
156
|
+
export declare namespace Files {
|
|
157
|
+
export { type FileListResponse as FileListResponse, type FileCreatePresignedURLResponse as FileCreatePresignedURLResponse, type FileListParams as FileListParams, type FileCreatePresignedURLParams as FileCreatePresignedURLParams, };
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEpC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,MAAM,8BAA8B,GACtC,8BAA8B,CAAC,YAAY,GAC3C,8BAA8B,CAAC,YAAY,GAC3C,8BAA8B,CAAC,YAAY,CAAC;AAEhD,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,YAAY;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;;WAGG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,EAAE,UAAU,CAAC;KAClB;IAED,UAAiB,YAAY;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;WAGG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,IAAI,EAAE,KAAK,CAAC;KACb;IAED,UAAiB,YAAY;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;QAEf;;;WAGG;QACH,kBAAkB,EAAE,MAAM,CAAC;KAC5B;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.Files = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Files extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a list of files associated with the authenticated project. Results can
|
|
9
|
+
* be filtered by toolkit and tool slugs.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const files = await client.files.list();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
list(query = {}, options) {
|
|
17
|
+
return this._client.get('/api/v3/files/list', { query, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Generates a presigned URL for uploading a file to S3. This endpoint handles
|
|
21
|
+
* deduplication by checking if a file with the same MD5 hash already exists.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const response = await client.files.createPresignedURL({
|
|
26
|
+
* filename: 'photo.jpg',
|
|
27
|
+
* md5: 'd41d8cd98f00b204e9800998ecf8427e',
|
|
28
|
+
* mimetype: 'image/jpeg',
|
|
29
|
+
* tool_slug: 'resize-image',
|
|
30
|
+
* toolkit_slug: 'image-processing',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
createPresignedURL(body, options) {
|
|
35
|
+
return this._client.post('/api/v3/files/upload/request', { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Files = Files;
|
|
39
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAtCD,sBAsCC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Files extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves a list of files associated with the authenticated project. Results can
|
|
6
|
+
* be filtered by toolkit and tool slugs.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const files = await client.files.list();
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
list(query = {}, options) {
|
|
14
|
+
return this._client.get('/api/v3/files/list', { query, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Generates a presigned URL for uploading a file to S3. This endpoint handles
|
|
18
|
+
* deduplication by checking if a file with the same MD5 hash already exists.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response = await client.files.createPresignedURL({
|
|
23
|
+
* filename: 'photo.jpg',
|
|
24
|
+
* md5: 'd41d8cd98f00b204e9800998ecf8427e',
|
|
25
|
+
* mimetype: 'image/jpeg',
|
|
26
|
+
* tool_slug: 'resize-image',
|
|
27
|
+
* toolkit_slug: 'image-processing',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
createPresignedURL(body, options) {
|
|
32
|
+
return this._client.post('/api/v3/files/upload/request', { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=files.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { ActionExecution, type ActionExecutionLogResponse, type ActionExecutionRetrieveFieldsResponse, type ActionExecutionRetrieveLogResponse, type ActionExecutionLogParams, } from "./action-execution.mjs";
|
|
2
1
|
export { AuthConfigs, type AuthConfigCreateResponse, type AuthConfigRetrieveResponse, type AuthConfigUpdateResponse, type AuthConfigListResponse, type AuthConfigDeleteResponse, type AuthConfigUpdateStatusResponse, type AuthConfigCreateParams, type AuthConfigUpdateParams, type AuthConfigListParams, type AuthConfigUpdateStatusParams, } from "./auth-configs.mjs";
|
|
3
2
|
export { ConnectedAccounts, type ConnectedAccountCreateResponse, type ConnectedAccountRetrieveResponse, type ConnectedAccountListResponse, type ConnectedAccountDeleteResponse, type ConnectedAccountRefreshResponse, type ConnectedAccountUpdateStatusResponse, type ConnectedAccountCreateParams, type ConnectedAccountListParams, type ConnectedAccountUpdateStatusParams, } from "./connected-accounts.mjs";
|
|
3
|
+
export { Files, type FileListResponse, type FileCreatePresignedURLResponse, type FileListParams, type FileCreatePresignedURLParams, } from "./files.mjs";
|
|
4
|
+
export { Mcp, type McpRetrieveResponse, type McpUpdateResponse, type McpDeleteResponse, type McpRetrieveAppResponse, type McpValidateResponse, type McpUpdateParams, type McpRetrieveAppParams, type McpValidateParams, } from "./mcp/mcp.mjs";
|
|
5
|
+
export { Migration, type MigrationRetrieveNanoidResponse, type MigrationRetrieveNanoidParams, } from "./migration.mjs";
|
|
4
6
|
export { Org } from "./org/org.mjs";
|
|
5
7
|
export { TeamMembers, type TeamMemberUpdateResponse, type TeamMemberListResponse, type TeamMemberInviteResponse, type TeamMemberRemoveResponse, type TeamMemberUpdateParams, type TeamMemberInviteParams, } from "./team-members.mjs";
|
|
6
|
-
export { Toolkits, type ToolkitRetrieveResponse, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitListParams, } from "./toolkits.mjs";
|
|
8
|
+
export { Toolkits, type ToolkitRetrieveResponse, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitListParams, type ToolkitRetrieveCategoriesParams, } from "./toolkits.mjs";
|
|
7
9
|
export { Tools, type ToolRetrieveResponse, type ToolListResponse, type ToolExecuteResponse, type ToolGetInputResponse, type ToolProxyResponse, type ToolRetrieveEnumResponse, type ToolListParams, type ToolExecuteParams, type ToolGetInputParams, type ToolProxyParams, } from "./tools.mjs";
|
|
8
|
-
export {
|
|
9
|
-
export { TriggerInstances, type TriggerInstanceListActiveResponse, type TriggerInstanceRemoveUpsertResponse, type TriggerInstanceUpdateStatusResponse, type TriggerInstanceUpsertResponse, type TriggerInstanceListActiveParams, type TriggerInstanceUpdateStatusParams, type TriggerInstanceUpsertParams, } from "./trigger-instances/trigger-instances.mjs";
|
|
10
|
+
export { TriggerInstances, type TriggerInstanceListActiveResponse, type TriggerInstanceUpsertResponse, type TriggerInstanceListActiveParams, type TriggerInstanceUpsertParams, } from "./trigger-instances/trigger-instances.mjs";
|
|
10
11
|
export { TriggersTypes, type TriggersTypeRetrieveResponse, type TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse, type TriggersTypeListParams, } from "./triggers-types.mjs";
|
|
11
12
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,GAClC;OACM,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,GACxC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,cAAc,EACnB,KAAK,4BAA4B,GAClC;OACM,EACL,GAAG,EACH,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB;OACM,EACL,SAAS,EACT,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC;OACM,EAAE,GAAG,EAAE;OACP,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iCAAiC,EACtC,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,GACrC;OACM,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB;OACM,EACL,gBAAgB,EAChB,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,GACjC;OACM,EACL,aAAa,EACb,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,GAC5B"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { ActionExecution, type ActionExecutionLogResponse, type ActionExecutionRetrieveFieldsResponse, type ActionExecutionRetrieveLogResponse, type ActionExecutionLogParams, } from "./action-execution.js";
|
|
2
1
|
export { AuthConfigs, type AuthConfigCreateResponse, type AuthConfigRetrieveResponse, type AuthConfigUpdateResponse, type AuthConfigListResponse, type AuthConfigDeleteResponse, type AuthConfigUpdateStatusResponse, type AuthConfigCreateParams, type AuthConfigUpdateParams, type AuthConfigListParams, type AuthConfigUpdateStatusParams, } from "./auth-configs.js";
|
|
3
2
|
export { ConnectedAccounts, type ConnectedAccountCreateResponse, type ConnectedAccountRetrieveResponse, type ConnectedAccountListResponse, type ConnectedAccountDeleteResponse, type ConnectedAccountRefreshResponse, type ConnectedAccountUpdateStatusResponse, type ConnectedAccountCreateParams, type ConnectedAccountListParams, type ConnectedAccountUpdateStatusParams, } from "./connected-accounts.js";
|
|
3
|
+
export { Files, type FileListResponse, type FileCreatePresignedURLResponse, type FileListParams, type FileCreatePresignedURLParams, } from "./files.js";
|
|
4
|
+
export { Mcp, type McpRetrieveResponse, type McpUpdateResponse, type McpDeleteResponse, type McpRetrieveAppResponse, type McpValidateResponse, type McpUpdateParams, type McpRetrieveAppParams, type McpValidateParams, } from "./mcp/mcp.js";
|
|
5
|
+
export { Migration, type MigrationRetrieveNanoidResponse, type MigrationRetrieveNanoidParams, } from "./migration.js";
|
|
4
6
|
export { Org } from "./org/org.js";
|
|
5
7
|
export { TeamMembers, type TeamMemberUpdateResponse, type TeamMemberListResponse, type TeamMemberInviteResponse, type TeamMemberRemoveResponse, type TeamMemberUpdateParams, type TeamMemberInviteParams, } from "./team-members.js";
|
|
6
|
-
export { Toolkits, type ToolkitRetrieveResponse, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitListParams, } from "./toolkits.js";
|
|
8
|
+
export { Toolkits, type ToolkitRetrieveResponse, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitListParams, type ToolkitRetrieveCategoriesParams, } from "./toolkits.js";
|
|
7
9
|
export { Tools, type ToolRetrieveResponse, type ToolListResponse, type ToolExecuteResponse, type ToolGetInputResponse, type ToolProxyResponse, type ToolRetrieveEnumResponse, type ToolListParams, type ToolExecuteParams, type ToolGetInputParams, type ToolProxyParams, } from "./tools.js";
|
|
8
|
-
export {
|
|
9
|
-
export { TriggerInstances, type TriggerInstanceListActiveResponse, type TriggerInstanceRemoveUpsertResponse, type TriggerInstanceUpdateStatusResponse, type TriggerInstanceUpsertResponse, type TriggerInstanceListActiveParams, type TriggerInstanceUpdateStatusParams, type TriggerInstanceUpsertParams, } from "./trigger-instances/trigger-instances.js";
|
|
10
|
+
export { TriggerInstances, type TriggerInstanceListActiveResponse, type TriggerInstanceUpsertResponse, type TriggerInstanceListActiveParams, type TriggerInstanceUpsertParams, } from "./trigger-instances/trigger-instances.js";
|
|
10
11
|
export { TriggersTypes, type TriggersTypeRetrieveResponse, type TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse, type TriggersTypeListParams, } from "./triggers-types.js";
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,GAClC;OACM,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,GACxC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,cAAc,EACnB,KAAK,4BAA4B,GAClC;OACM,EACL,GAAG,EACH,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB;OACM,EACL,SAAS,EACT,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC;OACM,EAAE,GAAG,EAAE;OACP,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iCAAiC,EACtC,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,GACrC;OACM,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB;OACM,EACL,gBAAgB,EAChB,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,GACjC;OACM,EACL,aAAa,EACb,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,GAC5B"}
|
package/resources/index.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.TriggersTypes = exports.TriggerInstances = exports.
|
|
5
|
-
var action_execution_1 = require("./action-execution.js");
|
|
6
|
-
Object.defineProperty(exports, "ActionExecution", { enumerable: true, get: function () { return action_execution_1.ActionExecution; } });
|
|
4
|
+
exports.TriggersTypes = exports.TriggerInstances = exports.Tools = exports.Toolkits = exports.TeamMembers = exports.Org = exports.Migration = exports.Mcp = exports.Files = exports.ConnectedAccounts = exports.AuthConfigs = void 0;
|
|
7
5
|
var auth_configs_1 = require("./auth-configs.js");
|
|
8
6
|
Object.defineProperty(exports, "AuthConfigs", { enumerable: true, get: function () { return auth_configs_1.AuthConfigs; } });
|
|
9
7
|
var connected_accounts_1 = require("./connected-accounts.js");
|
|
10
8
|
Object.defineProperty(exports, "ConnectedAccounts", { enumerable: true, get: function () { return connected_accounts_1.ConnectedAccounts; } });
|
|
9
|
+
var files_1 = require("./files.js");
|
|
10
|
+
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
|
|
11
|
+
var mcp_1 = require("./mcp/mcp.js");
|
|
12
|
+
Object.defineProperty(exports, "Mcp", { enumerable: true, get: function () { return mcp_1.Mcp; } });
|
|
13
|
+
var migration_1 = require("./migration.js");
|
|
14
|
+
Object.defineProperty(exports, "Migration", { enumerable: true, get: function () { return migration_1.Migration; } });
|
|
11
15
|
var org_1 = require("./org/org.js");
|
|
12
16
|
Object.defineProperty(exports, "Org", { enumerable: true, get: function () { return org_1.Org; } });
|
|
13
17
|
var team_members_1 = require("./team-members.js");
|
|
@@ -16,8 +20,6 @@ var toolkits_1 = require("./toolkits.js");
|
|
|
16
20
|
Object.defineProperty(exports, "Toolkits", { enumerable: true, get: function () { return toolkits_1.Toolkits; } });
|
|
17
21
|
var tools_1 = require("./tools.js");
|
|
18
22
|
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
|
|
19
|
-
var trigger_1 = require("./trigger.js");
|
|
20
|
-
Object.defineProperty(exports, "Trigger", { enumerable: true, get: function () { return trigger_1.Trigger; } });
|
|
21
23
|
var trigger_instances_1 = require("./trigger-instances/trigger-instances.js");
|
|
22
24
|
Object.defineProperty(exports, "TriggerInstances", { enumerable: true, get: function () { return trigger_instances_1.TriggerInstances; } });
|
|
23
25
|
var triggers_types_1 = require("./triggers-types.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAYwB;AAXtB,2GAAA,WAAW,OAAA;AAYb,8DAW8B;AAV5B,uHAAA,iBAAiB,OAAA;AAWnB,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,oCAUmB;AATjB,0FAAA,GAAG,OAAA;AAUL,4CAIqB;AAHnB,sGAAA,SAAS,OAAA;AAIX,oCAAgC;AAAvB,0FAAA,GAAG,OAAA;AACZ,kDAQwB;AAPtB,2GAAA,WAAW,OAAA;AAQb,0CAOoB;AANlB,oGAAA,QAAQ,OAAA;AAOV,oCAYiB;AAXf,8FAAA,KAAK,OAAA;AAYP,8EAM+C;AAL7C,qHAAA,gBAAgB,OAAA;AAMlB,sDAM0B;AALxB,+GAAA,aAAa,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { ActionExecution, } from "./action-execution.mjs";
|
|
3
2
|
export { AuthConfigs, } from "./auth-configs.mjs";
|
|
4
3
|
export { ConnectedAccounts, } from "./connected-accounts.mjs";
|
|
4
|
+
export { Files, } from "./files.mjs";
|
|
5
|
+
export { Mcp, } from "./mcp/mcp.mjs";
|
|
6
|
+
export { Migration, } from "./migration.mjs";
|
|
5
7
|
export { Org } from "./org/org.mjs";
|
|
6
8
|
export { TeamMembers, } from "./team-members.mjs";
|
|
7
9
|
export { Toolkits, } from "./toolkits.mjs";
|
|
8
10
|
export { Tools, } from "./tools.mjs";
|
|
9
|
-
export { Trigger } from "./trigger.mjs";
|
|
10
11
|
export { TriggerInstances, } from "./trigger-instances/trigger-instances.mjs";
|
|
11
12
|
export { TriggersTypes, } from "./triggers-types.mjs";
|
|
12
13
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAWZ;OACM,EACL,iBAAiB,GAUlB;OACM,EACL,KAAK,GAKN;OACM,EACL,GAAG,GASJ;OACM,EACL,SAAS,GAGV;OACM,EAAE,GAAG,EAAE;OACP,EACL,WAAW,GAOZ;OACM,EACL,QAAQ,GAMT;OACM,EACL,KAAK,GAWN;OACM,EACL,gBAAgB,GAKjB;OACM,EACL,aAAa,GAKd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.mts","sourceRoot":"","sources":["../../src/resources/mcp/command.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,OAAQ,SAAQ,WAAW;CAAG"}
|