@pikku/addon-meta-conversions 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pikku/addon/pikku-addon-types.gen.ts +1 -1
- package/.pikku/addon/pikku-package.gen.ts +1 -1
- package/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
- package/.pikku/agent/pikku-agent-types.gen.ts +4 -2
- package/.pikku/channel/pikku-channel-types.gen.ts +1 -1
- package/.pikku/console/pikku-addon-meta.gen.json +4 -1
- package/.pikku/console/pikku-node-types.gen.ts +1 -1
- package/.pikku/function/pikku-function-types.gen.ts +117 -74
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +2 -0
- package/.pikku/function/pikku-functions-meta.gen.json +7 -1
- package/.pikku/function/pikku-functions-meta.gen.ts +1 -1
- package/.pikku/function/pikku-functions.gen.ts +1 -1
- package/.pikku/http/pikku-http-types.gen.ts +3 -31
- package/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
- package/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
- package/.pikku/pikku-bootstrap.gen.ts +1 -1
- package/.pikku/pikku-meta-service.gen.ts +1 -1
- package/.pikku/pikku-services.gen.ts +6 -1
- package/.pikku/pikku-types.gen.ts +4 -1
- package/.pikku/queue/pikku-queue-types.gen.ts +1 -1
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -1
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -1
- package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +135 -0
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
- package/.pikku/scenarios/features.gen.json +1 -0
- package/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
- package/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
- package/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
- package/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
- package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
- package/.pikku/scenarios/schemas/register.gen.ts +4 -0
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
- package/.pikku/schemas/register.gen.ts +1 -1
- package/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
- package/.pikku/scopes/pikku-personas.gen.ts +52 -0
- package/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
- package/.pikku/scopes/pikku-roles.gen.ts +41 -0
- package/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
- package/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
- package/.pikku/scopes/pikku-scopes.gen.ts +58 -0
- package/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
- package/.pikku/secrets/pikku-secrets.gen.ts +15 -2
- package/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
- package/.pikku/variables/pikku-variable-types.gen.ts +2 -2
- package/.pikku/variables/pikku-variables.gen.ts +16 -3
- package/.pikku/workflow/personas.gen.json +1 -0
- package/.pikku/workflow/pikku-personas.gen.ts +38 -0
- package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/.pikku/workflow/pikku-workflow-types.gen.ts +429 -5
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +4 -2
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +4 -2
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +1 -1
- package/dist/.pikku/console/pikku-addon-meta.gen.json +4 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +77 -61
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +29 -12
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.ts +117 -74
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +2 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +7 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
- package/dist/.pikku/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions.gen.ts +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -24
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +2 -24
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.ts +3 -31
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +10 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +10 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.ts +1 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/pikku-meta-service.gen.ts +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +6 -1
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +5 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-services.gen.ts +6 -1
- package/dist/.pikku/pikku-types.gen.d.ts +2 -1
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-types.gen.js +3 -1
- package/dist/.pikku/pikku-types.gen.js.map +1 -1
- package/dist/.pikku/pikku-types.gen.ts +4 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +135 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
- package/dist/.pikku/scenarios/features.gen.json +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/schemas/register.gen.js +5 -0
- package/dist/.pikku/scenarios/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/scenarios/schemas/register.gen.ts +4 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
- package/dist/.pikku/schemas/register.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.ts +1 -1
- package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +37 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.js +18 -0
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.ts +52 -0
- package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +31 -0
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.js +19 -0
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.ts +41 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +8 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +6 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
- package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.ts +58 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +12 -2
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +15 -2
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +2 -2
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +13 -3
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.ts +16 -3
- package/dist/.pikku/workflow/personas.gen.json +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts +16 -0
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.ts +38 -0
- package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +254 -5
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +62 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +429 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/src/functions/events/send.function.d.ts +2 -2
- package/dist/src/functions/events/send.function.d.ts.map +1 -1
- package/dist/src/meta-conversions.secret.js +2 -2
- package/dist/src/meta-conversions.secret.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/scenarios/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,KAAK,MAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.gen.js","sourceRoot":"","sources":["../../../../.pikku/scenarios/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { CorePersona, PersonaMeta, PersonasMeta } from '@pikku/core/persona';
|
|
2
|
+
import type { SystemRoleName } from './pikku-roles.gen.js';
|
|
3
|
+
/** Every declared persona. */
|
|
4
|
+
export type PersonaId = never;
|
|
5
|
+
/**
|
|
6
|
+
* The personas a virtual user can actually be.
|
|
7
|
+
*
|
|
8
|
+
* Excludes anyone whose only login is a provider account — driving a consent
|
|
9
|
+
* screen needs a human — and anyone declared `runnable: false`, who exists to
|
|
10
|
+
* be acted upon rather than to act.
|
|
11
|
+
*/
|
|
12
|
+
export type RunnablePersonaId = never;
|
|
13
|
+
/** Every environment configured in pikku.config.json. */
|
|
14
|
+
export type EnvironmentName = never;
|
|
15
|
+
/**
|
|
16
|
+
* A persona whose roles are checked against `defineSystemRole` and whose
|
|
17
|
+
* environments are checked against the config.
|
|
18
|
+
*
|
|
19
|
+
* Omitting `environments` means every environment except the ones flagged
|
|
20
|
+
* `production: true`. Naming a production one additionally requires
|
|
21
|
+
* `disposition: 'accountable'`, which the type cannot express and `pikku`
|
|
22
|
+
* refuses at build time.
|
|
23
|
+
*/
|
|
24
|
+
export type TypedPersona = Omit<CorePersona, 'roles' | 'environments'> & {
|
|
25
|
+
roles?: SystemRoleName[];
|
|
26
|
+
environments?: EnvironmentName[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Declare the people who use this application.
|
|
30
|
+
*
|
|
31
|
+
* A persona while running is a virtual user; there is no second declaration.
|
|
32
|
+
*/
|
|
33
|
+
export declare const definePersonas: (personas: Record<string, TypedPersona>) => void;
|
|
34
|
+
/** Declared personas, keyed by id. Read by the console and `pikku persona`. */
|
|
35
|
+
export declare const PERSONAS: PersonasMeta;
|
|
36
|
+
export declare const PERSONA_LIST: PersonaMeta[];
|
|
37
|
+
//# sourceMappingURL=pikku-personas.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-personas.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-personas.gen.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1D,8BAA8B;AAC9B,MAAM,MAAM,SAAS,GAAG,KAAK,CAAA;AAE7B;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAA;AAErC,yDAAyD;AACzD,MAAM,MAAM,eAAe,GAAG,KAAK,CAAA;AAEnC;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,cAAc,CAAC,GAAG;IACvE,KAAK,CAAC,EAAE,cAAc,EAAE,CAAA;IACxB,YAAY,CAAC,EAAE,eAAe,EAAE,CAAA;CACjC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,KAAG,IAC1C,CAAA;AAE9B,+EAA+E;AAC/E,eAAO,MAAM,QAAQ,EAAE,YAAqD,CAAA;AAE5E,eAAO,MAAM,YAAY,EAAE,WAAW,EAA4B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import { definePersonas as definePersonasCore } from '@pikku/core/persona';
|
|
8
|
+
import definitions from './pikku-personas-meta.gen.json' with { type: 'json' };
|
|
9
|
+
/**
|
|
10
|
+
* Declare the people who use this application.
|
|
11
|
+
*
|
|
12
|
+
* A persona while running is a virtual user; there is no second declaration.
|
|
13
|
+
*/
|
|
14
|
+
export const definePersonas = (personas) => definePersonasCore(personas);
|
|
15
|
+
/** Declared personas, keyed by id. Read by the console and `pikku persona`. */
|
|
16
|
+
export const PERSONAS = definitions;
|
|
17
|
+
export const PERSONA_LIST = Object.values(PERSONAS);
|
|
18
|
+
//# sourceMappingURL=pikku-personas.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-personas.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-personas.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAG1E,OAAO,WAAW,MAAM,gCAAgC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AA+B9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAsC,EAAQ,EAAE,CAC7E,kBAAkB,CAAC,QAAQ,CAAC,CAAA;AAE9B,+EAA+E;AAC/E,MAAM,CAAC,MAAM,QAAQ,GAAiB,WAAsC,CAAA;AAE5E,MAAM,CAAC,MAAM,YAAY,GAAkB,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import { definePersonas as definePersonasCore } from '@pikku/core/persona'
|
|
8
|
+
import type { CorePersona, PersonaMeta, PersonasMeta } from '@pikku/core/persona'
|
|
9
|
+
import type { SystemRoleName } from './pikku-roles.gen.js'
|
|
10
|
+
import definitions from './pikku-personas-meta.gen.json' with { type: 'json' }
|
|
11
|
+
|
|
12
|
+
/** Every declared persona. */
|
|
13
|
+
export type PersonaId = never
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The personas a virtual user can actually be.
|
|
17
|
+
*
|
|
18
|
+
* Excludes anyone whose only login is a provider account — driving a consent
|
|
19
|
+
* screen needs a human — and anyone declared `runnable: false`, who exists to
|
|
20
|
+
* be acted upon rather than to act.
|
|
21
|
+
*/
|
|
22
|
+
export type RunnablePersonaId = never
|
|
23
|
+
|
|
24
|
+
/** Every environment configured in pikku.config.json. */
|
|
25
|
+
export type EnvironmentName = never
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A persona whose roles are checked against `defineSystemRole` and whose
|
|
29
|
+
* environments are checked against the config.
|
|
30
|
+
*
|
|
31
|
+
* Omitting `environments` means every environment except the ones flagged
|
|
32
|
+
* `production: true`. Naming a production one additionally requires
|
|
33
|
+
* `disposition: 'accountable'`, which the type cannot express and `pikku`
|
|
34
|
+
* refuses at build time.
|
|
35
|
+
*/
|
|
36
|
+
export type TypedPersona = Omit<CorePersona, 'roles' | 'environments'> & {
|
|
37
|
+
roles?: SystemRoleName[]
|
|
38
|
+
environments?: EnvironmentName[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Declare the people who use this application.
|
|
43
|
+
*
|
|
44
|
+
* A persona while running is a virtual user; there is no second declaration.
|
|
45
|
+
*/
|
|
46
|
+
export const definePersonas = (personas: Record<string, TypedPersona>): void =>
|
|
47
|
+
definePersonasCore(personas)
|
|
48
|
+
|
|
49
|
+
/** Declared personas, keyed by id. Read by the console and `pikku persona`. */
|
|
50
|
+
export const PERSONAS: PersonasMeta = definitions as unknown as PersonasMeta
|
|
51
|
+
|
|
52
|
+
export const PERSONA_LIST: PersonaMeta[] = Object.values(PERSONAS)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import type { SystemRole } from '@pikku/core/role';
|
|
8
|
+
/**
|
|
9
|
+
* Every role that ships with this application.
|
|
10
|
+
*
|
|
11
|
+
* Roles an admin composes in the console are not here and cannot be: they do
|
|
12
|
+
* not exist at build time, and can be deleted after it.
|
|
13
|
+
*/
|
|
14
|
+
export type SystemRoleName = never;
|
|
15
|
+
/**
|
|
16
|
+
* The declared role set, for a ScopeService to sync into its store.
|
|
17
|
+
*
|
|
18
|
+
* Derived from the metadata sidecar rather than inlined, so the import above
|
|
19
|
+
* forces tsc to emit the .json alongside this file — an addon publishes only
|
|
20
|
+
* its compiled output, and a host reads that .json to merge the addon's roles
|
|
21
|
+
* into its own union.
|
|
22
|
+
*
|
|
23
|
+
* Additive on removal: a deleted declaration leaves an inert row rather than
|
|
24
|
+
* revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
|
|
25
|
+
*/
|
|
26
|
+
export declare const SYSTEM_ROLES: SystemRole[];
|
|
27
|
+
/** Declared roles, keyed by name. Rendered by the console when granting. */
|
|
28
|
+
export declare const SYSTEM_ROLES_META: Record<string, SystemRole>;
|
|
29
|
+
/** Whether a role name is declared in code, and therefore not editable. */
|
|
30
|
+
export declare const isSystemRole: (name: string) => boolean;
|
|
31
|
+
//# sourceMappingURL=pikku-roles.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-roles.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-roles.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAA6B,MAAM,kBAAkB,CAAA;AAI7E;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAA;AAElC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,UAAU,EAEpC,CAAA;AAED,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAExD,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,OACmB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { flattenSystemRoleDefinitions } from '@pikku/core/role';
|
|
2
|
+
import definitions from './pikku-roles-meta.gen.json' with { type: 'json' };
|
|
3
|
+
/**
|
|
4
|
+
* The declared role set, for a ScopeService 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 roles
|
|
9
|
+
* into its own union.
|
|
10
|
+
*
|
|
11
|
+
* Additive on removal: a deleted declaration leaves an inert row rather than
|
|
12
|
+
* revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
|
|
13
|
+
*/
|
|
14
|
+
export const SYSTEM_ROLES = flattenSystemRoleDefinitions(Object.values(definitions));
|
|
15
|
+
/** Declared roles, keyed by name. Rendered by the console when granting. */
|
|
16
|
+
export const SYSTEM_ROLES_META = Object.fromEntries(SYSTEM_ROLES.map((role) => [role.name, role]));
|
|
17
|
+
/** Whether a role name is declared in code, and therefore not editable. */
|
|
18
|
+
export const isSystemRole = (name) => Object.prototype.hasOwnProperty.call(SYSTEM_ROLES_META, name);
|
|
19
|
+
//# sourceMappingURL=pikku-roles.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-roles.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-roles.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,WAAW,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAU3E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,YAAY,GAAiB,4BAA4B,CACpE,MAAM,CAAC,MAAM,CAAC,WAAwC,CAAC,CACxD,CAAA;AAED,4EAA4E;AAC5E,MAAM,CAAC,MAAM,iBAAiB,GAA+B,MAAM,CAAC,WAAW,CAC7E,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAC9C,CAAA;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAW,EAAE,CACpD,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import type { SystemRole, SystemRoleDefinitionsMeta } from '@pikku/core/role'
|
|
8
|
+
import { flattenSystemRoleDefinitions } from '@pikku/core/role'
|
|
9
|
+
import definitions from './pikku-roles-meta.gen.json' with { type: 'json' }
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Every role that ships with this application.
|
|
13
|
+
*
|
|
14
|
+
* Roles an admin composes in the console are not here and cannot be: they do
|
|
15
|
+
* not exist at build time, and can be deleted after it.
|
|
16
|
+
*/
|
|
17
|
+
export type SystemRoleName = never
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The declared role set, for a ScopeService to sync into its store.
|
|
21
|
+
*
|
|
22
|
+
* Derived from the metadata sidecar rather than inlined, so the import above
|
|
23
|
+
* forces tsc to emit the .json alongside this file — an addon publishes only
|
|
24
|
+
* its compiled output, and a host reads that .json to merge the addon's roles
|
|
25
|
+
* into its own union.
|
|
26
|
+
*
|
|
27
|
+
* Additive on removal: a deleted declaration leaves an inert row rather than
|
|
28
|
+
* revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
|
|
29
|
+
*/
|
|
30
|
+
export const SYSTEM_ROLES: SystemRole[] = flattenSystemRoleDefinitions(
|
|
31
|
+
Object.values(definitions as SystemRoleDefinitionsMeta)
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
/** Declared roles, keyed by name. Rendered by the console when granting. */
|
|
35
|
+
export const SYSTEM_ROLES_META: Record<string, SystemRole> = Object.fromEntries(
|
|
36
|
+
SYSTEM_ROLES.map((role) => [role.name, role])
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
/** Whether a role name is declared in code, and therefore not editable. */
|
|
40
|
+
export const isSystemRole = (name: string): boolean =>
|
|
41
|
+
Object.prototype.hasOwnProperty.call(SYSTEM_ROLES_META, name)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
export { defineScope } from '@pikku/core/scope';
|
|
5
|
+
export type { CoreScopes, CoreScopeNode, FlatScope, ScopeDefinitionMeta, ScopeDefinitionsMeta } from '@pikku/core/scope';
|
|
6
|
+
export { defineSystemRole } from '@pikku/core/role';
|
|
7
|
+
export type { CoreSystemRole, CoreSystemRoles, SystemRole, SystemRoleDefinitionMeta, SystemRoleDefinitionsMeta } from '@pikku/core/role';
|
|
8
|
+
//# sourceMappingURL=pikku-scope-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scope-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scope-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scope-types.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scope-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
export { defineScope } from '@pikku/core/scope'
|
|
5
|
+
export type { CoreScopes, CoreScopeNode, FlatScope, ScopeDefinitionMeta, ScopeDefinitionsMeta } from '@pikku/core/scope'
|
|
6
|
+
export { defineSystemRole } from '@pikku/core/role'
|
|
7
|
+
export type { CoreSystemRole, CoreSystemRoles, SystemRole, SystemRoleDefinitionMeta, SystemRoleDefinitionsMeta } from '@pikku/core/role'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import type { FlatScope } from '@pikku/core/scope';
|
|
8
|
+
/**
|
|
9
|
+
* Every scope a function can require.
|
|
10
|
+
*
|
|
11
|
+
* A `:*` entry requires the scope and all of its descendants. Held grants are
|
|
12
|
+
* matched against this by `verifyScopes` — `admin:*` on a session satisfies
|
|
13
|
+
* any `admin:...` requirement.
|
|
14
|
+
*/
|
|
15
|
+
export type ScopeId = never;
|
|
16
|
+
export interface ScopeMeta {
|
|
17
|
+
id: ScopeId;
|
|
18
|
+
displayName?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The declared scope set, for a ScopeService to sync into its store.
|
|
23
|
+
*
|
|
24
|
+
* Derived from the metadata sidecar rather than inlined, so that the import
|
|
25
|
+
* above forces tsc to emit the .json alongside this file. An addon publishes
|
|
26
|
+
* only its compiled output, and a host reads that .json to merge the addon's
|
|
27
|
+
* scopes into its own `ScopeId` union and declared set — an uncopied sidecar
|
|
28
|
+
* would leave the addon's scopes ungrantable.
|
|
29
|
+
*
|
|
30
|
+
* Additive: removing a declaration leaves an inert row rather than revoking a
|
|
31
|
+
* grant mid-deploy. Use `pikku scopes prune` to remove them deliberately.
|
|
32
|
+
*/
|
|
33
|
+
export declare const SCOPES: FlatScope[];
|
|
34
|
+
/** Declared scopes, keyed by id. Rendered by the console when granting. */
|
|
35
|
+
export declare const SCOPES_META: Record<string, ScopeMeta>;
|
|
36
|
+
//# sourceMappingURL=pikku-scopes.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scopes.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAwB,MAAM,mBAAmB,CAAA;AAIxE;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,CAAA;AAE3B,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,EAE7B,CAAA;AAMD,2EAA2E;AAC3E,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAWjD,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { flattenScopeDefinitions } from '@pikku/core/scope';
|
|
2
|
+
import definitions from './pikku-scopes-meta.gen.json' with { type: 'json' };
|
|
3
|
+
/**
|
|
4
|
+
* The declared scope set, for a ScopeService to sync into its store.
|
|
5
|
+
*
|
|
6
|
+
* Derived from the metadata sidecar rather than inlined, so that the import
|
|
7
|
+
* above forces tsc to emit the .json alongside this file. An addon publishes
|
|
8
|
+
* only its compiled output, and a host reads that .json to merge the addon's
|
|
9
|
+
* scopes into its own `ScopeId` union and declared set — an uncopied sidecar
|
|
10
|
+
* would leave the addon's scopes ungrantable.
|
|
11
|
+
*
|
|
12
|
+
* Additive: removing a declaration leaves an inert row rather than revoking a
|
|
13
|
+
* grant mid-deploy. Use `pikku scopes prune` to remove them deliberately.
|
|
14
|
+
*/
|
|
15
|
+
export const SCOPES = flattenScopeDefinitions(Object.values(definitions));
|
|
16
|
+
const DISPLAY_NAMES = {};
|
|
17
|
+
/** Declared scopes, keyed by id. Rendered by the console when granting. */
|
|
18
|
+
export const SCOPES_META = Object.fromEntries(SCOPES.map((scope) => [
|
|
19
|
+
scope.id,
|
|
20
|
+
{
|
|
21
|
+
id: scope.id,
|
|
22
|
+
...(DISPLAY_NAMES[scope.id]
|
|
23
|
+
? { displayName: DISPLAY_NAMES[scope.id] }
|
|
24
|
+
: {}),
|
|
25
|
+
...(scope.description ? { description: scope.description } : {}),
|
|
26
|
+
},
|
|
27
|
+
]));
|
|
28
|
+
//# sourceMappingURL=pikku-scopes.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scopes.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,WAAW,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAiB5E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,MAAM,GAAgB,uBAAuB,CACxD,MAAM,CAAC,MAAM,CAAC,WAAmC,CAAC,CACnD,CAAA;AAED,MAAM,aAAa,GAA2B,EAE7C,CAAA;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAA8B,MAAM,CAAC,WAAW,CACtE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE;IACR;QACE,EAAE,EAAE,KAAK,CAAC,EAAa;QACvB,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,CAAC,CAAC,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE;YAC1C,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE;CACF,CAAC,CACH,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import type { FlatScope, ScopeDefinitionsMeta } from '@pikku/core/scope'
|
|
8
|
+
import { flattenScopeDefinitions } from '@pikku/core/scope'
|
|
9
|
+
import definitions from './pikku-scopes-meta.gen.json' with { type: 'json' }
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Every scope a function can require.
|
|
13
|
+
*
|
|
14
|
+
* A `:*` entry requires the scope and all of its descendants. Held grants are
|
|
15
|
+
* matched against this by `verifyScopes` — `admin:*` on a session satisfies
|
|
16
|
+
* any `admin:...` requirement.
|
|
17
|
+
*/
|
|
18
|
+
export type ScopeId = never
|
|
19
|
+
|
|
20
|
+
export interface ScopeMeta {
|
|
21
|
+
id: ScopeId
|
|
22
|
+
displayName?: string
|
|
23
|
+
description?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The declared scope set, for a ScopeService to sync into its store.
|
|
28
|
+
*
|
|
29
|
+
* Derived from the metadata sidecar rather than inlined, so that the import
|
|
30
|
+
* above forces tsc to emit the .json alongside this file. An addon publishes
|
|
31
|
+
* only its compiled output, and a host reads that .json to merge the addon's
|
|
32
|
+
* scopes into its own `ScopeId` union and declared set — an uncopied sidecar
|
|
33
|
+
* would leave the addon's scopes ungrantable.
|
|
34
|
+
*
|
|
35
|
+
* Additive: removing a declaration leaves an inert row rather than revoking a
|
|
36
|
+
* grant mid-deploy. Use `pikku scopes prune` to remove them deliberately.
|
|
37
|
+
*/
|
|
38
|
+
export const SCOPES: FlatScope[] = flattenScopeDefinitions(
|
|
39
|
+
Object.values(definitions as ScopeDefinitionsMeta)
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
const DISPLAY_NAMES: Record<string, string> = {
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Declared scopes, keyed by id. Rendered by the console when granting. */
|
|
47
|
+
export const SCOPES_META: Record<string, ScopeMeta> = Object.fromEntries(
|
|
48
|
+
SCOPES.map((scope) => [
|
|
49
|
+
scope.id,
|
|
50
|
+
{
|
|
51
|
+
id: scope.id as ScopeId,
|
|
52
|
+
...(DISPLAY_NAMES[scope.id]
|
|
53
|
+
? { displayName: DISPLAY_NAMES[scope.id] }
|
|
54
|
+
: {}),
|
|
55
|
+
...(scope.description ? { description: scope.description } : {}),
|
|
56
|
+
},
|
|
57
|
+
])
|
|
58
|
+
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { defineSecret } from '@pikku/core/secret';
|
|
5
5
|
export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret';
|
|
6
6
|
//# sourceMappingURL=pikku-secret-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-secret-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"pikku-secret-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-secret-types.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"pikku-secret-types.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { defineSecret } from '@pikku/core/secret'
|
|
5
5
|
export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret'
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
3
|
*/
|
|
4
4
|
import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
|
|
5
5
|
import type { SecretService } from '@pikku/core/services';
|
|
6
|
+
import type { SecretDefinitionsMeta } from '@pikku/core/secret';
|
|
6
7
|
import type { z } from 'zod';
|
|
7
8
|
import { metaConversionsSecretsSchema } from '../../src/meta-conversions.secret.js';
|
|
9
|
+
/**
|
|
10
|
+
* Every secret declared in this package.
|
|
11
|
+
*
|
|
12
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
13
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
14
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
15
|
+
* secrets — an uncopied sidecar leaves them invisible to the host.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SECRETS_META: SecretDefinitionsMeta;
|
|
8
18
|
export interface CredentialsMap {
|
|
9
19
|
'META_CONVERSIONS_CREDENTIALS': z.infer<typeof metaConversionsSecretsSchema>;
|
|
10
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-secrets.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAA;AAEnF,MAAM,WAAW,cAAc;IAC7B,8BAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;CAC7E;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAA;AAM3C,qBAAa,kBAAmB,SAAQ,sBAAsB,CAAC,cAAc,CAAC;gBAChE,OAAO,EAAE,aAAa;CAGnC"}
|
|
1
|
+
{"version":3,"file":"pikku-secrets.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAE/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAA;AAEnF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,qBACW,CAAA;AAEtC,MAAM,WAAW,cAAc;IAC7B,8BAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;CAC7E;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAA;AAM3C,qBAAa,kBAAmB,SAAQ,sBAAsB,CAAC,cAAc,CAAC;gBAChE,OAAO,EAAE,aAAa;CAGnC"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
3
|
*/
|
|
4
4
|
import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
|
|
5
|
+
import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' };
|
|
6
|
+
/**
|
|
7
|
+
* Every secret declared in this package.
|
|
8
|
+
*
|
|
9
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
10
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
11
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
12
|
+
* secrets — an uncopied sidecar leaves them invisible to the host.
|
|
13
|
+
*/
|
|
14
|
+
export const SECRETS_META = secretsMeta;
|
|
5
15
|
const CREDENTIALS_META = {
|
|
6
|
-
'META_CONVERSIONS_CREDENTIALS': { name: 'metaConversions', displayName:
|
|
16
|
+
'META_CONVERSIONS_CREDENTIALS': { name: 'metaConversions', displayName: "Meta Conversions API" }
|
|
7
17
|
};
|
|
8
18
|
export class TypedSecretService extends CoreTypedSecretService {
|
|
9
19
|
constructor(secrets) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-secrets.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-secrets.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AAGxG,OAAO,WAAW,MAAM,+BAA+B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAI7E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GACvB,WAAoC,CAAA;AAQtC,MAAM,gBAAgB,GAAmC;IACvD,8BAA8B,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,sBAAsB,EAAE;CACjG,CAAA;AAED,MAAM,OAAO,kBAAmB,SAAQ,sBAAsC;IAC5E,YAAY,OAAsB;QAChC,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAA;IAClC,CAAC;CACF"}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
3
|
*/
|
|
4
4
|
import { TypedSecretService as CoreTypedSecretService, type CredentialMeta } from '@pikku/core/services'
|
|
5
5
|
import type { SecretService } from '@pikku/core/services'
|
|
6
|
+
import type { SecretDefinitionsMeta } from '@pikku/core/secret'
|
|
7
|
+
import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' }
|
|
6
8
|
import type { z } from 'zod'
|
|
7
9
|
import { metaConversionsSecretsSchema } from '../../src/meta-conversions.secret.js'
|
|
8
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Every secret declared in this package.
|
|
13
|
+
*
|
|
14
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
15
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
16
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
17
|
+
* secrets — an uncopied sidecar leaves them invisible to the host.
|
|
18
|
+
*/
|
|
19
|
+
export const SECRETS_META: SecretDefinitionsMeta =
|
|
20
|
+
secretsMeta as SecretDefinitionsMeta
|
|
21
|
+
|
|
9
22
|
export interface CredentialsMap {
|
|
10
23
|
'META_CONVERSIONS_CREDENTIALS': z.infer<typeof metaConversionsSecretsSchema>
|
|
11
24
|
}
|
|
@@ -13,7 +26,7 @@ export interface CredentialsMap {
|
|
|
13
26
|
export type SecretId = keyof CredentialsMap
|
|
14
27
|
|
|
15
28
|
const CREDENTIALS_META: Record<string, CredentialMeta> = {
|
|
16
|
-
'META_CONVERSIONS_CREDENTIALS': { name: 'metaConversions', displayName:
|
|
29
|
+
'META_CONVERSIONS_CREDENTIALS': { name: 'metaConversions', displayName: "Meta Conversions API" }
|
|
17
30
|
}
|
|
18
31
|
|
|
19
32
|
export class TypedSecretService extends CoreTypedSecretService<CredentialsMap> {
|