@pikku/addon-mindee 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.pikku/addon/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/index.ts +8 -0
- package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +4 -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/{agent → addon/agent}/pikku-agent-types.gen.js +5 -6
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.ts +24 -30
- 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/agent/pikku-model-aliases.gen.ts +6 -0
- package/dist/.pikku/{agent → addon/agent}/pikku-scorer-names.gen.d.ts +1 -1
- 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/index.ts +8 -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/auth/pikku-auth-types.gen.ts +156 -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/index.ts +8 -0
- package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.d.ts +5 -26
- 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 +2 -19
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.ts +7 -49
- package/dist/.pikku/addon/credentials/index.d.ts +8 -0
- package/dist/.pikku/addon/credentials/index.d.ts.map +1 -0
- package/dist/.pikku/addon/credentials/index.js +8 -0
- package/dist/.pikku/addon/credentials/index.js.map +1 -0
- package/dist/.pikku/addon/credentials/index.ts +8 -0
- package/dist/.pikku/{credentials → addon/credentials}/pikku-credentials.gen.d.ts +4 -5
- package/dist/.pikku/addon/credentials/pikku-credentials.gen.d.ts.map +1 -0
- package/dist/.pikku/{credentials → addon/credentials}/pikku-credentials.gen.js +1 -1
- package/dist/.pikku/addon/credentials/pikku-credentials.gen.js.map +1 -0
- package/dist/.pikku/{credentials → addon/credentials}/pikku-credentials.gen.ts +5 -6
- 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/index.ts +8 -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/error/pikku-error-types.gen.ts +8 -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/index.ts +8 -0
- package/dist/.pikku/{function → addon/function}/pikku-function-types.gen.d.ts +29 -261
- 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/{function → addon/function}/pikku-function-types.gen.ts +40 -361
- 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.ts +7 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.js +10 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/{function → addon/function}/pikku-functions.gen.ts +3 -3
- 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/index.ts +8 -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/http/pikku-http-types.gen.ts +62 -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/index.ts +8 -0
- package/dist/.pikku/{mcp → addon/mcp}/pikku-mcp-types.gen.d.ts +7 -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/{mcp → addon/mcp}/pikku-mcp-types.gen.ts +6 -50
- 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/index.ts +8 -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/middleware/pikku-middleware-types.gen.ts +167 -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-scenarios.gen.ts → addon/pikku-bootstrap-scenarios.gen.ts} +1 -1
- 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/{pikku-bootstrap.gen.ts → addon/pikku-bootstrap.gen.ts} +2 -2
- 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-package.gen.ts +2 -2
- package/dist/.pikku/{pikku-services.gen.d.ts → addon/pikku-services.gen.d.ts} +8 -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} +4 -4
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/{pikku-services.gen.ts → addon/pikku-services.gen.ts} +8 -8
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.gen.d.ts +6 -6
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.internal.gen.d.ts +6 -6
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.remote.gen.d.ts +6 -6
- 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/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.ts +2 -2
- 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/index.ts +8 -0
- package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.d.ts +2 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.ts +3 -2
- 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/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.ts +3 -3
- 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/addon/scenarios/pikku-scenario-functions.gen.ts +4 -0
- package/dist/.pikku/{workflow/pikku-workflow-types.gen.d.ts → addon/scenarios/pikku-scenario-types.gen.d.ts} +57 -94
- 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} +9 -16
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -0
- package/dist/.pikku/{workflow/pikku-workflow-types.gen.ts → addon/scenarios/pikku-scenario-types.gen.ts} +90 -187
- 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/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.ts +3 -3
- 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/pikku-scenario-wirings.gen.ts +4 -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/scenarios/schemas/register.gen.ts +4 -0
- package/dist/.pikku/addon/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/{schemas → addon/schemas}/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/{schemas → addon/schemas}/register.gen.ts +1 -1
- 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/index.ts +8 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.d.ts +5 -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-personas.gen.ts +5 -16
- package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-roles.gen.js.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.ts +1 -1
- 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/{scopes → addon/scopes}/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +5 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.ts +1 -1
- 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/index.ts +9 -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-secret-types.gen.ts +4 -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/secrets/pikku-secrets.gen.ts +28 -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/{pikku-meta-service.gen.ts → addon/services/pikku-meta-service.gen.ts} +2 -2
- 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/index.ts +9 -0
- package/dist/.pikku/addon/{pikku-addon-types.gen.d.ts → setup/pikku-addon-setup-types.gen.d.ts} +6 -5
- 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/{pikku-addon-types.gen.ts → setup/pikku-addon-setup-types.gen.ts} +5 -4
- 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/setup/pikku-setup-types.gen.ts +105 -0
- package/dist/.pikku/addon/surface-usage.gen.json +1712 -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/index.ts +8 -0
- package/dist/.pikku/{trigger → addon/trigger}/pikku-trigger-types.gen.d.ts +6 -37
- 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/{trigger → addon/trigger}/pikku-trigger-types.gen.ts +9 -45
- 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/index.ts +9 -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-variable-types.gen.ts +4 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +22 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +21 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.ts +32 -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/index.ts +8 -0
- package/dist/.pikku/{workflow → addon/workflow}/pikku-scenario-step-map.gen.d.ts +1 -1
- package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-map.gen.d.ts +1 -1
- 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-types.gen.ts +200 -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-meta.gen.ts +9 -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/addon/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/src/functions/invoicePredict.function.d.ts +4 -4
- package/dist/src/functions/invoicePredict.function.d.ts.map +1 -1
- package/dist/src/functions/invoicePredict.function.js +1 -1
- package/dist/src/functions/invoicePredict.function.js.map +1 -1
- package/dist/src/functions/receiptPredict.function.d.ts +4 -4
- package/dist/src/functions/receiptPredict.function.d.ts.map +1 -1
- package/dist/src/functions/receiptPredict.function.js +1 -1
- package/dist/src/functions/receiptPredict.function.js.map +1 -1
- package/dist/src/mindee-api.service.d.ts +1 -1
- package/dist/src/mindee-api.service.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 -6
- package/package.json +6 -6
- 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 +0 -53
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +0 -1
- 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-model-aliases.gen.ts +0 -6
- 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/console/pikku-node-types.gen.ts +0 -8
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +0 -1
- package/dist/.pikku/credentials/pikku-credentials.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +0 -351
- 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-meta.gen.ts +0 -7
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions.gen.js +0 -10
- 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/http/pikku-http-types.gen.ts +0 -119
- 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/pikku-types.gen.ts +0 -24
- 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/queue/pikku-queue-types.gen.ts +0 -27
- 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-functions.gen.ts +0 -4
- 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/pikku-scenario-wirings.gen.ts +0 -4
- 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/scenarios/schemas/register.gen.ts +0 -4
- 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/scheduler/pikku-scheduler-types.gen.ts +0 -25
- 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.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.ts +0 -7
- 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 -6
- 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-secret-types.gen.ts +0 -5
- 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/secrets/pikku-secrets.gen.ts +0 -34
- 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-variable-types.gen.ts +0 -5
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +0 -25
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +0 -23
- package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.ts +0 -36
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-personas.gen.js.map +0 -1
- 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-meta.gen.ts +0 -9
- 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/workflow/pikku-workflow-wirings.gen.ts +0 -3
- /package/dist/.pikku/{agent → addon/agent}/pikku-model-aliases.gen.d.ts +0 -0
- /package/dist/.pikku/{credentials → addon/credentials}/pikku-credentials-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}/features.gen.json +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.d.ts +0 -0
- /package/dist/.pikku/{scenarios → 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/CredentialSchema_mindee.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/InvoicePredictInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/InvoicePredictOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/ReceiptPredictInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/ReceiptPredictOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/VariableSchema_MINDEE_BASE_URL.schema.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-personas-meta.gen.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-roles-meta.gen.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.js +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes-meta.gen.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.js +0 -0
- /package/dist/.pikku/{secrets → addon/secrets}/pikku-secrets-meta.gen.json +0 -0
- /package/dist/.pikku/{variables → addon/variables}/pikku-variables-meta.gen.json +0 -0
- /package/dist/.pikku/{workflow → addon/workflow}/personas.gen.json +0 -0
- /package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-wirings-meta.gen.d.ts +0 -0
|
@@ -1,37 +1,42 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* Core function
|
|
5
|
+
* Core function types for all wirings
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
import type { PickRequired } from '@pikku/core/utils'
|
|
9
|
+
import type { ListInput, ListOutput } from '@pikku/core/function'
|
|
10
|
+
import type { CorePermissionGroup } from '@pikku/core/function'
|
|
11
|
+
import type { PikkuWire, SecretlessServices } from '@pikku/core/types'
|
|
12
|
+
import type {
|
|
13
|
+
CorePikkuFunctionConfig,
|
|
14
|
+
CorePikkuSessionlessFunctionConfig,
|
|
15
|
+
CorePikkuPermission,
|
|
16
|
+
} from '@pikku/core/function'
|
|
17
17
|
import type { NodeType } from '@pikku/core/node'
|
|
18
|
+
import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js'
|
|
19
|
+
import type { PikkuPermission } from '../auth/pikku-auth-types.gen.js'
|
|
18
20
|
import type { ScopeId } from '../scopes/pikku-scopes.gen.js'
|
|
21
|
+
type CredentialsMap = Record<string, unknown>
|
|
19
22
|
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
20
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
CorePikkuFunction,
|
|
25
|
+
CorePikkuFunctionSessionless,
|
|
26
|
+
} from '@pikku/core/function'
|
|
21
27
|
|
|
22
|
-
import type { UserSession } from '
|
|
23
|
-
import type { SingletonServices } from '
|
|
24
|
-
import type { Services } from '
|
|
25
|
-
import type { Config } from '../../types/application-types.d.js'
|
|
28
|
+
import type { UserSession } from '../../../types/application-types.d.js'
|
|
29
|
+
import type { SingletonServices } from '../../../types/application-types.d.js'
|
|
30
|
+
import type { Services } from '../../../types/application-types.d.js'
|
|
26
31
|
import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js'
|
|
27
|
-
import type { RequiredSingletonServices
|
|
28
|
-
import type { TypedWorkflow
|
|
32
|
+
import type { RequiredSingletonServices } from '../pikku-services.gen.js'
|
|
33
|
+
import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js'
|
|
34
|
+
import type { TypedScenario, TypedPersonas } from '../scenarios/pikku-scenario-types.gen.js'
|
|
29
35
|
|
|
30
36
|
export type { SingletonServices as SingletonServices }
|
|
31
37
|
export type { Services as Services }
|
|
32
38
|
export type Session = UserSession
|
|
33
39
|
|
|
34
|
-
|
|
35
40
|
/**
|
|
36
41
|
* The services a wired function actually receives. The inspector records which
|
|
37
42
|
* services each wired `func`, `permissions` and `middleware` destructures and
|
|
@@ -43,9 +48,6 @@ export type Session = UserSession
|
|
|
43
48
|
export type WiredSingletonServices = RequiredSingletonServices & SingletonServices
|
|
44
49
|
export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>
|
|
45
50
|
|
|
46
|
-
/** `WiredSingletonServices` without `secrets`, for auth gates. */
|
|
47
|
-
export type WiredAuthServices = SecretlessServices<WiredSingletonServices>
|
|
48
|
-
|
|
49
51
|
/**
|
|
50
52
|
* Inline node configuration for function definitions.
|
|
51
53
|
*/
|
|
@@ -56,193 +58,6 @@ export type NodeConfig = {
|
|
|
56
58
|
errorOutput?: boolean
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
/**
|
|
60
|
-
* Type-safe API permission definition that integrates with your application's session type.
|
|
61
|
-
* Use this to define authorization logic for your API endpoints.
|
|
62
|
-
*
|
|
63
|
-
* @template In - The input type that the permission check will receive
|
|
64
|
-
* @template RequiredServices - The services required for this permission check
|
|
65
|
-
*/
|
|
66
|
-
export type PikkuPermission<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuPermission<In, RequiredServices, PikkuWire<In, never, false, Session>>
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Type-safe middleware definition that can access your application's services and session.
|
|
70
|
-
* Use this to define reusable middleware that can be applied to multiple wirings.
|
|
71
|
-
*
|
|
72
|
-
* @template RequiredServices - The services required for this middleware
|
|
73
|
-
*/
|
|
74
|
-
export type PikkuMiddleware<RequiredServices extends SingletonServices = WiredSingletonServices> = CorePikkuMiddleware<RequiredServices>
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Configuration object for creating a permission with metadata
|
|
78
|
-
*/
|
|
79
|
-
export type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = {
|
|
80
|
-
/** The permission function */
|
|
81
|
-
func: PikkuPermission<In, RequiredServices>
|
|
82
|
-
/** Optional human-readable name for the permission */
|
|
83
|
-
name?: string
|
|
84
|
-
/** Optional description of what the permission checks */
|
|
85
|
-
description?: string
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Factory function for creating permissions with tree-shaking support.
|
|
90
|
-
* Supports both direct function and configuration object syntax.
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* ```typescript
|
|
94
|
-
* // Direct function syntax
|
|
95
|
-
* const permission = pikkuPermission(async ({ logger }, data, { session }) => {
|
|
96
|
-
* const session = await session?.get()
|
|
97
|
-
* return session?.role === 'admin'
|
|
98
|
-
* })
|
|
99
|
-
*
|
|
100
|
-
* // Configuration object syntax with metadata
|
|
101
|
-
* const adminPermission = pikkuPermission({
|
|
102
|
-
* name: 'Admin Permission',
|
|
103
|
-
* description: 'Checks if user has admin role',
|
|
104
|
-
* func: async ({ logger }, data, { session }) => {
|
|
105
|
-
* const session = await session?.get()
|
|
106
|
-
* return session?.role === 'admin'
|
|
107
|
-
* }
|
|
108
|
-
* })
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
export const pikkuPermission = <In>(
|
|
112
|
-
permission: PikkuPermission<In> | PikkuPermissionConfig<In>
|
|
113
|
-
): PikkuPermission<In> => {
|
|
114
|
-
return typeof permission === 'function' ? permission : permission.func
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Type-safe auth-only permission that only needs services and session.
|
|
119
|
-
* Use this for upfront authorization gates (MCP tools, AI agents, workflows)
|
|
120
|
-
* where request data isn't available yet.
|
|
121
|
-
*
|
|
122
|
-
* @template RequiredServices - The services required for this auth check
|
|
123
|
-
*/
|
|
124
|
-
export type PikkuAuth<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuth<RequiredServices, Session>
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Configuration object for creating an auth permission with metadata
|
|
128
|
-
*/
|
|
129
|
-
export type PikkuAuthConfig<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuthConfig<RequiredServices, Session>
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Factory function for creating auth-only permissions with tree-shaking support.
|
|
133
|
-
* Auth permissions only receive services and session (no request data),
|
|
134
|
-
* making them evaluable before request data is available.
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* \`\`\`typescript
|
|
138
|
-
* const isAuthenticated = pikkuAuth(async ({ logger }, session) => {
|
|
139
|
-
* return !!session
|
|
140
|
-
* })
|
|
141
|
-
*
|
|
142
|
-
* const isAdmin = pikkuAuth({
|
|
143
|
-
* name: 'Admin Auth',
|
|
144
|
-
* description: 'Checks if user is an admin',
|
|
145
|
-
* func: async ({ logger }, session) => {
|
|
146
|
-
* return session?.role === 'admin'
|
|
147
|
-
* }
|
|
148
|
-
* })
|
|
149
|
-
* \`\`\`
|
|
150
|
-
*/
|
|
151
|
-
export const pikkuAuth = <RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices>(
|
|
152
|
-
auth: PikkuAuth<RequiredServices> | PikkuAuthConfig<RequiredServices>
|
|
153
|
-
): PikkuPermission<any, any> => {
|
|
154
|
-
return pikkuAuthCore(auth as any) as any
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Configuration object for creating middleware with metadata
|
|
159
|
-
*/
|
|
160
|
-
export type PikkuMiddlewareConfig<RequiredServices extends SingletonServices = WiredSingletonServices> = {
|
|
161
|
-
/** The middleware function */
|
|
162
|
-
func: PikkuMiddleware<RequiredServices>
|
|
163
|
-
/** Optional human-readable name for the middleware */
|
|
164
|
-
name?: string
|
|
165
|
-
/** Optional description of what the middleware does */
|
|
166
|
-
description?: string
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Factory function for creating middleware with tree-shaking support.
|
|
171
|
-
* Supports both direct function and configuration object syntax.
|
|
172
|
-
*
|
|
173
|
-
* @example
|
|
174
|
-
* ```typescript
|
|
175
|
-
* // Direct function syntax
|
|
176
|
-
* const middleware = pikkuMiddleware(({ logger }, wires, next) => {
|
|
177
|
-
* logger.info('Middleware executed')
|
|
178
|
-
* await next()
|
|
179
|
-
* })
|
|
180
|
-
*
|
|
181
|
-
* // Configuration object syntax with metadata
|
|
182
|
-
* const logMiddleware = pikkuMiddleware({
|
|
183
|
-
* name: 'Request Logger',
|
|
184
|
-
* description: 'Logs all incoming requests',
|
|
185
|
-
* func: async ({ logger }, wires, next) => {
|
|
186
|
-
* logger.info('Request started')
|
|
187
|
-
* await next()
|
|
188
|
-
* }
|
|
189
|
-
* })
|
|
190
|
-
* ```
|
|
191
|
-
*/
|
|
192
|
-
export const pikkuMiddleware = <RequiredServices extends SingletonServices = WiredSingletonServices>(
|
|
193
|
-
middleware: PikkuMiddleware<RequiredServices> | PikkuMiddlewareConfig<RequiredServices>
|
|
194
|
-
): PikkuMiddleware<RequiredServices> => {
|
|
195
|
-
return typeof middleware === 'function' ? middleware : middleware.func
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Factory function for creating middleware factories
|
|
200
|
-
* Use this when your middleware needs configuration/input parameters
|
|
201
|
-
*
|
|
202
|
-
* @example
|
|
203
|
-
* ```typescript
|
|
204
|
-
* export const logMiddleware = pikkuMiddlewareFactory<LogOptions>(({
|
|
205
|
-
* message,
|
|
206
|
-
* level = 'info'
|
|
207
|
-
* }) => {
|
|
208
|
-
* return pikkuMiddleware(async ({ logger }, next) => {
|
|
209
|
-
* logger[level](message)
|
|
210
|
-
* await next()
|
|
211
|
-
* })
|
|
212
|
-
* })
|
|
213
|
-
* ```
|
|
214
|
-
*/
|
|
215
|
-
export const pikkuMiddlewareFactory = <In = any>(
|
|
216
|
-
factory: (input: In) => PikkuMiddleware
|
|
217
|
-
): ((input: In) => PikkuMiddleware) => {
|
|
218
|
-
return factory
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Factory function for creating permission factories
|
|
223
|
-
* Use this when your permission needs configuration/input parameters
|
|
224
|
-
*
|
|
225
|
-
* @example
|
|
226
|
-
* ```typescript
|
|
227
|
-
* export const requireRole = pikkuPermissionFactory<{ role: string }>(({
|
|
228
|
-
* role
|
|
229
|
-
* }) => {
|
|
230
|
-
* return pikkuPermission(async ({ logger }, data, { session }) => {
|
|
231
|
-
* if (!session || session.role !== role) {
|
|
232
|
-
* logger.warn(`Permission denied: required role '${role}'`)
|
|
233
|
-
* return false
|
|
234
|
-
* }
|
|
235
|
-
* return true
|
|
236
|
-
* })
|
|
237
|
-
* })
|
|
238
|
-
* ```
|
|
239
|
-
*/
|
|
240
|
-
export const pikkuPermissionFactory = <In = any>(
|
|
241
|
-
factory: (input: In) => PikkuPermission<any>
|
|
242
|
-
): ((input: In) => PikkuPermission<any>) => {
|
|
243
|
-
return factory
|
|
244
|
-
}
|
|
245
|
-
|
|
246
61
|
/**
|
|
247
62
|
* A function that generates a human-readable description of a pending approval action.
|
|
248
63
|
* Used by AI agents to show meaningful approval prompts instead of raw tool arguments.
|
|
@@ -297,7 +112,7 @@ export type PikkuFunctionSessionless<
|
|
|
297
112
|
Out,
|
|
298
113
|
RequiredServices,
|
|
299
114
|
Session,
|
|
300
|
-
PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedPersonas>, RequiredWires>
|
|
115
|
+
PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedPersonas, CredentialsMap>, RequiredWires>
|
|
301
116
|
>
|
|
302
117
|
|
|
303
118
|
/**
|
|
@@ -318,7 +133,7 @@ export type PikkuFunction<
|
|
|
318
133
|
Out,
|
|
319
134
|
RequiredServices,
|
|
320
135
|
Session,
|
|
321
|
-
PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas>, RequiredWires>
|
|
136
|
+
PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas, CredentialsMap>, RequiredWires>
|
|
322
137
|
>
|
|
323
138
|
|
|
324
139
|
/**
|
|
@@ -343,20 +158,24 @@ export type PikkuFunctionConfig<
|
|
|
343
158
|
PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>,
|
|
344
159
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
345
160
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
346
|
-
> = CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>
|
|
161
|
+
> = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>, 'node'> & {
|
|
162
|
+
node?: NodeConfig
|
|
163
|
+
}
|
|
347
164
|
|
|
348
165
|
/**
|
|
349
166
|
* {@link PikkuFunctionConfig} for a function that runs without a session.
|
|
350
167
|
* Has no `scopes`: an anonymous caller holds none, so none can ever be met.
|
|
351
168
|
*/
|
|
352
|
-
|
|
169
|
+
type PikkuFunctionSessionlessConfig<
|
|
353
170
|
In = unknown,
|
|
354
171
|
Out = unknown,
|
|
355
172
|
RequiredWires extends keyof PikkuWire = never,
|
|
356
173
|
PikkuFunc extends PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunctionSessionless<In, Out, RequiredWires>,
|
|
357
174
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
358
175
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
359
|
-
> = CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>
|
|
176
|
+
> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>, 'node'> & {
|
|
177
|
+
node?: NodeConfig
|
|
178
|
+
}
|
|
360
179
|
|
|
361
180
|
/**
|
|
362
181
|
* Configuration object for Pikku functions with Zod schema validation.
|
|
@@ -371,7 +190,7 @@ type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1
|
|
|
371
190
|
* Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
|
|
372
191
|
* so adding a field on the core type automatically propagates here.
|
|
373
192
|
*/
|
|
374
|
-
|
|
193
|
+
type PikkuFunctionConfigWithSchema<
|
|
375
194
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
376
195
|
OutputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
377
196
|
RequiredWires extends keyof PikkuWire = never,
|
|
@@ -386,13 +205,14 @@ export type PikkuFunctionConfigWithSchema<
|
|
|
386
205
|
undefined,
|
|
387
206
|
ScopeId
|
|
388
207
|
>,
|
|
389
|
-
'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'
|
|
208
|
+
'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'
|
|
390
209
|
> & {
|
|
391
210
|
func:
|
|
392
211
|
| PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>
|
|
393
212
|
| PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>
|
|
394
213
|
input?: InputSchema
|
|
395
214
|
output?: OutputSchema
|
|
215
|
+
node?: NodeConfig
|
|
396
216
|
permissions?: InputSchema extends StandardSchemaV1
|
|
397
217
|
? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
|
|
398
218
|
: undefined
|
|
@@ -442,18 +262,6 @@ export function pikkuFunc(func: any) {
|
|
|
442
262
|
return typeof func === 'function' ? { func } : func
|
|
443
263
|
}
|
|
444
264
|
|
|
445
|
-
export type PikkuListFunction<
|
|
446
|
-
F extends Record<string, unknown> = {},
|
|
447
|
-
Row = unknown,
|
|
448
|
-
S extends string = never
|
|
449
|
-
> =
|
|
450
|
-
| PikkuFunction<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'>
|
|
451
|
-
| PikkuFunctionSessionless<
|
|
452
|
-
ListInput<F, S>,
|
|
453
|
-
ListOutput<Row>,
|
|
454
|
-
'session' | 'rpc'
|
|
455
|
-
>
|
|
456
|
-
|
|
457
265
|
export const pikkuListFunc = <
|
|
458
266
|
F extends Record<string, unknown> = {},
|
|
459
267
|
Row = unknown,
|
|
@@ -476,7 +284,7 @@ export const pikkuListFunc = <
|
|
|
476
284
|
* CorePikkuSessionlessFunctionConfig to stay in sync with the generic-typed
|
|
477
285
|
* config — so it has no `scopes` either.
|
|
478
286
|
*/
|
|
479
|
-
|
|
287
|
+
type PikkuFunctionSessionlessConfigWithSchema<
|
|
480
288
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
481
289
|
OutputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
482
290
|
RequiredWires extends keyof PikkuWire = never,
|
|
@@ -485,7 +293,7 @@ export type PikkuFunctionSessionlessConfigWithSchema<
|
|
|
485
293
|
CorePikkuSessionlessFunctionConfig<
|
|
486
294
|
PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>
|
|
487
295
|
>,
|
|
488
|
-
'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'
|
|
296
|
+
'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'
|
|
489
297
|
> & {
|
|
490
298
|
func: PikkuFunctionSessionless<
|
|
491
299
|
SchemaInferred<InputSchema>,
|
|
@@ -495,6 +303,7 @@ export type PikkuFunctionSessionlessConfigWithSchema<
|
|
|
495
303
|
>
|
|
496
304
|
input?: InputSchema
|
|
497
305
|
output?: OutputSchema
|
|
306
|
+
node?: NodeConfig
|
|
498
307
|
permissions?: InputSchema extends StandardSchemaV1
|
|
499
308
|
? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
|
|
500
309
|
: undefined
|
|
@@ -563,7 +372,7 @@ export const pikkuVoidFunc = (
|
|
|
563
372
|
func:
|
|
564
373
|
| PikkuFunctionSessionless<void, void, 'session' | 'rpc'>
|
|
565
374
|
| PikkuFunctionSessionlessConfig<void, void, 'session' | 'rpc'>
|
|
566
|
-
) => {
|
|
375
|
+
): PikkuFunctionConfig<void, void, 'session' | 'rpc'> => {
|
|
567
376
|
return typeof func === 'function' ? { func } : func
|
|
568
377
|
}
|
|
569
378
|
|
|
@@ -639,137 +448,7 @@ export function pikkuRemoteChannelFunc<
|
|
|
639
448
|
} as any
|
|
640
449
|
}
|
|
641
450
|
|
|
642
|
-
/**
|
|
643
|
-
* Creates a Pikku config factory.
|
|
644
|
-
* Use this to define your application's configuration factory.
|
|
645
|
-
*
|
|
646
|
-
* @param func - Config factory function that returns your application's config
|
|
647
|
-
* @returns The config factory function
|
|
648
|
-
*
|
|
649
|
-
* @example
|
|
650
|
-
* ```typescript
|
|
651
|
-
* export const createConfig = pikkuConfig(async () => {
|
|
652
|
-
* return {
|
|
653
|
-
* apiUrl: process.env.API_URL || 'http://localhost:3000',
|
|
654
|
-
* dbUrl: process.env.DATABASE_URL
|
|
655
|
-
* }
|
|
656
|
-
* })
|
|
657
|
-
* ```
|
|
658
|
-
*/
|
|
659
|
-
export const pikkuConfig = (
|
|
660
|
-
func: (variables?: any, ...args: any[]) => Promise<Config>
|
|
661
|
-
) => func
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* Creates a Pikku singleton services factory.
|
|
666
|
-
* Use this to define services that are created once and shared across all requests.
|
|
667
|
-
*
|
|
668
|
-
* @param func - Singleton services factory function
|
|
669
|
-
* @returns The singleton services factory function
|
|
670
|
-
*
|
|
671
|
-
* @example
|
|
672
|
-
* ```typescript
|
|
673
|
-
* export const createSingletonServices = pikkuServices(async (config, existingServices) => {
|
|
674
|
-
* return {
|
|
675
|
-
* config,
|
|
676
|
-
* logger: new CustomLogger(),
|
|
677
|
-
* db: await createDatabaseConnection(config.dbUrl)
|
|
678
|
-
* }
|
|
679
|
-
* })
|
|
680
|
-
* ```
|
|
681
|
-
*/
|
|
682
|
-
export const pikkuServices = (
|
|
683
|
-
func: (config: Config, existingServices: Partial<SingletonServices>) => Promise<Partial<Omit<RequiredSingletonServices, 'auth'>>>
|
|
684
|
-
) => {
|
|
685
|
-
return async (config: Config, existingServices: Partial<SingletonServices> = {}) => {
|
|
686
|
-
const createdServices = await func(config, existingServices)
|
|
687
|
-
const services = { ...existingServices, ...createdServices }
|
|
688
|
-
const authFactory = __pikkuState(null, 'package', 'authFactory')
|
|
689
|
-
if (authFactory) {
|
|
690
|
-
let authInstance: Promise<unknown> | undefined
|
|
691
|
-
;(services as any).auth = () => {
|
|
692
|
-
authInstance ??= Promise.resolve()
|
|
693
|
-
.then(() => authFactory(services as any))
|
|
694
|
-
.catch((error) => {
|
|
695
|
-
authInstance = undefined
|
|
696
|
-
throw error
|
|
697
|
-
})
|
|
698
|
-
return authInstance
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
const resolved = services as RequiredSingletonServices
|
|
702
|
-
__pikkuState(null, 'package', 'singletonServices', resolved as any)
|
|
703
|
-
return resolved
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* Creates a Pikku wire services factory.
|
|
709
|
-
* Use this to define services that are created per-request/session.
|
|
710
|
-
*
|
|
711
|
-
* @param func - Wire services factory function
|
|
712
|
-
* @returns The wire services factory function
|
|
713
|
-
*
|
|
714
|
-
* @example
|
|
715
|
-
* ```typescript
|
|
716
|
-
* export const createWireServices = pikkuWireServices(async (services, wire) => {
|
|
717
|
-
* const session = await wire.session?.get()
|
|
718
|
-
* return {
|
|
719
|
-
* userCache: new UserCache(session?.userId)
|
|
720
|
-
* }
|
|
721
|
-
* })
|
|
722
|
-
* ```
|
|
723
|
-
*/
|
|
724
|
-
export const pikkuWireServices = (
|
|
725
|
-
func: (
|
|
726
|
-
services: SingletonServices,
|
|
727
|
-
wire: any
|
|
728
|
-
) => Promise<RequiredWireServices>
|
|
729
|
-
): CreateWireServices => {
|
|
730
|
-
const factories = __pikkuState(null, 'package', 'factories')
|
|
731
|
-
__pikkuState(null, 'package', 'factories', { ...factories, createWireServices: func as any })
|
|
732
|
-
return func as unknown as CreateWireServices
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
/**
|
|
736
|
-
* Tag-scoped middleware. Applies to any wiring that carries the matching tag.
|
|
737
|
-
*
|
|
738
|
-
* @example
|
|
739
|
-
* addTagMiddleware('admin', [adminMiddleware])
|
|
740
|
-
*/
|
|
741
|
-
export const addTagMiddleware = (tag: string, middleware: PikkuMiddleware[]) => {
|
|
742
|
-
addTagMiddlewareCore(tag, middleware as any, '@pikku/addon-mindee')
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* Wire-agnostic global middleware. Runs at the top of every wiring's
|
|
747
|
-
* middleware chain — before wire-, tag-, and function-level entries.
|
|
748
|
-
*
|
|
749
|
-
* Resolution order: global -> wire -> tag -> function.
|
|
750
|
-
*
|
|
751
|
-
* @example
|
|
752
|
-
* addGlobalMiddleware([telemetryMiddleware])
|
|
753
|
-
*/
|
|
754
|
-
export const addGlobalMiddleware = (middleware: PikkuMiddleware[]) => {
|
|
755
|
-
addGlobalMiddlewareCore(middleware as any, '@pikku/addon-mindee')
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* Wire-agnostic global permissions. Runs at the top of every wiring's
|
|
760
|
-
* permission resolution — before wire-, tag-, and function-level entries.
|
|
761
|
-
*
|
|
762
|
-
* Resolution order: global -> wire -> tag -> function.
|
|
763
|
-
*
|
|
764
|
-
* @example
|
|
765
|
-
* addGlobalPermission([signedInUser])
|
|
766
|
-
*/
|
|
767
|
-
export const addGlobalPermission = <In = unknown>(permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => {
|
|
768
|
-
addGlobalPermissionCore(permissions as any, '@pikku/addon-mindee')
|
|
769
|
-
}
|
|
770
451
|
|
|
771
|
-
export { wireAddon, wireRemoteAddon } from '@pikku/core/rpc'
|
|
772
|
-
export type { WireAddonConfig, WireRemoteAddonConfig, RemoteAddonAuth } from '@pikku/core/rpc'
|
|
773
452
|
|
|
774
453
|
|
|
775
454
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions-meta.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-functions-meta.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/state';
|
|
5
|
+
import metaData from './pikku-functions-meta.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState('@pikku/addon-mindee', '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,qBAAqB,EAAE,UAAU,EAAE,MAAM,EAAE,QAAyB,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/state'
|
|
5
|
+
import type { FunctionsMeta } from '@pikku/core/services'
|
|
6
|
+
import metaData from './pikku-functions-meta.gen.json' with { type: 'json' }
|
|
7
|
+
pikkuState('@pikku/addon-mindee', 'function', 'meta', metaData as FunctionsMeta)
|
|
@@ -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,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
3
|
+
*/
|
|
4
|
+
/* Import and register functions used by RPCs */
|
|
5
|
+
import { addFunction } from '@pikku/core/function';
|
|
6
|
+
import { invoicePredict } from '../../../src/functions/invoicePredict.function.js';
|
|
7
|
+
import { receiptPredict } from '../../../src/functions/receiptPredict.function.js';
|
|
8
|
+
addFunction('invoicePredict', invoicePredict, '@pikku/addon-mindee');
|
|
9
|
+
addFunction('receiptPredict', receiptPredict, '@pikku/addon-mindee');
|
|
10
|
+
//# 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,cAAc,EAAE,MAAM,mDAAmD,CAAA;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAA;AAElF,WAAW,CAAC,gBAAgB,EAAE,cAAc,EAAE,qBAAqB,CAAC,CAAA;AACpE,WAAW,CAAC,gBAAgB,EAAE,cAAc,EAAE,qBAAqB,CAAC,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
3
3
|
*/
|
|
4
4
|
/* Import and register functions used by RPCs */
|
|
5
5
|
import { addFunction } from '@pikku/core/function'
|
|
6
|
-
import { invoicePredict } from '
|
|
7
|
-
import { receiptPredict } from '
|
|
6
|
+
import { invoicePredict } from '../../../src/functions/invoicePredict.function.js'
|
|
7
|
+
import { receiptPredict } from '../../../src/functions/receiptPredict.function.js'
|
|
8
8
|
|
|
9
9
|
addFunction('invoicePredict', invoicePredict, '@pikku/addon-mindee')
|
|
10
10
|
addFunction('receiptPredict', receiptPredict, '@pikku/addon-mindee')
|
|
@@ -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,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
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
|
+
export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(routes: T): TypedHTTPRouteContract<T>;
|
|
46
|
+
export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: TypedHTTPRoutesGroupConfig & {
|
|
47
|
+
routes: T;
|
|
48
|
+
}): TypedHTTPRouteContract<T>;
|
|
49
|
+
export {};
|
|
50
|
+
//# 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;;GAEG;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"}
|