@pikku/addon-graph 0.12.12 → 0.12.13
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 +409 -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/addon/agent/pikku-agent-types.gen.d.ts +54 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +20 -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 +2 -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 +119 -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 +93 -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/addon/channel/pikku-channel-types.gen.d.ts +91 -0
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +43 -0
- 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 +270 -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 +117 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +1028 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.d.ts +2 -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-meta.gen.json +794 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.d.ts +2 -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 +50 -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/index.d.ts +8 -0
- package/dist/.pikku/addon/index.d.ts.map +1 -0
- package/dist/.pikku/addon/index.js +8 -0
- package/dist/.pikku/addon/index.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/addon/mcp/pikku-mcp-types.gen.d.ts +102 -0
- 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 +118 -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 +109 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +2 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +10 -0
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +10 -0
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +10 -0
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-bootstrap.gen.js +10 -0
- package/dist/.pikku/addon/pikku-bootstrap.gen.js.map +1 -0
- 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 +42 -0
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-services.gen.js +38 -0
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -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/rpc/pikku-rpc-wirings-meta.internal.gen.json +36 -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/addon/scenarios/pikku-personas.gen.d.ts +18 -0
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +18 -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 +2 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.json +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 +2 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +311 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +72 -0
- 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 +2 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
- 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 +2 -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 +2 -0
- package/dist/.pikku/addon/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/schemas/register.gen.js +141 -0
- package/dist/.pikku/addon/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/addon/schemas/schemas/AggregateInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/AggregateOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/BranchInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/BranchOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/ChunkInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/ChunkOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/CoalesceInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/CoalesceOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/ConcatInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/ConcatOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/CryptoInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/CryptoOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/DateTimeInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/DateTimeOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/EditFieldsInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/EditFieldsOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/FanoutInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/FanoutOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/FindInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/FindOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/GroupByInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/GroupByOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/HttpRequestInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/HttpRequestOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/JwtDecodeInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/JwtDecodeOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/JwtSignInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/JwtSignOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/LimitInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/LimitOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/MathInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/MathOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/MergeInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/MergeOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/OmitInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/OmitOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/PickInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/PickOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/ReadFileInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/ReadFileOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/RemoveDuplicatesInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/RemoveDuplicatesOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/RenameKeysInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/RenameKeysOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/ReverseInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/ReverseOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SleepInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SleepOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SortInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SortOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SplitOutInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SplitOutOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SplitTextInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SplitTextOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/StopAndErrorInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/StopAndErrorOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/StringTransformInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/StringTransformOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SummarizeInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SummarizeOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/TypeConvertInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/TypeConvertOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/UniqueInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/UniqueOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/WaitInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/WaitOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/WriteFileInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/WriteFileOutput.schema.json +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/addon/scopes/pikku-personas-meta.gen.json +1 -0
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts +29 -0
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js +18 -0
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-roles-meta.gen.json +1 -0
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +31 -0
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-roles.gen.js +19 -0
- 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/addon/scopes/pikku-scopes-meta.gen.json +1 -0
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +36 -0
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.js +28 -0
- 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-meta.gen.json +1 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +18 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +19 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js +10 -0
- 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/setup/pikku-addon-setup-types.gen.d.ts +66 -0
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +78 -0
- 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 +67 -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 +88 -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/addon/trigger/pikku-trigger-types.gen.d.ts +83 -0
- 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 +19 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +19 -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 +106 -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 +16 -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 +2 -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/.pikku/agent/index.d.ts +8 -0
- package/dist/.pikku/agent/index.d.ts.map +1 -0
- package/dist/.pikku/agent/index.js +8 -0
- package/dist/.pikku/agent/index.js.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +8 -7
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js +2 -3
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +1 -1
- package/dist/.pikku/auth/index.d.ts +8 -0
- package/dist/.pikku/auth/index.d.ts.map +1 -0
- package/dist/.pikku/auth/index.js +8 -0
- package/dist/.pikku/auth/index.js.map +1 -0
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +119 -0
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts.map +1 -0
- package/dist/.pikku/auth/pikku-auth-types.gen.js +93 -0
- package/dist/.pikku/auth/pikku-auth-types.gen.js.map +1 -0
- package/dist/.pikku/channel/index.d.ts +8 -0
- package/dist/.pikku/channel/index.d.ts.map +1 -0
- package/dist/.pikku/channel/index.js +8 -0
- package/dist/.pikku/channel/index.js.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +4 -25
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -19
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -1
- package/dist/.pikku/credentials/index.d.ts +8 -0
- package/dist/.pikku/credentials/index.d.ts.map +1 -0
- package/dist/.pikku/credentials/index.js +8 -0
- package/dist/.pikku/credentials/index.js.map +1 -0
- package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts +5 -0
- package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts.map +1 -0
- package/dist/.pikku/credentials/pikku-credential-types.gen.js +5 -0
- package/dist/.pikku/credentials/pikku-credential-types.gen.js.map +1 -0
- package/dist/.pikku/error/index.d.ts +8 -0
- package/dist/.pikku/error/index.d.ts.map +1 -0
- package/dist/.pikku/error/index.js +8 -0
- package/dist/.pikku/error/index.js.map +1 -0
- package/dist/.pikku/error/pikku-error-types.gen.d.ts +8 -0
- package/dist/.pikku/error/pikku-error-types.gen.d.ts.map +1 -0
- package/dist/.pikku/error/pikku-error-types.gen.js +8 -0
- package/dist/.pikku/error/pikku-error-types.gen.js.map +1 -0
- package/dist/.pikku/function/index.d.ts +8 -0
- package/dist/.pikku/function/index.d.ts.map +1 -0
- package/dist/.pikku/function/index.js +8 -0
- package/dist/.pikku/function/index.js.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +29 -263
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +1 -236
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -1
- package/dist/.pikku/gateway/index.d.ts +8 -0
- package/dist/.pikku/gateway/index.d.ts.map +1 -0
- package/dist/.pikku/gateway/index.js +8 -0
- package/dist/.pikku/gateway/index.js.map +1 -0
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +38 -0
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts.map +1 -0
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js +26 -0
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js.map +1 -0
- package/dist/.pikku/http/index.d.ts +8 -0
- package/dist/.pikku/http/index.d.ts.map +1 -0
- package/dist/.pikku/http/index.js +8 -0
- package/dist/.pikku/http/index.js.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +3 -51
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -40
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
- package/dist/.pikku/mcp/index.d.ts +8 -0
- package/dist/.pikku/mcp/index.d.ts.map +1 -0
- package/dist/.pikku/mcp/index.js +8 -0
- package/dist/.pikku/mcp/index.js.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +5 -35
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -22
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -1
- package/dist/.pikku/middleware/index.d.ts +8 -0
- package/dist/.pikku/middleware/index.d.ts.map +1 -0
- package/dist/.pikku/middleware/index.js +8 -0
- package/dist/.pikku/middleware/index.js.map +1 -0
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +118 -0
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts.map +1 -0
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js +109 -0
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js.map +1 -0
- package/dist/.pikku/pikku-types.gen.d.ts +0 -1
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-types.gen.js +0 -2
- package/dist/.pikku/pikku-types.gen.js.map +1 -1
- package/dist/.pikku/queue/index.d.ts +8 -0
- package/dist/.pikku/queue/index.d.ts.map +1 -0
- package/dist/.pikku/queue/index.js +8 -0
- package/dist/.pikku/queue/index.js.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -1
- package/dist/.pikku/scenarios/index.d.ts +8 -0
- package/dist/.pikku/scenarios/index.d.ts.map +1 -0
- package/dist/.pikku/scenarios/index.js +8 -0
- package/dist/.pikku/scenarios/index.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-personas.gen.d.ts +18 -0
- package/dist/.pikku/scenarios/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-personas.gen.js +18 -0
- package/dist/.pikku/scenarios/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +311 -0
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.js +72 -0
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -1
- package/dist/.pikku/scheduler/index.d.ts +8 -0
- package/dist/.pikku/scheduler/index.d.ts.map +1 -0
- package/dist/.pikku/scheduler/index.js +8 -0
- package/dist/.pikku/scheduler/index.js.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -1
- package/dist/.pikku/schemas/register.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js.map +1 -1
- package/dist/.pikku/scopes/index.d.ts +8 -0
- package/dist/.pikku/scopes/index.d.ts.map +1 -0
- package/dist/.pikku/scopes/index.js +8 -0
- package/dist/.pikku/scopes/index.js.map +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +4 -13
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -1
- package/dist/.pikku/scopes/pikku-roles.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +2 -4
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +2 -2
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -1
- package/dist/.pikku/secrets/index.d.ts +9 -0
- package/dist/.pikku/secrets/index.d.ts.map +1 -0
- package/dist/.pikku/secrets/index.js +9 -0
- package/dist/.pikku/secrets/index.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +7 -11
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +6 -8
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/services/pikku-meta-service.gen.js +10 -0
- package/dist/.pikku/services/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/setup/index.d.ts +8 -0
- package/dist/.pikku/setup/index.d.ts.map +1 -0
- package/dist/.pikku/setup/index.js +8 -0
- package/dist/.pikku/setup/index.js.map +1 -0
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +67 -0
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts.map +1 -0
- package/dist/.pikku/setup/pikku-setup-types.gen.js +88 -0
- package/dist/.pikku/setup/pikku-setup-types.gen.js.map +1 -0
- package/dist/.pikku/trigger/index.d.ts +8 -0
- package/dist/.pikku/trigger/index.d.ts.map +1 -0
- package/dist/.pikku/trigger/index.js +8 -0
- package/dist/.pikku/trigger/index.js.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +5 -36
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -21
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -1
- package/dist/.pikku/variables/index.d.ts +9 -0
- package/dist/.pikku/variables/index.d.ts.map +1 -0
- package/dist/.pikku/variables/index.js +9 -0
- package/dist/.pikku/variables/index.js.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +7 -10
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +7 -9
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/workflow/index.d.ts +8 -0
- package/dist/.pikku/workflow/index.d.ts.map +1 -0
- package/dist/.pikku/workflow/index.js +8 -0
- package/dist/.pikku/workflow/index.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +14 -262
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +0 -63
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
- 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
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
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
|
+
export type { SingletonServices as SingletonServices };
|
|
27
|
+
export type { Services as Services };
|
|
28
|
+
export type Session = UserSession;
|
|
29
|
+
/**
|
|
30
|
+
* The services a wired function actually receives. The inspector records which
|
|
31
|
+
* services each wired `func`, `permissions` and `middleware` destructures and
|
|
32
|
+
* emits them as `RequiredSingletonServices`; intersecting that here makes those
|
|
33
|
+
* services **non-optional** at every call site. A service is optional only when
|
|
34
|
+
* nothing destructures it — in which case it is never created either. This is
|
|
35
|
+
* why an `if (!service)` guard inside a function body is always dead code.
|
|
36
|
+
*/
|
|
37
|
+
export type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
|
|
38
|
+
export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>;
|
|
39
|
+
/**
|
|
40
|
+
* Inline node configuration for function definitions.
|
|
41
|
+
*/
|
|
42
|
+
export type NodeConfig = {
|
|
43
|
+
displayName: string;
|
|
44
|
+
category: 'Transform' | 'Array' | 'Data' | 'Logic' | 'Files';
|
|
45
|
+
type: NodeType;
|
|
46
|
+
errorOutput?: boolean;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* A function that generates a human-readable description of a pending approval action.
|
|
50
|
+
* Used by AI agents to show meaningful approval prompts instead of raw tool arguments.
|
|
51
|
+
*
|
|
52
|
+
* @template In - The input type (same as the function it describes)
|
|
53
|
+
* @template RequiredServices - The services required for this description function
|
|
54
|
+
*/
|
|
55
|
+
export type PikkuApprovalDescription<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = (services: RequiredServices, data: In) => Promise<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Factory function for creating approval description functions with tree-shaking support.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```typescript
|
|
61
|
+
* export const deleteTodoApproval = pikkuApprovalDescription(
|
|
62
|
+
* async ({ todoStore }, { id }) => {
|
|
63
|
+
* const todo = await todoStore.get(id)
|
|
64
|
+
* return \`Delete todo: "${todo.title}"\`
|
|
65
|
+
* }
|
|
66
|
+
* )
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare const pikkuApprovalDescription: <In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(fn: PikkuApprovalDescription<In, RequiredServices>) => PikkuApprovalDescription<In, RequiredServices>;
|
|
70
|
+
/**
|
|
71
|
+
* A sessionless API function that doesn't require user authentication.
|
|
72
|
+
* Use this for public endpoints, health checks, or operations that don't need user context.
|
|
73
|
+
*
|
|
74
|
+
* @template In - The input type
|
|
75
|
+
* @template Out - The output type that the function returns
|
|
76
|
+
* @template RequiredServices - Services required by this function
|
|
77
|
+
* @template ScenarioOut - Types `scenario.context`; only scenarios set it.
|
|
78
|
+
* Not defaulted to `Out`, which would make every ordinary function's wire
|
|
79
|
+
* type vary with its return type and cost a `func` written against the
|
|
80
|
+
* `PikkuFunction | PikkuFunctionSessionless` union its contextual typing.
|
|
81
|
+
*/
|
|
82
|
+
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>>;
|
|
83
|
+
/**
|
|
84
|
+
* A session-aware API function that requires user authentication.
|
|
85
|
+
* Use this for protected endpoints that need access to user session data.
|
|
86
|
+
*
|
|
87
|
+
* @template In - The input type
|
|
88
|
+
* @template Out - The output type that the function returns
|
|
89
|
+
* @template RequiredServices - Services required by this function
|
|
90
|
+
*/
|
|
91
|
+
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>>;
|
|
92
|
+
/**
|
|
93
|
+
* Helper type to infer the output type from a Standard Schema
|
|
94
|
+
*/
|
|
95
|
+
export type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Output : never;
|
|
96
|
+
/**
|
|
97
|
+
* Configuration object for Pikku functions with optional middleware, permissions, tags, and documentation.
|
|
98
|
+
* This type wraps CorePikkuFunctionConfig with the user's custom types.
|
|
99
|
+
*
|
|
100
|
+
* @template In - The input type
|
|
101
|
+
* @template Out - The output type
|
|
102
|
+
* @template PikkuFunc - The function type (can be narrowed to PikkuFunction or PikkuFunctionSessionless)
|
|
103
|
+
*/
|
|
104
|
+
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'> & {
|
|
105
|
+
node?: NodeConfig;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* {@link PikkuFunctionConfig} for a function that runs without a session.
|
|
109
|
+
* Has no `scopes`: an anonymous caller holds none, so none can ever be met.
|
|
110
|
+
*/
|
|
111
|
+
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'> & {
|
|
112
|
+
node?: NodeConfig;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Configuration object for Pikku functions with Zod schema validation.
|
|
116
|
+
* Use this when you want to define input/output schemas using Zod.
|
|
117
|
+
* Types are automatically inferred from the schemas.
|
|
118
|
+
*/
|
|
119
|
+
type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1 ? InferSchemaOutput<S> : Fallback;
|
|
120
|
+
/**
|
|
121
|
+
* Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
|
|
122
|
+
* so adding a field on the core type automatically propagates here.
|
|
123
|
+
*/
|
|
124
|
+
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'> & {
|
|
125
|
+
func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
|
|
126
|
+
input?: InputSchema;
|
|
127
|
+
output?: OutputSchema;
|
|
128
|
+
node?: NodeConfig;
|
|
129
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
130
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Creates a Pikku function that can be either session-aware or sessionless.
|
|
134
|
+
* This is the main function wrapper for creating API endpoints.
|
|
135
|
+
*
|
|
136
|
+
* Define the input and output with Zod schemas — the function's types are
|
|
137
|
+
* inferred from them, and the schemas double as runtime validation.
|
|
138
|
+
*
|
|
139
|
+
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
140
|
+
* @returns The normalized configuration object
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```typescript
|
|
144
|
+
* const createUserInput = z.object({ name: z.string(), email: z.string() })
|
|
145
|
+
* const createUserOutput = z.object({ id: z.number() })
|
|
146
|
+
*
|
|
147
|
+
* const createUser = pikkuFunc({
|
|
148
|
+
* input: createUserInput,
|
|
149
|
+
* output: createUserOutput,
|
|
150
|
+
* func: async ({db}, input) => {
|
|
151
|
+
* // input is typed as { name: string, email: string }
|
|
152
|
+
* const user = await db.users.create(input)
|
|
153
|
+
* return { id: user.id } // must match output schema
|
|
154
|
+
* }
|
|
155
|
+
* })
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
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'>;
|
|
159
|
+
export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
160
|
+
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">;
|
|
161
|
+
/**
|
|
162
|
+
* Configuration object for sessionless Pikku functions with Zod schema validation.
|
|
163
|
+
*/
|
|
164
|
+
/**
|
|
165
|
+
* Schema-overload variant for pikkuSessionlessFunc. Derived from
|
|
166
|
+
* CorePikkuSessionlessFunctionConfig to stay in sync with the generic-typed
|
|
167
|
+
* config — so it has no `scopes` either.
|
|
168
|
+
*/
|
|
169
|
+
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'> & {
|
|
170
|
+
func: PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
|
|
171
|
+
input?: InputSchema;
|
|
172
|
+
output?: OutputSchema;
|
|
173
|
+
node?: NodeConfig;
|
|
174
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
175
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Creates a sessionless Pikku function that doesn't require user authentication.
|
|
179
|
+
* Use this for public endpoints, webhooks, or background tasks.
|
|
180
|
+
*
|
|
181
|
+
* Define the input and output with Zod schemas — the function's types are
|
|
182
|
+
* inferred from them, and the schemas double as runtime validation.
|
|
183
|
+
*
|
|
184
|
+
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
185
|
+
* @returns The normalized configuration object
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* ```typescript
|
|
189
|
+
* const greetInput = z.object({ name: z.string() })
|
|
190
|
+
* const greetOutput = z.object({ message: z.string() })
|
|
191
|
+
*
|
|
192
|
+
* const greet = pikkuSessionlessFunc({
|
|
193
|
+
* input: greetInput,
|
|
194
|
+
* output: greetOutput,
|
|
195
|
+
* func: async (_services, { name }) => {
|
|
196
|
+
* return { message: `Hello, ${name}!` }
|
|
197
|
+
* }
|
|
198
|
+
* })
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
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'>;
|
|
202
|
+
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'>;
|
|
203
|
+
/**
|
|
204
|
+
* Creates a function that takes no input and returns no output.
|
|
205
|
+
* Useful for health checks, triggers, or cleanup operations.
|
|
206
|
+
*
|
|
207
|
+
* @param func - Function definition, either direct function or configuration object
|
|
208
|
+
* @returns The normalized configuration object
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```typescript
|
|
212
|
+
* const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
|
|
213
|
+
* logger.info('Starting cleanup of temporary files')
|
|
214
|
+
* await fileSystem.deleteDirectory('/tmp/uploads')
|
|
215
|
+
* logger.info('Cleanup completed')
|
|
216
|
+
* })
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
219
|
+
export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionSessionlessConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "session" | "rpc">;
|
|
220
|
+
/**
|
|
221
|
+
* References a registered function by name for use in any wiring.
|
|
222
|
+
* Works for both local and addon functions — resolves via RPC at runtime.
|
|
223
|
+
*
|
|
224
|
+
* @template Name - The function name (must be a key in FlattenedRPCMap)
|
|
225
|
+
* @param rpcName - The name of the function to reference
|
|
226
|
+
* @returns A Pikku function config that proxies calls via RPC
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* ```typescript
|
|
230
|
+
* // Use in agent tools
|
|
231
|
+
* tools: [ref('todos:listTodos'), ref('myLocalFunc')]
|
|
232
|
+
*
|
|
233
|
+
* // Use in HTTP wiring
|
|
234
|
+
* wireHTTP({ route: '/greet', method: 'post', func: ref('greet') })
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]["input"], FlattenedRPCMap[Name]["output"], "session" | "rpc">;
|
|
238
|
+
/**
|
|
239
|
+
* Declares a capability the connected client answers, reachable from any
|
|
240
|
+
* `wireChannel` function as `channel.remote(name, input)`.
|
|
241
|
+
*
|
|
242
|
+
* There is no `func`: this side owns the contract, the client owns the body.
|
|
243
|
+
* The `description` is what a person is shown when asked to approve the call,
|
|
244
|
+
* so write it for them rather than for the caller.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```typescript
|
|
248
|
+
* export const localCheckoutOutput = z.object({ sha: z.string(), branch: z.string() })
|
|
249
|
+
*
|
|
250
|
+
* export const localCheckout = pikkuRemoteChannelFunc({
|
|
251
|
+
* description: 'Read the current commit and branch of your working tree',
|
|
252
|
+
* output: localCheckoutOutput,
|
|
253
|
+
* })
|
|
254
|
+
* ```
|
|
255
|
+
*/
|
|
256
|
+
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'>;
|
|
257
|
+
/**
|
|
258
|
+
* Addon contract references. Generated from each wired addon's published
|
|
259
|
+
* contract metadata — no addon source is imported. Functions are proxied via
|
|
260
|
+
* ref() (RPC) exactly like ref('namespace:fn').
|
|
261
|
+
*/
|
|
262
|
+
declare const __addonHttp: {};
|
|
263
|
+
declare const __addonChannel: {};
|
|
264
|
+
declare const __addonCli: {};
|
|
265
|
+
export declare const refHTTP: <Name extends keyof typeof __addonHttp>(name: Name, options?: {
|
|
266
|
+
basePath?: string;
|
|
267
|
+
}) => (typeof __addonHttp)[Name];
|
|
268
|
+
export declare const refChannel: <Name extends keyof typeof __addonChannel>(name: Name) => (typeof __addonChannel)[Name];
|
|
269
|
+
export declare const refCLI: <Name extends keyof typeof __addonCli>(name: Name) => (typeof __addonCli)[Name];
|
|
270
|
+
//# 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,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EACV,uBAAuB,EACvB,kCAAkC,EAClC,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MA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T,CAAC,OAAO,UAAU,EAAE,IAAI,CAAqB,CAAA"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
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
|
+
export const pikkuListFunc = (config) => {
|
|
27
|
+
return pikkuFunc(config);
|
|
28
|
+
};
|
|
29
|
+
export function pikkuSessionlessFunc(func) {
|
|
30
|
+
return typeof func === 'function' ? { func } : func;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Creates a function that takes no input and returns no output.
|
|
34
|
+
* Useful for health checks, triggers, or cleanup operations.
|
|
35
|
+
*
|
|
36
|
+
* @param func - Function definition, either direct function or configuration object
|
|
37
|
+
* @returns The normalized configuration object
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
|
|
42
|
+
* logger.info('Starting cleanup of temporary files')
|
|
43
|
+
* await fileSystem.deleteDirectory('/tmp/uploads')
|
|
44
|
+
* logger.info('Cleanup completed')
|
|
45
|
+
* })
|
|
46
|
+
* ```
|
|
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
|
+
export const refHTTP = (name, options) => {
|
|
110
|
+
const contract = __addonHttp[name];
|
|
111
|
+
return (options?.basePath !== undefined
|
|
112
|
+
? { ...contract, basePath: options.basePath }
|
|
113
|
+
: contract);
|
|
114
|
+
};
|
|
115
|
+
export const refChannel = (name) => __addonChannel[name];
|
|
116
|
+
export const refCLI = (name) => __addonCli[name];
|
|
117
|
+
//# 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;AAmEH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,EAAkD,EACF,EAAE;IAClD,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AA2KD,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,MAAM,CAAC,MAAM,aAAa,GAAG,CAK3B,MAIC,EACyE,EAAE;IAC5E,OAAO,SAAS,C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