@prismatic-io/spectral 10.5.6 → 10.5.8
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/dist/serverTypes/index.d.ts +3 -1
- package/dist/testing.js +1 -1
- package/dist/types/ActionPerformFunction.d.ts +3 -1
- package/dist/types/FlowSchemas.d.ts +12 -0
- package/dist/types/FlowSchemas.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InstanceAttributes, CustomerAttributes, DataSourceType, DataSourceResultType, UserAttributes, TriggerEventFunctionReturn, IntegrationAttributes, FlowAttributes, ConfigVarResultCollection, ComponentManifest, FlowInvoker, ExecutionFrame, DebugContext } from "../types";
|
|
1
|
+
import { InstanceAttributes, CustomerAttributes, DataSourceType, DataSourceResultType, UserAttributes, TriggerEventFunctionReturn, IntegrationAttributes, FlowAttributes, ConfigVarResultCollection, ComponentManifest, FlowInvoker, ExecutionFrame, DebugContext, FlowSchemas } from "../types";
|
|
2
2
|
interface DisplayDefinition {
|
|
3
3
|
label: string;
|
|
4
4
|
description: string;
|
|
@@ -8,6 +8,7 @@ export { CustomerAttributes } from "../types";
|
|
|
8
8
|
export { UserAttributes } from "../types";
|
|
9
9
|
export { IntegrationAttributes } from "../types";
|
|
10
10
|
export { FlowAttributes } from "../types";
|
|
11
|
+
export { FlowSchemas } from "../types";
|
|
11
12
|
export interface Component {
|
|
12
13
|
key: string;
|
|
13
14
|
public?: boolean;
|
|
@@ -66,6 +67,7 @@ export type ActionContext<TConfigVars extends ConfigVarResultCollection = Config
|
|
|
66
67
|
flow: FlowAttributes;
|
|
67
68
|
startedAt: string;
|
|
68
69
|
executionFrame: ExecutionFrame;
|
|
70
|
+
flowSchemas: FlowSchemas;
|
|
69
71
|
globalDebug?: boolean;
|
|
70
72
|
runnerAllocatedMemoryMb?: number;
|
|
71
73
|
components: {
|
package/dist/testing.js
CHANGED
|
@@ -134,7 +134,7 @@ const createActionContext = (context) => {
|
|
|
134
134
|
memoryUsage: [],
|
|
135
135
|
allowedMemory: 1024,
|
|
136
136
|
},
|
|
137
|
-
} }, context);
|
|
137
|
+
}, flowSchemas: {} }, context);
|
|
138
138
|
};
|
|
139
139
|
const createDataSourceContext = (context) => {
|
|
140
140
|
return Object.assign({ logger: (0, exports.loggerMock)(), configVars: {}, customer: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig, AxiosResponse } from "axios";
|
|
2
|
-
import { Inputs, ConfigVarResultCollection, ActionPerformReturn, ActionInputParameters, ActionLogger, InstanceAttributes, CustomerAttributes, UserAttributes, IntegrationAttributes, FlowAttributes, ComponentManifest } from ".";
|
|
2
|
+
import { Inputs, ConfigVarResultCollection, ActionPerformReturn, ActionInputParameters, ActionLogger, InstanceAttributes, CustomerAttributes, UserAttributes, IntegrationAttributes, FlowAttributes, ComponentManifest, FlowSchemas } from ".";
|
|
3
3
|
interface StandardLineage {
|
|
4
4
|
componentActionKey: string;
|
|
5
5
|
executionId: string;
|
|
@@ -117,5 +117,7 @@ export type ActionContext<TConfigVars extends ConfigVarResultCollection = Config
|
|
|
117
117
|
executionFrame: ExecutionFrame;
|
|
118
118
|
/** Contains methods, flags, and data to support debug modes. */
|
|
119
119
|
debug: DebugContext;
|
|
120
|
+
/** JSON schemas to enable using flows for AI function calls. */
|
|
121
|
+
flowSchemas: FlowSchemas;
|
|
120
122
|
};
|
|
121
123
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface FlowSchema {
|
|
2
|
+
title: string;
|
|
3
|
+
$comment?: string;
|
|
4
|
+
type: string;
|
|
5
|
+
properties: Record<string, Record<string, unknown>>;
|
|
6
|
+
}
|
|
7
|
+
export interface FlowSchemas {
|
|
8
|
+
[key: string]: {
|
|
9
|
+
invoke: FlowSchema;
|
|
10
|
+
[key: string]: FlowSchema;
|
|
11
|
+
};
|
|
12
|
+
}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -64,4 +64,5 @@ __exportStar(require("./IntegrationDefinition"), exports);
|
|
|
64
64
|
__exportStar(require("./ComponentManifest"), exports);
|
|
65
65
|
__exportStar(require("./ScopedConfigVars"), exports);
|
|
66
66
|
__exportStar(require("./PollingTriggerDefinition"), exports);
|
|
67
|
+
__exportStar(require("./FlowSchemas"), exports);
|
|
67
68
|
exports.serverTypes = __importStar(require("../serverTypes"));
|