@pikku/addon-emelia 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 +263 -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 +173 -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 +24 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +24 -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 +174 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +183 -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 +11 -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 +45 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +83 -0
- package/dist/.pikku/schemas/schemas/CampaignAddContactInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignAddContactOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignDuplicateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignDuplicateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignGetAllInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignPauseInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignPauseOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignStartInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CampaignStartOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ContactListAddInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ContactListAddOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ContactListGetAllInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ContactListGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialSchema_emelia.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/VariableSchema_EMELIA_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/emelia-api.service.d.ts +10 -0
- package/dist/src/emelia-api.service.d.ts.map +1 -0
- package/dist/src/emelia-api.service.js +136 -0
- package/dist/src/emelia-api.service.js.map +1 -0
- package/dist/src/emelia.credential.d.ts +5 -0
- package/dist/src/emelia.credential.d.ts.map +1 -0
- package/dist/src/emelia.credential.js +13 -0
- package/dist/src/emelia.credential.js.map +1 -0
- package/dist/src/emelia.types.d.ts +7 -0
- package/dist/src/emelia.types.d.ts.map +1 -0
- package/dist/src/emelia.types.js +8 -0
- package/dist/src/emelia.types.js.map +1 -0
- package/dist/src/emelia.variable.d.ts +5 -0
- package/dist/src/emelia.variable.d.ts.map +1 -0
- package/dist/src/emelia.variable.js +11 -0
- package/dist/src/emelia.variable.js.map +1 -0
- package/dist/src/functions/campaignAddContact.function.d.ts +33 -0
- package/dist/src/functions/campaignAddContact.function.d.ts.map +1 -0
- package/dist/src/functions/campaignAddContact.function.js +20 -0
- package/dist/src/functions/campaignAddContact.function.js.map +1 -0
- package/dist/src/functions/campaignCreate.function.d.ts +29 -0
- package/dist/src/functions/campaignCreate.function.d.ts.map +1 -0
- package/dist/src/functions/campaignCreate.function.js +19 -0
- package/dist/src/functions/campaignCreate.function.js.map +1 -0
- package/dist/src/functions/campaignDuplicate.function.d.ts +41 -0
- package/dist/src/functions/campaignDuplicate.function.d.ts.map +1 -0
- package/dist/src/functions/campaignDuplicate.function.js +22 -0
- package/dist/src/functions/campaignDuplicate.function.js.map +1 -0
- package/dist/src/functions/campaignGet.function.d.ts +29 -0
- package/dist/src/functions/campaignGet.function.d.ts.map +1 -0
- package/dist/src/functions/campaignGet.function.js +19 -0
- package/dist/src/functions/campaignGet.function.js.map +1 -0
- package/dist/src/functions/campaignGetAll.function.d.ts +33 -0
- package/dist/src/functions/campaignGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/campaignGetAll.function.js +20 -0
- package/dist/src/functions/campaignGetAll.function.js.map +1 -0
- package/dist/src/functions/campaignPause.function.d.ts +21 -0
- package/dist/src/functions/campaignPause.function.d.ts.map +1 -0
- package/dist/src/functions/campaignPause.function.js +17 -0
- package/dist/src/functions/campaignPause.function.js.map +1 -0
- package/dist/src/functions/campaignStart.function.d.ts +21 -0
- package/dist/src/functions/campaignStart.function.d.ts.map +1 -0
- package/dist/src/functions/campaignStart.function.js +17 -0
- package/dist/src/functions/campaignStart.function.js.map +1 -0
- package/dist/src/functions/contactListAdd.function.d.ts +33 -0
- package/dist/src/functions/contactListAdd.function.d.ts.map +1 -0
- package/dist/src/functions/contactListAdd.function.js +20 -0
- package/dist/src/functions/contactListAdd.function.js.map +1 -0
- package/dist/src/functions/contactListGetAll.function.d.ts +33 -0
- package/dist/src/functions/contactListGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/contactListGetAll.function.js +20 -0
- package/dist/src/functions/contactListGetAll.function.js.map +1 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +10 -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,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { LocalMetaService } from '@pikku/core/services/local-meta'
|
|
5
|
+
|
|
6
|
+
export class PikkuMetaService extends LocalMetaService {
|
|
7
|
+
constructor() {
|
|
8
|
+
super('/home/runner/work/addons/addons/packages/email/emelia/.pikku')
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import type { SingletonServices } from '../types/application-types.d.js';
|
|
5
|
+
import type { Services } from '../types/application-types.d.js';
|
|
6
|
+
export declare const requiredSingletonServices: {
|
|
7
|
+
readonly agentRunService: false;
|
|
8
|
+
readonly aiAgentRunner: false;
|
|
9
|
+
readonly aiRunState: false;
|
|
10
|
+
readonly aiStorage: false;
|
|
11
|
+
readonly audit: false;
|
|
12
|
+
readonly auditLog: false;
|
|
13
|
+
readonly config: true;
|
|
14
|
+
readonly content: false;
|
|
15
|
+
readonly credentialService: false;
|
|
16
|
+
readonly deploymentService: false;
|
|
17
|
+
readonly emailService: false;
|
|
18
|
+
readonly emelia: false;
|
|
19
|
+
readonly eventHub: false;
|
|
20
|
+
readonly jwt: false;
|
|
21
|
+
readonly logger: true;
|
|
22
|
+
readonly metaService: false;
|
|
23
|
+
readonly queueService: false;
|
|
24
|
+
readonly schedulerService: false;
|
|
25
|
+
readonly schema: true;
|
|
26
|
+
readonly secrets: true;
|
|
27
|
+
readonly sessionStore: false;
|
|
28
|
+
readonly variables: true;
|
|
29
|
+
readonly workflowRunService: false;
|
|
30
|
+
readonly workflowService: false;
|
|
31
|
+
};
|
|
32
|
+
export declare const requiredWireServices: {};
|
|
33
|
+
export type RequiredSingletonServices = Required<Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>;
|
|
34
|
+
export type RequiredWireServices = Partial<Services>;
|
|
35
|
+
//# sourceMappingURL=pikku-services.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-services.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;CAyB5B,CAAA;AAGV,eAAO,MAAM,oBAAoB,IACvB,CAAA;AAGV,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAA;AAEhO,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Singleton services map: true if required, false if available but unused
|
|
2
|
+
export const requiredSingletonServices = {
|
|
3
|
+
'agentRunService': false,
|
|
4
|
+
'aiAgentRunner': false,
|
|
5
|
+
'aiRunState': false,
|
|
6
|
+
'aiStorage': false,
|
|
7
|
+
'audit': false,
|
|
8
|
+
'auditLog': false,
|
|
9
|
+
'config': true,
|
|
10
|
+
'content': false,
|
|
11
|
+
'credentialService': false,
|
|
12
|
+
'deploymentService': false,
|
|
13
|
+
'emailService': false,
|
|
14
|
+
'emelia': false,
|
|
15
|
+
'eventHub': false,
|
|
16
|
+
'jwt': false,
|
|
17
|
+
'logger': true,
|
|
18
|
+
'metaService': false,
|
|
19
|
+
'queueService': false,
|
|
20
|
+
'schedulerService': false,
|
|
21
|
+
'schema': true,
|
|
22
|
+
'secrets': true,
|
|
23
|
+
'sessionStore': false,
|
|
24
|
+
'variables': true,
|
|
25
|
+
'workflowRunService': false,
|
|
26
|
+
'workflowService': false,
|
|
27
|
+
};
|
|
28
|
+
// Wire services map: true if required, false if available but unused
|
|
29
|
+
export const requiredWireServices = {};
|
|
30
|
+
//# sourceMappingURL=pikku-services.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,KAAK;IAC1B,cAAc,EAAE,KAAK;IACrB,QAAQ,EAAE,KAAK;IACf,UAAU,EAAE,KAAK;IACjB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,KAAK;IACzB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,KAAK;CAChB,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import type { SingletonServices } from '../types/application-types.d.js'
|
|
5
|
+
import type { Services } from '../types/application-types.d.js'
|
|
6
|
+
|
|
7
|
+
// Singleton services map: true if required, false if available but unused
|
|
8
|
+
export const requiredSingletonServices = {
|
|
9
|
+
'agentRunService': false,
|
|
10
|
+
'aiAgentRunner': false,
|
|
11
|
+
'aiRunState': false,
|
|
12
|
+
'aiStorage': false,
|
|
13
|
+
'audit': false,
|
|
14
|
+
'auditLog': false,
|
|
15
|
+
'config': true,
|
|
16
|
+
'content': false,
|
|
17
|
+
'credentialService': false,
|
|
18
|
+
'deploymentService': false,
|
|
19
|
+
'emailService': false,
|
|
20
|
+
'emelia': false,
|
|
21
|
+
'eventHub': false,
|
|
22
|
+
'jwt': false,
|
|
23
|
+
'logger': true,
|
|
24
|
+
'metaService': false,
|
|
25
|
+
'queueService': false,
|
|
26
|
+
'schedulerService': false,
|
|
27
|
+
'schema': true,
|
|
28
|
+
'secrets': true,
|
|
29
|
+
'sessionStore': false,
|
|
30
|
+
'variables': true,
|
|
31
|
+
'workflowRunService': false,
|
|
32
|
+
'workflowService': false,
|
|
33
|
+
} as const
|
|
34
|
+
|
|
35
|
+
// Wire services map: true if required, false if available but unused
|
|
36
|
+
export const requiredWireServices = {
|
|
37
|
+
} as const
|
|
38
|
+
|
|
39
|
+
// Type exports
|
|
40
|
+
export type RequiredSingletonServices = Required<Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>
|
|
41
|
+
|
|
42
|
+
export type RequiredWireServices = Partial<Services>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
6
|
+
*/
|
|
7
|
+
export * from './function/pikku-function-types.gen.js';
|
|
8
|
+
export * from './trigger/pikku-trigger-types.gen.js';
|
|
9
|
+
export * from './console/pikku-node-types.gen.js';
|
|
10
|
+
export * from './secrets/pikku-secret-types.gen.js';
|
|
11
|
+
export * from './addon/pikku-addon-types.gen.js';
|
|
12
|
+
//# sourceMappingURL=pikku-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-types.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,cAAc,wCAAwC,CAAA;AAGtD,cAAc,sCAAsC,CAAA;AAGpD,cAAc,mCAAmC,CAAA;AAGjD,cAAc,qCAAqC,CAAA;AAGnD,cAAc,kCAAkC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
6
|
+
*/
|
|
7
|
+
// Core function, middleware, and permission types
|
|
8
|
+
export * from './function/pikku-function-types.gen.js';
|
|
9
|
+
// Trigger wiring types
|
|
10
|
+
export * from './trigger/pikku-trigger-types.gen.js';
|
|
11
|
+
// Node wiring types
|
|
12
|
+
export * from './console/pikku-node-types.gen.js';
|
|
13
|
+
// Secret definition types
|
|
14
|
+
export * from './secrets/pikku-secret-types.gen.js';
|
|
15
|
+
// Addon types
|
|
16
|
+
export * from './addon/pikku-addon-types.gen.js';
|
|
17
|
+
//# sourceMappingURL=pikku-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-types.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,kDAAkD;AAClD,cAAc,wCAAwC,CAAA;AAEtD,uBAAuB;AACvB,cAAc,sCAAsC,CAAA;AAEpD,oBAAoB;AACpB,cAAc,mCAAmC,CAAA;AAEjD,0BAA0B;AAC1B,cAAc,qCAAqC,CAAA;AAEnD,cAAc;AACd,cAAc,kCAAkC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Core function, middleware, and permission types
|
|
9
|
+
export * from './function/pikku-function-types.gen.js'
|
|
10
|
+
|
|
11
|
+
// Trigger wiring types
|
|
12
|
+
export * from './trigger/pikku-trigger-types.gen.js'
|
|
13
|
+
|
|
14
|
+
// Node wiring types
|
|
15
|
+
export * from './console/pikku-node-types.gen.js'
|
|
16
|
+
|
|
17
|
+
// Secret definition types
|
|
18
|
+
export * from './secrets/pikku-secret-types.gen.js'
|
|
19
|
+
|
|
20
|
+
// Addon types
|
|
21
|
+
export * from './addon/pikku-addon-types.gen.js'
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { CoreQueueWorker } from '@pikku/core/queue';
|
|
8
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
9
|
+
/**
|
|
10
|
+
* Type definition for queue workers that process background jobs.
|
|
11
|
+
*
|
|
12
|
+
* @template In - Input type for the queue job
|
|
13
|
+
* @template Out - Output type for the queue job
|
|
14
|
+
*/
|
|
15
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>;
|
|
16
|
+
/**
|
|
17
|
+
* Registers a queue worker with the Pikku framework.
|
|
18
|
+
* Workers process background jobs from queues.
|
|
19
|
+
*
|
|
20
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
21
|
+
*/
|
|
22
|
+
export declare const wireQueueWorker: (queueWorker: QueueWiring<any, any>) => void;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=pikku-queue-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,eAAe,EAA0C,MAAM,mBAAmB,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAElF;;;;;GAKG;AACH,KAAK,WAAW,CAAC,EAAE,EAAE,GAAG,IAAI,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC,CAAA;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,aAAa,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,SAEjE,CAAA"}
|
|
@@ -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,174 @@
|
|
|
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 CampaignAddContactInput = {
|
|
13
|
+
campaignId: string;
|
|
14
|
+
email?: string | undefined;
|
|
15
|
+
firstName?: string | undefined;
|
|
16
|
+
lastName?: string | undefined;
|
|
17
|
+
}
|
|
18
|
+
export type CampaignAddContactOutput = {
|
|
19
|
+
contactId?: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export type CampaignCreateInput = {
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export type CampaignCreateOutput = {
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
status?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
export type CampaignDuplicateInput = {
|
|
30
|
+
campaignId: string;
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
copyContacts?: boolean | undefined;
|
|
33
|
+
copyProvider?: boolean | undefined;
|
|
34
|
+
copyMails?: boolean | undefined;
|
|
35
|
+
copySettings?: boolean | undefined;
|
|
36
|
+
}
|
|
37
|
+
export type CampaignDuplicateOutput = {
|
|
38
|
+
id?: string | undefined;
|
|
39
|
+
}
|
|
40
|
+
export type CampaignGetAllInput = {
|
|
41
|
+
limit?: number | undefined;
|
|
42
|
+
}
|
|
43
|
+
export type CampaignGetAllOutput = {
|
|
44
|
+
campaigns?: {
|
|
45
|
+
id?: string | undefined;
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
}[] | undefined;
|
|
48
|
+
}
|
|
49
|
+
export type CampaignGetInput = {
|
|
50
|
+
campaignId: string;
|
|
51
|
+
}
|
|
52
|
+
export type CampaignGetOutput = {
|
|
53
|
+
id?: string | undefined;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
status?: string | undefined;
|
|
56
|
+
}
|
|
57
|
+
export type CampaignPauseInput = {
|
|
58
|
+
campaignId: string;
|
|
59
|
+
}
|
|
60
|
+
export type CampaignPauseOutput = {
|
|
61
|
+
success?: boolean | undefined;
|
|
62
|
+
}
|
|
63
|
+
export type CampaignStartInput = {
|
|
64
|
+
campaignId: string;
|
|
65
|
+
}
|
|
66
|
+
export type CampaignStartOutput = {
|
|
67
|
+
success?: boolean | undefined;
|
|
68
|
+
}
|
|
69
|
+
export type ContactListAddInput = {
|
|
70
|
+
contactListId: string;
|
|
71
|
+
email?: string | undefined;
|
|
72
|
+
firstName?: string | undefined;
|
|
73
|
+
lastName?: string | undefined;
|
|
74
|
+
}
|
|
75
|
+
export type ContactListAddOutput = {
|
|
76
|
+
contactId?: string | undefined;
|
|
77
|
+
}
|
|
78
|
+
export type ContactListGetAllInput = {
|
|
79
|
+
limit?: number | undefined;
|
|
80
|
+
}
|
|
81
|
+
export type ContactListGetAllOutput = {
|
|
82
|
+
contactLists?: {
|
|
83
|
+
id?: string | undefined;
|
|
84
|
+
name?: string | undefined;
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
}
|
|
87
|
+
export type CredentialSchema_emelia = {
|
|
88
|
+
/** Emelia API key */
|
|
89
|
+
apiKey: string;
|
|
90
|
+
}
|
|
91
|
+
export type VariableSchema_EMELIA_BASE_URL = "https://api.emelia.io"
|
|
92
|
+
|
|
93
|
+
interface RPCHandler<I, O> {
|
|
94
|
+
input: I;
|
|
95
|
+
output: O;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type RPCMap = {
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
// No addon packages, use RPCMap directly
|
|
104
|
+
export type FlattenedRPCMap = RPCMap
|
|
105
|
+
|
|
106
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
107
|
+
type IsVoidishInput<T> = IsAny<T> extends true
|
|
108
|
+
? false
|
|
109
|
+
: [T] extends [void | null | undefined]
|
|
110
|
+
? true
|
|
111
|
+
: false
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
115
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
116
|
+
? [name: Name]
|
|
117
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
118
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
119
|
+
|
|
120
|
+
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
121
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
122
|
+
? [name: Name]
|
|
123
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
124
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
125
|
+
|
|
126
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
127
|
+
|
|
128
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
type FlattenedAgentMap = AgentMap
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
135
|
+
|
|
136
|
+
interface AIAgentInput {
|
|
137
|
+
message: string
|
|
138
|
+
threadId: string
|
|
139
|
+
resourceId: string
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
143
|
+
name: Name,
|
|
144
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
145
|
+
options?: { startNode?: string }
|
|
146
|
+
) => Promise<{ runId: string }>
|
|
147
|
+
|
|
148
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
149
|
+
name: Name,
|
|
150
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
151
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
152
|
+
|
|
153
|
+
export type TypedWorkflowStatus = (
|
|
154
|
+
workflowName: string,
|
|
155
|
+
runId: string
|
|
156
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
157
|
+
|
|
158
|
+
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
159
|
+
? (name: string, input: AIAgentInput) => Promise<any>
|
|
160
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
161
|
+
name: Name,
|
|
162
|
+
input: AIAgentInput
|
|
163
|
+
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
164
|
+
|
|
165
|
+
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
166
|
+
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
167
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
168
|
+
name: Name,
|
|
169
|
+
input: AIAgentInput,
|
|
170
|
+
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
171
|
+
) => Promise<void>
|
|
172
|
+
|
|
173
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
174
|
+
|
|
@@ -0,0 +1,183 @@
|
|
|
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 CampaignAddContactInput = {
|
|
13
|
+
campaignId: string;
|
|
14
|
+
email?: string | undefined;
|
|
15
|
+
firstName?: string | undefined;
|
|
16
|
+
lastName?: string | undefined;
|
|
17
|
+
}
|
|
18
|
+
export type CampaignAddContactOutput = {
|
|
19
|
+
contactId?: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export type CampaignCreateInput = {
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export type CampaignCreateOutput = {
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
status?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
export type CampaignDuplicateInput = {
|
|
30
|
+
campaignId: string;
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
copyContacts?: boolean | undefined;
|
|
33
|
+
copyProvider?: boolean | undefined;
|
|
34
|
+
copyMails?: boolean | undefined;
|
|
35
|
+
copySettings?: boolean | undefined;
|
|
36
|
+
}
|
|
37
|
+
export type CampaignDuplicateOutput = {
|
|
38
|
+
id?: string | undefined;
|
|
39
|
+
}
|
|
40
|
+
export type CampaignGetAllInput = {
|
|
41
|
+
limit?: number | undefined;
|
|
42
|
+
}
|
|
43
|
+
export type CampaignGetAllOutput = {
|
|
44
|
+
campaigns?: {
|
|
45
|
+
id?: string | undefined;
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
}[] | undefined;
|
|
48
|
+
}
|
|
49
|
+
export type CampaignGetInput = {
|
|
50
|
+
campaignId: string;
|
|
51
|
+
}
|
|
52
|
+
export type CampaignGetOutput = {
|
|
53
|
+
id?: string | undefined;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
status?: string | undefined;
|
|
56
|
+
}
|
|
57
|
+
export type CampaignPauseInput = {
|
|
58
|
+
campaignId: string;
|
|
59
|
+
}
|
|
60
|
+
export type CampaignPauseOutput = {
|
|
61
|
+
success?: boolean | undefined;
|
|
62
|
+
}
|
|
63
|
+
export type CampaignStartInput = {
|
|
64
|
+
campaignId: string;
|
|
65
|
+
}
|
|
66
|
+
export type CampaignStartOutput = {
|
|
67
|
+
success?: boolean | undefined;
|
|
68
|
+
}
|
|
69
|
+
export type ContactListAddInput = {
|
|
70
|
+
contactListId: string;
|
|
71
|
+
email?: string | undefined;
|
|
72
|
+
firstName?: string | undefined;
|
|
73
|
+
lastName?: string | undefined;
|
|
74
|
+
}
|
|
75
|
+
export type ContactListAddOutput = {
|
|
76
|
+
contactId?: string | undefined;
|
|
77
|
+
}
|
|
78
|
+
export type ContactListGetAllInput = {
|
|
79
|
+
limit?: number | undefined;
|
|
80
|
+
}
|
|
81
|
+
export type ContactListGetAllOutput = {
|
|
82
|
+
contactLists?: {
|
|
83
|
+
id?: string | undefined;
|
|
84
|
+
name?: string | undefined;
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
}
|
|
87
|
+
export type CredentialSchema_emelia = {
|
|
88
|
+
/** Emelia API key */
|
|
89
|
+
apiKey: string;
|
|
90
|
+
}
|
|
91
|
+
export type VariableSchema_EMELIA_BASE_URL = "https://api.emelia.io"
|
|
92
|
+
|
|
93
|
+
interface RPCHandler<I, O> {
|
|
94
|
+
input: I;
|
|
95
|
+
output: O;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type RPCMap = {
|
|
99
|
+
readonly 'campaignGetAll': RPCHandler<CampaignGetAllInput, CampaignGetAllOutput>,
|
|
100
|
+
readonly 'campaignCreate': RPCHandler<CampaignCreateInput, CampaignCreateOutput>,
|
|
101
|
+
readonly 'campaignGet': RPCHandler<CampaignGetInput, CampaignGetOutput>,
|
|
102
|
+
readonly 'campaignAddContact': RPCHandler<CampaignAddContactInput, CampaignAddContactOutput>,
|
|
103
|
+
readonly 'campaignPause': RPCHandler<CampaignPauseInput, CampaignPauseOutput>,
|
|
104
|
+
readonly 'campaignStart': RPCHandler<CampaignStartInput, CampaignStartOutput>,
|
|
105
|
+
readonly 'campaignDuplicate': RPCHandler<CampaignDuplicateInput, CampaignDuplicateOutput>,
|
|
106
|
+
readonly 'contactListGetAll': RPCHandler<ContactListGetAllInput, ContactListGetAllOutput>,
|
|
107
|
+
readonly 'contactListAdd': RPCHandler<ContactListAddInput, ContactListAddOutput>,
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
// No addon packages, use RPCMap directly
|
|
113
|
+
export type FlattenedRPCMap = RPCMap
|
|
114
|
+
|
|
115
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
116
|
+
type IsVoidishInput<T> = IsAny<T> extends true
|
|
117
|
+
? false
|
|
118
|
+
: [T] extends [void | null | undefined]
|
|
119
|
+
? true
|
|
120
|
+
: false
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
124
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
125
|
+
? [name: Name]
|
|
126
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
127
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
128
|
+
|
|
129
|
+
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
130
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
131
|
+
? [name: Name]
|
|
132
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
133
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
134
|
+
|
|
135
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
136
|
+
|
|
137
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
type FlattenedAgentMap = AgentMap
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
144
|
+
|
|
145
|
+
interface AIAgentInput {
|
|
146
|
+
message: string
|
|
147
|
+
threadId: string
|
|
148
|
+
resourceId: string
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
152
|
+
name: Name,
|
|
153
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
154
|
+
options?: { startNode?: string }
|
|
155
|
+
) => Promise<{ runId: string }>
|
|
156
|
+
|
|
157
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
158
|
+
name: Name,
|
|
159
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
160
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
161
|
+
|
|
162
|
+
export type TypedWorkflowStatus = (
|
|
163
|
+
workflowName: string,
|
|
164
|
+
runId: string
|
|
165
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
166
|
+
|
|
167
|
+
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
168
|
+
? (name: string, input: AIAgentInput) => Promise<any>
|
|
169
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
170
|
+
name: Name,
|
|
171
|
+
input: AIAgentInput
|
|
172
|
+
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
173
|
+
|
|
174
|
+
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
175
|
+
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
176
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
177
|
+
name: Name,
|
|
178
|
+
input: AIAgentInput,
|
|
179
|
+
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
180
|
+
) => Promise<void>
|
|
181
|
+
|
|
182
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
183
|
+
|
|
@@ -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-emelia', '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,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"campaignGetAll": "campaignGetAll",
|
|
3
|
+
"campaignCreate": "campaignCreate",
|
|
4
|
+
"campaignGet": "campaignGet",
|
|
5
|
+
"campaignAddContact": "campaignAddContact",
|
|
6
|
+
"campaignPause": "campaignPause",
|
|
7
|
+
"campaignStart": "campaignStart",
|
|
8
|
+
"campaignDuplicate": "campaignDuplicate",
|
|
9
|
+
"contactListGetAll": "contactListGetAll",
|
|
10
|
+
"contactListAdd": "contactListAdd"
|
|
11
|
+
}
|
|
@@ -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-emelia', 'rpc', 'meta', metaData as Record<string, string>)
|