carbon_ruby_sdk 0.2.43 → 0.2.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +12 -2
- data/lib/carbon_ruby_sdk/models/authentication_property.rb +1 -5
- data/lib/carbon_ruby_sdk/models/pagination.rb +15 -4
- data/lib/carbon_ruby_sdk/models/sharepoint_authentication.rb +1 -5
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/spec/models/pagination_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a352dae3f352ac098e4b9e3dce57183ec6d7d51b9fa0be54e06980259cf1a24
|
4
|
+
data.tar.gz: 7998deace11207b727529794155403b8b331bcee5a0a5d89e245cb671207600d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d057a1a86a2b49205f263602d92db072afddede8b39c5dc12d5ae3b9cc1d708e293ef3a55dc819902b8fae0f2c43bed8e809a7da587720837f91810deee3dc6
|
7
|
+
data.tar.gz: 38ce8209f51c29d860dbeabf52c1e446999c5199f6ea5e23902294e12a853bfd2708b6e1f665b2f6f3bbfd51202f03292d4cc584514b0fdaf74f62f194b9f17c
|
data/Gemfile.lock
CHANGED
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.2.
|
9
|
+
[![npm](https://img.shields.io/badge/gem-v0.2.44-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.44)
|
10
10
|
|
11
11
|
</div>
|
12
12
|
|
@@ -118,7 +118,7 @@ Connect external data to LLMs, no matter the source.
|
|
118
118
|
Add to Gemfile:
|
119
119
|
|
120
120
|
```ruby
|
121
|
-
gem 'carbon_ruby_sdk', '~> 0.2.
|
121
|
+
gem 'carbon_ruby_sdk', '~> 0.2.44'
|
122
122
|
```
|
123
123
|
|
124
124
|
## Getting Started<a id="getting-started"></a>
|
@@ -577,6 +577,7 @@ result = carbon.data_sources.query_user_data_sources(
|
|
577
577
|
pagination: {
|
578
578
|
"limit" => 10,
|
579
579
|
"offset" => 0,
|
580
|
+
"starting_id" => 0,
|
580
581
|
},
|
581
582
|
order_by: "created_at",
|
582
583
|
order_dir: "desc",
|
@@ -906,6 +907,7 @@ result = carbon.embeddings.get_embeddings_and_chunks(
|
|
906
907
|
pagination: {
|
907
908
|
"limit" => 10,
|
908
909
|
"offset" => 0,
|
910
|
+
"starting_id" => 0,
|
909
911
|
},
|
910
912
|
order_by: "created_at",
|
911
913
|
order_dir: "desc",
|
@@ -949,6 +951,7 @@ result = carbon.embeddings.list(
|
|
949
951
|
pagination: {
|
950
952
|
"limit" => 10,
|
951
953
|
"offset" => 0,
|
954
|
+
"starting_id" => 0,
|
952
955
|
},
|
953
956
|
order_by: "created_at",
|
954
957
|
order_dir: "desc",
|
@@ -1397,6 +1400,7 @@ result = carbon.files.query_user_files(
|
|
1397
1400
|
pagination: {
|
1398
1401
|
"limit" => 10,
|
1399
1402
|
"offset" => 0,
|
1403
|
+
"starting_id" => 0,
|
1400
1404
|
},
|
1401
1405
|
order_by: "created_at",
|
1402
1406
|
order_dir: "desc",
|
@@ -1445,6 +1449,7 @@ result = carbon.files.query_user_files_deprecated(
|
|
1445
1449
|
pagination: {
|
1446
1450
|
"limit" => 10,
|
1447
1451
|
"offset" => 0,
|
1452
|
+
"starting_id" => 0,
|
1448
1453
|
},
|
1449
1454
|
order_by: "created_at",
|
1450
1455
|
order_dir: "desc",
|
@@ -2694,6 +2699,7 @@ result = carbon.integrations.list_data_source_items(
|
|
2694
2699
|
pagination: {
|
2695
2700
|
"limit" => 10,
|
2696
2701
|
"offset" => 0,
|
2702
|
+
"starting_id" => 0,
|
2697
2703
|
},
|
2698
2704
|
order_by: "name",
|
2699
2705
|
order_dir: "asc",
|
@@ -3882,6 +3888,7 @@ result = carbon.users.list(
|
|
3882
3888
|
pagination: {
|
3883
3889
|
"limit" => 10,
|
3884
3890
|
"offset" => 0,
|
3891
|
+
"starting_id" => 0,
|
3885
3892
|
},
|
3886
3893
|
filters: {
|
3887
3894
|
},
|
@@ -4375,6 +4382,7 @@ result = carbon.utilities.user_webpages(
|
|
4375
4382
|
pagination: {
|
4376
4383
|
"limit" => 10,
|
4377
4384
|
"offset" => 0,
|
4385
|
+
"starting_id" => 0,
|
4378
4386
|
},
|
4379
4387
|
order_by: "created_at",
|
4380
4388
|
order_dir: "asc",
|
@@ -4466,6 +4474,7 @@ result = carbon.webhooks.urls(
|
|
4466
4474
|
pagination: {
|
4467
4475
|
"limit" => 10,
|
4468
4476
|
"offset" => 0,
|
4477
|
+
"starting_id" => 0,
|
4469
4478
|
},
|
4470
4479
|
order_by: "created_at",
|
4471
4480
|
order_dir: "desc",
|
@@ -4566,6 +4575,7 @@ result = carbon.white_label.list(
|
|
4566
4575
|
pagination: {
|
4567
4576
|
"limit" => 10,
|
4568
4577
|
"offset" => 0,
|
4578
|
+
"starting_id" => 0,
|
4569
4579
|
},
|
4570
4580
|
order_by: "created_at",
|
4571
4581
|
order_dir: "desc",
|
@@ -127,6 +127,7 @@ module Carbon
|
|
127
127
|
:'source',
|
128
128
|
:'refresh_token',
|
129
129
|
:'tenant_name',
|
130
|
+
:'site_name',
|
130
131
|
:'endpoint_url',
|
131
132
|
])
|
132
133
|
end
|
@@ -273,10 +274,6 @@ module Carbon
|
|
273
274
|
invalid_properties.push('invalid value for "workspace_id", workspace_id cannot be nil.')
|
274
275
|
end
|
275
276
|
|
276
|
-
if @site_name.nil?
|
277
|
-
invalid_properties.push('invalid value for "site_name", site_name cannot be nil.')
|
278
|
-
end
|
279
|
-
|
280
277
|
if @subdomain.nil?
|
281
278
|
invalid_properties.push('invalid value for "subdomain", subdomain cannot be nil.')
|
282
279
|
end
|
@@ -349,7 +346,6 @@ module Carbon
|
|
349
346
|
def valid?
|
350
347
|
return false if @access_token.nil?
|
351
348
|
return false if @workspace_id.nil?
|
352
|
-
return false if @site_name.nil?
|
353
349
|
return false if @subdomain.nil?
|
354
350
|
return false if @access_token_secret.nil?
|
355
351
|
return false if @username.nil?
|
@@ -15,11 +15,14 @@ module Carbon
|
|
15
15
|
|
16
16
|
attr_accessor :offset
|
17
17
|
|
18
|
+
attr_accessor :starting_id
|
19
|
+
|
18
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
19
21
|
def self.attribute_map
|
20
22
|
{
|
21
23
|
:'limit' => :'limit',
|
22
|
-
:'offset' => :'offset'
|
24
|
+
:'offset' => :'offset',
|
25
|
+
:'starting_id' => :'starting_id'
|
23
26
|
}
|
24
27
|
end
|
25
28
|
|
@@ -32,7 +35,8 @@ module Carbon
|
|
32
35
|
def self.openapi_types
|
33
36
|
{
|
34
37
|
:'limit' => :'Integer',
|
35
|
-
:'offset' => :'Integer'
|
38
|
+
:'offset' => :'Integer',
|
39
|
+
:'starting_id' => :'Integer'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -68,6 +72,12 @@ module Carbon
|
|
68
72
|
else
|
69
73
|
self.offset = 0
|
70
74
|
end
|
75
|
+
|
76
|
+
if attributes.key?(:'starting_id')
|
77
|
+
self.starting_id = attributes[:'starting_id']
|
78
|
+
else
|
79
|
+
self.starting_id = 0
|
80
|
+
end
|
71
81
|
end
|
72
82
|
|
73
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -89,7 +99,8 @@ module Carbon
|
|
89
99
|
return true if self.equal?(o)
|
90
100
|
self.class == o.class &&
|
91
101
|
limit == o.limit &&
|
92
|
-
offset == o.offset
|
102
|
+
offset == o.offset &&
|
103
|
+
starting_id == o.starting_id
|
93
104
|
end
|
94
105
|
|
95
106
|
# @see the `==` method
|
@@ -101,7 +112,7 @@ module Carbon
|
|
101
112
|
# Calculates hash code according to all attributes.
|
102
113
|
# @return [Integer] Hash code
|
103
114
|
def hash
|
104
|
-
[limit, offset].hash
|
115
|
+
[limit, offset, starting_id].hash
|
105
116
|
end
|
106
117
|
|
107
118
|
# Builds the object from hash
|
@@ -54,6 +54,7 @@ module Carbon
|
|
54
54
|
:'source',
|
55
55
|
:'refresh_token',
|
56
56
|
:'tenant_name',
|
57
|
+
:'site_name'
|
57
58
|
])
|
58
59
|
end
|
59
60
|
|
@@ -101,10 +102,6 @@ module Carbon
|
|
101
102
|
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
102
103
|
end
|
103
104
|
|
104
|
-
if @site_name.nil?
|
105
|
-
invalid_properties.push('invalid value for "site_name", site_name cannot be nil.')
|
106
|
-
end
|
107
|
-
|
108
105
|
invalid_properties
|
109
106
|
end
|
110
107
|
|
@@ -112,7 +109,6 @@ module Carbon
|
|
112
109
|
# @return true if the model is valid
|
113
110
|
def valid?
|
114
111
|
return false if @access_token.nil?
|
115
|
-
return false if @site_name.nil?
|
116
112
|
true
|
117
113
|
end
|
118
114
|
|
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.2.
|
4
|
+
version: 0.2.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konfig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|