@pikku/addon-admin 0.12.10 → 0.12.12
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/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/analytics/index.d.ts +1 -1
- package/dist/.pikku/addon/analytics/index.js +1 -1
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +3 -3
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +2 -2
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js.map +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/cli/index.d.ts +1 -1
- package/dist/.pikku/addon/cli/index.js +1 -1
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/cli/pikku-cli-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 +4 -4
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +6 -6
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +4 -4
- package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/addon/http/index.d.ts +1 -1
- package/dist/.pikku/addon/http/index.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +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-local-services.gen.d.ts +1 -0
- package/dist/.pikku/addon/pikku-local-services.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-local-services.gen.js +4 -2
- package/dist/.pikku/addon/pikku-local-services.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts +2 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.js +1 -0
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +2 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/index.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-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 +33 -33
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +3 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/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/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/schemas/GetAuditFiltersOutput.schema.json +1 -1
- package/dist/.pikku/addon/schemas/schemas/GetAuditsOutput.schema.json +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +1 -1
- package/dist/.pikku/addon/scopes/index.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-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.gen.d.ts +1 -34
- package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-flags.gen.js +1 -34
- package/dist/.pikku/addon/scopes/pikku-flags.gen.js.map +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-meta.gen.json +6 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
- 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/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 +43 -4
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +9 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -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/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/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/webhooks/pikku-outgoing-webhooks.gen.d.ts +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 +2 -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 +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/src/functions/list-users.function.d.ts.map +1 -1
- package/dist/src/functions/list-users.function.js +13 -2
- package/dist/src/functions/list-users.function.js.map +1 -1
- package/dist/src/functions/list-users.function.test.js +8 -6
- package/dist/src/functions/list-users.function.test.js.map +1 -1
- package/dist/src/lib/is-person.d.ts +12 -11
- package/dist/src/lib/is-person.d.ts.map +1 -1
- package/dist/src/lib/is-person.js +15 -12
- package/dist/src/lib/is-person.js.map +1 -1
- package/dist/src/lib/resolve-audit-users.d.ts +6 -6
- package/dist/src/lib/resolve-audit-users.d.ts.map +1 -1
- package/dist/src/lib/resolve-audit-users.js +4 -4
- package/dist/src/lib/resolve-audit-users.js.map +1 -1
- package/dist/src/lib/resolve-audit-users.test.js +11 -7
- package/dist/src/lib/resolve-audit-users.test.js.map +1 -1
- package/package.json +5 -5
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +0 -33
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +0 -29
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +0 -1
- 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-meta.gen.json → pikku-virtual-users-meta.gen.json} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.188
|
|
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"}
|
|
@@ -1,42 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.188
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This file was generated by the @pikku/cli
|
|
6
6
|
*/
|
|
7
|
-
import type { DeclaredFlag } from '@pikku/core/flag';
|
|
8
7
|
/** Every feature flag declared in this application. */
|
|
9
8
|
export type FeatureFlagName = never;
|
|
10
|
-
/**
|
|
11
|
-
* The declared flag set, for a FeatureFlagStore to sync into its store.
|
|
12
|
-
*
|
|
13
|
-
* Derived from the metadata sidecar rather than inlined, so the import above
|
|
14
|
-
* forces tsc to emit the .json alongside this file — an addon publishes only
|
|
15
|
-
* its compiled output, and a host reads that .json to merge the addon's flags
|
|
16
|
-
* into its own union.
|
|
17
|
-
*
|
|
18
|
-
* Additive on removal: a deleted declaration leaves the row marked
|
|
19
|
-
* `declared: false` rather than switching a feature off on deploy. Use
|
|
20
|
-
* `pikku flags prune` to remove them.
|
|
21
|
-
*/
|
|
22
|
-
export declare const FEATURE_FLAGS: DeclaredFlag[];
|
|
23
|
-
/**
|
|
24
|
-
* Declared flags, keyed by name. Rendered by the console beside each switch.
|
|
25
|
-
*
|
|
26
|
-
* Keyed by `FeatureFlagName` so a misspelled lookup is a type error, which is
|
|
27
|
-
* the whole point of generating the union. The assertion is what
|
|
28
|
-
* `Object.fromEntries` costs — it returns an index signature — and it is
|
|
29
|
-
* sound here because both this object and the union are built from
|
|
30
|
-
* `FEATURE_FLAGS`, so every key of the union is present.
|
|
31
|
-
*/
|
|
32
|
-
export declare const FEATURE_FLAGS_META: Record<FeatureFlagName, DeclaredFlag>;
|
|
33
|
-
/**
|
|
34
|
-
* What a flag source falls back to when its backing store cannot be read: every
|
|
35
|
-
* declared flag on, no rollout, no overrides.
|
|
36
|
-
*
|
|
37
|
-
* Failing open is deliberate. A flag store is not an authorization boundary —
|
|
38
|
-
* `scopes:` is — so an unreadable config must not take the product down with
|
|
39
|
-
* it.
|
|
40
|
-
*/
|
|
41
|
-
export declare const FEATURE_FLAGS_FALLBACK: import("@pikku/core/flag").FlagConfigSnapshot;
|
|
42
9
|
//# sourceMappingURL=pikku-flags.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-flags.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-flags.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"pikku-flags.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-flags.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,uDAAuD;AACvD,MAAM,MAAM,eAAe,GAAG,KAAK,CAAA"}
|
|
@@ -1,35 +1,2 @@
|
|
|
1
|
-
|
|
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 FEATURE_FLAGS = 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
|
-
* `FEATURE_FLAGS`, so every key of the union is present.
|
|
24
|
-
*/
|
|
25
|
-
export const FEATURE_FLAGS_META = Object.fromEntries(FEATURE_FLAGS.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 FEATURE_FLAGS_FALLBACK = compiledFallbackSnapshot(FEATURE_FLAGS);
|
|
1
|
+
export {};
|
|
35
2
|
//# sourceMappingURL=pikku-flags.gen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-flags.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-flags.gen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pikku-flags.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-flags.gen.ts"],"names":[],"mappings":""}
|
|
@@ -86,6 +86,11 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
-
"sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-admin/src/scopes.ts"
|
|
89
|
+
"sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-admin/src/scopes.ts",
|
|
90
|
+
"origin": {
|
|
91
|
+
"kind": "addon",
|
|
92
|
+
"package": "@pikku/addon-admin",
|
|
93
|
+
"displayName": "Pikku Admin"
|
|
94
|
+
}
|
|
90
95
|
}
|
|
91
96
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { VirtualUserMeta, VirtualUsersMeta } from '@pikku/core/virtual-user';
|
|
2
|
+
import type { CoreVirtualUser } from '@pikku/core/virtual-user';
|
|
3
|
+
import type { SystemRoleName } from './pikku-roles.gen.js';
|
|
4
|
+
/** Every environment configured in pikku.config.json. */
|
|
5
|
+
type EnvironmentName = never;
|
|
6
|
+
/**
|
|
7
|
+
* A virtual user whose roles are checked against `defineSystemRole` and whose
|
|
8
|
+
* environments are checked against the config.
|
|
9
|
+
*
|
|
10
|
+
* Omitting `environments` means every environment except the ones flagged
|
|
11
|
+
* `production: true`. Naming a production one additionally requires
|
|
12
|
+
* `disposition: 'accountable'`, which the type cannot express and `pikku`
|
|
13
|
+
* refuses at build time.
|
|
14
|
+
*/
|
|
15
|
+
type TypedVirtualUser = Omit<CoreVirtualUser, 'roles' | 'environments'> & {
|
|
16
|
+
roles?: SystemRoleName[];
|
|
17
|
+
environments?: EnvironmentName[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Declare the people who use this application.
|
|
21
|
+
*/
|
|
22
|
+
export declare const defineVirtualUsers: (virtualUsers: Record<string, TypedVirtualUser>) => void;
|
|
23
|
+
/** Declared virtual users, keyed by id. Read by the console and `pikku virtual-user`. */
|
|
24
|
+
export declare const VIRTUAL_USERS: VirtualUsersMeta;
|
|
25
|
+
export declare const VIRTUAL_USER_LIST: VirtualUserMeta[];
|
|
26
|
+
export {};
|
|
27
|
+
//# 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/scopes/pikku-virtual-users.gen.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AACjF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1D,yDAAyD;AACzD,KAAK,eAAe,GAAG,KAAK,CAAA;AAE5B;;;;;;;;GAQG;AACH,KAAK,gBAAgB,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,cAAc,CAAC,GAAG;IACxE,KAAK,CAAC,EAAE,cAAc,EAAE,CAAA;IACxB,YAAY,CAAC,EAAE,eAAe,EAAE,CAAA;CACjC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,iBAAkB,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,KAAG,IAC9C,CAAA;AAEtC,yFAAyF;AACzF,eAAO,MAAM,aAAa,EAAE,gBAA6D,CAAA;AAEzF,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAAiC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.188
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import { defineVirtualUsers as defineVirtualUsersCore } from '@pikku/core/virtual-user';
|
|
8
|
+
import definitions from './pikku-virtual-users-meta.gen.json' with { type: 'json' };
|
|
9
|
+
/**
|
|
10
|
+
* Declare the people who use this application.
|
|
11
|
+
*/
|
|
12
|
+
export const defineVirtualUsers = (virtualUsers) => defineVirtualUsersCore(virtualUsers);
|
|
13
|
+
/** Declared virtual users, keyed by id. Read by the console and `pikku virtual-user`. */
|
|
14
|
+
export const VIRTUAL_USERS = definitions;
|
|
15
|
+
export const VIRTUAL_USER_LIST = Object.values(VIRTUAL_USERS);
|
|
16
|
+
//# sourceMappingURL=pikku-virtual-users.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-virtual-users.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-virtual-users.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAIvF,OAAO,WAAW,MAAM,qCAAqC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAmBnF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,YAA8C,EAAQ,EAAE,CACzF,sBAAsB,CAAC,YAAY,CAAC,CAAA;AAEtC,yFAAyF;AACzF,MAAM,CAAC,MAAM,aAAa,GAAqB,WAA0C,CAAA;AAEzF,MAAM,CAAC,MAAM,iBAAiB,GAAsB,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.188
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Trigger-specific type definitions for tree-shaking optimization
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { PikkuHTTP } from '@pikku/core/http';
|
|
8
|
+
import type { CoreTriggerWebhookSource, WebhookVerify, WebhookRequest, WebhookReceiveResult, WebhookLifecycleInput, WebhookCheckResult, WebhookSetupResult, WebhookTeardownInput, WebhookTeardownResult } from '@pikku/core/trigger';
|
|
8
9
|
import { CorePikkuTriggerFunction, CorePikkuTriggerFunctionConfig } from '@pikku/core/trigger';
|
|
9
10
|
import type { CoreNodeConfig } from '@pikku/core/node';
|
|
10
11
|
import type { SingletonServices } from '../../../types/application-types.d.js';
|
|
@@ -43,6 +44,8 @@ type PikkuTriggerFunctionConfigWithSchema<InputSchema extends StandardSchemaV1,
|
|
|
43
44
|
* Type definition for trigger wirings.
|
|
44
45
|
* Declares a trigger name and its target pikku function.
|
|
45
46
|
*/
|
|
47
|
+
/** A webhook source is only reached over HTTP, so its request and response are always there. */
|
|
48
|
+
type WebhookHTTP = Required<Pick<PikkuHTTP, 'request' | 'response'>>;
|
|
46
49
|
/**
|
|
47
50
|
* One step of a webhook source: inline, a pikku function, or `ref('addon:fn')`.
|
|
48
51
|
*/
|
|
@@ -52,8 +55,13 @@ type WebhookSourceStep<In, Out> = {
|
|
|
52
55
|
/**
|
|
53
56
|
* A webhook source, using project-specific services.
|
|
54
57
|
*/
|
|
55
|
-
type TriggerWebhookSource<Events extends Record<string, StandardSchemaV1>> = Omit<CoreTriggerWebhookSource<Events>, 'receive' | 'check' | 'setup' | 'teardown'> & {
|
|
56
|
-
|
|
58
|
+
type TriggerWebhookSource<Events extends Record<string, StandardSchemaV1>> = Omit<CoreTriggerWebhookSource<Events>, 'verify' | 'receive' | 'check' | 'setup' | 'teardown'> & {
|
|
59
|
+
verify?: WebhookVerify<any>;
|
|
60
|
+
receive?: {
|
|
61
|
+
func: (services: any, data: WebhookRequest, wire: {
|
|
62
|
+
http: WebhookHTTP;
|
|
63
|
+
}) => Promise<WebhookReceiveResult | void>;
|
|
64
|
+
};
|
|
57
65
|
check?: WebhookSourceStep<WebhookLifecycleInput, WebhookCheckResult>;
|
|
58
66
|
setup?: WebhookSourceStep<WebhookLifecycleInput, WebhookSetupResult>;
|
|
59
67
|
teardown?: WebhookSourceStep<WebhookTeardownInput, WebhookTeardownResult>;
|
|
@@ -95,6 +103,37 @@ type TriggerWebhookSource<Events extends Record<string, StandardSchemaV1>> = Omi
|
|
|
95
103
|
*/
|
|
96
104
|
export declare function pikkuTriggerFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuTriggerFunctionConfigWithSchema<InputSchema, OutputSchema>): PikkuTriggerFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, InputSchema, OutputSchema>;
|
|
97
105
|
export declare function pikkuTriggerFunc<TInput, TOutput = unknown>(triggerOrConfig: PikkuTriggerFunction<TInput, TOutput> | PikkuTriggerFunctionConfig<TInput, TOutput>): PikkuTriggerFunctionConfig<TInput, TOutput>;
|
|
106
|
+
/**
|
|
107
|
+
* A webhook source's `receive`: reads the request into events, or answers a
|
|
108
|
+
* handshake through `http.response`. It is public (`auth: false`) and only its source's route runs it,
|
|
109
|
+
* so it is never callable as an RPC. Signatures are the source's `verify`.
|
|
110
|
+
*
|
|
111
|
+
* @example snippet: pikkuWebhookReceive
|
|
112
|
+
*/
|
|
113
|
+
export declare const pikkuWebhookReceive: (config: {
|
|
114
|
+
/** A short name for the function in the console. */
|
|
115
|
+
title?: string;
|
|
116
|
+
/** What this receive reads, shown wherever the function is listed. */
|
|
117
|
+
description?: string;
|
|
118
|
+
/** Groups the function with others in the console and in `pikku info`. */
|
|
119
|
+
tags?: string[];
|
|
120
|
+
/** Turns the raw request into `{ events }`. A handshake returns nothing and answers through `http.response`. */
|
|
121
|
+
func: (services: Omit<SingletonServices, 'secrets'>, request: WebhookRequest, wire: {
|
|
122
|
+
http: WebhookHTTP;
|
|
123
|
+
}) => Promise<WebhookReceiveResult | void>;
|
|
124
|
+
}) => {
|
|
125
|
+
/** A short name for the function in the console. */
|
|
126
|
+
title?: string;
|
|
127
|
+
/** What this receive reads, shown wherever the function is listed. */
|
|
128
|
+
description?: string;
|
|
129
|
+
/** Groups the function with others in the console and in `pikku info`. */
|
|
130
|
+
tags?: string[];
|
|
131
|
+
/** Turns the raw request into `{ events }`. A handshake returns nothing and answers through `http.response`. */
|
|
132
|
+
func: (services: Omit<SingletonServices, 'secrets'>, request: WebhookRequest, wire: {
|
|
133
|
+
http: WebhookHTTP;
|
|
134
|
+
}) => Promise<WebhookReceiveResult | void>;
|
|
135
|
+
auth: false;
|
|
136
|
+
};
|
|
98
137
|
/**
|
|
99
138
|
* Declares a webhook source this addon ships. An app that wires the addon
|
|
100
139
|
* mounts its route and can register it with the provider, but the source
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-trigger-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,wBAAwB,EAAE,cAAc,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-trigger-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"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"}
|
|
@@ -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.188
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Trigger-specific type definitions for tree-shaking optimization
|
|
@@ -10,6 +10,14 @@ export function pikkuTriggerFunc(triggerOrConfig) {
|
|
|
10
10
|
}
|
|
11
11
|
return triggerOrConfig;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* A webhook source's `receive`: reads the request into events, or answers a
|
|
15
|
+
* handshake through `http.response`. It is public (`auth: false`) and only its source's route runs it,
|
|
16
|
+
* so it is never callable as an RPC. Signatures are the source's `verify`.
|
|
17
|
+
*
|
|
18
|
+
* @example snippet: pikkuWebhookReceive
|
|
19
|
+
*/
|
|
20
|
+
export const pikkuWebhookReceive = (config) => ({ ...config, auth: false });
|
|
13
21
|
/**
|
|
14
22
|
* Declares a webhook source this addon ships. An app that wires the addon
|
|
15
23
|
* mounts its route and can register it with the provider, but the source
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-trigger-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;
|
|
1
|
+
{"version":3,"file":"pikku-trigger-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AA0IH,MAAM,UAAU,gBAAgB,CAAC,eAAoB;IACnD,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,CAAA;IAClC,CAAC;IACD,OAAO,eAAe,CAAA;AACxB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MASnC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,KAAc,EAAE,CAAC,CAAA;AAG3C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAGtC,OAAqC,EACrC,EAAE,GAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-utils-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/utils/pikku-utils-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-utils-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/utils/pikku-utils-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA"}
|