@pikku/addon-graph 0.12.13 → 0.12.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/.pikku/addon/agent/index.d.ts +1 -1
- package/dist/.pikku/addon/agent/index.js +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +42 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +41 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/addon/auth/index.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.js +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +10 -20
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +2 -19
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -1
- package/dist/.pikku/addon/channel/index.d.ts +1 -1
- package/dist/.pikku/addon/channel/index.js +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +8 -18
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +7 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -1
- package/dist/.pikku/addon/error/index.d.ts +1 -1
- package/dist/.pikku/addon/error/index.js +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/addon/function/index.d.ts +1 -1
- package/dist/.pikku/addon/function/index.js +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +47 -38
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +21 -9
- package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/addon/http/index.d.ts +1 -1
- package/dist/.pikku/addon/http/index.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +3 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -1
- package/dist/.pikku/addon/mcp/index.d.ts +1 -1
- package/dist/.pikku/addon/mcp/index.js +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +7 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -1
- package/dist/.pikku/addon/middleware/index.d.ts +1 -1
- package/dist/.pikku/addon/middleware/index.js +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +42 -26
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +29 -24
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +2 -2
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts +7 -6
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.js +5 -4
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/index.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +15 -0
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +12 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +15 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +4 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +1 -1
- package/dist/.pikku/addon/scopes/index.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +9 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +5 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/addon/setup/index.d.ts +1 -1
- package/dist/.pikku/addon/setup/index.js +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +7 -19
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +11 -19
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -1
- package/dist/.pikku/addon/trigger/index.d.ts +1 -1
- package/dist/.pikku/addon/trigger/index.js +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/index.d.ts +1 -1
- package/dist/.pikku/addon/variables/index.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +9 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +5 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/addon/workflow/index.d.ts +1 -1
- package/dist/.pikku/addon/workflow/index.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +29 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +8 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/package.json +3 -3
- package/dist/.pikku/addon/index.d.ts +0 -8
- package/dist/.pikku/addon/index.d.ts.map +0 -1
- package/dist/.pikku/addon/index.js +0 -8
- package/dist/.pikku/addon/index.js.map +0 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +0 -66
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +0 -78
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +0 -1
- package/dist/.pikku/agent/index.d.ts +0 -8
- package/dist/.pikku/agent/index.d.ts.map +0 -1
- package/dist/.pikku/agent/index.js +0 -8
- package/dist/.pikku/agent/index.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +0 -54
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js +0 -20
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts +0 -2
- package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +0 -6
- package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-scorer-names.gen.d.ts +0 -8
- package/dist/.pikku/auth/index.d.ts +0 -8
- package/dist/.pikku/auth/index.d.ts.map +0 -1
- package/dist/.pikku/auth/index.js +0 -8
- package/dist/.pikku/auth/index.js.map +0 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +0 -119
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts.map +0 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.js +0 -93
- package/dist/.pikku/auth/pikku-auth-types.gen.js.map +0 -1
- package/dist/.pikku/channel/index.d.ts +0 -8
- package/dist/.pikku/channel/index.d.ts.map +0 -1
- package/dist/.pikku/channel/index.js +0 -8
- package/dist/.pikku/channel/index.js.map +0 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +0 -91
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +0 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +0 -43
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +0 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +0 -7
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +0 -1
- package/dist/.pikku/console/pikku-node-types.gen.js +0 -2
- package/dist/.pikku/console/pikku-node-types.gen.js.map +0 -1
- package/dist/.pikku/credentials/index.d.ts +0 -8
- package/dist/.pikku/credentials/index.d.ts.map +0 -1
- package/dist/.pikku/credentials/index.js +0 -8
- package/dist/.pikku/credentials/index.js.map +0 -1
- package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts +0 -5
- package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts.map +0 -1
- package/dist/.pikku/credentials/pikku-credential-types.gen.js +0 -5
- package/dist/.pikku/credentials/pikku-credential-types.gen.js.map +0 -1
- package/dist/.pikku/error/index.d.ts +0 -8
- package/dist/.pikku/error/index.d.ts.map +0 -1
- package/dist/.pikku/error/index.js +0 -8
- package/dist/.pikku/error/index.js.map +0 -1
- package/dist/.pikku/error/pikku-error-types.gen.d.ts +0 -8
- package/dist/.pikku/error/pikku-error-types.gen.d.ts.map +0 -1
- package/dist/.pikku/error/pikku-error-types.gen.js +0 -8
- package/dist/.pikku/error/pikku-error-types.gen.js.map +0 -1
- package/dist/.pikku/function/index.d.ts +0 -8
- package/dist/.pikku/function/index.d.ts.map +0 -1
- package/dist/.pikku/function/index.js +0 -8
- package/dist/.pikku/function/index.js.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +0 -270
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +0 -117
- package/dist/.pikku/function/pikku-function-types.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -1028
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +0 -2
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +0 -7
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +0 -794
- package/dist/.pikku/function/pikku-functions.gen.d.ts +0 -2
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions.gen.js +0 -74
- package/dist/.pikku/function/pikku-functions.gen.js.map +0 -1
- package/dist/.pikku/gateway/index.d.ts +0 -8
- package/dist/.pikku/gateway/index.d.ts.map +0 -1
- package/dist/.pikku/gateway/index.js +0 -8
- package/dist/.pikku/gateway/index.js.map +0 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +0 -38
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts.map +0 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js +0 -26
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js.map +0 -1
- package/dist/.pikku/http/index.d.ts +0 -8
- package/dist/.pikku/http/index.d.ts.map +0 -1
- package/dist/.pikku/http/index.js +0 -8
- package/dist/.pikku/http/index.js.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +0 -50
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +0 -11
- package/dist/.pikku/http/pikku-http-types.gen.js.map +0 -1
- package/dist/.pikku/mcp/index.d.ts +0 -8
- package/dist/.pikku/mcp/index.d.ts.map +0 -1
- package/dist/.pikku/mcp/index.js +0 -8
- package/dist/.pikku/mcp/index.js.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +0 -102
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -16
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +0 -1
- package/dist/.pikku/middleware/index.d.ts +0 -8
- package/dist/.pikku/middleware/index.d.ts.map +0 -1
- package/dist/.pikku/middleware/index.js +0 -8
- package/dist/.pikku/middleware/index.js.map +0 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +0 -118
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts.map +0 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js +0 -109
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +0 -10
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +0 -10
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +0 -10
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +0 -10
- package/dist/.pikku/pikku-bootstrap.gen.js.map +0 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +0 -8
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-meta-service.gen.js +0 -10
- package/dist/.pikku/pikku-meta-service.gen.js.map +0 -1
- package/dist/.pikku/pikku-services.gen.d.ts +0 -42
- package/dist/.pikku/pikku-services.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-services.gen.js +0 -38
- package/dist/.pikku/pikku-services.gen.js.map +0 -1
- package/dist/.pikku/pikku-types.gen.d.ts +0 -12
- package/dist/.pikku/pikku-types.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-types.gen.js +0 -17
- package/dist/.pikku/pikku-types.gen.js.map +0 -1
- package/dist/.pikku/queue/index.d.ts +0 -8
- package/dist/.pikku/queue/index.d.ts.map +0 -1
- package/dist/.pikku/queue/index.js +0 -8
- package/dist/.pikku/queue/index.js.map +0 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +0 -24
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +0 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +0 -17
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +0 -647
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -681
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +0 -647
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -2
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +0 -7
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -36
- package/dist/.pikku/scenarios/index.d.ts +0 -8
- package/dist/.pikku/scenarios/index.d.ts.map +0 -1
- package/dist/.pikku/scenarios/index.js +0 -8
- package/dist/.pikku/scenarios/index.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.d.ts +0 -18
- package/dist/.pikku/scenarios/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.js +0 -18
- package/dist/.pikku/scenarios/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +0 -11
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +0 -311
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.js +0 -72
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +0 -11
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +0 -1
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/schemas/register.gen.js +0 -5
- package/dist/.pikku/scenarios/schemas/register.gen.js.map +0 -1
- package/dist/.pikku/scheduler/index.d.ts +0 -8
- package/dist/.pikku/scheduler/index.d.ts.map +0 -1
- package/dist/.pikku/scheduler/index.js +0 -8
- package/dist/.pikku/scheduler/index.js.map +0 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +0 -22
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +0 -17
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +0 -1
- package/dist/.pikku/schemas/register.gen.d.ts +0 -2
- package/dist/.pikku/schemas/register.gen.d.ts.map +0 -1
- package/dist/.pikku/schemas/register.gen.js +0 -141
- package/dist/.pikku/schemas/register.gen.js.map +0 -1
- package/dist/.pikku/schemas/schemas/AggregateInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/AggregateOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/BranchInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/BranchOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ChunkInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ChunkOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CoalesceInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CoalesceOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ConcatInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ConcatOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CryptoInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CryptoOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/DateTimeInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/DateTimeOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/EditFieldsInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/EditFieldsOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/FanoutInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/FanoutOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/FindInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/FindOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/GroupByInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/GroupByOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/HttpRequestInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/HttpRequestOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/JwtDecodeInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/JwtDecodeOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/JwtSignInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/JwtSignOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/LimitInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/LimitOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/MathInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/MathOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/MergeInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/MergeOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/OmitInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/OmitOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/PickInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/PickOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ReadFileInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ReadFileOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RemoveDuplicatesInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RemoveDuplicatesOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RenameKeysInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RenameKeysOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ReverseInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ReverseOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SleepInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SleepOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SortInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SortOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SplitOutInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SplitOutOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SplitTextInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SplitTextOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/StopAndErrorInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/StopAndErrorOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/StringTransformInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/StringTransformOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SummarizeInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SummarizeOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/TypeConvertInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/TypeConvertOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/UniqueInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/UniqueOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/WaitInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/WaitOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/WriteFileInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/WriteFileOutput.schema.json +0 -1
- package/dist/.pikku/scopes/index.d.ts +0 -8
- package/dist/.pikku/scopes/index.d.ts.map +0 -1
- package/dist/.pikku/scopes/index.js +0 -8
- package/dist/.pikku/scopes/index.js.map +0 -1
- package/dist/.pikku/scopes/pikku-personas-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +0 -29
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js +0 -18
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-roles-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +0 -31
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.js +0 -19
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +0 -6
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +0 -6
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +0 -36
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.js +0 -28
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +0 -1
- package/dist/.pikku/secrets/index.d.ts +0 -9
- package/dist/.pikku/secrets/index.d.ts.map +0 -1
- package/dist/.pikku/secrets/index.js +0 -9
- package/dist/.pikku/secrets/index.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -5
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +0 -5
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +0 -18
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +0 -19
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +0 -1
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts +0 -8
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts.map +0 -1
- package/dist/.pikku/services/pikku-meta-service.gen.js +0 -10
- package/dist/.pikku/services/pikku-meta-service.gen.js.map +0 -1
- package/dist/.pikku/setup/index.d.ts +0 -8
- package/dist/.pikku/setup/index.d.ts.map +0 -1
- package/dist/.pikku/setup/index.js +0 -8
- package/dist/.pikku/setup/index.js.map +0 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +0 -67
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts.map +0 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.js +0 -88
- package/dist/.pikku/setup/pikku-setup-types.gen.js.map +0 -1
- package/dist/.pikku/trigger/index.d.ts +0 -8
- package/dist/.pikku/trigger/index.d.ts.map +0 -1
- package/dist/.pikku/trigger/index.js +0 -8
- package/dist/.pikku/trigger/index.js.map +0 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +0 -83
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +0 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -13
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +0 -1
- package/dist/.pikku/variables/index.d.ts +0 -9
- package/dist/.pikku/variables/index.d.ts.map +0 -1
- package/dist/.pikku/variables/index.js +0 -9
- package/dist/.pikku/variables/index.js.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -5
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +0 -5
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +0 -19
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +0 -19
- package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
- package/dist/.pikku/workflow/index.d.ts +0 -8
- package/dist/.pikku/workflow/index.d.ts.map +0 -1
- package/dist/.pikku/workflow/index.js +0 -8
- package/dist/.pikku/workflow/index.js.map +0 -1
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts +0 -18
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-personas.gen.js +0 -18
- package/dist/.pikku/workflow/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +0 -18
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +0 -100
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +0 -16
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +0 -2
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +0 -7
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +0 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +0 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +0 -1
- /package/dist/.pikku/{scenarios/pikku-scenario-functions-meta.gen.json → addon/db/pikku-db-meta.gen.json} +0 -0
|
@@ -1,681 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.105
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type AggregateInput = {
|
|
13
|
-
/** The array of items to aggregate */
|
|
14
|
-
items: {
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
}[];
|
|
17
|
-
/** The field path to collect values from (single-field mode) */
|
|
18
|
-
field?: string | undefined;
|
|
19
|
-
/** The name of the output field containing the list */
|
|
20
|
-
outputField?: string | undefined;
|
|
21
|
-
/** Only include unique values */
|
|
22
|
-
unique?: boolean | undefined;
|
|
23
|
-
/** Collect several fields at once into one output item */
|
|
24
|
-
fields?: {
|
|
25
|
-
/** The field path to collect values from */
|
|
26
|
-
field: string;
|
|
27
|
-
/** The output field name (defaults to the source field path) */
|
|
28
|
-
outputField?: string | undefined;
|
|
29
|
-
/** Only include unique values */
|
|
30
|
-
unique?: boolean | undefined;
|
|
31
|
-
}[] | undefined;
|
|
32
|
-
/** Collect the entire items into a single list field (n8n aggregateAllItemData) */
|
|
33
|
-
includeAllItems?: boolean | undefined;
|
|
34
|
-
}
|
|
35
|
-
export type AggregateOutput = {
|
|
36
|
-
/** The output object with aggregated values */
|
|
37
|
-
item: {
|
|
38
|
-
[key: string]: unknown;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export type BranchInput = {
|
|
42
|
-
/** Cases evaluated in order; the first match wins */
|
|
43
|
-
cases: {
|
|
44
|
-
/** The `next` branch key to take when this case matches */
|
|
45
|
-
key: string;
|
|
46
|
-
/** How the conditions combine */
|
|
47
|
-
combinator: "and" | "or";
|
|
48
|
-
conditions: {
|
|
49
|
-
/** Left-hand operand (resolved before evaluation) */
|
|
50
|
-
left: unknown;
|
|
51
|
-
/** Right-hand operand — omitted for unary operators like isEmpty */
|
|
52
|
-
right?: unknown | undefined;
|
|
53
|
-
/** Value type the operands are coerced to before comparison */
|
|
54
|
-
type: "string" | "number" | "boolean" | "dateTime" | "array" | "object";
|
|
55
|
-
/** Comparison operation, e.g. equals, contains, gt, isEmpty */
|
|
56
|
-
operation: string;
|
|
57
|
-
}[];
|
|
58
|
-
}[];
|
|
59
|
-
/** Branch key taken when no case matches */
|
|
60
|
-
fallback?: string | undefined;
|
|
61
|
-
}
|
|
62
|
-
export type BranchOutput = {
|
|
63
|
-
/** The branch key taken, or null when the path dead-ends */
|
|
64
|
-
branch: string | null;
|
|
65
|
-
}
|
|
66
|
-
export type ChunkInput = {
|
|
67
|
-
/** The array to split into chunks */
|
|
68
|
-
items: unknown[];
|
|
69
|
-
/** Size of each chunk */
|
|
70
|
-
size: number;
|
|
71
|
-
}
|
|
72
|
-
export type ChunkOutput = {
|
|
73
|
-
/** Array of chunks */
|
|
74
|
-
chunks: unknown[][];
|
|
75
|
-
}
|
|
76
|
-
export type CoalesceInput = {
|
|
77
|
-
/** Values to check in order */
|
|
78
|
-
values: unknown[];
|
|
79
|
-
/** Treat empty strings as null */
|
|
80
|
-
treatEmptyStringAsNull?: boolean | undefined;
|
|
81
|
-
/** Treat zero as null */
|
|
82
|
-
treatZeroAsNull?: boolean | undefined;
|
|
83
|
-
}
|
|
84
|
-
export type CoalesceOutput = {
|
|
85
|
-
/** The first non-null value */
|
|
86
|
-
value: unknown;
|
|
87
|
-
/** Index of the returned value (-1 if all null) */
|
|
88
|
-
index: number;
|
|
89
|
-
}
|
|
90
|
-
export type ConcatInput = {
|
|
91
|
-
/** The input streams to concatenate; each array is flattened one level, each non-array counts as a single item */
|
|
92
|
-
inputs: unknown[];
|
|
93
|
-
}
|
|
94
|
-
export type ConcatOutput = {
|
|
95
|
-
/** All input items concatenated in input order */
|
|
96
|
-
items: unknown[];
|
|
97
|
-
}
|
|
98
|
-
export type CryptoInput = {
|
|
99
|
-
/** The cryptographic operation to perform */
|
|
100
|
-
operation: "hash" | "hmac" | "randomBytes" | "uuid" | "base64Encode" | "base64Decode" | "hexEncode" | "hexDecode";
|
|
101
|
-
/** Input data for hash/hmac/encode/decode operations */
|
|
102
|
-
data?: string | undefined;
|
|
103
|
-
/** Hash algorithm for hash/hmac operations */
|
|
104
|
-
algorithm?: ("md5" | "sha1" | "sha256" | "sha384" | "sha512") | undefined;
|
|
105
|
-
/** Secret key for hmac operation */
|
|
106
|
-
key?: string | undefined;
|
|
107
|
-
/** Number of bytes for randomBytes operation */
|
|
108
|
-
length?: number | undefined;
|
|
109
|
-
/** Output encoding for hash/hmac operations */
|
|
110
|
-
encoding?: ("hex" | "base64") | undefined;
|
|
111
|
-
}
|
|
112
|
-
export type CryptoOutput = {
|
|
113
|
-
/** The result of the cryptographic operation */
|
|
114
|
-
result: string;
|
|
115
|
-
}
|
|
116
|
-
export type DateTimeInput = {
|
|
117
|
-
/** The input date/time value (ISO string, timestamp, or parseable date string) */
|
|
118
|
-
value?: (string | number) | undefined;
|
|
119
|
-
/** The operation to perform */
|
|
120
|
-
operation: "format" | "parse" | "add" | "subtract" | "startOf" | "endOf" | "diff" | "extract" | "now";
|
|
121
|
-
/** The date/time component to extract for the extract operation */
|
|
122
|
-
part?: ("year" | "month" | "week" | "day" | "dayOfWeek" | "hour" | "minute" | "second") | undefined;
|
|
123
|
-
/** Output format for format operation (e.g., YYYY-MM-DD) */
|
|
124
|
-
format?: string | undefined;
|
|
125
|
-
/** Amount for add/subtract operations */
|
|
126
|
-
amount?: number | undefined;
|
|
127
|
-
/** Time unit for add/subtract/startOf/endOf/diff operations */
|
|
128
|
-
unit?: ("years" | "months" | "weeks" | "days" | "hours" | "minutes" | "seconds" | "milliseconds") | undefined;
|
|
129
|
-
/** Second date for diff operation */
|
|
130
|
-
compareWith?: (string | number) | undefined;
|
|
131
|
-
/** Timezone for conversion (e.g., America/New_York) */
|
|
132
|
-
timezone?: string | undefined;
|
|
133
|
-
}
|
|
134
|
-
export type DateTimeOutput = {
|
|
135
|
-
/** The result of the operation */
|
|
136
|
-
result: string | number;
|
|
137
|
-
/** ISO 8601 formatted date string */
|
|
138
|
-
iso: string;
|
|
139
|
-
/** Unix timestamp in milliseconds */
|
|
140
|
-
timestamp: number;
|
|
141
|
-
}
|
|
142
|
-
export type EditFieldsInput = {
|
|
143
|
-
/** The input object to transform */
|
|
144
|
-
item: {
|
|
145
|
-
[key: string]: unknown;
|
|
146
|
-
};
|
|
147
|
-
/** List of field operations to perform */
|
|
148
|
-
operations: {
|
|
149
|
-
/** The field path to operate on (supports dot notation) */
|
|
150
|
-
field: string;
|
|
151
|
-
/** The operation to perform */
|
|
152
|
-
operation: "set" | "remove" | "rename";
|
|
153
|
-
/** The value to set (for set operation) */
|
|
154
|
-
value?: unknown | undefined;
|
|
155
|
-
/** The new field name (for rename operation) */
|
|
156
|
-
newName?: string | undefined;
|
|
157
|
-
}[];
|
|
158
|
-
}
|
|
159
|
-
export type EditFieldsOutput = {
|
|
160
|
-
[key: string]: unknown;
|
|
161
|
-
}
|
|
162
|
-
export type FanoutInput = {
|
|
163
|
-
/** The array to fan out over — one child invocation per element */
|
|
164
|
-
items: unknown[];
|
|
165
|
-
/** RPC name invoked once per item as a durable child step */
|
|
166
|
-
child: string;
|
|
167
|
-
/** Per-item input template; `$item` references resolve against the current element */
|
|
168
|
-
childInput?: {
|
|
169
|
-
[key: string]: unknown;
|
|
170
|
-
} | undefined;
|
|
171
|
-
/** Run child invocations concurrently or one after another */
|
|
172
|
-
mode: "parallel" | "sequential";
|
|
173
|
-
/** Stable prefix for the per-item durable step names (`<prefix>#<index>`); defaults to `child` */
|
|
174
|
-
stepPrefix?: string | undefined;
|
|
175
|
-
}
|
|
176
|
-
export type FanoutOutput = unknown[]
|
|
177
|
-
export type FindInput = {
|
|
178
|
-
/** The array to search */
|
|
179
|
-
items: {
|
|
180
|
-
[key: string]: unknown;
|
|
181
|
-
}[];
|
|
182
|
-
/** The field to match against */
|
|
183
|
-
field: string;
|
|
184
|
-
/** The value to find */
|
|
185
|
-
value: unknown;
|
|
186
|
-
/** Return the index instead of the item */
|
|
187
|
-
returnIndex?: boolean | undefined;
|
|
188
|
-
}
|
|
189
|
-
export type FindOutput = {
|
|
190
|
-
/** The found item (null if not found) */
|
|
191
|
-
item: {
|
|
192
|
-
[key: string]: unknown;
|
|
193
|
-
} | null;
|
|
194
|
-
/** The index of the found item (-1 if not found) */
|
|
195
|
-
index: number;
|
|
196
|
-
/** Whether the item was found */
|
|
197
|
-
found: boolean;
|
|
198
|
-
}
|
|
199
|
-
export type GroupByInput = {
|
|
200
|
-
/** The array of items to group */
|
|
201
|
-
items: {
|
|
202
|
-
[key: string]: unknown;
|
|
203
|
-
}[];
|
|
204
|
-
/** The field to group by (supports dot notation) */
|
|
205
|
-
field: string;
|
|
206
|
-
}
|
|
207
|
-
export type GroupByOutput = {
|
|
208
|
-
/** Object with group keys and their items */
|
|
209
|
-
groups: {
|
|
210
|
-
[key: string]: {
|
|
211
|
-
[key: string]: unknown;
|
|
212
|
-
}[];
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
export type HttpRequestInput = {
|
|
216
|
-
/** HTTP method */
|
|
217
|
-
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
218
|
-
/** The request URL */
|
|
219
|
-
url: string;
|
|
220
|
-
/** Request headers */
|
|
221
|
-
headers?: {
|
|
222
|
-
[key: string]: unknown;
|
|
223
|
-
} | undefined;
|
|
224
|
-
/** Query string parameters appended to the URL */
|
|
225
|
-
query?: {
|
|
226
|
-
[key: string]: unknown;
|
|
227
|
-
} | undefined;
|
|
228
|
-
/** Request body — JSON-encoded unless it is already a string */
|
|
229
|
-
body?: unknown | undefined;
|
|
230
|
-
/** Optional authentication resolved from a secret at request time */
|
|
231
|
-
auth?: {
|
|
232
|
-
/** How the credential is applied to the request */
|
|
233
|
-
mode: "bearer" | "apiKeyHeader" | "apiKeyQuery" | "basic" | "oauth2";
|
|
234
|
-
/** Secret key the value is provisioned under */
|
|
235
|
-
credential: string;
|
|
236
|
-
/** apiKeyHeader — header name (defaults to Authorization) */
|
|
237
|
-
headerName?: string | undefined;
|
|
238
|
-
/** apiKeyQuery — query-param name (defaults to api_key) */
|
|
239
|
-
queryName?: string | undefined;
|
|
240
|
-
/** Static, non-secret headers always sent (e.g. Notion-Version) */
|
|
241
|
-
extraHeaders?: {
|
|
242
|
-
[key: string]: string;
|
|
243
|
-
} | undefined;
|
|
244
|
-
/** Where the value comes from — secret (default) or credential */
|
|
245
|
-
source?: ("secret" | "credential") | undefined;
|
|
246
|
-
} | undefined;
|
|
247
|
-
}
|
|
248
|
-
export type HttpRequestOutput = {
|
|
249
|
-
[key: string]: unknown;
|
|
250
|
-
}
|
|
251
|
-
export type JwtDecodeInput = {
|
|
252
|
-
/** The JWT token to decode */
|
|
253
|
-
token: string;
|
|
254
|
-
}
|
|
255
|
-
export type JwtDecodeOutput = {
|
|
256
|
-
/** The decoded payload */
|
|
257
|
-
payload: any;
|
|
258
|
-
}
|
|
259
|
-
export type JwtSignInput = {
|
|
260
|
-
/** The payload to encode into the JWT */
|
|
261
|
-
payload: any;
|
|
262
|
-
/** Token expiration time */
|
|
263
|
-
expiresIn: {
|
|
264
|
-
/** Duration value */
|
|
265
|
-
value: number;
|
|
266
|
-
/** Time unit */
|
|
267
|
-
unit: "second" | "minute" | "hour" | "day" | "week" | "year";
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
export type JwtSignOutput = {
|
|
271
|
-
/** The signed JWT token */
|
|
272
|
-
token: string;
|
|
273
|
-
}
|
|
274
|
-
export type LimitInput = {
|
|
275
|
-
/** The array of items to limit */
|
|
276
|
-
items: unknown[];
|
|
277
|
-
/** Maximum number of items to return */
|
|
278
|
-
limit: number;
|
|
279
|
-
/** Number of items to skip from the beginning */
|
|
280
|
-
offset?: number | undefined;
|
|
281
|
-
}
|
|
282
|
-
export type LimitOutput = {
|
|
283
|
-
/** The limited array of items */
|
|
284
|
-
items: unknown[];
|
|
285
|
-
/** The original total count before limiting */
|
|
286
|
-
totalCount: number;
|
|
287
|
-
}
|
|
288
|
-
export type MathInput = {
|
|
289
|
-
/** The math operation to perform */
|
|
290
|
-
operation: "add" | "subtract" | "multiply" | "divide" | "modulo" | "power" | "sqrt" | "abs" | "round" | "floor" | "ceil" | "min" | "max" | "random";
|
|
291
|
-
/** First operand */
|
|
292
|
-
a?: number | undefined;
|
|
293
|
-
/** Second operand (for binary operations) */
|
|
294
|
-
b?: number | undefined;
|
|
295
|
-
/** Decimal places for round operation */
|
|
296
|
-
decimals?: number | undefined;
|
|
297
|
-
}
|
|
298
|
-
export type MathOutput = {
|
|
299
|
-
/** The result of the operation */
|
|
300
|
-
result: number;
|
|
301
|
-
}
|
|
302
|
-
export type MergeInput = {
|
|
303
|
-
/** Objects to merge (later objects override earlier ones) */
|
|
304
|
-
items: {
|
|
305
|
-
[key: string]: unknown;
|
|
306
|
-
}[];
|
|
307
|
-
/** Perform deep merge of nested objects */
|
|
308
|
-
deep?: boolean | undefined;
|
|
309
|
-
}
|
|
310
|
-
export type MergeOutput = {
|
|
311
|
-
/** The merged object */
|
|
312
|
-
item: {
|
|
313
|
-
[key: string]: unknown;
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
export type OmitInput = {
|
|
317
|
-
/** The input object */
|
|
318
|
-
item: {
|
|
319
|
-
[key: string]: unknown;
|
|
320
|
-
};
|
|
321
|
-
/** Fields to remove */
|
|
322
|
-
fields: string[];
|
|
323
|
-
}
|
|
324
|
-
export type OmitOutput = {
|
|
325
|
-
/** Object without the specified fields */
|
|
326
|
-
item: {
|
|
327
|
-
[key: string]: unknown;
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
export type PickInput = {
|
|
331
|
-
/** The input object */
|
|
332
|
-
item: {
|
|
333
|
-
[key: string]: unknown;
|
|
334
|
-
};
|
|
335
|
-
/** Fields to keep (supports dot notation for nested fields) */
|
|
336
|
-
fields: string[];
|
|
337
|
-
}
|
|
338
|
-
export type PickOutput = {
|
|
339
|
-
/** Object with only the specified fields */
|
|
340
|
-
item: {
|
|
341
|
-
[key: string]: unknown;
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
export type ReadFileInput = {
|
|
345
|
-
/** Storage bucket (defaults to the content service root bucket) */
|
|
346
|
-
bucket?: string | undefined;
|
|
347
|
-
/** Asset key / path of the file to read */
|
|
348
|
-
key: string;
|
|
349
|
-
/** How to decode the file bytes into `data` (default utf8) */
|
|
350
|
-
encoding?: ("utf8" | "base64") | undefined;
|
|
351
|
-
}
|
|
352
|
-
export type ReadFileOutput = {
|
|
353
|
-
/** File contents decoded with the requested encoding */
|
|
354
|
-
data: string;
|
|
355
|
-
/** Bucket the file was read from */
|
|
356
|
-
bucket: string;
|
|
357
|
-
/** Asset key that was read */
|
|
358
|
-
key: string;
|
|
359
|
-
}
|
|
360
|
-
export type RemoveDuplicatesInput = {
|
|
361
|
-
/** The array of items to deduplicate */
|
|
362
|
-
items: {
|
|
363
|
-
[key: string]: unknown;
|
|
364
|
-
}[];
|
|
365
|
-
/** Fields to use for comparison (if empty, compares entire objects) */
|
|
366
|
-
fields: string[];
|
|
367
|
-
/** Keep the first occurrence (true) or last (false) */
|
|
368
|
-
keepFirst?: boolean | undefined;
|
|
369
|
-
}
|
|
370
|
-
export type RemoveDuplicatesOutput = {
|
|
371
|
-
/** The deduplicated array of items */
|
|
372
|
-
items: {
|
|
373
|
-
[key: string]: unknown;
|
|
374
|
-
}[];
|
|
375
|
-
/** Number of duplicates removed */
|
|
376
|
-
removedCount: number;
|
|
377
|
-
}
|
|
378
|
-
export type RenameKeysInput = {
|
|
379
|
-
/** The input object to transform */
|
|
380
|
-
item: {
|
|
381
|
-
[key: string]: unknown;
|
|
382
|
-
};
|
|
383
|
-
/** List of key rename mappings */
|
|
384
|
-
mappings: {
|
|
385
|
-
/** The original key name */
|
|
386
|
-
oldKey: string;
|
|
387
|
-
/** The new key name */
|
|
388
|
-
newKey: string;
|
|
389
|
-
}[];
|
|
390
|
-
/** Whether to keep keys that are not in the mapping */
|
|
391
|
-
keepUnmapped?: boolean | undefined;
|
|
392
|
-
}
|
|
393
|
-
export type RenameKeysOutput = {
|
|
394
|
-
/** The transformed object with renamed keys */
|
|
395
|
-
item: {
|
|
396
|
-
[key: string]: unknown;
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
export type ReverseInput = {
|
|
400
|
-
/** The array to reverse */
|
|
401
|
-
items: unknown[];
|
|
402
|
-
}
|
|
403
|
-
export type ReverseOutput = {
|
|
404
|
-
/** The reversed array */
|
|
405
|
-
items: unknown[];
|
|
406
|
-
}
|
|
407
|
-
export type SleepInput = {
|
|
408
|
-
/** A unique name for this sleep step */
|
|
409
|
-
name: string;
|
|
410
|
-
/** Duration to sleep in milliseconds */
|
|
411
|
-
ms: number;
|
|
412
|
-
}
|
|
413
|
-
export type SleepOutput = void | undefined
|
|
414
|
-
export type SortInput = {
|
|
415
|
-
/** The array of items to sort */
|
|
416
|
-
items: {
|
|
417
|
-
[key: string]: unknown;
|
|
418
|
-
}[];
|
|
419
|
-
/** Fields to sort by (in order of priority) */
|
|
420
|
-
sortBy: {
|
|
421
|
-
/** The field path to sort by (supports dot notation) */
|
|
422
|
-
field: string;
|
|
423
|
-
/** Sort order */
|
|
424
|
-
order?: ("asc" | "desc") | undefined;
|
|
425
|
-
}[];
|
|
426
|
-
}
|
|
427
|
-
export type SortOutput = {
|
|
428
|
-
/** The sorted array of items */
|
|
429
|
-
items: {
|
|
430
|
-
[key: string]: unknown;
|
|
431
|
-
}[];
|
|
432
|
-
}
|
|
433
|
-
export type SplitOutInput = {
|
|
434
|
-
/** The input object containing a nested array */
|
|
435
|
-
item: {
|
|
436
|
-
[key: string]: unknown;
|
|
437
|
-
};
|
|
438
|
-
/** The field path containing the array to split (supports dot notation) */
|
|
439
|
-
field: string;
|
|
440
|
-
/** Include parent object fields in each output item */
|
|
441
|
-
includeParent?: boolean | undefined;
|
|
442
|
-
}
|
|
443
|
-
export type SplitOutOutput = {
|
|
444
|
-
/** The split array of items */
|
|
445
|
-
items: {
|
|
446
|
-
[key: string]: unknown;
|
|
447
|
-
}[];
|
|
448
|
-
}
|
|
449
|
-
export type SplitTextInput = {
|
|
450
|
-
/** The text to split into chunks */
|
|
451
|
-
text: string;
|
|
452
|
-
/** Splitting strategy: recursive (paragraph→line→word hierarchy, default), character (single separator), or token (approximate token budget) */
|
|
453
|
-
strategy?: ("recursive" | "character" | "token") | undefined;
|
|
454
|
-
/** Maximum size of each chunk (characters, or tokens for the token strategy; default 1000) */
|
|
455
|
-
chunkSize?: number | undefined;
|
|
456
|
-
/** Amount of overlap carried between consecutive chunks (default 200) */
|
|
457
|
-
chunkOverlap?: number | undefined;
|
|
458
|
-
/** Separator for the character strategy (default "\n\n") */
|
|
459
|
-
separator?: string | undefined;
|
|
460
|
-
}
|
|
461
|
-
export type SplitTextOutput = {
|
|
462
|
-
/** The resulting text chunks */
|
|
463
|
-
chunks: string[];
|
|
464
|
-
}
|
|
465
|
-
export type StopAndErrorInput = {
|
|
466
|
-
/** The error message to throw, halting the workflow */
|
|
467
|
-
message: string;
|
|
468
|
-
}
|
|
469
|
-
export type StopAndErrorOutput = void | undefined
|
|
470
|
-
export type StringTransformInput = {
|
|
471
|
-
/** The input string */
|
|
472
|
-
value: string;
|
|
473
|
-
/** The transformation to apply */
|
|
474
|
-
operation: "uppercase" | "lowercase" | "capitalize" | "camelCase" | "snakeCase" | "kebabCase" | "trim" | "trimStart" | "trimEnd" | "split" | "replace" | "slice" | "padStart" | "padEnd";
|
|
475
|
-
/** Separator for split operation */
|
|
476
|
-
separator?: string | undefined;
|
|
477
|
-
/** Search string for replace operation */
|
|
478
|
-
search?: string | undefined;
|
|
479
|
-
/** Replacement string for replace operation */
|
|
480
|
-
replacement?: string | undefined;
|
|
481
|
-
/** Replace all occurrences */
|
|
482
|
-
replaceAll?: boolean | undefined;
|
|
483
|
-
/** Start index for slice */
|
|
484
|
-
start?: number | undefined;
|
|
485
|
-
/** End index for slice */
|
|
486
|
-
end?: number | undefined;
|
|
487
|
-
/** Target length for pad operations */
|
|
488
|
-
length?: number | undefined;
|
|
489
|
-
/** Character to pad with */
|
|
490
|
-
padChar?: string | undefined;
|
|
491
|
-
}
|
|
492
|
-
export type StringTransformOutput = {
|
|
493
|
-
/** The transformed result */
|
|
494
|
-
result: string | string[];
|
|
495
|
-
}
|
|
496
|
-
export type SummarizeInput = {
|
|
497
|
-
/** The array of items to summarize */
|
|
498
|
-
items: {
|
|
499
|
-
[key: string]: unknown;
|
|
500
|
-
}[];
|
|
501
|
-
/** List of aggregation operations to perform */
|
|
502
|
-
aggregations: {
|
|
503
|
-
/** The field path to aggregate */
|
|
504
|
-
field: string;
|
|
505
|
-
/** The aggregation operation */
|
|
506
|
-
operation: "sum" | "avg" | "min" | "max" | "count" | "countDistinct" | "first" | "last";
|
|
507
|
-
/** The name of the output field */
|
|
508
|
-
outputField: string;
|
|
509
|
-
}[];
|
|
510
|
-
/** Fields to group by */
|
|
511
|
-
groupBy?: string[] | undefined;
|
|
512
|
-
}
|
|
513
|
-
export type SummarizeOutput = {
|
|
514
|
-
/** The summarized results */
|
|
515
|
-
items: {
|
|
516
|
-
[key: string]: unknown;
|
|
517
|
-
}[];
|
|
518
|
-
}
|
|
519
|
-
export type TypeConvertInput = {
|
|
520
|
-
/** The value to convert */
|
|
521
|
-
value: unknown;
|
|
522
|
-
/** Target type */
|
|
523
|
-
to: "string" | "number" | "boolean" | "json" | "array";
|
|
524
|
-
/** Radix for number parsing (e.g., 10, 16) */
|
|
525
|
-
radix?: number | undefined;
|
|
526
|
-
}
|
|
527
|
-
export type TypeConvertOutput = {
|
|
528
|
-
/** The converted value */
|
|
529
|
-
result: unknown;
|
|
530
|
-
/** Whether the conversion succeeded */
|
|
531
|
-
success: boolean;
|
|
532
|
-
/** The original type of the value */
|
|
533
|
-
originalType: string;
|
|
534
|
-
}
|
|
535
|
-
export type UniqueInput = {
|
|
536
|
-
/** The array to get unique values from */
|
|
537
|
-
items: unknown[];
|
|
538
|
-
/** For arrays of objects, the field to check uniqueness by */
|
|
539
|
-
field?: string | undefined;
|
|
540
|
-
}
|
|
541
|
-
export type UniqueOutput = {
|
|
542
|
-
/** Array with only unique values */
|
|
543
|
-
items: unknown[];
|
|
544
|
-
}
|
|
545
|
-
export type WaitInput = {
|
|
546
|
-
/** A unique name for this wait step */
|
|
547
|
-
name: string;
|
|
548
|
-
/** How long to wait */
|
|
549
|
-
amount: number;
|
|
550
|
-
/** The unit for the wait amount */
|
|
551
|
-
unit: "seconds" | "minutes" | "hours" | "days";
|
|
552
|
-
}
|
|
553
|
-
export type WaitOutput = void | undefined
|
|
554
|
-
export type WriteFileInput = {
|
|
555
|
-
/** Storage bucket (defaults to the content service root bucket) */
|
|
556
|
-
bucket?: string | undefined;
|
|
557
|
-
/** Asset key / path to write the file to */
|
|
558
|
-
key: string;
|
|
559
|
-
/** File contents, decoded according to `encoding` */
|
|
560
|
-
data: string;
|
|
561
|
-
/** How `data` is encoded (default utf8) */
|
|
562
|
-
encoding?: ("utf8" | "base64") | undefined;
|
|
563
|
-
}
|
|
564
|
-
export type WriteFileOutput = {
|
|
565
|
-
/** Bucket the file was written to */
|
|
566
|
-
bucket: string;
|
|
567
|
-
/** Asset key of the written file */
|
|
568
|
-
assetKey: string;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
interface RPCHandler<I, O> {
|
|
572
|
-
input: I;
|
|
573
|
-
output: O;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
export type RPCMap = {
|
|
577
|
-
readonly 'aggregate': RPCHandler<AggregateInput, AggregateOutput>,
|
|
578
|
-
readonly 'chunk': RPCHandler<ChunkInput, ChunkOutput>,
|
|
579
|
-
readonly 'fanout': RPCHandler<FanoutInput, FanoutOutput>,
|
|
580
|
-
readonly 'find': RPCHandler<FindInput, FindOutput>,
|
|
581
|
-
readonly 'groupBy': RPCHandler<GroupByInput, GroupByOutput>,
|
|
582
|
-
readonly 'limit': RPCHandler<LimitInput, LimitOutput>,
|
|
583
|
-
readonly 'removeDuplicates': RPCHandler<RemoveDuplicatesInput, RemoveDuplicatesOutput>,
|
|
584
|
-
readonly 'reverse': RPCHandler<ReverseInput, ReverseOutput>,
|
|
585
|
-
readonly 'sort': RPCHandler<SortInput, SortOutput>,
|
|
586
|
-
readonly 'splitOut': RPCHandler<SplitOutInput, SplitOutOutput>,
|
|
587
|
-
readonly 'summarize': RPCHandler<SummarizeInput, SummarizeOutput>,
|
|
588
|
-
readonly 'unique': RPCHandler<UniqueInput, UniqueOutput>,
|
|
589
|
-
readonly 'coalesce': RPCHandler<CoalesceInput, CoalesceOutput>,
|
|
590
|
-
readonly 'crypto': RPCHandler<CryptoInput, CryptoOutput>,
|
|
591
|
-
readonly 'dateTime': RPCHandler<DateTimeInput, DateTimeOutput>,
|
|
592
|
-
readonly 'jwtSign': RPCHandler<JwtSignInput, JwtSignOutput>,
|
|
593
|
-
readonly 'jwtDecode': RPCHandler<JwtDecodeInput, JwtDecodeOutput>,
|
|
594
|
-
readonly 'math': RPCHandler<MathInput, MathOutput>,
|
|
595
|
-
readonly 'readFile': RPCHandler<ReadFileInput, ReadFileOutput>,
|
|
596
|
-
readonly 'sleep': RPCHandler<SleepInput, SleepOutput>,
|
|
597
|
-
readonly 'stringTransform': RPCHandler<StringTransformInput, StringTransformOutput>,
|
|
598
|
-
readonly 'typeConvert': RPCHandler<TypeConvertInput, TypeConvertOutput>,
|
|
599
|
-
readonly 'wait': RPCHandler<WaitInput, WaitOutput>,
|
|
600
|
-
readonly 'writeFile': RPCHandler<WriteFileInput, WriteFileOutput>,
|
|
601
|
-
readonly 'branch': RPCHandler<BranchInput, BranchOutput>,
|
|
602
|
-
readonly 'stopAndError': RPCHandler<StopAndErrorInput, StopAndErrorOutput>,
|
|
603
|
-
readonly 'httpRequest': RPCHandler<HttpRequestInput, HttpRequestOutput>,
|
|
604
|
-
readonly 'concat': RPCHandler<ConcatInput, ConcatOutput>,
|
|
605
|
-
readonly 'editFields': RPCHandler<EditFieldsInput, EditFieldsOutput>,
|
|
606
|
-
readonly 'merge': RPCHandler<MergeInput, MergeOutput>,
|
|
607
|
-
readonly 'omit': RPCHandler<OmitInput, OmitOutput>,
|
|
608
|
-
readonly 'pick': RPCHandler<PickInput, PickOutput>,
|
|
609
|
-
readonly 'renameKeys': RPCHandler<RenameKeysInput, RenameKeysOutput>,
|
|
610
|
-
readonly 'splitText': RPCHandler<SplitTextInput, SplitTextOutput>,
|
|
611
|
-
};
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
// No addon packages, use RPCMap directly
|
|
616
|
-
export type FlattenedRPCMap = RPCMap
|
|
617
|
-
|
|
618
|
-
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
619
|
-
type IsVoidishInput<T> = IsAny<T> extends true
|
|
620
|
-
? false
|
|
621
|
-
: [T] extends [void | null | undefined]
|
|
622
|
-
? true
|
|
623
|
-
: false
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
627
|
-
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
628
|
-
? [name: Name]
|
|
629
|
-
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
630
|
-
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
631
|
-
|
|
632
|
-
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
633
|
-
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
634
|
-
? [name: Name]
|
|
635
|
-
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
636
|
-
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
637
|
-
|
|
638
|
-
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
639
|
-
|
|
640
|
-
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
type FlattenedAgentMap = AgentMap
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
647
|
-
import type { AgentInput } from '@pikku/core/agent'
|
|
648
|
-
|
|
649
|
-
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
650
|
-
name: Name,
|
|
651
|
-
input: FlattenedWorkflowMap[Name]['input'],
|
|
652
|
-
options?: { startNode?: string }
|
|
653
|
-
) => Promise<{ runId: string }>
|
|
654
|
-
|
|
655
|
-
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
656
|
-
name: Name,
|
|
657
|
-
input: FlattenedWorkflowMap[Name]['input']
|
|
658
|
-
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
659
|
-
|
|
660
|
-
export type TypedWorkflowStatus = (
|
|
661
|
-
workflowName: string,
|
|
662
|
-
runId: string
|
|
663
|
-
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
664
|
-
|
|
665
|
-
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
666
|
-
? (name: string, input: AgentInput) => Promise<any>
|
|
667
|
-
: <Name extends keyof FlattenedAgentMap>(
|
|
668
|
-
name: Name,
|
|
669
|
-
input: AgentInput
|
|
670
|
-
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
671
|
-
|
|
672
|
-
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
673
|
-
? (name: string, input: AgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
674
|
-
: <Name extends keyof FlattenedAgentMap>(
|
|
675
|
-
name: Name,
|
|
676
|
-
input: AgentInput,
|
|
677
|
-
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
678
|
-
) => Promise<void>
|
|
679
|
-
|
|
680
|
-
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
681
|
-
|