@pikku/addon-meta-conversions 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.pikku/addon/agent/index.d.ts +8 -0
- package/dist/.pikku/addon/agent/index.d.ts.map +1 -0
- package/dist/.pikku/addon/agent/index.js +8 -0
- package/dist/.pikku/addon/agent/index.js.map +1 -0
- package/dist/.pikku/addon/agent/index.ts +8 -0
- package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +4 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +54 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.js +5 -3
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.ts +28 -21
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts +2 -0
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +6 -0
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js.map +1 -0
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.ts +6 -0
- package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +8 -0
- package/dist/.pikku/addon/auth/index.d.ts +8 -0
- package/dist/.pikku/addon/auth/index.d.ts.map +1 -0
- package/dist/.pikku/addon/auth/index.js +8 -0
- package/dist/.pikku/addon/auth/index.js.map +1 -0
- package/dist/.pikku/addon/auth/index.ts +8 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +119 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +93 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.ts +156 -0
- package/dist/.pikku/addon/channel/index.d.ts +8 -0
- package/dist/.pikku/addon/channel/index.d.ts.map +1 -0
- package/dist/.pikku/addon/channel/index.js +8 -0
- package/dist/.pikku/addon/channel/index.js.map +1 -0
- package/dist/.pikku/addon/channel/index.ts +8 -0
- package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.d.ts +5 -26
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.js +2 -19
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.ts +7 -49
- package/dist/.pikku/addon/error/index.d.ts +8 -0
- package/dist/.pikku/addon/error/index.d.ts.map +1 -0
- package/dist/.pikku/addon/error/index.js +8 -0
- package/dist/.pikku/addon/error/index.js.map +1 -0
- package/dist/.pikku/addon/error/index.ts +8 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +8 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.js +8 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.js.map +1 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.ts +8 -0
- package/dist/.pikku/addon/function/index.d.ts +8 -0
- package/dist/.pikku/addon/function/index.d.ts.map +1 -0
- package/dist/.pikku/addon/function/index.js +8 -0
- package/dist/.pikku/addon/function/index.js.map +1 -0
- package/dist/.pikku/addon/function/index.ts +8 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +270 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +117 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -0
- package/{.pikku → dist/.pikku/addon}/function/pikku-function-types.gen.ts +65 -381
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.js +2 -2
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.ts +7 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/{function → addon/function}/pikku-functions.gen.js +2 -2
- package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/{function → addon/function}/pikku-functions.gen.ts +2 -2
- package/dist/.pikku/addon/http/index.d.ts +8 -0
- package/dist/.pikku/addon/http/index.d.ts.map +1 -0
- package/dist/.pikku/addon/http/index.js +8 -0
- package/dist/.pikku/addon/http/index.js.map +1 -0
- package/dist/.pikku/addon/http/index.ts +8 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +50 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +11 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.ts +62 -0
- package/dist/.pikku/addon/mcp/index.d.ts +8 -0
- package/dist/.pikku/addon/mcp/index.d.ts.map +1 -0
- package/dist/.pikku/addon/mcp/index.js +8 -0
- package/dist/.pikku/addon/mcp/index.js.map +1 -0
- package/dist/.pikku/addon/mcp/index.ts +8 -0
- package/dist/.pikku/{mcp → addon/mcp}/pikku-mcp-types.gen.d.ts +7 -36
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +16 -0
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/{.pikku → dist/.pikku/addon}/mcp/pikku-mcp-types.gen.ts +6 -50
- package/dist/.pikku/addon/middleware/index.d.ts +8 -0
- package/dist/.pikku/addon/middleware/index.d.ts.map +1 -0
- package/dist/.pikku/addon/middleware/index.js +8 -0
- package/dist/.pikku/addon/middleware/index.js.map +1 -0
- package/dist/.pikku/addon/middleware/index.ts +8 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +118 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +109 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.ts +167 -0
- package/dist/.pikku/{pikku-bootstrap-scenarios.gen.d.ts → addon/pikku-bootstrap-scenarios.gen.d.ts} +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-bootstrap-scenarios.gen.js → addon/pikku-bootstrap-scenarios.gen.js} +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js.map +1 -0
- package/dist/.pikku/{pikku-bootstrap-scenarios.gen.ts → addon/pikku-bootstrap-scenarios.gen.ts} +1 -1
- package/dist/.pikku/{pikku-bootstrap.gen.d.ts → addon/pikku-bootstrap.gen.d.ts} +3 -2
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-bootstrap.gen.js → addon/pikku-bootstrap.gen.js} +3 -2
- package/dist/.pikku/addon/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-bootstrap.gen.ts +9 -0
- package/dist/.pikku/addon/pikku-package.gen.js +3 -2
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +4 -2
- package/dist/.pikku/{pikku-services.gen.d.ts → addon/pikku-services.gen.d.ts} +9 -8
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-services.gen.js → addon/pikku-services.gen.js} +5 -4
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -0
- package/{.pikku → dist/.pikku/addon}/pikku-services.gen.ts +9 -8
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.gen.d.ts +6 -11
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.internal.gen.d.ts +6 -11
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.remote.gen.d.ts +6 -11
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.js +2 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.ts +2 -2
- package/dist/.pikku/addon/scenarios/index.d.ts +8 -0
- package/dist/.pikku/addon/scenarios/index.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/index.js +8 -0
- package/dist/.pikku/addon/scenarios/index.js.map +1 -0
- package/dist/.pikku/addon/scenarios/index.ts +8 -0
- package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.d.ts +3 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.ts +4 -6
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.js +2 -2
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
- package/{.pikku → dist/.pikku/addon}/scenarios/pikku-scenario-functions-meta.gen.ts +3 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.ts +4 -0
- package/dist/.pikku/{workflow/pikku-workflow-types.gen.d.ts → addon/scenarios/pikku-scenario-types.gen.d.ts} +79 -107
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -0
- package/dist/.pikku/{workflow/pikku-workflow-types.gen.js → addon/scenarios/pikku-scenario-types.gen.js} +9 -16
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -0
- package/dist/.pikku/{workflow/pikku-workflow-types.gen.ts → addon/scenarios/pikku-scenario-types.gen.ts} +119 -210
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.js +2 -2
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
- package/{.pikku → dist/.pikku/addon}/scenarios/pikku-scenario-wirings-meta.gen.ts +3 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts +4 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +5 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +5 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.ts +4 -0
- package/dist/.pikku/addon/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/{schemas → addon/schemas}/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/{schemas → addon/schemas}/register.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +8 -0
- package/dist/.pikku/addon/scopes/index.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/index.js +8 -0
- package/dist/.pikku/addon/scopes/index.js.map +1 -0
- package/dist/.pikku/addon/scopes/index.ts +8 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.d.ts +5 -13
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.ts +5 -16
- package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-roles.gen.js.map +1 -0
- package/{.pikku → dist/.pikku/addon}/scopes/pikku-roles.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +6 -0
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +5 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.ts +1 -1
- package/dist/.pikku/addon/secrets/index.d.ts +9 -0
- package/dist/.pikku/addon/secrets/index.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/index.js +9 -0
- package/dist/.pikku/addon/secrets/index.js.map +1 -0
- package/dist/.pikku/addon/secrets/index.ts +9 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +5 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +5 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.ts +4 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +22 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +21 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.ts +30 -0
- package/dist/.pikku/{pikku-meta-service.gen.d.ts → addon/services/pikku-meta-service.gen.d.ts} +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-meta-service.gen.js → addon/services/pikku-meta-service.gen.js} +2 -2
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/{pikku-meta-service.gen.ts → addon/services/pikku-meta-service.gen.ts} +2 -2
- package/dist/.pikku/addon/setup/index.d.ts +9 -0
- package/dist/.pikku/addon/setup/index.d.ts.map +1 -0
- package/dist/.pikku/addon/setup/index.js +9 -0
- package/dist/.pikku/addon/setup/index.js.map +1 -0
- package/dist/.pikku/addon/setup/index.ts +9 -0
- package/dist/.pikku/addon/{pikku-addon-types.gen.d.ts → setup/pikku-addon-setup-types.gen.d.ts} +7 -6
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/{pikku-addon-types.gen.js → setup/pikku-addon-setup-types.gen.js} +3 -3
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js.map +1 -0
- package/{.pikku/addon/pikku-addon-types.gen.ts → dist/.pikku/addon/setup/pikku-addon-setup-types.gen.ts} +6 -5
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +67 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +88 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.ts +105 -0
- package/dist/.pikku/addon/surface-usage.gen.json +1702 -0
- package/dist/.pikku/addon/trigger/index.d.ts +8 -0
- package/dist/.pikku/addon/trigger/index.d.ts.map +1 -0
- package/dist/.pikku/addon/trigger/index.js +8 -0
- package/dist/.pikku/addon/trigger/index.js.map +1 -0
- package/dist/.pikku/addon/trigger/index.ts +8 -0
- package/dist/.pikku/{trigger → addon/trigger}/pikku-trigger-types.gen.d.ts +6 -37
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +13 -0
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -0
- package/dist/.pikku/{trigger → addon/trigger}/pikku-trigger-types.gen.ts +9 -45
- package/dist/.pikku/addon/variables/index.d.ts +9 -0
- package/dist/.pikku/addon/variables/index.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/index.js +9 -0
- package/dist/.pikku/addon/variables/index.js.map +1 -0
- package/dist/.pikku/addon/variables/index.ts +9 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +5 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +5 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.ts +4 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +19 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +19 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.ts +30 -0
- package/dist/.pikku/addon/workflow/index.d.ts +8 -0
- package/dist/.pikku/addon/workflow/index.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/index.js +8 -0
- package/dist/.pikku/addon/workflow/index.js.map +1 -0
- package/dist/.pikku/addon/workflow/index.ts +8 -0
- package/dist/.pikku/{workflow → addon/workflow}/pikku-scenario-step-map.gen.d.ts +2 -2
- package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +106 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +16 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.ts +200 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/src/functions/events/send.function.d.ts +4 -4
- package/dist/src/functions/events/send.function.d.ts.map +1 -1
- package/dist/src/functions/events/send.function.js +1 -1
- package/dist/src/functions/events/send.function.js.map +1 -1
- package/dist/src/services.d.ts +1 -1
- package/dist/src/services.d.ts.map +1 -1
- package/dist/src/services.js +2 -2
- package/dist/src/services.js.map +1 -1
- package/dist/types/application-types.d.ts +12 -0
- package/package.json +8 -8
- package/.pikku/addon/pikku-package.gen.ts +0 -11
- package/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
- package/.pikku/agent/pikku-agent-types.gen.ts +0 -84
- package/.pikku/channel/pikku-channel-types.gen.ts +0 -177
- package/.pikku/console/pikku-node-types.gen.ts +0 -8
- package/.pikku/function/pikku-functions-meta.gen.ts +0 -7
- package/.pikku/function/pikku-functions.gen.ts +0 -8
- package/.pikku/http/pikku-http-types.gen.ts +0 -119
- package/.pikku/pikku-bootstrap-scenarios.gen.ts +0 -9
- package/.pikku/pikku-bootstrap.gen.ts +0 -8
- package/.pikku/pikku-meta-service.gen.ts +0 -10
- package/.pikku/pikku-types.gen.ts +0 -24
- package/.pikku/queue/pikku-queue-types.gen.ts +0 -27
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +0 -135
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -136
- package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +0 -135
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -6
- package/.pikku/scenarios/pikku-scenario-functions.gen.ts +0 -4
- package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +0 -4
- package/.pikku/scenarios/schemas/register.gen.ts +0 -4
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
- package/.pikku/schemas/register.gen.ts +0 -15
- package/.pikku/scopes/pikku-personas.gen.ts +0 -52
- package/.pikku/scopes/pikku-scope-types.gen.ts +0 -7
- package/.pikku/scopes/pikku-scopes.gen.ts +0 -58
- package/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
- package/.pikku/secrets/pikku-secrets.gen.ts +0 -36
- package/.pikku/trigger/pikku-trigger-types.gen.ts +0 -160
- package/.pikku/variables/pikku-variable-types.gen.ts +0 -5
- package/.pikku/variables/pikku-variables.gen.ts +0 -34
- package/.pikku/workflow/pikku-personas.gen.ts +0 -38
- package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +0 -18
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
- package/.pikku/workflow/pikku-workflow-types.gen.ts +0 -591
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +0 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +0 -105
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +0 -49
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +0 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +0 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +0 -1
- package/dist/.pikku/console/pikku-addon-meta.gen.json +0 -36
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +0 -7
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +0 -1
- package/dist/.pikku/console/pikku-node-types.gen.js +0 -2
- package/dist/.pikku/console/pikku-node-types.gen.js.map +0 -1
- package/dist/.pikku/console/pikku-node-types.gen.ts +0 -8
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +0 -506
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +0 -351
- package/dist/.pikku/function/pikku-function-types.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.ts +0 -797
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -33
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +0 -27
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +0 -7
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions.gen.js.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +0 -98
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +0 -50
- package/dist/.pikku/http/pikku-http-types.gen.js.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.ts +0 -119
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -38
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +0 -183
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.ts +0 -8
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-meta-service.gen.js.map +0 -1
- package/dist/.pikku/pikku-services.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-services.gen.js.map +0 -1
- package/dist/.pikku/pikku-services.gen.ts +0 -50
- package/dist/.pikku/pikku-types.gen.d.ts +0 -13
- package/dist/.pikku/pikku-types.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-types.gen.js +0 -19
- package/dist/.pikku/pikku-types.gen.js.map +0 -1
- package/dist/.pikku/pikku-types.gen.ts +0 -24
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +0 -24
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +0 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +0 -17
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +0 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +0 -27
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -3
- package/dist/.pikku/scenarios/features.gen.json +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +0 -12
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +0 -4
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +0 -15
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +0 -4
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/schemas/register.gen.js +0 -5
- package/dist/.pikku/scenarios/schemas/register.gen.js.map +0 -1
- package/dist/.pikku/scenarios/schemas/register.gen.ts +0 -4
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +0 -22
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +0 -17
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +0 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
- package/dist/.pikku/schemas/register.gen.d.ts.map +0 -1
- package/dist/.pikku/schemas/register.gen.js.map +0 -1
- package/dist/.pikku/schemas/schemas/EventSendInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/EventSendOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SecretSchema_metaConversions.schema.json +0 -1
- package/dist/.pikku/scopes/pikku-personas-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-roles-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.ts +0 -41
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +0 -8
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.ts +0 -7
- package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -6
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +0 -5
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +0 -10
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +0 -25
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +0 -23
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +0 -36
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +0 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -34
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -6
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +0 -5
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +0 -5
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +0 -22
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +0 -21
- package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.ts +0 -34
- package/dist/.pikku/workflow/personas.gen.json +0 -1
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +0 -7
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +0 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +0 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
- /package/{.pikku → dist/.pikku/addon}/console/pikku-addon-meta.gen.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/function/pikku-functions-meta-verbose.gen.json +0 -0
- /package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.d.ts +0 -0
- /package/{.pikku → dist/.pikku/addon}/function/pikku-functions-meta.gen.json +0 -0
- /package/dist/.pikku/{function → addon/function}/pikku-functions.gen.d.ts +0 -0
- /package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -0
- /package/{.pikku → dist/.pikku/addon}/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/scenarios/features.gen.json +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.d.ts +0 -0
- /package/{.pikku → dist/.pikku/addon}/scenarios/pikku-scenario-functions-meta.gen.json +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions.gen.js +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.d.ts +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings.gen.js +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/register.gen.d.ts +0 -0
- /package/{.pikku → dist/.pikku/addon}/schemas/schemas/EventSendInput.schema.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/schemas/schemas/EventSendOutput.schema.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/schemas/schemas/SecretSchema_metaConversions.schema.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/scopes/pikku-personas-meta.gen.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/scopes/pikku-roles-meta.gen.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.js +0 -0
- /package/{.pikku → dist/.pikku/addon}/scopes/pikku-scopes-meta.gen.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.js +0 -0
- /package/{.pikku → dist/.pikku/addon}/secrets/pikku-secrets-meta.gen.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/variables/pikku-variables-meta.gen.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/workflow/personas.gen.json +0 -0
- /package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-wirings-meta.gen.d.ts +0 -0
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Channel-specific type definitions for tree-shaking optimization
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { CoreChannel, CorePikkuChannelMiddleware, CorePikkuChannelMiddlewareFactory, wireChannel as wireChannelCore, defineChannelRoutes as defineChannelRoutesCore, addChannelMiddleware as addChannelMiddlewareCore } from '@pikku/core/channel'
|
|
9
|
-
import { AssertHTTPWiringParams } from '@pikku/core/http'
|
|
10
|
-
import type { PikkuFunctionConfig, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware, Services } from '../function/pikku-function-types.gen.js'
|
|
11
|
-
import type { CorePermissionGroup } from '@pikku/core'
|
|
12
|
-
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Helper type to infer the output type from a Standard Schema
|
|
16
|
-
*/
|
|
17
|
-
type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Output : never
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Type definition for WebSocket channels with typed data exchange.
|
|
21
|
-
* Supports connection, disconnection, and message handling.
|
|
22
|
-
* Accepts both session-based (PikkuFunction) and sessionless (PikkuFunctionSessionless) functions.
|
|
23
|
-
*
|
|
24
|
-
* @template ChannelData - Type of data exchanged through the channel
|
|
25
|
-
* @template Channel - String literal type for the channel name
|
|
26
|
-
*/
|
|
27
|
-
type ChannelWiring<ChannelData, Channel extends string> = CoreChannel<
|
|
28
|
-
ChannelData,
|
|
29
|
-
Channel,
|
|
30
|
-
PikkuFunctionConfig<void, any, 'channel' | 'session' | 'rpc'>,
|
|
31
|
-
PikkuFunctionConfig<void, void, 'channel' | 'session' | 'rpc'>,
|
|
32
|
-
PikkuFunctionConfig<any, any, 'channel' | 'session' | 'rpc'>,
|
|
33
|
-
PikkuPermission,
|
|
34
|
-
PikkuMiddleware
|
|
35
|
-
>
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Creates a function that handles WebSocket channel connections.
|
|
39
|
-
* Called when a client connects to a channel.
|
|
40
|
-
*
|
|
41
|
-
* @template Out - Output type for connection response
|
|
42
|
-
* @param func - Function definition, either direct function or configuration object
|
|
43
|
-
* @returns The normalized configuration object
|
|
44
|
-
*/
|
|
45
|
-
export const pikkuChannelConnectionFunc = <Out = unknown>(
|
|
46
|
-
func:
|
|
47
|
-
| PikkuFunctionSessionless<void, Out, 'channel' | 'session' | 'rpc'>
|
|
48
|
-
| PikkuFunctionConfig<void, Out, 'channel' | 'session' | 'rpc'>
|
|
49
|
-
) => {
|
|
50
|
-
return typeof func === 'function' ? { func } : func
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Creates a function that handles WebSocket channel disconnections.
|
|
55
|
-
* Called when a client disconnects from a channel.
|
|
56
|
-
*
|
|
57
|
-
* @param func - Function definition, either direct function or configuration object
|
|
58
|
-
* @returns The normalized configuration object
|
|
59
|
-
*/
|
|
60
|
-
export const pikkuChannelDisconnectionFunc = (
|
|
61
|
-
func:
|
|
62
|
-
| PikkuFunctionSessionless<void, void, 'channel'>
|
|
63
|
-
| PikkuFunctionConfig<void, void, 'channel' | 'session' | 'rpc'>
|
|
64
|
-
) => {
|
|
65
|
-
return typeof func === 'function' ? { func } : func
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Configuration object for channel functions with Zod schema validation.
|
|
70
|
-
*/
|
|
71
|
-
type PikkuChannelFuncConfigWithSchema<
|
|
72
|
-
InputSchema extends StandardSchemaV1,
|
|
73
|
-
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
74
|
-
> = {
|
|
75
|
-
name?: string
|
|
76
|
-
tags?: string[]
|
|
77
|
-
expose?: boolean
|
|
78
|
-
remote?: boolean
|
|
79
|
-
func: PikkuFunctionSessionless<
|
|
80
|
-
InferSchemaOutput<InputSchema>,
|
|
81
|
-
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
|
|
82
|
-
'channel' | 'session' | 'rpc'
|
|
83
|
-
>
|
|
84
|
-
auth?: boolean
|
|
85
|
-
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
|
|
86
|
-
middleware?: PikkuMiddleware[]
|
|
87
|
-
input: InputSchema
|
|
88
|
-
output?: OutputSchema
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Creates a function that handles WebSocket channel messages.
|
|
93
|
-
* Called when a message is received on a channel.
|
|
94
|
-
*
|
|
95
|
-
* Supports two patterns:
|
|
96
|
-
* 1. Generic types: `pikkuChannelFunc<Input, Output>({ func: ... })`
|
|
97
|
-
* 2. Zod schemas: `pikkuChannelFunc({ input: z.object(...), func: ... })`
|
|
98
|
-
*
|
|
99
|
-
* @template In - Input type for channel messages (inferred from schema if provided)
|
|
100
|
-
* @template Out - Output type for channel responses (inferred from schema if provided)
|
|
101
|
-
* @param func - Function definition, either direct function or configuration object
|
|
102
|
-
* @returns The normalized configuration object
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* ```typescript
|
|
106
|
-
* // Pattern 1: Using generic types
|
|
107
|
-
* const handleMessage = pikkuChannelFunc<{text: string}, {received: boolean}>({
|
|
108
|
-
* func: async (_services, { text }) => ({ received: true })
|
|
109
|
-
* })
|
|
110
|
-
*
|
|
111
|
-
* // Pattern 2: Using Zod schemas
|
|
112
|
-
* const messageInput = z.object({ text: z.string() })
|
|
113
|
-
* const messageOutput = z.object({ received: z.boolean() })
|
|
114
|
-
*
|
|
115
|
-
* const handleMessage = pikkuChannelFunc({
|
|
116
|
-
* input: messageInput,
|
|
117
|
-
* output: messageOutput,
|
|
118
|
-
* func: async (_services, { text }) => ({ received: true })
|
|
119
|
-
* })
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
export function pikkuChannelFunc<
|
|
123
|
-
InputSchema extends StandardSchemaV1,
|
|
124
|
-
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
125
|
-
>(
|
|
126
|
-
config: PikkuChannelFuncConfigWithSchema<InputSchema, OutputSchema>
|
|
127
|
-
): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'channel' | 'session' | 'rpc'>
|
|
128
|
-
export function pikkuChannelFunc<In, Out = unknown>(
|
|
129
|
-
func:
|
|
130
|
-
| PikkuFunctionSessionless<In, Out, 'channel' | 'session' | 'rpc'>
|
|
131
|
-
| PikkuFunctionConfig<In, Out, 'channel' | 'session' | 'rpc'>
|
|
132
|
-
): PikkuFunctionConfig<In, Out, 'channel' | 'session' | 'rpc'>
|
|
133
|
-
export function pikkuChannelFunc(func: any) {
|
|
134
|
-
return typeof func === 'function' ? { func } : func
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Registers a WebSocket channel with the Pikku framework.
|
|
139
|
-
*
|
|
140
|
-
* @template ChannelData - Type of data associated with the channel
|
|
141
|
-
* @template Channel - String literal type for the channel name
|
|
142
|
-
* @param channel - Channel definition with connection, disconnection, and message handlers
|
|
143
|
-
*/
|
|
144
|
-
export const wireChannel = <ChannelData, Channel extends string>(
|
|
145
|
-
channel: ChannelWiring<ChannelData, Channel> & AssertHTTPWiringParams<ChannelData, Channel>
|
|
146
|
-
) => {
|
|
147
|
-
wireChannelCore(channel as any)
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Type-safe helper for defining channel message routes that can be composed.
|
|
152
|
-
* Returns the routes record as-is for use with wireChannel's onMessageWiring.
|
|
153
|
-
*
|
|
154
|
-
* @template T - Record of channel route handlers
|
|
155
|
-
* @param routes - The channel routes record
|
|
156
|
-
* @returns The same routes record (identity function for type safety)
|
|
157
|
-
*/
|
|
158
|
-
export function defineChannelRoutes<T extends Record<string, any>>(routes: T): T {
|
|
159
|
-
return defineChannelRoutesCore(routes)
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export type PikkuChannelMiddleware<RequiredServices extends Services = Services, Event = unknown> = CorePikkuChannelMiddleware<RequiredServices, Event>
|
|
163
|
-
|
|
164
|
-
export const pikkuChannelMiddleware = <RequiredServices extends Services = Services, Event = unknown>(
|
|
165
|
-
middleware: PikkuChannelMiddleware<RequiredServices, Event>
|
|
166
|
-
): PikkuChannelMiddleware<RequiredServices, Event> => {
|
|
167
|
-
return middleware
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export const pikkuChannelMiddlewareFactory = <In = any>(
|
|
171
|
-
factory: CorePikkuChannelMiddlewareFactory<In>
|
|
172
|
-
): CorePikkuChannelMiddlewareFactory<In> => {
|
|
173
|
-
return factory
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export const addChannelMiddleware = (tag: string, middleware: PikkuChannelMiddleware[]) =>
|
|
177
|
-
addChannelMiddlewareCore(tag, middleware, '@pikku/addon-meta-conversions')
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
import { pikkuState } from '@pikku/core/internal'
|
|
5
|
-
import type { FunctionsMeta } from '@pikku/core'
|
|
6
|
-
import metaData from './pikku-functions-meta.gen.json' with { type: 'json' }
|
|
7
|
-
pikkuState('@pikku/addon-meta-conversions', 'function', 'meta', metaData as FunctionsMeta)
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
/* Import and register functions used by RPCs */
|
|
5
|
-
import { addFunction } from '@pikku/core/function'
|
|
6
|
-
import { eventSend } from '../../src/functions/events/send.function.js'
|
|
7
|
-
|
|
8
|
-
addFunction('eventSend', eventSend, '@pikku/addon-meta-conversions')
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* HTTP-specific type definitions for tree-shaking optimization
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { AssertHTTPWiringParams, wireHTTP as wireHTTPCore, addHTTPMiddleware as addHTTPMiddlewareCore, wireHTTPRoutes as wireHTTPRoutesCore, defineHTTPRoutes as defineHTTPRoutesCore } from '@pikku/core/http'
|
|
9
|
-
import type { PikkuFunction, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
|
|
10
|
-
import type { CoreHTTPFunctionWiring, HTTPMethod, HTTPRouteBaseConfig } from '@pikku/core/http'
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Type definition for HTTP API wirings with type-safe path parameters.
|
|
14
|
-
* Supports both authenticated and unauthenticated functions.
|
|
15
|
-
*
|
|
16
|
-
* @template In - Input type for the HTTP wiring
|
|
17
|
-
* @template Out - Output type for the HTTP wiring
|
|
18
|
-
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
19
|
-
*/
|
|
20
|
-
type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out, Route, PikkuFunction<In, Out, 'rpc' | 'session'>, PikkuFunctionSessionless<In, Out, 'rpc' | 'session'>, PikkuPermission<In>, PikkuMiddleware>
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Registers an HTTP wiring with the Pikku framework.
|
|
24
|
-
*
|
|
25
|
-
* @template In - Input type for the HTTP wiring
|
|
26
|
-
* @template Out - Output type for the HTTP wiring
|
|
27
|
-
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
28
|
-
* @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
|
|
29
|
-
*/
|
|
30
|
-
export const wireHTTP = <In, Out, Route extends string>(
|
|
31
|
-
httpWiring: HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>
|
|
32
|
-
) => {
|
|
33
|
-
wireHTTPCore(httpWiring as any)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Registers HTTP middleware either globally or for a specific route pattern.
|
|
38
|
-
*
|
|
39
|
-
* When a string route pattern is provided along with middleware, the middleware
|
|
40
|
-
* is applied only to that route. Otherwise, if an array is provided, it is treated
|
|
41
|
-
* as global middleware (applied to all routes).
|
|
42
|
-
*
|
|
43
|
-
* @param routeOrMiddleware - Either a global middleware array or a route pattern string
|
|
44
|
-
* @param middleware - The middleware array to apply when a route pattern is specified
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```typescript
|
|
48
|
-
* // Add global HTTP middleware
|
|
49
|
-
* addHTTPMiddleware([authMiddleware, loggingMiddleware])
|
|
50
|
-
*
|
|
51
|
-
* // Add route-specific middleware
|
|
52
|
-
* addHTTPMiddleware('/api/admin/*', [adminAuthMiddleware])
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export const addHTTPMiddleware = (
|
|
56
|
-
routeOrMiddleware: PikkuMiddleware[] | string,
|
|
57
|
-
middleware?: PikkuMiddleware[]
|
|
58
|
-
) => {
|
|
59
|
-
addHTTPMiddlewareCore(routeOrMiddleware as any, middleware as any)
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Route configuration for wireHTTPRoutes with proper typing
|
|
64
|
-
*/
|
|
65
|
-
type HTTPRouteConfig = HTTPRouteBaseConfig & {
|
|
66
|
-
method: HTTPMethod
|
|
67
|
-
route: string
|
|
68
|
-
func: PikkuFunctionConfig<any, any, any, any, any, any>
|
|
69
|
-
auth?: boolean
|
|
70
|
-
middleware?: PikkuMiddleware[]
|
|
71
|
-
sse?: boolean
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Typed route map for wireHTTPRoutes
|
|
76
|
-
*/
|
|
77
|
-
type TypedHTTPRouteMap = {
|
|
78
|
-
[key: string]: HTTPRouteConfig | TypedHTTPRouteMap | TypedHTTPRouteContract
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Typed route contract for defineHTTPRoutes
|
|
83
|
-
*/
|
|
84
|
-
type TypedHTTPRouteContract<T extends TypedHTTPRouteMap = TypedHTTPRouteMap> = TypedHTTPRoutesGroupConfig & {
|
|
85
|
-
routes: T
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Group config with typed middleware
|
|
90
|
-
*/
|
|
91
|
-
type TypedHTTPRoutesGroupConfig = {
|
|
92
|
-
basePath?: string
|
|
93
|
-
tags?: string[]
|
|
94
|
-
auth?: boolean
|
|
95
|
-
middleware?: PikkuMiddleware[]
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Full config for wireHTTPRoutes
|
|
100
|
-
*/
|
|
101
|
-
type TypedWireHTTPRoutesConfig = TypedHTTPRoutesGroupConfig & {
|
|
102
|
-
routes: TypedHTTPRouteMap | HTTPRouteConfig[]
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Type-safe helper for defining route contracts that can be composed.
|
|
107
|
-
*/
|
|
108
|
-
export function defineHTTPRoutes<T extends TypedHTTPRouteMap>(routes: T): TypedHTTPRouteContract<T>
|
|
109
|
-
export function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: TypedHTTPRoutesGroupConfig & { routes: T }): TypedHTTPRouteContract<T>
|
|
110
|
-
export function defineHTTPRoutes<T extends TypedHTTPRouteMap>(configOrRoutes: T | (TypedHTTPRoutesGroupConfig & { routes: T })): TypedHTTPRouteContract<T> {
|
|
111
|
-
return defineHTTPRoutesCore(configOrRoutes as any) as unknown as TypedHTTPRouteContract<T>
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Wires multiple HTTP routes from a nested map or array configuration.
|
|
116
|
-
*/
|
|
117
|
-
export const wireHTTPRoutes = (config: TypedWireHTTPRoutesConfig): void => {
|
|
118
|
-
wireHTTPRoutesCore(config as any)
|
|
119
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
import './pikku-bootstrap.gen.js'
|
|
5
|
-
import './scenarios/schemas/register.gen.js'
|
|
6
|
-
import './scenarios/pikku-scenario-functions-meta.gen.js'
|
|
7
|
-
import './scenarios/pikku-scenario-functions.gen.js'
|
|
8
|
-
import './scenarios/pikku-scenario-wirings-meta.gen.js'
|
|
9
|
-
import './scenarios/pikku-scenario-wirings.gen.js'
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
import './rpc/pikku-rpc-wirings-meta.internal.gen.js'
|
|
5
|
-
import './function/pikku-functions-meta.gen.js'
|
|
6
|
-
import './addon/pikku-package.gen.js'
|
|
7
|
-
import './schemas/register.gen.js'
|
|
8
|
-
import './function/pikku-functions.gen.js'
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
import { LocalMetaService } from '@pikku/core/services/local-meta'
|
|
5
|
-
|
|
6
|
-
export class PikkuMetaService extends LocalMetaService {
|
|
7
|
-
constructor() {
|
|
8
|
-
super('/home/runner/work/addons/addons/packages/analytics/meta-conversions/.pikku')
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Main type export hub - re-exports all wiring-specific types
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Core function, middleware, and permission types
|
|
9
|
-
export * from './function/pikku-function-types.gen.js'
|
|
10
|
-
|
|
11
|
-
// Trigger wiring types
|
|
12
|
-
export * from './trigger/pikku-trigger-types.gen.js'
|
|
13
|
-
|
|
14
|
-
// Node wiring types
|
|
15
|
-
export * from './console/pikku-node-types.gen.js'
|
|
16
|
-
|
|
17
|
-
// Secret definition types
|
|
18
|
-
export * from './secrets/pikku-secret-types.gen.js'
|
|
19
|
-
|
|
20
|
-
// Scope definition types
|
|
21
|
-
export * from './scopes/pikku-scope-types.gen.js'
|
|
22
|
-
|
|
23
|
-
// Addon types
|
|
24
|
-
export * from './addon/pikku-addon-types.gen.js'
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { CoreQueueWorker, wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue'
|
|
9
|
-
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Type definition for queue workers that process background jobs.
|
|
13
|
-
*
|
|
14
|
-
* @template In - Input type for the queue job
|
|
15
|
-
* @template Out - Output type for the queue job
|
|
16
|
-
*/
|
|
17
|
-
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Registers a queue worker with the Pikku framework.
|
|
21
|
-
* Workers process background jobs from queues.
|
|
22
|
-
*
|
|
23
|
-
* @param queueWorker - Queue worker definition with job handler
|
|
24
|
-
*/
|
|
25
|
-
export const wireQueueWorker = (queueWorker: QueueWiring<any, any>) => {
|
|
26
|
-
wireQueueWorkerCore(queueWorker as any)
|
|
27
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type EventSendInput = {
|
|
13
|
-
/** Array of server events to send (max 1000 per request) */
|
|
14
|
-
data: {
|
|
15
|
-
/** Standard or custom event name (e.g., Purchase, Lead, AddToCart, PageView, ViewContent) */
|
|
16
|
-
event_name: string;
|
|
17
|
-
/** Unix timestamp in seconds when the event occurred */
|
|
18
|
-
event_time: number;
|
|
19
|
-
/** Unique event ID for deduplication with browser pixel events */
|
|
20
|
-
event_id?: string | undefined;
|
|
21
|
-
/** URL where the event occurred */
|
|
22
|
-
event_source_url?: string | undefined;
|
|
23
|
-
/** Where the conversion occurred */
|
|
24
|
-
action_source: "website" | "email" | "app" | "phone_call" | "chat" | "physical_store" | "system_generated" | "other";
|
|
25
|
-
/** Hashed user data for matching (em, ph, fn, ln, ct, st, zp, country, external_id, client_ip_address, client_user_agent, fbc, fbp) */
|
|
26
|
-
user_data: {
|
|
27
|
-
[key: string]: string | string[];
|
|
28
|
-
};
|
|
29
|
-
/** Custom event data (value, currency, content_name, content_ids, contents, num_items, etc.) */
|
|
30
|
-
custom_data?: {
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
} | undefined;
|
|
33
|
-
/** If true, event is used for attribution but not ad delivery optimization */
|
|
34
|
-
opt_out?: boolean | undefined;
|
|
35
|
-
}[];
|
|
36
|
-
/** Test event code from Events Manager for testing without affecting production data */
|
|
37
|
-
test_event_code?: string | undefined;
|
|
38
|
-
}
|
|
39
|
-
export type EventSendOutput = {
|
|
40
|
-
/** Number of events received by Meta */
|
|
41
|
-
events_received: number;
|
|
42
|
-
/** Diagnostic messages from the API */
|
|
43
|
-
messages: string[];
|
|
44
|
-
/** Trace ID for debugging with Meta support */
|
|
45
|
-
fbtrace_id: string;
|
|
46
|
-
}
|
|
47
|
-
export type SecretSchema_metaConversions = {
|
|
48
|
-
/** Meta Pixel ID */
|
|
49
|
-
pixelId: string;
|
|
50
|
-
/** Conversions API access token (generated in Events Manager) */
|
|
51
|
-
accessToken: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface RPCHandler<I, O> {
|
|
55
|
-
input: I;
|
|
56
|
-
output: O;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export type RPCMap = {
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
// No addon packages, use RPCMap directly
|
|
65
|
-
export type FlattenedRPCMap = RPCMap
|
|
66
|
-
|
|
67
|
-
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
68
|
-
type IsVoidishInput<T> = IsAny<T> extends true
|
|
69
|
-
? false
|
|
70
|
-
: [T] extends [void | null | undefined]
|
|
71
|
-
? true
|
|
72
|
-
: false
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
76
|
-
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
77
|
-
? [name: Name]
|
|
78
|
-
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
79
|
-
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
80
|
-
|
|
81
|
-
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
82
|
-
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
83
|
-
? [name: Name]
|
|
84
|
-
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
85
|
-
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
86
|
-
|
|
87
|
-
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
88
|
-
|
|
89
|
-
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
type FlattenedAgentMap = AgentMap
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
96
|
-
|
|
97
|
-
interface AIAgentInput {
|
|
98
|
-
message: string
|
|
99
|
-
threadId: string
|
|
100
|
-
resourceId: string
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
104
|
-
name: Name,
|
|
105
|
-
input: FlattenedWorkflowMap[Name]['input'],
|
|
106
|
-
options?: { startNode?: string }
|
|
107
|
-
) => Promise<{ runId: string }>
|
|
108
|
-
|
|
109
|
-
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
110
|
-
name: Name,
|
|
111
|
-
input: FlattenedWorkflowMap[Name]['input']
|
|
112
|
-
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
113
|
-
|
|
114
|
-
export type TypedWorkflowStatus = (
|
|
115
|
-
workflowName: string,
|
|
116
|
-
runId: string
|
|
117
|
-
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
118
|
-
|
|
119
|
-
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
120
|
-
? (name: string, input: AIAgentInput) => Promise<any>
|
|
121
|
-
: <Name extends keyof FlattenedAgentMap>(
|
|
122
|
-
name: Name,
|
|
123
|
-
input: AIAgentInput
|
|
124
|
-
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
125
|
-
|
|
126
|
-
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
127
|
-
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
128
|
-
: <Name extends keyof FlattenedAgentMap>(
|
|
129
|
-
name: Name,
|
|
130
|
-
input: AIAgentInput,
|
|
131
|
-
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
132
|
-
) => Promise<void>
|
|
133
|
-
|
|
134
|
-
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
135
|
-
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type EventSendInput = {
|
|
13
|
-
/** Array of server events to send (max 1000 per request) */
|
|
14
|
-
data: {
|
|
15
|
-
/** Standard or custom event name (e.g., Purchase, Lead, AddToCart, PageView, ViewContent) */
|
|
16
|
-
event_name: string;
|
|
17
|
-
/** Unix timestamp in seconds when the event occurred */
|
|
18
|
-
event_time: number;
|
|
19
|
-
/** Unique event ID for deduplication with browser pixel events */
|
|
20
|
-
event_id?: string | undefined;
|
|
21
|
-
/** URL where the event occurred */
|
|
22
|
-
event_source_url?: string | undefined;
|
|
23
|
-
/** Where the conversion occurred */
|
|
24
|
-
action_source: "website" | "email" | "app" | "phone_call" | "chat" | "physical_store" | "system_generated" | "other";
|
|
25
|
-
/** Hashed user data for matching (em, ph, fn, ln, ct, st, zp, country, external_id, client_ip_address, client_user_agent, fbc, fbp) */
|
|
26
|
-
user_data: {
|
|
27
|
-
[key: string]: string | string[];
|
|
28
|
-
};
|
|
29
|
-
/** Custom event data (value, currency, content_name, content_ids, contents, num_items, etc.) */
|
|
30
|
-
custom_data?: {
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
} | undefined;
|
|
33
|
-
/** If true, event is used for attribution but not ad delivery optimization */
|
|
34
|
-
opt_out?: boolean | undefined;
|
|
35
|
-
}[];
|
|
36
|
-
/** Test event code from Events Manager for testing without affecting production data */
|
|
37
|
-
test_event_code?: string | undefined;
|
|
38
|
-
}
|
|
39
|
-
export type EventSendOutput = {
|
|
40
|
-
/** Number of events received by Meta */
|
|
41
|
-
events_received: number;
|
|
42
|
-
/** Diagnostic messages from the API */
|
|
43
|
-
messages: string[];
|
|
44
|
-
/** Trace ID for debugging with Meta support */
|
|
45
|
-
fbtrace_id: string;
|
|
46
|
-
}
|
|
47
|
-
export type SecretSchema_metaConversions = {
|
|
48
|
-
/** Meta Pixel ID */
|
|
49
|
-
pixelId: string;
|
|
50
|
-
/** Conversions API access token (generated in Events Manager) */
|
|
51
|
-
accessToken: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface RPCHandler<I, O> {
|
|
55
|
-
input: I;
|
|
56
|
-
output: O;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export type RPCMap = {
|
|
60
|
-
readonly 'eventSend': RPCHandler<EventSendInput, EventSendOutput>,
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
// No addon packages, use RPCMap directly
|
|
66
|
-
export type FlattenedRPCMap = RPCMap
|
|
67
|
-
|
|
68
|
-
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
69
|
-
type IsVoidishInput<T> = IsAny<T> extends true
|
|
70
|
-
? false
|
|
71
|
-
: [T] extends [void | null | undefined]
|
|
72
|
-
? true
|
|
73
|
-
: false
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
77
|
-
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
78
|
-
? [name: Name]
|
|
79
|
-
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
80
|
-
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
81
|
-
|
|
82
|
-
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
83
|
-
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
84
|
-
? [name: Name]
|
|
85
|
-
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
86
|
-
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
87
|
-
|
|
88
|
-
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
89
|
-
|
|
90
|
-
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
type FlattenedAgentMap = AgentMap
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
97
|
-
|
|
98
|
-
interface AIAgentInput {
|
|
99
|
-
message: string
|
|
100
|
-
threadId: string
|
|
101
|
-
resourceId: string
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
105
|
-
name: Name,
|
|
106
|
-
input: FlattenedWorkflowMap[Name]['input'],
|
|
107
|
-
options?: { startNode?: string }
|
|
108
|
-
) => Promise<{ runId: string }>
|
|
109
|
-
|
|
110
|
-
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
111
|
-
name: Name,
|
|
112
|
-
input: FlattenedWorkflowMap[Name]['input']
|
|
113
|
-
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
114
|
-
|
|
115
|
-
export type TypedWorkflowStatus = (
|
|
116
|
-
workflowName: string,
|
|
117
|
-
runId: string
|
|
118
|
-
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
119
|
-
|
|
120
|
-
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
121
|
-
? (name: string, input: AIAgentInput) => Promise<any>
|
|
122
|
-
: <Name extends keyof FlattenedAgentMap>(
|
|
123
|
-
name: Name,
|
|
124
|
-
input: AIAgentInput
|
|
125
|
-
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
126
|
-
|
|
127
|
-
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
128
|
-
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
129
|
-
: <Name extends keyof FlattenedAgentMap>(
|
|
130
|
-
name: Name,
|
|
131
|
-
input: AIAgentInput,
|
|
132
|
-
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
133
|
-
) => Promise<void>
|
|
134
|
-
|
|
135
|
-
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
136
|
-
|