@pikku/addon-mindee 0.0.6 → 0.0.8
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/README.md +1 -1
- 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/console/pikku-addon-meta.gen.json +16 -0
- package/dist/.pikku/addon/credentials/index.d.ts +1 -1
- package/dist/.pikku/addon/credentials/index.js +1 -1
- package/dist/.pikku/addon/credentials/index.ts +1 -1
- package/dist/.pikku/addon/credentials/pikku-credentials.gen.d.ts +1 -1
- package/dist/.pikku/addon/credentials/pikku-credentials.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/credentials/pikku-credentials.gen.js +1 -1
- package/dist/.pikku/addon/credentials/pikku-credentials.gen.ts +1 -1
- 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 +48 -48
- 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 +47 -45
- package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +4 -2
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +2 -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 +2 -1
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +3 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts +12 -3
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.js +11 -1
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.ts +14 -3
- 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/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 +7 -2
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.ts +10 -2
- 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/mvcet6gb.all.jsonl +3 -0
- package/dist/.pikku/runs/mvcf0qu1.all.jsonl +3 -0
- package/dist/src/functions/invoicePredict.function.d.ts +3 -3
- package/dist/src/functions/invoicePredict.function.d.ts.map +1 -1
- package/dist/src/functions/receiptPredict.function.d.ts +3 -3
- package/dist/src/functions/receiptPredict.function.d.ts.map +1 -1
- package/dist/src/mindee-api.service.d.ts.map +1 -1
- package/dist/src/mindee-api.service.js.map +1 -1
- package/package.json +6 -6
- 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
|
/**
|
|
5
5
|
* Core function types for all wirings
|
|
@@ -13,7 +13,8 @@ import type { NodeType } from '@pikku/core/node';
|
|
|
13
13
|
import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js';
|
|
14
14
|
import type { PikkuPermission } from '../auth/pikku-auth-types.gen.js';
|
|
15
15
|
import type { ScopeId } from '../scopes/pikku-scopes.gen.js';
|
|
16
|
-
type CredentialsMap
|
|
16
|
+
import type { CredentialsMap } from '../credentials/pikku-credentials.gen.js';
|
|
17
|
+
import type { FeatureFlagName } from '../scopes/pikku-flags.gen.js';
|
|
17
18
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
18
19
|
import { CorePikkuFunction, CorePikkuFunctionSessionless } from '@pikku/core/function';
|
|
19
20
|
import type { UserSession } from '../../../types/application-types.d.js';
|
|
@@ -22,9 +23,22 @@ import type { Services } from '../../../types/application-types.d.js';
|
|
|
22
23
|
import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
|
|
23
24
|
import type { RequiredSingletonServices } from '../pikku-services.gen.js';
|
|
24
25
|
import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js';
|
|
25
|
-
import type { TypedScenario,
|
|
26
|
+
import type { TypedScenario, TypedVirtualUsers } from '../scenarios/pikku-scenario-types.gen.js';
|
|
27
|
+
/**
|
|
28
|
+
* The services that live for the process — the ones built once in `createConfig`/
|
|
29
|
+
* `createSingletonServices` and shared by every request.
|
|
30
|
+
*/
|
|
26
31
|
export type { SingletonServices as SingletonServices };
|
|
32
|
+
/**
|
|
33
|
+
* Everything a function is handed as its first argument: the singleton services
|
|
34
|
+
* plus whatever is built per request. This is the type to widen when you add a
|
|
35
|
+
* service.
|
|
36
|
+
*/
|
|
27
37
|
export type { Services as Services };
|
|
38
|
+
/**
|
|
39
|
+
* The signed-in user as this project defines it. Reached on the wire as
|
|
40
|
+
* `session`, and replaced with `setSession`.
|
|
41
|
+
*/
|
|
28
42
|
export type Session = UserSession;
|
|
29
43
|
/**
|
|
30
44
|
* The services a wired function actually receives. The inspector records which
|
|
@@ -51,7 +65,7 @@ export type WiredServices = SecretlessServices<RequiredSingletonServices & Servi
|
|
|
51
65
|
*/
|
|
52
66
|
export type NodeConfig = {
|
|
53
67
|
displayName: string;
|
|
54
|
-
category:
|
|
68
|
+
category: 'ai';
|
|
55
69
|
type: NodeType;
|
|
56
70
|
errorOutput?: boolean;
|
|
57
71
|
};
|
|
@@ -89,7 +103,7 @@ export declare const pikkuApprovalDescription: <In = unknown, RequiredServices e
|
|
|
89
103
|
* type vary with its return type and cost a `func` written against the
|
|
90
104
|
* `PikkuFunction | PikkuFunctionSessionless` union its contextual typing.
|
|
91
105
|
*/
|
|
92
|
-
export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices, ScenarioOut = unknown> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>,
|
|
106
|
+
export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices, ScenarioOut = unknown> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedVirtualUsers, CredentialsMap>, RequiredWires>>;
|
|
93
107
|
/**
|
|
94
108
|
* A session-aware API function that requires user authentication.
|
|
95
109
|
* Use this for protected endpoints that need access to user session data.
|
|
@@ -98,7 +112,7 @@ export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires ex
|
|
|
98
112
|
* @template Out - The output type that the function returns
|
|
99
113
|
* @template RequiredServices - Services required by this function
|
|
100
114
|
*/
|
|
101
|
-
export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuFunction<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario,
|
|
115
|
+
export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuFunction<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedVirtualUsers, CredentialsMap>, RequiredWires>>;
|
|
102
116
|
/**
|
|
103
117
|
* Helper type to infer the output type from a Standard Schema
|
|
104
118
|
*/
|
|
@@ -111,14 +125,14 @@ export type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output>
|
|
|
111
125
|
* @template Out - The output type
|
|
112
126
|
* @template PikkuFunc - The function type (can be narrowed to PikkuFunction or PikkuFunctionSessionless)
|
|
113
127
|
*/
|
|
114
|
-
export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>, 'node'> & {
|
|
128
|
+
export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId, FeatureFlagName>, 'node'> & {
|
|
115
129
|
node?: NodeConfig;
|
|
116
130
|
};
|
|
117
131
|
/**
|
|
118
132
|
* {@link PikkuFunctionConfig} for a function that runs without a session.
|
|
119
133
|
* Has no `scopes`: an anonymous caller holds none, so none can ever be met.
|
|
120
134
|
*/
|
|
121
|
-
type PikkuFunctionSessionlessConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>, 'node'> & {
|
|
135
|
+
type PikkuFunctionSessionlessConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, FeatureFlagName>, 'node'> & {
|
|
122
136
|
node?: NodeConfig;
|
|
123
137
|
};
|
|
124
138
|
/**
|
|
@@ -131,7 +145,7 @@ type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1 ? InferS
|
|
|
131
145
|
* Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
|
|
132
146
|
* so adding a field on the core type automatically propagates here.
|
|
133
147
|
*/
|
|
134
|
-
type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuFunctionConfig<PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>, CorePikkuPermission<any>, PikkuMiddleware, undefined, undefined, ScopeId>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'> & {
|
|
148
|
+
type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuFunctionConfig<PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>, CorePikkuPermission<any>, PikkuMiddleware, undefined, undefined, ScopeId, FeatureFlagName>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'> & {
|
|
135
149
|
func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
|
|
136
150
|
input?: InputSchema;
|
|
137
151
|
output?: OutputSchema;
|
|
@@ -149,25 +163,18 @@ type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefi
|
|
|
149
163
|
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
150
164
|
* @returns The normalized configuration object
|
|
151
165
|
*
|
|
152
|
-
* @example
|
|
153
|
-
* ```typescript
|
|
154
|
-
* const createUserInput = z.object({ name: z.string(), email: z.string() })
|
|
155
|
-
* const createUserOutput = z.object({ id: z.number() })
|
|
156
|
-
*
|
|
157
|
-
* const createUser = pikkuFunc({
|
|
158
|
-
* input: createUserInput,
|
|
159
|
-
* output: createUserOutput,
|
|
160
|
-
* func: async ({db}, input) => {
|
|
161
|
-
* // input is typed as { name: string, email: string }
|
|
162
|
-
* const user = await db.users.create(input)
|
|
163
|
-
* return { id: user.id } // must match output schema
|
|
164
|
-
* }
|
|
165
|
-
* })
|
|
166
|
-
* ```
|
|
166
|
+
* @example snippet: sessionFunction
|
|
167
167
|
*/
|
|
168
168
|
export declare function pikkuFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
169
169
|
export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
170
|
-
|
|
170
|
+
/**
|
|
171
|
+
* A `pikkuFunc` whose input and output are already the shared list shape —
|
|
172
|
+
* filters, sort, paging in; rows and a total out — so a listing endpoint pages
|
|
173
|
+
* the same way everywhere.
|
|
174
|
+
*
|
|
175
|
+
* @example snippet: listFunction
|
|
176
|
+
*/
|
|
177
|
+
export declare const pikkuListFunc: <F extends Record<string, unknown> = {}, Row = unknown, S extends string = never>(config: PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'>) => PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'>;
|
|
171
178
|
/**
|
|
172
179
|
* Configuration object for sessionless Pikku functions with Zod schema validation.
|
|
173
180
|
*/
|
|
@@ -194,19 +201,7 @@ type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchema
|
|
|
194
201
|
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
195
202
|
* @returns The normalized configuration object
|
|
196
203
|
*
|
|
197
|
-
* @example
|
|
198
|
-
* ```typescript
|
|
199
|
-
* const greetInput = z.object({ name: z.string() })
|
|
200
|
-
* const greetOutput = z.object({ message: z.string() })
|
|
201
|
-
*
|
|
202
|
-
* const greet = pikkuSessionlessFunc({
|
|
203
|
-
* input: greetInput,
|
|
204
|
-
* output: greetOutput,
|
|
205
|
-
* func: async (_services, { name }) => {
|
|
206
|
-
* return { message: `Hello, ${name}!` }
|
|
207
|
-
* }
|
|
208
|
-
* })
|
|
209
|
-
* ```
|
|
204
|
+
* @example snippet: readFunction
|
|
210
205
|
*/
|
|
211
206
|
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredServices extends SecretlessServices<Services> = WiredServices>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc', RequiredServices>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
212
207
|
export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices> | PikkuFunctionSessionlessConfig<In, Out, 'session' | 'rpc', PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices>>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
@@ -217,16 +212,9 @@ export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices
|
|
|
217
212
|
* @param func - Function definition, either direct function or configuration object
|
|
218
213
|
* @returns The normalized configuration object
|
|
219
214
|
*
|
|
220
|
-
* @example
|
|
221
|
-
* ```typescript
|
|
222
|
-
* const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
|
|
223
|
-
* logger.info('Starting cleanup of temporary files')
|
|
224
|
-
* await fileSystem.deleteDirectory('/tmp/uploads')
|
|
225
|
-
* logger.info('Cleanup completed')
|
|
226
|
-
* })
|
|
227
|
-
* ```
|
|
215
|
+
* @example snippet: cleanupFunction
|
|
228
216
|
*/
|
|
229
|
-
export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void,
|
|
217
|
+
export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, 'session' | 'rpc'> | PikkuFunctionSessionlessConfig<void, void, 'session' | 'rpc'>) => PikkuFunctionConfig<void, void, 'session' | 'rpc'>;
|
|
230
218
|
/**
|
|
231
219
|
* References a registered function by name for use in any wiring.
|
|
232
220
|
* Works for both local and addon functions — resolves via RPC at runtime.
|
|
@@ -244,7 +232,7 @@ export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void,
|
|
|
244
232
|
* wireHTTP({ route: '/greet', method: 'post', func: ref('greet') })
|
|
245
233
|
* ```
|
|
246
234
|
*/
|
|
247
|
-
export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name][
|
|
235
|
+
export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]['input'], FlattenedRPCMap[Name]['output'], 'session' | 'rpc'>;
|
|
248
236
|
/**
|
|
249
237
|
* Declares a capability the connected client answers, reachable from any
|
|
250
238
|
* `wireChannel` function as `channel.remote(name, input)`.
|
|
@@ -272,9 +260,21 @@ export declare function pikkuRemoteChannelFunc<InputSchema extends StandardSchem
|
|
|
272
260
|
declare const __addonHttp: {};
|
|
273
261
|
declare const __addonChannel: {};
|
|
274
262
|
declare const __addonCli: {};
|
|
263
|
+
/**
|
|
264
|
+
* Names an HTTP route an installed addon wires, so you can link or redirect to
|
|
265
|
+
* it without hardcoding a path the addon may move.
|
|
266
|
+
*/
|
|
275
267
|
export declare const refHTTP: <Name extends keyof typeof __addonHttp>(name: Name, options?: {
|
|
276
268
|
basePath?: string;
|
|
277
269
|
}) => (typeof __addonHttp)[Name];
|
|
270
|
+
/**
|
|
271
|
+
* Names a channel an installed addon wires, for connecting to it without
|
|
272
|
+
* hardcoding its name.
|
|
273
|
+
*/
|
|
278
274
|
export declare const refChannel: <Name extends keyof typeof __addonChannel>(name: Name) => (typeof __addonChannel)[Name];
|
|
275
|
+
/**
|
|
276
|
+
* Names a CLI command an installed addon wires, for invoking it without
|
|
277
|
+
* hardcoding its name.
|
|
278
|
+
*/
|
|
279
279
|
export declare const refCLI: <Name extends keyof typeof __addonCli>(name: Name) => (typeof __addonCli)[Name];
|
|
280
280
|
//# sourceMappingURL=pikku-function-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-function-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EACV,uBAAuB,EACvB,kCAAkC,EAClC,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAC5D,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"pikku-function-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EACV,uBAAuB,EACvB,kCAAkC,EAClC,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC7B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAA;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAA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AAsB,CACpC,WAAW,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,EAC5D,YAAY,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,EAE7D,MAAM,EAAE,IAAI,CACV,wCAAwC,CAAC,WAAW,EAAE,YAAY,EAAE,SAAS,GAAG,KAAK,CAAC,EACtF,MAAM,CACP,GACA,mBAAmB,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC,CASnG;AAMD;;;;GAIG;AACH,QAAA,MAAM,WAAW,IAAc,CAAA;AAC/B,QAAA,MAAM,cAAc,IAAc,CAAA;AAClC,QAAA,MAAM,UAAU,IAAc,CAAA;AAE9B;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,IAAI,SAAS,MAAM,OAAO,WAAW,QACrD,IAAI,YACA;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KAC9B,CAAC,OAAO,WAAW,CAAC,CAAC,IAAI,CAO3B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,IAAI,SAAS,MAAM,OAAO,cAAc,QAC3D,IAAI,KACT,CAAC,OAAO,cAAc,CAAC,CAAC,IAAI,CAAyB,CAAA;AAExD;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,IAAI,SAAS,MAAM,OAAO,UAAU,QACnD,IAAI,KACT,CAAC,OAAO,UAAU,CAAC,CAAC,IAAI,CAAqB,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.190
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function types for all wirings
|
|
@@ -23,6 +23,13 @@ export const pikkuApprovalDescription = (fn) => {
|
|
|
23
23
|
export function pikkuFunc(func) {
|
|
24
24
|
return typeof func === 'function' ? { func } : func;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* A `pikkuFunc` whose input and output are already the shared list shape —
|
|
28
|
+
* filters, sort, paging in; rows and a total out — so a listing endpoint pages
|
|
29
|
+
* the same way everywhere.
|
|
30
|
+
*
|
|
31
|
+
* @example snippet: listFunction
|
|
32
|
+
*/
|
|
26
33
|
export const pikkuListFunc = (config) => {
|
|
27
34
|
return pikkuFunc(config);
|
|
28
35
|
};
|
|
@@ -36,14 +43,7 @@ export function pikkuSessionlessFunc(func) {
|
|
|
36
43
|
* @param func - Function definition, either direct function or configuration object
|
|
37
44
|
* @returns The normalized configuration object
|
|
38
45
|
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```typescript
|
|
41
|
-
* const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
|
|
42
|
-
* logger.info('Starting cleanup of temporary files')
|
|
43
|
-
* await fileSystem.deleteDirectory('/tmp/uploads')
|
|
44
|
-
* logger.info('Cleanup completed')
|
|
45
|
-
* })
|
|
46
|
-
* ```
|
|
46
|
+
* @example snippet: cleanupFunction
|
|
47
47
|
*/
|
|
48
48
|
export const pikkuVoidFunc = (func) => {
|
|
49
49
|
return typeof func === 'function' ? { func } : func;
|
|
@@ -106,12 +106,24 @@ export function pikkuRemoteChannelFunc(config) {
|
|
|
106
106
|
const __addonHttp = {};
|
|
107
107
|
const __addonChannel = {};
|
|
108
108
|
const __addonCli = {};
|
|
109
|
+
/**
|
|
110
|
+
* Names an HTTP route an installed addon wires, so you can link or redirect to
|
|
111
|
+
* it without hardcoding a path the addon may move.
|
|
112
|
+
*/
|
|
109
113
|
export const refHTTP = (name, options) => {
|
|
110
114
|
const contract = __addonHttp[name];
|
|
111
115
|
return (options?.basePath !== undefined
|
|
112
116
|
? { ...contract, basePath: options.basePath }
|
|
113
117
|
: contract);
|
|
114
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Names a channel an installed addon wires, for connecting to it without
|
|
121
|
+
* hardcoding its name.
|
|
122
|
+
*/
|
|
115
123
|
export const refChannel = (name) => __addonChannel[name];
|
|
124
|
+
/**
|
|
125
|
+
* Names a CLI command an installed addon wires, for invoking it without
|
|
126
|
+
* hardcoding its name.
|
|
127
|
+
*/
|
|
116
128
|
export const refCLI = (name) => __addonCli[name];
|
|
117
129
|
//# sourceMappingURL=pikku-function-types.gen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-function-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;
|
|
1
|
+
{"version":3,"file":"pikku-function-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AA2FH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,EAAkD,EACF,EAAE;IAClD,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AA8JD,MAAM,UAAU,SAAS,CAAC,IAAS;IACjC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAK3B,MAIC,EACyE,EAAE;IAC5E,OAAO,SAAS,CAAC,MAAM,CAAC,CAAA;AAC1B,CAAC,CAAA;AA8DD,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC5C,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,IAEiE,EACb,EAAE;IACtD,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CA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AE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function types for all wirings
|
|
@@ -18,7 +18,8 @@ import type { NodeType } from '@pikku/core/node'
|
|
|
18
18
|
import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js'
|
|
19
19
|
import type { PikkuPermission } from '../auth/pikku-auth-types.gen.js'
|
|
20
20
|
import type { ScopeId } from '../scopes/pikku-scopes.gen.js'
|
|
21
|
-
type CredentialsMap
|
|
21
|
+
import type { CredentialsMap } from '../credentials/pikku-credentials.gen.js'
|
|
22
|
+
import type { FeatureFlagName } from '../scopes/pikku-flags.gen.js'
|
|
22
23
|
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
23
24
|
import {
|
|
24
25
|
CorePikkuFunction,
|
|
@@ -31,10 +32,23 @@ import type { Services } from '../../../types/application-types.d.js'
|
|
|
31
32
|
import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js'
|
|
32
33
|
import type { RequiredSingletonServices } from '../pikku-services.gen.js'
|
|
33
34
|
import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js'
|
|
34
|
-
import type { TypedScenario,
|
|
35
|
+
import type { TypedScenario, TypedVirtualUsers } from '../scenarios/pikku-scenario-types.gen.js'
|
|
35
36
|
|
|
37
|
+
/**
|
|
38
|
+
* The services that live for the process — the ones built once in `createConfig`/
|
|
39
|
+
* `createSingletonServices` and shared by every request.
|
|
40
|
+
*/
|
|
36
41
|
export type { SingletonServices as SingletonServices }
|
|
42
|
+
/**
|
|
43
|
+
* Everything a function is handed as its first argument: the singleton services
|
|
44
|
+
* plus whatever is built per request. This is the type to widen when you add a
|
|
45
|
+
* service.
|
|
46
|
+
*/
|
|
37
47
|
export type { Services as Services }
|
|
48
|
+
/**
|
|
49
|
+
* The signed-in user as this project defines it. Reached on the wire as
|
|
50
|
+
* `session`, and replaced with `setSession`.
|
|
51
|
+
*/
|
|
38
52
|
export type Session = UserSession
|
|
39
53
|
|
|
40
54
|
/**
|
|
@@ -63,7 +77,7 @@ export type WiredServices = SecretlessServices<RequiredSingletonServices & Servi
|
|
|
63
77
|
*/
|
|
64
78
|
export type NodeConfig = {
|
|
65
79
|
displayName: string
|
|
66
|
-
category:
|
|
80
|
+
category: 'ai'
|
|
67
81
|
type: NodeType
|
|
68
82
|
errorOutput?: boolean
|
|
69
83
|
}
|
|
@@ -122,7 +136,7 @@ export type PikkuFunctionSessionless<
|
|
|
122
136
|
Out,
|
|
123
137
|
RequiredServices,
|
|
124
138
|
Session,
|
|
125
|
-
PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>,
|
|
139
|
+
PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedVirtualUsers, CredentialsMap>, RequiredWires>
|
|
126
140
|
>
|
|
127
141
|
|
|
128
142
|
/**
|
|
@@ -143,7 +157,7 @@ export type PikkuFunction<
|
|
|
143
157
|
Out,
|
|
144
158
|
RequiredServices,
|
|
145
159
|
Session,
|
|
146
|
-
PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario,
|
|
160
|
+
PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedVirtualUsers, CredentialsMap>, RequiredWires>
|
|
147
161
|
>
|
|
148
162
|
|
|
149
163
|
/**
|
|
@@ -168,7 +182,7 @@ export type PikkuFunctionConfig<
|
|
|
168
182
|
PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>,
|
|
169
183
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
170
184
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
171
|
-
> = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>, 'node'> & {
|
|
185
|
+
> = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId, FeatureFlagName>, 'node'> & {
|
|
172
186
|
node?: NodeConfig
|
|
173
187
|
}
|
|
174
188
|
|
|
@@ -183,7 +197,7 @@ type PikkuFunctionSessionlessConfig<
|
|
|
183
197
|
PikkuFunc extends PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunctionSessionless<In, Out, RequiredWires>,
|
|
184
198
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
185
199
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
186
|
-
> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>, 'node'> & {
|
|
200
|
+
> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, FeatureFlagName>, 'node'> & {
|
|
187
201
|
node?: NodeConfig
|
|
188
202
|
}
|
|
189
203
|
|
|
@@ -213,7 +227,8 @@ type PikkuFunctionConfigWithSchema<
|
|
|
213
227
|
PikkuMiddleware,
|
|
214
228
|
undefined,
|
|
215
229
|
undefined,
|
|
216
|
-
ScopeId
|
|
230
|
+
ScopeId,
|
|
231
|
+
FeatureFlagName
|
|
217
232
|
>,
|
|
218
233
|
'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'
|
|
219
234
|
> & {
|
|
@@ -241,21 +256,7 @@ type PikkuFunctionConfigWithSchema<
|
|
|
241
256
|
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
242
257
|
* @returns The normalized configuration object
|
|
243
258
|
*
|
|
244
|
-
* @example
|
|
245
|
-
* ```typescript
|
|
246
|
-
* const createUserInput = z.object({ name: z.string(), email: z.string() })
|
|
247
|
-
* const createUserOutput = z.object({ id: z.number() })
|
|
248
|
-
*
|
|
249
|
-
* const createUser = pikkuFunc({
|
|
250
|
-
* input: createUserInput,
|
|
251
|
-
* output: createUserOutput,
|
|
252
|
-
* func: async ({db}, input) => {
|
|
253
|
-
* // input is typed as { name: string, email: string }
|
|
254
|
-
* const user = await db.users.create(input)
|
|
255
|
-
* return { id: user.id } // must match output schema
|
|
256
|
-
* }
|
|
257
|
-
* })
|
|
258
|
-
* ```
|
|
259
|
+
* @example snippet: sessionFunction
|
|
259
260
|
*/
|
|
260
261
|
export function pikkuFunc<
|
|
261
262
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
@@ -272,6 +273,13 @@ export function pikkuFunc(func: any) {
|
|
|
272
273
|
return typeof func === 'function' ? { func } : func
|
|
273
274
|
}
|
|
274
275
|
|
|
276
|
+
/**
|
|
277
|
+
* A `pikkuFunc` whose input and output are already the shared list shape —
|
|
278
|
+
* filters, sort, paging in; rows and a total out — so a listing endpoint pages
|
|
279
|
+
* the same way everywhere.
|
|
280
|
+
*
|
|
281
|
+
* @example snippet: listFunction
|
|
282
|
+
*/
|
|
275
283
|
export const pikkuListFunc = <
|
|
276
284
|
F extends Record<string, unknown> = {},
|
|
277
285
|
Row = unknown,
|
|
@@ -332,19 +340,7 @@ type PikkuFunctionSessionlessConfigWithSchema<
|
|
|
332
340
|
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
333
341
|
* @returns The normalized configuration object
|
|
334
342
|
*
|
|
335
|
-
* @example
|
|
336
|
-
* ```typescript
|
|
337
|
-
* const greetInput = z.object({ name: z.string() })
|
|
338
|
-
* const greetOutput = z.object({ message: z.string() })
|
|
339
|
-
*
|
|
340
|
-
* const greet = pikkuSessionlessFunc({
|
|
341
|
-
* input: greetInput,
|
|
342
|
-
* output: greetOutput,
|
|
343
|
-
* func: async (_services, { name }) => {
|
|
344
|
-
* return { message: `Hello, ${name}!` }
|
|
345
|
-
* }
|
|
346
|
-
* })
|
|
347
|
-
* ```
|
|
343
|
+
* @example snippet: readFunction
|
|
348
344
|
*/
|
|
349
345
|
export function pikkuSessionlessFunc<
|
|
350
346
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
@@ -369,14 +365,7 @@ export function pikkuSessionlessFunc(func: any) {
|
|
|
369
365
|
* @param func - Function definition, either direct function or configuration object
|
|
370
366
|
* @returns The normalized configuration object
|
|
371
367
|
*
|
|
372
|
-
* @example
|
|
373
|
-
* ```typescript
|
|
374
|
-
* const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
|
|
375
|
-
* logger.info('Starting cleanup of temporary files')
|
|
376
|
-
* await fileSystem.deleteDirectory('/tmp/uploads')
|
|
377
|
-
* logger.info('Cleanup completed')
|
|
378
|
-
* })
|
|
379
|
-
* ```
|
|
368
|
+
* @example snippet: cleanupFunction
|
|
380
369
|
*/
|
|
381
370
|
export const pikkuVoidFunc = (
|
|
382
371
|
func:
|
|
@@ -461,6 +450,7 @@ export function pikkuRemoteChannelFunc<
|
|
|
461
450
|
|
|
462
451
|
|
|
463
452
|
|
|
453
|
+
|
|
464
454
|
/**
|
|
465
455
|
* Addon contract references. Generated from each wired addon's published
|
|
466
456
|
* contract metadata — no addon source is imported. Functions are proxied via
|
|
@@ -470,6 +460,10 @@ const __addonHttp = {} as const
|
|
|
470
460
|
const __addonChannel = {} as const
|
|
471
461
|
const __addonCli = {} as const
|
|
472
462
|
|
|
463
|
+
/**
|
|
464
|
+
* Names an HTTP route an installed addon wires, so you can link or redirect to
|
|
465
|
+
* it without hardcoding a path the addon may move.
|
|
466
|
+
*/
|
|
473
467
|
export const refHTTP = <Name extends keyof typeof __addonHttp>(
|
|
474
468
|
name: Name,
|
|
475
469
|
options?: { basePath?: string }
|
|
@@ -482,10 +476,18 @@ export const refHTTP = <Name extends keyof typeof __addonHttp>(
|
|
|
482
476
|
) as (typeof __addonHttp)[Name]
|
|
483
477
|
}
|
|
484
478
|
|
|
479
|
+
/**
|
|
480
|
+
* Names a channel an installed addon wires, for connecting to it without
|
|
481
|
+
* hardcoding its name.
|
|
482
|
+
*/
|
|
485
483
|
export const refChannel = <Name extends keyof typeof __addonChannel>(
|
|
486
484
|
name: Name
|
|
487
485
|
): (typeof __addonChannel)[Name] => __addonChannel[name]
|
|
488
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Names a CLI command an installed addon wires, for invoking it without
|
|
489
|
+
* hardcoding its name.
|
|
490
|
+
*/
|
|
489
491
|
export const refCLI = <Name extends keyof typeof __addonCli>(
|
|
490
492
|
name: Name
|
|
491
493
|
): (typeof __addonCli)[Name] => __addonCli[name]
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"bodyEnd": 16,
|
|
29
29
|
"contractHash": "70203e08b711e325",
|
|
30
30
|
"inputHash": "9b0c42f2",
|
|
31
|
-
"outputHash": "23334ded"
|
|
31
|
+
"outputHash": "23334ded",
|
|
32
|
+
"singletonServicesOnly": true
|
|
32
33
|
},
|
|
33
34
|
"receiptPredict": {
|
|
34
35
|
"pikkuFuncId": "receiptPredict",
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
"bodyEnd": 16,
|
|
60
61
|
"contractHash": "95ad55e035a0c4d3",
|
|
61
62
|
"inputHash": "fd0dcd93",
|
|
62
|
-
"outputHash": "868b469a"
|
|
63
|
+
"outputHash": "868b469a",
|
|
64
|
+
"singletonServicesOnly": true
|
|
63
65
|
}
|
|
64
66
|
}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"contractHash": "70203e08b711e325",
|
|
18
18
|
"inputHash": "9b0c42f2",
|
|
19
19
|
"outputHash": "23334ded",
|
|
20
|
+
"singletonServicesOnly": true,
|
|
20
21
|
"services": {
|
|
21
22
|
"optimized": true,
|
|
22
23
|
"services": [
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
"contractHash": "95ad55e035a0c4d3",
|
|
43
44
|
"inputHash": "fd0dcd93",
|
|
44
45
|
"outputHash": "868b469a",
|
|
46
|
+
"singletonServicesOnly": true,
|
|
45
47
|
"services": {
|
|
46
48
|
"optimized": true,
|
|
47
49
|
"services": [
|
|
@@ -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
|
/**
|
|
5
5
|
* HTTP-specific type definitions for tree-shaking optimization
|
|
@@ -41,6 +41,8 @@ type TypedHTTPRoutesGroupConfig = {
|
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* Type-safe helper for defining route contracts that can be composed.
|
|
44
|
+
*
|
|
45
|
+
* @example snippet: wireHttp
|
|
44
46
|
*/
|
|
45
47
|
export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(routes: T): TypedHTTPRouteContract<T>;
|
|
46
48
|
export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: TypedHTTPRoutesGroupConfig & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-http-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/http/pikku-http-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACpB,MAAM,kBAAkB,CAAA;AAGzB;;GAEG;AACH,KAAK,eAAe,GAAG,mBAAmB,GAAG;IAC3C,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,mB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