syllable-sdk 1.0.13-rc.6 → 1.0.14-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 +7 -0
- package/bin/mcp-server.js +1704 -1950
- package/bin/mcp-server.js.map +34 -26
- package/examples/package-lock.json +1 -1
- package/funcs/conversationConfigGetBridgePhrasesConfig.d.ts +19 -0
- package/funcs/conversationConfigGetBridgePhrasesConfig.d.ts.map +1 -0
- package/funcs/conversationConfigGetBridgePhrasesConfig.js +123 -0
- package/funcs/conversationConfigGetBridgePhrasesConfig.js.map +1 -0
- package/funcs/conversationConfigUpdateBridgePhrasesConfig.d.ts +19 -0
- package/funcs/conversationConfigUpdateBridgePhrasesConfig.d.ts.map +1 -0
- package/funcs/conversationConfigUpdateBridgePhrasesConfig.js +126 -0
- package/funcs/conversationConfigUpdateBridgePhrasesConfig.js.map +1 -0
- package/funcs/pronunciationsPronunciationsGetMetadata.d.ts +1 -1
- package/funcs/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -1
- package/funcs/pronunciationsPronunciationsGetMetadata.js +1 -1
- package/funcs/pronunciationsPronunciationsGetMetadata.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +3 -1
- package/lib/encodings.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.d.ts +8 -0
- package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.d.ts.map +1 -0
- package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.js +64 -0
- package/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.js.map +1 -0
- package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.d.ts +8 -0
- package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.d.ts.map +1 -0
- package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.js +64 -0
- package/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.js.map +1 -0
- package/models/components/bridgephrasesconfig.d.ts +39 -0
- package/models/components/bridgephrasesconfig.d.ts.map +1 -0
- package/models/components/bridgephrasesconfig.js +80 -0
- package/models/components/bridgephrasesconfig.js.map +1 -0
- package/models/components/callaction.d.ts.map +1 -1
- package/models/components/callaction.js +18 -38
- package/models/components/callaction.js.map +1 -1
- package/models/components/conditionaltext.d.ts.map +1 -1
- package/models/components/conditionaltext.js +18 -38
- package/models/components/conditionaltext.js.map +1 -1
- package/models/components/conditionalvalue.d.ts.map +1 -1
- package/models/components/conditionalvalue.js +36 -80
- package/models/components/conditionalvalue.js.map +1 -1
- package/models/components/context.d.ts.map +1 -1
- package/models/components/context.js +48 -140
- package/models/components/context.js.map +1 -1
- package/models/components/eventtaskevents.d.ts.map +1 -1
- package/models/components/eventtaskevents.js +20 -60
- package/models/components/eventtaskevents.js.map +1 -1
- package/models/components/expressiontask.d.ts.map +1 -1
- package/models/components/expressiontask.js +18 -38
- package/models/components/expressiontask.js.map +1 -1
- package/models/components/expressiontaskevents.d.ts.map +1 -1
- package/models/components/expressiontaskevents.js +40 -120
- package/models/components/expressiontaskevents.js.map +1 -1
- package/models/components/incrementaction.d.ts.map +1 -1
- package/models/components/incrementaction.js +18 -38
- package/models/components/incrementaction.js.map +1 -1
- package/models/components/index.d.ts +3 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -1
- package/models/components/index.js.map +1 -1
- package/models/components/nextstep.d.ts.map +1 -1
- package/models/components/nextstep.js +18 -38
- package/models/components/nextstep.js.map +1 -1
- package/models/components/pronunciationoverridesdictionary.d.ts +3 -3
- package/models/components/pronunciationoverridesdictionary.d.ts.map +1 -1
- package/models/components/pronunciationoverridesdictionary.js +3 -3
- package/models/components/pronunciationoverridesdictionary.js.map +1 -1
- package/models/components/saveaction.d.ts.map +1 -1
- package/models/components/saveaction.js +18 -38
- package/models/components/saveaction.js.map +1 -1
- package/models/components/sayaction.d.ts.map +1 -1
- package/models/components/sayaction.js +18 -38
- package/models/components/sayaction.js.map +1 -1
- package/models/components/schemascortexv1bridgephrasesdictionarymetadata.d.ts +33 -0
- package/models/components/schemascortexv1bridgephrasesdictionarymetadata.d.ts.map +1 -0
- package/models/components/schemascortexv1bridgephrasesdictionarymetadata.js +62 -0
- package/models/components/schemascortexv1bridgephrasesdictionarymetadata.js.map +1 -0
- package/models/components/schemasttsv1pronunciationsdictionarymetadata.d.ts +24 -0
- package/models/components/schemasttsv1pronunciationsdictionarymetadata.d.ts.map +1 -0
- package/models/components/{dictionarymetadata.js → schemasttsv1pronunciationsdictionarymetadata.js} +10 -10
- package/models/components/schemasttsv1pronunciationsdictionarymetadata.js.map +1 -0
- package/models/components/setvalueaction.d.ts.map +1 -1
- package/models/components/setvalueaction.js +36 -76
- package/models/components/setvalueaction.js.map +1 -1
- package/models/components/stepeventactions.d.ts.map +1 -1
- package/models/components/stepeventactions.js +60 -180
- package/models/components/stepeventactions.js.map +1 -1
- package/models/components/variable.d.ts.map +1 -1
- package/models/components/variable.js +18 -38
- package/models/components/variable.js.map +1 -1
- package/models/operations/getbridgephrasesconfig.d.ts +25 -0
- package/models/operations/getbridgephrasesconfig.d.ts.map +1 -0
- package/models/operations/getbridgephrasesconfig.js +71 -0
- package/models/operations/getbridgephrasesconfig.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/updatebridgephrasesconfig.d.ts +28 -0
- package/models/operations/updatebridgephrasesconfig.d.ts.map +1 -0
- package/models/operations/updatebridgephrasesconfig.js +76 -0
- package/models/operations/updatebridgephrasesconfig.js.map +1 -0
- package/openapi.json +290 -60
- package/package.json +1 -1
- package/sdk/conversationconfig.d.ts +20 -0
- package/sdk/conversationconfig.d.ts.map +1 -0
- package/sdk/conversationconfig.js +32 -0
- package/sdk/conversationconfig.js.map +1 -0
- package/sdk/pronunciations.d.ts +1 -1
- package/sdk/pronunciations.d.ts.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/conversationConfigGetBridgePhrasesConfig.ts +176 -0
- package/src/funcs/conversationConfigUpdateBridgePhrasesConfig.ts +179 -0
- package/src/funcs/pronunciationsPronunciationsGetMetadata.ts +7 -4
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +4 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/conversationConfigGetBridgePhrasesConfig.ts +39 -0
- package/src/mcp-server/tools/conversationConfigUpdateBridgePhrasesConfig.ts +39 -0
- package/src/models/components/bridgephrasesconfig.ts +101 -0
- package/src/models/components/callaction.ts +18 -58
- package/src/models/components/conditionaltext.ts +18 -58
- package/src/models/components/conditionalvalue.ts +36 -118
- package/src/models/components/context.ts +48 -188
- package/src/models/components/eventtaskevents.ts +20 -92
- package/src/models/components/expressiontask.ts +18 -58
- package/src/models/components/expressiontaskevents.ts +40 -184
- package/src/models/components/incrementaction.ts +18 -58
- package/src/models/components/index.ts +3 -1
- package/src/models/components/nextstep.ts +18 -58
- package/src/models/components/pronunciationoverridesdictionary.ts +10 -10
- package/src/models/components/saveaction.ts +18 -58
- package/src/models/components/sayaction.ts +18 -58
- package/src/models/components/schemascortexv1bridgephrasesdictionarymetadata.ts +82 -0
- package/src/models/components/schemasttsv1pronunciationsdictionarymetadata.ts +73 -0
- package/src/models/components/setvalueaction.ts +36 -116
- package/src/models/components/stepeventactions.ts +60 -276
- package/src/models/components/variable.ts +18 -58
- package/src/models/operations/getbridgephrasesconfig.ts +74 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/updatebridgephrasesconfig.ts +81 -0
- package/src/sdk/conversationconfig.ts +46 -0
- package/src/sdk/pronunciations.ts +1 -1
- package/src/sdk/sdk.ts +6 -0
- package/models/components/dictionarymetadata.d.ts +0 -24
- package/models/components/dictionarymetadata.d.ts.map +0 -1
- package/models/components/dictionarymetadata.js.map +0 -1
- package/src/models/components/dictionarymetadata.ts +0 -62
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
SchemasCortexV1BridgePhrasesDictionaryMetadata,
|
|
12
|
+
SchemasCortexV1BridgePhrasesDictionaryMetadata$inboundSchema,
|
|
13
|
+
SchemasCortexV1BridgePhrasesDictionaryMetadata$Outbound,
|
|
14
|
+
SchemasCortexV1BridgePhrasesDictionaryMetadata$outboundSchema,
|
|
15
|
+
} from "./schemascortexv1bridgephrasesdictionarymetadata.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Configuration for conversational bridge phrases.
|
|
19
|
+
*/
|
|
20
|
+
export type BridgePhrasesConfig = {
|
|
21
|
+
/**
|
|
22
|
+
* Messages to say when the agent is first delayed.
|
|
23
|
+
*/
|
|
24
|
+
firstSlowMessages?: Array<string> | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Messages to say when the agent is significantly delayed.
|
|
27
|
+
*/
|
|
28
|
+
verySlowMessages?: Array<string> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Messages to say when a tool call is in progress.
|
|
31
|
+
*/
|
|
32
|
+
toolResponses?: Array<string> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Metadata for the bridge phrases dictionary.
|
|
35
|
+
*/
|
|
36
|
+
metadata?: SchemasCortexV1BridgePhrasesDictionaryMetadata | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const BridgePhrasesConfig$inboundSchema: z.ZodType<
|
|
41
|
+
BridgePhrasesConfig,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
first_slow_messages: z.array(z.string()).optional(),
|
|
46
|
+
very_slow_messages: z.array(z.string()).optional(),
|
|
47
|
+
tool_responses: z.array(z.string()).optional(),
|
|
48
|
+
metadata: SchemasCortexV1BridgePhrasesDictionaryMetadata$inboundSchema
|
|
49
|
+
.optional(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
"first_slow_messages": "firstSlowMessages",
|
|
53
|
+
"very_slow_messages": "verySlowMessages",
|
|
54
|
+
"tool_responses": "toolResponses",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type BridgePhrasesConfig$Outbound = {
|
|
59
|
+
first_slow_messages?: Array<string> | undefined;
|
|
60
|
+
very_slow_messages?: Array<string> | undefined;
|
|
61
|
+
tool_responses?: Array<string> | undefined;
|
|
62
|
+
metadata?:
|
|
63
|
+
| SchemasCortexV1BridgePhrasesDictionaryMetadata$Outbound
|
|
64
|
+
| undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const BridgePhrasesConfig$outboundSchema: z.ZodType<
|
|
69
|
+
BridgePhrasesConfig$Outbound,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
BridgePhrasesConfig
|
|
72
|
+
> = z.object({
|
|
73
|
+
firstSlowMessages: z.array(z.string()).optional(),
|
|
74
|
+
verySlowMessages: z.array(z.string()).optional(),
|
|
75
|
+
toolResponses: z.array(z.string()).optional(),
|
|
76
|
+
metadata: SchemasCortexV1BridgePhrasesDictionaryMetadata$outboundSchema
|
|
77
|
+
.optional(),
|
|
78
|
+
}).transform((v) => {
|
|
79
|
+
return remap$(v, {
|
|
80
|
+
firstSlowMessages: "first_slow_messages",
|
|
81
|
+
verySlowMessages: "very_slow_messages",
|
|
82
|
+
toolResponses: "tool_responses",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export function bridgePhrasesConfigToJSON(
|
|
87
|
+
bridgePhrasesConfig: BridgePhrasesConfig,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
BridgePhrasesConfig$outboundSchema.parse(bridgePhrasesConfig),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
export function bridgePhrasesConfigFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<BridgePhrasesConfig, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => BridgePhrasesConfig$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'BridgePhrasesConfig' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -79,17 +79,11 @@ export const CallActionIf1$inboundSchema: z.ZodType<
|
|
|
79
79
|
z.ZodTypeDef,
|
|
80
80
|
unknown
|
|
81
81
|
> = z.union([
|
|
82
|
-
CelExpression$inboundSchema.and(
|
|
83
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
84
|
-
),
|
|
85
|
-
JMESPathExpression$inboundSchema.and(
|
|
86
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
87
|
-
type: v.type,
|
|
88
|
-
})),
|
|
89
|
-
),
|
|
82
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
90
83
|
JMESPathExpression$inboundSchema.and(
|
|
91
|
-
z.object({ type: z.literal("
|
|
84
|
+
z.object({ type: z.literal("jmespath") }),
|
|
92
85
|
),
|
|
86
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
93
87
|
]);
|
|
94
88
|
/** @internal */
|
|
95
89
|
export type CallActionIf1$Outbound =
|
|
@@ -103,17 +97,11 @@ export const CallActionIf1$outboundSchema: z.ZodType<
|
|
|
103
97
|
z.ZodTypeDef,
|
|
104
98
|
CallActionIf1
|
|
105
99
|
> = z.union([
|
|
106
|
-
CelExpression$outboundSchema.and(
|
|
107
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
108
|
-
),
|
|
100
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
109
101
|
JMESPathExpression$outboundSchema.and(
|
|
110
|
-
z.object({ type: z.literal("jmespath") })
|
|
111
|
-
type: v.type,
|
|
112
|
-
})),
|
|
113
|
-
),
|
|
114
|
-
JMESPathExpression$outboundSchema.and(
|
|
115
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
102
|
+
z.object({ type: z.literal("jmespath") }),
|
|
116
103
|
),
|
|
104
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
117
105
|
]);
|
|
118
106
|
|
|
119
107
|
export function callActionIf1ToJSON(callActionIf1: CallActionIf1): string {
|
|
@@ -137,17 +125,11 @@ export const CallActionIf$inboundSchema: z.ZodType<
|
|
|
137
125
|
> = z.union([
|
|
138
126
|
CaseExpression$inboundSchema,
|
|
139
127
|
z.union([
|
|
140
|
-
CelExpression$inboundSchema.and(
|
|
141
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
142
|
-
),
|
|
128
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
143
129
|
JMESPathExpression$inboundSchema.and(
|
|
144
|
-
z.object({ type: z.literal("jmespath") })
|
|
145
|
-
type: v.type,
|
|
146
|
-
})),
|
|
147
|
-
),
|
|
148
|
-
JMESPathExpression$inboundSchema.and(
|
|
149
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
130
|
+
z.object({ type: z.literal("jmespath") }),
|
|
150
131
|
),
|
|
132
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
151
133
|
]),
|
|
152
134
|
z.string(),
|
|
153
135
|
]);
|
|
@@ -167,17 +149,11 @@ export const CallActionIf$outboundSchema: z.ZodType<
|
|
|
167
149
|
> = z.union([
|
|
168
150
|
CaseExpression$outboundSchema,
|
|
169
151
|
z.union([
|
|
170
|
-
CelExpression$outboundSchema.and(
|
|
171
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
172
|
-
),
|
|
152
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
173
153
|
JMESPathExpression$outboundSchema.and(
|
|
174
|
-
z.object({ type: z.literal("jmespath") })
|
|
175
|
-
type: v.type,
|
|
176
|
-
})),
|
|
177
|
-
),
|
|
178
|
-
JMESPathExpression$outboundSchema.and(
|
|
179
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
154
|
+
z.object({ type: z.literal("jmespath") }),
|
|
180
155
|
),
|
|
156
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
181
157
|
]),
|
|
182
158
|
z.string(),
|
|
183
159
|
]);
|
|
@@ -234,20 +210,12 @@ export const CallAction$inboundSchema: z.ZodType<
|
|
|
234
210
|
z.union([
|
|
235
211
|
CaseExpression$inboundSchema,
|
|
236
212
|
z.union([
|
|
237
|
-
CelExpression$inboundSchema.and(
|
|
238
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
239
|
-
type: v.type,
|
|
240
|
-
})),
|
|
241
|
-
),
|
|
213
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
242
214
|
JMESPathExpression$inboundSchema.and(
|
|
243
|
-
z.object({ type: z.literal("jmespath") })
|
|
244
|
-
type: v.type,
|
|
245
|
-
})),
|
|
215
|
+
z.object({ type: z.literal("jmespath") }),
|
|
246
216
|
),
|
|
247
217
|
JMESPathExpression$inboundSchema.and(
|
|
248
|
-
z.object({ type: z.literal("jp") })
|
|
249
|
-
type: v.type,
|
|
250
|
-
})),
|
|
218
|
+
z.object({ type: z.literal("jp") }),
|
|
251
219
|
),
|
|
252
220
|
]),
|
|
253
221
|
z.string(),
|
|
@@ -288,20 +256,12 @@ export const CallAction$outboundSchema: z.ZodType<
|
|
|
288
256
|
z.union([
|
|
289
257
|
CaseExpression$outboundSchema,
|
|
290
258
|
z.union([
|
|
291
|
-
CelExpression$outboundSchema.and(
|
|
292
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
293
|
-
type: v.type,
|
|
294
|
-
})),
|
|
295
|
-
),
|
|
259
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
296
260
|
JMESPathExpression$outboundSchema.and(
|
|
297
|
-
z.object({ type: z.literal("jmespath") })
|
|
298
|
-
type: v.type,
|
|
299
|
-
})),
|
|
261
|
+
z.object({ type: z.literal("jmespath") }),
|
|
300
262
|
),
|
|
301
263
|
JMESPathExpression$outboundSchema.and(
|
|
302
|
-
z.object({ type: z.literal("jp") })
|
|
303
|
-
type: v.type,
|
|
304
|
-
})),
|
|
264
|
+
z.object({ type: z.literal("jp") }),
|
|
305
265
|
),
|
|
306
266
|
]),
|
|
307
267
|
z.string(),
|
|
@@ -64,17 +64,11 @@ export const ConditionalTextIf1$inboundSchema: z.ZodType<
|
|
|
64
64
|
z.ZodTypeDef,
|
|
65
65
|
unknown
|
|
66
66
|
> = z.union([
|
|
67
|
-
CelExpression$inboundSchema.and(
|
|
68
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
69
|
-
),
|
|
70
|
-
JMESPathExpression$inboundSchema.and(
|
|
71
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
72
|
-
type: v.type,
|
|
73
|
-
})),
|
|
74
|
-
),
|
|
67
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
75
68
|
JMESPathExpression$inboundSchema.and(
|
|
76
|
-
z.object({ type: z.literal("
|
|
69
|
+
z.object({ type: z.literal("jmespath") }),
|
|
77
70
|
),
|
|
71
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
78
72
|
]);
|
|
79
73
|
/** @internal */
|
|
80
74
|
export type ConditionalTextIf1$Outbound =
|
|
@@ -88,17 +82,11 @@ export const ConditionalTextIf1$outboundSchema: z.ZodType<
|
|
|
88
82
|
z.ZodTypeDef,
|
|
89
83
|
ConditionalTextIf1
|
|
90
84
|
> = z.union([
|
|
91
|
-
CelExpression$outboundSchema.and(
|
|
92
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
93
|
-
),
|
|
85
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
94
86
|
JMESPathExpression$outboundSchema.and(
|
|
95
|
-
z.object({ type: z.literal("jmespath") })
|
|
96
|
-
type: v.type,
|
|
97
|
-
})),
|
|
98
|
-
),
|
|
99
|
-
JMESPathExpression$outboundSchema.and(
|
|
100
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
87
|
+
z.object({ type: z.literal("jmespath") }),
|
|
101
88
|
),
|
|
89
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
102
90
|
]);
|
|
103
91
|
|
|
104
92
|
export function conditionalTextIf1ToJSON(
|
|
@@ -126,17 +114,11 @@ export const ConditionalTextIf$inboundSchema: z.ZodType<
|
|
|
126
114
|
> = z.union([
|
|
127
115
|
CaseExpression$inboundSchema,
|
|
128
116
|
z.union([
|
|
129
|
-
CelExpression$inboundSchema.and(
|
|
130
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
131
|
-
),
|
|
117
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
132
118
|
JMESPathExpression$inboundSchema.and(
|
|
133
|
-
z.object({ type: z.literal("jmespath") })
|
|
134
|
-
type: v.type,
|
|
135
|
-
})),
|
|
136
|
-
),
|
|
137
|
-
JMESPathExpression$inboundSchema.and(
|
|
138
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
119
|
+
z.object({ type: z.literal("jmespath") }),
|
|
139
120
|
),
|
|
121
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
140
122
|
]),
|
|
141
123
|
z.string(),
|
|
142
124
|
]);
|
|
@@ -156,17 +138,11 @@ export const ConditionalTextIf$outboundSchema: z.ZodType<
|
|
|
156
138
|
> = z.union([
|
|
157
139
|
CaseExpression$outboundSchema,
|
|
158
140
|
z.union([
|
|
159
|
-
CelExpression$outboundSchema.and(
|
|
160
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
161
|
-
),
|
|
141
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
162
142
|
JMESPathExpression$outboundSchema.and(
|
|
163
|
-
z.object({ type: z.literal("jmespath") })
|
|
164
|
-
type: v.type,
|
|
165
|
-
})),
|
|
166
|
-
),
|
|
167
|
-
JMESPathExpression$outboundSchema.and(
|
|
168
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
143
|
+
z.object({ type: z.literal("jmespath") }),
|
|
169
144
|
),
|
|
145
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
170
146
|
]),
|
|
171
147
|
z.string(),
|
|
172
148
|
]);
|
|
@@ -198,20 +174,12 @@ export const ConditionalText$inboundSchema: z.ZodType<
|
|
|
198
174
|
z.union([
|
|
199
175
|
CaseExpression$inboundSchema,
|
|
200
176
|
z.union([
|
|
201
|
-
CelExpression$inboundSchema.and(
|
|
202
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
203
|
-
type: v.type,
|
|
204
|
-
})),
|
|
205
|
-
),
|
|
177
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
206
178
|
JMESPathExpression$inboundSchema.and(
|
|
207
|
-
z.object({ type: z.literal("jmespath") })
|
|
208
|
-
type: v.type,
|
|
209
|
-
})),
|
|
179
|
+
z.object({ type: z.literal("jmespath") }),
|
|
210
180
|
),
|
|
211
181
|
JMESPathExpression$inboundSchema.and(
|
|
212
|
-
z.object({ type: z.literal("jp") })
|
|
213
|
-
type: v.type,
|
|
214
|
-
})),
|
|
182
|
+
z.object({ type: z.literal("jp") }),
|
|
215
183
|
),
|
|
216
184
|
]),
|
|
217
185
|
z.string(),
|
|
@@ -242,20 +210,12 @@ export const ConditionalText$outboundSchema: z.ZodType<
|
|
|
242
210
|
z.union([
|
|
243
211
|
CaseExpression$outboundSchema,
|
|
244
212
|
z.union([
|
|
245
|
-
CelExpression$outboundSchema.and(
|
|
246
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
247
|
-
type: v.type,
|
|
248
|
-
})),
|
|
249
|
-
),
|
|
213
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
250
214
|
JMESPathExpression$outboundSchema.and(
|
|
251
|
-
z.object({ type: z.literal("jmespath") })
|
|
252
|
-
type: v.type,
|
|
253
|
-
})),
|
|
215
|
+
z.object({ type: z.literal("jmespath") }),
|
|
254
216
|
),
|
|
255
217
|
JMESPathExpression$outboundSchema.and(
|
|
256
|
-
z.object({ type: z.literal("jp") })
|
|
257
|
-
type: v.type,
|
|
258
|
-
})),
|
|
218
|
+
z.object({ type: z.literal("jp") }),
|
|
259
219
|
),
|
|
260
220
|
]),
|
|
261
221
|
z.string(),
|
|
@@ -91,17 +91,11 @@ export const ValueFrom1$inboundSchema: z.ZodType<
|
|
|
91
91
|
z.ZodTypeDef,
|
|
92
92
|
unknown
|
|
93
93
|
> = z.union([
|
|
94
|
-
CelExpression$inboundSchema.and(
|
|
95
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
96
|
-
),
|
|
97
|
-
JMESPathExpression$inboundSchema.and(
|
|
98
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
99
|
-
type: v.type,
|
|
100
|
-
})),
|
|
101
|
-
),
|
|
94
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
102
95
|
JMESPathExpression$inboundSchema.and(
|
|
103
|
-
z.object({ type: z.literal("
|
|
96
|
+
z.object({ type: z.literal("jmespath") }),
|
|
104
97
|
),
|
|
98
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
105
99
|
]);
|
|
106
100
|
/** @internal */
|
|
107
101
|
export type ValueFrom1$Outbound =
|
|
@@ -115,17 +109,11 @@ export const ValueFrom1$outboundSchema: z.ZodType<
|
|
|
115
109
|
z.ZodTypeDef,
|
|
116
110
|
ValueFrom1
|
|
117
111
|
> = z.union([
|
|
118
|
-
CelExpression$outboundSchema.and(
|
|
119
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
120
|
-
),
|
|
112
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
121
113
|
JMESPathExpression$outboundSchema.and(
|
|
122
|
-
z.object({ type: z.literal("jmespath") })
|
|
123
|
-
type: v.type,
|
|
124
|
-
})),
|
|
125
|
-
),
|
|
126
|
-
JMESPathExpression$outboundSchema.and(
|
|
127
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
114
|
+
z.object({ type: z.literal("jmespath") }),
|
|
128
115
|
),
|
|
116
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
129
117
|
]);
|
|
130
118
|
|
|
131
119
|
export function valueFrom1ToJSON(valueFrom1: ValueFrom1): string {
|
|
@@ -144,17 +132,11 @@ export function valueFrom1FromJSON(
|
|
|
144
132
|
/** @internal */
|
|
145
133
|
export const If1$inboundSchema: z.ZodType<If1, z.ZodTypeDef, unknown> = z.union(
|
|
146
134
|
[
|
|
147
|
-
CelExpression$inboundSchema.and(
|
|
148
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
149
|
-
),
|
|
135
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
150
136
|
JMESPathExpression$inboundSchema.and(
|
|
151
|
-
z.object({ type: z.literal("jmespath") })
|
|
152
|
-
type: v.type,
|
|
153
|
-
})),
|
|
154
|
-
),
|
|
155
|
-
JMESPathExpression$inboundSchema.and(
|
|
156
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
137
|
+
z.object({ type: z.literal("jmespath") }),
|
|
157
138
|
),
|
|
139
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
158
140
|
],
|
|
159
141
|
);
|
|
160
142
|
/** @internal */
|
|
@@ -166,17 +148,11 @@ export type If1$Outbound =
|
|
|
166
148
|
/** @internal */
|
|
167
149
|
export const If1$outboundSchema: z.ZodType<If1$Outbound, z.ZodTypeDef, If1> = z
|
|
168
150
|
.union([
|
|
169
|
-
CelExpression$outboundSchema.and(
|
|
170
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
171
|
-
),
|
|
151
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
172
152
|
JMESPathExpression$outboundSchema.and(
|
|
173
|
-
z.object({ type: z.literal("jmespath") })
|
|
174
|
-
type: v.type,
|
|
175
|
-
})),
|
|
176
|
-
),
|
|
177
|
-
JMESPathExpression$outboundSchema.and(
|
|
178
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
153
|
+
z.object({ type: z.literal("jmespath") }),
|
|
179
154
|
),
|
|
155
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
180
156
|
]);
|
|
181
157
|
|
|
182
158
|
export function if1ToJSON(if1: If1): string {
|
|
@@ -196,17 +172,11 @@ export function if1FromJSON(
|
|
|
196
172
|
export const If$inboundSchema: z.ZodType<If, z.ZodTypeDef, unknown> = z.union([
|
|
197
173
|
z.lazy(() => CaseExpression$inboundSchema),
|
|
198
174
|
z.union([
|
|
199
|
-
CelExpression$inboundSchema.and(
|
|
200
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
201
|
-
),
|
|
175
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
202
176
|
JMESPathExpression$inboundSchema.and(
|
|
203
|
-
z.object({ type: z.literal("jmespath") })
|
|
204
|
-
type: v.type,
|
|
205
|
-
})),
|
|
206
|
-
),
|
|
207
|
-
JMESPathExpression$inboundSchema.and(
|
|
208
|
-
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
177
|
+
z.object({ type: z.literal("jmespath") }),
|
|
209
178
|
),
|
|
179
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
210
180
|
]),
|
|
211
181
|
z.string(),
|
|
212
182
|
]);
|
|
@@ -223,20 +193,12 @@ export const If$outboundSchema: z.ZodType<If$Outbound, z.ZodTypeDef, If> = z
|
|
|
223
193
|
.union([
|
|
224
194
|
z.lazy(() => CaseExpression$outboundSchema),
|
|
225
195
|
z.union([
|
|
226
|
-
CelExpression$outboundSchema.and(
|
|
227
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
228
|
-
type: v.type,
|
|
229
|
-
})),
|
|
230
|
-
),
|
|
196
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
231
197
|
JMESPathExpression$outboundSchema.and(
|
|
232
|
-
z.object({ type: z.literal("jmespath") })
|
|
233
|
-
type: v.type,
|
|
234
|
-
})),
|
|
198
|
+
z.object({ type: z.literal("jmespath") }),
|
|
235
199
|
),
|
|
236
200
|
JMESPathExpression$outboundSchema.and(
|
|
237
|
-
z.object({ type: z.literal("jp") })
|
|
238
|
-
type: v.type,
|
|
239
|
-
})),
|
|
201
|
+
z.object({ type: z.literal("jp") }),
|
|
240
202
|
),
|
|
241
203
|
]),
|
|
242
204
|
z.string(),
|
|
@@ -266,20 +228,12 @@ export const ConditionalValue$inboundSchema: z.ZodType<
|
|
|
266
228
|
z.union([
|
|
267
229
|
z.lazy(() => CaseExpression$inboundSchema),
|
|
268
230
|
z.union([
|
|
269
|
-
CelExpression$inboundSchema.and(
|
|
270
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
271
|
-
type: v.type,
|
|
272
|
-
})),
|
|
273
|
-
),
|
|
231
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
274
232
|
JMESPathExpression$inboundSchema.and(
|
|
275
|
-
z.object({ type: z.literal("jmespath") })
|
|
276
|
-
type: v.type,
|
|
277
|
-
})),
|
|
233
|
+
z.object({ type: z.literal("jmespath") }),
|
|
278
234
|
),
|
|
279
235
|
JMESPathExpression$inboundSchema.and(
|
|
280
|
-
z.object({ type: z.literal("jp") })
|
|
281
|
-
type: v.type,
|
|
282
|
-
})),
|
|
236
|
+
z.object({ type: z.literal("jp") }),
|
|
283
237
|
),
|
|
284
238
|
]),
|
|
285
239
|
z.string(),
|
|
@@ -289,20 +243,12 @@ export const ConditionalValue$inboundSchema: z.ZodType<
|
|
|
289
243
|
z.union([
|
|
290
244
|
z.lazy(() => CaseExpression$inboundSchema),
|
|
291
245
|
z.union([
|
|
292
|
-
CelExpression$inboundSchema.and(
|
|
293
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
294
|
-
type: v.type,
|
|
295
|
-
})),
|
|
296
|
-
),
|
|
246
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
297
247
|
JMESPathExpression$inboundSchema.and(
|
|
298
|
-
z.object({ type: z.literal("jmespath") })
|
|
299
|
-
type: v.type,
|
|
300
|
-
})),
|
|
248
|
+
z.object({ type: z.literal("jmespath") }),
|
|
301
249
|
),
|
|
302
250
|
JMESPathExpression$inboundSchema.and(
|
|
303
|
-
z.object({ type: z.literal("jp") })
|
|
304
|
-
type: v.type,
|
|
305
|
-
})),
|
|
251
|
+
z.object({ type: z.literal("jp") }),
|
|
306
252
|
),
|
|
307
253
|
]),
|
|
308
254
|
z.string(),
|
|
@@ -345,20 +291,12 @@ export const ConditionalValue$outboundSchema: z.ZodType<
|
|
|
345
291
|
z.union([
|
|
346
292
|
z.lazy(() => CaseExpression$outboundSchema),
|
|
347
293
|
z.union([
|
|
348
|
-
CelExpression$outboundSchema.and(
|
|
349
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
350
|
-
type: v.type,
|
|
351
|
-
})),
|
|
352
|
-
),
|
|
294
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
353
295
|
JMESPathExpression$outboundSchema.and(
|
|
354
|
-
z.object({ type: z.literal("jmespath") })
|
|
355
|
-
type: v.type,
|
|
356
|
-
})),
|
|
296
|
+
z.object({ type: z.literal("jmespath") }),
|
|
357
297
|
),
|
|
358
298
|
JMESPathExpression$outboundSchema.and(
|
|
359
|
-
z.object({ type: z.literal("jp") })
|
|
360
|
-
type: v.type,
|
|
361
|
-
})),
|
|
299
|
+
z.object({ type: z.literal("jp") }),
|
|
362
300
|
),
|
|
363
301
|
]),
|
|
364
302
|
z.string(),
|
|
@@ -368,20 +306,12 @@ export const ConditionalValue$outboundSchema: z.ZodType<
|
|
|
368
306
|
z.union([
|
|
369
307
|
z.lazy(() => CaseExpression$outboundSchema),
|
|
370
308
|
z.union([
|
|
371
|
-
CelExpression$outboundSchema.and(
|
|
372
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
373
|
-
type: v.type,
|
|
374
|
-
})),
|
|
375
|
-
),
|
|
309
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
376
310
|
JMESPathExpression$outboundSchema.and(
|
|
377
|
-
z.object({ type: z.literal("jmespath") })
|
|
378
|
-
type: v.type,
|
|
379
|
-
})),
|
|
311
|
+
z.object({ type: z.literal("jmespath") }),
|
|
380
312
|
),
|
|
381
313
|
JMESPathExpression$outboundSchema.and(
|
|
382
|
-
z.object({ type: z.literal("jp") })
|
|
383
|
-
type: v.type,
|
|
384
|
-
})),
|
|
314
|
+
z.object({ type: z.literal("jp") }),
|
|
385
315
|
),
|
|
386
316
|
]),
|
|
387
317
|
z.string(),
|
|
@@ -418,17 +348,11 @@ export const ValueFrom$inboundSchema: z.ZodType<
|
|
|
418
348
|
> = z.union([
|
|
419
349
|
z.lazy(() => CaseExpression$inboundSchema),
|
|
420
350
|
z.union([
|
|
421
|
-
CelExpression$inboundSchema.and(
|
|
422
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
423
|
-
),
|
|
424
|
-
JMESPathExpression$inboundSchema.and(
|
|
425
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
426
|
-
type: v.type,
|
|
427
|
-
})),
|
|
428
|
-
),
|
|
351
|
+
CelExpression$inboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
429
352
|
JMESPathExpression$inboundSchema.and(
|
|
430
|
-
z.object({ type: z.literal("
|
|
353
|
+
z.object({ type: z.literal("jmespath") }),
|
|
431
354
|
),
|
|
355
|
+
JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
432
356
|
]),
|
|
433
357
|
z.string(),
|
|
434
358
|
]);
|
|
@@ -448,17 +372,11 @@ export const ValueFrom$outboundSchema: z.ZodType<
|
|
|
448
372
|
> = z.union([
|
|
449
373
|
z.lazy(() => CaseExpression$outboundSchema),
|
|
450
374
|
z.union([
|
|
451
|
-
CelExpression$outboundSchema.and(
|
|
452
|
-
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
453
|
-
),
|
|
454
|
-
JMESPathExpression$outboundSchema.and(
|
|
455
|
-
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
456
|
-
type: v.type,
|
|
457
|
-
})),
|
|
458
|
-
),
|
|
375
|
+
CelExpression$outboundSchema.and(z.object({ type: z.literal("cel") })),
|
|
459
376
|
JMESPathExpression$outboundSchema.and(
|
|
460
|
-
z.object({ type: z.literal("
|
|
377
|
+
z.object({ type: z.literal("jmespath") }),
|
|
461
378
|
),
|
|
379
|
+
JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
|
|
462
380
|
]),
|
|
463
381
|
z.string(),
|
|
464
382
|
]);
|