syllable-sdk 1.0.15 → 1.0.16-rc.2

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.
Files changed (49) hide show
  1. package/README.md +38 -38
  2. package/bin/mcp-server.js +223 -94
  3. package/bin/mcp-server.js.map +14 -13
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/config.js.map +1 -1
  9. package/mcp-server/mcp-server.js +1 -1
  10. package/mcp-server/mcp-server.js.map +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/mcp-server/server.js.map +1 -1
  13. package/models/components/eventtaskevents.d.ts +4 -5
  14. package/models/components/eventtaskevents.d.ts.map +1 -1
  15. package/models/components/eventtaskevents.js +0 -5
  16. package/models/components/eventtaskevents.js.map +1 -1
  17. package/models/components/expressiontask.d.ts +1 -1
  18. package/models/components/expressiontaskevents.d.ts +5 -5
  19. package/models/components/expressiontaskevents.d.ts.map +1 -1
  20. package/models/components/expressiontaskevents.js +0 -4
  21. package/models/components/expressiontaskevents.js.map +1 -1
  22. package/models/components/getvalueaction.d.ts +154 -0
  23. package/models/components/getvalueaction.d.ts.map +1 -0
  24. package/models/components/getvalueaction.js +220 -0
  25. package/models/components/getvalueaction.js.map +1 -0
  26. package/models/components/index.d.ts +1 -0
  27. package/models/components/index.d.ts.map +1 -1
  28. package/models/components/index.js +1 -0
  29. package/models/components/index.js.map +1 -1
  30. package/models/components/stepeventactions.d.ts +45 -12
  31. package/models/components/stepeventactions.d.ts.map +1 -1
  32. package/models/components/stepeventactions.js +17 -8
  33. package/models/components/stepeventactions.js.map +1 -1
  34. package/models/components/toolparametertransform.d.ts +5 -5
  35. package/models/components/toolparametertransform.d.ts.map +1 -1
  36. package/models/components/toolparametertransform.js +6 -7
  37. package/models/components/toolparametertransform.js.map +1 -1
  38. package/openapi.json +175 -67
  39. package/package.json +1 -1
  40. package/src/lib/config.ts +3 -3
  41. package/src/mcp-server/mcp-server.ts +1 -1
  42. package/src/mcp-server/server.ts +1 -1
  43. package/src/models/components/eventtaskevents.ts +1 -16
  44. package/src/models/components/expressiontask.ts +1 -1
  45. package/src/models/components/expressiontaskevents.ts +3 -16
  46. package/src/models/components/getvalueaction.ts +458 -0
  47. package/src/models/components/index.ts +1 -0
  48. package/src/models/components/stepeventactions.ts +71 -21
  49. package/src/models/components/toolparametertransform.ts +13 -9
@@ -185,7 +185,7 @@ export function createMCPServer(deps: {
185
185
  }) {
186
186
  const server = new McpServer({
187
187
  name: "SyllableSDK",
188
- version: "1.0.15",
188
+ version: "1.0.16-rc.2",
189
189
  });
190
190
 
191
191
  const client = new SyllableSDKCore({
@@ -18,12 +18,6 @@ import {
18
18
  IncrementAction$Outbound,
19
19
  IncrementAction$outboundSchema,
20
20
  } from "./incrementaction.js";
21
- import {
22
- SaveAction,
23
- SaveAction$inboundSchema,
24
- SaveAction$Outbound,
25
- SaveAction$outboundSchema,
26
- } from "./saveaction.js";
27
21
  import {
28
22
  SayAction,
29
23
  SayAction$inboundSchema,
@@ -40,7 +34,6 @@ import {
40
34
  export type EventTaskEventsStart =
41
35
  | CallAction
42
36
  | IncrementAction
43
- | SaveAction
44
37
  | SayAction
45
38
  | SetValueAction;
46
39
 
@@ -49,9 +42,7 @@ export type EventTaskEvents = {
49
42
  * Actions to execute on the first input from the user.
50
43
  */
51
44
  start?:
52
- | Array<
53
- CallAction | IncrementAction | SaveAction | SayAction | SetValueAction
54
- >
45
+ | Array<CallAction | IncrementAction | SayAction | SetValueAction>
55
46
  | null
56
47
  | undefined;
57
48
  };
@@ -64,7 +55,6 @@ export const EventTaskEventsStart$inboundSchema: z.ZodType<
64
55
  > = z.union([
65
56
  CallAction$inboundSchema,
66
57
  IncrementAction$inboundSchema,
67
- SaveAction$inboundSchema,
68
58
  SayAction$inboundSchema,
69
59
  SetValueAction$inboundSchema,
70
60
  ]);
@@ -72,7 +62,6 @@ export const EventTaskEventsStart$inboundSchema: z.ZodType<
72
62
  export type EventTaskEventsStart$Outbound =
73
63
  | CallAction$Outbound
74
64
  | IncrementAction$Outbound
75
- | SaveAction$Outbound
76
65
  | SayAction$Outbound
77
66
  | SetValueAction$Outbound;
78
67
 
@@ -84,7 +73,6 @@ export const EventTaskEventsStart$outboundSchema: z.ZodType<
84
73
  > = z.union([
85
74
  CallAction$outboundSchema,
86
75
  IncrementAction$outboundSchema,
87
- SaveAction$outboundSchema,
88
76
  SayAction$outboundSchema,
89
77
  SetValueAction$outboundSchema,
90
78
  ]);
@@ -117,7 +105,6 @@ export const EventTaskEvents$inboundSchema: z.ZodType<
117
105
  z.union([
118
106
  CallAction$inboundSchema,
119
107
  IncrementAction$inboundSchema,
120
- SaveAction$inboundSchema,
121
108
  SayAction$inboundSchema,
122
109
  SetValueAction$inboundSchema,
123
110
  ]),
@@ -130,7 +117,6 @@ export type EventTaskEvents$Outbound = {
130
117
  | Array<
131
118
  | CallAction$Outbound
132
119
  | IncrementAction$Outbound
133
- | SaveAction$Outbound
134
120
  | SayAction$Outbound
135
121
  | SetValueAction$Outbound
136
122
  >
@@ -149,7 +135,6 @@ export const EventTaskEvents$outboundSchema: z.ZodType<
149
135
  z.union([
150
136
  CallAction$outboundSchema,
151
137
  IncrementAction$outboundSchema,
152
- SaveAction$outboundSchema,
153
138
  SayAction$outboundSchema,
154
139
  SetValueAction$outboundSchema,
155
140
  ]),
@@ -89,7 +89,7 @@ export type ExpressionTask = {
89
89
  | undefined;
90
90
  output?: any | null | undefined;
91
91
  /**
92
- * Actions to perform when events occur (enter, submit).
92
+ * Actions to perform when events occur (start, submit).
93
93
  */
94
94
  on?: ExpressionTaskEvents | undefined;
95
95
  };
@@ -37,12 +37,7 @@ import {
37
37
  SetValueAction$outboundSchema,
38
38
  } from "./setvalueaction.js";
39
39
 
40
- export type Start =
41
- | CallAction
42
- | IncrementAction
43
- | SaveAction
44
- | SayAction
45
- | SetValueAction;
40
+ export type Start = CallAction | IncrementAction | SayAction | SetValueAction;
46
41
 
47
42
  export type Submit =
48
43
  | CallAction
@@ -52,16 +47,14 @@ export type Submit =
52
47
  | SetValueAction;
53
48
 
54
49
  /**
55
- * Actions to perform when events occur (enter, submit).
50
+ * Actions to perform when events occur (start, submit).
56
51
  */
57
52
  export type ExpressionTaskEvents = {
58
53
  /**
59
54
  * Actions to execute on the first input from the user.
60
55
  */
61
56
  start?:
62
- | Array<
63
- CallAction | IncrementAction | SaveAction | SayAction | SetValueAction
64
- >
57
+ | Array<CallAction | IncrementAction | SayAction | SetValueAction>
65
58
  | null
66
59
  | undefined;
67
60
  /**
@@ -80,7 +73,6 @@ export const Start$inboundSchema: z.ZodType<Start, z.ZodTypeDef, unknown> = z
80
73
  .union([
81
74
  CallAction$inboundSchema,
82
75
  IncrementAction$inboundSchema,
83
- SaveAction$inboundSchema,
84
76
  SayAction$inboundSchema,
85
77
  SetValueAction$inboundSchema,
86
78
  ]);
@@ -88,7 +80,6 @@ export const Start$inboundSchema: z.ZodType<Start, z.ZodTypeDef, unknown> = z
88
80
  export type Start$Outbound =
89
81
  | CallAction$Outbound
90
82
  | IncrementAction$Outbound
91
- | SaveAction$Outbound
92
83
  | SayAction$Outbound
93
84
  | SetValueAction$Outbound;
94
85
 
@@ -100,7 +91,6 @@ export const Start$outboundSchema: z.ZodType<
100
91
  > = z.union([
101
92
  CallAction$outboundSchema,
102
93
  IncrementAction$outboundSchema,
103
- SaveAction$outboundSchema,
104
94
  SayAction$outboundSchema,
105
95
  SetValueAction$outboundSchema,
106
96
  ]);
@@ -172,7 +162,6 @@ export const ExpressionTaskEvents$inboundSchema: z.ZodType<
172
162
  z.union([
173
163
  CallAction$inboundSchema,
174
164
  IncrementAction$inboundSchema,
175
- SaveAction$inboundSchema,
176
165
  SayAction$inboundSchema,
177
166
  SetValueAction$inboundSchema,
178
167
  ]),
@@ -196,7 +185,6 @@ export type ExpressionTaskEvents$Outbound = {
196
185
  | Array<
197
186
  | CallAction$Outbound
198
187
  | IncrementAction$Outbound
199
- | SaveAction$Outbound
200
188
  | SayAction$Outbound
201
189
  | SetValueAction$Outbound
202
190
  >
@@ -225,7 +213,6 @@ export const ExpressionTaskEvents$outboundSchema: z.ZodType<
225
213
  z.union([
226
214
  CallAction$outboundSchema,
227
215
  IncrementAction$outboundSchema,
228
- SaveAction$outboundSchema,
229
216
  SayAction$outboundSchema,
230
217
  SetValueAction$outboundSchema,
231
218
  ]),
@@ -0,0 +1,458 @@
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 { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ CaseExpression,
13
+ CaseExpression$inboundSchema,
14
+ CaseExpression$Outbound,
15
+ CaseExpression$outboundSchema,
16
+ } from "./caseexpression.js";
17
+ import {
18
+ CelExpression,
19
+ CelExpression$inboundSchema,
20
+ CelExpression$Outbound,
21
+ CelExpression$outboundSchema,
22
+ } from "./celexpression.js";
23
+ import {
24
+ JMESPathExpression,
25
+ JMESPathExpression$inboundSchema,
26
+ JMESPathExpression$Outbound,
27
+ JMESPathExpression$outboundSchema,
28
+ } from "./jmespathexpression.js";
29
+
30
+ export type GetValueActionValueFrom1 =
31
+ | CelExpression
32
+ | (JMESPathExpression & { type: "jmespath" })
33
+ | (JMESPathExpression & { type: "jp" });
34
+
35
+ /**
36
+ * Expression to compute initial value (mutually exclusive with value).
37
+ */
38
+ export type GetValueActionValueFrom =
39
+ | CaseExpression
40
+ | CelExpression
41
+ | (JMESPathExpression & { type: "jmespath" })
42
+ | (JMESPathExpression & { type: "jp" })
43
+ | string;
44
+
45
+ export type GetValueActionIf1 =
46
+ | CelExpression
47
+ | (JMESPathExpression & { type: "jmespath" })
48
+ | (JMESPathExpression & { type: "jp" });
49
+
50
+ /**
51
+ * An expression that must evaluate to true for the action to be applied.
52
+ */
53
+ export type GetValueActionIf =
54
+ | CaseExpression
55
+ | CelExpression
56
+ | (JMESPathExpression & { type: "jmespath" })
57
+ | (JMESPathExpression & { type: "jp" })
58
+ | string;
59
+
60
+ /**
61
+ * Populate default input values.
62
+ */
63
+ export const Action = {
64
+ Get: "get",
65
+ Load: "load",
66
+ } as const;
67
+ /**
68
+ * Populate default input values.
69
+ */
70
+ export type Action = ClosedEnum<typeof Action>;
71
+
72
+ export type GetValueAction = {
73
+ /**
74
+ * Initial value of the variable.
75
+ */
76
+ value?: any | null | undefined;
77
+ /**
78
+ * Expression to compute initial value (mutually exclusive with value).
79
+ */
80
+ valueFrom?:
81
+ | CaseExpression
82
+ | CelExpression
83
+ | (JMESPathExpression & { type: "jmespath" })
84
+ | (JMESPathExpression & { type: "jp" })
85
+ | string
86
+ | null
87
+ | undefined;
88
+ /**
89
+ * An expression that must evaluate to true for the action to be applied.
90
+ */
91
+ if?:
92
+ | CaseExpression
93
+ | CelExpression
94
+ | (JMESPathExpression & { type: "jmespath" })
95
+ | (JMESPathExpression & { type: "jp" })
96
+ | string
97
+ | null
98
+ | undefined;
99
+ /**
100
+ * Populate default input values.
101
+ */
102
+ action?: Action | undefined;
103
+ /**
104
+ * Input field names to populate; None populates all step inputs.
105
+ */
106
+ inputs?: Array<string> | null | undefined;
107
+ /**
108
+ * If False (default), only populate empty inputs. If True, always overwrite.
109
+ */
110
+ overwrite?: boolean | undefined;
111
+ };
112
+
113
+ /** @internal */
114
+ export const GetValueActionValueFrom1$inboundSchema: z.ZodType<
115
+ GetValueActionValueFrom1,
116
+ z.ZodTypeDef,
117
+ unknown
118
+ > = z.union([
119
+ CelExpression$inboundSchema,
120
+ JMESPathExpression$inboundSchema.and(
121
+ z.object({ type: z.literal("jmespath") }),
122
+ ),
123
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
124
+ ]);
125
+ /** @internal */
126
+ export type GetValueActionValueFrom1$Outbound =
127
+ | CelExpression$Outbound
128
+ | (JMESPathExpression$Outbound & { type: "jmespath" })
129
+ | (JMESPathExpression$Outbound & { type: "jp" });
130
+
131
+ /** @internal */
132
+ export const GetValueActionValueFrom1$outboundSchema: z.ZodType<
133
+ GetValueActionValueFrom1$Outbound,
134
+ z.ZodTypeDef,
135
+ GetValueActionValueFrom1
136
+ > = z.union([
137
+ CelExpression$outboundSchema,
138
+ JMESPathExpression$outboundSchema.and(
139
+ z.object({ type: z.literal("jmespath") }),
140
+ ),
141
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
142
+ ]);
143
+
144
+ export function getValueActionValueFrom1ToJSON(
145
+ getValueActionValueFrom1: GetValueActionValueFrom1,
146
+ ): string {
147
+ return JSON.stringify(
148
+ GetValueActionValueFrom1$outboundSchema.parse(getValueActionValueFrom1),
149
+ );
150
+ }
151
+ export function getValueActionValueFrom1FromJSON(
152
+ jsonString: string,
153
+ ): SafeParseResult<GetValueActionValueFrom1, SDKValidationError> {
154
+ return safeParse(
155
+ jsonString,
156
+ (x) => GetValueActionValueFrom1$inboundSchema.parse(JSON.parse(x)),
157
+ `Failed to parse 'GetValueActionValueFrom1' from JSON`,
158
+ );
159
+ }
160
+
161
+ /** @internal */
162
+ export const GetValueActionValueFrom$inboundSchema: z.ZodType<
163
+ GetValueActionValueFrom,
164
+ z.ZodTypeDef,
165
+ unknown
166
+ > = z.union([
167
+ CaseExpression$inboundSchema,
168
+ z.union([
169
+ CelExpression$inboundSchema,
170
+ JMESPathExpression$inboundSchema.and(
171
+ z.object({ type: z.literal("jmespath") }),
172
+ ),
173
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
174
+ ]),
175
+ z.string(),
176
+ ]);
177
+ /** @internal */
178
+ export type GetValueActionValueFrom$Outbound =
179
+ | CaseExpression$Outbound
180
+ | CelExpression$Outbound
181
+ | (JMESPathExpression$Outbound & { type: "jmespath" })
182
+ | (JMESPathExpression$Outbound & { type: "jp" })
183
+ | string;
184
+
185
+ /** @internal */
186
+ export const GetValueActionValueFrom$outboundSchema: z.ZodType<
187
+ GetValueActionValueFrom$Outbound,
188
+ z.ZodTypeDef,
189
+ GetValueActionValueFrom
190
+ > = z.union([
191
+ CaseExpression$outboundSchema,
192
+ z.union([
193
+ CelExpression$outboundSchema,
194
+ JMESPathExpression$outboundSchema.and(
195
+ z.object({ type: z.literal("jmespath") }),
196
+ ),
197
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
198
+ ]),
199
+ z.string(),
200
+ ]);
201
+
202
+ export function getValueActionValueFromToJSON(
203
+ getValueActionValueFrom: GetValueActionValueFrom,
204
+ ): string {
205
+ return JSON.stringify(
206
+ GetValueActionValueFrom$outboundSchema.parse(getValueActionValueFrom),
207
+ );
208
+ }
209
+ export function getValueActionValueFromFromJSON(
210
+ jsonString: string,
211
+ ): SafeParseResult<GetValueActionValueFrom, SDKValidationError> {
212
+ return safeParse(
213
+ jsonString,
214
+ (x) => GetValueActionValueFrom$inboundSchema.parse(JSON.parse(x)),
215
+ `Failed to parse 'GetValueActionValueFrom' from JSON`,
216
+ );
217
+ }
218
+
219
+ /** @internal */
220
+ export const GetValueActionIf1$inboundSchema: z.ZodType<
221
+ GetValueActionIf1,
222
+ z.ZodTypeDef,
223
+ unknown
224
+ > = z.union([
225
+ CelExpression$inboundSchema,
226
+ JMESPathExpression$inboundSchema.and(
227
+ z.object({ type: z.literal("jmespath") }),
228
+ ),
229
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
230
+ ]);
231
+ /** @internal */
232
+ export type GetValueActionIf1$Outbound =
233
+ | CelExpression$Outbound
234
+ | (JMESPathExpression$Outbound & { type: "jmespath" })
235
+ | (JMESPathExpression$Outbound & { type: "jp" });
236
+
237
+ /** @internal */
238
+ export const GetValueActionIf1$outboundSchema: z.ZodType<
239
+ GetValueActionIf1$Outbound,
240
+ z.ZodTypeDef,
241
+ GetValueActionIf1
242
+ > = z.union([
243
+ CelExpression$outboundSchema,
244
+ JMESPathExpression$outboundSchema.and(
245
+ z.object({ type: z.literal("jmespath") }),
246
+ ),
247
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
248
+ ]);
249
+
250
+ export function getValueActionIf1ToJSON(
251
+ getValueActionIf1: GetValueActionIf1,
252
+ ): string {
253
+ return JSON.stringify(
254
+ GetValueActionIf1$outboundSchema.parse(getValueActionIf1),
255
+ );
256
+ }
257
+ export function getValueActionIf1FromJSON(
258
+ jsonString: string,
259
+ ): SafeParseResult<GetValueActionIf1, SDKValidationError> {
260
+ return safeParse(
261
+ jsonString,
262
+ (x) => GetValueActionIf1$inboundSchema.parse(JSON.parse(x)),
263
+ `Failed to parse 'GetValueActionIf1' from JSON`,
264
+ );
265
+ }
266
+
267
+ /** @internal */
268
+ export const GetValueActionIf$inboundSchema: z.ZodType<
269
+ GetValueActionIf,
270
+ z.ZodTypeDef,
271
+ unknown
272
+ > = z.union([
273
+ CaseExpression$inboundSchema,
274
+ z.union([
275
+ CelExpression$inboundSchema,
276
+ JMESPathExpression$inboundSchema.and(
277
+ z.object({ type: z.literal("jmespath") }),
278
+ ),
279
+ JMESPathExpression$inboundSchema.and(z.object({ type: z.literal("jp") })),
280
+ ]),
281
+ z.string(),
282
+ ]);
283
+ /** @internal */
284
+ export type GetValueActionIf$Outbound =
285
+ | CaseExpression$Outbound
286
+ | CelExpression$Outbound
287
+ | (JMESPathExpression$Outbound & { type: "jmespath" })
288
+ | (JMESPathExpression$Outbound & { type: "jp" })
289
+ | string;
290
+
291
+ /** @internal */
292
+ export const GetValueActionIf$outboundSchema: z.ZodType<
293
+ GetValueActionIf$Outbound,
294
+ z.ZodTypeDef,
295
+ GetValueActionIf
296
+ > = z.union([
297
+ CaseExpression$outboundSchema,
298
+ z.union([
299
+ CelExpression$outboundSchema,
300
+ JMESPathExpression$outboundSchema.and(
301
+ z.object({ type: z.literal("jmespath") }),
302
+ ),
303
+ JMESPathExpression$outboundSchema.and(z.object({ type: z.literal("jp") })),
304
+ ]),
305
+ z.string(),
306
+ ]);
307
+
308
+ export function getValueActionIfToJSON(
309
+ getValueActionIf: GetValueActionIf,
310
+ ): string {
311
+ return JSON.stringify(
312
+ GetValueActionIf$outboundSchema.parse(getValueActionIf),
313
+ );
314
+ }
315
+ export function getValueActionIfFromJSON(
316
+ jsonString: string,
317
+ ): SafeParseResult<GetValueActionIf, SDKValidationError> {
318
+ return safeParse(
319
+ jsonString,
320
+ (x) => GetValueActionIf$inboundSchema.parse(JSON.parse(x)),
321
+ `Failed to parse 'GetValueActionIf' from JSON`,
322
+ );
323
+ }
324
+
325
+ /** @internal */
326
+ export const Action$inboundSchema: z.ZodNativeEnum<typeof Action> = z
327
+ .nativeEnum(Action);
328
+ /** @internal */
329
+ export const Action$outboundSchema: z.ZodNativeEnum<typeof Action> =
330
+ Action$inboundSchema;
331
+
332
+ /** @internal */
333
+ export const GetValueAction$inboundSchema: z.ZodType<
334
+ GetValueAction,
335
+ z.ZodTypeDef,
336
+ unknown
337
+ > = z.object({
338
+ value: z.nullable(z.any()).optional(),
339
+ value_from: z.nullable(
340
+ z.union([
341
+ CaseExpression$inboundSchema,
342
+ z.union([
343
+ CelExpression$inboundSchema,
344
+ JMESPathExpression$inboundSchema.and(
345
+ z.object({ type: z.literal("jmespath") }),
346
+ ),
347
+ JMESPathExpression$inboundSchema.and(
348
+ z.object({ type: z.literal("jp") }),
349
+ ),
350
+ ]),
351
+ z.string(),
352
+ ]),
353
+ ).optional(),
354
+ if: z.nullable(
355
+ z.union([
356
+ CaseExpression$inboundSchema,
357
+ z.union([
358
+ CelExpression$inboundSchema,
359
+ JMESPathExpression$inboundSchema.and(
360
+ z.object({ type: z.literal("jmespath") }),
361
+ ),
362
+ JMESPathExpression$inboundSchema.and(
363
+ z.object({ type: z.literal("jp") }),
364
+ ),
365
+ ]),
366
+ z.string(),
367
+ ]),
368
+ ).optional(),
369
+ action: Action$inboundSchema.default("get"),
370
+ inputs: z.nullable(z.array(z.string())).optional(),
371
+ overwrite: z.boolean().default(false),
372
+ }).transform((v) => {
373
+ return remap$(v, {
374
+ "value_from": "valueFrom",
375
+ });
376
+ });
377
+ /** @internal */
378
+ export type GetValueAction$Outbound = {
379
+ value?: any | null | undefined;
380
+ value_from?:
381
+ | CaseExpression$Outbound
382
+ | CelExpression$Outbound
383
+ | (JMESPathExpression$Outbound & { type: "jmespath" })
384
+ | (JMESPathExpression$Outbound & { type: "jp" })
385
+ | string
386
+ | null
387
+ | undefined;
388
+ if?:
389
+ | CaseExpression$Outbound
390
+ | CelExpression$Outbound
391
+ | (JMESPathExpression$Outbound & { type: "jmespath" })
392
+ | (JMESPathExpression$Outbound & { type: "jp" })
393
+ | string
394
+ | null
395
+ | undefined;
396
+ action: string;
397
+ inputs?: Array<string> | null | undefined;
398
+ overwrite: boolean;
399
+ };
400
+
401
+ /** @internal */
402
+ export const GetValueAction$outboundSchema: z.ZodType<
403
+ GetValueAction$Outbound,
404
+ z.ZodTypeDef,
405
+ GetValueAction
406
+ > = z.object({
407
+ value: z.nullable(z.any()).optional(),
408
+ valueFrom: z.nullable(
409
+ z.union([
410
+ CaseExpression$outboundSchema,
411
+ z.union([
412
+ CelExpression$outboundSchema,
413
+ JMESPathExpression$outboundSchema.and(
414
+ z.object({ type: z.literal("jmespath") }),
415
+ ),
416
+ JMESPathExpression$outboundSchema.and(
417
+ z.object({ type: z.literal("jp") }),
418
+ ),
419
+ ]),
420
+ z.string(),
421
+ ]),
422
+ ).optional(),
423
+ if: z.nullable(
424
+ z.union([
425
+ CaseExpression$outboundSchema,
426
+ z.union([
427
+ CelExpression$outboundSchema,
428
+ JMESPathExpression$outboundSchema.and(
429
+ z.object({ type: z.literal("jmespath") }),
430
+ ),
431
+ JMESPathExpression$outboundSchema.and(
432
+ z.object({ type: z.literal("jp") }),
433
+ ),
434
+ ]),
435
+ z.string(),
436
+ ]),
437
+ ).optional(),
438
+ action: Action$outboundSchema.default("get"),
439
+ inputs: z.nullable(z.array(z.string())).optional(),
440
+ overwrite: z.boolean().default(false),
441
+ }).transform((v) => {
442
+ return remap$(v, {
443
+ valueFrom: "value_from",
444
+ });
445
+ });
446
+
447
+ export function getValueActionToJSON(getValueAction: GetValueAction): string {
448
+ return JSON.stringify(GetValueAction$outboundSchema.parse(getValueAction));
449
+ }
450
+ export function getValueActionFromJSON(
451
+ jsonString: string,
452
+ ): SafeParseResult<GetValueAction, SDKValidationError> {
453
+ return safeParse(
454
+ jsonString,
455
+ (x) => GetValueAction$inboundSchema.parse(JSON.parse(x)),
456
+ `Failed to parse 'GetValueAction' from JSON`,
457
+ );
458
+ }
@@ -89,6 +89,7 @@ export * from "./eventtaskevents.js";
89
89
  export * from "./expressiontask.js";
90
90
  export * from "./expressiontaskevents.js";
91
91
  export * from "./folderdetails.js";
92
+ export * from "./getvalueaction.js";
92
93
  export * from "./incidentcreaterequest.js";
93
94
  export * from "./incidentorganizationresponse.js";
94
95
  export * from "./incidentproperties.js";