carbon_ruby_sdk 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e8a8eb45033cb39e0608a9ccc89598496a9ceab4bb7c53d33b4669fc6494670
4
- data.tar.gz: 8cf3c4a34982d6a51a79ba7bd9796ff576a0bb2b5bb1ce01eae8ed98ec0aec98
3
+ metadata.gz: b9c7ff7931389e8516a48d8b467cc7db1d6925702496bea05e830bfbbbfd90a8
4
+ data.tar.gz: aaa25efcf862e38ae9584d05df4f6fa936a931f762973fbc7b76567b0e132acc
5
5
  SHA512:
6
- metadata.gz: f22bd4a492c7a732de9ff4224be1d645955610d55aa3e401505867da959167ab70915ee850a480094969271e5c0d2b96aa5dad9cb2fb5cecec52db6c33711be3
7
- data.tar.gz: ff1670389a050caa7329f3fd10fbc1f4795b19172115d098fa1399886201c911b5b616e0d5d404db102110a7d41f605a7da12ae476c582318a76113c0a4e7355
6
+ metadata.gz: 854c40e59b73acdf65eeab2c62f6f8ddb14a99a966ed3f73ac90e66e6cf439f978b3761bb87230081bc04c3cf592f2fba2c19fc3baf8395accd77f074dad7ce4
7
+ data.tar.gz: a502ad7b8a1a4d48166a2efcd2976e69d3865c8d7c4dff7739504bdd684d12a10ba3c4eed8a637154f67c87f6d02e0bd1fd38bb8375e69618abd6f1869faecc7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.1.10)
4
+ carbon_ruby_sdk (0.1.11)
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.10-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.10)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.11-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.11)
10
10
 
11
11
  </div>
12
12
 
@@ -29,6 +29,7 @@ Connect external data to LLMs, no matter the source.
29
29
  * [`carbon.files.delete`](#carbonfilesdelete)
30
30
  * [`carbon.files.delete_file_tags`](#carbonfilesdelete_file_tags)
31
31
  * [`carbon.files.delete_many`](#carbonfilesdelete_many)
32
+ * [`carbon.files.delete_v2`](#carbonfilesdelete_v2)
32
33
  * [`carbon.files.get_parsed_file`](#carbonfilesget_parsed_file)
33
34
  * [`carbon.files.get_raw_file`](#carbonfilesget_raw_file)
34
35
  * [`carbon.files.query_user_files`](#carbonfilesquery_user_files)
@@ -79,7 +80,7 @@ Connect external data to LLMs, no matter the source.
79
80
  Add to Gemfile:
80
81
 
81
82
  ```ruby
82
- gem 'carbon_ruby_sdk', '~> 0.1.10'
83
+ gem 'carbon_ruby_sdk', '~> 0.1.11'
83
84
  ```
84
85
 
85
86
  ## Getting Started<a id="getting-started"></a>
@@ -671,6 +672,40 @@ p result
671
672
  ---
672
673
 
673
674
 
675
+ ### `carbon.files.delete_v2`<a id="carbonfilesdelete_v2"></a>
676
+
677
+ Delete Files V2 Endpoint
678
+
679
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
680
+
681
+ ```ruby
682
+ result = carbon.files.delete_v2(
683
+ filters: {
684
+ "include_all_children" => false,
685
+ "non_synced_only" => false,
686
+ },
687
+ send_webhook: false,
688
+ )
689
+ p result
690
+ ```
691
+
692
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
693
+
694
+ ##### filters: [`OrganizationUserFilesToSyncFilters`](./lib/carbon_ruby_sdk/models/organization_user_files_to_sync_filters.rb)<a id="filters-organizationuserfilestosyncfilterslibcarbon_ruby_sdkmodelsorganization_user_files_to_sync_filtersrb"></a>
695
+ ##### send_webhook: `Boolean`<a id="send_webhook-boolean"></a>
696
+ #### 🔄 Return<a id="🔄-return"></a>
697
+
698
+ [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
699
+
700
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
701
+
702
+ `/delete_files_v2` `POST`
703
+
704
+ [🔙 **Back to Table of Contents**](#table-of-contents)
705
+
706
+ ---
707
+
708
+
674
709
  ### `carbon.files.get_parsed_file`<a id="carbonfilesget_parsed_file"></a>
675
710
 
676
711
  This route is deprecated. Use `/user_files_v2` instead.
@@ -793,6 +828,8 @@ result = carbon.files.query_user_files(
793
828
  order_by: "created_at",
794
829
  order_dir: "desc",
795
830
  filters: {
831
+ "include_all_children" => false,
832
+ "non_synced_only" => false,
796
833
  },
797
834
  include_raw_file: true,
798
835
  include_parsed_text_file: true,
@@ -838,6 +875,8 @@ result = carbon.files.query_user_files_deprecated(
838
875
  order_by: "created_at",
839
876
  order_dir: "desc",
840
877
  filters: {
878
+ "include_all_children" => false,
879
+ "non_synced_only" => false,
841
880
  },
842
881
  include_raw_file: true,
843
882
  include_parsed_text_file: true,
@@ -421,6 +421,102 @@ module Carbon
421
421
  end
422
422
 
423
423
 
424
+ # Delete Files V2 Endpoint
425
+ #
426
+ # @param filters [OrganizationUserFilesToSyncFilters]
427
+ # @param send_webhook [Boolean]
428
+ # @param body [DeleteFilesV2QueryInput]
429
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
430
+ def delete_v2(filters: SENTINEL, send_webhook: false, extra: {})
431
+ _body = {}
432
+ _body[:filters] = filters if filters != SENTINEL
433
+ _body[:send_webhook] = send_webhook if send_webhook != SENTINEL
434
+ delete_files_v2_query_input = _body
435
+ api_response = delete_v2_with_http_info_impl(delete_files_v2_query_input, extra)
436
+ api_response.data
437
+ end
438
+
439
+ # Delete Files V2 Endpoint
440
+ #
441
+ # @param filters [OrganizationUserFilesToSyncFilters]
442
+ # @param send_webhook [Boolean]
443
+ # @param body [DeleteFilesV2QueryInput]
444
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
445
+ def delete_v2_with_http_info(filters: SENTINEL, send_webhook: false, extra: {})
446
+ _body = {}
447
+ _body[:filters] = filters if filters != SENTINEL
448
+ _body[:send_webhook] = send_webhook if send_webhook != SENTINEL
449
+ delete_files_v2_query_input = _body
450
+ delete_v2_with_http_info_impl(delete_files_v2_query_input, extra)
451
+ end
452
+
453
+ # Delete Files V2 Endpoint
454
+ # @param delete_files_v2_query_input [DeleteFilesV2QueryInput]
455
+ # @param [Hash] opts the optional parameters
456
+ # @return [GenericSuccessResponse]
457
+ private def delete_v2_impl(delete_files_v2_query_input, opts = {})
458
+ data, _status_code, _headers = delete_v2_with_http_info(delete_files_v2_query_input, opts)
459
+ data
460
+ end
461
+
462
+ # Delete Files V2 Endpoint
463
+ # @param delete_files_v2_query_input [DeleteFilesV2QueryInput]
464
+ # @param [Hash] opts the optional parameters
465
+ # @return [APIResponse] data is GenericSuccessResponse, status code, headers and response
466
+ private def delete_v2_with_http_info_impl(delete_files_v2_query_input, opts = {})
467
+ if @api_client.config.debugging
468
+ @api_client.config.logger.debug 'Calling API: FilesApi.delete_v2 ...'
469
+ end
470
+ # verify the required parameter 'delete_files_v2_query_input' is set
471
+ if @api_client.config.client_side_validation && delete_files_v2_query_input.nil?
472
+ fail ArgumentError, "Missing the required parameter 'delete_files_v2_query_input' when calling FilesApi.delete_v2"
473
+ end
474
+ # resource path
475
+ local_var_path = '/delete_files_v2'
476
+
477
+ # query parameters
478
+ query_params = opts[:query_params] || {}
479
+
480
+ # header parameters
481
+ header_params = opts[:header_params] || {}
482
+ # HTTP header 'Accept' (if needed)
483
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
484
+ # HTTP header 'Content-Type'
485
+ content_type = @api_client.select_header_content_type(['application/json'])
486
+ if !content_type.nil?
487
+ header_params['Content-Type'] = content_type
488
+ end
489
+
490
+ # form parameters
491
+ form_params = opts[:form_params] || {}
492
+
493
+ # http body (model)
494
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_files_v2_query_input)
495
+
496
+ # return_type
497
+ return_type = opts[:debug_return_type] || 'GenericSuccessResponse'
498
+
499
+ # auth_names
500
+ auth_names = opts[:debug_auth_names] || ['accessToken', 'apiKey', 'customerId']
501
+
502
+ new_options = opts.merge(
503
+ :operation => :"FilesApi.delete_v2",
504
+ :header_params => header_params,
505
+ :query_params => query_params,
506
+ :form_params => form_params,
507
+ :body => post_body,
508
+ :auth_names => auth_names,
509
+ :return_type => return_type
510
+ )
511
+
512
+ data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
513
+ if @api_client.config.debugging
514
+ @api_client.config.logger.debug "API called: FilesApi#delete_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
515
+ end
516
+ APIResponse::new(data, status_code, headers, response)
517
+ end
518
+
519
+
424
520
  # Parsed File
425
521
  #
426
522
  # This route is deprecated. Use `/user_files_v2` instead.
@@ -0,0 +1,226 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'date'
10
+ require 'time'
11
+
12
+ module Carbon
13
+ class DeleteFilesV2QueryInput
14
+ attr_accessor :filters
15
+
16
+ attr_accessor :send_webhook
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'filters' => :'filters',
22
+ :'send_webhook' => :'send_webhook'
23
+ }
24
+ end
25
+
26
+ # Returns all the JSON keys this model knows about
27
+ def self.acceptable_attributes
28
+ attribute_map.values
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.openapi_types
33
+ {
34
+ :'filters' => :'OrganizationUserFilesToSyncFilters',
35
+ :'send_webhook' => :'Boolean'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::DeleteFilesV2QueryInput` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::DeleteFilesV2QueryInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'filters')
61
+ self.filters = attributes[:'filters']
62
+ end
63
+
64
+ if attributes.key?(:'send_webhook')
65
+ self.send_webhook = attributes[:'send_webhook']
66
+ else
67
+ self.send_webhook = false
68
+ end
69
+ end
70
+
71
+ # Show invalid properties with the reasons. Usually used together with valid?
72
+ # @return Array for valid properties with the reasons
73
+ def list_invalid_properties
74
+ invalid_properties = Array.new
75
+ invalid_properties
76
+ end
77
+
78
+ # Check to see if the all the properties in the model are valid
79
+ # @return true if the model is valid
80
+ def valid?
81
+ true
82
+ end
83
+
84
+ # Checks equality by comparing each attribute.
85
+ # @param [Object] Object to be compared
86
+ def ==(o)
87
+ return true if self.equal?(o)
88
+ self.class == o.class &&
89
+ filters == o.filters &&
90
+ send_webhook == o.send_webhook
91
+ end
92
+
93
+ # @see the `==` method
94
+ # @param [Object] Object to be compared
95
+ def eql?(o)
96
+ self == o
97
+ end
98
+
99
+ # Calculates hash code according to all attributes.
100
+ # @return [Integer] Hash code
101
+ def hash
102
+ [filters, send_webhook].hash
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def self.build_from_hash(attributes)
109
+ new.build_from_hash(attributes)
110
+ end
111
+
112
+ # Builds the object from hash
113
+ # @param [Hash] attributes Model attributes in the form of hash
114
+ # @return [Object] Returns the model itself
115
+ def build_from_hash(attributes)
116
+ return nil unless attributes.is_a?(Hash)
117
+ attributes = attributes.transform_keys(&:to_sym)
118
+ self.class.openapi_types.each_pair do |key, type|
119
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
120
+ self.send("#{key}=", nil)
121
+ elsif type =~ /\AArray<(.*)>/i
122
+ # check to ensure the input is an array given that the attribute
123
+ # is documented as an array but the input is not
124
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
125
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
+ end
127
+ elsif !attributes[self.class.attribute_map[key]].nil?
128
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
+ end
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def _deserialize(type, value)
140
+ case type.to_sym
141
+ when :Time
142
+ Time.parse(value)
143
+ when :Date
144
+ Date.parse(value)
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :Boolean
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else # model
172
+ # models (e.g. Pet) or oneOf
173
+ klass = Carbon.const_get(type)
174
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ if value.nil?
197
+ is_nullable = self.class.openapi_nullable.include?(attr)
198
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
199
+ end
200
+
201
+ hash[param] = _to_hash(value)
202
+ end
203
+ hash
204
+ end
205
+
206
+ # Outputs non-array value in the form of hash
207
+ # For object, use to_hash. Otherwise, just return the value
208
+ # @param [Object] value Any valid value
209
+ # @return [Hash] Returns the value in the form of hash
210
+ def _to_hash(value)
211
+ if value.is_a?(Array)
212
+ value.compact.map { |v| _to_hash(v) }
213
+ elsif value.is_a?(Hash)
214
+ {}.tap do |hash|
215
+ value.each { |k, v| hash[k] = _to_hash(v) }
216
+ end
217
+ elsif value.respond_to? :to_hash
218
+ value.to_hash
219
+ else
220
+ value
221
+ end
222
+ end
223
+
224
+ end
225
+
226
+ end
@@ -15,24 +15,38 @@ module Carbon
15
15
 
16
16
  attr_accessor :source
17
17
 
18
+ # The name of the file. The query will return files with names that contain this string.
18
19
  attr_accessor :name
19
20
 
21
+ # Tags to filter by. Supports logical AND and OR operations. Input should be like below: { \"OR\": [ { \"key\": \"subject\", \"value\": \"holy-bible\", \"negate\": false }, { \"key\": \"person-of-interest\", \"value\": \"jesus christ\", \"negate\": false }, { \"key\": \"genre\", \"value\": \"fiction\", \"negate\": true } { \"AND\": [ { \"key\": \"subject\", \"value\": \"tao-te-ching\", \"negate\": true }, { \"key\": \"author\", \"value\": \"lao-tzu\", \"negate\": false } ] } ] } For a single filter, the filter block can be placed within either an \"AND\" or \"OR\" block.
20
22
  attr_accessor :tags_v2
21
23
 
24
+ # The IDs of the files. The query will return files with these IDs.
22
25
  attr_accessor :ids
23
26
 
27
+ # The external file IDs of the files. The query will return files with these external file IDs.
24
28
  attr_accessor :external_file_ids
25
29
 
30
+ # The sync statuses of the files. The query will return files with these sync statuses.
26
31
  attr_accessor :sync_statuses
27
32
 
28
33
  attr_accessor :parent_file_ids
29
34
 
35
+ # The organization user data source IDs of the files. The query will return files with these organization user data source IDs.
30
36
  attr_accessor :organization_user_data_source_id
31
37
 
38
+ # The embedding generators of the files. The query will return files with these embedding generators.
32
39
  attr_accessor :embedding_generators
33
40
 
41
+ # If true, the query will return only root files. Cannot be true if parent_file_ids or include_all_children is specified.
34
42
  attr_accessor :root_files_only
35
43
 
44
+ # If true, the query will return all descendents of the specified parent_file_ids.
45
+ attr_accessor :include_all_children
46
+
47
+ # If true, the query will return only files that have not been synced yet.
48
+ attr_accessor :non_synced_only
49
+
36
50
  # Attribute mapping from ruby-style variable name to JSON key.
37
51
  def self.attribute_map
38
52
  {
@@ -46,7 +60,9 @@ module Carbon
46
60
  :'parent_file_ids' => :'parent_file_ids',
47
61
  :'organization_user_data_source_id' => :'organization_user_data_source_id',
48
62
  :'embedding_generators' => :'embedding_generators',
49
- :'root_files_only' => :'root_files_only'
63
+ :'root_files_only' => :'root_files_only',
64
+ :'include_all_children' => :'include_all_children',
65
+ :'non_synced_only' => :'non_synced_only'
50
66
  }
51
67
  end
52
68
 
@@ -68,7 +84,9 @@ module Carbon
68
84
  :'parent_file_ids' => :'Array<Integer>',
69
85
  :'organization_user_data_source_id' => :'Array<Integer>',
70
86
  :'embedding_generators' => :'Array<EmbeddingGenerators>',
71
- :'root_files_only' => :'Boolean'
87
+ :'root_files_only' => :'Boolean',
88
+ :'include_all_children' => :'Boolean',
89
+ :'non_synced_only' => :'Boolean'
72
90
  }
73
91
  end
74
92
 
@@ -85,7 +103,7 @@ module Carbon
85
103
  :'parent_file_ids',
86
104
  :'organization_user_data_source_id',
87
105
  :'embedding_generators',
88
- :'root_files_only'
106
+ :'root_files_only',
89
107
  ])
90
108
  end
91
109
 
@@ -161,6 +179,18 @@ module Carbon
161
179
  if attributes.key?(:'root_files_only')
162
180
  self.root_files_only = attributes[:'root_files_only']
163
181
  end
182
+
183
+ if attributes.key?(:'include_all_children')
184
+ self.include_all_children = attributes[:'include_all_children']
185
+ else
186
+ self.include_all_children = false
187
+ end
188
+
189
+ if attributes.key?(:'non_synced_only')
190
+ self.non_synced_only = attributes[:'non_synced_only']
191
+ else
192
+ self.non_synced_only = false
193
+ end
164
194
  end
165
195
 
166
196
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -191,7 +221,9 @@ module Carbon
191
221
  parent_file_ids == o.parent_file_ids &&
192
222
  organization_user_data_source_id == o.organization_user_data_source_id &&
193
223
  embedding_generators == o.embedding_generators &&
194
- root_files_only == o.root_files_only
224
+ root_files_only == o.root_files_only &&
225
+ include_all_children == o.include_all_children &&
226
+ non_synced_only == o.non_synced_only
195
227
  end
196
228
 
197
229
  # @see the `==` method
@@ -203,7 +235,7 @@ module Carbon
203
235
  # Calculates hash code according to all attributes.
204
236
  # @return [Integer] Hash code
205
237
  def hash
206
- [tags, source, name, tags_v2, ids, external_file_ids, sync_statuses, parent_file_ids, organization_user_data_source_id, embedding_generators, root_files_only].hash
238
+ [tags, source, name, tags_v2, ids, external_file_ids, sync_statuses, parent_file_ids, organization_user_data_source_id, embedding_generators, root_files_only, include_all_children, non_synced_only].hash
207
239
  end
208
240
 
209
241
  # Builds the object from hash
@@ -16,9 +16,10 @@ module Carbon
16
16
  NAME = "name".freeze
17
17
  LAST_SYNC = "last_sync".freeze
18
18
  FILE_SIZE = "file_size".freeze
19
+ ID = "id".freeze
19
20
 
20
21
  def self.all_vars
21
- @all_vars ||= [CREATED_AT, UPDATED_AT, NAME, LAST_SYNC, FILE_SIZE].freeze
22
+ @all_vars ||= [CREATED_AT, UPDATED_AT, NAME, LAST_SYNC, FILE_SIZE, ID].freeze
22
23
  end
23
24
 
24
25
  # Builds the enum from string
@@ -10,6 +10,7 @@ require 'date'
10
10
  require 'time'
11
11
 
12
12
  module Carbon
13
+ # The source of the file. If a list is provided, the query will return files from any of the sources in the list.
13
14
  class SourceProperty
14
15
  # Attribute mapping from ruby-style variable name to JSON key.
15
16
  def self.attribute_map
@@ -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.10'
10
+ VERSION = '0.1.11'
11
11
  end
@@ -31,6 +31,7 @@ require 'carbon_ruby_sdk/models/data_source_sync_statuses'
31
31
  require 'carbon_ruby_sdk/models/data_source_type'
32
32
  require 'carbon_ruby_sdk/models/data_source_type_nullable'
33
33
  require 'carbon_ruby_sdk/models/delete_files_query_input'
34
+ require 'carbon_ruby_sdk/models/delete_files_v2_query_input'
34
35
  require 'carbon_ruby_sdk/models/delete_users_input'
35
36
  require 'carbon_ruby_sdk/models/directory_item'
36
37
  require 'carbon_ruby_sdk/models/document_response'
@@ -71,6 +71,17 @@ describe 'FilesApi' do
71
71
  end
72
72
  end
73
73
 
74
+ # unit tests for delete_v2
75
+ # Delete Files V2 Endpoint
76
+ # @param delete_files_v2_query_input
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [GenericSuccessResponse]
79
+ describe 'delete_v2 test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
74
85
  # unit tests for get_parsed_file
75
86
  # Parsed File
76
87
  # This route is deprecated. Use &#x60;/user_files_v2&#x60; instead.
@@ -0,0 +1,34 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::DeleteFilesV2QueryInput
14
+ describe Carbon::DeleteFilesV2QueryInput do
15
+ let(:instance) { Carbon::DeleteFilesV2QueryInput.new }
16
+
17
+ describe 'test an instance of DeleteFilesV2QueryInput' do
18
+ it 'should create an instance of DeleteFilesV2QueryInput' do
19
+ expect(instance).to be_instance_of(Carbon::DeleteFilesV2QueryInput)
20
+ end
21
+ end
22
+ describe 'test attribute "filters"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "send_webhook"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ end
@@ -85,4 +85,16 @@ describe Carbon::OrganizationUserFilesToSyncFilters do
85
85
  end
86
86
  end
87
87
 
88
+ describe 'test attribute "include_all_children"' 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
+
94
+ describe 'test attribute "non_synced_only"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
88
100
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carbon_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
@@ -114,6 +114,7 @@ files:
114
114
  - lib/carbon_ruby_sdk/models/data_source_type.rb
115
115
  - lib/carbon_ruby_sdk/models/data_source_type_nullable.rb
116
116
  - lib/carbon_ruby_sdk/models/delete_files_query_input.rb
117
+ - lib/carbon_ruby_sdk/models/delete_files_v2_query_input.rb
117
118
  - lib/carbon_ruby_sdk/models/delete_users_input.rb
118
119
  - lib/carbon_ruby_sdk/models/directory_item.rb
119
120
  - lib/carbon_ruby_sdk/models/document_response.rb
@@ -244,6 +245,7 @@ files:
244
245
  - spec/models/data_source_type_nullable_spec.rb
245
246
  - spec/models/data_source_type_spec.rb
246
247
  - spec/models/delete_files_query_input_spec.rb
248
+ - spec/models/delete_files_v2_query_input_spec.rb
247
249
  - spec/models/delete_users_input_spec.rb
248
250
  - spec/models/directory_item_spec.rb
249
251
  - spec/models/document_response_list_spec.rb
@@ -498,6 +500,7 @@ test_files:
498
500
  - spec/models/embeddings_and_chunks_order_by_columns_spec.rb
499
501
  - spec/models/webhook_query_response_spec.rb
500
502
  - spec/models/user_file_spec.rb
503
+ - spec/models/delete_files_v2_query_input_spec.rb
501
504
  - spec/models/raw_text_input_spec.rb
502
505
  - spec/models/salesforce_authentication_spec.rb
503
506
  - spec/spec_helper.rb