volcano-sdk 0.13.0 → 0.15.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/email_change_result.rbs +21 -0
- data/sig/session.rbs +26 -0
- data/sig/sign_up_result.rbs +21 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82b74bbd62ab182ee21a8a77a9f52061424ba5455d670a08009d38ca21e6d6bd
|
|
4
|
+
data.tar.gz: 3b4e5a353051689d6edd6818cd6be0495424f8e381e4407511e3171bb1ea17a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b2b77902d0e6b5d01058db625d2eba38814b41fcae7a296596d7c6811bcc39a2ae824af3caa15bc516c67d4c049bdb56b3b187c2a4690f2ea1580662df5b41d
|
|
7
|
+
data.tar.gz: f54b0bbdda9dfb957e41489e2ac2e917b1abd101190f7f9834aa6e848cfcd1a284eb52722a42bb96adc2a89caf5fa3e9c8c08bcc4d5da2fa7c427c66891894d2
|
data/lib/volcano/version.rb
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module Volcano
|
|
2
|
+
class EmailChangeResult < Data
|
|
3
|
+
attr_reader message: String?
|
|
4
|
+
attr_reader new_email: String?
|
|
5
|
+
|
|
6
|
+
def self.new: (String? message, String? new_email) -> EmailChangeResult
|
|
7
|
+
| (message: String?, new_email: String?) -> EmailChangeResult
|
|
8
|
+
def self.[]: (String? message, String? new_email) -> EmailChangeResult
|
|
9
|
+
| (message: String?, new_email: String?) -> EmailChangeResult
|
|
10
|
+
def self.members: () -> [:message, :new_email]
|
|
11
|
+
|
|
12
|
+
def initialize: (String? message, String? new_email) -> void
|
|
13
|
+
| (message: String?, new_email: String?) -> void
|
|
14
|
+
def members: () -> [:message, :new_email]
|
|
15
|
+
def with: (?message: String?, ?new_email: String?) -> EmailChangeResult
|
|
16
|
+
def to_h: () -> { message: String?, new_email: String? }
|
|
17
|
+
| [K, V] () { (Symbol, String?) -> [K, V] } -> Hash[K, V]
|
|
18
|
+
def deconstruct: () -> [String?, String?]
|
|
19
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, String?]
|
|
20
|
+
end
|
|
21
|
+
end
|
data/sig/session.rbs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Volcano
|
|
2
|
+
type json_value = nil | bool | Integer | Float | String | Array[json_value] | Hash[String, json_value]
|
|
3
|
+
type session_input = nil | bool | Integer | Float | String | Symbol | Time | Array[session_input] | Hash[String | Symbol, session_input]
|
|
4
|
+
type session_user_input = Hash[String, session_input] | Hash[Symbol, session_input] | Hash[String | Symbol, session_input]
|
|
5
|
+
|
|
6
|
+
class Session < Data
|
|
7
|
+
attr_reader access_token: String
|
|
8
|
+
attr_reader refresh_token: String?
|
|
9
|
+
attr_reader user_id: String?
|
|
10
|
+
attr_reader user: Hash[String, json_value]?
|
|
11
|
+
|
|
12
|
+
def self.new: (String access_token, ?String? refresh_token, ?String? user_id, ?session_user_input? user) -> Session
|
|
13
|
+
| (access_token: String, ?refresh_token: String?, ?user_id: String?, ?user: session_user_input?) -> Session
|
|
14
|
+
def self.[]: (String access_token, ?String? refresh_token, ?String? user_id, ?session_user_input? user) -> Session
|
|
15
|
+
| (access_token: String, ?refresh_token: String?, ?user_id: String?, ?user: session_user_input?) -> Session
|
|
16
|
+
def self.members: () -> [:access_token, :refresh_token, :user_id, :user]
|
|
17
|
+
|
|
18
|
+
def initialize: (access_token: String, ?refresh_token: String?, ?user_id: String?, ?user: session_user_input?) -> void
|
|
19
|
+
def members: () -> [:access_token, :refresh_token, :user_id, :user]
|
|
20
|
+
def with: (?access_token: String, ?refresh_token: String?, ?user_id: String?, ?user: session_user_input?) -> Session
|
|
21
|
+
def to_h: () -> { access_token: String, refresh_token: String?, user_id: String?, user: Hash[String, json_value]? }
|
|
22
|
+
| [K, V] () { (Symbol, String | Hash[String, json_value] | nil) -> [K, V] } -> Hash[K, V]
|
|
23
|
+
def deconstruct: () -> [String, String?, String?, Hash[String, json_value]?]
|
|
24
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, String | Hash[String, json_value] | nil]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module Volcano
|
|
2
|
+
class SignUpResult < Data
|
|
3
|
+
attr_reader confirmation_required: bool
|
|
4
|
+
attr_reader message: String
|
|
5
|
+
attr_reader session: Session?
|
|
6
|
+
|
|
7
|
+
def self.new: (bool confirmation_required, String message, ?Session? session) -> SignUpResult
|
|
8
|
+
| (confirmation_required: bool, message: String, ?session: Session?) -> SignUpResult
|
|
9
|
+
def self.[]: (bool confirmation_required, String message, ?Session? session) -> SignUpResult
|
|
10
|
+
| (confirmation_required: bool, message: String, ?session: Session?) -> SignUpResult
|
|
11
|
+
def self.members: () -> [:confirmation_required, :message, :session]
|
|
12
|
+
|
|
13
|
+
def initialize: (confirmation_required: bool, message: String, ?session: Session?) -> void
|
|
14
|
+
def members: () -> [:confirmation_required, :message, :session]
|
|
15
|
+
def with: (?confirmation_required: bool, ?message: String, ?session: Session?) -> SignUpResult
|
|
16
|
+
def to_h: () -> { confirmation_required: bool, message: String, session: Session? }
|
|
17
|
+
| [K, V] () { (Symbol, bool | String | Session?) -> [K, V] } -> Hash[K, V]
|
|
18
|
+
def deconstruct: () -> [bool, String, Session?]
|
|
19
|
+
def deconstruct_keys: (Array[Symbol]?) -> Hash[Symbol, bool | String | Session?]
|
|
20
|
+
end
|
|
21
|
+
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.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kong
|
|
@@ -604,7 +604,10 @@ files:
|
|
|
604
604
|
- lib/volcano/user.rb
|
|
605
605
|
- lib/volcano/version.rb
|
|
606
606
|
- sig/connection_string.rbs
|
|
607
|
+
- sig/email_change_result.rbs
|
|
607
608
|
- sig/errors.rbs
|
|
609
|
+
- sig/session.rbs
|
|
610
|
+
- sig/sign_up_result.rbs
|
|
608
611
|
homepage: https://github.com/Kong/volcano-sdk-ruby
|
|
609
612
|
licenses:
|
|
610
613
|
- Apache-2.0
|