@pikku/addon-meta-conversions 0.1.2 → 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.
Files changed (218) hide show
  1. package/.pikku/addon/pikku-addon-types.gen.ts +1 -1
  2. package/.pikku/addon/pikku-package.gen.ts +1 -1
  3. package/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
  4. package/.pikku/agent/pikku-agent-types.gen.ts +4 -2
  5. package/.pikku/channel/pikku-channel-types.gen.ts +1 -1
  6. package/.pikku/console/pikku-addon-meta.gen.json +4 -1
  7. package/.pikku/console/pikku-node-types.gen.ts +1 -1
  8. package/.pikku/function/pikku-function-types.gen.ts +117 -74
  9. package/.pikku/function/pikku-functions-meta-verbose.gen.json +2 -0
  10. package/.pikku/function/pikku-functions-meta.gen.json +7 -1
  11. package/.pikku/function/pikku-functions-meta.gen.ts +1 -1
  12. package/.pikku/function/pikku-functions.gen.ts +1 -1
  13. package/.pikku/http/pikku-http-types.gen.ts +3 -31
  14. package/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
  15. package/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
  16. package/.pikku/pikku-bootstrap.gen.ts +1 -1
  17. package/.pikku/pikku-meta-service.gen.ts +1 -1
  18. package/.pikku/pikku-services.gen.ts +6 -1
  19. package/.pikku/pikku-types.gen.ts +4 -1
  20. package/.pikku/queue/pikku-queue-types.gen.ts +1 -1
  21. package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -1
  22. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -1
  23. package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +135 -0
  24. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
  25. package/.pikku/scenarios/features.gen.json +1 -0
  26. package/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  27. package/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
  28. package/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
  29. package/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
  30. package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  31. package/.pikku/scenarios/schemas/register.gen.ts +4 -0
  32. package/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
  33. package/.pikku/schemas/register.gen.ts +1 -1
  34. package/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
  35. package/.pikku/scopes/pikku-personas.gen.ts +52 -0
  36. package/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
  37. package/.pikku/scopes/pikku-roles.gen.ts +41 -0
  38. package/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
  39. package/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
  40. package/.pikku/scopes/pikku-scopes.gen.ts +58 -0
  41. package/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
  42. package/.pikku/secrets/pikku-secrets.gen.ts +15 -2
  43. package/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  44. package/.pikku/variables/pikku-variable-types.gen.ts +2 -2
  45. package/.pikku/variables/pikku-variables.gen.ts +16 -3
  46. package/.pikku/workflow/personas.gen.json +1 -0
  47. package/.pikku/workflow/pikku-personas.gen.ts +38 -0
  48. package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  49. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  50. package/.pikku/workflow/pikku-workflow-types.gen.ts +429 -5
  51. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
  52. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  53. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
  54. package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
  55. package/dist/.pikku/addon/pikku-addon-types.gen.ts +1 -1
  56. package/dist/.pikku/addon/pikku-package.gen.js +1 -1
  57. package/dist/.pikku/addon/pikku-package.gen.ts +1 -1
  58. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
  59. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +4 -2
  60. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  61. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  62. package/dist/.pikku/agent/pikku-agent-types.gen.ts +4 -2
  63. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  64. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  65. package/dist/.pikku/channel/pikku-channel-types.gen.ts +1 -1
  66. package/dist/.pikku/console/pikku-addon-meta.gen.json +4 -1
  67. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  68. package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
  69. package/dist/.pikku/function/pikku-function-types.gen.d.ts +77 -61
  70. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  71. package/dist/.pikku/function/pikku-function-types.gen.js +29 -12
  72. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  73. package/dist/.pikku/function/pikku-function-types.gen.ts +117 -74
  74. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +2 -0
  75. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  76. package/dist/.pikku/function/pikku-functions-meta.gen.json +7 -1
  77. package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
  78. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  79. package/dist/.pikku/function/pikku-functions.gen.ts +1 -1
  80. package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -24
  81. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
  82. package/dist/.pikku/http/pikku-http-types.gen.js +2 -24
  83. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
  84. package/dist/.pikku/http/pikku-http-types.gen.ts +3 -31
  85. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  86. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  87. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
  88. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +10 -0
  89. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
  90. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +10 -0
  91. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +1 -0
  92. package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
  93. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  94. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  95. package/dist/.pikku/pikku-bootstrap.gen.ts +1 -1
  96. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  97. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  98. package/dist/.pikku/pikku-meta-service.gen.ts +1 -1
  99. package/dist/.pikku/pikku-services.gen.d.ts +6 -1
  100. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  101. package/dist/.pikku/pikku-services.gen.js +5 -0
  102. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  103. package/dist/.pikku/pikku-services.gen.ts +6 -1
  104. package/dist/.pikku/pikku-types.gen.d.ts +2 -1
  105. package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
  106. package/dist/.pikku/pikku-types.gen.js +3 -1
  107. package/dist/.pikku/pikku-types.gen.js.map +1 -1
  108. package/dist/.pikku/pikku-types.gen.ts +4 -1
  109. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  110. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  111. package/dist/.pikku/queue/pikku-queue-types.gen.ts +1 -1
  112. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -1
  113. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -1
  114. package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +135 -0
  115. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  116. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
  117. package/dist/.pikku/scenarios/features.gen.json +1 -0
  118. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
  119. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
  120. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
  121. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
  122. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  123. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
  124. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
  125. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
  126. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +2 -0
  127. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +1 -0
  128. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
  129. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
  130. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
  131. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
  132. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
  133. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
  134. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
  135. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
  136. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +2 -0
  137. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
  138. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  139. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +5 -0
  140. package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +1 -0
  141. package/dist/.pikku/scenarios/schemas/register.gen.js +5 -0
  142. package/dist/.pikku/scenarios/schemas/register.gen.js.map +1 -0
  143. package/dist/.pikku/scenarios/schemas/register.gen.ts +4 -0
  144. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  145. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  146. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
  147. package/dist/.pikku/schemas/register.gen.js +1 -1
  148. package/dist/.pikku/schemas/register.gen.ts +1 -1
  149. package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
  150. package/dist/.pikku/scopes/pikku-personas.gen.d.ts +37 -0
  151. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -0
  152. package/dist/.pikku/scopes/pikku-personas.gen.js +18 -0
  153. package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -0
  154. package/dist/.pikku/scopes/pikku-personas.gen.ts +52 -0
  155. package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
  156. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +31 -0
  157. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -0
  158. package/dist/.pikku/scopes/pikku-roles.gen.js +19 -0
  159. package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -0
  160. package/dist/.pikku/scopes/pikku-roles.gen.ts +41 -0
  161. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +8 -0
  162. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
  163. package/dist/.pikku/scopes/pikku-scope-types.gen.js +6 -0
  164. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
  165. package/dist/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
  166. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
  167. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
  168. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
  169. package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
  170. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
  171. package/dist/.pikku/scopes/pikku-scopes.gen.ts +58 -0
  172. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
  173. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
  174. package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
  175. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -1
  176. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
  177. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
  178. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
  179. package/dist/.pikku/secrets/pikku-secrets.gen.js +12 -2
  180. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
  181. package/dist/.pikku/secrets/pikku-secrets.gen.ts +15 -2
  182. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  183. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  184. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  185. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
  186. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
  187. package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
  188. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -1
  189. package/dist/.pikku/variables/pikku-variable-types.gen.ts +2 -2
  190. package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
  191. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
  192. package/dist/.pikku/variables/pikku-variables.gen.js +13 -3
  193. package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
  194. package/dist/.pikku/variables/pikku-variables.gen.ts +16 -3
  195. package/dist/.pikku/workflow/personas.gen.json +1 -0
  196. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +16 -0
  197. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -0
  198. package/dist/.pikku/workflow/pikku-personas.gen.js +18 -0
  199. package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -0
  200. package/dist/.pikku/workflow/pikku-personas.gen.ts +38 -0
  201. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  202. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  203. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +254 -5
  204. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  205. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +62 -1
  206. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  207. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +429 -5
  208. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  209. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  210. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
  211. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  212. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  213. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  214. package/dist/src/functions/events/send.function.d.ts +2 -2
  215. package/dist/src/functions/events/send.function.d.ts.map +1 -1
  216. package/dist/src/meta-conversions.secret.js +2 -2
  217. package/dist/src/meta-conversions.secret.js.map +1 -1
  218. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import type { SingletonServices } from '../types/application-types.d.js'
5
5
  import type { Services } from '../types/application-types.d.js'
@@ -8,12 +8,15 @@ import type { Services } from '../types/application-types.d.js'
8
8
  export const requiredSingletonServices = {
9
9
  'agentRunService': false,
10
10
  'aiAgentRunner': false,
11
+ 'aiEmbedding': false,
11
12
  'aiRunState': false,
12
13
  'aiStorage': false,
13
14
  'audit': false,
14
15
  'auditLog': false,
16
+ 'auth': false,
15
17
  'config': true,
16
18
  'content': false,
19
+ 'coverageService': false,
17
20
  'credentialService': false,
18
21
  'deploymentService': false,
19
22
  'emailService': false,
@@ -25,9 +28,11 @@ export const requiredSingletonServices = {
25
28
  'queueService': false,
26
29
  'schedulerService': false,
27
30
  'schema': true,
31
+ 'scopeService': false,
28
32
  'secrets': true,
29
33
  'sessionStore': false,
30
34
  'variables': true,
35
+ 'webhookService': false,
31
36
  'workflowRunService': false,
32
37
  'workflowService': false,
33
38
  } as const
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -17,5 +17,8 @@ export * from './console/pikku-node-types.gen.js'
17
17
  // Secret definition types
18
18
  export * from './secrets/pikku-secret-types.gen.js'
19
19
 
20
+ // Scope definition types
21
+ export * from './scopes/pikku-scope-types.gen.js'
22
+
20
23
  // Addon types
21
24
  export * from './addon/pikku-addon-types.gen.js'
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Queue-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
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;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
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;
@@ -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
+
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal'
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' }
@@ -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,4 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ export {}
@@ -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,4 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ export {}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ export const empty = null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Scheduler-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema'
5
5
 
@@ -0,0 +1,52 @@
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 type { CorePersona, PersonaMeta, PersonasMeta } from '@pikku/core/persona'
9
+ import type { SystemRoleName } from './pikku-roles.gen.js'
10
+ import definitions from './pikku-personas-meta.gen.json' with { type: 'json' }
11
+
12
+ /** Every declared persona. */
13
+ export type PersonaId = never
14
+
15
+ /**
16
+ * The personas a virtual user can actually be.
17
+ *
18
+ * Excludes anyone whose only login is a provider account — driving a consent
19
+ * screen needs a human — and anyone declared `runnable: false`, who exists to
20
+ * be acted upon rather than to act.
21
+ */
22
+ export type RunnablePersonaId = never
23
+
24
+ /** Every environment configured in pikku.config.json. */
25
+ export type EnvironmentName = never
26
+
27
+ /**
28
+ * A persona whose roles are checked against `defineSystemRole` and whose
29
+ * environments are checked against the config.
30
+ *
31
+ * Omitting `environments` means every environment except the ones flagged
32
+ * `production: true`. Naming a production one additionally requires
33
+ * `disposition: 'accountable'`, which the type cannot express and `pikku`
34
+ * refuses at build time.
35
+ */
36
+ export type TypedPersona = Omit<CorePersona, 'roles' | 'environments'> & {
37
+ roles?: SystemRoleName[]
38
+ environments?: EnvironmentName[]
39
+ }
40
+
41
+ /**
42
+ * Declare the people who use this application.
43
+ *
44
+ * A persona while running is a virtual user; there is no second declaration.
45
+ */
46
+ export const definePersonas = (personas: Record<string, TypedPersona>): void =>
47
+ definePersonasCore(personas)
48
+
49
+ /** Declared personas, keyed by id. Read by the console and `pikku persona`. */
50
+ export const PERSONAS: PersonasMeta = definitions as unknown as PersonasMeta
51
+
52
+ export const PERSONA_LIST: PersonaMeta[] = Object.values(PERSONAS)
@@ -0,0 +1,41 @@
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 type { SystemRole, SystemRoleDefinitionsMeta } from '@pikku/core/role'
8
+ import { flattenSystemRoleDefinitions } from '@pikku/core/role'
9
+ import definitions from './pikku-roles-meta.gen.json' with { type: 'json' }
10
+
11
+ /**
12
+ * Every role that ships with this application.
13
+ *
14
+ * Roles an admin composes in the console are not here and cannot be: they do
15
+ * not exist at build time, and can be deleted after it.
16
+ */
17
+ export type SystemRoleName = never
18
+
19
+ /**
20
+ * The declared role set, for a ScopeService to sync into its store.
21
+ *
22
+ * Derived from the metadata sidecar rather than inlined, so the import above
23
+ * forces tsc to emit the .json alongside this file — an addon publishes only
24
+ * its compiled output, and a host reads that .json to merge the addon's roles
25
+ * into its own union.
26
+ *
27
+ * Additive on removal: a deleted declaration leaves an inert row rather than
28
+ * revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
29
+ */
30
+ export const SYSTEM_ROLES: SystemRole[] = flattenSystemRoleDefinitions(
31
+ Object.values(definitions as SystemRoleDefinitionsMeta)
32
+ )
33
+
34
+ /** Declared roles, keyed by name. Rendered by the console when granting. */
35
+ export const SYSTEM_ROLES_META: Record<string, SystemRole> = Object.fromEntries(
36
+ SYSTEM_ROLES.map((role) => [role.name, role])
37
+ )
38
+
39
+ /** Whether a role name is declared in code, and therefore not editable. */
40
+ export const isSystemRole = (name: string): boolean =>
41
+ Object.prototype.hasOwnProperty.call(SYSTEM_ROLES_META, name)
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ export { defineScope } from '@pikku/core/scope'
5
+ export type { CoreScopes, CoreScopeNode, FlatScope, ScopeDefinitionMeta, ScopeDefinitionsMeta } from '@pikku/core/scope'
6
+ export { defineSystemRole } from '@pikku/core/role'
7
+ export type { CoreSystemRole, CoreSystemRoles, SystemRole, SystemRoleDefinitionMeta, SystemRoleDefinitionsMeta } from '@pikku/core/role'
@@ -0,0 +1,58 @@
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 type { FlatScope, ScopeDefinitionsMeta } from '@pikku/core/scope'
8
+ import { flattenScopeDefinitions } from '@pikku/core/scope'
9
+ import definitions from './pikku-scopes-meta.gen.json' with { type: 'json' }
10
+
11
+ /**
12
+ * Every scope a function can require.
13
+ *
14
+ * A `:*` entry requires the scope and all of its descendants. Held grants are
15
+ * matched against this by `verifyScopes` — `admin:*` on a session satisfies
16
+ * any `admin:...` requirement.
17
+ */
18
+ export type ScopeId = never
19
+
20
+ export interface ScopeMeta {
21
+ id: ScopeId
22
+ displayName?: string
23
+ description?: string
24
+ }
25
+
26
+ /**
27
+ * The declared scope set, for a ScopeService to sync into its store.
28
+ *
29
+ * Derived from the metadata sidecar rather than inlined, so that the import
30
+ * above forces tsc to emit the .json alongside this file. An addon publishes
31
+ * only its compiled output, and a host reads that .json to merge the addon's
32
+ * scopes into its own `ScopeId` union and declared set — an uncopied sidecar
33
+ * would leave the addon's scopes ungrantable.
34
+ *
35
+ * Additive: removing a declaration leaves an inert row rather than revoking a
36
+ * grant mid-deploy. Use `pikku scopes prune` to remove them deliberately.
37
+ */
38
+ export const SCOPES: FlatScope[] = flattenScopeDefinitions(
39
+ Object.values(definitions as ScopeDefinitionsMeta)
40
+ )
41
+
42
+ const DISPLAY_NAMES: Record<string, string> = {
43
+
44
+ }
45
+
46
+ /** Declared scopes, keyed by id. Rendered by the console when granting. */
47
+ export const SCOPES_META: Record<string, ScopeMeta> = Object.fromEntries(
48
+ SCOPES.map((scope) => [
49
+ scope.id,
50
+ {
51
+ id: scope.id as ScopeId,
52
+ ...(DISPLAY_NAMES[scope.id]
53
+ ? { displayName: DISPLAY_NAMES[scope.id] }
54
+ : {}),
55
+ ...(scope.description ? { description: scope.description } : {}),
56
+ },
57
+ ])
58
+ )
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
- export { wireSecret } from '@pikku/core/secret'
4
+ export { defineSecret } from '@pikku/core/secret'
5
5
  export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret'
@@ -1,11 +1,24 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService, type CredentialMeta } from '@pikku/core/services'
5
5
  import type { SecretService } from '@pikku/core/services'
6
+ import type { SecretDefinitionsMeta } from '@pikku/core/secret'
7
+ import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' }
6
8
  import type { z } from 'zod'
7
9
  import { metaConversionsSecretsSchema } from '../../src/meta-conversions.secret.js'
8
10
 
11
+ /**
12
+ * Every secret declared in this package.
13
+ *
14
+ * Read from the metadata sidecar rather than inlined, so that the import above
15
+ * forces tsc to emit the .json alongside this file. An addon publishes only its
16
+ * compiled output, and a host reads that .json to discover the addon's declared
17
+ * secrets — an uncopied sidecar leaves them invisible to the host.
18
+ */
19
+ export const SECRETS_META: SecretDefinitionsMeta =
20
+ secretsMeta as SecretDefinitionsMeta
21
+
9
22
  export interface CredentialsMap {
10
23
  'META_CONVERSIONS_CREDENTIALS': z.infer<typeof metaConversionsSecretsSchema>
11
24
  }
@@ -13,7 +26,7 @@ export interface CredentialsMap {
13
26
  export type SecretId = keyof CredentialsMap
14
27
 
15
28
  const CREDENTIALS_META: Record<string, CredentialMeta> = {
16
- 'META_CONVERSIONS_CREDENTIALS': { name: 'metaConversions', displayName: 'Meta Conversions API' }
29
+ 'META_CONVERSIONS_CREDENTIALS': { name: 'metaConversions', displayName: "Meta Conversions API" }
17
30
  }
18
31
 
19
32
  export class TypedSecretService extends CoreTypedSecretService<CredentialsMap> {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
- export { wireVariable } from '@pikku/core/variable'
4
+ export { defineVariable } from '@pikku/core/variable'
5
5
  export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable'
@@ -1,8 +1,21 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService, type VariableMeta } from '@pikku/core/services'
5
5
  import type { VariablesService } from '@pikku/core/services'
6
+ import type { VariableDefinitionsMeta } from '@pikku/core/variable'
7
+ import variablesMeta from './pikku-variables-meta.gen.json' with { type: 'json' }
8
+
9
+ /**
10
+ * Every variable declared in this package.
11
+ *
12
+ * Read from the metadata sidecar rather than inlined, so that the import above
13
+ * forces tsc to emit the .json alongside this file. An addon publishes only its
14
+ * compiled output, and a host reads that .json to discover the addon's declared
15
+ * variables — an uncopied sidecar leaves them invisible to the host.
16
+ */
17
+ export const VARIABLES_META: VariableDefinitionsMeta =
18
+ variablesMeta as VariableDefinitionsMeta
6
19
 
7
20
  export interface VariablesMap {
8
21
 
@@ -10,12 +23,12 @@ export interface VariablesMap {
10
23
 
11
24
  export type VariableId = keyof VariablesMap
12
25
 
13
- const VARIABLES_META: Record<string, VariableMeta> = {
26
+ const TYPED_VARIABLES_META: Record<string, VariableMeta> = {
14
27
 
15
28
  }
16
29
 
17
30
  export class TypedVariablesService extends CoreTypedVariablesService<VariablesMap> {
18
31
  constructor(variables: VariablesService) {
19
- super(variables, VARIABLES_META)
32
+ super(variables, TYPED_VARIABLES_META)
20
33
  }
21
34
  }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ /** Personas declared with definePersonas() */
5
+ import { createHttpPersonas } from '@pikku/core/persona'
6
+ import type {
7
+ HttpPersonasConfig,
8
+ ScenarioPersona,
9
+ ResolvedPersona,
10
+ } from '@pikku/core/services'
11
+ import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
12
+ import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js'
13
+
14
+ export const personaConfigs = {} as const satisfies Record<string, ResolvedPersona>
15
+
16
+ export type PersonaName = keyof typeof personaConfigs
17
+
18
+ /**
19
+ * The same personas as a list, widened to `ResolvedPersona`. Iterating
20
+ * `personaConfigs` directly yields the literal type of each entry, on which an
21
+ * optional field a persona did not declare does not exist — so a seed reading
22
+ * `roles` off every persona needs this instead.
23
+ */
24
+ export const personaList: ResolvedPersona[] = Object.values(personaConfigs)
25
+
26
+ export type AgentName = keyof AgentMap & string
27
+ export type TypedPersonas = Record<
28
+ PersonaName,
29
+ ScenarioPersona<AgentName, FlattenedRPCMap>
30
+ >
31
+
32
+ export const createPersonas = (
33
+ options: Omit<HttpPersonasConfig, 'personas'>
34
+ ): TypedPersonas =>
35
+ createHttpPersonas({
36
+ ...options,
37
+ personas: personaConfigs,
38
+ }) as TypedPersonas
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ /**
5
+ * Scenario step map: the names `scenario.step/given/when/then` accepts, with
6
+ * the input and output types of each step.
7
+ */
8
+
9
+
10
+
11
+
12
+ interface ScenarioStepHandler<I, O> {
13
+ input: I;
14
+ output: O;
15
+ }
16
+
17
+ export type FlattenedScenarioStepMap = {
18
+ };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Workflow type map with input/output types for each workflow