@pikku/addon-graph 0.12.12 → 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 +423 -0
- package/dist/.pikku/addon/agent/index.d.ts +8 -0
- package/dist/.pikku/addon/agent/index.d.ts.map +1 -0
- package/dist/.pikku/addon/agent/index.js +8 -0
- package/dist/.pikku/addon/agent/index.js.map +1 -0
- package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.d.ts +50 -8
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +61 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +6 -0
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js.map +1 -0
- package/dist/.pikku/addon/auth/index.d.ts +8 -0
- package/dist/.pikku/addon/auth/index.d.ts.map +1 -0
- package/dist/.pikku/addon/auth/index.js +8 -0
- package/dist/.pikku/addon/auth/index.js.map +1 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +109 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +76 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -0
- package/dist/.pikku/addon/channel/index.d.ts +8 -0
- package/dist/.pikku/addon/channel/index.d.ts.map +1 -0
- package/dist/.pikku/addon/channel/index.js +8 -0
- package/dist/.pikku/addon/channel/index.js.map +1 -0
- package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.d.ts +12 -43
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.js +8 -20
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/addon/error/index.d.ts +8 -0
- package/dist/.pikku/addon/error/index.d.ts.map +1 -0
- package/dist/.pikku/addon/error/index.js +8 -0
- package/dist/.pikku/addon/error/index.js.map +1 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +8 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.js +8 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.js.map +1 -0
- package/dist/.pikku/addon/function/index.d.ts +8 -0
- package/dist/.pikku/addon/function/index.d.ts.map +1 -0
- package/dist/.pikku/addon/function/index.js +8 -0
- package/dist/.pikku/addon/function/index.js.map +1 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +279 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +129 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +7 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.js +74 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/addon/http/index.d.ts +8 -0
- package/dist/.pikku/addon/http/index.d.ts.map +1 -0
- package/dist/.pikku/addon/http/index.js +8 -0
- package/dist/.pikku/addon/http/index.js.map +1 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +52 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +11 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/addon/mcp/index.d.ts +8 -0
- package/dist/.pikku/addon/mcp/index.d.ts.map +1 -0
- package/dist/.pikku/addon/mcp/index.js +8 -0
- package/dist/.pikku/addon/mcp/index.js.map +1 -0
- package/dist/.pikku/{mcp → addon/mcp}/pikku-mcp-types.gen.d.ts +12 -36
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +16 -0
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/addon/middleware/index.d.ts +8 -0
- package/dist/.pikku/addon/middleware/index.d.ts.map +1 -0
- package/dist/.pikku/addon/middleware/index.js +8 -0
- package/dist/.pikku/addon/middleware/index.js.map +1 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +134 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +114 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -0
- package/dist/.pikku/{pikku-bootstrap-scenarios.gen.d.ts → addon/pikku-bootstrap-scenarios.gen.d.ts} +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-bootstrap-scenarios.gen.js → addon/pikku-bootstrap-scenarios.gen.js} +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js.map +1 -0
- package/dist/.pikku/{pikku-bootstrap.gen.d.ts → addon/pikku-bootstrap.gen.d.ts} +2 -2
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-bootstrap.gen.js → addon/pikku-bootstrap.gen.js} +2 -2
- package/dist/.pikku/addon/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.js +3 -3
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/{pikku-services.gen.d.ts → addon/pikku-services.gen.d.ts} +9 -8
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-services.gen.js → addon/pikku-services.gen.js} +5 -4
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/index.d.ts +8 -0
- package/dist/.pikku/addon/scenarios/index.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/index.js +8 -0
- package/dist/.pikku/addon/scenarios/index.js.map +1 -0
- package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.d.ts +17 -2
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +29 -0
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.js +2 -2
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.js.map +1 -0
- package/dist/.pikku/{workflow/pikku-workflow-types.gen.d.ts → addon/scenarios/pikku-scenario-types.gen.d.ts} +72 -97
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -0
- package/dist/.pikku/{workflow/pikku-workflow-types.gen.js → addon/scenarios/pikku-scenario-types.gen.js} +13 -16
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.js +2 -2
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +5 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +5 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/addon/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/{schemas → addon/schemas}/register.gen.js +2 -2
- package/dist/.pikku/addon/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/index.d.ts +8 -0
- package/dist/.pikku/addon/scopes/index.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/index.js +8 -0
- package/dist/.pikku/addon/scopes/index.js.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.d.ts +4 -13
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.d.ts +2 -2
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +6 -0
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +6 -0
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.d.ts +2 -2
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -0
- package/dist/.pikku/addon/secrets/index.d.ts +9 -0
- package/dist/.pikku/addon/secrets/index.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/index.js +9 -0
- package/dist/.pikku/addon/secrets/index.js.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +5 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +5 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +26 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +23 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/{pikku-meta-service.gen.d.ts → addon/services/pikku-meta-service.gen.d.ts} +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-meta-service.gen.js → addon/services/pikku-meta-service.gen.js} +2 -2
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/addon/setup/index.d.ts +9 -0
- package/dist/.pikku/addon/setup/index.d.ts.map +1 -0
- package/dist/.pikku/addon/setup/index.js +9 -0
- package/dist/.pikku/addon/setup/index.js.map +1 -0
- package/dist/.pikku/addon/{pikku-addon-types.gen.d.ts → setup/pikku-addon-setup-types.gen.d.ts} +6 -6
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/{pikku-addon-types.gen.js → setup/pikku-addon-setup-types.gen.js} +2 -2
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js.map +1 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +55 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +80 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -0
- package/dist/.pikku/addon/trigger/index.d.ts +8 -0
- package/dist/.pikku/addon/trigger/index.d.ts.map +1 -0
- package/dist/.pikku/addon/trigger/index.js +8 -0
- package/dist/.pikku/addon/trigger/index.js.map +1 -0
- package/dist/.pikku/{trigger → addon/trigger}/pikku-trigger-types.gen.d.ts +7 -38
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +13 -0
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -0
- package/dist/.pikku/addon/variables/index.d.ts +9 -0
- package/dist/.pikku/addon/variables/index.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/index.js +9 -0
- package/dist/.pikku/addon/variables/index.js.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +5 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +5 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables-meta.gen.json +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +27 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +23 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/addon/workflow/index.d.ts +8 -0
- package/dist/.pikku/addon/workflow/index.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/index.js +8 -0
- package/dist/.pikku/addon/workflow/index.js.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +134 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +23 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js.map +1 -0
- package/dist/src/functions/array/aggregate.function.d.ts +4 -4
- package/dist/src/functions/array/aggregate.function.d.ts.map +1 -1
- package/dist/src/functions/array/aggregate.function.js +1 -1
- package/dist/src/functions/array/aggregate.function.js.map +1 -1
- package/dist/src/functions/array/chunk.function.d.ts +4 -4
- package/dist/src/functions/array/chunk.function.d.ts.map +1 -1
- package/dist/src/functions/array/chunk.function.js +1 -1
- package/dist/src/functions/array/chunk.function.js.map +1 -1
- package/dist/src/functions/array/fanout.function.d.ts +4 -4
- package/dist/src/functions/array/fanout.function.d.ts.map +1 -1
- package/dist/src/functions/array/fanout.function.js +1 -1
- package/dist/src/functions/array/fanout.function.js.map +1 -1
- package/dist/src/functions/array/find.function.d.ts +4 -4
- package/dist/src/functions/array/find.function.d.ts.map +1 -1
- package/dist/src/functions/array/find.function.js +1 -1
- package/dist/src/functions/array/find.function.js.map +1 -1
- package/dist/src/functions/array/group-by.function.d.ts +4 -4
- package/dist/src/functions/array/group-by.function.d.ts.map +1 -1
- package/dist/src/functions/array/group-by.function.js +1 -1
- package/dist/src/functions/array/group-by.function.js.map +1 -1
- package/dist/src/functions/array/limit.function.d.ts +4 -4
- package/dist/src/functions/array/limit.function.d.ts.map +1 -1
- package/dist/src/functions/array/limit.function.js +1 -1
- package/dist/src/functions/array/limit.function.js.map +1 -1
- package/dist/src/functions/array/remove-duplicates.function.d.ts +4 -4
- package/dist/src/functions/array/remove-duplicates.function.d.ts.map +1 -1
- package/dist/src/functions/array/remove-duplicates.function.js +1 -1
- package/dist/src/functions/array/remove-duplicates.function.js.map +1 -1
- package/dist/src/functions/array/reverse.function.d.ts +4 -4
- package/dist/src/functions/array/reverse.function.d.ts.map +1 -1
- package/dist/src/functions/array/reverse.function.js +1 -1
- package/dist/src/functions/array/reverse.function.js.map +1 -1
- package/dist/src/functions/array/sort.function.d.ts +4 -4
- package/dist/src/functions/array/sort.function.d.ts.map +1 -1
- package/dist/src/functions/array/sort.function.js +1 -1
- package/dist/src/functions/array/sort.function.js.map +1 -1
- package/dist/src/functions/array/split-out.function.d.ts +4 -4
- package/dist/src/functions/array/split-out.function.d.ts.map +1 -1
- package/dist/src/functions/array/split-out.function.js +1 -1
- package/dist/src/functions/array/split-out.function.js.map +1 -1
- package/dist/src/functions/array/summarize.function.d.ts +4 -4
- package/dist/src/functions/array/summarize.function.d.ts.map +1 -1
- package/dist/src/functions/array/summarize.function.js +1 -1
- package/dist/src/functions/array/summarize.function.js.map +1 -1
- package/dist/src/functions/array/unique.function.d.ts +4 -4
- package/dist/src/functions/array/unique.function.d.ts.map +1 -1
- package/dist/src/functions/array/unique.function.js +1 -1
- package/dist/src/functions/array/unique.function.js.map +1 -1
- package/dist/src/functions/data/coalesce.function.d.ts +4 -4
- package/dist/src/functions/data/coalesce.function.d.ts.map +1 -1
- package/dist/src/functions/data/coalesce.function.js +1 -1
- package/dist/src/functions/data/coalesce.function.js.map +1 -1
- package/dist/src/functions/data/crypto.function.d.ts +4 -4
- package/dist/src/functions/data/crypto.function.d.ts.map +1 -1
- package/dist/src/functions/data/crypto.function.js +1 -1
- package/dist/src/functions/data/crypto.function.js.map +1 -1
- package/dist/src/functions/data/date-time.function.d.ts +4 -4
- package/dist/src/functions/data/date-time.function.d.ts.map +1 -1
- package/dist/src/functions/data/date-time.function.js +1 -1
- package/dist/src/functions/data/date-time.function.js.map +1 -1
- package/dist/src/functions/data/jwt.function.d.ts +8 -8
- package/dist/src/functions/data/jwt.function.d.ts.map +1 -1
- package/dist/src/functions/data/jwt.function.js +2 -2
- package/dist/src/functions/data/jwt.function.js.map +1 -1
- package/dist/src/functions/data/math.function.d.ts +4 -4
- package/dist/src/functions/data/math.function.d.ts.map +1 -1
- package/dist/src/functions/data/math.function.js +1 -1
- package/dist/src/functions/data/math.function.js.map +1 -1
- package/dist/src/functions/data/read-file.function.d.ts +4 -4
- package/dist/src/functions/data/read-file.function.d.ts.map +1 -1
- package/dist/src/functions/data/read-file.function.js +1 -1
- package/dist/src/functions/data/read-file.function.js.map +1 -1
- package/dist/src/functions/data/sleep.function.d.ts +4 -4
- package/dist/src/functions/data/sleep.function.d.ts.map +1 -1
- package/dist/src/functions/data/sleep.function.js +1 -1
- package/dist/src/functions/data/sleep.function.js.map +1 -1
- package/dist/src/functions/data/string-transform.function.d.ts +4 -4
- package/dist/src/functions/data/string-transform.function.d.ts.map +1 -1
- package/dist/src/functions/data/string-transform.function.js +1 -1
- package/dist/src/functions/data/string-transform.function.js.map +1 -1
- package/dist/src/functions/data/type-convert.function.d.ts +4 -4
- package/dist/src/functions/data/type-convert.function.d.ts.map +1 -1
- package/dist/src/functions/data/type-convert.function.js +1 -1
- package/dist/src/functions/data/type-convert.function.js.map +1 -1
- package/dist/src/functions/data/wait.function.d.ts +4 -4
- package/dist/src/functions/data/wait.function.d.ts.map +1 -1
- package/dist/src/functions/data/wait.function.js +1 -1
- package/dist/src/functions/data/wait.function.js.map +1 -1
- package/dist/src/functions/data/write-file.function.d.ts +4 -4
- package/dist/src/functions/data/write-file.function.d.ts.map +1 -1
- package/dist/src/functions/data/write-file.function.js +1 -1
- package/dist/src/functions/data/write-file.function.js.map +1 -1
- package/dist/src/functions/logic/branch.function.d.ts +4 -4
- package/dist/src/functions/logic/branch.function.d.ts.map +1 -1
- package/dist/src/functions/logic/branch.function.js +1 -1
- package/dist/src/functions/logic/branch.function.js.map +1 -1
- package/dist/src/functions/logic/stop-and-error.function.d.ts +4 -4
- package/dist/src/functions/logic/stop-and-error.function.d.ts.map +1 -1
- package/dist/src/functions/logic/stop-and-error.function.js +1 -1
- package/dist/src/functions/logic/stop-and-error.function.js.map +1 -1
- package/dist/src/functions/network/http-request.function.d.ts +4 -4
- package/dist/src/functions/network/http-request.function.d.ts.map +1 -1
- package/dist/src/functions/network/http-request.function.js +1 -1
- package/dist/src/functions/network/http-request.function.js.map +1 -1
- package/dist/src/functions/transform/concat.function.d.ts +4 -4
- package/dist/src/functions/transform/concat.function.d.ts.map +1 -1
- package/dist/src/functions/transform/concat.function.js +1 -1
- package/dist/src/functions/transform/concat.function.js.map +1 -1
- package/dist/src/functions/transform/edit-fields.function.d.ts +4 -4
- package/dist/src/functions/transform/edit-fields.function.d.ts.map +1 -1
- package/dist/src/functions/transform/edit-fields.function.js +1 -1
- package/dist/src/functions/transform/edit-fields.function.js.map +1 -1
- package/dist/src/functions/transform/merge.function.d.ts +4 -4
- package/dist/src/functions/transform/merge.function.d.ts.map +1 -1
- package/dist/src/functions/transform/merge.function.js +1 -1
- package/dist/src/functions/transform/merge.function.js.map +1 -1
- package/dist/src/functions/transform/omit.function.d.ts +4 -4
- package/dist/src/functions/transform/omit.function.d.ts.map +1 -1
- package/dist/src/functions/transform/omit.function.js +1 -1
- package/dist/src/functions/transform/omit.function.js.map +1 -1
- package/dist/src/functions/transform/pick.function.d.ts +4 -4
- package/dist/src/functions/transform/pick.function.d.ts.map +1 -1
- package/dist/src/functions/transform/pick.function.js +1 -1
- package/dist/src/functions/transform/pick.function.js.map +1 -1
- package/dist/src/functions/transform/rename-keys.function.d.ts +4 -4
- package/dist/src/functions/transform/rename-keys.function.d.ts.map +1 -1
- package/dist/src/functions/transform/rename-keys.function.js +1 -1
- package/dist/src/functions/transform/rename-keys.function.js.map +1 -1
- package/dist/src/functions/transform/split-text.function.d.ts +4 -4
- package/dist/src/functions/transform/split-text.function.d.ts.map +1 -1
- package/dist/src/functions/transform/split-text.function.js +1 -1
- package/dist/src/functions/transform/split-text.function.js.map +1 -1
- package/dist/src/http-requester.service.d.ts +2 -2
- package/dist/src/http-requester.service.d.ts.map +1 -1
- package/dist/src/http-requester.service.js +2 -2
- package/dist/src/http-requester.service.js.map +1 -1
- package/dist/src/services.d.ts +1 -1
- package/dist/src/services.d.ts.map +1 -1
- package/dist/src/services.js +1 -1
- package/dist/src/services.js.map +1 -1
- package/dist/types/application-types.d.ts +1 -1
- package/package.json +11 -13
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.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.map +0 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js +0 -21
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +0 -1
- 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/channel/pikku-channel-types.gen.d.ts.map +0 -1
- 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/function/pikku-function-types.gen.d.ts +0 -504
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +0 -352
- package/dist/.pikku/function/pikku-function-types.gen.js.map +0 -1
- 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.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/http/pikku-http-types.gen.d.ts +0 -98
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +0 -50
- package/dist/.pikku/http/pikku-http-types.gen.js.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -38
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.js.map +0 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-meta-service.gen.js.map +0 -1
- package/dist/.pikku/pikku-services.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-services.gen.js.map +0 -1
- package/dist/.pikku/pikku-types.gen.d.ts +0 -13
- package/dist/.pikku/pikku-types.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-types.gen.js +0 -19
- package/dist/.pikku/pikku-types.gen.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.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/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +0 -1
- 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.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/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.map +0 -1
- package/dist/.pikku/schemas/register.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +0 -8
- 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.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -7
- 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.gen.d.ts +0 -22
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +0 -21
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +0 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +0 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -34
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -6
- 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.gen.d.ts +0 -22
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +0 -21
- package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
- 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.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +0 -1
- 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/{agent → addon/agent}/pikku-model-aliases.gen.d.ts +0 -0
- /package/dist/.pikku/{scenarios/pikku-scenario-functions-meta.gen.json → addon/db/pikku-db-meta.gen.json} +0 -0
- /package/dist/.pikku/{function → addon/function}/pikku-functions-meta-verbose.gen.json +0 -0
- /package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.d.ts +0 -0
- /package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.json +0 -0
- /package/dist/.pikku/{function → addon/function}/pikku-functions.gen.d.ts +0 -0
- /package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -0
- /package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.json +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.d.ts +0 -0
- /package/dist/.pikku/{scopes/pikku-personas-meta.gen.json → addon/scenarios/pikku-scenario-functions-meta.gen.json} +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions.gen.js +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.d.ts +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings.gen.js +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/register.gen.d.ts +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/AggregateInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/AggregateOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/BranchInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/BranchOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/ChunkInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/ChunkOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/CoalesceInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/CoalesceOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/ConcatInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/ConcatOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/CryptoInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/CryptoOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/DateTimeInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/DateTimeOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/EditFieldsInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/EditFieldsOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/FanoutInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/FanoutOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/FindInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/FindOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/GroupByInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/GroupByOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/HttpRequestInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/HttpRequestOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/JwtDecodeInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/JwtDecodeOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/JwtSignInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/JwtSignOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/LimitInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/LimitOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/MathInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/MathOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/MergeInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/MergeOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/OmitInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/OmitOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/PickInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/PickOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/ReadFileInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/ReadFileOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/RemoveDuplicatesInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/RemoveDuplicatesOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/RenameKeysInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/RenameKeysOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/ReverseInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/ReverseOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/SleepInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/SleepOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/SortInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/SortOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/SplitOutInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/SplitOutOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/SplitTextInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/SplitTextOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/StopAndErrorInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/StopAndErrorOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/StringTransformInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/StringTransformOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/SummarizeInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/SummarizeOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/TypeConvertInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/TypeConvertOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/UniqueInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/UniqueOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/WaitInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/WaitOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/WriteFileInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/WriteFileOutput.schema.json +0 -0
- /package/dist/.pikku/{scopes/pikku-roles-meta.gen.json → addon/scopes/pikku-personas-meta.gen.json} +0 -0
- /package/dist/.pikku/{scopes/pikku-scopes-meta.gen.json → addon/scopes/pikku-roles-meta.gen.json} +0 -0
- /package/dist/.pikku/{secrets/pikku-secrets-meta.gen.json → addon/scopes/pikku-scopes-meta.gen.json} +0 -0
- /package/dist/.pikku/{variables/pikku-variables-meta.gen.json → addon/secrets/pikku-secrets-meta.gen.json} +0 -0
- /package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-wirings-meta.gen.d.ts +0 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Core function types for all wirings
|
|
6
|
+
*/
|
|
7
|
+
import type { PickRequired } from '@pikku/core/utils';
|
|
8
|
+
import type { ListInput, ListOutput } from '@pikku/core/function';
|
|
9
|
+
import type { CorePermissionGroup } from '@pikku/core/function';
|
|
10
|
+
import type { PikkuWire, SecretlessServices } from '@pikku/core/types';
|
|
11
|
+
import type { CorePikkuFunctionConfig, CorePikkuSessionlessFunctionConfig, CorePikkuPermission } from '@pikku/core/function';
|
|
12
|
+
import type { NodeType } from '@pikku/core/node';
|
|
13
|
+
import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js';
|
|
14
|
+
import type { PikkuPermission } from '../auth/pikku-auth-types.gen.js';
|
|
15
|
+
import type { ScopeId } from '../scopes/pikku-scopes.gen.js';
|
|
16
|
+
type CredentialsMap = Record<string, unknown>;
|
|
17
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
18
|
+
import { CorePikkuFunction, CorePikkuFunctionSessionless } from '@pikku/core/function';
|
|
19
|
+
import type { UserSession } from '../../../types/application-types.d.js';
|
|
20
|
+
import type { SingletonServices } from '../../../types/application-types.d.js';
|
|
21
|
+
import type { Services } from '../../../types/application-types.d.js';
|
|
22
|
+
import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
|
|
23
|
+
import type { RequiredSingletonServices } from '../pikku-services.gen.js';
|
|
24
|
+
import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js';
|
|
25
|
+
import type { TypedScenario, TypedPersonas } from '../scenarios/pikku-scenario-types.gen.js';
|
|
26
|
+
/**
|
|
27
|
+
* The services that live for the process — the ones built once in `createConfig`/
|
|
28
|
+
* `createSingletonServices` and shared by every request.
|
|
29
|
+
*/
|
|
30
|
+
export type { SingletonServices as SingletonServices };
|
|
31
|
+
/**
|
|
32
|
+
* Everything a function is handed as its first argument: the singleton services
|
|
33
|
+
* plus whatever is built per request. This is the type to widen when you add a
|
|
34
|
+
* service.
|
|
35
|
+
*/
|
|
36
|
+
export type { Services as Services };
|
|
37
|
+
/**
|
|
38
|
+
* The signed-in user as this project defines it. Reached on the wire as
|
|
39
|
+
* `session`, and replaced with `setSession`.
|
|
40
|
+
*/
|
|
41
|
+
export type Session = UserSession;
|
|
42
|
+
/**
|
|
43
|
+
* The services a wired function actually receives. The inspector records which
|
|
44
|
+
* services each wired `func`, `permissions` and `middleware` destructures and
|
|
45
|
+
* emits them as `RequiredSingletonServices`; intersecting that here makes those
|
|
46
|
+
* services **non-optional** at every call site. A service is optional only when
|
|
47
|
+
* nothing destructures it — in which case it is never created either. This is
|
|
48
|
+
* why an `if (!service)` guard inside a function body is always dead code.
|
|
49
|
+
*
|
|
50
|
+
* Only the wire-services half lives here. The singleton half is declared by the
|
|
51
|
+
* auth and middleware leaves that use it, because whether a name earns its
|
|
52
|
+
* export is measured rather than chosen: emit declarations for a project and
|
|
53
|
+
* `WiredServices` is named by 147 of its `.d.ts` files, while the singleton
|
|
54
|
+
* intersection is named by none outside the leaves that declare it. Export the
|
|
55
|
+
* latter and it is a compatibility promise nothing asked for; unexport
|
|
56
|
+
* `WiredServices` and every wired module inlines the intersection instead,
|
|
57
|
+
* which asks it to name each member service through a specifier it does not
|
|
58
|
+
* have — 3308 TS2883s. `--noEmit` cannot surface any of that, so re-check with
|
|
59
|
+
* `tsc --declaration --emitDeclarationOnly` before moving either one.
|
|
60
|
+
*/
|
|
61
|
+
export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>;
|
|
62
|
+
/**
|
|
63
|
+
* Inline node configuration for function definitions.
|
|
64
|
+
*/
|
|
65
|
+
export type NodeConfig = {
|
|
66
|
+
displayName: string;
|
|
67
|
+
category: 'Transform' | 'Array' | 'Data' | 'Logic' | 'Files';
|
|
68
|
+
type: NodeType;
|
|
69
|
+
errorOutput?: boolean;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* A function that generates a human-readable description of a pending approval action.
|
|
73
|
+
* Used by AI agents to show meaningful approval prompts instead of raw tool arguments.
|
|
74
|
+
*
|
|
75
|
+
* @template In - The input type (same as the function it describes)
|
|
76
|
+
* @template RequiredServices - The services required for this description function
|
|
77
|
+
*/
|
|
78
|
+
export type PikkuApprovalDescription<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = (services: RequiredServices, data: In) => Promise<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Factory function for creating approval description functions with tree-shaking support.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```typescript
|
|
84
|
+
* export const deleteTodoApproval = pikkuApprovalDescription(
|
|
85
|
+
* async ({ todoStore }, { id }) => {
|
|
86
|
+
* const todo = await todoStore.get(id)
|
|
87
|
+
* return \`Delete todo: "${todo.title}"\`
|
|
88
|
+
* }
|
|
89
|
+
* )
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare const pikkuApprovalDescription: <In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(fn: PikkuApprovalDescription<In, RequiredServices>) => PikkuApprovalDescription<In, RequiredServices>;
|
|
93
|
+
/**
|
|
94
|
+
* A sessionless API function that doesn't require user authentication.
|
|
95
|
+
* Use this for public endpoints, health checks, or operations that don't need user context.
|
|
96
|
+
*
|
|
97
|
+
* @template In - The input type
|
|
98
|
+
* @template Out - The output type that the function returns
|
|
99
|
+
* @template RequiredServices - Services required by this function
|
|
100
|
+
* @template ScenarioOut - Types `scenario.context`; only scenarios set it.
|
|
101
|
+
* Not defaulted to `Out`, which would make every ordinary function's wire
|
|
102
|
+
* type vary with its return type and cost a `func` written against the
|
|
103
|
+
* `PikkuFunction | PikkuFunctionSessionless` union its contextual typing.
|
|
104
|
+
*/
|
|
105
|
+
export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices, ScenarioOut = unknown> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedPersonas, CredentialsMap>, RequiredWires>>;
|
|
106
|
+
/**
|
|
107
|
+
* A session-aware API function that requires user authentication.
|
|
108
|
+
* Use this for protected endpoints that need access to user session data.
|
|
109
|
+
*
|
|
110
|
+
* @template In - The input type
|
|
111
|
+
* @template Out - The output type that the function returns
|
|
112
|
+
* @template RequiredServices - Services required by this function
|
|
113
|
+
*/
|
|
114
|
+
export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuFunction<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas, CredentialsMap>, RequiredWires>>;
|
|
115
|
+
/**
|
|
116
|
+
* Helper type to infer the output type from a Standard Schema
|
|
117
|
+
*/
|
|
118
|
+
export type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Output : never;
|
|
119
|
+
/**
|
|
120
|
+
* Configuration object for Pikku functions with optional middleware, permissions, tags, and documentation.
|
|
121
|
+
* This type wraps CorePikkuFunctionConfig with the user's custom types.
|
|
122
|
+
*
|
|
123
|
+
* @template In - The input type
|
|
124
|
+
* @template Out - The output type
|
|
125
|
+
* @template PikkuFunc - The function type (can be narrowed to PikkuFunction or PikkuFunctionSessionless)
|
|
126
|
+
*/
|
|
127
|
+
export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>, 'node'> & {
|
|
128
|
+
node?: NodeConfig;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* {@link PikkuFunctionConfig} for a function that runs without a session.
|
|
132
|
+
* Has no `scopes`: an anonymous caller holds none, so none can ever be met.
|
|
133
|
+
*/
|
|
134
|
+
type PikkuFunctionSessionlessConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>, 'node'> & {
|
|
135
|
+
node?: NodeConfig;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Configuration object for Pikku functions with Zod schema validation.
|
|
139
|
+
* Use this when you want to define input/output schemas using Zod.
|
|
140
|
+
* Types are automatically inferred from the schemas.
|
|
141
|
+
*/
|
|
142
|
+
type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1 ? InferSchemaOutput<S> : Fallback;
|
|
143
|
+
/**
|
|
144
|
+
* Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
|
|
145
|
+
* so adding a field on the core type automatically propagates here.
|
|
146
|
+
*/
|
|
147
|
+
type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuFunctionConfig<PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>, CorePikkuPermission<any>, PikkuMiddleware, undefined, undefined, ScopeId>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'> & {
|
|
148
|
+
func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
|
|
149
|
+
input?: InputSchema;
|
|
150
|
+
output?: OutputSchema;
|
|
151
|
+
node?: NodeConfig;
|
|
152
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
153
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Creates a Pikku function that can be either session-aware or sessionless.
|
|
157
|
+
* This is the main function wrapper for creating API endpoints.
|
|
158
|
+
*
|
|
159
|
+
* Define the input and output with Zod schemas — the function's types are
|
|
160
|
+
* inferred from them, and the schemas double as runtime validation.
|
|
161
|
+
*
|
|
162
|
+
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
163
|
+
* @returns The normalized configuration object
|
|
164
|
+
*
|
|
165
|
+
* @example snippet: sessionFunction
|
|
166
|
+
*/
|
|
167
|
+
export declare function pikkuFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
168
|
+
export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
169
|
+
/**
|
|
170
|
+
* A `pikkuFunc` whose input and output are already the shared list shape —
|
|
171
|
+
* filters, sort, paging in; rows and a total out — so a listing endpoint pages
|
|
172
|
+
* the same way everywhere.
|
|
173
|
+
*
|
|
174
|
+
* @example snippet: listFunction
|
|
175
|
+
*/
|
|
176
|
+
export declare const pikkuListFunc: <F extends Record<string, unknown> = {}, Row = unknown, S extends string = never>(config: PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, "session" | "rpc">) => PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, "session" | "rpc">;
|
|
177
|
+
/**
|
|
178
|
+
* Configuration object for sessionless Pikku functions with Zod schema validation.
|
|
179
|
+
*/
|
|
180
|
+
/**
|
|
181
|
+
* Schema-overload variant for pikkuSessionlessFunc. Derived from
|
|
182
|
+
* CorePikkuSessionlessFunctionConfig to stay in sync with the generic-typed
|
|
183
|
+
* config — so it has no `scopes` either.
|
|
184
|
+
*/
|
|
185
|
+
type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'> & {
|
|
186
|
+
func: PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
|
|
187
|
+
input?: InputSchema;
|
|
188
|
+
output?: OutputSchema;
|
|
189
|
+
node?: NodeConfig;
|
|
190
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
191
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Creates a sessionless Pikku function that doesn't require user authentication.
|
|
195
|
+
* Use this for public endpoints, webhooks, or background tasks.
|
|
196
|
+
*
|
|
197
|
+
* Define the input and output with Zod schemas — the function's types are
|
|
198
|
+
* inferred from them, and the schemas double as runtime validation.
|
|
199
|
+
*
|
|
200
|
+
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
201
|
+
* @returns The normalized configuration object
|
|
202
|
+
*
|
|
203
|
+
* @example snippet: readFunction
|
|
204
|
+
*/
|
|
205
|
+
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredServices extends SecretlessServices<Services> = WiredServices>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc', RequiredServices>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
206
|
+
export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices> | PikkuFunctionSessionlessConfig<In, Out, 'session' | 'rpc', PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices>>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
207
|
+
/**
|
|
208
|
+
* Creates a function that takes no input and returns no output.
|
|
209
|
+
* Useful for health checks, triggers, or cleanup operations.
|
|
210
|
+
*
|
|
211
|
+
* @param func - Function definition, either direct function or configuration object
|
|
212
|
+
* @returns The normalized configuration object
|
|
213
|
+
*
|
|
214
|
+
* @example snippet: cleanupFunction
|
|
215
|
+
*/
|
|
216
|
+
export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionSessionlessConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "session" | "rpc">;
|
|
217
|
+
/**
|
|
218
|
+
* References a registered function by name for use in any wiring.
|
|
219
|
+
* Works for both local and addon functions — resolves via RPC at runtime.
|
|
220
|
+
*
|
|
221
|
+
* @template Name - The function name (must be a key in FlattenedRPCMap)
|
|
222
|
+
* @param rpcName - The name of the function to reference
|
|
223
|
+
* @returns A Pikku function config that proxies calls via RPC
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* ```typescript
|
|
227
|
+
* // Use in agent tools
|
|
228
|
+
* tools: [ref('todos:listTodos'), ref('myLocalFunc')]
|
|
229
|
+
*
|
|
230
|
+
* // Use in HTTP wiring
|
|
231
|
+
* wireHTTP({ route: '/greet', method: 'post', func: ref('greet') })
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]["input"], FlattenedRPCMap[Name]["output"], "session" | "rpc">;
|
|
235
|
+
/**
|
|
236
|
+
* Declares a capability the connected client answers, reachable from any
|
|
237
|
+
* `wireChannel` function as `channel.remote(name, input)`.
|
|
238
|
+
*
|
|
239
|
+
* There is no `func`: this side owns the contract, the client owns the body.
|
|
240
|
+
* The `description` is what a person is shown when asked to approve the call,
|
|
241
|
+
* so write it for them rather than for the caller.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* ```typescript
|
|
245
|
+
* export const localCheckoutOutput = z.object({ sha: z.string(), branch: z.string() })
|
|
246
|
+
*
|
|
247
|
+
* export const localCheckout = pikkuRemoteChannelFunc({
|
|
248
|
+
* description: 'Read the current commit and branch of your working tree',
|
|
249
|
+
* output: localCheckoutOutput,
|
|
250
|
+
* })
|
|
251
|
+
* ```
|
|
252
|
+
*/
|
|
253
|
+
export declare function pikkuRemoteChannelFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: Omit<PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>, 'func'>): PikkuFunctionConfig<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, 'session' | 'rpc'>;
|
|
254
|
+
/**
|
|
255
|
+
* Addon contract references. Generated from each wired addon's published
|
|
256
|
+
* contract metadata — no addon source is imported. Functions are proxied via
|
|
257
|
+
* ref() (RPC) exactly like ref('namespace:fn').
|
|
258
|
+
*/
|
|
259
|
+
declare const __addonHttp: {};
|
|
260
|
+
declare const __addonChannel: {};
|
|
261
|
+
declare const __addonCli: {};
|
|
262
|
+
/**
|
|
263
|
+
* Names an HTTP route an installed addon wires, so you can link or redirect to
|
|
264
|
+
* it without hardcoding a path the addon may move.
|
|
265
|
+
*/
|
|
266
|
+
export declare const refHTTP: <Name extends keyof typeof __addonHttp>(name: Name, options?: {
|
|
267
|
+
basePath?: string;
|
|
268
|
+
}) => (typeof __addonHttp)[Name];
|
|
269
|
+
/**
|
|
270
|
+
* Names a channel an installed addon wires, for connecting to it without
|
|
271
|
+
* hardcoding its name.
|
|
272
|
+
*/
|
|
273
|
+
export declare const refChannel: <Name extends keyof typeof __addonChannel>(name: Name) => (typeof __addonChannel)[Name];
|
|
274
|
+
/**
|
|
275
|
+
* Names a CLI command an installed addon wires, for invoking it without
|
|
276
|
+
* hardcoding its name.
|
|
277
|
+
*/
|
|
278
|
+
export declare const refCLI: <Name extends keyof typeof __addonCli>(name: Name) => (typeof __addonCli)[Name];
|
|
279
|
+
//# sourceMappingURL=pikku-function-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-function-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,m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,eAAO,MAAM,OAAO,GAAI,IAAI,SAAS,MAAM,OAAO,WAAW,EAC3D,MAAM,IAAI,EACV,UAAU;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KAC9B,CAAC,OAAO,WAAW,EAAE,IAAI,CAO3B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,IAAI,SAAS,MAAM,OAAO,cAAc,EACjE,MAAM,IAAI,KACT,CAAC,OAAO,cAAc,EAAE,IAAI,CAAyB,CAAA;AAExD;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,IAAI,SAAS,MAAM,OAAO,UAAU,EACzD,MAAM,IAAI,KACT,CAAC,OAAO,UAAU,EAAE,IAAI,CAAqB,CAAA"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Core function types for all wirings
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Factory function for creating approval description functions with tree-shaking support.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* export const deleteTodoApproval = pikkuApprovalDescription(
|
|
13
|
+
* async ({ todoStore }, { id }) => {
|
|
14
|
+
* const todo = await todoStore.get(id)
|
|
15
|
+
* return \`Delete todo: "${todo.title}"\`
|
|
16
|
+
* }
|
|
17
|
+
* )
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export const pikkuApprovalDescription = (fn) => {
|
|
21
|
+
return fn;
|
|
22
|
+
};
|
|
23
|
+
export function pikkuFunc(func) {
|
|
24
|
+
return typeof func === 'function' ? { func } : func;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A `pikkuFunc` whose input and output are already the shared list shape —
|
|
28
|
+
* filters, sort, paging in; rows and a total out — so a listing endpoint pages
|
|
29
|
+
* the same way everywhere.
|
|
30
|
+
*
|
|
31
|
+
* @example snippet: listFunction
|
|
32
|
+
*/
|
|
33
|
+
export const pikkuListFunc = (config) => {
|
|
34
|
+
return pikkuFunc(config);
|
|
35
|
+
};
|
|
36
|
+
export function pikkuSessionlessFunc(func) {
|
|
37
|
+
return typeof func === 'function' ? { func } : func;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Creates a function that takes no input and returns no output.
|
|
41
|
+
* Useful for health checks, triggers, or cleanup operations.
|
|
42
|
+
*
|
|
43
|
+
* @param func - Function definition, either direct function or configuration object
|
|
44
|
+
* @returns The normalized configuration object
|
|
45
|
+
*
|
|
46
|
+
* @example snippet: cleanupFunction
|
|
47
|
+
*/
|
|
48
|
+
export const pikkuVoidFunc = (func) => {
|
|
49
|
+
return typeof func === 'function' ? { func } : func;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* References a registered function by name for use in any wiring.
|
|
53
|
+
* Works for both local and addon functions — resolves via RPC at runtime.
|
|
54
|
+
*
|
|
55
|
+
* @template Name - The function name (must be a key in FlattenedRPCMap)
|
|
56
|
+
* @param rpcName - The name of the function to reference
|
|
57
|
+
* @returns A Pikku function config that proxies calls via RPC
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```typescript
|
|
61
|
+
* // Use in agent tools
|
|
62
|
+
* tools: [ref('todos:listTodos'), ref('myLocalFunc')]
|
|
63
|
+
*
|
|
64
|
+
* // Use in HTTP wiring
|
|
65
|
+
* wireHTTP({ route: '/greet', method: 'post', func: ref('greet') })
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export const ref = (rpcName) => {
|
|
69
|
+
return {
|
|
70
|
+
func: async (_services, data, { rpc }) => {
|
|
71
|
+
return rpc.invoke(rpcName, data);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Declares a capability the connected client answers, reachable from any
|
|
77
|
+
* `wireChannel` function as `channel.remote(name, input)`.
|
|
78
|
+
*
|
|
79
|
+
* There is no `func`: this side owns the contract, the client owns the body.
|
|
80
|
+
* The `description` is what a person is shown when asked to approve the call,
|
|
81
|
+
* so write it for them rather than for the caller.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```typescript
|
|
85
|
+
* export const localCheckoutOutput = z.object({ sha: z.string(), branch: z.string() })
|
|
86
|
+
*
|
|
87
|
+
* export const localCheckout = pikkuRemoteChannelFunc({
|
|
88
|
+
* description: 'Read the current commit and branch of your working tree',
|
|
89
|
+
* output: localCheckoutOutput,
|
|
90
|
+
* })
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
export function pikkuRemoteChannelFunc(config) {
|
|
94
|
+
return {
|
|
95
|
+
...config,
|
|
96
|
+
func: async (_services, _data, _wire) => {
|
|
97
|
+
throw new Error(`${config.title ?? 'This'} is a remote channel capability and has no local implementation — reach it with channel.remote() on the channel whose client exposes it.`);
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Addon contract references. Generated from each wired addon's published
|
|
103
|
+
* contract metadata — no addon source is imported. Functions are proxied via
|
|
104
|
+
* ref() (RPC) exactly like ref('namespace:fn').
|
|
105
|
+
*/
|
|
106
|
+
const __addonHttp = {};
|
|
107
|
+
const __addonChannel = {};
|
|
108
|
+
const __addonCli = {};
|
|
109
|
+
/**
|
|
110
|
+
* Names an HTTP route an installed addon wires, so you can link or redirect to
|
|
111
|
+
* it without hardcoding a path the addon may move.
|
|
112
|
+
*/
|
|
113
|
+
export const refHTTP = (name, options) => {
|
|
114
|
+
const contract = __addonHttp[name];
|
|
115
|
+
return (options?.basePath !== undefined
|
|
116
|
+
? { ...contract, basePath: options.basePath }
|
|
117
|
+
: contract);
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Names a channel an installed addon wires, for connecting to it without
|
|
121
|
+
* hardcoding its name.
|
|
122
|
+
*/
|
|
123
|
+
export const refChannel = (name) => __addonChannel[name];
|
|
124
|
+
/**
|
|
125
|
+
* Names a CLI command an installed addon wires, for invoking it without
|
|
126
|
+
* hardcoding its name.
|
|
127
|
+
*/
|
|
128
|
+
export const refCLI = (name) => __addonCli[name];
|
|
129
|
+
//# sourceMappingURL=pikku-function-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-function-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AA0FH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,EAAkD,EACF,EAAE;IAClD,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AA6JD,MAAM,UAAU,SAAS,CAAC,IAAS;IACjC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAK3B,MAIC,EACyE,EAAE;IAC5E,OAAO,SAAS,CAAC,MAAM,CAAC,CAAA;AAC1B,CAAC,CAAA;AA8DD,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC5C,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,IAEiE,EACb,EAAE;IACtD,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CACjB,OAAa,EAKb,EAAE;IACF,OAAO;QACL,IAAI,EAAE,KAAK,EAAE,SA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meta.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/state';
|
|
5
|
+
import metaData from './pikku-functions-meta.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState('@pikku/addon-graph', 'function', 'meta', metaData);
|
|
7
|
+
//# sourceMappingURL=pikku-functions-meta.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions-meta.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-functions-meta.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,OAAO,QAAQ,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5E,UAAU,CAAC,oBAAoB,EAAE,UAAU,EAAE,MAAM,EAAE,QAAyB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-functions.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
|
+
*/
|
|
4
|
+
/* Import and register functions used by RPCs */
|
|
5
|
+
import { addFunction } from '@pikku/core/function';
|
|
6
|
+
import { aggregate } from '../../../src/functions/array/aggregate.function.js';
|
|
7
|
+
import { branch } from '../../../src/functions/logic/branch.function.js';
|
|
8
|
+
import { chunk } from '../../../src/functions/array/chunk.function.js';
|
|
9
|
+
import { coalesce } from '../../../src/functions/data/coalesce.function.js';
|
|
10
|
+
import { concat } from '../../../src/functions/transform/concat.function.js';
|
|
11
|
+
import { crypto } from '../../../src/functions/data/crypto.function.js';
|
|
12
|
+
import { dateTime } from '../../../src/functions/data/date-time.function.js';
|
|
13
|
+
import { editFields } from '../../../src/functions/transform/edit-fields.function.js';
|
|
14
|
+
import { fanout } from '../../../src/functions/array/fanout.function.js';
|
|
15
|
+
import { find } from '../../../src/functions/array/find.function.js';
|
|
16
|
+
import { groupBy } from '../../../src/functions/array/group-by.function.js';
|
|
17
|
+
import { httpRequest } from '../../../src/functions/network/http-request.function.js';
|
|
18
|
+
import { jwtDecode } from '../../../src/functions/data/jwt.function.js';
|
|
19
|
+
import { jwtSign } from '../../../src/functions/data/jwt.function.js';
|
|
20
|
+
import { limit } from '../../../src/functions/array/limit.function.js';
|
|
21
|
+
import { math } from '../../../src/functions/data/math.function.js';
|
|
22
|
+
import { merge } from '../../../src/functions/transform/merge.function.js';
|
|
23
|
+
import { omit } from '../../../src/functions/transform/omit.function.js';
|
|
24
|
+
import { pick } from '../../../src/functions/transform/pick.function.js';
|
|
25
|
+
import { readFile } from '../../../src/functions/data/read-file.function.js';
|
|
26
|
+
import { removeDuplicates } from '../../../src/functions/array/remove-duplicates.function.js';
|
|
27
|
+
import { renameKeys } from '../../../src/functions/transform/rename-keys.function.js';
|
|
28
|
+
import { reverse } from '../../../src/functions/array/reverse.function.js';
|
|
29
|
+
import { sleep } from '../../../src/functions/data/sleep.function.js';
|
|
30
|
+
import { sort } from '../../../src/functions/array/sort.function.js';
|
|
31
|
+
import { splitOut } from '../../../src/functions/array/split-out.function.js';
|
|
32
|
+
import { splitText } from '../../../src/functions/transform/split-text.function.js';
|
|
33
|
+
import { stopAndError } from '../../../src/functions/logic/stop-and-error.function.js';
|
|
34
|
+
import { stringTransform } from '../../../src/functions/data/string-transform.function.js';
|
|
35
|
+
import { summarize } from '../../../src/functions/array/summarize.function.js';
|
|
36
|
+
import { typeConvert } from '../../../src/functions/data/type-convert.function.js';
|
|
37
|
+
import { unique } from '../../../src/functions/array/unique.function.js';
|
|
38
|
+
import { wait } from '../../../src/functions/data/wait.function.js';
|
|
39
|
+
import { writeFile } from '../../../src/functions/data/write-file.function.js';
|
|
40
|
+
addFunction('aggregate', aggregate, '@pikku/addon-graph');
|
|
41
|
+
addFunction('branch', branch, '@pikku/addon-graph');
|
|
42
|
+
addFunction('chunk', chunk, '@pikku/addon-graph');
|
|
43
|
+
addFunction('coalesce', coalesce, '@pikku/addon-graph');
|
|
44
|
+
addFunction('concat', concat, '@pikku/addon-graph');
|
|
45
|
+
addFunction('crypto', crypto, '@pikku/addon-graph');
|
|
46
|
+
addFunction('dateTime', dateTime, '@pikku/addon-graph');
|
|
47
|
+
addFunction('editFields', editFields, '@pikku/addon-graph');
|
|
48
|
+
addFunction('fanout', fanout, '@pikku/addon-graph');
|
|
49
|
+
addFunction('find', find, '@pikku/addon-graph');
|
|
50
|
+
addFunction('groupBy', groupBy, '@pikku/addon-graph');
|
|
51
|
+
addFunction('httpRequest', httpRequest, '@pikku/addon-graph');
|
|
52
|
+
addFunction('jwtDecode', jwtDecode, '@pikku/addon-graph');
|
|
53
|
+
addFunction('jwtSign', jwtSign, '@pikku/addon-graph');
|
|
54
|
+
addFunction('limit', limit, '@pikku/addon-graph');
|
|
55
|
+
addFunction('math', math, '@pikku/addon-graph');
|
|
56
|
+
addFunction('merge', merge, '@pikku/addon-graph');
|
|
57
|
+
addFunction('omit', omit, '@pikku/addon-graph');
|
|
58
|
+
addFunction('pick', pick, '@pikku/addon-graph');
|
|
59
|
+
addFunction('readFile', readFile, '@pikku/addon-graph');
|
|
60
|
+
addFunction('removeDuplicates', removeDuplicates, '@pikku/addon-graph');
|
|
61
|
+
addFunction('renameKeys', renameKeys, '@pikku/addon-graph');
|
|
62
|
+
addFunction('reverse', reverse, '@pikku/addon-graph');
|
|
63
|
+
addFunction('sleep', sleep, '@pikku/addon-graph');
|
|
64
|
+
addFunction('sort', sort, '@pikku/addon-graph');
|
|
65
|
+
addFunction('splitOut', splitOut, '@pikku/addon-graph');
|
|
66
|
+
addFunction('splitText', splitText, '@pikku/addon-graph');
|
|
67
|
+
addFunction('stopAndError', stopAndError, '@pikku/addon-graph');
|
|
68
|
+
addFunction('stringTransform', stringTransform, '@pikku/addon-graph');
|
|
69
|
+
addFunction('summarize', summarize, '@pikku/addon-graph');
|
|
70
|
+
addFunction('typeConvert', typeConvert, '@pikku/addon-graph');
|
|
71
|
+
addFunction('unique', unique, '@pikku/addon-graph');
|
|
72
|
+
addFunction('wait', wait, '@pikku/addon-graph');
|
|
73
|
+
addFunction('writeFile', writeFile, '@pikku/addon-graph');
|
|
74
|
+
//# sourceMappingURL=pikku-functions.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-functions.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,gDAAgD;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,oDAAoD,CAAA;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAA;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAA;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAA;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAA;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,gDAAgD,CAAA;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAA;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAA;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAA;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,+CAA+C,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAA;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAA;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE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AAS,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAA;AACrD,WAAW,CAAC,OAAO,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAA;AACjD,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,oBAAoB,CAAC,CAAA;AAC/C,WAAW,CAAC,UAAU,EAAE,QAAQ,EAAE,oBAAoB,CAAC,CAAA;AACvD,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,oBAAoB,CAAC,CAAA;AACzD,WAAW,CAAC,cAAc,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA;AAC/D,WAAW,CAAC,iBAAiB,EAAE,eAAe,EAAE,oBAAoB,CAAC,CAAA;AACrE,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,oBAAoB,CAAC,CAAA;AACzD,WAAW,CAAC,aAAa,EAAE,WAAW,EAAE,oBAAoB,CAAC,CAAA;AAC7D,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,oBAAoB,CAAC,CAAA;AACnD,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,oBAAoB,CAAC,CAAA;AAC/C,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,oBAAoB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/http/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/http/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* HTTP-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
8
|
+
import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js';
|
|
9
|
+
import type { HTTPMethod, HTTPRouteBaseConfig } from '@pikku/core/http';
|
|
10
|
+
/**
|
|
11
|
+
* Route configuration for wireHTTPRoutes with proper typing
|
|
12
|
+
*/
|
|
13
|
+
type HTTPRouteConfig = HTTPRouteBaseConfig & {
|
|
14
|
+
method: HTTPMethod;
|
|
15
|
+
route: string;
|
|
16
|
+
func: PikkuFunctionConfig<any, any, any, any, any, any>;
|
|
17
|
+
auth?: boolean;
|
|
18
|
+
middleware?: PikkuMiddleware[];
|
|
19
|
+
sse?: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Typed route map for wireHTTPRoutes
|
|
23
|
+
*/
|
|
24
|
+
type TypedHTTPRouteMap = {
|
|
25
|
+
[key: string]: HTTPRouteConfig | TypedHTTPRouteMap | TypedHTTPRouteContract;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Typed route contract for defineHTTPRoutes
|
|
29
|
+
*/
|
|
30
|
+
type TypedHTTPRouteContract<T extends TypedHTTPRouteMap = TypedHTTPRouteMap> = TypedHTTPRoutesGroupConfig & {
|
|
31
|
+
routes: T;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Group config with typed middleware
|
|
35
|
+
*/
|
|
36
|
+
type TypedHTTPRoutesGroupConfig = {
|
|
37
|
+
basePath?: string;
|
|
38
|
+
tags?: string[];
|
|
39
|
+
auth?: boolean;
|
|
40
|
+
middleware?: PikkuMiddleware[];
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Type-safe helper for defining route contracts that can be composed.
|
|
44
|
+
*
|
|
45
|
+
* @example snippet: wireHttp
|
|
46
|
+
*/
|
|
47
|
+
export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(routes: T): TypedHTTPRouteContract<T>;
|
|
48
|
+
export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: TypedHTTPRoutesGroupConfig & {
|
|
49
|
+
routes: T;
|
|
50
|
+
}): TypedHTTPRouteContract<T>;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=pikku-http-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-http-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/http/pikku-http-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACpB,MAAM,kBAAkB,CAAA;AAGzB;;GAEG;AACH,KAAK,eAAe,GAAG,mBAAmB,GAAG;IAC3C,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;IACvD,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,eAAe,EAAE,CAAA;IAC9B,GAAG,CAAC,EAAE,OAAO,CAAA;CACd,CAAA;AAED;;GAEG;AACH,KAAK,iBAAiB,GAAG;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,GAAG,iBAAiB,GAAG,sBAAsB,CAAA;CAC5E,CAAA;AAED;;GAEG;AACH,KAAK,sBAAsB,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,IAAI,0BAA0B,GAAG;IAC1G,MAAM,EAAE,CAAC,CAAA;CACV,CAAA;AAED;;GAEG;AACH,KAAK,0BAA0B,GAAG;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,eAAe,EAAE,CAAA;CAC/B,CAAA;AAGD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,iBAAiB,EAAE,MAAM,EAAE,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAA;AACnG,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,iBAAiB,EAAE,MAAM,EAAE,0BAA0B,GAAG;IAAE,MAAM,EAAE,CAAC,CAAA;CAAE,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* HTTP-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { defineHTTPRoutes as defineHTTPRoutesCore } from '@pikku/core/http';
|
|
8
|
+
export function defineHTTPRoutes(configOrRoutes) {
|
|
9
|
+
return defineHTTPRoutesCore(configOrRoutes);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=pikku-http-types.gen.js.map
|