@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -26,6 +26,7 @@ export type EventSendInput = {
|
|
|
26
26
|
user_data: {
|
|
27
27
|
[key: string]: string | string[];
|
|
28
28
|
};
|
|
29
|
+
/** Custom event data (value, currency, content_name, content_ids, contents, num_items, etc.) */
|
|
29
30
|
custom_data?: {
|
|
30
31
|
[key: string]: unknown;
|
|
31
32
|
} | undefined;
|
|
@@ -63,18 +64,27 @@ export type RPCMap = {
|
|
|
63
64
|
// No addon packages, use RPCMap directly
|
|
64
65
|
export type FlattenedRPCMap = RPCMap
|
|
65
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
|
+
|
|
66
74
|
|
|
67
75
|
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
68
|
-
|
|
69
|
-
|
|
76
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
77
|
+
? [name: Name]
|
|
78
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
70
79
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
71
80
|
|
|
72
81
|
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
83
|
+
? [name: Name]
|
|
84
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
75
85
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
76
86
|
|
|
77
|
-
import type {
|
|
87
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
78
88
|
|
|
79
89
|
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
80
90
|
|
|
@@ -90,12 +100,22 @@ interface AIAgentInput {
|
|
|
90
100
|
resourceId: string
|
|
91
101
|
}
|
|
92
102
|
|
|
93
|
-
export type TypedStartWorkflow = <Name extends keyof
|
|
103
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
94
104
|
name: Name,
|
|
95
|
-
input:
|
|
105
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
96
106
|
options?: { startNode?: string }
|
|
97
107
|
) => Promise<{ runId: string }>
|
|
98
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
|
+
|
|
99
119
|
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
100
120
|
? (name: string, input: AIAgentInput) => Promise<any>
|
|
101
121
|
: <Name extends keyof FlattenedAgentMap>(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -26,6 +26,7 @@ export type EventSendInput = {
|
|
|
26
26
|
user_data: {
|
|
27
27
|
[key: string]: string | string[];
|
|
28
28
|
};
|
|
29
|
+
/** Custom event data (value, currency, content_name, content_ids, contents, num_items, etc.) */
|
|
29
30
|
custom_data?: {
|
|
30
31
|
[key: string]: unknown;
|
|
31
32
|
} | undefined;
|
|
@@ -64,18 +65,27 @@ export type RPCMap = {
|
|
|
64
65
|
// No addon packages, use RPCMap directly
|
|
65
66
|
export type FlattenedRPCMap = RPCMap
|
|
66
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
|
+
|
|
67
75
|
|
|
68
76
|
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
69
|
-
|
|
70
|
-
|
|
77
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
78
|
+
? [name: Name]
|
|
79
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
71
80
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
72
81
|
|
|
73
82
|
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
84
|
+
? [name: Name]
|
|
85
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
76
86
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
77
87
|
|
|
78
|
-
import type {
|
|
88
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
79
89
|
|
|
80
90
|
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
81
91
|
|
|
@@ -91,12 +101,22 @@ interface AIAgentInput {
|
|
|
91
101
|
resourceId: string
|
|
92
102
|
}
|
|
93
103
|
|
|
94
|
-
export type TypedStartWorkflow = <Name extends keyof
|
|
104
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
95
105
|
name: Name,
|
|
96
|
-
input:
|
|
106
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
97
107
|
options?: { startNode?: string }
|
|
98
108
|
) => Promise<{ runId: string }>
|
|
99
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
|
+
|
|
100
120
|
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
101
121
|
? (name: string, input: AIAgentInput) => Promise<any>
|
|
102
122
|
: <Name extends keyof FlattenedAgentMap>(
|
|
@@ -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
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":""}
|
|
@@ -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 metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState('@pikku/addon-meta-conversions', 'rpc', 'meta', metaData);
|
|
7
|
+
//# sourceMappingURL=pikku-rpc-wirings-meta.internal.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.js","sourceRoot":"","sources":["../../../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,QAAQ,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACvF,UAAU,CAAC,+BAA+B,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal'
|
|
5
|
+
import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' }
|
|
6
|
+
pikkuState('@pikku/addon-meta-conversions', 'rpc', 'meta', metaData as Record<string, string>)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-functions-meta.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-functions-meta.gen.ts"],"names":[],"mappings":"AAKA,OAAO,yCAAyC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal';
|
|
5
|
+
import '../function/pikku-functions-meta.gen.js';
|
|
6
|
+
import metaData from './pikku-scenario-functions-meta.gen.json' with { type: 'json' };
|
|
7
|
+
pikkuState('@pikku/addon-meta-conversions', 'function', 'meta', {
|
|
8
|
+
...pikkuState('@pikku/addon-meta-conversions', 'function', 'meta'),
|
|
9
|
+
...metaData,
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=pikku-scenario-functions-meta.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-functions-meta.gen.js","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-functions-meta.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,yCAAyC,CAAA;AAChD,OAAO,QAAQ,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAErF,UAAU,CAAC,+BAA+B,EAAE,UAAU,EAAE,MAAM,EAAE;IAC9D,GAAG,UAAU,CAAC,+BAA+B,EAAE,UAAU,EAAE,MAAM,CAAC;IAClE,GAAI,QAA0B;CAC/B,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 '../function/pikku-functions-meta.gen.js'
|
|
7
|
+
import metaData from './pikku-scenario-functions-meta.gen.json' with { type: 'json' }
|
|
8
|
+
|
|
9
|
+
pikkuState('@pikku/addon-meta-conversions', 'function', 'meta', {
|
|
10
|
+
...pikkuState('@pikku/addon-meta-conversions', 'function', 'meta'),
|
|
11
|
+
...(metaData as FunctionsMeta),
|
|
12
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-functions.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-functions.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-functions.gen.js","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-functions.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-wirings-meta.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts"],"names":[],"mappings":"AAKA,OAAO,gDAAgD,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal';
|
|
5
|
+
import '../workflow/pikku-workflow-wirings-meta.gen.js';
|
|
6
|
+
const scenariosMeta = {};
|
|
7
|
+
pikkuState('@pikku/addon-meta-conversions', 'workflows', 'meta', {
|
|
8
|
+
...pikkuState('@pikku/addon-meta-conversions', 'workflows', 'meta'),
|
|
9
|
+
...scenariosMeta,
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=pikku-scenario-wirings-meta.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-wirings-meta.gen.js","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,gDAAgD,CAAA;AAEvD,MAAM,aAAa,GAAG,EAEG,CAAA;AAEzB,UAAU,CAAC,+BAA+B,EAAE,WAAW,EAAE,MAAM,EAAE;IAC/D,GAAG,UAAU,CAAC,+BAA+B,EAAE,WAAW,EAAE,MAAM,CAAC;IACnE,GAAG,aAAa;CACjB,CAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal'
|
|
5
|
+
import type { WorkflowsRuntimeMeta } from '@pikku/core/workflow/types'
|
|
6
|
+
import '../workflow/pikku-workflow-wirings-meta.gen.js'
|
|
7
|
+
|
|
8
|
+
const scenariosMeta = {
|
|
9
|
+
|
|
10
|
+
} as WorkflowsRuntimeMeta
|
|
11
|
+
|
|
12
|
+
pikkuState('@pikku/addon-meta-conversions', 'workflows', 'meta', {
|
|
13
|
+
...pikkuState('@pikku/addon-meta-conversions', 'workflows', 'meta'),
|
|
14
|
+
...scenariosMeta,
|
|
15
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-wirings.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-wirings.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-wirings.gen.js","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-wirings.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/scenarios/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,KAAK,MAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.gen.js","sourceRoot":"","sources":["../../../../.pikku/scenarios/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Scheduler-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { CoreScheduledTask } from '@pikku/core/scheduler';
|
|
8
|
+
import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-function-types.gen.js';
|
|
9
|
+
/**
|
|
10
|
+
* Type definition for scheduled tasks that run at specified intervals.
|
|
11
|
+
* These are sessionless functions that execute based on cron expressions.
|
|
12
|
+
*/
|
|
13
|
+
type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void, 'session' | 'rpc'>, PikkuMiddleware>;
|
|
14
|
+
/**
|
|
15
|
+
* Registers a scheduled task with the Pikku framework.
|
|
16
|
+
* Tasks run based on cron expressions and are sessionless.
|
|
17
|
+
*
|
|
18
|
+
* @param task - Scheduled task definition with cron expression and handler
|
|
19
|
+
*/
|
|
20
|
+
export declare const wireScheduler: (task: SchedulerWiring) => void;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=pikku-scheduler-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scheduler-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scheduler/pikku-scheduler-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAsC,MAAM,uBAAuB,CAAA;AAC7F,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAEnG;;;GAGG;AACH,KAAK,eAAe,GAAG,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,GAAG,KAAK,CAAC,EAAE,eAAe,CAAC,CAAA;AAE7G;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,eAAe,SAElD,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Scheduler-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireScheduler as wireSchedulerCore } from '@pikku/core/scheduler';
|
|
8
|
+
/**
|
|
9
|
+
* Registers a scheduled task with the Pikku framework.
|
|
10
|
+
* Tasks run based on cron expressions and are sessionless.
|
|
11
|
+
*
|
|
12
|
+
* @param task - Scheduled task definition with cron expression and handler
|
|
13
|
+
*/
|
|
14
|
+
export const wireScheduler = (task) => {
|
|
15
|
+
wireSchedulerCore(task);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=pikku-scheduler-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scheduler-types.gen.js","sourceRoot":"","sources":["../../../.pikku/scheduler/pikku-scheduler-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAqB,aAAa,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAS7F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAqB,EAAE,EAAE;IACrD,iBAAiB,CAAC,IAAW,CAAC,CAAA;AAChC,CAAC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Scheduler-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { CoreScheduledTask, wireScheduler as wireSchedulerCore } from '@pikku/core/scheduler'
|
|
9
|
+
import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-function-types.gen.js'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Type definition for scheduled tasks that run at specified intervals.
|
|
13
|
+
* These are sessionless functions that execute based on cron expressions.
|
|
14
|
+
*/
|
|
15
|
+
type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void, 'session' | 'rpc'>, PikkuMiddleware>
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Registers a scheduled task with the Pikku framework.
|
|
19
|
+
* Tasks run based on cron expressions and are sessionless.
|
|
20
|
+
*
|
|
21
|
+
* @param task - Scheduled task definition with cron expression and handler
|
|
22
|
+
*/
|
|
23
|
+
export const wireScheduler = (task: SchedulerWiring) => {
|
|
24
|
+
wireSchedulerCore(task as any)
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { CorePersona, PersonaMeta, PersonasMeta } from '@pikku/core/persona';
|
|
2
|
+
import type { SystemRoleName } from './pikku-roles.gen.js';
|
|
3
|
+
/** Every declared persona. */
|
|
4
|
+
export type PersonaId = never;
|
|
5
|
+
/**
|
|
6
|
+
* The personas a virtual user can actually be.
|
|
7
|
+
*
|
|
8
|
+
* Excludes anyone whose only login is a provider account — driving a consent
|
|
9
|
+
* screen needs a human — and anyone declared `runnable: false`, who exists to
|
|
10
|
+
* be acted upon rather than to act.
|
|
11
|
+
*/
|
|
12
|
+
export type RunnablePersonaId = never;
|
|
13
|
+
/** Every environment configured in pikku.config.json. */
|
|
14
|
+
export type EnvironmentName = never;
|
|
15
|
+
/**
|
|
16
|
+
* A persona whose roles are checked against `defineSystemRole` and whose
|
|
17
|
+
* environments are checked against the config.
|
|
18
|
+
*
|
|
19
|
+
* Omitting `environments` means every environment except the ones flagged
|
|
20
|
+
* `production: true`. Naming a production one additionally requires
|
|
21
|
+
* `disposition: 'accountable'`, which the type cannot express and `pikku`
|
|
22
|
+
* refuses at build time.
|
|
23
|
+
*/
|
|
24
|
+
export type TypedPersona = Omit<CorePersona, 'roles' | 'environments'> & {
|
|
25
|
+
roles?: SystemRoleName[];
|
|
26
|
+
environments?: EnvironmentName[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Declare the people who use this application.
|
|
30
|
+
*
|
|
31
|
+
* A persona while running is a virtual user; there is no second declaration.
|
|
32
|
+
*/
|
|
33
|
+
export declare const definePersonas: (personas: Record<string, TypedPersona>) => void;
|
|
34
|
+
/** Declared personas, keyed by id. Read by the console and `pikku persona`. */
|
|
35
|
+
export declare const PERSONAS: PersonasMeta;
|
|
36
|
+
export declare const PERSONA_LIST: PersonaMeta[];
|
|
37
|
+
//# sourceMappingURL=pikku-personas.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-personas.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-personas.gen.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1D,8BAA8B;AAC9B,MAAM,MAAM,SAAS,GAAG,KAAK,CAAA;AAE7B;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAA;AAErC,yDAAyD;AACzD,MAAM,MAAM,eAAe,GAAG,KAAK,CAAA;AAEnC;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,cAAc,CAAC,GAAG;IACvE,KAAK,CAAC,EAAE,cAAc,EAAE,CAAA;IACxB,YAAY,CAAC,EAAE,eAAe,EAAE,CAAA;CACjC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,KAAG,IAC1C,CAAA;AAE9B,+EAA+E;AAC/E,eAAO,MAAM,QAAQ,EAAE,YAAqD,CAAA;AAE5E,eAAO,MAAM,YAAY,EAAE,WAAW,EAA4B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import { definePersonas as definePersonasCore } from '@pikku/core/persona';
|
|
8
|
+
import definitions from './pikku-personas-meta.gen.json' with { type: 'json' };
|
|
9
|
+
/**
|
|
10
|
+
* Declare the people who use this application.
|
|
11
|
+
*
|
|
12
|
+
* A persona while running is a virtual user; there is no second declaration.
|
|
13
|
+
*/
|
|
14
|
+
export const definePersonas = (personas) => definePersonasCore(personas);
|
|
15
|
+
/** Declared personas, keyed by id. Read by the console and `pikku persona`. */
|
|
16
|
+
export const PERSONAS = definitions;
|
|
17
|
+
export const PERSONA_LIST = Object.values(PERSONAS);
|
|
18
|
+
//# sourceMappingURL=pikku-personas.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-personas.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-personas.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAG1E,OAAO,WAAW,MAAM,gCAAgC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AA+B9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAsC,EAAQ,EAAE,CAC7E,kBAAkB,CAAC,QAAQ,CAAC,CAAA;AAE9B,+EAA+E;AAC/E,MAAM,CAAC,MAAM,QAAQ,GAAiB,WAAsC,CAAA;AAE5E,MAAM,CAAC,MAAM,YAAY,GAAkB,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA"}
|