@pikku/addon-meta-conversions 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pikku/addon/pikku-addon-types.gen.ts +105 -0
- package/.pikku/addon/pikku-package.gen.ts +11 -0
- package/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- package/.pikku/agent/pikku-agent-types.gen.ts +84 -0
- package/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/.pikku/console/pikku-addon-meta.gen.json +36 -0
- package/.pikku/console/pikku-node-types.gen.ts +8 -0
- package/.pikku/function/pikku-function-types.gen.ts +797 -0
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +33 -0
- package/.pikku/function/pikku-functions-meta.gen.json +27 -0
- package/.pikku/function/pikku-functions-meta.gen.ts +7 -0
- package/.pikku/function/pikku-functions.gen.ts +8 -0
- package/.pikku/http/pikku-http-types.gen.ts +119 -0
- package/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
- package/.pikku/pikku-bootstrap.gen.ts +8 -0
- package/.pikku/pikku-meta-service.gen.ts +10 -0
- package/.pikku/pikku-services.gen.ts +50 -0
- package/.pikku/pikku-types.gen.ts +24 -0
- package/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +135 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +136 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +135 -0
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +3 -0
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/.pikku/scenarios/features.gen.json +1 -0
- package/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
- package/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
- package/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
- package/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
- package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
- package/.pikku/scenarios/schemas/register.gen.ts +4 -0
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/.pikku/schemas/register.gen.ts +15 -0
- package/.pikku/schemas/schemas/EventSendInput.schema.json +1 -0
- package/.pikku/schemas/schemas/EventSendOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/SecretSchema_metaConversions.schema.json +1 -0
- package/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
- package/.pikku/scopes/pikku-personas.gen.ts +52 -0
- package/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
- package/.pikku/scopes/pikku-roles.gen.ts +41 -0
- package/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
- package/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
- package/.pikku/scopes/pikku-scopes.gen.ts +58 -0
- package/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
- package/.pikku/secrets/pikku-secrets-meta.gen.json +10 -0
- package/.pikku/secrets/pikku-secrets.gen.ts +36 -0
- package/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
- package/.pikku/variables/pikku-variable-types.gen.ts +5 -0
- package/.pikku/variables/pikku-variables-meta.gen.json +1 -0
- package/.pikku/variables/pikku-variables.gen.ts +34 -0
- package/.pikku/workflow/personas.gen.json +1 -0
- package/.pikku/workflow/pikku-personas.gen.ts +38 -0
- package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/.pikku/workflow/pikku-workflow-types.gen.ts +591 -0
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +4 -4
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +7 -3
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +11 -6
- 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/agent/pikku-agent-map.gen.d.ts +2 -14
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +8 -6
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +15 -7
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/dist/.pikku/console/pikku-addon-meta.gen.json +4 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +133 -133
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +98 -61
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.ts +268 -157
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +5 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +8 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
- package/dist/.pikku/function/pikku-functions.gen.js +2 -2
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions.gen.ts +2 -2
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +98 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +50 -0
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.ts +119 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +10 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +10 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +4 -2
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +2 -10
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.ts +2 -9
- package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.js +10 -0
- package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
- package/dist/.pikku/pikku-services.gen.d.ts +15 -2
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +14 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-services.gen.ts +17 -2
- package/dist/.pikku/pikku-types.gen.d.ts +2 -1
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-types.gen.js +3 -1
- package/dist/.pikku/pikku-types.gen.js.map +1 -1
- package/dist/.pikku/pikku-types.gen.ts +4 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +28 -8
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +28 -8
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +135 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +3 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/dist/.pikku/scenarios/features.gen.json +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/schemas/register.gen.js +5 -0
- package/dist/.pikku/scenarios/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/scenarios/schemas/register.gen.ts +4 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/dist/.pikku/schemas/register.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.ts +1 -1
- package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +37 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.js +18 -0
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.ts +52 -0
- package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +31 -0
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.js +19 -0
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.ts +41 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +8 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +6 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
- package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.ts +58 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +12 -2
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +15 -2
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +2 -2
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +13 -3
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.ts +16 -3
- package/dist/.pikku/workflow/personas.gen.json +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts +16 -0
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.ts +38 -0
- package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +289 -31
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +66 -18
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +494 -61
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/src/functions/events/send.function.d.ts +2 -2
- package/dist/src/functions/events/send.function.d.ts.map +1 -1
- package/dist/src/meta-conversions.secret.js +2 -2
- package/dist/src/meta-conversions.secret.js.map +1 -1
- package/dist/src/services.d.ts.map +1 -1
- package/dist/src/services.js +1 -1
- package/dist/src/services.js.map +1 -1
- package/package.json +7 -6
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"eventSend": {
|
|
3
|
+
"pikkuFuncId": "eventSend",
|
|
4
|
+
"functionType": "user",
|
|
5
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
6
|
+
"sessionless": true,
|
|
7
|
+
"name": "eventSend",
|
|
8
|
+
"services": {
|
|
9
|
+
"optimized": true,
|
|
10
|
+
"services": [
|
|
11
|
+
"metaConversions"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"inputSchemaName": "EventSendInput",
|
|
15
|
+
"outputSchemaName": "EventSendOutput",
|
|
16
|
+
"inputs": [
|
|
17
|
+
"EventSendInput"
|
|
18
|
+
],
|
|
19
|
+
"outputs": [
|
|
20
|
+
"EventSendOutput"
|
|
21
|
+
],
|
|
22
|
+
"implementationHash": "289d4066fc71925f",
|
|
23
|
+
"description": "Send server-side conversion events to Meta via the Conversions API",
|
|
24
|
+
"isDirectFunction": false,
|
|
25
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/analytics/meta-conversions/src/functions/events/send.function.ts",
|
|
26
|
+
"exportedName": "eventSend",
|
|
27
|
+
"bodyStart": 49,
|
|
28
|
+
"bodyEnd": 49,
|
|
29
|
+
"contractHash": "5864ea42d4379da5",
|
|
30
|
+
"inputHash": "0030f99c",
|
|
31
|
+
"outputHash": "39d1f240"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"eventSend": {
|
|
3
|
+
"pikkuFuncId": "eventSend",
|
|
4
|
+
"functionType": "user",
|
|
5
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
6
|
+
"sessionless": true,
|
|
7
|
+
"name": "eventSend",
|
|
8
|
+
"inputSchemaName": "EventSendInput",
|
|
9
|
+
"outputSchemaName": "EventSendOutput",
|
|
10
|
+
"inputs": [
|
|
11
|
+
"EventSendInput"
|
|
12
|
+
],
|
|
13
|
+
"outputs": [
|
|
14
|
+
"EventSendOutput"
|
|
15
|
+
],
|
|
16
|
+
"implementationHash": "289d4066fc71925f",
|
|
17
|
+
"contractHash": "5864ea42d4379da5",
|
|
18
|
+
"inputHash": "0030f99c",
|
|
19
|
+
"outputHash": "39d1f240",
|
|
20
|
+
"services": {
|
|
21
|
+
"optimized": true,
|
|
22
|
+
"services": [
|
|
23
|
+
"metaConversions"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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)
|
|
@@ -0,0 +1,8 @@
|
|
|
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')
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MCP-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
CoreMCPResource,
|
|
10
|
+
CoreMCPPrompt,
|
|
11
|
+
wireMCPResource as wireMCPResourceCore,
|
|
12
|
+
wireMCPPrompt as wireMCPPromptCore,
|
|
13
|
+
MCPResourceResponse,
|
|
14
|
+
MCPToolResponse,
|
|
15
|
+
MCPPromptResponse,
|
|
16
|
+
AssertMCPResourceURIParams
|
|
17
|
+
} from '@pikku/core/mcp'
|
|
18
|
+
|
|
19
|
+
import type { PikkuFunctionConfig, PikkuFunctionSessionless, PikkuMiddleware, PikkuPermission, InferSchemaOutput } from '../function/pikku-function-types.gen.js'
|
|
20
|
+
import type { CorePermissionGroup } from '@pikku/core'
|
|
21
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Type definition for MCP resources that provide data to AI models.
|
|
25
|
+
*
|
|
26
|
+
* @template In - Input type for the resource request
|
|
27
|
+
* @template URI - URI template string type for compile-time parameter validation
|
|
28
|
+
*/
|
|
29
|
+
type MCPResourceWiring<In, URI extends string> = CoreMCPResource<PikkuFunctionConfig<In, MCPResourceResponse, 'rpc' | 'session' | 'mcp'>> & { uri: URI }
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Type definition for MCP prompts that provide templates to AI models.
|
|
33
|
+
*
|
|
34
|
+
* @template In - Input type for the prompt parameters
|
|
35
|
+
*/
|
|
36
|
+
type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptResponse, 'rpc' | 'session' | 'mcp'>>
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Registers an MCP resource with the Pikku framework.
|
|
40
|
+
* Resources provide data that AI models can access.
|
|
41
|
+
*
|
|
42
|
+
* @template In - Input type for the resource request
|
|
43
|
+
* @template URI - URI template string for compile-time parameter validation
|
|
44
|
+
* @param mcpResource - MCP resource definition with data provider function
|
|
45
|
+
*/
|
|
46
|
+
export const wireMCPResource = <In, URI extends string>(
|
|
47
|
+
mcpResource: MCPResourceWiring<In, URI> & AssertMCPResourceURIParams<In, URI>
|
|
48
|
+
) => {
|
|
49
|
+
wireMCPResourceCore(mcpResource as any)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Registers an MCP prompt with the Pikku framework.
|
|
54
|
+
* Prompts provide templates that AI models can use.
|
|
55
|
+
*
|
|
56
|
+
* @template In - Input type for the prompt parameters
|
|
57
|
+
* @param mcpPrompt - MCP prompt definition with template function
|
|
58
|
+
*/
|
|
59
|
+
export const wireMCPPrompt = <In>(
|
|
60
|
+
mcpPrompt: MCPPromptWiring<In>
|
|
61
|
+
) => {
|
|
62
|
+
wireMCPPromptCore(mcpPrompt as any)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Configuration for MCP prompt with Zod schema input validation.
|
|
67
|
+
*/
|
|
68
|
+
type MCPPromptFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
|
|
69
|
+
func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>
|
|
70
|
+
name?: string
|
|
71
|
+
input: InputSchema
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Creates a function for handling MCP prompt requests.
|
|
76
|
+
* These functions generate prompt templates for AI models.
|
|
77
|
+
*
|
|
78
|
+
* Supports two patterns:
|
|
79
|
+
* 1. Generic types: `pikkuMCPPromptFunc<Input>({ func: ... })`
|
|
80
|
+
* 2. Zod schemas: `pikkuMCPPromptFunc({ input: z.object(...), func: ... })`
|
|
81
|
+
*
|
|
82
|
+
* @template In - Input type for the prompt parameters (inferred from schema if provided)
|
|
83
|
+
* @param func - Function definition, either direct function or configuration object
|
|
84
|
+
* @returns The unwrapped function for internal use
|
|
85
|
+
*/
|
|
86
|
+
export function pikkuMCPPromptFunc<InputSchema extends StandardSchemaV1>(
|
|
87
|
+
config: MCPPromptFuncConfigWithSchema<InputSchema>
|
|
88
|
+
): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>
|
|
89
|
+
export function pikkuMCPPromptFunc<In>(
|
|
90
|
+
func:
|
|
91
|
+
| PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'>
|
|
92
|
+
| {
|
|
93
|
+
func: PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'>
|
|
94
|
+
name?: string
|
|
95
|
+
}
|
|
96
|
+
): PikkuFunctionConfig<In, MCPPromptResponse, 'mcp' | 'rpc'>
|
|
97
|
+
export function pikkuMCPPromptFunc(func: any): any {
|
|
98
|
+
return typeof func === 'function' ? { func } : func
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Configuration for MCP tool with Zod schema input validation.
|
|
103
|
+
*/
|
|
104
|
+
type MCPToolFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
|
|
105
|
+
func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>
|
|
106
|
+
description?: string
|
|
107
|
+
tags?: string[]
|
|
108
|
+
title?: string
|
|
109
|
+
summary?: string
|
|
110
|
+
name?: string
|
|
111
|
+
middleware?: PikkuMiddleware[]
|
|
112
|
+
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
|
|
113
|
+
input: InputSchema
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Creates a function for handling MCP tool invocations.
|
|
118
|
+
* These functions perform actions that AI models can request.
|
|
119
|
+
*
|
|
120
|
+
* Supports two patterns:
|
|
121
|
+
* 1. Generic types: `pikkuMCPToolFunc<Input>({ func: ... })`
|
|
122
|
+
* 2. Zod schemas: `pikkuMCPToolFunc({ input: z.object(...), func: ... })`
|
|
123
|
+
*
|
|
124
|
+
* @template In - Input type for the tool invocation (inferred from schema if provided)
|
|
125
|
+
* @param func - Function definition, either direct function or configuration object
|
|
126
|
+
* @returns The unwrapped function for internal use
|
|
127
|
+
*/
|
|
128
|
+
export function pikkuMCPToolFunc<InputSchema extends StandardSchemaV1>(
|
|
129
|
+
config: MCPToolFuncConfigWithSchema<InputSchema>
|
|
130
|
+
): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>
|
|
131
|
+
export function pikkuMCPToolFunc<In>(
|
|
132
|
+
func:
|
|
133
|
+
| PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'>
|
|
134
|
+
| {
|
|
135
|
+
func: PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'>
|
|
136
|
+
description?: string
|
|
137
|
+
tags?: string[]
|
|
138
|
+
title?: string
|
|
139
|
+
summary?: string
|
|
140
|
+
name?: string
|
|
141
|
+
middleware?: PikkuMiddleware[]
|
|
142
|
+
permissions?: CorePermissionGroup<PikkuPermission<In>>
|
|
143
|
+
}
|
|
144
|
+
): PikkuFunctionConfig<In, MCPToolResponse, 'mcp' | 'rpc'>
|
|
145
|
+
export function pikkuMCPToolFunc(func: any): any {
|
|
146
|
+
return typeof func === 'function' ? { func } : func
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Configuration for MCP resource with Zod schema input validation.
|
|
151
|
+
*/
|
|
152
|
+
type MCPResourceFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
|
|
153
|
+
func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>
|
|
154
|
+
name?: string
|
|
155
|
+
input: InputSchema
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Creates a function for handling MCP resource requests.
|
|
160
|
+
* These functions provide data that AI models can access.
|
|
161
|
+
*
|
|
162
|
+
* Supports two patterns:
|
|
163
|
+
* 1. Generic types: `pikkuMCPResourceFunc<Input>({ func: ... })`
|
|
164
|
+
* 2. Zod schemas: `pikkuMCPResourceFunc({ input: z.object(...), func: ... })`
|
|
165
|
+
*
|
|
166
|
+
* @template In - Input type for the resource request (inferred from schema if provided)
|
|
167
|
+
* @param func - Function definition, either direct function or configuration object
|
|
168
|
+
* @returns The unwrapped function for internal use
|
|
169
|
+
*/
|
|
170
|
+
export function pikkuMCPResourceFunc<InputSchema extends StandardSchemaV1>(
|
|
171
|
+
config: MCPResourceFuncConfigWithSchema<InputSchema>
|
|
172
|
+
): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>
|
|
173
|
+
export function pikkuMCPResourceFunc<In>(
|
|
174
|
+
func:
|
|
175
|
+
| PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'>
|
|
176
|
+
| {
|
|
177
|
+
func: PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'>
|
|
178
|
+
name?: string
|
|
179
|
+
}
|
|
180
|
+
): PikkuFunctionConfig<In, MCPResourceResponse, 'mcp' | 'rpc'>
|
|
181
|
+
export function pikkuMCPResourceFunc(func: any): any {
|
|
182
|
+
return typeof func === 'function' ? { func } : func
|
|
183
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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'
|
|
@@ -0,0 +1,8 @@
|
|
|
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'
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
import type { SingletonServices } from '../types/application-types.d.js'
|
|
5
|
+
import type { Services } from '../types/application-types.d.js'
|
|
6
|
+
|
|
7
|
+
// Singleton services map: true if required, false if available but unused
|
|
8
|
+
export const requiredSingletonServices = {
|
|
9
|
+
'agentRunService': false,
|
|
10
|
+
'aiAgentRunner': false,
|
|
11
|
+
'aiEmbedding': false,
|
|
12
|
+
'aiRunState': false,
|
|
13
|
+
'aiStorage': false,
|
|
14
|
+
'audit': false,
|
|
15
|
+
'auditLog': false,
|
|
16
|
+
'auth': false,
|
|
17
|
+
'config': true,
|
|
18
|
+
'content': false,
|
|
19
|
+
'coverageService': false,
|
|
20
|
+
'credentialService': false,
|
|
21
|
+
'deploymentService': false,
|
|
22
|
+
'emailService': false,
|
|
23
|
+
'eventHub': false,
|
|
24
|
+
'jwt': false,
|
|
25
|
+
'logger': true,
|
|
26
|
+
'metaConversions': false,
|
|
27
|
+
'metaService': false,
|
|
28
|
+
'queueService': false,
|
|
29
|
+
'schedulerService': false,
|
|
30
|
+
'schema': true,
|
|
31
|
+
'scopeService': false,
|
|
32
|
+
'secrets': true,
|
|
33
|
+
'sessionStore': false,
|
|
34
|
+
'variables': true,
|
|
35
|
+
'webhookService': false,
|
|
36
|
+
'workflowRunService': false,
|
|
37
|
+
'workflowService': false,
|
|
38
|
+
} as const
|
|
39
|
+
|
|
40
|
+
// Wire services map: true if required, false if available but unused
|
|
41
|
+
export const requiredWireServices = {
|
|
42
|
+
} as const
|
|
43
|
+
|
|
44
|
+
// Type exports
|
|
45
|
+
export type RequiredSingletonServices = Required<Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>
|
|
46
|
+
|
|
47
|
+
export type RequiredWireServices = Partial<Services>
|
|
48
|
+
|
|
49
|
+
// Services this addon needs from the parent project
|
|
50
|
+
export const requiredParentServices = ["secrets"] as const
|
|
@@ -0,0 +1,24 @@
|
|
|
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'
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
|