@@ -42,6 +42,32 @@ export interface WorkflowStartUpdateOutput {
42
42
readonly outcome ?: temporal . api . update . v1 . IOutcome ;
43
43
}
44
44
45
+ /**
46
+ * Input for WorkflowClientInterceptor.startUpdateWithStart
47
+ *
48
+ * @experimental Update-with-Start is an experimental feature and may be subject to change.
49
+ */
50
+ export interface WorkflowStartUpdateWithStartInput {
51
+ readonly workflowType : string ;
52
+ readonly workflowStartOptions : CompiledWorkflowOptions ;
53
+ readonly workflowStartHeaders : Headers ;
54
+ readonly updateName : string ;
55
+ readonly updateArgs : unknown [ ] ;
56
+ readonly updateOptions : WorkflowUpdateOptions ;
57
+ readonly updateHeaders : Headers ;
58
+ }
59
+
60
+ /**
61
+ * Output for WorkflowClientInterceptor.startUpdateWithStart
62
+ *
63
+ * @experimental Update-with-Start is an experimental feature and may be subject to change.
64
+ */
65
+ export interface WorkflowStartUpdateWithStartOutput {
66
+ readonly workflowExecution : WorkflowExecution ;
67
+ readonly updateId : string ;
68
+ readonly updateOutcome ?: temporal . api . update . v1 . IOutcome ;
69
+ }
70
+
45
71
/** Input for WorkflowClientInterceptor.signal */
46
72
export interface WorkflowSignalInput {
47
73
readonly signalName : string ;
@@ -105,6 +131,15 @@ export interface WorkflowClientInterceptor {
105
131
input : WorkflowStartUpdateInput ,
106
132
next : Next < this, 'startUpdate' >
107
133
) => Promise < WorkflowStartUpdateOutput > ;
134
+ /**
135
+ * Intercept a service call to startUpdateWithStart
136
+ *
137
+ * @experimental Update-with-Start is an experimental feature and may be subject to change.
138
+ */
139
+ startUpdateWithStart ?: (
140
+ input : WorkflowStartUpdateWithStartInput ,
141
+ next : Next < this, 'startUpdateWithStart' >
142
+ ) => Promise < WorkflowStartUpdateWithStartOutput > ;
108
143
/**
109
144
* Intercept a service call to signalWorkflowExecution
110
145
*
0 commit comments