@pikku/addon-cratedb 0.0.2
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/README.md +12 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +67 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js +78 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +106 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts +2 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.js +10 -0
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.ts +11 -0
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +47 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js +18 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +82 -0
- 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-node-types.gen.d.ts +7 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.js +2 -0
- package/dist/.pikku/console/pikku-node-types.gen.js.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.ts +8 -0
- package/dist/.pikku/credentials/pikku-credentials-meta.gen.json +10 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts +15 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js +13 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.ts +23 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +490 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.js +334 -0
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.ts +754 -0
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +89 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +7 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.json +59 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +7 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.js +12 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +12 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.ts +147 -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.gen.d.ts +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.js +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.ts +8 -0
- 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 +35 -0
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-services.gen.js +30 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/pikku-services.gen.ts +42 -0
- package/dist/.pikku/pikku-types.gen.d.ts +12 -0
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-types.gen.js +17 -0
- package/dist/.pikku/pikku-types.gen.js.map +1 -0
- package/dist/.pikku/pikku-types.gen.ts +21 -0
- 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 +133 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +136 -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 +5 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -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.d.ts +2 -0
- package/dist/.pikku/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/schemas/register.gen.js +21 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +35 -0
- package/dist/.pikku/schemas/schemas/CredentialSchema_cratedb.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ExecuteQueryInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ExecuteQueryOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/InsertInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/InsertOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/VariableSchema_CRATEDB_BASE_URL.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +6 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +5 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +12 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +21 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +114 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +34 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +6 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js +5 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +5 -0
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +10 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +15 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.js +13 -0
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.ts +23 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +90 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/src/cratedb-api.service.d.ts +10 -0
- package/dist/src/cratedb-api.service.d.ts.map +1 -0
- package/dist/src/cratedb-api.service.js +90 -0
- package/dist/src/cratedb-api.service.js.map +1 -0
- package/dist/src/cratedb.credential.d.ts +5 -0
- package/dist/src/cratedb.credential.d.ts.map +1 -0
- package/dist/src/cratedb.credential.js +13 -0
- package/dist/src/cratedb.credential.js.map +1 -0
- package/dist/src/cratedb.types.d.ts +7 -0
- package/dist/src/cratedb.types.d.ts.map +1 -0
- package/dist/src/cratedb.types.js +8 -0
- package/dist/src/cratedb.types.js.map +1 -0
- package/dist/src/cratedb.variable.d.ts +5 -0
- package/dist/src/cratedb.variable.d.ts.map +1 -0
- package/dist/src/cratedb.variable.js +11 -0
- package/dist/src/cratedb.variable.js.map +1 -0
- package/dist/src/functions/executeQuery.function.d.ts +29 -0
- package/dist/src/functions/executeQuery.function.d.ts.map +1 -0
- package/dist/src/functions/executeQuery.function.js +19 -0
- package/dist/src/functions/executeQuery.function.js.map +1 -0
- package/dist/src/functions/insert.function.d.ts +29 -0
- package/dist/src/functions/insert.function.d.ts.map +1 -0
- package/dist/src/functions/insert.function.js +19 -0
- package/dist/src/functions/insert.function.js.map +1 -0
- package/dist/src/functions/update.function.d.ts +33 -0
- package/dist/src/functions/update.function.d.ts.map +1 -0
- package/dist/src/functions/update.function.js +20 -0
- package/dist/src/functions/update.function.js.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/services.d.ts +2 -0
- package/dist/src/services.d.ts.map +1 -0
- package/dist/src/services.js +14 -0
- package/dist/src/services.js.map +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue';
|
|
8
|
+
/**
|
|
9
|
+
* Registers a queue worker with the Pikku framework.
|
|
10
|
+
* Workers process background jobs from queues.
|
|
11
|
+
*
|
|
12
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
13
|
+
*/
|
|
14
|
+
export const wireQueueWorker = (queueWorker) => {
|
|
15
|
+
wireQueueWorkerCore(queueWorker);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=pikku-queue-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.js","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAmB,eAAe,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAW3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAkC,EAAE,EAAE;IACpE,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { CoreQueueWorker, wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue'
|
|
9
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Type definition for queue workers that process background jobs.
|
|
13
|
+
*
|
|
14
|
+
* @template In - Input type for the queue job
|
|
15
|
+
* @template Out - Output type for the queue job
|
|
16
|
+
*/
|
|
17
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Registers a queue worker with the Pikku framework.
|
|
21
|
+
* Workers process background jobs from queues.
|
|
22
|
+
*
|
|
23
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
24
|
+
*/
|
|
25
|
+
export const wireQueueWorker = (queueWorker: QueueWiring<any, any>) => {
|
|
26
|
+
wireQueueWorkerCore(queueWorker as any)
|
|
27
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
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_cratedb = {
|
|
13
|
+
/** CrateDB API key */
|
|
14
|
+
apiKey: string;
|
|
15
|
+
}
|
|
16
|
+
export type ExecuteQueryInput = {
|
|
17
|
+
/** The SQL statement to execute */
|
|
18
|
+
stmt?: string | undefined;
|
|
19
|
+
/** Positional query parameters */
|
|
20
|
+
args?: string[] | undefined;
|
|
21
|
+
}
|
|
22
|
+
export type ExecuteQueryOutput = {
|
|
23
|
+
rowcount?: number | undefined;
|
|
24
|
+
duration?: number | undefined;
|
|
25
|
+
}
|
|
26
|
+
export type InsertInput = {
|
|
27
|
+
/** Name of the schema the table belongs to */
|
|
28
|
+
schema?: string | undefined;
|
|
29
|
+
/** Name of the table to insert into */
|
|
30
|
+
table?: string | undefined;
|
|
31
|
+
/** Comma-separated list of columns */
|
|
32
|
+
columns?: string | undefined;
|
|
33
|
+
}
|
|
34
|
+
export type InsertOutput = {
|
|
35
|
+
rowcount?: number | undefined;
|
|
36
|
+
}
|
|
37
|
+
export type UpdateInput = {
|
|
38
|
+
/** Name of the schema the table belongs to */
|
|
39
|
+
schema?: string | undefined;
|
|
40
|
+
/** Name of the table to update */
|
|
41
|
+
table?: string | undefined;
|
|
42
|
+
/** Column used to decide which rows to update */
|
|
43
|
+
updateKey?: string | undefined;
|
|
44
|
+
/** Comma-separated list of columns to update */
|
|
45
|
+
columns?: string | undefined;
|
|
46
|
+
}
|
|
47
|
+
export type UpdateOutput = {
|
|
48
|
+
rowcount?: number | undefined;
|
|
49
|
+
}
|
|
50
|
+
export type VariableSchema_CRATEDB_BASE_URL = "http://localhost:4200"
|
|
51
|
+
|
|
52
|
+
interface RPCHandler<I, O> {
|
|
53
|
+
input: I;
|
|
54
|
+
output: O;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type RPCMap = {
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
// No addon packages, use RPCMap directly
|
|
63
|
+
export type FlattenedRPCMap = RPCMap
|
|
64
|
+
|
|
65
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
66
|
+
type IsVoidishInput<T> = IsAny<T> extends true
|
|
67
|
+
? false
|
|
68
|
+
: [T] extends [void | null | undefined]
|
|
69
|
+
? true
|
|
70
|
+
: false
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
74
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
75
|
+
? [name: Name]
|
|
76
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
77
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
78
|
+
|
|
79
|
+
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
80
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
81
|
+
? [name: Name]
|
|
82
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
83
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
84
|
+
|
|
85
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
86
|
+
|
|
87
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
type FlattenedAgentMap = AgentMap
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
94
|
+
|
|
95
|
+
interface AIAgentInput {
|
|
96
|
+
message: string
|
|
97
|
+
threadId: string
|
|
98
|
+
resourceId: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
102
|
+
name: Name,
|
|
103
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
104
|
+
options?: { startNode?: string }
|
|
105
|
+
) => Promise<{ runId: string }>
|
|
106
|
+
|
|
107
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
108
|
+
name: Name,
|
|
109
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
110
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
111
|
+
|
|
112
|
+
export type TypedWorkflowStatus = (
|
|
113
|
+
workflowName: string,
|
|
114
|
+
runId: string
|
|
115
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
116
|
+
|
|
117
|
+
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
118
|
+
? (name: string, input: AIAgentInput) => Promise<any>
|
|
119
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
120
|
+
name: Name,
|
|
121
|
+
input: AIAgentInput
|
|
122
|
+
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
123
|
+
|
|
124
|
+
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
125
|
+
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
126
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
127
|
+
name: Name,
|
|
128
|
+
input: AIAgentInput,
|
|
129
|
+
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
130
|
+
) => Promise<void>
|
|
131
|
+
|
|
132
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
133
|
+
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
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_cratedb = {
|
|
13
|
+
/** CrateDB API key */
|
|
14
|
+
apiKey: string;
|
|
15
|
+
}
|
|
16
|
+
export type ExecuteQueryInput = {
|
|
17
|
+
/** The SQL statement to execute */
|
|
18
|
+
stmt?: string | undefined;
|
|
19
|
+
/** Positional query parameters */
|
|
20
|
+
args?: string[] | undefined;
|
|
21
|
+
}
|
|
22
|
+
export type ExecuteQueryOutput = {
|
|
23
|
+
rowcount?: number | undefined;
|
|
24
|
+
duration?: number | undefined;
|
|
25
|
+
}
|
|
26
|
+
export type InsertInput = {
|
|
27
|
+
/** Name of the schema the table belongs to */
|
|
28
|
+
schema?: string | undefined;
|
|
29
|
+
/** Name of the table to insert into */
|
|
30
|
+
table?: string | undefined;
|
|
31
|
+
/** Comma-separated list of columns */
|
|
32
|
+
columns?: string | undefined;
|
|
33
|
+
}
|
|
34
|
+
export type InsertOutput = {
|
|
35
|
+
rowcount?: number | undefined;
|
|
36
|
+
}
|
|
37
|
+
export type UpdateInput = {
|
|
38
|
+
/** Name of the schema the table belongs to */
|
|
39
|
+
schema?: string | undefined;
|
|
40
|
+
/** Name of the table to update */
|
|
41
|
+
table?: string | undefined;
|
|
42
|
+
/** Column used to decide which rows to update */
|
|
43
|
+
updateKey?: string | undefined;
|
|
44
|
+
/** Comma-separated list of columns to update */
|
|
45
|
+
columns?: string | undefined;
|
|
46
|
+
}
|
|
47
|
+
export type UpdateOutput = {
|
|
48
|
+
rowcount?: number | undefined;
|
|
49
|
+
}
|
|
50
|
+
export type VariableSchema_CRATEDB_BASE_URL = "http://localhost:4200"
|
|
51
|
+
|
|
52
|
+
interface RPCHandler<I, O> {
|
|
53
|
+
input: I;
|
|
54
|
+
output: O;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type RPCMap = {
|
|
58
|
+
readonly 'executeQuery': RPCHandler<ExecuteQueryInput, ExecuteQueryOutput>,
|
|
59
|
+
readonly 'insert': RPCHandler<InsertInput, InsertOutput>,
|
|
60
|
+
readonly 'update': RPCHandler<UpdateInput, UpdateOutput>,
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
// No addon packages, use RPCMap directly
|
|
66
|
+
export type FlattenedRPCMap = RPCMap
|
|
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
|
+
|
|
75
|
+
|
|
76
|
+
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
77
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
78
|
+
? [name: Name]
|
|
79
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
80
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
81
|
+
|
|
82
|
+
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
83
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
84
|
+
? [name: Name]
|
|
85
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
86
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
87
|
+
|
|
88
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
89
|
+
|
|
90
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
type FlattenedAgentMap = AgentMap
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
97
|
+
|
|
98
|
+
interface AIAgentInput {
|
|
99
|
+
message: string
|
|
100
|
+
threadId: string
|
|
101
|
+
resourceId: string
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
105
|
+
name: Name,
|
|
106
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
107
|
+
options?: { startNode?: string }
|
|
108
|
+
) => Promise<{ runId: string }>
|
|
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
|
+
|
|
120
|
+
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
121
|
+
? (name: string, input: AIAgentInput) => Promise<any>
|
|
122
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
123
|
+
name: Name,
|
|
124
|
+
input: AIAgentInput
|
|
125
|
+
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
126
|
+
|
|
127
|
+
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
128
|
+
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
129
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
130
|
+
name: Name,
|
|
131
|
+
input: AIAgentInput,
|
|
132
|
+
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
133
|
+
) => Promise<void>
|
|
134
|
+
|
|
135
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
136
|
+
|
|
@@ -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.54
|
|
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-cratedb', '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,sBAAsB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
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-cratedb', 'rpc', 'meta', metaData as Record<string, string>)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
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.54
|
|
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.54
|
|
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
|
+
{"version":3,"file":"register.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/schemas/register.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { addSchema } from '@pikku/core/schema';
|
|
5
|
+
import * as ExecuteQueryInput from './schemas/ExecuteQueryInput.schema.json' with { type: 'json' };
|
|
6
|
+
addSchema('ExecuteQueryInput', ExecuteQueryInput, '@pikku/addon-cratedb');
|
|
7
|
+
import * as ExecuteQueryOutput from './schemas/ExecuteQueryOutput.schema.json' with { type: 'json' };
|
|
8
|
+
addSchema('ExecuteQueryOutput', ExecuteQueryOutput, '@pikku/addon-cratedb');
|
|
9
|
+
import * as InsertInput from './schemas/InsertInput.schema.json' with { type: 'json' };
|
|
10
|
+
addSchema('InsertInput', InsertInput, '@pikku/addon-cratedb');
|
|
11
|
+
import * as InsertOutput from './schemas/InsertOutput.schema.json' with { type: 'json' };
|
|
12
|
+
addSchema('InsertOutput', InsertOutput, '@pikku/addon-cratedb');
|
|
13
|
+
import * as UpdateInput from './schemas/UpdateInput.schema.json' with { type: 'json' };
|
|
14
|
+
addSchema('UpdateInput', UpdateInput, '@pikku/addon-cratedb');
|
|
15
|
+
import * as UpdateOutput from './schemas/UpdateOutput.schema.json' with { type: 'json' };
|
|
16
|
+
addSchema('UpdateOutput', UpdateOutput, '@pikku/addon-cratedb');
|
|
17
|
+
import * as CredentialSchema_cratedb from './schemas/CredentialSchema_cratedb.schema.json' with { type: 'json' };
|
|
18
|
+
addSchema('CredentialSchema_cratedb', CredentialSchema_cratedb, '@pikku/addon-cratedb');
|
|
19
|
+
import * as VariableSchema_CRATEDB_BASE_URL from './schemas/VariableSchema_CRATEDB_BASE_URL.schema.json' with { type: 'json' };
|
|
20
|
+
addSchema('VariableSchema_CRATEDB_BASE_URL', VariableSchema_CRATEDB_BASE_URL, '@pikku/addon-cratedb');
|
|
21
|
+
//# sourceMappingURL=register.gen.js.map
|
|
@@ -0,0 +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,iBAAiB,MAAM,yCAAyC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAClG,SAAS,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,sBAAsB,CAAC,CAAA;AAGzE,OAAO,KAAK,kBAAkB,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACpG,SAAS,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,sBAAsB,CAAC,CAAA;AAG3E,OAAO,KAAK,WAAW,MAAM,mCAAmC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACtF,SAAS,CAAC,aAAa,EAAE,WAAW,EAAE,sBAAsB,CAAC,CAAA;AAG7D,OAAO,KAAK,YAAY,MAAM,oCAAoC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACxF,SAAS,CAAC,cAAc,EAAE,YAAY,EAAE,sBAAsB,CAAC,CAAA;AAG/D,OAAO,KAAK,WAAW,MAAM,mCAAmC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACtF,SAAS,CAAC,aAAa,EAAE,WAAW,EAAE,sBAAsB,CAAC,CAAA;AAG7D,OAAO,KAAK,YAAY,MAAM,oCAAoC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACxF,SAAS,CAAC,cAAc,EAAE,YAAY,EAAE,sBAAsB,CAAC,CAAA;AAG/D,OAAO,KAAK,wBAAwB,MAAM,gDAAgD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAChH,SAAS,CAAC,0BAA0B,EAAE,wBAAwB,EAAE,sBAAsB,CAAC,CAAA;AAGvF,OAAO,KAAK,+BAA+B,MAAM,uDAAuD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC9H,SAAS,CAAC,iCAAiC,EAAE,+BAA+B,EAAE,sBAAsB,CAAC,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { addSchema } from '@pikku/core/schema'
|
|
5
|
+
|
|
6
|
+
import * as ExecuteQueryInput from './schemas/ExecuteQueryInput.schema.json' with { type: 'json' }
|
|
7
|
+
addSchema('ExecuteQueryInput', ExecuteQueryInput, '@pikku/addon-cratedb')
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
import * as ExecuteQueryOutput from './schemas/ExecuteQueryOutput.schema.json' with { type: 'json' }
|
|
11
|
+
addSchema('ExecuteQueryOutput', ExecuteQueryOutput, '@pikku/addon-cratedb')
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import * as InsertInput from './schemas/InsertInput.schema.json' with { type: 'json' }
|
|
15
|
+
addSchema('InsertInput', InsertInput, '@pikku/addon-cratedb')
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as InsertOutput from './schemas/InsertOutput.schema.json' with { type: 'json' }
|
|
19
|
+
addSchema('InsertOutput', InsertOutput, '@pikku/addon-cratedb')
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
import * as UpdateInput from './schemas/UpdateInput.schema.json' with { type: 'json' }
|
|
23
|
+
addSchema('UpdateInput', UpdateInput, '@pikku/addon-cratedb')
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
import * as UpdateOutput from './schemas/UpdateOutput.schema.json' with { type: 'json' }
|
|
27
|
+
addSchema('UpdateOutput', UpdateOutput, '@pikku/addon-cratedb')
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
import * as CredentialSchema_cratedb from './schemas/CredentialSchema_cratedb.schema.json' with { type: 'json' }
|
|
31
|
+
addSchema('CredentialSchema_cratedb', CredentialSchema_cratedb, '@pikku/addon-cratedb')
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
import * as VariableSchema_CRATEDB_BASE_URL from './schemas/VariableSchema_CRATEDB_BASE_URL.schema.json' with { type: 'json' }
|
|
35
|
+
addSchema('VariableSchema_CRATEDB_BASE_URL', VariableSchema_CRATEDB_BASE_URL, '@pikku/addon-cratedb')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"apiKey":{"type":"string","description":"CrateDB API key"}},"required":["apiKey"],"additionalProperties":false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"stmt":{"description":"The SQL statement to execute","type":"string"},"args":{"description":"Positional query parameters","type":"array","items":{"type":"string"}}},"additionalProperties":false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"rowcount":{"type":"number"},"duration":{"type":"number"}},"additionalProperties":false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schema":{"description":"Name of the schema the table belongs to","type":"string"},"table":{"description":"Name of the table to insert into","type":"string"},"columns":{"description":"Comma-separated list of columns","type":"string"}},"additionalProperties":false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"rowcount":{"type":"number"}},"additionalProperties":false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schema":{"description":"Name of the schema the table belongs to","type":"string"},"table":{"description":"Name of the table to update","type":"string"},"updateKey":{"description":"Column used to decide which rows to update","type":"string"},"columns":{"description":"Comma-separated list of columns to update","type":"string"}},"additionalProperties":false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"rowcount":{"type":"number"}},"additionalProperties":false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","default":"http://localhost:4200","type":"string","enum":["http://localhost:4200"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-secret-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-secret-types.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
|
|
5
|
+
import type { SecretService } from '@pikku/core/services';
|
|
6
|
+
export interface CredentialsMap {
|
|
7
|
+
}
|
|
8
|
+
export type SecretId = keyof CredentialsMap;
|
|
9
|
+
export declare class TypedSecretService extends CoreTypedSecretService<CredentialsMap> {
|
|
10
|
+
constructor(secrets: SecretService);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=pikku-secrets.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-secrets.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,WAAW,cAAc;CAE9B;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAA;AAM3C,qBAAa,kBAAmB,SAAQ,sBAAsB,CAAC,cAAc,CAAC;gBAChE,OAAO,EAAE,aAAa;CAGnC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
|
|
5
|
+
const CREDENTIALS_META = {};
|
|
6
|
+
export class TypedSecretService extends CoreTypedSecretService {
|
|
7
|
+
constructor(secrets) {
|
|
8
|
+
super(secrets, CREDENTIALS_META);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=pikku-secrets.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-secrets.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AASxG,MAAM,gBAAgB,GAAmC,EAExD,CAAA;AAED,MAAM,OAAO,kBAAmB,SAAQ,sBAAsC;IAC5E,YAAY,OAAsB;QAChC,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAA;IAClC,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { TypedSecretService as CoreTypedSecretService, type CredentialMeta } from '@pikku/core/services'
|
|
5
|
+
import type { SecretService } from '@pikku/core/services'
|
|
6
|
+
|
|
7
|
+
export interface CredentialsMap {
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type SecretId = keyof CredentialsMap
|
|
12
|
+
|
|
13
|
+
const CREDENTIALS_META: Record<string, CredentialMeta> = {
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class TypedSecretService extends CoreTypedSecretService<CredentialsMap> {
|
|
18
|
+
constructor(secrets: SecretService) {
|
|
19
|
+
super(secrets, CREDENTIALS_META)
|
|
20
|
+
}
|
|
21
|
+
}
|