groundx 2.0.16__tar.gz → 2.0.17__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. {groundx-2.0.16 → groundx-2.0.17}/PKG-INFO +1 -1
  2. {groundx-2.0.16 → groundx-2.0.17}/pyproject.toml +1 -1
  3. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/client_wrapper.py +1 -1
  4. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/documents/client.py +26 -12
  5. {groundx-2.0.16 → groundx-2.0.17}/LICENSE +0 -0
  6. {groundx-2.0.16 → groundx-2.0.17}/README.md +0 -0
  7. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/__init__.py +0 -0
  8. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/buckets/__init__.py +0 -0
  9. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/buckets/client.py +0 -0
  10. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/client.py +0 -0
  11. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/__init__.py +0 -0
  12. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/api_error.py +0 -0
  13. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/datetime_utils.py +0 -0
  14. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/file.py +0 -0
  15. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/http_client.py +0 -0
  16. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/jsonable_encoder.py +0 -0
  17. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/pydantic_utilities.py +0 -0
  18. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/query_encoder.py +0 -0
  19. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/remove_none_from_dict.py +0 -0
  20. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/request_options.py +0 -0
  21. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/core/serialization.py +0 -0
  22. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/customer/__init__.py +0 -0
  23. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/customer/client.py +0 -0
  24. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/documents/__init__.py +0 -0
  25. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/environment.py +0 -0
  26. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/errors/__init__.py +0 -0
  27. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/errors/bad_request_error.py +0 -0
  28. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/errors/unauthorized_error.py +0 -0
  29. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/groups/__init__.py +0 -0
  30. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/groups/client.py +0 -0
  31. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/health/__init__.py +0 -0
  32. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/health/client.py +0 -0
  33. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/py.typed +0 -0
  34. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/search/__init__.py +0 -0
  35. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/search/client.py +0 -0
  36. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/search/types/__init__.py +0 -0
  37. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/search/types/search_content_request_id.py +0 -0
  38. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/__init__.py +0 -0
  39. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/bounding_box_detail.py +0 -0
  40. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/bucket_detail.py +0 -0
  41. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/bucket_list_response.py +0 -0
  42. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/bucket_response.py +0 -0
  43. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/bucket_update_detail.py +0 -0
  44. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/bucket_update_response.py +0 -0
  45. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/crawl_website_source.py +0 -0
  46. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/customer_detail.py +0 -0
  47. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/customer_response.py +0 -0
  48. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/document_detail.py +0 -0
  49. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/document_list_response.py +0 -0
  50. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/document_lookup_response.py +0 -0
  51. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/document_response.py +0 -0
  52. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/document_type.py +0 -0
  53. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/group_detail.py +0 -0
  54. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/group_list_response.py +0 -0
  55. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/group_response.py +0 -0
  56. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/health_response.py +0 -0
  57. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/health_response_health.py +0 -0
  58. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/health_service.py +0 -0
  59. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/health_service_status.py +0 -0
  60. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/ingest_local_document.py +0 -0
  61. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/ingest_remote_document.py +0 -0
  62. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/ingest_response.py +0 -0
  63. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/ingest_response_ingest.py +0 -0
  64. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/message_response.py +0 -0
  65. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/meter_detail.py +0 -0
  66. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/process_status_response.py +0 -0
  67. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/process_status_response_ingest.py +0 -0
  68. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/process_status_response_ingest_progress.py +0 -0
  69. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/process_status_response_ingest_progress_cancelled.py +0 -0
  70. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/process_status_response_ingest_progress_complete.py +0 -0
  71. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/process_status_response_ingest_progress_errors.py +0 -0
  72. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/process_status_response_ingest_progress_processing.py +0 -0
  73. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/processing_status.py +0 -0
  74. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/search_response.py +0 -0
  75. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/search_response_search.py +0 -0
  76. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/search_result_item.py +0 -0
  77. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/sort.py +0 -0
  78. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/sort_order.py +0 -0
  79. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/subscription_detail.py +0 -0
  80. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/types/subscription_detail_meters.py +0 -0
  81. {groundx-2.0.16 → groundx-2.0.17}/src/groundx/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: groundx
3
- Version: 2.0.16
3
+ Version: 2.0.17
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "groundx"
3
- version = "2.0.16"
3
+ version = "2.0.17"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  authors = []
@@ -16,7 +16,7 @@ class BaseClientWrapper:
16
16
  headers: typing.Dict[str, str] = {
17
17
  "X-Fern-Language": "Python",
18
18
  "X-Fern-SDK-Name": "groundx",
19
- "X-Fern-SDK-Version": "2.0.16",
19
+ "X-Fern-SDK-Version": "2.0.17",
20
20
  }
21
21
  headers["X-API-Key"] = self.api_key
22
22
  return headers
@@ -122,7 +122,10 @@ class DocumentsClient:
122
122
  raise ApiError(status_code=_response.status_code, body=_response_json)
123
123
 
124
124
  def ingest_local(
125
- self, *, files: typing.List[IngestLocalDocument], request_options: typing.Optional[RequestOptions] = None
125
+ self,
126
+ *,
127
+ documents: typing.Optional[typing.List[IngestLocalDocument]] = OMIT,
128
+ request_options: typing.Optional[RequestOptions] = None,
126
129
  ) -> IngestResponse:
127
130
  """
128
131
  Upload documents hosted on a local file system for ingestion into a GroundX bucket.
@@ -131,7 +134,7 @@ class DocumentsClient:
131
134
 
132
135
  Parameters
133
136
  ----------
134
- files : typing.List[IngestLocalDocument]
137
+ documents : typing.Optional[typing.List[IngestLocalDocument]]
135
138
 
136
139
  request_options : typing.Optional[RequestOptions]
137
140
  Request-specific configuration.
@@ -149,12 +152,13 @@ class DocumentsClient:
149
152
  api_key="YOUR_API_KEY",
150
153
  )
151
154
  client.documents.ingest_local(
152
- files=[
155
+ documents=[
153
156
  IngestLocalDocument(
154
157
  bucket_id=1234,
155
- file_data="binary data here",
158
+ file_data="binary data",
156
159
  file_name="my_file.txt",
157
160
  file_type="txt",
161
+ search_data={"key": "value"},
158
162
  )
159
163
  ],
160
164
  )
@@ -163,7 +167,7 @@ class DocumentsClient:
163
167
  "v1/ingest/documents/local",
164
168
  method="POST",
165
169
  data={
166
- "files": files,
170
+ "documents": documents,
167
171
  },
168
172
  files={},
169
173
  request_options=request_options,
@@ -233,7 +237,10 @@ class DocumentsClient:
233
237
  client.documents.crawl_website(
234
238
  websites=[
235
239
  CrawlWebsiteSource(
236
- bucket_id=123,
240
+ bucket_id=1234,
241
+ cap=100,
242
+ depth=3,
243
+ search_data={"key": "value"},
237
244
  source_url="https://my.website.com",
238
245
  )
239
246
  ],
@@ -863,7 +870,10 @@ class AsyncDocumentsClient:
863
870
  raise ApiError(status_code=_response.status_code, body=_response_json)
864
871
 
865
872
  async def ingest_local(
866
- self, *, files: typing.List[IngestLocalDocument], request_options: typing.Optional[RequestOptions] = None
873
+ self,
874
+ *,
875
+ documents: typing.Optional[typing.List[IngestLocalDocument]] = OMIT,
876
+ request_options: typing.Optional[RequestOptions] = None,
867
877
  ) -> IngestResponse:
868
878
  """
869
879
  Upload documents hosted on a local file system for ingestion into a GroundX bucket.
@@ -872,7 +882,7 @@ class AsyncDocumentsClient:
872
882
 
873
883
  Parameters
874
884
  ----------
875
- files : typing.List[IngestLocalDocument]
885
+ documents : typing.Optional[typing.List[IngestLocalDocument]]
876
886
 
877
887
  request_options : typing.Optional[RequestOptions]
878
888
  Request-specific configuration.
@@ -895,12 +905,13 @@ class AsyncDocumentsClient:
895
905
 
896
906
  async def main() -> None:
897
907
  await client.documents.ingest_local(
898
- files=[
908
+ documents=[
899
909
  IngestLocalDocument(
900
910
  bucket_id=1234,
901
- file_data="binary data here",
911
+ file_data="binary data",
902
912
  file_name="my_file.txt",
903
913
  file_type="txt",
914
+ search_data={"key": "value"},
904
915
  )
905
916
  ],
906
917
  )
@@ -912,7 +923,7 @@ class AsyncDocumentsClient:
912
923
  "v1/ingest/documents/local",
913
924
  method="POST",
914
925
  data={
915
- "files": files,
926
+ "documents": documents,
916
927
  },
917
928
  files={},
918
929
  request_options=request_options,
@@ -987,7 +998,10 @@ class AsyncDocumentsClient:
987
998
  await client.documents.crawl_website(
988
999
  websites=[
989
1000
  CrawlWebsiteSource(
990
- bucket_id=123,
1001
+ bucket_id=1234,
1002
+ cap=100,
1003
+ depth=3,
1004
+ search_data={"key": "value"},
991
1005
  source_url="https://my.website.com",
992
1006
  )
993
1007
  ],
File without changes
File without changes
File without changes
File without changes