temporalio 1.6.0 → 1.7.0

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 (99) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +37 -67
  3. data/Gemfile +3 -0
  4. data/README.md +17 -2
  5. data/Rakefile +1 -1
  6. data/ext/Cargo.toml +3 -3
  7. data/lib/temporalio/api/activity/v1/message.rb +1 -1
  8. data/lib/temporalio/api/batch/v1/message.rb +4 -1
  9. data/lib/temporalio/api/command/v1/message.rb +2 -1
  10. data/lib/temporalio/api/common/v1/message.rb +5 -1
  11. data/lib/temporalio/api/enums/v1/activity.rb +1 -1
  12. data/lib/temporalio/api/enums/v1/batch_operation.rb +1 -1
  13. data/lib/temporalio/api/enums/v1/common.rb +2 -1
  14. data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
  15. data/lib/temporalio/api/enums/v1/time_skipping.rb +21 -0
  16. data/lib/temporalio/api/errordetails/v1/message.rb +2 -1
  17. data/lib/temporalio/api/history/v1/message.rb +1 -1
  18. data/lib/temporalio/api/namespace/v1/message.rb +1 -1
  19. data/lib/temporalio/api/taskqueue/v1/message.rb +2 -1
  20. data/lib/temporalio/api/worker/v1/message.rb +13 -1
  21. data/lib/temporalio/api/workflow/v1/message.rb +1 -1
  22. data/lib/temporalio/api/workflowservice/v1/request_response.rb +4 -1
  23. data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
  24. data/lib/temporalio/client/connection/workflow_service.rb +15 -0
  25. data/lib/temporalio/client/connection.rb +33 -3
  26. data/lib/temporalio/client/schedule.rb +4 -5
  27. data/lib/temporalio/client/workflow_execution.rb +2 -2
  28. data/lib/temporalio/client/workflow_handle.rb +2 -1
  29. data/lib/temporalio/client.rb +4 -6
  30. data/lib/temporalio/converters/data_converter.rb +1 -0
  31. data/lib/temporalio/converters/failure_converter.rb +7 -4
  32. data/lib/temporalio/internal/bridge/api/common/common.rb +2 -1
  33. data/lib/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rb +1 -1
  34. data/lib/temporalio/internal/bridge/client.rb +3 -1
  35. data/lib/temporalio/internal/bridge/runtime.rb +4 -1
  36. data/lib/temporalio/internal/bridge/worker.rb +3 -1
  37. data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +9 -0
  38. data/lib/temporalio/runtime.rb +25 -7
  39. data/lib/temporalio/scoped_logger.rb +15 -0
  40. data/lib/temporalio/version.rb +1 -1
  41. data/lib/temporalio/worker/workflow_replayer.rb +2 -0
  42. data/lib/temporalio/worker.rb +24 -4
  43. data/lib/temporalio/workflow.rb +8 -9
  44. data/rbi/temporalio/api/activity/v1/message.rbi +100 -14
  45. data/rbi/temporalio/api/batch/v1/message.rbi +229 -2
  46. data/rbi/temporalio/api/command/v1/message.rbi +22 -2
  47. data/rbi/temporalio/api/common/v1/message.rbi +548 -74
  48. data/rbi/temporalio/api/enums/v1/activity.rbi +1 -0
  49. data/rbi/temporalio/api/enums/v1/batch_operation.rbi +9 -0
  50. data/rbi/temporalio/api/enums/v1/common.rbi +18 -0
  51. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +4 -0
  52. data/rbi/temporalio/api/enums/v1/time_skipping.rbi +22 -0
  53. data/rbi/temporalio/api/errordetails/v1/message.rbi +59 -2
  54. data/rbi/temporalio/api/history/v1/message.rbi +27 -7
  55. data/rbi/temporalio/api/namespace/v1/message.rbi +95 -4
  56. data/rbi/temporalio/api/taskqueue/v1/message.rbi +113 -2
  57. data/rbi/temporalio/api/worker/v1/message.rbi +742 -2
  58. data/rbi/temporalio/api/workflow/v1/message.rbi +22 -2
  59. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +701 -117
  60. data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +8 -0
  61. data/rbi/temporalio/client/connection/workflow_service.rbi +3 -0
  62. data/rbi/temporalio/client/connection.rbi +2 -0
  63. data/rbi/temporalio/converters/failure_converter.rbi +7 -2
  64. data/rbi/temporalio/internal/bridge/api/common/common.rbi +115 -0
  65. data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +42 -2
  66. data/rbi/temporalio/internal/bridge/runtime.rbi +24 -4
  67. data/rbi/temporalio/internal/bridge/worker.rbi +2 -0
  68. data/rbi/temporalio/runtime.rbi +13 -4
  69. data/rbi/temporalio/scoped_logger.rbi +1 -1
  70. data/rbi/temporalio/worker.rbi +9 -2
  71. data/rbi/temporalio/workflow/future.rbi +1 -1
  72. data/sig/temporalio/api/activity/v1/message.rbs +48 -2
  73. data/sig/temporalio/api/batch/v1/message.rbs +86 -0
  74. data/sig/temporalio/api/command/v1/message.rbs +10 -0
  75. data/sig/temporalio/api/common/v1/message.rbs +240 -39
  76. data/sig/temporalio/api/enums/v1/activity.rbs +9 -5
  77. data/sig/temporalio/api/enums/v1/batch_operation.rbs +33 -3
  78. data/sig/temporalio/api/enums/v1/common.rbs +23 -0
  79. data/sig/temporalio/api/enums/v1/failed_cause.rbs +18 -6
  80. data/sig/temporalio/api/enums/v1/time_skipping.rbs +58 -0
  81. data/sig/temporalio/api/errordetails/v1/message.rbs +19 -0
  82. data/sig/temporalio/api/history/v1/message.rbs +13 -3
  83. data/sig/temporalio/api/namespace/v1/message.rbs +43 -0
  84. data/sig/temporalio/api/taskqueue/v1/message.rbs +44 -0
  85. data/sig/temporalio/api/worker/v1/message.rbs +410 -0
  86. data/sig/temporalio/api/workflow/v1/message.rbs +10 -0
  87. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +311 -40
  88. data/sig/temporalio/client/connection/workflow_service.rbs +4 -0
  89. data/sig/temporalio/client/connection.rbs +14 -1
  90. data/sig/temporalio/converters/failure_converter.rbs +4 -1
  91. data/sig/temporalio/internal/bridge/api/common/common.rbs +50 -0
  92. data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +20 -0
  93. data/sig/temporalio/internal/bridge/client.rbs +5 -1
  94. data/sig/temporalio/internal/bridge/runtime.rbs +9 -3
  95. data/sig/temporalio/internal/bridge/worker.rbs +5 -1
  96. data/sig/temporalio/runtime.rbs +14 -3
  97. data/sig/temporalio/scoped_logger.rbs +1 -1
  98. data/sig/temporalio/worker.rbs +8 -2
  99. metadata +4 -1
@@ -262,12 +262,22 @@ module Temporalio
262
262
  attr_accessor failover_history(): ::Google::Protobuf::RepeatedField
263
263
  def clear_failover_history: () -> void
264
264
 
265
+ # Deprecated. Use `poller_groups_info` instead, which carries a version so the client can
266
+ # ignore stale updates.
265
267
  # The initial info that client should use for poller group assignment. This information is
266
268
  # updated through poll response. Client is supposed to use the info received in the latest
267
269
  # poll response.
270
+ # @deprecated
268
271
  attr_accessor poller_group_infos(): ::Google::Protobuf::RepeatedField
269
272
  def clear_poller_group_infos: () -> void
270
273
 
274
+ # The initial, versioned info that client should use for poller group assignment. This
275
+ # information is updated through poll responses. Client is supposed to use the info with the
276
+ # highest version it has received.
277
+ attr_accessor poller_groups_info(): ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo?
278
+ def has_poller_groups_info?: () -> bool
279
+ def clear_poller_groups_info: () -> void
280
+
271
281
  type init_map = {
272
282
  namespace_info: (::Temporalio::Api::Namespace::V1::NamespaceInfo | ::Temporalio::Api::Namespace::V1::NamespaceInfo::init_map)?,
273
283
  "namespace_info" => (::Temporalio::Api::Namespace::V1::NamespaceInfo | ::Temporalio::Api::Namespace::V1::NamespaceInfo::init_map)?,
@@ -283,6 +293,8 @@ module Temporalio
283
293
  "failover_history" => ::Array[::Temporalio::Api::Replication::V1::FailoverStatus]?,
284
294
  poller_group_infos: ::Array[::Temporalio::Api::TaskQueue::V1::PollerGroupInfo]?,
285
295
  "poller_group_infos" => ::Array[::Temporalio::Api::TaskQueue::V1::PollerGroupInfo]?,
296
+ poller_groups_info: (::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo | ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo::init_map)?,
297
+ "poller_groups_info" => (::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo | ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo::init_map)?,
286
298
  }
287
299
 
288
300
  def initialize: (?init_map initial_value) -> void
@@ -295,6 +307,7 @@ module Temporalio
295
307
  | ("is_global_namespace" name) -> bool
296
308
  | ("failover_history" name) -> ::Google::Protobuf::RepeatedField
297
309
  | ("poller_group_infos" name) -> ::Google::Protobuf::RepeatedField
310
+ | ("poller_groups_info" name) -> ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo?
298
311
 
299
312
  def []=:
300
313
  ("namespace_info" name, ::Temporalio::Api::Namespace::V1::NamespaceInfo? value) -> void
@@ -304,6 +317,7 @@ module Temporalio
304
317
  | ("is_global_namespace" name, bool value) -> void
305
318
  | ("failover_history" name, ::Google::Protobuf::RepeatedField value) -> void
306
319
  | ("poller_group_infos" name, ::Google::Protobuf::RepeatedField value) -> void
320
+ | ("poller_groups_info" name, ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo? value) -> void
307
321
  end
308
322
 
309
323
  class UpdateNamespaceRequest < ::Google::Protobuf::AbstractMessage
@@ -571,8 +585,8 @@ module Temporalio
571
585
  def has_last_completion_result?: () -> bool
572
586
  def clear_last_completion_result: () -> void
573
587
 
574
- # Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
575
- # If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
588
+ # Time to wait before making the first workflow task available for dispatch. Cannot be used with `cron_schedule`.
589
+ # If the workflow gets a signal before the delay, a workflow task will be made available for dispatch and the rest
576
590
  # of the delay will be ignored.
577
591
  attr_reader workflow_start_delay(): ::Google::Protobuf::Duration?
578
592
  attr_writer workflow_start_delay(): (::Google::Protobuf::Duration | ::int)?
@@ -758,6 +772,11 @@ module Temporalio
758
772
  attr_writer run_id(): ::String | ::Symbol
759
773
  def clear_run_id: () -> void
760
774
 
775
+ # If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
776
+ attr_reader first_execution_run_id(): ::String
777
+ attr_writer first_execution_run_id(): ::String | ::Symbol
778
+ def clear_first_execution_run_id: () -> void
779
+
761
780
  # If true, a new workflow was started.
762
781
  attr_accessor started(): bool
763
782
  def clear_started: () -> void
@@ -784,6 +803,8 @@ module Temporalio
784
803
  type init_map = {
785
804
  run_id: (::String | ::Symbol)?,
786
805
  "run_id" => (::String | ::Symbol)?,
806
+ first_execution_run_id: (::String | ::Symbol)?,
807
+ "first_execution_run_id" => (::String | ::Symbol)?,
787
808
  started: bool?,
788
809
  "started" => bool?,
789
810
  status: (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?,
@@ -798,6 +819,7 @@ module Temporalio
798
819
 
799
820
  def []:
800
821
  ("run_id" name) -> ::String
822
+ | ("first_execution_run_id" name) -> ::String
801
823
  | ("started" name) -> bool
802
824
  | ("status" name) -> (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer)
803
825
  | ("eager_workflow_task" name) -> ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse?
@@ -805,6 +827,7 @@ module Temporalio
805
827
 
806
828
  def []=:
807
829
  ("run_id" name, (::String | ::Symbol) value) -> void
830
+ | ("first_execution_run_id" name, (::String | ::Symbol) value) -> void
808
831
  | ("started" name, bool value) -> void
809
832
  | ("status" name, (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float) value) -> void
810
833
  | ("eager_workflow_task" name, ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse? value) -> void
@@ -1204,15 +1227,29 @@ module Temporalio
1204
1227
  attr_writer poller_group_id(): ::String | ::Symbol
1205
1228
  def clear_poller_group_id: () -> void
1206
1229
 
1230
+ # Deprecated. Use `poller_groups_info` instead, which carries a version so the client can
1231
+ # ignore stale updates.
1207
1232
  # The weighted list of poller groups IDs that client should use for future polls to this task
1208
1233
  # queue. Client is expected to:
1209
1234
  # 1. Maintain minimum number of pollers no less than the number of groups.
1210
1235
  # 2. Try to assign the next poll to a group without any pending polls,
1211
1236
  # 3. If every group has some pending polls, assign the next poll to a group randomly
1212
1237
  # according to the weights.
1238
+ # @deprecated
1213
1239
  attr_accessor poller_group_infos(): ::Google::Protobuf::RepeatedField
1214
1240
  def clear_poller_group_infos: () -> void
1215
1241
 
1242
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
1243
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
1244
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
1245
+ # 1. Maintain minimum number of pollers no less than the number of groups.
1246
+ # 2. Try to assign the next poll to a group without any pending polls,
1247
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
1248
+ # according to the weights.
1249
+ attr_accessor poller_groups_info(): ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo?
1250
+ def has_poller_groups_info?: () -> bool
1251
+ def clear_poller_groups_info: () -> void
1252
+
1216
1253
  type init_map = {
1217
1254
  task_token: ::String?,
1218
1255
  "task_token" => ::String?,
@@ -1250,6 +1287,8 @@ module Temporalio
1250
1287
  "poller_group_id" => (::String | ::Symbol)?,
1251
1288
  poller_group_infos: ::Array[::Temporalio::Api::TaskQueue::V1::PollerGroupInfo]?,
1252
1289
  "poller_group_infos" => ::Array[::Temporalio::Api::TaskQueue::V1::PollerGroupInfo]?,
1290
+ poller_groups_info: (::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo | ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo::init_map)?,
1291
+ "poller_groups_info" => (::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo | ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo::init_map)?,
1253
1292
  }
1254
1293
 
1255
1294
  def initialize: (?init_map initial_value) -> void
@@ -1273,6 +1312,7 @@ module Temporalio
1273
1312
  | ("poller_scaling_decision" name) -> ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision?
1274
1313
  | ("poller_group_id" name) -> ::String
1275
1314
  | ("poller_group_infos" name) -> ::Google::Protobuf::RepeatedField
1315
+ | ("poller_groups_info" name) -> ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo?
1276
1316
 
1277
1317
  def []=:
1278
1318
  ("task_token" name, ::String value) -> void
@@ -1293,6 +1333,7 @@ module Temporalio
1293
1333
  | ("poller_scaling_decision" name, ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? value) -> void
1294
1334
  | ("poller_group_id" name, (::String | ::Symbol) value) -> void
1295
1335
  | ("poller_group_infos" name, ::Google::Protobuf::RepeatedField value) -> void
1336
+ | ("poller_groups_info" name, ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo? value) -> void
1296
1337
  end
1297
1338
 
1298
1339
  class RespondWorkflowTaskCompletedRequest < ::Google::Protobuf::AbstractMessage
@@ -1433,6 +1474,19 @@ module Temporalio
1433
1474
  attr_writer worker_control_task_queue(): ::String | ::Symbol
1434
1475
  def clear_worker_control_task_queue: () -> void
1435
1476
 
1477
+ # 0-indexed page number when the workflow task completion is split across multiple
1478
+ # requests ("pages"). 0 for single-page requests. May only be set to non-zero value
1479
+ # when the namespace capability workflow_task_completion_pagination is true.
1480
+ attr_reader page_number(): ::Integer
1481
+ attr_writer page_number(): ::Integer | ::Float
1482
+ def clear_page_number: () -> void
1483
+
1484
+ # True for non-final pages of a paginated workflow task completion. The final page's
1485
+ # `page_number` tells the server how many intermediate pages (0..page_number-1) preceded it.
1486
+ # May only be used when the namespace capability workflow_task_completion_pagination is true.
1487
+ attr_accessor intermediate_page(): bool
1488
+ def clear_intermediate_page: () -> void
1489
+
1436
1490
  type init_map = {
1437
1491
  task_token: ::String?,
1438
1492
  "task_token" => ::String?,
@@ -1474,6 +1528,10 @@ module Temporalio
1474
1528
  "worker_instance_key" => (::String | ::Symbol)?,
1475
1529
  worker_control_task_queue: (::String | ::Symbol)?,
1476
1530
  "worker_control_task_queue" => (::String | ::Symbol)?,
1531
+ page_number: (::Integer | ::Float)?,
1532
+ "page_number" => (::Integer | ::Float)?,
1533
+ intermediate_page: bool?,
1534
+ "intermediate_page" => bool?,
1477
1535
  }
1478
1536
 
1479
1537
  def initialize: (?init_map initial_value) -> void
@@ -1499,6 +1557,8 @@ module Temporalio
1499
1557
  | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions?
1500
1558
  | ("worker_instance_key" name) -> ::String
1501
1559
  | ("worker_control_task_queue" name) -> ::String
1560
+ | ("page_number" name) -> ::Integer
1561
+ | ("intermediate_page" name) -> bool
1502
1562
 
1503
1563
  def []=:
1504
1564
  ("task_token" name, ::String value) -> void
@@ -1521,6 +1581,8 @@ module Temporalio
1521
1581
  | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void
1522
1582
  | ("worker_instance_key" name, (::String | ::Symbol) value) -> void
1523
1583
  | ("worker_control_task_queue" name, (::String | ::Symbol) value) -> void
1584
+ | ("page_number" name, (::Integer | ::Float) value) -> void
1585
+ | ("intermediate_page" name, bool value) -> void
1524
1586
  end
1525
1587
 
1526
1588
  class RespondWorkflowTaskCompletedResponse < ::Google::Protobuf::AbstractMessage
@@ -1913,9 +1975,21 @@ module Temporalio
1913
1975
  # 2. Try to assign the next poll to a group without any pending polls,
1914
1976
  # 3. If every group has some pending polls, assign the next poll to a group randomly
1915
1977
  # according to the weights.
1978
+ # @deprecated
1916
1979
  attr_accessor poller_group_infos(): ::Google::Protobuf::RepeatedField
1917
1980
  def clear_poller_group_infos: () -> void
1918
1981
 
1982
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
1983
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
1984
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
1985
+ # 1. Maintain minimum number of pollers no less than the number of groups.
1986
+ # 2. Try to assign the next poll to a group without any pending polls,
1987
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
1988
+ # according to the weights.
1989
+ attr_accessor poller_groups_info(): ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo?
1990
+ def has_poller_groups_info?: () -> bool
1991
+ def clear_poller_groups_info: () -> void
1992
+
1919
1993
  type init_map = {
1920
1994
  task_token: ::String?,
1921
1995
  "task_token" => ::String?,
@@ -1959,6 +2033,8 @@ module Temporalio
1959
2033
  "activity_run_id" => (::String | ::Symbol)?,
1960
2034
  poller_group_infos: ::Array[::Temporalio::Api::TaskQueue::V1::PollerGroupInfo]?,
1961
2035
  "poller_group_infos" => ::Array[::Temporalio::Api::TaskQueue::V1::PollerGroupInfo]?,
2036
+ poller_groups_info: (::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo | ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo::init_map)?,
2037
+ "poller_groups_info" => (::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo | ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo::init_map)?,
1962
2038
  }
1963
2039
 
1964
2040
  def initialize: (?init_map initial_value) -> void
@@ -1985,6 +2061,7 @@ module Temporalio
1985
2061
  | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority?
1986
2062
  | ("activity_run_id" name) -> ::String
1987
2063
  | ("poller_group_infos" name) -> ::Google::Protobuf::RepeatedField
2064
+ | ("poller_groups_info" name) -> ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo?
1988
2065
 
1989
2066
  def []=:
1990
2067
  ("task_token" name, ::String value) -> void
@@ -2008,6 +2085,7 @@ module Temporalio
2008
2085
  | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void
2009
2086
  | ("activity_run_id" name, (::String | ::Symbol) value) -> void
2010
2087
  | ("poller_group_infos" name, ::Google::Protobuf::RepeatedField value) -> void
2088
+ | ("poller_groups_info" name, ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo? value) -> void
2011
2089
  end
2012
2090
 
2013
2091
  class RecordActivityTaskHeartbeatRequest < ::Google::Protobuf::AbstractMessage
@@ -3120,9 +3198,9 @@ module Temporalio
3120
3198
  def has_header?: () -> bool
3121
3199
  def clear_header: () -> void
3122
3200
 
3123
- # Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
3201
+ # Time to wait before making the first workflow task available for dispatch. Cannot be used with `cron_schedule`.
3124
3202
  # Note that the signal will be delivered with the first workflow task. If the workflow gets
3125
- # another SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately
3203
+ # another SignalWithStartWorkflow before the delay a workflow task will be made available for dispatch immediately
3126
3204
  # and the rest of the delay period will be ignored, even if that request also had a delay.
3127
3205
  # Signal via SignalWorkflowExecution will not unblock the workflow.
3128
3206
  attr_reader workflow_start_delay(): ::Google::Protobuf::Duration?
@@ -3278,6 +3356,11 @@ module Temporalio
3278
3356
  attr_writer run_id(): ::String | ::Symbol
3279
3357
  def clear_run_id: () -> void
3280
3358
 
3359
+ # If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
3360
+ attr_reader first_execution_run_id(): ::String
3361
+ attr_writer first_execution_run_id(): ::String | ::Symbol
3362
+ def clear_first_execution_run_id: () -> void
3363
+
3281
3364
  # If true, a new workflow was started.
3282
3365
  attr_accessor started(): bool
3283
3366
  def clear_started: () -> void
@@ -3292,6 +3375,8 @@ module Temporalio
3292
3375
  type init_map = {
3293
3376
  run_id: (::String | ::Symbol)?,
3294
3377
  "run_id" => (::String | ::Symbol)?,
3378
+ first_execution_run_id: (::String | ::Symbol)?,
3379
+ "first_execution_run_id" => (::String | ::Symbol)?,
3295
3380
  started: bool?,
3296
3381
  "started" => bool?,
3297
3382
  signal_link: (::Temporalio::Api::Common::V1::Link | ::Temporalio::Api::Common::V1::Link::init_map)?,
@@ -3302,11 +3387,13 @@ module Temporalio
3302
3387
 
3303
3388
  def []:
3304
3389
  ("run_id" name) -> ::String
3390
+ | ("first_execution_run_id" name) -> ::String
3305
3391
  | ("started" name) -> bool
3306
3392
  | ("signal_link" name) -> ::Temporalio::Api::Common::V1::Link?
3307
3393
 
3308
3394
  def []=:
3309
3395
  ("run_id" name, (::String | ::Symbol) value) -> void
3396
+ | ("first_execution_run_id" name, (::String | ::Symbol) value) -> void
3310
3397
  | ("started" name, bool value) -> void
3311
3398
  | ("signal_link" name, ::Temporalio::Api::Common::V1::Link? value) -> void
3312
3399
  end
@@ -4347,11 +4434,18 @@ module Temporalio
4347
4434
  def has_query_rejected?: () -> bool
4348
4435
  def clear_query_rejected: () -> void
4349
4436
 
4437
+ # Holds the link to the Workflow execution that processed the Query.
4438
+ attr_accessor link(): ::Temporalio::Api::Common::V1::Link?
4439
+ def has_link?: () -> bool
4440
+ def clear_link: () -> void
4441
+
4350
4442
  type init_map = {
4351
4443
  query_result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
4352
4444
  "query_result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?,
4353
4445
  query_rejected: (::Temporalio::Api::Query::V1::QueryRejected | ::Temporalio::Api::Query::V1::QueryRejected::init_map)?,
4354
4446
  "query_rejected" => (::Temporalio::Api::Query::V1::QueryRejected | ::Temporalio::Api::Query::V1::QueryRejected::init_map)?,
4447
+ link: (::Temporalio::Api::Common::V1::Link | ::Temporalio::Api::Common::V1::Link::init_map)?,
4448
+ "link" => (::Temporalio::Api::Common::V1::Link | ::Temporalio::Api::Common::V1::Link::init_map)?,
4355
4449
  }
4356
4450
 
4357
4451
  def initialize: (?init_map initial_value) -> void
@@ -4359,10 +4453,12 @@ module Temporalio
4359
4453
  def []:
4360
4454
  ("query_result" name) -> ::Temporalio::Api::Common::V1::Payloads?
4361
4455
  | ("query_rejected" name) -> ::Temporalio::Api::Query::V1::QueryRejected?
4456
+ | ("link" name) -> ::Temporalio::Api::Common::V1::Link?
4362
4457
 
4363
4458
  def []=:
4364
4459
  ("query_result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void
4365
4460
  | ("query_rejected" name, ::Temporalio::Api::Query::V1::QueryRejected? value) -> void
4461
+ | ("link" name, ::Temporalio::Api::Common::V1::Link? value) -> void
4366
4462
  end
4367
4463
 
4368
4464
  class DescribeWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage
@@ -4893,6 +4989,12 @@ module Temporalio
4893
4989
  attr_accessor server_scaled_deployments(): bool
4894
4990
  def clear_server_scaled_deployments: () -> void
4895
4991
 
4992
+ # True if the server supports the Cloud Run compute provider for
4993
+ # server-scaled deployments. Dependent on server version and the
4994
+ # provider being enabled via server configuration.
4995
+ attr_accessor server_scaled_provider_cloud_run(): bool
4996
+ def clear_server_scaled_provider_cloud_run: () -> void
4997
+
4896
4998
  type init_map = {
4897
4999
  signal_and_query_header: bool?,
4898
5000
  "signal_and_query_header" => bool?,
@@ -4918,6 +5020,8 @@ module Temporalio
4918
5020
  "nexus" => bool?,
4919
5021
  server_scaled_deployments: bool?,
4920
5022
  "server_scaled_deployments" => bool?,
5023
+ server_scaled_provider_cloud_run: bool?,
5024
+ "server_scaled_provider_cloud_run" => bool?,
4921
5025
  }
4922
5026
 
4923
5027
  def initialize: (?init_map initial_value) -> void
@@ -4935,6 +5039,7 @@ module Temporalio
4935
5039
  | ("count_group_by_execution_status" name) -> bool
4936
5040
  | ("nexus" name) -> bool
4937
5041
  | ("server_scaled_deployments" name) -> bool
5042
+ | ("server_scaled_provider_cloud_run" name) -> bool
4938
5043
 
4939
5044
  def []=:
4940
5045
  ("signal_and_query_header" name, bool value) -> void
@@ -4949,6 +5054,7 @@ module Temporalio
4949
5054
  | ("count_group_by_execution_status" name, bool value) -> void
4950
5055
  | ("nexus" name, bool value) -> void
4951
5056
  | ("server_scaled_deployments" name, bool value) -> void
5057
+ | ("server_scaled_provider_cloud_run" name, bool value) -> void
4952
5058
  end
4953
5059
 
4954
5060
  # Version of the server.
@@ -6572,9 +6678,16 @@ module Temporalio
6572
6678
 
6573
6679
  # Executions to apply the batch operation
6574
6680
  # This field and `visibility_query` are mutually exclusive
6681
+ # DEPRECATED: Use `target_executions` instead.
6682
+ # @deprecated
6575
6683
  attr_accessor executions(): ::Google::Protobuf::RepeatedField
6576
6684
  def clear_executions: () -> void
6577
6685
 
6686
+ # Target executions to apply the batch operation. This field and `visibility_query`
6687
+ # are mutually exclusive.
6688
+ attr_accessor target_executions(): ::Google::Protobuf::RepeatedField
6689
+ def clear_target_executions: () -> void
6690
+
6578
6691
  # Limit for the number of operations processed per second within this batch.
6579
6692
  # Its purpose is to reduce the stress on the system caused by batch operations, which helps to prevent system
6580
6693
  # overload and minimize potential delays in executing ongoing tasks for user workers.
@@ -6621,8 +6734,20 @@ module Temporalio
6621
6734
  def has_update_activity_options_operation?: () -> bool
6622
6735
  def clear_update_activity_options_operation: () -> void
6623
6736
 
6737
+ attr_accessor cancel_activities_operation(): ::Temporalio::Api::Batch::V1::BatchOperationCancelActivities?
6738
+ def has_cancel_activities_operation?: () -> bool
6739
+ def clear_cancel_activities_operation: () -> void
6740
+
6741
+ attr_accessor terminate_activities_operation(): ::Temporalio::Api::Batch::V1::BatchOperationTerminateActivities?
6742
+ def has_terminate_activities_operation?: () -> bool
6743
+ def clear_terminate_activities_operation: () -> void
6744
+
6745
+ attr_accessor delete_activities_operation(): ::Temporalio::Api::Batch::V1::BatchOperationDeleteActivities?
6746
+ def has_delete_activities_operation?: () -> bool
6747
+ def clear_delete_activities_operation: () -> void
6748
+
6624
6749
  # Operation input
6625
- attr_reader operation(): (::Temporalio::Api::Batch::V1::BatchOperationTermination | ::Temporalio::Api::Batch::V1::BatchOperationSignal | ::Temporalio::Api::Batch::V1::BatchOperationCancellation | ::Temporalio::Api::Batch::V1::BatchOperationDeletion | ::Temporalio::Api::Batch::V1::BatchOperationReset | ::Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions | ::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities | ::Temporalio::Api::Batch::V1::BatchOperationResetActivities | ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions)?
6750
+ attr_reader operation(): (::Temporalio::Api::Batch::V1::BatchOperationTermination | ::Temporalio::Api::Batch::V1::BatchOperationSignal | ::Temporalio::Api::Batch::V1::BatchOperationCancellation | ::Temporalio::Api::Batch::V1::BatchOperationDeletion | ::Temporalio::Api::Batch::V1::BatchOperationReset | ::Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions | ::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities | ::Temporalio::Api::Batch::V1::BatchOperationResetActivities | ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions | ::Temporalio::Api::Batch::V1::BatchOperationCancelActivities | ::Temporalio::Api::Batch::V1::BatchOperationTerminateActivities | ::Temporalio::Api::Batch::V1::BatchOperationDeleteActivities)?
6626
6751
  def has_operation?: () -> bool
6627
6752
  def clear_operation: () -> void
6628
6753
 
@@ -6637,6 +6762,8 @@ module Temporalio
6637
6762
  "reason" => (::String | ::Symbol)?,
6638
6763
  executions: ::Array[::Temporalio::Api::Common::V1::WorkflowExecution]?,
6639
6764
  "executions" => ::Array[::Temporalio::Api::Common::V1::WorkflowExecution]?,
6765
+ target_executions: ::Array[::Temporalio::Api::Common::V1::Execution]?,
6766
+ "target_executions" => ::Array[::Temporalio::Api::Common::V1::Execution]?,
6640
6767
  max_operations_per_second: (::Float | ::Integer)?,
6641
6768
  "max_operations_per_second" => (::Float | ::Integer)?,
6642
6769
  termination_operation: (::Temporalio::Api::Batch::V1::BatchOperationTermination | ::Temporalio::Api::Batch::V1::BatchOperationTermination::init_map)?,
@@ -6657,6 +6784,12 @@ module Temporalio
6657
6784
  "reset_activities_operation" => (::Temporalio::Api::Batch::V1::BatchOperationResetActivities | ::Temporalio::Api::Batch::V1::BatchOperationResetActivities::init_map)?,
6658
6785
  update_activity_options_operation: (::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions | ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions::init_map)?,
6659
6786
  "update_activity_options_operation" => (::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions | ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions::init_map)?,
6787
+ cancel_activities_operation: (::Temporalio::Api::Batch::V1::BatchOperationCancelActivities | ::Temporalio::Api::Batch::V1::BatchOperationCancelActivities::init_map)?,
6788
+ "cancel_activities_operation" => (::Temporalio::Api::Batch::V1::BatchOperationCancelActivities | ::Temporalio::Api::Batch::V1::BatchOperationCancelActivities::init_map)?,
6789
+ terminate_activities_operation: (::Temporalio::Api::Batch::V1::BatchOperationTerminateActivities | ::Temporalio::Api::Batch::V1::BatchOperationTerminateActivities::init_map)?,
6790
+ "terminate_activities_operation" => (::Temporalio::Api::Batch::V1::BatchOperationTerminateActivities | ::Temporalio::Api::Batch::V1::BatchOperationTerminateActivities::init_map)?,
6791
+ delete_activities_operation: (::Temporalio::Api::Batch::V1::BatchOperationDeleteActivities | ::Temporalio::Api::Batch::V1::BatchOperationDeleteActivities::init_map)?,
6792
+ "delete_activities_operation" => (::Temporalio::Api::Batch::V1::BatchOperationDeleteActivities | ::Temporalio::Api::Batch::V1::BatchOperationDeleteActivities::init_map)?,
6660
6793
  }
6661
6794
 
6662
6795
  def initialize: (?init_map initial_value) -> void
@@ -6667,6 +6800,7 @@ module Temporalio
6667
6800
  | ("job_id" name) -> ::String
6668
6801
  | ("reason" name) -> ::String
6669
6802
  | ("executions" name) -> ::Google::Protobuf::RepeatedField
6803
+ | ("target_executions" name) -> ::Google::Protobuf::RepeatedField
6670
6804
  | ("max_operations_per_second" name) -> ::Float
6671
6805
  | ("termination_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationTermination?
6672
6806
  | ("signal_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationSignal?
@@ -6677,6 +6811,9 @@ module Temporalio
6677
6811
  | ("unpause_activities_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities?
6678
6812
  | ("reset_activities_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationResetActivities?
6679
6813
  | ("update_activity_options_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions?
6814
+ | ("cancel_activities_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationCancelActivities?
6815
+ | ("terminate_activities_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationTerminateActivities?
6816
+ | ("delete_activities_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationDeleteActivities?
6680
6817
 
6681
6818
  def []=:
6682
6819
  ("namespace" name, (::String | ::Symbol) value) -> void
@@ -6684,6 +6821,7 @@ module Temporalio
6684
6821
  | ("job_id" name, (::String | ::Symbol) value) -> void
6685
6822
  | ("reason" name, (::String | ::Symbol) value) -> void
6686
6823
  | ("executions" name, ::Google::Protobuf::RepeatedField value) -> void
6824
+ | ("target_executions" name, ::Google::Protobuf::RepeatedField value) -> void
6687
6825
  | ("max_operations_per_second" name, (::Float | ::Integer) value) -> void
6688
6826
  | ("termination_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationTermination? value) -> void
6689
6827
  | ("signal_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationSignal? value) -> void
@@ -6694,6 +6832,9 @@ module Temporalio
6694
6832
  | ("unpause_activities_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities? value) -> void
6695
6833
  | ("reset_activities_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationResetActivities? value) -> void
6696
6834
  | ("update_activity_options_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions? value) -> void
6835
+ | ("cancel_activities_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationCancelActivities? value) -> void
6836
+ | ("terminate_activities_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationTerminateActivities? value) -> void
6837
+ | ("delete_activities_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationDeleteActivities? value) -> void
6697
6838
  end
6698
6839
 
6699
6840
  class StartBatchOperationResponse < ::Google::Protobuf::AbstractMessage
@@ -6846,6 +6987,15 @@ module Temporalio
6846
6987
  attr_writer reason(): ::String | ::Symbol
6847
6988
  def clear_reason: () -> void
6848
6989
 
6990
+ # Query is the visibility query that defines the group of workflow to apply the batch operation
6991
+ attr_reader query(): ::String
6992
+ attr_writer query(): ::String | ::Symbol
6993
+ def clear_query: () -> void
6994
+
6995
+ # Executions is the list of workflow OR standalone activity executions to apply the batch operation
6996
+ attr_accessor executions(): ::Google::Protobuf::RepeatedField
6997
+ def clear_executions: () -> void
6998
+
6849
6999
  type init_map = {
6850
7000
  operation_type: (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float)?,
6851
7001
  "operation_type" => (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float)?,
@@ -6867,6 +7017,10 @@ module Temporalio
6867
7017
  "identity" => (::String | ::Symbol)?,
6868
7018
  reason: (::String | ::Symbol)?,
6869
7019
  "reason" => (::String | ::Symbol)?,
7020
+ query: (::String | ::Symbol)?,
7021
+ "query" => (::String | ::Symbol)?,
7022
+ executions: ::Array[::Temporalio::Api::Common::V1::Execution]?,
7023
+ "executions" => ::Array[::Temporalio::Api::Common::V1::Execution]?,
6870
7024
  }
6871
7025
 
6872
7026
  def initialize: (?init_map initial_value) -> void
@@ -6882,6 +7036,8 @@ module Temporalio
6882
7036
  | ("failure_operation_count" name) -> ::Integer
6883
7037
  | ("identity" name) -> ::String
6884
7038
  | ("reason" name) -> ::String
7039
+ | ("query" name) -> ::String
7040
+ | ("executions" name) -> ::Google::Protobuf::RepeatedField
6885
7041
 
6886
7042
  def []=:
6887
7043
  ("operation_type" name, (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float) value) -> void
@@ -6894,6 +7050,8 @@ module Temporalio
6894
7050
  | ("failure_operation_count" name, (::Integer | ::Float) value) -> void
6895
7051
  | ("identity" name, (::String | ::Symbol) value) -> void
6896
7052
  | ("reason" name, (::String | ::Symbol) value) -> void
7053
+ | ("query" name, (::String | ::Symbol) value) -> void
7054
+ | ("executions" name, ::Google::Protobuf::RepeatedField value) -> void
6897
7055
  end
6898
7056
 
6899
7057
  class ListBatchOperationsRequest < ::Google::Protobuf::AbstractMessage
@@ -7182,9 +7340,21 @@ module Temporalio
7182
7340
  # 2. Try to assign the next poll to a group without any pending polls,
7183
7341
  # 3. If every group has some pending polls, assign the next poll to a group randomly
7184
7342
  # according to the weights.
7343
+ # @deprecated
7185
7344
  attr_accessor poller_group_infos(): ::Google::Protobuf::RepeatedField
7186
7345
  def clear_poller_group_infos: () -> void
7187
7346
 
7347
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
7348
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
7349
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
7350
+ # 1. Maintain minimum number of pollers no less than the number of groups.
7351
+ # 2. Try to assign the next poll to a group without any pending polls,
7352
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
7353
+ # according to the weights.
7354
+ attr_accessor poller_groups_info(): ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo?
7355
+ def has_poller_groups_info?: () -> bool
7356
+ def clear_poller_groups_info: () -> void
7357
+
7188
7358
  type init_map = {
7189
7359
  task_token: ::String?,
7190
7360
  "task_token" => ::String?,
@@ -7196,6 +7366,8 @@ module Temporalio
7196
7366
  "poller_group_id" => (::String | ::Symbol)?,
7197
7367
  poller_group_infos: ::Array[::Temporalio::Api::TaskQueue::V1::PollerGroupInfo]?,
7198
7368
  "poller_group_infos" => ::Array[::Temporalio::Api::TaskQueue::V1::PollerGroupInfo]?,
7369
+ poller_groups_info: (::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo | ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo::init_map)?,
7370
+ "poller_groups_info" => (::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo | ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo::init_map)?,
7199
7371
  }
7200
7372
 
7201
7373
  def initialize: (?init_map initial_value) -> void
@@ -7206,6 +7378,7 @@ module Temporalio
7206
7378
  | ("poller_scaling_decision" name) -> ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision?
7207
7379
  | ("poller_group_id" name) -> ::String
7208
7380
  | ("poller_group_infos" name) -> ::Google::Protobuf::RepeatedField
7381
+ | ("poller_groups_info" name) -> ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo?
7209
7382
 
7210
7383
  def []=:
7211
7384
  ("task_token" name, ::String value) -> void
@@ -7213,6 +7386,7 @@ module Temporalio
7213
7386
  | ("poller_scaling_decision" name, ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? value) -> void
7214
7387
  | ("poller_group_id" name, (::String | ::Symbol) value) -> void
7215
7388
  | ("poller_group_infos" name, ::Google::Protobuf::RepeatedField value) -> void
7389
+ | ("poller_groups_info" name, ::Temporalio::Api::TaskQueue::V1::PollerGroupsInfo? value) -> void
7216
7390
  end
7217
7391
 
7218
7392
  class RespondNexusTaskCompletedRequest < ::Google::Protobuf::AbstractMessage
@@ -7608,12 +7782,12 @@ module Temporalio
7608
7782
  attr_writer workflow_id(): ::String | ::Symbol
7609
7783
  def clear_workflow_id: () -> void
7610
7784
 
7611
- # The ID of the activity to target.
7785
+ # The ID of the activity to target.
7612
7786
  attr_reader activity_id(): ::String
7613
7787
  attr_writer activity_id(): ::String | ::Symbol
7614
7788
  def clear_activity_id: () -> void
7615
7789
 
7616
- # Run ID of the workflow or standalone activity.
7790
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
7617
7791
  attr_reader run_id(): ::String
7618
7792
  attr_writer run_id(): ::String | ::Symbol
7619
7793
  def clear_run_id: () -> void
@@ -7646,6 +7820,11 @@ module Temporalio
7646
7820
  attr_writer resource_id(): ::String | ::Symbol
7647
7821
  def clear_resource_id: () -> void
7648
7822
 
7823
+ # Used to de-dupe update requests.
7824
+ attr_reader request_id(): ::String
7825
+ attr_writer request_id(): ::String | ::Symbol
7826
+ def clear_request_id: () -> void
7827
+
7649
7828
  type init_map = {
7650
7829
  namespace: (::String | ::Symbol)?,
7651
7830
  "namespace" => (::String | ::Symbol)?,
@@ -7665,6 +7844,8 @@ module Temporalio
7665
7844
  "restore_original" => bool?,
7666
7845
  resource_id: (::String | ::Symbol)?,
7667
7846
  "resource_id" => (::String | ::Symbol)?,
7847
+ request_id: (::String | ::Symbol)?,
7848
+ "request_id" => (::String | ::Symbol)?,
7668
7849
  }
7669
7850
 
7670
7851
  def initialize: (?init_map initial_value) -> void
@@ -7679,6 +7860,7 @@ module Temporalio
7679
7860
  | ("update_mask" name) -> ::Google::Protobuf::FieldMask?
7680
7861
  | ("restore_original" name) -> bool
7681
7862
  | ("resource_id" name) -> ::String
7863
+ | ("request_id" name) -> ::String
7682
7864
 
7683
7865
  def []=:
7684
7866
  ("namespace" name, (::String | ::Symbol) value) -> void
@@ -7690,6 +7872,7 @@ module Temporalio
7690
7872
  | ("update_mask" name, ::Google::Protobuf::FieldMask? value) -> void
7691
7873
  | ("restore_original" name, bool value) -> void
7692
7874
  | ("resource_id" name, (::String | ::Symbol) value) -> void
7875
+ | ("request_id" name, (::String | ::Symbol) value) -> void
7693
7876
  end
7694
7877
 
7695
7878
  # Deprecated. Use `UpdateActivityExecutionOptionsResponse`.
@@ -7832,12 +8015,12 @@ module Temporalio
7832
8015
  attr_writer workflow_id(): ::String | ::Symbol
7833
8016
  def clear_workflow_id: () -> void
7834
8017
 
7835
- # The ID of the activity to target.
8018
+ # The ID of the activity to target.
7836
8019
  attr_reader activity_id(): ::String
7837
8020
  attr_writer activity_id(): ::String | ::Symbol
7838
8021
  def clear_activity_id: () -> void
7839
8022
 
7840
- # Run ID of the workflow or standalone activity.
8023
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
7841
8024
  attr_reader run_id(): ::String
7842
8025
  attr_writer run_id(): ::String | ::Symbol
7843
8026
  def clear_run_id: () -> void
@@ -8035,12 +8218,12 @@ module Temporalio
8035
8218
  attr_writer workflow_id(): ::String | ::Symbol
8036
8219
  def clear_workflow_id: () -> void
8037
8220
 
8038
- # The ID of the activity to target.
8221
+ # The ID of the activity to target.
8039
8222
  attr_reader activity_id(): ::String
8040
8223
  attr_writer activity_id(): ::String | ::Symbol
8041
8224
  def clear_activity_id: () -> void
8042
8225
 
8043
- # Run ID of the workflow or standalone activity.
8226
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
8044
8227
  attr_reader run_id(): ::String
8045
8228
  attr_writer run_id(): ::String | ::Symbol
8046
8229
  def clear_run_id: () -> void
@@ -8050,14 +8233,6 @@ module Temporalio
8050
8233
  attr_writer identity(): ::String | ::Symbol
8051
8234
  def clear_identity: () -> void
8052
8235
 
8053
- # Providing this flag will also reset the number of attempts.
8054
- attr_accessor reset_attempts(): bool
8055
- def clear_reset_attempts: () -> void
8056
-
8057
- # Providing this flag will also reset the heartbeat details.
8058
- attr_accessor reset_heartbeat(): bool
8059
- def clear_reset_heartbeat: () -> void
8060
-
8061
8236
  # Reason to unpause the activity.
8062
8237
  attr_reader reason(): ::String
8063
8238
  attr_writer reason(): ::String | ::Symbol
@@ -8074,6 +8249,11 @@ module Temporalio
8074
8249
  attr_writer resource_id(): ::String | ::Symbol
8075
8250
  def clear_resource_id: () -> void
8076
8251
 
8252
+ # Used to de-dupe unpause requests.
8253
+ attr_reader request_id(): ::String
8254
+ attr_writer request_id(): ::String | ::Symbol
8255
+ def clear_request_id: () -> void
8256
+
8077
8257
  type init_map = {
8078
8258
  namespace: (::String | ::Symbol)?,
8079
8259
  "namespace" => (::String | ::Symbol)?,
@@ -8085,16 +8265,14 @@ module Temporalio
8085
8265
  "run_id" => (::String | ::Symbol)?,
8086
8266
  identity: (::String | ::Symbol)?,
8087
8267
  "identity" => (::String | ::Symbol)?,
8088
- reset_attempts: bool?,
8089
- "reset_attempts" => bool?,
8090
- reset_heartbeat: bool?,
8091
- "reset_heartbeat" => bool?,
8092
8268
  reason: (::String | ::Symbol)?,
8093
8269
  "reason" => (::String | ::Symbol)?,
8094
8270
  jitter: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
8095
8271
  "jitter" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
8096
8272
  resource_id: (::String | ::Symbol)?,
8097
8273
  "resource_id" => (::String | ::Symbol)?,
8274
+ request_id: (::String | ::Symbol)?,
8275
+ "request_id" => (::String | ::Symbol)?,
8098
8276
  }
8099
8277
 
8100
8278
  def initialize: (?init_map initial_value) -> void
@@ -8105,11 +8283,10 @@ module Temporalio
8105
8283
  | ("activity_id" name) -> ::String
8106
8284
  | ("run_id" name) -> ::String
8107
8285
  | ("identity" name) -> ::String
8108
- | ("reset_attempts" name) -> bool
8109
- | ("reset_heartbeat" name) -> bool
8110
8286
  | ("reason" name) -> ::String
8111
8287
  | ("jitter" name) -> ::Google::Protobuf::Duration?
8112
8288
  | ("resource_id" name) -> ::String
8289
+ | ("request_id" name) -> ::String
8113
8290
 
8114
8291
  def []=:
8115
8292
  ("namespace" name, (::String | ::Symbol) value) -> void
@@ -8117,11 +8294,10 @@ module Temporalio
8117
8294
  | ("activity_id" name, (::String | ::Symbol) value) -> void
8118
8295
  | ("run_id" name, (::String | ::Symbol) value) -> void
8119
8296
  | ("identity" name, (::String | ::Symbol) value) -> void
8120
- | ("reset_attempts" name, bool value) -> void
8121
- | ("reset_heartbeat" name, bool value) -> void
8122
8297
  | ("reason" name, (::String | ::Symbol) value) -> void
8123
8298
  | ("jitter" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
8124
8299
  | ("resource_id" name, (::String | ::Symbol) value) -> void
8300
+ | ("request_id" name, (::String | ::Symbol) value) -> void
8125
8301
  end
8126
8302
 
8127
8303
  # Deprecated. Use `UnpauseActivityExecutionResponse`.
@@ -8273,7 +8449,7 @@ module Temporalio
8273
8449
  attr_writer activity_id(): ::String | ::Symbol
8274
8450
  def clear_activity_id: () -> void
8275
8451
 
8276
- # Run ID of the workflow or standalone activity.
8452
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
8277
8453
  attr_reader run_id(): ::String
8278
8454
  attr_writer run_id(): ::String | ::Symbol
8279
8455
  def clear_run_id: () -> void
@@ -8283,11 +8459,6 @@ module Temporalio
8283
8459
  attr_writer identity(): ::String | ::Symbol
8284
8460
  def clear_identity: () -> void
8285
8461
 
8286
- # Indicates that activity should reset heartbeat details.
8287
- # This flag will be applied only to the new instance of the activity.
8288
- attr_accessor reset_heartbeat(): bool
8289
- def clear_reset_heartbeat: () -> void
8290
-
8291
8462
  # If activity is paused, it will remain paused after reset
8292
8463
  attr_accessor keep_paused(): bool
8293
8464
  def clear_keep_paused: () -> void
@@ -8310,6 +8481,17 @@ module Temporalio
8310
8481
  attr_writer resource_id(): ::String | ::Symbol
8311
8482
  def clear_resource_id: () -> void
8312
8483
 
8484
+ # Used to de-dupe reset requests.
8485
+ attr_reader request_id(): ::String
8486
+ attr_writer request_id(): ::String | ::Symbol
8487
+ def clear_request_id: () -> void
8488
+
8489
+ # Reset persisted heartbeat details.
8490
+ # Reset always resets the attempt counter. Passing this flag causes reset to additionally
8491
+ # discard any persisted heartbeat details.
8492
+ attr_accessor reset_heartbeat(): bool
8493
+ def clear_reset_heartbeat: () -> void
8494
+
8313
8495
  type init_map = {
8314
8496
  namespace: (::String | ::Symbol)?,
8315
8497
  "namespace" => (::String | ::Symbol)?,
@@ -8321,8 +8503,6 @@ module Temporalio
8321
8503
  "run_id" => (::String | ::Symbol)?,
8322
8504
  identity: (::String | ::Symbol)?,
8323
8505
  "identity" => (::String | ::Symbol)?,
8324
- reset_heartbeat: bool?,
8325
- "reset_heartbeat" => bool?,
8326
8506
  keep_paused: bool?,
8327
8507
  "keep_paused" => bool?,
8328
8508
  jitter: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
@@ -8331,6 +8511,10 @@ module Temporalio
8331
8511
  "restore_original_options" => bool?,
8332
8512
  resource_id: (::String | ::Symbol)?,
8333
8513
  "resource_id" => (::String | ::Symbol)?,
8514
+ request_id: (::String | ::Symbol)?,
8515
+ "request_id" => (::String | ::Symbol)?,
8516
+ reset_heartbeat: bool?,
8517
+ "reset_heartbeat" => bool?,
8334
8518
  }
8335
8519
 
8336
8520
  def initialize: (?init_map initial_value) -> void
@@ -8341,11 +8525,12 @@ module Temporalio
8341
8525
  | ("activity_id" name) -> ::String
8342
8526
  | ("run_id" name) -> ::String
8343
8527
  | ("identity" name) -> ::String
8344
- | ("reset_heartbeat" name) -> bool
8345
8528
  | ("keep_paused" name) -> bool
8346
8529
  | ("jitter" name) -> ::Google::Protobuf::Duration?
8347
8530
  | ("restore_original_options" name) -> bool
8348
8531
  | ("resource_id" name) -> ::String
8532
+ | ("request_id" name) -> ::String
8533
+ | ("reset_heartbeat" name) -> bool
8349
8534
 
8350
8535
  def []=:
8351
8536
  ("namespace" name, (::String | ::Symbol) value) -> void
@@ -8353,11 +8538,12 @@ module Temporalio
8353
8538
  | ("activity_id" name, (::String | ::Symbol) value) -> void
8354
8539
  | ("run_id" name, (::String | ::Symbol) value) -> void
8355
8540
  | ("identity" name, (::String | ::Symbol) value) -> void
8356
- | ("reset_heartbeat" name, bool value) -> void
8357
8541
  | ("keep_paused" name, bool value) -> void
8358
8542
  | ("jitter" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
8359
8543
  | ("restore_original_options" name, bool value) -> void
8360
8544
  | ("resource_id" name, (::String | ::Symbol) value) -> void
8545
+ | ("request_id" name, (::String | ::Symbol) value) -> void
8546
+ | ("reset_heartbeat" name, bool value) -> void
8361
8547
  end
8362
8548
 
8363
8549
  # Deprecated. Use `ResetActivityExecutionRequest`.
@@ -8449,6 +8635,8 @@ module Temporalio
8449
8635
 
8450
8636
  # The Workflow Execution time when the options were updated. When time skipping is
8451
8637
  # enabled, this is the workflow's virtual time rather than wall-clock time.
8638
+ # This timestamp cannot be used for time-skipping fast-forward verification,
8639
+ # use `fast_forward_id` in `PollWorkflowExecutionTimeSkippingRequest` instead.
8452
8640
  attr_reader update_time(): ::Google::Protobuf::Timestamp?
8453
8641
  attr_writer update_time(): (::Google::Protobuf::Timestamp | ::Time)?
8454
8642
  def has_update_time?: () -> bool
@@ -11190,7 +11378,7 @@ module Temporalio
11190
11378
  def has_on_conflict_options?: () -> bool
11191
11379
  def clear_on_conflict_options: () -> void
11192
11380
 
11193
- # Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
11381
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
11194
11382
  attr_reader start_delay(): ::Google::Protobuf::Duration?
11195
11383
  attr_writer start_delay(): (::Google::Protobuf::Duration | ::int)?
11196
11384
  def has_start_delay?: () -> bool
@@ -12353,7 +12541,7 @@ module Temporalio
12353
12541
  attr_writer activity_id(): ::String | ::Symbol
12354
12542
  def clear_activity_id: () -> void
12355
12543
 
12356
- # Activity run ID, targets the latest run if run_id is empty.
12544
+ # Activity run ID. If empty, targets the latest run.
12357
12545
  attr_reader run_id(): ::String
12358
12546
  attr_writer run_id(): ::String | ::Symbol
12359
12547
  def clear_run_id: () -> void
@@ -12426,7 +12614,7 @@ module Temporalio
12426
12614
  attr_writer activity_id(): ::String | ::Symbol
12427
12615
  def clear_activity_id: () -> void
12428
12616
 
12429
- # Activity run ID, targets the latest run if run_id is empty.
12617
+ # Activity run ID. If empty, targets the latest run.
12430
12618
  attr_reader run_id(): ::String
12431
12619
  attr_writer run_id(): ::String | ::Symbol
12432
12620
  def clear_run_id: () -> void
@@ -12721,6 +12909,89 @@ module Temporalio
12721
12909
 
12722
12910
  def initialize: (?init_map initial_value) -> void
12723
12911
  end
12912
+
12913
+ # A long-poll request that blocks according to a time-skipping waiting policy on the workflow
12914
+ # execution. Currently the only supported policy is waiting for completion of the fast-forward
12915
+ # identified by `fast_forward_id`; the poll also returns once anything else settles that outcome
12916
+ # (e.g. the execution ends or time skipping is disabled).
12917
+ class PollWorkflowExecutionTimeSkippingRequest < ::Google::Protobuf::AbstractMessage
12918
+
12919
+ attr_reader namespace(): ::String
12920
+ attr_writer namespace(): ::String | ::Symbol
12921
+ def clear_namespace: () -> void
12922
+
12923
+ attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution?
12924
+ def has_workflow_execution?: () -> bool
12925
+ def clear_workflow_execution: () -> void
12926
+
12927
+ # Required. Identifies the fast-forward whose completion the caller wants to wait for.
12928
+ # Must match the `fast_forward_id` set in the execution's TimeSkippingConfig.
12929
+ attr_reader fast_forward_id(): ::String
12930
+ attr_writer fast_forward_id(): ::String | ::Symbol
12931
+ def clear_fast_forward_id: () -> void
12932
+
12933
+ type init_map = {
12934
+ namespace: (::String | ::Symbol)?,
12935
+ "namespace" => (::String | ::Symbol)?,
12936
+ workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
12937
+ "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?,
12938
+ fast_forward_id: (::String | ::Symbol)?,
12939
+ "fast_forward_id" => (::String | ::Symbol)?,
12940
+ }
12941
+
12942
+ def initialize: (?init_map initial_value) -> void
12943
+
12944
+ def []:
12945
+ ("namespace" name) -> ::String
12946
+ | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution?
12947
+ | ("fast_forward_id" name) -> ::String
12948
+
12949
+ def []=:
12950
+ ("namespace" name, (::String | ::Symbol) value) -> void
12951
+ | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void
12952
+ | ("fast_forward_id" name, (::String | ::Symbol) value) -> void
12953
+ end
12954
+
12955
+ class PollWorkflowExecutionTimeSkippingResponse < ::Google::Protobuf::AbstractMessage
12956
+
12957
+ # The outcome of the poll for the fast-forward identified by the request's `fast_forward_id`.
12958
+ attr_reader fast_forward_polling_result(): ::Temporalio::Api::Enums::V1::FastForwardPollingResult::names | ::Integer
12959
+ attr_writer fast_forward_polling_result(): ::Temporalio::Api::Enums::V1::FastForwardPollingResult::names | ::Temporalio::Api::Enums::V1::FastForwardPollingResult::strings | ::Integer | ::Float
12960
+ attr_reader fast_forward_polling_result_const(): ::Integer
12961
+ def clear_fast_forward_polling_result: () -> void
12962
+
12963
+ # Set only when the result is FAST_FORWARD_POLLING_RESULT_FAST_FORWARD_FAILED; explains why
12964
+ # the fast-forward can no longer complete.
12965
+ attr_reader failed_reason(): ::String
12966
+ attr_writer failed_reason(): ::String | ::Symbol
12967
+ def clear_failed_reason: () -> void
12968
+
12969
+ # The execution's current fast-forward, if any.
12970
+ attr_accessor fast_forward_info(): ::Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo?
12971
+ def has_fast_forward_info?: () -> bool
12972
+ def clear_fast_forward_info: () -> void
12973
+
12974
+ type init_map = {
12975
+ fast_forward_polling_result: (::Temporalio::Api::Enums::V1::FastForwardPollingResult::names | ::Temporalio::Api::Enums::V1::FastForwardPollingResult::strings | ::Integer | ::Float)?,
12976
+ "fast_forward_polling_result" => (::Temporalio::Api::Enums::V1::FastForwardPollingResult::names | ::Temporalio::Api::Enums::V1::FastForwardPollingResult::strings | ::Integer | ::Float)?,
12977
+ failed_reason: (::String | ::Symbol)?,
12978
+ "failed_reason" => (::String | ::Symbol)?,
12979
+ fast_forward_info: (::Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo | ::Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo::init_map)?,
12980
+ "fast_forward_info" => (::Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo | ::Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo::init_map)?,
12981
+ }
12982
+
12983
+ def initialize: (?init_map initial_value) -> void
12984
+
12985
+ def []:
12986
+ ("fast_forward_polling_result" name) -> (::Temporalio::Api::Enums::V1::FastForwardPollingResult::names | ::Integer)
12987
+ | ("failed_reason" name) -> ::String
12988
+ | ("fast_forward_info" name) -> ::Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo?
12989
+
12990
+ def []=:
12991
+ ("fast_forward_polling_result" name, (::Temporalio::Api::Enums::V1::FastForwardPollingResult::names | ::Temporalio::Api::Enums::V1::FastForwardPollingResult::strings | ::Integer | ::Float) value) -> void
12992
+ | ("failed_reason" name, (::String | ::Symbol) value) -> void
12993
+ | ("fast_forward_info" name, ::Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo? value) -> void
12994
+ end
12724
12995
  end
12725
12996
  end
12726
12997
  end