carbon_ruby_sdk 0.2.48 → 0.2.49

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +54 -22
  4. data/lib/carbon_ruby_sdk/api/data_sources_api.rb +106 -2
  5. data/lib/carbon_ruby_sdk/api/embeddings_api.rb +4 -4
  6. data/lib/carbon_ruby_sdk/api/files_api.rb +22 -22
  7. data/lib/carbon_ruby_sdk/api/github_api.rb +6 -6
  8. data/lib/carbon_ruby_sdk/api/integrations_api.rb +20 -20
  9. data/lib/carbon_ruby_sdk/api/users_api.rb +10 -6
  10. data/lib/carbon_ruby_sdk/api/utilities_api.rb +4 -4
  11. data/lib/carbon_ruby_sdk/api/webhooks_api.rb +2 -2
  12. data/lib/carbon_ruby_sdk/api/white_label_api.rb +2 -2
  13. data/lib/carbon_ruby_sdk/models/authentication_property.rb +6 -2
  14. data/lib/carbon_ruby_sdk/models/auto_sync_enabled_sources_property.rb +1 -1
  15. data/lib/carbon_ruby_sdk/models/azure_blob_file_sync_input.rb +0 -2
  16. data/lib/carbon_ruby_sdk/models/azure_blob_storage_authentication.rb +6 -2
  17. data/lib/carbon_ruby_sdk/models/azure_blob_storage_types.rb +35 -0
  18. data/lib/carbon_ruby_sdk/models/chunk_properties.rb +0 -10
  19. data/lib/carbon_ruby_sdk/models/chunk_properties_nullable.rb +0 -10
  20. data/lib/carbon_ruby_sdk/models/comments_input.rb +0 -2
  21. data/lib/carbon_ruby_sdk/models/configuration_keys.rb +35 -0
  22. data/lib/carbon_ruby_sdk/models/confluence_authentication.rb +6 -2
  23. data/lib/carbon_ruby_sdk/models/confluence_authentication_source.rb +35 -0
  24. data/lib/carbon_ruby_sdk/models/data_source_extended_input.rb +35 -0
  25. data/lib/carbon_ruby_sdk/models/directory_item.rb +0 -10
  26. data/lib/carbon_ruby_sdk/models/embedding_model.rb +1 -1
  27. data/lib/carbon_ruby_sdk/models/embeddings_and_chunks_query_input.rb +0 -4
  28. data/lib/carbon_ruby_sdk/models/embeddings_and_chunks_query_input_v2.rb +0 -4
  29. data/lib/carbon_ruby_sdk/models/freskdesk_authentication.rb +6 -2
  30. data/lib/carbon_ruby_sdk/models/freskdesk_authentication_source.rb +35 -0
  31. data/lib/carbon_ruby_sdk/models/gitbook_authetication.rb +6 -2
  32. data/lib/carbon_ruby_sdk/models/gitbook_authetication_source.rb +35 -0
  33. data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +0 -2
  34. data/lib/carbon_ruby_sdk/models/gitbook_sync_request.rb +0 -2
  35. data/lib/carbon_ruby_sdk/models/github_authentication.rb +6 -2
  36. data/lib/carbon_ruby_sdk/models/github_authentication_source.rb +35 -0
  37. data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +0 -2
  38. data/lib/carbon_ruby_sdk/models/gong_authentication.rb +6 -2
  39. data/lib/carbon_ruby_sdk/models/gong_authentication_source.rb +35 -0
  40. data/lib/carbon_ruby_sdk/models/google_drive_white_label_input.rb +6 -2
  41. data/lib/carbon_ruby_sdk/models/google_drive_white_label_input_data_source_type.rb +35 -0
  42. data/lib/carbon_ruby_sdk/models/guru_authentication.rb +6 -2
  43. data/lib/carbon_ruby_sdk/models/guru_authentication_source.rb +35 -0
  44. data/lib/carbon_ruby_sdk/models/guru_connect_request.rb +0 -2
  45. data/lib/carbon_ruby_sdk/models/issues_filter.rb +0 -2
  46. data/lib/carbon_ruby_sdk/models/issues_input.rb +0 -2
  47. data/lib/carbon_ruby_sdk/models/item_types_property_inner.rb +1 -1
  48. data/lib/carbon_ruby_sdk/models/list_data_source_items_request.rb +0 -4
  49. data/lib/carbon_ruby_sdk/models/list_user_response.rb +0 -10
  50. data/lib/carbon_ruby_sdk/models/list_users_request.rb +0 -4
  51. data/lib/carbon_ruby_sdk/models/list_white_label_request.rb +0 -4
  52. data/lib/carbon_ruby_sdk/models/modify_user_configuration_input.rb +1 -1
  53. data/lib/carbon_ruby_sdk/models/multi_modal_embedding_generators.rb +35 -0
  54. data/lib/carbon_ruby_sdk/models/notion_authentication.rb +6 -2
  55. data/lib/carbon_ruby_sdk/models/notion_authentication_source.rb +35 -0
  56. data/lib/carbon_ruby_sdk/models/one_drive_authentication.rb +6 -2
  57. data/lib/carbon_ruby_sdk/models/one_drive_authentication_source.rb +35 -0
  58. data/lib/carbon_ruby_sdk/models/organization_response.rb +0 -20
  59. data/lib/carbon_ruby_sdk/models/organization_user_data_source_query_input.rb +0 -4
  60. data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_query_input.rb +0 -8
  61. data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +0 -2
  62. data/lib/carbon_ruby_sdk/models/pull_request_filters.rb +0 -2
  63. data/lib/carbon_ruby_sdk/models/pull_requests_input.rb +0 -2
  64. data/lib/carbon_ruby_sdk/models/rss_feed_input.rb +0 -2
  65. data/lib/carbon_ruby_sdk/models/s3_authentication.rb +6 -2
  66. data/lib/carbon_ruby_sdk/models/s3_authentication_source.rb +35 -0
  67. data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +0 -2
  68. data/lib/carbon_ruby_sdk/models/salesforce_authentication.rb +6 -2
  69. data/lib/carbon_ruby_sdk/models/salesforce_authentication_source.rb +35 -0
  70. data/lib/carbon_ruby_sdk/models/service_now_authentication.rb +6 -2
  71. data/lib/carbon_ruby_sdk/models/service_now_authentication_source.rb +35 -0
  72. data/lib/carbon_ruby_sdk/models/sharepoint_authentication.rb +6 -2
  73. data/lib/carbon_ruby_sdk/models/sharepoint_authentication_source.rb +35 -0
  74. data/lib/carbon_ruby_sdk/models/sitemap_scrape_request.rb +0 -2
  75. data/lib/carbon_ruby_sdk/models/slack_sync_request.rb +0 -2
  76. data/lib/carbon_ruby_sdk/models/source.rb +35 -0
  77. data/lib/carbon_ruby_sdk/models/update_users_input.rb +27 -1
  78. data/lib/carbon_ruby_sdk/models/upload_file_from_url_input.rb +0 -2
  79. data/lib/carbon_ruby_sdk/models/user_configuration.rb +31 -5
  80. data/lib/carbon_ruby_sdk/models/user_configuration_nullable.rb +31 -5
  81. data/lib/carbon_ruby_sdk/models/user_file.rb +0 -20
  82. data/lib/carbon_ruby_sdk/models/user_response.rb +0 -15
  83. data/lib/carbon_ruby_sdk/models/user_web_pages_request.rb +0 -4
  84. data/lib/carbon_ruby_sdk/models/webhook_query_input.rb +0 -4
  85. data/lib/carbon_ruby_sdk/models/webscrape_request.rb +0 -2
  86. data/lib/carbon_ruby_sdk/models/white_labeling_response.rb +0 -5
  87. data/lib/carbon_ruby_sdk/models/zendesk_authentication.rb +6 -2
  88. data/lib/carbon_ruby_sdk/models/zendesk_authentication_source.rb +35 -0
  89. data/lib/carbon_ruby_sdk/models/zotero_authentication.rb +6 -2
  90. data/lib/carbon_ruby_sdk/models/zotero_authentication_source.rb +35 -0
  91. data/lib/carbon_ruby_sdk/version.rb +1 -1
  92. data/lib/carbon_ruby_sdk.rb +20 -0
  93. data/spec/api/data_sources_api_spec.rb +11 -0
  94. data/spec/models/azure_blob_storage_types_spec.rb +22 -0
  95. data/spec/models/configuration_keys_spec.rb +22 -0
  96. data/spec/models/confluence_authentication_source_spec.rb +22 -0
  97. data/spec/models/data_source_extended_input_spec.rb +22 -0
  98. data/spec/models/freskdesk_authentication_source_spec.rb +22 -0
  99. data/spec/models/gitbook_authetication_source_spec.rb +22 -0
  100. data/spec/models/github_authentication_source_spec.rb +22 -0
  101. data/spec/models/gong_authentication_source_spec.rb +22 -0
  102. data/spec/models/google_drive_white_label_input_data_source_type_spec.rb +22 -0
  103. data/spec/models/guru_authentication_source_spec.rb +22 -0
  104. data/spec/models/multi_modal_embedding_generators_spec.rb +22 -0
  105. data/spec/models/notion_authentication_source_spec.rb +22 -0
  106. data/spec/models/one_drive_authentication_source_spec.rb +22 -0
  107. data/spec/models/s3_authentication_source_spec.rb +22 -0
  108. data/spec/models/salesforce_authentication_source_spec.rb +22 -0
  109. data/spec/models/service_now_authentication_source_spec.rb +22 -0
  110. data/spec/models/sharepoint_authentication_source_spec.rb +22 -0
  111. data/spec/models/source_spec.rb +22 -0
  112. data/spec/models/update_users_input_spec.rb +6 -0
  113. data/spec/models/user_configuration_nullable_spec.rb +6 -0
  114. data/spec/models/user_configuration_spec.rb +6 -0
  115. data/spec/models/zendesk_authentication_source_spec.rb +22 -0
  116. data/spec/models/zotero_authentication_source_spec.rb +22 -0
  117. metadata +62 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 434a81260acd52ada45db2d39bde06663b6556f2826ab8473dbc5d29162f3fb1
4
- data.tar.gz: 9cf8bc8c009c7aa763a48e429976edf21a00cb701ff6823fa739c413722287cd
3
+ metadata.gz: 5377eddec4484fc632907259ca881b18e2de0d89ba45f11e39cf83f3b558b3db
4
+ data.tar.gz: acd1aefa8532e6dffa4bb78ddd49bf8c44a0bc6bd6b3b82f315f4f30a2f574a3
5
5
  SHA512:
6
- metadata.gz: bff608f5ce01bbc6cfbb4e239b176546efc364a287d879229fe31f4574af0e62087499df756512f1b3c3f1d54a56bed7baeca533cc52f5729142dac34837b306
7
- data.tar.gz: b4a211248215ff857b1e19440ee552c63f76753aeec7048084fc0f9acb144e65287127fb571b0c73727c36c09b5cdc85854d484759d89dfe5a0ba223a715e6ca
6
+ metadata.gz: 37b917b98b2ba00b55bd034e927cc7ddd64df51c1906152b49ab8293a577b8d6a3e1fb68b2f5a547e98860e1fb9316c57a3a01b28a4937f365a950a85cc70dd2
7
+ data.tar.gz: 100ad2f69c198ac3972519b3f4b5a3408a4916ebcfbdc2feb593b87a2c0b0091fa988da9f57c404069535fd3229b5bc051669e1560792206e3d3e9a6ae2a1ea8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.2.48)
4
+ carbon_ruby_sdk (0.2.49)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -42,7 +42,7 @@ GEM
42
42
  rainbow (3.1.1)
43
43
  rake (13.0.6)
44
44
  regexp_parser (2.9.2)
45
- reline (0.5.10)
45
+ reline (0.5.11)
46
46
  io-console (~> 0.5)
47
47
  rexml (3.3.9)
48
48
  rspec (3.13.0)
@@ -67,7 +67,7 @@ GEM
67
67
  rubocop-ast (>= 1.2.0, < 2.0)
68
68
  ruby-progressbar (~> 1.7)
69
69
  unicode-display_width (>= 1.4.0, < 3.0)
70
- rubocop-ast (1.34.0)
70
+ rubocop-ast (1.35.0)
71
71
  parser (>= 3.3.1.0)
72
72
  ruby-progressbar (1.13.0)
73
73
  ruby2_keywords (0.0.5)
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.48-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.48)
9
+ [![npm](https://img.shields.io/badge/gem-v0.2.49-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.49)
10
10
 
11
11
  </div>
12
12
 
@@ -29,6 +29,7 @@ Connect external data to LLMs, no matter the source.
29
29
  * [`carbon.crm.get_opportunities`](#carboncrmget_opportunities)
30
30
  * [`carbon.crm.get_opportunity`](#carboncrmget_opportunity)
31
31
  * [`carbon.data_sources.add_tags`](#carbondata_sourcesadd_tags)
32
+ * [`carbon.data_sources.query`](#carbondata_sourcesquery)
32
33
  * [`carbon.data_sources.query_user_data_sources`](#carbondata_sourcesquery_user_data_sources)
33
34
  * [`carbon.data_sources.remove_tags`](#carbondata_sourcesremove_tags)
34
35
  * [`carbon.data_sources.revoke_access_token`](#carbondata_sourcesrevoke_access_token)
@@ -119,7 +120,7 @@ Connect external data to LLMs, no matter the source.
119
120
  Add to Gemfile:
120
121
 
121
122
  ```ruby
122
- gem 'carbon_ruby_sdk', '~> 0.2.48'
123
+ gem 'carbon_ruby_sdk', '~> 0.2.49'
123
124
  ```
124
125
 
125
126
  ## Getting Started<a id="getting-started"></a>
@@ -567,6 +568,47 @@ p result
567
568
  ---
568
569
 
569
570
 
571
+ ### `carbon.data_sources.query`<a id="carbondata_sourcesquery"></a>
572
+
573
+ Data Sources
574
+
575
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
576
+
577
+ ```ruby
578
+ result = carbon.data_sources.query(
579
+ pagination: {
580
+ "limit" => 10,
581
+ "offset" => 0,
582
+ "starting_id" => 0,
583
+ },
584
+ order_by: "created_at",
585
+ order_dir: "desc",
586
+ filters: {
587
+ "source" => "GOOGLE_CLOUD_STORAGE",
588
+ },
589
+ )
590
+ p result
591
+ ```
592
+
593
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
594
+
595
+ ##### pagination: [`Pagination`](./lib/carbon_ruby_sdk/models/pagination.rb)<a id="pagination-paginationlibcarbon_ruby_sdkmodelspaginationrb"></a>
596
+ ##### order_by: [`OrganizationUserDataSourceOrderByColumns`](./lib/carbon_ruby_sdk/models/organization_user_data_source_order_by_columns.rb)<a id="order_by-organizationuserdatasourceorderbycolumnslibcarbon_ruby_sdkmodelsorganization_user_data_source_order_by_columnsrb"></a>
597
+ ##### order_dir: [`OrderDir`](./lib/carbon_ruby_sdk/models/order_dir.rb)<a id="order_dir-orderdirlibcarbon_ruby_sdkmodelsorder_dirrb"></a>
598
+ ##### filters: [`OrganizationUserDataSourceFilters`](./lib/carbon_ruby_sdk/models/organization_user_data_source_filters.rb)<a id="filters-organizationuserdatasourcefilterslibcarbon_ruby_sdkmodelsorganization_user_data_source_filtersrb"></a>
599
+ #### 🔄 Return<a id="🔄-return"></a>
600
+
601
+ [OrganizationUserDataSourceResponse](./lib/carbon_ruby_sdk/models/organization_user_data_source_response.rb)
602
+
603
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
604
+
605
+ `/data_sources` `POST`
606
+
607
+ [🔙 **Back to Table of Contents**](#table-of-contents)
608
+
609
+ ---
610
+
611
+
570
612
  ### `carbon.data_sources.query_user_data_sources`<a id="carbondata_sourcesquery_user_data_sources"></a>
571
613
 
572
614
  User Data Sources
@@ -1420,17 +1462,9 @@ p result
1420
1462
  #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1421
1463
 
1422
1464
  ##### pagination: [`Pagination`](./lib/carbon_ruby_sdk/models/pagination.rb)<a id="pagination-paginationlibcarbon_ruby_sdkmodelspaginationrb"></a>
1423
- Pagination parameters for the query.
1424
-
1425
1465
  ##### order_by: [`OrganizationUserFilesToSyncOrderByTypes`](./lib/carbon_ruby_sdk/models/organization_user_files_to_sync_order_by_types.rb)<a id="order_by-organizationuserfilestosyncorderbytypeslibcarbon_ruby_sdkmodelsorganization_user_files_to_sync_order_by_typesrb"></a>
1426
- The field on OrganizationUserFilesToSYnc to order the results by.
1427
-
1428
1466
  ##### order_dir: [`OrderDir`](./lib/carbon_ruby_sdk/models/order_dir.rb)<a id="order_dir-orderdirlibcarbon_ruby_sdkmodelsorder_dirrb"></a>
1429
- The direction to order the results by.
1430
-
1431
1467
  ##### 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>
1432
- Filters to apply to the query.
1433
-
1434
1468
  ##### include_raw_file: `Boolean`<a id="include_raw_file-boolean"></a>
1435
1469
  If true, the query will return presigned URLs for the raw file. Only relevant
1436
1470
  for the /user_files_v2 endpoint.
@@ -1491,17 +1525,9 @@ p result
1491
1525
  #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1492
1526
 
1493
1527
  ##### pagination: [`Pagination`](./lib/carbon_ruby_sdk/models/pagination.rb)<a id="pagination-paginationlibcarbon_ruby_sdkmodelspaginationrb"></a>
1494
- Pagination parameters for the query.
1495
-
1496
1528
  ##### order_by: [`OrganizationUserFilesToSyncOrderByTypes`](./lib/carbon_ruby_sdk/models/organization_user_files_to_sync_order_by_types.rb)<a id="order_by-organizationuserfilestosyncorderbytypeslibcarbon_ruby_sdkmodelsorganization_user_files_to_sync_order_by_typesrb"></a>
1497
- The field on OrganizationUserFilesToSYnc to order the results by.
1498
-
1499
1529
  ##### order_dir: [`OrderDir`](./lib/carbon_ruby_sdk/models/order_dir.rb)<a id="order_dir-orderdirlibcarbon_ruby_sdkmodelsorder_dirrb"></a>
1500
- The direction to order the results by.
1501
-
1502
1530
  ##### 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>
1503
- Filters to apply to the query.
1504
-
1505
1531
  ##### include_raw_file: `Boolean`<a id="include_raw_file-boolean"></a>
1506
1532
  If true, the query will return presigned URLs for the raw file. Only relevant
1507
1533
  for the /user_files_v2 endpoint.
@@ -4015,7 +4041,7 @@ Toggle User Features
4015
4041
 
4016
4042
  ```ruby
4017
4043
  result = carbon.users.toggle_user_features(
4018
- configuration_key_name: "string_example",
4044
+ configuration_key_name: "sparse_vectors",
4019
4045
  value: {},
4020
4046
  )
4021
4047
  p result
@@ -4023,7 +4049,7 @@ p result
4023
4049
 
4024
4050
  #### ⚙️ Parameters<a id="⚙️-parameters"></a>
4025
4051
 
4026
- ##### configuration_key_name: `String`<a id="configuration_key_name-string"></a>
4052
+ ##### configuration_key_name: [`ConfigurationKeys`](./lib/carbon_ruby_sdk/models/configuration_keys.rb)<a id="configuration_key_name-configurationkeyslibcarbon_ruby_sdkmodelsconfiguration_keysrb"></a>
4027
4053
  ##### value: `Object`<a id="value-object"></a>
4028
4054
  #### 🔄 Return<a id="🔄-return"></a>
4029
4055
 
@@ -4057,6 +4083,7 @@ result = carbon.users.update_users(
4057
4083
  max_characters: -1,
4058
4084
  max_characters_per_file: -1,
4059
4085
  max_characters_per_upload: -1,
4086
+ auto_sync_interval: -1,
4060
4087
  )
4061
4088
  p result
4062
4089
  ```
@@ -4092,6 +4119,11 @@ Custom character upload limit for the user across a single upload. If set, then
4092
4119
  the user won't be able to sync more than this many characters in one upload. If
4093
4120
  not set, or if set to -1, then the user will have no limit.
4094
4121
 
4122
+ ##### auto_sync_interval: `Integer`<a id="auto_sync_interval-integer"></a>
4123
+ The interval in hours at which the user's data sources should be synced. If not
4124
+ set or set to -1, the user will be synced at the organization level interval or
4125
+ default interval if that is also not set. Must be one of [3, 6, 12, 24]
4126
+
4095
4127
  #### 🔄 Return<a id="🔄-return"></a>
4096
4128
 
4097
4129
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -4601,7 +4633,7 @@ Create White Labels
4601
4633
  result = carbon.white_label.create(
4602
4634
  body: [
4603
4635
  {
4604
- "data_source_type" => None,
4636
+ "data_source_type" => "GOOGLE_DRIVE",
4605
4637
  "credentials" => {
4606
4638
  "client_id" => "client_id_example",
4607
4639
  "redirect_uri" => "redirect_uri_example",
@@ -4703,7 +4735,7 @@ result = carbon.white_label.update(
4703
4735
  "redirect_uri" => "redirect_uri_example",
4704
4736
  },
4705
4737
  body: {
4706
- "data_source_type" => None,
4738
+ "data_source_type" => "GOOGLE_DRIVE",
4707
4739
  "credentials" => {
4708
4740
  "client_id" => "client_id_example",
4709
4741
  "redirect_uri" => "redirect_uri_example",
@@ -112,6 +112,110 @@ module Carbon
112
112
  end
113
113
 
114
114
 
115
+ # Data Sources
116
+ #
117
+ # @param pagination [Pagination]
118
+ # @param order_by [OrganizationUserDataSourceOrderByColumns]
119
+ # @param order_dir [OrderDir]
120
+ # @param filters [OrganizationUserDataSourceFilters]
121
+ # @param body [OrganizationUserDataSourceQueryInput]
122
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
123
+ def query(pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, filters: SENTINEL, extra: {})
124
+ _body = {}
125
+ _body[:pagination] = pagination if pagination != SENTINEL
126
+ _body[:order_by] = order_by if order_by != SENTINEL
127
+ _body[:order_dir] = order_dir if order_dir != SENTINEL
128
+ _body[:filters] = filters if filters != SENTINEL
129
+ organization_user_data_source_query_input = _body
130
+ api_response = query_with_http_info_impl(organization_user_data_source_query_input, extra)
131
+ api_response.data
132
+ end
133
+
134
+ # Data Sources
135
+ #
136
+ # @param pagination [Pagination]
137
+ # @param order_by [OrganizationUserDataSourceOrderByColumns]
138
+ # @param order_dir [OrderDir]
139
+ # @param filters [OrganizationUserDataSourceFilters]
140
+ # @param body [OrganizationUserDataSourceQueryInput]
141
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
142
+ def query_with_http_info(pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, filters: SENTINEL, extra: {})
143
+ _body = {}
144
+ _body[:pagination] = pagination if pagination != SENTINEL
145
+ _body[:order_by] = order_by if order_by != SENTINEL
146
+ _body[:order_dir] = order_dir if order_dir != SENTINEL
147
+ _body[:filters] = filters if filters != SENTINEL
148
+ organization_user_data_source_query_input = _body
149
+ query_with_http_info_impl(organization_user_data_source_query_input, extra)
150
+ end
151
+
152
+ # Data Sources
153
+ # @param organization_user_data_source_query_input [OrganizationUserDataSourceQueryInput]
154
+ # @param [Hash] opts the optional parameters
155
+ # @return [OrganizationUserDataSourceResponse]
156
+ private def query_impl(organization_user_data_source_query_input, opts = {})
157
+ data, _status_code, _headers = query_with_http_info(organization_user_data_source_query_input, opts)
158
+ data
159
+ end
160
+
161
+ # Data Sources
162
+ # @param organization_user_data_source_query_input [OrganizationUserDataSourceQueryInput]
163
+ # @param [Hash] opts the optional parameters
164
+ # @return [APIResponse] data is OrganizationUserDataSourceResponse, status code, headers and response
165
+ private def query_with_http_info_impl(organization_user_data_source_query_input, opts = {})
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug 'Calling API: DataSourcesApi.query ...'
168
+ end
169
+ # verify the required parameter 'organization_user_data_source_query_input' is set
170
+ if @api_client.config.client_side_validation && organization_user_data_source_query_input.nil?
171
+ fail ArgumentError, "Missing the required parameter 'organization_user_data_source_query_input' when calling DataSourcesApi.query"
172
+ end
173
+ # resource path
174
+ local_var_path = '/data_sources'
175
+
176
+ # query parameters
177
+ query_params = opts[:query_params] || {}
178
+
179
+ # header parameters
180
+ header_params = opts[:header_params] || {}
181
+ # HTTP header 'Accept' (if needed)
182
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
183
+ # HTTP header 'Content-Type'
184
+ content_type = @api_client.select_header_content_type(['application/json'])
185
+ if !content_type.nil?
186
+ header_params['Content-Type'] = content_type
187
+ end
188
+
189
+ # form parameters
190
+ form_params = opts[:form_params] || {}
191
+
192
+ # http body (model)
193
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_user_data_source_query_input)
194
+
195
+ # return_type
196
+ return_type = opts[:debug_return_type] || 'OrganizationUserDataSourceResponse'
197
+
198
+ # auth_names
199
+ auth_names = opts[:debug_auth_names] || ['apiKey']
200
+
201
+ new_options = opts.merge(
202
+ :operation => :"DataSourcesApi.query",
203
+ :header_params => header_params,
204
+ :query_params => query_params,
205
+ :form_params => form_params,
206
+ :body => post_body,
207
+ :auth_names => auth_names,
208
+ :return_type => return_type
209
+ )
210
+
211
+ data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
212
+ if @api_client.config.debugging
213
+ @api_client.config.logger.debug "API called: DataSourcesApi#query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
214
+ end
215
+ APIResponse::new(data, status_code, headers, response)
216
+ end
217
+
218
+
115
219
  # User Data Sources
116
220
  #
117
221
  # @param pagination [Pagination]
@@ -120,7 +224,7 @@ module Carbon
120
224
  # @param filters [OrganizationUserDataSourceFilters]
121
225
  # @param body [OrganizationUserDataSourceQueryInput]
122
226
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
123
- def query_user_data_sources(pagination: SENTINEL, order_by: 'updated_at', order_dir: 'asc', filters: SENTINEL, extra: {})
227
+ def query_user_data_sources(pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, filters: SENTINEL, extra: {})
124
228
  _body = {}
125
229
  _body[:pagination] = pagination if pagination != SENTINEL
126
230
  _body[:order_by] = order_by if order_by != SENTINEL
@@ -139,7 +243,7 @@ module Carbon
139
243
  # @param filters [OrganizationUserDataSourceFilters]
140
244
  # @param body [OrganizationUserDataSourceQueryInput]
141
245
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
142
- def query_user_data_sources_with_http_info(pagination: SENTINEL, order_by: 'updated_at', order_dir: 'asc', filters: SENTINEL, extra: {})
246
+ def query_user_data_sources_with_http_info(pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, filters: SENTINEL, extra: {})
143
247
  _body = {}
144
248
  _body[:pagination] = pagination if pagination != SENTINEL
145
249
  _body[:order_by] = order_by if order_by != SENTINEL
@@ -385,7 +385,7 @@ module Carbon
385
385
  # @param include_vectors [Boolean]
386
386
  # @param body [EmbeddingsAndChunksQueryInput]
387
387
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
388
- def get_embeddings_and_chunks(filters:, pagination: SENTINEL, order_by: 'updated_at', order_dir: 'asc', include_vectors: false, extra: {})
388
+ def get_embeddings_and_chunks(filters:, pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, include_vectors: false, extra: {})
389
389
  _body = {}
390
390
  _body[:pagination] = pagination if pagination != SENTINEL
391
391
  _body[:order_by] = order_by if order_by != SENTINEL
@@ -406,7 +406,7 @@ module Carbon
406
406
  # @param include_vectors [Boolean]
407
407
  # @param body [EmbeddingsAndChunksQueryInput]
408
408
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
409
- def get_embeddings_and_chunks_with_http_info(filters:, pagination: SENTINEL, order_by: 'updated_at', order_dir: 'asc', include_vectors: false, extra: {})
409
+ def get_embeddings_and_chunks_with_http_info(filters:, pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, include_vectors: false, extra: {})
410
410
  _body = {}
411
411
  _body[:pagination] = pagination if pagination != SENTINEL
412
412
  _body[:order_by] = order_by if order_by != SENTINEL
@@ -493,7 +493,7 @@ module Carbon
493
493
  # @param include_vectors [Boolean]
494
494
  # @param body [EmbeddingsAndChunksQueryInputV2]
495
495
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
496
- def list(filters:, pagination: SENTINEL, order_by: 'updated_at', order_dir: 'asc', include_vectors: false, extra: {})
496
+ def list(filters:, pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, include_vectors: false, extra: {})
497
497
  _body = {}
498
498
  _body[:pagination] = pagination if pagination != SENTINEL
499
499
  _body[:order_by] = order_by if order_by != SENTINEL
@@ -514,7 +514,7 @@ module Carbon
514
514
  # @param include_vectors [Boolean]
515
515
  # @param body [EmbeddingsAndChunksQueryInputV2]
516
516
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
517
- def list_with_http_info(filters:, pagination: SENTINEL, order_by: 'updated_at', order_dir: 'asc', include_vectors: false, extra: {})
517
+ def list_with_http_info(filters:, pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, include_vectors: false, extra: {})
518
518
  _body = {}
519
519
  _body[:pagination] = pagination if pagination != SENTINEL
520
520
  _body[:order_by] = order_by if order_by != SENTINEL
@@ -936,17 +936,17 @@ module Carbon
936
936
  # 3. "negate" is optional and must be `true` or `false`. If present and `true`, then the filter block is negated in
937
937
  # the resulting query. It is `false` by default.
938
938
  #
939
- # @param pagination [Pagination] Pagination parameters for the query.
940
- # @param order_by [OrganizationUserFilesToSyncOrderByTypes] The field on OrganizationUserFilesToSYnc to order the results by.
941
- # @param order_dir [OrderDir] The direction to order the results by.
942
- # @param filters [OrganizationUserFilesToSyncFilters] Filters to apply to the query.
939
+ # @param pagination [Pagination]
940
+ # @param order_by [OrganizationUserFilesToSyncOrderByTypes]
941
+ # @param order_dir [OrderDir]
942
+ # @param filters [OrganizationUserFilesToSyncFilters]
943
943
  # @param include_raw_file [Boolean] If true, the query will return presigned URLs for the raw file. Only relevant for the /user_files_v2 endpoint.
944
944
  # @param include_parsed_text_file [Boolean] If true, the query will return presigned URLs for the parsed text file. Only relevant for the /user_files_v2 endpoint.
945
945
  # @param include_additional_files [Boolean] If true, the query will return presigned URLs for additional files. Only relevant for the /user_files_v2 endpoint.
946
946
  # @param presigned_url_expiry_time_seconds [Integer] The expiry time for the presigned URLs. Only relevant for the /user_files_v2 endpoint.
947
947
  # @param body [OrganizationUserFilesToSyncQueryInput]
948
948
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
949
- def query_user_files(pagination: SENTINEL, order_by: 'updated_at', order_dir: 'asc', filters: SENTINEL, include_raw_file: SENTINEL, include_parsed_text_file: SENTINEL, include_additional_files: SENTINEL, presigned_url_expiry_time_seconds: 3600, extra: {})
949
+ def query_user_files(pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, filters: SENTINEL, include_raw_file: SENTINEL, include_parsed_text_file: SENTINEL, include_additional_files: SENTINEL, presigned_url_expiry_time_seconds: 3600, extra: {})
950
950
  _body = {}
951
951
  _body[:pagination] = pagination if pagination != SENTINEL
952
952
  _body[:order_by] = order_by if order_by != SENTINEL
@@ -1014,17 +1014,17 @@ module Carbon
1014
1014
  # 3. "negate" is optional and must be `true` or `false`. If present and `true`, then the filter block is negated in
1015
1015
  # the resulting query. It is `false` by default.
1016
1016
  #
1017
- # @param pagination [Pagination] Pagination parameters for the query.
1018
- # @param order_by [OrganizationUserFilesToSyncOrderByTypes] The field on OrganizationUserFilesToSYnc to order the results by.
1019
- # @param order_dir [OrderDir] The direction to order the results by.
1020
- # @param filters [OrganizationUserFilesToSyncFilters] Filters to apply to the query.
1017
+ # @param pagination [Pagination]
1018
+ # @param order_by [OrganizationUserFilesToSyncOrderByTypes]
1019
+ # @param order_dir [OrderDir]
1020
+ # @param filters [OrganizationUserFilesToSyncFilters]
1021
1021
  # @param include_raw_file [Boolean] If true, the query will return presigned URLs for the raw file. Only relevant for the /user_files_v2 endpoint.
1022
1022
  # @param include_parsed_text_file [Boolean] If true, the query will return presigned URLs for the parsed text file. Only relevant for the /user_files_v2 endpoint.
1023
1023
  # @param include_additional_files [Boolean] If true, the query will return presigned URLs for additional files. Only relevant for the /user_files_v2 endpoint.
1024
1024
  # @param presigned_url_expiry_time_seconds [Integer] The expiry time for the presigned URLs. Only relevant for the /user_files_v2 endpoint.
1025
1025
  # @param body [OrganizationUserFilesToSyncQueryInput]
1026
1026
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1027
- def query_user_files_with_http_info(pagination: SENTINEL, order_by: 'updated_at', order_dir: 'asc', filters: SENTINEL, include_raw_file: SENTINEL, include_parsed_text_file: SENTINEL, include_additional_files: SENTINEL, presigned_url_expiry_time_seconds: 3600, extra: {})
1027
+ def query_user_files_with_http_info(pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, filters: SENTINEL, include_raw_file: SENTINEL, include_parsed_text_file: SENTINEL, include_additional_files: SENTINEL, presigned_url_expiry_time_seconds: 3600, extra: {})
1028
1028
  _body = {}
1029
1029
  _body[:pagination] = pagination if pagination != SENTINEL
1030
1030
  _body[:order_by] = order_by if order_by != SENTINEL
@@ -1111,17 +1111,17 @@ module Carbon
1111
1111
  #
1112
1112
  # This route is deprecated. Use `/user_files_v2` instead.
1113
1113
  #
1114
- # @param pagination [Pagination] Pagination parameters for the query.
1115
- # @param order_by [OrganizationUserFilesToSyncOrderByTypes] The field on OrganizationUserFilesToSYnc to order the results by.
1116
- # @param order_dir [OrderDir] The direction to order the results by.
1117
- # @param filters [OrganizationUserFilesToSyncFilters] Filters to apply to the query.
1114
+ # @param pagination [Pagination]
1115
+ # @param order_by [OrganizationUserFilesToSyncOrderByTypes]
1116
+ # @param order_dir [OrderDir]
1117
+ # @param filters [OrganizationUserFilesToSyncFilters]
1118
1118
  # @param include_raw_file [Boolean] If true, the query will return presigned URLs for the raw file. Only relevant for the /user_files_v2 endpoint.
1119
1119
  # @param include_parsed_text_file [Boolean] If true, the query will return presigned URLs for the parsed text file. Only relevant for the /user_files_v2 endpoint.
1120
1120
  # @param include_additional_files [Boolean] If true, the query will return presigned URLs for additional files. Only relevant for the /user_files_v2 endpoint.
1121
1121
  # @param presigned_url_expiry_time_seconds [Integer] The expiry time for the presigned URLs. Only relevant for the /user_files_v2 endpoint.
1122
1122
  # @param body [OrganizationUserFilesToSyncQueryInput]
1123
1123
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1124
- def query_user_files_deprecated(pagination: SENTINEL, order_by: 'updated_at', order_dir: 'asc', filters: SENTINEL, include_raw_file: SENTINEL, include_parsed_text_file: SENTINEL, include_additional_files: SENTINEL, presigned_url_expiry_time_seconds: 3600, extra: {})
1124
+ def query_user_files_deprecated(pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, filters: SENTINEL, include_raw_file: SENTINEL, include_parsed_text_file: SENTINEL, include_additional_files: SENTINEL, presigned_url_expiry_time_seconds: 3600, extra: {})
1125
1125
  _body = {}
1126
1126
  _body[:pagination] = pagination if pagination != SENTINEL
1127
1127
  _body[:order_by] = order_by if order_by != SENTINEL
@@ -1140,17 +1140,17 @@ module Carbon
1140
1140
  #
1141
1141
  # This route is deprecated. Use `/user_files_v2` instead.
1142
1142
  #
1143
- # @param pagination [Pagination] Pagination parameters for the query.
1144
- # @param order_by [OrganizationUserFilesToSyncOrderByTypes] The field on OrganizationUserFilesToSYnc to order the results by.
1145
- # @param order_dir [OrderDir] The direction to order the results by.
1146
- # @param filters [OrganizationUserFilesToSyncFilters] Filters to apply to the query.
1143
+ # @param pagination [Pagination]
1144
+ # @param order_by [OrganizationUserFilesToSyncOrderByTypes]
1145
+ # @param order_dir [OrderDir]
1146
+ # @param filters [OrganizationUserFilesToSyncFilters]
1147
1147
  # @param include_raw_file [Boolean] If true, the query will return presigned URLs for the raw file. Only relevant for the /user_files_v2 endpoint.
1148
1148
  # @param include_parsed_text_file [Boolean] If true, the query will return presigned URLs for the parsed text file. Only relevant for the /user_files_v2 endpoint.
1149
1149
  # @param include_additional_files [Boolean] If true, the query will return presigned URLs for additional files. Only relevant for the /user_files_v2 endpoint.
1150
1150
  # @param presigned_url_expiry_time_seconds [Integer] The expiry time for the presigned URLs. Only relevant for the /user_files_v2 endpoint.
1151
1151
  # @param body [OrganizationUserFilesToSyncQueryInput]
1152
1152
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1153
- def query_user_files_deprecated_with_http_info(pagination: SENTINEL, order_by: 'updated_at', order_dir: 'asc', filters: SENTINEL, include_raw_file: SENTINEL, include_parsed_text_file: SENTINEL, include_additional_files: SENTINEL, presigned_url_expiry_time_seconds: 3600, extra: {})
1153
+ def query_user_files_deprecated_with_http_info(pagination: SENTINEL, order_by: SENTINEL, order_dir: SENTINEL, filters: SENTINEL, include_raw_file: SENTINEL, include_parsed_text_file: SENTINEL, include_additional_files: SENTINEL, presigned_url_expiry_time_seconds: 3600, extra: {})
1154
1154
  _body = {}
1155
1155
  _body[:pagination] = pagination if pagination != SENTINEL
1156
1156
  _body[:order_by] = order_by if order_by != SENTINEL
@@ -1651,7 +1651,7 @@ module Carbon
1651
1651
  # @param store_file_only [Boolean] If this flag is enabled, the file will be stored with Carbon, but no processing will be done.
1652
1652
  # @param body [UploadFileFromUrlInput]
1653
1653
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1654
- def upload_from_url(url:, file_name: SENTINEL, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, use_textract: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, transcription_service: SENTINEL, include_speaker_labels: false, media_type: SENTINEL, split_rows: false, cold_storage_params: SENTINEL, generate_chunks_only: false, store_file_only: false, extra: {})
1654
+ def upload_from_url(url:, file_name: SENTINEL, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, generate_sparse_vectors: false, use_textract: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, transcription_service: SENTINEL, include_speaker_labels: false, media_type: SENTINEL, split_rows: false, cold_storage_params: SENTINEL, generate_chunks_only: false, store_file_only: false, extra: {})
1655
1655
  _body = {}
1656
1656
  _body[:url] = url if url != SENTINEL
1657
1657
  _body[:file_name] = file_name if file_name != SENTINEL
@@ -1702,7 +1702,7 @@ module Carbon
1702
1702
  # @param store_file_only [Boolean] If this flag is enabled, the file will be stored with Carbon, but no processing will be done.
1703
1703
  # @param body [UploadFileFromUrlInput]
1704
1704
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1705
- def upload_from_url_with_http_info(url:, file_name: SENTINEL, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, use_textract: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, transcription_service: SENTINEL, include_speaker_labels: false, media_type: SENTINEL, split_rows: false, cold_storage_params: SENTINEL, generate_chunks_only: false, store_file_only: false, extra: {})
1705
+ def upload_from_url_with_http_info(url:, file_name: SENTINEL, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, generate_sparse_vectors: false, use_textract: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, transcription_service: SENTINEL, include_speaker_labels: false, media_type: SENTINEL, split_rows: false, cold_storage_params: SENTINEL, generate_chunks_only: false, store_file_only: false, extra: {})
1706
1706
  _body = {}
1707
1707
  _body[:url] = url if url != SENTINEL
1708
1708
  _body[:file_name] = file_name if file_name != SENTINEL
@@ -129,7 +129,7 @@ module Carbon
129
129
  # @param order_dir [OrderDirV2Nullable]
130
130
  # @param body [IssuesInput]
131
131
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
132
- def get_issues(data_source_id:, repository:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, filters: SENTINEL, order_by: 'created', order_dir: 'asc', extra: {})
132
+ def get_issues(data_source_id:, repository:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, filters: SENTINEL, order_by: SENTINEL, order_dir: 'asc', extra: {})
133
133
  _body = {}
134
134
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
135
135
  _body[:include_remote_data] = include_remote_data if include_remote_data != SENTINEL
@@ -158,7 +158,7 @@ module Carbon
158
158
  # @param order_dir [OrderDirV2Nullable]
159
159
  # @param body [IssuesInput]
160
160
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
161
- def get_issues_with_http_info(data_source_id:, repository:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, filters: SENTINEL, order_by: 'created', order_dir: 'asc', extra: {})
161
+ def get_issues_with_http_info(data_source_id:, repository:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, filters: SENTINEL, order_by: SENTINEL, order_dir: 'asc', extra: {})
162
162
  _body = {}
163
163
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
164
164
  _body[:include_remote_data] = include_remote_data if include_remote_data != SENTINEL
@@ -353,7 +353,7 @@ module Carbon
353
353
  # @param order_dir [OrderDirV2Nullable]
354
354
  # @param body [CommentsInput]
355
355
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
356
- def get_pr_comments(data_source_id:, repository:, pull_number:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, order_by: 'created', order_dir: 'asc', extra: {})
356
+ def get_pr_comments(data_source_id:, repository:, pull_number:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, order_by: SENTINEL, order_dir: 'asc', extra: {})
357
357
  _body = {}
358
358
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
359
359
  _body[:include_remote_data] = include_remote_data if include_remote_data != SENTINEL
@@ -382,7 +382,7 @@ module Carbon
382
382
  # @param order_dir [OrderDirV2Nullable]
383
383
  # @param body [CommentsInput]
384
384
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
385
- def get_pr_comments_with_http_info(data_source_id:, repository:, pull_number:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, order_by: 'created', order_dir: 'asc', extra: {})
385
+ def get_pr_comments_with_http_info(data_source_id:, repository:, pull_number:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, order_by: SENTINEL, order_dir: 'asc', extra: {})
386
386
  _body = {}
387
387
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
388
388
  _body[:include_remote_data] = include_remote_data if include_remote_data != SENTINEL
@@ -709,7 +709,7 @@ module Carbon
709
709
  # @param order_dir [OrderDirV2Nullable]
710
710
  # @param body [PullRequestsInput]
711
711
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
712
- def get_pull_requests(data_source_id:, repository:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, filters: SENTINEL, order_by: 'created', order_dir: 'asc', extra: {})
712
+ def get_pull_requests(data_source_id:, repository:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, filters: SENTINEL, order_by: SENTINEL, order_dir: 'asc', extra: {})
713
713
  _body = {}
714
714
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
715
715
  _body[:include_remote_data] = include_remote_data if include_remote_data != SENTINEL
@@ -738,7 +738,7 @@ module Carbon
738
738
  # @param order_dir [OrderDirV2Nullable]
739
739
  # @param body [PullRequestsInput]
740
740
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
741
- def get_pull_requests_with_http_info(data_source_id:, repository:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, filters: SENTINEL, order_by: 'created', order_dir: 'asc', extra: {})
741
+ def get_pull_requests_with_http_info(data_source_id:, repository:, include_remote_data: false, page: 1, page_size: 30, next_cursor: SENTINEL, filters: SENTINEL, order_by: SENTINEL, order_dir: 'asc', extra: {})
742
742
  _body = {}
743
743
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
744
744
  _body[:include_remote_data] = include_remote_data if include_remote_data != SENTINEL