groundx 2.0.14__tar.gz → 2.0.15__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 (84) hide show
  1. {groundx-2.0.14 → groundx-2.0.15}/PKG-INFO +5 -7
  2. {groundx-2.0.14 → groundx-2.0.15}/README.md +4 -6
  3. {groundx-2.0.14 → groundx-2.0.15}/pyproject.toml +1 -1
  4. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/__init__.py +3 -6
  5. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/client_wrapper.py +1 -1
  6. groundx-2.0.15/src/groundx/documents/__init__.py +5 -0
  7. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/documents/client.py +11 -17
  8. groundx-2.0.15/src/groundx/documents/types/__init__.py +6 -0
  9. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/__init__.py +2 -0
  10. groundx-2.0.14/src/groundx/documents/types/document_remote_ingest_request_documents_item.py → groundx-2.0.15/src/groundx/types/ingest_remote_document.py +5 -5
  11. groundx-2.0.14/src/groundx/documents/__init__.py +0 -13
  12. groundx-2.0.14/src/groundx/documents/types/__init__.py +0 -11
  13. {groundx-2.0.14 → groundx-2.0.15}/LICENSE +0 -0
  14. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/buckets/__init__.py +0 -0
  15. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/buckets/client.py +0 -0
  16. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/client.py +0 -0
  17. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/__init__.py +0 -0
  18. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/api_error.py +0 -0
  19. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/datetime_utils.py +0 -0
  20. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/file.py +0 -0
  21. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/http_client.py +0 -0
  22. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/jsonable_encoder.py +0 -0
  23. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/pydantic_utilities.py +0 -0
  24. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/query_encoder.py +0 -0
  25. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/remove_none_from_dict.py +0 -0
  26. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/request_options.py +0 -0
  27. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/core/serialization.py +0 -0
  28. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/customer/__init__.py +0 -0
  29. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/customer/client.py +0 -0
  30. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/documents/types/documents_ingest_local_request_files_item.py +0 -0
  31. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/documents/types/website_crawl_request_websites_item.py +0 -0
  32. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/environment.py +0 -0
  33. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/errors/__init__.py +0 -0
  34. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/errors/bad_request_error.py +0 -0
  35. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/errors/unauthorized_error.py +0 -0
  36. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/groups/__init__.py +0 -0
  37. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/groups/client.py +0 -0
  38. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/health/__init__.py +0 -0
  39. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/health/client.py +0 -0
  40. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/py.typed +0 -0
  41. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/search/__init__.py +0 -0
  42. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/search/client.py +0 -0
  43. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/search/types/__init__.py +0 -0
  44. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/search/types/search_content_request_id.py +0 -0
  45. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/bounding_box_detail.py +0 -0
  46. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/bucket_detail.py +0 -0
  47. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/bucket_list_response.py +0 -0
  48. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/bucket_response.py +0 -0
  49. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/bucket_update_detail.py +0 -0
  50. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/bucket_update_response.py +0 -0
  51. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/customer_detail.py +0 -0
  52. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/customer_response.py +0 -0
  53. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/document_detail.py +0 -0
  54. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/document_list_response.py +0 -0
  55. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/document_lookup_response.py +0 -0
  56. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/document_response.py +0 -0
  57. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/document_type.py +0 -0
  58. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/group_detail.py +0 -0
  59. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/group_list_response.py +0 -0
  60. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/group_response.py +0 -0
  61. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/health_response.py +0 -0
  62. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/health_response_health.py +0 -0
  63. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/health_service.py +0 -0
  64. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/health_service_status.py +0 -0
  65. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/ingest_response.py +0 -0
  66. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/ingest_response_ingest.py +0 -0
  67. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/message_response.py +0 -0
  68. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/meter_detail.py +0 -0
  69. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/process_status_response.py +0 -0
  70. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/process_status_response_ingest.py +0 -0
  71. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/process_status_response_ingest_progress.py +0 -0
  72. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/process_status_response_ingest_progress_cancelled.py +0 -0
  73. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/process_status_response_ingest_progress_complete.py +0 -0
  74. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/process_status_response_ingest_progress_errors.py +0 -0
  75. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/process_status_response_ingest_progress_processing.py +0 -0
  76. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/processing_status.py +0 -0
  77. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/search_response.py +0 -0
  78. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/search_response_search.py +0 -0
  79. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/search_result_item.py +0 -0
  80. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/sort.py +0 -0
  81. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/sort_order.py +0 -0
  82. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/subscription_detail.py +0 -0
  83. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/types/subscription_detail_meters.py +0 -0
  84. {groundx-2.0.14 → groundx-2.0.15}/src/groundx/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: groundx
3
- Version: 2.0.14
3
+ Version: 2.0.15
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -52,15 +52,14 @@ A full reference for this library is available [here](./reference.md).
52
52
  Instantiate and use the client with the following:
53
53
 
54
54
  ```python
55
- from groundx import GroundX
56
- from groundx.documents import DocumentRemoteIngestRequestDocumentsItem
55
+ from groundx import GroundX, IngestRemoteDocument
57
56
 
58
57
  client = GroundX(
59
58
  api_key="YOUR_API_KEY",
60
59
  )
61
60
  client.documents.ingest_remote(
62
61
  documents=[
63
- DocumentRemoteIngestRequestDocumentsItem(
62
+ IngestRemoteDocument(
64
63
  bucket_id=1234,
65
64
  file_name="my_file.txt",
66
65
  file_type="txt",
@@ -78,8 +77,7 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
78
77
  ```python
79
78
  import asyncio
80
79
 
81
- from groundx import AsyncGroundX
82
- from groundx.documents import DocumentRemoteIngestRequestDocumentsItem
80
+ from groundx import AsyncGroundX, IngestRemoteDocument
83
81
 
84
82
  client = AsyncGroundX(
85
83
  api_key="YOUR_API_KEY",
@@ -89,7 +87,7 @@ client = AsyncGroundX(
89
87
  async def main() -> None:
90
88
  await client.documents.ingest_remote(
91
89
  documents=[
92
- DocumentRemoteIngestRequestDocumentsItem(
90
+ IngestRemoteDocument(
93
91
  bucket_id=1234,
94
92
  file_name="my_file.txt",
95
93
  file_type="txt",
@@ -24,15 +24,14 @@ A full reference for this library is available [here](./reference.md).
24
24
  Instantiate and use the client with the following:
25
25
 
26
26
  ```python
27
- from groundx import GroundX
28
- from groundx.documents import DocumentRemoteIngestRequestDocumentsItem
27
+ from groundx import GroundX, IngestRemoteDocument
29
28
 
30
29
  client = GroundX(
31
30
  api_key="YOUR_API_KEY",
32
31
  )
33
32
  client.documents.ingest_remote(
34
33
  documents=[
35
- DocumentRemoteIngestRequestDocumentsItem(
34
+ IngestRemoteDocument(
36
35
  bucket_id=1234,
37
36
  file_name="my_file.txt",
38
37
  file_type="txt",
@@ -50,8 +49,7 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
50
49
  ```python
51
50
  import asyncio
52
51
 
53
- from groundx import AsyncGroundX
54
- from groundx.documents import DocumentRemoteIngestRequestDocumentsItem
52
+ from groundx import AsyncGroundX, IngestRemoteDocument
55
53
 
56
54
  client = AsyncGroundX(
57
55
  api_key="YOUR_API_KEY",
@@ -61,7 +59,7 @@ client = AsyncGroundX(
61
59
  async def main() -> None:
62
60
  await client.documents.ingest_remote(
63
61
  documents=[
64
- DocumentRemoteIngestRequestDocumentsItem(
62
+ IngestRemoteDocument(
65
63
  bucket_id=1234,
66
64
  file_name="my_file.txt",
67
65
  file_type="txt",
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "groundx"
3
- version = "2.0.14"
3
+ version = "2.0.15"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  authors = []
@@ -21,6 +21,7 @@ from .types import (
21
21
  HealthResponseHealth,
22
22
  HealthService,
23
23
  HealthServiceStatus,
24
+ IngestRemoteDocument,
24
25
  IngestResponse,
25
26
  IngestResponseIngest,
26
27
  MessageResponse,
@@ -44,11 +45,7 @@ from .types import (
44
45
  from .errors import BadRequestError, UnauthorizedError
45
46
  from . import buckets, customer, documents, groups, health, search
46
47
  from .client import AsyncGroundX, GroundX
47
- from .documents import (
48
- DocumentRemoteIngestRequestDocumentsItem,
49
- DocumentsIngestLocalRequestFilesItem,
50
- WebsiteCrawlRequestWebsitesItem,
51
- )
48
+ from .documents import DocumentsIngestLocalRequestFilesItem, WebsiteCrawlRequestWebsitesItem
52
49
  from .environment import GroundXEnvironment
53
50
  from .search import SearchContentRequestId
54
51
  from .version import __version__
@@ -67,7 +64,6 @@ __all__ = [
67
64
  "DocumentDetail",
68
65
  "DocumentListResponse",
69
66
  "DocumentLookupResponse",
70
- "DocumentRemoteIngestRequestDocumentsItem",
71
67
  "DocumentResponse",
72
68
  "DocumentType",
73
69
  "DocumentsIngestLocalRequestFilesItem",
@@ -80,6 +76,7 @@ __all__ = [
80
76
  "HealthResponseHealth",
81
77
  "HealthService",
82
78
  "HealthServiceStatus",
79
+ "IngestRemoteDocument",
83
80
  "IngestResponse",
84
81
  "IngestResponseIngest",
85
82
  "MessageResponse",
@@ -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.14",
19
+ "X-Fern-SDK-Version": "2.0.15",
20
20
  }
21
21
  headers["X-API-Key"] = self.api_key
22
22
  return headers
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from .types import DocumentsIngestLocalRequestFilesItem, WebsiteCrawlRequestWebsitesItem
4
+
5
+ __all__ = ["DocumentsIngestLocalRequestFilesItem", "WebsiteCrawlRequestWebsitesItem"]
@@ -2,7 +2,7 @@
2
2
 
3
3
  import typing
4
4
  from ..core.client_wrapper import SyncClientWrapper
5
- from .types.document_remote_ingest_request_documents_item import DocumentRemoteIngestRequestDocumentsItem
5
+ from ..types.ingest_remote_document import IngestRemoteDocument
6
6
  from ..core.request_options import RequestOptions
7
7
  from ..types.ingest_response import IngestResponse
8
8
  from ..core.serialization import convert_and_respect_annotation_metadata
@@ -34,7 +34,7 @@ class DocumentsClient:
34
34
  def ingest_remote(
35
35
  self,
36
36
  *,
37
- documents: typing.Sequence[DocumentRemoteIngestRequestDocumentsItem],
37
+ documents: typing.Sequence[IngestRemoteDocument],
38
38
  request_options: typing.Optional[RequestOptions] = None,
39
39
  ) -> IngestResponse:
40
40
  """
@@ -44,7 +44,7 @@ class DocumentsClient:
44
44
 
45
45
  Parameters
46
46
  ----------
47
- documents : typing.Sequence[DocumentRemoteIngestRequestDocumentsItem]
47
+ documents : typing.Sequence[IngestRemoteDocument]
48
48
 
49
49
  request_options : typing.Optional[RequestOptions]
50
50
  Request-specific configuration.
@@ -56,15 +56,14 @@ class DocumentsClient:
56
56
 
57
57
  Examples
58
58
  --------
59
- from groundx import GroundX
60
- from groundx.documents import DocumentRemoteIngestRequestDocumentsItem
59
+ from groundx import GroundX, IngestRemoteDocument
61
60
 
62
61
  client = GroundX(
63
62
  api_key="YOUR_API_KEY",
64
63
  )
65
64
  client.documents.ingest_remote(
66
65
  documents=[
67
- DocumentRemoteIngestRequestDocumentsItem(
66
+ IngestRemoteDocument(
68
67
  bucket_id=1234,
69
68
  file_name="my_file.txt",
70
69
  file_type="txt",
@@ -79,9 +78,7 @@ class DocumentsClient:
79
78
  method="POST",
80
79
  json={
81
80
  "documents": convert_and_respect_annotation_metadata(
82
- object_=documents,
83
- annotation=typing.Sequence[DocumentRemoteIngestRequestDocumentsItem],
84
- direction="write",
81
+ object_=documents, annotation=typing.Sequence[IngestRemoteDocument], direction="write"
85
82
  ),
86
83
  },
87
84
  headers={
@@ -778,7 +775,7 @@ class AsyncDocumentsClient:
778
775
  async def ingest_remote(
779
776
  self,
780
777
  *,
781
- documents: typing.Sequence[DocumentRemoteIngestRequestDocumentsItem],
778
+ documents: typing.Sequence[IngestRemoteDocument],
782
779
  request_options: typing.Optional[RequestOptions] = None,
783
780
  ) -> IngestResponse:
784
781
  """
@@ -788,7 +785,7 @@ class AsyncDocumentsClient:
788
785
 
789
786
  Parameters
790
787
  ----------
791
- documents : typing.Sequence[DocumentRemoteIngestRequestDocumentsItem]
788
+ documents : typing.Sequence[IngestRemoteDocument]
792
789
 
793
790
  request_options : typing.Optional[RequestOptions]
794
791
  Request-specific configuration.
@@ -802,8 +799,7 @@ class AsyncDocumentsClient:
802
799
  --------
803
800
  import asyncio
804
801
 
805
- from groundx import AsyncGroundX
806
- from groundx.documents import DocumentRemoteIngestRequestDocumentsItem
802
+ from groundx import AsyncGroundX, IngestRemoteDocument
807
803
 
808
804
  client = AsyncGroundX(
809
805
  api_key="YOUR_API_KEY",
@@ -813,7 +809,7 @@ class AsyncDocumentsClient:
813
809
  async def main() -> None:
814
810
  await client.documents.ingest_remote(
815
811
  documents=[
816
- DocumentRemoteIngestRequestDocumentsItem(
812
+ IngestRemoteDocument(
817
813
  bucket_id=1234,
818
814
  file_name="my_file.txt",
819
815
  file_type="txt",
@@ -831,9 +827,7 @@ class AsyncDocumentsClient:
831
827
  method="POST",
832
828
  json={
833
829
  "documents": convert_and_respect_annotation_metadata(
834
- object_=documents,
835
- annotation=typing.Sequence[DocumentRemoteIngestRequestDocumentsItem],
836
- direction="write",
830
+ object_=documents, annotation=typing.Sequence[IngestRemoteDocument], direction="write"
837
831
  ),
838
832
  },
839
833
  headers={
@@ -0,0 +1,6 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from .documents_ingest_local_request_files_item import DocumentsIngestLocalRequestFilesItem
4
+ from .website_crawl_request_websites_item import WebsiteCrawlRequestWebsitesItem
5
+
6
+ __all__ = ["DocumentsIngestLocalRequestFilesItem", "WebsiteCrawlRequestWebsitesItem"]
@@ -20,6 +20,7 @@ from .health_response import HealthResponse
20
20
  from .health_response_health import HealthResponseHealth
21
21
  from .health_service import HealthService
22
22
  from .health_service_status import HealthServiceStatus
23
+ from .ingest_remote_document import IngestRemoteDocument
23
24
  from .ingest_response import IngestResponse
24
25
  from .ingest_response_ingest import IngestResponseIngest
25
26
  from .message_response import MessageResponse
@@ -61,6 +62,7 @@ __all__ = [
61
62
  "HealthResponseHealth",
62
63
  "HealthService",
63
64
  "HealthServiceStatus",
65
+ "IngestRemoteDocument",
64
66
  "IngestResponse",
65
67
  "IngestResponseIngest",
66
68
  "MessageResponse",
@@ -1,15 +1,15 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ...core.pydantic_utilities import UniversalBaseModel
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
4
  import typing_extensions
5
- from ...core.serialization import FieldMetadata
5
+ from ..core.serialization import FieldMetadata
6
6
  import pydantic
7
7
  import typing
8
- from ...types.document_type import DocumentType
9
- from ...core.pydantic_utilities import IS_PYDANTIC_V2
8
+ from .document_type import DocumentType
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
10
 
11
11
 
12
- class DocumentRemoteIngestRequestDocumentsItem(UniversalBaseModel):
12
+ class IngestRemoteDocument(UniversalBaseModel):
13
13
  bucket_id: typing_extensions.Annotated[int, FieldMetadata(alias="bucketId")] = pydantic.Field()
14
14
  """
15
15
  the bucketId of the bucket which this remote file will be ingested to.
@@ -1,13 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from .types import (
4
- DocumentRemoteIngestRequestDocumentsItem,
5
- DocumentsIngestLocalRequestFilesItem,
6
- WebsiteCrawlRequestWebsitesItem,
7
- )
8
-
9
- __all__ = [
10
- "DocumentRemoteIngestRequestDocumentsItem",
11
- "DocumentsIngestLocalRequestFilesItem",
12
- "WebsiteCrawlRequestWebsitesItem",
13
- ]
@@ -1,11 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from .document_remote_ingest_request_documents_item import DocumentRemoteIngestRequestDocumentsItem
4
- from .documents_ingest_local_request_files_item import DocumentsIngestLocalRequestFilesItem
5
- from .website_crawl_request_websites_item import WebsiteCrawlRequestWebsitesItem
6
-
7
- __all__ = [
8
- "DocumentRemoteIngestRequestDocumentsItem",
9
- "DocumentsIngestLocalRequestFilesItem",
10
- "WebsiteCrawlRequestWebsitesItem",
11
- ]
File without changes
File without changes
File without changes