@allma/core-types 1.0.1 → 1.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 +55 -0
- package/dist/admin/api-schemas.d.ts +220 -0
- package/dist/admin/api-schemas.d.ts.map +1 -1
- package/dist/admin/api-schemas.js +14 -0
- package/dist/admin/api-schemas.js.map +1 -1
- package/dist/admin/endpoints.d.ts +3 -0
- package/dist/admin/endpoints.d.ts.map +1 -1
- package/dist/admin/endpoints.js +4 -0
- package/dist/admin/endpoints.js.map +1 -1
- package/dist/admin/importExport.d.ts +694 -8
- package/dist/admin/importExport.d.ts.map +1 -1
- package/dist/common/core.d.ts +1 -0
- package/dist/common/core.d.ts.map +1 -1
- package/dist/common/core.js +1 -0
- package/dist/common/core.js.map +1 -1
- package/dist/common/enums.d.ts +3 -1
- package/dist/common/enums.d.ts.map +1 -1
- package/dist/common/enums.js +2 -0
- package/dist/common/enums.js.map +1 -1
- package/dist/common/shared.d.ts +2 -0
- package/dist/common/shared.d.ts.map +1 -1
- package/dist/common/shared.js +2 -0
- package/dist/common/shared.js.map +1 -1
- package/dist/flow/core.d.ts +180 -0
- package/dist/flow/core.d.ts.map +1 -1
- package/dist/logging/records.d.ts +62 -2
- package/dist/logging/records.d.ts.map +1 -1
- package/dist/mcp/connections.d.ts +133 -0
- package/dist/mcp/connections.d.ts.map +1 -0
- package/dist/mcp/connections.js +38 -0
- package/dist/mcp/connections.js.map +1 -0
- package/dist/steps/definitions.d.ts +177 -2
- package/dist/steps/definitions.d.ts.map +1 -1
- package/dist/steps/definitions.js +7 -0
- package/dist/steps/definitions.js.map +1 -1
- package/dist/steps/system/index.d.ts +1 -0
- package/dist/steps/system/index.d.ts.map +1 -1
- package/dist/steps/system/index.js +1 -0
- package/dist/steps/system/index.js.map +1 -1
- package/dist/steps/system/mcp-call.d.ts +22 -0
- package/dist/steps/system/mcp-call.d.ts.map +1 -0
- package/dist/steps/system/mcp-call.js +11 -0
- package/dist/steps/system/mcp-call.js.map +1 -0
- package/dist/steps/system/start-points.d.ts +19 -0
- package/dist/steps/system/start-points.d.ts.map +1 -1
- package/dist/steps/system/start-points.js +7 -0
- package/dist/steps/system/start-points.js.map +1 -1
- package/dist/steps/system-module-identifiers.d.ts +2 -0
- package/dist/steps/system-module-identifiers.d.ts.map +1 -1
- package/dist/steps/system-module-identifiers.js +2 -0
- package/dist/steps/system-module-identifiers.js.map +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# @allma/core-types
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@allma/core-types)
|
|
4
|
+
[](https://github.com/ALLMA-dev/allma-core/blob/main/LICENSE)
|
|
5
|
+
|
|
6
|
+
This package is the single source of truth for data contracts within the Allma ecosystem. It provides shared TypeScript types, interfaces, enums, constants, and Zod schemas used across all Allma packages and integration modules.
|
|
7
|
+
|
|
8
|
+
## What is Allma?
|
|
9
|
+
|
|
10
|
+
**Allma is a serverless, event-driven platform designed to build, execute, and manage complex, AI-powered automated workflows, known as `Flows`.** It acts as a "digital factory" for orchestrating sophisticated business processes, combining data integration, conditional logic, and advanced AI capabilities in a robust, scalable, and observable environment built on AWS.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @allma/core-types
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Core Usage
|
|
19
|
+
|
|
20
|
+
Use this package to ensure type safety and runtime validation when interacting with Allma's data structures, such as when building custom step modules or plugins.
|
|
21
|
+
|
|
22
|
+
**Example: Using a Flow Definition Type and a Zod Schema**
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { FlowDefinition, FlowDefinitionSchema, StepType } from '@allma/core-types';
|
|
26
|
+
import { z } from 'zod';
|
|
27
|
+
|
|
28
|
+
// Use interfaces for function signatures to ensure type safety
|
|
29
|
+
function analyzeFlow(flow: FlowDefinition): number {
|
|
30
|
+
console.log(`Analyzing flow: ${flow.name}`);
|
|
31
|
+
return flow.steps.length;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Use Zod schemas for runtime validation of raw input
|
|
35
|
+
function validateAndProcessFlow(rawInput: unknown): void {
|
|
36
|
+
const validationResult = FlowDefinitionSchema.safeParse(rawInput);
|
|
37
|
+
|
|
38
|
+
if (!validationResult.success) {
|
|
39
|
+
console.error('Invalid flow definition:', validationResult.error.flatten());
|
|
40
|
+
throw new Error('Validation failed');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// `validationResult.data` is now fully typed as `FlowDefinition`
|
|
44
|
+
const stepCount = analyzeFlow(validationResult.data);
|
|
45
|
+
console.log(`The flow has ${stepCount} steps.`);
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Contributing
|
|
50
|
+
|
|
51
|
+
This package is part of the `allma-core` monorepo. We welcome contributions! Please see our main [repository](https://github.com/ALLMA-dev/allma-core) and [contribution guide](https://docs.allma.dev/docs/community/contribution-guide) for more details.
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
This project is licensed under the Apache-2.0 License.
|
|
@@ -2063,6 +2063,24 @@ export declare const CreateStepDefinitionInputSchema: z.ZodIntersection<z.ZodInt
|
|
|
2063
2063
|
moduleIdentifier: z.ZodOptional<z.ZodString>;
|
|
2064
2064
|
customConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2065
2065
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2066
|
+
stepType: z.ZodLiteral<import("../index.js").StepType.MCP_CALL>;
|
|
2067
|
+
mcpConnectionId: z.ZodString;
|
|
2068
|
+
toolName: z.ZodString;
|
|
2069
|
+
inputMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2070
|
+
literals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2071
|
+
}, "strip", z.ZodTypeAny, {
|
|
2072
|
+
stepType: import("../index.js").StepType.MCP_CALL;
|
|
2073
|
+
mcpConnectionId: string;
|
|
2074
|
+
toolName: string;
|
|
2075
|
+
inputMappings?: Record<string, string> | undefined;
|
|
2076
|
+
literals?: Record<string, any> | undefined;
|
|
2077
|
+
}, {
|
|
2078
|
+
stepType: import("../index.js").StepType.MCP_CALL;
|
|
2079
|
+
mcpConnectionId: string;
|
|
2080
|
+
toolName: string;
|
|
2081
|
+
inputMappings?: Record<string, string> | undefined;
|
|
2082
|
+
literals?: Record<string, any> | undefined;
|
|
2083
|
+
}>, z.ZodObject<{
|
|
2066
2084
|
stepType: z.ZodLiteral<import("../index.js").StepType.SQS_SEND>;
|
|
2067
2085
|
moduleIdentifier: z.ZodLiteral<"system/sqs-send">;
|
|
2068
2086
|
queueUrl: z.ZodString;
|
|
@@ -2116,6 +2134,24 @@ export declare const CreateStepDefinitionInputSchema: z.ZodIntersection<z.ZodInt
|
|
|
2116
2134
|
emailAddress: z.ZodString;
|
|
2117
2135
|
triggerMessagePattern: z.ZodOptional<z.ZodString>;
|
|
2118
2136
|
keyword: z.ZodOptional<z.ZodString>;
|
|
2137
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2138
|
+
stepType: z.ZodLiteral<import("../index.js").StepType.SCHEDULE_START_POINT>;
|
|
2139
|
+
scheduleExpression: z.ZodString;
|
|
2140
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2141
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2142
|
+
payloadTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2143
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2144
|
+
stepType: z.ZodLiteral<import("../index.js").StepType.SCHEDULE_START_POINT>;
|
|
2145
|
+
scheduleExpression: z.ZodString;
|
|
2146
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2147
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2148
|
+
payloadTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2149
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2150
|
+
stepType: z.ZodLiteral<import("../index.js").StepType.SCHEDULE_START_POINT>;
|
|
2151
|
+
scheduleExpression: z.ZodString;
|
|
2152
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2153
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2154
|
+
payloadTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2119
2155
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2120
2156
|
stepType: z.ZodLiteral<import("../index.js").StepType.EMAIL>;
|
|
2121
2157
|
from: z.ZodString;
|
|
@@ -4136,6 +4172,24 @@ export declare const UpdateStepDefinitionInputSchema: z.ZodIntersection<z.ZodInt
|
|
|
4136
4172
|
moduleIdentifier: z.ZodOptional<z.ZodString>;
|
|
4137
4173
|
customConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4138
4174
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
4175
|
+
stepType: z.ZodLiteral<import("../index.js").StepType.MCP_CALL>;
|
|
4176
|
+
mcpConnectionId: z.ZodString;
|
|
4177
|
+
toolName: z.ZodString;
|
|
4178
|
+
inputMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4179
|
+
literals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4180
|
+
}, "strip", z.ZodTypeAny, {
|
|
4181
|
+
stepType: import("../index.js").StepType.MCP_CALL;
|
|
4182
|
+
mcpConnectionId: string;
|
|
4183
|
+
toolName: string;
|
|
4184
|
+
inputMappings?: Record<string, string> | undefined;
|
|
4185
|
+
literals?: Record<string, any> | undefined;
|
|
4186
|
+
}, {
|
|
4187
|
+
stepType: import("../index.js").StepType.MCP_CALL;
|
|
4188
|
+
mcpConnectionId: string;
|
|
4189
|
+
toolName: string;
|
|
4190
|
+
inputMappings?: Record<string, string> | undefined;
|
|
4191
|
+
literals?: Record<string, any> | undefined;
|
|
4192
|
+
}>, z.ZodObject<{
|
|
4139
4193
|
stepType: z.ZodLiteral<import("../index.js").StepType.SQS_SEND>;
|
|
4140
4194
|
moduleIdentifier: z.ZodLiteral<"system/sqs-send">;
|
|
4141
4195
|
queueUrl: z.ZodString;
|
|
@@ -4189,6 +4243,24 @@ export declare const UpdateStepDefinitionInputSchema: z.ZodIntersection<z.ZodInt
|
|
|
4189
4243
|
emailAddress: z.ZodString;
|
|
4190
4244
|
triggerMessagePattern: z.ZodOptional<z.ZodString>;
|
|
4191
4245
|
keyword: z.ZodOptional<z.ZodString>;
|
|
4246
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
4247
|
+
stepType: z.ZodLiteral<import("../index.js").StepType.SCHEDULE_START_POINT>;
|
|
4248
|
+
scheduleExpression: z.ZodString;
|
|
4249
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
4250
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4251
|
+
payloadTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4252
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4253
|
+
stepType: z.ZodLiteral<import("../index.js").StepType.SCHEDULE_START_POINT>;
|
|
4254
|
+
scheduleExpression: z.ZodString;
|
|
4255
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
4256
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4257
|
+
payloadTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4258
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4259
|
+
stepType: z.ZodLiteral<import("../index.js").StepType.SCHEDULE_START_POINT>;
|
|
4260
|
+
scheduleExpression: z.ZodString;
|
|
4261
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
4262
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4263
|
+
payloadTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4192
4264
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
4193
4265
|
stepType: z.ZodLiteral<import("../index.js").StepType.EMAIL>;
|
|
4194
4266
|
from: z.ZodString;
|
|
@@ -4327,4 +4399,152 @@ export declare const UpdateStepDefinitionInputSchema: z.ZodIntersection<z.ZodInt
|
|
|
4327
4399
|
description?: string | null | undefined;
|
|
4328
4400
|
}>>;
|
|
4329
4401
|
export type UpdateStepDefinitionInput = z.infer<typeof UpdateStepDefinitionInputSchema>;
|
|
4402
|
+
export declare const CreateMcpConnectionInputSchema: z.ZodObject<Omit<{
|
|
4403
|
+
id: z.ZodString;
|
|
4404
|
+
name: z.ZodString;
|
|
4405
|
+
serverUrl: z.ZodString;
|
|
4406
|
+
authentication: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4407
|
+
type: z.ZodLiteral<"NONE">;
|
|
4408
|
+
}, "strip", z.ZodTypeAny, {
|
|
4409
|
+
type: "NONE";
|
|
4410
|
+
}, {
|
|
4411
|
+
type: "NONE";
|
|
4412
|
+
}>, z.ZodObject<{
|
|
4413
|
+
type: z.ZodLiteral<"BEARER_TOKEN">;
|
|
4414
|
+
secretArn: z.ZodString;
|
|
4415
|
+
secretJsonKey: z.ZodString;
|
|
4416
|
+
}, "strip", z.ZodTypeAny, {
|
|
4417
|
+
type: "BEARER_TOKEN";
|
|
4418
|
+
secretArn: string;
|
|
4419
|
+
secretJsonKey: string;
|
|
4420
|
+
}, {
|
|
4421
|
+
type: "BEARER_TOKEN";
|
|
4422
|
+
secretArn: string;
|
|
4423
|
+
secretJsonKey: string;
|
|
4424
|
+
}>, z.ZodObject<{
|
|
4425
|
+
type: z.ZodLiteral<"API_KEY">;
|
|
4426
|
+
secretArn: z.ZodString;
|
|
4427
|
+
secretJsonKey: z.ZodString;
|
|
4428
|
+
}, "strip", z.ZodTypeAny, {
|
|
4429
|
+
type: "API_KEY";
|
|
4430
|
+
secretArn: string;
|
|
4431
|
+
secretJsonKey: string;
|
|
4432
|
+
}, {
|
|
4433
|
+
type: "API_KEY";
|
|
4434
|
+
secretArn: string;
|
|
4435
|
+
secretJsonKey: string;
|
|
4436
|
+
}>]>;
|
|
4437
|
+
createdAt: z.ZodString;
|
|
4438
|
+
updatedAt: z.ZodString;
|
|
4439
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
4440
|
+
name: string;
|
|
4441
|
+
serverUrl: string;
|
|
4442
|
+
authentication: {
|
|
4443
|
+
type: "NONE";
|
|
4444
|
+
} | {
|
|
4445
|
+
type: "BEARER_TOKEN";
|
|
4446
|
+
secretArn: string;
|
|
4447
|
+
secretJsonKey: string;
|
|
4448
|
+
} | {
|
|
4449
|
+
type: "API_KEY";
|
|
4450
|
+
secretArn: string;
|
|
4451
|
+
secretJsonKey: string;
|
|
4452
|
+
};
|
|
4453
|
+
}, {
|
|
4454
|
+
name: string;
|
|
4455
|
+
serverUrl: string;
|
|
4456
|
+
authentication: {
|
|
4457
|
+
type: "NONE";
|
|
4458
|
+
} | {
|
|
4459
|
+
type: "BEARER_TOKEN";
|
|
4460
|
+
secretArn: string;
|
|
4461
|
+
secretJsonKey: string;
|
|
4462
|
+
} | {
|
|
4463
|
+
type: "API_KEY";
|
|
4464
|
+
secretArn: string;
|
|
4465
|
+
secretJsonKey: string;
|
|
4466
|
+
};
|
|
4467
|
+
}>;
|
|
4468
|
+
export type CreateMcpConnectionInput = z.infer<typeof CreateMcpConnectionInputSchema>;
|
|
4469
|
+
export declare const UpdateMcpConnectionInputSchema: z.ZodObject<{
|
|
4470
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4471
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
4472
|
+
authentication: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4473
|
+
type: z.ZodLiteral<"NONE">;
|
|
4474
|
+
}, "strip", z.ZodTypeAny, {
|
|
4475
|
+
type: "NONE";
|
|
4476
|
+
}, {
|
|
4477
|
+
type: "NONE";
|
|
4478
|
+
}>, z.ZodObject<{
|
|
4479
|
+
type: z.ZodLiteral<"BEARER_TOKEN">;
|
|
4480
|
+
secretArn: z.ZodString;
|
|
4481
|
+
secretJsonKey: z.ZodString;
|
|
4482
|
+
}, "strip", z.ZodTypeAny, {
|
|
4483
|
+
type: "BEARER_TOKEN";
|
|
4484
|
+
secretArn: string;
|
|
4485
|
+
secretJsonKey: string;
|
|
4486
|
+
}, {
|
|
4487
|
+
type: "BEARER_TOKEN";
|
|
4488
|
+
secretArn: string;
|
|
4489
|
+
secretJsonKey: string;
|
|
4490
|
+
}>, z.ZodObject<{
|
|
4491
|
+
type: z.ZodLiteral<"API_KEY">;
|
|
4492
|
+
secretArn: z.ZodString;
|
|
4493
|
+
secretJsonKey: z.ZodString;
|
|
4494
|
+
}, "strip", z.ZodTypeAny, {
|
|
4495
|
+
type: "API_KEY";
|
|
4496
|
+
secretArn: string;
|
|
4497
|
+
secretJsonKey: string;
|
|
4498
|
+
}, {
|
|
4499
|
+
type: "API_KEY";
|
|
4500
|
+
secretArn: string;
|
|
4501
|
+
secretJsonKey: string;
|
|
4502
|
+
}>]>>;
|
|
4503
|
+
}, "strip", z.ZodTypeAny, {
|
|
4504
|
+
name?: string | undefined;
|
|
4505
|
+
serverUrl?: string | undefined;
|
|
4506
|
+
authentication?: {
|
|
4507
|
+
type: "NONE";
|
|
4508
|
+
} | {
|
|
4509
|
+
type: "BEARER_TOKEN";
|
|
4510
|
+
secretArn: string;
|
|
4511
|
+
secretJsonKey: string;
|
|
4512
|
+
} | {
|
|
4513
|
+
type: "API_KEY";
|
|
4514
|
+
secretArn: string;
|
|
4515
|
+
secretJsonKey: string;
|
|
4516
|
+
} | undefined;
|
|
4517
|
+
}, {
|
|
4518
|
+
name?: string | undefined;
|
|
4519
|
+
serverUrl?: string | undefined;
|
|
4520
|
+
authentication?: {
|
|
4521
|
+
type: "NONE";
|
|
4522
|
+
} | {
|
|
4523
|
+
type: "BEARER_TOKEN";
|
|
4524
|
+
secretArn: string;
|
|
4525
|
+
secretJsonKey: string;
|
|
4526
|
+
} | {
|
|
4527
|
+
type: "API_KEY";
|
|
4528
|
+
secretArn: string;
|
|
4529
|
+
secretJsonKey: string;
|
|
4530
|
+
} | undefined;
|
|
4531
|
+
}>;
|
|
4532
|
+
export type UpdateMcpConnectionInput = z.infer<typeof UpdateMcpConnectionInputSchema>;
|
|
4533
|
+
export declare const DiscoverToolResponseSchema: z.ZodArray<z.ZodObject<{
|
|
4534
|
+
name: z.ZodString;
|
|
4535
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4536
|
+
input_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4537
|
+
output_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4538
|
+
}, "strip", z.ZodTypeAny, {
|
|
4539
|
+
name: string;
|
|
4540
|
+
input_schema: Record<string, any>;
|
|
4541
|
+
output_schema: Record<string, any>;
|
|
4542
|
+
description?: string | undefined;
|
|
4543
|
+
}, {
|
|
4544
|
+
name: string;
|
|
4545
|
+
input_schema: Record<string, any>;
|
|
4546
|
+
output_schema: Record<string, any>;
|
|
4547
|
+
description?: string | undefined;
|
|
4548
|
+
}>, "many">;
|
|
4549
|
+
export type DiscoverToolResponse = z.infer<typeof DiscoverToolResponseSchema>;
|
|
4330
4550
|
//# sourceMappingURL=api-schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-schemas.d.ts","sourceRoot":"","sources":["../../src/admin/api-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"api-schemas.d.ts","sourceRoot":"","sources":["../../src/admin/api-schem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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAkC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAIxF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2C,CAAC;AACvF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;WAKpC,CAAC;AACJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { PromptTemplateSchema } from '../prompt/index.js';
|
|
3
3
|
import { BaseStepDefinitionSchema } from '../steps/definitions.js';
|
|
4
|
+
import { McpConnectionSchema } from '../mcp/connections.js';
|
|
4
5
|
// --- Flow Execution & Control ---
|
|
5
6
|
export const RedriveFlowApiInputSchema = z.object({
|
|
6
7
|
// No body needed, flowExecutionId is from path parameter
|
|
@@ -79,4 +80,17 @@ export const CreateStepDefinitionInputSchema = BaseStepDefinitionSchema.and(z.ob
|
|
|
79
80
|
* Schema for updating an existing Step Definition. For PUT, this is the same as create.
|
|
80
81
|
*/
|
|
81
82
|
export const UpdateStepDefinitionInputSchema = CreateStepDefinitionInputSchema;
|
|
83
|
+
// --- MCP Connection Management ---
|
|
84
|
+
export const CreateMcpConnectionInputSchema = McpConnectionSchema.omit({
|
|
85
|
+
id: true,
|
|
86
|
+
createdAt: true,
|
|
87
|
+
updatedAt: true,
|
|
88
|
+
});
|
|
89
|
+
export const UpdateMcpConnectionInputSchema = CreateMcpConnectionInputSchema.partial();
|
|
90
|
+
export const DiscoverToolResponseSchema = z.array(z.object({
|
|
91
|
+
name: z.string(),
|
|
92
|
+
description: z.string().optional(),
|
|
93
|
+
input_schema: z.record(z.any()),
|
|
94
|
+
output_schema: z.record(z.any()),
|
|
95
|
+
}));
|
|
82
96
|
//# sourceMappingURL=api-schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-schemas.js","sourceRoot":"","sources":["../../src/admin/api-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"api-schemas.js","sourceRoot":"","sources":["../../src/admin/api-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAW5D,mCAAmC;AAEnC,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;AAChD,yDAAyD;CAC1D,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,CAAC,C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,CAAC;AAGJ;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,+BAA+B,CAAC;AAG/E,oCAAoC;AAEpC,MAAM,CAAC,MAAM,8BAA8B,GAAG,mBAAmB,CAAC,IAAI,CAAC;IACrE,EAAE,EAAE,IAAI;IACR,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,8BAA8B,GAAG,8BAA8B,CAAC,OAAO,EAAE,CAAC;AAGvF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;IACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAC/B,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CACjC,CAAC,CAAC,CAAC"}
|
|
@@ -43,6 +43,9 @@ export declare const ALLMA_ADMIN_API_ROUTES: {
|
|
|
43
43
|
STEP_DEFINITION_DETAIL: (stepId: string) => string;
|
|
44
44
|
IMPORT: string;
|
|
45
45
|
EXPORT: string;
|
|
46
|
+
MCP_CONNECTIONS: string;
|
|
47
|
+
MCP_CONNECTION_DETAIL: (connectionId: string) => string;
|
|
48
|
+
MCP_CONNECTION_DISCOVER: (connectionId: string) => string;
|
|
46
49
|
};
|
|
47
50
|
export declare function getStageFromEnv(env?: string, fallback?: Stage): Stage;
|
|
48
51
|
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/admin/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,eAAO,MAAM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mDACG,MAAM;;qCAIpB,MAAM;;;;0CAQD,MAAM;4CACJ,MAAM;CAC/C,CAAC;AAEF,wBAAgB,eAAe,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAE,KAAkB,GAAG,KAAK,CAOjF"}
|
package/dist/admin/endpoints.js
CHANGED
|
@@ -50,6 +50,10 @@ export const ALLMA_ADMIN_API_ROUTES = {
|
|
|
50
50
|
// Import / Export
|
|
51
51
|
IMPORT: '/allma/import',
|
|
52
52
|
EXPORT: '/allma/export',
|
|
53
|
+
// MCP Connections
|
|
54
|
+
MCP_CONNECTIONS: '/allma/mcp-connections',
|
|
55
|
+
MCP_CONNECTION_DETAIL: (connectionId) => `/allma/mcp-connections/${connectionId}`,
|
|
56
|
+
MCP_CONNECTION_DISCOVER: (connectionId) => `/allma/mcp-connections/${connectionId}/discover`,
|
|
53
57
|
};
|
|
54
58
|
export function getStageFromEnv(env, fallback = Stage.PROD) {
|
|
55
59
|
switch ((env || '').toLowerCase()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/admin/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAE5C;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG;IACf,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,kBAAkB;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,SAAS;IACT,MAAM,EAAE,eAAe;IAEvB,YAAY;IACZ,eAAe,EAAE,UAAU,GAAG,CAAC,SAAS,QAAQ;IAEhD,mBAAmB;IACnB,gBAAgB,EAAE,UAAU,GAAG,CAAC,gBAAgB,EA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