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,300 @@
1
+ module Temporalio
2
+ module Api
3
+ module Batch
4
+ module V1
5
+ class BatchOperationInfo < ::Protobuf::Message
6
+ # Encode the message to a binary string
7
+ #
8
+ def self.encode: (BatchOperationInfo) -> String
9
+
10
+ # Batch job ID
11
+ #
12
+ attr_accessor job_id(): ::String
13
+
14
+ def job_id!: () -> ::String?
15
+
16
+ # Batch operation state
17
+ #
18
+ attr_accessor state(): ::Temporalio::Api::Enums::V1::BatchOperationState
19
+
20
+ # Batch operation state
21
+ #
22
+ def state=: (::Temporalio::Api::Enums::V1::BatchOperationState::values) -> ::Temporalio::Api::Enums::V1::BatchOperationState::values
23
+ | ...
24
+
25
+ def state!: () -> ::Temporalio::Api::Enums::V1::BatchOperationState?
26
+
27
+ # Batch operation start time
28
+ #
29
+ attr_accessor start_time(): ::Google::Protobuf::Timestamp?
30
+
31
+ # Batch operation start time
32
+ #
33
+ def start_time=: [M < ::Google::Protobuf::Timestamp::_ToProto] (M?) -> M?
34
+ | ...
35
+
36
+ def start_time!: () -> ::Google::Protobuf::Timestamp?
37
+
38
+ # Batch operation close time
39
+ #
40
+ attr_accessor close_time(): ::Google::Protobuf::Timestamp?
41
+
42
+ # Batch operation close time
43
+ #
44
+ def close_time=: [M < ::Google::Protobuf::Timestamp::_ToProto] (M?) -> M?
45
+ | ...
46
+
47
+ def close_time!: () -> ::Google::Protobuf::Timestamp?
48
+
49
+ def initialize: (?job_id: ::String, ?state: ::Temporalio::Api::Enums::V1::BatchOperationState::init, ?start_time: ::Google::Protobuf::Timestamp::init?, ?close_time: ::Google::Protobuf::Timestamp::init?) -> void
50
+
51
+ def []: (:job_id) -> ::String
52
+ | (:state) -> ::Temporalio::Api::Enums::V1::BatchOperationState
53
+ | (:start_time) -> ::Google::Protobuf::Timestamp?
54
+ | (:close_time) -> ::Google::Protobuf::Timestamp?
55
+ | (::Symbol) -> untyped
56
+
57
+ def []=: (:job_id, ::String) -> ::String
58
+ | (:state, ::Temporalio::Api::Enums::V1::BatchOperationState) -> ::Temporalio::Api::Enums::V1::BatchOperationState
59
+ | (:state, ::Temporalio::Api::Enums::V1::BatchOperationState::values) -> ::Temporalio::Api::Enums::V1::BatchOperationState::values
60
+ | (:start_time, ::Google::Protobuf::Timestamp?) -> ::Google::Protobuf::Timestamp?
61
+ | [M < ::Google::Protobuf::Timestamp::_ToProto] (:start_time, M?) -> M?
62
+ | (:close_time, ::Google::Protobuf::Timestamp?) -> ::Google::Protobuf::Timestamp?
63
+ | [M < ::Google::Protobuf::Timestamp::_ToProto] (:close_time, M?) -> M?
64
+ | (::Symbol, untyped) -> untyped
65
+
66
+ interface _ToProto
67
+ def to_proto: () -> BatchOperationInfo
68
+ end
69
+
70
+ # The type of `#initialize` parameter.
71
+ type init = BatchOperationInfo | _ToProto
72
+
73
+ # The type of `repeated` field.
74
+ type field_array = ::Protobuf::Field::FieldArray[BatchOperationInfo, BatchOperationInfo | _ToProto]
75
+
76
+ # The type of `map` field.
77
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, BatchOperationInfo, BatchOperationInfo | _ToProto]
78
+
79
+ type array = ::Array[BatchOperationInfo | _ToProto]
80
+
81
+ type hash[KEY] = ::Hash[KEY, BatchOperationInfo | _ToProto]
82
+ end
83
+
84
+ # BatchOperationTermination sends terminate requests to batch workflows.
85
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest.
86
+ # Ignore first_execution_run_id because this is used for single workflow operation.
87
+ #
88
+ class BatchOperationTermination < ::Protobuf::Message
89
+ # Encode the message to a binary string
90
+ #
91
+ def self.encode: (BatchOperationTermination) -> String
92
+
93
+ # Serialized value(s) to provide to the termination event
94
+ #
95
+ attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads?
96
+
97
+ # Serialized value(s) to provide to the termination event
98
+ #
99
+ def details=: [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (M?) -> M?
100
+ | ...
101
+
102
+ def details!: () -> ::Temporalio::Api::Common::V1::Payloads?
103
+
104
+ # The identity of the worker/client
105
+ #
106
+ attr_accessor identity(): ::String
107
+
108
+ def identity!: () -> ::String?
109
+
110
+ def initialize: (?details: ::Temporalio::Api::Common::V1::Payloads::init?, ?identity: ::String) -> void
111
+
112
+ def []: (:details) -> ::Temporalio::Api::Common::V1::Payloads?
113
+ | (:identity) -> ::String
114
+ | (::Symbol) -> untyped
115
+
116
+ def []=: (:details, ::Temporalio::Api::Common::V1::Payloads?) -> ::Temporalio::Api::Common::V1::Payloads?
117
+ | [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (:details, M?) -> M?
118
+ | (:identity, ::String) -> ::String
119
+ | (::Symbol, untyped) -> untyped
120
+
121
+ interface _ToProto
122
+ def to_proto: () -> BatchOperationTermination
123
+ end
124
+
125
+ # The type of `#initialize` parameter.
126
+ type init = BatchOperationTermination | _ToProto
127
+
128
+ # The type of `repeated` field.
129
+ type field_array = ::Protobuf::Field::FieldArray[BatchOperationTermination, BatchOperationTermination | _ToProto]
130
+
131
+ # The type of `map` field.
132
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, BatchOperationTermination, BatchOperationTermination | _ToProto]
133
+
134
+ type array = ::Array[BatchOperationTermination | _ToProto]
135
+
136
+ type hash[KEY] = ::Hash[KEY, BatchOperationTermination | _ToProto]
137
+ end
138
+
139
+ # BatchOperationSignal sends signals to batch workflows.
140
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.
141
+ #
142
+ class BatchOperationSignal < ::Protobuf::Message
143
+ # Encode the message to a binary string
144
+ #
145
+ def self.encode: (BatchOperationSignal) -> String
146
+
147
+ # The workflow author-defined name of the signal to send to the workflow
148
+ #
149
+ attr_accessor signal(): ::String
150
+
151
+ def signal!: () -> ::String?
152
+
153
+ # Serialized value(s) to provide with the signal
154
+ #
155
+ attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads?
156
+
157
+ # Serialized value(s) to provide with the signal
158
+ #
159
+ def input=: [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (M?) -> M?
160
+ | ...
161
+
162
+ def input!: () -> ::Temporalio::Api::Common::V1::Payloads?
163
+
164
+ # Headers that are passed with the signal to the processing workflow.
165
+ # These can include things like auth or tracing tokens.
166
+ #
167
+ attr_accessor header(): ::Temporalio::Api::Common::V1::Header?
168
+
169
+ # Headers that are passed with the signal to the processing workflow.
170
+ # These can include things like auth or tracing tokens.
171
+ #
172
+ def header=: [M < ::Temporalio::Api::Common::V1::Header::_ToProto] (M?) -> M?
173
+ | ...
174
+
175
+ def header!: () -> ::Temporalio::Api::Common::V1::Header?
176
+
177
+ # The identity of the worker/client
178
+ #
179
+ attr_accessor identity(): ::String
180
+
181
+ def identity!: () -> ::String?
182
+
183
+ def initialize: (?signal: ::String, ?input: ::Temporalio::Api::Common::V1::Payloads::init?, ?header: ::Temporalio::Api::Common::V1::Header::init?, ?identity: ::String) -> void
184
+
185
+ def []: (:signal) -> ::String
186
+ | (:input) -> ::Temporalio::Api::Common::V1::Payloads?
187
+ | (:header) -> ::Temporalio::Api::Common::V1::Header?
188
+ | (:identity) -> ::String
189
+ | (::Symbol) -> untyped
190
+
191
+ def []=: (:signal, ::String) -> ::String
192
+ | (:input, ::Temporalio::Api::Common::V1::Payloads?) -> ::Temporalio::Api::Common::V1::Payloads?
193
+ | [M < ::Temporalio::Api::Common::V1::Payloads::_ToProto] (:input, M?) -> M?
194
+ | (:header, ::Temporalio::Api::Common::V1::Header?) -> ::Temporalio::Api::Common::V1::Header?
195
+ | [M < ::Temporalio::Api::Common::V1::Header::_ToProto] (:header, M?) -> M?
196
+ | (:identity, ::String) -> ::String
197
+ | (::Symbol, untyped) -> untyped
198
+
199
+ interface _ToProto
200
+ def to_proto: () -> BatchOperationSignal
201
+ end
202
+
203
+ # The type of `#initialize` parameter.
204
+ type init = BatchOperationSignal | _ToProto
205
+
206
+ # The type of `repeated` field.
207
+ type field_array = ::Protobuf::Field::FieldArray[BatchOperationSignal, BatchOperationSignal | _ToProto]
208
+
209
+ # The type of `map` field.
210
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, BatchOperationSignal, BatchOperationSignal | _ToProto]
211
+
212
+ type array = ::Array[BatchOperationSignal | _ToProto]
213
+
214
+ type hash[KEY] = ::Hash[KEY, BatchOperationSignal | _ToProto]
215
+ end
216
+
217
+ # BatchOperationCancellation sends cancel requests to batch workflows.
218
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest.
219
+ # Ignore first_execution_run_id because this is used for single workflow operation.
220
+ #
221
+ class BatchOperationCancellation < ::Protobuf::Message
222
+ # Encode the message to a binary string
223
+ #
224
+ def self.encode: (BatchOperationCancellation) -> String
225
+
226
+ # The identity of the worker/client
227
+ #
228
+ attr_accessor identity(): ::String
229
+
230
+ def identity!: () -> ::String?
231
+
232
+ def initialize: (?identity: ::String) -> void
233
+
234
+ def []: (:identity) -> ::String
235
+ | (::Symbol) -> untyped
236
+
237
+ def []=: (:identity, ::String) -> ::String
238
+ | (::Symbol, untyped) -> untyped
239
+
240
+ interface _ToProto
241
+ def to_proto: () -> BatchOperationCancellation
242
+ end
243
+
244
+ # The type of `#initialize` parameter.
245
+ type init = BatchOperationCancellation | _ToProto
246
+
247
+ # The type of `repeated` field.
248
+ type field_array = ::Protobuf::Field::FieldArray[BatchOperationCancellation, BatchOperationCancellation | _ToProto]
249
+
250
+ # The type of `map` field.
251
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, BatchOperationCancellation, BatchOperationCancellation | _ToProto]
252
+
253
+ type array = ::Array[BatchOperationCancellation | _ToProto]
254
+
255
+ type hash[KEY] = ::Hash[KEY, BatchOperationCancellation | _ToProto]
256
+ end
257
+
258
+ # BatchOperationDeletion sends deletion requests to batch workflows.
259
+ # Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest.
260
+ #
261
+ class BatchOperationDeletion < ::Protobuf::Message
262
+ # Encode the message to a binary string
263
+ #
264
+ def self.encode: (BatchOperationDeletion) -> String
265
+
266
+ # The identity of the worker/client
267
+ #
268
+ attr_accessor identity(): ::String
269
+
270
+ def identity!: () -> ::String?
271
+
272
+ def initialize: (?identity: ::String) -> void
273
+
274
+ def []: (:identity) -> ::String
275
+ | (::Symbol) -> untyped
276
+
277
+ def []=: (:identity, ::String) -> ::String
278
+ | (::Symbol, untyped) -> untyped
279
+
280
+ interface _ToProto
281
+ def to_proto: () -> BatchOperationDeletion
282
+ end
283
+
284
+ # The type of `#initialize` parameter.
285
+ type init = BatchOperationDeletion | _ToProto
286
+
287
+ # The type of `repeated` field.
288
+ type field_array = ::Protobuf::Field::FieldArray[BatchOperationDeletion, BatchOperationDeletion | _ToProto]
289
+
290
+ # The type of `map` field.
291
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, BatchOperationDeletion, BatchOperationDeletion | _ToProto]
292
+
293
+ type array = ::Array[BatchOperationDeletion | _ToProto]
294
+
295
+ type hash[KEY] = ::Hash[KEY, BatchOperationDeletion | _ToProto]
296
+ end
297
+ end
298
+ end
299
+ end
300
+ end