@pikku/addon-admin 0.12.2 → 0.12.4
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 +42 -0
- package/dist/.pikku/addon/agent/index.d.ts +1 -1
- package/dist/.pikku/addon/agent/index.js +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +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 +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +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 +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +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 +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +67 -2
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +53 -2
- package/dist/.pikku/addon/function/pikku-functions.gen.js +5 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.js.map +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 +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +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 +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +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 +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +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 +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +12 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +12 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +10 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.json +2 -0
- 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.js +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 +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 +7 -1
- package/dist/.pikku/addon/schemas/register.gen.js.map +1 -1
- package/dist/.pikku/addon/schemas/schemas/CreateUserInput.schema.json +1 -1
- package/dist/.pikku/addon/schemas/schemas/PingOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/SendSignInLinkInput.schema.json +1 -0
- 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 +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +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 +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +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 +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +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 +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +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/create-user.function.d.ts +3 -3
- package/dist/src/functions/ping.function.d.ts +25 -0
- package/dist/src/functions/ping.function.d.ts.map +1 -0
- package/dist/src/functions/ping.function.js +27 -0
- package/dist/src/functions/ping.function.js.map +1 -0
- package/dist/src/functions/send-sign-in-link.function.d.ts +17 -0
- package/dist/src/functions/send-sign-in-link.function.d.ts.map +1 -0
- package/dist/src/functions/send-sign-in-link.function.js +21 -0
- package/dist/src/functions/send-sign-in-link.function.js.map +1 -0
- package/dist/src/lib/user.schemas.d.ts +16 -1
- package/dist/src/lib/user.schemas.d.ts.map +1 -1
- package/dist/src/lib/user.schemas.js +16 -1
- package/dist/src/lib/user.schemas.js.map +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/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/dist/.pikku/{schemas/schemas/RemoveUserOutput.schema.json → addon/schemas/schemas/SendSignInLinkOutput.schema.json} +0 -0
|
@@ -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.143
|
|
3
3
|
*/
|
|
4
4
|
import { WorkflowCancelledException } from '@pikku/core/workflow';
|
|
5
5
|
import type { PikkuWorkflowGraphConfig, PikkuWorkflowGraphResult } from '@pikku/core/workflow';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export declare const createUser: import("#pikku/addon/function").PikkuFunctionConfig<{
|
|
2
2
|
email: string;
|
|
3
|
-
password
|
|
3
|
+
password?: string | undefined;
|
|
4
4
|
name?: string | undefined;
|
|
5
5
|
}, {
|
|
6
6
|
userId: string;
|
|
7
7
|
}, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
|
|
8
8
|
email: string;
|
|
9
|
-
password
|
|
9
|
+
password?: string | undefined;
|
|
10
10
|
name?: string | undefined;
|
|
11
11
|
}, {
|
|
12
12
|
userId: string;
|
|
13
13
|
}, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
|
|
14
14
|
email: string;
|
|
15
|
-
password
|
|
15
|
+
password?: string | undefined;
|
|
16
16
|
name?: string | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
userId: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Answers "am I wired?" and nothing else.
|
|
3
|
+
*
|
|
4
|
+
* The console UI ships with screens for users, roles and scopes, credentials
|
|
5
|
+
* and the audit trail, but the app serving it may never have wired this addon.
|
|
6
|
+
* Those screens probe for this function so they can say the addon is not
|
|
7
|
+
* enabled, instead of failing one request at a time.
|
|
8
|
+
*
|
|
9
|
+
* The probe discriminates on `RPCNotFoundError` (404), not on success: name
|
|
10
|
+
* resolution runs before the session check, so an unwired addon 404s even for
|
|
11
|
+
* an anonymous caller, while a wired one answers 200 — or 401/403 if the host
|
|
12
|
+
* gated it with `wireAddon({ auth: true })` or the caller lacks a role. Every
|
|
13
|
+
* one of those means *wired*, which is the only thing the screens need to know.
|
|
14
|
+
*
|
|
15
|
+
* It carries no scopes for the same reason: narrowing who may learn a fact the
|
|
16
|
+
* served UI already implies would only turn a clear answer into a 403.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ping: import("#pikku/addon/function").PikkuFunctionConfig<null, {
|
|
19
|
+
pong: true;
|
|
20
|
+
}, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<null, {
|
|
21
|
+
pong: true;
|
|
22
|
+
}, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<null, {
|
|
23
|
+
pong: true;
|
|
24
|
+
}, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
|
|
25
|
+
//# sourceMappingURL=ping.function.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ping.function.d.ts","sourceRoot":"","sources":["../../../src/functions/ping.function.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,IAAI;UAA2B,IAAI;;UAAJ,IAAI;;UAAJ,IAAI;oGAQ9C,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { pikkuFunc } from '#pikku/addon/function';
|
|
2
|
+
/**
|
|
3
|
+
* Answers "am I wired?" and nothing else.
|
|
4
|
+
*
|
|
5
|
+
* The console UI ships with screens for users, roles and scopes, credentials
|
|
6
|
+
* and the audit trail, but the app serving it may never have wired this addon.
|
|
7
|
+
* Those screens probe for this function so they can say the addon is not
|
|
8
|
+
* enabled, instead of failing one request at a time.
|
|
9
|
+
*
|
|
10
|
+
* The probe discriminates on `RPCNotFoundError` (404), not on success: name
|
|
11
|
+
* resolution runs before the session check, so an unwired addon 404s even for
|
|
12
|
+
* an anonymous caller, while a wired one answers 200 — or 401/403 if the host
|
|
13
|
+
* gated it with `wireAddon({ auth: true })` or the caller lacks a role. Every
|
|
14
|
+
* one of those means *wired*, which is the only thing the screens need to know.
|
|
15
|
+
*
|
|
16
|
+
* It carries no scopes for the same reason: narrowing who may learn a fact the
|
|
17
|
+
* served UI already implies would only turn a clear answer into a 403.
|
|
18
|
+
*/
|
|
19
|
+
export const ping = pikkuFunc({
|
|
20
|
+
title: 'Ping',
|
|
21
|
+
description: 'Health check for the Pikku Admin addon. The console UI probes it to tell "addon not installed" apart from a real failure.',
|
|
22
|
+
expose: true,
|
|
23
|
+
func: async () => {
|
|
24
|
+
return { pong: true };
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=ping.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ping.function.js","sourceRoot":"","sources":["../../../src/functions/ping.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,SAAS,CAAuB;IAClD,KAAK,EAAE,MAAM;IACb,WAAW,EACT,2HAA2H;IAC7H,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,IAAI,EAAE;QACf,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;IACvB,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const sendSignInLink: import("#pikku/addon/function").PikkuFunctionConfig<{
|
|
2
|
+
email: string;
|
|
3
|
+
callbackURL?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
success: boolean;
|
|
6
|
+
}, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
|
|
7
|
+
email: string;
|
|
8
|
+
callbackURL?: string | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
success: boolean;
|
|
11
|
+
}, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
|
|
12
|
+
email: string;
|
|
13
|
+
callbackURL?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
success: boolean;
|
|
16
|
+
}, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
|
|
17
|
+
//# sourceMappingURL=send-sign-in-link.function.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-sign-in-link.function.d.ts","sourceRoot":"","sources":["../../../src/functions/send-sign-in-link.function.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;oGAiBzB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { pikkuFunc } from '#pikku/addon/function';
|
|
2
|
+
import { sendAuthUserSignInLink } from '@pikku/better-auth';
|
|
3
|
+
import { SendSignInLinkInput, Success } from '../lib/user.schemas.js';
|
|
4
|
+
export const sendSignInLink = pikkuFunc({
|
|
5
|
+
title: 'Send Sign-In Link',
|
|
6
|
+
description: 'Mails a user a magic link they can sign in with. With magicLink({ disableSignUp: true }) a link only admits an email that already has a user row, which makes this the invitation for an account created without a password. Requires the magicLink plugin.',
|
|
7
|
+
expose: true,
|
|
8
|
+
// `admin:users:create` rather than a scope of its own: the link is the second
|
|
9
|
+
// half of provisioning an account out of band, and it is strictly weaker than
|
|
10
|
+
// `admin:users:password` — it goes to the user's own inbox, so it hands the
|
|
11
|
+
// caller nothing. A separate leaf would also have to be mirrored byte-for-byte
|
|
12
|
+
// in `@pikku/better-auth`'s tree, making an addon bump un-upgradable on its own.
|
|
13
|
+
scopes: ['admin:users:create'],
|
|
14
|
+
input: SendSignInLinkInput,
|
|
15
|
+
output: Success,
|
|
16
|
+
func: async ({ auth }, { email, callbackURL }) => {
|
|
17
|
+
await sendAuthUserSignInLink(auth, { email, callbackURL });
|
|
18
|
+
return { success: true };
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=send-sign-in-link.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-sign-in-link.function.js","sourceRoot":"","sources":["../../../src/functions/send-sign-in-link.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAErE,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC;IACtC,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,6PAA6P;IAC/P,MAAM,EAAE,IAAI;IACZ,8EAA8E;IAC9E,8EAA8E;IAC9E,4EAA4E;IAC5E,+EAA+E;IAC/E,iFAAiF;IACjF,MAAM,EAAE,CAAC,oBAAoB,CAAC;IAC9B,KAAK,EAAE,mBAAmB;IAC1B,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE;QAC/C,MAAM,sBAAsB,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAA;QAC1D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -31,9 +31,15 @@ export declare const ListUsersOutput: z.ZodObject<{
|
|
|
31
31
|
banExpires: z.ZodOptional<z.ZodString>;
|
|
32
32
|
}, z.core.$strip>>;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
|
+
/**
|
|
35
|
+
* A password is optional: an account created without one has no credential
|
|
36
|
+
* row, so it cannot be signed into until `setUserPassword` gives it one — the
|
|
37
|
+
* provisioning half of an invite, for an app that mails its own link or signs
|
|
38
|
+
* users in through a social provider.
|
|
39
|
+
*/
|
|
34
40
|
export declare const CreateUserInput: z.ZodObject<{
|
|
35
41
|
email: z.ZodString;
|
|
36
|
-
password: z.ZodString
|
|
42
|
+
password: z.ZodOptional<z.ZodString>;
|
|
37
43
|
name: z.ZodOptional<z.ZodString>;
|
|
38
44
|
}, z.core.$strip>;
|
|
39
45
|
export declare const CreateUserOutput: z.ZodObject<{
|
|
@@ -53,6 +59,15 @@ export declare const SetUserPasswordInput: z.ZodObject<{
|
|
|
53
59
|
userId: z.ZodString;
|
|
54
60
|
newPassword: z.ZodString;
|
|
55
61
|
}, z.core.$strip>;
|
|
62
|
+
/**
|
|
63
|
+
* An invite is addressed by email rather than by id: the link is mailed to an
|
|
64
|
+
* address, and the plugin resolves the user from it. `callbackURL` is where the
|
|
65
|
+
* app wants the accepted invite to land.
|
|
66
|
+
*/
|
|
67
|
+
export declare const SendSignInLinkInput: z.ZodObject<{
|
|
68
|
+
email: z.ZodString;
|
|
69
|
+
callbackURL: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
56
71
|
export declare const Success: z.ZodObject<{
|
|
57
72
|
success: z.ZodBoolean;
|
|
58
73
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schemas.d.ts","sourceRoot":"","sources":["../../../src/lib/user.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;iBASf,CAAA;AAEF,eAAO,MAAM,cAAc;;;iBAGzB,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;iBAE1B,CAAA;AAEF,eAAO,MAAM,eAAe;;;;iBAI1B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;iBAE3B,CAAA;AAEF,0CAA0C;AAC1C,eAAO,MAAM,OAAO;;iBAElB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAA;AAEF,eAAO,MAAM,OAAO;;iBAElB,CAAA"}
|
|
1
|
+
{"version":3,"file":"user.schemas.d.ts","sourceRoot":"","sources":["../../../src/lib/user.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;iBASf,CAAA;AAEF,eAAO,MAAM,cAAc;;;iBAGzB,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;iBAE1B,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;iBAI1B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;iBAE3B,CAAA;AAEF,0CAA0C;AAC1C,eAAO,MAAM,OAAO;;iBAElB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAA;AAEF,eAAO,MAAM,OAAO;;iBAElB,CAAA"}
|
|
@@ -22,9 +22,15 @@ export const ListUsersInput = z.object({
|
|
|
22
22
|
export const ListUsersOutput = z.object({
|
|
23
23
|
users: z.array(User),
|
|
24
24
|
});
|
|
25
|
+
/**
|
|
26
|
+
* A password is optional: an account created without one has no credential
|
|
27
|
+
* row, so it cannot be signed into until `setUserPassword` gives it one — the
|
|
28
|
+
* provisioning half of an invite, for an app that mails its own link or signs
|
|
29
|
+
* users in through a social provider.
|
|
30
|
+
*/
|
|
25
31
|
export const CreateUserInput = z.object({
|
|
26
32
|
email: z.string(),
|
|
27
|
-
password: z.string(),
|
|
33
|
+
password: z.string().optional(),
|
|
28
34
|
name: z.string().optional(),
|
|
29
35
|
});
|
|
30
36
|
export const CreateUserOutput = z.object({
|
|
@@ -44,6 +50,15 @@ export const SetUserPasswordInput = z.object({
|
|
|
44
50
|
userId: z.string(),
|
|
45
51
|
newPassword: z.string(),
|
|
46
52
|
});
|
|
53
|
+
/**
|
|
54
|
+
* An invite is addressed by email rather than by id: the link is mailed to an
|
|
55
|
+
* address, and the plugin resolves the user from it. `callbackURL` is where the
|
|
56
|
+
* app wants the accepted invite to land.
|
|
57
|
+
*/
|
|
58
|
+
export const SendSignInLinkInput = z.object({
|
|
59
|
+
email: z.string(),
|
|
60
|
+
callbackURL: z.string().optional(),
|
|
61
|
+
});
|
|
47
62
|
export const Success = z.object({
|
|
48
63
|
success: z.boolean(),
|
|
49
64
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schemas.js","sourceRoot":"","sources":["../../../src/lib/user.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC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A0C;AAC1C,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAA"}
|
package/dist/src/scopes.js
CHANGED
|
@@ -12,8 +12,7 @@ import { defineScope } from '#pikku/addon/scopes';
|
|
|
12
12
|
* make every leaf below pointless. Each function carries its own.
|
|
13
13
|
*
|
|
14
14
|
* pikku requires every declaration of a shared scope root to be identical, so
|
|
15
|
-
* this must stay byte-identical to `ADMIN_SCOPE_TREE` in `@pikku/better-auth
|
|
16
|
-
* and to the copy the `scaffold.userAdmin` generator emits.
|
|
15
|
+
* this must stay byte-identical to `ADMIN_SCOPE_TREE` in `@pikku/better-auth`.
|
|
17
16
|
*/
|
|
18
17
|
defineScope({
|
|
19
18
|
admin: {
|
package/dist/src/scopes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../src/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD
|
|
1
|
+
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../src/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD;;;;;;;;;;;;;;GAcG;AACH,WAAW,CAAC;IACV,KAAK,EAAE;QACL,WAAW,EAAE,gBAAgB;QAC7B,WAAW,EAAE,qDAAqD;QAClE,MAAM,EAAE;YACN,WAAW,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE;YACnD,WAAW,EAAE;gBACX,WAAW,EAAE,8BAA8B;gBAC3C,MAAM,EAAE;oBACN,IAAI,EAAE,EAAE,WAAW,EAAE,yCAAyC,EAAE;oBAChE,IAAI,EAAE,EAAE,WAAW,EAAE,2CAA2C,EAAE;oBAClE,MAAM,EAAE,EAAE,WAAW,EAAE,4BAA4B,EAAE;iBACtD;aACF;YACD,KAAK,EAAE;gBACL,WAAW,EAAE,oBAAoB;gBACjC,MAAM,EAAE;oBACN,IAAI,EAAE,EAAE,WAAW,EAAE,uBAAuB,EAAE;oBAC9C,MAAM,EAAE,EAAE,WAAW,EAAE,0BAA0B,EAAE;oBACnD,GAAG,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE;oBAC3C,MAAM,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAE;oBAC1D,QAAQ,EAAE,EAAE,WAAW,EAAE,0BAA0B,EAAE;oBACrD,QAAQ,EAAE,EAAE,WAAW,EAAE,uBAAuB,EAAE;iBACnD;aACF;YACD,MAAM,EAAE;gBACN,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE;oBACN,IAAI,EAAE;wBACJ,WAAW,EAAE,iDAAiD;qBAC/D;oBACD,MAAM,EAAE;wBACN,WAAW,EACT,wEAAwE;qBAC3E;iBACF;aACF;YACD,KAAK,EAAE;gBACL,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE;oBACN,IAAI,EAAE;wBACJ,WAAW,EACT,sEAAsE;qBACzE;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/addon-admin",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"description": "Admin addon for Pikku — the user directory, roles and scopes, credentials and the audit trail, as ordinary RPCs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "pikku all && tsc && (cp .pikku/addon/rpc/*.d.ts dist/.pikku/addon/rpc/ 2>/dev/null || true) && (cp .pikku/addon/agent/*.d.ts dist/.pikku/addon/agent/ 2>/dev/null || true) && (cp .pikku/addon/workflow/*.d.ts dist/.pikku/addon/workflow/ 2>/dev/null || true) && (mkdir -p dist/.pikku/addon/function && cp .pikku/addon/function/*-verbose.gen.json dist/.pikku/addon/function/ 2>/dev/null || true) && (mkdir -p dist/types && cp types/*.d.ts dist/types/)",
|
|
22
|
+
"build": "pikku all && tsc && (cp .pikku/addon/rpc/*.d.ts dist/.pikku/addon/rpc/ 2>/dev/null || true) && (cp .pikku/addon/agent/*.d.ts dist/.pikku/addon/agent/ 2>/dev/null || true) && (cp .pikku/addon/workflow/*.d.ts dist/.pikku/addon/workflow/ 2>/dev/null || true) && (mkdir -p dist/.pikku/addon/function && cp .pikku/addon/function/*-verbose.gen.json dist/.pikku/addon/function/ 2>/dev/null || true) && (mkdir -p dist/types && cp types/*.d.ts dist/types/) && (mkdir -p dist/.pikku/addon/db && cp .pikku/addon/db/pikku-db-meta.gen.json dist/.pikku/addon/db/)",
|
|
23
23
|
"pikku": "pikku all",
|
|
24
24
|
"ncu": "npx npm-check-updates",
|
|
25
25
|
"pretest": "pikku all",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"test:coverage": "bash run-tests.sh --coverage"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@pikku/better-auth": "^0.12.
|
|
31
|
-
"@pikku/core": "^0.12.
|
|
30
|
+
"@pikku/better-auth": "^0.12.39",
|
|
31
|
+
"@pikku/core": "^0.12.106",
|
|
32
32
|
"zod": "^4"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@pikku/better-auth": "^0.12.
|
|
41
|
-
"@pikku/cli": "^0.12.
|
|
40
|
+
"@pikku/better-auth": "^0.12.39",
|
|
41
|
+
"@pikku/cli": "^0.12.141",
|
|
42
42
|
"@pikku/core": "*",
|
|
43
43
|
"typescript": "^6.0.3",
|
|
44
44
|
"zod": "^4"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.pikku/addon/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../.pikku/addon/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.105
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Addon package types for pikkuAddonConfig and pikkuAddonServices
|
|
6
|
-
*/
|
|
7
|
-
import type { CreateConfig } from '@pikku/core/types';
|
|
8
|
-
import type { PikkuWire } from '@pikku/core/types';
|
|
9
|
-
import type { SingletonServices } from '../../types/application-types.d.js';
|
|
10
|
-
import type { Config } from '../../types/application-types.d.js';
|
|
11
|
-
import type { RequiredSingletonServices } from '../pikku-services.gen.js';
|
|
12
|
-
import { TypedSecretService } from '../secrets/pikku-secrets.gen.js';
|
|
13
|
-
import { TypedVariablesService } from '../variables/pikku-variables.gen.js';
|
|
14
|
-
/**
|
|
15
|
-
* Base services provided to addon package service factories.
|
|
16
|
-
* These are always available from the parent application.
|
|
17
|
-
*/
|
|
18
|
-
export type AddonBaseServices = {
|
|
19
|
-
logger: SingletonServices['logger'];
|
|
20
|
-
variables: TypedVariablesService;
|
|
21
|
-
secrets: TypedSecretService;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Creates a Pikku config factory for addon packages.
|
|
25
|
-
* Unlike pikkuConfig, this receives AddonBaseServices (logger, variables, secrets)
|
|
26
|
-
* from the parent application, so addon packages can read variables/secrets during config creation.
|
|
27
|
-
*/
|
|
28
|
-
export declare const pikkuAddonConfig: <ExistingServices extends Omit<Partial<SingletonServices>, "variables" | "secrets"> & AddonBaseServices>(func: (services: ExistingServices) => Promise<Config>) => CreateConfig<Config>;
|
|
29
|
-
/**
|
|
30
|
-
* Creates a Pikku singleton services factory for addon packages.
|
|
31
|
-
* Unlike pikkuServices, this expects the parent application to provide
|
|
32
|
-
* logger, variables, and secrets - no fallbacks needed.
|
|
33
|
-
*
|
|
34
|
-
* @param func - Addon services factory function that receives config and base services
|
|
35
|
-
* @returns The singleton services factory function
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```typescript
|
|
39
|
-
* export const createSingletonServices = pikkuAddonServices(async (
|
|
40
|
-
* config,
|
|
41
|
-
* { secrets }
|
|
42
|
-
* ) => {
|
|
43
|
-
* const creds = await secrets.getSecret<GithubCredentials>('GITHUB_CREDENTIALS')
|
|
44
|
-
* const github = new GithubService(creds.reveal())
|
|
45
|
-
* return { github }
|
|
46
|
-
* })
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
export declare const pikkuAddonServices: <T extends Record<string, any>, ExistingServices extends Omit<Partial<SingletonServices>, "variables" | "secrets"> & AddonBaseServices>(func: (config: Config, services: ExistingServices) => Promise<T>) => (config: Config, existingServices?: Partial<SingletonServices>) => Promise<RequiredSingletonServices>;
|
|
50
|
-
/**
|
|
51
|
-
* Creates a Pikku wire services factory for addon packages.
|
|
52
|
-
* Wire services are created per-request and have access to the HTTP request context.
|
|
53
|
-
*
|
|
54
|
-
* @param func - Wire services factory function that receives singleton services and the wire context
|
|
55
|
-
* @returns The wire services factory function
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```typescript
|
|
59
|
-
* export const createWireServices = pikkuAddonWireServices(async (services, wire) => {
|
|
60
|
-
* const authHeader = wire.http?.request?.header('authorization')
|
|
61
|
-
* return { myService: new MyService(authHeader) }
|
|
62
|
-
* })
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare const pikkuAddonWireServices: <ExistingServices extends Omit<Partial<SingletonServices>, "variables" | "secrets"> & AddonBaseServices>(func: (services: ExistingServices, wire: PikkuWire) => Promise<Record<string, any>>) => any;
|
|
66
|
-
//# sourceMappingURL=pikku-addon-types.gen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-addon-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/addon/pikku-addon-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,C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,CAAC,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,KAM7E,GACP,CAAA"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.105
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Addon package types for pikkuAddonConfig and pikkuAddonServices
|
|
6
|
-
*/
|
|
7
|
-
import { TypedSecretService } from '../secrets/pikku-secrets.gen.js';
|
|
8
|
-
import { TypedVariablesService } from '../variables/pikku-variables.gen.js';
|
|
9
|
-
/**
|
|
10
|
-
* Creates a Pikku config factory for addon packages.
|
|
11
|
-
* Unlike pikkuConfig, this receives AddonBaseServices (logger, variables, secrets)
|
|
12
|
-
* from the parent application, so addon packages can read variables/secrets during config creation.
|
|
13
|
-
*/
|
|
14
|
-
export const pikkuAddonConfig = (func) => {
|
|
15
|
-
return (async (_variables, existingServices) => {
|
|
16
|
-
const { secrets, variables, ...rest } = (existingServices ?? {});
|
|
17
|
-
return func({ ...rest, secrets: new TypedSecretService(secrets), variables: new TypedVariablesService(variables) });
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Creates a Pikku singleton services factory for addon packages.
|
|
22
|
-
* Unlike pikkuServices, this expects the parent application to provide
|
|
23
|
-
* logger, variables, and secrets - no fallbacks needed.
|
|
24
|
-
*
|
|
25
|
-
* @param func - Addon services factory function that receives config and base services
|
|
26
|
-
* @returns The singleton services factory function
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```typescript
|
|
30
|
-
* export const createSingletonServices = pikkuAddonServices(async (
|
|
31
|
-
* config,
|
|
32
|
-
* { secrets }
|
|
33
|
-
* ) => {
|
|
34
|
-
* const creds = await secrets.getSecret<GithubCredentials>('GITHUB_CREDENTIALS')
|
|
35
|
-
* const github = new GithubService(creds.reveal())
|
|
36
|
-
* return { github }
|
|
37
|
-
* })
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export const pikkuAddonServices = (func) => {
|
|
41
|
-
return async (config, existingServices) => {
|
|
42
|
-
const { logger, variables, secrets, schema } = (existingServices ?? {});
|
|
43
|
-
const typedVariables = new TypedVariablesService(variables);
|
|
44
|
-
const typedSecrets = new TypedSecretService(secrets);
|
|
45
|
-
const result = await func(config, { ...existingServices, logger, variables: typedVariables, secrets: typedSecrets });
|
|
46
|
-
return {
|
|
47
|
-
config,
|
|
48
|
-
logger,
|
|
49
|
-
schema,
|
|
50
|
-
variables: typedVariables,
|
|
51
|
-
secrets: typedSecrets,
|
|
52
|
-
...result,
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Creates a Pikku wire services factory for addon packages.
|
|
58
|
-
* Wire services are created per-request and have access to the HTTP request context.
|
|
59
|
-
*
|
|
60
|
-
* @param func - Wire services factory function that receives singleton services and the wire context
|
|
61
|
-
* @returns The wire services factory function
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```typescript
|
|
65
|
-
* export const createWireServices = pikkuAddonWireServices(async (services, wire) => {
|
|
66
|
-
* const authHeader = wire.http?.request?.header('authorization')
|
|
67
|
-
* return { myService: new MyService(authHeader) }
|
|
68
|
-
* })
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
export const pikkuAddonWireServices = (func) => {
|
|
72
|
-
return ((services, wire) => {
|
|
73
|
-
const typedVariables = new TypedVariablesService(services.variables);
|
|
74
|
-
const typedSecrets = new TypedSecretService(services.secrets);
|
|
75
|
-
return func({ ...services, variables: typedVariables, secrets: typedSecrets }, wire);
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=pikku-addon-types.gen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-addon-types.gen.js","sourceRoot":"","sources":["../../../.pikku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,cAAc;YACzB,OAAO,EAAE,YAAY;YACrB,GAAG,MAAM;SAC8B,CAAA;IAC3C,CAAC,CAAA;AACH,CAAC,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,IAAmF,EACnF,EAAE;IACF,OAAO,CAAC,CAAC,QAAa,EAAE,IAAe,EAAE,EAAE;QACzC,MAAM,cAAc,GAAG,IAAI,qBAAqB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;QACpE,MAAM,YAAY,GAAG,IAAI,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;QAC7D,OAAO,IAAI,CAAC,EAAE,GAAG,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAsB,EAAE,IAAI,CAAC,CAAA;IAC1G,CAAC,CAAQ,CAAA;AACX,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.pikku/agent/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../.pikku/agent/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.105
|
|
3
|
-
*/
|
|
4
|
-
import { CoreAgent } from '@pikku/core/agent';
|
|
5
|
-
import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge } from '@pikku/core/agent-scorer';
|
|
6
|
-
import type { Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
7
|
-
import type { PikkuPermission } from '../auth/pikku-auth-types.gen.js';
|
|
8
|
-
import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js';
|
|
9
|
-
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
10
|
-
import type { AgentMemoryConfig, AgentInput } from '@pikku/core/agent';
|
|
11
|
-
import type { AgentMap } from './pikku-agent-map.gen.d.js';
|
|
12
|
-
import type { ScopeId } from '../scopes/pikku-scopes.gen.js';
|
|
13
|
-
import type { ScorerName } from './pikku-scorer-names.gen.d.js';
|
|
14
|
-
type AgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CoreAgent<PikkuPermission, PikkuMiddleware, ScopeId, ScorerName>, 'tools' | 'agents' | 'workflows' | 'memory' | 'input' | 'output'> & {
|
|
15
|
-
input?: InputSchema;
|
|
16
|
-
output?: OutputSchema;
|
|
17
|
-
memory?: Omit<AgentMemoryConfig, 'workingMemory'> & {
|
|
18
|
-
workingMemory?: StandardSchemaV1;
|
|
19
|
-
};
|
|
20
|
-
tools?: object[];
|
|
21
|
-
agents?: AgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[];
|
|
22
|
-
workflows?: object[];
|
|
23
|
-
};
|
|
24
|
-
export declare const pikkuAgent: <InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(agent: AgentConfig<InputSchema, OutputSchema>) => AgentConfig<InputSchema, OutputSchema>;
|
|
25
|
-
export declare const pikkuAgentScorer: (config: Parameters<typeof corePikkuAgentScorer<Services>>[0]) => import("@pikku/core/agent-scorer").PikkuAgentScorer<Services>;
|
|
26
|
-
export declare const pikkuAgentJudge: (config: Parameters<typeof corePikkuAgentJudge<Services>>[0]) => import("@pikku/core/agent-scorer").PikkuAgentScorer<Services>;
|
|
27
|
-
export declare const agent: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<AgentInput, {
|
|
28
|
-
runId: string;
|
|
29
|
-
result: AgentMap[Name]["output"];
|
|
30
|
-
usage: {
|
|
31
|
-
inputTokens: number;
|
|
32
|
-
outputTokens: number;
|
|
33
|
-
};
|
|
34
|
-
}, "session" | "rpc">;
|
|
35
|
-
export declare const agentStream: <Name extends keyof AgentMap>(agentName?: Name | undefined) => PikkuFunctionConfig<{
|
|
36
|
-
agentName?: string;
|
|
37
|
-
message: string;
|
|
38
|
-
threadId: string;
|
|
39
|
-
resourceId: string;
|
|
40
|
-
}, void, "session" | "rpc">;
|
|
41
|
-
export declare const agentResume: () => PikkuFunctionConfig<{
|
|
42
|
-
runId: string;
|
|
43
|
-
toolCallId: string;
|
|
44
|
-
approved: boolean;
|
|
45
|
-
}, void, "session" | "rpc">;
|
|
46
|
-
export declare const agentApprove: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<{
|
|
47
|
-
runId: string;
|
|
48
|
-
approvals: {
|
|
49
|
-
toolCallId: string;
|
|
50
|
-
approved: boolean;
|
|
51
|
-
}[];
|
|
52
|
-
}, unknown, "session" | "rpc">;
|
|
53
|
-
export {};
|
|
54
|
-
//# sourceMappingURL=pikku-agent-types.gen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-agent-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAO7C,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,eAAe,IAAI,mBAAmB,EACvC,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,iBAA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agentStream as coreAgentStream, agentResume as coreAgentResume, agentApprove as coreAgentApprove, } from '@pikku/core/agent';
|
|
2
|
-
import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge, } from '@pikku/core/agent-scorer';
|
|
3
|
-
export const pikkuAgent = (agent) => {
|
|
4
|
-
return agent;
|
|
5
|
-
};
|
|
6
|
-
export const pikkuAgentScorer = (config) => corePikkuAgentScorer(config);
|
|
7
|
-
export const pikkuAgentJudge = (config) => corePikkuAgentJudge(config);
|
|
8
|
-
export const agent = (agentName) => {
|
|
9
|
-
return coreAgent(agentName);
|
|
10
|
-
};
|
|
11
|
-
export const agentStream = (agentName) => {
|
|
12
|
-
return coreAgentStream(agentName);
|
|
13
|
-
};
|
|
14
|
-
export const agentResume = () => {
|
|
15
|
-
return coreAgentResume();
|
|
16
|
-
};
|
|
17
|
-
export const agentApprove = (agentName) => {
|
|
18
|
-
return coreAgentApprove(agentName);
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=pikku-agent-types.gen.js.map
|