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,60 @@
|
|
|
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.CelExpression$outboundSchema = exports.CelExpression$inboundSchema = void 0;
|
|
40
|
+
exports.celExpressionToJSON = celExpressionToJSON;
|
|
41
|
+
exports.celExpressionFromJSON = celExpressionFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.CelExpression$inboundSchema = z.object({
|
|
46
|
+
expression: z.string(),
|
|
47
|
+
type: z.literal("cel").default("cel"),
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.CelExpression$outboundSchema = z.object({
|
|
51
|
+
expression: z.string(),
|
|
52
|
+
type: z.literal("cel").default("cel"),
|
|
53
|
+
});
|
|
54
|
+
function celExpressionToJSON(celExpression) {
|
|
55
|
+
return JSON.stringify(exports.CelExpression$outboundSchema.parse(celExpression));
|
|
56
|
+
}
|
|
57
|
+
function celExpressionFromJSON(jsonString) {
|
|
58
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CelExpression$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CelExpression' from JSON`);
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=celexpression.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celexpression.js","sourceRoot":"","sources":["../../src/models/components/celexpression.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CH,kDAEC;AACD,sDAQC;AAvDD,0CAA4B;AAC5B,qDAAiD;AAkBjD,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CACtC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAc,CAAC;CAC/C,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AACD,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 ConditionalTextIf1 = (CelExpression & {
|
|
8
|
+
type: "cel";
|
|
9
|
+
}) | (JMESPathExpression & {
|
|
10
|
+
type: "jmespath";
|
|
11
|
+
}) | (JMESPathExpression & {
|
|
12
|
+
type: "jp";
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* An expression that must evaluate to true for the action to be applied.
|
|
16
|
+
*/
|
|
17
|
+
export type ConditionalTextIf = CaseExpression | (CelExpression & {
|
|
18
|
+
type: "cel";
|
|
19
|
+
}) | (JMESPathExpression & {
|
|
20
|
+
type: "jmespath";
|
|
21
|
+
}) | (JMESPathExpression & {
|
|
22
|
+
type: "jp";
|
|
23
|
+
}) | string;
|
|
24
|
+
export type ConditionalText = {
|
|
25
|
+
/**
|
|
26
|
+
* An expression that must evaluate to true for the action to be applied.
|
|
27
|
+
*/
|
|
28
|
+
if?: CaseExpression | (CelExpression & {
|
|
29
|
+
type: "cel";
|
|
30
|
+
}) | (JMESPathExpression & {
|
|
31
|
+
type: "jmespath";
|
|
32
|
+
}) | (JMESPathExpression & {
|
|
33
|
+
type: "jp";
|
|
34
|
+
}) | string | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Text to apply if the condition is true.
|
|
37
|
+
*/
|
|
38
|
+
text: string;
|
|
39
|
+
};
|
|
40
|
+
/** @internal */
|
|
41
|
+
export declare const ConditionalTextIf1$inboundSchema: z.ZodType<ConditionalTextIf1, z.ZodTypeDef, unknown>;
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type ConditionalTextIf1$Outbound = (CelExpression$Outbound & {
|
|
44
|
+
type: "cel";
|
|
45
|
+
}) | (JMESPathExpression$Outbound & {
|
|
46
|
+
type: "jmespath";
|
|
47
|
+
}) | (JMESPathExpression$Outbound & {
|
|
48
|
+
type: "jp";
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare const ConditionalTextIf1$outboundSchema: z.ZodType<ConditionalTextIf1$Outbound, z.ZodTypeDef, ConditionalTextIf1>;
|
|
52
|
+
export declare function conditionalTextIf1ToJSON(conditionalTextIf1: ConditionalTextIf1): string;
|
|
53
|
+
export declare function conditionalTextIf1FromJSON(jsonString: string): SafeParseResult<ConditionalTextIf1, SDKValidationError>;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const ConditionalTextIf$inboundSchema: z.ZodType<ConditionalTextIf, z.ZodTypeDef, unknown>;
|
|
56
|
+
/** @internal */
|
|
57
|
+
export type ConditionalTextIf$Outbound = CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
58
|
+
type: "cel";
|
|
59
|
+
}) | (JMESPathExpression$Outbound & {
|
|
60
|
+
type: "jmespath";
|
|
61
|
+
}) | (JMESPathExpression$Outbound & {
|
|
62
|
+
type: "jp";
|
|
63
|
+
}) | string;
|
|
64
|
+
/** @internal */
|
|
65
|
+
export declare const ConditionalTextIf$outboundSchema: z.ZodType<ConditionalTextIf$Outbound, z.ZodTypeDef, ConditionalTextIf>;
|
|
66
|
+
export declare function conditionalTextIfToJSON(conditionalTextIf: ConditionalTextIf): string;
|
|
67
|
+
export declare function conditionalTextIfFromJSON(jsonString: string): SafeParseResult<ConditionalTextIf, SDKValidationError>;
|
|
68
|
+
/** @internal */
|
|
69
|
+
export declare const ConditionalText$inboundSchema: z.ZodType<ConditionalText, z.ZodTypeDef, unknown>;
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type ConditionalText$Outbound = {
|
|
72
|
+
if?: CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
73
|
+
type: "cel";
|
|
74
|
+
}) | (JMESPathExpression$Outbound & {
|
|
75
|
+
type: "jmespath";
|
|
76
|
+
}) | (JMESPathExpression$Outbound & {
|
|
77
|
+
type: "jp";
|
|
78
|
+
}) | string | null | undefined;
|
|
79
|
+
text: string;
|
|
80
|
+
};
|
|
81
|
+
/** @internal */
|
|
82
|
+
export declare const ConditionalText$outboundSchema: z.ZodType<ConditionalText$Outbound, z.ZodTypeDef, ConditionalText>;
|
|
83
|
+
export declare function conditionalTextToJSON(conditionalText: ConditionalText): string;
|
|
84
|
+
export declare function conditionalTextFromJSON(jsonString: string): SafeParseResult<ConditionalText, SDKValidationError>;
|
|
85
|
+
//# sourceMappingURL=conditionaltext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditionaltext.d.ts","sourceRoot":"","sources":["../../src/models/components/conditionaltext.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,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,kBAAkB,GAC1B,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,iBAAiB,GACzB,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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,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AACD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -0,0 +1,147 @@
|
|
|
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.ConditionalText$outboundSchema = exports.ConditionalText$inboundSchema = exports.ConditionalTextIf$outboundSchema = exports.ConditionalTextIf$inboundSchema = exports.ConditionalTextIf1$outboundSchema = exports.ConditionalTextIf1$inboundSchema = void 0;
|
|
40
|
+
exports.conditionalTextIf1ToJSON = conditionalTextIf1ToJSON;
|
|
41
|
+
exports.conditionalTextIf1FromJSON = conditionalTextIf1FromJSON;
|
|
42
|
+
exports.conditionalTextIfToJSON = conditionalTextIfToJSON;
|
|
43
|
+
exports.conditionalTextIfFromJSON = conditionalTextIfFromJSON;
|
|
44
|
+
exports.conditionalTextToJSON = conditionalTextToJSON;
|
|
45
|
+
exports.conditionalTextFromJSON = conditionalTextFromJSON;
|
|
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
|
+
/** @internal */
|
|
52
|
+
exports.ConditionalTextIf1$inboundSchema = z.union([
|
|
53
|
+
celexpression_js_1.CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type }))),
|
|
54
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
55
|
+
type: v.type,
|
|
56
|
+
}))),
|
|
57
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type }))),
|
|
58
|
+
]);
|
|
59
|
+
/** @internal */
|
|
60
|
+
exports.ConditionalTextIf1$outboundSchema = z.union([
|
|
61
|
+
celexpression_js_1.CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type }))),
|
|
62
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
63
|
+
type: v.type,
|
|
64
|
+
}))),
|
|
65
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type }))),
|
|
66
|
+
]);
|
|
67
|
+
function conditionalTextIf1ToJSON(conditionalTextIf1) {
|
|
68
|
+
return JSON.stringify(exports.ConditionalTextIf1$outboundSchema.parse(conditionalTextIf1));
|
|
69
|
+
}
|
|
70
|
+
function conditionalTextIf1FromJSON(jsonString) {
|
|
71
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ConditionalTextIf1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConditionalTextIf1' from JSON`);
|
|
72
|
+
}
|
|
73
|
+
/** @internal */
|
|
74
|
+
exports.ConditionalTextIf$inboundSchema = z.union([
|
|
75
|
+
caseexpression_js_1.CaseExpression$inboundSchema,
|
|
76
|
+
z.union([
|
|
77
|
+
celexpression_js_1.CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type }))),
|
|
78
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
79
|
+
type: v.type,
|
|
80
|
+
}))),
|
|
81
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type }))),
|
|
82
|
+
]),
|
|
83
|
+
z.string(),
|
|
84
|
+
]);
|
|
85
|
+
/** @internal */
|
|
86
|
+
exports.ConditionalTextIf$outboundSchema = z.union([
|
|
87
|
+
caseexpression_js_1.CaseExpression$outboundSchema,
|
|
88
|
+
z.union([
|
|
89
|
+
celexpression_js_1.CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type }))),
|
|
90
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
91
|
+
type: v.type,
|
|
92
|
+
}))),
|
|
93
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type }))),
|
|
94
|
+
]),
|
|
95
|
+
z.string(),
|
|
96
|
+
]);
|
|
97
|
+
function conditionalTextIfToJSON(conditionalTextIf) {
|
|
98
|
+
return JSON.stringify(exports.ConditionalTextIf$outboundSchema.parse(conditionalTextIf));
|
|
99
|
+
}
|
|
100
|
+
function conditionalTextIfFromJSON(jsonString) {
|
|
101
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ConditionalTextIf$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConditionalTextIf' from JSON`);
|
|
102
|
+
}
|
|
103
|
+
/** @internal */
|
|
104
|
+
exports.ConditionalText$inboundSchema = z.object({
|
|
105
|
+
if: z.nullable(z.union([
|
|
106
|
+
caseexpression_js_1.CaseExpression$inboundSchema,
|
|
107
|
+
z.union([
|
|
108
|
+
celexpression_js_1.CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
109
|
+
type: v.type,
|
|
110
|
+
}))),
|
|
111
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
112
|
+
type: v.type,
|
|
113
|
+
}))),
|
|
114
|
+
jmespathexpression_js_1.JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({
|
|
115
|
+
type: v.type,
|
|
116
|
+
}))),
|
|
117
|
+
]),
|
|
118
|
+
z.string(),
|
|
119
|
+
])).optional(),
|
|
120
|
+
text: z.string(),
|
|
121
|
+
});
|
|
122
|
+
/** @internal */
|
|
123
|
+
exports.ConditionalText$outboundSchema = z.object({
|
|
124
|
+
if: z.nullable(z.union([
|
|
125
|
+
caseexpression_js_1.CaseExpression$outboundSchema,
|
|
126
|
+
z.union([
|
|
127
|
+
celexpression_js_1.CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
128
|
+
type: v.type,
|
|
129
|
+
}))),
|
|
130
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
131
|
+
type: v.type,
|
|
132
|
+
}))),
|
|
133
|
+
jmespathexpression_js_1.JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") }).transform((v) => ({
|
|
134
|
+
type: v.type,
|
|
135
|
+
}))),
|
|
136
|
+
]),
|
|
137
|
+
z.string(),
|
|
138
|
+
])).optional(),
|
|
139
|
+
text: z.string(),
|
|
140
|
+
});
|
|
141
|
+
function conditionalTextToJSON(conditionalText) {
|
|
142
|
+
return JSON.stringify(exports.ConditionalText$outboundSchema.parse(conditionalText));
|
|
143
|
+
}
|
|
144
|
+
function conditionalTextFromJSON(jsonString) {
|
|
145
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ConditionalText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConditionalText' from JSON`);
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=conditionaltext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditionaltext.js","sourceRoot":"","sources":["../../src/models/components/conditionaltext.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGH,4DAMC;AACD,gEAQC;AAuDD,0DAMC;AACD,8DAQC;AA8ED,sDAIC;AACD,0DAQC;AAnRD,0CAA4B;AAC5B,qDAAiD;AAGjD,2DAK6B;AAC7B,yDAK4B;AAC5B,mEAKiC;AAmCjC,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,KAAK,CAAC;IACV,8CAA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rC,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"}
|
|
@@ -0,0 +1,147 @@
|
|
|
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 ValueFrom1 = (CelExpression & {
|
|
8
|
+
type: "cel";
|
|
9
|
+
}) | (JMESPathExpression & {
|
|
10
|
+
type: "jmespath";
|
|
11
|
+
}) | (JMESPathExpression & {
|
|
12
|
+
type: "jp";
|
|
13
|
+
});
|
|
14
|
+
export type If1 = (CelExpression & {
|
|
15
|
+
type: "cel";
|
|
16
|
+
}) | (JMESPathExpression & {
|
|
17
|
+
type: "jmespath";
|
|
18
|
+
}) | (JMESPathExpression & {
|
|
19
|
+
type: "jp";
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* An expression that must evaluate to true for the action to be applied.
|
|
23
|
+
*/
|
|
24
|
+
export type If = CaseExpression | (CelExpression & {
|
|
25
|
+
type: "cel";
|
|
26
|
+
}) | (JMESPathExpression & {
|
|
27
|
+
type: "jmespath";
|
|
28
|
+
}) | (JMESPathExpression & {
|
|
29
|
+
type: "jp";
|
|
30
|
+
}) | string;
|
|
31
|
+
export type ConditionalValue = {
|
|
32
|
+
/**
|
|
33
|
+
* Initial value of the variable.
|
|
34
|
+
*/
|
|
35
|
+
value?: any | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Expression to compute initial value (mutually exclusive with value).
|
|
38
|
+
*/
|
|
39
|
+
valueFrom?: CaseExpression | (CelExpression & {
|
|
40
|
+
type: "cel";
|
|
41
|
+
}) | (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 & {
|
|
50
|
+
type: "cel";
|
|
51
|
+
}) | (JMESPathExpression & {
|
|
52
|
+
type: "jmespath";
|
|
53
|
+
}) | (JMESPathExpression & {
|
|
54
|
+
type: "jp";
|
|
55
|
+
}) | string | null | undefined;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Expression to compute initial value (mutually exclusive with value).
|
|
59
|
+
*/
|
|
60
|
+
export type ValueFrom = CaseExpression | (CelExpression & {
|
|
61
|
+
type: "cel";
|
|
62
|
+
}) | (JMESPathExpression & {
|
|
63
|
+
type: "jmespath";
|
|
64
|
+
}) | (JMESPathExpression & {
|
|
65
|
+
type: "jp";
|
|
66
|
+
}) | string;
|
|
67
|
+
/** @internal */
|
|
68
|
+
export declare const ValueFrom1$inboundSchema: z.ZodType<ValueFrom1, z.ZodTypeDef, unknown>;
|
|
69
|
+
/** @internal */
|
|
70
|
+
export type ValueFrom1$Outbound = (CelExpression$Outbound & {
|
|
71
|
+
type: "cel";
|
|
72
|
+
}) | (JMESPathExpression$Outbound & {
|
|
73
|
+
type: "jmespath";
|
|
74
|
+
}) | (JMESPathExpression$Outbound & {
|
|
75
|
+
type: "jp";
|
|
76
|
+
});
|
|
77
|
+
/** @internal */
|
|
78
|
+
export declare const ValueFrom1$outboundSchema: z.ZodType<ValueFrom1$Outbound, z.ZodTypeDef, ValueFrom1>;
|
|
79
|
+
export declare function valueFrom1ToJSON(valueFrom1: ValueFrom1): string;
|
|
80
|
+
export declare function valueFrom1FromJSON(jsonString: string): SafeParseResult<ValueFrom1, SDKValidationError>;
|
|
81
|
+
/** @internal */
|
|
82
|
+
export declare const If1$inboundSchema: z.ZodType<If1, z.ZodTypeDef, unknown>;
|
|
83
|
+
/** @internal */
|
|
84
|
+
export type If1$Outbound = (CelExpression$Outbound & {
|
|
85
|
+
type: "cel";
|
|
86
|
+
}) | (JMESPathExpression$Outbound & {
|
|
87
|
+
type: "jmespath";
|
|
88
|
+
}) | (JMESPathExpression$Outbound & {
|
|
89
|
+
type: "jp";
|
|
90
|
+
});
|
|
91
|
+
/** @internal */
|
|
92
|
+
export declare const If1$outboundSchema: z.ZodType<If1$Outbound, z.ZodTypeDef, If1>;
|
|
93
|
+
export declare function if1ToJSON(if1: If1): string;
|
|
94
|
+
export declare function if1FromJSON(jsonString: string): SafeParseResult<If1, SDKValidationError>;
|
|
95
|
+
/** @internal */
|
|
96
|
+
export declare const If$inboundSchema: z.ZodType<If, z.ZodTypeDef, unknown>;
|
|
97
|
+
/** @internal */
|
|
98
|
+
export type If$Outbound = CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
99
|
+
type: "cel";
|
|
100
|
+
}) | (JMESPathExpression$Outbound & {
|
|
101
|
+
type: "jmespath";
|
|
102
|
+
}) | (JMESPathExpression$Outbound & {
|
|
103
|
+
type: "jp";
|
|
104
|
+
}) | string;
|
|
105
|
+
/** @internal */
|
|
106
|
+
export declare const If$outboundSchema: z.ZodType<If$Outbound, z.ZodTypeDef, If>;
|
|
107
|
+
export declare function ifToJSON(value: If): string;
|
|
108
|
+
export declare function ifFromJSON(jsonString: string): SafeParseResult<If, SDKValidationError>;
|
|
109
|
+
/** @internal */
|
|
110
|
+
export declare const ConditionalValue$inboundSchema: z.ZodType<ConditionalValue, z.ZodTypeDef, unknown>;
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type ConditionalValue$Outbound = {
|
|
113
|
+
value?: any | null | undefined;
|
|
114
|
+
value_from?: CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
115
|
+
type: "cel";
|
|
116
|
+
}) | (JMESPathExpression$Outbound & {
|
|
117
|
+
type: "jmespath";
|
|
118
|
+
}) | (JMESPathExpression$Outbound & {
|
|
119
|
+
type: "jp";
|
|
120
|
+
}) | string | null | undefined;
|
|
121
|
+
if?: CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
122
|
+
type: "cel";
|
|
123
|
+
}) | (JMESPathExpression$Outbound & {
|
|
124
|
+
type: "jmespath";
|
|
125
|
+
}) | (JMESPathExpression$Outbound & {
|
|
126
|
+
type: "jp";
|
|
127
|
+
}) | string | null | undefined;
|
|
128
|
+
};
|
|
129
|
+
/** @internal */
|
|
130
|
+
export declare const ConditionalValue$outboundSchema: z.ZodType<ConditionalValue$Outbound, z.ZodTypeDef, ConditionalValue>;
|
|
131
|
+
export declare function conditionalValueToJSON(conditionalValue: ConditionalValue): string;
|
|
132
|
+
export declare function conditionalValueFromJSON(jsonString: string): SafeParseResult<ConditionalValue, SDKValidationError>;
|
|
133
|
+
/** @internal */
|
|
134
|
+
export declare const ValueFrom$inboundSchema: z.ZodType<ValueFrom, z.ZodTypeDef, unknown>;
|
|
135
|
+
/** @internal */
|
|
136
|
+
export type ValueFrom$Outbound = CaseExpression$Outbound | (CelExpression$Outbound & {
|
|
137
|
+
type: "cel";
|
|
138
|
+
}) | (JMESPathExpression$Outbound & {
|
|
139
|
+
type: "jmespath";
|
|
140
|
+
}) | (JMESPathExpression$Outbound & {
|
|
141
|
+
type: "jp";
|
|
142
|
+
}) | string;
|
|
143
|
+
/** @internal */
|
|
144
|
+
export declare const ValueFrom$outboundSchema: z.ZodType<ValueFrom$Outbound, z.ZodTypeDef, ValueFrom>;
|
|
145
|
+
export declare function valueFromToJSON(valueFrom: ValueFrom): string;
|
|
146
|
+
export declare function valueFromFromJSON(jsonString: string): SafeParseResult<ValueFrom, SDKValidationError>;
|
|
147
|
+
//# sourceMappingURL=conditionalvalue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|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