@composio/client 2.0.0-rc.9 → 2.0.1
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/LICENSE +202 -0
- package/MIGRATION.md +164 -0
- package/README.md +503 -39
- package/dist/{session-configs-DC9dblKH.d.mts → _internal-tzmCmYGo.d.mts} +2495 -1747
- package/dist/_internal-u674nU6P.d.mts +281 -0
- package/dist/effect/internal.d.mts +9 -0
- package/dist/effect/internal.mjs +1 -0
- package/dist/effect/schemas/_internal/cli/create-codact-failure.d.mts +9 -0
- package/dist/effect/schemas/_internal/cli/create-codact-failure.mjs +17 -0
- package/dist/effect/schemas/_internal/cli/create-session.d.mts +12 -0
- package/dist/effect/schemas/_internal/cli/create-session.mjs +26 -0
- package/dist/effect/schemas/_internal/cli/get-session.d.mts +18 -0
- package/dist/effect/schemas/_internal/cli/get-session.mjs +48 -0
- package/dist/effect/schemas/_internal/cli/realtime/auth.d.mts +9 -0
- package/dist/effect/schemas/_internal/cli/realtime/auth.mjs +11 -0
- package/dist/effect/schemas/_internal/cli/realtime/credentials.d.mts +10 -0
- package/dist/effect/schemas/_internal/cli/realtime/credentials.mjs +12 -0
- package/dist/effect/schemas/_internal/consumer/permissions/resolve.d.mts +13 -0
- package/dist/effect/schemas/_internal/consumer/permissions/resolve.mjs +20 -0
- package/dist/effect/schemas/_internal/logs/tools/list-fields.d.mts +13 -0
- package/dist/effect/schemas/_internal/logs/tools/list-fields.mjs +13 -0
- package/dist/effect/schemas/_internal/logs/tools/list.d.mts +28 -0
- package/dist/effect/schemas/_internal/logs/tools/list.mjs +33 -0
- package/dist/effect/schemas/_internal/logs/tools/retrieve.d.mts +60 -0
- package/dist/effect/schemas/_internal/logs/tools/retrieve.mjs +74 -0
- package/dist/effect/schemas/_internal/logs/triggers/list.d.mts +34 -0
- package/dist/effect/schemas/_internal/logs/triggers/list.mjs +12 -0
- package/dist/effect/schemas/_internal/logs/triggers/retrieve.d.mts +33 -0
- package/dist/effect/schemas/_internal/logs/triggers/retrieve.mjs +9 -0
- package/dist/effect/schemas/_internal/org/consumer/list-connected-toolkits.d.mts +8 -0
- package/dist/effect/schemas/_internal/org/consumer/list-connected-toolkits.mjs +8 -0
- package/dist/effect/schemas/_internal/org/consumer/project/resolve.d.mts +20 -0
- package/dist/effect/schemas/_internal/org/consumer/project/resolve.mjs +31 -0
- package/dist/effect/schemas/_internal/org/consumer/retrieve-config.d.mts +10 -0
- package/dist/effect/schemas/_internal/org/consumer/retrieve-config.mjs +18 -0
- 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 +55 -0
- package/dist/effect/schemas/auth-configs/list.mjs +67 -0
- package/dist/effect/schemas/auth-configs/retrieve.d.mts +49 -0
- package/dist/effect/schemas/auth-configs/retrieve.mjs +61 -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/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/block-reason.d.mts +12 -0
- package/dist/effect/schemas/components/block-reason.mjs +14 -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-blocked.d.mts +30 -0
- package/dist/effect/schemas/components/execute-blocked.mjs +24 -0
- package/dist/effect/schemas/components/execute-completed.d.mts +24 -0
- package/dist/effect/schemas/components/execute-completed.mjs +29 -0
- package/dist/effect/schemas/components/execute-failed.d.mts +24 -0
- package/dist/effect/schemas/components/execute-failed.mjs +29 -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/hook-result.d.mts +13 -0
- package/dist/effect/schemas/components/hook-result.mjs +15 -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-blocked.d.mts +24 -0
- package/dist/effect/schemas/components/proxy-execute-blocked.mjs +18 -0
- package/dist/effect/schemas/components/proxy-execute-completed.d.mts +25 -0
- package/dist/effect/schemas/components/proxy-execute-completed.mjs +38 -0
- package/dist/effect/schemas/components/session-create-response-config.d.mts +112 -0
- package/dist/effect/schemas/components/session-create-response-config.mjs +167 -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 +123 -0
- package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.mjs +178 -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/create-toolkit.d.mts +13 -0
- package/dist/effect/schemas/custom/create-toolkit.mjs +21 -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/update-toolkits.d.mts +8 -0
- package/dist/effect/schemas/custom/update-toolkits.mjs +8 -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/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/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 +45 -0
- package/dist/effect/schemas/session-configs/retrieve.mjs +103 -0
- package/dist/effect/schemas/tool-router/session/attach.d.mts +157 -0
- package/dist/effect/schemas/tool-router/session/attach.mjs +30 -0
- package/dist/effect/schemas/tool-router/session/config-history.d.mts +122 -0
- package/dist/effect/schemas/tool-router/session/config-history.mjs +8 -0
- package/dist/effect/schemas/tool-router/session/create.d.mts +157 -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 +75 -0
- package/dist/effect/schemas/tool-router/session/execute-meta.mjs +17 -0
- package/dist/effect/schemas/tool-router/session/execute.d.mts +75 -0
- package/dist/effect/schemas/tool-router/session/execute.mjs +17 -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 +157 -0
- package/dist/effect/schemas/tool-router/session/patch.mjs +30 -0
- package/dist/effect/schemas/tool-router/session/proxy-execute.d.mts +52 -0
- package/dist/effect/schemas/tool-router/session/proxy-execute.mjs +15 -0
- package/dist/effect/schemas/tool-router/session/retrieve.d.mts +157 -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 +37 -0
- package/dist/effect/schemas/trigger-instances/list-active.mjs +49 -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 +11 -0
- package/dist/effect/schemas/trigger-instances/upsert.mjs +22 -0
- package/dist/effect/schemas/triggers-types/list.d.mts +28 -0
- package/dist/effect/schemas/triggers-types/list.mjs +90 -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 +22 -0
- package/dist/effect/schemas/triggers-types/retrieve.mjs +84 -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 +9933 -0
- package/dist/effect/schemas.mjs +134 -0
- package/dist/effect.d.mts +509 -0
- package/dist/effect.mjs +1642 -0
- package/dist/environments-B7_vTiMY.d.mts +19 -0
- package/dist/environments-C4RXCqEC.mjs +230 -0
- package/dist/{error-DLB1uKM3.mjs → error-Bw7_G2NZ.mjs} +16 -8
- package/dist/{generated-operations-BDdFa2UY.mjs → generated-operations-D0eOQLVJ.mjs} +629 -275
- package/dist/index.d.mts +3 -5
- package/dist/index.mjs +132 -425
- package/dist/internal.d.mts +9 -0
- package/dist/internal.mjs +1 -0
- package/dist/pagination-rules-CMnBwktJ.mjs +36 -0
- package/dist/pagination.mjs +5 -9
- package/dist/resources/_internal/_internal.d.mts +2 -0
- package/dist/resources/_internal/_internal.mjs +16 -0
- package/dist/resources/_internal/cli/cli.d.mts +2 -0
- package/dist/resources/_internal/cli/cli.mjs +33 -0
- package/dist/resources/_internal/cli/realtime.d.mts +2 -0
- package/dist/resources/_internal/cli/realtime.mjs +20 -0
- package/dist/resources/_internal/cli.d.mts +2 -0
- package/dist/resources/_internal/cli.mjs +1 -0
- package/dist/resources/_internal/consumer/consumer.d.mts +2 -0
- package/dist/resources/_internal/consumer/consumer.mjs +8 -0
- package/dist/resources/_internal/consumer/permissions.d.mts +2 -0
- package/dist/resources/_internal/consumer/permissions.mjs +14 -0
- package/dist/resources/_internal/consumer.d.mts +2 -0
- package/dist/resources/_internal/consumer.mjs +1 -0
- package/dist/resources/_internal/logs/logs.d.mts +2 -0
- package/dist/resources/_internal/logs/logs.mjs +12 -0
- package/dist/resources/_internal/logs/tools.d.mts +2 -0
- package/dist/resources/_internal/logs/tools.mjs +24 -0
- package/dist/resources/_internal/logs/triggers.d.mts +2 -0
- package/dist/resources/_internal/logs/triggers.mjs +20 -0
- package/dist/resources/_internal/logs.d.mts +2 -0
- package/dist/resources/_internal/logs.mjs +1 -0
- package/dist/resources/_internal/org/consumer/consumer.d.mts +2 -0
- package/dist/resources/_internal/org/consumer/consumer.mjs +26 -0
- package/dist/resources/_internal/org/consumer/project.d.mts +2 -0
- package/dist/resources/_internal/org/consumer/project.mjs +15 -0
- package/dist/resources/_internal/org/consumer.d.mts +2 -0
- package/dist/resources/_internal/org/consumer.mjs +1 -0
- package/dist/resources/_internal/org/org.d.mts +2 -0
- package/dist/resources/_internal/org/org.mjs +8 -0
- package/dist/resources/_internal/org.d.mts +2 -0
- package/dist/resources/_internal/org.mjs +1 -0
- package/dist/resources/_internal.d.mts +2 -0
- package/dist/resources/_internal.mjs +1 -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/connected-accounts.d.mts +2 -2
- package/dist/resources/connected-accounts.mjs +70 -2
- package/dist/resources/custom.d.mts +2 -2
- package/dist/resources/custom.mjs +43 -2
- package/dist/resources/files.d.mts +2 -2
- package/dist/resources/files.mjs +22 -2
- package/dist/resources/keyring.d.mts +2 -2
- package/dist/resources/keyring.mjs +10 -2
- 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 +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/org.d.mts +2 -2
- package/dist/resources/org/org.mjs +21 -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 -2
- package/dist/resources/session-configs.mjs +8 -12
- 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 +55 -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 +42 -34
- package/dist/api-key-revocation-C9gI3mxD.mjs +0 -25
- package/dist/auth-configs-AfPOIrp_.mjs +0 -54
- package/dist/auth-mNBmShhc.mjs +0 -17
- package/dist/clanker-DuDWRKms.mjs +0 -24
- package/dist/cli-BL3iy1cn.mjs +0 -45
- package/dist/config-BLBbhLe1.mjs +0 -10
- package/dist/config-DnyMhILW.d.mts +0 -9
- package/dist/connected-accounts-CDAYy93Y.mjs +0 -82
- package/dist/consumer-xMnRU0C0.mjs +0 -34
- package/dist/custom-CG287eyS.mjs +0 -24
- package/dist/custom-D5-KtFkx.mjs +0 -31
- package/dist/files-7nQzcAPu.mjs +0 -49
- package/dist/files-DfXyjBsv.mjs +0 -31
- package/dist/generate-Deely-Rs.mjs +0 -24
- package/dist/keyring-BU1WNke6.mjs +0 -17
- package/dist/link-BgM_kX73.mjs +0 -23
- package/dist/logs-CvGKikGY.mjs +0 -38
- package/dist/manage-D3woWCHa.mjs +0 -28
- package/dist/mcp-C9lPgg0I.mjs +0 -91
- package/dist/migration-CBhnoN-Y.mjs +0 -10
- package/dist/migration-CKGKuRO3.d.mts +0 -9
- package/dist/org-D490cmfQ.mjs +0 -45
- package/dist/owner-DUnkjEA9.mjs +0 -17
- package/dist/project-61Vi9ABS.mjs +0 -47
- package/dist/project-BmLu0B1A.mjs +0 -22
- package/dist/project-BoZ_FkAd.mjs +0 -25
- package/dist/project-DJCRMUWP.mjs +0 -29
- package/dist/realtime-D92CAeH1.mjs +0 -28
- package/dist/resources/auth/index.d.mts +0 -2
- package/dist/resources/auth/index.mjs +0 -4
- package/dist/resources/cli/cli.d.mts +0 -2
- package/dist/resources/cli/cli.mjs +0 -3
- package/dist/resources/cli/index.d.mts +0 -2
- package/dist/resources/cli/index.mjs +0 -4
- package/dist/resources/cli/realtime.d.mts +0 -2
- package/dist/resources/cli/realtime.mjs +0 -3
- package/dist/resources/cli.d.mts +0 -2
- package/dist/resources/cli.mjs +0 -5
- 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/logs/tools.d.mts +0 -2
- package/dist/resources/logs/tools.mjs +0 -3
- package/dist/resources/logs/triggers.d.mts +0 -2
- package/dist/resources/logs/triggers.mjs +0 -3
- 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/clanker.d.mts +0 -2
- package/dist/resources/org/clanker.mjs +0 -3
- package/dist/resources/org/consumer/consumer.d.mts +0 -2
- package/dist/resources/org/consumer/consumer.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/consumer/project.d.mts +0 -2
- package/dist/resources/org/consumer/project.mjs +0 -3
- package/dist/resources/org/consumer.d.mts +0 -2
- package/dist/resources/org/consumer.mjs +0 -5
- 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-CuxeTn6B.mjs +0 -22
- package/dist/session-Ko7BIjgq.mjs +0 -110
- package/dist/tool-router-CBKKosNd.mjs +0 -14
- package/dist/toolkits-3DF2HJzj.mjs +0 -62
- package/dist/tools-CHZz5vhP.mjs +0 -33
- package/dist/tools-CZ866I6_.mjs +0 -68
- package/dist/trigger-instances-Db9jhHWY.mjs +0 -35
- package/dist/triggers-CDhM0b24.mjs +0 -28
- package/dist/triggers-types-C6SEunIK.mjs +0 -34
- package/dist/usage-7j_ne9rG.mjs +0 -31
- package/dist/usage-CE6S407C.mjs +0 -31
- package/dist/webhook-endpoints-DWS1Ycp6.mjs +0 -51
- package/dist/webhook-subscriptions-DgL5Qp1f.mjs +0 -55
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { A as PermissionsResolveParams, C as TriggerListResponse, Da as AuthOf, F as CliCreateCodactFailureResponse, H as RealtimeAuthParams, I as CliCreateSessionParams, L as CliCreateSessionResponse, P as CliCreateCodactFailureParams, Pa as APIErrorBody, R as CliGetSessionParams, S as TriggerListParams, U as RealtimeAuthResponse, W as RealtimeCredentialsResponse, Xa as HeadersLike, _ as ToolListParams, c as ConsumerRetrieveConfigResponse, d as ProjectResolveParams, f as ProjectResolveResponse, g as ToolListFieldsResponse, j as PermissionsResolveResponse, o as ConsumerListConnectedToolkitsParams, s as ConsumerListConnectedToolkitsResponse, v as ToolListResponse, w as TriggerRetrieveResponse, y as ToolRetrieveResponse, z as CliGetSessionResponse } from "./_internal-tzmCmYGo.mjs";
|
|
2
|
+
import { Effect, Redacted } from "effect";
|
|
3
|
+
import "effect/http/HttpClient";
|
|
4
|
+
import * as Schema from "effect/Schema";
|
|
5
|
+
//#region src/effect/errors.d.ts
|
|
6
|
+
/** The fields every error for a non-success HTTP response carries. */
|
|
7
|
+
interface APIErrorFields {
|
|
8
|
+
/** The message the compat client builds for the same response. */
|
|
9
|
+
readonly message: string;
|
|
10
|
+
/** The request method, upper-cased. */
|
|
11
|
+
readonly method: string;
|
|
12
|
+
/** The origin plus the operation template, or `/<custom>` for an undeclared path. */
|
|
13
|
+
readonly url: string;
|
|
14
|
+
/** HTTP status of the response. */
|
|
15
|
+
readonly status: number;
|
|
16
|
+
/**
|
|
17
|
+
* The request id the API assigned: the `x-request-id` response header first,
|
|
18
|
+
* the envelope's `request_id` otherwise.
|
|
19
|
+
*/
|
|
20
|
+
readonly requestId: string | undefined;
|
|
21
|
+
/** The body narrowed to the Composio error envelope, when it is one. */
|
|
22
|
+
readonly details: APIErrorBody['error'] | undefined;
|
|
23
|
+
/** The parsed JSON body, whatever its shape; `undefined` when it is not JSON. */
|
|
24
|
+
readonly body: unknown;
|
|
25
|
+
}
|
|
26
|
+
declare const BadRequestError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
27
|
+
readonly _tag: "@composio/client/BadRequestError";
|
|
28
|
+
} & Readonly<A>;
|
|
29
|
+
declare class BadRequestError extends BadRequestError_base<APIErrorFields> {}
|
|
30
|
+
declare const AuthenticationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
31
|
+
readonly _tag: "@composio/client/AuthenticationError";
|
|
32
|
+
} & Readonly<A>;
|
|
33
|
+
declare class AuthenticationError extends AuthenticationError_base<APIErrorFields> {}
|
|
34
|
+
declare const PermissionDeniedError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
35
|
+
readonly _tag: "@composio/client/PermissionDeniedError";
|
|
36
|
+
} & Readonly<A>;
|
|
37
|
+
declare class PermissionDeniedError extends PermissionDeniedError_base<APIErrorFields> {}
|
|
38
|
+
declare const NotFoundError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
39
|
+
readonly _tag: "@composio/client/NotFoundError";
|
|
40
|
+
} & Readonly<A>;
|
|
41
|
+
declare class NotFoundError extends NotFoundError_base<APIErrorFields> {}
|
|
42
|
+
declare const ConflictError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
43
|
+
readonly _tag: "@composio/client/ConflictError";
|
|
44
|
+
} & Readonly<A>;
|
|
45
|
+
declare class ConflictError extends ConflictError_base<APIErrorFields> {}
|
|
46
|
+
declare const UnprocessableEntityError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
47
|
+
readonly _tag: "@composio/client/UnprocessableEntityError";
|
|
48
|
+
} & Readonly<A>;
|
|
49
|
+
declare class UnprocessableEntityError extends UnprocessableEntityError_base<APIErrorFields> {}
|
|
50
|
+
declare const RateLimitError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
51
|
+
readonly _tag: "@composio/client/RateLimitError";
|
|
52
|
+
} & Readonly<A>;
|
|
53
|
+
declare class RateLimitError extends RateLimitError_base<APIErrorFields> {}
|
|
54
|
+
declare const InternalServerError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
55
|
+
readonly _tag: "@composio/client/InternalServerError";
|
|
56
|
+
} & Readonly<A>;
|
|
57
|
+
/** Any status of 500 and above. */
|
|
58
|
+
declare class InternalServerError extends InternalServerError_base<APIErrorFields> {}
|
|
59
|
+
declare const APIError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
60
|
+
readonly _tag: "@composio/client/APIError";
|
|
61
|
+
} & Readonly<A>;
|
|
62
|
+
/** A non-success status none of the other classes names. */
|
|
63
|
+
declare class APIError extends APIError_base<APIErrorFields> {}
|
|
64
|
+
declare const APIConnectionError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
65
|
+
readonly _tag: "@composio/client/APIConnectionError";
|
|
66
|
+
} & Readonly<A>;
|
|
67
|
+
/**
|
|
68
|
+
* The request never produced a response: the transport failed below HTTP.
|
|
69
|
+
*
|
|
70
|
+
* The transport's error is reduced to `reason` (which of its failure kinds it
|
|
71
|
+
* was) and `description` (its own text, or its cause's messages).
|
|
72
|
+
*/
|
|
73
|
+
declare class APIConnectionError extends APIConnectionError_base<{
|
|
74
|
+
readonly message: string;
|
|
75
|
+
readonly method: string;
|
|
76
|
+
readonly url: string;
|
|
77
|
+
readonly reason: string;
|
|
78
|
+
readonly description: string | undefined;
|
|
79
|
+
}> {}
|
|
80
|
+
declare const APIConnectionTimeoutError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
81
|
+
readonly _tag: "@composio/client/APIConnectionTimeoutError";
|
|
82
|
+
} & Readonly<A>;
|
|
83
|
+
/** An attempt outlived its time budget. */
|
|
84
|
+
declare class APIConnectionTimeoutError extends APIConnectionTimeoutError_base<{
|
|
85
|
+
readonly message: string;
|
|
86
|
+
readonly method: string;
|
|
87
|
+
readonly url: string;
|
|
88
|
+
}> {}
|
|
89
|
+
/** One thing wrong with a response body: where, and what kind of problem. */
|
|
90
|
+
interface DecodeIssue {
|
|
91
|
+
readonly path: ReadonlyArray<string | number>;
|
|
92
|
+
readonly kind: string;
|
|
93
|
+
}
|
|
94
|
+
declare const DecodeError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
95
|
+
readonly _tag: "@composio/client/DecodeError";
|
|
96
|
+
} & Readonly<A>;
|
|
97
|
+
/** A success response whose body is not what it claims to be. */
|
|
98
|
+
declare class DecodeError extends DecodeError_base<{
|
|
99
|
+
readonly message: string;
|
|
100
|
+
readonly method: string;
|
|
101
|
+
readonly url: string;
|
|
102
|
+
readonly status: number;
|
|
103
|
+
readonly requestId: string | undefined;
|
|
104
|
+
/** The operation's public chain (`toolkits.list`), or `undefined` for an undeclared path. */
|
|
105
|
+
readonly operation: string | undefined;
|
|
106
|
+
readonly issues: ReadonlyArray<DecodeIssue>;
|
|
107
|
+
}> {}
|
|
108
|
+
declare const ConfigurationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
109
|
+
readonly _tag: "@composio/client/ConfigurationError";
|
|
110
|
+
} & Readonly<A>;
|
|
111
|
+
/**
|
|
112
|
+
* The client or the call is set up in a way no request can be made from: a
|
|
113
|
+
* credentialed origin that cannot carry a credential, a path parameter that
|
|
114
|
+
* would rewrite the path, a body that does not serialize. Retrying cannot
|
|
115
|
+
* change the answer.
|
|
116
|
+
*/
|
|
117
|
+
declare class ConfigurationError extends ConfigurationError_base<{
|
|
118
|
+
readonly message: string;
|
|
119
|
+
}> {}
|
|
120
|
+
/** An error for a non-success HTTP response, of whichever status class. */
|
|
121
|
+
type APIStatusError = BadRequestError | AuthenticationError | PermissionDeniedError | NotFoundError | ConflictError | UnprocessableEntityError | RateLimitError | InternalServerError | APIError;
|
|
122
|
+
/** Every failure an operation of the Effect surface can end with. */
|
|
123
|
+
type ComposioError = APIStatusError | APIConnectionError | APIConnectionTimeoutError | DecodeError | ConfigurationError;
|
|
124
|
+
/**
|
|
125
|
+
* Whether a value is an error for a non-success HTTP response, of any status
|
|
126
|
+
* class. Structural, so it holds across duplicated copies of this module.
|
|
127
|
+
*/
|
|
128
|
+
declare const isAPIError: (value: unknown) => value is APIStatusError;
|
|
129
|
+
/** Whether a value is any error this surface produces. Structural, like {@link isAPIError}. */
|
|
130
|
+
declare const isComposioError: (value: unknown) => value is ComposioError;
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/effect/credentials.d.ts
|
|
133
|
+
type Key = string | Redacted.Redacted<string>;
|
|
134
|
+
type Provider = () => Key | PromiseLike<Key>;
|
|
135
|
+
/** A string or `Redacted` key, or a function returning one, called once per call. */
|
|
136
|
+
type Credential = Key | Provider;
|
|
137
|
+
type Auth = AuthOf<Credential>;
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/effect/decode.d.ts
|
|
140
|
+
/**
|
|
141
|
+
* What a client decodes with: an operation's public chain (`toolkits.list`) →
|
|
142
|
+
* a function that loads its response schema. `schemaLoaders`, the export of
|
|
143
|
+
* `@composio/client/effect/schemas`, is the table for every operation.
|
|
144
|
+
*/
|
|
145
|
+
type SchemaLoaders = Readonly<Record<string, () => Promise<Schema.Codec<unknown>>>>;
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/effect/request.d.ts
|
|
148
|
+
/**
|
|
149
|
+
* What the client's own requests add to a trace:
|
|
150
|
+
*
|
|
151
|
+
* - `'off'` — nothing. No span is opened for a request and no trace header is
|
|
152
|
+
* sent, so the client sends exactly the headers the Promise client sends.
|
|
153
|
+
* - `'span'` — Effect's `HttpClient` opens its client span around each request,
|
|
154
|
+
* a child of the span the call runs in. Nothing about it goes on the wire.
|
|
155
|
+
* - `'propagate'` — the span, also sent to the API as `b3` and `traceparent`.
|
|
156
|
+
*
|
|
157
|
+
* Only this client's requests are affected, and only ever toward less: a
|
|
158
|
+
* span asked for here is still subject to the application's own
|
|
159
|
+
* `HttpClient.TracerDisabledWhen` and `HttpClient.TracerPropagationEnabled`.
|
|
160
|
+
*/
|
|
161
|
+
type Tracing = 'off' | 'span' | 'propagate';
|
|
162
|
+
/** Per-call options: the last argument of every operation and raw method. */
|
|
163
|
+
interface RequestOptions {
|
|
164
|
+
/** Headers for this call; they win over the client's defaults, and `null` removes one. */
|
|
165
|
+
readonly headers?: HeadersLike;
|
|
166
|
+
/**
|
|
167
|
+
* Maximum retries for temporary failures on this call. Without it, a call
|
|
168
|
+
* whose method is idempotent (`GET`, `HEAD`, `OPTIONS`, `PUT`, `DELETE`)
|
|
169
|
+
* takes the client's, which defaults to 2, and any other call is sent once.
|
|
170
|
+
*/
|
|
171
|
+
readonly maxRetries?: number | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* Time budget for each attempt of this call, in milliseconds; a redirect
|
|
174
|
+
* chain shares one. Defaults to the client's, which defaults to one minute.
|
|
175
|
+
*/
|
|
176
|
+
readonly timeout?: number | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* Validates the success body against the operation's response schema, and
|
|
179
|
+
* fails with a `DecodeError` naming where it does not match. The value
|
|
180
|
+
* returned is the body as parsed either way: validation removes nothing.
|
|
181
|
+
* Defaults to the client's, which defaults to `false`.
|
|
182
|
+
*
|
|
183
|
+
* The schema is loaded on first use, through the `schemas` the client was
|
|
184
|
+
* constructed with; asking a client that was given none fails the call with
|
|
185
|
+
* a `ConfigurationError`. A raw call is validated when its path is a
|
|
186
|
+
* declared operation's, and has no schema to be held to otherwise.
|
|
187
|
+
*/
|
|
188
|
+
readonly decode?: boolean | undefined;
|
|
189
|
+
}
|
|
190
|
+
/** What a raw `get` accepts beside the per-call options. */
|
|
191
|
+
interface RawRequestOptions extends RequestOptions {
|
|
192
|
+
readonly query?: Record<string, unknown> | null | undefined;
|
|
193
|
+
}
|
|
194
|
+
/** What a raw `post`, `put`, `patch` or `delete` accepts beside the per-call options. */
|
|
195
|
+
interface RawBodyRequestOptions extends RawRequestOptions {
|
|
196
|
+
readonly body?: unknown;
|
|
197
|
+
}
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/effect/generated/resources/_internal/cli/realtime.d.ts
|
|
200
|
+
/** `client._internal.cli.realtime` on the Effect surface. */
|
|
201
|
+
interface Realtime {
|
|
202
|
+
readonly auth: (body: RealtimeAuthParams, options?: RequestOptions) => Effect.Effect<RealtimeAuthResponse, ComposioError>;
|
|
203
|
+
readonly credentials: (options?: RequestOptions) => Effect.Effect<RealtimeCredentialsResponse, ComposioError>;
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/effect/generated/resources/_internal/cli/cli.d.ts
|
|
207
|
+
/** `client._internal.cli` on the Effect surface. */
|
|
208
|
+
interface Cli {
|
|
209
|
+
readonly realtime: Realtime;
|
|
210
|
+
readonly createCodactFailure: (params: CliCreateCodactFailureParams, options?: RequestOptions) => Effect.Effect<CliCreateCodactFailureResponse, ComposioError>;
|
|
211
|
+
readonly createSession: (body?: CliCreateSessionParams | null | undefined, options?: RequestOptions) => Effect.Effect<CliCreateSessionResponse, ComposioError>;
|
|
212
|
+
readonly getSession: (query: CliGetSessionParams, options?: RequestOptions) => Effect.Effect<CliGetSessionResponse, ComposioError>;
|
|
213
|
+
}
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/effect/generated/resources/_internal/consumer/permissions.d.ts
|
|
216
|
+
/** `client._internal.consumer.permissions` on the Effect surface. */
|
|
217
|
+
interface Permissions {
|
|
218
|
+
readonly resolve: (body?: PermissionsResolveParams | null | undefined, options?: RequestOptions) => Effect.Effect<PermissionsResolveResponse, ComposioError>;
|
|
219
|
+
}
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/effect/generated/resources/_internal/consumer/consumer.d.ts
|
|
222
|
+
/** `client._internal.consumer` on the Effect surface. */
|
|
223
|
+
interface Consumer$1 {
|
|
224
|
+
readonly permissions: Permissions;
|
|
225
|
+
}
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/effect/generated/resources/_internal/logs/triggers.d.ts
|
|
228
|
+
/** `client._internal.logs.triggers` on the Effect surface. */
|
|
229
|
+
interface Triggers {
|
|
230
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
231
|
+
readonly retrieve: (id: string, options?: RequestOptions) => Effect.Effect<TriggerRetrieveResponse, ComposioError>;
|
|
232
|
+
readonly list: (body?: TriggerListParams | null | undefined, options?: RequestOptions) => Effect.Effect<TriggerListResponse, ComposioError>;
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region src/effect/generated/resources/_internal/logs/tools.d.ts
|
|
236
|
+
/** `client._internal.logs.tools` on the Effect surface. */
|
|
237
|
+
interface Tools {
|
|
238
|
+
readonly retrieve: (id: string, options?: RequestOptions) => Effect.Effect<ToolRetrieveResponse, ComposioError>;
|
|
239
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
240
|
+
readonly list: (body: ToolListParams, options?: RequestOptions) => Effect.Effect<ToolListResponse, ComposioError>;
|
|
241
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
242
|
+
readonly listFields: (options?: RequestOptions) => Effect.Effect<ToolListFieldsResponse, ComposioError>;
|
|
243
|
+
}
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/effect/generated/resources/_internal/logs/logs.d.ts
|
|
246
|
+
/** `client._internal.logs` on the Effect surface. */
|
|
247
|
+
interface Logs {
|
|
248
|
+
readonly triggers: Triggers;
|
|
249
|
+
readonly tools: Tools;
|
|
250
|
+
}
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region src/effect/generated/resources/_internal/org/consumer/project.d.ts
|
|
253
|
+
/** `client._internal.org.consumer.project` on the Effect surface. */
|
|
254
|
+
interface Project {
|
|
255
|
+
readonly resolve: (params: ProjectResolveParams, options?: RequestOptions) => Effect.Effect<ProjectResolveResponse, ComposioError>;
|
|
256
|
+
}
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/effect/generated/resources/_internal/org/consumer/consumer.d.ts
|
|
259
|
+
/** `client._internal.org.consumer` on the Effect surface. */
|
|
260
|
+
interface Consumer {
|
|
261
|
+
readonly project: Project;
|
|
262
|
+
readonly listConnectedToolkits: (params: ConsumerListConnectedToolkitsParams, options?: RequestOptions) => Effect.Effect<ConsumerListConnectedToolkitsResponse, ComposioError>;
|
|
263
|
+
readonly retrieveConfig: (options?: RequestOptions) => Effect.Effect<ConsumerRetrieveConfigResponse, ComposioError>;
|
|
264
|
+
}
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region src/effect/generated/resources/_internal/org/org.d.ts
|
|
267
|
+
/** `client._internal.org` on the Effect surface. */
|
|
268
|
+
interface Org {
|
|
269
|
+
readonly consumer: Consumer;
|
|
270
|
+
}
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/effect/generated/resources/_internal/_internal.d.ts
|
|
273
|
+
/** `client._internal` on the Effect surface. */
|
|
274
|
+
interface Internal {
|
|
275
|
+
readonly cli: Cli;
|
|
276
|
+
readonly consumer: Consumer$1;
|
|
277
|
+
readonly logs: Logs;
|
|
278
|
+
readonly org: Org;
|
|
279
|
+
}
|
|
280
|
+
//#endregion
|
|
281
|
+
export { PermissionDeniedError as C, isComposioError as D, isAPIError as E, NotFoundError as S, UnprocessableEntityError as T, ConfigurationError as _, Tracing as a, DecodeIssue as b, Credential as c, APIError as d, APIErrorFields as f, ComposioError as g, BadRequestError as h, RequestOptions as i, APIConnectionError as l, AuthenticationError as m, RawBodyRequestOptions as n, SchemaLoaders as o, APIStatusError as p, RawRequestOptions as r, Auth as s, Internal as t, APIConnectionTimeoutError as u, ConflictError as v, RateLimitError as w, InternalServerError as x, DecodeError as y };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/cli/create-codact-failure.d.ts
|
|
3
|
+
/** The 200 response of `POST /api/v3.1/cli/codact_failures`, which `client._internal.cli.createCodactFailure` answers with. */
|
|
4
|
+
declare const CliCreateCodactFailureResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly tracked: Schema.Boolean;
|
|
6
|
+
readonly id: Schema.String;
|
|
7
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CliCreateCodactFailureResponse };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/cli/create-codact-failure.ts
|
|
4
|
+
/** The 200 response of `POST /api/v3.1/cli/codact_failures`, which `client._internal.cli.createCodactFailure` answers with. */
|
|
5
|
+
const CliCreateCodactFailureResponse = Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"tracked": Schema.Boolean.annotate({
|
|
7
|
+
"description": "Whether the codact failure row was accepted for storage.",
|
|
8
|
+
"examples": [true]
|
|
9
|
+
}),
|
|
10
|
+
"id": Schema.String.annotate({
|
|
11
|
+
"description": "Unique identifier for the stored failure row.",
|
|
12
|
+
"examples": ["5f6f7a1d-72d1-4f7c-bf3a-2fd7421bc123"]
|
|
13
|
+
})
|
|
14
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { CliCreateCodactFailureResponse };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/cli/create-session.d.ts
|
|
3
|
+
/** The 201 response of `POST /api/v3.1/cli/create-session`, which `client._internal.cli.createSession` answers with. */
|
|
4
|
+
declare const CliCreateSessionResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly id: Schema.String;
|
|
6
|
+
readonly code: Schema.String;
|
|
7
|
+
readonly expiresAt: Schema.String;
|
|
8
|
+
readonly status: Schema.Literals<readonly ["pending", "linked"]>;
|
|
9
|
+
readonly scope: Schema.Literals<readonly ["project", "user"]>;
|
|
10
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { CliCreateSessionResponse };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/cli/create-session.ts
|
|
4
|
+
/** The 201 response of `POST /api/v3.1/cli/create-session`, which `client._internal.cli.createSession` answers with. */
|
|
5
|
+
const CliCreateSessionResponse = Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"id": Schema.String.annotate({ "description": "Unique identifier for the CLI session. UUID v4 format used for tracking and retrieval." }),
|
|
7
|
+
"code": Schema.String.annotate({
|
|
8
|
+
"description": "The 6-character hexadecimal code used for CLI login",
|
|
9
|
+
"examples": ["ABC123"]
|
|
10
|
+
}),
|
|
11
|
+
"expiresAt": Schema.String.annotate({
|
|
12
|
+
"description": "The ISO timestamp when the session expires",
|
|
13
|
+
"examples": ["2023-01-01T12:00:00.000Z"]
|
|
14
|
+
}),
|
|
15
|
+
"status": Schema.Literals(["pending", "linked"]).annotate({
|
|
16
|
+
"description": "The current status of the session",
|
|
17
|
+
"examples": ["pending"]
|
|
18
|
+
}),
|
|
19
|
+
"scope": Schema.Literals(["project", "user"]).annotate({
|
|
20
|
+
"description": "The key scope for this session",
|
|
21
|
+
"examples": ["project"]
|
|
22
|
+
})
|
|
23
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { CliCreateSessionResponse };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/cli/get-session.d.ts
|
|
3
|
+
/** The 200 response of `GET /api/v3.1/cli/get-session`, which `client._internal.cli.getSession` answers with. */
|
|
4
|
+
declare const CliGetSessionResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly id: Schema.String;
|
|
6
|
+
readonly code: Schema.String;
|
|
7
|
+
readonly status: Schema.Literals<readonly ["pending", "linked"]>;
|
|
8
|
+
readonly expiresAt: Schema.String;
|
|
9
|
+
readonly account: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
10
|
+
readonly id: Schema.String;
|
|
11
|
+
readonly email: Schema.String;
|
|
12
|
+
readonly name: Schema.String;
|
|
13
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>;
|
|
14
|
+
readonly api_key: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
15
|
+
readonly scope: Schema.Union<readonly [Schema.Literals<readonly ["project", "user"]>, Schema.Null]>;
|
|
16
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { CliGetSessionResponse };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/cli/get-session.ts
|
|
4
|
+
/** The 200 response of `GET /api/v3.1/cli/get-session`, which `client._internal.cli.getSession` answers with. */
|
|
5
|
+
const CliGetSessionResponse = Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"id": Schema.String.annotate({
|
|
7
|
+
"description": "The CLI session ID, or the code for a lookup by code",
|
|
8
|
+
"examples": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
9
|
+
}),
|
|
10
|
+
"code": Schema.String.annotate({
|
|
11
|
+
"description": "The 6-character hexadecimal code used for CLI login",
|
|
12
|
+
"examples": ["ABC123"]
|
|
13
|
+
}),
|
|
14
|
+
"status": Schema.Literals(["pending", "linked"]).annotate({
|
|
15
|
+
"description": "The current status of the session",
|
|
16
|
+
"examples": ["pending"]
|
|
17
|
+
}),
|
|
18
|
+
"expiresAt": Schema.String.annotate({
|
|
19
|
+
"description": "The ISO timestamp when the session expires",
|
|
20
|
+
"examples": ["2023-01-01T12:00:00.000Z"]
|
|
21
|
+
}),
|
|
22
|
+
"account": Schema.Union([Schema.StructWithRest(Schema.Struct({
|
|
23
|
+
"id": Schema.String.annotate({
|
|
24
|
+
"description": "The ID of the linked account",
|
|
25
|
+
"examples": ["user_12345"]
|
|
26
|
+
}),
|
|
27
|
+
"email": Schema.String.annotate({
|
|
28
|
+
"description": "The email address of the linked account",
|
|
29
|
+
"examples": ["user@example.com"],
|
|
30
|
+
"format": "email"
|
|
31
|
+
}),
|
|
32
|
+
"name": Schema.String.annotate({
|
|
33
|
+
"description": "The display name of the linked account",
|
|
34
|
+
"examples": ["John Doe"]
|
|
35
|
+
})
|
|
36
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]), Schema.Null]).annotate({ "description": "Information about the linked account, if any. Null if the session status is \"pending\"." }),
|
|
37
|
+
"api_key": Schema.Union([Schema.String, Schema.Null]).annotate({
|
|
38
|
+
"description": "The API key for the linked account",
|
|
39
|
+
"examples": ["1234567890"]
|
|
40
|
+
}),
|
|
41
|
+
"scope": Schema.Union([Schema.Literals(["project", "user"]), Schema.Null]).annotate({
|
|
42
|
+
"description": "The key scope for this session",
|
|
43
|
+
"examples": ["project"]
|
|
44
|
+
})
|
|
45
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { CliGetSessionResponse };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/cli/realtime/auth.d.ts
|
|
3
|
+
/** The 200 response of `POST /api/v3.1/cli/realtime/auth`, which `client._internal.cli.realtime.auth` answers with. */
|
|
4
|
+
declare const RealtimeAuthResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly auth: Schema.String;
|
|
6
|
+
readonly channel_data: Schema.optionalKey<Schema.String>;
|
|
7
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { RealtimeAuthResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/cli/realtime/auth.ts
|
|
4
|
+
/** The 200 response of `POST /api/v3.1/cli/realtime/auth`, which `client._internal.cli.realtime.auth` answers with. */
|
|
5
|
+
const RealtimeAuthResponse = Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"auth": Schema.String.annotate({ "description": "The authentication string for Pusher" }),
|
|
7
|
+
"channel_data": Schema.optionalKey(Schema.String.annotate({ "description": "Channel data for presence channels" }))
|
|
8
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { RealtimeAuthResponse };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/cli/realtime/credentials.d.ts
|
|
3
|
+
/** The 200 response of `GET /api/v3.1/cli/realtime/credentials`, which `client._internal.cli.realtime.credentials` answers with. */
|
|
4
|
+
declare const RealtimeCredentialsResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly pusher_key: Schema.String;
|
|
6
|
+
readonly pusher_cluster: Schema.String;
|
|
7
|
+
readonly project_id: Schema.String;
|
|
8
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { RealtimeCredentialsResponse };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/cli/realtime/credentials.ts
|
|
4
|
+
/** The 200 response of `GET /api/v3.1/cli/realtime/credentials`, which `client._internal.cli.realtime.credentials` answers with. */
|
|
5
|
+
const RealtimeCredentialsResponse = Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"pusher_key": Schema.String.annotate({ "description": "The Pusher client key for subscribing to the trigger" }),
|
|
7
|
+
"pusher_cluster": Schema.String.annotate({ "description": "The Pusher cluster for subscribing to the trigger" }),
|
|
8
|
+
"project_id": Schema.String.annotate({ "description": "The project nanoId associated with the API Key provided. Used as part of the CLI channel name: private-cli-{project_id}" })
|
|
9
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RealtimeCredentialsResponse };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/consumer/permissions/resolve.d.ts
|
|
3
|
+
/** The 200 response of `POST /api/v3.1/consumer/permissions/resolve`, which `client._internal.consumer.permissions.resolve` answers with. */
|
|
4
|
+
declare const PermissionsResolveResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly experimental: Schema.StructWithRest<Schema.Struct<{
|
|
6
|
+
readonly permissions: Schema.StructWithRest<Schema.Struct<{
|
|
7
|
+
readonly default: Schema.Literals<readonly ["allow_all", "ask_every_call", "ask_once_per_session"]>;
|
|
8
|
+
readonly overrides: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Literals<readonly ["always_allow", "always_deny", "ask_once", "ask_always"]>>>;
|
|
9
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
10
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
11
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { PermissionsResolveResponse };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/consumer/permissions/resolve.ts
|
|
4
|
+
/** The 200 response of `POST /api/v3.1/consumer/permissions/resolve`, which `client._internal.consumer.permissions.resolve` answers with. */
|
|
5
|
+
const PermissionsResolveResponse = Schema.StructWithRest(Schema.Struct({ "experimental": Schema.StructWithRest(Schema.Struct({ "permissions": Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"default": Schema.Literals([
|
|
7
|
+
"allow_all",
|
|
8
|
+
"ask_every_call",
|
|
9
|
+
"ask_once_per_session"
|
|
10
|
+
]).annotate({ "description": "Default elicitation behavior when no override matches. `allow_all` runs every tool without prompting; `ask_every_call` prompts on each invocation; `ask_once_per_session` prompts once and remembers the answer for the rest of the session." }),
|
|
11
|
+
"overrides": Schema.optionalKey(Schema.Record(Schema.String, Schema.Literals([
|
|
12
|
+
"always_allow",
|
|
13
|
+
"always_deny",
|
|
14
|
+
"ask_once",
|
|
15
|
+
"ask_always"
|
|
16
|
+
])).annotate({ "description": "Per-tool overrides keyed by `${toolSlug}:${connectedAccountId ?? \"__none__\"}`, plus account-wide overrides keyed by `*:${connectedAccountId ?? \"__none__\"}`. Exact tool overrides take precedence over account-wide overrides. `always_allow` skips the prompt and runs the tool; `always_deny` blocks the tool; `ask_once` prompts once per session (allow/deny) and remembers; `ask_always` prompts on every call with allow-once/allow-session/deny, ignoring any cached session allow. Overrides take precedence over `default`." }))
|
|
17
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { PermissionsResolveResponse };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/logs/tools/list-fields.d.ts
|
|
3
|
+
/** The 200 response of `GET /api/v3.1/internal/action_execution/fields`, which `client._internal.logs.tools.listFields` answers with. */
|
|
4
|
+
declare const ToolListFieldsResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
6
|
+
readonly id: Schema.String;
|
|
7
|
+
readonly displayName: Schema.String;
|
|
8
|
+
readonly type: Schema.String;
|
|
9
|
+
readonly regex: Schema.optionalKey<Schema.String>;
|
|
10
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
11
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ToolListFieldsResponse };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/logs/tools/list-fields.ts
|
|
4
|
+
/** The 200 response of `GET /api/v3.1/internal/action_execution/fields`, which `client._internal.logs.tools.listFields` answers with. */
|
|
5
|
+
const ToolListFieldsResponse = Schema.StructWithRest(Schema.Struct({ "fields": Schema.Record(Schema.String, Schema.Array(Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"id": Schema.String.annotate({ "description": "The id of the field" }),
|
|
7
|
+
"displayName": Schema.String.annotate({ "description": "The display name of the field" }),
|
|
8
|
+
"type": Schema.String.annotate({ "description": "The type of the field" }),
|
|
9
|
+
"regex": Schema.optionalKey(Schema.String.annotate({ "description": "The regex of the field" }))
|
|
10
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]))) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ToolListFieldsResponse };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/logs/tools/list.d.ts
|
|
3
|
+
/** The 200 response of `POST /api/v3.1/internal/action_execution/logs`, which `client._internal.logs.tools.list` answers with. */
|
|
4
|
+
declare const ToolListResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly data: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
6
|
+
readonly id: Schema.String;
|
|
7
|
+
readonly actionKey: Schema.String;
|
|
8
|
+
readonly appKey: Schema.String;
|
|
9
|
+
readonly app: Schema.StructWithRest<Schema.Struct<{
|
|
10
|
+
readonly icon: Schema.String;
|
|
11
|
+
readonly name: Schema.String;
|
|
12
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
13
|
+
readonly connectedAccountId: Schema.String;
|
|
14
|
+
readonly entityId: Schema.String;
|
|
15
|
+
readonly status: Schema.Literals<readonly ["success", "failed"]>;
|
|
16
|
+
readonly executionTime: Schema.Finite;
|
|
17
|
+
readonly minimalResponse: Schema.String;
|
|
18
|
+
readonly metadata: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
19
|
+
readonly recipe_id: Schema.optionalKey<Schema.String>;
|
|
20
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
21
|
+
readonly credentialSource: Schema.optionalKey<Schema.Literals<readonly ["connected_account", "instant_account", "custom_auth", "no_auth"]>>;
|
|
22
|
+
readonly instantCharge: Schema.optionalKey<Schema.String>;
|
|
23
|
+
readonly createdAt: Schema.Finite;
|
|
24
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
25
|
+
readonly nextCursor: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
26
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ToolListResponse };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/logs/tools/list.ts
|
|
4
|
+
/** The 200 response of `POST /api/v3.1/internal/action_execution/logs`, which `client._internal.logs.tools.list` answers with. */
|
|
5
|
+
const ToolListResponse = Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"data": Schema.Array(Schema.StructWithRest(Schema.Struct({
|
|
7
|
+
"id": Schema.String,
|
|
8
|
+
"actionKey": Schema.String,
|
|
9
|
+
"appKey": Schema.String,
|
|
10
|
+
"app": Schema.StructWithRest(Schema.Struct({
|
|
11
|
+
"icon": Schema.String,
|
|
12
|
+
"name": Schema.String
|
|
13
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]),
|
|
14
|
+
"connectedAccountId": Schema.String,
|
|
15
|
+
"entityId": Schema.String,
|
|
16
|
+
"status": Schema.Literals(["success", "failed"]),
|
|
17
|
+
"executionTime": Schema.Finite,
|
|
18
|
+
"minimalResponse": Schema.String,
|
|
19
|
+
"metadata": Schema.optionalKey(Schema.StructWithRest(Schema.Struct({ "recipe_id": Schema.optionalKey(Schema.String) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))])),
|
|
20
|
+
"credentialSource": Schema.optionalKey(Schema.Literals([
|
|
21
|
+
"connected_account",
|
|
22
|
+
"instant_account",
|
|
23
|
+
"custom_auth",
|
|
24
|
+
"no_auth"
|
|
25
|
+
])),
|
|
26
|
+
"instantCharge": Schema.optionalKey(Schema.String.annotate({ "description": "Instant charge in USD for this tool, as an exact decimal string." })),
|
|
27
|
+
"createdAt": Schema.Finite
|
|
28
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))])),
|
|
29
|
+
"nextCursor": Schema.Union([Schema.Finite, Schema.Null])
|
|
30
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { ToolListResponse };
|