temporalio 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bridge/Cargo.lock +20 -20
- data/bridge/Cargo.toml +3 -3
- data/lib/temporalio/bridge.rb +1 -1
- data/lib/temporalio/version.rb +1 -1
- data/lib/thermite_patch.rb +10 -0
- data/sig/async.rbs +17 -0
- data/sig/protobuf.rbs +16 -0
- data/sig/protos/dependencies/gogoproto/gogo.rbs +914 -0
- data/sig/protos/google/protobuf/any.rbs +157 -0
- data/sig/protos/google/protobuf/descriptor.rbs +2825 -0
- data/sig/protos/google/protobuf/duration.rbs +114 -0
- data/sig/protos/google/protobuf/empty.rbs +36 -0
- data/sig/protos/google/protobuf/timestamp.rbs +145 -0
- data/sig/protos/google/protobuf/wrappers.rbs +358 -0
- data/sig/protos/temporal/api/batch/v1/message.rbs +300 -0
- data/sig/protos/temporal/api/command/v1/message.rbs +1399 -0
- data/sig/protos/temporal/api/common/v1/message.rbs +528 -0
- data/sig/protos/temporal/api/enums/v1/batch_operation.rbs +79 -0
- data/sig/protos/temporal/api/enums/v1/command_type.rbs +68 -0
- data/sig/protos/temporal/api/enums/v1/common.rbs +118 -0
- data/sig/protos/temporal/api/enums/v1/event_type.rbs +264 -0
- data/sig/protos/temporal/api/enums/v1/failed_cause.rbs +277 -0
- data/sig/protos/temporal/api/enums/v1/namespace.rbs +108 -0
- data/sig/protos/temporal/api/enums/v1/query.rbs +81 -0
- data/sig/protos/temporal/api/enums/v1/reset.rbs +44 -0
- data/sig/protos/temporal/api/enums/v1/schedule.rbs +72 -0
- data/sig/protos/temporal/api/enums/v1/task_queue.rbs +92 -0
- data/sig/protos/temporal/api/enums/v1/update.rbs +64 -0
- data/sig/protos/temporal/api/enums/v1/workflow.rbs +371 -0
- data/sig/protos/temporal/api/errordetails/v1/message.rbs +551 -0
- data/sig/protos/temporal/api/failure/v1/message.rbs +581 -0
- data/sig/protos/temporal/api/filter/v1/message.rbs +171 -0
- data/sig/protos/temporal/api/history/v1/message.rbs +4609 -0
- data/sig/protos/temporal/api/namespace/v1/message.rbs +410 -0
- data/sig/protos/temporal/api/operatorservice/v1/request_response.rbs +643 -0
- data/sig/protos/temporal/api/operatorservice/v1/service.rbs +17 -0
- data/sig/protos/temporal/api/protocol/v1/message.rbs +84 -0
- data/sig/protos/temporal/api/query/v1/message.rbs +182 -0
- data/sig/protos/temporal/api/replication/v1/message.rbs +148 -0
- data/sig/protos/temporal/api/schedule/v1/message.rbs +1488 -0
- data/sig/protos/temporal/api/sdk/v1/task_complete_metadata.rbs +110 -0
- data/sig/protos/temporal/api/taskqueue/v1/message.rbs +486 -0
- data/sig/protos/temporal/api/testservice/v1/request_response.rbs +249 -0
- data/sig/protos/temporal/api/testservice/v1/service.rbs +15 -0
- data/sig/protos/temporal/api/update/v1/message.rbs +489 -0
- data/sig/protos/temporal/api/version/v1/message.rbs +184 -0
- data/sig/protos/temporal/api/workflow/v1/message.rbs +824 -0
- data/sig/protos/temporal/api/workflowservice/v1/request_response.rbs +7250 -0
- data/sig/protos/temporal/api/workflowservice/v1/service.rbs +22 -0
- data/sig/protos/temporal/sdk/core/activity_result/activity_result.rbs +380 -0
- data/sig/protos/temporal/sdk/core/activity_task/activity_task.rbs +386 -0
- data/sig/protos/temporal/sdk/core/child_workflow/child_workflow.rbs +323 -0
- data/sig/protos/temporal/sdk/core/common/common.rbs +62 -0
- data/sig/protos/temporal/sdk/core/core_interface.rbs +101 -0
- data/sig/protos/temporal/sdk/core/external_data/external_data.rbs +119 -0
- data/sig/protos/temporal/sdk/core/workflow_activation/workflow_activation.rbs +1473 -0
- data/sig/protos/temporal/sdk/core/workflow_commands/workflow_commands.rbs +1784 -0
- data/sig/protos/temporal/sdk/core/workflow_completion/workflow_completion.rbs +180 -0
- data/sig/ruby.rbs +12 -0
- data/sig/temporalio/activity/context.rbs +29 -0
- data/sig/temporalio/activity/info.rbs +43 -0
- data/sig/temporalio/activity.rbs +19 -0
- data/sig/temporalio/bridge/connect_options.rbs +19 -0
- data/sig/temporalio/bridge/error.rbs +8 -0
- data/sig/temporalio/bridge/retry_config.rbs +21 -0
- data/sig/temporalio/bridge/tls_options.rbs +17 -0
- data/sig/temporalio/bridge.rbs +71 -0
- data/sig/temporalio/client/implementation.rbs +38 -0
- data/sig/temporalio/client/workflow_handle.rbs +41 -0
- data/sig/temporalio/client.rbs +35 -0
- data/sig/temporalio/connection/retry_config.rbs +37 -0
- data/sig/temporalio/connection/service.rbs +14 -0
- data/sig/temporalio/connection/test_service.rbs +13 -0
- data/sig/temporalio/connection/tls_options.rbs +43 -0
- data/sig/temporalio/connection/workflow_service.rbs +48 -0
- data/sig/temporalio/connection.rbs +30 -0
- data/sig/temporalio/data_converter.rbs +35 -0
- data/sig/temporalio/error/failure.rbs +121 -0
- data/sig/temporalio/error/workflow_failure.rbs +9 -0
- data/sig/temporalio/errors.rbs +36 -0
- data/sig/temporalio/failure_converter/base.rbs +12 -0
- data/sig/temporalio/failure_converter/basic.rbs +86 -0
- data/sig/temporalio/failure_converter.rbs +5 -0
- data/sig/temporalio/interceptor/activity_inbound.rbs +21 -0
- data/sig/temporalio/interceptor/activity_outbound.rbs +10 -0
- data/sig/temporalio/interceptor/chain.rbs +24 -0
- data/sig/temporalio/interceptor/client.rbs +148 -0
- data/sig/temporalio/interceptor.rbs +6 -0
- data/sig/temporalio/payload_codec/base.rbs +12 -0
- data/sig/temporalio/payload_converter/base.rbs +12 -0
- data/sig/temporalio/payload_converter/bytes.rbs +9 -0
- data/sig/temporalio/payload_converter/composite.rbs +19 -0
- data/sig/temporalio/payload_converter/encoding_base.rbs +14 -0
- data/sig/temporalio/payload_converter/json.rbs +9 -0
- data/sig/temporalio/payload_converter/nil.rbs +9 -0
- data/sig/temporalio/payload_converter.rbs +5 -0
- data/sig/temporalio/retry_policy.rbs +25 -0
- data/sig/temporalio/retry_state.rbs +20 -0
- data/sig/temporalio/runtime.rbs +12 -0
- data/sig/temporalio/testing/time_skipping_handle.rbs +15 -0
- data/sig/temporalio/testing/time_skipping_interceptor.rbs +13 -0
- data/sig/temporalio/testing/workflow_environment.rbs +22 -0
- data/sig/temporalio/testing.rbs +35 -0
- data/sig/temporalio/timeout_type.rbs +15 -0
- data/sig/temporalio/version.rbs +3 -0
- data/sig/temporalio/worker/activity_runner.rbs +35 -0
- data/sig/temporalio/worker/activity_worker.rbs +44 -0
- data/sig/temporalio/worker/reactor.rbs +22 -0
- data/sig/temporalio/worker/runner.rbs +21 -0
- data/sig/temporalio/worker/sync_worker.rbs +23 -0
- data/sig/temporalio/worker/thread_pool_executor.rbs +23 -0
- data/sig/temporalio/worker.rbs +46 -0
- data/sig/temporalio/workflow/async.rbs +9 -0
- data/sig/temporalio/workflow/execution_info.rbs +55 -0
- data/sig/temporalio/workflow/execution_status.rbs +21 -0
- data/sig/temporalio/workflow/future.rbs +40 -0
- data/sig/temporalio/workflow/id_reuse_policy.rbs +15 -0
- data/sig/temporalio/workflow/info.rbs +55 -0
- data/sig/temporalio/workflow/query_reject_condition.rbs +14 -0
- data/sig/temporalio.rbs +2 -0
- data/sig/thermite_patch.rbs +15 -0
- data/temporalio.gemspec +2 -1
- metadata +118 -2
@@ -0,0 +1,249 @@
|
|
1
|
+
module Temporalio
|
2
|
+
module Api
|
3
|
+
module TestService
|
4
|
+
module V1
|
5
|
+
class LockTimeSkippingRequest < ::Protobuf::Message
|
6
|
+
# Encode the message to a binary string
|
7
|
+
#
|
8
|
+
def self.encode: (LockTimeSkippingRequest) -> String
|
9
|
+
|
10
|
+
def initialize: () -> void
|
11
|
+
|
12
|
+
interface _ToProto
|
13
|
+
def to_proto: () -> LockTimeSkippingRequest
|
14
|
+
end
|
15
|
+
|
16
|
+
# The type of `#initialize` parameter.
|
17
|
+
type init = LockTimeSkippingRequest | _ToProto
|
18
|
+
|
19
|
+
# The type of `repeated` field.
|
20
|
+
type field_array = ::Protobuf::Field::FieldArray[LockTimeSkippingRequest, LockTimeSkippingRequest | _ToProto]
|
21
|
+
|
22
|
+
# The type of `map` field.
|
23
|
+
type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, LockTimeSkippingRequest, LockTimeSkippingRequest | _ToProto]
|
24
|
+
|
25
|
+
type array = ::Array[LockTimeSkippingRequest | _ToProto]
|
26
|
+
|
27
|
+
type hash[KEY] = ::Hash[KEY, LockTimeSkippingRequest | _ToProto]
|
28
|
+
end
|
29
|
+
|
30
|
+
class LockTimeSkippingResponse < ::Protobuf::Message
|
31
|
+
# Encode the message to a binary string
|
32
|
+
#
|
33
|
+
def self.encode: (LockTimeSkippingResponse) -> String
|
34
|
+
|
35
|
+
def initialize: () -> void
|
36
|
+
|
37
|
+
interface _ToProto
|
38
|
+
def to_proto: () -> LockTimeSkippingResponse
|
39
|
+
end
|
40
|
+
|
41
|
+
# The type of `#initialize` parameter.
|
42
|
+
type init = LockTimeSkippingResponse | _ToProto
|
43
|
+
|
44
|
+
# The type of `repeated` field.
|
45
|
+
type field_array = ::Protobuf::Field::FieldArray[LockTimeSkippingResponse, LockTimeSkippingResponse | _ToProto]
|
46
|
+
|
47
|
+
# The type of `map` field.
|
48
|
+
type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, LockTimeSkippingResponse, LockTimeSkippingResponse | _ToProto]
|
49
|
+
|
50
|
+
type array = ::Array[LockTimeSkippingResponse | _ToProto]
|
51
|
+
|
52
|
+
type hash[KEY] = ::Hash[KEY, LockTimeSkippingResponse | _ToProto]
|
53
|
+
end
|
54
|
+
|
55
|
+
class UnlockTimeSkippingRequest < ::Protobuf::Message
|
56
|
+
# Encode the message to a binary string
|
57
|
+
#
|
58
|
+
def self.encode: (UnlockTimeSkippingRequest) -> String
|
59
|
+
|
60
|
+
def initialize: () -> void
|
61
|
+
|
62
|
+
interface _ToProto
|
63
|
+
def to_proto: () -> UnlockTimeSkippingRequest
|
64
|
+
end
|
65
|
+
|
66
|
+
# The type of `#initialize` parameter.
|
67
|
+
type init = UnlockTimeSkippingRequest | _ToProto
|
68
|
+
|
69
|
+
# The type of `repeated` field.
|
70
|
+
type field_array = ::Protobuf::Field::FieldArray[UnlockTimeSkippingRequest, UnlockTimeSkippingRequest | _ToProto]
|
71
|
+
|
72
|
+
# The type of `map` field.
|
73
|
+
type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, UnlockTimeSkippingRequest, UnlockTimeSkippingRequest | _ToProto]
|
74
|
+
|
75
|
+
type array = ::Array[UnlockTimeSkippingRequest | _ToProto]
|
76
|
+
|
77
|
+
type hash[KEY] = ::Hash[KEY, UnlockTimeSkippingRequest | _ToProto]
|
78
|
+
end
|
79
|
+
|
80
|
+
class UnlockTimeSkippingResponse < ::Protobuf::Message
|
81
|
+
# Encode the message to a binary string
|
82
|
+
#
|
83
|
+
def self.encode: (UnlockTimeSkippingResponse) -> String
|
84
|
+
|
85
|
+
def initialize: () -> void
|
86
|
+
|
87
|
+
interface _ToProto
|
88
|
+
def to_proto: () -> UnlockTimeSkippingResponse
|
89
|
+
end
|
90
|
+
|
91
|
+
# The type of `#initialize` parameter.
|
92
|
+
type init = UnlockTimeSkippingResponse | _ToProto
|
93
|
+
|
94
|
+
# The type of `repeated` field.
|
95
|
+
type field_array = ::Protobuf::Field::FieldArray[UnlockTimeSkippingResponse, UnlockTimeSkippingResponse | _ToProto]
|
96
|
+
|
97
|
+
# The type of `map` field.
|
98
|
+
type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, UnlockTimeSkippingResponse, UnlockTimeSkippingResponse | _ToProto]
|
99
|
+
|
100
|
+
type array = ::Array[UnlockTimeSkippingResponse | _ToProto]
|
101
|
+
|
102
|
+
type hash[KEY] = ::Hash[KEY, UnlockTimeSkippingResponse | _ToProto]
|
103
|
+
end
|
104
|
+
|
105
|
+
class SleepUntilRequest < ::Protobuf::Message
|
106
|
+
# Encode the message to a binary string
|
107
|
+
#
|
108
|
+
def self.encode: (SleepUntilRequest) -> String
|
109
|
+
|
110
|
+
attr_accessor timestamp(): ::Google::Protobuf::Timestamp?
|
111
|
+
|
112
|
+
def timestamp=: [M < ::Google::Protobuf::Timestamp::_ToProto] (M?) -> M?
|
113
|
+
| ...
|
114
|
+
|
115
|
+
def timestamp!: () -> ::Google::Protobuf::Timestamp?
|
116
|
+
|
117
|
+
def initialize: (?timestamp: ::Google::Protobuf::Timestamp::init?) -> void
|
118
|
+
|
119
|
+
def []: (:timestamp) -> ::Google::Protobuf::Timestamp?
|
120
|
+
| (::Symbol) -> untyped
|
121
|
+
|
122
|
+
def []=: (:timestamp, ::Google::Protobuf::Timestamp?) -> ::Google::Protobuf::Timestamp?
|
123
|
+
| [M < ::Google::Protobuf::Timestamp::_ToProto] (:timestamp, M?) -> M?
|
124
|
+
| (::Symbol, untyped) -> untyped
|
125
|
+
|
126
|
+
interface _ToProto
|
127
|
+
def to_proto: () -> SleepUntilRequest
|
128
|
+
end
|
129
|
+
|
130
|
+
# The type of `#initialize` parameter.
|
131
|
+
type init = SleepUntilRequest | _ToProto
|
132
|
+
|
133
|
+
# The type of `repeated` field.
|
134
|
+
type field_array = ::Protobuf::Field::FieldArray[SleepUntilRequest, SleepUntilRequest | _ToProto]
|
135
|
+
|
136
|
+
# The type of `map` field.
|
137
|
+
type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, SleepUntilRequest, SleepUntilRequest | _ToProto]
|
138
|
+
|
139
|
+
type array = ::Array[SleepUntilRequest | _ToProto]
|
140
|
+
|
141
|
+
type hash[KEY] = ::Hash[KEY, SleepUntilRequest | _ToProto]
|
142
|
+
end
|
143
|
+
|
144
|
+
class SleepRequest < ::Protobuf::Message
|
145
|
+
# Encode the message to a binary string
|
146
|
+
#
|
147
|
+
def self.encode: (SleepRequest) -> String
|
148
|
+
|
149
|
+
attr_accessor duration(): ::Google::Protobuf::Duration?
|
150
|
+
|
151
|
+
def duration=: [M < ::Google::Protobuf::Duration::_ToProto] (M?) -> M?
|
152
|
+
| ...
|
153
|
+
|
154
|
+
def duration!: () -> ::Google::Protobuf::Duration?
|
155
|
+
|
156
|
+
def initialize: (?duration: ::Google::Protobuf::Duration::init?) -> void
|
157
|
+
|
158
|
+
def []: (:duration) -> ::Google::Protobuf::Duration?
|
159
|
+
| (::Symbol) -> untyped
|
160
|
+
|
161
|
+
def []=: (:duration, ::Google::Protobuf::Duration?) -> ::Google::Protobuf::Duration?
|
162
|
+
| [M < ::Google::Protobuf::Duration::_ToProto] (:duration, M?) -> M?
|
163
|
+
| (::Symbol, untyped) -> untyped
|
164
|
+
|
165
|
+
interface _ToProto
|
166
|
+
def to_proto: () -> SleepRequest
|
167
|
+
end
|
168
|
+
|
169
|
+
# The type of `#initialize` parameter.
|
170
|
+
type init = SleepRequest | _ToProto
|
171
|
+
|
172
|
+
# The type of `repeated` field.
|
173
|
+
type field_array = ::Protobuf::Field::FieldArray[SleepRequest, SleepRequest | _ToProto]
|
174
|
+
|
175
|
+
# The type of `map` field.
|
176
|
+
type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, SleepRequest, SleepRequest | _ToProto]
|
177
|
+
|
178
|
+
type array = ::Array[SleepRequest | _ToProto]
|
179
|
+
|
180
|
+
type hash[KEY] = ::Hash[KEY, SleepRequest | _ToProto]
|
181
|
+
end
|
182
|
+
|
183
|
+
class SleepResponse < ::Protobuf::Message
|
184
|
+
# Encode the message to a binary string
|
185
|
+
#
|
186
|
+
def self.encode: (SleepResponse) -> String
|
187
|
+
|
188
|
+
def initialize: () -> void
|
189
|
+
|
190
|
+
interface _ToProto
|
191
|
+
def to_proto: () -> SleepResponse
|
192
|
+
end
|
193
|
+
|
194
|
+
# The type of `#initialize` parameter.
|
195
|
+
type init = SleepResponse | _ToProto
|
196
|
+
|
197
|
+
# The type of `repeated` field.
|
198
|
+
type field_array = ::Protobuf::Field::FieldArray[SleepResponse, SleepResponse | _ToProto]
|
199
|
+
|
200
|
+
# The type of `map` field.
|
201
|
+
type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, SleepResponse, SleepResponse | _ToProto]
|
202
|
+
|
203
|
+
type array = ::Array[SleepResponse | _ToProto]
|
204
|
+
|
205
|
+
type hash[KEY] = ::Hash[KEY, SleepResponse | _ToProto]
|
206
|
+
end
|
207
|
+
|
208
|
+
class GetCurrentTimeResponse < ::Protobuf::Message
|
209
|
+
# Encode the message to a binary string
|
210
|
+
#
|
211
|
+
def self.encode: (GetCurrentTimeResponse) -> String
|
212
|
+
|
213
|
+
attr_accessor time(): ::Google::Protobuf::Timestamp?
|
214
|
+
|
215
|
+
def time=: [M < ::Google::Protobuf::Timestamp::_ToProto] (M?) -> M?
|
216
|
+
| ...
|
217
|
+
|
218
|
+
def time!: () -> ::Google::Protobuf::Timestamp?
|
219
|
+
|
220
|
+
def initialize: (?time: ::Google::Protobuf::Timestamp::init?) -> void
|
221
|
+
|
222
|
+
def []: (:time) -> ::Google::Protobuf::Timestamp?
|
223
|
+
| (::Symbol) -> untyped
|
224
|
+
|
225
|
+
def []=: (:time, ::Google::Protobuf::Timestamp?) -> ::Google::Protobuf::Timestamp?
|
226
|
+
| [M < ::Google::Protobuf::Timestamp::_ToProto] (:time, M?) -> M?
|
227
|
+
| (::Symbol, untyped) -> untyped
|
228
|
+
|
229
|
+
interface _ToProto
|
230
|
+
def to_proto: () -> GetCurrentTimeResponse
|
231
|
+
end
|
232
|
+
|
233
|
+
# The type of `#initialize` parameter.
|
234
|
+
type init = GetCurrentTimeResponse | _ToProto
|
235
|
+
|
236
|
+
# The type of `repeated` field.
|
237
|
+
type field_array = ::Protobuf::Field::FieldArray[GetCurrentTimeResponse, GetCurrentTimeResponse | _ToProto]
|
238
|
+
|
239
|
+
# The type of `map` field.
|
240
|
+
type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, GetCurrentTimeResponse, GetCurrentTimeResponse | _ToProto]
|
241
|
+
|
242
|
+
type array = ::Array[GetCurrentTimeResponse | _ToProto]
|
243
|
+
|
244
|
+
type hash[KEY] = ::Hash[KEY, GetCurrentTimeResponse | _ToProto]
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Temporalio
|
2
|
+
module Api
|
3
|
+
module TestService
|
4
|
+
module V1
|
5
|
+
# TestService API defines an interface supported only by the Temporal Test Server.
|
6
|
+
# It provides functionality needed or supported for testing purposes only.
|
7
|
+
#
|
8
|
+
# This is an EXPERIMENTAL API.
|
9
|
+
#
|
10
|
+
class TestService < ::Protobuf::Rpc::Service
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|