groundx 2.2.2__py3-none-any.whl → 2.2.3__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
@@ -30,6 +30,7 @@ from .types import (
30
30
  IngestResponseIngest,
31
31
  MessageResponse,
32
32
  MeterDetail,
33
+ ProcessLevel,
33
34
  ProcessStatusResponse,
34
35
  ProcessStatusResponseIngest,
35
36
  ProcessStatusResponseIngestProgress,
@@ -89,6 +90,7 @@ __all__ = [
89
90
  "IngestResponseIngest",
90
91
  "MessageResponse",
91
92
  "MeterDetail",
93
+ "ProcessLevel",
92
94
  "ProcessStatusResponse",
93
95
  "ProcessStatusResponseIngest",
94
96
  "ProcessStatusResponseIngestProgress",
@@ -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.2.2",
19
+ "X-Fern-SDK-Version": "2.2.3",
20
20
  }
21
21
  headers["X-API-Key"] = self.api_key
22
22
  return headers
@@ -749,7 +749,7 @@ class DocumentsClient:
749
749
  raise ApiError(status_code=_response.status_code, body=_response.text)
750
750
  raise ApiError(status_code=_response.status_code, body=_response_json)
751
751
 
752
- def document_get_processes(
752
+ def get_processes(
753
753
  self,
754
754
  *,
755
755
  n: typing.Optional[int] = None,
@@ -782,7 +782,7 @@ class DocumentsClient:
782
782
  client = GroundX(
783
783
  api_key="YOUR_API_KEY",
784
784
  )
785
- client.documents.document_get_processes()
785
+ client.documents.get_processes()
786
786
  """
787
787
  _response = self._client_wrapper.httpx_client.request(
788
788
  "v1/ingest",
@@ -1607,7 +1607,7 @@ class AsyncDocumentsClient:
1607
1607
  raise ApiError(status_code=_response.status_code, body=_response.text)
1608
1608
  raise ApiError(status_code=_response.status_code, body=_response_json)
1609
1609
 
1610
- async def document_get_processes(
1610
+ async def get_processes(
1611
1611
  self,
1612
1612
  *,
1613
1613
  n: typing.Optional[int] = None,
@@ -1645,7 +1645,7 @@ class AsyncDocumentsClient:
1645
1645
 
1646
1646
 
1647
1647
  async def main() -> None:
1648
- await client.documents.document_get_processes()
1648
+ await client.documents.get_processes()
1649
1649
 
1650
1650
 
1651
1651
  asyncio.run(main())
groundx/ingest.py CHANGED
@@ -72,6 +72,7 @@ def prep_documents(
72
72
  bucket_id=document.bucket_id,
73
73
  file_name=document.file_name,
74
74
  file_type=document.file_type,
75
+ process_level=document.process_level,
75
76
  search_data=document.search_data,
76
77
  source_url=document.file_path,
77
78
  )
@@ -109,6 +110,8 @@ def prep_documents(
109
110
  "fileName": file_name,
110
111
  "fileType": file_type,
111
112
  }
113
+ if document.process_level:
114
+ metadata["processLevel"] = document.process_level
112
115
  if document.search_data:
113
116
  metadata["searchData"] = document.search_data
114
117
 
groundx/types/__init__.py CHANGED
@@ -29,6 +29,7 @@ from .ingest_response import IngestResponse
29
29
  from .ingest_response_ingest import IngestResponseIngest
30
30
  from .message_response import MessageResponse
31
31
  from .meter_detail import MeterDetail
32
+ from .process_level import ProcessLevel
32
33
  from .process_status_response import ProcessStatusResponse
33
34
  from .process_status_response_ingest import ProcessStatusResponseIngest
34
35
  from .process_status_response_ingest_progress import ProcessStatusResponseIngestProgress
@@ -77,6 +78,7 @@ __all__ = [
77
78
  "IngestResponseIngest",
78
79
  "MessageResponse",
79
80
  "MeterDetail",
81
+ "ProcessLevel",
80
82
  "ProcessStatusResponse",
81
83
  "ProcessStatusResponseIngest",
82
84
  "ProcessStatusResponseIngestProgress",
groundx/types/document.py CHANGED
@@ -6,6 +6,7 @@ from ..core.serialization import FieldMetadata
6
6
  import pydantic
7
7
  import typing
8
8
  from .document_type import DocumentType
9
+ from .process_level import ProcessLevel
9
10
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
11
 
11
12
 
@@ -28,6 +29,9 @@ class Document(UniversalBaseModel):
28
29
  """
29
30
 
30
31
  file_type: typing_extensions.Annotated[typing.Optional[DocumentType], FieldMetadata(alias="fileType")] = None
32
+ process_level: typing_extensions.Annotated[typing.Optional[ProcessLevel], FieldMetadata(alias="processLevel")] = (
33
+ None
34
+ )
31
35
  search_data: typing_extensions.Annotated[
32
36
  typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="searchData")
33
37
  ] = pydantic.Field(default=None)
@@ -6,6 +6,7 @@ import typing
6
6
  from ..core.serialization import FieldMetadata
7
7
  import pydantic
8
8
  from .document_type import DocumentType
9
+ from .process_level import ProcessLevel
9
10
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
11
 
11
12
 
@@ -25,6 +26,9 @@ class IngestLocalDocumentMetadata(UniversalBaseModel):
25
26
  """
26
27
 
27
28
  file_type: typing_extensions.Annotated[typing.Optional[DocumentType], FieldMetadata(alias="fileType")] = None
29
+ process_level: typing_extensions.Annotated[typing.Optional[ProcessLevel], FieldMetadata(alias="processLevel")] = (
30
+ None
31
+ )
28
32
  search_data: typing_extensions.Annotated[
29
33
  typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="searchData")
30
34
  ] = pydantic.Field(default=None)
@@ -6,6 +6,7 @@ from ..core.serialization import FieldMetadata
6
6
  import pydantic
7
7
  import typing
8
8
  from .document_type import DocumentType
9
+ from .process_level import ProcessLevel
9
10
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
11
 
11
12
 
@@ -23,6 +24,9 @@ class IngestRemoteDocument(UniversalBaseModel):
23
24
  """
24
25
 
25
26
  file_type: typing_extensions.Annotated[typing.Optional[DocumentType], FieldMetadata(alias="fileType")] = None
27
+ process_level: typing_extensions.Annotated[typing.Optional[ProcessLevel], FieldMetadata(alias="processLevel")] = (
28
+ None
29
+ )
26
30
  search_data: typing_extensions.Annotated[
27
31
  typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="searchData")
28
32
  ] = pydantic.Field(default=None)
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ ProcessLevel = typing.Union[typing.Literal["none", "full"], typing.Any]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: groundx
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -47,7 +47,7 @@ pip install groundx
47
47
 
48
48
  ## Reference
49
49
 
50
- A full reference for this library is available [here](./reference.md).
50
+ A full reference for this library is available [here](https://github.com/eyelevelai/groundx-python/blob/main/reference.md).
51
51
 
52
52
  ## Usage
53
53
 
@@ -1,10 +1,10 @@
1
- groundx/__init__.py,sha256=VU186jO87Zh7sclaszpq-ZzCIcHa7_exbXC6XMX2AfA,3065
1
+ groundx/__init__.py,sha256=h2Hzs9yA7uz0N4s_xzpzbE9Rkkq0TA_My-xqjKZWKlU,3103
2
2
  groundx/buckets/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
3
3
  groundx/buckets/client.py,sha256=4jlc9vfIult1mMJ4FZW4_KFJybZPStZt1FUplIgrxbU,23947
4
4
  groundx/client.py,sha256=dIW9OyrMyfC1N7HSxRrHh0w_8rJ8osNUOPdYD6ueQ6g,6515
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=SzQXOHypGkDapwssRoWP05y1TS1LUkQutS0dqyqlxM8,1802
7
+ groundx/core/client_wrapper.py,sha256=txQfrB_xeQWWateNZeG9sQ30L4cDgPHkXspY_FQZ_HI,1802
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=KL5RGa0y4n8nX0-07WRg4ZQUTq30sc-XJbWcP5vjBDg,19552
@@ -17,7 +17,7 @@ groundx/core/serialization.py,sha256=D9h_t-RQON3-CHWs1C4ESY9B-Yd5d-l5lnTLb_X896g
17
17
  groundx/customer/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
18
18
  groundx/customer/client.py,sha256=C_JANeDewRD1Kg-q7LPxdiOSWbYSTOiYlBYZLRYPI44,3467
19
19
  groundx/documents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
20
- groundx/documents/client.py,sha256=Vnyfs24KNbST9FnF8wP4dc7vX7DlUp9mEcqM_9zYjiE,58841
20
+ groundx/documents/client.py,sha256=TVmQd5Q3DjuUbve7CNG90ufn65EyselMx7bAiUIgdSc,58805
21
21
  groundx/environment.py,sha256=CInm1_DKtZ1mrxutmKb1qqv82P33r_S87hZD3Hc1VB0,159
22
22
  groundx/errors/__init__.py,sha256=-prNYsFd8xxM4va0vR1raZjcd10tllOJKyEWjX_pwdU,214
23
23
  groundx/errors/bad_request_error.py,sha256=_EbO8mWqN9kFZPvIap8qa1lL_EWkRcsZe1HKV9GDWJY,264
@@ -26,13 +26,13 @@ groundx/groups/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
26
26
  groundx/groups/client.py,sha256=bytQRh9m7e4vIuYHb7dD1kCTQZvyBxedCqGnmmLqrsI,35237
27
27
  groundx/health/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
28
28
  groundx/health/client.py,sha256=fcTa21RWPyBuT77PQ0EncC6rBaW_DrYlRvudy9-0H58,7545
29
- groundx/ingest.py,sha256=5uTL3iSp3HQYSAbzUkZ6_RM0KbKuqdkPZ8_bLxMpvDM,11377
29
+ groundx/ingest.py,sha256=snQ586PRmV_s3VQNBqYfKM0Lo_AaRvft5mX4sT4k-l0,11536
30
30
  groundx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  groundx/search/__init__.py,sha256=RagVzjShP33mDg9o4N3kGzV0egL1RYNjCpXPE8VzMYE,145
32
32
  groundx/search/client.py,sha256=zrrqFy0HowDUYPsMU4nfvDV2RgmkEQ4E8WYNktu3xcs,18684
33
33
  groundx/search/types/__init__.py,sha256=fNFXQloPa1PHHO8VZim6KQNMA9N5EZtfSkissdxtY_c,165
34
34
  groundx/search/types/search_content_request_id.py,sha256=us7mYdzR0qPur_wR5I9BhHaLEzC5nLBRna6-xq4M1ec,128
35
- groundx/types/__init__.py,sha256=Jsc4HRDnSG5JhV37QeFpgGkDUFfVsYt5SD3-lCqPakk,3903
35
+ groundx/types/__init__.py,sha256=FIfetK3iKUmtyHI8_hUTybZ5mW_MUtOshC7sFm4-Qps,3963
36
36
  groundx/types/bounding_box_detail.py,sha256=51qcen326NTHY2ZqH1cFXut0_MCmk39EbLoDAwotdq4,1832
37
37
  groundx/types/bucket_detail.py,sha256=bQjCvfyWydjItmzNNTvH-iWxNDOggd7R7X1alFZzlEY,1511
38
38
  groundx/types/bucket_list_response.py,sha256=jC0NBsLCYDSwQrBzuW0g3PWFycjtKl8YRkKhic_-1DA,650
@@ -41,7 +41,7 @@ groundx/types/bucket_update_detail.py,sha256=B4atQMDSXEdx7otcDbvgsrAHtXNz9swMnOs
41
41
  groundx/types/bucket_update_response.py,sha256=h5RJTEpc4WPI_C4sPvsJZo7IxKppnPR-I9VGEQryRlc,633
42
42
  groundx/types/customer_detail.py,sha256=RNm0qXvKx6YvVmkVJZeCNIz7n8_siFMXJ_AGtH3i5Z0,1094
43
43
  groundx/types/customer_response.py,sha256=_RbuanXhCWQkCeQ0dkwPgsjNBoBgNpixiNfRpXcMew8,618
44
- groundx/types/document.py,sha256=wfhVkqNnYvRmmICXQR-jGp6P1KuJTC7aSq3kE7e9j5s,1691
44
+ groundx/types/document.py,sha256=oU-rDYOVCVAxGdxI0OFwOsAVAx86_6MQ-je7Q9ES0mY,1869
45
45
  groundx/types/document_detail.py,sha256=i1UfcQAGYo9v1HwrrpzQPw_O0qA7IOXwOUuPV1yU8nI,2323
46
46
  groundx/types/document_list_response.py,sha256=Z0Hm5VBwI0qatbSp6nYHh0RrGwJN3Gqh2D72FfDseZk,839
47
47
  groundx/types/document_local_ingest_request.py,sha256=zqaT_QgYcEc8AfVwZm-O5jLTEiYSsO-i3VVgZ_7xl7w,197
@@ -56,12 +56,13 @@ groundx/types/health_response_health.py,sha256=I0QeEljFp6l5LCJbCTArW031Om84egePg
56
56
  groundx/types/health_service.py,sha256=M1-h1EJSpAXw-j3pY-09_g_WKkO0spdj8e7pgPzSGf0,1083
57
57
  groundx/types/health_service_status.py,sha256=ugKJXlx8QGi83n_J6s1frFrW1hYfOn3Dlb_pPNexwMA,185
58
58
  groundx/types/ingest_local_document.py,sha256=am6TPgHu40S4Lzo9hMkDRauYnc-AWBuYL0Lgk85Fseg,753
59
- groundx/types/ingest_local_document_metadata.py,sha256=TIMHo_4a-sS_ZwveoSmMS3R8SL3k3W7iH49ffcu8W1U,1560
60
- groundx/types/ingest_remote_document.py,sha256=LpS8R1zWwM07lUaSwrNzTCg9jok8u5tP0EOf2Q9_7eI,1685
59
+ groundx/types/ingest_local_document_metadata.py,sha256=GBWalwdF6AzQSlfxgkwOh8dJ8T2aPB3XHcNaNYR0L8o,1738
60
+ groundx/types/ingest_remote_document.py,sha256=u79fsF-zwkXs6vm80-aFaChi3rMpC1e1KHFOlqLNWwk,1863
61
61
  groundx/types/ingest_response.py,sha256=139rn8wpT44jlUzYXiy0r8XzN2U_OtdLltpSbRU0TyA,633
62
62
  groundx/types/ingest_response_ingest.py,sha256=8FKApYNvS6KFxEKm05pKpKJ0BAagxoE0cWeTt-qjm1g,781
63
63
  groundx/types/message_response.py,sha256=g_FJJyXYg_3fjZQueXkcy11q-qUfZGdVdALddHBieh4,585
64
64
  groundx/types/meter_detail.py,sha256=FybpzJj5QrtlDXT26ejw2CH1koOWe0ZeG-MS0n63HSI,1152
65
+ groundx/types/process_level.py,sha256=gDFm3FKDpoL_W7jGlZcv9EMHwSALiT7mnJuV6EJ4dyA,152
65
66
  groundx/types/process_status_response.py,sha256=ScmEqF9TVGeugFLshyFbGQpM4MkAawsEJ3sUBILP87c,662
66
67
  groundx/types/process_status_response_ingest.py,sha256=tZteJy-DI_2jT6eLbTJ812qJc_WG9Sd44w7G1LVatLQ,1066
67
68
  groundx/types/process_status_response_ingest_progress.py,sha256=4rPMHdLEc6PC5qTjMBAB4IA-l38t5KPcN8qtET7qKfc,1320
@@ -80,7 +81,7 @@ groundx/types/subscription_detail.py,sha256=WNfUw2EMVECIvNYcV2s51zZ6T3Utc4zYXw63
80
81
  groundx/types/subscription_detail_meters.py,sha256=lBa8-1QlMVHjr5RLGqhiTKnD1KMM0AAHTWvz9TVtG8w,830
81
82
  groundx/types/website_source.py,sha256=3WeRCiilNKKBTfhwgjo3jbcVI3vLTeM-KxI6dVzpg9o,1578
82
83
  groundx/version.py,sha256=1yVogKaq260fQfckM2RYN2144SEw0QROsZW8ICtkG4U,74
83
- groundx-2.2.2.dist-info/LICENSE,sha256=dFE6nY1bHnSn6NqmdlghlU1gQqLqYNphrceGVehSa7o,1065
84
- groundx-2.2.2.dist-info/METADATA,sha256=xD3ouCct56X2GDLssMWwY7SZQpURQX6lJU_KMjqZReo,5052
85
- groundx-2.2.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
86
- groundx-2.2.2.dist-info/RECORD,,
84
+ groundx-2.2.3.dist-info/LICENSE,sha256=dFE6nY1bHnSn6NqmdlghlU1gQqLqYNphrceGVehSa7o,1065
85
+ groundx-2.2.3.dist-info/METADATA,sha256=yfoe4WIBfgzqsjp6fuXo4aVjA1oX5I3TT5r6t1Y5PSM,5105
86
+ groundx-2.2.3.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
87
+ groundx-2.2.3.dist-info/RECORD,,