@flowcore/sdk 1.59.0 → 1.60.1
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/CHANGELOG.md +24 -0
- package/esm/commands/index.d.ts +5 -0
- package/esm/commands/index.d.ts.map +1 -1
- package/esm/commands/index.js +6 -0
- package/esm/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.d.ts +32 -0
- package/esm/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.d.ts.map +1 -0
- package/esm/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.js +50 -0
- package/esm/commands/legacy-scenario/legacy-scenario-adapter.restart.d.ts +43 -0
- package/esm/commands/legacy-scenario/legacy-scenario-adapter.restart.d.ts.map +1 -0
- package/esm/commands/legacy-scenario/legacy-scenario-adapter.restart.js +50 -0
- package/esm/commands/legacy-scenario/legacy-scenario.delete.d.ts +35 -0
- package/esm/commands/legacy-scenario/legacy-scenario.delete.d.ts.map +1 -0
- package/esm/commands/legacy-scenario/legacy-scenario.delete.js +45 -0
- package/esm/commands/legacy-scenario/legacy-scenario.fetch.d.ts +23 -0
- package/esm/commands/legacy-scenario/legacy-scenario.fetch.d.ts.map +1 -0
- package/esm/commands/legacy-scenario/legacy-scenario.fetch.js +57 -0
- package/esm/commands/legacy-scenario/legacy-scenario.list.d.ts +32 -0
- package/esm/commands/legacy-scenario/legacy-scenario.list.d.ts.map +1 -0
- package/esm/commands/legacy-scenario/legacy-scenario.list.js +59 -0
- package/esm/contracts/index.d.ts +2 -0
- package/esm/contracts/index.d.ts.map +1 -1
- package/esm/contracts/index.js +1 -0
- package/esm/contracts/legacy-scenario.d.ts +108 -0
- package/esm/contracts/legacy-scenario.d.ts.map +1 -0
- package/esm/contracts/legacy-scenario.js +111 -0
- package/package.json +1 -1
- package/script/commands/index.d.ts +5 -0
- package/script/commands/index.d.ts.map +1 -1
- package/script/commands/index.js +6 -0
- package/script/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.d.ts +32 -0
- package/script/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.d.ts.map +1 -0
- package/script/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.js +54 -0
- package/script/commands/legacy-scenario/legacy-scenario-adapter.restart.d.ts +43 -0
- package/script/commands/legacy-scenario/legacy-scenario-adapter.restart.d.ts.map +1 -0
- package/script/commands/legacy-scenario/legacy-scenario-adapter.restart.js +54 -0
- package/script/commands/legacy-scenario/legacy-scenario.delete.d.ts +35 -0
- package/script/commands/legacy-scenario/legacy-scenario.delete.d.ts.map +1 -0
- package/script/commands/legacy-scenario/legacy-scenario.delete.js +49 -0
- package/script/commands/legacy-scenario/legacy-scenario.fetch.d.ts +23 -0
- package/script/commands/legacy-scenario/legacy-scenario.fetch.d.ts.map +1 -0
- package/script/commands/legacy-scenario/legacy-scenario.fetch.js +61 -0
- package/script/commands/legacy-scenario/legacy-scenario.list.d.ts +32 -0
- package/script/commands/legacy-scenario/legacy-scenario.list.d.ts.map +1 -0
- package/script/commands/legacy-scenario/legacy-scenario.list.js +63 -0
- package/script/contracts/index.d.ts +2 -0
- package/script/contracts/index.d.ts.map +1 -1
- package/script/contracts/index.js +5 -0
- package/script/contracts/legacy-scenario.d.ts +108 -0
- package/script/contracts/legacy-scenario.d.ts.map +1 -0
- package/script/contracts/legacy-scenario.js +114 -0
|
@@ -14,5 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LegacyScenarioNodeType = exports.LegacyScenarioDeploymentState = exports.LegacyScenarioAdapterKubernetesStatus = void 0;
|
|
17
18
|
__exportStar(require("./ai-agent-coordinator-stream.js"), exports);
|
|
18
19
|
__exportStar(require("./ai-agent-coordinator.js"), exports);
|
|
20
|
+
var legacy_scenario_js_1 = require("./legacy-scenario.js");
|
|
21
|
+
Object.defineProperty(exports, "LegacyScenarioAdapterKubernetesStatus", { enumerable: true, get: function () { return legacy_scenario_js_1.LegacyScenarioAdapterKubernetesStatus; } });
|
|
22
|
+
Object.defineProperty(exports, "LegacyScenarioDeploymentState", { enumerable: true, get: function () { return legacy_scenario_js_1.LegacyScenarioDeploymentState; } });
|
|
23
|
+
Object.defineProperty(exports, "LegacyScenarioNodeType", { enumerable: true, get: function () { return legacy_scenario_js_1.LegacyScenarioNodeType; } });
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { type Static, type TLiteral, type TObject, type TOptional, type TString, type TUnion, Type } from "@sinclair/typebox";
|
|
2
|
+
/**
|
|
3
|
+
* Deployment states for Legacy Scenarios
|
|
4
|
+
*/
|
|
5
|
+
export declare const LegacyScenarioDeploymentState: {
|
|
6
|
+
readonly NOT_DEPLOYED: "NOT_DEPLOYED";
|
|
7
|
+
readonly DEPLOYED: "DEPLOYED";
|
|
8
|
+
readonly PARTIALLY_DEPLOYED: "PARTIALLY_DEPLOYED";
|
|
9
|
+
readonly DELETING: "DELETING";
|
|
10
|
+
};
|
|
11
|
+
type LegacyScenarioDeploymentStateTypeBox = TUnion<[
|
|
12
|
+
TLiteral<typeof LegacyScenarioDeploymentState.NOT_DEPLOYED>,
|
|
13
|
+
TLiteral<typeof LegacyScenarioDeploymentState.DEPLOYED>,
|
|
14
|
+
TLiteral<typeof LegacyScenarioDeploymentState.PARTIALLY_DEPLOYED>,
|
|
15
|
+
TLiteral<typeof LegacyScenarioDeploymentState.DELETING>
|
|
16
|
+
]>;
|
|
17
|
+
export type LegacyScenarioDeploymentState = Static<LegacyScenarioDeploymentStateTypeBox>;
|
|
18
|
+
/**
|
|
19
|
+
* Kubernetes statuses for Legacy Scenario adapters
|
|
20
|
+
*/
|
|
21
|
+
export declare const LegacyScenarioAdapterKubernetesStatus: {
|
|
22
|
+
readonly CREATED: "CREATED";
|
|
23
|
+
readonly UPDATED: "UPDATED";
|
|
24
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
25
|
+
readonly READY: "READY";
|
|
26
|
+
readonly DELETED: "DELETED";
|
|
27
|
+
};
|
|
28
|
+
export type LegacyScenarioAdapterKubernetesStatusTypeBox = TUnion<[
|
|
29
|
+
TLiteral<typeof LegacyScenarioAdapterKubernetesStatus.CREATED>,
|
|
30
|
+
TLiteral<typeof LegacyScenarioAdapterKubernetesStatus.UPDATED>,
|
|
31
|
+
TLiteral<typeof LegacyScenarioAdapterKubernetesStatus.INITIALIZING>,
|
|
32
|
+
TLiteral<typeof LegacyScenarioAdapterKubernetesStatus.READY>,
|
|
33
|
+
TLiteral<typeof LegacyScenarioAdapterKubernetesStatus.DELETED>
|
|
34
|
+
]>;
|
|
35
|
+
export type LegacyScenarioAdapterKubernetesStatus = Static<LegacyScenarioAdapterKubernetesStatusTypeBox>;
|
|
36
|
+
/**
|
|
37
|
+
* Node types in Legacy Scenarios
|
|
38
|
+
*/
|
|
39
|
+
export declare const LegacyScenarioNodeType: {
|
|
40
|
+
readonly Adapter: "Adapter";
|
|
41
|
+
readonly DataCore: "DataCore";
|
|
42
|
+
};
|
|
43
|
+
export type LegacyScenarioNodeType = (typeof LegacyScenarioNodeType)[keyof typeof LegacyScenarioNodeType];
|
|
44
|
+
/**
|
|
45
|
+
* The schema for a Legacy Scenario node
|
|
46
|
+
*/
|
|
47
|
+
export declare const LegacyScenarioNodeSchema: TObject<{
|
|
48
|
+
id: TString;
|
|
49
|
+
type: TString;
|
|
50
|
+
name: TString;
|
|
51
|
+
description: TOptional<TString>;
|
|
52
|
+
data: TOptional<TString>;
|
|
53
|
+
parents: ReturnType<typeof Type.Array<TString>>;
|
|
54
|
+
children: ReturnType<typeof Type.Array<TString>>;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* The type for a Legacy Scenario node
|
|
58
|
+
*/
|
|
59
|
+
export type LegacyScenarioNode = Static<typeof LegacyScenarioNodeSchema>;
|
|
60
|
+
/**
|
|
61
|
+
* The schema for a Legacy Scenario (list view)
|
|
62
|
+
*/
|
|
63
|
+
export declare const LegacyScenarioListItemSchema: TObject<{
|
|
64
|
+
id: TString;
|
|
65
|
+
name: TString;
|
|
66
|
+
description: TOptional<TString>;
|
|
67
|
+
flowcoreUserId: TString;
|
|
68
|
+
deploymentState: LegacyScenarioDeploymentStateTypeBox;
|
|
69
|
+
createdAt: TString;
|
|
70
|
+
updatedAt: TString;
|
|
71
|
+
lastDeployed: TOptional<TString>;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* The type for a Legacy Scenario list item
|
|
75
|
+
*/
|
|
76
|
+
export type LegacyScenarioListItem = Static<typeof LegacyScenarioListItemSchema>;
|
|
77
|
+
/**
|
|
78
|
+
* The schema for a Legacy Scenario (full view with nodes)
|
|
79
|
+
*/
|
|
80
|
+
export declare const LegacyScenarioSchema: TObject<{
|
|
81
|
+
id: TString;
|
|
82
|
+
name: TString;
|
|
83
|
+
description: TOptional<TString>;
|
|
84
|
+
flowcoreUserId: TString;
|
|
85
|
+
organizationId: TString;
|
|
86
|
+
deploymentState: TString;
|
|
87
|
+
createdAt: TString;
|
|
88
|
+
updatedAt: TString;
|
|
89
|
+
nodes: ReturnType<typeof Type.Array<typeof LegacyScenarioNodeSchema>>;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* The type for a Legacy Scenario
|
|
93
|
+
*/
|
|
94
|
+
export type LegacyScenario = Static<typeof LegacyScenarioSchema>;
|
|
95
|
+
/**
|
|
96
|
+
* The schema for adapter state
|
|
97
|
+
*/
|
|
98
|
+
export declare const LegacyScenarioAdapterStateSchema: TObject<{
|
|
99
|
+
kubernetes: TObject<{
|
|
100
|
+
status: LegacyScenarioAdapterKubernetesStatusTypeBox;
|
|
101
|
+
}>;
|
|
102
|
+
}>;
|
|
103
|
+
/**
|
|
104
|
+
* The type for adapter state
|
|
105
|
+
*/
|
|
106
|
+
export type LegacyScenarioAdapterState = Static<typeof LegacyScenarioAdapterStateSchema>;
|
|
107
|
+
export {};
|
|
108
|
+
//# sourceMappingURL=legacy-scenario.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy-scenario.d.ts","sourceRoot":"","sources":["../../src/contracts/legacy-scenario.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,IAAI,EACL,MAAM,mBAAmB,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;CAMhC,CAAA;AAEV,KAAK,oCAAoC,GAAG,MAAM,CAChD;IACE,QAAQ,CAAC,OAAO,6BAA6B,CAAC,YAAY,CAAC;IAC3D,QAAQ,CAAC,OAAO,6BAA6B,CAAC,QAAQ,CAAC;IACvD,QAAQ,CAAC,OAAO,6BAA6B,CAAC,kBAAkB,CAAC;IACjE,QAAQ,CAAC,OAAO,6BAA6B,CAAC,QAAQ,CAAC;CACxD,CACF,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,oCAAoC,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;;;;CAOxC,CAAA;AAEV,MAAM,MAAM,4CAA4C,GAAG,MAAM,CAC/D;IACE,QAAQ,CAAC,OAAO,qCAAqC,CAAC,OAAO,CAAC;IAC9D,QAAQ,CAAC,OAAO,qCAAqC,CAAC,OAAO,CAAC;IAC9D,QAAQ,CAAC,OAAO,qCAAqC,CAAC,YAAY,CAAC;IACnE,QAAQ,CAAC,OAAO,qCAAqC,CAAC,KAAK,CAAC;IAC5D,QAAQ,CAAC,OAAO,qCAAqC,CAAC,OAAO,CAAC;CAC/D,CACF,CAAA;AAED,MAAM,MAAM,qCAAqC,GAAG,MAAM,CAAC,4CAA4C,CAAC,CAAA;AAExG;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;CAGzB,CAAA;AAEV,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAA;AAEzG;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC;IAC7C,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IAC/B,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IACxB,OAAO,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA;IAC/C,QAAQ,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA;CACjD,CAeC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAExE;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,OAAO,CAAC;IACjD,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IAC/B,cAAc,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,oCAAoC,CAAA;IACrD,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;CACjC,CAsBC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC;IACzC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IAC/B,cAAc,EAAE,OAAO,CAAA;IACvB,cAAc,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,OAAO,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAA;CACtE,CAmBC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,OAAO,CAAC;IACrD,UAAU,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,4CAA4C,CAAA;KACrD,CAAC,CAAA;CACH,CAUC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,OAAO,gCAAgC,CAAC,CAAA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LegacyScenarioAdapterStateSchema = exports.LegacyScenarioSchema = exports.LegacyScenarioListItemSchema = exports.LegacyScenarioNodeSchema = exports.LegacyScenarioNodeType = exports.LegacyScenarioAdapterKubernetesStatus = exports.LegacyScenarioDeploymentState = void 0;
|
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
/**
|
|
6
|
+
* Deployment states for Legacy Scenarios
|
|
7
|
+
*/
|
|
8
|
+
exports.LegacyScenarioDeploymentState = {
|
|
9
|
+
// when updating this object remember to update the type too
|
|
10
|
+
NOT_DEPLOYED: "NOT_DEPLOYED",
|
|
11
|
+
DEPLOYED: "DEPLOYED",
|
|
12
|
+
PARTIALLY_DEPLOYED: "PARTIALLY_DEPLOYED",
|
|
13
|
+
DELETING: "DELETING",
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Kubernetes statuses for Legacy Scenario adapters
|
|
17
|
+
*/
|
|
18
|
+
exports.LegacyScenarioAdapterKubernetesStatus = {
|
|
19
|
+
// when updating this object remember to update the type too
|
|
20
|
+
CREATED: "CREATED",
|
|
21
|
+
UPDATED: "UPDATED",
|
|
22
|
+
INITIALIZING: "INITIALIZING",
|
|
23
|
+
READY: "READY",
|
|
24
|
+
DELETED: "DELETED",
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Node types in Legacy Scenarios
|
|
28
|
+
*/
|
|
29
|
+
exports.LegacyScenarioNodeType = {
|
|
30
|
+
Adapter: "Adapter",
|
|
31
|
+
DataCore: "DataCore",
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The schema for a Legacy Scenario node
|
|
35
|
+
*/
|
|
36
|
+
exports.LegacyScenarioNodeSchema = typebox_1.Type.Object({
|
|
37
|
+
/** Unique identifier for the node */
|
|
38
|
+
id: typebox_1.Type.String(),
|
|
39
|
+
/** Type of the node (Adapter or DataCore) */
|
|
40
|
+
type: typebox_1.Type.String(),
|
|
41
|
+
/** Name of the node */
|
|
42
|
+
name: typebox_1.Type.String(),
|
|
43
|
+
/** Description of the node */
|
|
44
|
+
description: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
45
|
+
/** Node configuration data as JSON string */
|
|
46
|
+
data: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
47
|
+
/** Parent node IDs */
|
|
48
|
+
parents: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
49
|
+
/** Child node IDs */
|
|
50
|
+
children: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* The schema for a Legacy Scenario (list view)
|
|
54
|
+
*/
|
|
55
|
+
exports.LegacyScenarioListItemSchema = typebox_1.Type.Object({
|
|
56
|
+
/** Unique identifier for the scenario */
|
|
57
|
+
id: typebox_1.Type.String(),
|
|
58
|
+
/** Name of the scenario */
|
|
59
|
+
name: typebox_1.Type.String(),
|
|
60
|
+
/** Description of the scenario */
|
|
61
|
+
description: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
62
|
+
/** ID of the user who created the scenario */
|
|
63
|
+
flowcoreUserId: typebox_1.Type.String(),
|
|
64
|
+
/** Current deployment state */
|
|
65
|
+
deploymentState: typebox_1.Type.Union([
|
|
66
|
+
typebox_1.Type.Literal(exports.LegacyScenarioDeploymentState.NOT_DEPLOYED),
|
|
67
|
+
typebox_1.Type.Literal(exports.LegacyScenarioDeploymentState.DEPLOYED),
|
|
68
|
+
typebox_1.Type.Literal(exports.LegacyScenarioDeploymentState.PARTIALLY_DEPLOYED),
|
|
69
|
+
typebox_1.Type.Literal(exports.LegacyScenarioDeploymentState.DELETING),
|
|
70
|
+
]),
|
|
71
|
+
/** Creation timestamp */
|
|
72
|
+
createdAt: typebox_1.Type.String(),
|
|
73
|
+
/** Last update timestamp */
|
|
74
|
+
updatedAt: typebox_1.Type.String(),
|
|
75
|
+
/** Last deployment timestamp */
|
|
76
|
+
lastDeployed: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
77
|
+
});
|
|
78
|
+
/**
|
|
79
|
+
* The schema for a Legacy Scenario (full view with nodes)
|
|
80
|
+
*/
|
|
81
|
+
exports.LegacyScenarioSchema = typebox_1.Type.Object({
|
|
82
|
+
/** Unique identifier for the scenario */
|
|
83
|
+
id: typebox_1.Type.String(),
|
|
84
|
+
/** Name of the scenario */
|
|
85
|
+
name: typebox_1.Type.String(),
|
|
86
|
+
/** Description of the scenario */
|
|
87
|
+
description: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
88
|
+
/** ID of the user who created the scenario */
|
|
89
|
+
flowcoreUserId: typebox_1.Type.String(),
|
|
90
|
+
/** ID of the organization that owns this scenario */
|
|
91
|
+
organizationId: typebox_1.Type.String(),
|
|
92
|
+
/** Current deployment state */
|
|
93
|
+
deploymentState: typebox_1.Type.String(),
|
|
94
|
+
/** Creation timestamp */
|
|
95
|
+
createdAt: typebox_1.Type.String(),
|
|
96
|
+
/** Last update timestamp */
|
|
97
|
+
updatedAt: typebox_1.Type.String(),
|
|
98
|
+
/** Nodes in the scenario */
|
|
99
|
+
nodes: typebox_1.Type.Array(exports.LegacyScenarioNodeSchema),
|
|
100
|
+
});
|
|
101
|
+
/**
|
|
102
|
+
* The schema for adapter state
|
|
103
|
+
*/
|
|
104
|
+
exports.LegacyScenarioAdapterStateSchema = typebox_1.Type.Object({
|
|
105
|
+
kubernetes: typebox_1.Type.Object({
|
|
106
|
+
status: typebox_1.Type.Union([
|
|
107
|
+
typebox_1.Type.Literal(exports.LegacyScenarioAdapterKubernetesStatus.CREATED),
|
|
108
|
+
typebox_1.Type.Literal(exports.LegacyScenarioAdapterKubernetesStatus.UPDATED),
|
|
109
|
+
typebox_1.Type.Literal(exports.LegacyScenarioAdapterKubernetesStatus.INITIALIZING),
|
|
110
|
+
typebox_1.Type.Literal(exports.LegacyScenarioAdapterKubernetesStatus.READY),
|
|
111
|
+
typebox_1.Type.Literal(exports.LegacyScenarioAdapterKubernetesStatus.DELETED),
|
|
112
|
+
]),
|
|
113
|
+
}),
|
|
114
|
+
});
|