@composio/client 0.1.0-alpha.9 → 2.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -315
- package/dist/api-key-revocation-CMby8GRJ.mjs +25 -0
- package/dist/auth-Cogku2no.mjs +17 -0
- package/dist/auth-configs-Dgujwvul.mjs +55 -0
- package/dist/clanker-Ddf6to-5.mjs +24 -0
- package/dist/cli-Bx3dRctN.mjs +45 -0
- package/dist/config-BLBbhLe1.mjs +10 -0
- package/dist/config-DnyMhILW.d.mts +9 -0
- package/dist/connected-accounts-DNOWcz-A.mjs +83 -0
- package/dist/consumer-B_ccSE7b.mjs +34 -0
- package/dist/custom-CEy4IB_M.mjs +88 -0
- package/dist/custom-JHvAPJnl.mjs +24 -0
- package/dist/error-DLB1uKM3.mjs +109 -0
- package/dist/files-C74URe8c.mjs +31 -0
- package/dist/files-CxbSR_Qf.mjs +49 -0
- package/dist/generate-Cfcp7BDV.mjs +24 -0
- package/dist/generated-operations-DpYfIPgx.mjs +2312 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +576 -0
- package/dist/keyring-DPTbHLph.mjs +17 -0
- package/dist/link-HtoYUvao.mjs +23 -0
- package/dist/logs-B1kxIBDI.mjs +38 -0
- package/dist/manage-Cv_zl1Pa.mjs +28 -0
- package/dist/mcp-DPHzA1Gg.mjs +91 -0
- package/dist/migration-CBhnoN-Y.mjs +10 -0
- package/dist/migration-CKGKuRO3.d.mts +9 -0
- package/dist/org-DfPJHXZ4.mjs +45 -0
- package/dist/owner-BOJ0ppd_.mjs +17 -0
- package/dist/pagination.d.mts +56 -0
- package/dist/pagination.mjs +50 -0
- package/dist/project-CBh3olOE.mjs +29 -0
- package/dist/project-Cyn5wfjX.mjs +25 -0
- package/dist/project-DgHmeDvz.mjs +47 -0
- package/dist/project-z2RqqvAR.mjs +22 -0
- package/dist/realtime-AhDHHK8s.mjs +28 -0
- package/dist/resources/api-key-revocation.d.mts +2 -0
- package/dist/resources/api-key-revocation.mjs +3 -0
- package/dist/resources/auth/auth.d.mts +2 -0
- package/dist/resources/auth/auth.mjs +3 -0
- package/dist/resources/auth/index.d.mts +2 -0
- package/dist/resources/auth/index.mjs +4 -0
- package/dist/resources/auth/session.d.mts +2 -0
- package/dist/resources/auth/session.mjs +3 -0
- package/dist/resources/auth-configs.d.mts +2 -0
- package/dist/resources/auth-configs.mjs +3 -0
- package/dist/resources/auth.d.mts +2 -0
- package/dist/resources/auth.mjs +5 -0
- package/dist/resources/cli/cli.d.mts +2 -0
- package/dist/resources/cli/cli.mjs +3 -0
- package/dist/resources/cli/index.d.mts +2 -0
- package/dist/resources/cli/index.mjs +4 -0
- package/dist/resources/cli/realtime.d.mts +2 -0
- package/dist/resources/cli/realtime.mjs +3 -0
- package/dist/resources/cli.d.mts +2 -0
- package/dist/resources/cli.mjs +5 -0
- package/dist/resources/connected-accounts.d.mts +2 -0
- package/dist/resources/connected-accounts.mjs +3 -0
- package/dist/resources/custom.d.mts +2 -0
- package/dist/resources/custom.mjs +3 -0
- package/dist/resources/files.d.mts +2 -0
- package/dist/resources/files.mjs +3 -0
- package/dist/resources/index.d.mts +3 -0
- package/dist/resources/index.mjs +16 -0
- package/dist/resources/keyring.d.mts +2 -0
- package/dist/resources/keyring.mjs +3 -0
- package/dist/resources/link.d.mts +2 -0
- package/dist/resources/link.mjs +3 -0
- package/dist/resources/logs/index.d.mts +2 -0
- package/dist/resources/logs/index.mjs +5 -0
- package/dist/resources/logs/logs.d.mts +2 -0
- package/dist/resources/logs/logs.mjs +3 -0
- package/dist/resources/logs/tools.d.mts +2 -0
- package/dist/resources/logs/tools.mjs +3 -0
- package/dist/resources/logs/triggers.d.mts +2 -0
- package/dist/resources/logs/triggers.mjs +3 -0
- package/dist/resources/logs.d.mts +2 -0
- package/dist/resources/logs.mjs +6 -0
- package/dist/resources/mcp/custom.d.mts +2 -0
- package/dist/resources/mcp/custom.mjs +3 -0
- package/dist/resources/mcp/generate.d.mts +2 -0
- package/dist/resources/mcp/generate.mjs +3 -0
- package/dist/resources/mcp/index.d.mts +2 -0
- package/dist/resources/mcp/index.mjs +5 -0
- package/dist/resources/mcp/mcp.d.mts +2 -0
- package/dist/resources/mcp/mcp.mjs +3 -0
- package/dist/resources/mcp.d.mts +2 -0
- package/dist/resources/mcp.mjs +6 -0
- package/dist/resources/migration.d.mts +2 -0
- package/dist/resources/migration.mjs +3 -0
- package/dist/resources/org/clanker.d.mts +2 -0
- package/dist/resources/org/clanker.mjs +3 -0
- package/dist/resources/org/consumer/consumer.d.mts +2 -0
- package/dist/resources/org/consumer/consumer.mjs +3 -0
- package/dist/resources/org/consumer/index.d.mts +2 -0
- package/dist/resources/org/consumer/index.mjs +4 -0
- package/dist/resources/org/consumer/project.d.mts +2 -0
- package/dist/resources/org/consumer/project.mjs +3 -0
- package/dist/resources/org/consumer.d.mts +2 -0
- package/dist/resources/org/consumer.mjs +5 -0
- package/dist/resources/org/index.d.mts +2 -0
- package/dist/resources/org/index.mjs +8 -0
- package/dist/resources/org/org.d.mts +2 -0
- package/dist/resources/org/org.mjs +3 -0
- package/dist/resources/org/owner/index.d.mts +2 -0
- package/dist/resources/org/owner/index.mjs +4 -0
- package/dist/resources/org/owner/owner.d.mts +2 -0
- package/dist/resources/org/owner/owner.mjs +3 -0
- package/dist/resources/org/owner/project.d.mts +2 -0
- package/dist/resources/org/owner/project.mjs +3 -0
- package/dist/resources/org/owner.d.mts +2 -0
- package/dist/resources/org/owner.mjs +5 -0
- package/dist/resources/org/project.d.mts +2 -0
- package/dist/resources/org/project.mjs +3 -0
- package/dist/resources/org/usage.d.mts +2 -0
- package/dist/resources/org/usage.mjs +3 -0
- package/dist/resources/org.d.mts +2 -0
- package/dist/resources/org.mjs +9 -0
- package/dist/resources/project/config.d.mts +2 -0
- package/dist/resources/project/config.mjs +3 -0
- package/dist/resources/project/index.d.mts +3 -0
- package/dist/resources/project/index.mjs +4 -0
- package/dist/resources/project/project.d.mts +2 -0
- package/dist/resources/project/project.mjs +3 -0
- package/dist/resources/project/usage.d.mts +2 -0
- package/dist/resources/project/usage.mjs +3 -0
- package/dist/resources/project.d.mts +3 -0
- package/dist/resources/project.mjs +5 -0
- package/dist/resources/session-configs.d.mts +2 -0
- package/dist/resources/session-configs.mjs +24 -0
- package/dist/resources/tool-router/index.d.mts +2 -0
- package/dist/resources/tool-router/index.mjs +4 -0
- package/dist/resources/tool-router/session/files.d.mts +2 -0
- package/dist/resources/tool-router/session/files.mjs +3 -0
- package/dist/resources/tool-router/session/index.d.mts +2 -0
- package/dist/resources/tool-router/session/index.mjs +4 -0
- package/dist/resources/tool-router/session/session.d.mts +2 -0
- package/dist/resources/tool-router/session/session.mjs +3 -0
- package/dist/resources/tool-router/session.d.mts +2 -0
- package/dist/resources/tool-router/session.mjs +5 -0
- package/dist/resources/tool-router/tool-router.d.mts +2 -0
- package/dist/resources/tool-router/tool-router.mjs +3 -0
- package/dist/resources/tool-router.d.mts +2 -0
- package/dist/resources/tool-router.mjs +5 -0
- package/dist/resources/toolkits.d.mts +2 -0
- package/dist/resources/toolkits.mjs +3 -0
- package/dist/resources/tools.d.mts +2 -0
- package/dist/resources/tools.mjs +3 -0
- package/dist/resources/trigger-instances/index.d.mts +2 -0
- package/dist/resources/trigger-instances/index.mjs +4 -0
- package/dist/resources/trigger-instances/manage.d.mts +2 -0
- package/dist/resources/trigger-instances/manage.mjs +3 -0
- package/dist/resources/trigger-instances/trigger-instances.d.mts +2 -0
- package/dist/resources/trigger-instances/trigger-instances.mjs +3 -0
- package/dist/resources/trigger-instances.d.mts +2 -0
- package/dist/resources/trigger-instances.mjs +5 -0
- package/dist/resources/triggers-types.d.mts +2 -0
- package/dist/resources/triggers-types.mjs +3 -0
- package/dist/resources/webhook-endpoints.d.mts +2 -0
- package/dist/resources/webhook-endpoints.mjs +3 -0
- package/dist/resources/webhook-subscriptions.d.mts +2 -0
- package/dist/resources/webhook-subscriptions.mjs +3 -0
- package/dist/session-DN52ZBZa.mjs +22 -0
- package/dist/session-ZjgXXTor.mjs +110 -0
- package/dist/session-configs-DBYUrVm-.d.mts +27180 -0
- package/dist/tool-router-oEa6XLps.mjs +14 -0
- package/dist/toolkits-gnhAqP-a.mjs +62 -0
- package/dist/tools-B6EBv0kQ.mjs +33 -0
- package/dist/tools-CplwSMIX.mjs +69 -0
- package/dist/trigger-instances-BZyLCvgX.mjs +35 -0
- package/dist/triggers-tFRN45MV.mjs +28 -0
- package/dist/triggers-types-BOXTcipZ.mjs +34 -0
- package/dist/usage-DsWhJVDd.mjs +31 -0
- package/dist/usage-qjodPLQq.mjs +31 -0
- package/dist/webhook-endpoints-Cv2sK6HF.mjs +51 -0
- package/dist/webhook-subscriptions-BxPEYH5X.mjs +55 -0
- package/package.json +85 -126
- package/CHANGELOG.md +0 -96
- package/LICENSE +0 -201
- package/api-promise.d.mts +0 -2
- package/api-promise.d.mts.map +0 -1
- package/api-promise.d.ts +0 -2
- package/api-promise.d.ts.map +0 -1
- package/api-promise.js +0 -19
- package/api-promise.js.map +0 -1
- package/api-promise.mjs +0 -2
- package/api-promise.mjs.map +0 -1
- package/client.d.mts +0 -224
- package/client.d.mts.map +0 -1
- package/client.d.ts +0 -224
- package/client.d.ts.map +0 -1
- package/client.js +0 -502
- package/client.js.map +0 -1
- package/client.mjs +0 -475
- package/client.mjs.map +0 -1
- package/core/api-promise.d.mts +0 -47
- package/core/api-promise.d.mts.map +0 -1
- package/core/api-promise.d.ts +0 -47
- package/core/api-promise.d.ts.map +0 -1
- package/core/api-promise.js +0 -84
- package/core/api-promise.js.map +0 -1
- package/core/api-promise.mjs +0 -80
- package/core/api-promise.mjs.map +0 -1
- package/core/error.d.mts +0 -47
- package/core/error.d.mts.map +0 -1
- package/core/error.d.ts +0 -47
- package/core/error.d.ts.map +0 -1
- package/core/error.js +0 -113
- package/core/error.js.map +0 -1
- package/core/error.mjs +0 -97
- package/core/error.mjs.map +0 -1
- package/core/resource.d.mts +0 -6
- package/core/resource.d.mts.map +0 -1
- package/core/resource.d.ts +0 -6
- package/core/resource.d.ts.map +0 -1
- package/core/resource.js +0 -11
- package/core/resource.js.map +0 -1
- package/core/resource.mjs +0 -7
- package/core/resource.mjs.map +0 -1
- package/core/uploads.d.mts +0 -3
- package/core/uploads.d.mts.map +0 -1
- package/core/uploads.d.ts +0 -3
- package/core/uploads.d.ts.map +0 -1
- package/core/uploads.js +0 -6
- package/core/uploads.js.map +0 -1
- package/core/uploads.mjs +0 -2
- package/core/uploads.mjs.map +0 -1
- package/error.d.mts +0 -2
- package/error.d.mts.map +0 -1
- package/error.d.ts +0 -2
- package/error.d.ts.map +0 -1
- package/error.js +0 -19
- package/error.js.map +0 -1
- package/error.mjs +0 -2
- package/error.mjs.map +0 -1
- package/index.d.mts +0 -6
- package/index.d.mts.map +0 -1
- package/index.d.ts +0 -6
- package/index.d.ts.map +0 -1
- package/index.js +0 -30
- package/index.js.map +0 -1
- package/index.mjs +0 -7
- package/index.mjs.map +0 -1
- package/internal/builtin-types.d.mts +0 -75
- package/internal/builtin-types.d.mts.map +0 -1
- package/internal/builtin-types.d.ts +0 -75
- package/internal/builtin-types.d.ts.map +0 -1
- package/internal/builtin-types.js +0 -4
- package/internal/builtin-types.js.map +0 -1
- package/internal/builtin-types.mjs +0 -3
- package/internal/builtin-types.mjs.map +0 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -162
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -157
- package/internal/detect-platform.mjs.map +0 -1
- package/internal/errors.d.mts +0 -3
- package/internal/errors.d.mts.map +0 -1
- package/internal/errors.d.ts +0 -3
- package/internal/errors.d.ts.map +0 -1
- package/internal/errors.js +0 -41
- package/internal/errors.js.map +0 -1
- package/internal/errors.mjs +0 -36
- package/internal/errors.mjs.map +0 -1
- package/internal/headers.d.mts +0 -21
- package/internal/headers.d.mts.map +0 -1
- package/internal/headers.d.ts +0 -21
- package/internal/headers.d.ts.map +0 -1
- package/internal/headers.js +0 -77
- package/internal/headers.js.map +0 -1
- package/internal/headers.mjs +0 -72
- package/internal/headers.mjs.map +0 -1
- package/internal/parse.d.mts +0 -13
- package/internal/parse.d.mts.map +0 -1
- package/internal/parse.d.ts +0 -13
- package/internal/parse.d.ts.map +0 -1
- package/internal/parse.js +0 -36
- package/internal/parse.js.map +0 -1
- package/internal/parse.mjs +0 -32
- package/internal/parse.mjs.map +0 -1
- package/internal/qs/formats.d.mts +0 -6
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/formats.d.ts +0 -6
- package/internal/qs/formats.d.ts.map +0 -1
- package/internal/qs/formats.js +0 -11
- package/internal/qs/formats.js.map +0 -1
- package/internal/qs/formats.mjs +0 -8
- package/internal/qs/formats.mjs.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/index.d.ts +0 -10
- package/internal/qs/index.d.ts.map +0 -1
- package/internal/qs/index.js +0 -14
- package/internal/qs/index.js.map +0 -1
- package/internal/qs/index.mjs +0 -10
- package/internal/qs/index.mjs.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/stringify.d.ts +0 -3
- package/internal/qs/stringify.d.ts.map +0 -1
- package/internal/qs/stringify.js +0 -280
- package/internal/qs/stringify.js.map +0 -1
- package/internal/qs/stringify.mjs +0 -276
- package/internal/qs/stringify.mjs.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/types.d.ts +0 -57
- package/internal/qs/types.d.ts.map +0 -1
- package/internal/qs/types.js +0 -3
- package/internal/qs/types.js.map +0 -1
- package/internal/qs/types.mjs +0 -2
- package/internal/qs/types.mjs.map +0 -1
- package/internal/qs/utils.d.mts +0 -14
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/qs/utils.d.ts +0 -14
- package/internal/qs/utils.d.ts.map +0 -1
- package/internal/qs/utils.js +0 -229
- package/internal/qs/utils.js.map +0 -1
- package/internal/qs/utils.mjs +0 -217
- package/internal/qs/utils.mjs.map +0 -1
- package/internal/request-options.d.mts +0 -33
- package/internal/request-options.d.mts.map +0 -1
- package/internal/request-options.d.ts +0 -33
- package/internal/request-options.d.ts.map +0 -1
- package/internal/request-options.js +0 -14
- package/internal/request-options.js.map +0 -1
- package/internal/request-options.mjs +0 -10
- package/internal/request-options.mjs.map +0 -1
- package/internal/shim-types.d.mts +0 -28
- package/internal/shim-types.d.ts +0 -28
- 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/internal/shims.d.mts +0 -20
- package/internal/shims.d.mts.map +0 -1
- package/internal/shims.d.ts +0 -20
- package/internal/shims.d.ts.map +0 -1
- package/internal/shims.js +0 -93
- package/internal/shims.js.map +0 -1
- package/internal/shims.mjs +0 -85
- package/internal/shims.mjs.map +0 -1
- package/internal/to-file.d.mts +0 -46
- package/internal/to-file.d.mts.map +0 -1
- package/internal/to-file.d.ts +0 -46
- package/internal/to-file.d.ts.map +0 -1
- package/internal/to-file.js +0 -91
- package/internal/to-file.js.map +0 -1
- package/internal/to-file.mjs +0 -87
- package/internal/to-file.mjs.map +0 -1
- package/internal/types.d.mts +0 -68
- package/internal/types.d.mts.map +0 -1
- package/internal/types.d.ts +0 -68
- package/internal/types.d.ts.map +0 -1
- package/internal/types.js +0 -4
- package/internal/types.js.map +0 -1
- package/internal/types.mjs +0 -3
- package/internal/types.mjs.map +0 -1
- package/internal/uploads.d.mts +0 -44
- package/internal/uploads.d.mts.map +0 -1
- package/internal/uploads.d.ts +0 -44
- package/internal/uploads.d.ts.map +0 -1
- package/internal/uploads.js +0 -131
- package/internal/uploads.js.map +0 -1
- package/internal/uploads.mjs +0 -122
- package/internal/uploads.mjs.map +0 -1
- package/internal/utils/base64.d.mts +0 -3
- package/internal/utils/base64.d.mts.map +0 -1
- package/internal/utils/base64.d.ts +0 -3
- package/internal/utils/base64.d.ts.map +0 -1
- package/internal/utils/base64.js +0 -37
- package/internal/utils/base64.js.map +0 -1
- package/internal/utils/base64.mjs +0 -32
- package/internal/utils/base64.mjs.map +0 -1
- package/internal/utils/env.d.mts +0 -9
- package/internal/utils/env.d.mts.map +0 -1
- package/internal/utils/env.d.ts +0 -9
- package/internal/utils/env.d.ts.map +0 -1
- package/internal/utils/env.js +0 -22
- package/internal/utils/env.js.map +0 -1
- package/internal/utils/env.mjs +0 -18
- package/internal/utils/env.mjs.map +0 -1
- package/internal/utils/log.d.mts +0 -38
- package/internal/utils/log.d.mts.map +0 -1
- package/internal/utils/log.d.ts +0 -38
- package/internal/utils/log.d.ts.map +0 -1
- package/internal/utils/log.js +0 -86
- package/internal/utils/log.js.map +0 -1
- package/internal/utils/log.mjs +0 -80
- package/internal/utils/log.mjs.map +0 -1
- package/internal/utils/path.d.mts +0 -15
- package/internal/utils/path.d.mts.map +0 -1
- package/internal/utils/path.d.ts +0 -15
- package/internal/utils/path.d.ts.map +0 -1
- package/internal/utils/path.js +0 -58
- package/internal/utils/path.js.map +0 -1
- package/internal/utils/path.mjs +0 -53
- package/internal/utils/path.mjs.map +0 -1
- package/internal/utils/sleep.d.mts +0 -2
- package/internal/utils/sleep.d.mts.map +0 -1
- package/internal/utils/sleep.d.ts +0 -2
- package/internal/utils/sleep.d.ts.map +0 -1
- package/internal/utils/sleep.js +0 -7
- package/internal/utils/sleep.js.map +0 -1
- package/internal/utils/sleep.mjs +0 -3
- package/internal/utils/sleep.mjs.map +0 -1
- package/internal/utils/uuid.d.mts +0 -5
- package/internal/utils/uuid.d.mts.map +0 -1
- package/internal/utils/uuid.d.ts +0 -5
- package/internal/utils/uuid.d.ts.map +0 -1
- package/internal/utils/uuid.js +0 -20
- package/internal/utils/uuid.js.map +0 -1
- package/internal/utils/uuid.mjs +0 -16
- package/internal/utils/uuid.mjs.map +0 -1
- package/internal/utils/values.d.mts +0 -16
- package/internal/utils/values.d.mts.map +0 -1
- package/internal/utils/values.d.ts +0 -16
- package/internal/utils/values.d.ts.map +0 -1
- package/internal/utils/values.js +0 -109
- package/internal/utils/values.js.map +0 -1
- package/internal/utils/values.mjs +0 -92
- package/internal/utils/values.mjs.map +0 -1
- package/internal/utils.d.mts +0 -7
- package/internal/utils.d.mts.map +0 -1
- package/internal/utils.d.ts +0 -7
- package/internal/utils.d.ts.map +0 -1
- package/internal/utils.js +0 -24
- package/internal/utils.js.map +0 -1
- package/internal/utils.mjs +0 -8
- package/internal/utils.mjs.map +0 -1
- package/resource.d.mts +0 -2
- package/resource.d.mts.map +0 -1
- package/resource.d.ts +0 -2
- package/resource.d.ts.map +0 -1
- package/resource.js +0 -19
- package/resource.js.map +0 -1
- package/resource.mjs +0 -2
- package/resource.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/auth/auth.d.mts +0 -10
- package/resources/auth/auth.d.mts.map +0 -1
- package/resources/auth/auth.d.ts +0 -10
- package/resources/auth/auth.d.ts.map +0 -1
- package/resources/auth/auth.js +0 -39
- package/resources/auth/auth.js.map +0 -1
- package/resources/auth/auth.mjs +0 -12
- package/resources/auth/auth.mjs.map +0 -1
- package/resources/auth/index.d.mts +0 -3
- package/resources/auth/index.d.mts.map +0 -1
- package/resources/auth/index.d.ts +0 -3
- package/resources/auth/index.d.ts.map +0 -1
- package/resources/auth/index.js +0 -9
- package/resources/auth/index.js.map +0 -1
- package/resources/auth/index.mjs +0 -4
- package/resources/auth/index.mjs.map +0 -1
- package/resources/auth/session.d.mts +0 -75
- package/resources/auth/session.d.mts.map +0 -1
- package/resources/auth/session.d.ts +0 -75
- package/resources/auth/session.d.ts.map +0 -1
- package/resources/auth/session.js +0 -12
- package/resources/auth/session.js.map +0 -1
- package/resources/auth/session.mjs +0 -8
- package/resources/auth/session.mjs.map +0 -1
- package/resources/auth-configs.d.mts +0 -217
- package/resources/auth-configs.d.mts.map +0 -1
- package/resources/auth-configs.d.ts +0 -217
- package/resources/auth-configs.d.ts.map +0 -1
- package/resources/auth-configs.js +0 -29
- package/resources/auth-configs.js.map +0 -1
- package/resources/auth-configs.mjs +0 -25
- package/resources/auth-configs.mjs.map +0 -1
- package/resources/auth.d.mts +0 -2
- package/resources/auth.d.mts.map +0 -1
- package/resources/auth.d.ts +0 -2
- package/resources/auth.d.ts.map +0 -1
- package/resources/auth.js +0 -19
- package/resources/auth.js.map +0 -1
- package/resources/auth.mjs +0 -3
- package/resources/auth.mjs.map +0 -1
- package/resources/cli.d.mts +0 -124
- package/resources/cli.d.mts.map +0 -1
- package/resources/cli.d.ts +0 -124
- package/resources/cli.d.ts.map +0 -1
- package/resources/cli.js +0 -18
- package/resources/cli.js.map +0 -1
- package/resources/cli.mjs +0 -14
- package/resources/cli.mjs.map +0 -1
- package/resources/connected-accounts.d.mts +0 -449
- package/resources/connected-accounts.d.mts.map +0 -1
- package/resources/connected-accounts.d.ts +0 -449
- package/resources/connected-accounts.d.ts.map +0 -1
- package/resources/connected-accounts.js +0 -28
- package/resources/connected-accounts.js.map +0 -1
- package/resources/connected-accounts.mjs +0 -24
- package/resources/connected-accounts.mjs.map +0 -1
- package/resources/index.d.mts +0 -14
- package/resources/index.d.mts.map +0 -1
- package/resources/index.d.ts +0 -14
- package/resources/index.d.ts.map +0 -1
- package/resources/index.js +0 -31
- package/resources/index.js.map +0 -1
- package/resources/index.mjs +0 -15
- package/resources/index.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/mcp/index.d.mts +0 -3
- package/resources/mcp/index.d.mts.map +0 -1
- package/resources/mcp/index.d.ts +0 -3
- package/resources/mcp/index.d.ts.map +0 -1
- package/resources/mcp/index.js +0 -9
- package/resources/mcp/index.js.map +0 -1
- package/resources/mcp/index.mjs +0 -4
- package/resources/mcp/index.mjs.map +0 -1
- package/resources/mcp/mcp.d.mts +0 -378
- package/resources/mcp/mcp.d.mts.map +0 -1
- package/resources/mcp/mcp.d.ts +0 -378
- package/resources/mcp/mcp.d.ts.map +0 -1
- package/resources/mcp/mcp.js +0 -66
- package/resources/mcp/mcp.js.map +0 -1
- package/resources/mcp/mcp.mjs +0 -39
- package/resources/mcp/mcp.mjs.map +0 -1
- package/resources/mcp.d.mts +0 -2
- package/resources/mcp.d.mts.map +0 -1
- package/resources/mcp.d.ts +0 -2
- package/resources/mcp.d.ts.map +0 -1
- package/resources/mcp.js +0 -19
- package/resources/mcp.js.map +0 -1
- package/resources/mcp.mjs +0 -3
- package/resources/mcp.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 +0 -3
- 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/toolkits.d.mts +0 -141
- package/resources/toolkits.d.mts.map +0 -1
- package/resources/toolkits.d.ts +0 -141
- package/resources/toolkits.d.ts.map +0 -1
- package/resources/toolkits.js +0 -19
- package/resources/toolkits.js.map +0 -1
- package/resources/toolkits.mjs +0 -15
- package/resources/toolkits.mjs.map +0 -1
- package/resources/tools.d.mts +0 -210
- package/resources/tools.d.mts.map +0 -1
- package/resources/tools.d.ts +0 -210
- package/resources/tools.d.ts.map +0 -1
- package/resources/tools.js +0 -28
- package/resources/tools.js.map +0 -1
- package/resources/tools.mjs +0 -24
- package/resources/tools.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-instances/index.d.mts +0 -3
- package/resources/trigger-instances/index.d.mts.map +0 -1
- package/resources/trigger-instances/index.d.ts +0 -3
- package/resources/trigger-instances/index.d.ts.map +0 -1
- package/resources/trigger-instances/index.js +0 -9
- package/resources/trigger-instances/index.js.map +0 -1
- package/resources/trigger-instances/index.mjs +0 -4
- package/resources/trigger-instances/index.mjs.map +0 -1
- package/resources/trigger-instances/trigger-instances.d.mts +0 -126
- package/resources/trigger-instances/trigger-instances.d.mts.map +0 -1
- package/resources/trigger-instances/trigger-instances.d.ts +0 -126
- package/resources/trigger-instances/trigger-instances.d.ts.map +0 -1
- package/resources/trigger-instances/trigger-instances.js +0 -53
- package/resources/trigger-instances/trigger-instances.js.map +0 -1
- package/resources/trigger-instances/trigger-instances.mjs +0 -26
- package/resources/trigger-instances/trigger-instances.mjs.map +0 -1
- package/resources/trigger-instances.d.mts +0 -2
- package/resources/trigger-instances.d.mts.map +0 -1
- package/resources/trigger-instances.d.ts +0 -2
- package/resources/trigger-instances.d.ts.map +0 -1
- package/resources/trigger-instances.js +0 -19
- package/resources/trigger-instances.js.map +0 -1
- package/resources/trigger-instances.mjs +0 -3
- package/resources/trigger-instances.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/resources/triggers-types.d.mts +0 -59
- package/resources/triggers-types.d.mts.map +0 -1
- package/resources/triggers-types.d.ts +0 -59
- package/resources/triggers-types.d.ts.map +0 -1
- package/resources/triggers-types.js +0 -19
- package/resources/triggers-types.js.map +0 -1
- package/resources/triggers-types.mjs +0 -15
- package/resources/triggers-types.mjs.map +0 -1
- package/resources.d.mts +0 -2
- package/resources.d.mts.map +0 -1
- package/resources.d.ts +0 -2
- package/resources.d.ts.map +0 -1
- package/resources.js +0 -18
- package/resources.js.map +0 -1
- package/resources.mjs +0 -2
- package/resources.mjs.map +0 -1
- package/src/api-promise.ts +0 -2
- package/src/client.ts +0 -938
- package/src/core/README.md +0 -3
- package/src/core/api-promise.ts +0 -92
- package/src/core/error.ts +0 -130
- package/src/core/resource.ts +0 -11
- package/src/core/uploads.ts +0 -2
- package/src/error.ts +0 -2
- package/src/index.ts +0 -22
- package/src/internal/README.md +0 -3
- package/src/internal/builtin-types.ts +0 -93
- package/src/internal/detect-platform.ts +0 -196
- package/src/internal/errors.ts +0 -33
- package/src/internal/headers.ts +0 -96
- package/src/internal/parse.ts +0 -50
- package/src/internal/qs/LICENSE.md +0 -13
- package/src/internal/qs/README.md +0 -3
- package/src/internal/qs/formats.ts +0 -9
- package/src/internal/qs/index.ts +0 -13
- package/src/internal/qs/stringify.ts +0 -388
- package/src/internal/qs/types.ts +0 -71
- package/src/internal/qs/utils.ts +0 -265
- package/src/internal/request-options.ts +0 -37
- 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/internal/shims.ts +0 -107
- package/src/internal/to-file.ts +0 -152
- package/src/internal/types.ts +0 -92
- package/src/internal/uploads.ts +0 -175
- package/src/internal/utils/base64.ts +0 -39
- package/src/internal/utils/env.ts +0 -18
- package/src/internal/utils/log.ts +0 -127
- package/src/internal/utils/path.ts +0 -63
- package/src/internal/utils/sleep.ts +0 -3
- package/src/internal/utils/uuid.ts +0 -19
- package/src/internal/utils/values.ts +0 -102
- package/src/internal/utils.ts +0 -8
- package/src/lib/.keep +0 -4
- package/src/resource.ts +0 -2
- package/src/resources/action-execution.ts +0 -244
- package/src/resources/auth/auth.ts +0 -15
- package/src/resources/auth/index.ts +0 -4
- package/src/resources/auth/session.ts +0 -127
- package/src/resources/auth-configs.ts +0 -362
- package/src/resources/auth.ts +0 -3
- package/src/resources/cli.ts +0 -166
- package/src/resources/connected-accounts.ts +0 -661
- package/src/resources/index.ts +0 -105
- package/src/resources/mcp/command.ts +0 -47
- package/src/resources/mcp/index.ts +0 -17
- package/src/resources/mcp/mcp.ts +0 -519
- package/src/resources/mcp.ts +0 -3
- 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/org/project.ts +0 -3
- package/src/resources/org.ts +0 -3
- package/src/resources/team-members.ts +0 -111
- package/src/resources/toolkits.ts +0 -232
- package/src/resources/tools.ts +0 -319
- package/src/resources/trigger-instances/handle.ts +0 -45
- package/src/resources/trigger-instances/index.ts +0 -19
- package/src/resources/trigger-instances/trigger-instances.ts +0 -202
- package/src/resources/trigger-instances.ts +0 -3
- package/src/resources/trigger.ts +0 -108
- package/src/resources/triggers-types.ts +0 -105
- package/src/resources.ts +0 -1
- package/src/tsconfig.json +0 -11
- package/src/uploads.ts +0 -2
- package/src/version.ts +0 -1
- package/uploads.d.mts +0 -2
- package/uploads.d.mts.map +0 -1
- package/uploads.d.ts +0 -2
- package/uploads.d.ts.map +0 -1
- package/uploads.js +0 -19
- package/uploads.js.map +0 -1
- package/uploads.mjs +0 -2
- package/uploads.mjs.map +0 -1
- package/version.d.mts +0 -2
- package/version.d.mts.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -5
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/version.mjs.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/compat/resources/project/config.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Stainless-shaped `client.project.config` resource: an empty resource class
|
|
4
|
+
* (Stainless declares it with no methods), shipped for import/`instanceof`/
|
|
5
|
+
* namespace parity.
|
|
6
|
+
*/
|
|
7
|
+
declare class Config {}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Config as t };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/compat/resources/connected-accounts.ts
|
|
4
|
+
const OP_CREATE = generatedOperation("connectedAccounts.create");
|
|
5
|
+
const OP_RETRIEVE = generatedOperation("connectedAccounts.retrieve");
|
|
6
|
+
const OP_LIST = generatedOperation("connectedAccounts.list");
|
|
7
|
+
const OP_DELETE = generatedOperation("connectedAccounts.delete");
|
|
8
|
+
const OP_COMPLETE_AUTH = generatedOperation("connectedAccounts.completeAuth");
|
|
9
|
+
const OP_PATCH = generatedOperation("connectedAccounts.patch");
|
|
10
|
+
const OP_REFRESH = generatedOperation("connectedAccounts.refresh");
|
|
11
|
+
const OP_REVOKE = generatedOperation("connectedAccounts.revoke");
|
|
12
|
+
const OP_UPDATE_STATUS = generatedOperation("connectedAccounts.updateStatus");
|
|
13
|
+
/**
|
|
14
|
+
* Stainless-shaped `client.connectedAccounts` resource: the 7-method published
|
|
15
|
+
* surface of `@composio/client` (create/retrieve/list/delete/patch/refresh/
|
|
16
|
+
* updateStatus) plus the spec-surface `revoke`
|
|
17
|
+
* (`POST /connected_accounts/{nanoid}/revoke`, never published by Stainless —
|
|
18
|
+
* wayfinder ticket 29), dispatched through the handwritten kernel.
|
|
19
|
+
*/
|
|
20
|
+
var ConnectedAccounts = class {
|
|
21
|
+
#client;
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.#client = client;
|
|
24
|
+
}
|
|
25
|
+
create(body, options) {
|
|
26
|
+
return this.#client.post("/api/v3.1/connected_accounts", withOperation(OP_CREATE, {
|
|
27
|
+
body,
|
|
28
|
+
...options
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
retrieve(nanoid, options) {
|
|
32
|
+
return this.#client.get(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_RETRIEVE, { ...options }));
|
|
33
|
+
}
|
|
34
|
+
list(query = {}, options) {
|
|
35
|
+
return this.#client.get("/api/v3.1/connected_accounts", withOperation(OP_LIST, {
|
|
36
|
+
query,
|
|
37
|
+
...options
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
delete(nanoid, query = {}, options) {
|
|
41
|
+
return this.#client.delete(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_DELETE, {
|
|
42
|
+
query,
|
|
43
|
+
...options
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
completeAuth(body, options) {
|
|
47
|
+
return this.#client.post("/api/v3.1/connected_accounts/complete_auth", withOperation(OP_COMPLETE_AUTH, {
|
|
48
|
+
body,
|
|
49
|
+
...options
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
patch(nanoid, body = {}, options) {
|
|
53
|
+
return this.#client.patch(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_PATCH, {
|
|
54
|
+
body,
|
|
55
|
+
...options
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
59
|
+
refresh(nanoid, params = {}, options) {
|
|
60
|
+
const { query_redirect_url, body_redirect_url, ...body } = params ?? {};
|
|
61
|
+
return this.#client.post(path`/api/v3.1/connected_accounts/${nanoid}/refresh`, withOperation(OP_REFRESH, {
|
|
62
|
+
query: { redirect_url: query_redirect_url },
|
|
63
|
+
body: {
|
|
64
|
+
...body,
|
|
65
|
+
redirect_url: body_redirect_url
|
|
66
|
+
},
|
|
67
|
+
...options
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
revoke(nanoid, options) {
|
|
71
|
+
return this.#client.post(path`/api/v3.1/connected_accounts/${nanoid}/revoke`, withOperation(OP_REVOKE, { ...options }));
|
|
72
|
+
}
|
|
73
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
74
|
+
updateStatus(nanoID, body, options) {
|
|
75
|
+
return this.#client.patch(path`/api/v3.1/connected_accounts/${nanoID}/status`, withOperation(OP_UPDATE_STATUS, {
|
|
76
|
+
body,
|
|
77
|
+
...options
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
//#endregion
|
|
83
|
+
export { ConnectedAccounts as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { c as withOperation, m as mergeHeaders, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
|
|
2
|
+
import { t as Project } from "./project-CBh3olOE.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/compat/resources/org/consumer/consumer.ts
|
|
5
|
+
const OP_LIST_CONNECTED_TOOLKITS = generatedOperation("org.consumer.listConnectedToolkits");
|
|
6
|
+
/**
|
|
7
|
+
* Spec-surface `client.org.consumer` resource: the 1-method consumer surface
|
|
8
|
+
* of the v3.1 spec (listConnectedToolkits over
|
|
9
|
+
* `/org/consumer/connected_toolkits`) plus the `project` sub-resource, never
|
|
10
|
+
* published by Stainless — wayfinder ticket 31.
|
|
11
|
+
*/
|
|
12
|
+
var Consumer = class {
|
|
13
|
+
project;
|
|
14
|
+
#client;
|
|
15
|
+
constructor(client) {
|
|
16
|
+
this.#client = client;
|
|
17
|
+
this.project = new Project(client);
|
|
18
|
+
}
|
|
19
|
+
listConnectedToolkits(params, options) {
|
|
20
|
+
const { "x-user-api-key": xUserApiKey, "x-org-id": xOrgId, ...query } = params;
|
|
21
|
+
return this.#client.get("/api/v3.1/org/consumer/connected_toolkits", withOperation(OP_LIST_CONNECTED_TOOLKITS, {
|
|
22
|
+
query,
|
|
23
|
+
...options,
|
|
24
|
+
headers: mergeHeaders([{
|
|
25
|
+
...xUserApiKey != null ? { "x-user-api-key": xUserApiKey } : void 0,
|
|
26
|
+
...xOrgId != null ? { "x-org-id": xOrgId } : void 0
|
|
27
|
+
}, options?.headers])
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
Consumer.Project = Project;
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { Consumer as t };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/compat/legacy-options.ts
|
|
4
|
+
/**
|
|
5
|
+
* Recognizing a request-options bag passed where a params object now goes.
|
|
6
|
+
*
|
|
7
|
+
* TODO(#66): a migration guardrail, to be removed before stable 2.0 —
|
|
8
|
+
* https://github.com/ComposioHQ/composio-client/issues/66.
|
|
9
|
+
*
|
|
10
|
+
* A method that gains its first optional parameter moves from
|
|
11
|
+
* `method(id, options?)` to `method(id, params?, options?)`. A caller written
|
|
12
|
+
* against the released two-position form then hands its options to the params
|
|
13
|
+
* position, where `headers` is serialized into the URL and `timeout`/`signal`
|
|
14
|
+
* are dropped. The generator emits a check for exactly the methods its ledger
|
|
15
|
+
* declares (`LEGACY_OPTIONS_POSITIONS` in `packages/codegen`), and every one of
|
|
16
|
+
* them asks this module — the key set lives here once, not in generated files.
|
|
17
|
+
*
|
|
18
|
+
* This file imports nothing on purpose: the generator reads
|
|
19
|
+
* `REQUEST_OPTIONS_KEYS` to refuse a ledger entry whose parameter names collide
|
|
20
|
+
* with it, and must be able to load the list without the rest of the kernel.
|
|
21
|
+
* `test/types/legacy-options.test-d.ts` pins the list to `keyof RequestOptions`
|
|
22
|
+
* in both directions, so a key added to that interface cannot be forgotten here.
|
|
23
|
+
*/
|
|
24
|
+
/** Every key of `RequestOptions` (`request.ts`). */
|
|
25
|
+
const REQUEST_OPTIONS_KEYS = [
|
|
26
|
+
"headers",
|
|
27
|
+
"maxRetries",
|
|
28
|
+
"timeout",
|
|
29
|
+
"signal",
|
|
30
|
+
"fetchOptions",
|
|
31
|
+
"idempotencyKey"
|
|
32
|
+
];
|
|
33
|
+
/**
|
|
34
|
+
* Whether `value`, received in a params position, is really a request-options
|
|
35
|
+
* bag from a call written against the released two-position signature.
|
|
36
|
+
*
|
|
37
|
+
* `declaredKeys` are the operation's own parameter names. An object carrying
|
|
38
|
+
* any of them is params, whatever else it carries: a mixed object is ambiguous,
|
|
39
|
+
* and reading it as options would silently discard a parameter the caller set.
|
|
40
|
+
* Otherwise it is options only on positive evidence — at least one
|
|
41
|
+
* `RequestOptions` key — so `{}`, `null` and `undefined` stay params.
|
|
42
|
+
*
|
|
43
|
+
* The generator guarantees the two key sets are disjoint, which is what makes
|
|
44
|
+
* the answer unambiguous for every object that is not mixed.
|
|
45
|
+
*/
|
|
46
|
+
const isLegacyRequestOptions = (value, declaredKeys) => {
|
|
47
|
+
if (typeof value !== "object" || value === null) return false;
|
|
48
|
+
if (declaredKeys.some((key) => Object.hasOwn(value, key))) return false;
|
|
49
|
+
return REQUEST_OPTIONS_KEYS.some((key) => Object.hasOwn(value, key));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/compat/resources/custom.ts
|
|
54
|
+
const OP_DELETE_TOOLKIT = generatedOperation("custom.deleteToolkit");
|
|
55
|
+
const OP_SYNC = generatedOperation("custom.sync");
|
|
56
|
+
const OP_UPSERT = generatedOperation("custom.upsert");
|
|
57
|
+
const LEGACY_PARAM_KEYS_DELETE_TOOLKIT = ["revoke_on_delete"];
|
|
58
|
+
/** OpenAPI resource for `custom`. */
|
|
59
|
+
var Custom = class {
|
|
60
|
+
#client;
|
|
61
|
+
constructor(client) {
|
|
62
|
+
this.#client = client;
|
|
63
|
+
}
|
|
64
|
+
deleteToolkit(slug, queryOrOptions = {}, trailingOptions) {
|
|
65
|
+
const optionsSecond = trailingOptions === void 0 && isLegacyRequestOptions(queryOrOptions, LEGACY_PARAM_KEYS_DELETE_TOOLKIT);
|
|
66
|
+
const query = optionsSecond ? {} : queryOrOptions;
|
|
67
|
+
const options = optionsSecond ? queryOrOptions : trailingOptions;
|
|
68
|
+
return this.#client.delete(path`/api/v3.1/custom/toolkits/${slug}`, withOperation(OP_DELETE_TOOLKIT, {
|
|
69
|
+
query,
|
|
70
|
+
...options
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
sync(body, options) {
|
|
74
|
+
return this.#client.post("/api/v3.1/custom/toolkits/sync", withOperation(OP_SYNC, {
|
|
75
|
+
body,
|
|
76
|
+
...options
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
79
|
+
upsert(body, options) {
|
|
80
|
+
return this.#client.post("/api/v3.1/custom/toolkits/upsert", withOperation(OP_UPSERT, {
|
|
81
|
+
body,
|
|
82
|
+
...options
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
export { Custom as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { c as withOperation, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/compat/resources/mcp/custom.ts
|
|
4
|
+
const OP_CREATE = generatedOperation("mcp.custom.create");
|
|
5
|
+
/**
|
|
6
|
+
* Stainless-shaped `client.mcp.custom` resource: the 1-method custom MCP
|
|
7
|
+
* server sub-surface of `@composio/client` (`POST /mcp/servers/custom`).
|
|
8
|
+
*/
|
|
9
|
+
var Custom = class {
|
|
10
|
+
#client;
|
|
11
|
+
constructor(client) {
|
|
12
|
+
this.#client = client;
|
|
13
|
+
}
|
|
14
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return this.#client.post("/api/v3.1/mcp/servers/custom", withOperation(OP_CREATE, {
|
|
17
|
+
body,
|
|
18
|
+
...options
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Custom as t };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
//#region src/compat/error.ts
|
|
2
|
+
var ComposioError = class extends Error {};
|
|
3
|
+
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
4
|
+
const isStringArray = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
5
|
+
/**
|
|
6
|
+
* Narrow a parsed error body to the envelope's inner object. Checks exactly
|
|
7
|
+
* the fields the schema requires plus the optional ones' types; anything
|
|
8
|
+
* else (text bodies, foreign JSON, a 502 from a proxy) is `undefined`.
|
|
9
|
+
*/
|
|
10
|
+
const errorDetails = (body) => {
|
|
11
|
+
if (!isRecord(body) || !isRecord(body.error)) return void 0;
|
|
12
|
+
const { message, code, slug, status, request_id, suggested_fix, errors } = body.error;
|
|
13
|
+
if (typeof message !== "string" || typeof slug !== "string") return void 0;
|
|
14
|
+
if (typeof code !== "number" || typeof status !== "number") return void 0;
|
|
15
|
+
if (request_id !== void 0 && typeof request_id !== "string") return void 0;
|
|
16
|
+
if (suggested_fix !== void 0 && typeof suggested_fix !== "string") return void 0;
|
|
17
|
+
if (errors !== void 0 && !isStringArray(errors)) return void 0;
|
|
18
|
+
return {
|
|
19
|
+
message,
|
|
20
|
+
code,
|
|
21
|
+
slug,
|
|
22
|
+
status,
|
|
23
|
+
...request_id !== void 0 ? { request_id } : void 0,
|
|
24
|
+
...suggested_fix !== void 0 ? { suggested_fix } : void 0,
|
|
25
|
+
...errors !== void 0 ? { errors } : void 0
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
var APIError = class APIError extends ComposioError {
|
|
29
|
+
/** HTTP status for the response that caused the error. */
|
|
30
|
+
status;
|
|
31
|
+
/** HTTP headers of the response that caused the error. */
|
|
32
|
+
headers;
|
|
33
|
+
/** JSON body of the response that caused the error. */
|
|
34
|
+
error;
|
|
35
|
+
/**
|
|
36
|
+
* The body narrowed to the Composio error envelope (`APIErrorBody['error']`),
|
|
37
|
+
* or `undefined` when the body is not one — so a validation failure's
|
|
38
|
+
* `errors[]` and `suggested_fix` are reachable without casting `error`.
|
|
39
|
+
*
|
|
40
|
+
* Not part of the Stainless surface: a sanctioned superset, like
|
|
41
|
+
* `ClientOptions.userApiKey`.
|
|
42
|
+
*/
|
|
43
|
+
details;
|
|
44
|
+
/**
|
|
45
|
+
* The request id the API assigned, from the `x-request-id` response header
|
|
46
|
+
* first and the envelope's `request_id` otherwise; `undefined` when neither
|
|
47
|
+
* is present (connection errors, aborts). Same superset status as `details`.
|
|
48
|
+
*/
|
|
49
|
+
requestId;
|
|
50
|
+
constructor(status, error, message, headers) {
|
|
51
|
+
super(APIError.makeMessage(status, error, message));
|
|
52
|
+
this.status = status;
|
|
53
|
+
this.headers = headers;
|
|
54
|
+
this.error = error;
|
|
55
|
+
this.details = errorDetails(error);
|
|
56
|
+
this.requestId = headers?.get?.("x-request-id") || this.details?.request_id;
|
|
57
|
+
}
|
|
58
|
+
static makeMessage(status, error, message) {
|
|
59
|
+
const errorMessage = error?.message;
|
|
60
|
+
const msg = errorMessage ? typeof errorMessage === "string" ? errorMessage : JSON.stringify(errorMessage) : error ? JSON.stringify(error) : message;
|
|
61
|
+
if (status && msg) return `${status} ${msg}`;
|
|
62
|
+
if (status) return `${status} status code (no body)`;
|
|
63
|
+
if (msg) return msg;
|
|
64
|
+
return "(no status code or body)";
|
|
65
|
+
}
|
|
66
|
+
static generate(status, errorResponse, message, headers) {
|
|
67
|
+
if (!status || !headers) return new APIConnectionError({
|
|
68
|
+
message,
|
|
69
|
+
cause: errorResponse
|
|
70
|
+
});
|
|
71
|
+
const error = errorResponse;
|
|
72
|
+
if (status === 400) return new BadRequestError(status, error, message, headers);
|
|
73
|
+
if (status === 401) return new AuthenticationError(status, error, message, headers);
|
|
74
|
+
if (status === 403) return new PermissionDeniedError(status, error, message, headers);
|
|
75
|
+
if (status === 404) return new NotFoundError(status, error, message, headers);
|
|
76
|
+
if (status === 409) return new ConflictError(status, error, message, headers);
|
|
77
|
+
if (status === 422) return new UnprocessableEntityError(status, error, message, headers);
|
|
78
|
+
if (status === 429) return new RateLimitError(status, error, message, headers);
|
|
79
|
+
if (status >= 500) return new InternalServerError(status, error, message, headers);
|
|
80
|
+
return new APIError(status, error, message, headers);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
var APIUserAbortError = class extends APIError {
|
|
84
|
+
constructor({ message } = {}) {
|
|
85
|
+
super(void 0, void 0, message ?? "Request was aborted.", void 0);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
var APIConnectionError = class extends APIError {
|
|
89
|
+
constructor({ message, cause }) {
|
|
90
|
+
super(void 0, void 0, message ?? "Connection error.", void 0);
|
|
91
|
+
if (cause) this.cause = cause;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
var APIConnectionTimeoutError = class extends APIConnectionError {
|
|
95
|
+
constructor({ message } = {}) {
|
|
96
|
+
super({ message: message ?? "Request timed out." });
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
var BadRequestError = class extends APIError {};
|
|
100
|
+
var AuthenticationError = class extends APIError {};
|
|
101
|
+
var PermissionDeniedError = class extends APIError {};
|
|
102
|
+
var NotFoundError = class extends APIError {};
|
|
103
|
+
var ConflictError = class extends APIError {};
|
|
104
|
+
var UnprocessableEntityError = class extends APIError {};
|
|
105
|
+
var RateLimitError = class extends APIError {};
|
|
106
|
+
var InternalServerError = class extends APIError {};
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
export { AuthenticationError as a, ConflictError as c, PermissionDeniedError as d, RateLimitError as f, APIUserAbortError as i, InternalServerError as l, APIConnectionTimeoutError as n, BadRequestError as o, UnprocessableEntityError as p, APIError as r, ComposioError as s, APIConnectionError as t, NotFoundError as u };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { c as withOperation, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/compat/resources/files.ts
|
|
4
|
+
const OP_LIST = generatedOperation("files.list");
|
|
5
|
+
const OP_CREATE_PRESIGNED_URL = generatedOperation("files.createPresignedURL");
|
|
6
|
+
/**
|
|
7
|
+
* Stainless-shaped `client.files` resource: the 2-method project file surface
|
|
8
|
+
* of `@composio/client` (list, createPresignedURL).
|
|
9
|
+
*/
|
|
10
|
+
var Files = class {
|
|
11
|
+
#client;
|
|
12
|
+
constructor(client) {
|
|
13
|
+
this.#client = client;
|
|
14
|
+
}
|
|
15
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
16
|
+
list(query = {}, options) {
|
|
17
|
+
return this.#client.get("/api/v3.1/files/list", withOperation(OP_LIST, {
|
|
18
|
+
query,
|
|
19
|
+
...options
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
createPresignedURL(body, options) {
|
|
23
|
+
return this.#client.post("/api/v3.1/files/upload/request", withOperation(OP_CREATE_PRESIGNED_URL, {
|
|
24
|
+
body,
|
|
25
|
+
...options
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Files as t };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/compat/resources/tool-router/session/files.ts
|
|
4
|
+
const OP_LIST = generatedOperation("toolRouter.session.files.list");
|
|
5
|
+
const OP_DELETE = generatedOperation("toolRouter.session.files.delete");
|
|
6
|
+
const OP_CREATE_DOWNLOAD_URL = generatedOperation("toolRouter.session.files.createDownloadURL");
|
|
7
|
+
const OP_CREATE_UPLOAD_URL = generatedOperation("toolRouter.session.files.createUploadURL");
|
|
8
|
+
/**
|
|
9
|
+
* Stainless-shaped `client.toolRouter.session.files` resource — the 4-method
|
|
10
|
+
* mounts/files sub-surface, `(mountID, params, options?)` with `session_id`
|
|
11
|
+
* inside `params`.
|
|
12
|
+
*/
|
|
13
|
+
var Files = class {
|
|
14
|
+
#client;
|
|
15
|
+
constructor(client) {
|
|
16
|
+
this.#client = client;
|
|
17
|
+
}
|
|
18
|
+
list(mountID, params, options) {
|
|
19
|
+
const { session_id, ...query } = params;
|
|
20
|
+
return this.#client.get(path`/api/v3.1/tool_router/session/${session_id}/mounts/${mountID}/items`, withOperation(OP_LIST, {
|
|
21
|
+
query,
|
|
22
|
+
...options
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
delete(mountID, params, options) {
|
|
26
|
+
const { session_id, ...body } = params;
|
|
27
|
+
return this.#client.post(path`/api/v3.1/tool_router/session/${session_id}/mounts/${mountID}/delete`, withOperation(OP_DELETE, {
|
|
28
|
+
body,
|
|
29
|
+
...options
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
createDownloadURL(mountID, params, options) {
|
|
33
|
+
const { session_id, ...body } = params;
|
|
34
|
+
return this.#client.post(path`/api/v3.1/tool_router/session/${session_id}/mounts/${mountID}/download_url`, withOperation(OP_CREATE_DOWNLOAD_URL, {
|
|
35
|
+
body,
|
|
36
|
+
...options
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
createUploadURL(mountID, params, options) {
|
|
40
|
+
const { session_id, ...body } = params;
|
|
41
|
+
return this.#client.post(path`/api/v3.1/tool_router/session/${session_id}/mounts/${mountID}/upload_url`, withOperation(OP_CREATE_UPLOAD_URL, {
|
|
42
|
+
body,
|
|
43
|
+
...options
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { Files as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { c as withOperation, n as generatedOperation } from "./generated-operations-DpYfIPgx.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/compat/resources/mcp/generate.ts
|
|
4
|
+
const OP_URL = generatedOperation("mcp.generate.url");
|
|
5
|
+
/**
|
|
6
|
+
* Stainless-shaped `client.mcp.generate` resource: the 1-method MCP URL
|
|
7
|
+
* generation sub-surface of `@composio/client` (`POST /mcp/servers/generate`).
|
|
8
|
+
*/
|
|
9
|
+
var Generate = class {
|
|
10
|
+
#client;
|
|
11
|
+
constructor(client) {
|
|
12
|
+
this.#client = client;
|
|
13
|
+
}
|
|
14
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
15
|
+
url(body, options) {
|
|
16
|
+
return this.#client.post("/api/v3.1/mcp/servers/generate", withOperation(OP_URL, {
|
|
17
|
+
body,
|
|
18
|
+
...options
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Generate as t };
|