syllable-sdk 1.0.15-rc.3 → 1.0.16-rc.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/README.md +38 -38
- package/bin/mcp-server.js +203 -88
- package/bin/mcp-server.js.map +13 -12
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/eventtaskevents.d.ts +4 -5
- package/models/components/eventtaskevents.d.ts.map +1 -1
- package/models/components/eventtaskevents.js +0 -5
- package/models/components/eventtaskevents.js.map +1 -1
- package/models/components/expressiontask.d.ts +1 -1
- package/models/components/expressiontaskevents.d.ts +5 -5
- package/models/components/expressiontaskevents.d.ts.map +1 -1
- package/models/components/expressiontaskevents.js +0 -4
- package/models/components/expressiontaskevents.js.map +1 -1
- package/models/components/getvalueaction.d.ts +135 -0
- package/models/components/getvalueaction.d.ts.map +1 -0
- package/models/components/getvalueaction.js +208 -0
- package/models/components/getvalueaction.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/stepeventactions.d.ts +13 -12
- package/models/components/stepeventactions.d.ts.map +1 -1
- package/models/components/stepeventactions.js +9 -8
- package/models/components/stepeventactions.js.map +1 -1
- package/openapi.json +169 -67
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/eventtaskevents.ts +1 -16
- package/src/models/components/expressiontask.ts +1 -1
- package/src/models/components/expressiontaskevents.ts +3 -16
- package/src/models/components/getvalueaction.ts +435 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/stepeventactions.ts +30 -21
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.2";
|
|
34
|
-
readonly sdkVersion: "1.0.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.0.
|
|
34
|
+
readonly sdkVersion: "1.0.16-rc.1";
|
|
35
|
+
readonly genVersion: "2.772.0";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.0.16-rc.1 2.772.0 0.0.2 syllable-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.2",
|
|
34
|
-
sdkVersion: "1.0.
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
34
|
+
sdkVersion: "1.0.16-rc.1",
|
|
35
|
+
genVersion: "2.772.0",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 1.0.16-rc.1 2.772.0 0.0.2 syllable-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
package/mcp-server/mcp-server.js
CHANGED
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "1.0.
|
|
25
|
+
currentVersion: "1.0.16-rc.1",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
package/mcp-server/server.js
CHANGED
|
@@ -173,7 +173,7 @@ const voiceGroupsVoiceGroupsCreateVoiceSample_js_1 = require("./tools/voiceGroup
|
|
|
173
173
|
function createMCPServer(deps) {
|
|
174
174
|
const server = new mcp_js_1.McpServer({
|
|
175
175
|
name: "SyllableSDK",
|
|
176
|
-
version: "1.0.
|
|
176
|
+
version: "1.0.16-rc.1",
|
|
177
177
|
});
|
|
178
178
|
const client = new core_js_1.SyllableSDKCore({
|
|
179
179
|
apiKeyHeader: deps.apiKeyHeader,
|
|
@@ -3,20 +3,19 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import { CallAction, CallAction$Outbound } from "./callaction.js";
|
|
5
5
|
import { IncrementAction, IncrementAction$Outbound } from "./incrementaction.js";
|
|
6
|
-
import { SaveAction, SaveAction$Outbound } from "./saveaction.js";
|
|
7
6
|
import { SayAction, SayAction$Outbound } from "./sayaction.js";
|
|
8
7
|
import { SetValueAction, SetValueAction$Outbound } from "./setvalueaction.js";
|
|
9
|
-
export type EventTaskEventsStart = CallAction | IncrementAction |
|
|
8
|
+
export type EventTaskEventsStart = CallAction | IncrementAction | SayAction | SetValueAction;
|
|
10
9
|
export type EventTaskEvents = {
|
|
11
10
|
/**
|
|
12
11
|
* Actions to execute on the first input from the user.
|
|
13
12
|
*/
|
|
14
|
-
start?: Array<CallAction | IncrementAction |
|
|
13
|
+
start?: Array<CallAction | IncrementAction | SayAction | SetValueAction> | null | undefined;
|
|
15
14
|
};
|
|
16
15
|
/** @internal */
|
|
17
16
|
export declare const EventTaskEventsStart$inboundSchema: z.ZodType<EventTaskEventsStart, z.ZodTypeDef, unknown>;
|
|
18
17
|
/** @internal */
|
|
19
|
-
export type EventTaskEventsStart$Outbound = CallAction$Outbound | IncrementAction$Outbound |
|
|
18
|
+
export type EventTaskEventsStart$Outbound = CallAction$Outbound | IncrementAction$Outbound | SayAction$Outbound | SetValueAction$Outbound;
|
|
20
19
|
/** @internal */
|
|
21
20
|
export declare const EventTaskEventsStart$outboundSchema: z.ZodType<EventTaskEventsStart$Outbound, z.ZodTypeDef, EventTaskEventsStart>;
|
|
22
21
|
export declare function eventTaskEventsStartToJSON(eventTaskEventsStart: EventTaskEventsStart): string;
|
|
@@ -25,7 +24,7 @@ export declare function eventTaskEventsStartFromJSON(jsonString: string): SafePa
|
|
|
25
24
|
export declare const EventTaskEvents$inboundSchema: z.ZodType<EventTaskEvents, z.ZodTypeDef, unknown>;
|
|
26
25
|
/** @internal */
|
|
27
26
|
export type EventTaskEvents$Outbound = {
|
|
28
|
-
start?: Array<CallAction$Outbound | IncrementAction$Outbound |
|
|
27
|
+
start?: Array<CallAction$Outbound | IncrementAction$Outbound | SayAction$Outbound | SetValueAction$Outbound> | null | undefined;
|
|
29
28
|
};
|
|
30
29
|
/** @internal */
|
|
31
30
|
export declare const EventTaskEvents$outboundSchema: z.ZodType<EventTaskEvents$Outbound, z.ZodTypeDef, EventTaskEvents>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventtaskevents.d.ts","sourceRoot":"","sources":["../../src/models/components/eventtaskevents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"eventtaskevents.d.ts","sourceRoot":"","sources":["../../src/models/components/eventtaskevents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAA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,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EACF,KAAK,CACH,mBAAmB,GACnB,wBAAwB,GACxB,kBAAkB,GAClB,uBAAuB,CAC1B,GACC,IAAI,GACJ,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAYf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AACD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -45,14 +45,12 @@ const z = __importStar(require("zod/v3"));
|
|
|
45
45
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
46
46
|
const callaction_js_1 = require("./callaction.js");
|
|
47
47
|
const incrementaction_js_1 = require("./incrementaction.js");
|
|
48
|
-
const saveaction_js_1 = require("./saveaction.js");
|
|
49
48
|
const sayaction_js_1 = require("./sayaction.js");
|
|
50
49
|
const setvalueaction_js_1 = require("./setvalueaction.js");
|
|
51
50
|
/** @internal */
|
|
52
51
|
exports.EventTaskEventsStart$inboundSchema = z.union([
|
|
53
52
|
callaction_js_1.CallAction$inboundSchema,
|
|
54
53
|
incrementaction_js_1.IncrementAction$inboundSchema,
|
|
55
|
-
saveaction_js_1.SaveAction$inboundSchema,
|
|
56
54
|
sayaction_js_1.SayAction$inboundSchema,
|
|
57
55
|
setvalueaction_js_1.SetValueAction$inboundSchema,
|
|
58
56
|
]);
|
|
@@ -60,7 +58,6 @@ exports.EventTaskEventsStart$inboundSchema = z.union([
|
|
|
60
58
|
exports.EventTaskEventsStart$outboundSchema = z.union([
|
|
61
59
|
callaction_js_1.CallAction$outboundSchema,
|
|
62
60
|
incrementaction_js_1.IncrementAction$outboundSchema,
|
|
63
|
-
saveaction_js_1.SaveAction$outboundSchema,
|
|
64
61
|
sayaction_js_1.SayAction$outboundSchema,
|
|
65
62
|
setvalueaction_js_1.SetValueAction$outboundSchema,
|
|
66
63
|
]);
|
|
@@ -75,7 +72,6 @@ exports.EventTaskEvents$inboundSchema = z.object({
|
|
|
75
72
|
start: z.nullable(z.array(z.union([
|
|
76
73
|
callaction_js_1.CallAction$inboundSchema,
|
|
77
74
|
incrementaction_js_1.IncrementAction$inboundSchema,
|
|
78
|
-
saveaction_js_1.SaveAction$inboundSchema,
|
|
79
75
|
sayaction_js_1.SayAction$inboundSchema,
|
|
80
76
|
setvalueaction_js_1.SetValueAction$inboundSchema,
|
|
81
77
|
]))).optional(),
|
|
@@ -85,7 +81,6 @@ exports.EventTaskEvents$outboundSchema = z.object({
|
|
|
85
81
|
start: z.nullable(z.array(z.union([
|
|
86
82
|
callaction_js_1.CallAction$outboundSchema,
|
|
87
83
|
incrementaction_js_1.IncrementAction$outboundSchema,
|
|
88
|
-
saveaction_js_1.SaveAction$outboundSchema,
|
|
89
84
|
sayaction_js_1.SayAction$outboundSchema,
|
|
90
85
|
setvalueaction_js_1.SetValueAction$outboundSchema,
|
|
91
86
|
]))).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventtaskevents.js","sourceRoot":"","sources":["../../src/models/components/eventtaskevents.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"eventtaskevents.js","sourceRoot":"","sources":["../../src/models/components/eventtaskevents.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EH,gEAMC;AACD,oEAQC;AAkDD,sDAIC;AACD,0DAQC;AAzJD,0CAA4B;AAC5B,qDAAiD;AAGjD,mDAKyB;AACzB,6DAK8B;AAC9B,iDAKwB;AACxB,2DAK6B;AAkB7B,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,K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AC,CAAC;AAC/E,CAAC;AACD,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -40,7 +40,7 @@ export type ExpressionTask = {
|
|
|
40
40
|
}) | string | null | undefined;
|
|
41
41
|
output?: any | null | undefined;
|
|
42
42
|
/**
|
|
43
|
-
* Actions to perform when events occur (
|
|
43
|
+
* Actions to perform when events occur (start, submit).
|
|
44
44
|
*/
|
|
45
45
|
on?: ExpressionTaskEvents | undefined;
|
|
46
46
|
};
|
|
@@ -6,16 +6,16 @@ import { IncrementAction, IncrementAction$Outbound } from "./incrementaction.js"
|
|
|
6
6
|
import { SaveAction, SaveAction$Outbound } from "./saveaction.js";
|
|
7
7
|
import { SayAction, SayAction$Outbound } from "./sayaction.js";
|
|
8
8
|
import { SetValueAction, SetValueAction$Outbound } from "./setvalueaction.js";
|
|
9
|
-
export type Start = CallAction | IncrementAction |
|
|
9
|
+
export type Start = CallAction | IncrementAction | SayAction | SetValueAction;
|
|
10
10
|
export type Submit = CallAction | IncrementAction | SaveAction | SayAction | SetValueAction;
|
|
11
11
|
/**
|
|
12
|
-
* Actions to perform when events occur (
|
|
12
|
+
* Actions to perform when events occur (start, submit).
|
|
13
13
|
*/
|
|
14
14
|
export type ExpressionTaskEvents = {
|
|
15
15
|
/**
|
|
16
16
|
* Actions to execute on the first input from the user.
|
|
17
17
|
*/
|
|
18
|
-
start?: Array<CallAction | IncrementAction |
|
|
18
|
+
start?: Array<CallAction | IncrementAction | SayAction | SetValueAction> | null | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Actions to execute when the tool/step is submitted by the LLM.
|
|
21
21
|
*/
|
|
@@ -24,7 +24,7 @@ export type ExpressionTaskEvents = {
|
|
|
24
24
|
/** @internal */
|
|
25
25
|
export declare const Start$inboundSchema: z.ZodType<Start, z.ZodTypeDef, unknown>;
|
|
26
26
|
/** @internal */
|
|
27
|
-
export type Start$Outbound = CallAction$Outbound | IncrementAction$Outbound |
|
|
27
|
+
export type Start$Outbound = CallAction$Outbound | IncrementAction$Outbound | SayAction$Outbound | SetValueAction$Outbound;
|
|
28
28
|
/** @internal */
|
|
29
29
|
export declare const Start$outboundSchema: z.ZodType<Start$Outbound, z.ZodTypeDef, Start>;
|
|
30
30
|
export declare function startToJSON(start: Start): string;
|
|
@@ -41,7 +41,7 @@ export declare function submitFromJSON(jsonString: string): SafeParseResult<Subm
|
|
|
41
41
|
export declare const ExpressionTaskEvents$inboundSchema: z.ZodType<ExpressionTaskEvents, z.ZodTypeDef, unknown>;
|
|
42
42
|
/** @internal */
|
|
43
43
|
export type ExpressionTaskEvents$Outbound = {
|
|
44
|
-
start?: Array<CallAction$Outbound | IncrementAction$Outbound |
|
|
44
|
+
start?: Array<CallAction$Outbound | IncrementAction$Outbound | SayAction$Outbound | SetValueAction$Outbound> | null | undefined;
|
|
45
45
|
submit?: Array<CallAction$Outbound | IncrementAction$Outbound | SaveAction$Outbound | SayAction$Outbound | SetValueAction$Outbound> | null | undefined;
|
|
46
46
|
};
|
|
47
47
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expressiontaskevents.d.ts","sourceRoot":"","sources":["../../src/models/components/expressiontaskevents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,SAAS,EAET,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"expressiontaskevents.d.ts","sourceRoot":"","sources":["../../src/models/components/expressiontaskevents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,SAAS,EAET,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG,eAAe,GAAG,SAAS,GAAG,cAAc,CAAC;AAE9E,MAAM,MAAM,MAAM,GACd,UAAU,GACV,eAAe,GACf,UAAU,GACV,SAAS,GACT,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,KAAK,CAAC,EACF,KAAK,CAAC,UAAU,GAAG,eAAe,GAAG,SAAS,GAAG,cAAc,CAAC,GAChE,IAAI,GACJ,SAAS,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EACH,KAAK,CACL,UAAU,GAAG,eAAe,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,CACvE,GACC,IA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AA6B,GAAG;IAC1C,KAAK,CAAC,EACF,KAAK,CACH,mBAAmB,GACnB,wBAAwB,GACxB,kBAAkB,GAClB,uBAAuB,CAC1B,GACC,IAAI,GACJ,SAAS,CAAC;IACd,MAAM,CAAC,EACH,KAAK,CACH,mBAAmB,GACnB,wBAAwB,GACxB,mBAAmB,GACnB,kBAAkB,GAClB,uBAAuB,CAC1B,GACC,IAAI,GACJ,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAuBpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AACD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -55,7 +55,6 @@ exports.Start$inboundSchema = z
|
|
|
55
55
|
.union([
|
|
56
56
|
callaction_js_1.CallAction$inboundSchema,
|
|
57
57
|
incrementaction_js_1.IncrementAction$inboundSchema,
|
|
58
|
-
saveaction_js_1.SaveAction$inboundSchema,
|
|
59
58
|
sayaction_js_1.SayAction$inboundSchema,
|
|
60
59
|
setvalueaction_js_1.SetValueAction$inboundSchema,
|
|
61
60
|
]);
|
|
@@ -63,7 +62,6 @@ exports.Start$inboundSchema = z
|
|
|
63
62
|
exports.Start$outboundSchema = z.union([
|
|
64
63
|
callaction_js_1.CallAction$outboundSchema,
|
|
65
64
|
incrementaction_js_1.IncrementAction$outboundSchema,
|
|
66
|
-
saveaction_js_1.SaveAction$outboundSchema,
|
|
67
65
|
sayaction_js_1.SayAction$outboundSchema,
|
|
68
66
|
setvalueaction_js_1.SetValueAction$outboundSchema,
|
|
69
67
|
]);
|
|
@@ -101,7 +99,6 @@ exports.ExpressionTaskEvents$inboundSchema = z.object({
|
|
|
101
99
|
start: z.nullable(z.array(z.union([
|
|
102
100
|
callaction_js_1.CallAction$inboundSchema,
|
|
103
101
|
incrementaction_js_1.IncrementAction$inboundSchema,
|
|
104
|
-
saveaction_js_1.SaveAction$inboundSchema,
|
|
105
102
|
sayaction_js_1.SayAction$inboundSchema,
|
|
106
103
|
setvalueaction_js_1.SetValueAction$inboundSchema,
|
|
107
104
|
]))).optional(),
|
|
@@ -118,7 +115,6 @@ exports.ExpressionTaskEvents$outboundSchema = z.object({
|
|
|
118
115
|
start: z.nullable(z.array(z.union([
|
|
119
116
|
callaction_js_1.CallAction$outboundSchema,
|
|
120
117
|
incrementaction_js_1.IncrementAction$outboundSchema,
|
|
121
|
-
saveaction_js_1.SaveAction$outboundSchema,
|
|
122
118
|
sayaction_js_1.SayAction$outboundSchema,
|
|
123
119
|
setvalueaction_js_1.SetValueAction$outboundSchema,
|
|
124
120
|
]))).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expressiontaskevents.js","sourceRoot":"","sources":["../../src/models/components/expressiontaskevents.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"expressiontaskevents.js","sourceRoot":"","sources":["../../src/models/components/expressiontaskevents.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FH,kCAEC;AACD,sCAQC;AAgCD,oCAEC;AACD,wCAQC;AAkFD,gEAMC;AACD,oEAQC;AApPD,0CAA4B;AAC5B,qDAAiD;AAGjD,mDAKyB;AACzB,6DAK8B;AAC9B,mDAKyB;AACzB,iDAKwB;AACxB,2DAK6B;AAiC7B,gBAAgB;AACH,QAAA,mBAAmB,GAA4C,CAAC;KAC1E,KAAK,CAAC;IACL,wCAAwB;IACxB,kDAA6B;IAC7B,sCAAuB;IACvB,gDAA4B;CAC7B,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,oBAA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
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { CaseExpression, CaseExpression$Outbound } from "./caseexpression.js";
|
|
5
|
+
import { CelExpression, CelExpression$Outbound } from "./celexpression.js";
|
|
6
|
+
import { JMESPathExpression, JMESPathExpression$Outbound } from "./jmespathexpression.js";
|
|
7
|
+
export type GetValueActionValueFrom1 = CelExpression | (JMESPathExpression & {
|
|
8
|
+
type: "jmespath";
|
|
9
|
+
}) | (JMESPathExpression & {
|
|
10
|
+
type: "jp";
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* Expression to compute initial value (mutually exclusive with value).
|
|
14
|
+
*/
|
|
15
|
+
export type GetValueActionValueFrom = CaseExpression | CelExpression | (JMESPathExpression & {
|
|
16
|
+
type: "jmespath";
|
|
17
|
+
}) | (JMESPathExpression & {
|
|
18
|
+
type: "jp";
|
|
19
|
+
}) | string;
|
|
20
|
+
export type GetValueActionIf1 = CelExpression | (JMESPathExpression & {
|
|
21
|
+
type: "jmespath";
|
|
22
|
+
}) | (JMESPathExpression & {
|
|
23
|
+
type: "jp";
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* An expression that must evaluate to true for the action to be applied.
|
|
27
|
+
*/
|
|
28
|
+
export type GetValueActionIf = CaseExpression | CelExpression | (JMESPathExpression & {
|
|
29
|
+
type: "jmespath";
|
|
30
|
+
}) | (JMESPathExpression & {
|
|
31
|
+
type: "jp";
|
|
32
|
+
}) | string;
|
|
33
|
+
export type GetValueAction = {
|
|
34
|
+
/**
|
|
35
|
+
* Initial value of the variable.
|
|
36
|
+
*/
|
|
37
|
+
value?: any | null | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Expression to compute initial value (mutually exclusive with value).
|
|
40
|
+
*/
|
|
41
|
+
valueFrom?: CaseExpression | CelExpression | (JMESPathExpression & {
|
|
42
|
+
type: "jmespath";
|
|
43
|
+
}) | (JMESPathExpression & {
|
|
44
|
+
type: "jp";
|
|
45
|
+
}) | string | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* An expression that must evaluate to true for the action to be applied.
|
|
48
|
+
*/
|
|
49
|
+
if?: CaseExpression | CelExpression | (JMESPathExpression & {
|
|
50
|
+
type: "jmespath";
|
|
51
|
+
}) | (JMESPathExpression & {
|
|
52
|
+
type: "jp";
|
|
53
|
+
}) | string | null | undefined;
|
|
54
|
+
action: "get";
|
|
55
|
+
/**
|
|
56
|
+
* Input field names to populate; None populates all step inputs.
|
|
57
|
+
*/
|
|
58
|
+
inputs?: Array<string> | null | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* If False (default), only populate empty inputs. If True, always overwrite.
|
|
61
|
+
*/
|
|
62
|
+
overwrite?: boolean | undefined;
|
|
63
|
+
};
|
|
64
|
+
/** @internal */
|
|
65
|
+
export declare const GetValueActionValueFrom1$inboundSchema: z.ZodType<GetValueActionValueFrom1, z.ZodTypeDef, unknown>;
|
|
66
|
+
/** @internal */
|
|
67
|
+
export type GetValueActionValueFrom1$Outbound = CelExpression$Outbound | (JMESPathExpression$Outbound & {
|
|
68
|
+
type: "jmespath";
|
|
69
|
+
}) | (JMESPathExpression$Outbound & {
|
|
70
|
+
type: "jp";
|
|
71
|
+
});
|
|
72
|
+
/** @internal */
|
|
73
|
+
export declare const GetValueActionValueFrom1$outboundSchema: z.ZodType<GetValueActionValueFrom1$Outbound, z.ZodTypeDef, GetValueActionValueFrom1>;
|
|
74
|
+
export declare function getValueActionValueFrom1ToJSON(getValueActionValueFrom1: GetValueActionValueFrom1): string;
|
|
75
|
+
export declare function getValueActionValueFrom1FromJSON(jsonString: string): SafeParseResult<GetValueActionValueFrom1, SDKValidationError>;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export declare const GetValueActionValueFrom$inboundSchema: z.ZodType<GetValueActionValueFrom, z.ZodTypeDef, unknown>;
|
|
78
|
+
/** @internal */
|
|
79
|
+
export type GetValueActionValueFrom$Outbound = CaseExpression$Outbound | CelExpression$Outbound | (JMESPathExpression$Outbound & {
|
|
80
|
+
type: "jmespath";
|
|
81
|
+
}) | (JMESPathExpression$Outbound & {
|
|
82
|
+
type: "jp";
|
|
83
|
+
}) | string;
|
|
84
|
+
/** @internal */
|
|
85
|
+
export declare const GetValueActionValueFrom$outboundSchema: z.ZodType<GetValueActionValueFrom$Outbound, z.ZodTypeDef, GetValueActionValueFrom>;
|
|
86
|
+
export declare function getValueActionValueFromToJSON(getValueActionValueFrom: GetValueActionValueFrom): string;
|
|
87
|
+
export declare function getValueActionValueFromFromJSON(jsonString: string): SafeParseResult<GetValueActionValueFrom, SDKValidationError>;
|
|
88
|
+
/** @internal */
|
|
89
|
+
export declare const GetValueActionIf1$inboundSchema: z.ZodType<GetValueActionIf1, z.ZodTypeDef, unknown>;
|
|
90
|
+
/** @internal */
|
|
91
|
+
export type GetValueActionIf1$Outbound = CelExpression$Outbound | (JMESPathExpression$Outbound & {
|
|
92
|
+
type: "jmespath";
|
|
93
|
+
}) | (JMESPathExpression$Outbound & {
|
|
94
|
+
type: "jp";
|
|
95
|
+
});
|
|
96
|
+
/** @internal */
|
|
97
|
+
export declare const GetValueActionIf1$outboundSchema: z.ZodType<GetValueActionIf1$Outbound, z.ZodTypeDef, GetValueActionIf1>;
|
|
98
|
+
export declare function getValueActionIf1ToJSON(getValueActionIf1: GetValueActionIf1): string;
|
|
99
|
+
export declare function getValueActionIf1FromJSON(jsonString: string): SafeParseResult<GetValueActionIf1, SDKValidationError>;
|
|
100
|
+
/** @internal */
|
|
101
|
+
export declare const GetValueActionIf$inboundSchema: z.ZodType<GetValueActionIf, z.ZodTypeDef, unknown>;
|
|
102
|
+
/** @internal */
|
|
103
|
+
export type GetValueActionIf$Outbound = CaseExpression$Outbound | CelExpression$Outbound | (JMESPathExpression$Outbound & {
|
|
104
|
+
type: "jmespath";
|
|
105
|
+
}) | (JMESPathExpression$Outbound & {
|
|
106
|
+
type: "jp";
|
|
107
|
+
}) | string;
|
|
108
|
+
/** @internal */
|
|
109
|
+
export declare const GetValueActionIf$outboundSchema: z.ZodType<GetValueActionIf$Outbound, z.ZodTypeDef, GetValueActionIf>;
|
|
110
|
+
export declare function getValueActionIfToJSON(getValueActionIf: GetValueActionIf): string;
|
|
111
|
+
export declare function getValueActionIfFromJSON(jsonString: string): SafeParseResult<GetValueActionIf, SDKValidationError>;
|
|
112
|
+
/** @internal */
|
|
113
|
+
export declare const GetValueAction$inboundSchema: z.ZodType<GetValueAction, z.ZodTypeDef, unknown>;
|
|
114
|
+
/** @internal */
|
|
115
|
+
export type GetValueAction$Outbound = {
|
|
116
|
+
value?: any | null | undefined;
|
|
117
|
+
value_from?: CaseExpression$Outbound | CelExpression$Outbound | (JMESPathExpression$Outbound & {
|
|
118
|
+
type: "jmespath";
|
|
119
|
+
}) | (JMESPathExpression$Outbound & {
|
|
120
|
+
type: "jp";
|
|
121
|
+
}) | string | null | undefined;
|
|
122
|
+
if?: CaseExpression$Outbound | CelExpression$Outbound | (JMESPathExpression$Outbound & {
|
|
123
|
+
type: "jmespath";
|
|
124
|
+
}) | (JMESPathExpression$Outbound & {
|
|
125
|
+
type: "jp";
|
|
126
|
+
}) | string | null | undefined;
|
|
127
|
+
action: "get";
|
|
128
|
+
inputs?: Array<string> | null | undefined;
|
|
129
|
+
overwrite: boolean;
|
|
130
|
+
};
|
|
131
|
+
/** @internal */
|
|
132
|
+
export declare const GetValueAction$outboundSchema: z.ZodType<GetValueAction$Outbound, z.ZodTypeDef, GetValueAction>;
|
|
133
|
+
export declare function getValueActionToJSON(getValueAction: GetValueAction): string;
|
|
134
|
+
export declare function getValueActionFromJSON(jsonString: string): SafeParseResult<GetValueAction, SDKValidationError>;
|
|
135
|
+
//# sourceMappingURL=getvalueaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getvalueaction.d.ts","sourceRoot":"","sources":["../../src/models/components/getvalueaction.ts"],"names":[],"mappings":"AAIA,OAAO,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IACd,EAAE,CAAC,EACC,uBAAuB,GACvB,sBAAsB,GACtB,CAAC,2BAA2B,GAAG;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,GACpD,CAAC,2BAA2B,GAAG;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC,GAC9C,MAAM,GACN,IAAI,GACJ,SAAS,CAAC;IACd,MAAM,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAwCd,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AACD,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.GetValueAction$outboundSchema = exports.GetValueAction$inboundSchema = exports.GetValueActionIf$outboundSchema = exports.GetValueActionIf$inboundSchema = exports.GetValueActionIf1$outboundSchema = exports.GetValueActionIf1$inboundSchema = exports.GetValueActionValueFrom$outboundSchema = exports.GetValueActionValueFrom$inboundSchema = exports.GetValueActionValueFrom1$outboundSchema = exports.GetValueActionValueFrom1$inboundSchema = void 0;
|
|
40
|
+
exports.getValueActionValueFrom1ToJSON = getValueActionValueFrom1ToJSON;
|
|
41
|
+
exports.getValueActionValueFrom1FromJSON = getValueActionValueFrom1FromJSON;
|
|
42
|
+
exports.getValueActionValueFromToJSON = getValueActionValueFromToJSON;
|
|
43
|
+
exports.getValueActionValueFromFromJSON = getValueActionValueFromFromJSON;
|
|
44
|
+
exports.getValueActionIf1ToJSON = getValueActionIf1ToJSON;
|
|
45
|
+
exports.getValueActionIf1FromJSON = getValueActionIf1FromJSON;
|
|
46
|
+
exports.getValueActionIfToJSON = getValueActionIfToJSON;
|
|
47
|
+
exports.getValueActionIfFromJSON = getValueActionIfFromJSON;
|
|
48
|
+
exports.getValueActionToJSON = getValueActionToJSON;
|
|
49
|
+
exports.getValueActionFromJSON = getValueActionFromJSON;
|
|
50
|
+
const z = __importStar(require("zod/v3"));
|
|
51
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
52
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
53
|
+
const caseexpression_js_1 = require("./caseexpression.js");
|
|
54
|
+
const celexpression_js_1 = require("./celexpression.js");
|
|
55
|
+
const jmespathexpression_js_1 = require("./jmespathexpression.js");
|
|
56
|
+
/** @internal */
|
|
57
|
+
exports.GetValueActionValueFrom1$inboundSchema = z.union([
|
|
58
|
+
celexpression_js_1.CelExpression$inboundSchema,
|
|
59
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
60
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
61
|
+
]);
|
|
62
|
+
/** @internal */
|
|
63
|
+
exports.GetValueActionValueFrom1$outboundSchema = z.union([
|
|
64
|
+
celexpression_js_1.CelExpression$outboundSchema,
|
|
65
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
66
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
67
|
+
]);
|
|
68
|
+
function getValueActionValueFrom1ToJSON(getValueActionValueFrom1) {
|
|
69
|
+
return JSON.stringify(exports.GetValueActionValueFrom1$outboundSchema.parse(getValueActionValueFrom1));
|
|
70
|
+
}
|
|
71
|
+
function getValueActionValueFrom1FromJSON(jsonString) {
|
|
72
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetValueActionValueFrom1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetValueActionValueFrom1' from JSON`);
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
exports.GetValueActionValueFrom$inboundSchema = z.union([
|
|
76
|
+
caseexpression_js_1.CaseExpression$inboundSchema,
|
|
77
|
+
z.union([
|
|
78
|
+
celexpression_js_1.CelExpression$inboundSchema,
|
|
79
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
80
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
81
|
+
]),
|
|
82
|
+
z.string(),
|
|
83
|
+
]);
|
|
84
|
+
/** @internal */
|
|
85
|
+
exports.GetValueActionValueFrom$outboundSchema = z.union([
|
|
86
|
+
caseexpression_js_1.CaseExpression$outboundSchema,
|
|
87
|
+
z.union([
|
|
88
|
+
celexpression_js_1.CelExpression$outboundSchema,
|
|
89
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
90
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
91
|
+
]),
|
|
92
|
+
z.string(),
|
|
93
|
+
]);
|
|
94
|
+
function getValueActionValueFromToJSON(getValueActionValueFrom) {
|
|
95
|
+
return JSON.stringify(exports.GetValueActionValueFrom$outboundSchema.parse(getValueActionValueFrom));
|
|
96
|
+
}
|
|
97
|
+
function getValueActionValueFromFromJSON(jsonString) {
|
|
98
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetValueActionValueFrom$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetValueActionValueFrom' from JSON`);
|
|
99
|
+
}
|
|
100
|
+
/** @internal */
|
|
101
|
+
exports.GetValueActionIf1$inboundSchema = z.union([
|
|
102
|
+
celexpression_js_1.CelExpression$inboundSchema,
|
|
103
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
104
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
105
|
+
]);
|
|
106
|
+
/** @internal */
|
|
107
|
+
exports.GetValueActionIf1$outboundSchema = z.union([
|
|
108
|
+
celexpression_js_1.CelExpression$outboundSchema,
|
|
109
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
110
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
111
|
+
]);
|
|
112
|
+
function getValueActionIf1ToJSON(getValueActionIf1) {
|
|
113
|
+
return JSON.stringify(exports.GetValueActionIf1$outboundSchema.parse(getValueActionIf1));
|
|
114
|
+
}
|
|
115
|
+
function getValueActionIf1FromJSON(jsonString) {
|
|
116
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetValueActionIf1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetValueActionIf1' from JSON`);
|
|
117
|
+
}
|
|
118
|
+
/** @internal */
|
|
119
|
+
exports.GetValueActionIf$inboundSchema = z.union([
|
|
120
|
+
caseexpression_js_1.CaseExpression$inboundSchema,
|
|
121
|
+
z.union([
|
|
122
|
+
celexpression_js_1.CelExpression$inboundSchema,
|
|
123
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
124
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
125
|
+
]),
|
|
126
|
+
z.string(),
|
|
127
|
+
]);
|
|
128
|
+
/** @internal */
|
|
129
|
+
exports.GetValueActionIf$outboundSchema = z.union([
|
|
130
|
+
caseexpression_js_1.CaseExpression$outboundSchema,
|
|
131
|
+
z.union([
|
|
132
|
+
celexpression_js_1.CelExpression$outboundSchema,
|
|
133
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
134
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
135
|
+
]),
|
|
136
|
+
z.string(),
|
|
137
|
+
]);
|
|
138
|
+
function getValueActionIfToJSON(getValueActionIf) {
|
|
139
|
+
return JSON.stringify(exports.GetValueActionIf$outboundSchema.parse(getValueActionIf));
|
|
140
|
+
}
|
|
141
|
+
function getValueActionIfFromJSON(jsonString) {
|
|
142
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetValueActionIf$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetValueActionIf' from JSON`);
|
|
143
|
+
}
|
|
144
|
+
/** @internal */
|
|
145
|
+
exports.GetValueAction$inboundSchema = z.object({
|
|
146
|
+
value: z.nullable(z.any()).optional(),
|
|
147
|
+
value_from: z.nullable(z.union([
|
|
148
|
+
caseexpression_js_1.CaseExpression$inboundSchema,
|
|
149
|
+
z.union([
|
|
150
|
+
celexpression_js_1.CelExpression$inboundSchema,
|
|
151
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
152
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
153
|
+
]),
|
|
154
|
+
z.string(),
|
|
155
|
+
])).optional(),
|
|
156
|
+
if: z.nullable(z.union([
|
|
157
|
+
caseexpression_js_1.CaseExpression$inboundSchema,
|
|
158
|
+
z.union([
|
|
159
|
+
celexpression_js_1.CelExpression$inboundSchema,
|
|
160
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
161
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
162
|
+
]),
|
|
163
|
+
z.string(),
|
|
164
|
+
])).optional(),
|
|
165
|
+
action: z.literal("get"),
|
|
166
|
+
inputs: z.nullable(z.array(z.string())).optional(),
|
|
167
|
+
overwrite: z.boolean().default(false),
|
|
168
|
+
}).transform((v) => {
|
|
169
|
+
return (0, primitives_js_1.remap)(v, {
|
|
170
|
+
"value_from": "valueFrom",
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
/** @internal */
|
|
174
|
+
exports.GetValueAction$outboundSchema = z.object({
|
|
175
|
+
value: z.nullable(z.any()).optional(),
|
|
176
|
+
valueFrom: z.nullable(z.union([
|
|
177
|
+
caseexpression_js_1.CaseExpression$outboundSchema,
|
|
178
|
+
z.union([
|
|
179
|
+
celexpression_js_1.CelExpression$outboundSchema,
|
|
180
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
181
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
182
|
+
]),
|
|
183
|
+
z.string(),
|
|
184
|
+
])).optional(),
|
|
185
|
+
if: z.nullable(z.union([
|
|
186
|
+
caseexpression_js_1.CaseExpression$outboundSchema,
|
|
187
|
+
z.union([
|
|
188
|
+
celexpression_js_1.CelExpression$outboundSchema,
|
|
189
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") })),
|
|
190
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
191
|
+
]),
|
|
192
|
+
z.string(),
|
|
193
|
+
])).optional(),
|
|
194
|
+
action: z.literal("get"),
|
|
195
|
+
inputs: z.nullable(z.array(z.string())).optional(),
|
|
196
|
+
overwrite: z.boolean().default(false),
|
|
197
|
+
}).transform((v) => {
|
|
198
|
+
return (0, primitives_js_1.remap)(v, {
|
|
199
|
+
valueFrom: "value_from",
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
function getValueActionToJSON(getValueAction) {
|
|
203
|
+
return JSON.stringify(exports.GetValueAction$outboundSchema.parse(getValueAction));
|
|
204
|
+
}
|
|
205
|
+
function getValueActionFromJSON(jsonString) {
|
|
206
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetValueAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetValueAction' from JSON`);
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=getvalueaction.js.map
|