Skip to content

Commit 81c8252

Browse files
SDK regeneration (#50)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 0106c49 commit 81c8252

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "credal"
33

44
[tool.poetry]
55
name = "credal"
6-
version = "0.1.2"
6+
version = "0.1.3"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ client.document_catalog.upload_document_contents(
930930
<dl>
931931
<dd>
932932

933-
**custom_metadata:** `typing.Optional[typing.Optional[typing.Any]]` — Optional JSON representing any custom metadata for this document
933+
**custom_metadata:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` — Optional JSON representing any custom metadata for this document
934934

935935
</dd>
936936
</dl>

src/credal/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "credal/0.1.2",
25+
"User-Agent": "credal/0.1.3",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "credal",
28-
"X-Fern-SDK-Version": "0.1.2",
28+
"X-Fern-SDK-Version": "0.1.3",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
headers["Authorization"] = f"Bearer {self._get_api_key()}"

src/credal/document_catalog/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def upload_document_contents(
3737
upload_as_user_email: str,
3838
document_external_id: str,
3939
document_external_url: typing.Optional[str] = OMIT,
40-
custom_metadata: typing.Optional[typing.Optional[typing.Any]] = OMIT,
40+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
4141
collection_id: typing.Optional[str] = OMIT,
4242
force_update: typing.Optional[bool] = OMIT,
4343
internal_public: typing.Optional[bool] = OMIT,
@@ -64,7 +64,7 @@ def upload_document_contents(
6464
document_external_url : typing.Optional[str]
6565
The external URL of the document you want to upload. If provided Credal will link to this URL.
6666
67-
custom_metadata : typing.Optional[typing.Optional[typing.Any]]
67+
custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
6868
Optional JSON representing any custom metadata for this document
6969
7070
collection_id : typing.Optional[str]
@@ -231,7 +231,7 @@ async def upload_document_contents(
231231
upload_as_user_email: str,
232232
document_external_id: str,
233233
document_external_url: typing.Optional[str] = OMIT,
234-
custom_metadata: typing.Optional[typing.Optional[typing.Any]] = OMIT,
234+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
235235
collection_id: typing.Optional[str] = OMIT,
236236
force_update: typing.Optional[bool] = OMIT,
237237
internal_public: typing.Optional[bool] = OMIT,
@@ -258,7 +258,7 @@ async def upload_document_contents(
258258
document_external_url : typing.Optional[str]
259259
The external URL of the document you want to upload. If provided Credal will link to this URL.
260260
261-
custom_metadata : typing.Optional[typing.Optional[typing.Any]]
261+
custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
262262
Optional JSON representing any custom metadata for this document
263263
264264
collection_id : typing.Optional[str]

src/credal/document_catalog/raw_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def upload_document_contents(
3030
upload_as_user_email: str,
3131
document_external_id: str,
3232
document_external_url: typing.Optional[str] = OMIT,
33-
custom_metadata: typing.Optional[typing.Optional[typing.Any]] = OMIT,
33+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
3434
collection_id: typing.Optional[str] = OMIT,
3535
force_update: typing.Optional[bool] = OMIT,
3636
internal_public: typing.Optional[bool] = OMIT,
@@ -57,7 +57,7 @@ def upload_document_contents(
5757
document_external_url : typing.Optional[str]
5858
The external URL of the document you want to upload. If provided Credal will link to this URL.
5959
60-
custom_metadata : typing.Optional[typing.Optional[typing.Any]]
60+
custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
6161
Optional JSON representing any custom metadata for this document
6262
6363
collection_id : typing.Optional[str]
@@ -210,7 +210,7 @@ async def upload_document_contents(
210210
upload_as_user_email: str,
211211
document_external_id: str,
212212
document_external_url: typing.Optional[str] = OMIT,
213-
custom_metadata: typing.Optional[typing.Optional[typing.Any]] = OMIT,
213+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
214214
collection_id: typing.Optional[str] = OMIT,
215215
force_update: typing.Optional[bool] = OMIT,
216216
internal_public: typing.Optional[bool] = OMIT,
@@ -237,7 +237,7 @@ async def upload_document_contents(
237237
document_external_url : typing.Optional[str]
238238
The external URL of the document you want to upload. If provided Credal will link to this URL.
239239
240-
custom_metadata : typing.Optional[typing.Optional[typing.Any]]
240+
custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
241241
Optional JSON representing any custom metadata for this document
242242
243243
collection_id : typing.Optional[str]

src/credal/document_catalog/types/document_metadata_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DocumentMetadataPatch(UniversalBaseModel):
1717
The identifier for the resource you want to patch
1818
"""
1919

20-
metadata: typing.Optional[typing.Any] = pydantic.Field(default=None)
20+
metadata: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field()
2121
"""
2222
Key-value object of metadata for document. Keys will be merged with any existing values but can also be set to `null` to effectively remove
2323
"""

src/credal/users/types/user_metadata_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class UserMetadataPatch(UniversalBaseModel):
1212
user_email: typing_extensions.Annotated[str, FieldMetadata(alias="userEmail")]
13-
metadata: typing.Optional[typing.Any] = pydantic.Field(default=None)
13+
metadata: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field()
1414
"""
1515
Key-value object of metadata for user. Keys will be merged with any existing values but can also be set to `null` to effectively remove
1616
"""

0 commit comments

Comments
 (0)