@pikku/addon-meta-conversions 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.pikku/addon/agent/index.d.ts +1 -1
- package/dist/.pikku/addon/agent/index.js +1 -1
- package/dist/.pikku/addon/agent/index.ts +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 +47 -6
- 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-agent-types.gen.ts +42 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
- package/dist/.pikku/addon/analytics/index.d.ts +8 -0
- package/dist/.pikku/addon/analytics/index.d.ts.map +1 -0
- package/dist/.pikku/addon/analytics/index.js +8 -0
- package/dist/.pikku/addon/analytics/index.js.map +1 -0
- package/dist/.pikku/addon/analytics/index.ts +8 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +6 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +5 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js.map +1 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.ts +25 -0
- package/dist/.pikku/addon/auth/index.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.js +1 -1
- package/dist/.pikku/addon/auth/index.ts +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +2 -19
- 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/auth/pikku-auth-types.gen.ts +2 -19
- package/dist/.pikku/addon/channel/index.d.ts +1 -1
- package/dist/.pikku/addon/channel/index.js +1 -1
- package/dist/.pikku/addon/channel/index.ts +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +10 -20
- 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/channel/pikku-channel-types.gen.ts +8 -18
- package/dist/.pikku/addon/cli/index.d.ts +8 -0
- package/dist/.pikku/addon/cli/index.d.ts.map +1 -0
- package/dist/.pikku/addon/cli/index.js +8 -0
- package/dist/.pikku/addon/cli/index.js.map +1 -0
- package/dist/.pikku/addon/cli/index.ts +8 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +62 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +49 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.js.map +1 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.ts +88 -0
- package/dist/.pikku/addon/db/pikku-db-meta.gen.json +1 -0
- package/dist/.pikku/addon/error/index.d.ts +1 -1
- package/dist/.pikku/addon/error/index.js +1 -1
- package/dist/.pikku/addon/error/index.ts +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/error/pikku-error-types.gen.ts +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/index.ts +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +46 -46
- 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-function-types.gen.ts +45 -43
- package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +2 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +1 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.ts +1 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.ts +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/index.ts +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/http/pikku-http-types.gen.ts +3 -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/index.ts +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/mcp/pikku-mcp-types.gen.ts +7 -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/index.ts +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +33 -24
- 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/middleware/pikku-middleware-types.gen.ts +33 -24
- 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-scenarios.gen.ts +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-bootstrap.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-local-services.gen.d.ts +29 -0
- package/dist/.pikku/addon/pikku-local-services.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-local-services.gen.js +42 -0
- package/dist/.pikku/addon/pikku-local-services.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-local-services.gen.ts +85 -0
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts +9 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.js +8 -0
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.ts +9 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -3
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -3
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +2 -3
- 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.ts +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/index.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +53 -35
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +7 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.ts +57 -40
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts +33 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js +29 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.ts +52 -0
- 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/scenarios/schemas/register.gen.ts +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +2 -1
- package/dist/.pikku/addon/scopes/index.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/index.js +2 -1
- package/dist/.pikku/addon/scopes/index.js.map +1 -1
- package/dist/.pikku/addon/scopes/index.ts +2 -1
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts +41 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js +35 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.ts +52 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +9 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.js +2 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.ts +8 -0
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +2 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +2 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +2 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-virtual-users-meta.gen.json +1 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts +27 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js +16 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.ts +39 -0
- package/dist/.pikku/addon/secrets/index.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.js +1 -1
- package/dist/.pikku/addon/secrets/index.ts +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-secret-types.gen.ts +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/secrets/pikku-secrets.gen.ts +9 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.ts +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/index.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +4 -4
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +8 -20
- 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/setup/pikku-setup-types.gen.ts +19 -19
- package/dist/.pikku/addon/surface-usage.gen.json +326 -16
- package/dist/.pikku/addon/trigger/index.d.ts +1 -1
- package/dist/.pikku/addon/trigger/index.js +1 -1
- package/dist/.pikku/addon/trigger/index.ts +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +64 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +17 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.ts +58 -1
- package/dist/.pikku/addon/utils/index.d.ts +8 -0
- package/dist/.pikku/addon/utils/index.d.ts.map +1 -0
- package/dist/.pikku/addon/utils/index.js +8 -0
- package/dist/.pikku/addon/utils/index.js.map +1 -0
- package/dist/.pikku/addon/utils/index.ts +8 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts +5 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.js +5 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.js.map +1 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.ts +4 -0
- package/dist/.pikku/addon/variables/index.d.ts +1 -1
- package/dist/.pikku/addon/variables/index.js +1 -1
- package/dist/.pikku/addon/variables/index.ts +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-variable-types.gen.ts +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/variables/pikku-variables.gen.ts +9 -1
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks-meta.gen.json +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +12 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js +3 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js.map +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.ts +15 -0
- package/dist/.pikku/addon/workflow/index.d.ts +1 -1
- package/dist/.pikku/addon/workflow/index.js +1 -1
- package/dist/.pikku/addon/workflow/index.ts +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 +30 -6
- 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-types.gen.ts +33 -2
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts +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/.pikku/addon/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/.pikku/addon/workflow/virtual-users.gen.json +1 -0
- package/dist/.pikku/runs/mvcetam5.all.jsonl +3 -0
- package/dist/src/functions/events/send.function.d.ts +21 -21
- package/dist/src/functions/events/send.function.d.ts.map +1 -1
- package/dist/src/meta-conversions-api.service.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +0 -18
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +0 -18
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.ts +0 -36
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts +0 -29
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js +0 -18
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.ts +0 -41
- /package/dist/.pikku/addon/{scopes/pikku-personas-meta.gen.json → analytics/pikku-analytics-meta.gen.json} +0 -0
- /package/dist/.pikku/addon/{workflow/personas.gen.json → scopes/pikku-flags-meta.gen.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.190
|
|
3
3
|
*/
|
|
4
4
|
import type {
|
|
5
5
|
PikkuScenarioWire,
|
|
@@ -12,9 +12,9 @@ import type { PikkuFunctionSessionless, PikkuFunctionConfig, WiredServices, Infe
|
|
|
12
12
|
import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js'
|
|
13
13
|
import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js'
|
|
14
14
|
import type { FlattenedScenarioStepMap } from '../workflow/pikku-scenario-step-map.gen.d.js'
|
|
15
|
-
import type {
|
|
15
|
+
import type { TypedVirtualUsers } from './pikku-virtual-users.gen.js'
|
|
16
16
|
|
|
17
|
-
export type {
|
|
17
|
+
export type { TypedVirtualUsers }
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* The scenario test surface, re-exported so a step file has one specifier to
|
|
@@ -25,7 +25,6 @@ export type { TypedPersonas }
|
|
|
25
25
|
*/
|
|
26
26
|
export {
|
|
27
27
|
createCookieJar,
|
|
28
|
-
createScenarioRunner,
|
|
29
28
|
pollUntil,
|
|
30
29
|
requireScenarioEnv,
|
|
31
30
|
} from '@pikku/core/scenario'
|
|
@@ -34,7 +33,7 @@ export type {
|
|
|
34
33
|
ScenarioSurface,
|
|
35
34
|
TestIdSelector,
|
|
36
35
|
} from '@pikku/core/scenario'
|
|
37
|
-
export { postScenarioJson, readScenarioHttpResponse } from '@pikku/core/
|
|
36
|
+
export { postScenarioJson, readScenarioHttpResponse } from '@pikku/core/virtual-user'
|
|
38
37
|
export type { ScenarioHttpResponse } from '@pikku/core/scenario'
|
|
39
38
|
|
|
40
39
|
/**
|
|
@@ -80,7 +79,7 @@ export type PikkuFunctionScenario<
|
|
|
80
79
|
In = unknown,
|
|
81
80
|
Out = never,
|
|
82
81
|
Ctx = Out
|
|
83
|
-
> = PikkuFunctionSessionless<In, Out, 'scenario' | '
|
|
82
|
+
> = PikkuFunctionSessionless<In, Out, 'scenario' | 'virtualUsers', WiredServices, Ctx>
|
|
84
83
|
|
|
85
84
|
type PikkuScenarioConfigWithSchema<
|
|
86
85
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
@@ -150,6 +149,8 @@ export type PikkuScenarioHook<
|
|
|
150
149
|
* Declares a scenario hook. Returns the function verbatim — a hook is never
|
|
151
150
|
* registered, so this exists purely to give an inline hook a call site to be
|
|
152
151
|
* contextually typed from, the way every other pikku primitive is.
|
|
152
|
+
*
|
|
153
|
+
* @example snippet: scenarioHook
|
|
153
154
|
*/
|
|
154
155
|
export function pikkuScenarioHook<In = unknown, Ctx = unknown>(
|
|
155
156
|
hook: PikkuFunctionScenario<In, void, Ctx>
|
|
@@ -159,21 +160,23 @@ export function pikkuScenarioHook<In = unknown, Ctx = unknown>(
|
|
|
159
160
|
|
|
160
161
|
/**
|
|
161
162
|
* A scenario: a complex workflow that drives the app the way users do.
|
|
162
|
-
* Steps run as
|
|
163
|
-
* data, {
|
|
163
|
+
* Steps run as virtual users over the REAL transport — `scenario.do(step, rpc,
|
|
164
|
+
* data, { virtualUser: virtualUsers.yasser })` — so flows double as e2e tests and
|
|
164
165
|
* staged/production health checks (no state reset; scope what you create).
|
|
166
|
+
*
|
|
167
|
+
* @example snippet: scenarioBasics
|
|
165
168
|
*/
|
|
166
169
|
export function pikkuScenario<
|
|
167
170
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
168
171
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
169
172
|
>(
|
|
170
173
|
config: PikkuScenarioConfigWithSchema<InputSchema, OutputSchema>
|
|
171
|
-
): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'scenario' | '
|
|
174
|
+
): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'scenario' | 'virtualUsers', PikkuFunctionScenario<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>
|
|
172
175
|
export function pikkuScenario<In, Out = unknown>(
|
|
173
176
|
func:
|
|
174
177
|
| PikkuFunctionScenario<In, Out>
|
|
175
|
-
| PikkuFunctionConfig<In, Out, 'scenario' | '
|
|
176
|
-
): PikkuFunctionConfig<In, Out, 'scenario' | '
|
|
178
|
+
| PikkuFunctionConfig<In, Out, 'scenario' | 'virtualUsers', PikkuFunctionScenario<In, Out>>
|
|
179
|
+
): PikkuFunctionConfig<In, Out, 'scenario' | 'virtualUsers'>
|
|
177
180
|
export function pikkuScenario(func: any) {
|
|
178
181
|
return typeof func === 'function' ? { func } : func
|
|
179
182
|
}
|
|
@@ -186,7 +189,7 @@ export function pikkuScenario(func: any) {
|
|
|
186
189
|
export type PikkuScenarioRef<In = any, Out = any> = PikkuFunctionConfig<
|
|
187
190
|
In,
|
|
188
191
|
Out,
|
|
189
|
-
'scenario' | '
|
|
192
|
+
'scenario' | 'virtualUsers',
|
|
190
193
|
PikkuFunctionScenario<In, Out>,
|
|
191
194
|
any,
|
|
192
195
|
any
|
|
@@ -210,6 +213,12 @@ type PikkuFeatureConfig<Scenarios extends readonly unknown[]> = {
|
|
|
210
213
|
name: string
|
|
211
214
|
description?: string
|
|
212
215
|
tags?: string[]
|
|
216
|
+
/**
|
|
217
|
+
* Whether this feature is guide material, defaulting to true. `pikku scenario
|
|
218
|
+
* guide` requires every documented feature to be cited by a page; a feature
|
|
219
|
+
* that is pure plumbing sets this false rather than being written about.
|
|
220
|
+
*/
|
|
221
|
+
document?: boolean
|
|
213
222
|
scenarios: { [K in keyof Scenarios]: PikkuFeatureEntry<Scenarios[K]> }
|
|
214
223
|
/**
|
|
215
224
|
* Runs ONCE before the whole group — not before each scenario. Per-scenario
|
|
@@ -243,6 +252,8 @@ type PikkuFeatureConfig<Scenarios extends readonly unknown[]> = {
|
|
|
243
252
|
* ],
|
|
244
253
|
* })
|
|
245
254
|
* ```
|
|
255
|
+
*
|
|
256
|
+
* @example snippet: scenarioFeature
|
|
246
257
|
*/
|
|
247
258
|
export function pikkuFeature<const Scenarios extends readonly unknown[]>(
|
|
248
259
|
config: PikkuFeatureConfig<Scenarios>
|
|
@@ -261,45 +272,45 @@ export type PikkuFunctionScenarioStep<
|
|
|
261
272
|
In = unknown,
|
|
262
273
|
Out = never,
|
|
263
274
|
Surface extends 'browser' | 'cli' | 'default' = 'default',
|
|
264
|
-
|
|
275
|
+
HasVirtualUser extends boolean = false
|
|
265
276
|
> = PikkuFunctionSessionless<
|
|
266
277
|
In,
|
|
267
278
|
Out,
|
|
268
279
|
| 'scenarioStep'
|
|
269
280
|
| (Surface extends 'default' ? never : Surface)
|
|
270
|
-
| (
|
|
281
|
+
| (HasVirtualUser extends true ? 'virtualUser' : never)
|
|
271
282
|
>
|
|
272
283
|
|
|
273
284
|
type PikkuScenarioStepConfigWithSchema<
|
|
274
285
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
275
286
|
OutputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
276
|
-
|
|
287
|
+
HasVirtualUser extends boolean = false
|
|
277
288
|
> = {
|
|
278
289
|
/** Registered name — this is the string `scenario.given()` references. */
|
|
279
290
|
name: string
|
|
280
291
|
/**
|
|
281
|
-
* This step is driven by a
|
|
292
|
+
* This step is driven by a virtual user, so `wire.virtualUser` is injected and
|
|
282
293
|
* non-optional inside every binding, and the runner refuses to dispatch it
|
|
283
294
|
* without one.
|
|
284
295
|
*
|
|
285
296
|
* A `browser` binding implies it — a window is opened as somebody. Declare it
|
|
286
|
-
* for a server-side step that calls RPCs as its
|
|
287
|
-
* that has no
|
|
297
|
+
* for a server-side step that calls RPCs as its virtual user. Leave it off for a step
|
|
298
|
+
* that has no virtual user to be: an assertion over a value an earlier step
|
|
288
299
|
* returned, or one that posts credentials precisely because it must not reuse
|
|
289
|
-
*
|
|
300
|
+
* a virtual user's session.
|
|
290
301
|
*/
|
|
291
|
-
|
|
302
|
+
virtualUser?: HasVirtualUser
|
|
292
303
|
/**
|
|
293
304
|
* What this step does, for the console and for whoever reads the source. It
|
|
294
305
|
* is also the fallback prose when no `template` is declared, in which case a
|
|
295
|
-
* reporter renders "Given
|
|
306
|
+
* reporter renders "Given shopper buys an apple". Defaults to the call
|
|
296
307
|
* site's step name.
|
|
297
308
|
*/
|
|
298
309
|
description?: string
|
|
299
310
|
/**
|
|
300
311
|
* The prose a reporter renders for this step, with `{placeholders}` filled
|
|
301
312
|
* from the input the step was called with — `'sees {packageName}'` reports as
|
|
302
|
-
* "Then
|
|
313
|
+
* "Then admin sees @pikku/addon-todos". Every input field should appear,
|
|
303
314
|
* so the report names the values under test rather than repeating one
|
|
304
315
|
* sentence per call site.
|
|
305
316
|
*/
|
|
@@ -311,17 +322,17 @@ type PikkuScenarioStepConfigWithSchema<
|
|
|
311
322
|
errors?: Array<typeof PikkuError>
|
|
312
323
|
/**
|
|
313
324
|
* Drive this step through a real browser, as a human would. The runner
|
|
314
|
-
* provisions a window for the step's
|
|
325
|
+
* provisions a window for the step's virtual user first — which makes a virtual user
|
|
315
326
|
* mandatory — and `wire.browser` is non-optional inside it.
|
|
316
327
|
*
|
|
317
328
|
* Compose shared utilities here rather than writing raw clicks: the step says
|
|
318
|
-
* what the
|
|
329
|
+
* what the virtual user is doing, the utilities say how.
|
|
319
330
|
*/
|
|
320
331
|
browser?: PikkuFunctionScenarioStep<
|
|
321
332
|
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
322
333
|
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
|
|
323
334
|
'browser',
|
|
324
|
-
// A window is opened as somebody, so a browser binding has
|
|
335
|
+
// A window is opened as somebody, so a browser binding has a virtual user whether
|
|
325
336
|
// or not the step declared one.
|
|
326
337
|
true
|
|
327
338
|
>
|
|
@@ -330,7 +341,7 @@ type PikkuScenarioStepConfigWithSchema<
|
|
|
330
341
|
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
331
342
|
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
|
|
332
343
|
'cli',
|
|
333
|
-
|
|
344
|
+
HasVirtualUser
|
|
334
345
|
>
|
|
335
346
|
/**
|
|
336
347
|
* The server-side path — the fast suite, and the floor every other surface
|
|
@@ -345,37 +356,39 @@ type PikkuScenarioStepConfigWithSchema<
|
|
|
345
356
|
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
346
357
|
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
|
|
347
358
|
'default',
|
|
348
|
-
|
|
359
|
+
HasVirtualUser
|
|
349
360
|
>
|
|
350
361
|
}
|
|
351
362
|
|
|
352
|
-
type PikkuScenarioStepConfig<In, Out,
|
|
353
|
-
Omit<PikkuScenarioStepConfigWithSchema<undefined, undefined,
|
|
363
|
+
type PikkuScenarioStepConfig<In, Out, HasVirtualUser extends boolean = false> =
|
|
364
|
+
Omit<PikkuScenarioStepConfigWithSchema<undefined, undefined, HasVirtualUser>, 'browser' | 'cli' | 'default' | 'input' | 'output'> & {
|
|
354
365
|
browser?: PikkuFunctionScenarioStep<In, Out, 'browser', true>
|
|
355
|
-
cli?: PikkuFunctionScenarioStep<In, Out, 'cli',
|
|
356
|
-
default?: PikkuFunctionScenarioStep<In, Out, 'default',
|
|
366
|
+
cli?: PikkuFunctionScenarioStep<In, Out, 'cli', HasVirtualUser>
|
|
367
|
+
default?: PikkuFunctionScenarioStep<In, Out, 'default', HasVirtualUser>
|
|
357
368
|
}
|
|
358
369
|
|
|
359
370
|
/**
|
|
360
371
|
* A named, reusable scenario step, declaring one implementation per surface an
|
|
361
|
-
*
|
|
372
|
+
* virtual user can drive it through.
|
|
362
373
|
*
|
|
363
|
-
* The step's identity is what the
|
|
374
|
+
* The step's identity is what the virtual user is trying to do; which surface carries
|
|
364
375
|
* it out is a binding. That is what lets one ladder run through a real browser,
|
|
365
376
|
* over the websocket, or entirely server-side — and what makes "how much of this
|
|
366
377
|
* flow can a human actually reach" a number rather than a guess.
|
|
367
378
|
*
|
|
368
379
|
* Steps are deliberately NOT registered as RPCs: a browser-driving step must
|
|
369
380
|
* never be network-callable.
|
|
381
|
+
*
|
|
382
|
+
* @example snippet: scenarioStepDefinition
|
|
370
383
|
*/
|
|
371
384
|
export function pikkuScenarioStep<
|
|
372
385
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
373
386
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
374
387
|
>(
|
|
375
|
-
config: PikkuScenarioStepConfigWithSchema<InputSchema, OutputSchema, true> & {
|
|
388
|
+
config: PikkuScenarioStepConfigWithSchema<InputSchema, OutputSchema, true> & { virtualUser: true }
|
|
376
389
|
): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'scenarioStep' | 'browser' | 'cli', PikkuFunctionScenarioStep<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'browser' | 'cli' | 'default'>, InputSchema, OutputSchema>
|
|
377
390
|
export function pikkuScenarioStep<In, Out = unknown>(
|
|
378
|
-
config: PikkuScenarioStepConfig<In, Out, true> & {
|
|
391
|
+
config: PikkuScenarioStepConfig<In, Out, true> & { virtualUser: true }
|
|
379
392
|
): PikkuFunctionConfig<In, Out, 'scenarioStep' | 'browser' | 'cli'>
|
|
380
393
|
export function pikkuScenarioStep<
|
|
381
394
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
@@ -407,7 +420,7 @@ export function pikkuScenarioStep(config: any) {
|
|
|
407
420
|
return {
|
|
408
421
|
...config,
|
|
409
422
|
surfaces,
|
|
410
|
-
|
|
423
|
+
requiresVirtualUser: config.virtualUser === true || surfaces.includes('browser'),
|
|
411
424
|
// The runner sets the surface on the wire and calls this once per binding it
|
|
412
425
|
// resolved — every witness of a `then`, exactly one for an action step.
|
|
413
426
|
func: (services: any, data: any, wire: any) => {
|
|
@@ -433,7 +446,7 @@ type PikkuSubjectScenarioStepConfigWithSchema<
|
|
|
433
446
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
434
447
|
> = Omit<
|
|
435
448
|
PikkuScenarioStepConfigWithSchema<InputSchema, OutputSchema>,
|
|
436
|
-
'browser' | 'cli' | 'default' | '
|
|
449
|
+
'browser' | 'cli' | 'default' | 'virtualUser'
|
|
437
450
|
> & {
|
|
438
451
|
func: PikkuFunctionScenarioStep<
|
|
439
452
|
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
@@ -443,7 +456,7 @@ type PikkuSubjectScenarioStepConfigWithSchema<
|
|
|
443
456
|
}
|
|
444
457
|
|
|
445
458
|
type PikkuSubjectScenarioStepConfig<In, Out> =
|
|
446
|
-
Omit<PikkuScenarioStepConfig<In, Out>, 'browser' | 'cli' | 'default' | '
|
|
459
|
+
Omit<PikkuScenarioStepConfig<In, Out>, 'browser' | 'cli' | 'default' | 'virtualUser'> & {
|
|
447
460
|
func: PikkuFunctionScenarioStep<In, Out, 'default'>
|
|
448
461
|
}
|
|
449
462
|
|
|
@@ -452,11 +465,13 @@ type PikkuSubjectScenarioStepConfig<In, Out> =
|
|
|
452
465
|
* trial".
|
|
453
466
|
*
|
|
454
467
|
* The grammatical subject of that sentence is not a user of your app; it **is**
|
|
455
|
-
* your app, which is why it is its own declaration rather than a
|
|
456
|
-
* asterisk. A
|
|
468
|
+
* your app, which is why it is its own declaration rather than a virtual user with an
|
|
469
|
+
* asterisk. A virtual user is a person.
|
|
457
470
|
*
|
|
458
471
|
* Local-test-only, and never in a virtual user's catalogue: a virtual user that
|
|
459
472
|
* could expire its own trial is manufacturing the outcome it exists to discover.
|
|
473
|
+
*
|
|
474
|
+
* @example snippet: platformStep
|
|
460
475
|
*/
|
|
461
476
|
export function pikkuPlatformScenarioStep<
|
|
462
477
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
@@ -485,6 +500,8 @@ export function pikkuPlatformScenarioStep(config: any) {
|
|
|
485
500
|
*
|
|
486
501
|
* Local-test-only, and never in a virtual user's catalogue: one that could
|
|
487
502
|
* invoke this would forge its own payment success.
|
|
503
|
+
*
|
|
504
|
+
* @example snippet: addonStep
|
|
488
505
|
*/
|
|
489
506
|
export function pikkuAddonScenarioStep<
|
|
490
507
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { HttpVirtualUsersConfig } from '@pikku/core/virtual-user';
|
|
2
|
+
import type { ScenarioVirtualUser } from '@pikku/core/services';
|
|
3
|
+
import type { ResolvedVirtualUser } from '@pikku/core/services';
|
|
4
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js';
|
|
5
|
+
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js';
|
|
6
|
+
export declare const virtualUserConfigs: {};
|
|
7
|
+
export type VirtualUserName = keyof typeof virtualUserConfigs;
|
|
8
|
+
/**
|
|
9
|
+
* The same virtual users as a list, widened to `ResolvedVirtualUser`. Iterating
|
|
10
|
+
* `virtualUserConfigs` directly yields the literal type of each entry, on which an
|
|
11
|
+
* optional field a virtual user did not declare does not exist — so a seed reading
|
|
12
|
+
* `roles` off every virtual user needs this instead.
|
|
13
|
+
*/
|
|
14
|
+
export declare const virtualUserList: ResolvedVirtualUser[];
|
|
15
|
+
/**
|
|
16
|
+
* The `environments` block of pikku.config.json, carried into the runtime.
|
|
17
|
+
*
|
|
18
|
+
* A virtual user's environments are checked twice: at build time against the config,
|
|
19
|
+
* and again wherever a virtual user is signed in or provisioned, against the
|
|
20
|
+
* environment the running process says it is (`PIKKU_ENV`). The second check
|
|
21
|
+
* is not the first one repeated — the build check trusts the file, and the run
|
|
22
|
+
* check does not trust which artifact got deployed — so the rule needs the
|
|
23
|
+
* config on both sides of the build.
|
|
24
|
+
*/
|
|
25
|
+
export declare const virtualUserEnvironments: {};
|
|
26
|
+
export type AgentName = keyof AgentMap & string;
|
|
27
|
+
/**
|
|
28
|
+
* The virtual users this project declares, keyed by name — the `virtual users` a scenario
|
|
29
|
+
* step runs as.
|
|
30
|
+
*/
|
|
31
|
+
export type TypedVirtualUsers = Record<VirtualUserName, ScenarioVirtualUser<AgentName, FlattenedRPCMap>>;
|
|
32
|
+
export declare const createVirtualUsers: (options: Omit<HttpVirtualUsersConfig, 'virtualUsers'>) => TypedVirtualUsers;
|
|
33
|
+
//# sourceMappingURL=pikku-virtual-users.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-virtual-users.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scenarios/pikku-virtual-users.gen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AAE5E,eAAO,MAAM,kBAAkB,IAA4D,CAAA;AAE3F,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,kBAAkB,CAAA;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,mBAAmB,EAAsC,CAAA;AAEvF;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,IAAiE,CAAA;AAErG,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ,GAAG,MAAM,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CACpC,eAAe,EACf,mBAAmB,CAAC,SAAS,EAAE,eAAe,CAAC,CAChD,CAAA;AAED,eAAO,MAAM,kBAAkB,YACpB,IAAI,CAAC,sBAAsB,EAAE,cAAc,CAAC,KACpD,iBAIsB,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
|
+
*/
|
|
4
|
+
/** Virtual users declared with defineVirtualUsers() */
|
|
5
|
+
import { createHttpVirtualUsers } from '@pikku/core/virtual-user';
|
|
6
|
+
export const virtualUserConfigs = {};
|
|
7
|
+
/**
|
|
8
|
+
* The same virtual users as a list, widened to `ResolvedVirtualUser`. Iterating
|
|
9
|
+
* `virtualUserConfigs` directly yields the literal type of each entry, on which an
|
|
10
|
+
* optional field a virtual user did not declare does not exist — so a seed reading
|
|
11
|
+
* `roles` off every virtual user needs this instead.
|
|
12
|
+
*/
|
|
13
|
+
export const virtualUserList = Object.values(virtualUserConfigs);
|
|
14
|
+
/**
|
|
15
|
+
* The `environments` block of pikku.config.json, carried into the runtime.
|
|
16
|
+
*
|
|
17
|
+
* A virtual user's environments are checked twice: at build time against the config,
|
|
18
|
+
* and again wherever a virtual user is signed in or provisioned, against the
|
|
19
|
+
* environment the running process says it is (`PIKKU_ENV`). The second check
|
|
20
|
+
* is not the first one repeated — the build check trusts the file, and the run
|
|
21
|
+
* check does not trust which artifact got deployed — so the rule needs the
|
|
22
|
+
* config on both sides of the build.
|
|
23
|
+
*/
|
|
24
|
+
export const virtualUserEnvironments = {};
|
|
25
|
+
export const createVirtualUsers = (options) => createHttpVirtualUsers({
|
|
26
|
+
...options,
|
|
27
|
+
virtualUsers: virtualUserConfigs,
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=pikku-virtual-users.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-virtual-users.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scenarios/pikku-virtual-users.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,uDAAuD;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAOjE,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAyD,CAAA;AAI3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAA0B,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;AAEvF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAA8D,CAAA;AAYrG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,OAAqD,EAClC,EAAE,CACrB,sBAAsB,CAAC;IACrB,GAAG,OAAO;IACV,YAAY,EAAE,kBAAkB;CACjC,CAAsB,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
|
+
*/
|
|
4
|
+
/** Virtual users declared with defineVirtualUsers() */
|
|
5
|
+
import { createHttpVirtualUsers } from '@pikku/core/virtual-user'
|
|
6
|
+
import type { HttpVirtualUsersConfig } from '@pikku/core/virtual-user'
|
|
7
|
+
import type { ScenarioVirtualUser } from '@pikku/core/services'
|
|
8
|
+
import type { ResolvedVirtualUser } from '@pikku/core/services'
|
|
9
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
10
|
+
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js'
|
|
11
|
+
|
|
12
|
+
export const virtualUserConfigs = {} as const satisfies Record<string, ResolvedVirtualUser>
|
|
13
|
+
|
|
14
|
+
export type VirtualUserName = keyof typeof virtualUserConfigs
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The same virtual users as a list, widened to `ResolvedVirtualUser`. Iterating
|
|
18
|
+
* `virtualUserConfigs` directly yields the literal type of each entry, on which an
|
|
19
|
+
* optional field a virtual user did not declare does not exist — so a seed reading
|
|
20
|
+
* `roles` off every virtual user needs this instead.
|
|
21
|
+
*/
|
|
22
|
+
export const virtualUserList: ResolvedVirtualUser[] = Object.values(virtualUserConfigs)
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The `environments` block of pikku.config.json, carried into the runtime.
|
|
26
|
+
*
|
|
27
|
+
* A virtual user's environments are checked twice: at build time against the config,
|
|
28
|
+
* and again wherever a virtual user is signed in or provisioned, against the
|
|
29
|
+
* environment the running process says it is (`PIKKU_ENV`). The second check
|
|
30
|
+
* is not the first one repeated — the build check trusts the file, and the run
|
|
31
|
+
* check does not trust which artifact got deployed — so the rule needs the
|
|
32
|
+
* config on both sides of the build.
|
|
33
|
+
*/
|
|
34
|
+
export const virtualUserEnvironments = {} as const satisfies Record<string, { production?: boolean }>
|
|
35
|
+
|
|
36
|
+
export type AgentName = keyof AgentMap & string
|
|
37
|
+
/**
|
|
38
|
+
* The virtual users this project declares, keyed by name — the `virtual users` a scenario
|
|
39
|
+
* step runs as.
|
|
40
|
+
*/
|
|
41
|
+
export type TypedVirtualUsers = Record<
|
|
42
|
+
VirtualUserName,
|
|
43
|
+
ScenarioVirtualUser<AgentName, FlattenedRPCMap>
|
|
44
|
+
>
|
|
45
|
+
|
|
46
|
+
export const createVirtualUsers = (
|
|
47
|
+
options: Omit<HttpVirtualUsersConfig, 'virtualUsers'>
|
|
48
|
+
): TypedVirtualUsers =>
|
|
49
|
+
createHttpVirtualUsers({
|
|
50
|
+
...options,
|
|
51
|
+
virtualUsers: virtualUserConfigs,
|
|
52
|
+
}) as TypedVirtualUsers
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Subpath entry — `#pikku/scopes` resolves here.
|
|
6
6
|
*/
|
|
7
7
|
export * from './pikku-scope-types.gen.js';
|
|
8
|
+
export * from './pikku-flags.gen.js';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Subpath entry — `#pikku/scopes` resolves here.
|
|
6
6
|
*/
|
|
7
7
|
export * from './pikku-scope-types.gen.js';
|
|
8
|
+
export * from './pikku-flags.gen.js';
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import type { DeclaredFlag } from '@pikku/core/flag';
|
|
8
|
+
import type { FeatureFlagName } from './pikku-flags.gen.js';
|
|
9
|
+
/**
|
|
10
|
+
* The declared flag set, for a FeatureFlagStore to sync into its store.
|
|
11
|
+
*
|
|
12
|
+
* Derived from the metadata sidecar rather than inlined, so the import above
|
|
13
|
+
* forces tsc to emit the .json alongside this file — an addon publishes only
|
|
14
|
+
* its compiled output, and a host reads that .json to merge the addon's flags
|
|
15
|
+
* into its own union.
|
|
16
|
+
*
|
|
17
|
+
* Additive on removal: a deleted declaration leaves the row marked
|
|
18
|
+
* `declared: false` rather than switching a feature off on deploy. Use
|
|
19
|
+
* `pikku flags prune` to remove them.
|
|
20
|
+
*/
|
|
21
|
+
export declare const declaredFeatureFlags: DeclaredFlag[];
|
|
22
|
+
/**
|
|
23
|
+
* Declared flags, keyed by name. Rendered by the console beside each switch.
|
|
24
|
+
*
|
|
25
|
+
* Keyed by `FeatureFlagName` so a misspelled lookup is a type error, which is
|
|
26
|
+
* the whole point of generating the union. The assertion is what
|
|
27
|
+
* `Object.fromEntries` costs — it returns an index signature — and it is
|
|
28
|
+
* sound here because both this object and the union are built from
|
|
29
|
+
* `declaredFeatureFlags`, so every key of the union is present.
|
|
30
|
+
*/
|
|
31
|
+
export declare const featureFlagsMeta: Record<FeatureFlagName, DeclaredFlag>;
|
|
32
|
+
/**
|
|
33
|
+
* What a flag source falls back to when its backing store cannot be read: every
|
|
34
|
+
* declared flag on, no rollout, no overrides.
|
|
35
|
+
*
|
|
36
|
+
* Failing open is deliberate. A flag store is not an authorization boundary —
|
|
37
|
+
* `scopes:` is — so an unreadable config must not take the product down with
|
|
38
|
+
* it.
|
|
39
|
+
*/
|
|
40
|
+
export declare const featureFlagsFallback: import("@pikku/core/flag").FlagConfigSnapshot;
|
|
41
|
+
//# sourceMappingURL=pikku-flags-manifest.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-flags-manifest.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-flags-manifest.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAA8B,MAAM,kBAAkB,CAAA;AAKhF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAG3D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,EAAE,YAAY,EAE9C,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAExB,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC,CAAA;AAE1C;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,+CAAiD,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { compiledFallbackSnapshot, flattenFeatureFlagDefinitions, } from '@pikku/core/flag';
|
|
2
|
+
import definitions from './pikku-flags-meta.gen.json' with { type: 'json' };
|
|
3
|
+
/**
|
|
4
|
+
* The declared flag set, for a FeatureFlagStore to sync into its store.
|
|
5
|
+
*
|
|
6
|
+
* Derived from the metadata sidecar rather than inlined, so the import above
|
|
7
|
+
* forces tsc to emit the .json alongside this file — an addon publishes only
|
|
8
|
+
* its compiled output, and a host reads that .json to merge the addon's flags
|
|
9
|
+
* into its own union.
|
|
10
|
+
*
|
|
11
|
+
* Additive on removal: a deleted declaration leaves the row marked
|
|
12
|
+
* `declared: false` rather than switching a feature off on deploy. Use
|
|
13
|
+
* `pikku flags prune` to remove them.
|
|
14
|
+
*/
|
|
15
|
+
export const declaredFeatureFlags = flattenFeatureFlagDefinitions(Object.values(definitions));
|
|
16
|
+
/**
|
|
17
|
+
* Declared flags, keyed by name. Rendered by the console beside each switch.
|
|
18
|
+
*
|
|
19
|
+
* Keyed by `FeatureFlagName` so a misspelled lookup is a type error, which is
|
|
20
|
+
* the whole point of generating the union. The assertion is what
|
|
21
|
+
* `Object.fromEntries` costs — it returns an index signature — and it is
|
|
22
|
+
* sound here because both this object and the union are built from
|
|
23
|
+
* `declaredFeatureFlags`, so every key of the union is present.
|
|
24
|
+
*/
|
|
25
|
+
export const featureFlagsMeta = Object.fromEntries(declaredFeatureFlags.map((flag) => [flag.name, flag]));
|
|
26
|
+
/**
|
|
27
|
+
* What a flag source falls back to when its backing store cannot be read: every
|
|
28
|
+
* declared flag on, no rollout, no overrides.
|
|
29
|
+
*
|
|
30
|
+
* Failing open is deliberate. A flag store is not an authorization boundary —
|
|
31
|
+
* `scopes:` is — so an unreadable config must not take the product down with
|
|
32
|
+
* it.
|
|
33
|
+
*/
|
|
34
|
+
export const featureFlagsFallback = compiledFallbackSnapshot(declaredFeatureFlags);
|
|
35
|
+
//# sourceMappingURL=pikku-flags-manifest.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-flags-manifest.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-flags-manifest.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,kBAAkB,CAAA;AAEzB,OAAO,WAAW,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAE3E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAmB,6BAA6B,CAC/E,MAAM,CAAC,MAAM,CAAC,WAAyC,CAAC,CACzD,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,WAAW,CAChD,oBAAoB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACb,CAAA;AAE1C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,oBAAoB,CAAC,CAAA"}
|