temporalio 1.1.0-aarch64-linux-musl → 1.2.0-aarch64-linux-musl

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -4
  3. data/lib/temporalio/activity/definition.rb +6 -1
  4. data/lib/temporalio/api/activity/v1/message.rb +11 -2
  5. data/lib/temporalio/api/command/v1/message.rb +1 -1
  6. data/lib/temporalio/api/common/v1/message.rb +2 -1
  7. data/lib/temporalio/api/deployment/v1/message.rb +2 -1
  8. data/lib/temporalio/api/enums/v1/activity.rb +23 -0
  9. data/lib/temporalio/api/enums/v1/event_type.rb +1 -1
  10. data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
  11. data/lib/temporalio/api/enums/v1/task_queue.rb +2 -1
  12. data/lib/temporalio/api/enums/v1/workflow.rb +3 -1
  13. data/lib/temporalio/api/errordetails/v1/message.rb +2 -1
  14. data/lib/temporalio/api/history/v1/message.rb +3 -1
  15. data/lib/temporalio/api/namespace/v1/message.rb +2 -1
  16. data/lib/temporalio/api/nexus/v1/message.rb +1 -1
  17. data/lib/temporalio/api/operatorservice/v1/request_response.rb +1 -1
  18. data/lib/temporalio/api/payload_visitor.rb +64 -0
  19. data/lib/temporalio/api/taskqueue/v1/message.rb +1 -1
  20. data/lib/temporalio/api/worker/v1/message.rb +1 -1
  21. data/lib/temporalio/api/workflow/v1/message.rb +2 -1
  22. data/lib/temporalio/api/workflowservice/v1/request_response.rb +23 -1
  23. data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
  24. data/lib/temporalio/client/connection/workflow_service.rb +150 -0
  25. data/lib/temporalio/client/connection.rb +17 -3
  26. data/lib/temporalio/client/plugin.rb +42 -0
  27. data/lib/temporalio/client.rb +82 -13
  28. data/lib/temporalio/converters/payload_converter/binary_protobuf.rb +4 -1
  29. data/lib/temporalio/converters/payload_converter/json_protobuf.rb +4 -1
  30. data/lib/temporalio/env_config.rb +2 -11
  31. data/lib/temporalio/internal/bridge/3.3/temporalio_bridge.so +0 -0
  32. data/lib/temporalio/internal/bridge/3.4/temporalio_bridge.so +0 -0
  33. data/lib/temporalio/internal/bridge/{3.2 → 4.0}/temporalio_bridge.so +0 -0
  34. data/lib/temporalio/internal/bridge/api/core_interface.rb +3 -1
  35. data/lib/temporalio/internal/bridge/api/nexus/nexus.rb +2 -1
  36. data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
  37. data/lib/temporalio/internal/bridge/worker.rb +1 -0
  38. data/lib/temporalio/internal/worker/workflow_instance/context.rb +4 -0
  39. data/lib/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rb +1 -1
  40. data/lib/temporalio/internal/worker/workflow_instance/handler_hash.rb +1 -1
  41. data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +8 -4
  42. data/lib/temporalio/internal/worker/workflow_instance/outbound_implementation.rb +32 -11
  43. data/lib/temporalio/internal/worker/workflow_instance/replay_safe_logger.rb +2 -1
  44. data/lib/temporalio/internal/worker/workflow_instance/replay_safe_metric.rb +2 -1
  45. data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +10 -1
  46. data/lib/temporalio/internal/worker/workflow_instance.rb +15 -11
  47. data/lib/temporalio/simple_plugin.rb +192 -0
  48. data/lib/temporalio/version.rb +1 -1
  49. data/lib/temporalio/worker/plugin.rb +88 -0
  50. data/lib/temporalio/worker/workflow_replayer.rb +28 -5
  51. data/lib/temporalio/worker.rb +116 -42
  52. data/lib/temporalio/workflow/definition.rb +3 -1
  53. data/lib/temporalio/workflow.rb +8 -1
  54. data/temporalio.gemspec +1 -1
  55. metadata +9 -5
@@ -1425,6 +1425,156 @@ module Temporalio
1425
1425
  rpc_options:
1426
1426
  )
1427
1427
  end
1428
+
1429
+ # Calls WorkflowService.PauseWorkflowExecution API call.
1430
+ #
1431
+ # @param request [Temporalio::Api::WorkflowService::V1::PauseWorkflowExecutionRequest] API request.
1432
+ # @param rpc_options [RPCOptions, nil] Advanced RPC options.
1433
+ # @return [Temporalio::Api::WorkflowService::V1::PauseWorkflowExecutionResponse] API response.
1434
+ def pause_workflow_execution(request, rpc_options: nil)
1435
+ invoke_rpc(
1436
+ rpc: 'pause_workflow_execution',
1437
+ request_class: Temporalio::Api::WorkflowService::V1::PauseWorkflowExecutionRequest,
1438
+ response_class: Temporalio::Api::WorkflowService::V1::PauseWorkflowExecutionResponse,
1439
+ request:,
1440
+ rpc_options:
1441
+ )
1442
+ end
1443
+
1444
+ # Calls WorkflowService.UnpauseWorkflowExecution API call.
1445
+ #
1446
+ # @param request [Temporalio::Api::WorkflowService::V1::UnpauseWorkflowExecutionRequest] API request.
1447
+ # @param rpc_options [RPCOptions, nil] Advanced RPC options.
1448
+ # @return [Temporalio::Api::WorkflowService::V1::UnpauseWorkflowExecutionResponse] API response.
1449
+ def unpause_workflow_execution(request, rpc_options: nil)
1450
+ invoke_rpc(
1451
+ rpc: 'unpause_workflow_execution',
1452
+ request_class: Temporalio::Api::WorkflowService::V1::UnpauseWorkflowExecutionRequest,
1453
+ response_class: Temporalio::Api::WorkflowService::V1::UnpauseWorkflowExecutionResponse,
1454
+ request:,
1455
+ rpc_options:
1456
+ )
1457
+ end
1458
+
1459
+ # Calls WorkflowService.StartActivityExecution API call.
1460
+ #
1461
+ # @param request [Temporalio::Api::WorkflowService::V1::StartActivityExecutionRequest] API request.
1462
+ # @param rpc_options [RPCOptions, nil] Advanced RPC options.
1463
+ # @return [Temporalio::Api::WorkflowService::V1::StartActivityExecutionResponse] API response.
1464
+ def start_activity_execution(request, rpc_options: nil)
1465
+ invoke_rpc(
1466
+ rpc: 'start_activity_execution',
1467
+ request_class: Temporalio::Api::WorkflowService::V1::StartActivityExecutionRequest,
1468
+ response_class: Temporalio::Api::WorkflowService::V1::StartActivityExecutionResponse,
1469
+ request:,
1470
+ rpc_options:
1471
+ )
1472
+ end
1473
+
1474
+ # Calls WorkflowService.DescribeActivityExecution API call.
1475
+ #
1476
+ # @param request [Temporalio::Api::WorkflowService::V1::DescribeActivityExecutionRequest] API request.
1477
+ # @param rpc_options [RPCOptions, nil] Advanced RPC options.
1478
+ # @return [Temporalio::Api::WorkflowService::V1::DescribeActivityExecutionResponse] API response.
1479
+ def describe_activity_execution(request, rpc_options: nil)
1480
+ invoke_rpc(
1481
+ rpc: 'describe_activity_execution',
1482
+ request_class: Temporalio::Api::WorkflowService::V1::DescribeActivityExecutionRequest,
1483
+ response_class: Temporalio::Api::WorkflowService::V1::DescribeActivityExecutionResponse,
1484
+ request:,
1485
+ rpc_options:
1486
+ )
1487
+ end
1488
+
1489
+ # Calls WorkflowService.PollActivityExecution API call.
1490
+ #
1491
+ # @param request [Temporalio::Api::WorkflowService::V1::PollActivityExecutionRequest] API request.
1492
+ # @param rpc_options [RPCOptions, nil] Advanced RPC options.
1493
+ # @return [Temporalio::Api::WorkflowService::V1::PollActivityExecutionResponse] API response.
1494
+ def poll_activity_execution(request, rpc_options: nil)
1495
+ invoke_rpc(
1496
+ rpc: 'poll_activity_execution',
1497
+ request_class: Temporalio::Api::WorkflowService::V1::PollActivityExecutionRequest,
1498
+ response_class: Temporalio::Api::WorkflowService::V1::PollActivityExecutionResponse,
1499
+ request:,
1500
+ rpc_options:
1501
+ )
1502
+ end
1503
+
1504
+ # Calls WorkflowService.ListActivityExecutions API call.
1505
+ #
1506
+ # @param request [Temporalio::Api::WorkflowService::V1::ListActivityExecutionsRequest] API request.
1507
+ # @param rpc_options [RPCOptions, nil] Advanced RPC options.
1508
+ # @return [Temporalio::Api::WorkflowService::V1::ListActivityExecutionsResponse] API response.
1509
+ def list_activity_executions(request, rpc_options: nil)
1510
+ invoke_rpc(
1511
+ rpc: 'list_activity_executions',
1512
+ request_class: Temporalio::Api::WorkflowService::V1::ListActivityExecutionsRequest,
1513
+ response_class: Temporalio::Api::WorkflowService::V1::ListActivityExecutionsResponse,
1514
+ request:,
1515
+ rpc_options:
1516
+ )
1517
+ end
1518
+
1519
+ # Calls WorkflowService.CountActivityExecutions API call.
1520
+ #
1521
+ # @param request [Temporalio::Api::WorkflowService::V1::CountActivityExecutionsRequest] API request.
1522
+ # @param rpc_options [RPCOptions, nil] Advanced RPC options.
1523
+ # @return [Temporalio::Api::WorkflowService::V1::CountActivityExecutionsResponse] API response.
1524
+ def count_activity_executions(request, rpc_options: nil)
1525
+ invoke_rpc(
1526
+ rpc: 'count_activity_executions',
1527
+ request_class: Temporalio::Api::WorkflowService::V1::CountActivityExecutionsRequest,
1528
+ response_class: Temporalio::Api::WorkflowService::V1::CountActivityExecutionsResponse,
1529
+ request:,
1530
+ rpc_options:
1531
+ )
1532
+ end
1533
+
1534
+ # Calls WorkflowService.RequestCancelActivityExecution API call.
1535
+ #
1536
+ # @param request [Temporalio::Api::WorkflowService::V1::RequestCancelActivityExecutionRequest] API request.
1537
+ # @param rpc_options [RPCOptions, nil] Advanced RPC options.
1538
+ # @return [Temporalio::Api::WorkflowService::V1::RequestCancelActivityExecutionResponse] API response.
1539
+ def request_cancel_activity_execution(request, rpc_options: nil)
1540
+ invoke_rpc(
1541
+ rpc: 'request_cancel_activity_execution',
1542
+ request_class: Temporalio::Api::WorkflowService::V1::RequestCancelActivityExecutionRequest,
1543
+ response_class: Temporalio::Api::WorkflowService::V1::RequestCancelActivityExecutionResponse,
1544
+ request:,
1545
+ rpc_options:
1546
+ )
1547
+ end
1548
+
1549
+ # Calls WorkflowService.TerminateActivityExecution API call.
1550
+ #
1551
+ # @param request [Temporalio::Api::WorkflowService::V1::TerminateActivityExecutionRequest] API request.
1552
+ # @param rpc_options [RPCOptions, nil] Advanced RPC options.
1553
+ # @return [Temporalio::Api::WorkflowService::V1::TerminateActivityExecutionResponse] API response.
1554
+ def terminate_activity_execution(request, rpc_options: nil)
1555
+ invoke_rpc(
1556
+ rpc: 'terminate_activity_execution',
1557
+ request_class: Temporalio::Api::WorkflowService::V1::TerminateActivityExecutionRequest,
1558
+ response_class: Temporalio::Api::WorkflowService::V1::TerminateActivityExecutionResponse,
1559
+ request:,
1560
+ rpc_options:
1561
+ )
1562
+ end
1563
+
1564
+ # Calls WorkflowService.DeleteActivityExecution API call.
1565
+ #
1566
+ # @param request [Temporalio::Api::WorkflowService::V1::DeleteActivityExecutionRequest] API request.
1567
+ # @param rpc_options [RPCOptions, nil] Advanced RPC options.
1568
+ # @return [Temporalio::Api::WorkflowService::V1::DeleteActivityExecutionResponse] API response.
1569
+ def delete_activity_execution(request, rpc_options: nil)
1570
+ invoke_rpc(
1571
+ rpc: 'delete_activity_execution',
1572
+ request_class: Temporalio::Api::WorkflowService::V1::DeleteActivityExecutionRequest,
1573
+ response_class: Temporalio::Api::WorkflowService::V1::DeleteActivityExecutionResponse,
1574
+ request:,
1575
+ rpc_options:
1576
+ )
1577
+ end
1428
1578
  end
1429
1579
  end
1430
1580
  end
@@ -169,6 +169,9 @@ module Temporalio
169
169
  # @param lazy_connect [Boolean] If true, there is no connection until the first call is attempted or a worker
170
170
  # is created with it. Clients from lazy connections cannot be used for workers if they have not performed a
171
171
  # connection.
172
+ # @param around_connect [Proc, nil] If present, this proc accepts two values: options and a block. The block must
173
+ # be yielded to only once with the options. The block does not return a meaningful value, nor should
174
+ # around_connect.
172
175
  #
173
176
  # @see Client.connect
174
177
  def initialize(
@@ -181,7 +184,8 @@ module Temporalio
181
184
  keep_alive: KeepAliveOptions.new,
182
185
  http_connect_proxy: nil,
183
186
  runtime: Runtime.default,
184
- lazy_connect: false
187
+ lazy_connect: false,
188
+ around_connect: nil
185
189
  )
186
190
  @options = Options.new(
187
191
  target_host:,
@@ -195,9 +199,19 @@ module Temporalio
195
199
  runtime:,
196
200
  lazy_connect:
197
201
  ).freeze
198
- # Create core client now if not lazy
199
202
  @core_client_mutex = Mutex.new
200
- _core_client unless lazy_connect
203
+ # Create core client now if not lazy, applying around_connect if present
204
+ if around_connect
205
+ # Technically around_connect can never run the block for whatever reason (i.e. plugin returning a mock
206
+ # connection), so we don't enforce it
207
+ around_connect.call(@options) do |options|
208
+ @options = options
209
+ _core_client unless lazy_connect
210
+ nil
211
+ end
212
+ else
213
+ _core_client unless lazy_connect
214
+ end
201
215
  # Create service instances
202
216
  @workflow_service = WorkflowService.new(self)
203
217
  @operator_service = OperatorService.new(self)
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Temporalio
4
+ class Client
5
+ # Plugin mixin to include for configuring clients and/or intercepting connect calls.
6
+ #
7
+ # This is a low-level implementation that requires abstract methods herein to be implemented. Many implementers may
8
+ # prefer {SimplePlugin} which includes this.
9
+ #
10
+ # WARNING: Plugins are experimental.
11
+ module Plugin
12
+ # @abstract
13
+ # @return [String] Name of the plugin.
14
+ def name
15
+ raise NotImplementedError
16
+ end
17
+
18
+ # Configure a client.
19
+ #
20
+ # @abstract
21
+ # @param options [Options] Current immutable options set.
22
+ # @return [Options] Options to use, possibly updated from original.
23
+ def configure_client(options)
24
+ raise NotImplementedError
25
+ end
26
+
27
+ # Connect a client.
28
+ #
29
+ # Implementers are expected to delegate to next_call to perform the connection. Note, this does not apply to users
30
+ # explicitly creating connections via {Connection} constructor.
31
+ #
32
+ # @abstract
33
+ # @param options [Connection::Options] Current immutable options set.
34
+ # @param next_call [Proc] Proc for the next plugin in the chain to call. It accepts the options and returns a
35
+ # {Connection}.
36
+ # @return [Connection] Connected connection.
37
+ def connect_client(options, next_call)
38
+ raise NotImplementedError
39
+ end
40
+ end
41
+ end
42
+ end
@@ -6,6 +6,7 @@ require 'temporalio/api'
6
6
  require 'temporalio/client/async_activity_handle'
7
7
  require 'temporalio/client/connection'
8
8
  require 'temporalio/client/interceptor'
9
+ require 'temporalio/client/plugin'
9
10
  require 'temporalio/client/schedule'
10
11
  require 'temporalio/client/schedule_handle'
11
12
  require 'temporalio/client/with_start_workflow_operation'
@@ -42,6 +43,7 @@ module Temporalio
42
43
  :connection,
43
44
  :namespace,
44
45
  :data_converter,
46
+ :plugins,
45
47
  :interceptors,
46
48
  :logger,
47
49
  :default_workflow_query_reject_condition
@@ -70,6 +72,9 @@ module Temporalio
70
72
  # @param tls [Boolean, Connection::TLSOptions] If false, do not use TLS. If true, use system default TLS options. If
71
73
  # TLS options are present, those TLS options will be used.
72
74
  # @param data_converter [Converters::DataConverter] Data converter to use for all data conversions to/from payloads.
75
+ # @param plugins [Array<Plugin>] Plugins to use for configuring clients and intercepting connection. Any plugins
76
+ # that also include {Worker::Plugin} will automatically be applied to the worker and should not be configured
77
+ # explicitly on the worker. WARNING: Plugins are experimental.
73
78
  # @param interceptors [Array<Interceptor>] Set of interceptors that are chained together to allow intercepting of
74
79
  # client calls. The earlier interceptors wrap the later ones. Any interceptors that also implement worker
75
80
  # interceptor will be used as worker interceptors too so they should not be given separately when creating a
@@ -101,6 +106,7 @@ module Temporalio
101
106
  api_key: nil,
102
107
  tls: nil,
103
108
  data_converter: Converters::DataConverter.default,
109
+ plugins: [],
104
110
  interceptors: [],
105
111
  logger: Logger.new($stdout, level: Logger::WARN),
106
112
  default_workflow_query_reject_condition: nil,
@@ -112,27 +118,78 @@ module Temporalio
112
118
  runtime: Runtime.default,
113
119
  lazy_connect: false
114
120
  )
121
+ # Prepare connection. The connection var is needed here so it can be used in callback for plugin.
122
+ base_connection = nil
123
+ final_connection = nil
124
+ around_connect = if plugins.any?
125
+ _validate_plugins!(plugins)
126
+ # For plugins, we have to do an around_connect approach with Connection where we provide a
127
+ # no-return-value proc that is invoked with the built options and yields newly built options.
128
+ # The connection will have been created before, but we allow plugins to return a
129
+ # different/extended connection, possibly avoiding actual connection altogether.
130
+ proc do |options, &block|
131
+ # Steep simply can't comprehend these advanced inline procs
132
+ # steep:ignore:start
133
+
134
+ # Root next call
135
+ next_call_called = false
136
+ next_call = proc do |options|
137
+ raise 'next_call called more than once' if next_call_called
138
+
139
+ next_call_called = true
140
+ block&.call(options)
141
+ base_connection
142
+ end
143
+ # Go backwards, building up new next_call invocations on plugins
144
+ next_call = plugins.reverse_each.reduce(next_call) do |next_call, plugin|
145
+ proc { |options| plugin.connect_client(options, next_call) }
146
+ end
147
+ # Do call
148
+ final_connection = next_call.call(options)
149
+
150
+ # steep:ignore:end
151
+ end
152
+ end
153
+ # Now create connection
154
+ base_connection = Connection.new(
155
+ target_host:,
156
+ api_key:,
157
+ tls:,
158
+ rpc_metadata:,
159
+ rpc_retry:,
160
+ identity:,
161
+ keep_alive:,
162
+ http_connect_proxy:,
163
+ runtime:,
164
+ lazy_connect:,
165
+ around_connect: # steep:ignore
166
+ )
167
+
168
+ # Create client
115
169
  Client.new(
116
- connection: Connection.new(
117
- target_host:,
118
- api_key:,
119
- tls:,
120
- rpc_metadata:,
121
- rpc_retry:,
122
- identity:,
123
- keep_alive:,
124
- http_connect_proxy:,
125
- runtime:,
126
- lazy_connect:
127
- ),
170
+ connection: final_connection || base_connection,
128
171
  namespace:,
129
172
  data_converter:,
173
+ plugins:,
130
174
  interceptors:,
131
175
  logger:,
132
176
  default_workflow_query_reject_condition:
133
177
  )
134
178
  end
135
179
 
180
+ # @!visibility private
181
+ def self._validate_plugins!(plugins)
182
+ plugins.each do |plugin|
183
+ raise ArgumentError, "#{plugin.class} does not implement Client::Plugin" unless plugin.is_a?(Plugin)
184
+
185
+ # Validate plugin has implemented expected methods
186
+ missing = Plugin.instance_methods(false).select { |m| plugin.method(m).owner == Plugin }
187
+ unless missing.empty?
188
+ raise ArgumentError, "#{plugin.class} missing the following client plugin method(s): #{missing.join(', ')}"
189
+ end
190
+ end
191
+ end
192
+
136
193
  # @return [Options] Frozen options for this client which has the same attributes as {initialize}.
137
194
  attr_reader :options
138
195
 
@@ -143,6 +200,9 @@ module Temporalio
143
200
  # @param connection [Connection] Existing connection to create a client from.
144
201
  # @param namespace [String] Namespace to use for client calls.
145
202
  # @param data_converter [Converters::DataConverter] Data converter to use for all data conversions to/from payloads.
203
+ # @param plugins [Array<Plugin>] Plugins to use for configuring clients. Any plugins that also include
204
+ # {Worker::Plugin} will automatically be applied to the worker and should not be configured explicitly on the
205
+ # worker. WARNING: Plugins are experimental.
146
206
  # @param interceptors [Array<Interceptor>] Set of interceptors that are chained together to allow intercepting of
147
207
  # client calls. The earlier interceptors wrap the later ones. Any interceptors that also implement worker
148
208
  # interceptor will be used as worker interceptors too so they should not be given separately when creating a
@@ -157,6 +217,7 @@ module Temporalio
157
217
  connection:,
158
218
  namespace:,
159
219
  data_converter: DataConverter.default,
220
+ plugins: [],
160
221
  interceptors: [],
161
222
  logger: Logger.new($stdout, level: Logger::WARN),
162
223
  default_workflow_query_reject_condition: nil
@@ -165,12 +226,20 @@ module Temporalio
165
226
  connection:,
166
227
  namespace:,
167
228
  data_converter:,
229
+ plugins:,
168
230
  interceptors:,
169
231
  logger:,
170
232
  default_workflow_query_reject_condition:
171
233
  ).freeze
234
+
235
+ # Apply plugins
236
+ Client._validate_plugins!(plugins)
237
+ @options = plugins.reduce(@options) { |options, plugin| plugin.configure_client(options) }
238
+
172
239
  # Initialize interceptors
173
- @impl = interceptors.reverse_each.reduce(Internal::Client::Implementation.new(self)) do |acc, int| # steep:ignore
240
+ @impl = @options.interceptors.reverse_each.reduce(
241
+ Internal::Client::Implementation.new(self)
242
+ ) do |acc, int| # steep:ignore
174
243
  int.intercept_client(acc)
175
244
  end
176
245
  end
@@ -22,7 +22,10 @@ module Temporalio
22
22
 
23
23
  # @type var value: Google::Protobuf::MessageExts
24
24
  Api::Common::V1::Payload.new(
25
- metadata: { 'encoding' => ENCODING, 'messageType' => value.class.descriptor.name },
25
+ metadata: {
26
+ 'encoding' => ENCODING,
27
+ 'messageType' => value.class.descriptor.name # steep:ignore NoMethod
28
+ },
26
29
  data: value.to_proto
27
30
  )
28
31
  end
@@ -21,7 +21,10 @@ module Temporalio
21
21
  return nil unless value.is_a?(Google::Protobuf::MessageExts)
22
22
 
23
23
  Api::Common::V1::Payload.new(
24
- metadata: { 'encoding' => ENCODING, 'messageType' => value.class.descriptor.name },
24
+ metadata: {
25
+ 'encoding' => ENCODING,
26
+ 'messageType' => value.class.descriptor.name # steep:ignore NoMethod
27
+ },
25
28
  data: value.to_json.b
26
29
  )
27
30
  end
@@ -180,13 +180,7 @@ module Temporalio
180
180
  path, data = EnvConfig._source_to_path_and_data(config_source)
181
181
 
182
182
  raw_profile = Internal::Bridge::EnvConfig.load_client_connect_config(
183
- profile,
184
- path,
185
- data,
186
- disable_file,
187
- disable_env,
188
- config_file_strict,
189
- override_env_vars || {}
183
+ profile, path, data, disable_file, disable_env, config_file_strict, override_env_vars
190
184
  )
191
185
 
192
186
  from_h(raw_profile)
@@ -272,10 +266,7 @@ module Temporalio
272
266
  path, data = EnvConfig._source_to_path_and_data(config_source)
273
267
 
274
268
  loaded_profiles = Internal::Bridge::EnvConfig.load_client_config(
275
- path,
276
- data,
277
- config_file_strict,
278
- override_env_vars || {}
269
+ path, data, config_file_strict, override_env_vars
279
270
  )
280
271
 
281
272
  from_h(loaded_profiles)
@@ -17,7 +17,7 @@ require 'temporalio/internal/bridge/api/workflow_commands/workflow_commands'
17
17
  require 'temporalio/internal/bridge/api/workflow_completion/workflow_completion'
18
18
 
19
19
 
20
- descriptor_data = "\n&temporal/sdk/core/core_interface.proto\x12\x07\x63oresdk\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a\x37temporal/sdk/core/activity_result/activity_result.proto\x1a\x33temporal/sdk/core/activity_task/activity_task.proto\x1a%temporal/sdk/core/common/common.proto\x1a\x33temporal/sdk/core/external_data/external_data.proto\x1a?temporal/sdk/core/workflow_activation/workflow_activation.proto\x1a;temporal/sdk/core/workflow_commands/workflow_commands.proto\x1a?temporal/sdk/core/workflow_completion/workflow_completion.proto\"Y\n\x11\x41\x63tivityHeartbeat\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\"n\n\x16\x41\x63tivityTaskCompletion\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12@\n\x06result\x18\x02 \x01(\x0b\x32\x30.coresdk.activity_result.ActivityExecutionResult\"<\n\x10WorkflowSlotInfo\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x11\n\tis_sticky\x18\x02 \x01(\x08\")\n\x10\x41\x63tivitySlotInfo\x12\x15\n\ractivity_type\x18\x01 \x01(\t\".\n\x15LocalActivitySlotInfo\x12\x15\n\ractivity_type\x18\x01 \x01(\t\"3\n\rNexusSlotInfo\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\tB3\xea\x02\x30Temporalio::Internal::Bridge::Api::CoreInterfaceb\x06proto3"
20
+ descriptor_data = "\n&temporal/sdk/core/core_interface.proto\x12\x07\x63oresdk\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a\x37temporal/sdk/core/activity_result/activity_result.proto\x1a\x33temporal/sdk/core/activity_task/activity_task.proto\x1a%temporal/sdk/core/common/common.proto\x1a\x33temporal/sdk/core/external_data/external_data.proto\x1a?temporal/sdk/core/workflow_activation/workflow_activation.proto\x1a;temporal/sdk/core/workflow_commands/workflow_commands.proto\x1a?temporal/sdk/core/workflow_completion/workflow_completion.proto\"Y\n\x11\x41\x63tivityHeartbeat\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\"n\n\x16\x41\x63tivityTaskCompletion\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12@\n\x06result\x18\x02 \x01(\x0b\x32\x30.coresdk.activity_result.ActivityExecutionResult\"<\n\x10WorkflowSlotInfo\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x11\n\tis_sticky\x18\x02 \x01(\x08\")\n\x10\x41\x63tivitySlotInfo\x12\x15\n\ractivity_type\x18\x01 \x01(\t\".\n\x15LocalActivitySlotInfo\x12\x15\n\ractivity_type\x18\x01 \x01(\t\"3\n\rNexusSlotInfo\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\"\x86\x01\n\rNamespaceInfo\x12-\n\x06limits\x18\x01 \x01(\x0b\x32\x1d.coresdk.NamespaceInfo.Limits\x1a\x46\n\x06Limits\x12\x1d\n\x15\x62lob_size_limit_error\x18\x01 \x01(\x03\x12\x1d\n\x15memo_size_limit_error\x18\x02 \x01(\x03\x42\x33\xea\x02\x30Temporalio::Internal::Bridge::Api::CoreInterfaceb\x06proto3"
21
21
 
22
22
  pool = ::Google::Protobuf::DescriptorPool.generated_pool
23
23
  pool.add_serialized_file(descriptor_data)
@@ -33,6 +33,8 @@ module Temporalio
33
33
  ActivitySlotInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("coresdk.ActivitySlotInfo").msgclass
34
34
  LocalActivitySlotInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("coresdk.LocalActivitySlotInfo").msgclass
35
35
  NexusSlotInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("coresdk.NexusSlotInfo").msgclass
36
+ NamespaceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("coresdk.NamespaceInfo").msgclass
37
+ NamespaceInfo::Limits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("coresdk.NamespaceInfo.Limits").msgclass
36
38
  end
37
39
  end
38
40
  end
@@ -4,6 +4,7 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
+ require 'google/protobuf/timestamp_pb'
7
8
  require 'temporalio/api/common/v1/message'
8
9
  require 'temporalio/api/failure/v1/message'
9
10
  require 'temporalio/api/nexus/v1/message'
@@ -11,7 +12,7 @@ require 'temporalio/api/workflowservice/v1/request_response'
11
12
  require 'temporalio/internal/bridge/api/common/common'
12
13
 
13
14
 
14
- descriptor_data = "\n#temporal/sdk/core/nexus/nexus.proto\x12\rcoresdk.nexus\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\x36temporal/api/workflowservice/v1/request_response.proto\x1a%temporal/sdk/core/common/common.proto\"\xf8\x01\n\x14NexusOperationResult\x12\x34\n\tcompleted\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x32\n\x06\x66\x61iled\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x35\n\tcancelled\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x35\n\ttimed_out\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x08\n\x06status\"\xb5\x01\n\x13NexusTaskCompletion\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x34\n\tcompleted\x18\x02 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.ResponseH\x00\x12\x34\n\x05\x65rror\x18\x03 \x01(\x0b\x32#.temporal.api.nexus.v1.HandlerErrorH\x00\x12\x14\n\nack_cancel\x18\x04 \x01(\x08H\x00\x42\x08\n\x06status\"\x9a\x01\n\tNexusTask\x12K\n\x04task\x18\x01 \x01(\x0b\x32;.temporal.api.workflowservice.v1.PollNexusTaskQueueResponseH\x00\x12\x35\n\x0b\x63\x61ncel_task\x18\x02 \x01(\x0b\x32\x1e.coresdk.nexus.CancelNexusTaskH\x00\x42\t\n\x07variant\"[\n\x0f\x43\x61ncelNexusTask\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x34\n\x06reason\x18\x02 \x01(\x0e\x32$.coresdk.nexus.NexusTaskCancelReason*;\n\x15NexusTaskCancelReason\x12\r\n\tTIMED_OUT\x10\x00\x12\x13\n\x0fWORKER_SHUTDOWN\x10\x01*\x7f\n\x1eNexusOperationCancellationType\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x00\x12\x0b\n\x07\x41\x42\x41NDON\x10\x01\x12\x0e\n\nTRY_CANCEL\x10\x02\x12\x1f\n\x1bWAIT_CANCELLATION_REQUESTED\x10\x03\x42+\xea\x02(Temporalio::Internal::Bridge::Api::Nexusb\x06proto3"
15
+ descriptor_data = "\n#temporal/sdk/core/nexus/nexus.proto\x12\rcoresdk.nexus\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\x36temporal/api/workflowservice/v1/request_response.proto\x1a%temporal/sdk/core/common/common.proto\"\xf8\x01\n\x14NexusOperationResult\x12\x34\n\tcompleted\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x32\n\x06\x66\x61iled\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x35\n\tcancelled\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x35\n\ttimed_out\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x08\n\x06status\"\xb5\x01\n\x13NexusTaskCompletion\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x34\n\tcompleted\x18\x02 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.ResponseH\x00\x12\x34\n\x05\x65rror\x18\x03 \x01(\x0b\x32#.temporal.api.nexus.v1.HandlerErrorH\x00\x12\x14\n\nack_cancel\x18\x04 \x01(\x08H\x00\x42\x08\n\x06status\"\xd0\x01\n\tNexusTask\x12K\n\x04task\x18\x01 \x01(\x0b\x32;.temporal.api.workflowservice.v1.PollNexusTaskQueueResponseH\x00\x12\x35\n\x0b\x63\x61ncel_task\x18\x02 \x01(\x0b\x32\x1e.coresdk.nexus.CancelNexusTaskH\x00\x12\x34\n\x10request_deadline\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\t\n\x07variant\"[\n\x0f\x43\x61ncelNexusTask\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x34\n\x06reason\x18\x02 \x01(\x0e\x32$.coresdk.nexus.NexusTaskCancelReason*;\n\x15NexusTaskCancelReason\x12\r\n\tTIMED_OUT\x10\x00\x12\x13\n\x0fWORKER_SHUTDOWN\x10\x01*\x7f\n\x1eNexusOperationCancellationType\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x00\x12\x0b\n\x07\x41\x42\x41NDON\x10\x01\x12\x0e\n\nTRY_CANCEL\x10\x02\x12\x1f\n\x1bWAIT_CANCELLATION_REQUESTED\x10\x03\x42+\xea\x02(Temporalio::Internal::Bridge::Api::Nexusb\x06proto3"
15
16
 
16
17
  pool = ::Google::Protobuf::DescriptorPool.generated_pool
17
18
  pool.add_serialized_file(descriptor_data)
@@ -16,7 +16,7 @@ require 'temporalio/internal/bridge/api/nexus/nexus'
16
16
  require 'temporalio/internal/bridge/api/common/common'
17
17
 
18
18
 
19
- descriptor_data = "\n;temporal/sdk/core/workflow_commands/workflow_commands.proto\x12\x19\x63oresdk.workflow_commands\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a#temporal/sdk/core/nexus/nexus.proto\x1a%temporal/sdk/core/common/common.proto\"\xe5\x0f\n\x0fWorkflowCommand\x12\x38\n\ruser_metadata\x18\x64 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12<\n\x0bstart_timer\x18\x01 \x01(\x0b\x32%.coresdk.workflow_commands.StartTimerH\x00\x12H\n\x11schedule_activity\x18\x02 \x01(\x0b\x32+.coresdk.workflow_commands.ScheduleActivityH\x00\x12\x42\n\x10respond_to_query\x18\x03 \x01(\x0b\x32&.coresdk.workflow_commands.QueryResultH\x00\x12S\n\x17request_cancel_activity\x18\x04 \x01(\x0b\x32\x30.coresdk.workflow_commands.RequestCancelActivityH\x00\x12>\n\x0c\x63\x61ncel_timer\x18\x05 \x01(\x0b\x32&.coresdk.workflow_commands.CancelTimerH\x00\x12[\n\x1b\x63omplete_workflow_execution\x18\x06 \x01(\x0b\x32\x34.coresdk.workflow_commands.CompleteWorkflowExecutionH\x00\x12S\n\x17\x66\x61il_workflow_execution\x18\x07 \x01(\x0b\x32\x30.coresdk.workflow_commands.FailWorkflowExecutionH\x00\x12g\n\"continue_as_new_workflow_execution\x18\x08 \x01(\x0b\x32\x39.coresdk.workflow_commands.ContinueAsNewWorkflowExecutionH\x00\x12W\n\x19\x63\x61ncel_workflow_execution\x18\t \x01(\x0b\x32\x32.coresdk.workflow_commands.CancelWorkflowExecutionH\x00\x12\x45\n\x10set_patch_marker\x18\n \x01(\x0b\x32).coresdk.workflow_commands.SetPatchMarkerH\x00\x12`\n\x1estart_child_workflow_execution\x18\x0b \x01(\x0b\x32\x36.coresdk.workflow_commands.StartChildWorkflowExecutionH\x00\x12\x62\n\x1f\x63\x61ncel_child_workflow_execution\x18\x0c \x01(\x0b\x32\x37.coresdk.workflow_commands.CancelChildWorkflowExecutionH\x00\x12w\n*request_cancel_external_workflow_execution\x18\r \x01(\x0b\x32\x41.coresdk.workflow_commands.RequestCancelExternalWorkflowExecutionH\x00\x12h\n\"signal_external_workflow_execution\x18\x0e \x01(\x0b\x32:.coresdk.workflow_commands.SignalExternalWorkflowExecutionH\x00\x12Q\n\x16\x63\x61ncel_signal_workflow\x18\x0f \x01(\x0b\x32/.coresdk.workflow_commands.CancelSignalWorkflowH\x00\x12S\n\x17schedule_local_activity\x18\x10 \x01(\x0b\x32\x30.coresdk.workflow_commands.ScheduleLocalActivityH\x00\x12^\n\x1drequest_cancel_local_activity\x18\x11 \x01(\x0b\x32\x35.coresdk.workflow_commands.RequestCancelLocalActivityH\x00\x12\x66\n!upsert_workflow_search_attributes\x18\x12 \x01(\x0b\x32\x39.coresdk.workflow_commands.UpsertWorkflowSearchAttributesH\x00\x12Y\n\x1amodify_workflow_properties\x18\x13 \x01(\x0b\x32\x33.coresdk.workflow_commands.ModifyWorkflowPropertiesH\x00\x12\x44\n\x0fupdate_response\x18\x14 \x01(\x0b\x32).coresdk.workflow_commands.UpdateResponseH\x00\x12U\n\x18schedule_nexus_operation\x18\x15 \x01(\x0b\x32\x31.coresdk.workflow_commands.ScheduleNexusOperationH\x00\x12`\n\x1erequest_cancel_nexus_operation\x18\x16 \x01(\x0b\x32\x36.coresdk.workflow_commands.RequestCancelNexusOperationH\x00\x42\t\n\x07variant\"S\n\nStartTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x1a\n\x0b\x43\x61ncelTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r\"\xb8\x06\n\x10ScheduleActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12I\n\x07headers\x18\x06 \x03(\x0b\x32\x38.coresdk.workflow_commands.ScheduleActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x12\x1e\n\x16\x64o_not_eagerly_execute\x18\x0e \x01(\x08\x12;\n\x11versioning_intent\x18\x0f \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12\x32\n\x08priority\x18\x10 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\"\xee\x05\n\x15ScheduleLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\r\x12:\n\x16original_schedule_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\x07headers\x18\x06 \x03(\x0b\x32=.coresdk.workflow_commands.ScheduleLocalActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x38\n\x15local_retry_threshold\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\"$\n\x15RequestCancelActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\")\n\x1aRequestCancelLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\"\x9c\x01\n\x0bQueryResult\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12<\n\tsucceeded\x18\x02 \x01(\x0b\x32\'.coresdk.workflow_commands.QuerySuccessH\x00\x12\x32\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\t\n\x07variant\"A\n\x0cQuerySuccess\x12\x31\n\x08response\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\"L\n\x19\x43ompleteWorkflowExecution\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\"J\n\x15\x46\x61ilWorkflowExecution\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\"\xfb\x06\n\x1e\x43ontinueAsNewWorkflowExecution\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12Q\n\x04memo\x18\x06 \x03(\x0b\x32\x43.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.MemoEntry\x12W\n\x07headers\x18\x07 \x03(\x0b\x32\x46.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.HeadersEntry\x12j\n\x11search_attributes\x18\x08 \x03(\x0b\x32O.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.SearchAttributesEntry\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12;\n\x11versioning_intent\x18\n \x01(\x0e\x32 .coresdk.common.VersioningIntent\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\"\x19\n\x17\x43\x61ncelWorkflowExecution\"6\n\x0eSetPatchMarker\x12\x10\n\x08patch_id\x18\x01 \x01(\t\x12\x12\n\ndeprecated\x18\x02 \x01(\x08\"\x94\n\n\x1bStartChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x03 \x01(\t\x12\x15\n\rworkflow_type\x18\x04 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12.\n\x05input\x18\x06 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x46\n\x13parent_close_policy\x18\n \x01(\x0e\x32).coresdk.child_workflow.ParentClosePolicy\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12T\n\x07headers\x18\x0f \x03(\x0b\x32\x43.coresdk.workflow_commands.StartChildWorkflowExecution.HeadersEntry\x12N\n\x04memo\x18\x10 \x03(\x0b\x32@.coresdk.workflow_commands.StartChildWorkflowExecution.MemoEntry\x12g\n\x11search_attributes\x18\x11 \x03(\x0b\x32L.coresdk.workflow_commands.StartChildWorkflowExecution.SearchAttributesEntry\x12P\n\x11\x63\x61ncellation_type\x18\x12 \x01(\x0e\x32\x35.coresdk.child_workflow.ChildWorkflowCancellationType\x12;\n\x11versioning_intent\x18\x13 \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12\x32\n\x08priority\x18\x14 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\"J\n\x1c\x43\x61ncelChildWorkflowExecution\x12\x1a\n\x12\x63hild_workflow_seq\x18\x01 \x01(\r\x12\x0e\n\x06reason\x18\x02 \x01(\t\"\x8e\x01\n&RequestCancelExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12G\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\"\x8f\x03\n\x1fSignalExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12I\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecutionH\x00\x12\x1b\n\x11\x63hild_workflow_id\x18\x03 \x01(\tH\x00\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12-\n\x04\x61rgs\x18\x05 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12X\n\x07headers\x18\x06 \x03(\x0b\x32G.coresdk.workflow_commands.SignalExternalWorkflowExecution.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x42\x08\n\x06target\"#\n\x14\x43\x61ncelSignalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\"\xe6\x01\n\x1eUpsertWorkflowSearchAttributes\x12j\n\x11search_attributes\x18\x01 \x03(\x0b\x32O.coresdk.workflow_commands.UpsertWorkflowSearchAttributes.SearchAttributesEntry\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\"O\n\x18ModifyWorkflowProperties\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\"\xd2\x01\n\x0eUpdateResponse\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12*\n\x08\x61\x63\x63\x65pted\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x08rejected\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x34\n\tcompleted\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x42\n\n\x08response\"\xa1\x03\n\x16ScheduleNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x11\n\toperation\x18\x04 \x01(\t\x12.\n\x05input\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12X\n\x0cnexus_header\x18\x07 \x03(\x0b\x32\x42.coresdk.workflow_commands.ScheduleNexusOperation.NexusHeaderEntry\x12H\n\x11\x63\x61ncellation_type\x18\x08 \x01(\x0e\x32-.coresdk.nexus.NexusOperationCancellationType\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"*\n\x1bRequestCancelNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r*X\n\x18\x41\x63tivityCancellationType\x12\x0e\n\nTRY_CANCEL\x10\x00\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x01\x12\x0b\n\x07\x41\x42\x41NDON\x10\x02\x42\x36\xea\x02\x33Temporalio::Internal::Bridge::Api::WorkflowCommandsb\x06proto3"
19
+ descriptor_data = "\n;temporal/sdk/core/workflow_commands/workflow_commands.proto\x12\x19\x63oresdk.workflow_commands\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a#temporal/sdk/core/nexus/nexus.proto\x1a%temporal/sdk/core/common/common.proto\"\xe5\x0f\n\x0fWorkflowCommand\x12\x38\n\ruser_metadata\x18\x64 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12<\n\x0bstart_timer\x18\x01 \x01(\x0b\x32%.coresdk.workflow_commands.StartTimerH\x00\x12H\n\x11schedule_activity\x18\x02 \x01(\x0b\x32+.coresdk.workflow_commands.ScheduleActivityH\x00\x12\x42\n\x10respond_to_query\x18\x03 \x01(\x0b\x32&.coresdk.workflow_commands.QueryResultH\x00\x12S\n\x17request_cancel_activity\x18\x04 \x01(\x0b\x32\x30.coresdk.workflow_commands.RequestCancelActivityH\x00\x12>\n\x0c\x63\x61ncel_timer\x18\x05 \x01(\x0b\x32&.coresdk.workflow_commands.CancelTimerH\x00\x12[\n\x1b\x63omplete_workflow_execution\x18\x06 \x01(\x0b\x32\x34.coresdk.workflow_commands.CompleteWorkflowExecutionH\x00\x12S\n\x17\x66\x61il_workflow_execution\x18\x07 \x01(\x0b\x32\x30.coresdk.workflow_commands.FailWorkflowExecutionH\x00\x12g\n\"continue_as_new_workflow_execution\x18\x08 \x01(\x0b\x32\x39.coresdk.workflow_commands.ContinueAsNewWorkflowExecutionH\x00\x12W\n\x19\x63\x61ncel_workflow_execution\x18\t \x01(\x0b\x32\x32.coresdk.workflow_commands.CancelWorkflowExecutionH\x00\x12\x45\n\x10set_patch_marker\x18\n \x01(\x0b\x32).coresdk.workflow_commands.SetPatchMarkerH\x00\x12`\n\x1estart_child_workflow_execution\x18\x0b \x01(\x0b\x32\x36.coresdk.workflow_commands.StartChildWorkflowExecutionH\x00\x12\x62\n\x1f\x63\x61ncel_child_workflow_execution\x18\x0c \x01(\x0b\x32\x37.coresdk.workflow_commands.CancelChildWorkflowExecutionH\x00\x12w\n*request_cancel_external_workflow_execution\x18\r \x01(\x0b\x32\x41.coresdk.workflow_commands.RequestCancelExternalWorkflowExecutionH\x00\x12h\n\"signal_external_workflow_execution\x18\x0e \x01(\x0b\x32:.coresdk.workflow_commands.SignalExternalWorkflowExecutionH\x00\x12Q\n\x16\x63\x61ncel_signal_workflow\x18\x0f \x01(\x0b\x32/.coresdk.workflow_commands.CancelSignalWorkflowH\x00\x12S\n\x17schedule_local_activity\x18\x10 \x01(\x0b\x32\x30.coresdk.workflow_commands.ScheduleLocalActivityH\x00\x12^\n\x1drequest_cancel_local_activity\x18\x11 \x01(\x0b\x32\x35.coresdk.workflow_commands.RequestCancelLocalActivityH\x00\x12\x66\n!upsert_workflow_search_attributes\x18\x12 \x01(\x0b\x32\x39.coresdk.workflow_commands.UpsertWorkflowSearchAttributesH\x00\x12Y\n\x1amodify_workflow_properties\x18\x13 \x01(\x0b\x32\x33.coresdk.workflow_commands.ModifyWorkflowPropertiesH\x00\x12\x44\n\x0fupdate_response\x18\x14 \x01(\x0b\x32).coresdk.workflow_commands.UpdateResponseH\x00\x12U\n\x18schedule_nexus_operation\x18\x15 \x01(\x0b\x32\x31.coresdk.workflow_commands.ScheduleNexusOperationH\x00\x12`\n\x1erequest_cancel_nexus_operation\x18\x16 \x01(\x0b\x32\x36.coresdk.workflow_commands.RequestCancelNexusOperationH\x00\x42\t\n\x07variant\"S\n\nStartTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x1a\n\x0b\x43\x61ncelTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r\"\xb8\x06\n\x10ScheduleActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12I\n\x07headers\x18\x06 \x03(\x0b\x32\x38.coresdk.workflow_commands.ScheduleActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x12\x1e\n\x16\x64o_not_eagerly_execute\x18\x0e \x01(\x08\x12;\n\x11versioning_intent\x18\x0f \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12\x32\n\x08priority\x18\x10 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\"\xee\x05\n\x15ScheduleLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\r\x12:\n\x16original_schedule_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\x07headers\x18\x06 \x03(\x0b\x32=.coresdk.workflow_commands.ScheduleLocalActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x38\n\x15local_retry_threshold\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\"$\n\x15RequestCancelActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\")\n\x1aRequestCancelLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\"\x9c\x01\n\x0bQueryResult\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12<\n\tsucceeded\x18\x02 \x01(\x0b\x32\'.coresdk.workflow_commands.QuerySuccessH\x00\x12\x32\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\t\n\x07variant\"A\n\x0cQuerySuccess\x12\x31\n\x08response\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\"L\n\x19\x43ompleteWorkflowExecution\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\"J\n\x15\x46\x61ilWorkflowExecution\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\"\xfb\x06\n\x1e\x43ontinueAsNewWorkflowExecution\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12Q\n\x04memo\x18\x06 \x03(\x0b\x32\x43.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.MemoEntry\x12W\n\x07headers\x18\x07 \x03(\x0b\x32\x46.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.HeadersEntry\x12j\n\x11search_attributes\x18\x08 \x03(\x0b\x32O.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.SearchAttributesEntry\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12;\n\x11versioning_intent\x18\n \x01(\x0e\x32 .coresdk.common.VersioningIntent\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\"\x19\n\x17\x43\x61ncelWorkflowExecution\"6\n\x0eSetPatchMarker\x12\x10\n\x08patch_id\x18\x01 \x01(\t\x12\x12\n\ndeprecated\x18\x02 \x01(\x08\"\x94\n\n\x1bStartChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x03 \x01(\t\x12\x15\n\rworkflow_type\x18\x04 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12.\n\x05input\x18\x06 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x46\n\x13parent_close_policy\x18\n \x01(\x0e\x32).coresdk.child_workflow.ParentClosePolicy\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12T\n\x07headers\x18\x0f \x03(\x0b\x32\x43.coresdk.workflow_commands.StartChildWorkflowExecution.HeadersEntry\x12N\n\x04memo\x18\x10 \x03(\x0b\x32@.coresdk.workflow_commands.StartChildWorkflowExecution.MemoEntry\x12g\n\x11search_attributes\x18\x11 \x03(\x0b\x32L.coresdk.workflow_commands.StartChildWorkflowExecution.SearchAttributesEntry\x12P\n\x11\x63\x61ncellation_type\x18\x12 \x01(\x0e\x32\x35.coresdk.child_workflow.ChildWorkflowCancellationType\x12;\n\x11versioning_intent\x18\x13 \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12\x32\n\x08priority\x18\x14 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\"J\n\x1c\x43\x61ncelChildWorkflowExecution\x12\x1a\n\x12\x63hild_workflow_seq\x18\x01 \x01(\r\x12\x0e\n\x06reason\x18\x02 \x01(\t\"\x8e\x01\n&RequestCancelExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12G\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\"\x8f\x03\n\x1fSignalExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12I\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecutionH\x00\x12\x1b\n\x11\x63hild_workflow_id\x18\x03 \x01(\tH\x00\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12-\n\x04\x61rgs\x18\x05 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12X\n\x07headers\x18\x06 \x03(\x0b\x32G.coresdk.workflow_commands.SignalExternalWorkflowExecution.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x42\x08\n\x06target\"#\n\x14\x43\x61ncelSignalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\"\xe6\x01\n\x1eUpsertWorkflowSearchAttributes\x12j\n\x11search_attributes\x18\x01 \x03(\x0b\x32O.coresdk.workflow_commands.UpsertWorkflowSearchAttributes.SearchAttributesEntry\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\"O\n\x18ModifyWorkflowProperties\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\"\xd2\x01\n\x0eUpdateResponse\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12*\n\x08\x61\x63\x63\x65pted\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x08rejected\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x34\n\tcompleted\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x42\n\n\x08response\"\x9a\x04\n\x16ScheduleNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x11\n\toperation\x18\x04 \x01(\t\x12.\n\x05input\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12X\n\x0cnexus_header\x18\x07 \x03(\x0b\x32\x42.coresdk.workflow_commands.ScheduleNexusOperation.NexusHeaderEntry\x12H\n\x11\x63\x61ncellation_type\x18\x08 \x01(\x0e\x32-.coresdk.nexus.NexusOperationCancellationType\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"*\n\x1bRequestCancelNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r*X\n\x18\x41\x63tivityCancellationType\x12\x0e\n\nTRY_CANCEL\x10\x00\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x01\x12\x0b\n\x07\x41\x42\x41NDON\x10\x02\x42\x36\xea\x02\x33Temporalio::Internal::Bridge::Api::WorkflowCommandsb\x06proto3"
20
20
 
21
21
  pool = ::Google::Protobuf::DescriptorPool.generated_pool
22
22
  pool.add_serialized_file(descriptor_data)
@@ -28,6 +28,7 @@ module Temporalio
28
28
  :nondeterminism_as_workflow_fail,
29
29
  :nondeterminism_as_workflow_fail_for_types,
30
30
  :deployment_options,
31
+ :plugins,
31
32
  keyword_init: true
32
33
  )
33
34
 
@@ -242,6 +242,10 @@ module Temporalio
242
242
  @instance.replaying
243
243
  end
244
244
 
245
+ def replaying_history_events?
246
+ @instance.replaying && !@instance.in_query_or_validator
247
+ end
248
+
245
249
  def search_attributes
246
250
  @instance.search_attributes
247
251
  end
@@ -9,7 +9,7 @@ module Temporalio
9
9
  # Delegator to a hash that does not allow external mutations. Used for memo.
10
10
  class ExternallyImmutableHash < SimpleDelegator
11
11
  def initialize(initial_hash)
12
- super(initial_hash.freeze)
12
+ super(initial_hash.freeze) # steep:ignore ArgumentTypeMismatch
13
13
  end
14
14
 
15
15
  def _update(&)
@@ -7,7 +7,7 @@ module Temporalio
7
7
  # Hash for handlers that notifies when one is added. Only `[]=` and `store` can be used to mutate it.
8
8
  class HandlerHash < SimpleDelegator
9
9
  def initialize(initial_frozen_hash, definition_class, &on_new_definition)
10
- super(initial_frozen_hash)
10
+ super(initial_frozen_hash) # steep:ignore ArgumentTypeMismatch
11
11
  @definition_class = definition_class
12
12
  @on_new_definition = on_new_definition
13
13
  end