@pikku/addon-console 0.12.6 → 0.12.8
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/dist/.pikku/addon/pikku-addon-types.gen.d.ts +3 -3
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +6 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +2 -1
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +6 -6
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +78 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts.map +1 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.js +61 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.js.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +28 -31
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +15 -19
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +505 -184
- package/dist/.pikku/function/pikku-functions.gen.js +36 -2
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +3 -2
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -10
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.js +10 -0
- package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/pikku-services.gen.d.ts +12 -10
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +11 -8
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +109 -44
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +109 -44
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +31 -14
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.js +109 -43
- package/dist/.pikku/schemas/register.gen.js.map +1 -1
- package/dist/.pikku/schemas/schemas/AddonPackageInfo.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/AgentCredentialCheckInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AgentCredentialCheckOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AllMeta.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/CredentialDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialListUsersOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialSetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialSetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialStatusInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialStatusOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialUsersInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialUsersOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetAddonMetaOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/GetFunctionsMetaOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/GetOpenapiDetailInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetOpenapiDetailOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetOpenapisInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetOpenapisOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetWorkflowMetaByIdOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/InstallAddonInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/InstallAddonOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/InstallOpenapiAddonInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/InstallOpenapiAddonOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OauthConnectInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/ReadAgentSourceInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadAgentSourceOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadFunctionBodyInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadFunctionBodyOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadFunctionSourceInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadFunctionSourceOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateAgentConfigInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateAgentConfigOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateFunctionBodyInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateFunctionBodyOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateFunctionConfigInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateFunctionConfigOutput.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +36 -27
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +5 -18
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/src/functions/agent-credential-check.function.d.ts +26 -0
- package/dist/src/functions/agent-credential-check.function.d.ts.map +1 -0
- package/dist/src/functions/agent-credential-check.function.js +48 -0
- package/dist/src/functions/agent-credential-check.function.js.map +1 -0
- package/dist/src/functions/credential-delete.function.d.ts +17 -0
- package/dist/src/functions/credential-delete.function.d.ts.map +1 -0
- package/dist/src/functions/credential-delete.function.js +15 -0
- package/dist/src/functions/credential-delete.function.js.map +1 -0
- package/dist/src/functions/credential-get.function.d.ts +17 -0
- package/dist/src/functions/credential-get.function.d.ts.map +1 -0
- package/dist/src/functions/credential-get.function.js +15 -0
- package/dist/src/functions/credential-get.function.js.map +1 -0
- package/dist/src/functions/credential-list-users.function.d.ts +12 -0
- package/dist/src/functions/credential-list-users.function.d.ts.map +1 -0
- package/dist/src/functions/credential-list-users.function.js +25 -0
- package/dist/src/functions/credential-list-users.function.js.map +1 -0
- package/dist/src/functions/credential-set.function.d.ts +20 -0
- package/dist/src/functions/credential-set.function.d.ts.map +1 -0
- package/dist/src/functions/credential-set.function.js +15 -0
- package/dist/src/functions/credential-set.function.js.map +1 -0
- package/dist/src/functions/credential-status.function.d.ts +17 -0
- package/dist/src/functions/credential-status.function.d.ts.map +1 -0
- package/dist/src/functions/credential-status.function.js +18 -0
- package/dist/src/functions/credential-status.function.js.map +1 -0
- package/dist/src/functions/credential-users.function.d.ts +14 -0
- package/dist/src/functions/credential-users.function.d.ts.map +1 -0
- package/dist/src/functions/credential-users.function.js +15 -0
- package/dist/src/functions/credential-users.function.js.map +1 -0
- package/dist/src/functions/delete-agent-thread.function.d.ts.map +1 -1
- package/dist/src/functions/delete-agent-thread.function.js +2 -1
- package/dist/src/functions/delete-agent-thread.function.js.map +1 -1
- package/dist/src/functions/delete-workflow-run.function.d.ts.map +1 -1
- package/dist/src/functions/delete-workflow-run.function.js +2 -1
- package/dist/src/functions/delete-workflow-run.function.js.map +1 -1
- package/dist/src/functions/get-agent-thread-messages.function.d.ts.map +1 -1
- package/dist/src/functions/get-agent-thread-messages.function.js +2 -1
- package/dist/src/functions/get-agent-thread-messages.function.js.map +1 -1
- package/dist/src/functions/get-agent-thread-runs.function.d.ts.map +1 -1
- package/dist/src/functions/get-agent-thread-runs.function.js +2 -1
- package/dist/src/functions/get-agent-thread-runs.function.js.map +1 -1
- package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -1
- package/dist/src/functions/get-agent-threads.function.js +2 -1
- package/dist/src/functions/get-agent-threads.function.js.map +1 -1
- package/dist/src/functions/get-ai-workflows.function.d.ts.map +1 -1
- package/dist/src/functions/get-ai-workflows.function.js +5 -4
- package/dist/src/functions/get-ai-workflows.function.js.map +1 -1
- package/dist/src/functions/get-channel-snippets.function.d.ts.map +1 -1
- package/dist/src/functions/get-channel-snippets.function.js +3 -3
- package/dist/src/functions/get-channel-snippets.function.js.map +1 -1
- package/dist/src/functions/get-functions-meta.function.d.ts.map +1 -1
- package/dist/src/functions/get-functions-meta.function.js +27 -4
- package/dist/src/functions/get-functions-meta.function.js.map +1 -1
- package/dist/src/functions/get-installed-addons.function.d.ts.map +1 -1
- package/dist/src/functions/get-installed-addons.function.js +9 -9
- package/dist/src/functions/get-installed-addons.function.js.map +1 -1
- package/dist/src/functions/get-installed-package.function.d.ts.map +1 -1
- package/dist/src/functions/get-installed-package.function.js +39 -51
- package/dist/src/functions/get-installed-package.function.js.map +1 -1
- package/dist/src/functions/get-openapi-detail.function.d.ts +53 -0
- package/dist/src/functions/get-openapi-detail.function.d.ts.map +1 -0
- package/dist/src/functions/get-openapi-detail.function.js +17 -0
- package/dist/src/functions/get-openapi-detail.function.js.map +1 -0
- package/dist/src/functions/get-openapis.function.d.ts +56 -0
- package/dist/src/functions/get-openapis.function.d.ts.map +1 -0
- package/dist/src/functions/get-openapis.function.js +20 -0
- package/dist/src/functions/get-openapis.function.js.map +1 -0
- package/dist/src/functions/get-schema.function.js +3 -3
- package/dist/src/functions/get-schema.function.js.map +1 -1
- package/dist/src/functions/get-workflow-meta-by-id.function.d.ts +6 -0
- package/dist/src/functions/get-workflow-meta-by-id.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-meta-by-id.function.js +4 -4
- package/dist/src/functions/get-workflow-meta-by-id.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run-history.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run-history.function.js +2 -1
- package/dist/src/functions/get-workflow-run-history.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run-names.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run-names.function.js +2 -1
- package/dist/src/functions/get-workflow-run-names.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run-steps.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run-steps.function.js +2 -1
- package/dist/src/functions/get-workflow-run-steps.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run.function.js +2 -1
- package/dist/src/functions/get-workflow-run.function.js.map +1 -1
- package/dist/src/functions/get-workflow-runs.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-runs.function.js +2 -1
- package/dist/src/functions/get-workflow-runs.function.js.map +1 -1
- package/dist/src/functions/get-workflow-version.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-version.function.js +2 -1
- package/dist/src/functions/get-workflow-version.function.js.map +1 -1
- package/dist/src/functions/install-addon.function.d.ts +23 -0
- package/dist/src/functions/install-addon.function.d.ts.map +1 -0
- package/dist/src/functions/install-addon.function.js +79 -0
- package/dist/src/functions/install-addon.function.js.map +1 -0
- package/dist/src/functions/install-openapi-addon.function.d.ts +23 -0
- package/dist/src/functions/install-openapi-addon.function.d.ts.map +1 -0
- package/dist/src/functions/install-openapi-addon.function.js +113 -0
- package/dist/src/functions/install-openapi-addon.function.js.map +1 -0
- package/dist/src/functions/oauth-connect.function.d.ts +3 -0
- package/dist/src/functions/oauth-connect.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-connect.function.js +16 -6
- package/dist/src/functions/oauth-connect.function.js.map +1 -1
- package/dist/src/functions/oauth-disconnect.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-disconnect.function.js +11 -5
- package/dist/src/functions/oauth-disconnect.function.js.map +1 -1
- package/dist/src/functions/oauth-exchange-tokens.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-exchange-tokens.function.js +9 -4
- package/dist/src/functions/oauth-exchange-tokens.function.js.map +1 -1
- package/dist/src/functions/oauth-refresh-token.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-refresh-token.function.js +4 -3
- package/dist/src/functions/oauth-refresh-token.function.js.map +1 -1
- package/dist/src/functions/oauth-status.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-status.function.js +16 -6
- package/dist/src/functions/oauth-status.function.js.map +1 -1
- package/dist/src/functions/oauth-test-token.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-test-token.function.js +4 -3
- package/dist/src/functions/oauth-test-token.function.js.map +1 -1
- package/dist/src/functions/read-agent-source.function.d.ts +17 -0
- package/dist/src/functions/read-agent-source.function.d.ts.map +1 -0
- package/dist/src/functions/read-agent-source.function.js +15 -0
- package/dist/src/functions/read-agent-source.function.js.map +1 -0
- package/dist/src/functions/read-function-body.function.d.ts +17 -0
- package/dist/src/functions/read-function-body.function.d.ts.map +1 -0
- package/dist/src/functions/read-function-body.function.js +16 -0
- package/dist/src/functions/read-function-body.function.js.map +1 -0
- package/dist/src/functions/read-function-source.function.d.ts +23 -0
- package/dist/src/functions/read-function-source.function.d.ts.map +1 -0
- package/dist/src/functions/read-function-source.function.js +15 -0
- package/dist/src/functions/read-function-source.function.js.map +1 -0
- package/dist/src/functions/stream-workflow-run.function.d.ts.map +1 -1
- package/dist/src/functions/stream-workflow-run.function.js +3 -2
- package/dist/src/functions/stream-workflow-run.function.js.map +1 -1
- package/dist/src/functions/update-agent-config.function.d.ts +21 -0
- package/dist/src/functions/update-agent-config.function.d.ts.map +1 -0
- package/dist/src/functions/update-agent-config.function.js +16 -0
- package/dist/src/functions/update-agent-config.function.js.map +1 -0
- package/dist/src/functions/update-function-body.function.d.ts +20 -0
- package/dist/src/functions/update-function-body.function.d.ts.map +1 -0
- package/dist/src/functions/update-function-body.function.js +16 -0
- package/dist/src/functions/update-function-body.function.js.map +1 -0
- package/dist/src/functions/update-function-config.function.d.ts +21 -0
- package/dist/src/functions/update-function-config.function.d.ts.map +1 -0
- package/dist/src/functions/update-function-config.function.js +16 -0
- package/dist/src/functions/update-function-config.function.js.map +1 -0
- package/dist/src/services/code-edit.service.d.ts +51 -0
- package/dist/src/services/code-edit.service.d.ts.map +1 -0
- package/dist/src/services/code-edit.service.js +299 -0
- package/dist/src/services/code-edit.service.js.map +1 -0
- package/dist/src/services/code-edit.service.test.d.ts +2 -0
- package/dist/src/services/code-edit.service.test.d.ts.map +1 -0
- package/dist/src/services/code-edit.service.test.js +375 -0
- package/dist/src/services/code-edit.service.test.js.map +1 -0
- package/dist/src/services/oauth.service.d.ts +1 -0
- package/dist/src/services/oauth.service.d.ts.map +1 -1
- package/dist/src/services/oauth.service.js.map +1 -1
- package/dist/src/services/wiring.service.d.ts +12 -222
- package/dist/src/services/wiring.service.d.ts.map +1 -1
- package/dist/src/services/wiring.service.js +30 -334
- package/dist/src/services/wiring.service.js.map +1 -1
- package/dist/src/services.d.ts.map +1 -1
- package/dist/src/services.js +18 -11
- package/dist/src/services.js.map +1 -1
- package/package.json +8 -10
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
- package/dist/src/index.d.ts +0 -16
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -15
- package/dist/src/index.js.map +0 -1
- package/dist/src/services/file-watcher.service.d.ts +0 -13
- package/dist/src/services/file-watcher.service.d.ts.map +0 -1
- package/dist/src/services/file-watcher.service.js +0 -31
- package/dist/src/services/file-watcher.service.js.map +0 -1
- package/dist/src/services/schema.service.d.ts +0 -10
- package/dist/src/services/schema.service.d.ts.map +0 -1
- package/dist/src/services/schema.service.js +0 -35
- package/dist/src/services/schema.service.js.map +0 -1
|
@@ -2,26 +2,29 @@
|
|
|
2
2
|
export const requiredSingletonServices = {
|
|
3
3
|
'addonService': true,
|
|
4
4
|
'agentRunService': true,
|
|
5
|
-
'aiAgentRunner':
|
|
6
|
-
'aiRunState':
|
|
7
|
-
'aiStorage':
|
|
5
|
+
'aiAgentRunner': true,
|
|
6
|
+
'aiRunState': true,
|
|
7
|
+
'aiStorage': true,
|
|
8
|
+
'codeEditService': true,
|
|
8
9
|
'config': true,
|
|
9
10
|
'content': false,
|
|
10
|
-
'
|
|
11
|
-
'
|
|
11
|
+
'credentialService': true,
|
|
12
|
+
'deploymentService': true,
|
|
12
13
|
'jwt': false,
|
|
13
14
|
'logger': true,
|
|
15
|
+
'metaService': true,
|
|
14
16
|
'oauthService': true,
|
|
15
17
|
'queueService': false,
|
|
16
|
-
'schedulerService':
|
|
18
|
+
'schedulerService': true,
|
|
17
19
|
'schema': true,
|
|
18
|
-
'schemaService': true,
|
|
19
20
|
'secrets': true,
|
|
20
21
|
'variables': true,
|
|
21
22
|
'wiringService': true,
|
|
22
23
|
'workflowRunService': true,
|
|
23
|
-
'workflowService':
|
|
24
|
+
'workflowService': true,
|
|
24
25
|
};
|
|
25
26
|
// Wire services map: true if required, false if available but unused
|
|
26
27
|
export const requiredWireServices = {};
|
|
28
|
+
// Services this addon needs from the parent project
|
|
29
|
+
export const requiredParentServices = ["variables", "metaService", "aiAgentRunner", "schedulerService", "agentRunService", "workflowService", "workflowRunService", "aiStorage", "aiRunState", "deploymentService", "credentialService"];
|
|
27
30
|
//# sourceMappingURL=pikku-services.gen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;IACrB,YAAY,EAAE,IAAI;IAClB,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,IAAI;IACvB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,IAAI;IACxB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,eAAe,EAAE,IAAI;IACrB,oBAAoB,EAAE,IAAI;IAC1B,iBAAiB,EAAE,IAAI;CACf,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA;AAOV,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,WAAW,EAAC,aAAa,EAAC,eAAe,EAAC,kBAAkB,EAAC,iBAAiB,EAAC,iBAAiB,EAAC,oBAAoB,EAAC,WAAW,EAAC,YAAY,EAAC,mBAAmB,EAAC,mBAAmB,CAAU,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.19
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { CoreQueueWorker } from '@pikku/core/queue';
|
|
8
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
9
|
+
/**
|
|
10
|
+
* Type definition for queue workers that process background jobs.
|
|
11
|
+
*
|
|
12
|
+
* @template In - Input type for the queue job
|
|
13
|
+
* @template Out - Output type for the queue job
|
|
14
|
+
*/
|
|
15
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>;
|
|
16
|
+
/**
|
|
17
|
+
* Registers a queue worker with the Pikku framework.
|
|
18
|
+
* Workers process background jobs from queues.
|
|
19
|
+
*
|
|
20
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
21
|
+
*/
|
|
22
|
+
export declare const wireQueueWorker: (queueWorker: QueueWiring<any, any>) => void;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=pikku-queue-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,eAAe,EAA0C,MAAM,mBAAmB,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAElF;;;;;GAKG;AACH,KAAK,WAAW,CAAC,EAAE,EAAE,GAAG,IAAI,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC,CAAA;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,aAAa,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,SAEjE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.19
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue';
|
|
8
|
+
/**
|
|
9
|
+
* Registers a queue worker with the Pikku framework.
|
|
10
|
+
* Workers process background jobs from queues.
|
|
11
|
+
*
|
|
12
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
13
|
+
*/
|
|
14
|
+
export const wireQueueWorker = (queueWorker) => {
|
|
15
|
+
wireQueueWorkerCore(queueWorker);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=pikku-queue-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.js","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAmB,eAAe,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAW3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAkC,EAAE,EAAE;IACpE,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA"}
|
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.19
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
import type {
|
|
9
|
+
import type { AgentCredentialRequirement } from '../../src/functions/agent-credential-check.function.js'
|
|
10
|
+
import type { CredentialUserEntry } from '../../src/functions/credential-list-users.function.js'
|
|
10
11
|
import type { AddonPackageInfo } from '../../src/services/addon.service.js'
|
|
11
|
-
import type { FunctionMeta,
|
|
12
|
-
import type {
|
|
12
|
+
import type { FunctionMeta, FunctionRuntimeMeta, FunctionServicesMeta, FunctionWiresMeta, MiddlewareMetadata, PermissionMetadata, CommonWireMeta } from '../../../../core/dist/types/core.types.d.js'
|
|
13
|
+
import type { InstalledAddon } from '../../src/functions/get-installed-addons.function.js'
|
|
13
14
|
import type { WorkflowStepMeta, RpcStepMeta, BranchStepMeta, ParallelGroupStepMeta, FanoutStepMeta, ReturnStepMeta, InlineStepMeta, SleepStepMeta, CancelStepMeta, SwitchStepMeta, FilterStepMeta, ArrayPredicateStepMeta, SetStepMeta } from '../../../../core/dist/wirings/workflow/dsl/workflow-dsl.types.d.js'
|
|
14
15
|
import type { WorkflowContext } from '../../../../core/dist/wirings/workflow/workflow.types.d.js'
|
|
16
|
+
import type { AgentConfigChanges, FunctionConfigChanges } from '../../src/services/code-edit.service.js'
|
|
17
|
+
import type { AllMeta, ChannelSnippets } from '../../src/services/wiring.service.js'
|
|
15
18
|
import type { JSONSchema7 } from 'json-schema'
|
|
16
19
|
|
|
17
|
-
export type
|
|
18
|
-
export type
|
|
19
|
-
export type
|
|
20
|
-
export type
|
|
21
|
-
export type
|
|
22
|
-
export type
|
|
23
|
-
export type
|
|
24
|
-
export type
|
|
25
|
-
export type
|
|
26
|
-
export type
|
|
27
|
-
export type
|
|
28
|
-
export type
|
|
29
|
-
export type
|
|
30
|
-
export type OauthExchangeTokensInput = { code: string; state: string; }
|
|
31
|
-
export type OauthExchangeTokensOutput = { credentialName: string; }
|
|
32
|
-
export type OauthStatusInput = { credentialName: string; }
|
|
33
|
-
export type OauthStatusOutput = { connected: boolean; hasRefreshToken?: boolean; expiresAt?: number; isExpired?: boolean; }
|
|
20
|
+
export type AgentCredentialCheckInput = { agentName: string; userId?: string; }
|
|
21
|
+
export type AgentCredentialCheckOutput = { requirements: AgentCredentialRequirement[]; allConnected: boolean; }
|
|
22
|
+
export type CredentialDeleteInput = { name: string; userId?: string; }
|
|
23
|
+
export type CredentialDeleteOutput = { success: boolean; }
|
|
24
|
+
export type CredentialGetInput = { name: string; userId?: string; }
|
|
25
|
+
export type CredentialGetOutput = { value: unknown; }
|
|
26
|
+
export type CredentialListUsersOutput = { users: CredentialUserEntry[]; }
|
|
27
|
+
export type CredentialSetInput = { name: string; value: unknown; userId?: string; }
|
|
28
|
+
export type CredentialSetOutput = { success: boolean; }
|
|
29
|
+
export type CredentialStatusInput = { names: string[]; userId?: string; }
|
|
30
|
+
export type CredentialStatusOutput = { statuses: Record<string, boolean>; }
|
|
31
|
+
export type CredentialUsersInput = { name: string; }
|
|
32
|
+
export type CredentialUsersOutput = { userIds: string[]; }
|
|
34
33
|
export type DeleteAgentThreadInput = { threadId: string; }
|
|
35
34
|
export type DeleteAgentThreadOutput = { deleted: boolean; }
|
|
36
35
|
export type DeleteWorkflowRunInput = { runId: string; }
|
|
37
36
|
export type DeleteWorkflowRunOutput = { deleted: boolean; }
|
|
37
|
+
export type GetAddonCommunityPackageInput = { id: string; }
|
|
38
|
+
export type GetAddonIconInput = { alias: string; }
|
|
39
|
+
export type GetAddonInstalledPackageInput = { packageName: string; }
|
|
40
|
+
export type GetAddonMetaOutput = AddonPackageInfo[]
|
|
38
41
|
export type GetAgentThreadMessagesInput = { threadId: string; }
|
|
39
42
|
export type GetAgentThreadMessagesOutput = any[]
|
|
40
43
|
export type GetAgentThreadRunsInput = { threadId: string; }
|
|
@@ -43,23 +46,56 @@ export type GetAgentThreadsInput = { agentName?: string; limit?: number; offset?
|
|
|
43
46
|
export type GetAgentThreadsOutput = any[]
|
|
44
47
|
export type GetAIWorkflowsInput = { agentName?: string; }
|
|
45
48
|
export type GetAIWorkflowsOutput = { workflowName: string; graphHash: string; graph: any; }[]
|
|
49
|
+
export type GetChannelSnippetsInput = { channelName: string; }
|
|
50
|
+
export type GetFunctionsMetaOutput = FunctionMeta[]
|
|
51
|
+
export type GetInstalledAddonsOutput = InstalledAddon[]
|
|
52
|
+
export type GetOpenapiDetailInput = { name: string; }
|
|
53
|
+
export type GetOpenapiDetailOutput = { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; swaggerYamlUrl?: string; logo?: string; categories: string[]; tags: string[]; added?: string; updated?: string; }
|
|
54
|
+
export type GetOpenapisInput = { limit: number; offset: number; search?: string; }
|
|
55
|
+
export type GetOpenapisOutput = { apis: { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; logo?: string; }[]; total: number; nextCursor: number; }
|
|
56
|
+
export type GetSchemaInput = { schemaName: string; }
|
|
57
|
+
export type GetWorkflowMetaByIdInput = { workflowId: string; }
|
|
58
|
+
export type GetWorkflowMetaByIdOutput = CommonWireMeta & { name: string; steps: WorkflowStepMeta[]; context?: WorkflowContext; dsl?: boolean; inline?: boolean; expose?: boolean; }
|
|
46
59
|
export type GetWorkflowRunHistoryInput = { runId: string; }
|
|
47
60
|
export type GetWorkflowRunHistoryOutput = any[]
|
|
48
|
-
export type GetWorkflowRunNamesOutput = string[]
|
|
49
|
-
export type GetWorkflowRunStepsInput = { runId: string; }
|
|
50
|
-
export type GetWorkflowRunStepsOutput = any[]
|
|
51
61
|
export type GetWorkflowRunInput = { runId: string; }
|
|
62
|
+
export type GetWorkflowRunNamesOutput = string[]
|
|
52
63
|
export type GetWorkflowRunOutput = Record<string, unknown>
|
|
53
64
|
export type GetWorkflowRunsInput = { workflowName?: string; status?: string; limit?: number; offset?: number; }
|
|
54
65
|
export type GetWorkflowRunsOutput = any[]
|
|
66
|
+
export type GetWorkflowRunStepsInput = { runId: string; }
|
|
67
|
+
export type GetWorkflowRunStepsOutput = any[]
|
|
55
68
|
export type GetWorkflowVersionInput = { name: string; graphHash: string; }
|
|
56
69
|
export type GetWorkflowVersionOutput = { graph: any; source: string; }
|
|
70
|
+
export type InstallAddonInput = { packageName: string; namespace: string; version?: string; }
|
|
71
|
+
export type InstallAddonOutput = { success: boolean; message: string; }
|
|
72
|
+
export type InstallOpenapiAddonInput = { name: string; swaggerUrl: string; credential?: "apikey" | "bearer" | "oauth2"; }
|
|
73
|
+
export type InstallOpenapiAddonOutput = { success: boolean; message: string; }
|
|
74
|
+
export type OauthConnectInput = { credentialName: string; callbackUrl?: string; userId?: string; }
|
|
75
|
+
export type OauthConnectOutput = { authUrl: string; }
|
|
76
|
+
export type OauthDisconnectInput = { credentialName: string; }
|
|
77
|
+
export type OauthExchangeTokensInput = { code: string; state: string; }
|
|
78
|
+
export type OauthExchangeTokensOutput = { credentialName: string; }
|
|
57
79
|
export type OauthRefreshTokenInput = { credentialName: string; }
|
|
58
80
|
export type OauthRefreshTokenOutput = { success: boolean; error?: string; }
|
|
81
|
+
export type OauthStatusInput = { credentialName: string; }
|
|
82
|
+
export type OauthStatusOutput = { connected: boolean; hasRefreshToken?: boolean; expiresAt?: number; isExpired?: boolean; }
|
|
59
83
|
export type OauthTestTokenInput = { credentialName: string; }
|
|
60
84
|
export type OauthTestTokenOutput = { valid: boolean; error?: string; }
|
|
61
85
|
export type PingOutput = { pong: true; }
|
|
86
|
+
export type ReadAgentSourceInput = { sourceFile: string; exportedName: string; }
|
|
87
|
+
export type ReadAgentSourceOutput = { config: Record<string, unknown>; }
|
|
88
|
+
export type ReadFunctionBodyInput = { sourceFile: string; exportedName: string; }
|
|
89
|
+
export type ReadFunctionBodyOutput = { body: string; }
|
|
90
|
+
export type ReadFunctionSourceInput = { sourceFile: string; exportedName: string; }
|
|
91
|
+
export type ReadFunctionSourceOutput = { config: Record<string, unknown>; body: string; wrapperName: string; }
|
|
62
92
|
export type StreamWorkflowRunInput = { runId: string; }
|
|
93
|
+
export type UpdateAgentConfigInput = { sourceFile: string; exportedName: string; changes: AgentConfigChanges; }
|
|
94
|
+
export type UpdateAgentConfigOutput = { success: boolean; }
|
|
95
|
+
export type UpdateFunctionBodyInput = { sourceFile: string; exportedName: string; body: string; }
|
|
96
|
+
export type UpdateFunctionBodyOutput = { success: boolean; }
|
|
97
|
+
export type UpdateFunctionConfigInput = { sourceFile: string; exportedName: string; changes: FunctionConfigChanges; }
|
|
98
|
+
export type UpdateFunctionConfigOutput = { success: boolean; }
|
|
63
99
|
|
|
64
100
|
interface RPCHandler<I, O> {
|
|
65
101
|
input: I;
|
|
@@ -67,35 +103,52 @@ interface RPCHandler<I, O> {
|
|
|
67
103
|
}
|
|
68
104
|
|
|
69
105
|
export type RPCMap = {
|
|
70
|
-
readonly '
|
|
71
|
-
readonly '
|
|
72
|
-
readonly '
|
|
106
|
+
readonly 'agentCredentialCheck': RPCHandler<AgentCredentialCheckInput, AgentCredentialCheckOutput>,
|
|
107
|
+
readonly 'credentialDelete': RPCHandler<CredentialDeleteInput, CredentialDeleteOutput>,
|
|
108
|
+
readonly 'credentialGet': RPCHandler<CredentialGetInput, CredentialGetOutput>,
|
|
109
|
+
readonly 'credentialListUsers': RPCHandler<null, CredentialListUsersOutput>,
|
|
110
|
+
readonly 'credentialSet': RPCHandler<CredentialSetInput, CredentialSetOutput>,
|
|
111
|
+
readonly 'credentialStatus': RPCHandler<CredentialStatusInput, CredentialStatusOutput>,
|
|
112
|
+
readonly 'credentialUsers': RPCHandler<CredentialUsersInput, CredentialUsersOutput>,
|
|
113
|
+
readonly 'deleteAgentThread': RPCHandler<DeleteAgentThreadInput, DeleteAgentThreadOutput>,
|
|
114
|
+
readonly 'deleteWorkflowRun': RPCHandler<DeleteWorkflowRunInput, DeleteWorkflowRunOutput>,
|
|
73
115
|
readonly 'getAddonIcon': RPCHandler<GetAddonIconInput, string>,
|
|
74
116
|
readonly 'getAddonMeta': RPCHandler<null, GetAddonMetaOutput>,
|
|
75
117
|
readonly 'getAddonCommunityPackage': RPCHandler<GetAddonCommunityPackageInput, AddonPackageInfo>,
|
|
76
|
-
readonly 'getAddonInstalledPackage': RPCHandler<GetAddonInstalledPackageInput, AddonPackageInfo>,
|
|
77
|
-
readonly 'getFunctionsMeta': RPCHandler<null, GetFunctionsMetaOutput>,
|
|
78
|
-
readonly 'getSchema': RPCHandler<GetSchemaInput, JSONSchema7>,
|
|
79
|
-
readonly 'getWorkflowMetaById': RPCHandler<GetWorkflowMetaByIdInput, GetWorkflowMetaByIdOutput>,
|
|
80
|
-
readonly 'oauthConnect': RPCHandler<OauthConnectInput, OauthConnectOutput>,
|
|
81
|
-
readonly 'oauthDisconnect': RPCHandler<OauthDisconnectInput, null>,
|
|
82
|
-
readonly 'oauthExchangeTokens': RPCHandler<OauthExchangeTokensInput, OauthExchangeTokensOutput>,
|
|
83
|
-
readonly 'oauthStatus': RPCHandler<OauthStatusInput, OauthStatusOutput>,
|
|
84
|
-
readonly 'deleteAgentThread': RPCHandler<DeleteAgentThreadInput, DeleteAgentThreadOutput>,
|
|
85
|
-
readonly 'deleteWorkflowRun': RPCHandler<DeleteWorkflowRunInput, DeleteWorkflowRunOutput>,
|
|
86
118
|
readonly 'getAgentThreadMessages': RPCHandler<GetAgentThreadMessagesInput, GetAgentThreadMessagesOutput>,
|
|
87
119
|
readonly 'getAgentThreadRuns': RPCHandler<GetAgentThreadRunsInput, GetAgentThreadRunsOutput>,
|
|
88
120
|
readonly 'getAgentThreads': RPCHandler<GetAgentThreadsInput, GetAgentThreadsOutput>,
|
|
89
121
|
readonly 'getAIWorkflows': RPCHandler<GetAIWorkflowsInput, GetAIWorkflowsOutput>,
|
|
122
|
+
readonly 'getAllMeta': RPCHandler<null, AllMeta>,
|
|
123
|
+
readonly 'getChannelSnippets': RPCHandler<GetChannelSnippetsInput, ChannelSnippets>,
|
|
124
|
+
readonly 'getFunctionsMeta': RPCHandler<null, GetFunctionsMetaOutput>,
|
|
125
|
+
readonly 'getInstalledAddons': RPCHandler<null, GetInstalledAddonsOutput>,
|
|
126
|
+
readonly 'getAddonInstalledPackage': RPCHandler<GetAddonInstalledPackageInput, AddonPackageInfo>,
|
|
127
|
+
readonly 'getOpenapiDetail': RPCHandler<GetOpenapiDetailInput, GetOpenapiDetailOutput>,
|
|
128
|
+
readonly 'getOpenapis': RPCHandler<GetOpenapisInput, GetOpenapisOutput>,
|
|
129
|
+
readonly 'getSchema': RPCHandler<GetSchemaInput, JSONSchema7>,
|
|
130
|
+
readonly 'getWorkflowMetaById': RPCHandler<GetWorkflowMetaByIdInput, GetWorkflowMetaByIdOutput>,
|
|
90
131
|
readonly 'getWorkflowRunHistory': RPCHandler<GetWorkflowRunHistoryInput, GetWorkflowRunHistoryOutput>,
|
|
91
132
|
readonly 'getWorkflowRunNames': RPCHandler<null, GetWorkflowRunNamesOutput>,
|
|
92
133
|
readonly 'getWorkflowRunSteps': RPCHandler<GetWorkflowRunStepsInput, GetWorkflowRunStepsOutput>,
|
|
93
134
|
readonly 'getWorkflowRun': RPCHandler<GetWorkflowRunInput, GetWorkflowRunOutput>,
|
|
94
135
|
readonly 'getWorkflowRuns': RPCHandler<GetWorkflowRunsInput, GetWorkflowRunsOutput>,
|
|
95
136
|
readonly 'getWorkflowVersion': RPCHandler<GetWorkflowVersionInput, GetWorkflowVersionOutput>,
|
|
137
|
+
readonly 'installAddon': RPCHandler<InstallAddonInput, InstallAddonOutput>,
|
|
138
|
+
readonly 'installOpenapiAddon': RPCHandler<InstallOpenapiAddonInput, InstallOpenapiAddonOutput>,
|
|
139
|
+
readonly 'oauthConnect': RPCHandler<OauthConnectInput, OauthConnectOutput>,
|
|
140
|
+
readonly 'oauthDisconnect': RPCHandler<OauthDisconnectInput, null>,
|
|
141
|
+
readonly 'oauthExchangeTokens': RPCHandler<OauthExchangeTokensInput, OauthExchangeTokensOutput>,
|
|
96
142
|
readonly 'oauthRefreshToken': RPCHandler<OauthRefreshTokenInput, OauthRefreshTokenOutput>,
|
|
143
|
+
readonly 'oauthStatus': RPCHandler<OauthStatusInput, OauthStatusOutput>,
|
|
97
144
|
readonly 'oauthTestToken': RPCHandler<OauthTestTokenInput, OauthTestTokenOutput>,
|
|
98
145
|
readonly 'ping': RPCHandler<null, PingOutput>,
|
|
146
|
+
readonly 'readAgentSource': RPCHandler<ReadAgentSourceInput, ReadAgentSourceOutput>,
|
|
147
|
+
readonly 'readFunctionBody': RPCHandler<ReadFunctionBodyInput, ReadFunctionBodyOutput>,
|
|
148
|
+
readonly 'readFunctionSource': RPCHandler<ReadFunctionSourceInput, ReadFunctionSourceOutput>,
|
|
149
|
+
readonly 'updateAgentConfig': RPCHandler<UpdateAgentConfigInput, UpdateAgentConfigOutput>,
|
|
150
|
+
readonly 'updateFunctionBody': RPCHandler<UpdateFunctionBodyInput, UpdateFunctionBodyOutput>,
|
|
151
|
+
readonly 'updateFunctionConfig': RPCHandler<UpdateFunctionConfigInput, UpdateFunctionConfigOutput>,
|
|
99
152
|
};
|
|
100
153
|
|
|
101
154
|
|
|
@@ -105,16 +158,18 @@ export type FlattenedRPCMap = RPCMap
|
|
|
105
158
|
|
|
106
159
|
|
|
107
160
|
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
108
|
-
|
|
109
|
-
|
|
161
|
+
...args: FlattenedRPCMap[Name]['input'] extends void | null
|
|
162
|
+
? [name: Name]
|
|
163
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
110
164
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
111
165
|
|
|
112
166
|
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
113
|
-
|
|
114
|
-
|
|
167
|
+
...args: FlattenedRPCMap[Name]['input'] extends void | null
|
|
168
|
+
? [name: Name]
|
|
169
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
115
170
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
116
171
|
|
|
117
|
-
import type {
|
|
172
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
118
173
|
|
|
119
174
|
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
120
175
|
|
|
@@ -130,12 +185,22 @@ interface AIAgentInput {
|
|
|
130
185
|
resourceId: string
|
|
131
186
|
}
|
|
132
187
|
|
|
133
|
-
export type TypedStartWorkflow = <Name extends keyof
|
|
188
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
134
189
|
name: Name,
|
|
135
|
-
input:
|
|
190
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
136
191
|
options?: { startNode?: string }
|
|
137
192
|
) => Promise<{ runId: string }>
|
|
138
193
|
|
|
194
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
195
|
+
name: Name,
|
|
196
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
197
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
198
|
+
|
|
199
|
+
export type TypedWorkflowStatus = (
|
|
200
|
+
workflowName: string,
|
|
201
|
+
runId: string
|
|
202
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
203
|
+
|
|
139
204
|
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
140
205
|
? (name: string, input: AIAgentInput) => Promise<any>
|
|
141
206
|
: <Name extends keyof FlattenedAgentMap>(
|
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.19
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
import type {
|
|
9
|
+
import type { AgentCredentialRequirement } from '../../src/functions/agent-credential-check.function.js'
|
|
10
|
+
import type { CredentialUserEntry } from '../../src/functions/credential-list-users.function.js'
|
|
10
11
|
import type { AddonPackageInfo } from '../../src/services/addon.service.js'
|
|
11
|
-
import type { FunctionMeta,
|
|
12
|
-
import type {
|
|
12
|
+
import type { FunctionMeta, FunctionRuntimeMeta, FunctionServicesMeta, FunctionWiresMeta, MiddlewareMetadata, PermissionMetadata, CommonWireMeta } from '../../../../core/dist/types/core.types.d.js'
|
|
13
|
+
import type { InstalledAddon } from '../../src/functions/get-installed-addons.function.js'
|
|
13
14
|
import type { WorkflowStepMeta, RpcStepMeta, BranchStepMeta, ParallelGroupStepMeta, FanoutStepMeta, ReturnStepMeta, InlineStepMeta, SleepStepMeta, CancelStepMeta, SwitchStepMeta, FilterStepMeta, ArrayPredicateStepMeta, SetStepMeta } from '../../../../core/dist/wirings/workflow/dsl/workflow-dsl.types.d.js'
|
|
14
15
|
import type { WorkflowContext } from '../../../../core/dist/wirings/workflow/workflow.types.d.js'
|
|
16
|
+
import type { AgentConfigChanges, FunctionConfigChanges } from '../../src/services/code-edit.service.js'
|
|
17
|
+
import type { AllMeta, ChannelSnippets } from '../../src/services/wiring.service.js'
|
|
15
18
|
import type { JSONSchema7 } from 'json-schema'
|
|
16
19
|
|
|
17
|
-
export type
|
|
18
|
-
export type
|
|
19
|
-
export type
|
|
20
|
-
export type
|
|
21
|
-
export type
|
|
22
|
-
export type
|
|
23
|
-
export type
|
|
24
|
-
export type
|
|
25
|
-
export type
|
|
26
|
-
export type
|
|
27
|
-
export type
|
|
28
|
-
export type
|
|
29
|
-
export type
|
|
30
|
-
export type OauthExchangeTokensInput = { code: string; state: string; }
|
|
31
|
-
export type OauthExchangeTokensOutput = { credentialName: string; }
|
|
32
|
-
export type OauthStatusInput = { credentialName: string; }
|
|
33
|
-
export type OauthStatusOutput = { connected: boolean; hasRefreshToken?: boolean; expiresAt?: number; isExpired?: boolean; }
|
|
20
|
+
export type AgentCredentialCheckInput = { agentName: string; userId?: string; }
|
|
21
|
+
export type AgentCredentialCheckOutput = { requirements: AgentCredentialRequirement[]; allConnected: boolean; }
|
|
22
|
+
export type CredentialDeleteInput = { name: string; userId?: string; }
|
|
23
|
+
export type CredentialDeleteOutput = { success: boolean; }
|
|
24
|
+
export type CredentialGetInput = { name: string; userId?: string; }
|
|
25
|
+
export type CredentialGetOutput = { value: unknown; }
|
|
26
|
+
export type CredentialListUsersOutput = { users: CredentialUserEntry[]; }
|
|
27
|
+
export type CredentialSetInput = { name: string; value: unknown; userId?: string; }
|
|
28
|
+
export type CredentialSetOutput = { success: boolean; }
|
|
29
|
+
export type CredentialStatusInput = { names: string[]; userId?: string; }
|
|
30
|
+
export type CredentialStatusOutput = { statuses: Record<string, boolean>; }
|
|
31
|
+
export type CredentialUsersInput = { name: string; }
|
|
32
|
+
export type CredentialUsersOutput = { userIds: string[]; }
|
|
34
33
|
export type DeleteAgentThreadInput = { threadId: string; }
|
|
35
34
|
export type DeleteAgentThreadOutput = { deleted: boolean; }
|
|
36
35
|
export type DeleteWorkflowRunInput = { runId: string; }
|
|
37
36
|
export type DeleteWorkflowRunOutput = { deleted: boolean; }
|
|
37
|
+
export type GetAddonCommunityPackageInput = { id: string; }
|
|
38
|
+
export type GetAddonIconInput = { alias: string; }
|
|
39
|
+
export type GetAddonInstalledPackageInput = { packageName: string; }
|
|
40
|
+
export type GetAddonMetaOutput = AddonPackageInfo[]
|
|
38
41
|
export type GetAgentThreadMessagesInput = { threadId: string; }
|
|
39
42
|
export type GetAgentThreadMessagesOutput = any[]
|
|
40
43
|
export type GetAgentThreadRunsInput = { threadId: string; }
|
|
@@ -43,23 +46,56 @@ export type GetAgentThreadsInput = { agentName?: string; limit?: number; offset?
|
|
|
43
46
|
export type GetAgentThreadsOutput = any[]
|
|
44
47
|
export type GetAIWorkflowsInput = { agentName?: string; }
|
|
45
48
|
export type GetAIWorkflowsOutput = { workflowName: string; graphHash: string; graph: any; }[]
|
|
49
|
+
export type GetChannelSnippetsInput = { channelName: string; }
|
|
50
|
+
export type GetFunctionsMetaOutput = FunctionMeta[]
|
|
51
|
+
export type GetInstalledAddonsOutput = InstalledAddon[]
|
|
52
|
+
export type GetOpenapiDetailInput = { name: string; }
|
|
53
|
+
export type GetOpenapiDetailOutput = { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; swaggerYamlUrl?: string; logo?: string; categories: string[]; tags: string[]; added?: string; updated?: string; }
|
|
54
|
+
export type GetOpenapisInput = { limit: number; offset: number; search?: string; }
|
|
55
|
+
export type GetOpenapisOutput = { apis: { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; logo?: string; }[]; total: number; nextCursor: number; }
|
|
56
|
+
export type GetSchemaInput = { schemaName: string; }
|
|
57
|
+
export type GetWorkflowMetaByIdInput = { workflowId: string; }
|
|
58
|
+
export type GetWorkflowMetaByIdOutput = CommonWireMeta & { name: string; steps: WorkflowStepMeta[]; context?: WorkflowContext; dsl?: boolean; inline?: boolean; expose?: boolean; }
|
|
46
59
|
export type GetWorkflowRunHistoryInput = { runId: string; }
|
|
47
60
|
export type GetWorkflowRunHistoryOutput = any[]
|
|
48
|
-
export type GetWorkflowRunNamesOutput = string[]
|
|
49
|
-
export type GetWorkflowRunStepsInput = { runId: string; }
|
|
50
|
-
export type GetWorkflowRunStepsOutput = any[]
|
|
51
61
|
export type GetWorkflowRunInput = { runId: string; }
|
|
62
|
+
export type GetWorkflowRunNamesOutput = string[]
|
|
52
63
|
export type GetWorkflowRunOutput = Record<string, unknown>
|
|
53
64
|
export type GetWorkflowRunsInput = { workflowName?: string; status?: string; limit?: number; offset?: number; }
|
|
54
65
|
export type GetWorkflowRunsOutput = any[]
|
|
66
|
+
export type GetWorkflowRunStepsInput = { runId: string; }
|
|
67
|
+
export type GetWorkflowRunStepsOutput = any[]
|
|
55
68
|
export type GetWorkflowVersionInput = { name: string; graphHash: string; }
|
|
56
69
|
export type GetWorkflowVersionOutput = { graph: any; source: string; }
|
|
70
|
+
export type InstallAddonInput = { packageName: string; namespace: string; version?: string; }
|
|
71
|
+
export type InstallAddonOutput = { success: boolean; message: string; }
|
|
72
|
+
export type InstallOpenapiAddonInput = { name: string; swaggerUrl: string; credential?: "apikey" | "bearer" | "oauth2"; }
|
|
73
|
+
export type InstallOpenapiAddonOutput = { success: boolean; message: string; }
|
|
74
|
+
export type OauthConnectInput = { credentialName: string; callbackUrl?: string; userId?: string; }
|
|
75
|
+
export type OauthConnectOutput = { authUrl: string; }
|
|
76
|
+
export type OauthDisconnectInput = { credentialName: string; }
|
|
77
|
+
export type OauthExchangeTokensInput = { code: string; state: string; }
|
|
78
|
+
export type OauthExchangeTokensOutput = { credentialName: string; }
|
|
57
79
|
export type OauthRefreshTokenInput = { credentialName: string; }
|
|
58
80
|
export type OauthRefreshTokenOutput = { success: boolean; error?: string; }
|
|
81
|
+
export type OauthStatusInput = { credentialName: string; }
|
|
82
|
+
export type OauthStatusOutput = { connected: boolean; hasRefreshToken?: boolean; expiresAt?: number; isExpired?: boolean; }
|
|
59
83
|
export type OauthTestTokenInput = { credentialName: string; }
|
|
60
84
|
export type OauthTestTokenOutput = { valid: boolean; error?: string; }
|
|
61
85
|
export type PingOutput = { pong: true; }
|
|
86
|
+
export type ReadAgentSourceInput = { sourceFile: string; exportedName: string; }
|
|
87
|
+
export type ReadAgentSourceOutput = { config: Record<string, unknown>; }
|
|
88
|
+
export type ReadFunctionBodyInput = { sourceFile: string; exportedName: string; }
|
|
89
|
+
export type ReadFunctionBodyOutput = { body: string; }
|
|
90
|
+
export type ReadFunctionSourceInput = { sourceFile: string; exportedName: string; }
|
|
91
|
+
export type ReadFunctionSourceOutput = { config: Record<string, unknown>; body: string; wrapperName: string; }
|
|
62
92
|
export type StreamWorkflowRunInput = { runId: string; }
|
|
93
|
+
export type UpdateAgentConfigInput = { sourceFile: string; exportedName: string; changes: AgentConfigChanges; }
|
|
94
|
+
export type UpdateAgentConfigOutput = { success: boolean; }
|
|
95
|
+
export type UpdateFunctionBodyInput = { sourceFile: string; exportedName: string; body: string; }
|
|
96
|
+
export type UpdateFunctionBodyOutput = { success: boolean; }
|
|
97
|
+
export type UpdateFunctionConfigInput = { sourceFile: string; exportedName: string; changes: FunctionConfigChanges; }
|
|
98
|
+
export type UpdateFunctionConfigOutput = { success: boolean; }
|
|
63
99
|
|
|
64
100
|
interface RPCHandler<I, O> {
|
|
65
101
|
input: I;
|
|
@@ -67,36 +103,53 @@ interface RPCHandler<I, O> {
|
|
|
67
103
|
}
|
|
68
104
|
|
|
69
105
|
export type RPCMap = {
|
|
70
|
-
readonly '
|
|
71
|
-
readonly '
|
|
72
|
-
readonly '
|
|
106
|
+
readonly 'agentCredentialCheck': RPCHandler<AgentCredentialCheckInput, AgentCredentialCheckOutput>,
|
|
107
|
+
readonly 'credentialDelete': RPCHandler<CredentialDeleteInput, CredentialDeleteOutput>,
|
|
108
|
+
readonly 'credentialGet': RPCHandler<CredentialGetInput, CredentialGetOutput>,
|
|
109
|
+
readonly 'credentialListUsers': RPCHandler<null, CredentialListUsersOutput>,
|
|
110
|
+
readonly 'credentialSet': RPCHandler<CredentialSetInput, CredentialSetOutput>,
|
|
111
|
+
readonly 'credentialStatus': RPCHandler<CredentialStatusInput, CredentialStatusOutput>,
|
|
112
|
+
readonly 'credentialUsers': RPCHandler<CredentialUsersInput, CredentialUsersOutput>,
|
|
113
|
+
readonly 'deleteAgentThread': RPCHandler<DeleteAgentThreadInput, DeleteAgentThreadOutput>,
|
|
114
|
+
readonly 'deleteWorkflowRun': RPCHandler<DeleteWorkflowRunInput, DeleteWorkflowRunOutput>,
|
|
73
115
|
readonly 'getAddonIcon': RPCHandler<GetAddonIconInput, string>,
|
|
74
116
|
readonly 'getAddonMeta': RPCHandler<null, GetAddonMetaOutput>,
|
|
75
117
|
readonly 'getAddonCommunityPackage': RPCHandler<GetAddonCommunityPackageInput, AddonPackageInfo>,
|
|
76
|
-
readonly 'getAddonInstalledPackage': RPCHandler<GetAddonInstalledPackageInput, AddonPackageInfo>,
|
|
77
|
-
readonly 'getFunctionsMeta': RPCHandler<null, GetFunctionsMetaOutput>,
|
|
78
|
-
readonly 'getSchema': RPCHandler<GetSchemaInput, JSONSchema7>,
|
|
79
|
-
readonly 'getWorkflowMetaById': RPCHandler<GetWorkflowMetaByIdInput, GetWorkflowMetaByIdOutput>,
|
|
80
|
-
readonly 'oauthConnect': RPCHandler<OauthConnectInput, OauthConnectOutput>,
|
|
81
|
-
readonly 'oauthDisconnect': RPCHandler<OauthDisconnectInput, null>,
|
|
82
|
-
readonly 'oauthExchangeTokens': RPCHandler<OauthExchangeTokensInput, OauthExchangeTokensOutput>,
|
|
83
|
-
readonly 'oauthStatus': RPCHandler<OauthStatusInput, OauthStatusOutput>,
|
|
84
|
-
readonly 'deleteAgentThread': RPCHandler<DeleteAgentThreadInput, DeleteAgentThreadOutput>,
|
|
85
|
-
readonly 'deleteWorkflowRun': RPCHandler<DeleteWorkflowRunInput, DeleteWorkflowRunOutput>,
|
|
86
118
|
readonly 'getAgentThreadMessages': RPCHandler<GetAgentThreadMessagesInput, GetAgentThreadMessagesOutput>,
|
|
87
119
|
readonly 'getAgentThreadRuns': RPCHandler<GetAgentThreadRunsInput, GetAgentThreadRunsOutput>,
|
|
88
120
|
readonly 'getAgentThreads': RPCHandler<GetAgentThreadsInput, GetAgentThreadsOutput>,
|
|
89
121
|
readonly 'getAIWorkflows': RPCHandler<GetAIWorkflowsInput, GetAIWorkflowsOutput>,
|
|
122
|
+
readonly 'getAllMeta': RPCHandler<null, AllMeta>,
|
|
123
|
+
readonly 'getChannelSnippets': RPCHandler<GetChannelSnippetsInput, ChannelSnippets>,
|
|
124
|
+
readonly 'getFunctionsMeta': RPCHandler<null, GetFunctionsMetaOutput>,
|
|
125
|
+
readonly 'getInstalledAddons': RPCHandler<null, GetInstalledAddonsOutput>,
|
|
126
|
+
readonly 'getAddonInstalledPackage': RPCHandler<GetAddonInstalledPackageInput, AddonPackageInfo>,
|
|
127
|
+
readonly 'getOpenapiDetail': RPCHandler<GetOpenapiDetailInput, GetOpenapiDetailOutput>,
|
|
128
|
+
readonly 'getOpenapis': RPCHandler<GetOpenapisInput, GetOpenapisOutput>,
|
|
129
|
+
readonly 'getSchema': RPCHandler<GetSchemaInput, JSONSchema7>,
|
|
130
|
+
readonly 'getWorkflowMetaById': RPCHandler<GetWorkflowMetaByIdInput, GetWorkflowMetaByIdOutput>,
|
|
90
131
|
readonly 'getWorkflowRunHistory': RPCHandler<GetWorkflowRunHistoryInput, GetWorkflowRunHistoryOutput>,
|
|
91
132
|
readonly 'getWorkflowRunNames': RPCHandler<null, GetWorkflowRunNamesOutput>,
|
|
92
133
|
readonly 'getWorkflowRunSteps': RPCHandler<GetWorkflowRunStepsInput, GetWorkflowRunStepsOutput>,
|
|
93
134
|
readonly 'getWorkflowRun': RPCHandler<GetWorkflowRunInput, GetWorkflowRunOutput>,
|
|
94
135
|
readonly 'getWorkflowRuns': RPCHandler<GetWorkflowRunsInput, GetWorkflowRunsOutput>,
|
|
95
136
|
readonly 'getWorkflowVersion': RPCHandler<GetWorkflowVersionInput, GetWorkflowVersionOutput>,
|
|
137
|
+
readonly 'installAddon': RPCHandler<InstallAddonInput, InstallAddonOutput>,
|
|
138
|
+
readonly 'installOpenapiAddon': RPCHandler<InstallOpenapiAddonInput, InstallOpenapiAddonOutput>,
|
|
139
|
+
readonly 'oauthConnect': RPCHandler<OauthConnectInput, OauthConnectOutput>,
|
|
140
|
+
readonly 'oauthDisconnect': RPCHandler<OauthDisconnectInput, null>,
|
|
141
|
+
readonly 'oauthExchangeTokens': RPCHandler<OauthExchangeTokensInput, OauthExchangeTokensOutput>,
|
|
96
142
|
readonly 'oauthRefreshToken': RPCHandler<OauthRefreshTokenInput, OauthRefreshTokenOutput>,
|
|
143
|
+
readonly 'oauthStatus': RPCHandler<OauthStatusInput, OauthStatusOutput>,
|
|
97
144
|
readonly 'oauthTestToken': RPCHandler<OauthTestTokenInput, OauthTestTokenOutput>,
|
|
98
145
|
readonly 'ping': RPCHandler<null, PingOutput>,
|
|
146
|
+
readonly 'readAgentSource': RPCHandler<ReadAgentSourceInput, ReadAgentSourceOutput>,
|
|
147
|
+
readonly 'readFunctionBody': RPCHandler<ReadFunctionBodyInput, ReadFunctionBodyOutput>,
|
|
148
|
+
readonly 'readFunctionSource': RPCHandler<ReadFunctionSourceInput, ReadFunctionSourceOutput>,
|
|
99
149
|
readonly 'streamWorkflowRun': RPCHandler<StreamWorkflowRunInput, null>,
|
|
150
|
+
readonly 'updateAgentConfig': RPCHandler<UpdateAgentConfigInput, UpdateAgentConfigOutput>,
|
|
151
|
+
readonly 'updateFunctionBody': RPCHandler<UpdateFunctionBodyInput, UpdateFunctionBodyOutput>,
|
|
152
|
+
readonly 'updateFunctionConfig': RPCHandler<UpdateFunctionConfigInput, UpdateFunctionConfigOutput>,
|
|
100
153
|
};
|
|
101
154
|
|
|
102
155
|
|
|
@@ -106,16 +159,18 @@ export type FlattenedRPCMap = RPCMap
|
|
|
106
159
|
|
|
107
160
|
|
|
108
161
|
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
109
|
-
|
|
110
|
-
|
|
162
|
+
...args: FlattenedRPCMap[Name]['input'] extends void | null
|
|
163
|
+
? [name: Name]
|
|
164
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
111
165
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
112
166
|
|
|
113
167
|
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
114
|
-
|
|
115
|
-
|
|
168
|
+
...args: FlattenedRPCMap[Name]['input'] extends void | null
|
|
169
|
+
? [name: Name]
|
|
170
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
116
171
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
117
172
|
|
|
118
|
-
import type {
|
|
173
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
119
174
|
|
|
120
175
|
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
121
176
|
|
|
@@ -131,12 +186,22 @@ interface AIAgentInput {
|
|
|
131
186
|
resourceId: string
|
|
132
187
|
}
|
|
133
188
|
|
|
134
|
-
export type TypedStartWorkflow = <Name extends keyof
|
|
189
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
135
190
|
name: Name,
|
|
136
|
-
input:
|
|
191
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
137
192
|
options?: { startNode?: string }
|
|
138
193
|
) => Promise<{ runId: string }>
|
|
139
194
|
|
|
195
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
196
|
+
name: Name,
|
|
197
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
198
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
199
|
+
|
|
200
|
+
export type TypedWorkflowStatus = (
|
|
201
|
+
workflowName: string,
|
|
202
|
+
runId: string
|
|
203
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
204
|
+
|
|
140
205
|
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
141
206
|
? (name: string, input: AIAgentInput) => Promise<any>
|
|
142
207
|
: <Name extends keyof FlattenedAgentMap>(
|