carbon_ruby_sdk 0.1.15 → 0.1.16

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: 3fd28e7eb718e7a438c849d5d9820cb60fc73d8cdacfe0ef13f30fb6e97c67b3
4
- data.tar.gz: a0b09df8026bb03a9e9549a01b09929a7c1b98be45579b399e54811ac21363f1
3
+ metadata.gz: 1b9c59c27e714c201ab1212acc804208dfaedf059bad3f9d5043f51ed9ec9feb
4
+ data.tar.gz: eef702a430ef7bee9eb012cb5041e0edf25edfabe42716c9149c06f11c01e225
5
5
  SHA512:
6
- metadata.gz: 8a75f3914ec5e430b9c1ea7fd75367b34ff96bc516c434146c36c049c275747f852d1c7a60d93dd32acb4321806ce80e5436f873b3fb21df43f8d7292da92ed0
7
- data.tar.gz: 723037b41f5609aef0d2af2e410bf6cce42065ec5c5c8125e59bbc89d26a0bbd3b26af6c090ee4bfa41094c96aa563ad704fdea588e29c3110a3acdebe99c8d4
6
+ metadata.gz: c05fe1d2089fafbf63df59c8eb207c0ebc8586bcc4c77fc280834f189f9eb607557e13af512f2f7a43baf91fc3a9c64b490d0d95bae29857a6e833aea04f3ea3
7
+ data.tar.gz: f90d950b0c378bd7b732be4775c92f775d368674c033d9abf8d06930cc13ccea1b43e920e3d13756175872d470da72bea1d803e5c73ffe0636ed584966e3e337
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.1.14)
4
+ carbon_ruby_sdk (0.1.15)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect external data to LLMs, no matter the source.
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v0.1.15-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.15)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.16-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.16)
10
10
 
11
11
  </div>
12
12
 
@@ -80,7 +80,7 @@ Connect external data to LLMs, no matter the source.
80
80
  Add to Gemfile:
81
81
 
82
82
  ```ruby
83
- gem 'carbon_ruby_sdk', '~> 0.1.15'
83
+ gem 'carbon_ruby_sdk', '~> 0.1.16'
84
84
  ```
85
85
 
86
86
  ## Getting Started<a id="getting-started"></a>
@@ -1888,6 +1888,7 @@ result = carbon.integrations.sync_gmail(
1888
1888
  prepend_filename_to_chunks: false,
1889
1889
  data_source_id: 1,
1890
1890
  request_id: "string_example",
1891
+ sync_attachments: false,
1891
1892
  )
1892
1893
  p result
1893
1894
  ```
@@ -1904,6 +1905,7 @@ p result
1904
1905
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1905
1906
  ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
1906
1907
  ##### request_id: `String`<a id="request_id-string"></a>
1908
+ ##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
1907
1909
  #### 🔄 Return<a id="🔄-return"></a>
1908
1910
 
1909
1911
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -1995,6 +1997,7 @@ result = carbon.integrations.sync_outlook(
1995
1997
  prepend_filename_to_chunks: false,
1996
1998
  data_source_id: 1,
1997
1999
  request_id: "string_example",
2000
+ sync_attachments: false,
1998
2001
  )
1999
2002
  p result
2000
2003
  ```
@@ -2012,6 +2015,7 @@ p result
2012
2015
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
2013
2016
  ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
2014
2017
  ##### request_id: `String`<a id="request_id-string"></a>
2018
+ ##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
2015
2019
  #### 🔄 Return<a id="🔄-return"></a>
2016
2020
 
2017
2021
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -2261,6 +2265,7 @@ result = carbon.users.update_users(
2261
2265
  auto_sync_enabled_sources: [
2262
2266
  "string_example"
2263
2267
  ],
2268
+ file_upload_limit: 1,
2264
2269
  )
2265
2270
  p result
2266
2271
  ```
@@ -2271,6 +2276,10 @@ p result
2271
2276
  List of organization supplied user IDs
2272
2277
 
2273
2278
  ##### auto_sync_enabled_sources: [`AutoSyncEnabledSourcesProperty`](./lib/carbon_ruby_sdk/models/auto_sync_enabled_sources_property.rb)<a id="auto_sync_enabled_sources-autosyncenabledsourcespropertylibcarbon_ruby_sdkmodelsauto_sync_enabled_sources_propertyrb"></a>
2279
+ ##### file_upload_limit: `Integer`<a id="file_upload_limit-integer"></a>
2280
+ Custom file upload limit for the user. If set, then the user will not be allowed
2281
+ to upload more files than this limit
2282
+
2274
2283
  #### 🔄 Return<a id="🔄-return"></a>
2275
2284
 
2276
2285
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -1869,9 +1869,10 @@ module Carbon
1869
1869
  # @param prepend_filename_to_chunks [Boolean]
1870
1870
  # @param data_source_id [Integer]
1871
1871
  # @param request_id [String]
1872
+ # @param sync_attachments [Boolean]
1872
1873
  # @param body [GmailSyncInput]
1873
1874
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1874
- def sync_gmail(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, extra: {})
1875
+ def sync_gmail(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
1875
1876
  _body = {}
1876
1877
  _body[:tags] = tags if tags != SENTINEL
1877
1878
  _body[:filters] = filters if filters != SENTINEL
@@ -1883,6 +1884,7 @@ module Carbon
1883
1884
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
1884
1885
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
1885
1886
  _body[:request_id] = request_id if request_id != SENTINEL
1887
+ _body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
1886
1888
  gmail_sync_input = _body
1887
1889
  api_response = sync_gmail_with_http_info_impl(gmail_sync_input, extra)
1888
1890
  api_response.data
@@ -1951,9 +1953,10 @@ module Carbon
1951
1953
  # @param prepend_filename_to_chunks [Boolean]
1952
1954
  # @param data_source_id [Integer]
1953
1955
  # @param request_id [String]
1956
+ # @param sync_attachments [Boolean]
1954
1957
  # @param body [GmailSyncInput]
1955
1958
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1956
- def sync_gmail_with_http_info(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, extra: {})
1959
+ def sync_gmail_with_http_info(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
1957
1960
  _body = {}
1958
1961
  _body[:tags] = tags if tags != SENTINEL
1959
1962
  _body[:filters] = filters if filters != SENTINEL
@@ -1965,6 +1968,7 @@ module Carbon
1965
1968
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
1966
1969
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
1967
1970
  _body[:request_id] = request_id if request_id != SENTINEL
1971
+ _body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
1968
1972
  gmail_sync_input = _body
1969
1973
  sync_gmail_with_http_info_impl(gmail_sync_input, extra)
1970
1974
  end
@@ -2112,9 +2116,10 @@ module Carbon
2112
2116
  # @param prepend_filename_to_chunks [Boolean]
2113
2117
  # @param data_source_id [Integer]
2114
2118
  # @param request_id [String]
2119
+ # @param sync_attachments [Boolean]
2115
2120
  # @param body [OutlookSyncInput]
2116
2121
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2117
- def sync_outlook(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, extra: {})
2122
+ def sync_outlook(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
2118
2123
  _body = {}
2119
2124
  _body[:tags] = tags if tags != SENTINEL
2120
2125
  _body[:folder] = folder if folder != SENTINEL
@@ -2127,6 +2132,7 @@ module Carbon
2127
2132
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
2128
2133
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
2129
2134
  _body[:request_id] = request_id if request_id != SENTINEL
2135
+ _body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
2130
2136
  outlook_sync_input = _body
2131
2137
  api_response = sync_outlook_with_http_info_impl(outlook_sync_input, extra)
2132
2138
  api_response.data
@@ -2206,9 +2212,10 @@ module Carbon
2206
2212
  # @param prepend_filename_to_chunks [Boolean]
2207
2213
  # @param data_source_id [Integer]
2208
2214
  # @param request_id [String]
2215
+ # @param sync_attachments [Boolean]
2209
2216
  # @param body [OutlookSyncInput]
2210
2217
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2211
- def sync_outlook_with_http_info(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, extra: {})
2218
+ def sync_outlook_with_http_info(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
2212
2219
  _body = {}
2213
2220
  _body[:tags] = tags if tags != SENTINEL
2214
2221
  _body[:folder] = folder if folder != SENTINEL
@@ -2221,6 +2228,7 @@ module Carbon
2221
2228
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
2222
2229
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
2223
2230
  _body[:request_id] = request_id if request_id != SENTINEL
2231
+ _body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
2224
2232
  outlook_sync_input = _body
2225
2233
  sync_outlook_with_http_info_impl(outlook_sync_input, extra)
2226
2234
  end
@@ -300,12 +300,14 @@ module Carbon
300
300
  #
301
301
  # @param customer_ids [Array<String>] List of organization supplied user IDs
302
302
  # @param auto_sync_enabled_sources [AutoSyncEnabledSourcesProperty]
303
+ # @param file_upload_limit [Integer] Custom file upload limit for the user. If set, then the user will not be allowed to upload more files than this limit
303
304
  # @param body [UpdateUsersInput]
304
305
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
305
- def update_users(customer_ids:, auto_sync_enabled_sources: SENTINEL, extra: {})
306
+ def update_users(customer_ids:, auto_sync_enabled_sources: SENTINEL, file_upload_limit: SENTINEL, extra: {})
306
307
  _body = {}
307
308
  _body[:customer_ids] = customer_ids if customer_ids != SENTINEL
308
309
  _body[:auto_sync_enabled_sources] = auto_sync_enabled_sources if auto_sync_enabled_sources != SENTINEL
310
+ _body[:file_upload_limit] = file_upload_limit if file_upload_limit != SENTINEL
309
311
  update_users_input = _body
310
312
  api_response = update_users_with_http_info_impl(update_users_input, extra)
311
313
  api_response.data
@@ -315,12 +317,14 @@ module Carbon
315
317
  #
316
318
  # @param customer_ids [Array<String>] List of organization supplied user IDs
317
319
  # @param auto_sync_enabled_sources [AutoSyncEnabledSourcesProperty]
320
+ # @param file_upload_limit [Integer] Custom file upload limit for the user. If set, then the user will not be allowed to upload more files than this limit
318
321
  # @param body [UpdateUsersInput]
319
322
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
320
- def update_users_with_http_info(customer_ids:, auto_sync_enabled_sources: SENTINEL, extra: {})
323
+ def update_users_with_http_info(customer_ids:, auto_sync_enabled_sources: SENTINEL, file_upload_limit: SENTINEL, extra: {})
321
324
  _body = {}
322
325
  _body[:customer_ids] = customer_ids if customer_ids != SENTINEL
323
326
  _body[:auto_sync_enabled_sources] = auto_sync_enabled_sources if auto_sync_enabled_sources != SENTINEL
327
+ _body[:file_upload_limit] = file_upload_limit if file_upload_limit != SENTINEL
324
328
  update_users_input = _body
325
329
  update_users_with_http_info_impl(update_users_input, extra)
326
330
  end
@@ -31,6 +31,8 @@ module Carbon
31
31
 
32
32
  attr_accessor :request_id
33
33
 
34
+ attr_accessor :sync_attachments
35
+
34
36
  # Attribute mapping from ruby-style variable name to JSON key.
35
37
  def self.attribute_map
36
38
  {
@@ -43,7 +45,8 @@ module Carbon
43
45
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
44
46
  :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
45
47
  :'data_source_id' => :'data_source_id',
46
- :'request_id' => :'request_id'
48
+ :'request_id' => :'request_id',
49
+ :'sync_attachments' => :'sync_attachments'
47
50
  }
48
51
  end
49
52
 
@@ -64,7 +67,8 @@ module Carbon
64
67
  :'generate_sparse_vectors' => :'Boolean',
65
68
  :'prepend_filename_to_chunks' => :'Boolean',
66
69
  :'data_source_id' => :'Integer',
67
- :'request_id' => :'String'
70
+ :'request_id' => :'String',
71
+ :'sync_attachments' => :'Boolean'
68
72
  }
69
73
  end
70
74
 
@@ -78,7 +82,8 @@ module Carbon
78
82
  :'generate_sparse_vectors',
79
83
  :'prepend_filename_to_chunks',
80
84
  :'data_source_id',
81
- :'request_id'
85
+ :'request_id',
86
+ :'sync_attachments'
82
87
  ])
83
88
  end
84
89
 
@@ -148,6 +153,12 @@ module Carbon
148
153
  if attributes.key?(:'request_id')
149
154
  self.request_id = attributes[:'request_id']
150
155
  end
156
+
157
+ if attributes.key?(:'sync_attachments')
158
+ self.sync_attachments = attributes[:'sync_attachments']
159
+ else
160
+ self.sync_attachments = false
161
+ end
151
162
  end
152
163
 
153
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -182,7 +193,8 @@ module Carbon
182
193
  generate_sparse_vectors == o.generate_sparse_vectors &&
183
194
  prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
184
195
  data_source_id == o.data_source_id &&
185
- request_id == o.request_id
196
+ request_id == o.request_id &&
197
+ sync_attachments == o.sync_attachments
186
198
  end
187
199
 
188
200
  # @see the `==` method
@@ -194,7 +206,7 @@ module Carbon
194
206
  # Calculates hash code according to all attributes.
195
207
  # @return [Integer] Hash code
196
208
  def hash
197
- [tags, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id].hash
209
+ [tags, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments].hash
198
210
  end
199
211
 
200
212
  # Builds the object from hash
@@ -33,6 +33,8 @@ module Carbon
33
33
 
34
34
  attr_accessor :request_id
35
35
 
36
+ attr_accessor :sync_attachments
37
+
36
38
  # Attribute mapping from ruby-style variable name to JSON key.
37
39
  def self.attribute_map
38
40
  {
@@ -46,7 +48,8 @@ module Carbon
46
48
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
47
49
  :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
48
50
  :'data_source_id' => :'data_source_id',
49
- :'request_id' => :'request_id'
51
+ :'request_id' => :'request_id',
52
+ :'sync_attachments' => :'sync_attachments'
50
53
  }
51
54
  end
52
55
 
@@ -68,7 +71,8 @@ module Carbon
68
71
  :'generate_sparse_vectors' => :'Boolean',
69
72
  :'prepend_filename_to_chunks' => :'Boolean',
70
73
  :'data_source_id' => :'Integer',
71
- :'request_id' => :'String'
74
+ :'request_id' => :'String',
75
+ :'sync_attachments' => :'Boolean'
72
76
  }
73
77
  end
74
78
 
@@ -83,7 +87,8 @@ module Carbon
83
87
  :'generate_sparse_vectors',
84
88
  :'prepend_filename_to_chunks',
85
89
  :'data_source_id',
86
- :'request_id'
90
+ :'request_id',
91
+ :'sync_attachments'
87
92
  ])
88
93
  end
89
94
 
@@ -159,6 +164,12 @@ module Carbon
159
164
  if attributes.key?(:'request_id')
160
165
  self.request_id = attributes[:'request_id']
161
166
  end
167
+
168
+ if attributes.key?(:'sync_attachments')
169
+ self.sync_attachments = attributes[:'sync_attachments']
170
+ else
171
+ self.sync_attachments = false
172
+ end
162
173
  end
163
174
 
164
175
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -194,7 +205,8 @@ module Carbon
194
205
  generate_sparse_vectors == o.generate_sparse_vectors &&
195
206
  prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
196
207
  data_source_id == o.data_source_id &&
197
- request_id == o.request_id
208
+ request_id == o.request_id &&
209
+ sync_attachments == o.sync_attachments
198
210
  end
199
211
 
200
212
  # @see the `==` method
@@ -206,7 +218,7 @@ module Carbon
206
218
  # Calculates hash code according to all attributes.
207
219
  # @return [Integer] Hash code
208
220
  def hash
209
- [tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id].hash
221
+ [tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments].hash
210
222
  end
211
223
 
212
224
  # Builds the object from hash
@@ -16,11 +16,15 @@ module Carbon
16
16
 
17
17
  attr_accessor :auto_sync_enabled_sources
18
18
 
19
+ # Custom file upload limit for the user. If set, then the user will not be allowed to upload more files than this limit
20
+ attr_accessor :file_upload_limit
21
+
19
22
  # Attribute mapping from ruby-style variable name to JSON key.
20
23
  def self.attribute_map
21
24
  {
22
25
  :'customer_ids' => :'customer_ids',
23
- :'auto_sync_enabled_sources' => :'auto_sync_enabled_sources'
26
+ :'auto_sync_enabled_sources' => :'auto_sync_enabled_sources',
27
+ :'file_upload_limit' => :'file_upload_limit'
24
28
  }
25
29
  end
26
30
 
@@ -33,14 +37,16 @@ module Carbon
33
37
  def self.openapi_types
34
38
  {
35
39
  :'customer_ids' => :'Array<String>',
36
- :'auto_sync_enabled_sources' => :'AutoSyncEnabledSourcesProperty'
40
+ :'auto_sync_enabled_sources' => :'AutoSyncEnabledSourcesProperty',
41
+ :'file_upload_limit' => :'Integer'
37
42
  }
38
43
  end
39
44
 
40
45
  # List of attributes with nullable: true
41
46
  def self.openapi_nullable
42
47
  Set.new([
43
- :'auto_sync_enabled_sources'
48
+ :'auto_sync_enabled_sources',
49
+ :'file_upload_limit'
44
50
  ])
45
51
  end
46
52
 
@@ -68,6 +74,10 @@ module Carbon
68
74
  if attributes.key?(:'auto_sync_enabled_sources')
69
75
  self.auto_sync_enabled_sources = attributes[:'auto_sync_enabled_sources']
70
76
  end
77
+
78
+ if attributes.key?(:'file_upload_limit')
79
+ self.file_upload_limit = attributes[:'file_upload_limit']
80
+ end
71
81
  end
72
82
 
73
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -113,7 +123,8 @@ module Carbon
113
123
  return true if self.equal?(o)
114
124
  self.class == o.class &&
115
125
  customer_ids == o.customer_ids &&
116
- auto_sync_enabled_sources == o.auto_sync_enabled_sources
126
+ auto_sync_enabled_sources == o.auto_sync_enabled_sources &&
127
+ file_upload_limit == o.file_upload_limit
117
128
  end
118
129
 
119
130
  # @see the `==` method
@@ -125,7 +136,7 @@ module Carbon
125
136
  # Calculates hash code according to all attributes.
126
137
  # @return [Integer] Hash code
127
138
  def hash
128
- [customer_ids, auto_sync_enabled_sources].hash
139
+ [customer_ids, auto_sync_enabled_sources, file_upload_limit].hash
129
140
  end
130
141
 
131
142
  # Builds the object from hash
@@ -47,6 +47,8 @@ module Carbon
47
47
 
48
48
  attr_accessor :ocr_properties
49
49
 
50
+ attr_accessor :ocr_job_started_at
51
+
50
52
  attr_accessor :name
51
53
 
52
54
  attr_accessor :parent_id
@@ -92,6 +94,7 @@ module Carbon
92
94
  :'chunk_overlap' => :'chunk_overlap',
93
95
  :'chunk_properties' => :'chunk_properties',
94
96
  :'ocr_properties' => :'ocr_properties',
97
+ :'ocr_job_started_at' => :'ocr_job_started_at',
95
98
  :'name' => :'name',
96
99
  :'parent_id' => :'parent_id',
97
100
  :'enable_auto_sync' => :'enable_auto_sync',
@@ -133,6 +136,7 @@ module Carbon
133
136
  :'chunk_overlap' => :'Integer',
134
137
  :'chunk_properties' => :'ChunkPropertiesNullable',
135
138
  :'ocr_properties' => :'Object',
139
+ :'ocr_job_started_at' => :'Time',
136
140
  :'name' => :'String',
137
141
  :'parent_id' => :'Integer',
138
142
  :'enable_auto_sync' => :'Boolean',
@@ -162,6 +166,7 @@ module Carbon
162
166
  :'chunk_size',
163
167
  :'chunk_overlap',
164
168
  :'chunk_properties',
169
+ :'ocr_job_started_at',
165
170
  :'name',
166
171
  :'parent_id',
167
172
  :'enable_auto_sync',
@@ -263,6 +268,10 @@ module Carbon
263
268
  self.ocr_properties = attributes[:'ocr_properties']
264
269
  end
265
270
 
271
+ if attributes.key?(:'ocr_job_started_at')
272
+ self.ocr_job_started_at = attributes[:'ocr_job_started_at']
273
+ end
274
+
266
275
  if attributes.key?(:'name')
267
276
  self.name = attributes[:'name']
268
277
  end
@@ -398,6 +407,7 @@ module Carbon
398
407
  chunk_overlap == o.chunk_overlap &&
399
408
  chunk_properties == o.chunk_properties &&
400
409
  ocr_properties == o.ocr_properties &&
410
+ ocr_job_started_at == o.ocr_job_started_at &&
401
411
  name == o.name &&
402
412
  parent_id == o.parent_id &&
403
413
  enable_auto_sync == o.enable_auto_sync &&
@@ -421,7 +431,7 @@ module Carbon
421
431
  # Calculates hash code according to all attributes.
422
432
  # @return [Integer] Hash code
423
433
  def hash
424
- [tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, ocr_properties, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, request_id, created_at, updated_at].hash
434
+ [tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, ocr_properties, ocr_job_started_at, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, request_id, created_at, updated_at].hash
425
435
  end
426
436
 
427
437
  # Builds the object from hash
@@ -33,6 +33,8 @@ module Carbon
33
33
 
34
34
  attr_accessor :enabled_features
35
35
 
36
+ attr_accessor :custom_limits
37
+
36
38
  # Attribute mapping from ruby-style variable name to JSON key.
37
39
  def self.attribute_map
38
40
  {
@@ -46,7 +48,8 @@ module Carbon
46
48
  :'num_characters_synced' => :'num_characters_synced',
47
49
  :'num_tokens_synced' => :'num_tokens_synced',
48
50
  :'unique_file_tags' => :'unique_file_tags',
49
- :'enabled_features' => :'enabled_features'
51
+ :'enabled_features' => :'enabled_features',
52
+ :'custom_limits' => :'custom_limits'
50
53
  }
51
54
  end
52
55
 
@@ -68,7 +71,8 @@ module Carbon
68
71
  :'num_characters_synced' => :'Integer',
69
72
  :'num_tokens_synced' => :'Integer',
70
73
  :'unique_file_tags' => :'Array<Object>',
71
- :'enabled_features' => :'Object'
74
+ :'enabled_features' => :'Object',
75
+ :'custom_limits' => :'Object'
72
76
  }
73
77
  end
74
78
 
@@ -76,7 +80,7 @@ module Carbon
76
80
  def self.openapi_nullable
77
81
  Set.new([
78
82
  :'deleted_at',
79
- :'enabled_features'
83
+ :'enabled_features',
80
84
  ])
81
85
  end
82
86
 
@@ -140,6 +144,10 @@ module Carbon
140
144
  if attributes.key?(:'enabled_features')
141
145
  self.enabled_features = attributes[:'enabled_features']
142
146
  end
147
+
148
+ if attributes.key?(:'custom_limits')
149
+ self.custom_limits = attributes[:'custom_limits']
150
+ end
143
151
  end
144
152
 
145
153
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -182,6 +190,10 @@ module Carbon
182
190
  invalid_properties.push('invalid value for "unique_file_tags", unique_file_tags cannot be nil.')
183
191
  end
184
192
 
193
+ if @custom_limits.nil?
194
+ invalid_properties.push('invalid value for "custom_limits", custom_limits cannot be nil.')
195
+ end
196
+
185
197
  invalid_properties
186
198
  end
187
199
 
@@ -197,6 +209,7 @@ module Carbon
197
209
  return false if @num_characters_synced.nil?
198
210
  return false if @num_tokens_synced.nil?
199
211
  return false if @unique_file_tags.nil?
212
+ return false if @custom_limits.nil?
200
213
  true
201
214
  end
202
215
 
@@ -215,7 +228,8 @@ module Carbon
215
228
  num_characters_synced == o.num_characters_synced &&
216
229
  num_tokens_synced == o.num_tokens_synced &&
217
230
  unique_file_tags == o.unique_file_tags &&
218
- enabled_features == o.enabled_features
231
+ enabled_features == o.enabled_features &&
232
+ custom_limits == o.custom_limits
219
233
  end
220
234
 
221
235
  # @see the `==` method
@@ -227,7 +241,7 @@ module Carbon
227
241
  # Calculates hash code according to all attributes.
228
242
  # @return [Integer] Hash code
229
243
  def hash
230
- [id, organization_id, organization_supplied_user_id, created_at, updated_at, deleted_at, num_files_synced, num_characters_synced, num_tokens_synced, unique_file_tags, enabled_features].hash
244
+ [id, organization_id, organization_supplied_user_id, created_at, updated_at, deleted_at, num_files_synced, num_characters_synced, num_tokens_synced, unique_file_tags, enabled_features, custom_limits].hash
231
245
  end
232
246
 
233
247
  # Builds the object from hash
@@ -7,5 +7,5 @@ The version of the OpenAPI document: 1.0.0
7
7
  =end
8
8
 
9
9
  module Carbon
10
- VERSION = '0.1.15'
10
+ VERSION = '0.1.16'
11
11
  end
@@ -79,4 +79,10 @@ describe Carbon::GmailSyncInput do
79
79
  end
80
80
  end
81
81
 
82
+ describe 'test attribute "sync_attachments"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
82
88
  end
@@ -85,4 +85,10 @@ describe Carbon::OutlookSyncInput do
85
85
  end
86
86
  end
87
87
 
88
+ describe 'test attribute "sync_attachments"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
88
94
  end
@@ -31,4 +31,10 @@ describe Carbon::UpdateUsersInput do
31
31
  end
32
32
  end
33
33
 
34
+ describe 'test attribute "file_upload_limit"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
34
40
  end
@@ -127,6 +127,12 @@ describe Carbon::UserFile do
127
127
  end
128
128
  end
129
129
 
130
+ describe 'test attribute "ocr_job_started_at"' do
131
+ it 'should work' do
132
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
133
+ end
134
+ end
135
+
130
136
  describe 'test attribute "name"' do
131
137
  it 'should work' do
132
138
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -85,4 +85,10 @@ describe Carbon::UserResponse do
85
85
  end
86
86
  end
87
87
 
88
+ describe 'test attribute "custom_limits"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
88
94
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carbon_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-08 00:00:00.000000000 Z
11
+ date: 2024-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday