@@ -131,6 +131,7 @@ enum DecisionType {
131131 ContinueAsNewWorkflowExecution ,
132132 StartChildWorkflowExecution ,
133133 SignalExternalWorkflowExecution ,
134+ UpsertWorkflowSearchAttributes ,
134135}
135136
136137enum EventType {
@@ -175,6 +176,7 @@ enum EventType {
175176 SignalExternalWorkflowExecutionInitiated ,
176177 SignalExternalWorkflowExecutionFailed ,
177178 ExternalWorkflowExecutionSignaled ,
179+ UpsertWorkflowSearchAttributes ,
178180}
179181
180182enum DecisionTaskFailedCause {
@@ -200,6 +202,7 @@ enum DecisionTaskFailedCause {
200202 RESET_WORKFLOW ,
201203 BAD_BINARY ,
202204 SCHEDULE_ACTIVITY_DUPLICATE_ID ,
205+ BAD_SEARCH_ATTRIBUTES ,
203206}
204207
205208enum CancelExternalWorkflowExecutionFailedCause {
@@ -396,6 +399,10 @@ struct SignalExternalWorkflowExecutionDecisionAttributes {
396399 60: optional bool childWorkflowOnly
397400}
398401
402+ struct UpsertWorkflowSearchAttributesDecisionAttributes {
403+ 10: optional SearchAttributes searchAttributes
404+ }
405+
399406struct RecordMarkerDecisionAttributes {
400407 10: optional string markerName
401408 20: optional binary details
@@ -448,6 +455,7 @@ struct Decision {
448455 90: optional ContinueAsNewWorkflowExecutionDecisionAttributes continueAsNewWorkflowExecutionDecisionAttributes
449456 100: optional StartChildWorkflowExecutionDecisionAttributes startChildWorkflowExecutionDecisionAttributes
450457 110: optional SignalExternalWorkflowExecutionDecisionAttributes signalExternalWorkflowExecutionDecisionAttributes
458+ 120: optional UpsertWorkflowSearchAttributesDecisionAttributes upsertWorkflowSearchAttributesDecisionAttributes
451459}
452460
453461struct WorkflowExecutionStartedEventAttributes {
@@ -736,6 +744,11 @@ struct ExternalWorkflowExecutionSignaledEventAttributes {
736744 40: optional binary control
737745}
738746
747+ struct UpsertWorkflowSearchAttributesEventAttributes {
748+ 10: optional i64 (js.type = " Long" ) decisionTaskCompletedEventId
749+ 20: optional SearchAttributes searchAttributes
750+ }
751+
739752struct StartChildWorkflowExecutionInitiatedEventAttributes {
740753 10: optional string domain
741754 20: optional string workflowId
@@ -863,6 +876,7 @@ struct HistoryEvent {
863876 420: optional SignalExternalWorkflowExecutionInitiatedEventAttributes signalExternalWorkflowExecutionInitiatedEventAttributes
864877 430: optional SignalExternalWorkflowExecutionFailedEventAttributes signalExternalWorkflowExecutionFailedEventAttributes
865878 440: optional ExternalWorkflowExecutionSignaledEventAttributes externalWorkflowExecutionSignaledEventAttributes
879+ 450: optional UpsertWorkflowSearchAttributesEventAttributes upsertWorkflowSearchAttributesEventAttributes
866880}
867881
868882struct History {
0 commit comments