volcano-sdk 0.29.0 → 0.31.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/auth.rb +10 -47
- data/lib/volcano/auth_email_change.rb +1 -1
- data/lib/volcano/auth_get_user.rb +36 -77
- data/lib/volcano/auth_notification_dispatch.rb +16 -0
- data/lib/volcano/auth_oauth.rb +4 -0
- data/lib/volcano/auth_oauth_api.rb +8 -3
- data/lib/volcano/auth_oauth_sign_in.rb +1 -1
- data/lib/volcano/auth_oauth_token.rb +2 -0
- data/lib/volcano/auth_profile_fields.rb +98 -0
- data/lib/volcano/auth_refresh.rb +29 -32
- data/lib/volcano/auth_session_binding.rb +25 -0
- data/lib/volcano/auth_session_construction.rb +67 -0
- data/lib/volcano/auth_sessions.rb +9 -45
- data/lib/volcano/auth_sign_out.rb +22 -14
- data/lib/volcano/auth_sign_up.rb +2 -0
- data/lib/volcano/auth_state.rb +3 -2
- data/lib/volcano/auth_state_notifications.rb +7 -4
- data/lib/volcano/auth_update_user.rb +1 -1
- data/lib/volcano/session.rb +0 -73
- data/lib/volcano/session_credentials.rb +82 -0
- data/lib/volcano/session_operations.rb +13 -6
- data/lib/volcano/session_page_mapping.rb +89 -0
- data/lib/volcano/storage.rb +18 -34
- data/lib/volcano/storage_models.rb +18 -5
- data/lib/volcano/storage_mutations.rb +8 -3
- data/lib/volcano/storage_object_response.rb +88 -0
- data/lib/volcano/storage_response.rb +92 -0
- data/lib/volcano/storage_resumable_upload.rb +13 -2
- data/lib/volcano/storage_session_adapter.rb +61 -0
- data/lib/volcano/storage_transport_adapter.rb +73 -0
- data/lib/volcano/storage_upload_models.rb +51 -27
- data/lib/volcano/storage_upload_sessions.rb +1 -35
- data/lib/volcano/version.rb +1 -1
- data/lib/volcano.rb +18 -7
- data/sig/auth_credentials.rbs +15 -0
- data/sig/auth_oauth.rbs +16 -0
- data/sig/auth_profile.rbs +10 -0
- data/sig/auth_sessions.rbs +7 -0
- data/sig/auth_subscription.rbs +6 -0
- data/sig/session.rbs +1 -1
- data/sig/storage.rbs +29 -0
- data/sig/storage_records.rbs +3 -1
- data/sig/upload_session_status.rbs +3 -1
- metadata +17 -1
data/sig/session.rbs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Volcano
|
|
2
2
|
type json_value = nil | bool | Integer | Float | String | Array[json_value] | Hash[String, json_value]
|
|
3
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]
|
|
4
|
+
type session_user_input = Hash[String, json_value] | Hash[String, session_input] | Hash[Symbol, session_input] | Hash[String | Symbol, session_input]
|
|
5
5
|
|
|
6
6
|
class Session < Data
|
|
7
7
|
attr_reader access_token: String
|
data/sig/storage.rbs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module Volcano
|
|
2
|
+
interface _StorageReadable
|
|
3
|
+
def read: (?Integer length) -> String?
|
|
4
|
+
def is_a?: (Class) -> bool
|
|
5
|
+
def respond_to?: (Symbol) -> bool
|
|
6
|
+
def method: (Symbol) -> Method
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
class Storage
|
|
10
|
+
def from: (String bucket) -> StorageBucket
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class StorageBucket
|
|
14
|
+
def upload: (String path, String | _StorageReadable value, ?content_type: String?) -> Hash[String, Object?]
|
|
15
|
+
def download: (String path, ?range: String?) -> String
|
|
16
|
+
def list: (?String prefix, ?limit: Integer?, ?cursor: String?) -> StoragePage
|
|
17
|
+
def remove: (String | Array[String] paths) -> Array[String]
|
|
18
|
+
def move: (String from_path, String to_path) -> StorageObject
|
|
19
|
+
def copy: (String from_path, String to_path) -> StorageObject
|
|
20
|
+
def update_visibility: (String path, public: bool) -> StorageObject
|
|
21
|
+
|
|
22
|
+
def create_upload_session: (String path, total_size: Integer, ?content_type: String, ?part_size: Integer?) -> UploadSession
|
|
23
|
+
def upload_part: (String path, session_id: String, part_number: Integer, data: String | _StorageReadable) -> UploadPart
|
|
24
|
+
def complete_upload_session: (String path, session_id: String) -> StorageObject
|
|
25
|
+
def get_upload_session: (String path, session_id: String) -> UploadSessionStatus
|
|
26
|
+
def abort_upload_session: (String path, session_id: String) -> nil
|
|
27
|
+
def upload_resumable: (String path, String | _StorageReadable value, ?content_type: String, ?part_size: Integer?, ?on_progress: (^(Integer, Integer) -> void)?) -> StorageObject
|
|
28
|
+
end
|
|
29
|
+
end
|
data/sig/storage_records.rbs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
module Volcano
|
|
2
|
+
type storage_object_attribute = String | Integer | bool | Hash[String, json_value] | Time | nil
|
|
3
|
+
|
|
2
4
|
class StorageObject < Data
|
|
3
5
|
attr_reader id: String
|
|
4
6
|
attr_reader bucket_id: String
|
|
@@ -19,7 +21,7 @@ module Volcano
|
|
|
19
21
|
| (id: String, bucket_id: String, name: String, size: Integer, mime_type: String, is_public: bool, ?owner_id: String?, ?etag: String?, ?metadata: Hash[String, json_value]?, ?created_at: Time?, ?updated_at: Time?, ?public_url: String?) -> StorageObject
|
|
20
22
|
def self.members: () -> [:id, :bucket_id, :name, :size, :mime_type, :is_public, :owner_id, :etag, :metadata, :created_at, :updated_at, :public_url]
|
|
21
23
|
|
|
22
|
-
def initialize: (
|
|
24
|
+
def initialize: (**storage_object_attribute attributes) -> void
|
|
23
25
|
def members: () -> [:id, :bucket_id, :name, :size, :mime_type, :is_public, :owner_id, :etag, :metadata, :created_at, :updated_at, :public_url]
|
|
24
26
|
def with: (?id: String, ?bucket_id: String, ?name: String, ?size: Integer, ?mime_type: String, ?is_public: bool, ?owner_id: String?, ?etag: String?, ?metadata: Hash[String, json_value]?, ?created_at: Time?, ?updated_at: Time?, ?public_url: String?) -> StorageObject
|
|
25
27
|
def to_h: () -> { id: String, bucket_id: String, name: String, size: Integer, mime_type: String, is_public: bool, owner_id: String?, etag: String?, metadata: Hash[String, json_value]?, created_at: Time?, updated_at: Time?, public_url: String? }
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
module Volcano
|
|
2
|
+
type upload_status_attribute = String | Integer | Array[UploadPart] | Time
|
|
3
|
+
|
|
2
4
|
class UploadSessionStatus < Data
|
|
3
5
|
attr_reader session_id: String
|
|
4
6
|
attr_reader status: String
|
|
@@ -19,7 +21,7 @@ module Volcano
|
|
|
19
21
|
| (session_id: String, status: String, path: String, content_type: String, total_size: Integer, part_size: Integer, total_parts: Integer, parts_uploaded: Integer, bytes_uploaded: Integer, parts: Array[UploadPart], expires_at: Time, created_at: Time) -> UploadSessionStatus
|
|
20
22
|
def self.members: () -> [:session_id, :status, :path, :content_type, :total_size, :part_size, :total_parts, :parts_uploaded, :bytes_uploaded, :parts, :expires_at, :created_at]
|
|
21
23
|
|
|
22
|
-
def initialize: (
|
|
24
|
+
def initialize: (**upload_status_attribute attributes) -> void
|
|
23
25
|
def members: () -> [:session_id, :status, :path, :content_type, :total_size, :part_size, :total_parts, :parts_uploaded, :bytes_uploaded, :parts, :expires_at, :created_at]
|
|
24
26
|
def with: (?session_id: String, ?status: String, ?path: String, ?content_type: String, ?total_size: Integer, ?part_size: Integer, ?total_parts: Integer, ?parts_uploaded: Integer, ?bytes_uploaded: Integer, ?parts: Array[UploadPart], ?expires_at: Time, ?created_at: Time) -> UploadSessionStatus
|
|
25
27
|
def to_h: () -> { session_id: String, status: String, path: String, content_type: String, total_size: Integer, part_size: Integer, total_parts: Integer, parts_uploaded: Integer, bytes_uploaded: Integer, parts: Array[UploadPart], expires_at: Time, created_at: Time }
|
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.31.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kong
|
|
@@ -136,14 +136,18 @@ files:
|
|
|
136
136
|
- lib/volcano/auth_email_change.rb
|
|
137
137
|
- lib/volcano/auth_get_user.rb
|
|
138
138
|
- lib/volcano/auth_hosted.rb
|
|
139
|
+
- lib/volcano/auth_notification_dispatch.rb
|
|
139
140
|
- lib/volcano/auth_oauth.rb
|
|
140
141
|
- lib/volcano/auth_oauth_api.rb
|
|
141
142
|
- lib/volcano/auth_oauth_sign_in.rb
|
|
142
143
|
- lib/volcano/auth_oauth_token.rb
|
|
144
|
+
- lib/volcano/auth_profile_fields.rb
|
|
143
145
|
- lib/volcano/auth_refresh.rb
|
|
144
146
|
- lib/volcano/auth_resend_confirmation.rb
|
|
145
147
|
- lib/volcano/auth_reset_password.rb
|
|
146
148
|
- lib/volcano/auth_reset_password_for_email.rb
|
|
149
|
+
- lib/volcano/auth_session_binding.rb
|
|
150
|
+
- lib/volcano/auth_session_construction.rb
|
|
147
151
|
- lib/volcano/auth_sessions.rb
|
|
148
152
|
- lib/volcano/auth_sign_out.rb
|
|
149
153
|
- lib/volcano/auth_sign_up.rb
|
|
@@ -592,19 +596,30 @@ files:
|
|
|
592
596
|
- lib/volcano/realtime/reconnect.rb
|
|
593
597
|
- lib/volcano/redaction.rb
|
|
594
598
|
- lib/volcano/session.rb
|
|
599
|
+
- lib/volcano/session_credentials.rb
|
|
595
600
|
- lib/volcano/session_operations.rb
|
|
601
|
+
- lib/volcano/session_page_mapping.rb
|
|
596
602
|
- lib/volcano/sign_up_result.rb
|
|
597
603
|
- lib/volcano/storage.rb
|
|
598
604
|
- lib/volcano/storage_models.rb
|
|
599
605
|
- lib/volcano/storage_mutations.rb
|
|
606
|
+
- lib/volcano/storage_object_response.rb
|
|
600
607
|
- lib/volcano/storage_public_url.rb
|
|
608
|
+
- lib/volcano/storage_response.rb
|
|
601
609
|
- lib/volcano/storage_resumable_upload.rb
|
|
610
|
+
- lib/volcano/storage_session_adapter.rb
|
|
611
|
+
- lib/volcano/storage_transport_adapter.rb
|
|
602
612
|
- lib/volcano/storage_upload_models.rb
|
|
603
613
|
- lib/volcano/storage_upload_sessions.rb
|
|
604
614
|
- lib/volcano/transport.rb
|
|
605
615
|
- lib/volcano/user.rb
|
|
606
616
|
- lib/volcano/version.rb
|
|
617
|
+
- sig/auth_credentials.rbs
|
|
618
|
+
- sig/auth_oauth.rbs
|
|
619
|
+
- sig/auth_profile.rbs
|
|
607
620
|
- sig/auth_session_records.rbs
|
|
621
|
+
- sig/auth_sessions.rbs
|
|
622
|
+
- sig/auth_subscription.rbs
|
|
608
623
|
- sig/connection_string.rbs
|
|
609
624
|
- sig/durable_records.rbs
|
|
610
625
|
- sig/email_change_result.rbs
|
|
@@ -618,6 +633,7 @@ files:
|
|
|
618
633
|
- sig/realtime_postgres_change.rbs
|
|
619
634
|
- sig/session.rbs
|
|
620
635
|
- sig/sign_up_result.rbs
|
|
636
|
+
- sig/storage.rbs
|
|
621
637
|
- sig/storage_public_url.rbs
|
|
622
638
|
- sig/storage_records.rbs
|
|
623
639
|
- sig/upload_records.rbs
|