carbon_ruby_sdk 0.2.34 → 0.2.36
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 +460 -2
- data/lib/carbon_ruby_sdk/api/crm_api.rb +909 -0
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +298 -0
- data/lib/carbon_ruby_sdk/models/account.rb +398 -0
- data/lib/carbon_ruby_sdk/models/account_filters.rb +226 -0
- data/lib/carbon_ruby_sdk/models/account_response.rb +246 -0
- data/lib/carbon_ruby_sdk/models/accounts_order_by.rb +39 -0
- data/lib/carbon_ruby_sdk/models/accounts_order_by_nullable.rb +39 -0
- data/lib/carbon_ruby_sdk/models/accounts_request.rb +293 -0
- data/lib/carbon_ruby_sdk/models/address.rb +276 -0
- data/lib/carbon_ruby_sdk/models/authentication_property.rb +32 -6
- data/lib/carbon_ruby_sdk/models/azure_blob_auth_request.rb +245 -0
- data/lib/carbon_ruby_sdk/models/azure_blob_file_sync_input.rb +379 -0
- data/lib/carbon_ruby_sdk/models/azure_blob_get_file_input.rb +226 -0
- data/lib/carbon_ruby_sdk/models/azure_blob_storage_authentication.rb +244 -0
- data/lib/carbon_ruby_sdk/models/base_includes.rb +36 -0
- data/lib/carbon_ruby_sdk/models/contact.rb +434 -0
- data/lib/carbon_ruby_sdk/models/contact_filters.rb +236 -0
- data/lib/carbon_ruby_sdk/models/contacts_order_by.rb +39 -0
- data/lib/carbon_ruby_sdk/models/contacts_order_by_nullable.rb +39 -0
- data/lib/carbon_ruby_sdk/models/contacts_request.rb +293 -0
- data/lib/carbon_ruby_sdk/models/contacts_response.rb +246 -0
- data/lib/carbon_ruby_sdk/models/data_source_type.rb +2 -1
- data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/email.rb +230 -0
- data/lib/carbon_ruby_sdk/models/event.rb +370 -0
- data/lib/carbon_ruby_sdk/models/lead.rb +468 -0
- data/lib/carbon_ruby_sdk/models/lead_filters.rb +246 -0
- data/lib/carbon_ruby_sdk/models/leads_order_by.rb +38 -0
- data/lib/carbon_ruby_sdk/models/leads_order_by_nullable.rb +38 -0
- data/lib/carbon_ruby_sdk/models/leads_request.rb +293 -0
- data/lib/carbon_ruby_sdk/models/leads_response.rb +246 -0
- data/lib/carbon_ruby_sdk/models/one_drive_authentication.rb +250 -0
- data/lib/carbon_ruby_sdk/models/opportunities_order_by.rb +40 -0
- data/lib/carbon_ruby_sdk/models/opportunities_order_by_nullable.rb +40 -0
- data/lib/carbon_ruby_sdk/models/opportunities_request.rb +293 -0
- data/lib/carbon_ruby_sdk/models/opportunities_response.rb +246 -0
- data/lib/carbon_ruby_sdk/models/opportunity.rb +400 -0
- data/lib/carbon_ruby_sdk/models/opportunity_filters.rb +246 -0
- data/lib/carbon_ruby_sdk/models/opportunity_status.rb +36 -0
- data/lib/carbon_ruby_sdk/models/opportunity_status_nullable.rb +36 -0
- data/lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb +36 -0
- data/lib/carbon_ruby_sdk/models/partial_account.rb +216 -0
- data/lib/carbon_ruby_sdk/models/partial_account_nullable.rb +216 -0
- data/lib/carbon_ruby_sdk/models/partial_contact.rb +216 -0
- data/lib/carbon_ruby_sdk/models/partial_contact_nullable.rb +216 -0
- data/lib/carbon_ruby_sdk/models/partial_owner.rb +216 -0
- data/lib/carbon_ruby_sdk/models/partial_owner_nullable.rb +216 -0
- data/lib/carbon_ruby_sdk/models/phone_number.rb +230 -0
- data/lib/carbon_ruby_sdk/models/sent_webhook_payload.rb +2 -2
- data/lib/carbon_ruby_sdk/models/sharepoint_authentication.rb +1 -5
- data/lib/carbon_ruby_sdk/models/task.rb +346 -0
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +47 -0
- data/spec/api/crm_api_spec.rb +129 -0
- data/spec/api/integrations_api_spec.rb +24 -0
- data/spec/models/account_filters_spec.rb +34 -0
- data/spec/models/account_response_spec.rb +40 -0
- data/spec/models/account_spec.rb +118 -0
- data/spec/models/accounts_order_by_nullable_spec.rb +22 -0
- data/spec/models/accounts_order_by_spec.rb +22 -0
- data/spec/models/accounts_request_spec.rb +70 -0
- data/spec/models/address_spec.rb +64 -0
- data/spec/models/authentication_property_spec.rb +12 -0
- data/spec/models/azure_blob_auth_request_spec.rb +40 -0
- data/spec/models/azure_blob_file_sync_input_spec.rb +112 -0
- data/spec/models/azure_blob_get_file_input_spec.rb +34 -0
- data/spec/models/azure_blob_storage_authentication_spec.rb +40 -0
- data/spec/models/base_includes_spec.rb +22 -0
- data/spec/models/contact_filters_spec.rb +40 -0
- data/spec/models/contact_spec.rb +136 -0
- data/spec/models/contacts_order_by_nullable_spec.rb +22 -0
- data/spec/models/contacts_order_by_spec.rb +22 -0
- data/spec/models/contacts_request_spec.rb +70 -0
- data/spec/models/contacts_response_spec.rb +40 -0
- data/spec/models/email_spec.rb +34 -0
- data/spec/models/event_spec.rb +106 -0
- data/spec/models/lead_filters_spec.rb +46 -0
- data/spec/models/lead_spec.rb +154 -0
- data/spec/models/leads_order_by_nullable_spec.rb +22 -0
- data/spec/models/leads_order_by_spec.rb +22 -0
- data/spec/models/leads_request_spec.rb +70 -0
- data/spec/models/leads_response_spec.rb +40 -0
- data/spec/models/one_drive_authentication_spec.rb +46 -0
- data/spec/models/opportunities_order_by_nullable_spec.rb +22 -0
- data/spec/models/opportunities_order_by_spec.rb +22 -0
- data/spec/models/opportunities_request_spec.rb +70 -0
- data/spec/models/opportunities_response_spec.rb +40 -0
- data/spec/models/opportunity_filters_spec.rb +46 -0
- data/spec/models/opportunity_spec.rb +124 -0
- data/spec/models/opportunity_status_nullable_spec.rb +22 -0
- data/spec/models/opportunity_status_spec.rb +22 -0
- data/spec/models/order_dir_v2_nullable_spec.rb +22 -0
- data/spec/models/partial_account_nullable_spec.rb +28 -0
- data/spec/models/partial_account_spec.rb +28 -0
- data/spec/models/partial_contact_nullable_spec.rb +28 -0
- data/spec/models/partial_contact_spec.rb +28 -0
- data/spec/models/partial_owner_nullable_spec.rb +28 -0
- data/spec/models/partial_owner_spec.rb +28 -0
- data/spec/models/phone_number_spec.rb +34 -0
- data/spec/models/sent_webhook_payload_spec.rb +1 -1
- data/spec/models/task_spec.rb +94 -0
- metadata +137 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feb3bf140f11338eaf815475a55ba8751606f8f21374053373ec879382f29ddf
|
4
|
+
data.tar.gz: 889b8720854243b0dc2dc24a013decb6729ec4c2c4d4258eb91a3390bf5e384e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6387b53a698980d8efb5a6ea15e93576a9c2e5a858f350eda44904d8a00ed29813a54520b6a1746ced917d3734c48cb9259b2ed9d0af2c733a2a5f1dcf30b70
|
7
|
+
data.tar.gz: b7c140b501299de1da58914dc2f1fb8803682b7c2a5249a14544dd006aaa6a3c6a71afec871bcc324e96142761c9266663545c6a0802ce54a64a2a3dc2e2eb9c
|
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.36-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.36)
|
10
10
|
|
11
11
|
</div>
|
12
12
|
|
@@ -20,6 +20,14 @@ Connect external data to LLMs, no matter the source.
|
|
20
20
|
- [Reference](#reference)
|
21
21
|
* [`carbon.auth.get_access_token`](#carbonauthget_access_token)
|
22
22
|
* [`carbon.auth.get_white_labeling`](#carbonauthget_white_labeling)
|
23
|
+
* [`carbon.crm.get_account`](#carboncrmget_account)
|
24
|
+
* [`carbon.crm.get_accounts`](#carboncrmget_accounts)
|
25
|
+
* [`carbon.crm.get_contact`](#carboncrmget_contact)
|
26
|
+
* [`carbon.crm.get_contacts`](#carboncrmget_contacts)
|
27
|
+
* [`carbon.crm.get_lead`](#carboncrmget_lead)
|
28
|
+
* [`carbon.crm.get_leads`](#carboncrmget_leads)
|
29
|
+
* [`carbon.crm.get_opportunities`](#carboncrmget_opportunities)
|
30
|
+
* [`carbon.crm.get_opportunity`](#carboncrmget_opportunity)
|
23
31
|
* [`carbon.data_sources.query_user_data_sources`](#carbondata_sourcesquery_user_data_sources)
|
24
32
|
* [`carbon.data_sources.revoke_access_token`](#carbondata_sourcesrevoke_access_token)
|
25
33
|
* [`carbon.embeddings.get_documents`](#carbonembeddingsget_documents)
|
@@ -56,6 +64,8 @@ Connect external data to LLMs, no matter the source.
|
|
56
64
|
* [`carbon.integrations.list_labels`](#carbonintegrationslist_labels)
|
57
65
|
* [`carbon.integrations.list_outlook_categories`](#carbonintegrationslist_outlook_categories)
|
58
66
|
* [`carbon.integrations.list_repos`](#carbonintegrationslist_repos)
|
67
|
+
* [`carbon.integrations.sync_azure_blob_files`](#carbonintegrationssync_azure_blob_files)
|
68
|
+
* [`carbon.integrations.sync_azure_blob_storage`](#carbonintegrationssync_azure_blob_storage)
|
59
69
|
* [`carbon.integrations.sync_confluence`](#carbonintegrationssync_confluence)
|
60
70
|
* [`carbon.integrations.sync_data_source_items`](#carbonintegrationssync_data_source_items)
|
61
71
|
* [`carbon.integrations.sync_files`](#carbonintegrationssync_files)
|
@@ -94,7 +104,7 @@ Connect external data to LLMs, no matter the source.
|
|
94
104
|
Add to Gemfile:
|
95
105
|
|
96
106
|
```ruby
|
97
|
-
gem 'carbon_ruby_sdk', '~> 0.2.
|
107
|
+
gem 'carbon_ruby_sdk', '~> 0.2.36'
|
98
108
|
```
|
99
109
|
|
100
110
|
## Getting Started<a id="getting-started"></a>
|
@@ -186,6 +196,331 @@ p result
|
|
186
196
|
---
|
187
197
|
|
188
198
|
|
199
|
+
### `carbon.crm.get_account`<a id="carboncrmget_account"></a>
|
200
|
+
|
201
|
+
Get Account
|
202
|
+
|
203
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
204
|
+
|
205
|
+
```ruby
|
206
|
+
result = carbon.crm.get_account(
|
207
|
+
id: "id_example",
|
208
|
+
data_source_id: 1,
|
209
|
+
include_remote_data: false,
|
210
|
+
includes: [
|
211
|
+
"string_example"
|
212
|
+
],
|
213
|
+
)
|
214
|
+
p result
|
215
|
+
```
|
216
|
+
|
217
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
218
|
+
|
219
|
+
##### id: `String`<a id="id-string"></a>
|
220
|
+
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
221
|
+
##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
|
222
|
+
##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
|
223
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
224
|
+
|
225
|
+
[Account](./lib/carbon_ruby_sdk/models/account.rb)
|
226
|
+
|
227
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
228
|
+
|
229
|
+
`/integrations/data/crm/accounts/{id}` `GET`
|
230
|
+
|
231
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
232
|
+
|
233
|
+
---
|
234
|
+
|
235
|
+
|
236
|
+
### `carbon.crm.get_accounts`<a id="carboncrmget_accounts"></a>
|
237
|
+
|
238
|
+
Get Accounts
|
239
|
+
|
240
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
241
|
+
|
242
|
+
```ruby
|
243
|
+
result = carbon.crm.get_accounts(
|
244
|
+
data_source_id: 1,
|
245
|
+
include_remote_data: false,
|
246
|
+
next_cursor: "string_example",
|
247
|
+
page_size: 1,
|
248
|
+
order_dir: "asc",
|
249
|
+
includes: [],
|
250
|
+
filters: {
|
251
|
+
},
|
252
|
+
order_by: "created_at",
|
253
|
+
)
|
254
|
+
p result
|
255
|
+
```
|
256
|
+
|
257
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
258
|
+
|
259
|
+
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
260
|
+
##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
|
261
|
+
##### next_cursor: `String`<a id="next_cursor-string"></a>
|
262
|
+
##### page_size: `Integer`<a id="page_size-integer"></a>
|
263
|
+
##### order_dir: [`OrderDirV2Nullable`](./lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb)<a id="order_dir-orderdirv2nullablelibcarbon_ruby_sdkmodelsorder_dir_v2_nullablerb"></a>
|
264
|
+
##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
|
265
|
+
##### filters: [`AccountFilters`](./lib/carbon_ruby_sdk/models/account_filters.rb)<a id="filters-accountfilterslibcarbon_ruby_sdkmodelsaccount_filtersrb"></a>
|
266
|
+
##### order_by: [`AccountsOrderByNullable`](./lib/carbon_ruby_sdk/models/accounts_order_by_nullable.rb)<a id="order_by-accountsorderbynullablelibcarbon_ruby_sdkmodelsaccounts_order_by_nullablerb"></a>
|
267
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
268
|
+
|
269
|
+
[AccountResponse](./lib/carbon_ruby_sdk/models/account_response.rb)
|
270
|
+
|
271
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
272
|
+
|
273
|
+
`/integrations/data/crm/accounts` `POST`
|
274
|
+
|
275
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
276
|
+
|
277
|
+
---
|
278
|
+
|
279
|
+
|
280
|
+
### `carbon.crm.get_contact`<a id="carboncrmget_contact"></a>
|
281
|
+
|
282
|
+
Get Contact
|
283
|
+
|
284
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
285
|
+
|
286
|
+
```ruby
|
287
|
+
result = carbon.crm.get_contact(
|
288
|
+
id: "id_example",
|
289
|
+
data_source_id: 1,
|
290
|
+
include_remote_data: false,
|
291
|
+
includes: [
|
292
|
+
"string_example"
|
293
|
+
],
|
294
|
+
)
|
295
|
+
p result
|
296
|
+
```
|
297
|
+
|
298
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
299
|
+
|
300
|
+
##### id: `String`<a id="id-string"></a>
|
301
|
+
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
302
|
+
##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
|
303
|
+
##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
|
304
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
305
|
+
|
306
|
+
[Contact](./lib/carbon_ruby_sdk/models/contact.rb)
|
307
|
+
|
308
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
309
|
+
|
310
|
+
`/integrations/data/crm/contacts/{id}` `GET`
|
311
|
+
|
312
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
313
|
+
|
314
|
+
---
|
315
|
+
|
316
|
+
|
317
|
+
### `carbon.crm.get_contacts`<a id="carboncrmget_contacts"></a>
|
318
|
+
|
319
|
+
Get Contacts
|
320
|
+
|
321
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
322
|
+
|
323
|
+
```ruby
|
324
|
+
result = carbon.crm.get_contacts(
|
325
|
+
data_source_id: 1,
|
326
|
+
include_remote_data: false,
|
327
|
+
next_cursor: "string_example",
|
328
|
+
page_size: 1,
|
329
|
+
order_dir: "asc",
|
330
|
+
includes: [],
|
331
|
+
filters: {
|
332
|
+
},
|
333
|
+
order_by: "created_at",
|
334
|
+
)
|
335
|
+
p result
|
336
|
+
```
|
337
|
+
|
338
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
339
|
+
|
340
|
+
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
341
|
+
##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
|
342
|
+
##### next_cursor: `String`<a id="next_cursor-string"></a>
|
343
|
+
##### page_size: `Integer`<a id="page_size-integer"></a>
|
344
|
+
##### order_dir: [`OrderDirV2Nullable`](./lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb)<a id="order_dir-orderdirv2nullablelibcarbon_ruby_sdkmodelsorder_dir_v2_nullablerb"></a>
|
345
|
+
##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
|
346
|
+
##### filters: [`ContactFilters`](./lib/carbon_ruby_sdk/models/contact_filters.rb)<a id="filters-contactfilterslibcarbon_ruby_sdkmodelscontact_filtersrb"></a>
|
347
|
+
##### order_by: [`ContactsOrderByNullable`](./lib/carbon_ruby_sdk/models/contacts_order_by_nullable.rb)<a id="order_by-contactsorderbynullablelibcarbon_ruby_sdkmodelscontacts_order_by_nullablerb"></a>
|
348
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
349
|
+
|
350
|
+
[ContactsResponse](./lib/carbon_ruby_sdk/models/contacts_response.rb)
|
351
|
+
|
352
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
353
|
+
|
354
|
+
`/integrations/data/crm/contacts` `POST`
|
355
|
+
|
356
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
357
|
+
|
358
|
+
---
|
359
|
+
|
360
|
+
|
361
|
+
### `carbon.crm.get_lead`<a id="carboncrmget_lead"></a>
|
362
|
+
|
363
|
+
Get Lead
|
364
|
+
|
365
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
366
|
+
|
367
|
+
```ruby
|
368
|
+
result = carbon.crm.get_lead(
|
369
|
+
id: "id_example",
|
370
|
+
data_source_id: 1,
|
371
|
+
include_remote_data: false,
|
372
|
+
includes: [
|
373
|
+
"string_example"
|
374
|
+
],
|
375
|
+
)
|
376
|
+
p result
|
377
|
+
```
|
378
|
+
|
379
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
380
|
+
|
381
|
+
##### id: `String`<a id="id-string"></a>
|
382
|
+
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
383
|
+
##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
|
384
|
+
##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
|
385
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
386
|
+
|
387
|
+
[Lead](./lib/carbon_ruby_sdk/models/lead.rb)
|
388
|
+
|
389
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
390
|
+
|
391
|
+
`/integrations/data/crm/leads/{id}` `GET`
|
392
|
+
|
393
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
394
|
+
|
395
|
+
---
|
396
|
+
|
397
|
+
|
398
|
+
### `carbon.crm.get_leads`<a id="carboncrmget_leads"></a>
|
399
|
+
|
400
|
+
Get Leads
|
401
|
+
|
402
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
403
|
+
|
404
|
+
```ruby
|
405
|
+
result = carbon.crm.get_leads(
|
406
|
+
data_source_id: 1,
|
407
|
+
include_remote_data: false,
|
408
|
+
next_cursor: "string_example",
|
409
|
+
page_size: 1,
|
410
|
+
order_dir: "asc",
|
411
|
+
includes: [],
|
412
|
+
filters: {
|
413
|
+
},
|
414
|
+
order_by: "created_at",
|
415
|
+
)
|
416
|
+
p result
|
417
|
+
```
|
418
|
+
|
419
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
420
|
+
|
421
|
+
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
422
|
+
##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
|
423
|
+
##### next_cursor: `String`<a id="next_cursor-string"></a>
|
424
|
+
##### page_size: `Integer`<a id="page_size-integer"></a>
|
425
|
+
##### order_dir: [`OrderDirV2Nullable`](./lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb)<a id="order_dir-orderdirv2nullablelibcarbon_ruby_sdkmodelsorder_dir_v2_nullablerb"></a>
|
426
|
+
##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
|
427
|
+
##### filters: [`LeadFilters`](./lib/carbon_ruby_sdk/models/lead_filters.rb)<a id="filters-leadfilterslibcarbon_ruby_sdkmodelslead_filtersrb"></a>
|
428
|
+
##### order_by: [`LeadsOrderByNullable`](./lib/carbon_ruby_sdk/models/leads_order_by_nullable.rb)<a id="order_by-leadsorderbynullablelibcarbon_ruby_sdkmodelsleads_order_by_nullablerb"></a>
|
429
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
430
|
+
|
431
|
+
[LeadsResponse](./lib/carbon_ruby_sdk/models/leads_response.rb)
|
432
|
+
|
433
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
434
|
+
|
435
|
+
`/integrations/data/crm/leads` `POST`
|
436
|
+
|
437
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
438
|
+
|
439
|
+
---
|
440
|
+
|
441
|
+
|
442
|
+
### `carbon.crm.get_opportunities`<a id="carboncrmget_opportunities"></a>
|
443
|
+
|
444
|
+
Get Opportunities
|
445
|
+
|
446
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
447
|
+
|
448
|
+
```ruby
|
449
|
+
result = carbon.crm.get_opportunities(
|
450
|
+
data_source_id: 1,
|
451
|
+
include_remote_data: false,
|
452
|
+
next_cursor: "string_example",
|
453
|
+
page_size: 1,
|
454
|
+
order_dir: "asc",
|
455
|
+
includes: [],
|
456
|
+
filters: {
|
457
|
+
"status" => "WON",
|
458
|
+
},
|
459
|
+
order_by: "created_at",
|
460
|
+
)
|
461
|
+
p result
|
462
|
+
```
|
463
|
+
|
464
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
465
|
+
|
466
|
+
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
467
|
+
##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
|
468
|
+
##### next_cursor: `String`<a id="next_cursor-string"></a>
|
469
|
+
##### page_size: `Integer`<a id="page_size-integer"></a>
|
470
|
+
##### order_dir: [`OrderDirV2Nullable`](./lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb)<a id="order_dir-orderdirv2nullablelibcarbon_ruby_sdkmodelsorder_dir_v2_nullablerb"></a>
|
471
|
+
##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
|
472
|
+
##### filters: [`OpportunityFilters`](./lib/carbon_ruby_sdk/models/opportunity_filters.rb)<a id="filters-opportunityfilterslibcarbon_ruby_sdkmodelsopportunity_filtersrb"></a>
|
473
|
+
##### order_by: [`OpportunitiesOrderByNullable`](./lib/carbon_ruby_sdk/models/opportunities_order_by_nullable.rb)<a id="order_by-opportunitiesorderbynullablelibcarbon_ruby_sdkmodelsopportunities_order_by_nullablerb"></a>
|
474
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
475
|
+
|
476
|
+
[OpportunitiesResponse](./lib/carbon_ruby_sdk/models/opportunities_response.rb)
|
477
|
+
|
478
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
479
|
+
|
480
|
+
`/integrations/data/crm/opportunities` `POST`
|
481
|
+
|
482
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
483
|
+
|
484
|
+
---
|
485
|
+
|
486
|
+
|
487
|
+
### `carbon.crm.get_opportunity`<a id="carboncrmget_opportunity"></a>
|
488
|
+
|
489
|
+
Get Opportunity
|
490
|
+
|
491
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
492
|
+
|
493
|
+
```ruby
|
494
|
+
result = carbon.crm.get_opportunity(
|
495
|
+
id: "id_example",
|
496
|
+
data_source_id: 1,
|
497
|
+
include_remote_data: false,
|
498
|
+
includes: [
|
499
|
+
"string_example"
|
500
|
+
],
|
501
|
+
)
|
502
|
+
p result
|
503
|
+
```
|
504
|
+
|
505
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
506
|
+
|
507
|
+
##### id: `String`<a id="id-string"></a>
|
508
|
+
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
509
|
+
##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
|
510
|
+
##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
|
511
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
512
|
+
|
513
|
+
[Opportunity](./lib/carbon_ruby_sdk/models/opportunity.rb)
|
514
|
+
|
515
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
516
|
+
|
517
|
+
`/integrations/data/crm/opportunities/{id}` `GET`
|
518
|
+
|
519
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
520
|
+
|
521
|
+
---
|
522
|
+
|
523
|
+
|
189
524
|
### `carbon.data_sources.query_user_data_sources`<a id="carbondata_sourcesquery_user_data_sources"></a>
|
190
525
|
|
191
526
|
User Data Sources
|
@@ -2096,6 +2431,129 @@ p result
|
|
2096
2431
|
---
|
2097
2432
|
|
2098
2433
|
|
2434
|
+
### `carbon.integrations.sync_azure_blob_files`<a id="carbonintegrationssync_azure_blob_files"></a>
|
2435
|
+
|
2436
|
+
After optionally loading the items via /integrations/items/sync and integrations/items/list, use the container name
|
2437
|
+
and file name as the ID in this endpoint to sync them into Carbon. Additional parameters below can associate
|
2438
|
+
data with the selected items or modify the sync behavior
|
2439
|
+
|
2440
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
2441
|
+
|
2442
|
+
```ruby
|
2443
|
+
result = carbon.integrations.sync_azure_blob_files(
|
2444
|
+
ids: [
|
2445
|
+
{
|
2446
|
+
}
|
2447
|
+
],
|
2448
|
+
tags: {},
|
2449
|
+
chunk_size: 1500,
|
2450
|
+
chunk_overlap: 20,
|
2451
|
+
skip_embedding_generation: false,
|
2452
|
+
embedding_model: "OPENAI",
|
2453
|
+
generate_sparse_vectors: false,
|
2454
|
+
prepend_filename_to_chunks: false,
|
2455
|
+
max_items_per_chunk: 1,
|
2456
|
+
set_page_as_boundary: false,
|
2457
|
+
data_source_id: 1,
|
2458
|
+
request_id: "string_example",
|
2459
|
+
use_ocr: false,
|
2460
|
+
parse_pdf_tables_with_ocr: false,
|
2461
|
+
file_sync_config: {
|
2462
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
2463
|
+
"sync_attachments" => false,
|
2464
|
+
"detect_audio_language" => false,
|
2465
|
+
"transcription_service" => "assemblyai",
|
2466
|
+
"include_speaker_labels" => false,
|
2467
|
+
"split_rows" => false,
|
2468
|
+
"generate_chunks_only" => false,
|
2469
|
+
"skip_file_processing" => false,
|
2470
|
+
},
|
2471
|
+
)
|
2472
|
+
p result
|
2473
|
+
```
|
2474
|
+
|
2475
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
2476
|
+
|
2477
|
+
##### ids: Array<[`AzureBlobGetFileInput`](./lib/carbon_ruby_sdk/models/azure_blob_get_file_input.rb)><a id="ids-array"></a>
|
2478
|
+
##### tags: `Object`<a id="tags-object"></a>
|
2479
|
+
##### chunk_size: `Integer`<a id="chunk_size-integer"></a>
|
2480
|
+
##### chunk_overlap: `Integer`<a id="chunk_overlap-integer"></a>
|
2481
|
+
##### skip_embedding_generation: `Boolean`<a id="skip_embedding_generation-boolean"></a>
|
2482
|
+
##### embedding_model: [`EmbeddingGenerators`](./lib/carbon_ruby_sdk/models/embedding_generators.rb)<a id="embedding_model-embeddinggeneratorslibcarbon_ruby_sdkmodelsembedding_generatorsrb"></a>
|
2483
|
+
##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
|
2484
|
+
##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
|
2485
|
+
##### max_items_per_chunk: `Integer`<a id="max_items_per_chunk-integer"></a>
|
2486
|
+
Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
2487
|
+
|
2488
|
+
##### set_page_as_boundary: `Boolean`<a id="set_page_as_boundary-boolean"></a>
|
2489
|
+
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
2490
|
+
##### request_id: `String`<a id="request_id-string"></a>
|
2491
|
+
##### use_ocr: `Boolean`<a id="use_ocr-boolean"></a>
|
2492
|
+
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
2493
|
+
##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
|
2494
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
2495
|
+
|
2496
|
+
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
2497
|
+
|
2498
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
2499
|
+
|
2500
|
+
`/integrations/azure_blob_storage/files` `POST`
|
2501
|
+
|
2502
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
2503
|
+
|
2504
|
+
---
|
2505
|
+
|
2506
|
+
|
2507
|
+
### `carbon.integrations.sync_azure_blob_storage`<a id="carbonintegrationssync_azure_blob_storage"></a>
|
2508
|
+
|
2509
|
+
This endpoint can be used to connect Azure Blob Storage.
|
2510
|
+
|
2511
|
+
For Azure Blob Storage, follow these steps:
|
2512
|
+
<ol>
|
2513
|
+
<li>Create a new Azure Storage account and grant the following permissions:
|
2514
|
+
<ul>
|
2515
|
+
<li>List containers.</li>
|
2516
|
+
<li>Read from specific containers and blobs to sync with Carbon. Ensure any future containers or blobs carry the same permissions.</li>
|
2517
|
+
</ul>
|
2518
|
+
</li>
|
2519
|
+
<li>Generate a shared access signature (SAS) token or an access key for the storage account.</li>
|
2520
|
+
</ol>
|
2521
|
+
|
2522
|
+
Once created, provide us with the following details to generate the connection URL:
|
2523
|
+
<ol>
|
2524
|
+
<li>Storage Account KeyName.</li>
|
2525
|
+
<li>Storage Account Name.</li>
|
2526
|
+
</ol>
|
2527
|
+
|
2528
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
2529
|
+
|
2530
|
+
```ruby
|
2531
|
+
result = carbon.integrations.sync_azure_blob_storage(
|
2532
|
+
account_name: "string_example",
|
2533
|
+
account_key: "string_example",
|
2534
|
+
sync_source_items: true,
|
2535
|
+
)
|
2536
|
+
p result
|
2537
|
+
```
|
2538
|
+
|
2539
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
2540
|
+
|
2541
|
+
##### account_name: `String`<a id="account_name-string"></a>
|
2542
|
+
##### account_key: `String`<a id="account_key-string"></a>
|
2543
|
+
##### sync_source_items: `Boolean`<a id="sync_source_items-boolean"></a>
|
2544
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
2545
|
+
|
2546
|
+
[OrganizationUserDataSourceAPI](./lib/carbon_ruby_sdk/models/organization_user_data_source_api.rb)
|
2547
|
+
|
2548
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
2549
|
+
|
2550
|
+
`/integrations/azure_blob_storage` `POST`
|
2551
|
+
|
2552
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
2553
|
+
|
2554
|
+
---
|
2555
|
+
|
2556
|
+
|
2099
2557
|
### `carbon.integrations.sync_confluence`<a id="carbonintegrationssync_confluence"></a>
|
2100
2558
|
![Deprecated](https://img.shields.io/badge/deprecated-yellow)
|
2101
2559
|
|