volcano-sdk 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/volcano/version.rb +1 -1
- data/sig/durable_records.rbs +70 -0
- data/sig/realtime_contexts.rbs +83 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea6009c324b19c3a5fb8463b1fca575365773af9caa54972802ff1e86c3f6f69
|
|
4
|
+
data.tar.gz: 9577e000a28111f305386ded68b3db03e33c707cbccc6af69e687127f0fae18a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f079d7f1856bd0f541027711101330a94af5e759f3f7f31b288721fc8068cd16a3c123658bce716ceec4410dbb8f05abd147073897496d22c7bfe814f0906626
|
|
7
|
+
data.tar.gz: 5719ba35ffcc5e6da548aa0f93520c017f7d974ae0cc584db66ba4d52b8e645bcaa4ccafb9ecb6e528b47d1899f2ba1d2baf184c84763d8d9f6744fdc46a7986
|
data/lib/volcano/version.rb
CHANGED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
module Volcano
|
|
2
|
+
class DurableExecutionError < Data
|
|
3
|
+
attr_reader type: String?
|
|
4
|
+
attr_reader message: String?
|
|
5
|
+
|
|
6
|
+
def self.new: (?String? type, ?String? message) -> DurableExecutionError
|
|
7
|
+
| (?type: String?, ?message: String?) -> DurableExecutionError
|
|
8
|
+
def self.[]: (?String? type, ?String? message) -> DurableExecutionError
|
|
9
|
+
| (?type: String?, ?message: String?) -> DurableExecutionError
|
|
10
|
+
def self.members: () -> [:type, :message]
|
|
11
|
+
|
|
12
|
+
def initialize: (?type: String?, ?message: String?) -> void
|
|
13
|
+
def members: () -> [:type, :message]
|
|
14
|
+
def with: (?type: String?, ?message: String?) -> DurableExecutionError
|
|
15
|
+
def to_h: () -> { type: String?, message: String? }
|
|
16
|
+
| [K, V] () { (Symbol, String?) -> [K, V] } -> Hash[K, V]
|
|
17
|
+
def deconstruct: () -> [String?, String?]
|
|
18
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, String?]
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
class DurableExecution < Data
|
|
22
|
+
attr_reader id: String
|
|
23
|
+
attr_reader function_id: String
|
|
24
|
+
attr_reader name: String
|
|
25
|
+
attr_reader status: String
|
|
26
|
+
attr_reader region: String
|
|
27
|
+
attr_reader created_at: Time
|
|
28
|
+
attr_reader result: json_value
|
|
29
|
+
attr_reader result_expired: bool?
|
|
30
|
+
attr_reader error: DurableExecutionError?
|
|
31
|
+
attr_reader completed_at: Time?
|
|
32
|
+
|
|
33
|
+
def self.new: (String id, String function_id, String name, String status, String region, Time created_at, ?json_value result, ?bool? result_expired, ?DurableExecutionError? error, ?Time? completed_at) -> DurableExecution
|
|
34
|
+
| (id: String, function_id: String, name: String, status: String, region: String, created_at: Time, ?result: json_value, ?result_expired: bool?, ?error: DurableExecutionError?, ?completed_at: Time?) -> DurableExecution
|
|
35
|
+
def self.[]: (String id, String function_id, String name, String status, String region, Time created_at, ?json_value result, ?bool? result_expired, ?DurableExecutionError? error, ?Time? completed_at) -> DurableExecution
|
|
36
|
+
| (id: String, function_id: String, name: String, status: String, region: String, created_at: Time, ?result: json_value, ?result_expired: bool?, ?error: DurableExecutionError?, ?completed_at: Time?) -> DurableExecution
|
|
37
|
+
def self.members: () -> [:id, :function_id, :name, :status, :region, :created_at, :result, :result_expired, :error, :completed_at]
|
|
38
|
+
|
|
39
|
+
def initialize: (id: String, function_id: String, name: String, status: String, region: String, created_at: Time, ?result: json_value, ?result_expired: bool?, ?error: DurableExecutionError?, ?completed_at: Time?) -> void
|
|
40
|
+
def members: () -> [:id, :function_id, :name, :status, :region, :created_at, :result, :result_expired, :error, :completed_at]
|
|
41
|
+
def with: (?id: String, ?function_id: String, ?name: String, ?status: String, ?region: String, ?created_at: Time, ?result: json_value, ?result_expired: bool?, ?error: DurableExecutionError?, ?completed_at: Time?) -> DurableExecution
|
|
42
|
+
def to_h: () -> { id: String, function_id: String, name: String, status: String, region: String, created_at: Time, result: json_value, result_expired: bool?, error: DurableExecutionError?, completed_at: Time? }
|
|
43
|
+
| [K, V] () { (Symbol, String | Time | json_value | bool | DurableExecutionError | nil) -> [K, V] } -> Hash[K, V]
|
|
44
|
+
def deconstruct: () -> [String, String, String, String, String, Time, json_value, bool?, DurableExecutionError?, Time?]
|
|
45
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, String | Time | json_value | bool | DurableExecutionError | nil]
|
|
46
|
+
def terminal?: () -> bool
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class DurableExecutionPage < Data
|
|
50
|
+
attr_reader executions: Array[DurableExecution]
|
|
51
|
+
attr_reader page: Integer
|
|
52
|
+
attr_reader limit: Integer
|
|
53
|
+
attr_reader total: Integer
|
|
54
|
+
attr_reader has_more: bool
|
|
55
|
+
|
|
56
|
+
def self.new: (Enumerable[DurableExecution] executions, Integer page, Integer limit, Integer total, bool has_more) -> DurableExecutionPage
|
|
57
|
+
| (executions: Enumerable[DurableExecution], page: Integer, limit: Integer, total: Integer, has_more: bool) -> DurableExecutionPage
|
|
58
|
+
def self.[]: (Enumerable[DurableExecution] executions, Integer page, Integer limit, Integer total, bool has_more) -> DurableExecutionPage
|
|
59
|
+
| (executions: Enumerable[DurableExecution], page: Integer, limit: Integer, total: Integer, has_more: bool) -> DurableExecutionPage
|
|
60
|
+
def self.members: () -> [:executions, :page, :limit, :total, :has_more]
|
|
61
|
+
|
|
62
|
+
def initialize: (executions: Enumerable[DurableExecution], page: Integer, limit: Integer, total: Integer, has_more: bool) -> void
|
|
63
|
+
def members: () -> [:executions, :page, :limit, :total, :has_more]
|
|
64
|
+
def with: (?executions: Enumerable[DurableExecution], ?page: Integer, ?limit: Integer, ?total: Integer, ?has_more: bool) -> DurableExecutionPage
|
|
65
|
+
def to_h: () -> { executions: Array[DurableExecution], page: Integer, limit: Integer, total: Integer, has_more: bool }
|
|
66
|
+
| [K, V] () { (Symbol, Array[DurableExecution] | Integer | bool) -> [K, V] } -> Hash[K, V]
|
|
67
|
+
def deconstruct: () -> [Array[DurableExecution], Integer, Integer, Integer, bool]
|
|
68
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, Array[DurableExecution] | Integer | bool]
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
module Volcano
|
|
2
|
+
class Realtime
|
|
3
|
+
class ConnectContext < Data
|
|
4
|
+
attr_reader client: String?
|
|
5
|
+
|
|
6
|
+
def self.new: (String? client) -> ConnectContext
|
|
7
|
+
| (client: String?) -> ConnectContext
|
|
8
|
+
def self.[]: (String? client) -> ConnectContext
|
|
9
|
+
| (client: String?) -> ConnectContext
|
|
10
|
+
def self.members: () -> [:client]
|
|
11
|
+
|
|
12
|
+
def initialize: (client: String?) -> void
|
|
13
|
+
| (String? client) -> void
|
|
14
|
+
def members: () -> [:client]
|
|
15
|
+
def with: (?client: String?) -> ConnectContext
|
|
16
|
+
def to_h: () -> { client: String? }
|
|
17
|
+
| [K, V] () { (Symbol, String?) -> [K, V] } -> Hash[K, V]
|
|
18
|
+
def deconstruct: () -> [String?]
|
|
19
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, String?]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
class DisconnectContext < Data
|
|
23
|
+
attr_reader code: Integer?
|
|
24
|
+
attr_reader reason: String
|
|
25
|
+
|
|
26
|
+
def self.new: (Integer? code, String reason) -> DisconnectContext
|
|
27
|
+
| (code: Integer?, reason: String) -> DisconnectContext
|
|
28
|
+
def self.[]: (Integer? code, String reason) -> DisconnectContext
|
|
29
|
+
| (code: Integer?, reason: String) -> DisconnectContext
|
|
30
|
+
def self.members: () -> [:code, :reason]
|
|
31
|
+
|
|
32
|
+
def initialize: (code: Integer?, reason: String) -> void
|
|
33
|
+
| (Integer? code, String reason) -> void
|
|
34
|
+
def members: () -> [:code, :reason]
|
|
35
|
+
def with: (?code: Integer?, ?reason: String) -> DisconnectContext
|
|
36
|
+
def to_h: () -> { code: Integer?, reason: String }
|
|
37
|
+
| [K, V] () { (Symbol, Integer | String | nil) -> [K, V] } -> Hash[K, V]
|
|
38
|
+
def deconstruct: () -> [Integer?, String]
|
|
39
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, Integer | String | nil]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
class ErrorContext < Data
|
|
43
|
+
attr_reader code: String | Integer | nil
|
|
44
|
+
attr_reader message: String
|
|
45
|
+
attr_reader error: Exception
|
|
46
|
+
|
|
47
|
+
def self.new: (String | Integer | nil code, String message, Exception error) -> ErrorContext
|
|
48
|
+
| (code: String | Integer | nil, message: String, error: Exception) -> ErrorContext
|
|
49
|
+
def self.[]: (String | Integer | nil code, String message, Exception error) -> ErrorContext
|
|
50
|
+
| (code: String | Integer | nil, message: String, error: Exception) -> ErrorContext
|
|
51
|
+
def self.members: () -> [:code, :message, :error]
|
|
52
|
+
|
|
53
|
+
def initialize: (code: String | Integer | nil, message: String, error: Exception) -> void
|
|
54
|
+
| (String | Integer | nil code, String message, Exception error) -> void
|
|
55
|
+
def members: () -> [:code, :message, :error]
|
|
56
|
+
def with: (?code: String | Integer | nil, ?message: String, ?error: Exception) -> ErrorContext
|
|
57
|
+
def to_h: () -> { code: String | Integer | nil, message: String, error: Exception }
|
|
58
|
+
| [K, V] () { (Symbol, String | Integer | Exception | nil) -> [K, V] } -> Hash[K, V]
|
|
59
|
+
def deconstruct: () -> [String | Integer | nil, String, Exception]
|
|
60
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, String | Integer | Exception | nil]
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
class PresenceInfo < Data
|
|
64
|
+
attr_reader client: String
|
|
65
|
+
attr_reader user: String?
|
|
66
|
+
attr_reader data: Hash[String, json_value]
|
|
67
|
+
|
|
68
|
+
def self.new: (String client, ?String? user, ?Hash[String, json_value] data) -> PresenceInfo
|
|
69
|
+
| (client: String, ?user: String?, ?data: Hash[String, json_value]) -> PresenceInfo
|
|
70
|
+
def self.[]: (String client, ?String? user, ?Hash[String, json_value] data) -> PresenceInfo
|
|
71
|
+
| (client: String, ?user: String?, ?data: Hash[String, json_value]) -> PresenceInfo
|
|
72
|
+
def self.members: () -> [:client, :user, :data]
|
|
73
|
+
|
|
74
|
+
def initialize: (client: String, ?user: String?, ?data: Hash[String, json_value]) -> void
|
|
75
|
+
def members: () -> [:client, :user, :data]
|
|
76
|
+
def with: (?client: String, ?user: String?, ?data: Hash[String, json_value]) -> PresenceInfo
|
|
77
|
+
def to_h: () -> { client: String, user: String?, data: Hash[String, json_value] }
|
|
78
|
+
| [K, V] () { (Symbol, String | Hash[String, json_value] | nil) -> [K, V] } -> Hash[K, V]
|
|
79
|
+
def deconstruct: () -> [String, String?, Hash[String, json_value]]
|
|
80
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, String | Hash[String, json_value] | nil]
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: volcano-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kong
|
|
@@ -605,12 +605,14 @@ files:
|
|
|
605
605
|
- lib/volcano/version.rb
|
|
606
606
|
- sig/auth_session_records.rbs
|
|
607
607
|
- sig/connection_string.rbs
|
|
608
|
+
- sig/durable_records.rbs
|
|
608
609
|
- sig/email_change_result.rbs
|
|
609
610
|
- sig/errors.rbs
|
|
610
611
|
- sig/function_response.rbs
|
|
611
612
|
- sig/lock_records.rbs
|
|
612
613
|
- sig/log_responses.rbs
|
|
613
614
|
- sig/oauth_records.rbs
|
|
615
|
+
- sig/realtime_contexts.rbs
|
|
614
616
|
- sig/session.rbs
|
|
615
617
|
- sig/sign_up_result.rbs
|
|
616
618
|
- sig/storage_records.rbs
|