@composio/client 2.0.0-rc.2 → 2.0.0-rc.21
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 +629 -9
- package/dist/{client-D5v0_f-k.d.mts → api-key-revocation-BB3FTdR3.d.mts} +5686 -2238
- package/dist/effect/schemas/api-key-revocation/create.d.mts +8 -0
- package/dist/effect/schemas/api-key-revocation/create.mjs +8 -0
- package/dist/effect/schemas/auth/session/retrieve-info.d.mts +56 -0
- package/dist/effect/schemas/auth/session/retrieve-info.mjs +174 -0
- package/dist/effect/schemas/auth-configs/create.d.mts +16 -0
- package/dist/effect/schemas/auth-configs/create.mjs +22 -0
- package/dist/effect/schemas/auth-configs/delete.d.mts +10 -0
- package/dist/effect/schemas/auth-configs/delete.mjs +15 -0
- package/dist/effect/schemas/auth-configs/list.d.mts +54 -0
- package/dist/effect/schemas/auth-configs/list.mjs +66 -0
- package/dist/effect/schemas/auth-configs/retrieve.d.mts +48 -0
- package/dist/effect/schemas/auth-configs/retrieve.mjs +60 -0
- package/dist/effect/schemas/auth-configs/update-status.d.mts +9 -0
- package/dist/effect/schemas/auth-configs/update-status.mjs +11 -0
- package/dist/effect/schemas/auth-configs/update.d.mts +9 -0
- package/dist/effect/schemas/auth-configs/update.mjs +11 -0
- package/dist/effect/schemas/cli/create-codact-failure.d.mts +9 -0
- package/dist/effect/schemas/cli/create-codact-failure.mjs +17 -0
- package/dist/effect/schemas/cli/create-session.d.mts +12 -0
- package/dist/effect/schemas/cli/create-session.mjs +26 -0
- package/dist/effect/schemas/cli/get-session.d.mts +18 -0
- package/dist/effect/schemas/cli/get-session.mjs +48 -0
- package/dist/effect/schemas/cli/realtime/auth.d.mts +9 -0
- package/dist/effect/schemas/cli/realtime/auth.mjs +11 -0
- package/dist/effect/schemas/cli/realtime/credentials.d.mts +10 -0
- package/dist/effect/schemas/cli/realtime/credentials.mjs +12 -0
- package/dist/effect/schemas/components/auth-config-retrieve-response-expected-input-fields.d.mts +17 -0
- package/dist/effect/schemas/components/auth-config-retrieve-response-expected-input-fields.mjs +22 -0
- package/dist/effect/schemas/components/auth-config-retrieve-response-tool-access-config.d.mts +9 -0
- package/dist/effect/schemas/components/auth-config-retrieve-response-tool-access-config.mjs +20 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option1-val-option1.d.mts +31 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option1-val-option1.mjs +33 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option1-val-option4.d.mts +33 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option1-val-option4.mjs +35 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option1-val-option5.d.mts +32 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option1-val-option5.mjs +34 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option1.d.mts +179 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option1.mjs +113 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option10.d.mts +168 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option10.mjs +104 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option11.d.mts +140 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option11.mjs +76 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option12.d.mts +162 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option12.mjs +12 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option13.d.mts +202 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option13.mjs +130 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option14.d.mts +193 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option14.mjs +211 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option15.d.mts +176 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option15.mjs +86 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option2-val-option1.d.mts +33 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option2-val-option1.mjs +35 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option2-val-option5.d.mts +35 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option2-val-option5.mjs +37 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option2-val-option6.d.mts +34 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option2-val-option6.mjs +36 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option2.d.mts +231 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option2.mjs +160 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option3-val-option2.d.mts +31 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option3-val-option2.mjs +33 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option3-val-option6.d.mts +31 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option3-val-option6.mjs +33 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option3.d.mts +171 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option3.mjs +108 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option4.d.mts +139 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option4.mjs +74 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option5.d.mts +136 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option5.mjs +72 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option6.d.mts +139 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option6.mjs +98 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option7-val.d.mts +159 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option7-val.mjs +69 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option7.d.mts +162 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option7.mjs +12 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option8.d.mts +162 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option8.mjs +12 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option9.d.mts +167 -0
- package/dist/effect/schemas/components/connected-account-create-response-connection-data-option9.mjs +101 -0
- package/dist/effect/schemas/components/connected-account-retrieve-response-state.d.mts +2443 -0
- package/dist/effect/schemas/components/connected-account-retrieve-response-state.mjs +42 -0
- package/dist/effect/schemas/components/deprecated-toolkit-info.d.mts +8 -0
- package/dist/effect/schemas/components/deprecated-toolkit-info.mjs +12 -0
- package/dist/effect/schemas/components/execute-completed.d.mts +16 -0
- package/dist/effect/schemas/components/execute-completed.mjs +27 -0
- package/dist/effect/schemas/components/execute-failed.d.mts +16 -0
- package/dist/effect/schemas/components/execute-failed.mjs +27 -0
- package/dist/effect/schemas/components/execute-requires-user-input.d.mts +15 -0
- package/dist/effect/schemas/components/execute-requires-user-input.mjs +16 -0
- package/dist/effect/schemas/components/instant-account.d.mts +12 -0
- package/dist/effect/schemas/components/instant-account.mjs +15 -0
- package/dist/effect/schemas/components/mcp-create-response-commands.d.mts +10 -0
- package/dist/effect/schemas/components/mcp-create-response-commands.mjs +24 -0
- package/dist/effect/schemas/components/mcp-list-response-items.d.mts +23 -0
- package/dist/effect/schemas/components/mcp-list-response-items.mjs +96 -0
- package/dist/effect/schemas/components/project-list-response-data.d.mts +21 -0
- package/dist/effect/schemas/components/project-list-response-data.mjs +74 -0
- package/dist/effect/schemas/components/proxy-execute-completed.d.mts +17 -0
- package/dist/effect/schemas/components/proxy-execute-completed.mjs +36 -0
- package/dist/effect/schemas/components/session-create-response-config.d.mts +84 -0
- package/dist/effect/schemas/components/session-create-response-config.mjs +143 -0
- package/dist/effect/schemas/components/session-create-response-experimental-custom-toolkits.d.mts +20 -0
- package/dist/effect/schemas/components/session-create-response-experimental-custom-toolkits.mjs +25 -0
- package/dist/effect/schemas/components/session-create-response-warnings.d.mts +9 -0
- package/dist/effect/schemas/components/session-create-response-warnings.mjs +25 -0
- package/dist/effect/schemas/components/session-link-response-experimental.d.mts +13 -0
- package/dist/effect/schemas/components/session-link-response-experimental.mjs +18 -0
- package/dist/effect/schemas/components/session-retrieve-response-experimental.d.mts +37 -0
- package/dist/effect/schemas/components/session-retrieve-response-experimental.mjs +27 -0
- package/dist/effect/schemas/components/tool-details.d.mts +51 -0
- package/dist/effect/schemas/components/tool-details.mjs +144 -0
- package/dist/effect/schemas/components/tool-pricing.d.mts +9 -0
- package/dist/effect/schemas/components/tool-pricing.mjs +14 -0
- package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.d.mts +95 -0
- package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.mjs +154 -0
- package/dist/effect/schemas/components/tool-router-toolkits-list-response.d.mts +34 -0
- package/dist/effect/schemas/components/tool-router-toolkits-list-response.mjs +45 -0
- package/dist/effect/schemas/components/tool.d.mts +51 -0
- package/dist/effect/schemas/components/tool.mjs +144 -0
- package/dist/effect/schemas/components/toolkit-list-response-items.d.mts +36 -0
- package/dist/effect/schemas/components/toolkit-list-response-items.mjs +101 -0
- package/dist/effect/schemas/components/tools-paginated.d.mts +57 -0
- package/dist/effect/schemas/components/tools-paginated.mjs +15 -0
- package/dist/effect/schemas/components/trigger-retrieve-response-log.d.mts +31 -0
- package/dist/effect/schemas/components/trigger-retrieve-response-log.mjs +39 -0
- package/dist/effect/schemas/components/user-input-request.d.mts +11 -0
- package/dist/effect/schemas/components/user-input-request.mjs +19 -0
- package/dist/effect/schemas/connected-accounts/complete-auth.d.mts +9 -0
- package/dist/effect/schemas/connected-accounts/complete-auth.mjs +11 -0
- package/dist/effect/schemas/connected-accounts/create.d.mts +2457 -0
- package/dist/effect/schemas/connected-accounts/create.mjs +58 -0
- package/dist/effect/schemas/connected-accounts/delete.d.mts +9 -0
- package/dist/effect/schemas/connected-accounts/delete.mjs +17 -0
- package/dist/effect/schemas/connected-accounts/list.d.mts +2480 -0
- package/dist/effect/schemas/connected-accounts/list.mjs +84 -0
- package/dist/effect/schemas/connected-accounts/patch.d.mts +10 -0
- package/dist/effect/schemas/connected-accounts/patch.mjs +19 -0
- package/dist/effect/schemas/connected-accounts/refresh.d.mts +10 -0
- package/dist/effect/schemas/connected-accounts/refresh.mjs +27 -0
- package/dist/effect/schemas/connected-accounts/retrieve.d.mts +2477 -0
- package/dist/effect/schemas/connected-accounts/retrieve.mjs +81 -0
- package/dist/effect/schemas/connected-accounts/revoke.d.mts +12 -0
- package/dist/effect/schemas/connected-accounts/revoke.mjs +35 -0
- package/dist/effect/schemas/connected-accounts/update-status.d.mts +8 -0
- package/dist/effect/schemas/connected-accounts/update-status.mjs +11 -0
- package/dist/effect/schemas/custom/delete-toolkit.d.mts +12 -0
- package/dist/effect/schemas/custom/delete-toolkit.mjs +17 -0
- package/dist/effect/schemas/custom/sync.d.mts +10 -0
- package/dist/effect/schemas/custom/sync.mjs +21 -0
- package/dist/effect/schemas/custom/upsert.d.mts +8 -0
- package/dist/effect/schemas/custom/upsert.mjs +11 -0
- package/dist/effect/schemas/files/create-presigned-url.d.mts +15 -0
- package/dist/effect/schemas/files/create-presigned-url.mjs +15 -0
- package/dist/effect/schemas/files/list.d.mts +18 -0
- package/dist/effect/schemas/files/list.mjs +20 -0
- package/dist/effect/schemas/keyring/list-transfer-keys.d.mts +17 -0
- package/dist/effect/schemas/keyring/list-transfer-keys.mjs +19 -0
- package/dist/effect/schemas/link/create.d.mts +19 -0
- package/dist/effect/schemas/link/create.mjs +18 -0
- package/dist/effect/schemas/logs/create-tool-execution.d.mts +25 -0
- package/dist/effect/schemas/logs/create-tool-execution.mjs +39 -0
- package/dist/effect/schemas/logs/retrieve-tool-execution.d.mts +37 -0
- package/dist/effect/schemas/logs/retrieve-tool-execution.mjs +51 -0
- package/dist/effect/schemas/logs/tools/list-fields.d.mts +13 -0
- package/dist/effect/schemas/logs/tools/list-fields.mjs +13 -0
- package/dist/effect/schemas/logs/tools/list.d.mts +28 -0
- package/dist/effect/schemas/logs/tools/list.mjs +33 -0
- package/dist/effect/schemas/logs/tools/retrieve.d.mts +60 -0
- package/dist/effect/schemas/logs/tools/retrieve.mjs +74 -0
- package/dist/effect/schemas/logs/triggers/list.d.mts +34 -0
- package/dist/effect/schemas/logs/triggers/list.mjs +12 -0
- package/dist/effect/schemas/logs/triggers/retrieve.d.mts +33 -0
- package/dist/effect/schemas/logs/triggers/retrieve.mjs +9 -0
- package/dist/effect/schemas/mcp/create-instance.d.mts +12 -0
- package/dist/effect/schemas/mcp/create-instance.mjs +29 -0
- package/dist/effect/schemas/mcp/create.d.mts +23 -0
- package/dist/effect/schemas/mcp/create.mjs +67 -0
- package/dist/effect/schemas/mcp/custom/create.d.mts +17 -0
- package/dist/effect/schemas/mcp/custom/create.mjs +48 -0
- package/dist/effect/schemas/mcp/delete-instance.d.mts +9 -0
- package/dist/effect/schemas/mcp/delete-instance.mjs +11 -0
- package/dist/effect/schemas/mcp/delete.d.mts +9 -0
- package/dist/effect/schemas/mcp/delete.mjs +17 -0
- package/dist/effect/schemas/mcp/generate/url.d.mts +10 -0
- package/dist/effect/schemas/mcp/generate/url.mjs +21 -0
- package/dist/effect/schemas/mcp/list-instances.d.mts +18 -0
- package/dist/effect/schemas/mcp/list-instances.mjs +56 -0
- package/dist/effect/schemas/mcp/list.d.mts +27 -0
- package/dist/effect/schemas/mcp/list.mjs +19 -0
- package/dist/effect/schemas/mcp/retrieve-app.d.mts +27 -0
- package/dist/effect/schemas/mcp/retrieve-app.mjs +19 -0
- package/dist/effect/schemas/mcp/retrieve.d.mts +24 -0
- package/dist/effect/schemas/mcp/retrieve.mjs +68 -0
- package/dist/effect/schemas/mcp/update.d.mts +24 -0
- package/dist/effect/schemas/mcp/update.mjs +68 -0
- package/dist/effect/schemas/org/clanker/create-claim.d.mts +9 -0
- package/dist/effect/schemas/org/clanker/create-claim.mjs +14 -0
- package/dist/effect/schemas/org/consumer/list-connected-toolkits.d.mts +8 -0
- package/dist/effect/schemas/org/consumer/list-connected-toolkits.mjs +8 -0
- package/dist/effect/schemas/org/consumer/project/resolve.d.mts +19 -0
- package/dist/effect/schemas/org/consumer/project/resolve.mjs +30 -0
- package/dist/effect/schemas/org/list.d.mts +17 -0
- package/dist/effect/schemas/org/list.mjs +22 -0
- package/dist/effect/schemas/org/owner/project/create.d.mts +10 -0
- package/dist/effect/schemas/org/owner/project/create.mjs +22 -0
- package/dist/effect/schemas/org/owner/project/delete.d.mts +9 -0
- package/dist/effect/schemas/org/owner/project/delete.mjs +17 -0
- package/dist/effect/schemas/org/owner/project/list.d.mts +27 -0
- package/dist/effect/schemas/org/owner/project/list.mjs +15 -0
- package/dist/effect/schemas/org/owner/project/regenerate-api-key.d.mts +14 -0
- package/dist/effect/schemas/org/owner/project/regenerate-api-key.mjs +31 -0
- package/dist/effect/schemas/org/owner/project/retrieve.d.mts +27 -0
- package/dist/effect/schemas/org/owner/project/retrieve.mjs +93 -0
- package/dist/effect/schemas/org/project/list.d.mts +27 -0
- package/dist/effect/schemas/org/project/list.mjs +15 -0
- package/dist/effect/schemas/org/usage/retrieve-summary.d.mts +13 -0
- package/dist/effect/schemas/org/usage/retrieve-summary.mjs +15 -0
- package/dist/effect/schemas/org/usage/retrieve.d.mts +16 -0
- package/dist/effect/schemas/org/usage/retrieve.mjs +18 -0
- package/dist/effect/schemas/project/usage/retrieve-summary.d.mts +13 -0
- package/dist/effect/schemas/project/usage/retrieve-summary.mjs +15 -0
- package/dist/effect/schemas/project/usage/retrieve.d.mts +16 -0
- package/dist/effect/schemas/project/usage/retrieve.mjs +18 -0
- package/dist/effect/schemas/session-configs/list.d.mts +15 -0
- package/dist/effect/schemas/session-configs/list.mjs +26 -0
- package/dist/effect/schemas/session-configs/retrieve.d.mts +34 -0
- package/dist/effect/schemas/session-configs/retrieve.mjs +67 -0
- package/dist/effect/schemas/tool-router/session/attach.d.mts +129 -0
- package/dist/effect/schemas/tool-router/session/attach.mjs +30 -0
- package/dist/effect/schemas/tool-router/session/config-history.d.mts +94 -0
- package/dist/effect/schemas/tool-router/session/config-history.mjs +8 -0
- package/dist/effect/schemas/tool-router/session/create.d.mts +129 -0
- package/dist/effect/schemas/tool-router/session/create.mjs +45 -0
- package/dist/effect/schemas/tool-router/session/delete.d.mts +9 -0
- package/dist/effect/schemas/tool-router/session/delete.mjs +18 -0
- package/dist/effect/schemas/tool-router/session/execute-meta.d.mts +35 -0
- package/dist/effect/schemas/tool-router/session/execute-meta.mjs +15 -0
- package/dist/effect/schemas/tool-router/session/execute.d.mts +35 -0
- package/dist/effect/schemas/tool-router/session/execute.mjs +15 -0
- package/dist/effect/schemas/tool-router/session/files/create-download-url.d.mts +11 -0
- package/dist/effect/schemas/tool-router/session/files/create-download-url.mjs +13 -0
- package/dist/effect/schemas/tool-router/session/files/create-upload-url.d.mts +11 -0
- package/dist/effect/schemas/tool-router/session/files/create-upload-url.mjs +13 -0
- package/dist/effect/schemas/tool-router/session/files/delete.d.mts +9 -0
- package/dist/effect/schemas/tool-router/session/files/delete.mjs +11 -0
- package/dist/effect/schemas/tool-router/session/files/list.d.mts +14 -0
- package/dist/effect/schemas/tool-router/session/files/list.mjs +16 -0
- package/dist/effect/schemas/tool-router/session/link.d.mts +18 -0
- package/dist/effect/schemas/tool-router/session/link.mjs +25 -0
- package/dist/effect/schemas/tool-router/session/patch.d.mts +129 -0
- package/dist/effect/schemas/tool-router/session/patch.mjs +30 -0
- package/dist/effect/schemas/tool-router/session/proxy-execute.d.mts +26 -0
- package/dist/effect/schemas/tool-router/session/proxy-execute.mjs +10 -0
- package/dist/effect/schemas/tool-router/session/retrieve.d.mts +129 -0
- package/dist/effect/schemas/tool-router/session/retrieve.mjs +30 -0
- package/dist/effect/schemas/tool-router/session/search.d.mts +80 -0
- package/dist/effect/schemas/tool-router/session/search.mjs +78 -0
- package/dist/effect/schemas/tool-router/session/toolkits.d.mts +33 -0
- package/dist/effect/schemas/tool-router/session/toolkits.mjs +8 -0
- package/dist/effect/schemas/tool-router/session/tools.d.mts +56 -0
- package/dist/effect/schemas/tool-router/session/tools.mjs +8 -0
- package/dist/effect/schemas/toolkits/list.d.mts +42 -0
- package/dist/effect/schemas/toolkits/list.mjs +15 -0
- package/dist/effect/schemas/toolkits/recommend-scopes.d.mts +19 -0
- package/dist/effect/schemas/toolkits/recommend-scopes.mjs +21 -0
- package/dist/effect/schemas/toolkits/retrieve-categories.d.mts +15 -0
- package/dist/effect/schemas/toolkits/retrieve-categories.mjs +23 -0
- package/dist/effect/schemas/toolkits/retrieve-changelog.d.mts +16 -0
- package/dist/effect/schemas/toolkits/retrieve-changelog.mjs +16 -0
- package/dist/effect/schemas/toolkits/retrieve-multi.d.mts +42 -0
- package/dist/effect/schemas/toolkits/retrieve-multi.mjs +15 -0
- package/dist/effect/schemas/toolkits/retrieve-scopes-grant-context.d.mts +15 -0
- package/dist/effect/schemas/toolkits/retrieve-scopes-grant-context.mjs +17 -0
- package/dist/effect/schemas/toolkits/retrieve.d.mts +110 -0
- package/dist/effect/schemas/toolkits/retrieve.mjs +202 -0
- package/dist/effect/schemas/tools/execute.d.mts +12 -0
- package/dist/effect/schemas/tools/execute.mjs +35 -0
- package/dist/effect/schemas/tools/get-input.d.mts +9 -0
- package/dist/effect/schemas/tools/get-input.mjs +22 -0
- package/dist/effect/schemas/tools/list.d.mts +56 -0
- package/dist/effect/schemas/tools/list.mjs +8 -0
- package/dist/effect/schemas/tools/proxy.d.mts +16 -0
- package/dist/effect/schemas/tools/proxy.mjs +36 -0
- package/dist/effect/schemas/tools/retrieve-enum.d.mts +6 -0
- package/dist/effect/schemas/tools/retrieve-enum.mjs +8 -0
- package/dist/effect/schemas/tools/retrieve-required-scopes.d.mts +22 -0
- package/dist/effect/schemas/tools/retrieve-required-scopes.mjs +33 -0
- package/dist/effect/schemas/tools/retrieve.d.mts +50 -0
- package/dist/effect/schemas/tools/retrieve.mjs +8 -0
- package/dist/effect/schemas/trigger-instances/list-active.d.mts +34 -0
- package/dist/effect/schemas/trigger-instances/list-active.mjs +37 -0
- package/dist/effect/schemas/trigger-instances/manage/delete.d.mts +8 -0
- package/dist/effect/schemas/trigger-instances/manage/delete.mjs +11 -0
- package/dist/effect/schemas/trigger-instances/manage/update.d.mts +8 -0
- package/dist/effect/schemas/trigger-instances/manage/update.mjs +8 -0
- package/dist/effect/schemas/trigger-instances/upsert.d.mts +8 -0
- package/dist/effect/schemas/trigger-instances/upsert.mjs +8 -0
- package/dist/effect/schemas/triggers-types/list.d.mts +27 -0
- package/dist/effect/schemas/triggers-types/list.mjs +86 -0
- package/dist/effect/schemas/triggers-types/retrieve-enum.d.mts +6 -0
- package/dist/effect/schemas/triggers-types/retrieve-enum.mjs +8 -0
- package/dist/effect/schemas/triggers-types/retrieve.d.mts +21 -0
- package/dist/effect/schemas/triggers-types/retrieve.mjs +80 -0
- package/dist/effect/schemas/webhook-endpoints/create.d.mts +13 -0
- package/dist/effect/schemas/webhook-endpoints/create.mjs +15 -0
- package/dist/effect/schemas/webhook-endpoints/list.d.mts +12 -0
- package/dist/effect/schemas/webhook-endpoints/list.mjs +12 -0
- package/dist/effect/schemas/webhook-endpoints/replace.d.mts +13 -0
- package/dist/effect/schemas/webhook-endpoints/replace.mjs +15 -0
- package/dist/effect/schemas/webhook-endpoints/retrieve.d.mts +13 -0
- package/dist/effect/schemas/webhook-endpoints/retrieve.mjs +15 -0
- package/dist/effect/schemas/webhook-endpoints/update.d.mts +13 -0
- package/dist/effect/schemas/webhook-endpoints/update.mjs +15 -0
- package/dist/effect/schemas/webhook-subscriptions/create.d.mts +14 -0
- package/dist/effect/schemas/webhook-subscriptions/create.mjs +23 -0
- package/dist/effect/schemas/webhook-subscriptions/delete.d.mts +8 -0
- package/dist/effect/schemas/webhook-subscriptions/delete.mjs +8 -0
- package/dist/effect/schemas/webhook-subscriptions/list-event-types.d.mts +12 -0
- package/dist/effect/schemas/webhook-subscriptions/list-event-types.mjs +16 -0
- package/dist/effect/schemas/webhook-subscriptions/list.d.mts +20 -0
- package/dist/effect/schemas/webhook-subscriptions/list.mjs +29 -0
- package/dist/effect/schemas/webhook-subscriptions/retrieve.d.mts +14 -0
- package/dist/effect/schemas/webhook-subscriptions/retrieve.mjs +23 -0
- package/dist/effect/schemas/webhook-subscriptions/rotate-secret.d.mts +9 -0
- package/dist/effect/schemas/webhook-subscriptions/rotate-secret.mjs +14 -0
- package/dist/effect/schemas/webhook-subscriptions/update.d.mts +14 -0
- package/dist/effect/schemas/webhook-subscriptions/update.mjs +23 -0
- package/dist/effect/schemas.d.mts +9645 -0
- package/dist/effect/schemas.mjs +131 -0
- package/dist/effect.d.mts +756 -0
- package/dist/effect.mjs +1626 -0
- package/dist/environments-BXSnADKo.d.mts +19 -0
- package/dist/environments-CmxYUUsW.mjs +222 -0
- package/dist/error-Bw7_G2NZ.mjs +117 -0
- package/dist/{request-zLX87M09.mjs → generated-operations-BNRn8az6.mjs} +1493 -307
- package/dist/index.d.mts +3 -5
- package/dist/index.mjs +157 -1098
- package/dist/pagination-rules-CMnBwktJ.mjs +36 -0
- package/dist/pagination.d.mts +56 -0
- package/dist/pagination.mjs +46 -0
- package/dist/resources/api-key-revocation.d.mts +2 -2
- package/dist/resources/api-key-revocation.mjs +13 -2
- package/dist/resources/auth/auth.d.mts +2 -2
- package/dist/resources/auth/auth.mjs +7 -2
- package/dist/resources/auth/session.d.mts +2 -2
- package/dist/resources/auth/session.mjs +10 -2
- package/dist/resources/auth-configs.d.mts +2 -2
- package/dist/resources/auth-configs.mjs +45 -2
- package/dist/resources/auth.d.mts +2 -2
- package/dist/resources/auth.mjs +1 -5
- package/dist/resources/cli/cli.d.mts +2 -2
- package/dist/resources/cli/cli.mjs +32 -2
- package/dist/resources/cli/realtime.d.mts +2 -2
- package/dist/resources/cli/realtime.mjs +19 -2
- package/dist/resources/cli.d.mts +2 -2
- package/dist/resources/cli.mjs +1 -5
- package/dist/resources/connected-accounts.d.mts +2 -2
- package/dist/resources/connected-accounts.mjs +70 -2
- package/dist/resources/custom.d.mts +2 -0
- package/dist/resources/custom.mjs +30 -0
- package/dist/resources/files.d.mts +2 -2
- package/dist/resources/files.mjs +22 -2
- package/dist/resources/keyring.d.mts +2 -0
- package/dist/resources/keyring.mjs +11 -0
- package/dist/resources/link.d.mts +2 -2
- package/dist/resources/link.mjs +13 -2
- package/dist/resources/logs/logs.d.mts +2 -2
- package/dist/resources/logs/logs.mjs +23 -2
- package/dist/resources/logs/tools.d.mts +2 -2
- package/dist/resources/logs/tools.mjs +23 -2
- package/dist/resources/logs/triggers.d.mts +2 -2
- package/dist/resources/logs/triggers.mjs +19 -2
- package/dist/resources/logs.d.mts +2 -2
- package/dist/resources/logs.mjs +1 -6
- package/dist/resources/mcp/custom.d.mts +2 -2
- package/dist/resources/mcp/custom.mjs +13 -2
- package/dist/resources/mcp/generate.d.mts +2 -2
- package/dist/resources/mcp/generate.mjs +13 -2
- package/dist/resources/mcp/mcp.d.mts +2 -2
- package/dist/resources/mcp/mcp.mjs +67 -2
- package/dist/resources/mcp.d.mts +2 -2
- package/dist/resources/mcp.mjs +1 -6
- package/dist/resources/org/clanker.d.mts +2 -2
- package/dist/resources/org/clanker.mjs +13 -2
- package/dist/resources/org/consumer/consumer.d.mts +2 -2
- package/dist/resources/org/consumer/consumer.mjs +21 -2
- package/dist/resources/org/consumer/project.d.mts +2 -2
- package/dist/resources/org/consumer/project.mjs +14 -2
- package/dist/resources/org/consumer.d.mts +2 -2
- package/dist/resources/org/consumer.mjs +1 -5
- package/dist/resources/org/org.d.mts +2 -2
- package/dist/resources/org/org.mjs +25 -2
- package/dist/resources/org/owner/owner.d.mts +2 -2
- package/dist/resources/org/owner/owner.mjs +7 -2
- package/dist/resources/org/owner/project.d.mts +2 -2
- package/dist/resources/org/owner/project.mjs +37 -2
- package/dist/resources/org/owner.d.mts +2 -2
- package/dist/resources/org/owner.mjs +1 -5
- package/dist/resources/org/project.d.mts +2 -2
- package/dist/resources/org/project.mjs +13 -2
- package/dist/resources/org/usage.d.mts +2 -2
- package/dist/resources/org/usage.mjs +22 -2
- package/dist/resources/org.d.mts +2 -2
- package/dist/resources/org.mjs +1 -9
- package/dist/resources/project/project.d.mts +2 -2
- package/dist/resources/project/project.mjs +7 -2
- package/dist/resources/project/usage.d.mts +2 -2
- package/dist/resources/project/usage.mjs +22 -2
- package/dist/resources/project.d.mts +2 -3
- package/dist/resources/project.mjs +1 -5
- package/dist/resources/session-configs.d.mts +2 -0
- package/dist/resources/session-configs.mjs +20 -0
- package/dist/resources/tool-router/session/files.d.mts +2 -2
- package/dist/resources/tool-router/session/files.mjs +40 -2
- package/dist/resources/tool-router/session/session.d.mts +2 -2
- package/dist/resources/tool-router/session/session.mjs +95 -2
- package/dist/resources/tool-router/session.d.mts +2 -2
- package/dist/resources/tool-router/session.mjs +1 -5
- package/dist/resources/tool-router/tool-router.d.mts +2 -2
- package/dist/resources/tool-router/tool-router.mjs +7 -2
- package/dist/resources/tool-router.d.mts +2 -2
- package/dist/resources/tool-router.mjs +1 -5
- package/dist/resources/toolkits.d.mts +2 -2
- package/dist/resources/toolkits.mjs +51 -2
- package/dist/resources/tools.d.mts +2 -2
- package/dist/resources/tools.mjs +56 -2
- package/dist/resources/trigger-instances/manage.d.mts +2 -2
- package/dist/resources/trigger-instances/manage.mjs +19 -2
- package/dist/resources/trigger-instances/trigger-instances.d.mts +2 -2
- package/dist/resources/trigger-instances/trigger-instances.mjs +24 -2
- package/dist/resources/trigger-instances.d.mts +2 -2
- package/dist/resources/trigger-instances.mjs +1 -5
- package/dist/resources/triggers-types.d.mts +2 -2
- package/dist/resources/triggers-types.mjs +26 -2
- package/dist/resources/webhook-endpoints.d.mts +2 -2
- package/dist/resources/webhook-endpoints.mjs +40 -2
- package/dist/resources/webhook-subscriptions.d.mts +2 -2
- package/dist/resources/webhook-subscriptions.mjs +45 -2
- package/package.json +35 -27
- package/dist/api-key-revocation-BqiqlJh6.mjs +0 -24
- package/dist/auth-ClFXmN5T.mjs +0 -17
- package/dist/auth-configs-COkEdwlP.mjs +0 -48
- package/dist/clanker-1ptspWLR.mjs +0 -23
- package/dist/cli-BWTXVRT4.mjs +0 -42
- package/dist/config-BLBbhLe1.mjs +0 -10
- package/dist/config-DnyMhILW.d.mts +0 -9
- package/dist/connected-accounts-DK24qYIM.mjs +0 -67
- package/dist/consumer-Do3lg_vI.mjs +0 -33
- package/dist/custom-CH7n4Dyd.mjs +0 -22
- package/dist/files-DoNtYu2Q.mjs +0 -29
- package/dist/files-lfGzAnJ_.mjs +0 -45
- package/dist/generate-B7ClqhN0.mjs +0 -22
- package/dist/link-NsFv9L3R.mjs +0 -22
- package/dist/logs-BhCTVSZE.mjs +0 -36
- package/dist/manage-7vQYn-gu.mjs +0 -26
- package/dist/mcp-r-SWyCDh.mjs +0 -73
- package/dist/migration-CBhnoN-Y.mjs +0 -10
- package/dist/migration-CKGKuRO3.d.mts +0 -9
- package/dist/org-C12wx9QM.mjs +0 -44
- package/dist/owner-D4ghEkrK.mjs +0 -17
- package/dist/project-By-OBe-4.mjs +0 -28
- package/dist/project-Cnr9eceg.mjs +0 -24
- package/dist/project-DgdqyoZJ.mjs +0 -22
- package/dist/project-DzrdSIis.mjs +0 -42
- package/dist/realtime-DHJnO2Ye.mjs +0 -26
- package/dist/resources/auth/index.d.mts +0 -2
- package/dist/resources/auth/index.mjs +0 -4
- package/dist/resources/cli/index.d.mts +0 -2
- package/dist/resources/cli/index.mjs +0 -4
- package/dist/resources/index.d.mts +0 -3
- package/dist/resources/index.mjs +0 -16
- package/dist/resources/logs/index.d.mts +0 -2
- package/dist/resources/logs/index.mjs +0 -5
- package/dist/resources/mcp/index.d.mts +0 -2
- package/dist/resources/mcp/index.mjs +0 -5
- package/dist/resources/migration.d.mts +0 -2
- package/dist/resources/migration.mjs +0 -3
- package/dist/resources/org/consumer/index.d.mts +0 -2
- package/dist/resources/org/consumer/index.mjs +0 -4
- package/dist/resources/org/index.d.mts +0 -2
- package/dist/resources/org/index.mjs +0 -8
- package/dist/resources/org/owner/index.d.mts +0 -2
- package/dist/resources/org/owner/index.mjs +0 -4
- package/dist/resources/project/config.d.mts +0 -2
- package/dist/resources/project/config.mjs +0 -3
- package/dist/resources/project/index.d.mts +0 -3
- package/dist/resources/project/index.mjs +0 -4
- package/dist/resources/tool-router/index.d.mts +0 -2
- package/dist/resources/tool-router/index.mjs +0 -4
- package/dist/resources/tool-router/session/index.d.mts +0 -2
- package/dist/resources/tool-router/session/index.mjs +0 -4
- package/dist/resources/trigger-instances/index.d.mts +0 -2
- package/dist/resources/trigger-instances/index.mjs +0 -4
- package/dist/session-Ci0MoTTn.mjs +0 -21
- package/dist/session-CmqSfXtq.mjs +0 -97
- package/dist/tool-router-DbmIxiU5.mjs +0 -14
- package/dist/toolkits-BUWB3p_C.mjs +0 -43
- package/dist/tools-B4kHPHbe.mjs +0 -30
- package/dist/tools-BO1wTIiE.mjs +0 -60
- package/dist/trigger-instances-CoEohjcv.mjs +0 -33
- package/dist/triggers-BwsETpsM.mjs +0 -26
- package/dist/triggers-types-DmOurxxx.mjs +0 -31
- package/dist/usage-BJsJ4nsd.mjs +0 -29
- package/dist/usage-D6ahTV_Y.mjs +0 -29
- package/dist/webhook-endpoints-CyWYVPMe.mjs +0 -46
- package/dist/webhook-subscriptions-BgnCTUGn.mjs +0 -48
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { s as ComposioError } from "./error-Bw7_G2NZ.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/pagination-rules.ts
|
|
4
|
+
/**
|
|
5
|
+
* The cursor rules of a paginated traversal, as pure functions: what the
|
|
6
|
+
* default adapter reads off a page, when a traversal is over, and what it
|
|
7
|
+
* refuses to continue from. `./pagination` and the Effect surface's streams
|
|
8
|
+
* both traverse by these, so the two cannot come to disagree about a page.
|
|
9
|
+
*
|
|
10
|
+
* Internal: not an entry of the package, and it must stay free of `effect`.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The continuation of a standard `items` / `next_cursor` page.
|
|
14
|
+
*
|
|
15
|
+
* @throws {ComposioError} for a page-number envelope that omits `next_cursor`
|
|
16
|
+
* before its last page: reading that as "no more pages" would end the
|
|
17
|
+
* traversal early without a word.
|
|
18
|
+
*/
|
|
19
|
+
const standardNextCursor = (page) => {
|
|
20
|
+
const cursorPage = page;
|
|
21
|
+
if (!Object.prototype.hasOwnProperty.call(cursorPage, "next_cursor") && typeof cursorPage.current_page === "number" && typeof cursorPage.total_pages === "number" && cursorPage.current_page < cursorPage.total_pages) throw new ComposioError("Pagination response omitted next_cursor before its final page; provide a custom adapter");
|
|
22
|
+
return cursorPage.next_cursor;
|
|
23
|
+
};
|
|
24
|
+
/** Whether a continuation says there is no further page. */
|
|
25
|
+
const isFinalCursor = (cursor) => cursor === null || cursor === void 0 || cursor === "";
|
|
26
|
+
/** @throws {ComposioError} when the server hands back a cursor this traversal already followed. */
|
|
27
|
+
const assertCursorAdvanced = (seen, next) => {
|
|
28
|
+
if (seen.has(next)) throw new ComposioError("Pagination cursor did not advance");
|
|
29
|
+
};
|
|
30
|
+
/** @throws {ComposioError} when a page's items are not an array. */
|
|
31
|
+
function assertPageItems(items) {
|
|
32
|
+
if (!Array.isArray(items)) throw new ComposioError("Pagination adapter items() must return an array");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { standardNextCursor as i, assertPageItems as n, isFinalCursor as r, assertCursorAdvanced as t };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/pagination.d.ts
|
|
2
|
+
/** A stable cursor value that can be compared across independently decoded pages. */
|
|
3
|
+
type PaginationCursor = string | number;
|
|
4
|
+
/** The position supplied to a paginated operation for one page request. */
|
|
5
|
+
interface PaginationRequest<Cursor extends PaginationCursor> {
|
|
6
|
+
/** The continuation from the preceding response, absent on the first page. */
|
|
7
|
+
readonly cursor: Cursor | undefined;
|
|
8
|
+
}
|
|
9
|
+
/** A standard Composio cursor page. */
|
|
10
|
+
interface CursorPage<Item> {
|
|
11
|
+
readonly items: ReadonlyArray<Item>;
|
|
12
|
+
readonly next_cursor?: string | null;
|
|
13
|
+
}
|
|
14
|
+
/** Extracts the item carried by a standard Composio cursor page. */
|
|
15
|
+
type CursorPageItem<Page> = Page extends CursorPage<infer Item> ? Item : never;
|
|
16
|
+
/** Fetches one page through a concrete SDK operation. */
|
|
17
|
+
type PageFetcher<Page, Cursor extends PaginationCursor> = (request: PaginationRequest<Cursor>) => PromiseLike<Page>;
|
|
18
|
+
/** Adapts an operation-specific response envelope to pagination. */
|
|
19
|
+
interface PaginationAdapter<Page, Item, Cursor extends PaginationCursor> {
|
|
20
|
+
/** Returns the items carried by one response page. */
|
|
21
|
+
readonly items: (page: Page) => ReadonlyArray<Item>;
|
|
22
|
+
/** Returns the continuation for the next request, or nullish at the end. */
|
|
23
|
+
readonly nextCursor: (page: Page) => Cursor | null | undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A lazy traversal of one SDK operation.
|
|
27
|
+
*
|
|
28
|
+
* Each iterator starts a fresh traversal. Pages are requested sequentially and
|
|
29
|
+
* only on demand, so breaking out of iteration does not request another page.
|
|
30
|
+
* The supplied operation remains responsible for its query, page size, request
|
|
31
|
+
* options, cancellation, and normal client retry behavior.
|
|
32
|
+
*/
|
|
33
|
+
interface Pagination<Item, Page> extends AsyncIterable<Item> {
|
|
34
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<Item>;
|
|
35
|
+
/** Iterates complete response pages without flattening their items. */
|
|
36
|
+
iterPages(): AsyncIterable<Page>;
|
|
37
|
+
/** Collects every item into memory. Prefer iteration for large collections. */
|
|
38
|
+
toArray(): Promise<Array<Item>>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Lazily traverses a standard Composio `items` / `next_cursor` operation.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const tools = paginate(({ cursor }) =>
|
|
46
|
+
* client.tools.list({ ...filters, cursor, limit: 1000 }),
|
|
47
|
+
* )
|
|
48
|
+
*
|
|
49
|
+
* for await (const tool of tools) console.log(tool.slug)
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare function paginate<Page extends CursorPage<unknown>>(fetchPage: PageFetcher<Page, string>): Pagination<CursorPageItem<Page>, Page>;
|
|
53
|
+
/** Lazily traverses an operation with an operation-specific response envelope. */
|
|
54
|
+
declare function paginate<Page, Item, Cursor extends PaginationCursor>(fetchPage: PageFetcher<Page, Cursor>, adapter: PaginationAdapter<Page, Item, Cursor>): Pagination<Item, Page>;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { CursorPage, CursorPageItem, PageFetcher, Pagination, PaginationAdapter, PaginationCursor, PaginationRequest, paginate };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { i as standardNextCursor, n as assertPageItems, r as isFinalCursor, t as assertCursorAdvanced } from "./pagination-rules-CMnBwktJ.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/pagination.ts
|
|
4
|
+
var PaginationTraversal = class {
|
|
5
|
+
fetchPage;
|
|
6
|
+
adapter;
|
|
7
|
+
constructor(fetchPage, adapter) {
|
|
8
|
+
this.fetchPage = fetchPage;
|
|
9
|
+
this.adapter = adapter;
|
|
10
|
+
}
|
|
11
|
+
async *iterPages() {
|
|
12
|
+
let cursor;
|
|
13
|
+
const seenCursors = /* @__PURE__ */ new Set();
|
|
14
|
+
while (true) {
|
|
15
|
+
const page = await this.fetchPage({ cursor });
|
|
16
|
+
yield page;
|
|
17
|
+
const nextCursor = this.adapter.nextCursor(page);
|
|
18
|
+
if (isFinalCursor(nextCursor)) return;
|
|
19
|
+
assertCursorAdvanced(seenCursors, nextCursor);
|
|
20
|
+
seenCursors.add(nextCursor);
|
|
21
|
+
cursor = nextCursor;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/** Collects every item into memory. Prefer iteration for large collections. */
|
|
25
|
+
async toArray() {
|
|
26
|
+
const items = [];
|
|
27
|
+
for await (const item of this) items.push(item);
|
|
28
|
+
return items;
|
|
29
|
+
}
|
|
30
|
+
async *[Symbol.asyncIterator]() {
|
|
31
|
+
for await (const page of this.iterPages()) {
|
|
32
|
+
const items = this.adapter.items(page);
|
|
33
|
+
assertPageItems(items);
|
|
34
|
+
yield* items;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
function paginate(fetchPage, adapter) {
|
|
39
|
+
return new PaginationTraversal(fetchPage, adapter ?? {
|
|
40
|
+
items: (page) => page.items,
|
|
41
|
+
nextCursor: (page) => standardNextCursor(page)
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { paginate };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ApiKeyRevocation,
|
|
1
|
+
import { i as makeApiKeyRevocation, n as ApiKeyRevocationCreateParams, r as ApiKeyRevocationCreateResponse, t as ApiKeyRevocation } from "../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { ApiKeyRevocation, ApiKeyRevocationCreateParams, ApiKeyRevocationCreateResponse, makeApiKeyRevocation };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../generated-operations-BNRn8az6.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/api-key-revocation.ts
|
|
4
|
+
const OP_CREATE = generatedOperation("apiKeyRevocation.create");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeApiKeyRevocation = (client) => ({ create(body, options) {
|
|
7
|
+
return client.post("/api/v3.1/api_key_revocation", withOperation(OP_CREATE, {
|
|
8
|
+
body,
|
|
9
|
+
...options
|
|
10
|
+
}));
|
|
11
|
+
} });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { makeApiKeyRevocation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Auth };
|
|
1
|
+
import { E as makeAuth, T as Auth } from "../../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { Auth, makeAuth };
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { makeSession } from "./session.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/auth/auth.ts
|
|
4
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
5
|
+
const makeAuth = (client) => ({ session: makeSession(client) });
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { makeAuth };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Session,
|
|
1
|
+
import { D as Session, O as SessionRetrieveInfoResponse, k as makeSession } from "../../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { Session, SessionRetrieveInfoResponse, makeSession };
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../generated-operations-BNRn8az6.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/auth/session.ts
|
|
4
|
+
const OP_RETRIEVE_INFO = generatedOperation("auth.session.retrieveInfo");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeSession = (client) => ({ retrieveInfo(options) {
|
|
7
|
+
return client.get("/api/v3.1/auth/session/info", withOperation(OP_RETRIEVE_INFO, { ...options }));
|
|
8
|
+
} });
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { makeSession };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { Sr as makeAuthConfigs, _r as AuthConfigUpdateParams, br as AuthConfigUpdateStatusResponse, dr as AuthConfigCreateResponse, fr as AuthConfigDeleteParams, gr as AuthConfigRetrieveResponse, hr as AuthConfigListResponse, mr as AuthConfigListParams, pr as AuthConfigDeleteResponse, ur as AuthConfigCreateParams, vr as AuthConfigUpdateResponse, xr as AuthConfigs, yr as AuthConfigUpdateStatusParams } from "../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { AuthConfigCreateParams, AuthConfigCreateResponse, AuthConfigDeleteParams, AuthConfigDeleteResponse, AuthConfigListParams, AuthConfigListResponse, AuthConfigRetrieveResponse, AuthConfigUpdateParams, AuthConfigUpdateResponse, AuthConfigUpdateStatusParams, AuthConfigUpdateStatusResponse, AuthConfigs, makeAuthConfigs };
|
|
@@ -1,3 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../generated-operations-BNRn8az6.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/auth-configs.ts
|
|
4
|
+
const OP_CREATE = generatedOperation("authConfigs.create");
|
|
5
|
+
const OP_RETRIEVE = generatedOperation("authConfigs.retrieve");
|
|
6
|
+
const OP_UPDATE = generatedOperation("authConfigs.update");
|
|
7
|
+
const OP_LIST = generatedOperation("authConfigs.list");
|
|
8
|
+
const OP_DELETE = generatedOperation("authConfigs.delete");
|
|
9
|
+
const OP_UPDATE_STATUS = generatedOperation("authConfigs.updateStatus");
|
|
10
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
11
|
+
const makeAuthConfigs = (client) => ({
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return client.post("/api/v3.1/auth_configs", withOperation(OP_CREATE, {
|
|
14
|
+
body,
|
|
15
|
+
...options
|
|
16
|
+
}));
|
|
17
|
+
},
|
|
18
|
+
retrieve(nanoid, options) {
|
|
19
|
+
return client.get(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_RETRIEVE, { ...options }));
|
|
20
|
+
},
|
|
21
|
+
update(nanoid, body, options) {
|
|
22
|
+
return client.patch(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_UPDATE, {
|
|
23
|
+
body,
|
|
24
|
+
...options
|
|
25
|
+
}));
|
|
26
|
+
},
|
|
27
|
+
list(query = {}, options) {
|
|
28
|
+
return client.get("/api/v3.1/auth_configs", withOperation(OP_LIST, {
|
|
29
|
+
query,
|
|
30
|
+
...options
|
|
31
|
+
}));
|
|
32
|
+
},
|
|
33
|
+
delete(nanoid, query = {}, options) {
|
|
34
|
+
return client.delete(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_DELETE, {
|
|
35
|
+
query,
|
|
36
|
+
...options
|
|
37
|
+
}));
|
|
38
|
+
},
|
|
39
|
+
updateStatus(status, params, options) {
|
|
40
|
+
const { nanoid } = params;
|
|
41
|
+
return client.patch(path`/api/v3.1/auth_configs/${nanoid}/${status}`, withOperation(OP_UPDATE_STATUS, { ...options }));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { makeAuthConfigs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Auth, Session,
|
|
1
|
+
import { D as Session, O as SessionRetrieveInfoResponse, T as Auth } from "../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export type { Auth, Session, SessionRetrieveInfoResponse };
|
package/dist/resources/auth.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse };
|
|
1
|
+
import { cn as CliCreateCodactFailureParams, dn as CliCreateSessionResponse, fn as CliGetSessionParams, ln as CliCreateCodactFailureResponse, mn as makeCli, pn as CliGetSessionResponse, sn as Cli, un as CliCreateSessionParams } from "../../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse, makeCli };
|
|
@@ -1,3 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../generated-operations-BNRn8az6.mjs";
|
|
2
|
+
import { makeRealtime } from "./realtime.mjs";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/compat/resources/cli/cli.ts
|
|
5
|
+
const OP_CREATE_CODACT_FAILURE = generatedOperation("cli.createCodactFailure");
|
|
6
|
+
const OP_CREATE_SESSION = generatedOperation("cli.createSession");
|
|
7
|
+
const OP_GET_SESSION = generatedOperation("cli.getSession");
|
|
8
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
9
|
+
const makeCli = (client) => ({
|
|
10
|
+
realtime: makeRealtime(client),
|
|
11
|
+
createCodactFailure(params, options) {
|
|
12
|
+
const { "x-user-api-key": xUserApiKey, ...body } = params;
|
|
13
|
+
return client.post("/api/v3.1/cli/codact_failures", withOperation(OP_CREATE_CODACT_FAILURE, {
|
|
14
|
+
body,
|
|
15
|
+
...options
|
|
16
|
+
}, { "x-user-api-key": xUserApiKey }));
|
|
17
|
+
},
|
|
18
|
+
createSession(body = {}, options) {
|
|
19
|
+
return client.post("/api/v3.1/cli/create-session", withOperation(OP_CREATE_SESSION, {
|
|
20
|
+
body,
|
|
21
|
+
...options
|
|
22
|
+
}));
|
|
23
|
+
},
|
|
24
|
+
getSession(query, options) {
|
|
25
|
+
return client.get("/api/v3.1/cli/get-session", withOperation(OP_GET_SESSION, {
|
|
26
|
+
query,
|
|
27
|
+
...options
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { makeCli };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse };
|
|
1
|
+
import { _n as RealtimeAuthResponse, gn as RealtimeAuthParams, hn as Realtime, vn as RealtimeCredentialsResponse, yn as makeRealtime } from "../../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse, makeRealtime };
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../generated-operations-BNRn8az6.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/cli/realtime.ts
|
|
4
|
+
const OP_AUTH = generatedOperation("cli.realtime.auth");
|
|
5
|
+
const OP_CREDENTIALS = generatedOperation("cli.realtime.credentials");
|
|
6
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
7
|
+
const makeRealtime = (client) => ({
|
|
8
|
+
auth(body, options) {
|
|
9
|
+
return client.post("/api/v3.1/cli/realtime/auth", withOperation(OP_AUTH, {
|
|
10
|
+
body,
|
|
11
|
+
...options
|
|
12
|
+
}));
|
|
13
|
+
},
|
|
14
|
+
credentials(options) {
|
|
15
|
+
return client.get("/api/v3.1/cli/realtime/credentials", withOperation(OP_CREDENTIALS, { ...options }));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { makeRealtime };
|
package/dist/resources/cli.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Cli,
|
|
1
|
+
import { _n as RealtimeAuthResponse, cn as CliCreateCodactFailureParams, dn as CliCreateSessionResponse, fn as CliGetSessionParams, gn as RealtimeAuthParams, hn as Realtime, ln as CliCreateCodactFailureResponse, pn as CliGetSessionResponse, sn as Cli, un as CliCreateSessionParams, vn as RealtimeCredentialsResponse } from "../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export type { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse, Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse };
|
package/dist/resources/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
export {
|
|
1
|
+
import { $r as ConnectedAccountRetrieveResponse, Gr as ConnectedAccountDeleteParams, Hr as ConnectedAccountCompleteAuthResponse, Jr as ConnectedAccountListResponse, Kr as ConnectedAccountDeleteResponse, Qr as ConnectedAccountRefreshResponse, Ur as ConnectedAccountCreateParams, Vr as ConnectedAccountCompleteAuthParams, Wr as ConnectedAccountCreateResponse, Xr as ConnectedAccountPatchResponse, Yr as ConnectedAccountPatchParams, Zr as ConnectedAccountRefreshParams, ei as ConnectedAccountRevokeResponse, ii as makeConnectedAccounts, ni as ConnectedAccountUpdateStatusResponse, qr as ConnectedAccountListParams, ri as ConnectedAccounts, ti as ConnectedAccountUpdateStatusParams } from "../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { ConnectedAccountCompleteAuthParams, ConnectedAccountCompleteAuthResponse, ConnectedAccountCreateParams, ConnectedAccountCreateResponse, ConnectedAccountDeleteParams, ConnectedAccountDeleteResponse, ConnectedAccountListParams, ConnectedAccountListResponse, ConnectedAccountPatchParams, ConnectedAccountPatchResponse, ConnectedAccountRefreshParams, ConnectedAccountRefreshResponse, ConnectedAccountRetrieveResponse, ConnectedAccountRevokeResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse, ConnectedAccounts, makeConnectedAccounts };
|
|
@@ -1,3 +1,71 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../generated-operations-BNRn8az6.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
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
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
14
|
+
const makeConnectedAccounts = (client) => ({
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return client.post("/api/v3.1/connected_accounts", withOperation(OP_CREATE, {
|
|
17
|
+
body,
|
|
18
|
+
...options
|
|
19
|
+
}));
|
|
20
|
+
},
|
|
21
|
+
retrieve(nanoid, options) {
|
|
22
|
+
return client.get(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_RETRIEVE, { ...options }));
|
|
23
|
+
},
|
|
24
|
+
list(query = {}, options) {
|
|
25
|
+
return client.get("/api/v3.1/connected_accounts", withOperation(OP_LIST, {
|
|
26
|
+
query,
|
|
27
|
+
...options
|
|
28
|
+
}));
|
|
29
|
+
},
|
|
30
|
+
delete(nanoid, query = {}, options) {
|
|
31
|
+
return client.delete(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_DELETE, {
|
|
32
|
+
query,
|
|
33
|
+
...options
|
|
34
|
+
}));
|
|
35
|
+
},
|
|
36
|
+
completeAuth(body, options) {
|
|
37
|
+
return client.post("/api/v3.1/connected_accounts/complete_auth", withOperation(OP_COMPLETE_AUTH, {
|
|
38
|
+
body,
|
|
39
|
+
...options
|
|
40
|
+
}));
|
|
41
|
+
},
|
|
42
|
+
patch(nanoid, body = {}, options) {
|
|
43
|
+
return client.patch(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_PATCH, {
|
|
44
|
+
body,
|
|
45
|
+
...options
|
|
46
|
+
}));
|
|
47
|
+
},
|
|
48
|
+
refresh(nanoid, params = {}, options) {
|
|
49
|
+
const { query_redirect_url, body_redirect_url, ...body } = params ?? {};
|
|
50
|
+
return client.post(path`/api/v3.1/connected_accounts/${nanoid}/refresh`, withOperation(OP_REFRESH, {
|
|
51
|
+
query: { redirect_url: query_redirect_url },
|
|
52
|
+
body: {
|
|
53
|
+
...body,
|
|
54
|
+
redirect_url: body_redirect_url
|
|
55
|
+
},
|
|
56
|
+
...options
|
|
57
|
+
}));
|
|
58
|
+
},
|
|
59
|
+
revoke(nanoid, options) {
|
|
60
|
+
return client.post(path`/api/v3.1/connected_accounts/${nanoid}/revoke`, withOperation(OP_REVOKE, { ...options }));
|
|
61
|
+
},
|
|
62
|
+
updateStatus(nanoID, body, options) {
|
|
63
|
+
return client.patch(path`/api/v3.1/connected_accounts/${nanoID}/status`, withOperation(OP_UPDATE_STATUS, {
|
|
64
|
+
body,
|
|
65
|
+
...options
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
export { makeConnectedAccounts };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { C as CustomUpsertResponse, S as CustomUpsertParams, _ as Custom, b as CustomSyncParams, v as CustomDeleteToolkitParams, w as makeCustom, x as CustomSyncResponse, y as CustomDeleteToolkitResponse } from "../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { Custom, CustomDeleteToolkitParams, CustomDeleteToolkitResponse, CustomSyncParams, CustomSyncResponse, CustomUpsertParams, CustomUpsertResponse, makeCustom };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../generated-operations-BNRn8az6.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/compat/resources/custom.ts
|
|
4
|
+
const OP_DELETE_TOOLKIT = generatedOperation("custom.deleteToolkit");
|
|
5
|
+
const OP_SYNC = generatedOperation("custom.sync");
|
|
6
|
+
const OP_UPSERT = generatedOperation("custom.upsert");
|
|
7
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
8
|
+
const makeCustom = (client) => ({
|
|
9
|
+
deleteToolkit(slug, query = {}, options) {
|
|
10
|
+
return client.delete(path`/api/v3.1/custom/toolkits/${slug}`, withOperation(OP_DELETE_TOOLKIT, {
|
|
11
|
+
query,
|
|
12
|
+
...options
|
|
13
|
+
}));
|
|
14
|
+
},
|
|
15
|
+
sync(body, options) {
|
|
16
|
+
return client.post("/api/v3.1/custom/toolkits/sync", withOperation(OP_SYNC, {
|
|
17
|
+
body,
|
|
18
|
+
...options
|
|
19
|
+
}));
|
|
20
|
+
},
|
|
21
|
+
upsert(body, options) {
|
|
22
|
+
return client.post("/api/v3.1/custom/toolkits/upsert", withOperation(OP_UPSERT, {
|
|
23
|
+
body,
|
|
24
|
+
...options
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { makeCustom };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ai as FileCreatePresignedURLParams, ci as FileListResponse, li as Files, oi as FileCreatePresignedURLResponse, si as FileListParams, ui as makeFiles } from "../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { FileCreatePresignedURLParams, FileCreatePresignedURLResponse, FileListParams, FileListResponse, Files, makeFiles };
|
package/dist/resources/files.mjs
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../generated-operations-BNRn8az6.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/files.ts
|
|
4
|
+
const OP_LIST = generatedOperation("files.list");
|
|
5
|
+
const OP_CREATE_PRESIGNED_URL = generatedOperation("files.createPresignedURL");
|
|
6
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
7
|
+
const makeFiles = (client) => ({
|
|
8
|
+
list(query = {}, options) {
|
|
9
|
+
return client.get("/api/v3.1/files/list", withOperation(OP_LIST, {
|
|
10
|
+
query,
|
|
11
|
+
...options
|
|
12
|
+
}));
|
|
13
|
+
},
|
|
14
|
+
createPresignedURL(body, options) {
|
|
15
|
+
return client.post("/api/v3.1/files/upload/request", withOperation(OP_CREATE_PRESIGNED_URL, {
|
|
16
|
+
body,
|
|
17
|
+
...options
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { makeFiles };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../generated-operations-BNRn8az6.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/compat/resources/keyring.ts
|
|
4
|
+
const OP_LIST_TRANSFER_KEYS = generatedOperation("keyring.listTransferKeys");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeKeyring = (client) => ({ listTransferKeys(options) {
|
|
7
|
+
return client.get("/api/v3.1/keyring/transfer_keys", withOperation(OP_LIST_TRANSFER_KEYS, { ...options }));
|
|
8
|
+
} });
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { makeKeyring };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Link,
|
|
1
|
+
import { Br as makeLink, Lr as Link, Rr as LinkCreateParams, zr as LinkCreateResponse } from "../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { Link, LinkCreateParams, LinkCreateResponse, makeLink };
|
package/dist/resources/link.mjs
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../generated-operations-BNRn8az6.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/link.ts
|
|
4
|
+
const OP_CREATE = generatedOperation("link.create");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeLink = (client) => ({ create(body, options) {
|
|
7
|
+
return client.post("/api/v3.1/connected_accounts/link", withOperation(OP_CREATE, {
|
|
8
|
+
body,
|
|
9
|
+
...options
|
|
10
|
+
}));
|
|
11
|
+
} });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { makeLink };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Logs };
|
|
1
|
+
import { Gt as LogCreateToolExecutionParams, Jt as Logs, Kt as LogCreateToolExecutionResponse, Yt as makeLogs, qt as LogRetrieveToolExecutionResponse } from "../../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { LogCreateToolExecutionParams, LogCreateToolExecutionResponse, LogRetrieveToolExecutionResponse, Logs, makeLogs };
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../../generated-operations-BNRn8az6.mjs";
|
|
2
|
+
import { makeTriggers } from "./triggers.mjs";
|
|
3
|
+
import { makeTools } from "./tools.mjs";
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
//#region src/compat/resources/logs/logs.ts
|
|
6
|
+
const OP_CREATE_TOOL_EXECUTION = generatedOperation("logs.createToolExecution");
|
|
7
|
+
const OP_RETRIEVE_TOOL_EXECUTION = generatedOperation("logs.retrieveToolExecution");
|
|
8
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
9
|
+
const makeLogs = (client) => ({
|
|
10
|
+
triggers: makeTriggers(client),
|
|
11
|
+
tools: makeTools(client),
|
|
12
|
+
createToolExecution(body = {}, options) {
|
|
13
|
+
return client.post("/api/v3.1/logs/tool_execution", withOperation(OP_CREATE_TOOL_EXECUTION, {
|
|
14
|
+
body,
|
|
15
|
+
...options
|
|
16
|
+
}));
|
|
17
|
+
},
|
|
18
|
+
retrieveToolExecution(id, options) {
|
|
19
|
+
return client.get(path`/api/v3.1/logs/tool_execution/${id}`, withOperation(OP_RETRIEVE_TOOL_EXECUTION, { ...options }));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { makeLogs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ToolListFieldsResponse, ToolListParams, ToolListResponse, ToolRetrieveResponse, Tools };
|
|
1
|
+
import { $t as ToolRetrieveResponse, Qt as ToolListResponse, Xt as ToolListFieldsResponse, Zt as ToolListParams, en as Tools, tn as makeTools } from "../../api-key-revocation-BB3FTdR3.mjs";
|
|
2
|
+
export { ToolListFieldsResponse, ToolListParams, ToolListResponse, ToolRetrieveResponse, Tools, makeTools };
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../../generated-operations-BNRn8az6.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/logs/tools.ts
|
|
4
|
+
const OP_RETRIEVE = generatedOperation("logs.tools.retrieve");
|
|
5
|
+
const OP_LIST = generatedOperation("logs.tools.list");
|
|
6
|
+
const OP_LIST_FIELDS = generatedOperation("logs.tools.listFields");
|
|
7
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
8
|
+
const makeTools = (client) => ({
|
|
9
|
+
retrieve(id, options) {
|
|
10
|
+
return client.get(path`/api/v3.1/internal/action_execution/log/${id}`, withOperation(OP_RETRIEVE, { ...options }));
|
|
11
|
+
},
|
|
12
|
+
list(body, options) {
|
|
13
|
+
return client.post("/api/v3.1/internal/action_execution/logs", withOperation(OP_LIST, {
|
|
14
|
+
body,
|
|
15
|
+
...options
|
|
16
|
+
}));
|
|
17
|
+
},
|
|
18
|
+
listFields(options) {
|
|
19
|
+
return client.get("/api/v3.1/internal/action_execution/fields", withOperation(OP_LIST_FIELDS, { ...options }));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { makeTools };
|