syllable-sdk 1.0.13-rc.4 → 1.0.13-rc.5
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/bin/mcp-server.js +1993 -55
- package/bin/mcp-server.js.map +33 -10
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/bodyinsightsfolderuploadfile.d.ts +8 -8
- package/models/components/bodyinsightsfolderuploadfile.d.ts.map +1 -1
- package/models/components/bodyinsightsfolderuploadfile.js +11 -12
- package/models/components/bodyinsightsfolderuploadfile.js.map +1 -1
- package/models/components/callaction.d.ts +113 -0
- package/models/components/callaction.d.ts.map +1 -0
- package/models/components/callaction.js +174 -0
- package/models/components/callaction.js.map +1 -0
- package/models/components/caseexpression.d.ts +18 -0
- package/models/components/caseexpression.d.ts.map +1 -0
- package/models/components/caseexpression.js +59 -0
- package/models/components/caseexpression.js.map +1 -0
- package/models/components/celexpression.d.ts +28 -0
- package/models/components/celexpression.d.ts.map +1 -0
- package/models/components/celexpression.js +60 -0
- package/models/components/celexpression.js.map +1 -0
- package/models/components/conditionaltext.d.ts +85 -0
- package/models/components/conditionaltext.d.ts.map +1 -0
- package/models/components/conditionaltext.js +147 -0
- package/models/components/conditionaltext.js.map +1 -0
- package/models/components/conditionalvalue.d.ts +147 -0
- package/models/components/conditionalvalue.d.ts.map +1 -0
- package/models/components/conditionalvalue.js +248 -0
- package/models/components/conditionalvalue.js.map +1 -0
- package/models/components/context.d.ts +122 -8
- package/models/components/context.d.ts.map +1 -1
- package/models/components/context.js +199 -6
- package/models/components/context.js.map +1 -1
- package/models/components/contexttaskmetadata.d.ts +22 -0
- package/models/components/contexttaskmetadata.d.ts.map +1 -0
- package/models/components/contexttaskmetadata.js +69 -0
- package/models/components/contexttaskmetadata.js.map +1 -0
- package/models/components/contexttoolinfo.d.ts +25 -0
- package/models/components/contexttoolinfo.d.ts.map +1 -0
- package/models/components/contexttoolinfo.js +60 -0
- package/models/components/contexttoolinfo.js.map +1 -0
- package/models/components/eventtask.d.ts +42 -0
- package/models/components/eventtask.d.ts.map +1 -0
- package/models/components/eventtask.js +76 -0
- package/models/components/eventtask.js.map +1 -0
- package/models/components/eventtaskevents.d.ts +74 -0
- package/models/components/eventtaskevents.d.ts.map +1 -0
- package/models/components/eventtaskevents.js +139 -0
- package/models/components/eventtaskevents.js.map +1 -0
- package/models/components/expressiontask.d.ts +109 -0
- package/models/components/expressiontask.d.ts.map +1 -0
- package/models/components/expressiontask.js +170 -0
- package/models/components/expressiontask.js.map +1 -0
- package/models/components/expressiontaskevents.d.ts +131 -0
- package/models/components/expressiontaskevents.d.ts.map +1 -0
- package/models/components/expressiontaskevents.js +219 -0
- package/models/components/expressiontaskevents.js.map +1 -0
- package/models/components/incrementaction.d.ts +92 -0
- package/models/components/incrementaction.d.ts.map +1 -0
- package/models/components/incrementaction.js +151 -0
- package/models/components/incrementaction.js.map +1 -0
- package/models/components/index.d.ts +24 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +24 -1
- package/models/components/index.js.map +1 -1
- package/models/components/inputparameter.d.ts +51 -0
- package/models/components/inputparameter.d.ts.map +1 -0
- package/models/components/inputparameter.js +87 -0
- package/models/components/inputparameter.js.map +1 -0
- package/models/components/jmespathexpression.d.ts +44 -0
- package/models/components/jmespathexpression.d.ts.map +1 -0
- package/models/components/jmespathexpression.js +71 -0
- package/models/components/jmespathexpression.js.map +1 -0
- package/models/components/loadtoolfromfiletask.d.ts +59 -0
- package/models/components/loadtoolfromfiletask.d.ts.map +1 -0
- package/models/components/loadtoolfromfiletask.js +88 -0
- package/models/components/loadtoolfromfiletask.js.map +1 -0
- package/models/components/nextstep.d.ts +93 -0
- package/models/components/nextstep.d.ts.map +1 -0
- package/models/components/nextstep.js +149 -0
- package/models/components/nextstep.js.map +1 -0
- package/models/components/saveaction.d.ts +92 -0
- package/models/components/saveaction.d.ts.map +1 -0
- package/models/components/saveaction.js +151 -0
- package/models/components/saveaction.js.map +1 -0
- package/models/components/sayaction.d.ts +108 -0
- package/models/components/sayaction.d.ts.map +1 -0
- package/models/components/sayaction.js +162 -0
- package/models/components/sayaction.js.map +1 -0
- package/models/components/setvalueaction.d.ts +154 -0
- package/models/components/setvalueaction.d.ts.map +1 -0
- package/models/components/setvalueaction.js +246 -0
- package/models/components/setvalueaction.js.map +1 -0
- package/models/components/step.d.ts +73 -0
- package/models/components/step.d.ts.map +1 -0
- package/models/components/step.js +103 -0
- package/models/components/step.js.map +1 -0
- package/models/components/stepeventactions.d.ts +185 -0
- package/models/components/stepeventactions.d.ts.map +1 -0
- package/models/components/stepeventactions.js +296 -0
- package/models/components/stepeventactions.js.map +1 -0
- package/models/components/stepstask.d.ts +42 -0
- package/models/components/stepstask.d.ts.map +1 -0
- package/models/components/stepstask.js +76 -0
- package/models/components/stepstask.js.map +1 -0
- package/models/components/steptools.d.ts +33 -0
- package/models/components/steptools.d.ts.map +1 -0
- package/models/components/{contexttask.js → steptools.js} +24 -22
- package/models/components/steptools.js.map +1 -0
- package/models/components/variable.d.ts +119 -0
- package/models/components/variable.d.ts.map +1 -0
- package/models/components/variable.js +186 -0
- package/models/components/variable.js.map +1 -0
- package/openapi.json +2436 -657
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/bodyinsightsfolderuploadfile.ts +36 -25
- package/src/models/components/callaction.ts +331 -0
- package/src/models/components/caseexpression.ts +53 -0
- package/src/models/components/celexpression.ts +60 -0
- package/src/models/components/conditionaltext.ts +280 -0
- package/src/models/components/conditionalvalue.ts +477 -0
- package/src/models/components/context.ts +413 -16
- package/src/models/components/contexttaskmetadata.ts +67 -0
- package/src/models/components/contexttoolinfo.ts +59 -0
- package/src/models/components/eventtask.ts +102 -0
- package/src/models/components/eventtaskevents.ts +257 -0
- package/src/models/components/expressiontask.ts +333 -0
- package/src/models/components/expressiontaskevents.ts +430 -0
- package/src/models/components/incrementaction.ts +291 -0
- package/src/models/components/index.ts +24 -1
- package/src/models/components/inputparameter.ts +103 -0
- package/src/models/components/jmespathexpression.ts +86 -0
- package/src/models/components/loadtoolfromfiletask.ts +137 -0
- package/src/models/components/nextstep.ts +280 -0
- package/src/models/components/saveaction.ts +281 -0
- package/src/models/components/sayaction.ts +302 -0
- package/src/models/components/setvalueaction.ts +508 -0
- package/src/models/components/step.ts +174 -0
- package/src/models/components/stepeventactions.ts +619 -0
- package/src/models/components/stepstask.ts +102 -0
- package/src/models/components/steptools.ts +76 -0
- package/src/models/components/variable.ts +332 -0
- package/models/components/contexttask.d.ts +0 -32
- package/models/components/contexttask.d.ts.map +0 -1
- package/models/components/contexttask.js.map +0 -1
- package/src/models/components/contexttask.ts +0 -78
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { CaseExpression, CaseExpression$Outbound } from "./caseexpression.js";
|
|
6
|
+
import { CelExpression, CelExpression$Outbound } from "./celexpression.js";
|
|
7
|
+
import { JMESPathExpression, JMESPathExpression$Outbound } from "./jmespathexpression.js";
|
|
8
|
+
export type SayActionIf1 = (CelExpression & {
|
|
9
|
+
type: "cel";
|
|
10
|
+
}) | (JMESPathExpression & {
|
|
11
|
+
type: "jmespath";
|
|
12
|
+
}) | (JMESPathExpression & {
|
|
13
|
+
type: "jp";
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* An expression that must evaluate to true for the action to be applied.
|
|
17
|
+
*/
|
|
18
|
+
export type SayActionIf = CaseExpression | (CelExpression & {
|
|
19
|
+
type: "cel";
|
|
20
|
+
}) | (JMESPathExpression & {
|
|
21
|
+
type: "jmespath";
|
|
22
|
+
}) | (JMESPathExpression & {
|
|
23
|
+
type: "jp";
|
|
24
|
+
}) | string;
|
|
25
|
+
/**
|
|
26
|
+
* The role of the message.
|
|
27
|
+
*/
|
|
28
|
+
export declare const Role: {
|
|
29
|
+
readonly User: "user";
|
|
30
|
+
readonly Assistant: "assistant";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The role of the message.
|
|
34
|
+
*/
|
|
35
|
+
export type Role = ClosedEnum<typeof Role>;
|
|
36
|
+
export type SayAction = {
|
|
37
|
+
/**
|
|
38
|
+
* An expression that must evaluate to true for the action to be applied.
|
|
39
|
+
*/
|
|
40
|
+
if?: CaseExpression | (CelExpression & {
|
|
41
|
+
type: "cel";
|
|
42
|
+
}) | (JMESPathExpression & {
|
|
43
|
+
type: "jmespath";
|
|
44
|
+
}) | (JMESPathExpression & {
|
|
45
|
+
type: "jp";
|
|
46
|
+
}) | string | null | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Text to apply if the condition is true.
|
|
49
|
+
*/
|
|
50
|
+
text: string;
|
|
51
|
+
action?: "say" | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The role of the message.
|
|
54
|
+
*/
|
|
55
|
+
role?: Role | undefined;
|
|
56
|
+
};
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const SayActionIf1$inboundSchema: z.ZodType<SayActionIf1, z.ZodTypeDef, unknown>;
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type SayActionIf1$Outbound = (CelExpression$Outbound & {
|
|
61
|
+
type: "cel";
|
|
62
|
+
}) | (JMESPathExpression$Outbound & {
|
|
63
|
+
type: "jmespath";
|
|
64
|
+
}) | (JMESPathExpression$Outbound & {
|
|
65
|
+
type: "jp";
|
|
66
|
+
});
|
|
67
|
+
/** @internal */
|
|
68
|
+
export declare const SayActionIf1$outboundSchema: z.ZodType<SayActionIf1$Outbound, z.ZodTypeDef, SayActionIf1>;
|
|
69
|
+
export declare function sayActionIf1ToJSON(sayActionIf1: SayActionIf1): string;
|
|
70
|
+
export declare function sayActionIf1FromJSON(jsonString: string): SafeParseResult<SayActionIf1, SDKValidationError>;
|
|
71
|
+
/** @internal */
|
|
72
|
+
export declare const SayActionIf$inboundSchema: z.ZodType<SayActionIf, z.ZodTypeDef, unknown>;
|
|
73
|
+
/** @internal */
|
|
74
|
+
export type SayActionIf$Outbound = CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
75
|
+
type: "cel";
|
|
76
|
+
}) | (JMESPathExpression$Outbound & {
|
|
77
|
+
type: "jmespath";
|
|
78
|
+
}) | (JMESPathExpression$Outbound & {
|
|
79
|
+
type: "jp";
|
|
80
|
+
}) | string;
|
|
81
|
+
/** @internal */
|
|
82
|
+
export declare const SayActionIf$outboundSchema: z.ZodType<SayActionIf$Outbound, z.ZodTypeDef, SayActionIf>;
|
|
83
|
+
export declare function sayActionIfToJSON(sayActionIf: SayActionIf): string;
|
|
84
|
+
export declare function sayActionIfFromJSON(jsonString: string): SafeParseResult<SayActionIf, SDKValidationError>;
|
|
85
|
+
/** @internal */
|
|
86
|
+
export declare const Role$inboundSchema: z.ZodNativeEnum<typeof Role>;
|
|
87
|
+
/** @internal */
|
|
88
|
+
export declare const Role$outboundSchema: z.ZodNativeEnum<typeof Role>;
|
|
89
|
+
/** @internal */
|
|
90
|
+
export declare const SayAction$inboundSchema: z.ZodType<SayAction, z.ZodTypeDef, unknown>;
|
|
91
|
+
/** @internal */
|
|
92
|
+
export type SayAction$Outbound = {
|
|
93
|
+
if?: CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
94
|
+
type: "cel";
|
|
95
|
+
}) | (JMESPathExpression$Outbound & {
|
|
96
|
+
type: "jmespath";
|
|
97
|
+
}) | (JMESPathExpression$Outbound & {
|
|
98
|
+
type: "jp";
|
|
99
|
+
}) | string | null | undefined;
|
|
100
|
+
text: string;
|
|
101
|
+
action: "say";
|
|
102
|
+
role: string;
|
|
103
|
+
};
|
|
104
|
+
/** @internal */
|
|
105
|
+
export declare const SayAction$outboundSchema: z.ZodType<SayAction$Outbound, z.ZodTypeDef, SayAction>;
|
|
106
|
+
export declare function sayActionToJSON(sayAction: SayAction): string;
|
|
107
|
+
export declare function sayActionFromJSON(jsonString: string): SafeParseResult<SayAction, SDKValidationError>;
|
|
108
|
+
//# sourceMappingURL=sayaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sayaction.d.ts","sourceRoot":"","sources":["../../src/models/components/sayaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,YAAY,GACpB,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC,GACjC,CAAC,kBAAkB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GAC3C,CAAC,kBAAkB,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC,GACjC,CAAC,kBAAkB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GAC3C,CAAC,kBAAkB,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAA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AC1C,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,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,SAAS,CA4BT,CAAC;AAEH,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE5D;AACD,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAMhD"}
|
|
@@ -0,0 +1,162 @@
|
|
|
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.SayAction$outboundSchema = exports.SayAction$inboundSchema = exports.Role$outboundSchema = exports.Role$inboundSchema = exports.SayActionIf$outboundSchema = exports.SayActionIf$inboundSchema = exports.SayActionIf1$outboundSchema = exports.SayActionIf1$inboundSchema = exports.Role = void 0;
|
|
40
|
+
exports.sayActionIf1ToJSON = sayActionIf1ToJSON;
|
|
41
|
+
exports.sayActionIf1FromJSON = sayActionIf1FromJSON;
|
|
42
|
+
exports.sayActionIfToJSON = sayActionIfToJSON;
|
|
43
|
+
exports.sayActionIfFromJSON = sayActionIfFromJSON;
|
|
44
|
+
exports.sayActionToJSON = sayActionToJSON;
|
|
45
|
+
exports.sayActionFromJSON = sayActionFromJSON;
|
|
46
|
+
const z = __importStar(require("zod/v3"));
|
|
47
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
48
|
+
const caseexpression_js_1 = require("./caseexpression.js");
|
|
49
|
+
const celexpression_js_1 = require("./celexpression.js");
|
|
50
|
+
const jmespathexpression_js_1 = require("./jmespathexpression.js");
|
|
51
|
+
/**
|
|
52
|
+
* The role of the message.
|
|
53
|
+
*/
|
|
54
|
+
exports.Role = {
|
|
55
|
+
User: "user",
|
|
56
|
+
Assistant: "assistant",
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
exports.SayActionIf1$inboundSchema = z.union([
|
|
60
|
+
celexpression_js_1.CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type }))),
|
|
61
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
62
|
+
type: v.type,
|
|
63
|
+
}))),
|
|
64
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type }))),
|
|
65
|
+
]);
|
|
66
|
+
/** @internal */
|
|
67
|
+
exports.SayActionIf1$outboundSchema = z.union([
|
|
68
|
+
celexpression_js_1.CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type }))),
|
|
69
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
70
|
+
type: v.type,
|
|
71
|
+
}))),
|
|
72
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type }))),
|
|
73
|
+
]);
|
|
74
|
+
function sayActionIf1ToJSON(sayActionIf1) {
|
|
75
|
+
return JSON.stringify(exports.SayActionIf1$outboundSchema.parse(sayActionIf1));
|
|
76
|
+
}
|
|
77
|
+
function sayActionIf1FromJSON(jsonString) {
|
|
78
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SayActionIf1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SayActionIf1' from JSON`);
|
|
79
|
+
}
|
|
80
|
+
/** @internal */
|
|
81
|
+
exports.SayActionIf$inboundSchema = z.union([
|
|
82
|
+
caseexpression_js_1.CaseExpression$inboundSchema,
|
|
83
|
+
z.union([
|
|
84
|
+
celexpression_js_1.CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type }))),
|
|
85
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
86
|
+
type: v.type,
|
|
87
|
+
}))),
|
|
88
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type }))),
|
|
89
|
+
]),
|
|
90
|
+
z.string(),
|
|
91
|
+
]);
|
|
92
|
+
/** @internal */
|
|
93
|
+
exports.SayActionIf$outboundSchema = z.union([
|
|
94
|
+
caseexpression_js_1.CaseExpression$outboundSchema,
|
|
95
|
+
z.union([
|
|
96
|
+
celexpression_js_1.CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type }))),
|
|
97
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
98
|
+
type: v.type,
|
|
99
|
+
}))),
|
|
100
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type }))),
|
|
101
|
+
]),
|
|
102
|
+
z.string(),
|
|
103
|
+
]);
|
|
104
|
+
function sayActionIfToJSON(sayActionIf) {
|
|
105
|
+
return JSON.stringify(exports.SayActionIf$outboundSchema.parse(sayActionIf));
|
|
106
|
+
}
|
|
107
|
+
function sayActionIfFromJSON(jsonString) {
|
|
108
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SayActionIf$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SayActionIf' from JSON`);
|
|
109
|
+
}
|
|
110
|
+
/** @internal */
|
|
111
|
+
exports.Role$inboundSchema = z.nativeEnum(exports.Role);
|
|
112
|
+
/** @internal */
|
|
113
|
+
exports.Role$outboundSchema = exports.Role$inboundSchema;
|
|
114
|
+
/** @internal */
|
|
115
|
+
exports.SayAction$inboundSchema = z.object({
|
|
116
|
+
if: z.nullable(z.union([
|
|
117
|
+
caseexpression_js_1.CaseExpression$inboundSchema,
|
|
118
|
+
z.union([
|
|
119
|
+
celexpression_js_1.CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
120
|
+
type: v.type,
|
|
121
|
+
}))),
|
|
122
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
123
|
+
type: v.type,
|
|
124
|
+
}))),
|
|
125
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({
|
|
126
|
+
type: v.type,
|
|
127
|
+
}))),
|
|
128
|
+
]),
|
|
129
|
+
z.string(),
|
|
130
|
+
])).optional(),
|
|
131
|
+
text: z.string(),
|
|
132
|
+
action: z.literal("say").default("say"),
|
|
133
|
+
role: exports.Role$inboundSchema.default("assistant"),
|
|
134
|
+
});
|
|
135
|
+
/** @internal */
|
|
136
|
+
exports.SayAction$outboundSchema = z.object({
|
|
137
|
+
if: z.nullable(z.union([
|
|
138
|
+
caseexpression_js_1.CaseExpression$outboundSchema,
|
|
139
|
+
z.union([
|
|
140
|
+
celexpression_js_1.CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
141
|
+
type: v.type,
|
|
142
|
+
}))),
|
|
143
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
144
|
+
type: v.type,
|
|
145
|
+
}))),
|
|
146
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({
|
|
147
|
+
type: v.type,
|
|
148
|
+
}))),
|
|
149
|
+
]),
|
|
150
|
+
z.string(),
|
|
151
|
+
])).optional(),
|
|
152
|
+
text: z.string(),
|
|
153
|
+
action: z.literal("say").default("say"),
|
|
154
|
+
role: exports.Role$outboundSchema.default("assistant"),
|
|
155
|
+
});
|
|
156
|
+
function sayActionToJSON(sayAction) {
|
|
157
|
+
return JSON.stringify(exports.SayAction$outboundSchema.parse(sayAction));
|
|
158
|
+
}
|
|
159
|
+
function sayActionFromJSON(jsonString) {
|
|
160
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SayAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SayAction' from JSON`);
|
|
161
|
+
}
|
|
162
|
+
//# sourceMappingURL=sayaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sayaction.js","sourceRoot":"","sources":["../../src/models/components/sayaction.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuHH,gDAEC;AACD,oDAQC;AAuDD,8CAEC;AACD,kDAQC;AA4FD,0CAEC;AACD,8CAQC;AAzSD,0CAA4B;AAC5B,qDAAiD;AAIjD,2DAK6B;AAC7B,yDAK4B;AAC5B,mEAKiC;AAiBjC;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;CACd,CAAC;AA6BX,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,KAAK,CAAC;IACV,8CAA2B,CAAC,GAAG,CAC7B,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAC1E;IACD,wDAAgC,CAAC,GAAG,CAClC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CA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,iBAAiB,CAC/B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnD,uCAAuC,CACxC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
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 SetValueActionValueFrom1 = (CelExpression & {
|
|
8
|
+
type: "cel";
|
|
9
|
+
}) | (JMESPathExpression & {
|
|
10
|
+
type: "jmespath";
|
|
11
|
+
}) | (JMESPathExpression & {
|
|
12
|
+
type: "jp";
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* Expression to compute initial value (mutually exclusive with value).
|
|
16
|
+
*/
|
|
17
|
+
export type SetValueActionValueFrom = CaseExpression | (CelExpression & {
|
|
18
|
+
type: "cel";
|
|
19
|
+
}) | (JMESPathExpression & {
|
|
20
|
+
type: "jmespath";
|
|
21
|
+
}) | (JMESPathExpression & {
|
|
22
|
+
type: "jp";
|
|
23
|
+
}) | string;
|
|
24
|
+
export type SetValueActionIf1 = (CelExpression & {
|
|
25
|
+
type: "cel";
|
|
26
|
+
}) | (JMESPathExpression & {
|
|
27
|
+
type: "jmespath";
|
|
28
|
+
}) | (JMESPathExpression & {
|
|
29
|
+
type: "jp";
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* An expression that must evaluate to true for the action to be applied.
|
|
33
|
+
*/
|
|
34
|
+
export type SetValueActionIf = CaseExpression | (CelExpression & {
|
|
35
|
+
type: "cel";
|
|
36
|
+
}) | (JMESPathExpression & {
|
|
37
|
+
type: "jmespath";
|
|
38
|
+
}) | (JMESPathExpression & {
|
|
39
|
+
type: "jp";
|
|
40
|
+
}) | string;
|
|
41
|
+
export type SetValueAction = {
|
|
42
|
+
/**
|
|
43
|
+
* Initial value of the variable.
|
|
44
|
+
*/
|
|
45
|
+
value?: any | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Expression to compute initial value (mutually exclusive with value).
|
|
48
|
+
*/
|
|
49
|
+
valueFrom?: CaseExpression | (CelExpression & {
|
|
50
|
+
type: "cel";
|
|
51
|
+
}) | (JMESPathExpression & {
|
|
52
|
+
type: "jmespath";
|
|
53
|
+
}) | (JMESPathExpression & {
|
|
54
|
+
type: "jp";
|
|
55
|
+
}) | string | null | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* An expression that must evaluate to true for the action to be applied.
|
|
58
|
+
*/
|
|
59
|
+
if?: CaseExpression | (CelExpression & {
|
|
60
|
+
type: "cel";
|
|
61
|
+
}) | (JMESPathExpression & {
|
|
62
|
+
type: "jmespath";
|
|
63
|
+
}) | (JMESPathExpression & {
|
|
64
|
+
type: "jp";
|
|
65
|
+
}) | string | null | undefined;
|
|
66
|
+
action?: "set" | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Destination path to mutate (e.g. output.foo).
|
|
69
|
+
*/
|
|
70
|
+
name: string;
|
|
71
|
+
};
|
|
72
|
+
/** @internal */
|
|
73
|
+
export declare const SetValueActionValueFrom1$inboundSchema: z.ZodType<SetValueActionValueFrom1, z.ZodTypeDef, unknown>;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export type SetValueActionValueFrom1$Outbound = (CelExpression$Outbound & {
|
|
76
|
+
type: "cel";
|
|
77
|
+
}) | (JMESPathExpression$Outbound & {
|
|
78
|
+
type: "jmespath";
|
|
79
|
+
}) | (JMESPathExpression$Outbound & {
|
|
80
|
+
type: "jp";
|
|
81
|
+
});
|
|
82
|
+
/** @internal */
|
|
83
|
+
export declare const SetValueActionValueFrom1$outboundSchema: z.ZodType<SetValueActionValueFrom1$Outbound, z.ZodTypeDef, SetValueActionValueFrom1>;
|
|
84
|
+
export declare function setValueActionValueFrom1ToJSON(setValueActionValueFrom1: SetValueActionValueFrom1): string;
|
|
85
|
+
export declare function setValueActionValueFrom1FromJSON(jsonString: string): SafeParseResult<SetValueActionValueFrom1, SDKValidationError>;
|
|
86
|
+
/** @internal */
|
|
87
|
+
export declare const SetValueActionValueFrom$inboundSchema: z.ZodType<SetValueActionValueFrom, z.ZodTypeDef, unknown>;
|
|
88
|
+
/** @internal */
|
|
89
|
+
export type SetValueActionValueFrom$Outbound = CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
90
|
+
type: "cel";
|
|
91
|
+
}) | (JMESPathExpression$Outbound & {
|
|
92
|
+
type: "jmespath";
|
|
93
|
+
}) | (JMESPathExpression$Outbound & {
|
|
94
|
+
type: "jp";
|
|
95
|
+
}) | string;
|
|
96
|
+
/** @internal */
|
|
97
|
+
export declare const SetValueActionValueFrom$outboundSchema: z.ZodType<SetValueActionValueFrom$Outbound, z.ZodTypeDef, SetValueActionValueFrom>;
|
|
98
|
+
export declare function setValueActionValueFromToJSON(setValueActionValueFrom: SetValueActionValueFrom): string;
|
|
99
|
+
export declare function setValueActionValueFromFromJSON(jsonString: string): SafeParseResult<SetValueActionValueFrom, SDKValidationError>;
|
|
100
|
+
/** @internal */
|
|
101
|
+
export declare const SetValueActionIf1$inboundSchema: z.ZodType<SetValueActionIf1, z.ZodTypeDef, unknown>;
|
|
102
|
+
/** @internal */
|
|
103
|
+
export type SetValueActionIf1$Outbound = (CelExpression$Outbound & {
|
|
104
|
+
type: "cel";
|
|
105
|
+
}) | (JMESPathExpression$Outbound & {
|
|
106
|
+
type: "jmespath";
|
|
107
|
+
}) | (JMESPathExpression$Outbound & {
|
|
108
|
+
type: "jp";
|
|
109
|
+
});
|
|
110
|
+
/** @internal */
|
|
111
|
+
export declare const SetValueActionIf1$outboundSchema: z.ZodType<SetValueActionIf1$Outbound, z.ZodTypeDef, SetValueActionIf1>;
|
|
112
|
+
export declare function setValueActionIf1ToJSON(setValueActionIf1: SetValueActionIf1): string;
|
|
113
|
+
export declare function setValueActionIf1FromJSON(jsonString: string): SafeParseResult<SetValueActionIf1, SDKValidationError>;
|
|
114
|
+
/** @internal */
|
|
115
|
+
export declare const SetValueActionIf$inboundSchema: z.ZodType<SetValueActionIf, z.ZodTypeDef, unknown>;
|
|
116
|
+
/** @internal */
|
|
117
|
+
export type SetValueActionIf$Outbound = CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
118
|
+
type: "cel";
|
|
119
|
+
}) | (JMESPathExpression$Outbound & {
|
|
120
|
+
type: "jmespath";
|
|
121
|
+
}) | (JMESPathExpression$Outbound & {
|
|
122
|
+
type: "jp";
|
|
123
|
+
}) | string;
|
|
124
|
+
/** @internal */
|
|
125
|
+
export declare const SetValueActionIf$outboundSchema: z.ZodType<SetValueActionIf$Outbound, z.ZodTypeDef, SetValueActionIf>;
|
|
126
|
+
export declare function setValueActionIfToJSON(setValueActionIf: SetValueActionIf): string;
|
|
127
|
+
export declare function setValueActionIfFromJSON(jsonString: string): SafeParseResult<SetValueActionIf, SDKValidationError>;
|
|
128
|
+
/** @internal */
|
|
129
|
+
export declare const SetValueAction$inboundSchema: z.ZodType<SetValueAction, z.ZodTypeDef, unknown>;
|
|
130
|
+
/** @internal */
|
|
131
|
+
export type SetValueAction$Outbound = {
|
|
132
|
+
value?: any | null | undefined;
|
|
133
|
+
value_from?: CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
134
|
+
type: "cel";
|
|
135
|
+
}) | (JMESPathExpression$Outbound & {
|
|
136
|
+
type: "jmespath";
|
|
137
|
+
}) | (JMESPathExpression$Outbound & {
|
|
138
|
+
type: "jp";
|
|
139
|
+
}) | string | null | undefined;
|
|
140
|
+
if?: CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
141
|
+
type: "cel";
|
|
142
|
+
}) | (JMESPathExpression$Outbound & {
|
|
143
|
+
type: "jmespath";
|
|
144
|
+
}) | (JMESPathExpression$Outbound & {
|
|
145
|
+
type: "jp";
|
|
146
|
+
}) | string | null | undefined;
|
|
147
|
+
action: "set";
|
|
148
|
+
name: string;
|
|
149
|
+
};
|
|
150
|
+
/** @internal */
|
|
151
|
+
export declare const SetValueAction$outboundSchema: z.ZodType<SetValueAction$Outbound, z.ZodTypeDef, SetValueAction>;
|
|
152
|
+
export declare function setValueActionToJSON(setValueAction: SetValueAction): string;
|
|
153
|
+
export declare function setValueActionFromJSON(jsonString: string): SafeParseResult<SetValueAction, SDKValidationError>;
|
|
154
|
+
//# sourceMappingURL=setvalueaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setvalueaction.d.ts","sourceRoot":"","sources":["../../src/models/components/setvalueaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,wBAAwB,GAChC,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC,GACjC,CAAC,kBAAkB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GAC3C,CAAC,kBAAkB,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAC/B,cAAc,GACd,CAAC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