@pikku/addon-ollama 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.pikku/addon/agent/index.d.ts +1 -1
- package/dist/.pikku/addon/agent/index.js +1 -1
- package/dist/.pikku/addon/agent/index.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +47 -6
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +41 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.ts +42 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
- package/dist/.pikku/addon/analytics/index.d.ts +8 -0
- package/dist/.pikku/addon/analytics/index.d.ts.map +1 -0
- package/dist/.pikku/addon/analytics/index.js +8 -0
- package/dist/.pikku/addon/analytics/index.js.map +1 -0
- package/dist/.pikku/addon/analytics/index.ts +8 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +6 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +5 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js.map +1 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.ts +25 -0
- package/dist/.pikku/addon/auth/index.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.js +1 -1
- package/dist/.pikku/addon/auth/index.ts +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +10 -20
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +2 -19
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.ts +10 -20
- package/dist/.pikku/addon/channel/index.d.ts +1 -1
- package/dist/.pikku/addon/channel/index.js +1 -1
- package/dist/.pikku/addon/channel/index.ts +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +10 -20
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +7 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.ts +8 -18
- package/dist/.pikku/addon/cli/index.d.ts +8 -0
- package/dist/.pikku/addon/cli/index.d.ts.map +1 -0
- package/dist/.pikku/addon/cli/index.js +8 -0
- package/dist/.pikku/addon/cli/index.js.map +1 -0
- package/dist/.pikku/addon/cli/index.ts +8 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +62 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +49 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.js.map +1 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.ts +88 -0
- package/dist/.pikku/addon/db/pikku-db-meta.gen.json +1 -0
- package/dist/.pikku/addon/error/index.d.ts +1 -1
- package/dist/.pikku/addon/error/index.js +1 -1
- package/dist/.pikku/addon/error/index.ts +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.ts +1 -1
- package/dist/.pikku/addon/function/index.d.ts +1 -1
- package/dist/.pikku/addon/function/index.js +1 -1
- package/dist/.pikku/addon/function/index.ts +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +57 -47
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +21 -9
- package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.ts +56 -44
- package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +8 -4
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +4 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.ts +1 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.ts +1 -1
- package/dist/.pikku/addon/http/index.d.ts +1 -1
- package/dist/.pikku/addon/http/index.js +1 -1
- package/dist/.pikku/addon/http/index.ts +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +3 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.ts +3 -1
- package/dist/.pikku/addon/mcp/index.d.ts +1 -1
- package/dist/.pikku/addon/mcp/index.js +1 -1
- package/dist/.pikku/addon/mcp/index.ts +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +7 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.ts +7 -1
- package/dist/.pikku/addon/middleware/index.d.ts +1 -1
- package/dist/.pikku/addon/middleware/index.js +1 -1
- package/dist/.pikku/addon/middleware/index.ts +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +42 -26
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +29 -24
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.ts +43 -26
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-local-services.gen.d.ts +29 -0
- package/dist/.pikku/addon/pikku-local-services.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-local-services.gen.js +42 -0
- package/dist/.pikku/addon/pikku-local-services.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-local-services.gen.ts +85 -0
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts +9 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.js +8 -0
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.ts +9 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +2 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/index.js +1 -1
- package/dist/.pikku/addon/scenarios/index.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +53 -35
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +7 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.ts +57 -40
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts +33 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js +29 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.ts +52 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.ts +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +2 -1
- package/dist/.pikku/addon/scopes/index.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/index.js +2 -1
- package/dist/.pikku/addon/scopes/index.js.map +1 -1
- package/dist/.pikku/addon/scopes/index.ts +2 -1
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts +41 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js +35 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.ts +52 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +9 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.js +2 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.ts +8 -0
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +2 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +2 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +2 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-virtual-users-meta.gen.json +1 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts +27 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js +16 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.ts +39 -0
- package/dist/.pikku/addon/secrets/index.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.js +1 -1
- package/dist/.pikku/addon/secrets/index.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +9 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +5 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.ts +9 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.ts +1 -1
- package/dist/.pikku/addon/setup/index.d.ts +1 -1
- package/dist/.pikku/addon/setup/index.js +1 -1
- package/dist/.pikku/addon/setup/index.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +4 -4
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +8 -20
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +11 -19
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.ts +19 -19
- package/dist/.pikku/addon/surface-usage.gen.json +326 -26
- package/dist/.pikku/addon/trigger/index.d.ts +1 -1
- package/dist/.pikku/addon/trigger/index.js +1 -1
- package/dist/.pikku/addon/trigger/index.ts +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +64 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +17 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.ts +58 -1
- package/dist/.pikku/addon/utils/index.d.ts +8 -0
- package/dist/.pikku/addon/utils/index.d.ts.map +1 -0
- package/dist/.pikku/addon/utils/index.js +8 -0
- package/dist/.pikku/addon/utils/index.js.map +1 -0
- package/dist/.pikku/addon/utils/index.ts +8 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts +5 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.js +5 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.js.map +1 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.ts +4 -0
- package/dist/.pikku/addon/variables/index.d.ts +1 -1
- package/dist/.pikku/addon/variables/index.js +1 -1
- package/dist/.pikku/addon/variables/index.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +9 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +7 -2
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.ts +10 -2
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks-meta.gen.json +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +12 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js +3 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js.map +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.ts +15 -0
- package/dist/.pikku/addon/workflow/index.d.ts +1 -1
- package/dist/.pikku/addon/workflow/index.js +1 -1
- package/dist/.pikku/addon/workflow/index.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +30 -6
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +8 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.ts +33 -2
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/.pikku/addon/workflow/virtual-users.gen.json +1 -0
- package/dist/.pikku/runs/mvcet6cm.all.jsonl +3 -0
- package/dist/src/functions/embeddings/embed-many.function.d.ts +3 -3
- package/dist/src/functions/embeddings/embed-many.function.d.ts.map +1 -1
- package/dist/src/functions/embeddings/embed.function.d.ts +3 -3
- package/dist/src/functions/embeddings/embed.function.d.ts.map +1 -1
- package/dist/src/functions/text/generate-object.function.d.ts +15 -15
- package/dist/src/functions/text/generate-object.function.d.ts.map +1 -1
- package/dist/src/functions/text/generate.function.d.ts +8 -8
- package/dist/src/functions/text/generate.function.d.ts.map +1 -1
- package/package.json +14 -11
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +0 -18
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +0 -18
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.ts +0 -36
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts +0 -29
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js +0 -18
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.ts +0 -41
- /package/dist/.pikku/addon/{scopes/pikku-personas-meta.gen.json → analytics/pikku-analytics-meta.gen.json} +0 -0
- /package/dist/.pikku/addon/{workflow/personas.gen.json → scopes/pikku-flags-meta.gen.json} +0 -0
|
@@ -70,6 +70,98 @@
|
|
|
70
70
|
"files": []
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
+
"#pikku/addon/analytics": {
|
|
74
|
+
"AnalyticsClientContext": {
|
|
75
|
+
"imports": 0,
|
|
76
|
+
"seenIn": [],
|
|
77
|
+
"files": []
|
|
78
|
+
},
|
|
79
|
+
"AnalyticsEventBase": {
|
|
80
|
+
"imports": 0,
|
|
81
|
+
"seenIn": [],
|
|
82
|
+
"files": []
|
|
83
|
+
},
|
|
84
|
+
"AnalyticsEventDefinitions": {
|
|
85
|
+
"imports": 0,
|
|
86
|
+
"seenIn": [],
|
|
87
|
+
"files": []
|
|
88
|
+
},
|
|
89
|
+
"AnalyticsEventPropsSchema": {
|
|
90
|
+
"imports": 0,
|
|
91
|
+
"seenIn": [],
|
|
92
|
+
"files": []
|
|
93
|
+
},
|
|
94
|
+
"AnalyticsIdentity": {
|
|
95
|
+
"imports": 0,
|
|
96
|
+
"seenIn": [],
|
|
97
|
+
"files": []
|
|
98
|
+
},
|
|
99
|
+
"AnalyticsIdentityResolver": {
|
|
100
|
+
"imports": 0,
|
|
101
|
+
"seenIn": [],
|
|
102
|
+
"files": []
|
|
103
|
+
},
|
|
104
|
+
"AnalyticsLog": {
|
|
105
|
+
"imports": 0,
|
|
106
|
+
"seenIn": [],
|
|
107
|
+
"files": []
|
|
108
|
+
},
|
|
109
|
+
"AnalyticsRecord": {
|
|
110
|
+
"imports": 0,
|
|
111
|
+
"seenIn": [],
|
|
112
|
+
"files": []
|
|
113
|
+
},
|
|
114
|
+
"AnalyticsService": {
|
|
115
|
+
"imports": 0,
|
|
116
|
+
"seenIn": [],
|
|
117
|
+
"files": []
|
|
118
|
+
},
|
|
119
|
+
"AnalyticsSink": {
|
|
120
|
+
"imports": 0,
|
|
121
|
+
"seenIn": [],
|
|
122
|
+
"files": []
|
|
123
|
+
},
|
|
124
|
+
"anonymousAnalyticsIdentity": {
|
|
125
|
+
"imports": 0,
|
|
126
|
+
"seenIn": [],
|
|
127
|
+
"files": []
|
|
128
|
+
},
|
|
129
|
+
"composeAnalyticsIdentity": {
|
|
130
|
+
"imports": 0,
|
|
131
|
+
"seenIn": [],
|
|
132
|
+
"files": []
|
|
133
|
+
},
|
|
134
|
+
"cookieAnalyticsIdentity": {
|
|
135
|
+
"imports": 0,
|
|
136
|
+
"seenIn": [],
|
|
137
|
+
"files": []
|
|
138
|
+
},
|
|
139
|
+
"defineAnalyticsEvents": {
|
|
140
|
+
"imports": 0,
|
|
141
|
+
"seenIn": [],
|
|
142
|
+
"files": []
|
|
143
|
+
},
|
|
144
|
+
"fanOutAnalytics": {
|
|
145
|
+
"imports": 0,
|
|
146
|
+
"seenIn": [],
|
|
147
|
+
"files": []
|
|
148
|
+
},
|
|
149
|
+
"LoggerAnalyticsService": {
|
|
150
|
+
"imports": 0,
|
|
151
|
+
"seenIn": [],
|
|
152
|
+
"files": []
|
|
153
|
+
},
|
|
154
|
+
"mintCookie": {
|
|
155
|
+
"imports": 0,
|
|
156
|
+
"seenIn": [],
|
|
157
|
+
"files": []
|
|
158
|
+
},
|
|
159
|
+
"randomDigits": {
|
|
160
|
+
"imports": 0,
|
|
161
|
+
"seenIn": [],
|
|
162
|
+
"files": []
|
|
163
|
+
}
|
|
164
|
+
},
|
|
73
165
|
"#pikku/addon/auth": {
|
|
74
166
|
"addGlobalPermission": {
|
|
75
167
|
"imports": 0,
|
|
@@ -124,6 +216,23 @@
|
|
|
124
216
|
"files": []
|
|
125
217
|
}
|
|
126
218
|
},
|
|
219
|
+
"#pikku/addon/cli": {
|
|
220
|
+
"defineCLICommands": {
|
|
221
|
+
"imports": 0,
|
|
222
|
+
"seenIn": [],
|
|
223
|
+
"files": []
|
|
224
|
+
},
|
|
225
|
+
"pikkuCLICommand": {
|
|
226
|
+
"imports": 0,
|
|
227
|
+
"seenIn": [],
|
|
228
|
+
"files": []
|
|
229
|
+
},
|
|
230
|
+
"pikkuCLIRender": {
|
|
231
|
+
"imports": 0,
|
|
232
|
+
"seenIn": [],
|
|
233
|
+
"files": []
|
|
234
|
+
}
|
|
235
|
+
},
|
|
127
236
|
"#pikku/addon/error": {
|
|
128
237
|
"addError": {
|
|
129
238
|
"imports": 0,
|
|
@@ -155,6 +264,11 @@
|
|
|
155
264
|
"seenIn": [],
|
|
156
265
|
"files": []
|
|
157
266
|
},
|
|
267
|
+
"CredentialRejectedError": {
|
|
268
|
+
"imports": 0,
|
|
269
|
+
"seenIn": [],
|
|
270
|
+
"files": []
|
|
271
|
+
},
|
|
158
272
|
"ErrorDetails": {
|
|
159
273
|
"imports": 0,
|
|
160
274
|
"seenIn": [],
|
|
@@ -165,6 +279,11 @@
|
|
|
165
279
|
"seenIn": [],
|
|
166
280
|
"files": []
|
|
167
281
|
},
|
|
282
|
+
"FeatureUnavailableError": {
|
|
283
|
+
"imports": 0,
|
|
284
|
+
"seenIn": [],
|
|
285
|
+
"files": []
|
|
286
|
+
},
|
|
168
287
|
"ForbiddenError": {
|
|
169
288
|
"imports": 0,
|
|
170
289
|
"seenIn": [],
|
|
@@ -471,11 +590,6 @@
|
|
|
471
590
|
"imports": 0,
|
|
472
591
|
"seenIn": [],
|
|
473
592
|
"files": []
|
|
474
|
-
},
|
|
475
|
-
"WiredSingletonServices": {
|
|
476
|
-
"imports": 0,
|
|
477
|
-
"seenIn": [],
|
|
478
|
-
"files": []
|
|
479
593
|
}
|
|
480
594
|
},
|
|
481
595
|
"#pikku/addon/http": {
|
|
@@ -523,6 +637,21 @@
|
|
|
523
637
|
"seenIn": [],
|
|
524
638
|
"files": []
|
|
525
639
|
},
|
|
640
|
+
"authAPIKey": {
|
|
641
|
+
"imports": 0,
|
|
642
|
+
"seenIn": [],
|
|
643
|
+
"files": []
|
|
644
|
+
},
|
|
645
|
+
"authBearer": {
|
|
646
|
+
"imports": 0,
|
|
647
|
+
"seenIn": [],
|
|
648
|
+
"files": []
|
|
649
|
+
},
|
|
650
|
+
"authCookie": {
|
|
651
|
+
"imports": 0,
|
|
652
|
+
"seenIn": [],
|
|
653
|
+
"files": []
|
|
654
|
+
},
|
|
526
655
|
"cors": {
|
|
527
656
|
"imports": 0,
|
|
528
657
|
"seenIn": [],
|
|
@@ -567,6 +696,11 @@
|
|
|
567
696
|
"imports": 0,
|
|
568
697
|
"seenIn": [],
|
|
569
698
|
"files": []
|
|
699
|
+
},
|
|
700
|
+
"requireOrigin": {
|
|
701
|
+
"imports": 0,
|
|
702
|
+
"seenIn": [],
|
|
703
|
+
"files": []
|
|
570
704
|
}
|
|
571
705
|
},
|
|
572
706
|
"#pikku/addon/scenarios": {
|
|
@@ -575,11 +709,6 @@
|
|
|
575
709
|
"seenIn": [],
|
|
576
710
|
"files": []
|
|
577
711
|
},
|
|
578
|
-
"createScenarioRunner": {
|
|
579
|
-
"imports": 0,
|
|
580
|
-
"seenIn": [],
|
|
581
|
-
"files": []
|
|
582
|
-
},
|
|
583
712
|
"pikkuAddonScenarioStep": {
|
|
584
713
|
"imports": 0,
|
|
585
714
|
"seenIn": [],
|
|
@@ -675,23 +804,28 @@
|
|
|
675
804
|
"seenIn": [],
|
|
676
805
|
"files": []
|
|
677
806
|
},
|
|
678
|
-
"
|
|
807
|
+
"TypedScenario": {
|
|
679
808
|
"imports": 0,
|
|
680
809
|
"seenIn": [],
|
|
681
810
|
"files": []
|
|
682
811
|
},
|
|
683
|
-
"
|
|
812
|
+
"TypedScenarioSteps": {
|
|
684
813
|
"imports": 0,
|
|
685
814
|
"seenIn": [],
|
|
686
815
|
"files": []
|
|
687
816
|
},
|
|
688
|
-
"
|
|
817
|
+
"TypedVirtualUsers": {
|
|
689
818
|
"imports": 0,
|
|
690
819
|
"seenIn": [],
|
|
691
820
|
"files": []
|
|
692
821
|
}
|
|
693
822
|
},
|
|
694
823
|
"#pikku/addon/scopes": {
|
|
824
|
+
"defineFeatureFlags": {
|
|
825
|
+
"imports": 0,
|
|
826
|
+
"seenIn": [],
|
|
827
|
+
"files": []
|
|
828
|
+
},
|
|
695
829
|
"defineScope": {
|
|
696
830
|
"imports": 0,
|
|
697
831
|
"seenIn": [],
|
|
@@ -701,6 +835,11 @@
|
|
|
701
835
|
"imports": 0,
|
|
702
836
|
"seenIn": [],
|
|
703
837
|
"files": []
|
|
838
|
+
},
|
|
839
|
+
"FeatureFlagName": {
|
|
840
|
+
"imports": 0,
|
|
841
|
+
"seenIn": [],
|
|
842
|
+
"files": []
|
|
704
843
|
}
|
|
705
844
|
},
|
|
706
845
|
"#pikku/addon/secrets": {
|
|
@@ -767,6 +906,23 @@
|
|
|
767
906
|
"imports": 0,
|
|
768
907
|
"seenIn": [],
|
|
769
908
|
"files": []
|
|
909
|
+
},
|
|
910
|
+
"pikkuWebhookReceive": {
|
|
911
|
+
"imports": 0,
|
|
912
|
+
"seenIn": [],
|
|
913
|
+
"files": []
|
|
914
|
+
},
|
|
915
|
+
"wireTriggerWebhookSource": {
|
|
916
|
+
"imports": 0,
|
|
917
|
+
"seenIn": [],
|
|
918
|
+
"files": []
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
"#pikku/addon/utils": {
|
|
922
|
+
"parseJson": {
|
|
923
|
+
"imports": 0,
|
|
924
|
+
"seenIn": [],
|
|
925
|
+
"files": []
|
|
770
926
|
}
|
|
771
927
|
},
|
|
772
928
|
"#pikku/addon/variables": {
|
|
@@ -855,6 +1011,98 @@
|
|
|
855
1011
|
"files": []
|
|
856
1012
|
}
|
|
857
1013
|
},
|
|
1014
|
+
"#pikku/analytics": {
|
|
1015
|
+
"AnalyticsClientContext": {
|
|
1016
|
+
"imports": 0,
|
|
1017
|
+
"seenIn": [],
|
|
1018
|
+
"files": []
|
|
1019
|
+
},
|
|
1020
|
+
"AnalyticsEventBase": {
|
|
1021
|
+
"imports": 0,
|
|
1022
|
+
"seenIn": [],
|
|
1023
|
+
"files": []
|
|
1024
|
+
},
|
|
1025
|
+
"AnalyticsEventDefinitions": {
|
|
1026
|
+
"imports": 0,
|
|
1027
|
+
"seenIn": [],
|
|
1028
|
+
"files": []
|
|
1029
|
+
},
|
|
1030
|
+
"AnalyticsEventPropsSchema": {
|
|
1031
|
+
"imports": 0,
|
|
1032
|
+
"seenIn": [],
|
|
1033
|
+
"files": []
|
|
1034
|
+
},
|
|
1035
|
+
"AnalyticsIdentity": {
|
|
1036
|
+
"imports": 0,
|
|
1037
|
+
"seenIn": [],
|
|
1038
|
+
"files": []
|
|
1039
|
+
},
|
|
1040
|
+
"AnalyticsIdentityResolver": {
|
|
1041
|
+
"imports": 0,
|
|
1042
|
+
"seenIn": [],
|
|
1043
|
+
"files": []
|
|
1044
|
+
},
|
|
1045
|
+
"AnalyticsLog": {
|
|
1046
|
+
"imports": 0,
|
|
1047
|
+
"seenIn": [],
|
|
1048
|
+
"files": []
|
|
1049
|
+
},
|
|
1050
|
+
"AnalyticsRecord": {
|
|
1051
|
+
"imports": 0,
|
|
1052
|
+
"seenIn": [],
|
|
1053
|
+
"files": []
|
|
1054
|
+
},
|
|
1055
|
+
"AnalyticsService": {
|
|
1056
|
+
"imports": 0,
|
|
1057
|
+
"seenIn": [],
|
|
1058
|
+
"files": []
|
|
1059
|
+
},
|
|
1060
|
+
"AnalyticsSink": {
|
|
1061
|
+
"imports": 0,
|
|
1062
|
+
"seenIn": [],
|
|
1063
|
+
"files": []
|
|
1064
|
+
},
|
|
1065
|
+
"anonymousAnalyticsIdentity": {
|
|
1066
|
+
"imports": 0,
|
|
1067
|
+
"seenIn": [],
|
|
1068
|
+
"files": []
|
|
1069
|
+
},
|
|
1070
|
+
"composeAnalyticsIdentity": {
|
|
1071
|
+
"imports": 0,
|
|
1072
|
+
"seenIn": [],
|
|
1073
|
+
"files": []
|
|
1074
|
+
},
|
|
1075
|
+
"cookieAnalyticsIdentity": {
|
|
1076
|
+
"imports": 0,
|
|
1077
|
+
"seenIn": [],
|
|
1078
|
+
"files": []
|
|
1079
|
+
},
|
|
1080
|
+
"defineAnalyticsEvents": {
|
|
1081
|
+
"imports": 0,
|
|
1082
|
+
"seenIn": [],
|
|
1083
|
+
"files": []
|
|
1084
|
+
},
|
|
1085
|
+
"fanOutAnalytics": {
|
|
1086
|
+
"imports": 0,
|
|
1087
|
+
"seenIn": [],
|
|
1088
|
+
"files": []
|
|
1089
|
+
},
|
|
1090
|
+
"LoggerAnalyticsService": {
|
|
1091
|
+
"imports": 0,
|
|
1092
|
+
"seenIn": [],
|
|
1093
|
+
"files": []
|
|
1094
|
+
},
|
|
1095
|
+
"mintCookie": {
|
|
1096
|
+
"imports": 0,
|
|
1097
|
+
"seenIn": [],
|
|
1098
|
+
"files": []
|
|
1099
|
+
},
|
|
1100
|
+
"randomDigits": {
|
|
1101
|
+
"imports": 0,
|
|
1102
|
+
"seenIn": [],
|
|
1103
|
+
"files": []
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
858
1106
|
"#pikku/auth": {
|
|
859
1107
|
"addGlobalPermission": {
|
|
860
1108
|
"imports": 0,
|
|
@@ -972,6 +1220,11 @@
|
|
|
972
1220
|
"seenIn": [],
|
|
973
1221
|
"files": []
|
|
974
1222
|
},
|
|
1223
|
+
"CredentialRejectedError": {
|
|
1224
|
+
"imports": 0,
|
|
1225
|
+
"seenIn": [],
|
|
1226
|
+
"files": []
|
|
1227
|
+
},
|
|
975
1228
|
"ErrorDetails": {
|
|
976
1229
|
"imports": 0,
|
|
977
1230
|
"seenIn": [],
|
|
@@ -982,6 +1235,11 @@
|
|
|
982
1235
|
"seenIn": [],
|
|
983
1236
|
"files": []
|
|
984
1237
|
},
|
|
1238
|
+
"FeatureUnavailableError": {
|
|
1239
|
+
"imports": 0,
|
|
1240
|
+
"seenIn": [],
|
|
1241
|
+
"files": []
|
|
1242
|
+
},
|
|
985
1243
|
"ForbiddenError": {
|
|
986
1244
|
"imports": 0,
|
|
987
1245
|
"seenIn": [],
|
|
@@ -1288,11 +1546,6 @@
|
|
|
1288
1546
|
"imports": 0,
|
|
1289
1547
|
"seenIn": [],
|
|
1290
1548
|
"files": []
|
|
1291
|
-
},
|
|
1292
|
-
"WiredSingletonServices": {
|
|
1293
|
-
"imports": 0,
|
|
1294
|
-
"seenIn": [],
|
|
1295
|
-
"files": []
|
|
1296
1549
|
}
|
|
1297
1550
|
},
|
|
1298
1551
|
"#pikku/gateway": {
|
|
@@ -1402,6 +1655,21 @@
|
|
|
1402
1655
|
"seenIn": [],
|
|
1403
1656
|
"files": []
|
|
1404
1657
|
},
|
|
1658
|
+
"authAPIKey": {
|
|
1659
|
+
"imports": 0,
|
|
1660
|
+
"seenIn": [],
|
|
1661
|
+
"files": []
|
|
1662
|
+
},
|
|
1663
|
+
"authBearer": {
|
|
1664
|
+
"imports": 0,
|
|
1665
|
+
"seenIn": [],
|
|
1666
|
+
"files": []
|
|
1667
|
+
},
|
|
1668
|
+
"authCookie": {
|
|
1669
|
+
"imports": 0,
|
|
1670
|
+
"seenIn": [],
|
|
1671
|
+
"files": []
|
|
1672
|
+
},
|
|
1405
1673
|
"cors": {
|
|
1406
1674
|
"imports": 0,
|
|
1407
1675
|
"seenIn": [],
|
|
@@ -1446,6 +1714,11 @@
|
|
|
1446
1714
|
"imports": 0,
|
|
1447
1715
|
"seenIn": [],
|
|
1448
1716
|
"files": []
|
|
1717
|
+
},
|
|
1718
|
+
"requireOrigin": {
|
|
1719
|
+
"imports": 0,
|
|
1720
|
+
"seenIn": [],
|
|
1721
|
+
"files": []
|
|
1449
1722
|
}
|
|
1450
1723
|
},
|
|
1451
1724
|
"#pikku/queue": {
|
|
@@ -1461,11 +1734,6 @@
|
|
|
1461
1734
|
"seenIn": [],
|
|
1462
1735
|
"files": []
|
|
1463
1736
|
},
|
|
1464
|
-
"createScenarioRunner": {
|
|
1465
|
-
"imports": 0,
|
|
1466
|
-
"seenIn": [],
|
|
1467
|
-
"files": []
|
|
1468
|
-
},
|
|
1469
1737
|
"pikkuAddonScenarioStep": {
|
|
1470
1738
|
"imports": 0,
|
|
1471
1739
|
"seenIn": [],
|
|
@@ -1561,17 +1829,17 @@
|
|
|
1561
1829
|
"seenIn": [],
|
|
1562
1830
|
"files": []
|
|
1563
1831
|
},
|
|
1564
|
-
"
|
|
1832
|
+
"TypedScenario": {
|
|
1565
1833
|
"imports": 0,
|
|
1566
1834
|
"seenIn": [],
|
|
1567
1835
|
"files": []
|
|
1568
1836
|
},
|
|
1569
|
-
"
|
|
1837
|
+
"TypedScenarioSteps": {
|
|
1570
1838
|
"imports": 0,
|
|
1571
1839
|
"seenIn": [],
|
|
1572
1840
|
"files": []
|
|
1573
1841
|
},
|
|
1574
|
-
"
|
|
1842
|
+
"TypedVirtualUsers": {
|
|
1575
1843
|
"imports": 0,
|
|
1576
1844
|
"seenIn": [],
|
|
1577
1845
|
"files": []
|
|
@@ -1585,6 +1853,11 @@
|
|
|
1585
1853
|
}
|
|
1586
1854
|
},
|
|
1587
1855
|
"#pikku/scopes": {
|
|
1856
|
+
"defineFeatureFlags": {
|
|
1857
|
+
"imports": 0,
|
|
1858
|
+
"seenIn": [],
|
|
1859
|
+
"files": []
|
|
1860
|
+
},
|
|
1588
1861
|
"defineScope": {
|
|
1589
1862
|
"imports": 0,
|
|
1590
1863
|
"seenIn": [],
|
|
@@ -1594,6 +1867,11 @@
|
|
|
1594
1867
|
"imports": 0,
|
|
1595
1868
|
"seenIn": [],
|
|
1596
1869
|
"files": []
|
|
1870
|
+
},
|
|
1871
|
+
"FeatureFlagName": {
|
|
1872
|
+
"imports": 0,
|
|
1873
|
+
"seenIn": [],
|
|
1874
|
+
"files": []
|
|
1597
1875
|
}
|
|
1598
1876
|
},
|
|
1599
1877
|
"#pikku/secrets": {
|
|
@@ -1624,6 +1902,11 @@
|
|
|
1624
1902
|
"seenIn": [],
|
|
1625
1903
|
"files": []
|
|
1626
1904
|
},
|
|
1905
|
+
"pikkuServerLifecycle": {
|
|
1906
|
+
"imports": 0,
|
|
1907
|
+
"seenIn": [],
|
|
1908
|
+
"files": []
|
|
1909
|
+
},
|
|
1627
1910
|
"pikkuServices": {
|
|
1628
1911
|
"imports": 0,
|
|
1629
1912
|
"seenIn": [],
|
|
@@ -1641,6 +1924,11 @@
|
|
|
1641
1924
|
"seenIn": [],
|
|
1642
1925
|
"files": []
|
|
1643
1926
|
},
|
|
1927
|
+
"pikkuWebhookReceive": {
|
|
1928
|
+
"imports": 0,
|
|
1929
|
+
"seenIn": [],
|
|
1930
|
+
"files": []
|
|
1931
|
+
},
|
|
1644
1932
|
"wireTrigger": {
|
|
1645
1933
|
"imports": 0,
|
|
1646
1934
|
"seenIn": [],
|
|
@@ -1650,6 +1938,18 @@
|
|
|
1650
1938
|
"imports": 0,
|
|
1651
1939
|
"seenIn": [],
|
|
1652
1940
|
"files": []
|
|
1941
|
+
},
|
|
1942
|
+
"wireTriggerWebhookSource": {
|
|
1943
|
+
"imports": 0,
|
|
1944
|
+
"seenIn": [],
|
|
1945
|
+
"files": []
|
|
1946
|
+
}
|
|
1947
|
+
},
|
|
1948
|
+
"#pikku/utils": {
|
|
1949
|
+
"parseJson": {
|
|
1950
|
+
"imports": 0,
|
|
1951
|
+
"seenIn": [],
|
|
1952
|
+
"files": []
|
|
1653
1953
|
}
|
|
1654
1954
|
},
|
|
1655
1955
|
"#pikku/variables": {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Trigger-specific type definitions for tree-shaking optimization
|
|
6
6
|
*/
|
|
7
|
+
import type { PikkuHTTP } from '@pikku/core/http';
|
|
8
|
+
import type { CoreTriggerWebhookSource, WebhookVerify, WebhookRequest, WebhookReceiveResult, WebhookLifecycleInput, WebhookCheckResult, WebhookSetupResult, WebhookTeardownInput, WebhookTeardownResult } from '@pikku/core/trigger';
|
|
7
9
|
import { CorePikkuTriggerFunction, CorePikkuTriggerFunctionConfig } from '@pikku/core/trigger';
|
|
8
10
|
import type { CoreNodeConfig } from '@pikku/core/node';
|
|
9
11
|
import type { SingletonServices } from '../../../types/application-types.d.js';
|
|
@@ -42,6 +44,28 @@ type PikkuTriggerFunctionConfigWithSchema<InputSchema extends StandardSchemaV1,
|
|
|
42
44
|
* Type definition for trigger wirings.
|
|
43
45
|
* Declares a trigger name and its target pikku function.
|
|
44
46
|
*/
|
|
47
|
+
/** A webhook source is only reached over HTTP, so its request and response are always there. */
|
|
48
|
+
type WebhookHTTP = Required<Pick<PikkuHTTP, 'request' | 'response'>>;
|
|
49
|
+
/**
|
|
50
|
+
* One step of a webhook source: inline, a pikku function, or `ref('addon:fn')`.
|
|
51
|
+
*/
|
|
52
|
+
type WebhookSourceStep<In, Out> = {
|
|
53
|
+
func: (services: any, data: In, wire: any) => Promise<Out | void>;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* A webhook source, using project-specific services.
|
|
57
|
+
*/
|
|
58
|
+
type TriggerWebhookSource<Events extends Record<string, StandardSchemaV1>> = Omit<CoreTriggerWebhookSource<Events>, 'verify' | 'receive' | 'check' | 'setup' | 'teardown'> & {
|
|
59
|
+
verify?: WebhookVerify<any>;
|
|
60
|
+
receive?: {
|
|
61
|
+
func: (services: any, data: WebhookRequest, wire: {
|
|
62
|
+
http: WebhookHTTP;
|
|
63
|
+
}) => Promise<WebhookReceiveResult | void>;
|
|
64
|
+
};
|
|
65
|
+
check?: WebhookSourceStep<WebhookLifecycleInput, WebhookCheckResult>;
|
|
66
|
+
setup?: WebhookSourceStep<WebhookLifecycleInput, WebhookSetupResult>;
|
|
67
|
+
teardown?: WebhookSourceStep<WebhookTeardownInput, WebhookTeardownResult>;
|
|
68
|
+
};
|
|
45
69
|
/**
|
|
46
70
|
* Creates a trigger function configuration.
|
|
47
71
|
* Use this to define trigger functions that set up subscriptions.
|
|
@@ -79,5 +103,44 @@ type PikkuTriggerFunctionConfigWithSchema<InputSchema extends StandardSchemaV1,
|
|
|
79
103
|
*/
|
|
80
104
|
export declare function pikkuTriggerFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuTriggerFunctionConfigWithSchema<InputSchema, OutputSchema>): PikkuTriggerFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, InputSchema, OutputSchema>;
|
|
81
105
|
export declare function pikkuTriggerFunc<TInput, TOutput = unknown>(triggerOrConfig: PikkuTriggerFunction<TInput, TOutput> | PikkuTriggerFunctionConfig<TInput, TOutput>): PikkuTriggerFunctionConfig<TInput, TOutput>;
|
|
106
|
+
/**
|
|
107
|
+
* A webhook source's `receive`: reads the request into events, or answers a
|
|
108
|
+
* handshake through `http.response`. It is public (`auth: false`) and only its source's route runs it,
|
|
109
|
+
* so it is never callable as an RPC. Signatures are the source's `verify`.
|
|
110
|
+
*
|
|
111
|
+
* @example snippet: pikkuWebhookReceive
|
|
112
|
+
*/
|
|
113
|
+
export declare const pikkuWebhookReceive: (config: {
|
|
114
|
+
/** A short name for the function in the console. */
|
|
115
|
+
title?: string;
|
|
116
|
+
/** What this receive reads, shown wherever the function is listed. */
|
|
117
|
+
description?: string;
|
|
118
|
+
/** Groups the function with others in the console and in `pikku info`. */
|
|
119
|
+
tags?: string[];
|
|
120
|
+
/** Turns the raw request into `{ events }`. A handshake returns nothing and answers through `http.response`. */
|
|
121
|
+
func: (services: Omit<SingletonServices, 'secrets'>, request: WebhookRequest, wire: {
|
|
122
|
+
http: WebhookHTTP;
|
|
123
|
+
}) => Promise<WebhookReceiveResult | void>;
|
|
124
|
+
}) => {
|
|
125
|
+
/** A short name for the function in the console. */
|
|
126
|
+
title?: string;
|
|
127
|
+
/** What this receive reads, shown wherever the function is listed. */
|
|
128
|
+
description?: string;
|
|
129
|
+
/** Groups the function with others in the console and in `pikku info`. */
|
|
130
|
+
tags?: string[];
|
|
131
|
+
/** Turns the raw request into `{ events }`. A handshake returns nothing and answers through `http.response`. */
|
|
132
|
+
func: (services: Omit<SingletonServices, 'secrets'>, request: WebhookRequest, wire: {
|
|
133
|
+
http: WebhookHTTP;
|
|
134
|
+
}) => Promise<WebhookReceiveResult | void>;
|
|
135
|
+
auth: false;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Declares a webhook source this addon ships. An app that wires the addon
|
|
139
|
+
* mounts its route and can register it with the provider, but the source
|
|
140
|
+
* stays off until someone turns it on. Declaration only: nothing runs here.
|
|
141
|
+
*
|
|
142
|
+
* @param source - Webhook source with name, events and its steps
|
|
143
|
+
*/
|
|
144
|
+
export declare const wireTriggerWebhookSource: <Events extends Record<string, StandardSchemaV1> = Record<string, StandardSchemaV1>>(_source: TriggerWebhookSource<Events>) => void;
|
|
82
145
|
export {};
|
|
83
146
|
//# sourceMappingURL=pikku-trigger-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-trigger-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAI7D;;;;;;GAMG;AACH,KAAK,oBAAoB,CACvB,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,IACf,wBAAwB,CAAC,MAAM,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAA;AAEhE;;GAEG;AACH,KAAK,0BAA0B,CAC7B,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,EACjB,WAAW,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,EAC5D,YAAY,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,IAC3D,8BAA8B,CAAC,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,CAAC,CAAA;AAEjG;;GAEG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,MAAM,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK,CAAA;AAE1F;;;;GAIG;AACH,KAAK,oCAAoC,CACvC,WAAW,SAAS,gBAAgB,EACpC,YAAY,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,IAC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AAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;;CACzG,CAAA;AAG3C;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,WAEzE,oBAAoB,CAAC,MAAM,CAAC,SAChC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Trigger-specific type definitions for tree-shaking optimization
|
|
@@ -10,4 +10,20 @@ export function pikkuTriggerFunc(triggerOrConfig) {
|
|
|
10
10
|
}
|
|
11
11
|
return triggerOrConfig;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* A webhook source's `receive`: reads the request into events, or answers a
|
|
15
|
+
* handshake through `http.response`. It is public (`auth: false`) and only its source's route runs it,
|
|
16
|
+
* so it is never callable as an RPC. Signatures are the source's `verify`.
|
|
17
|
+
*
|
|
18
|
+
* @example snippet: pikkuWebhookReceive
|
|
19
|
+
*/
|
|
20
|
+
export const pikkuWebhookReceive = (config) => ({ ...config, auth: false });
|
|
21
|
+
/**
|
|
22
|
+
* Declares a webhook source this addon ships. An app that wires the addon
|
|
23
|
+
* mounts its route and can register it with the provider, but the source
|
|
24
|
+
* stays off until someone turns it on. Declaration only: nothing runs here.
|
|
25
|
+
*
|
|
26
|
+
* @param source - Webhook source with name, events and its steps
|
|
27
|
+
*/
|
|
28
|
+
export const wireTriggerWebhookSource = (_source) => { };
|
|
13
29
|
//# sourceMappingURL=pikku-trigger-types.gen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-trigger-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;
|
|
1
|
+
{"version":3,"file":"pikku-trigger-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AA0IH,MAAM,UAAU,gBAAgB,CAAC,eAAoB;IACnD,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,CAAA;IAClC,CAAC;IACD,OAAO,eAAe,CAAA;AACxB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MASnC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,KAAc,EAAE,CAAC,CAAA;AAG3C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAGtC,OAAqC,EACrC,EAAE,GAAE,CAAC,CAAA"}
|