temporalio 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +37 -67
  3. data/Gemfile +3 -0
  4. data/README.md +25 -2
  5. data/Rakefile +20 -1
  6. data/ext/Cargo.toml +3 -3
  7. data/lib/temporalio/api/activity/v1/message.rb +1 -1
  8. data/lib/temporalio/api/batch/v1/message.rb +4 -1
  9. data/lib/temporalio/api/command/v1/message.rb +2 -1
  10. data/lib/temporalio/api/common/v1/message.rb +5 -1
  11. data/lib/temporalio/api/enums/v1/activity.rb +1 -1
  12. data/lib/temporalio/api/enums/v1/batch_operation.rb +1 -1
  13. data/lib/temporalio/api/enums/v1/common.rb +2 -1
  14. data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
  15. data/lib/temporalio/api/enums/v1/time_skipping.rb +21 -0
  16. data/lib/temporalio/api/errordetails/v1/message.rb +2 -1
  17. data/lib/temporalio/api/history/v1/message.rb +1 -1
  18. data/lib/temporalio/api/namespace/v1/message.rb +1 -1
  19. data/lib/temporalio/api/taskqueue/v1/message.rb +2 -1
  20. data/lib/temporalio/api/worker/v1/message.rb +13 -1
  21. data/lib/temporalio/api/workflow/v1/message.rb +1 -1
  22. data/lib/temporalio/api/workflowservice/v1/request_response.rb +4 -1
  23. data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
  24. data/lib/temporalio/client/activity_execution.rb +82 -1
  25. data/lib/temporalio/client/activity_execution_options.rb +39 -0
  26. data/lib/temporalio/client/activity_execution_status.rb +1 -0
  27. data/lib/temporalio/client/activity_handle.rb +122 -1
  28. data/lib/temporalio/client/activity_options.rb +113 -0
  29. data/lib/temporalio/client/connection/workflow_service.rb +15 -0
  30. data/lib/temporalio/client/connection.rb +33 -3
  31. data/lib/temporalio/client/interceptor.rb +65 -0
  32. data/lib/temporalio/client/schedule.rb +4 -5
  33. data/lib/temporalio/client/workflow_execution.rb +2 -2
  34. data/lib/temporalio/client/workflow_handle.rb +2 -1
  35. data/lib/temporalio/client.rb +4 -6
  36. data/lib/temporalio/converters/data_converter.rb +1 -0
  37. data/lib/temporalio/converters/failure_converter.rb +7 -4
  38. data/lib/temporalio/internal/bridge/api/common/common.rb +2 -1
  39. data/lib/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rb +1 -1
  40. data/lib/temporalio/internal/bridge/client.rb +3 -1
  41. data/lib/temporalio/internal/bridge/runtime.rb +4 -1
  42. data/lib/temporalio/internal/bridge/worker.rb +3 -1
  43. data/lib/temporalio/internal/client/implementation.rb +54 -2
  44. data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +9 -0
  45. data/lib/temporalio/runtime.rb +25 -7
  46. data/lib/temporalio/scoped_logger.rb +18 -0
  47. data/lib/temporalio/version.rb +1 -1
  48. data/lib/temporalio/worker/activity_executor/fiber.rb +11 -1
  49. data/lib/temporalio/worker/workflow_replayer.rb +2 -0
  50. data/lib/temporalio/worker.rb +24 -4
  51. data/lib/temporalio/workflow.rb +8 -9
  52. data/rbi/temporalio/api/activity/v1/message.rbi +100 -14
  53. data/rbi/temporalio/api/batch/v1/message.rbi +229 -2
  54. data/rbi/temporalio/api/command/v1/message.rbi +22 -2
  55. data/rbi/temporalio/api/common/v1/message.rbi +548 -74
  56. data/rbi/temporalio/api/enums/v1/activity.rbi +1 -0
  57. data/rbi/temporalio/api/enums/v1/batch_operation.rbi +9 -0
  58. data/rbi/temporalio/api/enums/v1/common.rbi +18 -0
  59. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +4 -0
  60. data/rbi/temporalio/api/enums/v1/time_skipping.rbi +22 -0
  61. data/rbi/temporalio/api/errordetails/v1/message.rbi +59 -2
  62. data/rbi/temporalio/api/history/v1/message.rbi +27 -7
  63. data/rbi/temporalio/api/namespace/v1/message.rbi +95 -4
  64. data/rbi/temporalio/api/taskqueue/v1/message.rbi +113 -2
  65. data/rbi/temporalio/api/worker/v1/message.rbi +742 -2
  66. data/rbi/temporalio/api/workflow/v1/message.rbi +22 -2
  67. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +701 -117
  68. data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +8 -0
  69. data/rbi/temporalio/client/activity_execution.rbi +27 -0
  70. data/rbi/temporalio/client/activity_execution_options.rbi +58 -0
  71. data/rbi/temporalio/client/activity_execution_status.rbi +1 -0
  72. data/rbi/temporalio/client/activity_handle.rbi +43 -2
  73. data/rbi/temporalio/client/activity_options.rbi +49 -0
  74. data/rbi/temporalio/client/connection/workflow_service.rbi +3 -0
  75. data/rbi/temporalio/client/connection.rbi +2 -0
  76. data/rbi/temporalio/client/interceptor.rbi +107 -0
  77. data/rbi/temporalio/converters/failure_converter.rbi +7 -2
  78. data/rbi/temporalio/internal/bridge/api/common/common.rbi +115 -0
  79. data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +42 -2
  80. data/rbi/temporalio/internal/bridge/runtime.rbi +24 -4
  81. data/rbi/temporalio/internal/bridge/worker.rbi +2 -0
  82. data/rbi/temporalio/runtime.rbi +13 -4
  83. data/rbi/temporalio/scoped_logger.rbi +1 -1
  84. data/rbi/temporalio/worker.rbi +9 -2
  85. data/rbi/temporalio/workflow/future.rbi +1 -1
  86. data/sig/temporalio/api/activity/v1/message.rbs +48 -2
  87. data/sig/temporalio/api/batch/v1/message.rbs +86 -0
  88. data/sig/temporalio/api/command/v1/message.rbs +10 -0
  89. data/sig/temporalio/api/common/v1/message.rbs +240 -39
  90. data/sig/temporalio/api/enums/v1/activity.rbs +9 -5
  91. data/sig/temporalio/api/enums/v1/batch_operation.rbs +33 -3
  92. data/sig/temporalio/api/enums/v1/common.rbs +23 -0
  93. data/sig/temporalio/api/enums/v1/failed_cause.rbs +18 -6
  94. data/sig/temporalio/api/enums/v1/time_skipping.rbs +58 -0
  95. data/sig/temporalio/api/errordetails/v1/message.rbs +19 -0
  96. data/sig/temporalio/api/history/v1/message.rbs +13 -3
  97. data/sig/temporalio/api/namespace/v1/message.rbs +43 -0
  98. data/sig/temporalio/api/taskqueue/v1/message.rbs +44 -0
  99. data/sig/temporalio/api/worker/v1/message.rbs +410 -0
  100. data/sig/temporalio/api/workflow/v1/message.rbs +10 -0
  101. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +311 -40
  102. data/sig/temporalio/client/activity_execution.rbs +10 -0
  103. data/sig/temporalio/client/activity_execution_options.rbs +27 -0
  104. data/sig/temporalio/client/activity_execution_status.rbs +1 -0
  105. data/sig/temporalio/client/activity_handle.rbs +23 -1
  106. data/sig/temporalio/client/activity_options.rbs +30 -0
  107. data/sig/temporalio/client/connection/workflow_service.rbs +4 -0
  108. data/sig/temporalio/client/connection.rbs +14 -1
  109. data/sig/temporalio/client/interceptor.rbs +62 -0
  110. data/sig/temporalio/converters/failure_converter.rbs +4 -1
  111. data/sig/temporalio/internal/bridge/api/common/common.rbs +50 -0
  112. data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +20 -0
  113. data/sig/temporalio/internal/bridge/client.rbs +5 -1
  114. data/sig/temporalio/internal/bridge/runtime.rbs +9 -3
  115. data/sig/temporalio/internal/bridge/worker.rbs +5 -1
  116. data/sig/temporalio/internal/client/implementation.rbs +7 -0
  117. data/sig/temporalio/runtime.rbs +14 -3
  118. data/sig/temporalio/scoped_logger.rbs +1 -1
  119. data/sig/temporalio/worker.rbs +8 -2
  120. metadata +10 -1
@@ -311,6 +311,11 @@ module Temporalio
311
311
  attr_accessor drivers(): ::Google::Protobuf::RepeatedField
312
312
  def clear_drivers: () -> void
313
313
 
314
+ # Information about the environment this SDK is running in.
315
+ attr_accessor environment(): ::Temporalio::Api::Worker::V1::EnvironmentInfo?
316
+ def has_environment?: () -> bool
317
+ def clear_environment: () -> void
318
+
314
319
  type init_map = {
315
320
  worker_instance_key: (::String | ::Symbol)?,
316
321
  "worker_instance_key" => (::String | ::Symbol)?,
@@ -360,6 +365,8 @@ module Temporalio
360
365
  "plugins" => ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?,
361
366
  drivers: ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?,
362
367
  "drivers" => ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?,
368
+ environment: (::Temporalio::Api::Worker::V1::EnvironmentInfo | ::Temporalio::Api::Worker::V1::EnvironmentInfo::init_map)?,
369
+ "environment" => (::Temporalio::Api::Worker::V1::EnvironmentInfo | ::Temporalio::Api::Worker::V1::EnvironmentInfo::init_map)?,
363
370
  }
364
371
 
365
372
  def initialize: (?init_map initial_value) -> void
@@ -389,6 +396,7 @@ module Temporalio
389
396
  | ("current_sticky_cache_size" name) -> ::Integer
390
397
  | ("plugins" name) -> ::Google::Protobuf::RepeatedField
391
398
  | ("drivers" name) -> ::Google::Protobuf::RepeatedField
399
+ | ("environment" name) -> ::Temporalio::Api::Worker::V1::EnvironmentInfo?
392
400
 
393
401
  def []=:
394
402
  ("worker_instance_key" name, (::String | ::Symbol) value) -> void
@@ -415,6 +423,7 @@ module Temporalio
415
423
  | ("current_sticky_cache_size" name, (::Integer | ::Float) value) -> void
416
424
  | ("plugins" name, ::Google::Protobuf::RepeatedField value) -> void
417
425
  | ("drivers" name, ::Google::Protobuf::RepeatedField value) -> void
426
+ | ("environment" name, ::Temporalio::Api::Worker::V1::EnvironmentInfo? value) -> void
418
427
  end
419
428
 
420
429
  # Detailed worker information.
@@ -623,6 +632,407 @@ module Temporalio
623
632
  ("type" name, (::String | ::Symbol) value) -> void
624
633
  end
625
634
 
635
+ class EnvironmentInfo < ::Google::Protobuf::AbstractMessage
636
+ class Runtime < ::Google::Protobuf::AbstractMessage
637
+ module RuntimeType
638
+
639
+ # Should never actually be set, exists to follow convention of having a default.
640
+ # SDKs should just leave `runtimes` empty if none can be determined.
641
+ RUNTIME_TYPE_UNSPECIFIED: 0
642
+
643
+ RUNTIME_TYPE_JVM: 1
644
+
645
+ RUNTIME_TYPE_CPYTHON: 2
646
+
647
+ RUNTIME_TYPE_NODE: 3
648
+
649
+ RUNTIME_TYPE_BUN: 4
650
+
651
+ RUNTIME_TYPE_CRUBY: 5
652
+
653
+ RUNTIME_TYPE_GO: 6
654
+
655
+ RUNTIME_TYPE_DOTNET_FRAMEWORK: 7
656
+
657
+ RUNTIME_TYPE_DOTNET_CORE: 8
658
+
659
+ RUNTIME_TYPE_NATIVE: 9
660
+
661
+ RUNTIME_TYPE_ROADRUNNER: 10
662
+
663
+ def self.lookup: (::Integer number) -> ::Symbol
664
+
665
+
666
+ def self.resolve: (::Symbol name) -> ::Integer
667
+
668
+
669
+ type names = :RUNTIME_TYPE_UNSPECIFIED | :RUNTIME_TYPE_JVM | :RUNTIME_TYPE_CPYTHON | :RUNTIME_TYPE_NODE | :RUNTIME_TYPE_BUN | :RUNTIME_TYPE_CRUBY | :RUNTIME_TYPE_GO | :RUNTIME_TYPE_DOTNET_FRAMEWORK | :RUNTIME_TYPE_DOTNET_CORE | :RUNTIME_TYPE_NATIVE | :RUNTIME_TYPE_ROADRUNNER
670
+
671
+ type strings = "RUNTIME_TYPE_UNSPECIFIED" | "RUNTIME_TYPE_JVM" | "RUNTIME_TYPE_CPYTHON" | "RUNTIME_TYPE_NODE" | "RUNTIME_TYPE_BUN" | "RUNTIME_TYPE_CRUBY" | "RUNTIME_TYPE_GO" | "RUNTIME_TYPE_DOTNET_FRAMEWORK" | "RUNTIME_TYPE_DOTNET_CORE" | "RUNTIME_TYPE_NATIVE" | "RUNTIME_TYPE_ROADRUNNER"
672
+
673
+ type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
674
+ end
675
+
676
+ # The type of the runtime.
677
+ attr_reader type(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Integer
678
+ attr_writer type(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::strings | ::Integer | ::Float
679
+ attr_reader type_const(): ::Integer
680
+ def clear_type: () -> void
681
+
682
+ # The version of the runtime, if obtainable.
683
+ attr_reader version(): ::String
684
+ attr_writer version(): ::String | ::Symbol
685
+ def clear_version: () -> void
686
+
687
+ type init_map = {
688
+ type: (::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::strings | ::Integer | ::Float)?,
689
+ "type" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::strings | ::Integer | ::Float)?,
690
+ version: (::String | ::Symbol)?,
691
+ "version" => (::String | ::Symbol)?,
692
+ }
693
+
694
+ def initialize: (?init_map initial_value) -> void
695
+
696
+ def []:
697
+ ("type" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Integer)
698
+ | ("version" name) -> ::String
699
+
700
+ def []=:
701
+ ("type" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime::RuntimeType::strings | ::Integer | ::Float) value) -> void
702
+ | ("version" name, (::String | ::Symbol) value) -> void
703
+ end
704
+
705
+ class HostingEnvironment < ::Google::Protobuf::AbstractMessage
706
+ # What kind of hosting environment we're running in. This list is about what can actually be
707
+ # detected reliably and is unrelated to what SDKs can actually run in.
708
+ module HostingEnvironmentType
709
+
710
+ # Should never actually be set, exists to follow convention of having a default.
711
+ # SDKs should just leave `hosting_environments` empty if none can be determined.
712
+ HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED: 0
713
+
714
+ # Should always be in the list if we're running inside a docker container
715
+ HOSTING_ENVIRONMENT_TYPE_DOCKER: 1
716
+
717
+ # Should always be in the list if we're running inside any k8s environment
718
+ HOSTING_ENVIRONMENT_TYPE_K8S: 2
719
+
720
+ # Detect via `AWS_LAMBDA_FUNCTION_NAME`
721
+ HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA: 3
722
+
723
+ # Detect via `ECS_CONTAINER_METADATA_URI_V4` or `ECS_CONTAINER_METADATA_URI`
724
+ HOSTING_ENVIRONMENT_TYPE_AWS_ECS: 4
725
+
726
+ # Detect via `K_SERVICE`
727
+ HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN: 6
728
+
729
+ # Detect via `GAE_SERVICE`
730
+ HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE: 7
731
+
732
+ # Detect via `WEBSITE_SITE_NAME`
733
+ HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE: 8
734
+
735
+ # Detect via `FUNCTIONS_EXTENSION_VERSION`
736
+ HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS: 9
737
+
738
+ # Detect via `CONTAINER_APP_NAME`
739
+ HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS: 10
740
+
741
+ def self.lookup: (::Integer number) -> ::Symbol
742
+
743
+
744
+ def self.resolve: (::Symbol name) -> ::Integer
745
+
746
+
747
+ type names = :HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED | :HOSTING_ENVIRONMENT_TYPE_DOCKER | :HOSTING_ENVIRONMENT_TYPE_K8S | :HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA | :HOSTING_ENVIRONMENT_TYPE_AWS_ECS | :HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN | :HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE | :HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE | :HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS | :HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS
748
+
749
+ type strings = "HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED" | "HOSTING_ENVIRONMENT_TYPE_DOCKER" | "HOSTING_ENVIRONMENT_TYPE_K8S" | "HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA" | "HOSTING_ENVIRONMENT_TYPE_AWS_ECS" | "HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN" | "HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE" | "HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE" | "HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS" | "HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS"
750
+
751
+ type numbers = 0 | 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10
752
+ end
753
+
754
+ # The type of hosting environment.
755
+ attr_reader type(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Integer
756
+ attr_writer type(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::strings | ::Integer | ::Float
757
+ attr_reader type_const(): ::Integer
758
+ def clear_type: () -> void
759
+
760
+ # The version of the hosting environment, if obtainable.
761
+ attr_reader version(): ::String
762
+ attr_writer version(): ::String | ::Symbol
763
+ def clear_version: () -> void
764
+
765
+ type init_map = {
766
+ type: (::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::strings | ::Integer | ::Float)?,
767
+ "type" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::strings | ::Integer | ::Float)?,
768
+ version: (::String | ::Symbol)?,
769
+ "version" => (::String | ::Symbol)?,
770
+ }
771
+
772
+ def initialize: (?init_map initial_value) -> void
773
+
774
+ def []:
775
+ ("type" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Integer)
776
+ | ("version" name) -> ::String
777
+
778
+ def []=:
779
+ ("type" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment::HostingEnvironmentType::strings | ::Integer | ::Float) value) -> void
780
+ | ("version" name, (::String | ::Symbol) value) -> void
781
+ end
782
+
783
+ class Platform < ::Google::Protobuf::AbstractMessage
784
+
785
+ attr_accessor linux(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform?
786
+ def has_linux?: () -> bool
787
+ def clear_linux: () -> void
788
+
789
+ attr_accessor macos(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform?
790
+ def has_macos?: () -> bool
791
+ def clear_macos: () -> void
792
+
793
+ attr_accessor windows(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform?
794
+ def has_windows?: () -> bool
795
+ def clear_windows: () -> void
796
+
797
+ attr_reader variant(): (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform)?
798
+ def has_variant?: () -> bool
799
+ def clear_variant: () -> void
800
+
801
+ type init_map = {
802
+ linux: (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::init_map)?,
803
+ "linux" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::init_map)?,
804
+ macos: (::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform::init_map)?,
805
+ "macos" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform::init_map)?,
806
+ windows: (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::init_map)?,
807
+ "windows" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::init_map)?,
808
+ }
809
+
810
+ def initialize: (?init_map initial_value) -> void
811
+
812
+ def []:
813
+ ("linux" name) -> ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform?
814
+ | ("macos" name) -> ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform?
815
+ | ("windows" name) -> ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform?
816
+
817
+ def []=:
818
+ ("linux" name, ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform? value) -> void
819
+ | ("macos" name, ::Temporalio::Api::Worker::V1::EnvironmentInfo::MacOSPlatform? value) -> void
820
+ | ("windows" name, ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform? value) -> void
821
+ end
822
+
823
+ class LinuxPlatform < ::Google::Protobuf::AbstractMessage
824
+ module Libc
825
+
826
+ LIBC_UNSPECIFIED: 0
827
+
828
+ LIBC_GLIBC: 1
829
+
830
+ LIBC_MUSL: 2
831
+
832
+ def self.lookup: (::Integer number) -> ::Symbol
833
+
834
+
835
+ def self.resolve: (::Symbol name) -> ::Integer
836
+
837
+
838
+ type names = :LIBC_UNSPECIFIED | :LIBC_GLIBC | :LIBC_MUSL
839
+
840
+ type strings = "LIBC_UNSPECIFIED" | "LIBC_GLIBC" | "LIBC_MUSL"
841
+
842
+ type numbers = 0 | 1 | 2
843
+ end
844
+
845
+ # The Linux kernel or distribution version, if obtainable.
846
+ attr_reader version(): ::String
847
+ attr_writer version(): ::String | ::Symbol
848
+ def clear_version: () -> void
849
+
850
+ # The architecture of the worker process.
851
+ attr_reader architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer
852
+ attr_writer architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float
853
+ attr_reader architecture_const(): ::Integer
854
+ def clear_architecture: () -> void
855
+
856
+ # The libc used by the worker process.
857
+ attr_reader libc(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Integer
858
+ attr_writer libc(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::strings | ::Integer | ::Float
859
+ attr_reader libc_const(): ::Integer
860
+ def clear_libc: () -> void
861
+
862
+ type init_map = {
863
+ version: (::String | ::Symbol)?,
864
+ "version" => (::String | ::Symbol)?,
865
+ architecture: (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
866
+ "architecture" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
867
+ libc: (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::strings | ::Integer | ::Float)?,
868
+ "libc" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::strings | ::Integer | ::Float)?,
869
+ }
870
+
871
+ def initialize: (?init_map initial_value) -> void
872
+
873
+ def []:
874
+ ("version" name) -> ::String
875
+ | ("architecture" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer)
876
+ | ("libc" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Integer)
877
+
878
+ def []=:
879
+ ("version" name, (::String | ::Symbol) value) -> void
880
+ | ("architecture" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float) value) -> void
881
+ | ("libc" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::LinuxPlatform::Libc::strings | ::Integer | ::Float) value) -> void
882
+ end
883
+
884
+ class MacOSPlatform < ::Google::Protobuf::AbstractMessage
885
+
886
+ # The macOS version, if obtainable.
887
+ attr_reader version(): ::String
888
+ attr_writer version(): ::String | ::Symbol
889
+ def clear_version: () -> void
890
+
891
+ # The architecture of the worker process.
892
+ attr_reader architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer
893
+ attr_writer architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float
894
+ attr_reader architecture_const(): ::Integer
895
+ def clear_architecture: () -> void
896
+
897
+ type init_map = {
898
+ version: (::String | ::Symbol)?,
899
+ "version" => (::String | ::Symbol)?,
900
+ architecture: (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
901
+ "architecture" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
902
+ }
903
+
904
+ def initialize: (?init_map initial_value) -> void
905
+
906
+ def []:
907
+ ("version" name) -> ::String
908
+ | ("architecture" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer)
909
+
910
+ def []=:
911
+ ("version" name, (::String | ::Symbol) value) -> void
912
+ | ("architecture" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float) value) -> void
913
+ end
914
+
915
+ class WindowsPlatform < ::Google::Protobuf::AbstractMessage
916
+ module Crt
917
+
918
+ CRT_UNSPECIFIED: 0
919
+
920
+ CRT_UCRT: 1
921
+
922
+ CRT_MSVCRT: 2
923
+
924
+ CRT_MINGW: 3
925
+
926
+ CRT_CYGWIN: 4
927
+
928
+ def self.lookup: (::Integer number) -> ::Symbol
929
+
930
+
931
+ def self.resolve: (::Symbol name) -> ::Integer
932
+
933
+
934
+ type names = :CRT_UNSPECIFIED | :CRT_UCRT | :CRT_MSVCRT | :CRT_MINGW | :CRT_CYGWIN
935
+
936
+ type strings = "CRT_UNSPECIFIED" | "CRT_UCRT" | "CRT_MSVCRT" | "CRT_MINGW" | "CRT_CYGWIN"
937
+
938
+ type numbers = 0 | 1 | 2 | 3 | 4
939
+ end
940
+
941
+ # The Windows version, if obtainable.
942
+ attr_reader version(): ::String
943
+ attr_writer version(): ::String | ::Symbol
944
+ def clear_version: () -> void
945
+
946
+ # The architecture of the worker process.
947
+ attr_reader architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer
948
+ attr_writer architecture(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float
949
+ attr_reader architecture_const(): ::Integer
950
+ def clear_architecture: () -> void
951
+
952
+ # The C runtime used by the worker process, if obtainable.
953
+ attr_reader crt(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Integer
954
+ attr_writer crt(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::strings | ::Integer | ::Float
955
+ attr_reader crt_const(): ::Integer
956
+ def clear_crt: () -> void
957
+
958
+ type init_map = {
959
+ version: (::String | ::Symbol)?,
960
+ "version" => (::String | ::Symbol)?,
961
+ architecture: (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
962
+ "architecture" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float)?,
963
+ crt: (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::strings | ::Integer | ::Float)?,
964
+ "crt" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::strings | ::Integer | ::Float)?,
965
+ }
966
+
967
+ def initialize: (?init_map initial_value) -> void
968
+
969
+ def []:
970
+ ("version" name) -> ::String
971
+ | ("architecture" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Integer)
972
+ | ("crt" name) -> (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Integer)
973
+
974
+ def []=:
975
+ ("version" name, (::String | ::Symbol) value) -> void
976
+ | ("architecture" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Architecture::strings | ::Integer | ::Float) value) -> void
977
+ | ("crt" name, (::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::names | ::Temporalio::Api::Worker::V1::EnvironmentInfo::WindowsPlatform::Crt::strings | ::Integer | ::Float) value) -> void
978
+ end
979
+
980
+ module Architecture
981
+
982
+ ARCHITECTURE_UNSPECIFIED: 0
983
+
984
+ ARCHITECTURE_AMD64: 1
985
+
986
+ ARCHITECTURE_ARM64: 2
987
+
988
+ def self.lookup: (::Integer number) -> ::Symbol
989
+
990
+
991
+ def self.resolve: (::Symbol name) -> ::Integer
992
+
993
+
994
+ type names = :ARCHITECTURE_UNSPECIFIED | :ARCHITECTURE_AMD64 | :ARCHITECTURE_ARM64
995
+
996
+ type strings = "ARCHITECTURE_UNSPECIFIED" | "ARCHITECTURE_AMD64" | "ARCHITECTURE_ARM64"
997
+
998
+ type numbers = 0 | 1 | 2
999
+ end
1000
+
1001
+ # The runtime(s) the SDK is operating in.
1002
+ attr_accessor runtimes(): ::Google::Protobuf::RepeatedField
1003
+ def clear_runtimes: () -> void
1004
+
1005
+ # The hosting environment(s) the SDK is operating in. Repeated to allow for layering (ex: Docker inside k8s).
1006
+ attr_accessor hosting_environments(): ::Google::Protobuf::RepeatedField
1007
+ def clear_hosting_environments: () -> void
1008
+
1009
+ # The platform the SDK is operating on.
1010
+ attr_accessor platform(): ::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform?
1011
+ def has_platform?: () -> bool
1012
+ def clear_platform: () -> void
1013
+
1014
+ type init_map = {
1015
+ runtimes: ::Array[::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime]?,
1016
+ "runtimes" => ::Array[::Temporalio::Api::Worker::V1::EnvironmentInfo::Runtime]?,
1017
+ hosting_environments: ::Array[::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment]?,
1018
+ "hosting_environments" => ::Array[::Temporalio::Api::Worker::V1::EnvironmentInfo::HostingEnvironment]?,
1019
+ platform: (::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform::init_map)?,
1020
+ "platform" => (::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform | ::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform::init_map)?,
1021
+ }
1022
+
1023
+ def initialize: (?init_map initial_value) -> void
1024
+
1025
+ def []:
1026
+ ("runtimes" name) -> ::Google::Protobuf::RepeatedField
1027
+ | ("hosting_environments" name) -> ::Google::Protobuf::RepeatedField
1028
+ | ("platform" name) -> ::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform?
1029
+
1030
+ def []=:
1031
+ ("runtimes" name, ::Google::Protobuf::RepeatedField value) -> void
1032
+ | ("hosting_environments" name, ::Google::Protobuf::RepeatedField value) -> void
1033
+ | ("platform" name, ::Temporalio::Api::Worker::V1::EnvironmentInfo::Platform? value) -> void
1034
+ end
1035
+
626
1036
  # A command sent from the server to a worker.
627
1037
  class WorkerCommand < ::Google::Protobuf::AbstractMessage
628
1038
 
@@ -331,6 +331,12 @@ module Temporalio
331
331
  def has_pause_info?: () -> bool
332
332
  def clear_pause_info: () -> void
333
333
 
334
+ # Information about time skipping of the workflow execution.
335
+ # If the execution has never enabled time skipping, it will be nil.
336
+ attr_accessor time_skipping_info(): ::Temporalio::Api::Common::V1::TimeSkippingInfo?
337
+ def has_time_skipping_info?: () -> bool
338
+ def clear_time_skipping_info: () -> void
339
+
334
340
  type init_map = {
335
341
  execution_expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
336
342
  "execution_expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
@@ -348,6 +354,8 @@ module Temporalio
348
354
  "request_id_infos" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Workflow::V1::RequestIdInfo]?,
349
355
  pause_info: (::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo::init_map)?,
350
356
  "pause_info" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo::init_map)?,
357
+ time_skipping_info: (::Temporalio::Api::Common::V1::TimeSkippingInfo | ::Temporalio::Api::Common::V1::TimeSkippingInfo::init_map)?,
358
+ "time_skipping_info" => (::Temporalio::Api::Common::V1::TimeSkippingInfo | ::Temporalio::Api::Common::V1::TimeSkippingInfo::init_map)?,
351
359
  }
352
360
 
353
361
  def initialize: (?init_map initial_value) -> void
@@ -361,6 +369,7 @@ module Temporalio
361
369
  | ("reset_run_id" name) -> ::String
362
370
  | ("request_id_infos" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Workflow::V1::RequestIdInfo])
363
371
  | ("pause_info" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo?
372
+ | ("time_skipping_info" name) -> ::Temporalio::Api::Common::V1::TimeSkippingInfo?
364
373
 
365
374
  def []=:
366
375
  ("execution_expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
@@ -371,6 +380,7 @@ module Temporalio
371
380
  | ("reset_run_id" name, (::String | ::Symbol) value) -> void
372
381
  | ("request_id_infos" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Workflow::V1::RequestIdInfo]) value) -> void
373
382
  | ("pause_info" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo? value) -> void
383
+ | ("time_skipping_info" name, ::Temporalio::Api::Common::V1::TimeSkippingInfo? value) -> void
374
384
  end
375
385
 
376
386
  # Holds all the information about worker versioning for a particular workflow execution.