volcano-sdk 0.24.0 → 0.26.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/realtime_contexts.rbs +83 -0
- data/sig/realtime_postgres_change.rbs +30 -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: 4e26069349b6225f4e5f73670a8dcfabcdbefa0cc82d10efc942ba36cc49531f
|
|
4
|
+
data.tar.gz: ad8fa6b001a0b8efb649209682abadafbcf1b037d4d860fa284e839896e9e5ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76e130d7e4c62e4936582c3f1b55f78aeb954ca997a3082969ce9a7037a808b2d5d53ed8e734ed05be04a1b45f666398a7e39cfe067bfbe3d0eed564b8ef48e1
|
|
7
|
+
data.tar.gz: 3135ff1067f5968ee19502b35827c79ace462dd72a276288fec97b223a2e5a7b02daee4c6c1b89dbbc0ebae02d466425a7c71f1fef31bca539feb104ffaafed9
|
data/lib/volcano/version.rb
CHANGED
|
@@ -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
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Volcano
|
|
2
|
+
class Realtime
|
|
3
|
+
class PostgresChange < Data
|
|
4
|
+
attr_reader type: String
|
|
5
|
+
attr_reader schema: String
|
|
6
|
+
attr_reader table: String
|
|
7
|
+
attr_reader record: Hash[String, json_value]?
|
|
8
|
+
attr_reader old_record: Hash[String, json_value]?
|
|
9
|
+
attr_reader columns: Array[json_value]?
|
|
10
|
+
attr_reader timestamp: String
|
|
11
|
+
attr_reader id: json_value
|
|
12
|
+
attr_reader mode: String?
|
|
13
|
+
|
|
14
|
+
def self.new: (String type, String schema, String table, Hash[String, json_value]? record, Hash[String, json_value]? old_record, Array[json_value]? columns, String timestamp, json_value id, String? mode) -> PostgresChange
|
|
15
|
+
| (type: String, schema: String, table: String, timestamp: String, ?record: Hash[String, json_value]?, ?old_record: Hash[String, json_value]?, ?columns: Array[json_value]?, ?id: json_value, ?mode: String?) -> PostgresChange
|
|
16
|
+
def self.[]: (String type, String schema, String table, Hash[String, json_value]? record, Hash[String, json_value]? old_record, Array[json_value]? columns, String timestamp, json_value id, String? mode) -> PostgresChange
|
|
17
|
+
| (type: String, schema: String, table: String, timestamp: String, ?record: Hash[String, json_value]?, ?old_record: Hash[String, json_value]?, ?columns: Array[json_value]?, ?id: json_value, ?mode: String?) -> PostgresChange
|
|
18
|
+
def self.members: () -> [:type, :schema, :table, :record, :old_record, :columns, :timestamp, :id, :mode]
|
|
19
|
+
|
|
20
|
+
def initialize: (type: String, schema: String, table: String, timestamp: String, ?record: Hash[String, json_value]?, ?old_record: Hash[String, json_value]?, ?columns: Array[json_value]?, ?id: json_value, ?mode: String?) -> void
|
|
21
|
+
| (String type, String schema, String table, Hash[String, json_value]? record, Hash[String, json_value]? old_record, Array[json_value]? columns, String timestamp, json_value id, String? mode) -> void
|
|
22
|
+
def members: () -> [:type, :schema, :table, :record, :old_record, :columns, :timestamp, :id, :mode]
|
|
23
|
+
def with: (?type: String, ?schema: String, ?table: String, ?record: Hash[String, json_value]?, ?old_record: Hash[String, json_value]?, ?columns: Array[json_value]?, ?timestamp: String, ?id: json_value, ?mode: String?) -> PostgresChange
|
|
24
|
+
def to_h: () -> { type: String, schema: String, table: String, record: Hash[String, json_value]?, old_record: Hash[String, json_value]?, columns: Array[json_value]?, timestamp: String, id: json_value, mode: String? }
|
|
25
|
+
| [K, V] () { (Symbol, json_value) -> [K, V] } -> Hash[K, V]
|
|
26
|
+
def deconstruct: () -> [String, String, String, Hash[String, json_value]?, Hash[String, json_value]?, Array[json_value]?, String, json_value, String?]
|
|
27
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, json_value]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
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.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kong
|
|
@@ -612,6 +612,8 @@ files:
|
|
|
612
612
|
- sig/lock_records.rbs
|
|
613
613
|
- sig/log_responses.rbs
|
|
614
614
|
- sig/oauth_records.rbs
|
|
615
|
+
- sig/realtime_contexts.rbs
|
|
616
|
+
- sig/realtime_postgres_change.rbs
|
|
615
617
|
- sig/session.rbs
|
|
616
618
|
- sig/sign_up_result.rbs
|
|
617
619
|
- sig/storage_records.rbs
|