@pikku/addon-nextcloud 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 +495 -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 +325 -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 +40 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +40 -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 +217 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +234 -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 +19 -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 +77 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +147 -0
- package/dist/.pikku/schemas/schemas/CredentialSchema_nextcloud.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileCopyInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileCopyOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileDownloadInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileDownloadOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileMoveInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileMoveOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileShareInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileShareOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileUploadInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FileUploadOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderCopyInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderCopyOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderListOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderMoveInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderMoveOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderShareInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FolderShareOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UserCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UserCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UserDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UserDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UserGetAllInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UserGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UserGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UserGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UserUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UserUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/VariableSchema_NEXTCLOUD_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/functions/fileCopy.function.d.ts +17 -0
- package/dist/src/functions/fileCopy.function.d.ts.map +1 -0
- package/dist/src/functions/fileCopy.function.js +16 -0
- package/dist/src/functions/fileCopy.function.js.map +1 -0
- package/dist/src/functions/fileDelete.function.d.ts +13 -0
- package/dist/src/functions/fileDelete.function.d.ts.map +1 -0
- package/dist/src/functions/fileDelete.function.js +15 -0
- package/dist/src/functions/fileDelete.function.js.map +1 -0
- package/dist/src/functions/fileDownload.function.d.ts +17 -0
- package/dist/src/functions/fileDownload.function.d.ts.map +1 -0
- package/dist/src/functions/fileDownload.function.js +16 -0
- package/dist/src/functions/fileDownload.function.js.map +1 -0
- package/dist/src/functions/fileMove.function.d.ts +17 -0
- package/dist/src/functions/fileMove.function.d.ts.map +1 -0
- package/dist/src/functions/fileMove.function.js +16 -0
- package/dist/src/functions/fileMove.function.js.map +1 -0
- package/dist/src/functions/fileShare.function.d.ts +21 -0
- package/dist/src/functions/fileShare.function.d.ts.map +1 -0
- package/dist/src/functions/fileShare.function.js +17 -0
- package/dist/src/functions/fileShare.function.js.map +1 -0
- package/dist/src/functions/fileUpload.function.d.ts +17 -0
- package/dist/src/functions/fileUpload.function.d.ts.map +1 -0
- package/dist/src/functions/fileUpload.function.js +16 -0
- package/dist/src/functions/fileUpload.function.js.map +1 -0
- package/dist/src/functions/folderCopy.function.d.ts +17 -0
- package/dist/src/functions/folderCopy.function.d.ts.map +1 -0
- package/dist/src/functions/folderCopy.function.js +16 -0
- package/dist/src/functions/folderCopy.function.js.map +1 -0
- package/dist/src/functions/folderCreate.function.d.ts +13 -0
- package/dist/src/functions/folderCreate.function.d.ts.map +1 -0
- package/dist/src/functions/folderCreate.function.js +15 -0
- package/dist/src/functions/folderCreate.function.js.map +1 -0
- package/dist/src/functions/folderDelete.function.d.ts +13 -0
- package/dist/src/functions/folderDelete.function.d.ts.map +1 -0
- package/dist/src/functions/folderDelete.function.js +15 -0
- package/dist/src/functions/folderDelete.function.js.map +1 -0
- package/dist/src/functions/folderList.function.d.ts +13 -0
- package/dist/src/functions/folderList.function.d.ts.map +1 -0
- package/dist/src/functions/folderList.function.js +15 -0
- package/dist/src/functions/folderList.function.js.map +1 -0
- package/dist/src/functions/folderMove.function.d.ts +17 -0
- package/dist/src/functions/folderMove.function.d.ts.map +1 -0
- package/dist/src/functions/folderMove.function.js +16 -0
- package/dist/src/functions/folderMove.function.js.map +1 -0
- package/dist/src/functions/folderShare.function.d.ts +21 -0
- package/dist/src/functions/folderShare.function.d.ts.map +1 -0
- package/dist/src/functions/folderShare.function.js +17 -0
- package/dist/src/functions/folderShare.function.js.map +1 -0
- package/dist/src/functions/userCreate.function.d.ts +21 -0
- package/dist/src/functions/userCreate.function.d.ts.map +1 -0
- package/dist/src/functions/userCreate.function.js +17 -0
- package/dist/src/functions/userCreate.function.js.map +1 -0
- package/dist/src/functions/userDelete.function.d.ts +13 -0
- package/dist/src/functions/userDelete.function.d.ts.map +1 -0
- package/dist/src/functions/userDelete.function.js +15 -0
- package/dist/src/functions/userDelete.function.js.map +1 -0
- package/dist/src/functions/userGet.function.d.ts +13 -0
- package/dist/src/functions/userGet.function.d.ts.map +1 -0
- package/dist/src/functions/userGet.function.js +15 -0
- package/dist/src/functions/userGet.function.js.map +1 -0
- package/dist/src/functions/userGetAll.function.d.ts +21 -0
- package/dist/src/functions/userGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/userGetAll.function.js +17 -0
- package/dist/src/functions/userGetAll.function.js.map +1 -0
- package/dist/src/functions/userUpdate.function.d.ts +21 -0
- package/dist/src/functions/userUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/userUpdate.function.js +17 -0
- package/dist/src/functions/userUpdate.function.js.map +1 -0
- package/dist/src/index.d.ts +18 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +18 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/nextcloud-api.service.d.ts +10 -0
- package/dist/src/nextcloud-api.service.d.ts.map +1 -0
- package/dist/src/nextcloud-api.service.js +170 -0
- package/dist/src/nextcloud-api.service.js.map +1 -0
- package/dist/src/nextcloud.credential.d.ts +5 -0
- package/dist/src/nextcloud.credential.d.ts.map +1 -0
- package/dist/src/nextcloud.credential.js +13 -0
- package/dist/src/nextcloud.credential.js.map +1 -0
- package/dist/src/nextcloud.types.d.ts +7 -0
- package/dist/src/nextcloud.types.d.ts.map +1 -0
- package/dist/src/nextcloud.types.js +8 -0
- package/dist/src/nextcloud.types.js.map +1 -0
- package/dist/src/nextcloud.variable.d.ts +5 -0
- package/dist/src/nextcloud.variable.d.ts.map +1 -0
- package/dist/src/nextcloud.variable.js +11 -0
- package/dist/src/nextcloud.variable.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,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Trigger-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { CorePikkuTriggerFunction, CorePikkuTriggerFunctionConfig, CoreTrigger } from '@pikku/core/trigger';
|
|
8
|
+
import type { CoreNodeConfig } from '@pikku/core/node';
|
|
9
|
+
import type { SingletonServices } from '../../types/application-types.d.js';
|
|
10
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
11
|
+
/**
|
|
12
|
+
* A trigger function that sets up a subscription and returns a teardown function.
|
|
13
|
+
* The trigger is fired via wire.trigger.invoke(data).
|
|
14
|
+
*
|
|
15
|
+
* @template TInput - Input type (configuration passed when wired)
|
|
16
|
+
* @template TOutput - Output type produced when trigger fires
|
|
17
|
+
*/
|
|
18
|
+
export type PikkuTriggerFunction<TInput = unknown, TOutput = unknown> = CorePikkuTriggerFunction<TInput, TOutput, SingletonServices>;
|
|
19
|
+
/**
|
|
20
|
+
* Configuration object for creating a trigger function with metadata
|
|
21
|
+
*/
|
|
22
|
+
export type PikkuTriggerFunctionConfig<TInput = unknown, TOutput = unknown, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = CorePikkuTriggerFunctionConfig<TInput, TOutput, SingletonServices, InputSchema, OutputSchema>;
|
|
23
|
+
/**
|
|
24
|
+
* Helper type to infer the output type from a Standard Schema
|
|
25
|
+
*/
|
|
26
|
+
type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Output : never;
|
|
27
|
+
/**
|
|
28
|
+
* Configuration object for trigger functions with Zod schema validation.
|
|
29
|
+
* Use this when you want to define input/output schemas using Zod.
|
|
30
|
+
* Types are automatically inferred from the schemas.
|
|
31
|
+
*/
|
|
32
|
+
export type PikkuTriggerFunctionConfigWithSchema<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined> = {
|
|
33
|
+
title?: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
tags?: string[];
|
|
36
|
+
func: PikkuTriggerFunction<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>;
|
|
37
|
+
input: InputSchema;
|
|
38
|
+
output?: OutputSchema;
|
|
39
|
+
node?: CoreNodeConfig;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Type definition for trigger wirings.
|
|
43
|
+
* Declares a trigger name and its target pikku function.
|
|
44
|
+
*/
|
|
45
|
+
export type TriggerWiring = CoreTrigger;
|
|
46
|
+
/**
|
|
47
|
+
* A trigger source with the subscription function, using project-specific services.
|
|
48
|
+
*
|
|
49
|
+
* @template TInput - Input type passed to the trigger function
|
|
50
|
+
* @template TOutput - Output type produced when trigger fires
|
|
51
|
+
*/
|
|
52
|
+
export type TriggerSource<TInput = unknown, TOutput = unknown> = {
|
|
53
|
+
name: string;
|
|
54
|
+
func: PikkuTriggerFunctionConfig<TInput, TOutput>;
|
|
55
|
+
} & (unknown extends TInput ? {
|
|
56
|
+
input?: TInput;
|
|
57
|
+
} : {
|
|
58
|
+
input: TInput;
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* Creates a trigger function configuration.
|
|
62
|
+
* Use this to define trigger functions that set up subscriptions.
|
|
63
|
+
*
|
|
64
|
+
* @param triggerOrConfig - Function definition or configuration object
|
|
65
|
+
* @returns The normalized configuration object
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* export const redisSubscribeTrigger = pikkuTriggerFunc<
|
|
70
|
+
* { channel: string },
|
|
71
|
+
* { message: string }
|
|
72
|
+
* >(async ({ redis }, { channel }, { trigger }) => {
|
|
73
|
+
* const subscriber = redis.duplicate()
|
|
74
|
+
* await subscriber.subscribe(channel, (msg) => {
|
|
75
|
+
* trigger.invoke({ message: msg })
|
|
76
|
+
* })
|
|
77
|
+
* return () => subscriber.unsubscribe()
|
|
78
|
+
* })
|
|
79
|
+
*
|
|
80
|
+
* export const redisSubscribeTrigger = pikkuTriggerFunc({
|
|
81
|
+
* title: 'Redis Subscribe Trigger',
|
|
82
|
+
* description: 'Listens to Redis pub/sub channel',
|
|
83
|
+
* input: z.object({ channel: z.string() }),
|
|
84
|
+
* output: z.object({ message: z.string() }),
|
|
85
|
+
* func: async ({ redis }, { channel }, { trigger }) => {
|
|
86
|
+
* const subscriber = redis.duplicate()
|
|
87
|
+
* await subscriber.subscribe(channel, (msg) => {
|
|
88
|
+
* trigger.invoke({ message: msg })
|
|
89
|
+
* })
|
|
90
|
+
* return () => subscriber.unsubscribe()
|
|
91
|
+
* }
|
|
92
|
+
* })
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
export declare function pikkuTriggerFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuTriggerFunctionConfigWithSchema<InputSchema, OutputSchema>): PikkuTriggerFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, InputSchema, OutputSchema>;
|
|
96
|
+
export declare function pikkuTriggerFunc<TInput, TOutput = unknown>(triggerOrConfig: PikkuTriggerFunction<TInput, TOutput> | PikkuTriggerFunctionConfig<TInput, TOutput>): PikkuTriggerFunctionConfig<TInput, TOutput>;
|
|
97
|
+
/**
|
|
98
|
+
* Registers a trigger with the Pikku framework.
|
|
99
|
+
* Declares a trigger name and its target pikku function.
|
|
100
|
+
* Runs everywhere — inspector extracts at build time.
|
|
101
|
+
*
|
|
102
|
+
* @param trigger - Trigger definition with name and function config
|
|
103
|
+
*/
|
|
104
|
+
export declare const wireTrigger: (trigger: TriggerWiring) => void;
|
|
105
|
+
/**
|
|
106
|
+
* Registers a trigger source with the Pikku framework.
|
|
107
|
+
* Provides the subscription function and input data.
|
|
108
|
+
* Only imported in the trigger worker process.
|
|
109
|
+
*
|
|
110
|
+
* @param source - Trigger source with name, func, and input
|
|
111
|
+
*/
|
|
112
|
+
export declare const wireTriggerSource: <TInput = unknown, TOutput = unknown>(source: TriggerSource<TInput, TOutput>) => void;
|
|
113
|
+
export {};
|
|
114
|
+
//# sourceMappingURL=pikku-trigger-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-trigger-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,WAAW,EAA8E,MAAM,qBAAqB,CAAA;AACvL,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAI7D;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,CAC9B,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,IACf,wBAAwB,CAAC,MAAM,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,0BAA0B,CACpC,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,EACjB,WAAW,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,EAC5D,YAAY,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,IAC3D,8BAA8B,CAAC,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,CAAC,CAAA;AAEjG;;GAEG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,MAAM,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK,CAAA;AAE1F;;;;GAIG;AACH,MAAM,MAAM,oCAAoC,CAC9C,WAAW,SAAS,gBAAgB,EACpC,YAAY,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,IAC3D;IACF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAA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0B,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAQ9C;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GACtB,SAAS,aAAa,SAGvB,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACnE,QAAQ,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,SAGvC,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Trigger-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireTrigger as wireTriggerCore, wireTriggerSource as wireTriggerSourceCore } from '@pikku/core/trigger';
|
|
8
|
+
export function pikkuTriggerFunc(triggerOrConfig) {
|
|
9
|
+
if (typeof triggerOrConfig === 'function') {
|
|
10
|
+
return { func: triggerOrConfig };
|
|
11
|
+
}
|
|
12
|
+
return triggerOrConfig;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Registers a trigger with the Pikku framework.
|
|
16
|
+
* Declares a trigger name and its target pikku function.
|
|
17
|
+
* Runs everywhere — inspector extracts at build time.
|
|
18
|
+
*
|
|
19
|
+
* @param trigger - Trigger definition with name and function config
|
|
20
|
+
*/
|
|
21
|
+
export const wireTrigger = (trigger) => {
|
|
22
|
+
wireTriggerCore(trigger);
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Registers a trigger source with the Pikku framework.
|
|
26
|
+
* Provides the subscription function and input data.
|
|
27
|
+
* Only imported in the trigger worker process.
|
|
28
|
+
*
|
|
29
|
+
* @param source - Trigger source with name, func, and input
|
|
30
|
+
*/
|
|
31
|
+
export const wireTriggerSource = (source) => {
|
|
32
|
+
wireTriggerSourceCore(source);
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=pikku-trigger-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-trigger-types.gen.js","sourceRoot":"","sources":["../../../.pikku/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAyE,WAAW,IAAI,eAAe,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAyHvL,MAAM,UAAU,gBAAgB,CAAC,eAAoB;IACnD,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,CAAA;IAClC,CAAC;IACD,OAAO,eAAe,CAAA;AACxB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,OAAsB,EACtB,EAAE;IACF,eAAe,CAAC,OAAc,CAAC,CAAA;AACjC,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,MAAsC,EACtC,EAAE;IACF,qBAAqB,CAAC,MAAa,CAAC,CAAA;AACtC,CAAC,CAAA"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Trigger-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { CorePikkuTriggerFunction, CorePikkuTriggerFunctionConfig, CoreTrigger, wireTrigger as wireTriggerCore, wireTriggerSource as wireTriggerSourceCore } from '@pikku/core/trigger'
|
|
9
|
+
import type { CoreNodeConfig } from '@pikku/core/node'
|
|
10
|
+
import type { SingletonServices } from '../../types/application-types.d.js'
|
|
11
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A trigger function that sets up a subscription and returns a teardown function.
|
|
17
|
+
* The trigger is fired via wire.trigger.invoke(data).
|
|
18
|
+
*
|
|
19
|
+
* @template TInput - Input type (configuration passed when wired)
|
|
20
|
+
* @template TOutput - Output type produced when trigger fires
|
|
21
|
+
*/
|
|
22
|
+
export type PikkuTriggerFunction<
|
|
23
|
+
TInput = unknown,
|
|
24
|
+
TOutput = unknown
|
|
25
|
+
> = CorePikkuTriggerFunction<TInput, TOutput, SingletonServices>
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Configuration object for creating a trigger function with metadata
|
|
29
|
+
*/
|
|
30
|
+
export type PikkuTriggerFunctionConfig<
|
|
31
|
+
TInput = unknown,
|
|
32
|
+
TOutput = unknown,
|
|
33
|
+
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
34
|
+
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
35
|
+
> = CorePikkuTriggerFunctionConfig<TInput, TOutput, SingletonServices, InputSchema, OutputSchema>
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Helper type to infer the output type from a Standard Schema
|
|
39
|
+
*/
|
|
40
|
+
type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Output : never
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Configuration object for trigger functions with Zod schema validation.
|
|
44
|
+
* Use this when you want to define input/output schemas using Zod.
|
|
45
|
+
* Types are automatically inferred from the schemas.
|
|
46
|
+
*/
|
|
47
|
+
export type PikkuTriggerFunctionConfigWithSchema<
|
|
48
|
+
InputSchema extends StandardSchemaV1,
|
|
49
|
+
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
50
|
+
> = {
|
|
51
|
+
title?: string
|
|
52
|
+
description?: string
|
|
53
|
+
tags?: string[]
|
|
54
|
+
func: PikkuTriggerFunction<
|
|
55
|
+
InferSchemaOutput<InputSchema>,
|
|
56
|
+
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown
|
|
57
|
+
>
|
|
58
|
+
input: InputSchema
|
|
59
|
+
output?: OutputSchema
|
|
60
|
+
node?: CoreNodeConfig
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Type definition for trigger wirings.
|
|
65
|
+
* Declares a trigger name and its target pikku function.
|
|
66
|
+
*/
|
|
67
|
+
export type TriggerWiring = CoreTrigger
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* A trigger source with the subscription function, using project-specific services.
|
|
71
|
+
*
|
|
72
|
+
* @template TInput - Input type passed to the trigger function
|
|
73
|
+
* @template TOutput - Output type produced when trigger fires
|
|
74
|
+
*/
|
|
75
|
+
export type TriggerSource<
|
|
76
|
+
TInput = unknown,
|
|
77
|
+
TOutput = unknown
|
|
78
|
+
> = {
|
|
79
|
+
name: string
|
|
80
|
+
func: PikkuTriggerFunctionConfig<TInput, TOutput>
|
|
81
|
+
} & (unknown extends TInput ? { input?: TInput } : { input: TInput })
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Creates a trigger function configuration.
|
|
85
|
+
* Use this to define trigger functions that set up subscriptions.
|
|
86
|
+
*
|
|
87
|
+
* @param triggerOrConfig - Function definition or configuration object
|
|
88
|
+
* @returns The normalized configuration object
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```typescript
|
|
92
|
+
* export const redisSubscribeTrigger = pikkuTriggerFunc<
|
|
93
|
+
* { channel: string },
|
|
94
|
+
* { message: string }
|
|
95
|
+
* >(async ({ redis }, { channel }, { trigger }) => {
|
|
96
|
+
* const subscriber = redis.duplicate()
|
|
97
|
+
* await subscriber.subscribe(channel, (msg) => {
|
|
98
|
+
* trigger.invoke({ message: msg })
|
|
99
|
+
* })
|
|
100
|
+
* return () => subscriber.unsubscribe()
|
|
101
|
+
* })
|
|
102
|
+
*
|
|
103
|
+
* export const redisSubscribeTrigger = pikkuTriggerFunc({
|
|
104
|
+
* title: 'Redis Subscribe Trigger',
|
|
105
|
+
* description: 'Listens to Redis pub/sub channel',
|
|
106
|
+
* input: z.object({ channel: z.string() }),
|
|
107
|
+
* output: z.object({ message: z.string() }),
|
|
108
|
+
* func: async ({ redis }, { channel }, { trigger }) => {
|
|
109
|
+
* const subscriber = redis.duplicate()
|
|
110
|
+
* await subscriber.subscribe(channel, (msg) => {
|
|
111
|
+
* trigger.invoke({ message: msg })
|
|
112
|
+
* })
|
|
113
|
+
* return () => subscriber.unsubscribe()
|
|
114
|
+
* }
|
|
115
|
+
* })
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
export function pikkuTriggerFunc<
|
|
119
|
+
InputSchema extends StandardSchemaV1,
|
|
120
|
+
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
121
|
+
>(
|
|
122
|
+
config: PikkuTriggerFunctionConfigWithSchema<InputSchema, OutputSchema>
|
|
123
|
+
): PikkuTriggerFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, InputSchema, OutputSchema>
|
|
124
|
+
export function pikkuTriggerFunc<TInput, TOutput = unknown>(
|
|
125
|
+
triggerOrConfig:
|
|
126
|
+
| PikkuTriggerFunction<TInput, TOutput>
|
|
127
|
+
| PikkuTriggerFunctionConfig<TInput, TOutput>
|
|
128
|
+
): PikkuTriggerFunctionConfig<TInput, TOutput>
|
|
129
|
+
export function pikkuTriggerFunc(triggerOrConfig: any) {
|
|
130
|
+
if (typeof triggerOrConfig === 'function') {
|
|
131
|
+
return { func: triggerOrConfig }
|
|
132
|
+
}
|
|
133
|
+
return triggerOrConfig
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Registers a trigger with the Pikku framework.
|
|
138
|
+
* Declares a trigger name and its target pikku function.
|
|
139
|
+
* Runs everywhere — inspector extracts at build time.
|
|
140
|
+
*
|
|
141
|
+
* @param trigger - Trigger definition with name and function config
|
|
142
|
+
*/
|
|
143
|
+
export const wireTrigger = (
|
|
144
|
+
trigger: TriggerWiring
|
|
145
|
+
) => {
|
|
146
|
+
wireTriggerCore(trigger as any)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Registers a trigger source with the Pikku framework.
|
|
151
|
+
* Provides the subscription function and input data.
|
|
152
|
+
* Only imported in the trigger worker process.
|
|
153
|
+
*
|
|
154
|
+
* @param source - Trigger source with name, func, and input
|
|
155
|
+
*/
|
|
156
|
+
export const wireTriggerSource = <TInput = unknown, TOutput = unknown>(
|
|
157
|
+
source: TriggerSource<TInput, TOutput>
|
|
158
|
+
) => {
|
|
159
|
+
wireTriggerSourceCore(source as any)
|
|
160
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
export { wireVariable } from '@pikku/core/variable';
|
|
5
|
+
export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
|
|
6
|
+
//# sourceMappingURL=pikku-variable-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-variable-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variable-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-variable-types.gen.js","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variable-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"NEXTCLOUD_BASE_URL": {
|
|
3
|
+
"name": "NEXTCLOUD_BASE_URL",
|
|
4
|
+
"displayName": "Nextcloud Base URL",
|
|
5
|
+
"description": "The base URL for the Nextcloud API.",
|
|
6
|
+
"variableId": "NEXTCLOUD_BASE_URL",
|
|
7
|
+
"schema": "VariableSchema_NEXTCLOUD_BASE_URL",
|
|
8
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/cloud/nextcloud/src/nextcloud.variable.ts"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
|
|
5
|
+
import type { VariablesService } from '@pikku/core/services';
|
|
6
|
+
import type { z } from 'zod';
|
|
7
|
+
import { nextcloudBaseUrlSchema } from '../../src/nextcloud.variable.js';
|
|
8
|
+
export interface VariablesMap {
|
|
9
|
+
'NEXTCLOUD_BASE_URL': z.infer<typeof nextcloudBaseUrlSchema>;
|
|
10
|
+
}
|
|
11
|
+
export type VariableId = keyof VariablesMap;
|
|
12
|
+
export declare class TypedVariablesService extends CoreTypedVariablesService<VariablesMap> {
|
|
13
|
+
constructor(variables: VariablesService);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=pikku-variables.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-variables.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variables.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAqB,MAAM,sBAAsB,CAAA;AAC5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAExE,MAAM,WAAW,YAAY;IAC3B,oBAAoB,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;CAC7D;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,YAAY,CAAA;AAM3C,qBAAa,qBAAsB,SAAQ,yBAAyB,CAAC,YAAY,CAAC;gBACpE,SAAS,EAAE,gBAAgB;CAGxC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
|
|
5
|
+
const VARIABLES_META = {
|
|
6
|
+
'NEXTCLOUD_BASE_URL': { name: 'NEXTCLOUD_BASE_URL', displayName: 'Nextcloud Base URL' }
|
|
7
|
+
};
|
|
8
|
+
export class TypedVariablesService extends CoreTypedVariablesService {
|
|
9
|
+
constructor(variables) {
|
|
10
|
+
super(variables, VARIABLES_META);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=pikku-variables.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-variables.gen.js","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variables.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAqB,MAAM,sBAAsB,CAAA;AAW5G,MAAM,cAAc,GAAiC;IACnD,oBAAoB,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,oBAAoB,EAAE;CACxF,CAAA;AAED,MAAM,OAAO,qBAAsB,SAAQ,yBAAuC;IAChF,YAAY,SAA2B;QACrC,KAAK,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;IAClC,CAAC;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { TypedVariablesService as CoreTypedVariablesService, type VariableMeta } from '@pikku/core/services'
|
|
5
|
+
import type { VariablesService } from '@pikku/core/services'
|
|
6
|
+
import type { z } from 'zod'
|
|
7
|
+
import { nextcloudBaseUrlSchema } from '../../src/nextcloud.variable.js'
|
|
8
|
+
|
|
9
|
+
export interface VariablesMap {
|
|
10
|
+
'NEXTCLOUD_BASE_URL': z.infer<typeof nextcloudBaseUrlSchema>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type VariableId = keyof VariablesMap
|
|
14
|
+
|
|
15
|
+
const VARIABLES_META: Record<string, VariableMeta> = {
|
|
16
|
+
'NEXTCLOUD_BASE_URL': { name: 'NEXTCLOUD_BASE_URL', displayName: 'Nextcloud Base URL' }
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class TypedVariablesService extends CoreTypedVariablesService<VariablesMap> {
|
|
20
|
+
constructor(variables: VariablesService) {
|
|
21
|
+
super(variables, VARIABLES_META)
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Workflow type map with input/output types for each workflow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
interface WorkflowHandler<I, O> {
|
|
13
|
+
input: I;
|
|
14
|
+
output: O;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface GraphNodeHandler<I> {
|
|
18
|
+
input: I;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type WorkflowMap = {
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type GraphsMap = {
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type FlattenedWorkflowMap = WorkflowMap
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export type WorkflowClient<Name extends keyof FlattenedWorkflowMap> = {
|
|
31
|
+
start: (input: FlattenedWorkflowMap[Name]['input']) => Promise<{ runId: string }>;
|
|
32
|
+
getRun: <output extends keyof FlattenedWorkflowMap[Name]>(runId: string) => Promise<FlattenedWorkflowMap[Name][output]>;
|
|
33
|
+
cancelRun: (runId: string) => Promise<boolean>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type TypedWorkflowClients = {
|
|
37
|
+
[Name in keyof FlattenedWorkflowMap]: WorkflowClient<Name>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { WorkflowCancelledException } from '@pikku/core/workflow';
|
|
5
|
+
import { template } from '@pikku/core/workflow';
|
|
6
|
+
import { type PikkuWorkflowGraphConfig, type PikkuWorkflowGraphResult } from '@pikku/core/workflow';
|
|
7
|
+
import type { PikkuWorkflowWire, WorkflowStepOptions } from '@pikku/core/workflow';
|
|
8
|
+
export { WorkflowCancelledException };
|
|
9
|
+
import type { PikkuFunctionSessionless, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
10
|
+
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
|
|
11
|
+
import type { FlattenedWorkflowMap } from './pikku-workflow-map.gen.d.js';
|
|
12
|
+
export { template };
|
|
13
|
+
export interface TypedWorkflow extends PikkuWorkflowWire {
|
|
14
|
+
do<K extends keyof FlattenedRPCMap>(stepName: string, rpcName: K, data: FlattenedRPCMap[K]['input'], options?: WorkflowStepOptions): Promise<FlattenedRPCMap[K]['output']>;
|
|
15
|
+
do<K extends keyof FlattenedWorkflowMap>(stepName: string, workflowName: K, data: FlattenedWorkflowMap[K]['input'], options?: WorkflowStepOptions): Promise<FlattenedWorkflowMap[K]['output']>;
|
|
16
|
+
do<T>(stepName: string, fn: () => T | Promise<T>, options?: WorkflowStepOptions): Promise<T>;
|
|
17
|
+
}
|
|
18
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
19
|
+
import type { InferSchemaOutput, PikkuPermission, PikkuMiddleware, NodeConfig, PikkuApprovalDescription } from '../function/pikku-function-types.gen.js';
|
|
20
|
+
import { PikkuError } from '@pikku/core/errors';
|
|
21
|
+
import type { CorePermissionGroup } from '@pikku/core';
|
|
22
|
+
export type PikkuFunctionWorkflow<In = unknown, Out = never> = PikkuFunctionSessionless<In, Out, 'workflow'>;
|
|
23
|
+
export type PikkuWorkflowConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = {
|
|
24
|
+
title?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
tags?: string[];
|
|
27
|
+
expose?: boolean;
|
|
28
|
+
internal?: boolean;
|
|
29
|
+
override?: string;
|
|
30
|
+
version?: number;
|
|
31
|
+
remote?: boolean;
|
|
32
|
+
mcp?: boolean;
|
|
33
|
+
readonly?: boolean;
|
|
34
|
+
approvalRequired?: boolean;
|
|
35
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
36
|
+
func: PikkuFunctionWorkflow<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>;
|
|
37
|
+
auth?: boolean;
|
|
38
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
39
|
+
middleware?: PikkuMiddleware[];
|
|
40
|
+
input?: InputSchema;
|
|
41
|
+
output?: OutputSchema;
|
|
42
|
+
node?: NodeConfig;
|
|
43
|
+
errors?: Array<typeof PikkuError>;
|
|
44
|
+
inline?: boolean;
|
|
45
|
+
};
|
|
46
|
+
export declare function pikkuWorkflowFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuWorkflowConfigWithSchema<InputSchema, OutputSchema>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'workflow', PikkuFunctionWorkflow<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>;
|
|
47
|
+
export declare function pikkuWorkflowFunc<In, Out = unknown>(func: PikkuFunctionWorkflow<In, Out> | PikkuFunctionConfig<In, Out, 'workflow', PikkuFunctionWorkflow<In, Out>>): PikkuFunctionConfig<In, Out, 'workflow'>;
|
|
48
|
+
export declare function pikkuWorkflowComplexFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuWorkflowConfigWithSchema<InputSchema, OutputSchema>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'workflow', PikkuFunctionWorkflow<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>;
|
|
49
|
+
export declare function pikkuWorkflowComplexFunc<In, Out = unknown>(func: PikkuFunctionWorkflow<In, Out> | PikkuFunctionConfig<In, Out, 'workflow', PikkuFunctionWorkflow<In, Out>>): PikkuFunctionConfig<In, Out, 'workflow'>;
|
|
50
|
+
type TypedRef<T> = {
|
|
51
|
+
$ref: string;
|
|
52
|
+
path?: string;
|
|
53
|
+
} & {
|
|
54
|
+
__phantomType?: T;
|
|
55
|
+
};
|
|
56
|
+
type TemplateString = {
|
|
57
|
+
$template: {
|
|
58
|
+
parts: string[];
|
|
59
|
+
expressions: Array<{
|
|
60
|
+
$ref: string;
|
|
61
|
+
path?: string;
|
|
62
|
+
}>;
|
|
63
|
+
};
|
|
64
|
+
} & {
|
|
65
|
+
__brand: 'TemplateString';
|
|
66
|
+
};
|
|
67
|
+
type InputWithRefs<T> = {
|
|
68
|
+
[K in keyof T]?: T[K] | TypedRef<T[K]> | TypedRef<unknown> | TemplateString;
|
|
69
|
+
};
|
|
70
|
+
type NodeInputType<FuncMap extends Record<string, string>, K extends keyof FuncMap> = FuncMap[K] extends keyof FlattenedRPCMap ? InputWithRefs<FlattenedRPCMap[FuncMap[K]]['input']> : Record<string, unknown>;
|
|
71
|
+
type NodeOutputKeys<FuncMap extends Record<string, string>, N extends string> = N extends keyof FuncMap ? FuncMap[N] extends keyof FlattenedRPCMap ? keyof FlattenedRPCMap[FuncMap[N]]['output'] & string : string : string;
|
|
72
|
+
type RefFunction<FuncMap extends Record<string, string>> = {
|
|
73
|
+
<N extends Extract<keyof FuncMap, string>>(nodeId: N, path: NodeOutputKeys<FuncMap, N>): TypedRef<unknown>;
|
|
74
|
+
(nodeId: 'trigger' | '$item', path?: string): TypedRef<unknown>;
|
|
75
|
+
};
|
|
76
|
+
type TemplateFunction = (templateStr: string, refs: TypedRef<unknown>[]) => TemplateString;
|
|
77
|
+
type GraphNodeConfigMap<FuncMap extends Record<string, string>> = {
|
|
78
|
+
[K in Extract<keyof FuncMap, string>]?: {
|
|
79
|
+
next?: NextConfig<Extract<keyof FuncMap, string>>;
|
|
80
|
+
input?: NodeInputType<FuncMap, K> | (() => NodeInputType<FuncMap, K>) | ((ref: RefFunction<FuncMap>, template: TemplateFunction) => NodeInputType<FuncMap, K>);
|
|
81
|
+
onError?: Extract<keyof FuncMap, string> | Extract<keyof FuncMap, string>[];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
type NextConfig<NodeIds extends string> = NodeIds | NodeIds[] | {
|
|
85
|
+
if: string;
|
|
86
|
+
then: NodeIds;
|
|
87
|
+
else?: NodeIds;
|
|
88
|
+
};
|
|
89
|
+
export declare function pikkuWorkflowGraph<const FuncMap extends Record<string, keyof FlattenedRPCMap & string>>(config: PikkuWorkflowGraphConfig<FuncMap, GraphNodeConfigMap<FuncMap>>): PikkuWorkflowGraphResult;
|
|
90
|
+
//# sourceMappingURL=pikku-workflow-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-workflow-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/workflow/pikku-workflow-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC9B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAElF,OAAO,EAAE,0BAA0B,EAAE,CAAA;AACrC,OAAO,KAAK,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC5G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAA;AACrF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAEzE,OAAO,EAAE,QAAQ,EAAE,CAAA;AAEnB,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,EAAE,CAAC,CAAC,SAAS,MAAM,eAAe,EAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,CAAC,EACV,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EACjC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAA;IAExC,EAAE,CAAC,CAAC,SAAS,MAAM,oBAAoB,EACrC,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,CAAC,EACf,IAAI,EAAE,oBAAoB,CA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AAI,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAE7G,wBAAgB,kBAAkB,CAChC,KAAK,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,eAAe,GAAG,MAAM,CAAC,EAEpE,MAAM,EAAE,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC,GACrE,wBAAwB,CAE1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { WorkflowCancelledException } from '@pikku/core/workflow';
|
|
5
|
+
import { template } from '@pikku/core/workflow';
|
|
6
|
+
import { pikkuWorkflowGraph as corePikkuWorkflowGraph, } from '@pikku/core/workflow';
|
|
7
|
+
export { WorkflowCancelledException };
|
|
8
|
+
export { template };
|
|
9
|
+
export function pikkuWorkflowFunc(func) {
|
|
10
|
+
return typeof func === 'function' ? { func } : func;
|
|
11
|
+
}
|
|
12
|
+
export function pikkuWorkflowComplexFunc(func) {
|
|
13
|
+
return typeof func === 'function' ? { func } : func;
|
|
14
|
+
}
|
|
15
|
+
export function pikkuWorkflowGraph(config) {
|
|
16
|
+
return corePikkuWorkflowGraph(config);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=pikku-workflow-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-workflow-types.gen.js","sourceRoot":"","sources":["../../../.pikku/workflow/pikku-workflow-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EACL,kBAAkB,IAAI,sBAAsB,GAG7C,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAAE,0BAA0B,EAAE,CAAA;AAKrC,OAAO,EAAE,QAAQ,EAAE,CAAA;AA2EnB,MAAM,UAAU,iBAAiB,CAAC,IAAS;IACzC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAaD,MAAM,UAAU,wBAAwB,CAAC,IAAS;IAChD,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAkDD,MAAM,UAAU,kBAAkB,CAGhC,MAAsE;IAEtE,OAAO,sBAAsB,CAAC,MAAa,CAAC,CAAA;AAC9C,CAAC"}
|