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,271 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
class Client
|
|
3
|
+
class Options
|
|
4
|
+
attr_reader connection: Connection
|
|
5
|
+
attr_reader namespace: String
|
|
6
|
+
attr_reader data_converter: Converters::DataConverter
|
|
7
|
+
attr_reader plugins: Array[Plugin]
|
|
8
|
+
attr_reader interceptors: Array[Interceptor]
|
|
9
|
+
attr_reader logger: Logger
|
|
10
|
+
attr_reader default_workflow_query_reject_condition: WorkflowQueryRejectCondition::enum?
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
connection: Connection,
|
|
14
|
+
namespace: String,
|
|
15
|
+
data_converter: Converters::DataConverter,
|
|
16
|
+
plugins: Array[Plugin],
|
|
17
|
+
interceptors: Array[Interceptor],
|
|
18
|
+
logger: Logger,
|
|
19
|
+
default_workflow_query_reject_condition: WorkflowQueryRejectCondition::enum?
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_h: -> Hash[Symbol, untyped]
|
|
23
|
+
|
|
24
|
+
def with: (**untyped) -> Options
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
class ListWorkflowPage
|
|
28
|
+
attr_reader executions: Array[WorkflowExecution]
|
|
29
|
+
attr_reader next_page_token: String?
|
|
30
|
+
|
|
31
|
+
def initialize: (
|
|
32
|
+
executions: Array[WorkflowExecution],
|
|
33
|
+
next_page_token: String?
|
|
34
|
+
) -> void
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def self.connect: (
|
|
38
|
+
String target_host,
|
|
39
|
+
String namespace,
|
|
40
|
+
?api_key: String?,
|
|
41
|
+
?tls: bool | Connection::TLSOptions | nil,
|
|
42
|
+
?data_converter: Converters::DataConverter,
|
|
43
|
+
?plugins: Array[Plugin],
|
|
44
|
+
?interceptors: Array[Interceptor],
|
|
45
|
+
?logger: Logger,
|
|
46
|
+
?default_workflow_query_reject_condition: WorkflowQueryRejectCondition::enum?,
|
|
47
|
+
?rpc_metadata: Hash[String, String],
|
|
48
|
+
?rpc_retry: Connection::RPCRetryOptions,
|
|
49
|
+
?identity: String,
|
|
50
|
+
?keep_alive: Connection::KeepAliveOptions,
|
|
51
|
+
?http_connect_proxy: Connection::HTTPConnectProxyOptions?,
|
|
52
|
+
?runtime: Runtime,
|
|
53
|
+
?lazy_connect: bool,
|
|
54
|
+
?dns_load_balancing: Connection::DnsLoadBalancingOptions?,
|
|
55
|
+
?grpc_compression: Connection::GrpcCompressionOptions::Gzip | Connection::GrpcCompressionOptions::None
|
|
56
|
+
) -> Client
|
|
57
|
+
|
|
58
|
+
def self._validate_plugins!: (Array[Plugin] plugins) -> void
|
|
59
|
+
|
|
60
|
+
attr_reader options: Options
|
|
61
|
+
|
|
62
|
+
def initialize: (
|
|
63
|
+
connection: Connection,
|
|
64
|
+
namespace: String,
|
|
65
|
+
?data_converter: Converters::DataConverter,
|
|
66
|
+
?plugins: Array[Plugin],
|
|
67
|
+
?interceptors: Array[Interceptor],
|
|
68
|
+
?logger: Logger,
|
|
69
|
+
?default_workflow_query_reject_condition: WorkflowQueryRejectCondition::enum?
|
|
70
|
+
) -> void
|
|
71
|
+
|
|
72
|
+
def connection: -> Connection
|
|
73
|
+
def namespace: -> String
|
|
74
|
+
def data_converter: -> Converters::DataConverter
|
|
75
|
+
def _impl: -> Interceptor::Outbound
|
|
76
|
+
def workflow_service: -> Connection::WorkflowService
|
|
77
|
+
def operator_service: -> Connection::OperatorService
|
|
78
|
+
|
|
79
|
+
def start_workflow: (
|
|
80
|
+
singleton(Workflow::Definition) | Workflow::Definition::Info | Symbol | String workflow,
|
|
81
|
+
*Object? args,
|
|
82
|
+
id: String,
|
|
83
|
+
task_queue: String,
|
|
84
|
+
?static_summary: String?,
|
|
85
|
+
?static_details: String?,
|
|
86
|
+
?execution_timeout: duration?,
|
|
87
|
+
?run_timeout: duration?,
|
|
88
|
+
?task_timeout: duration?,
|
|
89
|
+
?id_reuse_policy: WorkflowIDReusePolicy::enum,
|
|
90
|
+
?id_conflict_policy: WorkflowIDConflictPolicy::enum,
|
|
91
|
+
?retry_policy: RetryPolicy?,
|
|
92
|
+
?cron_schedule: String?,
|
|
93
|
+
?memo: Hash[String | Symbol, Object?]?,
|
|
94
|
+
?search_attributes: SearchAttributes?,
|
|
95
|
+
?start_delay: duration?,
|
|
96
|
+
?request_eager_start: bool,
|
|
97
|
+
?versioning_override: VersioningOverride?,
|
|
98
|
+
?priority: Priority,
|
|
99
|
+
?arg_hints: Array[Object]?,
|
|
100
|
+
?result_hint: Object?,
|
|
101
|
+
?rpc_options: RPCOptions?
|
|
102
|
+
) -> WorkflowHandle
|
|
103
|
+
|
|
104
|
+
def execute_workflow: (
|
|
105
|
+
singleton(Workflow::Definition) | Workflow::Definition::Info | Symbol | String workflow,
|
|
106
|
+
*Object? args,
|
|
107
|
+
id: String,
|
|
108
|
+
task_queue: String,
|
|
109
|
+
?static_summary: String?,
|
|
110
|
+
?static_details: String?,
|
|
111
|
+
?execution_timeout: duration?,
|
|
112
|
+
?run_timeout: duration?,
|
|
113
|
+
?task_timeout: duration?,
|
|
114
|
+
?id_reuse_policy: WorkflowIDReusePolicy::enum,
|
|
115
|
+
?id_conflict_policy: WorkflowIDConflictPolicy::enum,
|
|
116
|
+
?retry_policy: RetryPolicy?,
|
|
117
|
+
?cron_schedule: String?,
|
|
118
|
+
?memo: Hash[String | Symbol, Object?]?,
|
|
119
|
+
?search_attributes: SearchAttributes?,
|
|
120
|
+
?start_delay: duration?,
|
|
121
|
+
?request_eager_start: bool,
|
|
122
|
+
?versioning_override: VersioningOverride?,
|
|
123
|
+
?priority: Priority,
|
|
124
|
+
?arg_hints: Array[Object]?,
|
|
125
|
+
?result_hint: Object?,
|
|
126
|
+
?rpc_options: RPCOptions?
|
|
127
|
+
) -> Object?
|
|
128
|
+
|
|
129
|
+
def workflow_handle: (
|
|
130
|
+
String workflow_id,
|
|
131
|
+
?run_id: String?,
|
|
132
|
+
?first_execution_run_id: String?,
|
|
133
|
+
?result_hint: Object?
|
|
134
|
+
) -> WorkflowHandle
|
|
135
|
+
|
|
136
|
+
def activity_handle: (
|
|
137
|
+
String activity_id,
|
|
138
|
+
?activity_run_id: String?,
|
|
139
|
+
?result_hint: Object?
|
|
140
|
+
) -> ActivityHandle
|
|
141
|
+
|
|
142
|
+
def start_activity: (
|
|
143
|
+
singleton(Activity::Definition) | Activity::Definition | Activity::Definition::Info | Symbol | String activity,
|
|
144
|
+
*Object? args,
|
|
145
|
+
id: String,
|
|
146
|
+
task_queue: String,
|
|
147
|
+
?schedule_to_close_timeout: duration?,
|
|
148
|
+
?schedule_to_start_timeout: duration?,
|
|
149
|
+
?start_to_close_timeout: duration?,
|
|
150
|
+
?heartbeat_timeout: duration?,
|
|
151
|
+
?id_reuse_policy: ActivityIDReusePolicy::enum,
|
|
152
|
+
?id_conflict_policy: ActivityIDConflictPolicy::enum,
|
|
153
|
+
?retry_policy: RetryPolicy?,
|
|
154
|
+
?search_attributes: SearchAttributes?,
|
|
155
|
+
?static_summary: String?,
|
|
156
|
+
?static_details: String?,
|
|
157
|
+
?priority: Priority,
|
|
158
|
+
?start_delay: duration?,
|
|
159
|
+
?arg_hints: Array[Object]?,
|
|
160
|
+
?result_hint: Object?,
|
|
161
|
+
?rpc_options: RPCOptions?
|
|
162
|
+
) -> ActivityHandle
|
|
163
|
+
|
|
164
|
+
def execute_activity: (
|
|
165
|
+
singleton(Activity::Definition) | Activity::Definition | Activity::Definition::Info | Symbol | String activity,
|
|
166
|
+
*Object? args,
|
|
167
|
+
id: String,
|
|
168
|
+
task_queue: String,
|
|
169
|
+
?schedule_to_close_timeout: duration?,
|
|
170
|
+
?schedule_to_start_timeout: duration?,
|
|
171
|
+
?start_to_close_timeout: duration?,
|
|
172
|
+
?heartbeat_timeout: duration?,
|
|
173
|
+
?id_reuse_policy: ActivityIDReusePolicy::enum,
|
|
174
|
+
?id_conflict_policy: ActivityIDConflictPolicy::enum,
|
|
175
|
+
?retry_policy: RetryPolicy?,
|
|
176
|
+
?search_attributes: SearchAttributes?,
|
|
177
|
+
?static_summary: String?,
|
|
178
|
+
?static_details: String?,
|
|
179
|
+
?priority: Priority,
|
|
180
|
+
?start_delay: duration?,
|
|
181
|
+
?arg_hints: Array[Object]?,
|
|
182
|
+
?result_hint: Object?,
|
|
183
|
+
?rpc_options: RPCOptions?
|
|
184
|
+
) -> Object?
|
|
185
|
+
|
|
186
|
+
def list_activities: (String query, ?rpc_options: RPCOptions?) -> Enumerator[ActivityExecution, ActivityExecution]
|
|
187
|
+
|
|
188
|
+
def count_activities: (String query, ?rpc_options: RPCOptions?) -> ActivityExecutionCount
|
|
189
|
+
|
|
190
|
+
def start_update_with_start_workflow: (
|
|
191
|
+
Workflow::Definition::Update | Symbol | String update,
|
|
192
|
+
*Object? args,
|
|
193
|
+
start_workflow_operation: WithStartWorkflowOperation,
|
|
194
|
+
wait_for_stage: WorkflowUpdateWaitStage::enum,
|
|
195
|
+
?id: String,
|
|
196
|
+
?arg_hints: Array[Object]?,
|
|
197
|
+
?result_hint: Object?,
|
|
198
|
+
?rpc_options: RPCOptions?
|
|
199
|
+
) -> WorkflowUpdateHandle
|
|
200
|
+
|
|
201
|
+
def execute_update_with_start_workflow: (
|
|
202
|
+
Workflow::Definition::Update | Symbol | String update,
|
|
203
|
+
*Object? args,
|
|
204
|
+
start_workflow_operation: WithStartWorkflowOperation,
|
|
205
|
+
?id: String,
|
|
206
|
+
?arg_hints: Array[Object]?,
|
|
207
|
+
?result_hint: Object?,
|
|
208
|
+
?rpc_options: RPCOptions?
|
|
209
|
+
) -> Object?
|
|
210
|
+
|
|
211
|
+
def signal_with_start_workflow: (
|
|
212
|
+
Workflow::Definition::Signal | Symbol | String signal,
|
|
213
|
+
*Object? args,
|
|
214
|
+
start_workflow_operation: WithStartWorkflowOperation,
|
|
215
|
+
?arg_hints: Array[Object]?,
|
|
216
|
+
?rpc_options: RPCOptions?
|
|
217
|
+
) -> WorkflowHandle
|
|
218
|
+
|
|
219
|
+
def list_workflows: (
|
|
220
|
+
?String query,
|
|
221
|
+
?rpc_options: RPCOptions?
|
|
222
|
+
) -> Enumerator[WorkflowExecution, WorkflowExecution]
|
|
223
|
+
|
|
224
|
+
def list_workflow_page: (
|
|
225
|
+
?String query,
|
|
226
|
+
?next_page_token: String?,
|
|
227
|
+
?page_size: Integer?,
|
|
228
|
+
?rpc_options: RPCOptions?
|
|
229
|
+
) -> ListWorkflowPage
|
|
230
|
+
|
|
231
|
+
def count_workflows: (
|
|
232
|
+
?String query,
|
|
233
|
+
?rpc_options: RPCOptions?
|
|
234
|
+
) -> WorkflowExecutionCount
|
|
235
|
+
|
|
236
|
+
def create_schedule: (
|
|
237
|
+
String id,
|
|
238
|
+
Schedule schedule,
|
|
239
|
+
?trigger_immediately: bool,
|
|
240
|
+
?backfills: Array[Schedule::Backfill],
|
|
241
|
+
?memo: Hash[String, Object?]?,
|
|
242
|
+
?search_attributes: SearchAttributes?,
|
|
243
|
+
?rpc_options: RPCOptions?
|
|
244
|
+
) -> ScheduleHandle
|
|
245
|
+
|
|
246
|
+
def schedule_handle: (String id) -> ScheduleHandle
|
|
247
|
+
|
|
248
|
+
def list_schedules: (
|
|
249
|
+
?String query,
|
|
250
|
+
?rpc_options: RPCOptions?
|
|
251
|
+
) -> Enumerator[Schedule::List::Description, Schedule::List::Description]
|
|
252
|
+
|
|
253
|
+
def async_activity_handle: (
|
|
254
|
+
String | ActivityIDReference task_token_or_id_reference
|
|
255
|
+
) -> AsyncActivityHandle
|
|
256
|
+
|
|
257
|
+
class RPCOptions
|
|
258
|
+
attr_accessor metadata: Hash[String, String]?
|
|
259
|
+
attr_accessor timeout: Float?
|
|
260
|
+
attr_accessor cancellation: Cancellation?
|
|
261
|
+
attr_accessor override_retry: bool?
|
|
262
|
+
|
|
263
|
+
def initialize: (
|
|
264
|
+
?metadata: Hash[String, String]?,
|
|
265
|
+
?timeout: Float?,
|
|
266
|
+
?cancellation: Cancellation?,
|
|
267
|
+
?override_retry: bool?
|
|
268
|
+
) -> void
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module WorkflowIDReusePolicy
|
|
3
|
+
type enum = Integer
|
|
4
|
+
|
|
5
|
+
ALLOW_DUPLICATE: enum
|
|
6
|
+
ALLOW_DUPLICATE_FAILED_ONLY: enum
|
|
7
|
+
REJECT_DUPLICATE: enum
|
|
8
|
+
TERMINATE_IF_RUNNING: enum
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
module WorkflowIDConflictPolicy
|
|
12
|
+
type enum = Integer
|
|
13
|
+
|
|
14
|
+
UNSPECIFIED: enum
|
|
15
|
+
FAIL: enum
|
|
16
|
+
USE_EXISTING: enum
|
|
17
|
+
TERMINATE_EXISTING: enum
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
module ContinueAsNewVersioningBehavior
|
|
21
|
+
type enum = Integer
|
|
22
|
+
|
|
23
|
+
UNSPECIFIED: enum
|
|
24
|
+
AUTO_UPGRADE: enum
|
|
25
|
+
USE_RAMPING_VERSION: enum
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
module SuggestContinueAsNewReason
|
|
29
|
+
type enum = Integer
|
|
30
|
+
|
|
31
|
+
UNSPECIFIED: enum
|
|
32
|
+
HISTORY_SIZE_TOO_LARGE: enum
|
|
33
|
+
TOO_MANY_HISTORY_EVENTS: enum
|
|
34
|
+
TOO_MANY_UPDATES: enum
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
module VersioningBehavior
|
|
38
|
+
type enum = Integer
|
|
39
|
+
|
|
40
|
+
UNSPECIFIED: enum
|
|
41
|
+
PINNED: enum
|
|
42
|
+
AUTO_UPGRADE: enum
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
module ActivityIDReusePolicy
|
|
46
|
+
type enum = Integer
|
|
47
|
+
|
|
48
|
+
ALLOW_DUPLICATE: enum
|
|
49
|
+
ALLOW_DUPLICATE_FAILED_ONLY: enum
|
|
50
|
+
REJECT_DUPLICATE: enum
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
module ActivityIDConflictPolicy
|
|
54
|
+
type enum = Integer
|
|
55
|
+
|
|
56
|
+
UNSPECIFIED: enum
|
|
57
|
+
FAIL: enum
|
|
58
|
+
USE_EXISTING: enum
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Contrib
|
|
3
|
+
module OpenTelemetry
|
|
4
|
+
class TracingInterceptor
|
|
5
|
+
include Client::Interceptor
|
|
6
|
+
include Worker::Interceptor::Activity
|
|
7
|
+
include Worker::Interceptor::Workflow
|
|
8
|
+
|
|
9
|
+
attr_reader tracer: untyped
|
|
10
|
+
|
|
11
|
+
def initialize: (
|
|
12
|
+
untyped tracer,
|
|
13
|
+
?header_key: String,
|
|
14
|
+
?propagator: untyped,
|
|
15
|
+
?always_create_workflow_spans: bool
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def _apply_context_to_headers: (Hash[String, untyped] headers, ?context: untyped) -> void
|
|
19
|
+
def _attach_context: (Hash[String, untyped] headers) -> Object?
|
|
20
|
+
def _detach_context: (Object? token) -> void
|
|
21
|
+
def _context_from_headers: (Hash[String, untyped] headers) -> untyped
|
|
22
|
+
def _with_started_span: [T] (
|
|
23
|
+
name: String,
|
|
24
|
+
kind: Symbol,
|
|
25
|
+
?attributes: Hash[untyped, untyped]?,
|
|
26
|
+
?outbound_input: untyped
|
|
27
|
+
) { () -> T } -> T
|
|
28
|
+
def _always_create_workflow_spans: -> bool
|
|
29
|
+
|
|
30
|
+
class ClientOutbound < Client::Interceptor::Outbound
|
|
31
|
+
def initialize: (TracingInterceptor root, Client::Interceptor::Outbound next_interceptor) -> void
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
class ActivityInbound < Worker::Interceptor::Activity::Inbound
|
|
35
|
+
def initialize: (TracingInterceptor root, Worker::Interceptor::Activity::Inbound next_interceptor) -> void
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
class WorkflowInbound < Worker::Interceptor::Workflow::Inbound
|
|
39
|
+
def initialize: (TracingInterceptor root, Worker::Interceptor::Workflow::Inbound next_interceptor) -> void
|
|
40
|
+
|
|
41
|
+
def _attach_context: (Hash[String, untyped] headers) -> Object?
|
|
42
|
+
def _detach_context: (Object? token) -> void
|
|
43
|
+
def _links_from_headers: (Hash[String, untyped] headers) -> Array[untyped]
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
class WorkflowOutbound < Worker::Interceptor::Workflow::Outbound
|
|
47
|
+
def initialize: (TracingInterceptor root, Worker::Interceptor::Workflow::Outbound next_interceptor) -> void
|
|
48
|
+
|
|
49
|
+
def _apply_span_to_headers: (Hash[String, untyped] headers, untyped span) -> void
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
module Workflow
|
|
54
|
+
def self.with_completed_span: [T] (
|
|
55
|
+
String name,
|
|
56
|
+
?attributes: Hash[untyped, untyped],
|
|
57
|
+
?links: Array[untyped]?,
|
|
58
|
+
?kind: Symbol?,
|
|
59
|
+
?exception: Exception?,
|
|
60
|
+
?even_during_replay: bool
|
|
61
|
+
) { -> T } -> T
|
|
62
|
+
|
|
63
|
+
def self.completed_span: (
|
|
64
|
+
String name,
|
|
65
|
+
?attributes: Hash[untyped, untyped],
|
|
66
|
+
?links: Array[untyped]?,
|
|
67
|
+
?kind: Symbol?,
|
|
68
|
+
?exception: Exception?,
|
|
69
|
+
?even_during_replay: bool
|
|
70
|
+
) -> untyped
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Converters
|
|
3
|
+
class DataConverter
|
|
4
|
+
attr_reader payload_converter: PayloadConverter
|
|
5
|
+
attr_reader failure_converter: FailureConverter
|
|
6
|
+
attr_reader payload_codec: PayloadCodec?
|
|
7
|
+
|
|
8
|
+
def self.default: -> DataConverter
|
|
9
|
+
|
|
10
|
+
def initialize: (
|
|
11
|
+
?payload_converter: PayloadConverter,
|
|
12
|
+
?failure_converter: FailureConverter,
|
|
13
|
+
?payload_codec: PayloadCodec?
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_payload: (Object? value, ?hint: Object?) -> Temporalio::Api::Common::V1::Payload
|
|
17
|
+
def to_payloads: (
|
|
18
|
+
Array[Object?] values,
|
|
19
|
+
?hints: Array[Object]?
|
|
20
|
+
) -> Temporalio::Api::Common::V1::Payloads
|
|
21
|
+
|
|
22
|
+
def from_payload: (Temporalio::Api::Common::V1::Payload payload, ?hint: Object?) -> Object?
|
|
23
|
+
def from_payloads: (
|
|
24
|
+
Temporalio::Api::Common::V1::Payloads payloads,
|
|
25
|
+
?hints: Array[Object]?
|
|
26
|
+
) -> Array[Object?]
|
|
27
|
+
|
|
28
|
+
def to_failure: (Exception error) -> Api::Failure::V1::Failure
|
|
29
|
+
def from_failure: (Api::Failure::V1::Failure failure) -> Exception
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Converters
|
|
3
|
+
class FailureConverter
|
|
4
|
+
def self.default: -> FailureConverter
|
|
5
|
+
|
|
6
|
+
def initialize: (?encode_common_attributes: bool) -> void
|
|
7
|
+
|
|
8
|
+
def to_failure: (Exception error, DataConverter | PayloadConverter converter) -> Api::Failure::V1::Failure
|
|
9
|
+
def from_failure: (Api::Failure::V1::Failure failure, DataConverter | PayloadConverter converter) -> Exception
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Converters
|
|
3
|
+
class PayloadCodec
|
|
4
|
+
def encode: (Enumerable[Api::Common::V1::Payload] payloads) -> Array[Api::Common::V1::Payload]
|
|
5
|
+
def decode: (Enumerable[Api::Common::V1::Payload] payloads) -> Array[Api::Common::V1::Payload]
|
|
6
|
+
end
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Converters
|
|
3
|
+
class PayloadConverter
|
|
4
|
+
class Composite < PayloadConverter
|
|
5
|
+
class ConverterNotFound < Error
|
|
6
|
+
end
|
|
7
|
+
class EncodingNotSet < Error
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
attr_reader converters: Hash[String, Encoding]
|
|
11
|
+
|
|
12
|
+
def initialize: (*Encoding converters) -> void
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Converters
|
|
3
|
+
class PayloadConverter
|
|
4
|
+
class Encoding
|
|
5
|
+
def encoding: -> String
|
|
6
|
+
|
|
7
|
+
def to_payload: (Object? value, ?hint: Object?) -> Temporalio::Api::Common::V1::Payload?
|
|
8
|
+
|
|
9
|
+
def from_payload: (Temporalio::Api::Common::V1::Payload payload, ?hint: Object?) -> Object?
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Converters
|
|
3
|
+
class PayloadConverter
|
|
4
|
+
class JSONPlain < Encoding
|
|
5
|
+
ENCODING: String
|
|
6
|
+
|
|
7
|
+
def initialize: (
|
|
8
|
+
?parse_options: Hash[Symbol, untyped],
|
|
9
|
+
?generate_options: Hash[Symbol, untyped]
|
|
10
|
+
) -> void
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module Converters
|
|
3
|
+
class PayloadConverter
|
|
4
|
+
def self.default: -> Composite
|
|
5
|
+
|
|
6
|
+
def self.new_with_defaults: (
|
|
7
|
+
?json_parse_options: Hash[Symbol, untyped],
|
|
8
|
+
?json_generate_options: Hash[Symbol, untyped]
|
|
9
|
+
) -> Composite
|
|
10
|
+
|
|
11
|
+
def to_payload: (Object? value, ?hint: Object?) -> Temporalio::Api::Common::V1::Payload
|
|
12
|
+
def to_payloads: (
|
|
13
|
+
Array[Object?] values,
|
|
14
|
+
?hints: Array[Object]?
|
|
15
|
+
) -> Temporalio::Api::Common::V1::Payloads
|
|
16
|
+
|
|
17
|
+
def from_payload: (Temporalio::Api::Common::V1::Payload? payload, ?hint: Object?) -> Object?
|
|
18
|
+
def from_payloads: (
|
|
19
|
+
Temporalio::Api::Common::V1::Payloads payloads,
|
|
20
|
+
?hints: Array[Object]?
|
|
21
|
+
) -> Array[Object?]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
module EnvConfig
|
|
3
|
+
def self._source_to_path_and_data: (untyped source) -> [String?, String?]
|
|
4
|
+
|
|
5
|
+
class ClientConfigTLS
|
|
6
|
+
attr_reader disabled: bool?
|
|
7
|
+
attr_reader server_name: String?
|
|
8
|
+
attr_reader server_root_ca_cert: (Pathname | String)?
|
|
9
|
+
attr_reader client_cert: (Pathname | String)?
|
|
10
|
+
attr_reader client_private_key: (Pathname | String)?
|
|
11
|
+
|
|
12
|
+
def self.from_h: (Hash[untyped, untyped]? hash) -> ClientConfigTLS?
|
|
13
|
+
def self.hash_to_source: (Hash[untyped, untyped]? hash) -> (Pathname | String)?
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
?disabled: bool?,
|
|
17
|
+
?server_name: String?,
|
|
18
|
+
?server_root_ca_cert: (Pathname | String)?,
|
|
19
|
+
?client_cert: (Pathname | String)?,
|
|
20
|
+
?client_private_key: (Pathname | String)?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_h: -> Hash[Symbol, untyped]
|
|
24
|
+
def to_client_tls_options: -> (Client::Connection::TLSOptions | false)
|
|
25
|
+
|
|
26
|
+
private
|
|
27
|
+
|
|
28
|
+
def source_to_hash: (untyped source) -> Hash[Symbol, String]?
|
|
29
|
+
def read_source: (untyped source) -> String?
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
class ClientConfigProfile
|
|
33
|
+
attr_reader address: String?
|
|
34
|
+
attr_reader namespace: String?
|
|
35
|
+
attr_reader api_key: String?
|
|
36
|
+
attr_reader tls: ClientConfigTLS?
|
|
37
|
+
attr_reader grpc_meta: Hash[String, String]
|
|
38
|
+
|
|
39
|
+
def self.from_h: (Hash[untyped, untyped] hash) -> ClientConfigProfile
|
|
40
|
+
|
|
41
|
+
def self.load: (
|
|
42
|
+
?profile: String?,
|
|
43
|
+
?config_source: (Pathname | String)?,
|
|
44
|
+
?disable_file: bool,
|
|
45
|
+
?disable_env: bool,
|
|
46
|
+
?config_file_strict: bool,
|
|
47
|
+
?override_env_vars: Hash[String, String]?
|
|
48
|
+
) -> ClientConfigProfile
|
|
49
|
+
|
|
50
|
+
def initialize: (
|
|
51
|
+
?address: String?,
|
|
52
|
+
?namespace: String?,
|
|
53
|
+
?api_key: String?,
|
|
54
|
+
?tls: ClientConfigTLS?,
|
|
55
|
+
?grpc_meta: Hash[String, String]
|
|
56
|
+
) -> void
|
|
57
|
+
|
|
58
|
+
def to_h: -> Hash[Symbol, untyped]
|
|
59
|
+
def to_client_connect_options: -> [Array[untyped], Hash[Symbol, untyped]]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
class ClientConfig
|
|
63
|
+
attr_reader profiles: Hash[String, ClientConfigProfile]
|
|
64
|
+
|
|
65
|
+
def self.from_h: (Hash[untyped, untyped] hash) -> ClientConfig
|
|
66
|
+
|
|
67
|
+
def self.load: (
|
|
68
|
+
?config_source: (Pathname | String)?,
|
|
69
|
+
?config_file_strict: bool,
|
|
70
|
+
?override_env_vars: Hash[String, String]?
|
|
71
|
+
) -> ClientConfig
|
|
72
|
+
|
|
73
|
+
def self.load_client_connect_options: (
|
|
74
|
+
?profile: String?,
|
|
75
|
+
?config_source: (Pathname | String)?,
|
|
76
|
+
?disable_file: bool,
|
|
77
|
+
?disable_env: bool,
|
|
78
|
+
?config_file_strict: bool,
|
|
79
|
+
?override_env_vars: Hash[String, String]?
|
|
80
|
+
) -> [Array[untyped], Hash[Symbol, untyped]]
|
|
81
|
+
|
|
82
|
+
def initialize: (?profiles: Hash[String, ClientConfigProfile]) -> void
|
|
83
|
+
def to_h: -> Hash[String, Hash[Symbol, untyped]]
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|