groundx 2.0.14__py3-none-any.whl → 2.0.15__py3-none-any.whl

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.
groundx/__init__.py CHANGED
@@ -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
@@ -1,13 +1,5 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from .types import (
4
- DocumentRemoteIngestRequestDocumentsItem,
5
- DocumentsIngestLocalRequestFilesItem,
6
- WebsiteCrawlRequestWebsitesItem,
7
- )
3
+ from .types import DocumentsIngestLocalRequestFilesItem, WebsiteCrawlRequestWebsitesItem
8
4
 
9
- __all__ = [
10
- "DocumentRemoteIngestRequestDocumentsItem",
11
- "DocumentsIngestLocalRequestFilesItem",
12
- "WebsiteCrawlRequestWebsitesItem",
13
- ]
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={
@@ -1,11 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from .document_remote_ingest_request_documents_item import DocumentRemoteIngestRequestDocumentsItem
4
3
  from .documents_ingest_local_request_files_item import DocumentsIngestLocalRequestFilesItem
5
4
  from .website_crawl_request_websites_item import WebsiteCrawlRequestWebsitesItem
6
5
 
7
- __all__ = [
8
- "DocumentRemoteIngestRequestDocumentsItem",
9
- "DocumentsIngestLocalRequestFilesItem",
10
- "WebsiteCrawlRequestWebsitesItem",
11
- ]
6
+ __all__ = ["DocumentsIngestLocalRequestFilesItem", "WebsiteCrawlRequestWebsitesItem"]
groundx/types/__init__.py CHANGED
@@ -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,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",
@@ -1,10 +1,10 @@
1
- groundx/__init__.py,sha256=LoqXol72hAjLcTlZd2VfzvZJ_BVWAUPHqub4fwkY0pE,2978
1
+ groundx/__init__.py,sha256=k3hsC7MSufSELpIPOb1-G3Y_-YM2GV61ADC-EwSaPvw,2925
2
2
  groundx/buckets/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
3
3
  groundx/buckets/client.py,sha256=TofNrkej1AC_-FU5rf_y8KG8ubFUpHtLa8PQ7rqax6E,26537
4
4
  groundx/client.py,sha256=Q1Kw0z6K-z-ShhNyuuPe5fYonM9M2I_55-ukUrUWk1U,6507
5
5
  groundx/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
6
6
  groundx/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
7
- groundx/core/client_wrapper.py,sha256=tGKKsvVuRWrBfZBKCMnZ8-HLxQceh8itn0sJcf9G4Y8,1803
7
+ groundx/core/client_wrapper.py,sha256=66tcEWEACDxQIXDiX5s5Kn5XdmYZETM2b8YUiM7Spgs,1803
8
8
  groundx/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
9
9
  groundx/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
10
10
  groundx/core/http_client.py,sha256=siUQ6UV0ARZALlxubqWSSAAPC9B4VW8y6MGlHStfaeo,19552
@@ -16,10 +16,9 @@ groundx/core/request_options.py,sha256=h0QUNCFVdCW_7GclVySCAY2w4NhtXVBUCmHgmzaxp
16
16
  groundx/core/serialization.py,sha256=D9h_t-RQON3-CHWs1C4ESY9B-Yd5d-l5lnTLb_X896g,9601
17
17
  groundx/customer/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
18
18
  groundx/customer/client.py,sha256=C_JANeDewRD1Kg-q7LPxdiOSWbYSTOiYlBYZLRYPI44,3467
19
- groundx/documents/__init__.py,sha256=H7q_UJJyRsjDdapoH7WeMtB89eUL6G3Pq3UQLCbvqgc,359
20
- groundx/documents/client.py,sha256=eNQxQQAof1eYv2qQ0uY0B81LdF9U1zJdLm2jtlZppwY,59333
21
- groundx/documents/types/__init__.py,sha256=2hClhaZpkoWywGLA1VeO9Ht81soK1x3bdFg74jQFZfo,484
22
- groundx/documents/types/document_remote_ingest_request_documents_item.py,sha256=IjZu1L3MGUxW2qydZlns5_DsMgOLNyAWDvKpy9VL6iE,1714
19
+ groundx/documents/__init__.py,sha256=-Z5Vjus4Uq29lfATYXWLh5zC9DvDMu-FLGWcm8chMdY,241
20
+ groundx/documents/client.py,sha256=Ah3LPoJmo7H1vNb2b2xfQ6zRVmnrihdYJBhcriEgcEw,58935
21
+ groundx/documents/types/__init__.py,sha256=fmIT0AisC1K0-EQIa1GDcYr70wpsi7QuXBeyqWiZD14,325
23
22
  groundx/documents/types/documents_ingest_local_request_files_item.py,sha256=EpD7TE1us1DAXdcPvI1li-AGUNpEy_f13bBXidmCAL8,1630
24
23
  groundx/documents/types/website_crawl_request_websites_item.py,sha256=6So4stWecfZYPbiQWg6-FgsfIqV4g2ujFXXgn70evNI,1597
25
24
  groundx/environment.py,sha256=CInm1_DKtZ1mrxutmKb1qqv82P33r_S87hZD3Hc1VB0,159
@@ -35,7 +34,7 @@ groundx/search/__init__.py,sha256=RagVzjShP33mDg9o4N3kGzV0egL1RYNjCpXPE8VzMYE,14
35
34
  groundx/search/client.py,sha256=10ifg9GyIwIZF13ULfCXF8iFIydq6H6QRDrGPDjpanw,19756
36
35
  groundx/search/types/__init__.py,sha256=fNFXQloPa1PHHO8VZim6KQNMA9N5EZtfSkissdxtY_c,165
37
36
  groundx/search/types/search_content_request_id.py,sha256=us7mYdzR0qPur_wR5I9BhHaLEzC5nLBRna6-xq4M1ec,128
38
- groundx/types/__init__.py,sha256=2GTGHb5P0h2dTD-FzF-G6ViIhdICL2DMgTBhB9WNH8g,3321
37
+ groundx/types/__init__.py,sha256=W5fN6ryfqki0p_bipBi7jKs6SXH2vVsrOe5ORcbngVY,3406
39
38
  groundx/types/bounding_box_detail.py,sha256=51qcen326NTHY2ZqH1cFXut0_MCmk39EbLoDAwotdq4,1832
40
39
  groundx/types/bucket_detail.py,sha256=bQjCvfyWydjItmzNNTvH-iWxNDOggd7R7X1alFZzlEY,1511
41
40
  groundx/types/bucket_list_response.py,sha256=jC0NBsLCYDSwQrBzuW0g3PWFycjtKl8YRkKhic_-1DA,650
@@ -56,6 +55,7 @@ groundx/types/health_response.py,sha256=3UpYL2IZb56tTo-fOpSU-0OTRyWgpYiB3pMU3sfj
56
55
  groundx/types/health_response_health.py,sha256=I0QeEljFp6l5LCJbCTArW031Om84egePgnGdtE6WXlI,632
57
56
  groundx/types/health_service.py,sha256=M1-h1EJSpAXw-j3pY-09_g_WKkO0spdj8e7pgPzSGf0,1083
58
57
  groundx/types/health_service_status.py,sha256=ugKJXlx8QGi83n_J6s1frFrW1hYfOn3Dlb_pPNexwMA,185
58
+ groundx/types/ingest_remote_document.py,sha256=xlPA4SYoUgoGXpxZhyORdezxIPGmr4wneav2ZEVmmOY,1683
59
59
  groundx/types/ingest_response.py,sha256=139rn8wpT44jlUzYXiy0r8XzN2U_OtdLltpSbRU0TyA,633
60
60
  groundx/types/ingest_response_ingest.py,sha256=8FKApYNvS6KFxEKm05pKpKJ0BAagxoE0cWeTt-qjm1g,781
61
61
  groundx/types/message_response.py,sha256=g_FJJyXYg_3fjZQueXkcy11q-qUfZGdVdALddHBieh4,585
@@ -76,7 +76,7 @@ groundx/types/sort_order.py,sha256=hfJkStz6zHf3iWQFaVLkNCZPdyj5JS7TsQlN4Ij8Q5A,1
76
76
  groundx/types/subscription_detail.py,sha256=WNfUw2EMVECIvNYcV2s51zZ6T3Utc4zYXw63bPaeM6U,768
77
77
  groundx/types/subscription_detail_meters.py,sha256=lBa8-1QlMVHjr5RLGqhiTKnD1KMM0AAHTWvz9TVtG8w,830
78
78
  groundx/version.py,sha256=1yVogKaq260fQfckM2RYN2144SEw0QROsZW8ICtkG4U,74
79
- groundx-2.0.14.dist-info/LICENSE,sha256=8dMPYAFBTA7O4DUxhrEKEks8CL2waCMYM6dHohW4xrI,1065
80
- groundx-2.0.14.dist-info/METADATA,sha256=17yAs5nZtJR8qqezCNlXAfPBUTwMaUYWjgzM90Af0Kk,5344
81
- groundx-2.0.14.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
82
- groundx-2.0.14.dist-info/RECORD,,
79
+ groundx-2.0.15.dist-info/LICENSE,sha256=8dMPYAFBTA7O4DUxhrEKEks8CL2waCMYM6dHohW4xrI,1065
80
+ groundx-2.0.15.dist-info/METADATA,sha256=7SUu2d02VHGaZCu06RSUl3dlZJ4Kuh-1Z3VBea6QNrg,5206
81
+ groundx-2.0.15.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
82
+ groundx-2.0.15.dist-info/RECORD,,