@pikku/addon-admin 0.12.1 → 0.12.3
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 +43 -0
- package/README.md +3 -3
- package/dist/.pikku/addon/agent/index.d.ts +1 -1
- package/dist/.pikku/addon/agent/index.js +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +42 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +41 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.js +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +10 -20
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +2 -19
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -1
- package/dist/.pikku/addon/channel/index.d.ts +1 -1
- package/dist/.pikku/addon/channel/index.js +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +8 -18
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +7 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -1
- package/dist/.pikku/addon/error/index.d.ts +1 -1
- package/dist/.pikku/addon/error/index.js +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/addon/function/index.d.ts +1 -1
- package/dist/.pikku/addon/function/index.js +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +47 -38
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +21 -9
- package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +2 -2
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +1 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/addon/http/index.d.ts +1 -1
- package/dist/.pikku/addon/http/index.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +3 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -1
- package/dist/.pikku/addon/mcp/index.d.ts +1 -1
- package/dist/.pikku/addon/mcp/index.js +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +7 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -1
- package/dist/.pikku/addon/middleware/index.d.ts +1 -1
- package/dist/.pikku/addon/middleware/index.js +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +42 -26
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +29 -24
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts +2 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.js +1 -0
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/index.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +15 -0
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +12 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +15 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +4 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +1 -1
- package/dist/.pikku/addon/scopes/index.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +2 -2
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.js +1 -1
- package/dist/.pikku/addon/secrets/index.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +9 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +5 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/addon/setup/index.d.ts +1 -1
- package/dist/.pikku/addon/setup/index.js +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +7 -19
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +11 -19
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -1
- package/dist/.pikku/addon/trigger/index.d.ts +1 -1
- package/dist/.pikku/addon/trigger/index.js +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/index.d.ts +1 -1
- package/dist/.pikku/addon/variables/index.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +9 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +5 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/addon/workflow/index.d.ts +1 -1
- package/dist/.pikku/addon/workflow/index.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +29 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +8 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/src/functions/set-user-banned.function.js +1 -1
- package/dist/src/functions/set-user-banned.function.js.map +1 -1
- package/dist/src/lib/user.schemas.d.ts +1 -1
- package/dist/src/lib/user.schemas.js +1 -1
- package/dist/src/scopes.js +1 -2
- package/dist/src/scopes.js.map +1 -1
- package/package.json +6 -6
- package/dist/.pikku/addon/index.d.ts +0 -8
- package/dist/.pikku/addon/index.d.ts.map +0 -1
- package/dist/.pikku/addon/index.js +0 -8
- package/dist/.pikku/addon/index.js.map +0 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +0 -66
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +0 -78
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +0 -1
- package/dist/.pikku/agent/index.d.ts +0 -8
- package/dist/.pikku/agent/index.d.ts.map +0 -1
- package/dist/.pikku/agent/index.js +0 -8
- package/dist/.pikku/agent/index.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +0 -54
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js +0 -20
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts +0 -2
- package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +0 -6
- package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-scorer-names.gen.d.ts +0 -8
- package/dist/.pikku/auth/index.d.ts +0 -8
- package/dist/.pikku/auth/index.d.ts.map +0 -1
- package/dist/.pikku/auth/index.js +0 -8
- package/dist/.pikku/auth/index.js.map +0 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +0 -119
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts.map +0 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.js +0 -93
- package/dist/.pikku/auth/pikku-auth-types.gen.js.map +0 -1
- package/dist/.pikku/channel/index.d.ts +0 -8
- package/dist/.pikku/channel/index.d.ts.map +0 -1
- package/dist/.pikku/channel/index.js +0 -8
- package/dist/.pikku/channel/index.js.map +0 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +0 -91
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +0 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +0 -43
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +0 -1
- package/dist/.pikku/credentials/index.d.ts +0 -8
- package/dist/.pikku/credentials/index.d.ts.map +0 -1
- package/dist/.pikku/credentials/index.js +0 -8
- package/dist/.pikku/credentials/index.js.map +0 -1
- package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts +0 -5
- package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts.map +0 -1
- package/dist/.pikku/credentials/pikku-credential-types.gen.js +0 -5
- package/dist/.pikku/credentials/pikku-credential-types.gen.js.map +0 -1
- package/dist/.pikku/error/index.d.ts +0 -8
- package/dist/.pikku/error/index.d.ts.map +0 -1
- package/dist/.pikku/error/index.js +0 -8
- package/dist/.pikku/error/index.js.map +0 -1
- package/dist/.pikku/error/pikku-error-types.gen.d.ts +0 -8
- package/dist/.pikku/error/pikku-error-types.gen.d.ts.map +0 -1
- package/dist/.pikku/error/pikku-error-types.gen.js +0 -8
- package/dist/.pikku/error/pikku-error-types.gen.js.map +0 -1
- package/dist/.pikku/function/index.d.ts +0 -8
- package/dist/.pikku/function/index.d.ts.map +0 -1
- package/dist/.pikku/function/index.js +0 -8
- package/dist/.pikku/function/index.js.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +0 -270
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +0 -117
- package/dist/.pikku/function/pikku-function-types.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -891
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +0 -2
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +0 -7
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +0 -699
- package/dist/.pikku/function/pikku-functions.gen.d.ts +0 -2
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions.gen.js +0 -54
- package/dist/.pikku/function/pikku-functions.gen.js.map +0 -1
- package/dist/.pikku/gateway/index.d.ts +0 -8
- package/dist/.pikku/gateway/index.d.ts.map +0 -1
- package/dist/.pikku/gateway/index.js +0 -8
- package/dist/.pikku/gateway/index.js.map +0 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +0 -38
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts.map +0 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js +0 -26
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js.map +0 -1
- package/dist/.pikku/http/index.d.ts +0 -8
- package/dist/.pikku/http/index.d.ts.map +0 -1
- package/dist/.pikku/http/index.js +0 -8
- package/dist/.pikku/http/index.js.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +0 -50
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +0 -11
- package/dist/.pikku/http/pikku-http-types.gen.js.map +0 -1
- package/dist/.pikku/mcp/index.d.ts +0 -8
- package/dist/.pikku/mcp/index.d.ts.map +0 -1
- package/dist/.pikku/mcp/index.js +0 -8
- package/dist/.pikku/mcp/index.js.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +0 -102
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -16
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +0 -1
- package/dist/.pikku/middleware/index.d.ts +0 -8
- package/dist/.pikku/middleware/index.d.ts.map +0 -1
- package/dist/.pikku/middleware/index.js +0 -8
- package/dist/.pikku/middleware/index.js.map +0 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +0 -118
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts.map +0 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js +0 -109
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +0 -10
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +0 -10
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +0 -10
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +0 -10
- package/dist/.pikku/pikku-bootstrap.gen.js.map +0 -1
- package/dist/.pikku/pikku-services.gen.d.ts +0 -41
- package/dist/.pikku/pikku-services.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-services.gen.js +0 -37
- package/dist/.pikku/pikku-services.gen.js.map +0 -1
- package/dist/.pikku/queue/index.d.ts +0 -8
- package/dist/.pikku/queue/index.d.ts.map +0 -1
- package/dist/.pikku/queue/index.js +0 -8
- package/dist/.pikku/queue/index.js.map +0 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +0 -24
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +0 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +0 -17
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +0 -197
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -197
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +0 -171
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -2
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +0 -7
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -26
- package/dist/.pikku/scenarios/index.d.ts +0 -8
- package/dist/.pikku/scenarios/index.d.ts.map +0 -1
- package/dist/.pikku/scenarios/index.js +0 -8
- package/dist/.pikku/scenarios/index.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.d.ts +0 -18
- package/dist/.pikku/scenarios/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.js +0 -18
- package/dist/.pikku/scenarios/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +0 -11
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +0 -311
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.js +0 -72
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +0 -11
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +0 -1
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/schemas/register.gen.js +0 -5
- package/dist/.pikku/scenarios/schemas/register.gen.js.map +0 -1
- package/dist/.pikku/scheduler/index.d.ts +0 -8
- package/dist/.pikku/scheduler/index.d.ts.map +0 -1
- package/dist/.pikku/scheduler/index.js +0 -8
- package/dist/.pikku/scheduler/index.js.map +0 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +0 -22
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +0 -17
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +0 -1
- package/dist/.pikku/schemas/register.gen.d.ts +0 -2
- package/dist/.pikku/schemas/register.gen.d.ts.map +0 -1
- package/dist/.pikku/schemas/register.gen.js +0 -93
- package/dist/.pikku/schemas/register.gen.js.map +0 -1
- package/dist/.pikku/schemas/schemas/CreateUserInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CreateUserOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialDeleteInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialDeleteOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialGetInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialGetOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialListUsersOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialSetInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialSetOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialStatusInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialStatusOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialUsersInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CredentialUsersOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/GetAuditFiltersOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/GetAuditsInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/GetAuditsOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ListUsersInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ListUsersOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RemoveUserInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RemoveUserOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RevokeUserSessionsInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RevokeUserSessionsOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeAddScopeToUserInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeAddScopeToUserOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeAddUserToRoleInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeAddUserToRoleOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeCreateRoleInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeCreateRoleOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeDeleteRoleInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeDeleteRoleOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeListDeclaredOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeListRolesOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeListUserRolesInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeListUserRolesOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeRemoveScopeFromUserInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeRemoveScopeFromUserOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeRemoveUserFromRoleInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeRemoveUserFromRoleOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeSetRoleScopesInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScopeSetRoleScopesOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SetUserBannedInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SetUserBannedOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SetUserPasswordInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SetUserPasswordOutput.schema.json +0 -1
- package/dist/.pikku/scopes/index.d.ts +0 -8
- package/dist/.pikku/scopes/index.d.ts.map +0 -1
- package/dist/.pikku/scopes/index.js +0 -8
- package/dist/.pikku/scopes/index.js.map +0 -1
- package/dist/.pikku/scopes/pikku-personas-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +0 -29
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js +0 -18
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-roles-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +0 -31
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.js +0 -19
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +0 -6
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +0 -6
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +0 -69
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +0 -36
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.js +0 -30
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +0 -1
- package/dist/.pikku/secrets/index.d.ts +0 -9
- package/dist/.pikku/secrets/index.d.ts.map +0 -1
- package/dist/.pikku/secrets/index.js +0 -9
- package/dist/.pikku/secrets/index.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -5
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +0 -5
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +0 -18
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +0 -19
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +0 -1
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts +0 -8
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts.map +0 -1
- package/dist/.pikku/services/pikku-meta-service.gen.js +0 -10
- package/dist/.pikku/services/pikku-meta-service.gen.js.map +0 -1
- package/dist/.pikku/setup/index.d.ts +0 -8
- package/dist/.pikku/setup/index.d.ts.map +0 -1
- package/dist/.pikku/setup/index.js +0 -8
- package/dist/.pikku/setup/index.js.map +0 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +0 -67
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts.map +0 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.js +0 -88
- package/dist/.pikku/setup/pikku-setup-types.gen.js.map +0 -1
- package/dist/.pikku/trigger/index.d.ts +0 -8
- package/dist/.pikku/trigger/index.d.ts.map +0 -1
- package/dist/.pikku/trigger/index.js +0 -8
- package/dist/.pikku/trigger/index.js.map +0 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +0 -83
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +0 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -13
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +0 -1
- package/dist/.pikku/variables/index.d.ts +0 -9
- package/dist/.pikku/variables/index.d.ts.map +0 -1
- package/dist/.pikku/variables/index.js +0 -9
- package/dist/.pikku/variables/index.js.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -5
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +0 -5
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +0 -19
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +0 -19
- package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
- package/dist/.pikku/workflow/index.d.ts +0 -8
- package/dist/.pikku/workflow/index.d.ts.map +0 -1
- package/dist/.pikku/workflow/index.js +0 -8
- package/dist/.pikku/workflow/index.js.map +0 -1
- package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +0 -18
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +0 -100
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +0 -16
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +0 -2
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +0 -7
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +0 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +0 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +0 -1
- /package/dist/.pikku/{scenarios/pikku-scenario-functions-meta.gen.json → addon/db/pikku-db-meta.gen.json} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @pikku/addon-admin
|
|
2
2
|
|
|
3
|
+
## 0.12.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 712991d: Ship the generated `pikku-db-meta.gen.json` in `dist`. `pikku all` writes it
|
|
8
|
+
under `.pikku/addon/db/`, but `tsc` only emits the JSON it sees imported and
|
|
9
|
+
nothing imports this one, so it never reached the published package. Every
|
|
10
|
+
consumer running `pikku db generate` then failed with "does not publish
|
|
11
|
+
.pikku/db/pikku-db-meta.gen.json" — an addon that cannot say whether it ships
|
|
12
|
+
tables — which took out the `ai-postgres`, `remote-rpc-pg` and
|
|
13
|
+
`workflows-pg-boss` templates.
|
|
14
|
+
- Updated dependencies [bbb9e3b]
|
|
15
|
+
- @pikku/core@0.12.106
|
|
16
|
+
|
|
17
|
+
## 0.12.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 32d1280: Prefix the better-auth plugin factories with `pikku`: `pikkuActor`, `pikkuBan`,
|
|
22
|
+
`pikkuFabric`, `pikkuDelegatedAuth` and `pikkuCredentialOAuth`.
|
|
23
|
+
|
|
24
|
+
A `betterAuth({ plugins: [...] })` array mixes this package's plugins with
|
|
25
|
+
better-auth's own, and until now nothing at the call site told them apart —
|
|
26
|
+
`plugins: [actor(...), ban(), fabric(...), organization()]` reads as four
|
|
27
|
+
plugins from one place when only the last is better-auth's. The prefix says
|
|
28
|
+
which package a plugin came from where it is actually wired.
|
|
29
|
+
|
|
30
|
+
The old names are still exported as deprecated aliases bound to the same
|
|
31
|
+
functions, so no import has to change. Nothing about the plugins themselves
|
|
32
|
+
moved: the `id` each registers under — `pikku-ban`, `actor`, `fabric`,
|
|
33
|
+
`delegated-auth`, `credential-oauth` — is unchanged, so no deployed database or
|
|
34
|
+
session is affected.
|
|
35
|
+
|
|
36
|
+
The pieces that read a plugin's _export_ name rather than its id accept both:
|
|
37
|
+
`PLUGIN_REGISTRY` is keyed under the prefixed and the bare name, and the
|
|
38
|
+
`pikku validate` ban/actor checks and the `scaffold.userAdmin` ban check count
|
|
39
|
+
either spelling as wired. Their messages now point at the new names.
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [32d1280]
|
|
42
|
+
- Updated dependencies [a0ed1e8]
|
|
43
|
+
- @pikku/better-auth@0.12.34
|
|
44
|
+
- @pikku/core@0.12.100
|
|
45
|
+
|
|
3
46
|
## 0.12.1
|
|
4
47
|
|
|
5
48
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -38,12 +38,12 @@ directory without granting the ability to ban anyone. Note the absence of
|
|
|
38
38
|
own, so declaring `admin` there would force the umbrella grant on every caller.
|
|
39
39
|
|
|
40
40
|
`admin:users:*` needs better-auth wired, and banning additionally needs its
|
|
41
|
-
`
|
|
41
|
+
`pikkuBan()` plugin from `@pikku/better-auth` for the columns to exist:
|
|
42
42
|
|
|
43
43
|
```ts
|
|
44
|
-
import {
|
|
44
|
+
import { pikkuBan } from '@pikku/better-auth'
|
|
45
45
|
|
|
46
|
-
betterAuth({ plugins: [
|
|
46
|
+
betterAuth({ plugins: [pikkuBan()] })
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
better-auth's own `admin()` plugin is neither needed nor wanted here. These
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAgent } from '@pikku/core/agent';
|
|
5
5
|
import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge } from '@pikku/core/agent-scorer';
|
|
@@ -21,9 +21,33 @@ type AgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined, O
|
|
|
21
21
|
agents?: AgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[];
|
|
22
22
|
workflows?: object[];
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Declares an agent: the model, the prompt, the tools it may call and the shape
|
|
26
|
+
* of what it returns. Wire it like any other function.
|
|
27
|
+
*
|
|
28
|
+
* @example snippet: aiAgent
|
|
29
|
+
*/
|
|
24
30
|
export declare const pikkuAgent: <InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(agent: AgentConfig<InputSchema, OutputSchema>) => AgentConfig<InputSchema, OutputSchema>;
|
|
31
|
+
/**
|
|
32
|
+
* Declares a scorer that grades an agent run programmatically — a function over
|
|
33
|
+
* the run's input and output returning a score.
|
|
34
|
+
*
|
|
35
|
+
* @example snippet: agentScorer
|
|
36
|
+
*/
|
|
25
37
|
export declare const pikkuAgentScorer: (config: Parameters<typeof corePikkuAgentScorer<Services>>[0]) => import("@pikku/core/agent-scorer").PikkuAgentScorer<Services>;
|
|
38
|
+
/**
|
|
39
|
+
* Declares a scorer that grades an agent run with another model, for the
|
|
40
|
+
* qualities a programmatic check cannot express.
|
|
41
|
+
*
|
|
42
|
+
* @example snippet: agentJudge
|
|
43
|
+
*/
|
|
26
44
|
export declare const pikkuAgentJudge: (config: Parameters<typeof corePikkuAgentJudge<Services>>[0]) => import("@pikku/core/agent-scorer").PikkuAgentScorer<Services>;
|
|
45
|
+
/**
|
|
46
|
+
* A ready-made function that runs the named agent once and returns its result —
|
|
47
|
+
* wire it straight to a route when you need no logic around the run.
|
|
48
|
+
*
|
|
49
|
+
* @example snippet: aiAgentInvoke
|
|
50
|
+
*/
|
|
27
51
|
export declare const agent: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<AgentInput, {
|
|
28
52
|
runId: string;
|
|
29
53
|
result: AgentMap[Name]["output"];
|
|
@@ -32,17 +56,34 @@ export declare const agent: <Name extends keyof AgentMap>(agentName: Name) => Pi
|
|
|
32
56
|
outputTokens: number;
|
|
33
57
|
};
|
|
34
58
|
}, "session" | "rpc">;
|
|
59
|
+
/**
|
|
60
|
+
* The streaming counterpart of `agent`: wire it to a channel to send tokens and
|
|
61
|
+
* tool calls as they happen instead of waiting for the run to finish.
|
|
62
|
+
*
|
|
63
|
+
* @example snippet: aiAgentStream
|
|
64
|
+
*/
|
|
35
65
|
export declare const agentStream: <Name extends keyof AgentMap>(agentName?: Name | undefined) => PikkuFunctionConfig<{
|
|
36
66
|
agentName?: string;
|
|
37
67
|
message: string;
|
|
38
68
|
threadId: string;
|
|
39
69
|
resourceId: string;
|
|
40
70
|
}, void, "session" | "rpc">;
|
|
71
|
+
/**
|
|
72
|
+
* A ready-made function that answers one pending tool approval, letting a run
|
|
73
|
+
* that paused for a human carry on.
|
|
74
|
+
*
|
|
75
|
+
* @example snippet: agentApproval
|
|
76
|
+
*/
|
|
41
77
|
export declare const agentResume: () => PikkuFunctionConfig<{
|
|
42
78
|
runId: string;
|
|
43
79
|
toolCallId: string;
|
|
44
80
|
approved: boolean;
|
|
45
81
|
}, void, "session" | "rpc">;
|
|
82
|
+
/**
|
|
83
|
+
* A ready-made function that answers every pending approval for a run at once.
|
|
84
|
+
*
|
|
85
|
+
* @example snippet: agentApproval
|
|
86
|
+
*/
|
|
46
87
|
export declare const agentApprove: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<{
|
|
47
88
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reAgentApprove, } from '@pikku/core/agent';
|
|
2
2
|
import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge, } from '@pikku/core/agent-scorer';
|
|
3
|
+
/**
|
|
4
|
+
* Declares an agent: the model, the prompt, the tools it may call and the shape
|
|
5
|
+
* of what it returns. Wire it like any other function.
|
|
6
|
+
*
|
|
7
|
+
* @example snippet: aiAgent
|
|
8
|
+
*/
|
|
3
9
|
export const pikkuAgent = (agent) => {
|
|
4
10
|
return agent;
|
|
5
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Declares a scorer that grades an agent run programmatically — a function over
|
|
14
|
+
* the run's input and output returning a score.
|
|
15
|
+
*
|
|
16
|
+
* @example snippet: agentScorer
|
|
17
|
+
*/
|
|
6
18
|
export const pikkuAgentScorer = (config) => corePikkuAgentScorer(config);
|
|
19
|
+
/**
|
|
20
|
+
* Declares a scorer that grades an agent run with another model, for the
|
|
21
|
+
* qualities a programmatic check cannot express.
|
|
22
|
+
*
|
|
23
|
+
* @example snippet: agentJudge
|
|
24
|
+
*/
|
|
7
25
|
export const pikkuAgentJudge = (config) => corePikkuAgentJudge(config);
|
|
26
|
+
/**
|
|
27
|
+
* A ready-made function that runs the named agent once and returns its result —
|
|
28
|
+
* wire it straight to a route when you need no logic around the run.
|
|
29
|
+
*
|
|
30
|
+
* @example snippet: aiAgentInvoke
|
|
31
|
+
*/
|
|
8
32
|
export const agent = (agentName) => {
|
|
9
33
|
return coreAgent(agentName);
|
|
10
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* The streaming counterpart of `agent`: wire it to a channel to send tokens and
|
|
37
|
+
* tool calls as they happen instead of waiting for the run to finish.
|
|
38
|
+
*
|
|
39
|
+
* @example snippet: aiAgentStream
|
|
40
|
+
*/
|
|
11
41
|
export const agentStream = (agentName) => {
|
|
12
42
|
return coreAgentStream(agentName);
|
|
13
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* A ready-made function that answers one pending tool approval, letting a run
|
|
46
|
+
* that paused for a human carry on.
|
|
47
|
+
*
|
|
48
|
+
* @example snippet: agentApproval
|
|
49
|
+
*/
|
|
14
50
|
export const agentResume = () => {
|
|
15
51
|
return coreAgentResume();
|
|
16
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* A ready-made function that answers every pending approval for a run at once.
|
|
55
|
+
*
|
|
56
|
+
* @example snippet: agentApproval
|
|
57
|
+
*/
|
|
17
58
|
export const agentApprove = (agentName) => {
|
|
18
59
|
return coreAgentApprove(agentName);
|
|
19
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,eAAe,IAAI,mBAAmB,GACvC,MAAM,0BAA0B,CAAA;AAsBjC,MAAM,CAAC,MAAM,UAAU,GAAG,CAIxB,KAA6C,EAC7C,EAAE;IACF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,MAA4D,EAC5D,EAAE,CAAC,oBAAoB,CAAW,MAAM,CAAC,CAAA;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,MAA2D,EAC3D,EAAE,CAAC,mBAAmB,CAAW,MAAM,CAAC,CAAA;AAI1C,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,SAAe,EACf,EAAE;IACF,OAAO,SAAS,CAAW,SAAoC,CAI9D,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,SAAgB,EAChB,EAAE;IACF,OAAO,eAAe,CAAW,SAAoC,CAIpE,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,OAAO,eAAe,EAIrB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,SAAe,EACf,EAAE;IACF,OAAO,gBAAgB,CAAW,SAAoC,CAIrE,CAAA;AACH,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,eAAe,IAAI,mBAAmB,GACvC,MAAM,0BAA0B,CAAA;AAsBjC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAIxB,KAA6C,EAC7C,EAAE;IACF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,MAA4D,EAC5D,EAAE,CAAC,oBAAoB,CAAW,MAAM,CAAC,CAAA;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,MAA2D,EAC3D,EAAE,CAAC,mBAAmB,CAAW,MAAM,CAAC,CAAA;AAI1C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,SAAe,EACf,EAAE;IACF,OAAO,SAAS,CAAW,SAAoC,CAI9D,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,SAAgB,EAChB,EAAE;IACF,OAAO,eAAe,CAAW,SAAoC,CAIpE,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,OAAO,eAAe,EAIrB,CAAA;AACH,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,SAAe,EACf,EAAE;IACF,OAAO,gBAAgB,CAAW,SAAoC,CAIrE,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Permission, auth gate and credential definitions
|
|
6
6
|
*/
|
|
7
7
|
import type { PikkuWire, SecretlessServices } from '@pikku/core/types';
|
|
8
8
|
import type { CorePermissionGroup, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function';
|
|
9
|
-
import type { Services, Session, SingletonServices, WiredServices
|
|
9
|
+
import type { Services, Session, SingletonServices, WiredServices } from '../function/pikku-function-types.gen.js';
|
|
10
|
+
import type { RequiredSingletonServices } from '../pikku-services.gen.js';
|
|
10
11
|
export { defineCredential } from '@pikku/core/credential';
|
|
12
|
+
/**
|
|
13
|
+
* Derived here rather than imported: nothing outside a generated leaf ever
|
|
14
|
+
* names this intersection, so the function leaf keeps it to itself and the
|
|
15
|
+
* leaves that want it spell it out.
|
|
16
|
+
*/
|
|
17
|
+
type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
|
|
11
18
|
/** `WiredSingletonServices` without `secrets`, for auth gates. */
|
|
12
19
|
type WiredAuthServices = SecretlessServices<WiredSingletonServices>;
|
|
13
20
|
/**
|
|
@@ -33,24 +40,7 @@ type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServ
|
|
|
33
40
|
* Factory function for creating permissions with tree-shaking support.
|
|
34
41
|
* Supports both direct function and configuration object syntax.
|
|
35
42
|
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* // Direct function syntax
|
|
39
|
-
* const permission = pikkuPermission(async ({ logger }, data, { session }) => {
|
|
40
|
-
* const session = await session?.get()
|
|
41
|
-
* return session?.role === 'admin'
|
|
42
|
-
* })
|
|
43
|
-
*
|
|
44
|
-
* // Configuration object syntax with metadata
|
|
45
|
-
* const adminPermission = pikkuPermission({
|
|
46
|
-
* name: 'Admin Permission',
|
|
47
|
-
* description: 'Checks if user has admin role',
|
|
48
|
-
* func: async ({ logger }, data, { session }) => {
|
|
49
|
-
* const session = await session?.get()
|
|
50
|
-
* return session?.role === 'admin'
|
|
51
|
-
* }
|
|
52
|
-
* })
|
|
53
|
-
* ```
|
|
43
|
+
* @example snippet: permissionFunction
|
|
54
44
|
*/
|
|
55
45
|
export declare const pikkuPermission: <In>(permission: PikkuPermission<In> | PikkuPermissionConfig<In>) => PikkuPermission<In>;
|
|
56
46
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-auth-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/auth/pikku-auth-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EACV,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,
|
|
1
|
+
{"version":3,"file":"pikku-auth-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/auth/pikku-auth-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACpB,MAAM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A;AAE7I;;GAEG;AACH,KAAK,eAAe,CAAC,gBAAgB,SAAS,kBAAkB,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,IAAI,mBAAmB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAA;AAEzJ;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,SAAS,GAAI,gBAAgB,SAAS,kBAAkB,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,EAC1G,MAAM,SAAS,CAAC,gBAAgB,CAAC,GAAG,eAAe,CAAC,gBAAgB,CAAC,KACpE,eAAe,CAAC,GAAG,EAAE,GAAG,CAE1B,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,GAAI,EAAE,GAAG,GAAG,EAC7C,SAAS,CAAC,KAAK,EAAE,EAAE,KAAK,eAAe,CAAC,GAAG,CAAC,KAC3C,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,eAAe,CAAC,GAAG,CAAC,CAEtC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,EAAE,GAAG,OAAO,EAAE,aAAa,mBAAmB,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,eAAe,CAAC,EAAE,CAAC,EAAE,SAE9H,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Permission, auth gate and credential definitions
|
|
@@ -11,24 +11,7 @@ export { defineCredential } from '@pikku/core/credential';
|
|
|
11
11
|
* Factory function for creating permissions with tree-shaking support.
|
|
12
12
|
* Supports both direct function and configuration object syntax.
|
|
13
13
|
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* // Direct function syntax
|
|
17
|
-
* const permission = pikkuPermission(async ({ logger }, data, { session }) => {
|
|
18
|
-
* const session = await session?.get()
|
|
19
|
-
* return session?.role === 'admin'
|
|
20
|
-
* })
|
|
21
|
-
*
|
|
22
|
-
* // Configuration object syntax with metadata
|
|
23
|
-
* const adminPermission = pikkuPermission({
|
|
24
|
-
* name: 'Admin Permission',
|
|
25
|
-
* description: 'Checks if user has admin role',
|
|
26
|
-
* func: async ({ logger }, data, { session }) => {
|
|
27
|
-
* const session = await session?.get()
|
|
28
|
-
* return session?.role === 'admin'
|
|
29
|
-
* }
|
|
30
|
-
* })
|
|
31
|
-
* ```
|
|
14
|
+
* @example snippet: permissionFunction
|
|
32
15
|
*/
|
|
33
16
|
export const pikkuPermission = (permission) => {
|
|
34
17
|
return typeof permission === 'function' ? permission : permission.func;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-auth-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/auth/pikku-auth-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AASH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AASvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-auth-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/auth/pikku-auth-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AASH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AASvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAiCzD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,UAA2D,EACtC,EAAE;IACvB,OAAO,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAA;AACxE,CAAC,CAAA;AAgBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,IAAqE,EAC1C,EAAE;IAC7B,OAAO,aAAa,CAAC,IAAW,CAAQ,CAAA;AAC1C,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,OAA4C,EACL,EAAE;IACzC,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAe,WAA6E,EAAE,EAAE;IACjI,uBAAuB,CAAC,WAAkB,EAAE,oBAAoB,CAAC,CAAA;AACnE,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Channel-specific type definitions for tree-shaking optimization
|
|
@@ -20,6 +20,8 @@ type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Outp
|
|
|
20
20
|
* @template Out - Output type for connection response
|
|
21
21
|
* @param func - Function definition, either direct function or configuration object
|
|
22
22
|
* @returns The normalized configuration object
|
|
23
|
+
*
|
|
24
|
+
* @example snippet: channelLifecycle
|
|
23
25
|
*/
|
|
24
26
|
export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunctionSessionless<void, Out, "channel" | "session" | "rpc"> | PikkuFunctionConfig<void, Out, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, Out, "channel" | "rpc" | "session">;
|
|
25
27
|
/**
|
|
@@ -28,6 +30,8 @@ export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunc
|
|
|
28
30
|
*
|
|
29
31
|
* @param func - Function definition, either direct function or configuration object
|
|
30
32
|
* @returns The normalized configuration object
|
|
33
|
+
*
|
|
34
|
+
* @example snippet: channelLifecycle
|
|
31
35
|
*/
|
|
32
36
|
export declare const pikkuChannelDisconnectionFunc: (func: PikkuFunctionSessionless<void, void, "channel"> | PikkuFunctionConfig<void, void, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, void, "channel" | "rpc" | "session">;
|
|
33
37
|
/**
|
|
@@ -58,23 +62,7 @@ type PikkuChannelFuncConfigWithSchema<InputSchema extends StandardSchemaV1, Outp
|
|
|
58
62
|
* @param func - Function definition, either direct function or configuration object
|
|
59
63
|
* @returns The normalized configuration object
|
|
60
64
|
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```typescript
|
|
63
|
-
* // Pattern 1: Using generic types
|
|
64
|
-
* const handleMessage = pikkuChannelFunc<{text: string}, {received: boolean}>({
|
|
65
|
-
* func: async (_services, { text }) => ({ received: true })
|
|
66
|
-
* })
|
|
67
|
-
*
|
|
68
|
-
* // Pattern 2: Using Zod schemas
|
|
69
|
-
* const messageInput = z.object({ text: z.string() })
|
|
70
|
-
* const messageOutput = z.object({ received: z.boolean() })
|
|
71
|
-
*
|
|
72
|
-
* const handleMessage = pikkuChannelFunc({
|
|
73
|
-
* input: messageInput,
|
|
74
|
-
* output: messageOutput,
|
|
75
|
-
* func: async (_services, { text }) => ({ received: true })
|
|
76
|
-
* })
|
|
77
|
-
* ```
|
|
65
|
+
* @example snippet: orderStatusChannel
|
|
78
66
|
*/
|
|
79
67
|
export declare function pikkuChannelFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuChannelFuncConfigWithSchema<InputSchema, OutputSchema>): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'channel' | 'session' | 'rpc'>;
|
|
80
68
|
export declare function pikkuChannelFunc<In, Out = unknown>(func: PikkuFunctionSessionless<In, Out, 'channel' | 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'channel' | 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'channel' | 'session' | 'rpc'>;
|
|
@@ -85,6 +73,8 @@ export declare function pikkuChannelFunc<In, Out = unknown>(func: PikkuFunctionS
|
|
|
85
73
|
* @template T - Record of channel route handlers
|
|
86
74
|
* @param routes - The channel routes record
|
|
87
75
|
* @returns The same routes record (identity function for type safety)
|
|
76
|
+
*
|
|
77
|
+
* @example snippet: channelRoutes
|
|
88
78
|
*/
|
|
89
79
|
export declare function defineChannelRoutes<T extends Record<string, any>>(routes: T): T;
|
|
90
80
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-channel-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/channel/pikku-channel-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAA;AAC5G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D;;GAEG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,MAAM,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK,CAAA;AAI1F
|
|
1
|
+
{"version":3,"file":"pikku-channel-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/channel/pikku-channel-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAA;AAC5G,OAA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/**
|
|
5
5
|
* Channel-specific type definitions for tree-shaking optimization
|
|
@@ -12,6 +12,8 @@ import { defineChannelRoutes as defineChannelRoutesCore } from '@pikku/core/chan
|
|
|
12
12
|
* @template Out - Output type for connection response
|
|
13
13
|
* @param func - Function definition, either direct function or configuration object
|
|
14
14
|
* @returns The normalized configuration object
|
|
15
|
+
*
|
|
16
|
+
* @example snippet: channelLifecycle
|
|
15
17
|
*/
|
|
16
18
|
export const pikkuChannelConnectionFunc = (func) => {
|
|
17
19
|
return typeof func === 'function' ? { func } : func;
|
|
@@ -22,6 +24,8 @@ export const pikkuChannelConnectionFunc = (func) => {
|
|
|
22
24
|
*
|
|
23
25
|
* @param func - Function definition, either direct function or configuration object
|
|
24
26
|
* @returns The normalized configuration object
|
|
27
|
+
*
|
|
28
|
+
* @example snippet: channelLifecycle
|
|
25
29
|
*/
|
|
26
30
|
export const pikkuChannelDisconnectionFunc = (func) => {
|
|
27
31
|
return typeof func === 'function' ? { func } : func;
|
|
@@ -36,6 +40,8 @@ export function pikkuChannelFunc(func) {
|
|
|
36
40
|
* @template T - Record of channel route handlers
|
|
37
41
|
* @param routes - The channel routes record
|
|
38
42
|
* @returns The same routes record (identity function for type safety)
|
|
43
|
+
*
|
|
44
|
+
* @example snippet: channelRoutes
|
|
39
45
|
*/
|
|
40
46
|
export function defineChannelRoutes(routes) {
|
|
41
47
|
return defineChannelRoutesCore(routes);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-channel-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/channel/pikku-channel-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAcpF
|
|
1
|
+
{"version":3,"file":"pikku-channel-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/channel/pikku-channel-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAcpF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,IAEiE,EACjE,EAAE;IACF,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,IAEkE,EAClE,EAAE;IACF,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC,CAAA;AAmDD,MAAM,UAAU,gBAAgB,CAAC,IAAS;IACxC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAGD;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAgC,MAAS;IAC1E,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAA;AACxC,CAAC"}
|