volcano-sdk 0.23.0 → 0.24.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c3d6223d771472b357f4b055afd4c62f063b99ffb9e5ed89a7387f5e3521b68
4
- data.tar.gz: d4ca2e76b406d5e677168295e12e6ecd13b85f91945615463b612c82f4964fd6
3
+ metadata.gz: cd1e467328aba311e7c1f84c071da701f5e2d6672f9bd46d1049062cdc4b86bf
4
+ data.tar.gz: 0f75ab987a6a007f982c0803bf7bbfb6426d14b623e695e9f9a84d1493185324
5
5
  SHA512:
6
- metadata.gz: f1fbcdc38baae780ac2b8b0baa756d254bbdbf859afcc86999b0ad76362450ff997b1c4e10239c72712fa5b6ea0439021dcb842083f6b469dbbb6062c7c1a82f
7
- data.tar.gz: 2d1955462f7461166837af44ef1b2767d86d2e975c8fff74f9ba9f14edd285462662e2fb6ed8dbba6ed3bcbadb90804aa22c243482fcd65f7d3a925b4e55be8f
6
+ metadata.gz: a0ba753793796b92395750c4a8f12011d92da451e0ea7c49a3aafac675ddf04ae20b8aafaeb3ed00cc9a551e9ae248fb9955b6c4e44f67e81898d140e7238d92
7
+ data.tar.gz: 964feff207356bfa3a31857d65f47f5264aba71e3ee89694346254c6d524600582c3b1f50631c6c5a41243d06e957c66eb8cc66ef4f8c03b9ccfadd7cacd3d13
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Volcano
4
- VERSION = '0.23.0'
4
+ VERSION = '0.24.0'
5
5
  end
@@ -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
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.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kong
@@ -605,6 +605,7 @@ 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