@composio/client 0.1.0-alpha.5 → 0.1.0-alpha.51
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 +693 -0
- package/README.md +22 -35
- package/api-promise.js +2 -15
- package/api-promise.js.map +1 -1
- package/client.d.mts +44 -39
- package/client.d.mts.map +1 -1
- package/client.d.ts +44 -39
- package/client.d.ts.map +1 -1
- package/client.js +89 -96
- package/client.js.map +1 -1
- package/client.mjs +71 -55
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +0 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +0 -1
- 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 +0 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +0 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +1 -1
- 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/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 +3 -3
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +3 -3
- 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 +7 -5
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +7 -5
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts +0 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +0 -1
- 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 +1 -0
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +16 -19
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts +1 -0
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +22 -21
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +43 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +43 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shim-types.d.mts +11 -22
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +11 -22
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/{src/resources/org.ts → internal/shim-types.mjs} +2 -2
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +2 -2
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +2 -2
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +5 -6
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -2
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +1 -2
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +5 -5
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +4 -3
- 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 +8 -7
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +8 -7
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +1 -3
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +1 -3
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +17 -7
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +13 -4
- 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 +12 -7
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +12 -7
- 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 +0 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +0 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -3
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +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 +28 -7
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +27 -6
- 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 +2 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +2 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +11 -8
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +5 -3
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.js +7 -20
- package/internal/utils.js.map +1 -1
- package/package.json +6 -14
- package/resource.js +2 -15
- package/resource.js.map +1 -1
- package/resources/auth-configs.d.mts +453 -54
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +453 -54
- 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/cli.d.mts +37 -65
- package/resources/cli.d.mts.map +1 -1
- package/resources/cli.d.ts +37 -65
- package/resources/cli.d.ts.map +1 -1
- package/resources/cli.js +13 -4
- package/resources/cli.js.map +1 -1
- package/resources/cli.mjs +13 -4
- package/resources/cli.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +8726 -233
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +8726 -233
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +77 -2
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +77 -2
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +218 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +218 -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 +11 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -9
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -4
- package/resources/index.mjs.map +1 -1
- package/resources/link.d.mts +2017 -0
- package/resources/link.d.mts.map +1 -0
- package/resources/link.d.ts +2017 -0
- package/resources/link.d.ts.map +1 -0
- package/resources/link.js +16 -0
- package/resources/link.js.map +1 -0
- package/resources/link.mjs +12 -0
- package/resources/link.mjs.map +1 -0
- package/resources/mcp/custom.d.mts +102 -0
- package/resources/mcp/custom.d.mts.map +1 -0
- package/resources/mcp/custom.d.ts +102 -0
- package/resources/mcp/custom.d.ts.map +1 -0
- package/resources/mcp/custom.js +26 -0
- package/resources/mcp/custom.js.map +1 -0
- package/resources/mcp/custom.mjs +22 -0
- package/resources/mcp/custom.mjs.map +1 -0
- package/resources/mcp/generate.d.mts +59 -0
- package/resources/mcp/generate.d.mts.map +1 -0
- package/resources/mcp/generate.d.ts +59 -0
- package/resources/mcp/generate.d.ts.map +1 -0
- package/resources/mcp/generate.js +26 -0
- package/resources/mcp/generate.js.map +1 -0
- package/resources/mcp/generate.mjs +22 -0
- package/resources/mcp/generate.mjs.map +1 -0
- package/resources/mcp/index.d.mts +3 -2
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts +3 -2
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.js +5 -3
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs +2 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +447 -175
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +447 -175
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +89 -39
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +88 -16
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/mcp.js +2 -15
- package/resources/mcp.js.map +1 -1
- 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/tool-router/index.d.mts +3 -0
- package/resources/tool-router/index.d.mts.map +1 -0
- package/resources/tool-router/index.d.ts +3 -0
- package/resources/tool-router/index.d.ts.map +1 -0
- package/resources/tool-router/index.js +9 -0
- package/resources/tool-router/index.js.map +1 -0
- package/resources/tool-router/index.mjs +4 -0
- package/resources/tool-router/index.mjs.map +1 -0
- package/resources/tool-router/session.d.mts +649 -0
- package/resources/tool-router/session.d.mts.map +1 -0
- package/resources/tool-router/session.d.ts +649 -0
- package/resources/tool-router/session.d.ts.map +1 -0
- package/resources/tool-router/session.js +107 -0
- package/resources/tool-router/session.js.map +1 -0
- package/resources/tool-router/session.mjs +103 -0
- package/resources/tool-router/session.mjs.map +1 -0
- package/resources/tool-router/tool-router.d.mts +91 -0
- package/resources/tool-router/tool-router.d.mts.map +1 -0
- package/resources/tool-router/tool-router.d.ts +91 -0
- package/resources/tool-router/tool-router.d.ts.map +1 -0
- package/resources/tool-router/tool-router.js +46 -0
- package/resources/tool-router/tool-router.js.map +1 -0
- package/resources/tool-router/tool-router.mjs +41 -0
- package/resources/tool-router/tool-router.mjs.map +1 -0
- package/resources/tool-router.d.mts +2 -0
- package/resources/tool-router.d.mts.map +1 -0
- package/resources/tool-router.d.ts +2 -0
- package/resources/tool-router.d.ts.map +1 -0
- package/resources/tool-router.js +6 -0
- package/resources/tool-router.js.map +1 -0
- package/resources/{org.mjs → tool-router.mjs} +2 -2
- package/resources/tool-router.mjs.map +1 -0
- package/resources/toolkits.d.mts +286 -6
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +286 -6
- 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 +1209 -41
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +1209 -41
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +73 -6
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +73 -6
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +2 -2
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +2 -2
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js +3 -3
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/manage.d.mts +43 -0
- package/resources/trigger-instances/manage.d.mts.map +1 -0
- package/resources/trigger-instances/manage.d.ts +43 -0
- package/resources/trigger-instances/manage.d.ts.map +1 -0
- package/resources/trigger-instances/manage.js +33 -0
- package/resources/trigger-instances/manage.js.map +1 -0
- package/resources/trigger-instances/manage.mjs +29 -0
- package/resources/trigger-instances/manage.mjs.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.mts +166 -40
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +166 -40
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +20 -35
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +19 -12
- 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 +145 -12
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +145 -12
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +14 -2
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +14 -2
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +145 -114
- package/src/core/resource.ts +1 -1
- package/src/internal/detect-platform.ts +3 -3
- package/src/internal/headers.ts +9 -8
- package/src/internal/qs/formats.ts +2 -1
- package/src/internal/qs/stringify.ts +17 -20
- package/src/internal/qs/utils.ts +14 -14
- package/src/internal/request-options.ts +54 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +2 -2
- package/src/internal/to-file.ts +5 -3
- package/src/internal/types.ts +9 -6
- package/src/internal/uploads.ts +17 -5
- package/src/internal/utils/base64.ts +13 -10
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +33 -8
- package/src/internal/utils/uuid.ts +1 -3
- package/src/internal/utils/values.ts +6 -3
- package/src/resources/auth-configs.ts +507 -67
- package/src/resources/cli.ts +39 -83
- package/src/resources/connected-accounts.ts +16471 -459
- package/src/resources/files.ts +281 -0
- package/src/resources/index.ts +24 -26
- package/src/resources/link.ts +3817 -0
- package/src/resources/mcp/custom.ts +122 -0
- package/src/resources/mcp/generate.ts +71 -0
- package/src/resources/mcp/index.ts +3 -3
- package/src/resources/mcp/mcp.ts +484 -200
- package/src/resources/migration.ts +46 -0
- package/src/resources/tool-router/index.ts +21 -0
- package/src/resources/tool-router/session.ts +795 -0
- package/src/resources/tool-router/tool-router.ts +141 -0
- package/src/resources/{org/project.ts → tool-router.ts} +1 -1
- package/src/resources/toolkits.ts +325 -8
- package/src/resources/tools.ts +1880 -60
- package/src/resources/trigger-instances/index.ts +5 -9
- package/src/resources/trigger-instances/manage.ts +63 -0
- package/src/resources/trigger-instances/trigger-instances.ts +179 -64
- package/src/resources/triggers-types.ts +149 -14
- 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 -71
- package/internal/shims/getBuiltinModule.js.map +0 -1
- package/internal/shims/getBuiltinModule.mjs +0 -67
- 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/mcp/command.d.mts +0 -34
- package/resources/mcp/command.d.mts.map +0 -1
- package/resources/mcp/command.d.ts +0 -34
- package/resources/mcp/command.d.ts.map +0 -1
- package/resources/mcp/command.js +0 -12
- package/resources/mcp/command.js.map +0 -1
- package/resources/mcp/command.mjs +0 -8
- package/resources/mcp/command.mjs.map +0 -1
- package/resources/org/api-key.d.mts +0 -17
- package/resources/org/api-key.d.mts.map +0 -1
- package/resources/org/api-key.d.ts +0 -17
- package/resources/org/api-key.d.ts.map +0 -1
- package/resources/org/api-key.js +0 -15
- package/resources/org/api-key.js.map +0 -1
- package/resources/org/api-key.mjs +0 -11
- package/resources/org/api-key.mjs.map +0 -1
- package/resources/org/index.d.mts +0 -4
- package/resources/org/index.d.mts.map +0 -1
- package/resources/org/index.d.ts +0 -4
- package/resources/org/index.d.ts.map +0 -1
- package/resources/org/index.js +0 -11
- package/resources/org/index.js.map +0 -1
- package/resources/org/index.mjs +0 -5
- package/resources/org/index.mjs.map +0 -1
- package/resources/org/org.d.mts +0 -14
- package/resources/org/org.d.mts.map +0 -1
- package/resources/org/org.d.ts +0 -14
- package/resources/org/org.d.ts.map +0 -1
- package/resources/org/org.js +0 -43
- package/resources/org/org.js.map +0 -1
- package/resources/org/org.mjs +0 -16
- package/resources/org/org.mjs.map +0 -1
- package/resources/org/project/api-keys.d.mts +0 -109
- package/resources/org/project/api-keys.d.mts.map +0 -1
- package/resources/org/project/api-keys.d.ts +0 -109
- package/resources/org/project/api-keys.d.ts.map +0 -1
- package/resources/org/project/api-keys.js +0 -23
- package/resources/org/project/api-keys.js.map +0 -1
- package/resources/org/project/api-keys.mjs +0 -19
- package/resources/org/project/api-keys.mjs.map +0 -1
- package/resources/org/project/index.d.mts +0 -5
- package/resources/org/project/index.d.mts.map +0 -1
- package/resources/org/project/index.d.ts +0 -5
- package/resources/org/project/index.d.ts.map +0 -1
- package/resources/org/project/index.js +0 -13
- package/resources/org/project/index.js.map +0 -1
- package/resources/org/project/index.mjs +0 -6
- package/resources/org/project/index.mjs.map +0 -1
- package/resources/org/project/project.d.mts +0 -90
- package/resources/org/project/project.d.mts.map +0 -1
- package/resources/org/project/project.d.ts +0 -90
- package/resources/org/project/project.d.ts.map +0 -1
- package/resources/org/project/project.js +0 -60
- package/resources/org/project/project.js.map +0 -1
- package/resources/org/project/project.mjs +0 -33
- package/resources/org/project/project.mjs.map +0 -1
- package/resources/org/project/trigger.d.mts +0 -51
- package/resources/org/project/trigger.d.mts.map +0 -1
- package/resources/org/project/trigger.d.ts +0 -51
- package/resources/org/project/trigger.d.ts.map +0 -1
- package/resources/org/project/trigger.js +0 -16
- package/resources/org/project/trigger.js.map +0 -1
- package/resources/org/project/trigger.mjs +0 -12
- package/resources/org/project/trigger.mjs.map +0 -1
- package/resources/org/project/webhook.d.mts +0 -92
- package/resources/org/project/webhook.d.mts.map +0 -1
- package/resources/org/project/webhook.d.ts +0 -92
- package/resources/org/project/webhook.d.ts.map +0 -1
- package/resources/org/project/webhook.js +0 -24
- package/resources/org/project/webhook.js.map +0 -1
- package/resources/org/project/webhook.mjs +0 -20
- package/resources/org/project/webhook.mjs.map +0 -1
- package/resources/org/project.d.mts +0 -2
- package/resources/org/project.d.mts.map +0 -1
- package/resources/org/project.d.ts +0 -2
- package/resources/org/project.d.ts.map +0 -1
- package/resources/org/project.js +0 -19
- package/resources/org/project.js.map +0 -1
- package/resources/org/project.mjs +0 -3
- package/resources/org/project.mjs.map +0 -1
- package/resources/org.d.mts +0 -2
- package/resources/org.d.mts.map +0 -1
- package/resources/org.d.ts +0 -2
- package/resources/org.d.ts.map +0 -1
- package/resources/org.js +0 -19
- package/resources/org.js.map +0 -1
- package/resources/org.mjs.map +0 -1
- package/resources/team-members.d.mts +0 -57
- package/resources/team-members.d.mts.map +0 -1
- package/resources/team-members.d.ts +0 -57
- package/resources/team-members.d.ts.map +0 -1
- package/resources/team-members.js +0 -22
- package/resources/team-members.js.map +0 -1
- package/resources/team-members.mjs +0 -18
- package/resources/team-members.mjs.map +0 -1
- package/resources/trigger-instances/handle.d.mts +0 -25
- package/resources/trigger-instances/handle.d.mts.map +0 -1
- package/resources/trigger-instances/handle.d.ts +0 -25
- package/resources/trigger-instances/handle.d.ts.map +0 -1
- package/resources/trigger-instances/handle.js +0 -18
- package/resources/trigger-instances/handle.js.map +0 -1
- package/resources/trigger-instances/handle.mjs +0 -14
- package/resources/trigger-instances/handle.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/shim-types.d.ts +0 -28
- package/src/internal/shims/crypto.ts +0 -18
- package/src/internal/shims/file.ts +0 -32
- package/src/internal/shims/getBuiltinModule.ts +0 -66
- package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
- package/src/resources/action-execution.ts +0 -244
- package/src/resources/mcp/command.ts +0 -47
- package/src/resources/org/api-key.ts +0 -30
- package/src/resources/org/index.ts +0 -12
- package/src/resources/org/org.ts +0 -39
- package/src/resources/org/project/api-keys.ts +0 -156
- package/src/resources/org/project/index.ts +0 -35
- package/src/resources/org/project/project.ts +0 -206
- package/src/resources/org/project/trigger.ts +0 -95
- package/src/resources/org/project/webhook.ts +0 -131
- package/src/resources/team-members.ts +0 -111
- package/src/resources/trigger-instances/handle.ts +0 -45
- package/src/resources/trigger.ts +0 -108
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-configs.d.ts","sourceRoot":"","sources":["../src/resources/auth-configs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpG,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI1F,MAAM,
|
|
1
|
+
{"version":3,"file":"auth-configs.d.ts","sourceRoot":"","sources":["../src/resources/auth-configs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpG;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI1F;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,C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/B;;;eAGG;YACH,6BAA6B,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAE9C;;;eAGG;YACH,oCAAoC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;SACtD;KACF;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAEvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -5,21 +5,85 @@ exports.AuthConfigs = void 0;
|
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const path_1 = require("../internal/utils/path.js");
|
|
7
7
|
class AuthConfigs extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create new authentication configuration
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const authConfig = await client.authConfigs.create({
|
|
14
|
+
* toolkit: { slug: 'slug' },
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
8
18
|
create(body, options) {
|
|
9
19
|
return this._client.post('/api/v3/auth_configs', { body, ...options });
|
|
10
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves detailed information about a specific authentication configuration
|
|
23
|
+
* using its unique identifier.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const authConfig = await client.authConfigs.retrieve(
|
|
28
|
+
* 'nanoid',
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
11
32
|
retrieve(nanoid, options) {
|
|
12
33
|
return this._client.get((0, path_1.path) `/api/v3/auth_configs/${nanoid}`, options);
|
|
13
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Modifies an existing authentication configuration with new credentials or other
|
|
37
|
+
* settings. Only specified fields will be updated.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const authConfig = await client.authConfigs.update(
|
|
42
|
+
* 'nanoid',
|
|
43
|
+
* { credentials: {}, type: 'custom' },
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
14
47
|
update(nanoid, body, options) {
|
|
15
48
|
return this._client.patch((0, path_1.path) `/api/v3/auth_configs/${nanoid}`, { body, ...options });
|
|
16
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* List authentication configurations with optional filters
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const authConfigs = await client.authConfigs.list();
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
17
58
|
list(query = {}, options) {
|
|
18
59
|
return this._client.get('/api/v3/auth_configs', { query, ...options });
|
|
19
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Soft-deletes an authentication configuration by marking it as deleted in the
|
|
63
|
+
* database. This operation cannot be undone.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const authConfig = await client.authConfigs.delete(
|
|
68
|
+
* 'nanoid',
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
20
72
|
delete(nanoid, options) {
|
|
21
73
|
return this._client.delete((0, path_1.path) `/api/v3/auth_configs/${nanoid}`, options);
|
|
22
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Updates the status of an authentication configuration to either enabled or
|
|
77
|
+
* disabled. Disabled configurations cannot be used for new connections.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* const response = await client.authConfigs.updateStatus(
|
|
82
|
+
* 'ENABLED',
|
|
83
|
+
* { nanoid: 'nanoid' },
|
|
84
|
+
* );
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
23
87
|
updateStatus(status, params, options) {
|
|
24
88
|
const { nanoid } = params;
|
|
25
89
|
return this._client.patch((0, path_1.path) `/api/v3/auth_configs/${nanoid}/${status}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-configs.js","sourceRoot":"","sources":["../src/resources/auth-configs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,WAAY,SAAQ,sBAAW;IAC1C,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAA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;;;;;;;;;;;OAWG;IACH,YAAY,CACV,MAA8B,EAC9B,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF;AAhGD,kCAgGC"}
|
|
@@ -2,21 +2,85 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { path } from "../internal/utils/path.mjs";
|
|
4
4
|
export class AuthConfigs extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create new authentication configuration
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const authConfig = await client.authConfigs.create({
|
|
11
|
+
* toolkit: { slug: 'slug' },
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
5
15
|
create(body, options) {
|
|
6
16
|
return this._client.post('/api/v3/auth_configs', { body, ...options });
|
|
7
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves detailed information about a specific authentication configuration
|
|
20
|
+
* using its unique identifier.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const authConfig = await client.authConfigs.retrieve(
|
|
25
|
+
* 'nanoid',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
8
29
|
retrieve(nanoid, options) {
|
|
9
30
|
return this._client.get(path `/api/v3/auth_configs/${nanoid}`, options);
|
|
10
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Modifies an existing authentication configuration with new credentials or other
|
|
34
|
+
* settings. Only specified fields will be updated.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const authConfig = await client.authConfigs.update(
|
|
39
|
+
* 'nanoid',
|
|
40
|
+
* { credentials: {}, type: 'custom' },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
11
44
|
update(nanoid, body, options) {
|
|
12
45
|
return this._client.patch(path `/api/v3/auth_configs/${nanoid}`, { body, ...options });
|
|
13
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* List authentication configurations with optional filters
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const authConfigs = await client.authConfigs.list();
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
14
55
|
list(query = {}, options) {
|
|
15
56
|
return this._client.get('/api/v3/auth_configs', { query, ...options });
|
|
16
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Soft-deletes an authentication configuration by marking it as deleted in the
|
|
60
|
+
* database. This operation cannot be undone.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const authConfig = await client.authConfigs.delete(
|
|
65
|
+
* 'nanoid',
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
17
69
|
delete(nanoid, options) {
|
|
18
70
|
return this._client.delete(path `/api/v3/auth_configs/${nanoid}`, options);
|
|
19
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Updates the status of an authentication configuration to either enabled or
|
|
74
|
+
* disabled. Disabled configurations cannot be used for new connections.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const response = await client.authConfigs.updateStatus(
|
|
79
|
+
* 'ENABLED',
|
|
80
|
+
* { nanoid: 'nanoid' },
|
|
81
|
+
* );
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
20
84
|
updateStatus(status, params, options) {
|
|
21
85
|
const { nanoid } = params;
|
|
22
86
|
return this._client.patch(path `/api/v3/auth_configs/${nanoid}/${status}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-configs.mjs","sourceRoot":"","sources":["../src/resources/auth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OAOG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,YAAY,CACV,MAA8B,EAC9B,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,wBAAwB,MAAM,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF"}
|
package/resources/cli.d.mts
CHANGED
|
@@ -2,123 +2,95 @@ 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 Cli extends APIResource {
|
|
5
|
-
createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
6
|
-
linkSession(body: CliLinkSessionParams, options?: RequestOptions): APIPromise<CliLinkSessionResponse>;
|
|
7
|
-
retrieveSession(query: CliRetrieveSessionParams, options?: RequestOptions): APIPromise<CliRetrieveSessionResponse>;
|
|
8
|
-
}
|
|
9
|
-
export interface CliCreateSessionResponse {
|
|
10
|
-
/**
|
|
11
|
-
* Unique identifier for the CLI session
|
|
12
|
-
*/
|
|
13
|
-
id: string;
|
|
14
|
-
/**
|
|
15
|
-
* Temporary code to use for CLI login
|
|
16
|
-
*/
|
|
17
|
-
code: string;
|
|
18
5
|
/**
|
|
19
|
-
*
|
|
6
|
+
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
7
|
+
* first step in the CLI authentication flow, creating a session that can later be
|
|
8
|
+
* linked to a user account. The generated code is displayed to the user in the CLI
|
|
9
|
+
* and should be entered in the web interface to complete authentication.
|
|
20
10
|
*/
|
|
21
|
-
|
|
11
|
+
createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
22
12
|
/**
|
|
23
|
-
*
|
|
13
|
+
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
14
|
+
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
15
|
+
* if the session has been linked, and by the web interface to display session
|
|
16
|
+
* details before linking.
|
|
24
17
|
*/
|
|
25
|
-
|
|
18
|
+
getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
|
|
26
19
|
}
|
|
27
|
-
export interface
|
|
20
|
+
export interface CliCreateSessionResponse {
|
|
28
21
|
/**
|
|
29
|
-
* Unique identifier for the CLI session
|
|
22
|
+
* Unique identifier for the CLI session. UUID v4 format used for tracking and
|
|
23
|
+
* retrieval.
|
|
30
24
|
*/
|
|
31
25
|
id: string;
|
|
32
26
|
/**
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
account: CliLinkSessionResponse.Account;
|
|
36
|
-
/**
|
|
37
|
-
* Temporary code used for CLI login
|
|
27
|
+
* The 6-character hexadecimal code used for CLI login
|
|
38
28
|
*/
|
|
39
29
|
code: string;
|
|
40
30
|
/**
|
|
41
|
-
*
|
|
31
|
+
* The ISO timestamp when the session expires
|
|
42
32
|
*/
|
|
43
33
|
expiresAt: string;
|
|
44
34
|
/**
|
|
45
|
-
*
|
|
35
|
+
* The current status of the session
|
|
46
36
|
*/
|
|
47
37
|
status: 'pending' | 'linked';
|
|
48
38
|
}
|
|
49
|
-
export
|
|
39
|
+
export interface CliGetSessionResponse {
|
|
50
40
|
/**
|
|
51
|
-
*
|
|
41
|
+
* The unique identifier for the CLI session
|
|
52
42
|
*/
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* ID of the linked account
|
|
56
|
-
*/
|
|
57
|
-
id: string;
|
|
58
|
-
/**
|
|
59
|
-
* Email of the linked account
|
|
60
|
-
*/
|
|
61
|
-
email: string;
|
|
62
|
-
/**
|
|
63
|
-
* Name of the linked account
|
|
64
|
-
*/
|
|
65
|
-
name: string;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export interface CliRetrieveSessionResponse {
|
|
43
|
+
id: string;
|
|
69
44
|
/**
|
|
70
|
-
*
|
|
45
|
+
* Information about the linked account, if any. Null if the session status is
|
|
46
|
+
* "pending".
|
|
71
47
|
*/
|
|
72
|
-
|
|
48
|
+
account: CliGetSessionResponse.Account | null;
|
|
73
49
|
/**
|
|
74
|
-
*
|
|
50
|
+
* The API key for the linked account
|
|
75
51
|
*/
|
|
76
|
-
|
|
52
|
+
api_key: string | null;
|
|
77
53
|
/**
|
|
78
|
-
*
|
|
54
|
+
* The 6-character hexadecimal code used for CLI login
|
|
79
55
|
*/
|
|
80
56
|
code: string;
|
|
81
57
|
/**
|
|
82
|
-
*
|
|
58
|
+
* The ISO timestamp when the session expires
|
|
83
59
|
*/
|
|
84
60
|
expiresAt: string;
|
|
85
61
|
/**
|
|
86
|
-
*
|
|
62
|
+
* The current status of the session
|
|
87
63
|
*/
|
|
88
64
|
status: 'pending' | 'linked';
|
|
89
65
|
}
|
|
90
|
-
export declare namespace
|
|
66
|
+
export declare namespace CliGetSessionResponse {
|
|
91
67
|
/**
|
|
92
|
-
* Information about the linked account, if any
|
|
68
|
+
* Information about the linked account, if any. Null if the session status is
|
|
69
|
+
* "pending".
|
|
93
70
|
*/
|
|
94
71
|
interface Account {
|
|
95
72
|
/**
|
|
96
|
-
* ID of the linked account
|
|
73
|
+
* The ID of the linked account
|
|
97
74
|
*/
|
|
98
75
|
id: string;
|
|
99
76
|
/**
|
|
100
|
-
*
|
|
77
|
+
* The email address of the linked account
|
|
101
78
|
*/
|
|
102
79
|
email: string;
|
|
103
80
|
/**
|
|
104
|
-
*
|
|
81
|
+
* The display name of the linked account
|
|
105
82
|
*/
|
|
106
83
|
name: string;
|
|
107
84
|
}
|
|
108
85
|
}
|
|
109
|
-
export interface
|
|
110
|
-
/**
|
|
111
|
-
* CLI session ID or code to link
|
|
112
|
-
*/
|
|
113
|
-
id: string;
|
|
114
|
-
}
|
|
115
|
-
export interface CliRetrieveSessionParams {
|
|
86
|
+
export interface CliGetSessionParams {
|
|
116
87
|
/**
|
|
117
|
-
* CLI session ID or code to check
|
|
88
|
+
* CLI session ID (UUID format) or 6-character code to check. Both formats are
|
|
89
|
+
* supported for flexibility in client implementations.
|
|
118
90
|
*/
|
|
119
91
|
id: string;
|
|
120
92
|
}
|
|
121
93
|
export declare namespace Cli {
|
|
122
|
-
export { type CliCreateSessionResponse as CliCreateSessionResponse, type
|
|
94
|
+
export { type CliCreateSessionResponse as CliCreateSessionResponse, type CliGetSessionResponse as CliGetSessionResponse, type CliGetSessionParams as CliGetSessionParams, };
|
|
123
95
|
}
|
|
124
96
|
//# sourceMappingURL=cli.d.mts.map
|
package/resources/cli.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.mts","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI7E,
|
|
1
|
+
{"version":3,"file":"cli.d.mts","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;OAKG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,G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
|
2
2
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
export declare class Cli extends APIResource {
|
|
5
|
-
createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
6
|
-
linkSession(body: CliLinkSessionParams, options?: RequestOptions): APIPromise<CliLinkSessionResponse>;
|
|
7
|
-
retrieveSession(query: CliRetrieveSessionParams, options?: RequestOptions): APIPromise<CliRetrieveSessionResponse>;
|
|
8
|
-
}
|
|
9
|
-
export interface CliCreateSessionResponse {
|
|
10
|
-
/**
|
|
11
|
-
* Unique identifier for the CLI session
|
|
12
|
-
*/
|
|
13
|
-
id: string;
|
|
14
|
-
/**
|
|
15
|
-
* Temporary code to use for CLI login
|
|
16
|
-
*/
|
|
17
|
-
code: string;
|
|
18
5
|
/**
|
|
19
|
-
*
|
|
6
|
+
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
7
|
+
* first step in the CLI authentication flow, creating a session that can later be
|
|
8
|
+
* linked to a user account. The generated code is displayed to the user in the CLI
|
|
9
|
+
* and should be entered in the web interface to complete authentication.
|
|
20
10
|
*/
|
|
21
|
-
|
|
11
|
+
createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
22
12
|
/**
|
|
23
|
-
*
|
|
13
|
+
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
14
|
+
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
15
|
+
* if the session has been linked, and by the web interface to display session
|
|
16
|
+
* details before linking.
|
|
24
17
|
*/
|
|
25
|
-
|
|
18
|
+
getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
|
|
26
19
|
}
|
|
27
|
-
export interface
|
|
20
|
+
export interface CliCreateSessionResponse {
|
|
28
21
|
/**
|
|
29
|
-
* Unique identifier for the CLI session
|
|
22
|
+
* Unique identifier for the CLI session. UUID v4 format used for tracking and
|
|
23
|
+
* retrieval.
|
|
30
24
|
*/
|
|
31
25
|
id: string;
|
|
32
26
|
/**
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
account: CliLinkSessionResponse.Account;
|
|
36
|
-
/**
|
|
37
|
-
* Temporary code used for CLI login
|
|
27
|
+
* The 6-character hexadecimal code used for CLI login
|
|
38
28
|
*/
|
|
39
29
|
code: string;
|
|
40
30
|
/**
|
|
41
|
-
*
|
|
31
|
+
* The ISO timestamp when the session expires
|
|
42
32
|
*/
|
|
43
33
|
expiresAt: string;
|
|
44
34
|
/**
|
|
45
|
-
*
|
|
35
|
+
* The current status of the session
|
|
46
36
|
*/
|
|
47
37
|
status: 'pending' | 'linked';
|
|
48
38
|
}
|
|
49
|
-
export
|
|
39
|
+
export interface CliGetSessionResponse {
|
|
50
40
|
/**
|
|
51
|
-
*
|
|
41
|
+
* The unique identifier for the CLI session
|
|
52
42
|
*/
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* ID of the linked account
|
|
56
|
-
*/
|
|
57
|
-
id: string;
|
|
58
|
-
/**
|
|
59
|
-
* Email of the linked account
|
|
60
|
-
*/
|
|
61
|
-
email: string;
|
|
62
|
-
/**
|
|
63
|
-
* Name of the linked account
|
|
64
|
-
*/
|
|
65
|
-
name: string;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export interface CliRetrieveSessionResponse {
|
|
43
|
+
id: string;
|
|
69
44
|
/**
|
|
70
|
-
*
|
|
45
|
+
* Information about the linked account, if any. Null if the session status is
|
|
46
|
+
* "pending".
|
|
71
47
|
*/
|
|
72
|
-
|
|
48
|
+
account: CliGetSessionResponse.Account | null;
|
|
73
49
|
/**
|
|
74
|
-
*
|
|
50
|
+
* The API key for the linked account
|
|
75
51
|
*/
|
|
76
|
-
|
|
52
|
+
api_key: string | null;
|
|
77
53
|
/**
|
|
78
|
-
*
|
|
54
|
+
* The 6-character hexadecimal code used for CLI login
|
|
79
55
|
*/
|
|
80
56
|
code: string;
|
|
81
57
|
/**
|
|
82
|
-
*
|
|
58
|
+
* The ISO timestamp when the session expires
|
|
83
59
|
*/
|
|
84
60
|
expiresAt: string;
|
|
85
61
|
/**
|
|
86
|
-
*
|
|
62
|
+
* The current status of the session
|
|
87
63
|
*/
|
|
88
64
|
status: 'pending' | 'linked';
|
|
89
65
|
}
|
|
90
|
-
export declare namespace
|
|
66
|
+
export declare namespace CliGetSessionResponse {
|
|
91
67
|
/**
|
|
92
|
-
* Information about the linked account, if any
|
|
68
|
+
* Information about the linked account, if any. Null if the session status is
|
|
69
|
+
* "pending".
|
|
93
70
|
*/
|
|
94
71
|
interface Account {
|
|
95
72
|
/**
|
|
96
|
-
* ID of the linked account
|
|
73
|
+
* The ID of the linked account
|
|
97
74
|
*/
|
|
98
75
|
id: string;
|
|
99
76
|
/**
|
|
100
|
-
*
|
|
77
|
+
* The email address of the linked account
|
|
101
78
|
*/
|
|
102
79
|
email: string;
|
|
103
80
|
/**
|
|
104
|
-
*
|
|
81
|
+
* The display name of the linked account
|
|
105
82
|
*/
|
|
106
83
|
name: string;
|
|
107
84
|
}
|
|
108
85
|
}
|
|
109
|
-
export interface
|
|
110
|
-
/**
|
|
111
|
-
* CLI session ID or code to link
|
|
112
|
-
*/
|
|
113
|
-
id: string;
|
|
114
|
-
}
|
|
115
|
-
export interface CliRetrieveSessionParams {
|
|
86
|
+
export interface CliGetSessionParams {
|
|
116
87
|
/**
|
|
117
|
-
* CLI session ID or code to check
|
|
88
|
+
* CLI session ID (UUID format) or 6-character code to check. Both formats are
|
|
89
|
+
* supported for flexibility in client implementations.
|
|
118
90
|
*/
|
|
119
91
|
id: string;
|
|
120
92
|
}
|
|
121
93
|
export declare namespace Cli {
|
|
122
|
-
export { type CliCreateSessionResponse as CliCreateSessionResponse, type
|
|
94
|
+
export { type CliCreateSessionResponse as CliCreateSessionResponse, type CliGetSessionResponse as CliGetSessionResponse, type CliGetSessionParams as CliGetSessionParams, };
|
|
123
95
|
}
|
|
124
96
|
//# sourceMappingURL=cli.d.ts.map
|
package/resources/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI7E,
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;OAKG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI7E;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGpG;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,OAAO,EAAE,qBAAqB,CAAC,OAAO,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;;OAGG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/cli.js
CHANGED
|
@@ -4,13 +4,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Cli = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
class Cli extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
9
|
+
* first step in the CLI authentication flow, creating a session that can later be
|
|
10
|
+
* linked to a user account. The generated code is displayed to the user in the CLI
|
|
11
|
+
* and should be entered in the web interface to complete authentication.
|
|
12
|
+
*/
|
|
7
13
|
createSession(options) {
|
|
8
14
|
return this._client.post('/api/v3/cli/create-session', options);
|
|
9
15
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
18
|
+
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
19
|
+
* if the session has been linked, and by the web interface to display session
|
|
20
|
+
* details before linking.
|
|
21
|
+
*/
|
|
22
|
+
getSession(query, options) {
|
|
14
23
|
return this._client.get('/api/v3/cli/get-session', { query, ...options });
|
|
15
24
|
}
|
|
16
25
|
}
|
package/resources/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,GAAI,SAAQ,sBAAW;IAClC,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;;;OAKG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,KAA0B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AApBD,kBAoBC"}
|
package/resources/cli.mjs
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
export class Cli extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Generates a new CLI session with a random 6-character code. This endpoint is the
|
|
6
|
+
* first step in the CLI authentication flow, creating a session that can later be
|
|
7
|
+
* linked to a user account. The generated code is displayed to the user in the CLI
|
|
8
|
+
* and should be entered in the web interface to complete authentication.
|
|
9
|
+
*/
|
|
4
10
|
createSession(options) {
|
|
5
11
|
return this._client.post('/api/v3/cli/create-session', options);
|
|
6
12
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the current state of a CLI session using either the session ID (UUID)
|
|
15
|
+
* or the 6-character code. This endpoint is used by both the CLI client to check
|
|
16
|
+
* if the session has been linked, and by the web interface to display session
|
|
17
|
+
* details before linking.
|
|
18
|
+
*/
|
|
19
|
+
getSession(query, options) {
|
|
11
20
|
return this._client.get('/api/v3/cli/get-session', { query, ...options });
|
|
12
21
|
}
|
|
13
22
|
}
|
package/resources/cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.mjs","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"cli.mjs","sourceRoot":"","sources":["../src/resources/cli.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;;;OAKG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,KAA0B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|