temporalio 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/bridge/Cargo.lock +20 -20
  3. data/bridge/Cargo.toml +3 -3
  4. data/lib/temporalio/bridge.rb +1 -1
  5. data/lib/temporalio/version.rb +1 -1
  6. data/lib/thermite_patch.rb +10 -0
  7. data/sig/async.rbs +17 -0
  8. data/sig/protobuf.rbs +16 -0
  9. data/sig/protos/dependencies/gogoproto/gogo.rbs +914 -0
  10. data/sig/protos/google/protobuf/any.rbs +157 -0
  11. data/sig/protos/google/protobuf/descriptor.rbs +2825 -0
  12. data/sig/protos/google/protobuf/duration.rbs +114 -0
  13. data/sig/protos/google/protobuf/empty.rbs +36 -0
  14. data/sig/protos/google/protobuf/timestamp.rbs +145 -0
  15. data/sig/protos/google/protobuf/wrappers.rbs +358 -0
  16. data/sig/protos/temporal/api/batch/v1/message.rbs +300 -0
  17. data/sig/protos/temporal/api/command/v1/message.rbs +1399 -0
  18. data/sig/protos/temporal/api/common/v1/message.rbs +528 -0
  19. data/sig/protos/temporal/api/enums/v1/batch_operation.rbs +79 -0
  20. data/sig/protos/temporal/api/enums/v1/command_type.rbs +68 -0
  21. data/sig/protos/temporal/api/enums/v1/common.rbs +118 -0
  22. data/sig/protos/temporal/api/enums/v1/event_type.rbs +264 -0
  23. data/sig/protos/temporal/api/enums/v1/failed_cause.rbs +277 -0
  24. data/sig/protos/temporal/api/enums/v1/namespace.rbs +108 -0
  25. data/sig/protos/temporal/api/enums/v1/query.rbs +81 -0
  26. data/sig/protos/temporal/api/enums/v1/reset.rbs +44 -0
  27. data/sig/protos/temporal/api/enums/v1/schedule.rbs +72 -0
  28. data/sig/protos/temporal/api/enums/v1/task_queue.rbs +92 -0
  29. data/sig/protos/temporal/api/enums/v1/update.rbs +64 -0
  30. data/sig/protos/temporal/api/enums/v1/workflow.rbs +371 -0
  31. data/sig/protos/temporal/api/errordetails/v1/message.rbs +551 -0
  32. data/sig/protos/temporal/api/failure/v1/message.rbs +581 -0
  33. data/sig/protos/temporal/api/filter/v1/message.rbs +171 -0
  34. data/sig/protos/temporal/api/history/v1/message.rbs +4609 -0
  35. data/sig/protos/temporal/api/namespace/v1/message.rbs +410 -0
  36. data/sig/protos/temporal/api/operatorservice/v1/request_response.rbs +643 -0
  37. data/sig/protos/temporal/api/operatorservice/v1/service.rbs +17 -0
  38. data/sig/protos/temporal/api/protocol/v1/message.rbs +84 -0
  39. data/sig/protos/temporal/api/query/v1/message.rbs +182 -0
  40. data/sig/protos/temporal/api/replication/v1/message.rbs +148 -0
  41. data/sig/protos/temporal/api/schedule/v1/message.rbs +1488 -0
  42. data/sig/protos/temporal/api/sdk/v1/task_complete_metadata.rbs +110 -0
  43. data/sig/protos/temporal/api/taskqueue/v1/message.rbs +486 -0
  44. data/sig/protos/temporal/api/testservice/v1/request_response.rbs +249 -0
  45. data/sig/protos/temporal/api/testservice/v1/service.rbs +15 -0
  46. data/sig/protos/temporal/api/update/v1/message.rbs +489 -0
  47. data/sig/protos/temporal/api/version/v1/message.rbs +184 -0
  48. data/sig/protos/temporal/api/workflow/v1/message.rbs +824 -0
  49. data/sig/protos/temporal/api/workflowservice/v1/request_response.rbs +7250 -0
  50. data/sig/protos/temporal/api/workflowservice/v1/service.rbs +22 -0
  51. data/sig/protos/temporal/sdk/core/activity_result/activity_result.rbs +380 -0
  52. data/sig/protos/temporal/sdk/core/activity_task/activity_task.rbs +386 -0
  53. data/sig/protos/temporal/sdk/core/child_workflow/child_workflow.rbs +323 -0
  54. data/sig/protos/temporal/sdk/core/common/common.rbs +62 -0
  55. data/sig/protos/temporal/sdk/core/core_interface.rbs +101 -0
  56. data/sig/protos/temporal/sdk/core/external_data/external_data.rbs +119 -0
  57. data/sig/protos/temporal/sdk/core/workflow_activation/workflow_activation.rbs +1473 -0
  58. data/sig/protos/temporal/sdk/core/workflow_commands/workflow_commands.rbs +1784 -0
  59. data/sig/protos/temporal/sdk/core/workflow_completion/workflow_completion.rbs +180 -0
  60. data/sig/ruby.rbs +12 -0
  61. data/sig/temporalio/activity/context.rbs +29 -0
  62. data/sig/temporalio/activity/info.rbs +43 -0
  63. data/sig/temporalio/activity.rbs +19 -0
  64. data/sig/temporalio/bridge/connect_options.rbs +19 -0
  65. data/sig/temporalio/bridge/error.rbs +8 -0
  66. data/sig/temporalio/bridge/retry_config.rbs +21 -0
  67. data/sig/temporalio/bridge/tls_options.rbs +17 -0
  68. data/sig/temporalio/bridge.rbs +71 -0
  69. data/sig/temporalio/client/implementation.rbs +38 -0
  70. data/sig/temporalio/client/workflow_handle.rbs +41 -0
  71. data/sig/temporalio/client.rbs +35 -0
  72. data/sig/temporalio/connection/retry_config.rbs +37 -0
  73. data/sig/temporalio/connection/service.rbs +14 -0
  74. data/sig/temporalio/connection/test_service.rbs +13 -0
  75. data/sig/temporalio/connection/tls_options.rbs +43 -0
  76. data/sig/temporalio/connection/workflow_service.rbs +48 -0
  77. data/sig/temporalio/connection.rbs +30 -0
  78. data/sig/temporalio/data_converter.rbs +35 -0
  79. data/sig/temporalio/error/failure.rbs +121 -0
  80. data/sig/temporalio/error/workflow_failure.rbs +9 -0
  81. data/sig/temporalio/errors.rbs +36 -0
  82. data/sig/temporalio/failure_converter/base.rbs +12 -0
  83. data/sig/temporalio/failure_converter/basic.rbs +86 -0
  84. data/sig/temporalio/failure_converter.rbs +5 -0
  85. data/sig/temporalio/interceptor/activity_inbound.rbs +21 -0
  86. data/sig/temporalio/interceptor/activity_outbound.rbs +10 -0
  87. data/sig/temporalio/interceptor/chain.rbs +24 -0
  88. data/sig/temporalio/interceptor/client.rbs +148 -0
  89. data/sig/temporalio/interceptor.rbs +6 -0
  90. data/sig/temporalio/payload_codec/base.rbs +12 -0
  91. data/sig/temporalio/payload_converter/base.rbs +12 -0
  92. data/sig/temporalio/payload_converter/bytes.rbs +9 -0
  93. data/sig/temporalio/payload_converter/composite.rbs +19 -0
  94. data/sig/temporalio/payload_converter/encoding_base.rbs +14 -0
  95. data/sig/temporalio/payload_converter/json.rbs +9 -0
  96. data/sig/temporalio/payload_converter/nil.rbs +9 -0
  97. data/sig/temporalio/payload_converter.rbs +5 -0
  98. data/sig/temporalio/retry_policy.rbs +25 -0
  99. data/sig/temporalio/retry_state.rbs +20 -0
  100. data/sig/temporalio/runtime.rbs +12 -0
  101. data/sig/temporalio/testing/time_skipping_handle.rbs +15 -0
  102. data/sig/temporalio/testing/time_skipping_interceptor.rbs +13 -0
  103. data/sig/temporalio/testing/workflow_environment.rbs +22 -0
  104. data/sig/temporalio/testing.rbs +35 -0
  105. data/sig/temporalio/timeout_type.rbs +15 -0
  106. data/sig/temporalio/version.rbs +3 -0
  107. data/sig/temporalio/worker/activity_runner.rbs +35 -0
  108. data/sig/temporalio/worker/activity_worker.rbs +44 -0
  109. data/sig/temporalio/worker/reactor.rbs +22 -0
  110. data/sig/temporalio/worker/runner.rbs +21 -0
  111. data/sig/temporalio/worker/sync_worker.rbs +23 -0
  112. data/sig/temporalio/worker/thread_pool_executor.rbs +23 -0
  113. data/sig/temporalio/worker.rbs +46 -0
  114. data/sig/temporalio/workflow/async.rbs +9 -0
  115. data/sig/temporalio/workflow/execution_info.rbs +55 -0
  116. data/sig/temporalio/workflow/execution_status.rbs +21 -0
  117. data/sig/temporalio/workflow/future.rbs +40 -0
  118. data/sig/temporalio/workflow/id_reuse_policy.rbs +15 -0
  119. data/sig/temporalio/workflow/info.rbs +55 -0
  120. data/sig/temporalio/workflow/query_reject_condition.rbs +14 -0
  121. data/sig/temporalio.rbs +2 -0
  122. data/sig/thermite_patch.rbs +15 -0
  123. data/temporalio.gemspec +2 -1
  124. metadata +118 -2
@@ -0,0 +1,581 @@
1
+ module Temporalio
2
+ module Api
3
+ module Failure
4
+ module V1
5
+ class ApplicationFailureInfo < ::Protobuf::Message
6
+ # Encode the message to a binary string
7
+ #
8
+ def self.encode: (ApplicationFailureInfo) -> String
9
+
10
+ attr_accessor type(): ::String
11
+
12
+ def type!: () -> ::String?
13
+
14
+ attr_accessor non_retryable(): bool
15
+
16
+ def non_retryable!: () -> bool?
17
+
18
+ attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads?
19
+
20
+ def details=: [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (M?) -> M?
21
+ | ...
22
+
23
+ def details!: () -> ::Temporalio::Api::Common::V1::Payloads?
24
+
25
+ def initialize: (?type: ::String, ?non_retryable: bool, ?details: ::Temporalio::Api::Common::V1::Payloads::init?) -> void
26
+
27
+ def []: (:type) -> ::String
28
+ | (:non_retryable) -> bool
29
+ | (:details) -> ::Temporalio::Api::Common::V1::Payloads?
30
+ | (::Symbol) -> untyped
31
+
32
+ def []=: (:type, ::String) -> ::String
33
+ | (:non_retryable, bool) -> bool
34
+ | (:details, ::Temporalio::Api::Common::V1::Payloads?) -> ::Temporalio::Api::Common::V1::Payloads?
35
+ | [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (:details, M?) -> M?
36
+ | (::Symbol, untyped) -> untyped
37
+
38
+ def non_retryable?: () -> bool
39
+
40
+ interface _ToProto
41
+ def to_proto: () -> ApplicationFailureInfo
42
+ end
43
+
44
+ # The type of `#initialize` parameter.
45
+ type init = ApplicationFailureInfo | _ToProto
46
+
47
+ # The type of `repeated` field.
48
+ type field_array = ::Protobuf::Field::FieldArray[ApplicationFailureInfo, ApplicationFailureInfo | _ToProto]
49
+
50
+ # The type of `map` field.
51
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ApplicationFailureInfo, ApplicationFailureInfo | _ToProto]
52
+
53
+ type array = ::Array[ApplicationFailureInfo | _ToProto]
54
+
55
+ type hash[KEY] = ::Hash[KEY, ApplicationFailureInfo | _ToProto]
56
+ end
57
+
58
+ class TimeoutFailureInfo < ::Protobuf::Message
59
+ # Encode the message to a binary string
60
+ #
61
+ def self.encode: (TimeoutFailureInfo) -> String
62
+
63
+ attr_accessor timeout_type(): ::Temporalio::Api::Enums::V1::TimeoutType
64
+
65
+ def timeout_type=: (::Temporalio::Api::Enums::V1::TimeoutType::values) -> ::Temporalio::Api::Enums::V1::TimeoutType::values
66
+ | ...
67
+
68
+ def timeout_type!: () -> ::Temporalio::Api::Enums::V1::TimeoutType?
69
+
70
+ attr_accessor last_heartbeat_details(): ::Temporalio::Api::Common::V1::Payloads?
71
+
72
+ def last_heartbeat_details=: [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (M?) -> M?
73
+ | ...
74
+
75
+ def last_heartbeat_details!: () -> ::Temporalio::Api::Common::V1::Payloads?
76
+
77
+ def initialize: (?timeout_type: ::Temporalio::Api::Enums::V1::TimeoutType::init, ?last_heartbeat_details: ::Temporalio::Api::Common::V1::Payloads::init?) -> void
78
+
79
+ def []: (:timeout_type) -> ::Temporalio::Api::Enums::V1::TimeoutType
80
+ | (:last_heartbeat_details) -> ::Temporalio::Api::Common::V1::Payloads?
81
+ | (::Symbol) -> untyped
82
+
83
+ def []=: (:timeout_type, ::Temporalio::Api::Enums::V1::TimeoutType) -> ::Temporalio::Api::Enums::V1::TimeoutType
84
+ | (:timeout_type, ::Temporalio::Api::Enums::V1::TimeoutType::values) -> ::Temporalio::Api::Enums::V1::TimeoutType::values
85
+ | (:last_heartbeat_details, ::Temporalio::Api::Common::V1::Payloads?) -> ::Temporalio::Api::Common::V1::Payloads?
86
+ | [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (:last_heartbeat_details, M?) -> M?
87
+ | (::Symbol, untyped) -> untyped
88
+
89
+ interface _ToProto
90
+ def to_proto: () -> TimeoutFailureInfo
91
+ end
92
+
93
+ # The type of `#initialize` parameter.
94
+ type init = TimeoutFailureInfo | _ToProto
95
+
96
+ # The type of `repeated` field.
97
+ type field_array = ::Protobuf::Field::FieldArray[TimeoutFailureInfo, TimeoutFailureInfo | _ToProto]
98
+
99
+ # The type of `map` field.
100
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, TimeoutFailureInfo, TimeoutFailureInfo | _ToProto]
101
+
102
+ type array = ::Array[TimeoutFailureInfo | _ToProto]
103
+
104
+ type hash[KEY] = ::Hash[KEY, TimeoutFailureInfo | _ToProto]
105
+ end
106
+
107
+ class CanceledFailureInfo < ::Protobuf::Message
108
+ # Encode the message to a binary string
109
+ #
110
+ def self.encode: (CanceledFailureInfo) -> String
111
+
112
+ attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads?
113
+
114
+ def details=: [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (M?) -> M?
115
+ | ...
116
+
117
+ def details!: () -> ::Temporalio::Api::Common::V1::Payloads?
118
+
119
+ def initialize: (?details: ::Temporalio::Api::Common::V1::Payloads::init?) -> void
120
+
121
+ def []: (:details) -> ::Temporalio::Api::Common::V1::Payloads?
122
+ | (::Symbol) -> untyped
123
+
124
+ def []=: (:details, ::Temporalio::Api::Common::V1::Payloads?) -> ::Temporalio::Api::Common::V1::Payloads?
125
+ | [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (:details, M?) -> M?
126
+ | (::Symbol, untyped) -> untyped
127
+
128
+ interface _ToProto
129
+ def to_proto: () -> CanceledFailureInfo
130
+ end
131
+
132
+ # The type of `#initialize` parameter.
133
+ type init = CanceledFailureInfo | _ToProto
134
+
135
+ # The type of `repeated` field.
136
+ type field_array = ::Protobuf::Field::FieldArray[CanceledFailureInfo, CanceledFailureInfo | _ToProto]
137
+
138
+ # The type of `map` field.
139
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, CanceledFailureInfo, CanceledFailureInfo | _ToProto]
140
+
141
+ type array = ::Array[CanceledFailureInfo | _ToProto]
142
+
143
+ type hash[KEY] = ::Hash[KEY, CanceledFailureInfo | _ToProto]
144
+ end
145
+
146
+ class TerminatedFailureInfo < ::Protobuf::Message
147
+ # Encode the message to a binary string
148
+ #
149
+ def self.encode: (TerminatedFailureInfo) -> String
150
+
151
+ def initialize: () -> void
152
+
153
+ interface _ToProto
154
+ def to_proto: () -> TerminatedFailureInfo
155
+ end
156
+
157
+ # The type of `#initialize` parameter.
158
+ type init = TerminatedFailureInfo | _ToProto
159
+
160
+ # The type of `repeated` field.
161
+ type field_array = ::Protobuf::Field::FieldArray[TerminatedFailureInfo, TerminatedFailureInfo | _ToProto]
162
+
163
+ # The type of `map` field.
164
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, TerminatedFailureInfo, TerminatedFailureInfo | _ToProto]
165
+
166
+ type array = ::Array[TerminatedFailureInfo | _ToProto]
167
+
168
+ type hash[KEY] = ::Hash[KEY, TerminatedFailureInfo | _ToProto]
169
+ end
170
+
171
+ class ServerFailureInfo < ::Protobuf::Message
172
+ # Encode the message to a binary string
173
+ #
174
+ def self.encode: (ServerFailureInfo) -> String
175
+
176
+ attr_accessor non_retryable(): bool
177
+
178
+ def non_retryable!: () -> bool?
179
+
180
+ def initialize: (?non_retryable: bool) -> void
181
+
182
+ def []: (:non_retryable) -> bool
183
+ | (::Symbol) -> untyped
184
+
185
+ def []=: (:non_retryable, bool) -> bool
186
+ | (::Symbol, untyped) -> untyped
187
+
188
+ def non_retryable?: () -> bool
189
+
190
+ interface _ToProto
191
+ def to_proto: () -> ServerFailureInfo
192
+ end
193
+
194
+ # The type of `#initialize` parameter.
195
+ type init = ServerFailureInfo | _ToProto
196
+
197
+ # The type of `repeated` field.
198
+ type field_array = ::Protobuf::Field::FieldArray[ServerFailureInfo, ServerFailureInfo | _ToProto]
199
+
200
+ # The type of `map` field.
201
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ServerFailureInfo, ServerFailureInfo | _ToProto]
202
+
203
+ type array = ::Array[ServerFailureInfo | _ToProto]
204
+
205
+ type hash[KEY] = ::Hash[KEY, ServerFailureInfo | _ToProto]
206
+ end
207
+
208
+ class ResetWorkflowFailureInfo < ::Protobuf::Message
209
+ # Encode the message to a binary string
210
+ #
211
+ def self.encode: (ResetWorkflowFailureInfo) -> String
212
+
213
+ attr_accessor last_heartbeat_details(): ::Temporalio::Api::Common::V1::Payloads?
214
+
215
+ def last_heartbeat_details=: [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (M?) -> M?
216
+ | ...
217
+
218
+ def last_heartbeat_details!: () -> ::Temporalio::Api::Common::V1::Payloads?
219
+
220
+ def initialize: (?last_heartbeat_details: ::Temporalio::Api::Common::V1::Payloads::init?) -> void
221
+
222
+ def []: (:last_heartbeat_details) -> ::Temporalio::Api::Common::V1::Payloads?
223
+ | (::Symbol) -> untyped
224
+
225
+ def []=: (:last_heartbeat_details, ::Temporalio::Api::Common::V1::Payloads?) -> ::Temporalio::Api::Common::V1::Payloads?
226
+ | [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (:last_heartbeat_details, M?) -> M?
227
+ | (::Symbol, untyped) -> untyped
228
+
229
+ interface _ToProto
230
+ def to_proto: () -> ResetWorkflowFailureInfo
231
+ end
232
+
233
+ # The type of `#initialize` parameter.
234
+ type init = ResetWorkflowFailureInfo | _ToProto
235
+
236
+ # The type of `repeated` field.
237
+ type field_array = ::Protobuf::Field::FieldArray[ResetWorkflowFailureInfo, ResetWorkflowFailureInfo | _ToProto]
238
+
239
+ # The type of `map` field.
240
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ResetWorkflowFailureInfo, ResetWorkflowFailureInfo | _ToProto]
241
+
242
+ type array = ::Array[ResetWorkflowFailureInfo | _ToProto]
243
+
244
+ type hash[KEY] = ::Hash[KEY, ResetWorkflowFailureInfo | _ToProto]
245
+ end
246
+
247
+ class ActivityFailureInfo < ::Protobuf::Message
248
+ # Encode the message to a binary string
249
+ #
250
+ def self.encode: (ActivityFailureInfo) -> String
251
+
252
+ attr_accessor scheduled_event_id(): ::Integer
253
+
254
+ def scheduled_event_id!: () -> ::Integer?
255
+
256
+ attr_accessor started_event_id(): ::Integer
257
+
258
+ def started_event_id!: () -> ::Integer?
259
+
260
+ attr_accessor identity(): ::String
261
+
262
+ def identity!: () -> ::String?
263
+
264
+ attr_accessor activity_type(): ::Temporalio::Api::Common::V1::ActivityType?
265
+
266
+ def activity_type=: [M < ::Temporalio::Api::Common::V1::ActivityType::_ToProto] (M?) -> M?
267
+ | ...
268
+
269
+ def activity_type!: () -> ::Temporalio::Api::Common::V1::ActivityType?
270
+
271
+ attr_accessor activity_id(): ::String
272
+
273
+ def activity_id!: () -> ::String?
274
+
275
+ attr_accessor retry_state(): ::Temporalio::Api::Enums::V1::RetryState
276
+
277
+ def retry_state=: (::Temporalio::Api::Enums::V1::RetryState::values) -> ::Temporalio::Api::Enums::V1::RetryState::values
278
+ | ...
279
+
280
+ def retry_state!: () -> ::Temporalio::Api::Enums::V1::RetryState?
281
+
282
+ def initialize: (?scheduled_event_id: ::Integer, ?started_event_id: ::Integer, ?identity: ::String, ?activity_type: ::Temporalio::Api::Common::V1::ActivityType::init?, ?activity_id: ::String, ?retry_state: ::Temporalio::Api::Enums::V1::RetryState::init) -> void
283
+
284
+ def []: (:scheduled_event_id) -> ::Integer
285
+ | (:started_event_id) -> ::Integer
286
+ | (:identity) -> ::String
287
+ | (:activity_type) -> ::Temporalio::Api::Common::V1::ActivityType?
288
+ | (:activity_id) -> ::String
289
+ | (:retry_state) -> ::Temporalio::Api::Enums::V1::RetryState
290
+ | (::Symbol) -> untyped
291
+
292
+ def []=: (:scheduled_event_id, ::Integer) -> ::Integer
293
+ | (:started_event_id, ::Integer) -> ::Integer
294
+ | (:identity, ::String) -> ::String
295
+ | (:activity_type, ::Temporalio::Api::Common::V1::ActivityType?) -> ::Temporalio::Api::Common::V1::ActivityType?
296
+ | [M < ::Temporalio::Api::Common::V1::ActivityType::_ToProto] (:activity_type, M?) -> M?
297
+ | (:activity_id, ::String) -> ::String
298
+ | (:retry_state, ::Temporalio::Api::Enums::V1::RetryState) -> ::Temporalio::Api::Enums::V1::RetryState
299
+ | (:retry_state, ::Temporalio::Api::Enums::V1::RetryState::values) -> ::Temporalio::Api::Enums::V1::RetryState::values
300
+ | (::Symbol, untyped) -> untyped
301
+
302
+ interface _ToProto
303
+ def to_proto: () -> ActivityFailureInfo
304
+ end
305
+
306
+ # The type of `#initialize` parameter.
307
+ type init = ActivityFailureInfo | _ToProto
308
+
309
+ # The type of `repeated` field.
310
+ type field_array = ::Protobuf::Field::FieldArray[ActivityFailureInfo, ActivityFailureInfo | _ToProto]
311
+
312
+ # The type of `map` field.
313
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ActivityFailureInfo, ActivityFailureInfo | _ToProto]
314
+
315
+ type array = ::Array[ActivityFailureInfo | _ToProto]
316
+
317
+ type hash[KEY] = ::Hash[KEY, ActivityFailureInfo | _ToProto]
318
+ end
319
+
320
+ class ChildWorkflowExecutionFailureInfo < ::Protobuf::Message
321
+ # Encode the message to a binary string
322
+ #
323
+ def self.encode: (ChildWorkflowExecutionFailureInfo) -> String
324
+
325
+ attr_accessor namespace(): ::String
326
+
327
+ def namespace!: () -> ::String?
328
+
329
+ attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution?
330
+
331
+ def workflow_execution=: [M < ::Temporalio::Api::Common::V1::WorkflowExecution::_ToProto] (M?) -> M?
332
+ | ...
333
+
334
+ def workflow_execution!: () -> ::Temporalio::Api::Common::V1::WorkflowExecution?
335
+
336
+ attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType?
337
+
338
+ def workflow_type=: [M < ::Temporalio::Api::Common::V1::WorkflowType::_ToProto] (M?) -> M?
339
+ | ...
340
+
341
+ def workflow_type!: () -> ::Temporalio::Api::Common::V1::WorkflowType?
342
+
343
+ attr_accessor initiated_event_id(): ::Integer
344
+
345
+ def initiated_event_id!: () -> ::Integer?
346
+
347
+ attr_accessor started_event_id(): ::Integer
348
+
349
+ def started_event_id!: () -> ::Integer?
350
+
351
+ attr_accessor retry_state(): ::Temporalio::Api::Enums::V1::RetryState
352
+
353
+ def retry_state=: (::Temporalio::Api::Enums::V1::RetryState::values) -> ::Temporalio::Api::Enums::V1::RetryState::values
354
+ | ...
355
+
356
+ def retry_state!: () -> ::Temporalio::Api::Enums::V1::RetryState?
357
+
358
+ def initialize: (?namespace: ::String, ?workflow_execution: ::Temporalio::Api::Common::V1::WorkflowExecution::init?, ?workflow_type: ::Temporalio::Api::Common::V1::WorkflowType::init?, ?initiated_event_id: ::Integer, ?started_event_id: ::Integer, ?retry_state: ::Temporalio::Api::Enums::V1::RetryState::init) -> void
359
+
360
+ def []: (:namespace) -> ::String
361
+ | (:workflow_execution) -> ::Temporalio::Api::Common::V1::WorkflowExecution?
362
+ | (:workflow_type) -> ::Temporalio::Api::Common::V1::WorkflowType?
363
+ | (:initiated_event_id) -> ::Integer
364
+ | (:started_event_id) -> ::Integer
365
+ | (:retry_state) -> ::Temporalio::Api::Enums::V1::RetryState
366
+ | (::Symbol) -> untyped
367
+
368
+ def []=: (:namespace, ::String) -> ::String
369
+ | (:workflow_execution, ::Temporalio::Api::Common::V1::WorkflowExecution?) -> ::Temporalio::Api::Common::V1::WorkflowExecution?
370
+ | [M < ::Temporalio::Api::Common::V1::WorkflowExecution::_ToProto] (:workflow_execution, M?) -> M?
371
+ | (:workflow_type, ::Temporalio::Api::Common::V1::WorkflowType?) -> ::Temporalio::Api::Common::V1::WorkflowType?
372
+ | [M < ::Temporalio::Api::Common::V1::WorkflowType::_ToProto] (:workflow_type, M?) -> M?
373
+ | (:initiated_event_id, ::Integer) -> ::Integer
374
+ | (:started_event_id, ::Integer) -> ::Integer
375
+ | (:retry_state, ::Temporalio::Api::Enums::V1::RetryState) -> ::Temporalio::Api::Enums::V1::RetryState
376
+ | (:retry_state, ::Temporalio::Api::Enums::V1::RetryState::values) -> ::Temporalio::Api::Enums::V1::RetryState::values
377
+ | (::Symbol, untyped) -> untyped
378
+
379
+ interface _ToProto
380
+ def to_proto: () -> ChildWorkflowExecutionFailureInfo
381
+ end
382
+
383
+ # The type of `#initialize` parameter.
384
+ type init = ChildWorkflowExecutionFailureInfo | _ToProto
385
+
386
+ # The type of `repeated` field.
387
+ type field_array = ::Protobuf::Field::FieldArray[ChildWorkflowExecutionFailureInfo, ChildWorkflowExecutionFailureInfo | _ToProto]
388
+
389
+ # The type of `map` field.
390
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ChildWorkflowExecutionFailureInfo, ChildWorkflowExecutionFailureInfo | _ToProto]
391
+
392
+ type array = ::Array[ChildWorkflowExecutionFailureInfo | _ToProto]
393
+
394
+ type hash[KEY] = ::Hash[KEY, ChildWorkflowExecutionFailureInfo | _ToProto]
395
+ end
396
+
397
+ class Failure < ::Protobuf::Message
398
+ # Encode the message to a binary string
399
+ #
400
+ def self.encode: (Failure) -> String
401
+
402
+ attr_accessor message(): ::String
403
+
404
+ def message!: () -> ::String?
405
+
406
+ # The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
407
+ # In some SDKs this is used to rehydrate the stack trace into an exception object.
408
+ #
409
+ attr_accessor source(): ::String
410
+
411
+ def source!: () -> ::String?
412
+
413
+ attr_accessor stack_trace(): ::String
414
+
415
+ def stack_trace!: () -> ::String?
416
+
417
+ # Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
418
+ # errors originating in user code which might contain sensitive information.
419
+ # The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
420
+ # message.
421
+ #
422
+ # SDK authors:
423
+ # - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
424
+ # - Uses a JSON object to represent `{ message, stack_trace }`.
425
+ # - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
426
+ # - Overwrites the original stack_trace with an empty string.
427
+ # - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
428
+ # by the user-provided PayloadCodec
429
+ #
430
+ # - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
431
+ # (-- api-linter: core::0203::optional=disabled --)
432
+ #
433
+ attr_accessor encoded_attributes(): ::Temporalio::Api::Common::V1::Payload?
434
+
435
+ # Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
436
+ # errors originating in user code which might contain sensitive information.
437
+ # The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
438
+ # message.
439
+ #
440
+ # SDK authors:
441
+ # - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
442
+ # - Uses a JSON object to represent `{ message, stack_trace }`.
443
+ # - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
444
+ # - Overwrites the original stack_trace with an empty string.
445
+ # - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
446
+ # by the user-provided PayloadCodec
447
+ #
448
+ # - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
449
+ # (-- api-linter: core::0203::optional=disabled --)
450
+ #
451
+ def encoded_attributes=: [M < ::Temporalio::Api::Common::V1::Payload::_ToProto] (M?) -> M?
452
+ | ...
453
+
454
+ def encoded_attributes!: () -> ::Temporalio::Api::Common::V1::Payload?
455
+
456
+ attr_accessor cause(): ::Temporalio::Api::Failure::V1::Failure?
457
+
458
+ def cause=: [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (M?) -> M?
459
+ | ...
460
+
461
+ def cause!: () -> ::Temporalio::Api::Failure::V1::Failure?
462
+
463
+ attr_accessor application_failure_info(): ::Temporalio::Api::Failure::V1::ApplicationFailureInfo?
464
+
465
+ def application_failure_info=: [M < ::Temporalio::Api::Failure::V1::ApplicationFailureInfo::_ToProto] (M?) -> M?
466
+ | ...
467
+
468
+ def application_failure_info!: () -> ::Temporalio::Api::Failure::V1::ApplicationFailureInfo?
469
+
470
+ attr_accessor timeout_failure_info(): ::Temporalio::Api::Failure::V1::TimeoutFailureInfo?
471
+
472
+ def timeout_failure_info=: [M < ::Temporalio::Api::Failure::V1::TimeoutFailureInfo::_ToProto] (M?) -> M?
473
+ | ...
474
+
475
+ def timeout_failure_info!: () -> ::Temporalio::Api::Failure::V1::TimeoutFailureInfo?
476
+
477
+ attr_accessor canceled_failure_info(): ::Temporalio::Api::Failure::V1::CanceledFailureInfo?
478
+
479
+ def canceled_failure_info=: [M < ::Temporalio::Api::Failure::V1::CanceledFailureInfo::_ToProto] (M?) -> M?
480
+ | ...
481
+
482
+ def canceled_failure_info!: () -> ::Temporalio::Api::Failure::V1::CanceledFailureInfo?
483
+
484
+ attr_accessor terminated_failure_info(): ::Temporalio::Api::Failure::V1::TerminatedFailureInfo?
485
+
486
+ def terminated_failure_info=: [M < ::Temporalio::Api::Failure::V1::TerminatedFailureInfo::_ToProto] (M?) -> M?
487
+ | ...
488
+
489
+ def terminated_failure_info!: () -> ::Temporalio::Api::Failure::V1::TerminatedFailureInfo?
490
+
491
+ attr_accessor server_failure_info(): ::Temporalio::Api::Failure::V1::ServerFailureInfo?
492
+
493
+ def server_failure_info=: [M < ::Temporalio::Api::Failure::V1::ServerFailureInfo::_ToProto] (M?) -> M?
494
+ | ...
495
+
496
+ def server_failure_info!: () -> ::Temporalio::Api::Failure::V1::ServerFailureInfo?
497
+
498
+ attr_accessor reset_workflow_failure_info(): ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo?
499
+
500
+ def reset_workflow_failure_info=: [M < ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo::_ToProto] (M?) -> M?
501
+ | ...
502
+
503
+ def reset_workflow_failure_info!: () -> ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo?
504
+
505
+ attr_accessor activity_failure_info(): ::Temporalio::Api::Failure::V1::ActivityFailureInfo?
506
+
507
+ def activity_failure_info=: [M < ::Temporalio::Api::Failure::V1::ActivityFailureInfo::_ToProto] (M?) -> M?
508
+ | ...
509
+
510
+ def activity_failure_info!: () -> ::Temporalio::Api::Failure::V1::ActivityFailureInfo?
511
+
512
+ attr_accessor child_workflow_execution_failure_info(): ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo?
513
+
514
+ def child_workflow_execution_failure_info=: [M < ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo::_ToProto] (M?) -> M?
515
+ | ...
516
+
517
+ def child_workflow_execution_failure_info!: () -> ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo?
518
+
519
+ def initialize: (?message: ::String, ?source: ::String, ?stack_trace: ::String, ?encoded_attributes: ::Temporalio::Api::Common::V1::Payload::init?, ?cause: ::Temporalio::Api::Failure::V1::Failure::init?, ?application_failure_info: ::Temporalio::Api::Failure::V1::ApplicationFailureInfo::init?, ?timeout_failure_info: ::Temporalio::Api::Failure::V1::TimeoutFailureInfo::init?, ?canceled_failure_info: ::Temporalio::Api::Failure::V1::CanceledFailureInfo::init?, ?terminated_failure_info: ::Temporalio::Api::Failure::V1::TerminatedFailureInfo::init?, ?server_failure_info: ::Temporalio::Api::Failure::V1::ServerFailureInfo::init?, ?reset_workflow_failure_info: ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo::init?, ?activity_failure_info: ::Temporalio::Api::Failure::V1::ActivityFailureInfo::init?, ?child_workflow_execution_failure_info: ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo::init?) -> void
520
+
521
+ def []: (:message) -> ::String
522
+ | (:source) -> ::String
523
+ | (:stack_trace) -> ::String
524
+ | (:encoded_attributes) -> ::Temporalio::Api::Common::V1::Payload?
525
+ | (:cause) -> ::Temporalio::Api::Failure::V1::Failure?
526
+ | (:application_failure_info) -> ::Temporalio::Api::Failure::V1::ApplicationFailureInfo?
527
+ | (:timeout_failure_info) -> ::Temporalio::Api::Failure::V1::TimeoutFailureInfo?
528
+ | (:canceled_failure_info) -> ::Temporalio::Api::Failure::V1::CanceledFailureInfo?
529
+ | (:terminated_failure_info) -> ::Temporalio::Api::Failure::V1::TerminatedFailureInfo?
530
+ | (:server_failure_info) -> ::Temporalio::Api::Failure::V1::ServerFailureInfo?
531
+ | (:reset_workflow_failure_info) -> ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo?
532
+ | (:activity_failure_info) -> ::Temporalio::Api::Failure::V1::ActivityFailureInfo?
533
+ | (:child_workflow_execution_failure_info) -> ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo?
534
+ | (::Symbol) -> untyped
535
+
536
+ def []=: (:message, ::String) -> ::String
537
+ | (:source, ::String) -> ::String
538
+ | (:stack_trace, ::String) -> ::String
539
+ | (:encoded_attributes, ::Temporalio::Api::Common::V1::Payload?) -> ::Temporalio::Api::Common::V1::Payload?
540
+ | [M < ::Temporalio::Api::Common::V1::Payload::_ToProto] (:encoded_attributes, M?) -> M?
541
+ | (:cause, ::Temporalio::Api::Failure::V1::Failure?) -> ::Temporalio::Api::Failure::V1::Failure?
542
+ | [M < ::Temporalio::Api::Failure::V1::Failure::_ToProto] (:cause, M?) -> M?
543
+ | (:application_failure_info, ::Temporalio::Api::Failure::V1::ApplicationFailureInfo?) -> ::Temporalio::Api::Failure::V1::ApplicationFailureInfo?
544
+ | [M < ::Temporalio::Api::Failure::V1::ApplicationFailureInfo::_ToProto] (:application_failure_info, M?) -> M?
545
+ | (:timeout_failure_info, ::Temporalio::Api::Failure::V1::TimeoutFailureInfo?) -> ::Temporalio::Api::Failure::V1::TimeoutFailureInfo?
546
+ | [M < ::Temporalio::Api::Failure::V1::TimeoutFailureInfo::_ToProto] (:timeout_failure_info, M?) -> M?
547
+ | (:canceled_failure_info, ::Temporalio::Api::Failure::V1::CanceledFailureInfo?) -> ::Temporalio::Api::Failure::V1::CanceledFailureInfo?
548
+ | [M < ::Temporalio::Api::Failure::V1::CanceledFailureInfo::_ToProto] (:canceled_failure_info, M?) -> M?
549
+ | (:terminated_failure_info, ::Temporalio::Api::Failure::V1::TerminatedFailureInfo?) -> ::Temporalio::Api::Failure::V1::TerminatedFailureInfo?
550
+ | [M < ::Temporalio::Api::Failure::V1::TerminatedFailureInfo::_ToProto] (:terminated_failure_info, M?) -> M?
551
+ | (:server_failure_info, ::Temporalio::Api::Failure::V1::ServerFailureInfo?) -> ::Temporalio::Api::Failure::V1::ServerFailureInfo?
552
+ | [M < ::Temporalio::Api::Failure::V1::ServerFailureInfo::_ToProto] (:server_failure_info, M?) -> M?
553
+ | (:reset_workflow_failure_info, ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo?) -> ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo?
554
+ | [M < ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo::_ToProto] (:reset_workflow_failure_info, M?) -> M?
555
+ | (:activity_failure_info, ::Temporalio::Api::Failure::V1::ActivityFailureInfo?) -> ::Temporalio::Api::Failure::V1::ActivityFailureInfo?
556
+ | [M < ::Temporalio::Api::Failure::V1::ActivityFailureInfo::_ToProto] (:activity_failure_info, M?) -> M?
557
+ | (:child_workflow_execution_failure_info, ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo?) -> ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo?
558
+ | [M < ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo::_ToProto] (:child_workflow_execution_failure_info, M?) -> M?
559
+ | (::Symbol, untyped) -> untyped
560
+
561
+ interface _ToProto
562
+ def to_proto: () -> Failure
563
+ end
564
+
565
+ # The type of `#initialize` parameter.
566
+ type init = Failure | _ToProto
567
+
568
+ # The type of `repeated` field.
569
+ type field_array = ::Protobuf::Field::FieldArray[Failure, Failure | _ToProto]
570
+
571
+ # The type of `map` field.
572
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, Failure, Failure | _ToProto]
573
+
574
+ type array = ::Array[Failure | _ToProto]
575
+
576
+ type hash[KEY] = ::Hash[KEY, Failure | _ToProto]
577
+ end
578
+ end
579
+ end
580
+ end
581
+ end