reacon-sdk 1.0.0.beta.1 → 2.0.1.beta.1

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: 714b105479f3483613b971f985d9676a1af3527ec8c20f7fc65ab62d494193ae
4
- data.tar.gz: effdfb4eb593249002d80cfba358be5969c3c5605ba400488b83b2c01621161f
3
+ metadata.gz: aec062b5b66a133e302808d728d453a32e0c39a7713546ecf77795be61bc5773
4
+ data.tar.gz: 26fe5a0d883f9e3c4c95634aed8039fbe129eeff8404b5c939231488a85c2b01
5
5
  SHA512:
6
- metadata.gz: d06b4043457a37c178a2c91cd81b372c8b04b04945c80a3ed6062cddbc6fb2cff460591db65c6eb3a54d1e58fbdc682e703656d3cc487c7961fbdbb24a137351
7
- data.tar.gz: ad02c13854483db3e9b6f897a8b6b706627959e3444a89c334910e7d204b5d978ad10b59428b76029cdf706ac6e21b8447b0460836927a4d814823514a088800
6
+ metadata.gz: 1dcd8becd0a0f8356932737bb66f903f4a3ee13b76d9c1e40d2d0c08cd88f3ea87fd6c4238a564eaad7b6f0cd25cbdce7d42a71da018a237b37a014a8f0ec9e7
7
+ data.tar.gz: 216cf21eb7bad143a526e7ef97483b2e690146a9809c1940f541bb0bd4f42e946b2e4e85ba9ccee3d91fbdd965543c5120a13d0dc9406c54e7b72418fec42939
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 0.1.0
10
- - Package version: 1.0.0.beta.1
10
+ - Package version: 2.0.1.beta.1
11
11
  - Generator version: 7.25.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
 
@@ -24,16 +24,16 @@ gem build reacon-sdk.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./reacon-sdk-1.0.0.beta.1.gem
27
+ gem install ./reacon-sdk-2.0.1.beta.1.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./reacon-sdk-1.0.0.beta.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./reacon-sdk-2.0.1.beta.1.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'reacon-sdk', '~> 1.0.0.beta.1'
36
+ gem 'reacon-sdk', '~> 2.0.1.beta.1'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -281,6 +281,7 @@ Class | Method | HTTP request | Description
281
281
  - [Reacon::AirtableMappingOptionsResponseOptionsTablesInner](docs/AirtableMappingOptionsResponseOptionsTablesInner.md)
282
282
  - [Reacon::AirtableMappingOptionsResponseOptionsTablesInnerFieldsInner](docs/AirtableMappingOptionsResponseOptionsTablesInnerFieldsInner.md)
283
283
  - [Reacon::ApiKeyIdentity](docs/ApiKeyIdentity.md)
284
+ - [Reacon::ApiValidationIssue](docs/ApiValidationIssue.md)
284
285
  - [Reacon::AutomationHookCreated](docs/AutomationHookCreated.md)
285
286
  - [Reacon::BatchVerificationError](docs/BatchVerificationError.md)
286
287
  - [Reacon::BatchVerificationItem](docs/BatchVerificationItem.md)
@@ -910,3 +911,7 @@ Authentication schemes defined for the API:
910
911
 
911
912
 
912
913
  The service URL is fixed to https://api.reacon.io. SDKs do not accept a service URL override.
914
+
915
+ ## Retrying requests
916
+
917
+ A timeout or dropped connection does not prove that the server rejected a request. Before retrying a write or credit-consuming operation, check its outcome. Only retry when the operation is safe to repeat; when present, respect the Retry-After response header.
@@ -0,0 +1,157 @@
1
+ =begin
2
+ #Reacon API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.25.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Reacon
17
+ # Validation issue details. code identifies the validation rule and message explains the failure. Additional rule-specific properties, including the field path, are preserved.
18
+ class ApiValidationIssue < ApiModelBase
19
+ attr_accessor :code
20
+
21
+ attr_accessor :message
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'code' => :'code',
27
+ :'message' => :'message'
28
+ }
29
+ end
30
+
31
+ # Returns attribute mapping this model knows about
32
+ def self.acceptable_attribute_map
33
+ attribute_map
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ acceptable_attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'code' => :'String',
45
+ :'message' => :'String'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Reacon::ApiValidationIssue` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ acceptable_attribute_map = self.class.acceptable_attribute_map
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!acceptable_attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Reacon::ApiValidationIssue`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'code')
72
+ self.code = attributes[:'code']
73
+ end
74
+
75
+ if attributes.key?(:'message')
76
+ self.message = attributes[:'message']
77
+ end
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properties with the reasons
82
+ def list_invalid_properties
83
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
84
+ invalid_properties = Array.new
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ warn '[DEPRECATED] the `valid?` method is obsolete'
92
+ true
93
+ end
94
+
95
+ # Checks equality by comparing each attribute.
96
+ # @param [Object] Object to be compared
97
+ def ==(o)
98
+ return true if self.equal?(o)
99
+ self.class == o.class &&
100
+ code == o.code &&
101
+ message == o.message
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Integer] Hash code
112
+ def hash
113
+ [code, message].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def self.build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ attributes = attributes.transform_keys(&:to_sym)
122
+ transformed_hash = {}
123
+ openapi_types.each_pair do |key, type|
124
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
125
+ transformed_hash["#{key}"] = nil
126
+ elsif type =~ /\AArray<(.*)>/i
127
+ # check to ensure the input is an array given that the attribute
128
+ # is documented as an array but the input is not
129
+ if attributes[attribute_map[key]].is_a?(Array)
130
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
131
+ end
132
+ elsif !attributes[attribute_map[key]].nil?
133
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
134
+ end
135
+ end
136
+ new(transformed_hash)
137
+ end
138
+
139
+ # Returns the object in the form of hash
140
+ # @return [Hash] Returns the object in the form of hash
141
+ def to_hash
142
+ hash = {}
143
+ self.class.attribute_map.each_pair do |attr, param|
144
+ value = self.send(attr)
145
+ if value.nil?
146
+ is_nullable = self.class.openapi_nullable.include?(attr)
147
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
148
+ end
149
+
150
+ hash[param] = _to_hash(value)
151
+ end
152
+ hash
153
+ end
154
+
155
+ end
156
+
157
+ end
@@ -64,7 +64,7 @@ module Reacon
64
64
  :'code' => :'String',
65
65
  :'details' => :'String',
66
66
  :'error' => :'String',
67
- :'issues' => :'Array<Hash<String, Object>>',
67
+ :'issues' => :'Array<ApiValidationIssue>',
68
68
  :'message' => :'String',
69
69
  :'remaining_credits' => :'Float',
70
70
  :'request_id' => :'String',
@@ -11,5 +11,5 @@ Generator version: 7.25.0
11
11
  =end
12
12
 
13
13
  module Reacon
14
- VERSION = '1.0.0.beta.1'
14
+ VERSION = '2.0.1.beta.1'
15
15
  end
data/lib/reacon-sdk.rb CHANGED
@@ -24,6 +24,7 @@ require 'reacon-sdk/models/airtable_mapping_options_response_options_bases_inner
24
24
  require 'reacon-sdk/models/airtable_mapping_options_response_options_tables_inner'
25
25
  require 'reacon-sdk/models/airtable_mapping_options_response_options_tables_inner_fields_inner'
26
26
  require 'reacon-sdk/models/api_key_identity'
27
+ require 'reacon-sdk/models/api_validation_issue'
27
28
  require 'reacon-sdk/models/automation_hook_created'
28
29
  require 'reacon-sdk/models/batch_verification_error'
29
30
  require 'reacon-sdk/models/batch_verification_item'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reacon-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.1
4
+ version: 2.0.1.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reacon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-01 00:00:00.000000000 Z
11
+ date: 2026-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: event_stream_parser
@@ -168,6 +168,7 @@ files:
168
168
  - lib/reacon-sdk/models/airtable_mapping_options_response_options_tables_inner.rb
169
169
  - lib/reacon-sdk/models/airtable_mapping_options_response_options_tables_inner_fields_inner.rb
170
170
  - lib/reacon-sdk/models/api_key_identity.rb
171
+ - lib/reacon-sdk/models/api_validation_issue.rb
171
172
  - lib/reacon-sdk/models/automation_hook_created.rb
172
173
  - lib/reacon-sdk/models/batch_verification_error.rb
173
174
  - lib/reacon-sdk/models/batch_verification_item.rb