@pikku/addon-mindee 0.0.2 → 0.0.4

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 (189) hide show
  1. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +2 -2
  2. package/dist/.pikku/addon/pikku-addon-types.gen.js +2 -2
  3. package/dist/.pikku/addon/pikku-addon-types.gen.ts +2 -2
  4. package/dist/.pikku/addon/pikku-package.gen.js +3 -2
  5. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  6. package/dist/.pikku/addon/pikku-package.gen.ts +4 -2
  7. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
  8. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +8 -2
  9. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  10. package/dist/.pikku/agent/pikku-agent-types.gen.js +3 -0
  11. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  12. package/dist/.pikku/agent/pikku-agent-types.gen.ts +17 -2
  13. package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts +2 -0
  14. package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts.map +1 -0
  15. package/dist/.pikku/agent/pikku-model-aliases.gen.js +6 -0
  16. package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +1 -0
  17. package/dist/.pikku/agent/pikku-model-aliases.gen.ts +6 -0
  18. package/dist/.pikku/agent/pikku-scorer-names.gen.d.ts +8 -0
  19. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  20. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  21. package/dist/.pikku/channel/pikku-channel-types.gen.ts +1 -1
  22. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  23. package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
  24. package/dist/.pikku/credentials/pikku-credentials.gen.d.ts +1 -1
  25. package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +1 -1
  26. package/dist/.pikku/credentials/pikku-credentials.gen.js +2 -2
  27. package/dist/.pikku/credentials/pikku-credentials.gen.js.map +1 -1
  28. package/dist/.pikku/credentials/pikku-credentials.gen.ts +3 -2
  29. package/dist/.pikku/function/pikku-function-types.gen.d.ts +76 -64
  30. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  31. package/dist/.pikku/function/pikku-function-types.gen.js +30 -13
  32. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  33. package/dist/.pikku/function/pikku-function-types.gen.ts +127 -79
  34. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +32 -28
  35. package/dist/.pikku/function/pikku-functions-meta.gen.js +2 -2
  36. package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -1
  37. package/dist/.pikku/function/pikku-functions-meta.gen.json +32 -20
  38. package/dist/.pikku/function/pikku-functions-meta.gen.ts +2 -2
  39. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  40. package/dist/.pikku/function/pikku-functions.gen.ts +1 -1
  41. package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -24
  42. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
  43. package/dist/.pikku/http/pikku-http-types.gen.js +2 -24
  44. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
  45. package/dist/.pikku/http/pikku-http-types.gen.ts +3 -31
  46. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  47. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  48. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
  49. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +10 -0
  50. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
  51. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +10 -0
  52. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +1 -0
  53. package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
  54. package/dist/.pikku/pikku-bootstrap.gen.d.ts +2 -1
  55. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
  56. package/dist/.pikku/pikku-bootstrap.gen.js +2 -1
  57. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
  58. package/dist/.pikku/pikku-bootstrap.gen.ts +2 -1
  59. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  60. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  61. package/dist/.pikku/pikku-meta-service.gen.ts +1 -1
  62. package/dist/.pikku/pikku-services.gen.d.ts +7 -1
  63. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  64. package/dist/.pikku/pikku-services.gen.js +6 -0
  65. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  66. package/dist/.pikku/pikku-services.gen.ts +7 -1
  67. package/dist/.pikku/pikku-types.gen.d.ts +2 -1
  68. package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
  69. package/dist/.pikku/pikku-types.gen.js +3 -1
  70. package/dist/.pikku/pikku-types.gen.js.map +1 -1
  71. package/dist/.pikku/pikku-types.gen.ts +4 -1
  72. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  73. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  74. package/dist/.pikku/queue/pikku-queue-types.gen.ts +1 -1
  75. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -7
  76. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +3 -8
  77. package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +108 -0
  78. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +2 -2
  79. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -1
  80. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +2 -2
  81. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +2 -2
  82. package/dist/.pikku/scenarios/features.gen.json +1 -0
  83. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
  84. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
  85. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
  86. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
  87. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  88. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
  89. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
  90. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
  91. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +2 -0
  92. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +1 -0
  93. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
  94. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
  95. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
  96. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
  97. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
  98. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
  99. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
  100. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
  101. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +2 -0
  102. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
  103. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  104. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +5 -0
  105. package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +1 -0
  106. package/dist/.pikku/scenarios/schemas/register.gen.js +5 -0
  107. package/dist/.pikku/scenarios/schemas/register.gen.js.map +1 -0
  108. package/dist/.pikku/scenarios/schemas/register.gen.ts +4 -0
  109. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  110. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  111. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
  112. package/dist/.pikku/schemas/register.gen.js +7 -7
  113. package/dist/.pikku/schemas/register.gen.js.map +1 -1
  114. package/dist/.pikku/schemas/register.gen.ts +9 -9
  115. package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
  116. package/dist/.pikku/scopes/pikku-personas.gen.d.ts +37 -0
  117. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -0
  118. package/dist/.pikku/scopes/pikku-personas.gen.js +18 -0
  119. package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -0
  120. package/dist/.pikku/scopes/pikku-personas.gen.ts +52 -0
  121. package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
  122. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +31 -0
  123. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -0
  124. package/dist/.pikku/scopes/pikku-roles.gen.js +19 -0
  125. package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -0
  126. package/dist/.pikku/scopes/pikku-roles.gen.ts +41 -0
  127. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +8 -0
  128. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
  129. package/dist/.pikku/scopes/pikku-scope-types.gen.js +6 -0
  130. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
  131. package/dist/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
  132. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
  133. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
  134. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
  135. package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
  136. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
  137. package/dist/.pikku/scopes/pikku-scopes.gen.ts +58 -0
  138. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
  139. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
  140. package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
  141. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -1
  142. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
  143. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
  144. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
  145. package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -1
  146. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
  147. package/dist/.pikku/secrets/pikku-secrets.gen.ts +14 -1
  148. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  149. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  150. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  151. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
  152. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
  153. package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
  154. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -1
  155. package/dist/.pikku/variables/pikku-variable-types.gen.ts +2 -2
  156. package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
  157. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
  158. package/dist/.pikku/variables/pikku-variables.gen.js +14 -4
  159. package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
  160. package/dist/.pikku/variables/pikku-variables.gen.ts +17 -4
  161. package/dist/.pikku/workflow/personas.gen.json +1 -0
  162. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +17 -0
  163. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -0
  164. package/dist/.pikku/workflow/pikku-personas.gen.js +18 -0
  165. package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -0
  166. package/dist/.pikku/workflow/pikku-personas.gen.ts +35 -0
  167. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  168. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  169. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +263 -5
  170. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  171. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +62 -1
  172. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  173. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +435 -5
  174. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +2 -2
  175. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  176. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +4 -4
  177. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  178. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  179. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  180. package/dist/src/functions/invoicePredict.function.d.ts +2 -2
  181. package/dist/src/functions/invoicePredict.function.d.ts.map +1 -1
  182. package/dist/src/functions/receiptPredict.function.d.ts +2 -2
  183. package/dist/src/functions/receiptPredict.function.d.ts.map +1 -1
  184. package/dist/src/mindee.credential.js +2 -2
  185. package/dist/src/mindee.credential.js.map +1 -1
  186. package/dist/src/mindee.variable.js +2 -2
  187. package/dist/src/mindee.variable.js.map +1 -1
  188. package/dist/types/application-types.d.ts +17 -0
  189. package/package.json +7 -7
@@ -0,0 +1,108 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
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 CredentialSchema_mindee = {
13
+ /** Mindee API key */
14
+ apiKey: string;
15
+ }
16
+ export type InvoicePredictInput = {
17
+ document?: string | undefined;
18
+ filename?: string | undefined;
19
+ }
20
+ export type InvoicePredictOutput = {
21
+ [key: string]: unknown;
22
+ }
23
+ export type ReceiptPredictInput = {
24
+ document?: string | undefined;
25
+ filename?: string | undefined;
26
+ }
27
+ export type ReceiptPredictOutput = {
28
+ [key: string]: unknown;
29
+ }
30
+ export type VariableSchema_MINDEE_BASE_URL = "https://api.mindee.net/v1"
31
+
32
+ interface RPCHandler<I, O> {
33
+ input: I;
34
+ output: O;
35
+ }
36
+
37
+ export type RPCMap = {
38
+ };
39
+
40
+
41
+
42
+ // No addon packages, use RPCMap directly
43
+ export type FlattenedRPCMap = RPCMap
44
+
45
+ type IsAny<T> = 0 extends (1 & T) ? true : false
46
+ type IsVoidishInput<T> = IsAny<T> extends true
47
+ ? false
48
+ : [T] extends [void | null | undefined]
49
+ ? true
50
+ : false
51
+
52
+
53
+ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
54
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
55
+ ? [name: Name]
56
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
57
+ ) => Promise<FlattenedRPCMap[Name]['output']>
58
+
59
+ export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
60
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
61
+ ? [name: Name]
62
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
63
+ ) => Promise<FlattenedRPCMap[Name]['output']>
64
+
65
+ import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
66
+
67
+ import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
68
+
69
+
70
+ type FlattenedAgentMap = AgentMap
71
+
72
+
73
+ import type { PikkuRPC } from '@pikku/core/rpc'
74
+ import type { AIAgentInput } from '@pikku/core/ai-agent'
75
+
76
+ export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
77
+ name: Name,
78
+ input: FlattenedWorkflowMap[Name]['input'],
79
+ options?: { startNode?: string }
80
+ ) => Promise<{ runId: string }>
81
+
82
+ export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
83
+ name: Name,
84
+ input: FlattenedWorkflowMap[Name]['input']
85
+ ) => Promise<FlattenedWorkflowMap[Name]['output']>
86
+
87
+ export type TypedWorkflowStatus = (
88
+ workflowName: string,
89
+ runId: string
90
+ ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
91
+
92
+ type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
93
+ ? (name: string, input: AIAgentInput) => Promise<any>
94
+ : <Name extends keyof FlattenedAgentMap>(
95
+ name: Name,
96
+ input: AIAgentInput
97
+ ) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
98
+
99
+ type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
100
+ ? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
101
+ : <Name extends keyof FlattenedAgentMap>(
102
+ name: Name,
103
+ input: AIAgentInput,
104
+ options?: { requiresToolApproval?: 'all' | 'explicit' | false }
105
+ ) => Promise<void>
106
+
107
+ export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
108
+
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.103
3
3
  */
4
- import { pikkuState } from '@pikku/core/internal';
4
+ import { pikkuState } from '@pikku/core/ecosystem';
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' };
6
6
  pikkuState('@pikku/addon-mindee', 'rpc', 'meta', metaData);
7
7
  //# sourceMappingURL=pikku-rpc-wirings-meta.internal.gen.js.map
@@ -1 +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,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
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,uBAAuB,CAAA;AAClD,OAAO,QAAQ,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACvF,UAAU,CAAC,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  {
2
- "receiptPredict": "receiptPredict",
3
- "invoicePredict": "invoicePredict"
2
+ "invoicePredict": "invoicePredict",
3
+ "receiptPredict": "receiptPredict"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.103
3
3
  */
4
- import { pikkuState } from '@pikku/core/internal'
4
+ import { pikkuState } from '@pikku/core/ecosystem'
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' }
6
6
  pikkuState('@pikku/addon-mindee', 'rpc', 'meta', metaData as Record<string, string>)
@@ -0,0 +1,2 @@
1
+ import '../function/pikku-functions-meta.gen.js';
2
+ //# sourceMappingURL=pikku-scenario-functions-meta.gen.d.ts.map
@@ -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.103
3
+ */
4
+ import { pikkuState } from '@pikku/core/ecosystem';
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-mindee', 'function', 'meta', {
8
+ ...pikkuState('@pikku/addon-mindee', '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,uBAAuB,CAAA;AAElD,OAAO,yCAAyC,CAAA;AAChD,OAAO,QAAQ,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAErF,UAAU,CAAC,qBAAqB,EAAE,UAAU,EAAE,MAAM,EAAE;IACpD,GAAG,UAAU,CAAC,qBAAqB,EAAE,UAAU,EAAE,MAAM,CAAC;IACxD,GAAI,QAA0B;CAC/B,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ import { pikkuState } from '@pikku/core/ecosystem'
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-mindee', 'function', 'meta', {
10
+ ...pikkuState('@pikku/addon-mindee', 'function', 'meta'),
11
+ ...(metaData as FunctionsMeta),
12
+ })
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=pikku-scenario-functions.gen.d.ts.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pikku-scenario-functions.gen.js.map
@@ -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,4 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export {}
@@ -0,0 +1,2 @@
1
+ import '../workflow/pikku-workflow-wirings-meta.gen.js';
2
+ //# sourceMappingURL=pikku-scenario-wirings-meta.gen.d.ts.map
@@ -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.103
3
+ */
4
+ import { pikkuState } from '@pikku/core/ecosystem';
5
+ import '../workflow/pikku-workflow-wirings-meta.gen.js';
6
+ const scenariosMeta = {};
7
+ pikkuState('@pikku/addon-mindee', 'workflows', 'meta', {
8
+ ...pikkuState('@pikku/addon-mindee', '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,uBAAuB,CAAA;AAElD,OAAO,gDAAgD,CAAA;AAEvD,MAAM,aAAa,GAAG,EAEG,CAAA;AAEzB,UAAU,CAAC,qBAAqB,EAAE,WAAW,EAAE,MAAM,EAAE;IACrD,GAAG,UAAU,CAAC,qBAAqB,EAAE,WAAW,EAAE,MAAM,CAAC;IACzD,GAAG,aAAa;CACjB,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ import { pikkuState } from '@pikku/core/ecosystem'
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-mindee', 'workflows', 'meta', {
13
+ ...pikkuState('@pikku/addon-mindee', 'workflows', 'meta'),
14
+ ...scenariosMeta,
15
+ })
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=pikku-scenario-wirings.gen.d.ts.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pikku-scenario-wirings.gen.js.map
@@ -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,4 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export {}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export declare const empty: null;
5
+ //# sourceMappingURL=register.gen.d.ts.map
@@ -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,5 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export const empty = null;
5
+ //# sourceMappingURL=register.gen.js.map
@@ -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,4 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export const empty = null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.103
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.54
2
+ * This file was generated by @pikku/cli@0.12.103
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.54
2
+ * This file was generated by @pikku/cli@0.12.103
3
3
  */
4
4
  /**
5
5
  * Scheduler-specific type definitions for tree-shaking optimization
@@ -1,17 +1,17 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.103
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema';
5
- import * as ReceiptPredictInput from './schemas/ReceiptPredictInput.schema.json' with { type: 'json' };
6
- addSchema('ReceiptPredictInput', ReceiptPredictInput, '@pikku/addon-mindee');
7
- import * as ReceiptPredictOutput from './schemas/ReceiptPredictOutput.schema.json' with { type: 'json' };
8
- addSchema('ReceiptPredictOutput', ReceiptPredictOutput, '@pikku/addon-mindee');
5
+ import * as CredentialSchema_mindee from './schemas/CredentialSchema_mindee.schema.json' with { type: 'json' };
6
+ addSchema('CredentialSchema_mindee', CredentialSchema_mindee, '@pikku/addon-mindee');
9
7
  import * as InvoicePredictInput from './schemas/InvoicePredictInput.schema.json' with { type: 'json' };
10
8
  addSchema('InvoicePredictInput', InvoicePredictInput, '@pikku/addon-mindee');
11
9
  import * as InvoicePredictOutput from './schemas/InvoicePredictOutput.schema.json' with { type: 'json' };
12
10
  addSchema('InvoicePredictOutput', InvoicePredictOutput, '@pikku/addon-mindee');
13
- import * as CredentialSchema_mindee from './schemas/CredentialSchema_mindee.schema.json' with { type: 'json' };
14
- addSchema('CredentialSchema_mindee', CredentialSchema_mindee, '@pikku/addon-mindee');
11
+ import * as ReceiptPredictInput from './schemas/ReceiptPredictInput.schema.json' with { type: 'json' };
12
+ addSchema('ReceiptPredictInput', ReceiptPredictInput, '@pikku/addon-mindee');
13
+ import * as ReceiptPredictOutput from './schemas/ReceiptPredictOutput.schema.json' with { type: 'json' };
14
+ addSchema('ReceiptPredictOutput', ReceiptPredictOutput, '@pikku/addon-mindee');
15
15
  import * as VariableSchema_MINDEE_BASE_URL from './schemas/VariableSchema_MINDEE_BASE_URL.schema.json' with { type: 'json' };
16
16
  addSchema('VariableSchema_MINDEE_BASE_URL', VariableSchema_MINDEE_BASE_URL, '@pikku/addon-mindee');
17
17
  //# sourceMappingURL=register.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"register.gen.js","sourceRoot":"","sources":["../../../.pikku/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,OAAO,KAAK,mBAAmB,MAAM,2CAA2C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACtG,SAAS,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,CAAC,CAAA;AAG5E,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACxG,SAAS,CAAC,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,CAAC,CAAA;AAG9E,OAAO,KAAK,mBAAmB,MAAM,2CAA2C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACtG,SAAS,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,CAAC,CAAA;AAG5E,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACxG,SAAS,CAAC,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,CAAC,CAAA;AAG9E,OAAO,KAAK,uBAAuB,MAAM,+CAA+C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC9G,SAAS,CAAC,yBAAyB,EAAE,uBAAuB,EAAE,qBAAqB,CAAC,CAAA;AAGpF,OAAO,KAAK,8BAA8B,MAAM,sDAAsD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5H,SAAS,CAAC,gCAAgC,EAAE,8BAA8B,EAAE,qBAAqB,CAAC,CAAA"}
1
+ {"version":3,"file":"register.gen.js","sourceRoot":"","sources":["../../../.pikku/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,OAAO,KAAK,uBAAuB,MAAM,+CAA+C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC9G,SAAS,CAAC,yBAAyB,EAAE,uBAAuB,EAAE,qBAAqB,CAAC,CAAA;AAGpF,OAAO,KAAK,mBAAmB,MAAM,2CAA2C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACtG,SAAS,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,CAAC,CAAA;AAG5E,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACxG,SAAS,CAAC,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,CAAC,CAAA;AAG9E,OAAO,KAAK,mBAAmB,MAAM,2CAA2C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACtG,SAAS,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,CAAC,CAAA;AAG5E,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACxG,SAAS,CAAC,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,CAAC,CAAA;AAG9E,OAAO,KAAK,8BAA8B,MAAM,sDAAsD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5H,SAAS,CAAC,gCAAgC,EAAE,8BAA8B,EAAE,qBAAqB,CAAC,CAAA"}
@@ -1,14 +1,10 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.103
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema'
5
5
 
6
- import * as ReceiptPredictInput from './schemas/ReceiptPredictInput.schema.json' with { type: 'json' }
7
- addSchema('ReceiptPredictInput', ReceiptPredictInput, '@pikku/addon-mindee')
8
-
9
-
10
- import * as ReceiptPredictOutput from './schemas/ReceiptPredictOutput.schema.json' with { type: 'json' }
11
- addSchema('ReceiptPredictOutput', ReceiptPredictOutput, '@pikku/addon-mindee')
6
+ import * as CredentialSchema_mindee from './schemas/CredentialSchema_mindee.schema.json' with { type: 'json' }
7
+ addSchema('CredentialSchema_mindee', CredentialSchema_mindee, '@pikku/addon-mindee')
12
8
 
13
9
 
14
10
  import * as InvoicePredictInput from './schemas/InvoicePredictInput.schema.json' with { type: 'json' }
@@ -19,8 +15,12 @@ import * as InvoicePredictOutput from './schemas/InvoicePredictOutput.schema.jso
19
15
  addSchema('InvoicePredictOutput', InvoicePredictOutput, '@pikku/addon-mindee')
20
16
 
21
17
 
22
- import * as CredentialSchema_mindee from './schemas/CredentialSchema_mindee.schema.json' with { type: 'json' }
23
- addSchema('CredentialSchema_mindee', CredentialSchema_mindee, '@pikku/addon-mindee')
18
+ import * as ReceiptPredictInput from './schemas/ReceiptPredictInput.schema.json' with { type: 'json' }
19
+ addSchema('ReceiptPredictInput', ReceiptPredictInput, '@pikku/addon-mindee')
20
+
21
+
22
+ import * as ReceiptPredictOutput from './schemas/ReceiptPredictOutput.schema.json' with { type: 'json' }
23
+ addSchema('ReceiptPredictOutput', ReceiptPredictOutput, '@pikku/addon-mindee')
24
24
 
25
25
 
26
26
  import * as VariableSchema_MINDEE_BASE_URL from './schemas/VariableSchema_MINDEE_BASE_URL.schema.json' with { type: 'json' }
@@ -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.103
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"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
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,31 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ /**
5
+ * This file was generated by the @pikku/cli
6
+ */
7
+ import type { SystemRole } from '@pikku/core/role';
8
+ /**
9
+ * Every role that ships with this application.
10
+ *
11
+ * Roles an admin composes in the console are not here and cannot be: they do
12
+ * not exist at build time, and can be deleted after it.
13
+ */
14
+ export type SystemRoleName = never;
15
+ /**
16
+ * The declared role set, for a ScopeService to sync into its store.
17
+ *
18
+ * Derived from the metadata sidecar rather than inlined, so the import above
19
+ * forces tsc to emit the .json alongside this file — an addon publishes only
20
+ * its compiled output, and a host reads that .json to merge the addon's roles
21
+ * into its own union.
22
+ *
23
+ * Additive on removal: a deleted declaration leaves an inert row rather than
24
+ * revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
25
+ */
26
+ export declare const SYSTEM_ROLES: SystemRole[];
27
+ /** Declared roles, keyed by name. Rendered by the console when granting. */
28
+ export declare const SYSTEM_ROLES_META: Record<string, SystemRole>;
29
+ /** Whether a role name is declared in code, and therefore not editable. */
30
+ export declare const isSystemRole: (name: string) => boolean;
31
+ //# sourceMappingURL=pikku-roles.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-roles.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-roles.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAA6B,MAAM,kBAAkB,CAAA;AAI7E;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAA;AAElC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,UAAU,EAEpC,CAAA;AAED,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAExD,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,OACmB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { flattenSystemRoleDefinitions } from '@pikku/core/role';
2
+ import definitions from './pikku-roles-meta.gen.json' with { type: 'json' };
3
+ /**
4
+ * The declared role set, for a ScopeService to sync into its store.
5
+ *
6
+ * Derived from the metadata sidecar rather than inlined, so the import above
7
+ * forces tsc to emit the .json alongside this file — an addon publishes only
8
+ * its compiled output, and a host reads that .json to merge the addon's roles
9
+ * into its own union.
10
+ *
11
+ * Additive on removal: a deleted declaration leaves an inert row rather than
12
+ * revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
13
+ */
14
+ export const SYSTEM_ROLES = flattenSystemRoleDefinitions(Object.values(definitions));
15
+ /** Declared roles, keyed by name. Rendered by the console when granting. */
16
+ export const SYSTEM_ROLES_META = Object.fromEntries(SYSTEM_ROLES.map((role) => [role.name, role]));
17
+ /** Whether a role name is declared in code, and therefore not editable. */
18
+ export const isSystemRole = (name) => Object.prototype.hasOwnProperty.call(SYSTEM_ROLES_META, name);
19
+ //# sourceMappingURL=pikku-roles.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-roles.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-roles.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,WAAW,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAU3E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,YAAY,GAAiB,4BAA4B,CACpE,MAAM,CAAC,MAAM,CAAC,WAAwC,CAAC,CACxD,CAAA;AAED,4EAA4E;AAC5E,MAAM,CAAC,MAAM,iBAAiB,GAA+B,MAAM,CAAC,WAAW,CAC7E,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAC9C,CAAA;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAW,EAAE,CACpD,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAA"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
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)