temporalio 1.5.0 → 1.6.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.
- checksums.yaml +4 -4
- data/Cargo.lock +1461 -621
- data/Cargo.toml +1 -1
- data/Gemfile +6 -5
- data/README.md +42 -1
- data/ext/Cargo.toml +9 -3
- data/lib/temporalio/api/activity/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/billing/v1/message.rb +2 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +17 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
- data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
- data/lib/temporalio/api/cloud/namespace/v1/message.rb +5 -1
- data/lib/temporalio/api/command/v1/message.rb +2 -1
- data/lib/temporalio/api/common/v1/message.rb +5 -1
- data/lib/temporalio/api/deployment/v1/message.rb +3 -1
- data/lib/temporalio/api/history/v1/message.rb +3 -1
- data/lib/temporalio/api/namespace/v1/message.rb +1 -1
- data/lib/temporalio/api/nexus/v1/message.rb +1 -1
- data/lib/temporalio/api/nexusannotations/v1/options.rb +20 -0
- data/lib/temporalio/api/payload_visitor.rb +32 -0
- data/lib/temporalio/api/schedule/v1/message.rb +1 -1
- data/lib/temporalio/api/sdk/v1/event_group_marker.rb +26 -0
- data/lib/temporalio/api/update/v1/message.rb +1 -1
- data/lib/temporalio/api/workflow/v1/message.rb +3 -2
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +11 -1
- data/lib/temporalio/api/workflowservice/v1/service.rb +3 -2
- data/lib/temporalio/client/connection/cloud_service.rb +120 -0
- data/lib/temporalio/client/connection/workflow_service.rb +75 -0
- data/lib/temporalio/client/connection.rb +37 -2
- data/lib/temporalio/client.rb +10 -5
- data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
- data/lib/temporalio/internal/bridge/client.rb +6 -1
- data/lib/temporalio/internal/bridge.rb +20 -0
- data/lib/temporalio/internal/google_protobuf.rb +11 -0
- data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
- data/lib/temporalio/internal/worker/workflow_instance/details.rb +3 -1
- data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +73 -2
- data/lib/temporalio/internal/worker/workflow_instance.rb +36 -6
- data/lib/temporalio/internal/worker/workflow_worker.rb +10 -2
- data/lib/temporalio/internal/workflow_task_failure_error.rb +9 -0
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/activity_executor/fiber.rb +1 -1
- data/lib/temporalio/worker/activity_executor/thread_pool.rb +1 -1
- data/lib/temporalio/worker/illegal_workflow_call_validator.rb +3 -1
- data/lib/temporalio/worker/workflow_executor/thread_pool.rb +5 -1
- data/lib/temporalio/worker/workflow_replayer.rb +17 -4
- data/lib/temporalio/worker.rb +30 -5
- data/lib/temporalio/workflow/future.rb +5 -0
- data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +4 -2
- data/lib/temporalio/workflow.rb +8 -0
- data/rbi/google/protobuf.rbi +25 -0
- data/rbi/temporalio/activity/cancellation_details.rbi +33 -0
- data/rbi/temporalio/activity/complete_async_error.rbi +3 -0
- data/rbi/temporalio/activity/context.rbi +42 -0
- data/rbi/temporalio/activity/definition.rbi +74 -0
- data/rbi/temporalio/activity/info.rbi +112 -0
- data/rbi/temporalio/activity.rbi +3 -0
- data/rbi/temporalio/api/activity/v1/message.rbi +1453 -0
- data/rbi/temporalio/api/batch/v1/message.rbi +1283 -0
- data/rbi/temporalio/api/callback/v1/message.rbi +188 -0
- data/rbi/temporalio/api/cloud/account/v1/message.rbi +650 -0
- data/rbi/temporalio/api/cloud/auditlog/v1/message.rbi +318 -0
- data/rbi/temporalio/api/cloud/billing/v1/message.rbi +480 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +12454 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +709 -0
- data/rbi/temporalio/api/cloud/cloudservice.rbi +5 -0
- data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +403 -0
- data/rbi/temporalio/api/cloud/identity/v1/message.rbi +3072 -0
- data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +3659 -0
- data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +595 -0
- data/rbi/temporalio/api/cloud/operation/v1/message.rbi +244 -0
- data/rbi/temporalio/api/cloud/region/v1/message.rbi +166 -0
- data/rbi/temporalio/api/cloud/resource/v1/message.rbi +29 -0
- data/rbi/temporalio/api/cloud/sink/v1/message.rbi +438 -0
- data/rbi/temporalio/api/cloud/usage/v1/message.rbi +409 -0
- data/rbi/temporalio/api/command/v1/message.rbi +2655 -0
- data/rbi/temporalio/api/common/v1/grpc_status.rbi +92 -0
- data/rbi/temporalio/api/common/v1/message.rbi +2983 -0
- data/rbi/temporalio/api/compute/v1/config.rbi +421 -0
- data/rbi/temporalio/api/compute/v1/provider.rbi +125 -0
- data/rbi/temporalio/api/compute/v1/scaler.rbi +102 -0
- data/rbi/temporalio/api/deployment/v1/message.rbi +2340 -0
- data/rbi/temporalio/api/enums/v1/activity.rbi +62 -0
- data/rbi/temporalio/api/enums/v1/batch_operation.rbi +47 -0
- data/rbi/temporalio/api/enums/v1/command_type.rbi +36 -0
- data/rbi/temporalio/api/enums/v1/common.rbi +181 -0
- data/rbi/temporalio/api/enums/v1/deployment.rbi +80 -0
- data/rbi/temporalio/api/enums/v1/event_type.rbi +79 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +155 -0
- data/rbi/temporalio/api/enums/v1/namespace.rbi +58 -0
- data/rbi/temporalio/api/enums/v1/nexus.rbi +98 -0
- data/rbi/temporalio/api/enums/v1/query.rbi +40 -0
- data/rbi/temporalio/api/enums/v1/reset.rbi +60 -0
- data/rbi/temporalio/api/enums/v1/schedule.rbi +25 -0
- data/rbi/temporalio/api/enums/v1/task_queue.rbi +134 -0
- data/rbi/temporalio/api/enums/v1/update.rbi +39 -0
- data/rbi/temporalio/api/enums/v1/workflow.rbi +259 -0
- data/rbi/temporalio/api/errordetails/v1/message.rbi +1389 -0
- data/rbi/temporalio/api/export/v1/message.rbi +123 -0
- data/rbi/temporalio/api/failure/v1/message.rbi +1303 -0
- data/rbi/temporalio/api/filter/v1/message.rbi +267 -0
- data/rbi/temporalio/api/history/v1/message.rbi +10737 -0
- data/rbi/temporalio/api/namespace/v1/message.rbi +1044 -0
- data/rbi/temporalio/api/nexus/v1/message.rbi +2780 -0
- data/rbi/temporalio/api/nexusannotations/v1/options.rbi +161 -0
- data/rbi/temporalio/api/nexusservices/workerservice/v1/request_response.rbi +124 -0
- data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +1836 -0
- data/rbi/temporalio/api/operatorservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +143 -0
- data/rbi/temporalio/api/operatorservice.rbi +5 -0
- data/rbi/temporalio/api/payload_visitor.rbi +876 -0
- data/rbi/temporalio/api/protoc_gen_openapiv2/options/annotations.rbi +3 -0
- data/rbi/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbi +3482 -0
- data/rbi/temporalio/api/protocol/v1/message.rbi +139 -0
- data/rbi/temporalio/api/protometa/v1/annotations.rbi +97 -0
- data/rbi/temporalio/api/query/v1/message.rbi +288 -0
- data/rbi/temporalio/api/replication/v1/message.rbi +226 -0
- data/rbi/temporalio/api/rules/v1/message.rbi +492 -0
- data/rbi/temporalio/api/schedule/v1/message.rbi +2377 -0
- data/rbi/temporalio/api/sdk/v1/enhanced_stack_trace.rbi +478 -0
- data/rbi/temporalio/api/sdk/v1/event_group_marker.rbi +337 -0
- data/rbi/temporalio/api/sdk/v1/external_storage.rbi +85 -0
- data/rbi/temporalio/api/sdk/v1/task_complete_metadata.rbi +206 -0
- data/rbi/temporalio/api/sdk/v1/user_metadata.rbi +98 -0
- data/rbi/temporalio/api/sdk/v1/worker_config.rbi +255 -0
- data/rbi/temporalio/api/sdk/v1/workflow_metadata.rbi +297 -0
- data/rbi/temporalio/api/taskqueue/v1/message.rbi +2460 -0
- data/rbi/temporalio/api/testservice/v1/request_response.rbi +380 -0
- data/rbi/temporalio/api/testservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/testservice/v1/service_services.rbi +100 -0
- data/rbi/temporalio/api/update/v1/message.rbi +800 -0
- data/rbi/temporalio/api/version/v1/message.rbi +281 -0
- data/rbi/temporalio/api/worker/v1/message.rbi +1565 -0
- data/rbi/temporalio/api/workflow/v1/message.rbi +5011 -0
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +30477 -0
- data/rbi/temporalio/api/workflowservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +1571 -0
- data/rbi/temporalio/api/workflowservice.rbi +5 -0
- data/rbi/temporalio/api.rbi +7 -0
- data/rbi/temporalio/cancellation.rbi +40 -0
- data/rbi/temporalio/client/activity_execution.rbi +134 -0
- data/rbi/temporalio/client/activity_execution_count.rbi +23 -0
- data/rbi/temporalio/client/activity_execution_status.rbi +11 -0
- data/rbi/temporalio/client/activity_handle.rbi +49 -0
- data/rbi/temporalio/client/activity_id_reference.rbi +24 -0
- data/rbi/temporalio/client/async_activity_handle.rbi +49 -0
- data/rbi/temporalio/client/connection/cloud_service.rbi +239 -0
- data/rbi/temporalio/client/connection/operator_service.rbi +47 -0
- data/rbi/temporalio/client/connection/service.rbi +19 -0
- data/rbi/temporalio/client/connection/test_service.rbi +29 -0
- data/rbi/temporalio/client/connection/workflow_service.rbi +377 -0
- data/rbi/temporalio/client/connection.rbi +284 -0
- data/rbi/temporalio/client/interceptor.rbi +1067 -0
- data/rbi/temporalio/client/pending_activity_state.rbi +9 -0
- data/rbi/temporalio/client/plugin.rbi +17 -0
- data/rbi/temporalio/client/schedule.rbi +677 -0
- data/rbi/temporalio/client/schedule_handle.rbi +40 -0
- data/rbi/temporalio/client/with_start_workflow_operation.rbi +126 -0
- data/rbi/temporalio/client/workflow_execution.rbi +62 -0
- data/rbi/temporalio/client/workflow_execution_count.rbi +23 -0
- data/rbi/temporalio/client/workflow_execution_status.rbi +11 -0
- data/rbi/temporalio/client/workflow_handle.rbi +148 -0
- data/rbi/temporalio/client/workflow_query_reject_condition.rbi +7 -0
- data/rbi/temporalio/client/workflow_update_handle.rbi +38 -0
- data/rbi/temporalio/client/workflow_update_wait_stage.rbi +7 -0
- data/rbi/temporalio/client.rbi +534 -0
- data/rbi/temporalio/common_enums.rbi +45 -0
- data/rbi/temporalio/contrib/open_telemetry.rbi +73 -0
- data/rbi/temporalio/converters/data_converter.rbi +44 -0
- data/rbi/temporalio/converters/failure_converter.rbi +20 -0
- data/rbi/temporalio/converters/payload_codec.rbi +11 -0
- data/rbi/temporalio/converters/payload_converter/binary_null.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/binary_plain.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/binary_protobuf.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/composite.rbi +20 -0
- data/rbi/temporalio/converters/payload_converter/encoding.rbi +14 -0
- data/rbi/temporalio/converters/payload_converter/json_plain.rbi +10 -0
- data/rbi/temporalio/converters/payload_converter/json_protobuf.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter.rbi +28 -0
- data/rbi/temporalio/converters/raw_value.rbi +11 -0
- data/rbi/temporalio/converters.rbi +3 -0
- data/rbi/temporalio/env_config.rbi +156 -0
- data/rbi/temporalio/error/failure.rbi +3 -0
- data/rbi/temporalio/error.rbi +313 -0
- data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +547 -0
- data/rbi/temporalio/internal/bridge/api/activity_task/activity_task.rbi +705 -0
- data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +332 -0
- data/rbi/temporalio/internal/bridge/api/common/common.rbi +191 -0
- data/rbi/temporalio/internal/bridge/api/core_interface.rbi +567 -0
- data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +255 -0
- data/rbi/temporalio/internal/bridge/api/nexus/nexus.rbi +527 -0
- data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +2808 -0
- data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +3309 -0
- data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +272 -0
- data/rbi/temporalio/internal/bridge/api.rbi +3 -0
- data/rbi/temporalio/internal/bridge/client.rbi +346 -0
- data/rbi/temporalio/internal/bridge/runtime.rbi +231 -0
- data/rbi/temporalio/internal/bridge/testing.rbi +109 -0
- data/rbi/temporalio/internal/bridge/worker.rbi +250 -0
- data/rbi/temporalio/internal/bridge.rbi +47 -0
- data/rbi/temporalio/internal/client/implementation.rbi +53 -0
- data/rbi/temporalio/internal/google_protobuf.rbi +8 -0
- data/rbi/temporalio/internal/metric.rbi +55 -0
- data/rbi/temporalio/internal/proto_utils.rbi +148 -0
- data/rbi/temporalio/internal/worker/activity_worker.rbi +108 -0
- data/rbi/temporalio/internal/worker/multi_runner.rbi +175 -0
- data/rbi/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbi +20 -0
- data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +290 -0
- data/rbi/temporalio/internal/worker/workflow_instance/details.rbi +87 -0
- data/rbi/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbi +14 -0
- data/rbi/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/handler_execution.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/handler_hash.rbi +24 -0
- data/rbi/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/inbound_implementation.rbi +21 -0
- data/rbi/temporalio/internal/worker/workflow_instance/nexus_client.rbi +47 -0
- data/rbi/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbi +19 -0
- data/rbi/temporalio/internal/worker/workflow_instance/outbound_implementation.rbi +43 -0
- data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbi +11 -0
- data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbi +15 -0
- data/rbi/temporalio/internal/worker/workflow_instance/scheduler.rbi +36 -0
- data/rbi/temporalio/internal/worker/workflow_instance.rbi +231 -0
- data/rbi/temporalio/internal/worker/workflow_worker.rbi +199 -0
- data/rbi/temporalio/internal/workflow_task_failure_error.rbi +3 -0
- data/rbi/temporalio/internal.rbi +3 -0
- data/rbi/temporalio/metric.rbi +56 -0
- data/rbi/temporalio/priority.rbi +38 -0
- data/rbi/temporalio/retry_policy.rbi +40 -0
- data/rbi/temporalio/runtime/metric_buffer.rbi +45 -0
- data/rbi/temporalio/runtime.rbi +185 -0
- data/rbi/temporalio/scoped_logger.rbi +50 -0
- data/rbi/temporalio/search_attributes.rbi +94 -0
- data/rbi/temporalio/simple_plugin.rbi +41 -0
- data/rbi/temporalio/testing/activity_environment.rbi +43 -0
- data/rbi/temporalio/testing/workflow_environment.rbi +116 -0
- data/rbi/temporalio/testing.rbi +3 -0
- data/rbi/temporalio/version.rbi +5 -0
- data/rbi/temporalio/versioning_override.rbi +13 -0
- data/rbi/temporalio/worker/activity_executor/fiber.rbi +20 -0
- data/rbi/temporalio/worker/activity_executor/thread_pool.rbi +20 -0
- data/rbi/temporalio/worker/activity_executor.rbi +20 -0
- data/rbi/temporalio/worker/deployment_options.rbi +23 -0
- data/rbi/temporalio/worker/illegal_workflow_call_validator.rbi +33 -0
- data/rbi/temporalio/worker/interceptor.rbi +489 -0
- data/rbi/temporalio/worker/plugin.rbi +49 -0
- data/rbi/temporalio/worker/poller_behavior.rbi +29 -0
- data/rbi/temporalio/worker/thread_pool.rbi +38 -0
- data/rbi/temporalio/worker/tuner.rbi +221 -0
- data/rbi/temporalio/worker/workflow_executor/thread_pool.rbi +15 -0
- data/rbi/temporalio/worker/workflow_executor.rbi +8 -0
- data/rbi/temporalio/worker/workflow_replayer.rbi +152 -0
- data/rbi/temporalio/worker.rbi +258 -0
- data/rbi/temporalio/worker_deployment_version.rbi +29 -0
- data/rbi/temporalio/workflow/activity_cancellation_type.rbi +7 -0
- data/rbi/temporalio/workflow/child_workflow_cancellation_type.rbi +8 -0
- data/rbi/temporalio/workflow/child_workflow_handle.rbi +27 -0
- data/rbi/temporalio/workflow/definition.rbi +305 -0
- data/rbi/temporalio/workflow/external_workflow_handle.rbi +24 -0
- data/rbi/temporalio/workflow/future.rbi +62 -0
- data/rbi/temporalio/workflow/handler_unfinished_policy.rbi +6 -0
- data/rbi/temporalio/workflow/info.rbi +100 -0
- data/rbi/temporalio/workflow/nexus_client.rbi +65 -0
- data/rbi/temporalio/workflow/nexus_operation_cancellation_type.rbi +8 -0
- data/rbi/temporalio/workflow/nexus_operation_handle.rbi +14 -0
- data/rbi/temporalio/workflow/parent_close_policy.rbi +8 -0
- data/rbi/temporalio/workflow/update_info.rbi +14 -0
- data/rbi/temporalio/workflow.rbi +393 -0
- data/rbi/temporalio/workflow_history.rbi +21 -0
- data/rbi/temporalio.rbi +5 -0
- data/sig/common.rbs +1 -0
- data/sig/google/protobuf_compat.rbs +17 -0
- data/sig/open_telemetry.rbs +47 -0
- data/sig/temporalio/activity/cancellation_details.rbs +21 -0
- data/sig/temporalio/activity/complete_async_error.rbs +6 -0
- data/sig/temporalio/activity/context.rbs +26 -0
- data/sig/temporalio/activity/definition.rbs +60 -0
- data/sig/temporalio/activity/info.rbs +57 -0
- data/sig/temporalio/activity.rbs +4 -0
- data/sig/temporalio/api/activity/v1/message.rbs +708 -0
- data/sig/temporalio/api/batch/v1/message.rbs +594 -0
- data/sig/temporalio/api/callback/v1/message.rbs +112 -0
- data/sig/temporalio/api/cloud/account/v1/message.rbs +314 -0
- data/sig/temporalio/api/cloud/auditlog/v1/message.rbs +168 -0
- data/sig/temporalio/api/cloud/billing/v1/message.rbs +279 -0
- data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +4726 -0
- data/sig/temporalio/api/cloud/cloudservice/v1/service.rbs +25 -0
- data/sig/temporalio/api/cloud/cloudservice.rbs +8 -0
- data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +191 -0
- data/sig/temporalio/api/cloud/identity/v1/message.rbs +1372 -0
- data/sig/temporalio/api/cloud/namespace/v1/message.rbs +1571 -0
- data/sig/temporalio/api/cloud/nexus/v1/message.rbs +269 -0
- data/sig/temporalio/api/cloud/operation/v1/message.rbs +156 -0
- data/sig/temporalio/api/cloud/region/v1/message.rbs +109 -0
- data/sig/temporalio/api/cloud/resource/v1/message.rbs +61 -0
- data/sig/temporalio/api/cloud/sink/v1/message.rbs +207 -0
- data/sig/temporalio/api/cloud/usage/v1/message.rbs +230 -0
- data/sig/temporalio/api/command/v1/message.rbs +1211 -0
- data/sig/temporalio/api/common/v1/grpc_status.rbs +59 -0
- data/sig/temporalio/api/common/v1/message.rbs +1238 -0
- data/sig/temporalio/api/compute/v1/config.rbs +176 -0
- data/sig/temporalio/api/compute/v1/provider.rbs +73 -0
- data/sig/temporalio/api/compute/v1/scaler.rbs +60 -0
- data/sig/temporalio/api/deployment/v1/message.rbs +1063 -0
- data/sig/temporalio/api/enums/v1/activity.rbs +134 -0
- data/sig/temporalio/api/enums/v1/batch_operation.rbs +80 -0
- data/sig/temporalio/api/enums/v1/command_type.rbs +74 -0
- data/sig/temporalio/api/enums/v1/common.rbs +271 -0
- data/sig/temporalio/api/enums/v1/deployment.rbs +177 -0
- data/sig/temporalio/api/enums/v1/event_type.rbs +263 -0
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +281 -0
- data/sig/temporalio/api/enums/v1/namespace.rbs +87 -0
- data/sig/temporalio/api/enums/v1/nexus.rbs +172 -0
- data/sig/temporalio/api/enums/v1/query.rbs +69 -0
- data/sig/temporalio/api/enums/v1/reset.rbs +106 -0
- data/sig/temporalio/api/enums/v1/schedule.rbs +68 -0
- data/sig/temporalio/api/enums/v1/task_queue.rbs +238 -0
- data/sig/temporalio/api/enums/v1/update.rbs +87 -0
- data/sig/temporalio/api/enums/v1/workflow.rbs +435 -0
- data/sig/temporalio/api/errordetails/v1/message.rbs +532 -0
- data/sig/temporalio/api/export/v1/message.rbs +63 -0
- data/sig/temporalio/api/failure/v1/message.rbs +579 -0
- data/sig/temporalio/api/filter/v1/message.rbs +121 -0
- data/sig/temporalio/api/history/v1/message.rbs +4928 -0
- data/sig/temporalio/api/namespace/v1/message.rbs +465 -0
- data/sig/temporalio/api/nexus/v1/message.rbs +1268 -0
- data/sig/temporalio/api/nexusannotations/v1/options.rbs +76 -0
- data/sig/temporalio/api/nexusservices/workerservice/v1/request_response.rbs +65 -0
- data/sig/temporalio/api/operatorservice/v1/request_response.rbs +679 -0
- data/sig/temporalio/api/operatorservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/operatorservice.rbs +6 -0
- data/sig/temporalio/api/payload_visitor.rbs +298 -0
- data/sig/temporalio/api/protoc_gen_openapiv2/options/annotations.rbs +23 -0
- data/sig/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbs +1691 -0
- data/sig/temporalio/api/protocol/v1/message.rbs +90 -0
- data/sig/temporalio/api/protometa/v1/annotations.rbs +62 -0
- data/sig/temporalio/api/query/v1/message.rbs +138 -0
- data/sig/temporalio/api/replication/v1/message.rbs +109 -0
- data/sig/temporalio/api/rules/v1/message.rbs +213 -0
- data/sig/temporalio/api/schedule/v1/message.rbs +1066 -0
- data/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs +210 -0
- data/sig/temporalio/api/sdk/v1/event_group_marker.rbs +154 -0
- data/sig/temporalio/api/sdk/v1/external_storage.rbs +54 -0
- data/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs +92 -0
- data/sig/temporalio/api/sdk/v1/user_metadata.rbs +58 -0
- data/sig/temporalio/api/sdk/v1/worker_config.rbs +122 -0
- data/sig/temporalio/api/sdk/v1/workflow_metadata.rbs +138 -0
- data/sig/temporalio/api/taskqueue/v1/message.rbs +1013 -0
- data/sig/temporalio/api/testservice/v1/request_response.rbs +125 -0
- data/sig/temporalio/api/testservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/update/v1/message.rbs +349 -0
- data/sig/temporalio/api/version/v1/message.rbs +143 -0
- data/sig/temporalio/api/worker/v1/message.rbs +716 -0
- data/sig/temporalio/api/workflow/v1/message.rbs +2322 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +12735 -0
- data/sig/temporalio/api/workflowservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/workflowservice.rbs +6 -0
- data/sig/temporalio/api.rbs +4 -0
- data/sig/temporalio/cancellation.rbs +20 -0
- data/sig/temporalio/client/activity_execution.rbs +50 -0
- data/sig/temporalio/client/activity_execution_count.rbs +17 -0
- data/sig/temporalio/client/activity_execution_status.rbs +15 -0
- data/sig/temporalio/client/activity_handle.rbs +26 -0
- data/sig/temporalio/client/activity_id_reference.rbs +16 -0
- data/sig/temporalio/client/async_activity_handle.rbs +41 -0
- data/sig/temporalio/client/connection/cloud_service.rbs +315 -0
- data/sig/temporalio/client/connection/operator_service.rbs +59 -0
- data/sig/temporalio/client/connection/service.rbs +17 -0
- data/sig/temporalio/client/connection/test_service.rbs +35 -0
- data/sig/temporalio/client/connection/workflow_service.rbs +499 -0
- data/sig/temporalio/client/connection.rbs +143 -0
- data/sig/temporalio/client/interceptor.rbs +622 -0
- data/sig/temporalio/client/pending_activity_state.rbs +14 -0
- data/sig/temporalio/client/plugin.rbs +14 -0
- data/sig/temporalio/client/schedule.rbs +337 -0
- data/sig/temporalio/client/schedule_handle.rbs +44 -0
- data/sig/temporalio/client/with_start_workflow_operation.rbs +82 -0
- data/sig/temporalio/client/workflow_execution.rbs +37 -0
- data/sig/temporalio/client/workflow_execution_count.rbs +17 -0
- data/sig/temporalio/client/workflow_execution_status.rbs +16 -0
- data/sig/temporalio/client/workflow_handle.rbs +95 -0
- data/sig/temporalio/client/workflow_query_reject_condition.rbs +12 -0
- data/sig/temporalio/client/workflow_update_handle.rbs +26 -0
- data/sig/temporalio/client/workflow_update_wait_stage.rbs +12 -0
- data/sig/temporalio/client.rbs +271 -0
- data/sig/temporalio/common_enums.rbs +60 -0
- data/sig/temporalio/contrib/open_telemetry.rbs +74 -0
- data/sig/temporalio/converters/data_converter.rbs +32 -0
- data/sig/temporalio/converters/failure_converter.rbs +12 -0
- data/sig/temporalio/converters/payload_codec.rbs +8 -0
- data/sig/temporalio/converters/payload_converter/binary_null.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/binary_plain.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/binary_protobuf.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/composite.rbs +16 -0
- data/sig/temporalio/converters/payload_converter/encoding.rbs +13 -0
- data/sig/temporalio/converters/payload_converter/json_plain.rbs +14 -0
- data/sig/temporalio/converters/payload_converter/json_protobuf.rbs +9 -0
- data/sig/temporalio/converters/payload_converter.rbs +24 -0
- data/sig/temporalio/converters/raw_value.rbs +9 -0
- data/sig/temporalio/converters.rbs +4 -0
- data/sig/temporalio/env_config.rbs +86 -0
- data/sig/temporalio/error/failure.rbs +170 -0
- data/sig/temporalio/error.rbs +88 -0
- data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +247 -0
- data/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs +372 -0
- data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +207 -0
- data/sig/temporalio/internal/bridge/api/common/common.rbs +123 -0
- data/sig/temporalio/internal/bridge/api/core_interface.rbs +231 -0
- data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +134 -0
- data/sig/temporalio/internal/bridge/api/nexus/nexus.rbs +285 -0
- data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +1304 -0
- data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +1526 -0
- data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +136 -0
- data/sig/temporalio/internal/bridge/api.rbs +8 -0
- data/sig/temporalio/internal/bridge/client.rbs +144 -0
- data/sig/temporalio/internal/bridge/metric.rbs +28 -0
- data/sig/temporalio/internal/bridge/runtime.rbs +97 -0
- data/sig/temporalio/internal/bridge/testing.rbs +91 -0
- data/sig/temporalio/internal/bridge/worker.rbs +199 -0
- data/sig/temporalio/internal/bridge.rbs +36 -0
- data/sig/temporalio/internal/client/implementation.rbs +33 -0
- data/sig/temporalio/internal/google_protobuf.rbs +7 -0
- data/sig/temporalio/internal/metric.rbs +35 -0
- data/sig/temporalio/internal/proto_utils.rbs +94 -0
- data/sig/temporalio/internal/worker/activity_worker.rbs +64 -0
- data/sig/temporalio/internal/worker/multi_runner.rbs +132 -0
- data/sig/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbs +22 -0
- data/sig/temporalio/internal/worker/workflow_instance/context.rbs +172 -0
- data/sig/temporalio/internal/worker/workflow_instance/details.rbs +43 -0
- data/sig/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbs +15 -0
- data/sig/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbs +16 -0
- data/sig/temporalio/internal/worker/workflow_instance/handler_execution.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/handler_hash.rbs +14 -0
- data/sig/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbs +20 -0
- data/sig/temporalio/internal/worker/workflow_instance/inbound_implementation.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/nexus_client.rbs +25 -0
- data/sig/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/outbound_implementation.rbs +35 -0
- data/sig/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbs +16 -0
- data/sig/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbs +15 -0
- data/sig/temporalio/internal/worker/workflow_instance/scheduler.rbs +52 -0
- data/sig/temporalio/internal/worker/workflow_instance.rbs +111 -0
- data/sig/temporalio/internal/worker/workflow_worker.rbs +99 -0
- data/sig/temporalio/internal/workflow_task_failure_error.rbs +6 -0
- data/sig/temporalio/internal.rbs +4 -0
- data/sig/temporalio/metric.rbs +55 -0
- data/sig/temporalio/priority.rbs +17 -0
- data/sig/temporalio/retry_policy.rbs +21 -0
- data/sig/temporalio/runtime/metric_buffer.rbs +49 -0
- data/sig/temporalio/runtime.rbs +118 -0
- data/sig/temporalio/scoped_logger.rbs +15 -0
- data/sig/temporalio/search_attributes.rbs +82 -0
- data/sig/temporalio/simple_plugin.rbs +65 -0
- data/sig/temporalio/testing/activity_environment.rbs +52 -0
- data/sig/temporalio/testing/workflow_environment.rbs +141 -0
- data/sig/temporalio/testing.rbs +4 -0
- data/sig/temporalio/version.rbs +3 -0
- data/sig/temporalio/versioning_override.rbs +17 -0
- data/sig/temporalio/worker/activity_executor/fiber.rbs +9 -0
- data/sig/temporalio/worker/activity_executor/thread_pool.rbs +11 -0
- data/sig/temporalio/worker/activity_executor.rbs +12 -0
- data/sig/temporalio/worker/deployment_options.rbs +17 -0
- data/sig/temporalio/worker/illegal_workflow_call_validator.rbs +25 -0
- data/sig/temporalio/worker/interceptor.rbs +373 -0
- data/sig/temporalio/worker/plugin.rbs +47 -0
- data/sig/temporalio/worker/poller_behavior.rbs +23 -0
- data/sig/temporalio/worker/thread_pool.rbs +44 -0
- data/sig/temporalio/worker/tuner.rbs +121 -0
- data/sig/temporalio/worker/workflow_executor/thread_pool.rbs +58 -0
- data/sig/temporalio/worker/workflow_executor.rbs +15 -0
- data/sig/temporalio/worker/workflow_replayer.rbs +105 -0
- data/sig/temporalio/worker.rbs +168 -0
- data/sig/temporalio/worker_deployment_version.rbs +17 -0
- data/sig/temporalio/workflow/activity_cancellation_type.rbs +11 -0
- data/sig/temporalio/workflow/child_workflow_cancellation_type.rbs +12 -0
- data/sig/temporalio/workflow/child_workflow_handle.rbs +18 -0
- data/sig/temporalio/workflow/definition.rbs +181 -0
- data/sig/temporalio/workflow/external_workflow_handle.rbs +17 -0
- data/sig/temporalio/workflow/future.rbs +24 -0
- data/sig/temporalio/workflow/handler_unfinished_policy.rbs +10 -0
- data/sig/temporalio/workflow/info.rbs +79 -0
- data/sig/temporalio/workflow/nexus_client.rbs +34 -0
- data/sig/temporalio/workflow/nexus_operation_cancellation_type.rbs +12 -0
- data/sig/temporalio/workflow/nexus_operation_handle.rbs +10 -0
- data/sig/temporalio/workflow/parent_close_policy.rbs +12 -0
- data/sig/temporalio/workflow/update_info.rbs +15 -0
- data/sig/temporalio/workflow.rbs +215 -0
- data/sig/temporalio/workflow_history.rbs +13 -0
- data/sig/temporalio.rbs +3 -0
- data/temporalio.gemspec +1 -1
- metadata +445 -2
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Code generated by protoc-gen-rbi. DO NOT EDIT.
|
|
2
|
+
# source: temporal/api/sdk/v1/user_metadata.proto
|
|
3
|
+
# typed: strict
|
|
4
|
+
|
|
5
|
+
# Information a user can set, often for use by user interfaces.
|
|
6
|
+
class Temporalio::Api::Sdk::V1::UserMetadata
|
|
7
|
+
include ::Google::Protobuf::MessageExts
|
|
8
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
9
|
+
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
summary: T.nilable(Temporalio::Api::Common::V1::Payload),
|
|
13
|
+
details: T.nilable(Temporalio::Api::Common::V1::Payload)
|
|
14
|
+
).void
|
|
15
|
+
end
|
|
16
|
+
def initialize(
|
|
17
|
+
summary: nil,
|
|
18
|
+
details: nil
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Short-form text that provides a summary. This payload should be a "json/plain"-encoded payload
|
|
23
|
+
# that is a single JSON string for use in user interfaces. User interface formatting may not
|
|
24
|
+
# apply to this text when used in "title" situations. The payload data section is limited to 400
|
|
25
|
+
# bytes by default.
|
|
26
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Payload)) }
|
|
27
|
+
def summary
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Short-form text that provides a summary. This payload should be a "json/plain"-encoded payload
|
|
31
|
+
# that is a single JSON string for use in user interfaces. User interface formatting may not
|
|
32
|
+
# apply to this text when used in "title" situations. The payload data section is limited to 400
|
|
33
|
+
# bytes by default.
|
|
34
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payload)).void }
|
|
35
|
+
def summary=(value)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Short-form text that provides a summary. This payload should be a "json/plain"-encoded payload
|
|
39
|
+
# that is a single JSON string for use in user interfaces. User interface formatting may not
|
|
40
|
+
# apply to this text when used in "title" situations. The payload data section is limited to 400
|
|
41
|
+
# bytes by default.
|
|
42
|
+
sig { void }
|
|
43
|
+
def clear_summary
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Long-form text that provides details. This payload should be a "json/plain"-encoded payload
|
|
47
|
+
# that is a single JSON string for use in user interfaces. User interface formatting may apply to
|
|
48
|
+
# this text in common use. The payload data section is limited to 20000 bytes by default.
|
|
49
|
+
sig { returns(T.nilable(Temporalio::Api::Common::V1::Payload)) }
|
|
50
|
+
def details
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Long-form text that provides details. This payload should be a "json/plain"-encoded payload
|
|
54
|
+
# that is a single JSON string for use in user interfaces. User interface formatting may apply to
|
|
55
|
+
# this text in common use. The payload data section is limited to 20000 bytes by default.
|
|
56
|
+
sig { params(value: T.nilable(Temporalio::Api::Common::V1::Payload)).void }
|
|
57
|
+
def details=(value)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Long-form text that provides details. This payload should be a "json/plain"-encoded payload
|
|
61
|
+
# that is a single JSON string for use in user interfaces. User interface formatting may apply to
|
|
62
|
+
# this text in common use. The payload data section is limited to 20000 bytes by default.
|
|
63
|
+
sig { void }
|
|
64
|
+
def clear_details
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
sig { params(field: String).returns(T.untyped) }
|
|
68
|
+
def [](field)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
sig { params(field: String, value: T.untyped).void }
|
|
72
|
+
def []=(field, value)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
76
|
+
def to_h
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
sig { params(str: String).returns(Temporalio::Api::Sdk::V1::UserMetadata) }
|
|
80
|
+
def self.decode(str)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::UserMetadata).returns(String) }
|
|
84
|
+
def self.encode(msg)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Sdk::V1::UserMetadata) }
|
|
88
|
+
def self.decode_json(str, **kw)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::UserMetadata, kw: T.untyped).returns(String) }
|
|
92
|
+
def self.encode_json(msg, **kw)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
96
|
+
def self.descriptor
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Code generated by protoc-gen-rbi. DO NOT EDIT.
|
|
2
|
+
# source: temporal/api/sdk/v1/worker_config.proto
|
|
3
|
+
# typed: strict
|
|
4
|
+
|
|
5
|
+
class Temporalio::Api::Sdk::V1::WorkerConfig
|
|
6
|
+
include ::Google::Protobuf::MessageExts
|
|
7
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
8
|
+
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
workflow_cache_size: T.nilable(Integer),
|
|
12
|
+
simple_poller_behavior: T.nilable(Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior),
|
|
13
|
+
autoscaling_poller_behavior: T.nilable(Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior)
|
|
14
|
+
).void
|
|
15
|
+
end
|
|
16
|
+
def initialize(
|
|
17
|
+
workflow_cache_size: 0,
|
|
18
|
+
simple_poller_behavior: nil,
|
|
19
|
+
autoscaling_poller_behavior: nil
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { returns(Integer) }
|
|
24
|
+
def workflow_cache_size
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
sig { params(value: Integer).void }
|
|
28
|
+
def workflow_cache_size=(value)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
sig { void }
|
|
32
|
+
def clear_workflow_cache_size
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig { returns(T.nilable(Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior)) }
|
|
36
|
+
def simple_poller_behavior
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
sig { params(value: T.nilable(Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior)).void }
|
|
40
|
+
def simple_poller_behavior=(value)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
sig { void }
|
|
44
|
+
def clear_simple_poller_behavior
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
sig { returns(T.nilable(Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior)) }
|
|
48
|
+
def autoscaling_poller_behavior
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
sig { params(value: T.nilable(Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior)).void }
|
|
52
|
+
def autoscaling_poller_behavior=(value)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig { void }
|
|
56
|
+
def clear_autoscaling_poller_behavior
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig { returns(T.nilable(Symbol)) }
|
|
60
|
+
def poller_behavior
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
sig { params(field: String).returns(T.untyped) }
|
|
64
|
+
def [](field)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
sig { params(field: String, value: T.untyped).void }
|
|
68
|
+
def []=(field, value)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
72
|
+
def to_h
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
sig { params(str: String).returns(Temporalio::Api::Sdk::V1::WorkerConfig) }
|
|
76
|
+
def self.decode(str)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkerConfig).returns(String) }
|
|
80
|
+
def self.encode(msg)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Sdk::V1::WorkerConfig) }
|
|
84
|
+
def self.decode_json(str, **kw)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkerConfig, kw: T.untyped).returns(String) }
|
|
88
|
+
def self.encode_json(msg, **kw)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
92
|
+
def self.descriptor
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
class Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior
|
|
97
|
+
include ::Google::Protobuf::MessageExts
|
|
98
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
99
|
+
|
|
100
|
+
sig do
|
|
101
|
+
params(
|
|
102
|
+
max_pollers: T.nilable(Integer)
|
|
103
|
+
).void
|
|
104
|
+
end
|
|
105
|
+
def initialize(
|
|
106
|
+
max_pollers: 0
|
|
107
|
+
)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
sig { returns(Integer) }
|
|
111
|
+
def max_pollers
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
sig { params(value: Integer).void }
|
|
115
|
+
def max_pollers=(value)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
sig { void }
|
|
119
|
+
def clear_max_pollers
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
sig { params(field: String).returns(T.untyped) }
|
|
123
|
+
def [](field)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
sig { params(field: String, value: T.untyped).void }
|
|
127
|
+
def []=(field, value)
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
131
|
+
def to_h
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
sig { params(str: String).returns(Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior) }
|
|
135
|
+
def self.decode(str)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior).returns(String) }
|
|
139
|
+
def self.encode(msg)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior) }
|
|
143
|
+
def self.decode_json(str, **kw)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior, kw: T.untyped).returns(String) }
|
|
147
|
+
def self.encode_json(msg, **kw)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
151
|
+
def self.descriptor
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
class Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior
|
|
156
|
+
include ::Google::Protobuf::MessageExts
|
|
157
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
158
|
+
|
|
159
|
+
sig do
|
|
160
|
+
params(
|
|
161
|
+
min_pollers: T.nilable(Integer),
|
|
162
|
+
max_pollers: T.nilable(Integer),
|
|
163
|
+
initial_pollers: T.nilable(Integer)
|
|
164
|
+
).void
|
|
165
|
+
end
|
|
166
|
+
def initialize(
|
|
167
|
+
min_pollers: 0,
|
|
168
|
+
max_pollers: 0,
|
|
169
|
+
initial_pollers: 0
|
|
170
|
+
)
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# At least this many poll calls will always be attempted (assuming slots are available).
|
|
174
|
+
# Cannot be zero.
|
|
175
|
+
sig { returns(Integer) }
|
|
176
|
+
def min_pollers
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# At least this many poll calls will always be attempted (assuming slots are available).
|
|
180
|
+
# Cannot be zero.
|
|
181
|
+
sig { params(value: Integer).void }
|
|
182
|
+
def min_pollers=(value)
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# At least this many poll calls will always be attempted (assuming slots are available).
|
|
186
|
+
# Cannot be zero.
|
|
187
|
+
sig { void }
|
|
188
|
+
def clear_min_pollers
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# At most this many poll calls will ever be open at once. Must be >= `minimum`.
|
|
192
|
+
sig { returns(Integer) }
|
|
193
|
+
def max_pollers
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# At most this many poll calls will ever be open at once. Must be >= `minimum`.
|
|
197
|
+
sig { params(value: Integer).void }
|
|
198
|
+
def max_pollers=(value)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# At most this many poll calls will ever be open at once. Must be >= `minimum`.
|
|
202
|
+
sig { void }
|
|
203
|
+
def clear_max_pollers
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# This many polls will be attempted initially before scaling kicks in. Must be between
|
|
207
|
+
# `minimum` and `maximum`.
|
|
208
|
+
sig { returns(Integer) }
|
|
209
|
+
def initial_pollers
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# This many polls will be attempted initially before scaling kicks in. Must be between
|
|
213
|
+
# `minimum` and `maximum`.
|
|
214
|
+
sig { params(value: Integer).void }
|
|
215
|
+
def initial_pollers=(value)
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# This many polls will be attempted initially before scaling kicks in. Must be between
|
|
219
|
+
# `minimum` and `maximum`.
|
|
220
|
+
sig { void }
|
|
221
|
+
def clear_initial_pollers
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
sig { params(field: String).returns(T.untyped) }
|
|
225
|
+
def [](field)
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
sig { params(field: String, value: T.untyped).void }
|
|
229
|
+
def []=(field, value)
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
233
|
+
def to_h
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
sig { params(str: String).returns(Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior) }
|
|
237
|
+
def self.decode(str)
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior).returns(String) }
|
|
241
|
+
def self.encode(msg)
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior) }
|
|
245
|
+
def self.decode_json(str, **kw)
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior, kw: T.untyped).returns(String) }
|
|
249
|
+
def self.encode_json(msg, **kw)
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
253
|
+
def self.descriptor
|
|
254
|
+
end
|
|
255
|
+
end
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
# Code generated by protoc-gen-rbi. DO NOT EDIT.
|
|
2
|
+
# source: temporal/api/sdk/v1/workflow_metadata.proto
|
|
3
|
+
# typed: strict
|
|
4
|
+
|
|
5
|
+
# The name of the query to retrieve this information is `__temporal_workflow_metadata`.
|
|
6
|
+
class Temporalio::Api::Sdk::V1::WorkflowMetadata
|
|
7
|
+
include ::Google::Protobuf::MessageExts
|
|
8
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
9
|
+
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
definition: T.nilable(Temporalio::Api::Sdk::V1::WorkflowDefinition),
|
|
13
|
+
current_details: T.nilable(String)
|
|
14
|
+
).void
|
|
15
|
+
end
|
|
16
|
+
def initialize(
|
|
17
|
+
definition: nil,
|
|
18
|
+
current_details: ""
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Metadata provided at declaration or creation time.
|
|
23
|
+
sig { returns(T.nilable(Temporalio::Api::Sdk::V1::WorkflowDefinition)) }
|
|
24
|
+
def definition
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Metadata provided at declaration or creation time.
|
|
28
|
+
sig { params(value: T.nilable(Temporalio::Api::Sdk::V1::WorkflowDefinition)).void }
|
|
29
|
+
def definition=(value)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Metadata provided at declaration or creation time.
|
|
33
|
+
sig { void }
|
|
34
|
+
def clear_definition
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Current long-form details of the workflow's state. This is used by user interfaces to show
|
|
38
|
+
# long-form text. This text may be formatted by the user interface.
|
|
39
|
+
sig { returns(String) }
|
|
40
|
+
def current_details
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Current long-form details of the workflow's state. This is used by user interfaces to show
|
|
44
|
+
# long-form text. This text may be formatted by the user interface.
|
|
45
|
+
sig { params(value: String).void }
|
|
46
|
+
def current_details=(value)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Current long-form details of the workflow's state. This is used by user interfaces to show
|
|
50
|
+
# long-form text. This text may be formatted by the user interface.
|
|
51
|
+
sig { void }
|
|
52
|
+
def clear_current_details
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig { params(field: String).returns(T.untyped) }
|
|
56
|
+
def [](field)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig { params(field: String, value: T.untyped).void }
|
|
60
|
+
def []=(field, value)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
64
|
+
def to_h
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
sig { params(str: String).returns(Temporalio::Api::Sdk::V1::WorkflowMetadata) }
|
|
68
|
+
def self.decode(str)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkflowMetadata).returns(String) }
|
|
72
|
+
def self.encode(msg)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Sdk::V1::WorkflowMetadata) }
|
|
76
|
+
def self.decode_json(str, **kw)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkflowMetadata, kw: T.untyped).returns(String) }
|
|
80
|
+
def self.encode_json(msg, **kw)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
84
|
+
def self.descriptor
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# (-- api-linter: core::0203::optional=disabled --)
|
|
89
|
+
class Temporalio::Api::Sdk::V1::WorkflowDefinition
|
|
90
|
+
include ::Google::Protobuf::MessageExts
|
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
92
|
+
|
|
93
|
+
sig do
|
|
94
|
+
params(
|
|
95
|
+
type: T.nilable(String),
|
|
96
|
+
query_definitions: T.nilable(T::Array[T.nilable(Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition)]),
|
|
97
|
+
signal_definitions: T.nilable(T::Array[T.nilable(Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition)]),
|
|
98
|
+
update_definitions: T.nilable(T::Array[T.nilable(Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition)])
|
|
99
|
+
).void
|
|
100
|
+
end
|
|
101
|
+
def initialize(
|
|
102
|
+
type: "",
|
|
103
|
+
query_definitions: [],
|
|
104
|
+
signal_definitions: [],
|
|
105
|
+
update_definitions: []
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# A name scoped by the task queue that maps to this workflow definition.
|
|
110
|
+
# If missing, this workflow is a dynamic workflow.
|
|
111
|
+
sig { returns(String) }
|
|
112
|
+
def type
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# A name scoped by the task queue that maps to this workflow definition.
|
|
116
|
+
# If missing, this workflow is a dynamic workflow.
|
|
117
|
+
sig { params(value: String).void }
|
|
118
|
+
def type=(value)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# A name scoped by the task queue that maps to this workflow definition.
|
|
122
|
+
# If missing, this workflow is a dynamic workflow.
|
|
123
|
+
sig { void }
|
|
124
|
+
def clear_type
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Query definitions, sorted by name.
|
|
128
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition)]) }
|
|
129
|
+
def query_definitions
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Query definitions, sorted by name.
|
|
133
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
134
|
+
def query_definitions=(value)
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Query definitions, sorted by name.
|
|
138
|
+
sig { void }
|
|
139
|
+
def clear_query_definitions
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Signal definitions, sorted by name.
|
|
143
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition)]) }
|
|
144
|
+
def signal_definitions
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Signal definitions, sorted by name.
|
|
148
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
149
|
+
def signal_definitions=(value)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Signal definitions, sorted by name.
|
|
153
|
+
sig { void }
|
|
154
|
+
def clear_signal_definitions
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Update definitions, sorted by name.
|
|
158
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition)]) }
|
|
159
|
+
def update_definitions
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Update definitions, sorted by name.
|
|
163
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
164
|
+
def update_definitions=(value)
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Update definitions, sorted by name.
|
|
168
|
+
sig { void }
|
|
169
|
+
def clear_update_definitions
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
sig { params(field: String).returns(T.untyped) }
|
|
173
|
+
def [](field)
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
sig { params(field: String, value: T.untyped).void }
|
|
177
|
+
def []=(field, value)
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
181
|
+
def to_h
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
sig { params(str: String).returns(Temporalio::Api::Sdk::V1::WorkflowDefinition) }
|
|
185
|
+
def self.decode(str)
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkflowDefinition).returns(String) }
|
|
189
|
+
def self.encode(msg)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Sdk::V1::WorkflowDefinition) }
|
|
193
|
+
def self.decode_json(str, **kw)
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkflowDefinition, kw: T.untyped).returns(String) }
|
|
197
|
+
def self.encode_json(msg, **kw)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
201
|
+
def self.descriptor
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# (-- api-linter: core::0123::resource-annotation=disabled
|
|
206
|
+
# aip.dev/not-precedent: The `name` field is optional. --)
|
|
207
|
+
# (-- api-linter: core::0203::optional=disabled --)
|
|
208
|
+
class Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition
|
|
209
|
+
include ::Google::Protobuf::MessageExts
|
|
210
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
211
|
+
|
|
212
|
+
sig do
|
|
213
|
+
params(
|
|
214
|
+
name: T.nilable(String),
|
|
215
|
+
description: T.nilable(String)
|
|
216
|
+
).void
|
|
217
|
+
end
|
|
218
|
+
def initialize(
|
|
219
|
+
name: "",
|
|
220
|
+
description: ""
|
|
221
|
+
)
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# An optional name for the handler. If missing, it represents
|
|
225
|
+
# a dynamic handler that processes any interactions not handled by others.
|
|
226
|
+
# There is at most one dynamic handler per workflow and interaction kind.
|
|
227
|
+
sig { returns(String) }
|
|
228
|
+
def name
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# An optional name for the handler. If missing, it represents
|
|
232
|
+
# a dynamic handler that processes any interactions not handled by others.
|
|
233
|
+
# There is at most one dynamic handler per workflow and interaction kind.
|
|
234
|
+
sig { params(value: String).void }
|
|
235
|
+
def name=(value)
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# An optional name for the handler. If missing, it represents
|
|
239
|
+
# a dynamic handler that processes any interactions not handled by others.
|
|
240
|
+
# There is at most one dynamic handler per workflow and interaction kind.
|
|
241
|
+
sig { void }
|
|
242
|
+
def clear_name
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# An optional interaction description provided by the application.
|
|
246
|
+
# By convention, external tools may interpret its first part,
|
|
247
|
+
# i.e., ending with a line break, as a summary of the description.
|
|
248
|
+
sig { returns(String) }
|
|
249
|
+
def description
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# An optional interaction description provided by the application.
|
|
253
|
+
# By convention, external tools may interpret its first part,
|
|
254
|
+
# i.e., ending with a line break, as a summary of the description.
|
|
255
|
+
sig { params(value: String).void }
|
|
256
|
+
def description=(value)
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# An optional interaction description provided by the application.
|
|
260
|
+
# By convention, external tools may interpret its first part,
|
|
261
|
+
# i.e., ending with a line break, as a summary of the description.
|
|
262
|
+
sig { void }
|
|
263
|
+
def clear_description
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
sig { params(field: String).returns(T.untyped) }
|
|
267
|
+
def [](field)
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
sig { params(field: String, value: T.untyped).void }
|
|
271
|
+
def []=(field, value)
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
275
|
+
def to_h
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
sig { params(str: String).returns(Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition) }
|
|
279
|
+
def self.decode(str)
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition).returns(String) }
|
|
283
|
+
def self.encode(msg)
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition) }
|
|
287
|
+
def self.decode_json(str, **kw)
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
sig { params(msg: Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition, kw: T.untyped).returns(String) }
|
|
291
|
+
def self.encode_json(msg, **kw)
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
295
|
+
def self.descriptor
|
|
296
|
+
end
|
|
297
|
+
end
|