syllable-sdk 1.0.16-rc.1 → 1.0.16-rc.3
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 +37 -23
- package/bin/mcp-server.js.map +8 -8
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/getvalueaction.d.ts +21 -2
- package/models/components/getvalueaction.d.ts.map +1 -1
- package/models/components/getvalueaction.js +15 -3
- package/models/components/getvalueaction.js.map +1 -1
- package/models/components/stepeventactions.d.ts +40 -8
- package/models/components/stepeventactions.d.ts.map +1 -1
- package/models/components/stepeventactions.js +16 -8
- package/models/components/stepeventactions.js.map +1 -1
- package/models/components/toolparametertransform.d.ts +5 -5
- package/models/components/toolparametertransform.d.ts.map +1 -1
- package/models/components/toolparametertransform.js +6 -7
- package/models/components/toolparametertransform.js.map +1 -1
- package/openapi.json +40 -34
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/getvalueaction.ts +27 -4
- package/src/models/components/stepeventactions.ts +57 -16
- package/src/models/components/toolparametertransform.ts +13 -9
package/openapi.json
CHANGED
|
@@ -13938,7 +13938,7 @@
|
|
|
13938
13938
|
"title": "Batch Id",
|
|
13939
13939
|
"description": "Unique ID for conversation batch",
|
|
13940
13940
|
"examples": [
|
|
13941
|
-
"
|
|
13941
|
+
"20251209.9"
|
|
13942
13942
|
]
|
|
13943
13943
|
},
|
|
13944
13944
|
"campaign_id": {
|
|
@@ -13962,7 +13962,7 @@
|
|
|
13962
13962
|
"title": "Expires On",
|
|
13963
13963
|
"description": "Timestamp of batch expiration",
|
|
13964
13964
|
"examples": [
|
|
13965
|
-
"2025-12-
|
|
13965
|
+
"2025-12-10T00:00:00Z"
|
|
13966
13966
|
]
|
|
13967
13967
|
},
|
|
13968
13968
|
"paused": {
|
|
@@ -14015,7 +14015,7 @@
|
|
|
14015
14015
|
"title": "Created At",
|
|
14016
14016
|
"description": "Timestamp of batch creation",
|
|
14017
14017
|
"examples": [
|
|
14018
|
-
"2025-12-
|
|
14018
|
+
"2025-12-09T00:00:00Z"
|
|
14019
14019
|
]
|
|
14020
14020
|
},
|
|
14021
14021
|
"deleted_at": {
|
|
@@ -14031,7 +14031,7 @@
|
|
|
14031
14031
|
"title": "Deleted At",
|
|
14032
14032
|
"description": "Timestamp of batch deletion",
|
|
14033
14033
|
"examples": [
|
|
14034
|
-
"2025-12-
|
|
14034
|
+
"2025-12-09T00:00:00Z"
|
|
14035
14035
|
]
|
|
14036
14036
|
},
|
|
14037
14037
|
"deleted_reason": {
|
|
@@ -14062,7 +14062,7 @@
|
|
|
14062
14062
|
"title": "Last Updated At",
|
|
14063
14063
|
"description": "Timestamp of last change to batch",
|
|
14064
14064
|
"examples": [
|
|
14065
|
-
"2025-12-
|
|
14065
|
+
"2025-12-09T00:00:00Z"
|
|
14066
14066
|
]
|
|
14067
14067
|
},
|
|
14068
14068
|
"last_updated_by": {
|
|
@@ -14973,7 +14973,7 @@
|
|
|
14973
14973
|
"title": "Batch Id",
|
|
14974
14974
|
"description": "Unique ID for conversation batch",
|
|
14975
14975
|
"examples": [
|
|
14976
|
-
"
|
|
14976
|
+
"20251209.9"
|
|
14977
14977
|
]
|
|
14978
14978
|
},
|
|
14979
14979
|
"campaign_id": {
|
|
@@ -14997,7 +14997,7 @@
|
|
|
14997
14997
|
"title": "Expires On",
|
|
14998
14998
|
"description": "Timestamp of batch expiration",
|
|
14999
14999
|
"examples": [
|
|
15000
|
-
"2025-12-
|
|
15000
|
+
"2025-12-10T00:00:00Z"
|
|
15001
15001
|
]
|
|
15002
15002
|
},
|
|
15003
15003
|
"paused": {
|
|
@@ -15050,7 +15050,7 @@
|
|
|
15050
15050
|
"title": "Created At",
|
|
15051
15051
|
"description": "Timestamp of batch creation",
|
|
15052
15052
|
"examples": [
|
|
15053
|
-
"2025-12-
|
|
15053
|
+
"2025-12-09T00:00:00Z"
|
|
15054
15054
|
]
|
|
15055
15055
|
},
|
|
15056
15056
|
"deleted_at": {
|
|
@@ -15066,7 +15066,7 @@
|
|
|
15066
15066
|
"title": "Deleted At",
|
|
15067
15067
|
"description": "Timestamp of batch deletion",
|
|
15068
15068
|
"examples": [
|
|
15069
|
-
"2025-12-
|
|
15069
|
+
"2025-12-09T00:00:00Z"
|
|
15070
15070
|
]
|
|
15071
15071
|
},
|
|
15072
15072
|
"deleted_reason": {
|
|
@@ -15097,7 +15097,7 @@
|
|
|
15097
15097
|
"title": "Last Updated At",
|
|
15098
15098
|
"description": "Timestamp of last change to batch",
|
|
15099
15099
|
"examples": [
|
|
15100
|
-
"2025-12-
|
|
15100
|
+
"2025-12-09T00:00:00Z"
|
|
15101
15101
|
]
|
|
15102
15102
|
},
|
|
15103
15103
|
"last_updated_by": {
|
|
@@ -15140,7 +15140,7 @@
|
|
|
15140
15140
|
"title": "Batch Id",
|
|
15141
15141
|
"description": "Unique ID for conversation batch",
|
|
15142
15142
|
"examples": [
|
|
15143
|
-
"
|
|
15143
|
+
"20251209.9"
|
|
15144
15144
|
]
|
|
15145
15145
|
},
|
|
15146
15146
|
"campaign_id": {
|
|
@@ -15164,7 +15164,7 @@
|
|
|
15164
15164
|
"title": "Expires On",
|
|
15165
15165
|
"description": "Timestamp of batch expiration",
|
|
15166
15166
|
"examples": [
|
|
15167
|
-
"2025-12-
|
|
15167
|
+
"2025-12-10T00:00:00Z"
|
|
15168
15168
|
]
|
|
15169
15169
|
},
|
|
15170
15170
|
"paused": {
|
|
@@ -15313,7 +15313,7 @@
|
|
|
15313
15313
|
"title": "Created At",
|
|
15314
15314
|
"description": "Timestamp of request creation",
|
|
15315
15315
|
"examples": [
|
|
15316
|
-
"2025-12-
|
|
15316
|
+
"2025-12-08T00:00:00Z"
|
|
15317
15317
|
]
|
|
15318
15318
|
},
|
|
15319
15319
|
"sent_at": {
|
|
@@ -15329,7 +15329,7 @@
|
|
|
15329
15329
|
"title": "Sent At",
|
|
15330
15330
|
"description": "Timestamp at which request was sent",
|
|
15331
15331
|
"examples": [
|
|
15332
|
-
"2025-12-
|
|
15332
|
+
"2025-12-09T00:00:00Z"
|
|
15333
15333
|
]
|
|
15334
15334
|
},
|
|
15335
15335
|
"attempt_count": {
|
|
@@ -18179,7 +18179,7 @@
|
|
|
18179
18179
|
"title": "Created At",
|
|
18180
18180
|
"description": "Timestamp at which insight upload folder was created",
|
|
18181
18181
|
"examples": [
|
|
18182
|
-
"2025-12-
|
|
18182
|
+
"2025-12-08T00:00:00Z"
|
|
18183
18183
|
]
|
|
18184
18184
|
},
|
|
18185
18185
|
"updated_at": {
|
|
@@ -18188,7 +18188,7 @@
|
|
|
18188
18188
|
"title": "Updated At",
|
|
18189
18189
|
"description": "Timestamp at which insight upload folder was last updated",
|
|
18190
18190
|
"examples": [
|
|
18191
|
-
"2025-12-
|
|
18191
|
+
"2025-12-09T00:00:00Z"
|
|
18192
18192
|
]
|
|
18193
18193
|
},
|
|
18194
18194
|
"last_updated_by": {
|
|
@@ -18316,8 +18316,12 @@
|
|
|
18316
18316
|
},
|
|
18317
18317
|
"action": {
|
|
18318
18318
|
"type": "string",
|
|
18319
|
-
"
|
|
18319
|
+
"enum": [
|
|
18320
|
+
"get",
|
|
18321
|
+
"load"
|
|
18322
|
+
],
|
|
18320
18323
|
"title": "Action",
|
|
18324
|
+
"description": "Populate default input values.",
|
|
18321
18325
|
"default": "get"
|
|
18322
18326
|
},
|
|
18323
18327
|
"inputs": {
|
|
@@ -19154,7 +19158,7 @@
|
|
|
19154
19158
|
"title": "Created At",
|
|
19155
19159
|
"description": "Timestamp of at which insight tool configuration was created",
|
|
19156
19160
|
"examples": [
|
|
19157
|
-
"2025-12-
|
|
19161
|
+
"2025-12-08T00:00:00Z"
|
|
19158
19162
|
]
|
|
19159
19163
|
},
|
|
19160
19164
|
"updated_at": {
|
|
@@ -19163,7 +19167,7 @@
|
|
|
19163
19167
|
"title": "Updated At",
|
|
19164
19168
|
"description": "Timestamp at which insight tool configuration was last updated",
|
|
19165
19169
|
"examples": [
|
|
19166
|
-
"2025-12-
|
|
19170
|
+
"2025-12-09T00:00:00Z"
|
|
19167
19171
|
]
|
|
19168
19172
|
},
|
|
19169
19173
|
"last_updated_by": {
|
|
@@ -19544,7 +19548,7 @@
|
|
|
19544
19548
|
"title": "Start Datetime",
|
|
19545
19549
|
"description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
|
|
19546
19550
|
"examples": [
|
|
19547
|
-
"2025-12-
|
|
19551
|
+
"2025-12-08T00:00:00Z"
|
|
19548
19552
|
]
|
|
19549
19553
|
},
|
|
19550
19554
|
"end_datetime": {
|
|
@@ -19560,7 +19564,7 @@
|
|
|
19560
19564
|
"title": "End Datetime",
|
|
19561
19565
|
"description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
|
|
19562
19566
|
"examples": [
|
|
19563
|
-
"2025-12-
|
|
19567
|
+
"2025-12-09T00:00:00Z"
|
|
19564
19568
|
]
|
|
19565
19569
|
}
|
|
19566
19570
|
},
|
|
@@ -19635,7 +19639,7 @@
|
|
|
19635
19639
|
"title": "Start Datetime",
|
|
19636
19640
|
"description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
|
|
19637
19641
|
"examples": [
|
|
19638
|
-
"2025-12-
|
|
19642
|
+
"2025-12-08T00:00:00Z"
|
|
19639
19643
|
]
|
|
19640
19644
|
},
|
|
19641
19645
|
"end_datetime": {
|
|
@@ -19651,7 +19655,7 @@
|
|
|
19651
19655
|
"title": "End Datetime",
|
|
19652
19656
|
"description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
|
|
19653
19657
|
"examples": [
|
|
19654
|
-
"2025-12-
|
|
19658
|
+
"2025-12-09T00:00:00Z"
|
|
19655
19659
|
]
|
|
19656
19660
|
},
|
|
19657
19661
|
"id": {
|
|
@@ -19704,7 +19708,7 @@
|
|
|
19704
19708
|
"title": "Created At",
|
|
19705
19709
|
"description": "Timestamp at which the insight workflow was created",
|
|
19706
19710
|
"examples": [
|
|
19707
|
-
"2025-12-
|
|
19711
|
+
"2025-12-08T00:00:00Z"
|
|
19708
19712
|
]
|
|
19709
19713
|
},
|
|
19710
19714
|
"updated_at": {
|
|
@@ -19713,7 +19717,7 @@
|
|
|
19713
19717
|
"title": "Updated At",
|
|
19714
19718
|
"description": "Timestamp of most recent update to the insight workflow",
|
|
19715
19719
|
"examples": [
|
|
19716
|
-
"2025-12-
|
|
19720
|
+
"2025-12-09T00:00:00Z"
|
|
19717
19721
|
]
|
|
19718
19722
|
},
|
|
19719
19723
|
"last_updated_by": {
|
|
@@ -19809,7 +19813,7 @@
|
|
|
19809
19813
|
"title": "Created At",
|
|
19810
19814
|
"description": "Timestamp at which insight upload folder was created",
|
|
19811
19815
|
"examples": [
|
|
19812
|
-
"2025-12-
|
|
19816
|
+
"2025-12-08T00:00:00Z"
|
|
19813
19817
|
]
|
|
19814
19818
|
},
|
|
19815
19819
|
"updated_at": {
|
|
@@ -19818,7 +19822,7 @@
|
|
|
19818
19822
|
"title": "Updated At",
|
|
19819
19823
|
"description": "Timestamp at which insight upload folder was last updated",
|
|
19820
19824
|
"examples": [
|
|
19821
|
-
"2025-12-
|
|
19825
|
+
"2025-12-09T00:00:00Z"
|
|
19822
19826
|
]
|
|
19823
19827
|
},
|
|
19824
19828
|
"last_updated_by": {
|
|
@@ -20053,7 +20057,7 @@
|
|
|
20053
20057
|
"title": "Created At",
|
|
20054
20058
|
"description": "Timestamp at which insight tool result was created",
|
|
20055
20059
|
"examples": [
|
|
20056
|
-
"2025-12-
|
|
20060
|
+
"2025-12-08T00:00:00Z"
|
|
20057
20061
|
]
|
|
20058
20062
|
},
|
|
20059
20063
|
"updated_at": {
|
|
@@ -20062,7 +20066,7 @@
|
|
|
20062
20066
|
"title": "Updated At",
|
|
20063
20067
|
"description": "Timestamp at which insight tool result was last updated",
|
|
20064
20068
|
"examples": [
|
|
20065
|
-
"2025-12-
|
|
20069
|
+
"2025-12-09T00:00:00Z"
|
|
20066
20070
|
]
|
|
20067
20071
|
},
|
|
20068
20072
|
"upload_file_metadata": {
|
|
@@ -20207,7 +20211,7 @@
|
|
|
20207
20211
|
"title": "Start Time",
|
|
20208
20212
|
"description": "Start time of the uploaded file",
|
|
20209
20213
|
"examples": [
|
|
20210
|
-
"2025-12-
|
|
20214
|
+
"2025-12-08T00:00:00Z"
|
|
20211
20215
|
]
|
|
20212
20216
|
},
|
|
20213
20217
|
"end_time": {
|
|
@@ -20223,7 +20227,7 @@
|
|
|
20223
20227
|
"title": "End Time",
|
|
20224
20228
|
"description": "End time of the uploaded file",
|
|
20225
20229
|
"examples": [
|
|
20226
|
-
"2025-12-
|
|
20230
|
+
"2025-12-09T00:00:00Z"
|
|
20227
20231
|
]
|
|
20228
20232
|
},
|
|
20229
20233
|
"error_message": {
|
|
@@ -20278,7 +20282,7 @@
|
|
|
20278
20282
|
"title": "Created At",
|
|
20279
20283
|
"description": "Timestamp at which insight upload file was created",
|
|
20280
20284
|
"examples": [
|
|
20281
|
-
"2025-12-
|
|
20285
|
+
"2025-12-08T00:00:00Z"
|
|
20282
20286
|
]
|
|
20283
20287
|
}
|
|
20284
20288
|
},
|
|
@@ -23637,7 +23641,7 @@
|
|
|
23637
23641
|
"title": "Created At",
|
|
23638
23642
|
"description": "Timestamp of campaign creation",
|
|
23639
23643
|
"examples": [
|
|
23640
|
-
"2025-12-
|
|
23644
|
+
"2025-12-09T00:00:00Z"
|
|
23641
23645
|
]
|
|
23642
23646
|
},
|
|
23643
23647
|
"updated_at": {
|
|
@@ -23646,7 +23650,7 @@
|
|
|
23646
23650
|
"title": "Updated At",
|
|
23647
23651
|
"description": "Timestamp of campaign update",
|
|
23648
23652
|
"examples": [
|
|
23649
|
-
"2025-12-
|
|
23653
|
+
"2025-12-09T00:00:00Z"
|
|
23650
23654
|
]
|
|
23651
23655
|
},
|
|
23652
23656
|
"last_updated_by": {
|
|
@@ -26687,6 +26691,7 @@
|
|
|
26687
26691
|
"call": "#/components/schemas/CallAction",
|
|
26688
26692
|
"get": "#/components/schemas/GetValueAction",
|
|
26689
26693
|
"inc": "#/components/schemas/IncrementAction",
|
|
26694
|
+
"load": "#/components/schemas/GetValueAction",
|
|
26690
26695
|
"say": "#/components/schemas/SayAction",
|
|
26691
26696
|
"set": "#/components/schemas/SetValueAction"
|
|
26692
26697
|
}
|
|
@@ -26724,6 +26729,7 @@
|
|
|
26724
26729
|
"mapping": {
|
|
26725
26730
|
"get": "#/components/schemas/GetValueAction",
|
|
26726
26731
|
"inc": "#/components/schemas/IncrementAction",
|
|
26732
|
+
"load": "#/components/schemas/GetValueAction",
|
|
26727
26733
|
"save": "#/components/schemas/SaveAction",
|
|
26728
26734
|
"set": "#/components/schemas/SetValueAction"
|
|
26729
26735
|
}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.2",
|
|
64
|
-
sdkVersion: "1.0.16-rc.
|
|
65
|
-
genVersion: "2.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.16-rc.
|
|
64
|
+
sdkVersion: "1.0.16-rc.3",
|
|
65
|
+
genVersion: "2.774.0",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.16-rc.3 2.774.0 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
import {
|
|
@@ -56,6 +57,18 @@ export type GetValueActionIf =
|
|
|
56
57
|
| (JMESPathExpression & { type: "jp" })
|
|
57
58
|
| string;
|
|
58
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
|
+
|
|
59
72
|
export type GetValueAction = {
|
|
60
73
|
/**
|
|
61
74
|
* Initial value of the variable.
|
|
@@ -83,7 +96,10 @@ export type GetValueAction = {
|
|
|
83
96
|
| string
|
|
84
97
|
| null
|
|
85
98
|
| undefined;
|
|
86
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Populate default input values.
|
|
101
|
+
*/
|
|
102
|
+
action?: Action | undefined;
|
|
87
103
|
/**
|
|
88
104
|
* Input field names to populate; None populates all step inputs.
|
|
89
105
|
*/
|
|
@@ -306,6 +322,13 @@ export function getValueActionIfFromJSON(
|
|
|
306
322
|
);
|
|
307
323
|
}
|
|
308
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
|
+
|
|
309
332
|
/** @internal */
|
|
310
333
|
export const GetValueAction$inboundSchema: z.ZodType<
|
|
311
334
|
GetValueAction,
|
|
@@ -343,7 +366,7 @@ export const GetValueAction$inboundSchema: z.ZodType<
|
|
|
343
366
|
z.string(),
|
|
344
367
|
]),
|
|
345
368
|
).optional(),
|
|
346
|
-
action:
|
|
369
|
+
action: Action$inboundSchema.default("get"),
|
|
347
370
|
inputs: z.nullable(z.array(z.string())).optional(),
|
|
348
371
|
overwrite: z.boolean().default(false),
|
|
349
372
|
}).transform((v) => {
|
|
@@ -370,7 +393,7 @@ export type GetValueAction$Outbound = {
|
|
|
370
393
|
| string
|
|
371
394
|
| null
|
|
372
395
|
| undefined;
|
|
373
|
-
action:
|
|
396
|
+
action: string;
|
|
374
397
|
inputs?: Array<string> | null | undefined;
|
|
375
398
|
overwrite: boolean;
|
|
376
399
|
};
|
|
@@ -412,7 +435,7 @@ export const GetValueAction$outboundSchema: z.ZodType<
|
|
|
412
435
|
z.string(),
|
|
413
436
|
]),
|
|
414
437
|
).optional(),
|
|
415
|
-
action:
|
|
438
|
+
action: Action$outboundSchema.default("get"),
|
|
416
439
|
inputs: z.nullable(z.array(z.string())).optional(),
|
|
417
440
|
overwrite: z.boolean().default(false),
|
|
418
441
|
}).transform((v) => {
|
|
@@ -51,14 +51,16 @@ export type StepEventActionsStart =
|
|
|
51
51
|
|
|
52
52
|
export type Enter =
|
|
53
53
|
| CallAction
|
|
54
|
-
| GetValueAction
|
|
54
|
+
| (GetValueAction & { action: "get" })
|
|
55
55
|
| IncrementAction
|
|
56
|
+
| (GetValueAction & { action: "load" })
|
|
56
57
|
| SayAction
|
|
57
58
|
| SetValueAction;
|
|
58
59
|
|
|
59
60
|
export type Presubmit =
|
|
60
|
-
| GetValueAction
|
|
61
|
+
| (GetValueAction & { action: "get" })
|
|
61
62
|
| IncrementAction
|
|
63
|
+
| (GetValueAction & { action: "load" })
|
|
62
64
|
| SaveAction
|
|
63
65
|
| SetValueAction;
|
|
64
66
|
|
|
@@ -85,7 +87,12 @@ export type StepEventActions = {
|
|
|
85
87
|
*/
|
|
86
88
|
enter?:
|
|
87
89
|
| Array<
|
|
88
|
-
|
|
90
|
+
| CallAction
|
|
91
|
+
| (GetValueAction & { action: "get" })
|
|
92
|
+
| IncrementAction
|
|
93
|
+
| (GetValueAction & { action: "load" })
|
|
94
|
+
| SayAction
|
|
95
|
+
| SetValueAction
|
|
89
96
|
>
|
|
90
97
|
| null
|
|
91
98
|
| undefined;
|
|
@@ -93,7 +100,13 @@ export type StepEventActions = {
|
|
|
93
100
|
* Actions to execute before validation (data-mutation only: set, inc, save). Use this to set default values for required fields that would otherwise fail validation.
|
|
94
101
|
*/
|
|
95
102
|
presubmit?:
|
|
96
|
-
| Array<
|
|
103
|
+
| Array<
|
|
104
|
+
| (GetValueAction & { action: "get" })
|
|
105
|
+
| IncrementAction
|
|
106
|
+
| (GetValueAction & { action: "load" })
|
|
107
|
+
| SaveAction
|
|
108
|
+
| SetValueAction
|
|
109
|
+
>
|
|
97
110
|
| null
|
|
98
111
|
| undefined;
|
|
99
112
|
/**
|
|
@@ -158,16 +171,18 @@ export function stepEventActionsStartFromJSON(
|
|
|
158
171
|
export const Enter$inboundSchema: z.ZodType<Enter, z.ZodTypeDef, unknown> = z
|
|
159
172
|
.union([
|
|
160
173
|
CallAction$inboundSchema,
|
|
161
|
-
GetValueAction$inboundSchema,
|
|
174
|
+
GetValueAction$inboundSchema.and(z.object({ action: z.literal("get") })),
|
|
162
175
|
IncrementAction$inboundSchema,
|
|
176
|
+
GetValueAction$inboundSchema.and(z.object({ action: z.literal("load") })),
|
|
163
177
|
SayAction$inboundSchema,
|
|
164
178
|
SetValueAction$inboundSchema,
|
|
165
179
|
]);
|
|
166
180
|
/** @internal */
|
|
167
181
|
export type Enter$Outbound =
|
|
168
182
|
| CallAction$Outbound
|
|
169
|
-
| GetValueAction$Outbound
|
|
183
|
+
| (GetValueAction$Outbound & { action: "get" })
|
|
170
184
|
| IncrementAction$Outbound
|
|
185
|
+
| (GetValueAction$Outbound & { action: "load" })
|
|
171
186
|
| SayAction$Outbound
|
|
172
187
|
| SetValueAction$Outbound;
|
|
173
188
|
|
|
@@ -178,8 +193,9 @@ export const Enter$outboundSchema: z.ZodType<
|
|
|
178
193
|
Enter
|
|
179
194
|
> = z.union([
|
|
180
195
|
CallAction$outboundSchema,
|
|
181
|
-
GetValueAction$outboundSchema,
|
|
196
|
+
GetValueAction$outboundSchema.and(z.object({ action: z.literal("get") })),
|
|
182
197
|
IncrementAction$outboundSchema,
|
|
198
|
+
GetValueAction$outboundSchema.and(z.object({ action: z.literal("load") })),
|
|
183
199
|
SayAction$outboundSchema,
|
|
184
200
|
SetValueAction$outboundSchema,
|
|
185
201
|
]);
|
|
@@ -203,15 +219,17 @@ export const Presubmit$inboundSchema: z.ZodType<
|
|
|
203
219
|
z.ZodTypeDef,
|
|
204
220
|
unknown
|
|
205
221
|
> = z.union([
|
|
206
|
-
GetValueAction$inboundSchema,
|
|
222
|
+
GetValueAction$inboundSchema.and(z.object({ action: z.literal("get") })),
|
|
207
223
|
IncrementAction$inboundSchema,
|
|
224
|
+
GetValueAction$inboundSchema.and(z.object({ action: z.literal("load") })),
|
|
208
225
|
SaveAction$inboundSchema,
|
|
209
226
|
SetValueAction$inboundSchema,
|
|
210
227
|
]);
|
|
211
228
|
/** @internal */
|
|
212
229
|
export type Presubmit$Outbound =
|
|
213
|
-
| GetValueAction$Outbound
|
|
230
|
+
| (GetValueAction$Outbound & { action: "get" })
|
|
214
231
|
| IncrementAction$Outbound
|
|
232
|
+
| (GetValueAction$Outbound & { action: "load" })
|
|
215
233
|
| SaveAction$Outbound
|
|
216
234
|
| SetValueAction$Outbound;
|
|
217
235
|
|
|
@@ -221,8 +239,9 @@ export const Presubmit$outboundSchema: z.ZodType<
|
|
|
221
239
|
z.ZodTypeDef,
|
|
222
240
|
Presubmit
|
|
223
241
|
> = z.union([
|
|
224
|
-
GetValueAction$outboundSchema,
|
|
242
|
+
GetValueAction$outboundSchema.and(z.object({ action: z.literal("get") })),
|
|
225
243
|
IncrementAction$outboundSchema,
|
|
244
|
+
GetValueAction$outboundSchema.and(z.object({ action: z.literal("load") })),
|
|
226
245
|
SaveAction$outboundSchema,
|
|
227
246
|
SetValueAction$outboundSchema,
|
|
228
247
|
]);
|
|
@@ -310,8 +329,13 @@ export const StepEventActions$inboundSchema: z.ZodType<
|
|
|
310
329
|
z.array(
|
|
311
330
|
z.union([
|
|
312
331
|
CallAction$inboundSchema,
|
|
313
|
-
GetValueAction$inboundSchema
|
|
332
|
+
GetValueAction$inboundSchema.and(
|
|
333
|
+
z.object({ action: z.literal("get") }),
|
|
334
|
+
),
|
|
314
335
|
IncrementAction$inboundSchema,
|
|
336
|
+
GetValueAction$inboundSchema.and(
|
|
337
|
+
z.object({ action: z.literal("load") }),
|
|
338
|
+
),
|
|
315
339
|
SayAction$inboundSchema,
|
|
316
340
|
SetValueAction$inboundSchema,
|
|
317
341
|
]),
|
|
@@ -320,8 +344,13 @@ export const StepEventActions$inboundSchema: z.ZodType<
|
|
|
320
344
|
presubmit: z.nullable(
|
|
321
345
|
z.array(
|
|
322
346
|
z.union([
|
|
323
|
-
GetValueAction$inboundSchema
|
|
347
|
+
GetValueAction$inboundSchema.and(
|
|
348
|
+
z.object({ action: z.literal("get") }),
|
|
349
|
+
),
|
|
324
350
|
IncrementAction$inboundSchema,
|
|
351
|
+
GetValueAction$inboundSchema.and(
|
|
352
|
+
z.object({ action: z.literal("load") }),
|
|
353
|
+
),
|
|
325
354
|
SaveAction$inboundSchema,
|
|
326
355
|
SetValueAction$inboundSchema,
|
|
327
356
|
]),
|
|
@@ -353,8 +382,9 @@ export type StepEventActions$Outbound = {
|
|
|
353
382
|
enter?:
|
|
354
383
|
| Array<
|
|
355
384
|
| CallAction$Outbound
|
|
356
|
-
| GetValueAction$Outbound
|
|
385
|
+
| (GetValueAction$Outbound & { action: "get" })
|
|
357
386
|
| IncrementAction$Outbound
|
|
387
|
+
| (GetValueAction$Outbound & { action: "load" })
|
|
358
388
|
| SayAction$Outbound
|
|
359
389
|
| SetValueAction$Outbound
|
|
360
390
|
>
|
|
@@ -362,8 +392,9 @@ export type StepEventActions$Outbound = {
|
|
|
362
392
|
| undefined;
|
|
363
393
|
presubmit?:
|
|
364
394
|
| Array<
|
|
365
|
-
| GetValueAction$Outbound
|
|
395
|
+
| (GetValueAction$Outbound & { action: "get" })
|
|
366
396
|
| IncrementAction$Outbound
|
|
397
|
+
| (GetValueAction$Outbound & { action: "load" })
|
|
367
398
|
| SaveAction$Outbound
|
|
368
399
|
| SetValueAction$Outbound
|
|
369
400
|
>
|
|
@@ -401,8 +432,13 @@ export const StepEventActions$outboundSchema: z.ZodType<
|
|
|
401
432
|
z.array(
|
|
402
433
|
z.union([
|
|
403
434
|
CallAction$outboundSchema,
|
|
404
|
-
GetValueAction$outboundSchema
|
|
435
|
+
GetValueAction$outboundSchema.and(
|
|
436
|
+
z.object({ action: z.literal("get") }),
|
|
437
|
+
),
|
|
405
438
|
IncrementAction$outboundSchema,
|
|
439
|
+
GetValueAction$outboundSchema.and(
|
|
440
|
+
z.object({ action: z.literal("load") }),
|
|
441
|
+
),
|
|
406
442
|
SayAction$outboundSchema,
|
|
407
443
|
SetValueAction$outboundSchema,
|
|
408
444
|
]),
|
|
@@ -411,8 +447,13 @@ export const StepEventActions$outboundSchema: z.ZodType<
|
|
|
411
447
|
presubmit: z.nullable(
|
|
412
448
|
z.array(
|
|
413
449
|
z.union([
|
|
414
|
-
GetValueAction$outboundSchema
|
|
450
|
+
GetValueAction$outboundSchema.and(
|
|
451
|
+
z.object({ action: z.literal("get") }),
|
|
452
|
+
),
|
|
415
453
|
IncrementAction$outboundSchema,
|
|
454
|
+
GetValueAction$outboundSchema.and(
|
|
455
|
+
z.object({ action: z.literal("load") }),
|
|
456
|
+
),
|
|
416
457
|
SaveAction$outboundSchema,
|
|
417
458
|
SetValueAction$outboundSchema,
|
|
418
459
|
]),
|