temporalio 1.9.0-aarch64-linux → 1.10.0-aarch64-linux
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.
- checksums.yaml +4 -4
- data/Rakefile +28 -0
- data/lib/temporalio/api/activity/v1/message.rb +2 -1
- data/lib/temporalio/api/callback/v1/message.rb +1 -1
- data/lib/temporalio/api/common/v1/message.rb +3 -1
- data/lib/temporalio/api/compute/v1/config.rb +1 -1
- data/lib/temporalio/api/enums/v1/common.rb +1 -1
- data/lib/temporalio/api/enums/v1/failed_cause.rb +2 -1
- data/lib/temporalio/api/export/v1/message.rb +4 -1
- data/lib/temporalio/api/history/v1/message.rb +2 -1
- data/lib/temporalio/api/nexus/v1/message.rb +2 -1
- data/lib/temporalio/api/nexusoperation/v1/message.rb +26 -0
- data/lib/temporalio/api/notificationservice/v1/request_response.rb +25 -0
- data/lib/temporalio/api/payload_visitor.rb +54 -0
- data/lib/temporalio/api/replication/v1/message.rb +2 -1
- data/lib/temporalio/api/update/v1/message.rb +2 -1
- data/lib/temporalio/api/worker/v1/message.rb +1 -1
- data/lib/temporalio/api/workflow/v1/message.rb +2 -1
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +2 -1
- data/lib/temporalio/client/schedule.rb +8 -7
- data/lib/temporalio/client/with_start_workflow_operation.rb +1 -1
- data/lib/temporalio/client.rb +4 -4
- data/lib/temporalio/converters/external_storage.rb +90 -0
- data/lib/temporalio/converters/external_storage_concurrency.rb +52 -0
- data/lib/temporalio/converters/storage_driver.rb +56 -0
- data/lib/temporalio/converters/storage_driver_activity_info.rb +38 -0
- data/lib/temporalio/converters/storage_driver_claim.rb +30 -0
- data/lib/temporalio/converters/storage_driver_limiter.rb +37 -0
- data/lib/temporalio/converters/storage_driver_retrieve_context.rb +30 -0
- data/lib/temporalio/converters/storage_driver_select_context.rb +26 -0
- data/lib/temporalio/converters/storage_driver_store_context.rb +31 -0
- data/lib/temporalio/converters/storage_driver_workflow_info.rb +40 -0
- data/lib/temporalio/converters.rb +11 -0
- data/lib/temporalio/error/failure.rb +16 -0
- data/lib/temporalio/error.rb +17 -0
- data/lib/temporalio/internal/bridge/3.3/temporalio_bridge.so +2 -2
- data/lib/temporalio/internal/bridge/3.4/temporalio_bridge.so +2 -2
- data/lib/temporalio/internal/bridge/4.0/temporalio_bridge.so +2 -2
- data/lib/temporalio/internal/bridge/api/activity_result/activity_result.rb +2 -1
- data/lib/temporalio/internal/bridge/api/child_workflow/child_workflow.rb +1 -1
- data/lib/temporalio/internal/bridge/api/external_data/external_data.rb +1 -1
- data/lib/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rb +2 -1
- data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +3 -1
- data/lib/temporalio/internal/external_storage_references.rb +62 -0
- data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
- data/lib/temporalio/internal/worker/workflow_instance/outbound_implementation.rb +21 -3
- data/lib/temporalio/testing/activity_environment.rb +1 -1
- data/lib/temporalio/testing/workflow_environment.rb +4 -4
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/versioning_override.rb +28 -1
- data/lib/temporalio/worker/interceptor.rb +1 -0
- data/lib/temporalio/workflow.rb +14 -4
- data/rbi/temporalio/api/activity/v1/message.rbi +39 -2
- data/rbi/temporalio/api/callback/v1/message.rbi +22 -2
- data/rbi/temporalio/api/common/v1/message.rbi +294 -4
- data/rbi/temporalio/api/compute/v1/config.rbi +39 -5
- data/rbi/temporalio/api/enums/v1/common.rbi +1 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +20 -0
- data/rbi/temporalio/api/export/v1/message.rbi +136 -2
- data/rbi/temporalio/api/history/v1/message.rbi +38 -4
- data/rbi/temporalio/api/nexus/v1/message.rbi +88 -0
- data/rbi/temporalio/api/nexusoperation/v1/message.rbi +287 -0
- data/rbi/temporalio/api/notificationservice/v1/request_response.rbi +151 -0
- data/rbi/temporalio/api/payload_visitor.rbi +21 -0
- data/rbi/temporalio/api/replication/v1/message.rbi +22 -2
- data/rbi/temporalio/api/update/v1/message.rbi +19 -2
- data/rbi/temporalio/api/worker/v1/message.rbi +2 -0
- data/rbi/temporalio/api/workflow/v1/message.rbi +41 -4
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +294 -20
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +0 -13
- data/rbi/temporalio/client/schedule.rbi +2 -2
- data/rbi/temporalio/converters/external_storage.rbi +49 -0
- data/rbi/temporalio/converters/external_storage_concurrency.rbi +26 -0
- data/rbi/temporalio/converters/storage_driver.rbi +27 -0
- data/rbi/temporalio/converters/storage_driver_activity_info.rbi +36 -0
- data/rbi/temporalio/converters/storage_driver_claim.rbi +20 -0
- data/rbi/temporalio/converters/storage_driver_limiter.rbi +13 -0
- data/rbi/temporalio/converters/storage_driver_retrieve_context.rbi +23 -0
- data/rbi/temporalio/converters/storage_driver_select_context.rbi +42 -0
- data/rbi/temporalio/converters/storage_driver_store_context.rbi +46 -0
- data/rbi/temporalio/converters/storage_driver_workflow_info.rbi +36 -0
- data/rbi/temporalio/error.rbi +17 -0
- data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +41 -2
- data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +2 -0
- data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +29 -2
- data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +88 -14
- data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +91 -6
- data/rbi/temporalio/internal/external_storage_references.rbi +26 -0
- data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +2 -0
- data/rbi/temporalio/versioning_override.rbi +8 -0
- data/rbi/temporalio/worker/interceptor.rbi +3 -0
- data/rbi/temporalio/workflow.rbi +4 -0
- data/sig/temporalio/api/activity/v1/message.rbs +18 -0
- data/sig/temporalio/api/callback/v1/message.rbs +10 -0
- data/sig/temporalio/api/common/v1/message.rbs +133 -4
- data/sig/temporalio/api/compute/v1/config.rbs +17 -1
- data/sig/temporalio/api/enums/v1/common.rbs +7 -4
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +42 -5
- data/sig/temporalio/api/export/v1/message.rbs +50 -2
- data/sig/temporalio/api/history/v1/message.rbs +19 -0
- data/sig/temporalio/api/nexus/v1/message.rbs +37 -0
- data/sig/temporalio/api/nexusoperation/v1/message.rbs +125 -0
- data/sig/temporalio/api/notificationservice/v1/request_response.rbs +81 -0
- data/sig/temporalio/api/payload_visitor.rbs +7 -0
- data/sig/temporalio/api/replication/v1/message.rbs +11 -0
- data/sig/temporalio/api/update/v1/message.rbs +9 -0
- data/sig/temporalio/api/worker/v1/message.rbs +9 -3
- data/sig/temporalio/api/workflow/v1/message.rbs +19 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +136 -0
- data/sig/temporalio/client/schedule.rbs +3 -2
- data/sig/temporalio/converters/external_storage.rbs +25 -0
- data/sig/temporalio/converters/external_storage_concurrency.rbs +16 -0
- data/sig/temporalio/converters/storage_driver.rbs +16 -0
- data/sig/temporalio/converters/storage_driver_activity_info.rbs +17 -0
- data/sig/temporalio/converters/storage_driver_claim.rbs +9 -0
- data/sig/temporalio/converters/storage_driver_limiter.rbs +7 -0
- data/sig/temporalio/converters/storage_driver_retrieve_context.rbs +13 -0
- data/sig/temporalio/converters/storage_driver_select_context.rbs +13 -0
- data/sig/temporalio/converters/storage_driver_store_context.rbs +15 -0
- data/sig/temporalio/converters/storage_driver_target_info.rbs +5 -0
- data/sig/temporalio/converters/storage_driver_workflow_info.rbs +17 -0
- data/sig/temporalio/error/failure.rbs +8 -0
- data/sig/temporalio/error.rbs +4 -0
- data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +46 -0
- data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +7 -3
- data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +16 -0
- data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +42 -2
- data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +42 -0
- data/sig/temporalio/internal/external_storage_references.rbs +18 -0
- data/sig/temporalio/internal/worker/workflow_instance/context.rbs +1 -0
- data/sig/temporalio/testing/activity_environment.rbs +1 -1
- data/sig/temporalio/versioning_override.rbs +7 -0
- data/sig/temporalio/worker/interceptor.rbs +2 -0
- data/sig/temporalio/workflow.rbs +2 -0
- data/temporalio.gemspec +1 -0
- metadata +56 -2
|
@@ -486,8 +486,7 @@ class Temporalio::Api::Common::V1::WorkflowExecution
|
|
|
486
486
|
end
|
|
487
487
|
end
|
|
488
488
|
|
|
489
|
-
# Identifies a specific execution within a namespace.
|
|
490
|
-
# executions in batch jobs currently.
|
|
489
|
+
# Identifies a specific execution within a namespace.
|
|
491
490
|
class Temporalio::Api::Common::V1::Execution
|
|
492
491
|
include ::Google::Protobuf::MessageExts
|
|
493
492
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1314,12 +1313,14 @@ class Temporalio::Api::Common::V1::Callback
|
|
|
1314
1313
|
params(
|
|
1315
1314
|
nexus: T.nilable(Temporalio::Api::Common::V1::Callback::Nexus),
|
|
1316
1315
|
internal: T.nilable(Temporalio::Api::Common::V1::Callback::Internal),
|
|
1316
|
+
nexus_handler: T.nilable(Temporalio::Api::Common::V1::Callback::NexusHandler),
|
|
1317
1317
|
links: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)])
|
|
1318
1318
|
).void
|
|
1319
1319
|
end
|
|
1320
1320
|
def initialize(
|
|
1321
1321
|
nexus: nil,
|
|
1322
1322
|
internal: nil,
|
|
1323
|
+
nexus_handler: nil,
|
|
1323
1324
|
links: []
|
|
1324
1325
|
)
|
|
1325
1326
|
end
|
|
@@ -1348,6 +1349,18 @@ class Temporalio::Api::Common::V1::Callback
|
|
|
1348
1349
|
def clear_internal
|
|
1349
1350
|
end
|
|
1350
1351
|
|
|
1352
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Callback::NexusHandler)) }
|
|
1353
|
+
def nexus_handler
|
|
1354
|
+
end
|
|
1355
|
+
|
|
1356
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Callback::NexusHandler)).void }
|
|
1357
|
+
def nexus_handler=(value)
|
|
1358
|
+
end
|
|
1359
|
+
|
|
1360
|
+
sig { void }
|
|
1361
|
+
def clear_nexus_handler
|
|
1362
|
+
end
|
|
1363
|
+
|
|
1351
1364
|
# Links associated with the callback. It can be used to link to underlying resources of the
|
|
1352
1365
|
# callback.
|
|
1353
1366
|
sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Link)]) }
|
|
@@ -1417,7 +1430,8 @@ class Temporalio::Api::Common::V1::Link
|
|
|
1417
1430
|
batch_job: T.nilable(Temporalio::Api::Common::V1::Link::BatchJob),
|
|
1418
1431
|
activity: T.nilable(Temporalio::Api::Common::V1::Link::Activity),
|
|
1419
1432
|
nexus_operation: T.nilable(Temporalio::Api::Common::V1::Link::NexusOperation),
|
|
1420
|
-
workflow: T.nilable(Temporalio::Api::Common::V1::Link::Workflow)
|
|
1433
|
+
workflow: T.nilable(Temporalio::Api::Common::V1::Link::Workflow),
|
|
1434
|
+
callback: T.nilable(Temporalio::Api::Common::V1::Link::Callback)
|
|
1421
1435
|
).void
|
|
1422
1436
|
end
|
|
1423
1437
|
def initialize(
|
|
@@ -1425,7 +1439,8 @@ class Temporalio::Api::Common::V1::Link
|
|
|
1425
1439
|
batch_job: nil,
|
|
1426
1440
|
activity: nil,
|
|
1427
1441
|
nexus_operation: nil,
|
|
1428
|
-
workflow: nil
|
|
1442
|
+
workflow: nil,
|
|
1443
|
+
callback: nil
|
|
1429
1444
|
)
|
|
1430
1445
|
end
|
|
1431
1446
|
|
|
@@ -1489,6 +1504,18 @@ class Temporalio::Api::Common::V1::Link
|
|
|
1489
1504
|
def clear_workflow
|
|
1490
1505
|
end
|
|
1491
1506
|
|
|
1507
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Link::Callback)) }
|
|
1508
|
+
def callback
|
|
1509
|
+
end
|
|
1510
|
+
|
|
1511
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link::Callback)).void }
|
|
1512
|
+
def callback=(value)
|
|
1513
|
+
end
|
|
1514
|
+
|
|
1515
|
+
sig { void }
|
|
1516
|
+
def clear_callback
|
|
1517
|
+
end
|
|
1518
|
+
|
|
1492
1519
|
sig { returns(T.nilable(Symbol)) }
|
|
1493
1520
|
def variant
|
|
1494
1521
|
end
|
|
@@ -2702,6 +2729,8 @@ class Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails
|
|
|
2702
2729
|
end
|
|
2703
2730
|
end
|
|
2704
2731
|
|
|
2732
|
+
# Nexus callbacks are used to delivery Nexus operation completions, as defined in the Nexus RPC spec:
|
|
2733
|
+
# https://github.com/nexus-rpc/api/blob/main/SPEC.md#callback-urls
|
|
2705
2734
|
class Temporalio::Api::Common::V1::Callback::Nexus
|
|
2706
2735
|
include ::Google::Protobuf::MessageExts
|
|
2707
2736
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -2847,6 +2876,152 @@ class Temporalio::Api::Common::V1::Callback::Internal
|
|
|
2847
2876
|
end
|
|
2848
2877
|
end
|
|
2849
2878
|
|
|
2879
|
+
# NexusHandler callbacks are requests to invoke a specific shape of Nexus operation on a Temporal worker.
|
|
2880
|
+
# The specified Nexus operation must have the following:
|
|
2881
|
+
# - Input: temporal.api.notificationservice.v1.OnCompleteRequest
|
|
2882
|
+
# - Output: temporal.api.notificationservice.v1.OnCompleteResponse
|
|
2883
|
+
#
|
|
2884
|
+
# The targeted Nexus service must be registered within the same namespace as the source operation
|
|
2885
|
+
# the callback is attached to. (While Nexus allows for cross-namespace operations, NexusHandler callbacks
|
|
2886
|
+
# are strictly caller-side.)
|
|
2887
|
+
#
|
|
2888
|
+
# NexusHandler callbacks are only supported for certain types of operations, e.g. standalone Nexus operations.
|
|
2889
|
+
# Attempting to attach a Worker callback for an unsupported operation will result in an INVALID_ARGUMENT
|
|
2890
|
+
# error from the server.
|
|
2891
|
+
class Temporalio::Api::Common::V1::Callback::NexusHandler
|
|
2892
|
+
include ::Google::Protobuf::MessageExts
|
|
2893
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2894
|
+
|
|
2895
|
+
sig do
|
|
2896
|
+
params(
|
|
2897
|
+
task_queue_name: T.nilable(String),
|
|
2898
|
+
service: T.nilable(String),
|
|
2899
|
+
operation: T.nilable(String),
|
|
2900
|
+
source_context: T.nilable(Temporalio::Api::Common::V1::Payload)
|
|
2901
|
+
).void
|
|
2902
|
+
end
|
|
2903
|
+
def initialize(
|
|
2904
|
+
task_queue_name: "",
|
|
2905
|
+
service: "",
|
|
2906
|
+
operation: "",
|
|
2907
|
+
source_context: nil
|
|
2908
|
+
)
|
|
2909
|
+
end
|
|
2910
|
+
|
|
2911
|
+
# Nexus task queue the Temporal worker is listening on.
|
|
2912
|
+
#
|
|
2913
|
+
# NOTE: This is not a temporal.api.taskqueue.v1.TaskQueue to avoid a circular dependency.
|
|
2914
|
+
sig { returns(String) }
|
|
2915
|
+
def task_queue_name
|
|
2916
|
+
end
|
|
2917
|
+
|
|
2918
|
+
# Nexus task queue the Temporal worker is listening on.
|
|
2919
|
+
#
|
|
2920
|
+
# NOTE: This is not a temporal.api.taskqueue.v1.TaskQueue to avoid a circular dependency.
|
|
2921
|
+
sig { params(value: String).void }
|
|
2922
|
+
def task_queue_name=(value)
|
|
2923
|
+
end
|
|
2924
|
+
|
|
2925
|
+
# Nexus task queue the Temporal worker is listening on.
|
|
2926
|
+
#
|
|
2927
|
+
# NOTE: This is not a temporal.api.taskqueue.v1.TaskQueue to avoid a circular dependency.
|
|
2928
|
+
sig { void }
|
|
2929
|
+
def clear_task_queue_name
|
|
2930
|
+
end
|
|
2931
|
+
|
|
2932
|
+
# Target Nexus service, e.g. "HTTPAdapter".
|
|
2933
|
+
sig { returns(String) }
|
|
2934
|
+
def service
|
|
2935
|
+
end
|
|
2936
|
+
|
|
2937
|
+
# Target Nexus service, e.g. "HTTPAdapter".
|
|
2938
|
+
sig { params(value: String).void }
|
|
2939
|
+
def service=(value)
|
|
2940
|
+
end
|
|
2941
|
+
|
|
2942
|
+
# Target Nexus service, e.g. "HTTPAdapter".
|
|
2943
|
+
sig { void }
|
|
2944
|
+
def clear_service
|
|
2945
|
+
end
|
|
2946
|
+
|
|
2947
|
+
# Target operation, e.g. "DeliverAsWebhook".
|
|
2948
|
+
sig { returns(String) }
|
|
2949
|
+
def operation
|
|
2950
|
+
end
|
|
2951
|
+
|
|
2952
|
+
# Target operation, e.g. "DeliverAsWebhook".
|
|
2953
|
+
sig { params(value: String).void }
|
|
2954
|
+
def operation=(value)
|
|
2955
|
+
end
|
|
2956
|
+
|
|
2957
|
+
# Target operation, e.g. "DeliverAsWebhook".
|
|
2958
|
+
sig { void }
|
|
2959
|
+
def clear_operation
|
|
2960
|
+
end
|
|
2961
|
+
|
|
2962
|
+
# Arbitrary user-supplied data from the source operation's callsite. (As applicable, not all operations
|
|
2963
|
+
# support attaching context data.)
|
|
2964
|
+
#
|
|
2965
|
+
# There are restrictions on the maxium payload size a single callback can carry, as well as the
|
|
2966
|
+
# total sum of all source context payloads attached to an execution. See dynamic configuration:
|
|
2967
|
+
# "callback.nexusHandler.sourceContext.maxSize", "callback.nexusHandler.sourceContext.aggregateMaxSize".
|
|
2968
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Payload)) }
|
|
2969
|
+
def source_context
|
|
2970
|
+
end
|
|
2971
|
+
|
|
2972
|
+
# Arbitrary user-supplied data from the source operation's callsite. (As applicable, not all operations
|
|
2973
|
+
# support attaching context data.)
|
|
2974
|
+
#
|
|
2975
|
+
# There are restrictions on the maxium payload size a single callback can carry, as well as the
|
|
2976
|
+
# total sum of all source context payloads attached to an execution. See dynamic configuration:
|
|
2977
|
+
# "callback.nexusHandler.sourceContext.maxSize", "callback.nexusHandler.sourceContext.aggregateMaxSize".
|
|
2978
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payload)).void }
|
|
2979
|
+
def source_context=(value)
|
|
2980
|
+
end
|
|
2981
|
+
|
|
2982
|
+
# Arbitrary user-supplied data from the source operation's callsite. (As applicable, not all operations
|
|
2983
|
+
# support attaching context data.)
|
|
2984
|
+
#
|
|
2985
|
+
# There are restrictions on the maxium payload size a single callback can carry, as well as the
|
|
2986
|
+
# total sum of all source context payloads attached to an execution. See dynamic configuration:
|
|
2987
|
+
# "callback.nexusHandler.sourceContext.maxSize", "callback.nexusHandler.sourceContext.aggregateMaxSize".
|
|
2988
|
+
sig { void }
|
|
2989
|
+
def clear_source_context
|
|
2990
|
+
end
|
|
2991
|
+
|
|
2992
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2993
|
+
def [](field)
|
|
2994
|
+
end
|
|
2995
|
+
|
|
2996
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2997
|
+
def []=(field, value)
|
|
2998
|
+
end
|
|
2999
|
+
|
|
3000
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
3001
|
+
def to_h
|
|
3002
|
+
end
|
|
3003
|
+
|
|
3004
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Callback::NexusHandler) }
|
|
3005
|
+
def self.decode(str)
|
|
3006
|
+
end
|
|
3007
|
+
|
|
3008
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback::NexusHandler).returns(String) }
|
|
3009
|
+
def self.encode(msg)
|
|
3010
|
+
end
|
|
3011
|
+
|
|
3012
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Callback::NexusHandler) }
|
|
3013
|
+
def self.decode_json(str, **kw)
|
|
3014
|
+
end
|
|
3015
|
+
|
|
3016
|
+
sig { params(msg: Temporalio::Api::Common::V1::Callback::NexusHandler, kw: T.untyped).returns(String) }
|
|
3017
|
+
def self.encode_json(msg, **kw)
|
|
3018
|
+
end
|
|
3019
|
+
|
|
3020
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
3021
|
+
def self.descriptor
|
|
3022
|
+
end
|
|
3023
|
+
end
|
|
3024
|
+
|
|
2850
3025
|
class Temporalio::Api::Common::V1::Link::WorkflowEvent
|
|
2851
3026
|
include ::Google::Protobuf::MessageExts
|
|
2852
3027
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -3308,6 +3483,121 @@ class Temporalio::Api::Common::V1::Link::Workflow
|
|
|
3308
3483
|
end
|
|
3309
3484
|
end
|
|
3310
3485
|
|
|
3486
|
+
# A link to a worker callback attached to an execution. An execution (e.g. standalone Nexus operation) can have
|
|
3487
|
+
# multiple callbacks attached, and will be differentiated by the request_id used when the callback is invoked.
|
|
3488
|
+
class Temporalio::Api::Common::V1::Link::Callback
|
|
3489
|
+
include ::Google::Protobuf::MessageExts
|
|
3490
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
3491
|
+
|
|
3492
|
+
sig do
|
|
3493
|
+
params(
|
|
3494
|
+
namespace: T.nilable(String),
|
|
3495
|
+
execution: T.nilable(Temporalio::Api::Common::V1::Execution),
|
|
3496
|
+
component_path: T.nilable(T::Array[String]),
|
|
3497
|
+
request_id: T.nilable(String)
|
|
3498
|
+
).void
|
|
3499
|
+
end
|
|
3500
|
+
def initialize(
|
|
3501
|
+
namespace: "",
|
|
3502
|
+
execution: nil,
|
|
3503
|
+
component_path: [],
|
|
3504
|
+
request_id: ""
|
|
3505
|
+
)
|
|
3506
|
+
end
|
|
3507
|
+
|
|
3508
|
+
sig { returns(String) }
|
|
3509
|
+
def namespace
|
|
3510
|
+
end
|
|
3511
|
+
|
|
3512
|
+
sig { params(value: String).void }
|
|
3513
|
+
def namespace=(value)
|
|
3514
|
+
end
|
|
3515
|
+
|
|
3516
|
+
sig { void }
|
|
3517
|
+
def clear_namespace
|
|
3518
|
+
end
|
|
3519
|
+
|
|
3520
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Execution)) }
|
|
3521
|
+
def execution
|
|
3522
|
+
end
|
|
3523
|
+
|
|
3524
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Execution)).void }
|
|
3525
|
+
def execution=(value)
|
|
3526
|
+
end
|
|
3527
|
+
|
|
3528
|
+
sig { void }
|
|
3529
|
+
def clear_execution
|
|
3530
|
+
end
|
|
3531
|
+
|
|
3532
|
+
# In most cases, the Execution is sufficient to identify the callback's source. But the callback could have
|
|
3533
|
+
# been attached some child component of that execution. e.g. a workflow update. The component path describes
|
|
3534
|
+
# the unique component as applicable, typically ending with a unique ID. e.g. ["Update", $workflowUpdateId ]
|
|
3535
|
+
sig { returns(T::Array[String]) }
|
|
3536
|
+
def component_path
|
|
3537
|
+
end
|
|
3538
|
+
|
|
3539
|
+
# In most cases, the Execution is sufficient to identify the callback's source. But the callback could have
|
|
3540
|
+
# been attached some child component of that execution. e.g. a workflow update. The component path describes
|
|
3541
|
+
# the unique component as applicable, typically ending with a unique ID. e.g. ["Update", $workflowUpdateId ]
|
|
3542
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
3543
|
+
def component_path=(value)
|
|
3544
|
+
end
|
|
3545
|
+
|
|
3546
|
+
# In most cases, the Execution is sufficient to identify the callback's source. But the callback could have
|
|
3547
|
+
# been attached some child component of that execution. e.g. a workflow update. The component path describes
|
|
3548
|
+
# the unique component as applicable, typically ending with a unique ID. e.g. ["Update", $workflowUpdateId ]
|
|
3549
|
+
sig { void }
|
|
3550
|
+
def clear_component_path
|
|
3551
|
+
end
|
|
3552
|
+
|
|
3553
|
+
# Server-generate request ID sent when the callback was dispatched.
|
|
3554
|
+
sig { returns(String) }
|
|
3555
|
+
def request_id
|
|
3556
|
+
end
|
|
3557
|
+
|
|
3558
|
+
# Server-generate request ID sent when the callback was dispatched.
|
|
3559
|
+
sig { params(value: String).void }
|
|
3560
|
+
def request_id=(value)
|
|
3561
|
+
end
|
|
3562
|
+
|
|
3563
|
+
# Server-generate request ID sent when the callback was dispatched.
|
|
3564
|
+
sig { void }
|
|
3565
|
+
def clear_request_id
|
|
3566
|
+
end
|
|
3567
|
+
|
|
3568
|
+
sig { params(field: String).returns(T.untyped) }
|
|
3569
|
+
def [](field)
|
|
3570
|
+
end
|
|
3571
|
+
|
|
3572
|
+
sig { params(field: String, value: T.untyped).void }
|
|
3573
|
+
def []=(field, value)
|
|
3574
|
+
end
|
|
3575
|
+
|
|
3576
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
3577
|
+
def to_h
|
|
3578
|
+
end
|
|
3579
|
+
|
|
3580
|
+
sig { params(str: String).returns(Temporalio::Api::Common::V1::Link::Callback) }
|
|
3581
|
+
def self.decode(str)
|
|
3582
|
+
end
|
|
3583
|
+
|
|
3584
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::Callback).returns(String) }
|
|
3585
|
+
def self.encode(msg)
|
|
3586
|
+
end
|
|
3587
|
+
|
|
3588
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Common::V1::Link::Callback) }
|
|
3589
|
+
def self.decode_json(str, **kw)
|
|
3590
|
+
end
|
|
3591
|
+
|
|
3592
|
+
sig { params(msg: Temporalio::Api::Common::V1::Link::Callback, kw: T.untyped).returns(String) }
|
|
3593
|
+
def self.encode_json(msg, **kw)
|
|
3594
|
+
end
|
|
3595
|
+
|
|
3596
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
3597
|
+
def self.descriptor
|
|
3598
|
+
end
|
|
3599
|
+
end
|
|
3600
|
+
|
|
3311
3601
|
# EventReference is a direct reference to a history event through the event ID.
|
|
3312
3602
|
class Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference
|
|
3313
3603
|
include ::Google::Protobuf::MessageExts
|
|
@@ -9,12 +9,14 @@ class Temporalio::Api::Compute::V1::ComputeConfigScalingGroup
|
|
|
9
9
|
sig do
|
|
10
10
|
params(
|
|
11
11
|
task_queue_types: T.nilable(T::Array[T.any(Symbol, String, Integer)]),
|
|
12
|
+
region_ids: T.nilable(T::Array[String]),
|
|
12
13
|
provider: T.nilable(Temporalio::Api::Compute::V1::ComputeProvider),
|
|
13
14
|
scaler: T.nilable(Temporalio::Api::Compute::V1::ComputeScaler)
|
|
14
15
|
).void
|
|
15
16
|
end
|
|
16
17
|
def initialize(
|
|
17
18
|
task_queue_types: [],
|
|
19
|
+
region_ids: [],
|
|
18
20
|
provider: nil,
|
|
19
21
|
scaler: nil
|
|
20
22
|
)
|
|
@@ -41,6 +43,24 @@ class Temporalio::Api::Compute::V1::ComputeConfigScalingGroup
|
|
|
41
43
|
def clear_task_queue_types
|
|
42
44
|
end
|
|
43
45
|
|
|
46
|
+
# Optional. If set, this scaling group is used only while the namespace is
|
|
47
|
+
# active in one of these regions.
|
|
48
|
+
sig { returns(T::Array[String]) }
|
|
49
|
+
def region_ids
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Optional. If set, this scaling group is used only while the namespace is
|
|
53
|
+
# active in one of these regions.
|
|
54
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
55
|
+
def region_ids=(value)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Optional. If set, this scaling group is used only while the namespace is
|
|
59
|
+
# active in one of these regions.
|
|
60
|
+
sig { void }
|
|
61
|
+
def clear_region_ids
|
|
62
|
+
end
|
|
63
|
+
|
|
44
64
|
# Stores instructions for a worker control plane controller how to respond
|
|
45
65
|
# to worker lifeycle events.
|
|
46
66
|
sig { returns(T.nilable(Temporalio::Api::Compute::V1::ComputeProvider)) }
|
|
@@ -226,7 +246,7 @@ class Temporalio::Api::Compute::V1::ComputeConfigScalingGroupUpdate
|
|
|
226
246
|
# - Empty mask for an existing scaling group is no-op: no change.
|
|
227
247
|
# - Non-empty mask for an existing scaling group will update/unset only to the fields
|
|
228
248
|
# mentioned in the mask.
|
|
229
|
-
# - Accepted paths: "task_queue_types", "provider", "provider.type", "provider.details",
|
|
249
|
+
# - Accepted paths: "task_queue_types", "region_ids", "provider", "provider.type", "provider.details",
|
|
230
250
|
# "provider.nexus_endpoint", "scaler", "scaler.type", "scaler.details"
|
|
231
251
|
sig { returns(T.nilable(Google::Protobuf::FieldMask)) }
|
|
232
252
|
def update_mask
|
|
@@ -237,7 +257,7 @@ class Temporalio::Api::Compute::V1::ComputeConfigScalingGroupUpdate
|
|
|
237
257
|
# - Empty mask for an existing scaling group is no-op: no change.
|
|
238
258
|
# - Non-empty mask for an existing scaling group will update/unset only to the fields
|
|
239
259
|
# mentioned in the mask.
|
|
240
|
-
# - Accepted paths: "task_queue_types", "provider", "provider.type", "provider.details",
|
|
260
|
+
# - Accepted paths: "task_queue_types", "region_ids", "provider", "provider.type", "provider.details",
|
|
241
261
|
# "provider.nexus_endpoint", "scaler", "scaler.type", "scaler.details"
|
|
242
262
|
sig { params(value: T.nilable(Google::Protobuf::FieldMask)).void }
|
|
243
263
|
def update_mask=(value)
|
|
@@ -248,7 +268,7 @@ class Temporalio::Api::Compute::V1::ComputeConfigScalingGroupUpdate
|
|
|
248
268
|
# - Empty mask for an existing scaling group is no-op: no change.
|
|
249
269
|
# - Non-empty mask for an existing scaling group will update/unset only to the fields
|
|
250
270
|
# mentioned in the mask.
|
|
251
|
-
# - Accepted paths: "task_queue_types", "provider", "provider.type", "provider.details",
|
|
271
|
+
# - Accepted paths: "task_queue_types", "region_ids", "provider", "provider.type", "provider.details",
|
|
252
272
|
# "provider.nexus_endpoint", "scaler", "scaler.type", "scaler.details"
|
|
253
273
|
sig { void }
|
|
254
274
|
def clear_update_mask
|
|
@@ -354,12 +374,14 @@ class Temporalio::Api::Compute::V1::ComputeConfigScalingGroupSummary
|
|
|
354
374
|
sig do
|
|
355
375
|
params(
|
|
356
376
|
task_queue_types: T.nilable(T::Array[T.any(Symbol, String, Integer)]),
|
|
357
|
-
provider_type: T.nilable(String)
|
|
377
|
+
provider_type: T.nilable(String),
|
|
378
|
+
region_ids: T.nilable(T::Array[String])
|
|
358
379
|
).void
|
|
359
380
|
end
|
|
360
381
|
def initialize(
|
|
361
382
|
task_queue_types: [],
|
|
362
|
-
provider_type: ""
|
|
383
|
+
provider_type: "",
|
|
384
|
+
region_ids: []
|
|
363
385
|
)
|
|
364
386
|
end
|
|
365
387
|
|
|
@@ -387,6 +409,18 @@ class Temporalio::Api::Compute::V1::ComputeConfigScalingGroupSummary
|
|
|
387
409
|
def clear_provider_type
|
|
388
410
|
end
|
|
389
411
|
|
|
412
|
+
sig { returns(T::Array[String]) }
|
|
413
|
+
def region_ids
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
417
|
+
def region_ids=(value)
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
sig { void }
|
|
421
|
+
def clear_region_ids
|
|
422
|
+
end
|
|
423
|
+
|
|
390
424
|
sig { params(field: String).returns(T.untyped) }
|
|
391
425
|
def [](field)
|
|
392
426
|
end
|
|
@@ -184,6 +184,7 @@ module Temporalio::Api::Enums::V1::ExecutionType
|
|
|
184
184
|
self::EXECUTION_TYPE_UNSPECIFIED = T.let(0, Integer)
|
|
185
185
|
self::EXECUTION_TYPE_WORKFLOW = T.let(1, Integer)
|
|
186
186
|
self::EXECUTION_TYPE_ACTIVITY = T.let(2, Integer)
|
|
187
|
+
self::EXECUTION_TYPE_NEXUS_OPERATION = T.let(3, Integer)
|
|
187
188
|
|
|
188
189
|
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
|
189
190
|
def self.lookup(value)
|
|
@@ -58,6 +58,25 @@ module Temporalio::Api::Enums::V1::WorkflowTaskFailedCause
|
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
module Temporalio::Api::Enums::V1::ActivityTaskFailedCause
|
|
62
|
+
self::ACTIVITY_TASK_FAILED_CAUSE_UNSPECIFIED = T.let(0, Integer)
|
|
63
|
+
self::ACTIVITY_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE = T.let(1, Integer)
|
|
64
|
+
self::ACTIVITY_TASK_FAILED_CAUSE_EXTERNAL_STORAGE_FAILURE = T.let(2, Integer)
|
|
65
|
+
self::ACTIVITY_TASK_FAILED_CAUSE_ACTIVITY_WORKER_UNHANDLED_FAILURE = T.let(3, Integer)
|
|
66
|
+
|
|
67
|
+
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
|
68
|
+
def self.lookup(value)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
sig { params(value: Symbol).returns(T.nilable(Integer)) }
|
|
72
|
+
def self.resolve(value)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
sig { returns(::Google::Protobuf::EnumDescriptor) }
|
|
76
|
+
def self.descriptor
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
61
80
|
module Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause
|
|
62
81
|
self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = T.let(0, Integer)
|
|
63
82
|
self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS = T.let(1, Integer)
|
|
@@ -126,6 +145,7 @@ module Temporalio::Api::Enums::V1::ResourceExhaustedCause
|
|
|
126
145
|
self::RESOURCE_EXHAUSTED_CAUSE_CIRCUIT_BREAKER_OPEN = T.let(8, Integer)
|
|
127
146
|
self::RESOURCE_EXHAUSTED_CAUSE_OPS_LIMIT = T.let(9, Integer)
|
|
128
147
|
self::RESOURCE_EXHAUSTED_CAUSE_WORKER_DEPLOYMENT_LIMITS = T.let(10, Integer)
|
|
148
|
+
self::RESOURCE_EXHAUSTED_CAUSE_BANDWIDTH_LIMIT = T.let(11, Integer)
|
|
129
149
|
|
|
130
150
|
sig { params(value: Integer).returns(T.nilable(Symbol)) }
|
|
131
151
|
def self.lookup(value)
|
|
@@ -61,8 +61,8 @@ class Temporalio::Api::Export::V1::WorkflowExecution
|
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
-
# WorkflowExecutions is
|
|
65
|
-
#
|
|
64
|
+
# WorkflowExecutions is the legacy Cloud Export file format containing only workflow executions.
|
|
65
|
+
# New exporters should use ExportedExecutions.
|
|
66
66
|
class Temporalio::Api::Export::V1::WorkflowExecutions
|
|
67
67
|
include ::Google::Protobuf::MessageExts
|
|
68
68
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -121,3 +121,137 @@ class Temporalio::Api::Export::V1::WorkflowExecutions
|
|
|
121
121
|
def self.descriptor
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
|
+
|
|
125
|
+
class Temporalio::Api::Export::V1::ActivityExecution
|
|
126
|
+
include ::Google::Protobuf::MessageExts
|
|
127
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
128
|
+
|
|
129
|
+
sig do
|
|
130
|
+
params(
|
|
131
|
+
activity: T.nilable(Temporalio::Api::WorkflowService::V1::DescribeActivityExecutionResponse)
|
|
132
|
+
).void
|
|
133
|
+
end
|
|
134
|
+
def initialize(
|
|
135
|
+
activity: nil
|
|
136
|
+
)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
sig { returns(T.nilable(Temporalio::Api::WorkflowService::V1::DescribeActivityExecutionResponse)) }
|
|
140
|
+
def activity
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
sig { params(value: T.nilable(Temporalio::Api::WorkflowService::V1::DescribeActivityExecutionResponse)).void }
|
|
144
|
+
def activity=(value)
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
sig { void }
|
|
148
|
+
def clear_activity
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
sig { params(field: String).returns(T.untyped) }
|
|
152
|
+
def [](field)
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
sig { params(field: String, value: T.untyped).void }
|
|
156
|
+
def []=(field, value)
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
160
|
+
def to_h
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
sig { params(str: String).returns(Temporalio::Api::Export::V1::ActivityExecution) }
|
|
164
|
+
def self.decode(str)
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
sig { params(msg: Temporalio::Api::Export::V1::ActivityExecution).returns(String) }
|
|
168
|
+
def self.encode(msg)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Export::V1::ActivityExecution) }
|
|
172
|
+
def self.decode_json(str, **kw)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
sig { params(msg: Temporalio::Api::Export::V1::ActivityExecution, kw: T.untyped).returns(String) }
|
|
176
|
+
def self.encode_json(msg, **kw)
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
180
|
+
def self.descriptor
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# ExportedExecutions is used by the Cloud Export feature to deserialize the exported file.
|
|
185
|
+
# It encapsulates workflow execution information and contains other execution types.
|
|
186
|
+
class Temporalio::Api::Export::V1::ExportedExecutions
|
|
187
|
+
include ::Google::Protobuf::MessageExts
|
|
188
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
189
|
+
|
|
190
|
+
sig do
|
|
191
|
+
params(
|
|
192
|
+
workflows: T.nilable(T::Array[T.nilable(Temporalio::Api::Export::V1::WorkflowExecution)]),
|
|
193
|
+
activities: T.nilable(T::Array[T.nilable(Temporalio::Api::Export::V1::ActivityExecution)])
|
|
194
|
+
).void
|
|
195
|
+
end
|
|
196
|
+
def initialize(
|
|
197
|
+
workflows: [],
|
|
198
|
+
activities: []
|
|
199
|
+
)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Export::V1::WorkflowExecution)]) }
|
|
203
|
+
def workflows
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
207
|
+
def workflows=(value)
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
sig { void }
|
|
211
|
+
def clear_workflows
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Export::V1::ActivityExecution)]) }
|
|
215
|
+
def activities
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
219
|
+
def activities=(value)
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
sig { void }
|
|
223
|
+
def clear_activities
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
sig { params(field: String).returns(T.untyped) }
|
|
227
|
+
def [](field)
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
sig { params(field: String, value: T.untyped).void }
|
|
231
|
+
def []=(field, value)
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
235
|
+
def to_h
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
sig { params(str: String).returns(Temporalio::Api::Export::V1::ExportedExecutions) }
|
|
239
|
+
def self.decode(str)
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
sig { params(msg: Temporalio::Api::Export::V1::ExportedExecutions).returns(String) }
|
|
243
|
+
def self.encode(msg)
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Export::V1::ExportedExecutions) }
|
|
247
|
+
def self.decode_json(str, **kw)
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
sig { params(msg: Temporalio::Api::Export::V1::ExportedExecutions, kw: T.untyped).returns(String) }
|
|
251
|
+
def self.encode_json(msg, **kw)
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
255
|
+
def self.descriptor
|
|
256
|
+
end
|
|
257
|
+
end
|