From 1a9c4cb0a540be2c83b9b627096247d4dcdb165f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 16:01:27 +0000 Subject: [PATCH] SDK regeneration --- poetry.lock | 103 +++++++++--------- reference.md | 33 ++++-- src/sayari/__init__.py | 2 + src/sayari/metadata/client.py | 4 +- src/sayari/project_entity/__init__.py | 2 + src/sayari/project_entity/client.py | 56 ++++++---- src/sayari/project_entity/types/__init__.py | 2 + .../create_resolved_project_entity_request.py | 31 +++--- .../types/project_entities_response.py | 4 +- .../types/resolution_attr_schema.py | 34 ++++++ .../types/resolution_attributes.py | 20 +--- .../types/save_project_entity_body.py | 4 +- ...ty_supply_chain_snapshot_by_id_response.py | 12 +- 13 files changed, 180 insertions(+), 127 deletions(-) create mode 100644 src/sayari/project_entity/types/resolution_attr_schema.py diff --git a/poetry.lock b/poetry.lock index f4d44285..892a0108 100644 --- a/poetry.lock +++ b/poetry.lock @@ -38,13 +38,13 @@ trio = ["trio (>=0.26.1)"] [[package]] name = "certifi" -version = "2025.11.12" +version = "2026.2.25" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.7" files = [ - {file = "certifi-2025.11.12-py3-none-any.whl", hash = "sha256:97de8790030bbd5c2d96b7ec782fc2f7820ef8dba6db909ccf95449f2d062d4b"}, - {file = "certifi-2025.11.12.tar.gz", hash = "sha256:d8ab5478f2ecd78af242878415affce761ca6bc54a22a27e026d7c25357c3316"}, + {file = "certifi-2026.2.25-py3-none-any.whl", hash = "sha256:027692e4402ad994f1c42e52a4997a9763c646b73e4096e4d5d6db8af1d6f0fa"}, + {file = "certifi-2026.2.25.tar.gz", hash = "sha256:e887ab5cee78ea814d3472169153c2d12cd43b14bd03329a39a9c6e2e80bfba7"}, ] [[package]] @@ -215,13 +215,13 @@ files = [ [[package]] name = "packaging" -version = "25.0" +version = "26.0" description = "Core utilities for Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484"}, - {file = "packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f"}, + {file = "packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529"}, + {file = "packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4"}, ] [[package]] @@ -476,53 +476,58 @@ files = [ [[package]] name = "tomli" -version = "2.3.0" +version = "2.4.1" description = "A lil' TOML parser" optional = false python-versions = ">=3.8" files = [ - {file = "tomli-2.3.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:88bd15eb972f3664f5ed4b57c1634a97153b4bac4479dcb6a495f41921eb7f45"}, - {file = "tomli-2.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:883b1c0d6398a6a9d29b508c331fa56adbcdff647f6ace4dfca0f50e90dfd0ba"}, - {file = "tomli-2.3.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d1381caf13ab9f300e30dd8feadb3de072aeb86f1d34a8569453ff32a7dea4bf"}, - {file = "tomli-2.3.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a0e285d2649b78c0d9027570d4da3425bdb49830a6156121360b3f8511ea3441"}, - {file = "tomli-2.3.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0a154a9ae14bfcf5d8917a59b51ffd5a3ac1fd149b71b47a3a104ca4edcfa845"}, - {file = "tomli-2.3.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:74bf8464ff93e413514fefd2be591c3b0b23231a77f901db1eb30d6f712fc42c"}, - {file = "tomli-2.3.0-cp311-cp311-win32.whl", hash = "sha256:00b5f5d95bbfc7d12f91ad8c593a1659b6387b43f054104cda404be6bda62456"}, - {file = "tomli-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:4dc4ce8483a5d429ab602f111a93a6ab1ed425eae3122032db7e9acf449451be"}, - {file = "tomli-2.3.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d7d86942e56ded512a594786a5ba0a5e521d02529b3826e7761a05138341a2ac"}, - {file = "tomli-2.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:73ee0b47d4dad1c5e996e3cd33b8a76a50167ae5f96a2607cbe8cc773506ab22"}, - {file = "tomli-2.3.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:792262b94d5d0a466afb5bc63c7daa9d75520110971ee269152083270998316f"}, - {file = "tomli-2.3.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4f195fe57ecceac95a66a75ac24d9d5fbc98ef0962e09b2eddec5d39375aae52"}, - {file = "tomli-2.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e31d432427dcbf4d86958c184b9bfd1e96b5b71f8eb17e6d02531f434fd335b8"}, - {file = "tomli-2.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:7b0882799624980785240ab732537fcfc372601015c00f7fc367c55308c186f6"}, - {file = "tomli-2.3.0-cp312-cp312-win32.whl", hash = "sha256:ff72b71b5d10d22ecb084d345fc26f42b5143c5533db5e2eaba7d2d335358876"}, - {file = "tomli-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:1cb4ed918939151a03f33d4242ccd0aa5f11b3547d0cf30f7c74a408a5b99878"}, - {file = "tomli-2.3.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5192f562738228945d7b13d4930baffda67b69425a7f0da96d360b0a3888136b"}, - {file = "tomli-2.3.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:be71c93a63d738597996be9528f4abe628d1adf5e6eb11607bc8fe1a510b5dae"}, - {file = "tomli-2.3.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c4665508bcbac83a31ff8ab08f424b665200c0e1e645d2bd9ab3d3e557b6185b"}, - {file = "tomli-2.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4021923f97266babc6ccab9f5068642a0095faa0a51a246a6a02fccbb3514eaf"}, - {file = "tomli-2.3.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a4ea38c40145a357d513bffad0ed869f13c1773716cf71ccaa83b0fa0cc4e42f"}, - {file = "tomli-2.3.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ad805ea85eda330dbad64c7ea7a4556259665bdf9d2672f5dccc740eb9d3ca05"}, - {file = "tomli-2.3.0-cp313-cp313-win32.whl", hash = "sha256:97d5eec30149fd3294270e889b4234023f2c69747e555a27bd708828353ab606"}, - {file = "tomli-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:0c95ca56fbe89e065c6ead5b593ee64b84a26fca063b5d71a1122bf26e533999"}, - {file = "tomli-2.3.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:cebc6fe843e0733ee827a282aca4999b596241195f43b4cc371d64fc6639da9e"}, - {file = "tomli-2.3.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4c2ef0244c75aba9355561272009d934953817c49f47d768070c3c94355c2aa3"}, - {file = "tomli-2.3.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c22a8bf253bacc0cf11f35ad9808b6cb75ada2631c2d97c971122583b129afbc"}, - {file = "tomli-2.3.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0eea8cc5c5e9f89c9b90c4896a8deefc74f518db5927d0e0e8d4a80953d774d0"}, - {file = "tomli-2.3.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b74a0e59ec5d15127acdabd75ea17726ac4c5178ae51b85bfe39c4f8a278e879"}, - {file = "tomli-2.3.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b5870b50c9db823c595983571d1296a6ff3e1b88f734a4c8f6fc6188397de005"}, - {file = "tomli-2.3.0-cp314-cp314-win32.whl", hash = "sha256:feb0dacc61170ed7ab602d3d972a58f14ee3ee60494292d384649a3dc38ef463"}, - {file = "tomli-2.3.0-cp314-cp314-win_amd64.whl", hash = "sha256:b273fcbd7fc64dc3600c098e39136522650c49bca95df2d11cf3b626422392c8"}, - {file = "tomli-2.3.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:940d56ee0410fa17ee1f12b817b37a4d4e4dc4d27340863cc67236c74f582e77"}, - {file = "tomli-2.3.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f85209946d1fe94416debbb88d00eb92ce9cd5266775424ff81bc959e001acaf"}, - {file = "tomli-2.3.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a56212bdcce682e56b0aaf79e869ba5d15a6163f88d5451cbde388d48b13f530"}, - {file = "tomli-2.3.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c5f3ffd1e098dfc032d4d3af5c0ac64f6d286d98bc148698356847b80fa4de1b"}, - {file = "tomli-2.3.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e01decd096b1530d97d5d85cb4dff4af2d8347bd35686654a004f8dea20fc67"}, - {file = "tomli-2.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8a35dd0e643bb2610f156cca8db95d213a90015c11fee76c946aa62b7ae7e02f"}, - {file = "tomli-2.3.0-cp314-cp314t-win32.whl", hash = "sha256:a1f7f282fe248311650081faafa5f4732bdbfef5d45fe3f2e702fbc6f2d496e0"}, - {file = "tomli-2.3.0-cp314-cp314t-win_amd64.whl", hash = "sha256:70a251f8d4ba2d9ac2542eecf008b3c8a9fc5c3f9f02c56a9d7952612be2fdba"}, - {file = "tomli-2.3.0-py3-none-any.whl", hash = "sha256:e95b1af3c5b07d9e643909b5abbec77cd9f1217e6d0bca72b0234736b9fb1f1b"}, - {file = "tomli-2.3.0.tar.gz", hash = "sha256:64be704a875d2a59753d80ee8a533c3fe183e3f06807ff7dc2232938ccb01549"}, + {file = "tomli-2.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f8f0fc26ec2cc2b965b7a3b87cd19c5c6b8c5e5f436b984e85f486d652285c30"}, + {file = "tomli-2.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4ab97e64ccda8756376892c53a72bd1f964e519c77236368527f758fbc36a53a"}, + {file = "tomli-2.4.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:96481a5786729fd470164b47cdb3e0e58062a496f455ee41b4403be77cb5a076"}, + {file = "tomli-2.4.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5a881ab208c0baf688221f8cecc5401bd291d67e38a1ac884d6736cbcd8247e9"}, + {file = "tomli-2.4.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:47149d5bd38761ac8be13a84864bf0b7b70bc051806bc3669ab1cbc56216b23c"}, + {file = "tomli-2.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ec9bfaf3ad2df51ace80688143a6a4ebc09a248f6ff781a9945e51937008fcbc"}, + {file = "tomli-2.4.1-cp311-cp311-win32.whl", hash = "sha256:ff2983983d34813c1aeb0fa89091e76c3a22889ee83ab27c5eeb45100560c049"}, + {file = "tomli-2.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:5ee18d9ebdb417e384b58fe414e8d6af9f4e7a0ae761519fb50f721de398dd4e"}, + {file = "tomli-2.4.1-cp311-cp311-win_arm64.whl", hash = "sha256:c2541745709bad0264b7d4705ad453b76ccd191e64aa6f0fc66b69a293a45ece"}, + {file = "tomli-2.4.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c742f741d58a28940ce01d58f0ab2ea3ced8b12402f162f4d534dfe18ba1cd6a"}, + {file = "tomli-2.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7f86fd587c4ed9dd76f318225e7d9b29cfc5a9d43de44e5754db8d1128487085"}, + {file = "tomli-2.4.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ff18e6a727ee0ab0388507b89d1bc6a22b138d1e2fa56d1ad494586d61d2eae9"}, + {file = "tomli-2.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:136443dbd7e1dee43c68ac2694fde36b2849865fa258d39bf822c10e8068eac5"}, + {file = "tomli-2.4.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5e262d41726bc187e69af7825504c933b6794dc3fbd5945e41a79bb14c31f585"}, + {file = "tomli-2.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:5cb41aa38891e073ee49d55fbc7839cfdb2bc0e600add13874d048c94aadddd1"}, + {file = "tomli-2.4.1-cp312-cp312-win32.whl", hash = "sha256:da25dc3563bff5965356133435b757a795a17b17d01dbc0f42fb32447ddfd917"}, + {file = "tomli-2.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:52c8ef851d9a240f11a88c003eacb03c31fc1c9c4ec64a99a0f922b93874fda9"}, + {file = "tomli-2.4.1-cp312-cp312-win_arm64.whl", hash = "sha256:f758f1b9299d059cc3f6546ae2af89670cb1c4d48ea29c3cacc4fe7de3058257"}, + {file = "tomli-2.4.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:36d2bd2ad5fb9eaddba5226aa02c8ec3fa4f192631e347b3ed28186d43be6b54"}, + {file = "tomli-2.4.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:eb0dc4e38e6a1fd579e5d50369aa2e10acfc9cace504579b2faabb478e76941a"}, + {file = "tomli-2.4.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c7f2c7f2b9ca6bdeef8f0fa897f8e05085923eb091721675170254cbc5b02897"}, + {file = "tomli-2.4.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f3c6818a1a86dd6dca7ddcaaf76947d5ba31aecc28cb1b67009a5877c9a64f3f"}, + {file = "tomli-2.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d312ef37c91508b0ab2cee7da26ec0b3ed2f03ce12bd87a588d771ae15dcf82d"}, + {file = "tomli-2.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:51529d40e3ca50046d7606fa99ce3956a617f9b36380da3b7f0dd3dd28e68cb5"}, + {file = "tomli-2.4.1-cp313-cp313-win32.whl", hash = "sha256:2190f2e9dd7508d2a90ded5ed369255980a1bcdd58e52f7fe24b8162bf9fedbd"}, + {file = "tomli-2.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:8d65a2fbf9d2f8352685bc1364177ee3923d6baf5e7f43ea4959d7d8bc326a36"}, + {file = "tomli-2.4.1-cp313-cp313-win_arm64.whl", hash = "sha256:4b605484e43cdc43f0954ddae319fb75f04cc10dd80d830540060ee7cd0243cd"}, + {file = "tomli-2.4.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:fd0409a3653af6c147209d267a0e4243f0ae46b011aa978b1080359fddc9b6cf"}, + {file = "tomli-2.4.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a120733b01c45e9a0c34aeef92bf0cf1d56cfe81ed9d47d562f9ed591a9828ac"}, + {file = "tomli-2.4.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:559db847dc486944896521f68d8190be1c9e719fced785720d2216fe7022b662"}, + {file = "tomli-2.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:01f520d4f53ef97964a240a035ec2a869fe1a37dde002b57ebc4417a27ccd853"}, + {file = "tomli-2.4.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7f94b27a62cfad8496c8d2513e1a222dd446f095fca8987fceef261225538a15"}, + {file = "tomli-2.4.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ede3e6487c5ef5d28634ba3f31f989030ad6af71edfb0055cbbd14189ff240ba"}, + {file = "tomli-2.4.1-cp314-cp314-win32.whl", hash = "sha256:3d48a93ee1c9b79c04bb38772ee1b64dcf18ff43085896ea460ca8dec96f35f6"}, + {file = "tomli-2.4.1-cp314-cp314-win_amd64.whl", hash = "sha256:88dceee75c2c63af144e456745e10101eb67361050196b0b6af5d717254dddf7"}, + {file = "tomli-2.4.1-cp314-cp314-win_arm64.whl", hash = "sha256:b8c198f8c1805dc42708689ed6864951fd2494f924149d3e4bce7710f8eb5232"}, + {file = "tomli-2.4.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:d4d8fe59808a54658fcc0160ecfb1b30f9089906c50b23bcb4c69eddc19ec2b4"}, + {file = "tomli-2.4.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7008df2e7655c495dd12d2a4ad038ff878d4ca4b81fccaf82b714e07eae4402c"}, + {file = "tomli-2.4.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1d8591993e228b0c930c4bb0db464bdad97b3289fb981255d6c9a41aedc84b2d"}, + {file = "tomli-2.4.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:734e20b57ba95624ecf1841e72b53f6e186355e216e5412de414e3c51e5e3c41"}, + {file = "tomli-2.4.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8a650c2dbafa08d42e51ba0b62740dae4ecb9338eefa093aa5c78ceb546fcd5c"}, + {file = "tomli-2.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:504aa796fe0569bb43171066009ead363de03675276d2d121ac1a4572397870f"}, + {file = "tomli-2.4.1-cp314-cp314t-win32.whl", hash = "sha256:b1d22e6e9387bf4739fbe23bfa80e93f6b0373a7f1b96c6227c32bef95a4d7a8"}, + {file = "tomli-2.4.1-cp314-cp314t-win_amd64.whl", hash = "sha256:2c1c351919aca02858f740c6d33adea0c5deea37f9ecca1cc1ef9e884a619d26"}, + {file = "tomli-2.4.1-cp314-cp314t-win_arm64.whl", hash = "sha256:eab21f45c7f66c13f2a9e0e1535309cee140182a9cdae1e041d02e47291e8396"}, + {file = "tomli-2.4.1-py3-none-any.whl", hash = "sha256:0d85819802132122da43cb86656f8d1f8c6587d54ae7dcaf30e90533028b49fe"}, + {file = "tomli-2.4.1.tar.gz", hash = "sha256:7c7e1a961a0b2f2472c1ac5b69affa0ae1132c39adcb67aba98568702b9cc23f"}, ] [[package]] diff --git a/reference.md b/reference.md index d9af5d89..49698cc1 100644 --- a/reference.md +++ b/reference.md @@ -1059,7 +1059,7 @@ client.info.get_history()
-Get metadta about the api, both its versions, which releases are present, and the identity of the authenticated user. +Get metadata about the api, both its versions, which releases are present, and the identity of the authenticated user.
@@ -3396,7 +3396,10 @@ The resolution endpoints allow users to search for matching entities against a p ```python from sayari import Sayari -from sayari.project_entity import CreateResolvedProjectEntityRequest +from sayari.project_entity import ( + CreateResolvedProjectEntityRequest, + ResolutionAttrSchema, +) client = Sayari( client_id="YOUR_CLIENT_ID", @@ -3405,11 +3408,15 @@ client = Sayari( client.project_entity.create_project_entity( project_id="0n4473", request=CreateResolvedProjectEntityRequest( - name=["Marvel Garment"], - country=["KHM"], - address=[ - "Beung Thom 3 Village, Sangkat Beung Thom, Posenchey, Phnom Penh" - ], + limit=25, + profile="suppliers", + attributes=ResolutionAttrSchema( + name=["Marvel Garment"], + country=["KHM"], + address=[ + "Beung Thom 3 Village, Sangkat Beung Thom, Posenchey, Phnom Penh" + ], + ), ), ) @@ -4069,7 +4076,7 @@ Checks if a project entity with the given attributes already exists. ```python from sayari import Sayari -from sayari.project_entity import ResolutionAttributes +from sayari.project_entity import ResolutionAttributes, ResolutionAttrSchema client = Sayari( client_id="YOUR_CLIENT_ID", @@ -4078,8 +4085,10 @@ client = Sayari( client.project_entity.project_entity_exists( project_id="YVB88Y", request=ResolutionAttributes( - name=["Example Company"], - country=["USA"], + attributes=ResolutionAttrSchema( + name=["Example Company"], + country=["USA"], + ), ), ) @@ -4153,7 +4162,7 @@ Stores a project entity given entity IDs and a list of attributes. ```python from sayari import Sayari -from sayari.project_entity import ResolutionAttributes, SaveProjectEntityBody +from sayari.project_entity import ResolutionAttrSchema, SaveProjectEntityBody client = Sayari( client_id="YOUR_CLIENT_ID", @@ -4163,7 +4172,7 @@ client.project_entity.save_project_entity( project_id="YVB88Y", request=SaveProjectEntityBody( entity_ids=["entity_id_1", "entity_id_2"], - attributes=ResolutionAttributes( + attributes=ResolutionAttrSchema( name=["Example Company"], country=["USA"], ), diff --git a/src/sayari/__init__.py b/src/sayari/__init__.py index 26543ce7..48afe9d6 100644 --- a/src/sayari/__init__.py +++ b/src/sayari/__init__.py @@ -262,6 +262,7 @@ ProjectRiskChangesResponse, ProjectRiskChangesResponseData, ProjectRiskFactor, + ResolutionAttrSchema, ResolutionAttributes, ResolutionProfile, RiskCategoriesSummary, @@ -717,6 +718,7 @@ "RelationshipInfo", "Relationships", "ReportingPeriodType", + "ResolutionAttrSchema", "ResolutionAttributes", "ResolutionBody", "ResolutionPersistedResponse", diff --git a/src/sayari/metadata/client.py b/src/sayari/metadata/client.py index 42ab877a..47d61f07 100644 --- a/src/sayari/metadata/client.py +++ b/src/sayari/metadata/client.py @@ -24,7 +24,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def metadata(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetadataResponse: """ - Get metadta about the api, both its versions, which releases are present, and the identity of the authenticated user. + Get metadata about the api, both its versions, which releases are present, and the identity of the authenticated user. Parameters ---------- @@ -112,7 +112,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def metadata(self, *, request_options: typing.Optional[RequestOptions] = None) -> MetadataResponse: """ - Get metadta about the api, both its versions, which releases are present, and the identity of the authenticated user. + Get metadata about the api, both its versions, which releases are present, and the identity of the authenticated user. Parameters ---------- diff --git a/src/sayari/project_entity/__init__.py b/src/sayari/project_entity/__init__.py index 74f0784c..5d6f604a 100644 --- a/src/sayari/project_entity/__init__.py +++ b/src/sayari/project_entity/__init__.py @@ -45,6 +45,7 @@ ProjectRiskChangesResponse, ProjectRiskChangesResponseData, ProjectRiskFactor, + ResolutionAttrSchema, ResolutionAttributes, ResolutionProfile, RiskCategoriesSummary, @@ -115,6 +116,7 @@ "ProjectRiskChangesResponse", "ProjectRiskChangesResponseData", "ProjectRiskFactor", + "ResolutionAttrSchema", "ResolutionAttributes", "ResolutionProfile", "RiskCategoriesSummary", diff --git a/src/sayari/project_entity/client.py b/src/sayari/project_entity/client.py index 668880ab..9533b67c 100644 --- a/src/sayari/project_entity/client.py +++ b/src/sayari/project_entity/client.py @@ -80,7 +80,10 @@ def create_project_entity( Examples -------- from sayari import Sayari - from sayari.project_entity import CreateResolvedProjectEntityRequest + from sayari.project_entity import ( + CreateResolvedProjectEntityRequest, + ResolutionAttrSchema, + ) client = Sayari( client_id="YOUR_CLIENT_ID", @@ -89,11 +92,14 @@ def create_project_entity( client.project_entity.create_project_entity( project_id="YVB88Y", request=CreateResolvedProjectEntityRequest( - name=["VTB Bank"], - country=["RUS"], - address=["Moscow"], - identifier=["253400V1H6ART1UQ0N98"], + limit=10, profile="corporate", + attributes=ResolutionAttrSchema( + name=["VTB Bank"], + country=["RUS"], + address=["Moscow"], + identifier=["253400V1H6ART1UQ0N98"], + ), ), ) """ @@ -933,7 +939,7 @@ def project_entity_exists( Examples -------- from sayari import Sayari - from sayari.project_entity import ResolutionAttributes + from sayari.project_entity import ResolutionAttributes, ResolutionAttrSchema client = Sayari( client_id="YOUR_CLIENT_ID", @@ -942,8 +948,10 @@ def project_entity_exists( client.project_entity.project_entity_exists( project_id="YVB88Y", request=ResolutionAttributes( - name=["Example Company"], - country=["USA"], + attributes=ResolutionAttrSchema( + name=["Example Company"], + country=["USA"], + ), ), ) """ @@ -1056,7 +1064,7 @@ def save_project_entity( Examples -------- from sayari import Sayari - from sayari.project_entity import ResolutionAttributes, SaveProjectEntityBody + from sayari.project_entity import ResolutionAttrSchema, SaveProjectEntityBody client = Sayari( client_id="YOUR_CLIENT_ID", @@ -1066,7 +1074,7 @@ def save_project_entity( project_id="YVB88Y", request=SaveProjectEntityBody( entity_ids=["entity_id_1", "entity_id_2"], - attributes=ResolutionAttributes( + attributes=ResolutionAttrSchema( name=["Example Company"], country=["USA"], ), @@ -2262,7 +2270,10 @@ async def create_project_entity( import asyncio from sayari import AsyncSayari - from sayari.project_entity import CreateResolvedProjectEntityRequest + from sayari.project_entity import ( + CreateResolvedProjectEntityRequest, + ResolutionAttrSchema, + ) client = AsyncSayari( client_id="YOUR_CLIENT_ID", @@ -2274,11 +2285,14 @@ async def main() -> None: await client.project_entity.create_project_entity( project_id="YVB88Y", request=CreateResolvedProjectEntityRequest( - name=["VTB Bank"], - country=["RUS"], - address=["Moscow"], - identifier=["253400V1H6ART1UQ0N98"], + limit=10, profile="corporate", + attributes=ResolutionAttrSchema( + name=["VTB Bank"], + country=["RUS"], + address=["Moscow"], + identifier=["253400V1H6ART1UQ0N98"], + ), ), ) @@ -3171,7 +3185,7 @@ async def project_entity_exists( import asyncio from sayari import AsyncSayari - from sayari.project_entity import ResolutionAttributes + from sayari.project_entity import ResolutionAttributes, ResolutionAttrSchema client = AsyncSayari( client_id="YOUR_CLIENT_ID", @@ -3183,8 +3197,10 @@ async def main() -> None: await client.project_entity.project_entity_exists( project_id="YVB88Y", request=ResolutionAttributes( - name=["Example Company"], - country=["USA"], + attributes=ResolutionAttrSchema( + name=["Example Company"], + country=["USA"], + ), ), ) @@ -3302,7 +3318,7 @@ async def save_project_entity( import asyncio from sayari import AsyncSayari - from sayari.project_entity import ResolutionAttributes, SaveProjectEntityBody + from sayari.project_entity import ResolutionAttrSchema, SaveProjectEntityBody client = AsyncSayari( client_id="YOUR_CLIENT_ID", @@ -3315,7 +3331,7 @@ async def main() -> None: project_id="YVB88Y", request=SaveProjectEntityBody( entity_ids=["entity_id_1", "entity_id_2"], - attributes=ResolutionAttributes( + attributes=ResolutionAttrSchema( name=["Example Company"], country=["USA"], ), diff --git a/src/sayari/project_entity/types/__init__.py b/src/sayari/project_entity/types/__init__.py index 8e1bf22c..4c584bd4 100644 --- a/src/sayari/project_entity/types/__init__.py +++ b/src/sayari/project_entity/types/__init__.py @@ -44,6 +44,7 @@ from .project_risk_changes_response import ProjectRiskChangesResponse from .project_risk_changes_response_data import ProjectRiskChangesResponseData from .project_risk_factor import ProjectRiskFactor +from .resolution_attr_schema import ResolutionAttrSchema from .resolution_attributes import ResolutionAttributes from .resolution_profile import ResolutionProfile from .risk_categories_summary import RiskCategoriesSummary @@ -113,6 +114,7 @@ "ProjectRiskChangesResponse", "ProjectRiskChangesResponseData", "ProjectRiskFactor", + "ResolutionAttrSchema", "ResolutionAttributes", "ResolutionProfile", "RiskCategoriesSummary", diff --git a/src/sayari/project_entity/types/create_resolved_project_entity_request.py b/src/sayari/project_entity/types/create_resolved_project_entity_request.py index e0860fb6..ae365c07 100644 --- a/src/sayari/project_entity/types/create_resolved_project_entity_request.py +++ b/src/sayari/project_entity/types/create_resolved_project_entity_request.py @@ -1,10 +1,8 @@ # This file was auto-generated by Fern from our API Definition. from ...core.pydantic_utilities import UniversalBaseModel +from .resolution_attr_schema import ResolutionAttrSchema import typing -from .string_or_number import StringOrNumber -from ...generated_types.types.country import Country -from ...generated_types.types.entities import Entities from .resolution_profile import ResolutionProfile import pydantic from ...core.pydantic_utilities import IS_PYDANTIC_V2 @@ -14,26 +12,25 @@ class CreateResolvedProjectEntityRequest(UniversalBaseModel): """ Examples -------- - from sayari.project_entity import CreateResolvedProjectEntityRequest + from sayari.project_entity import ( + CreateResolvedProjectEntityRequest, + ResolutionAttrSchema, + ) CreateResolvedProjectEntityRequest( - name=["VTB Bank"], - country=["RUS"], - address=["Moscow"], - identifier=["253400V1H6ART1UQ0N98"], + limit=10, profile="corporate", + attributes=ResolutionAttrSchema( + name=["VTB Bank"], + country=["RUS"], + address=["Moscow"], + identifier=["253400V1H6ART1UQ0N98"], + ), ) """ - identifier: typing.Optional[typing.List[StringOrNumber]] = None - name: typing.Optional[typing.List[str]] = None - country: typing.Optional[typing.List[Country]] = None - address: typing.Optional[typing.List[str]] = None - date_of_birth: typing.Optional[typing.List[str]] = None - contact: typing.Optional[typing.List[StringOrNumber]] = None - type: typing.Optional[typing.List[Entities]] = None - city: typing.Optional[typing.List[str]] = None - state: typing.Optional[typing.List[str]] = None + attributes: ResolutionAttrSchema + limit: typing.Optional[int] = None profile: typing.Optional[ResolutionProfile] = None enable_llm_clean: typing.Optional[bool] = pydantic.Field(default=None) """ diff --git a/src/sayari/project_entity/types/project_entities_response.py b/src/sayari/project_entity/types/project_entities_response.py index aee894eb..ea7bc892 100644 --- a/src/sayari/project_entity/types/project_entities_response.py +++ b/src/sayari/project_entity/types/project_entities_response.py @@ -512,8 +512,8 @@ class ProjectEntitiesResponse(UniversalBaseModel): limit: int data: typing.List[ProjectEntityResponse] size: QualifiedCount - next_token: typing.Optional[str] = None - prev_token: typing.Optional[str] = None + next: typing.Optional[str] = None + prev: typing.Optional[str] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/sayari/project_entity/types/resolution_attr_schema.py b/src/sayari/project_entity/types/resolution_attr_schema.py new file mode 100644 index 00000000..af540b95 --- /dev/null +++ b/src/sayari/project_entity/types/resolution_attr_schema.py @@ -0,0 +1,34 @@ +# This file was auto-generated by Fern from our API Definition. + +from ...core.pydantic_utilities import UniversalBaseModel +import typing +from .string_or_number import StringOrNumber +import typing_extensions +from ...base_types.types.custom_field_value import CustomFieldValue +from ...core.serialization import FieldMetadata +from ...core.pydantic_utilities import IS_PYDANTIC_V2 +import pydantic + + +class ResolutionAttrSchema(UniversalBaseModel): + identifier: typing.Optional[typing.List[StringOrNumber]] = None + name: typing.Optional[typing.List[str]] = None + country: typing.Optional[typing.List[str]] = None + address: typing.Optional[typing.List[str]] = None + date_of_birth: typing.Optional[typing.List[str]] = None + contact: typing.Optional[typing.List[StringOrNumber]] = None + type: typing.Optional[typing.List[str]] = None + city: typing.Optional[typing.List[str]] = None + state: typing.Optional[typing.List[str]] = None + custom_field_name: typing_extensions.Annotated[ + typing.Optional[CustomFieldValue], FieldMetadata(alias="custom_{field name}") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/sayari/project_entity/types/resolution_attributes.py b/src/sayari/project_entity/types/resolution_attributes.py index d1a13030..bb5e9925 100644 --- a/src/sayari/project_entity/types/resolution_attributes.py +++ b/src/sayari/project_entity/types/resolution_attributes.py @@ -1,28 +1,14 @@ # This file was auto-generated by Fern from our API Definition. from ...core.pydantic_utilities import UniversalBaseModel -import typing -from .string_or_number import StringOrNumber -import typing_extensions -from ...base_types.types.custom_field_value import CustomFieldValue -from ...core.serialization import FieldMetadata +from .resolution_attr_schema import ResolutionAttrSchema from ...core.pydantic_utilities import IS_PYDANTIC_V2 +import typing import pydantic class ResolutionAttributes(UniversalBaseModel): - identifier: typing.Optional[typing.List[StringOrNumber]] = None - name: typing.Optional[typing.List[str]] = None - country: typing.Optional[typing.List[str]] = None - address: typing.Optional[typing.List[str]] = None - date_of_birth: typing.Optional[typing.List[str]] = None - contact: typing.Optional[typing.List[StringOrNumber]] = None - type: typing.Optional[typing.List[str]] = None - city: typing.Optional[typing.List[str]] = None - state: typing.Optional[typing.List[str]] = None - custom_field_name: typing_extensions.Annotated[ - typing.Optional[CustomFieldValue], FieldMetadata(alias="custom_{field name}") - ] = None + attributes: ResolutionAttrSchema if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/sayari/project_entity/types/save_project_entity_body.py b/src/sayari/project_entity/types/save_project_entity_body.py index d7381209..cb41d44e 100644 --- a/src/sayari/project_entity/types/save_project_entity_body.py +++ b/src/sayari/project_entity/types/save_project_entity_body.py @@ -2,7 +2,7 @@ from ...core.pydantic_utilities import UniversalBaseModel import typing -from .resolution_attributes import ResolutionAttributes +from .resolution_attr_schema import ResolutionAttrSchema from .resolution_profile import ResolutionProfile from ...core.pydantic_utilities import IS_PYDANTIC_V2 import pydantic @@ -10,7 +10,7 @@ class SaveProjectEntityBody(UniversalBaseModel): entity_ids: typing.List[str] - attributes: ResolutionAttributes + attributes: ResolutionAttrSchema profile: ResolutionProfile if IS_PYDANTIC_V2: diff --git a/src/sayari/project_entity_supply_chain_snapshots/types/project_entity_supply_chain_snapshot_by_id_response.py b/src/sayari/project_entity_supply_chain_snapshots/types/project_entity_supply_chain_snapshot_by_id_response.py index 15edb5de..4e58c58e 100644 --- a/src/sayari/project_entity_supply_chain_snapshots/types/project_entity_supply_chain_snapshot_by_id_response.py +++ b/src/sayari/project_entity_supply_chain_snapshots/types/project_entity_supply_chain_snapshot_by_id_response.py @@ -69,8 +69,8 @@ class ProjectEntitySupplyChainSnapshotByIdResponse(UniversalBaseModel): departure_countries=["AFG"], arrival_countries=["AFG", "AGO"], hs_code="0303", - min_date="51969-08-29T00:00:00+00:00", - max_date="52971-09-25T00:00:00+00:00", + min_date="2024-05-03T00:00:00+00:00", + max_date="2024-05-06T00:00:00+00:00", ), SupplyChainEdge( id="6GaxYn", @@ -79,8 +79,8 @@ class ProjectEntitySupplyChainSnapshotByIdResponse(UniversalBaseModel): departure_countries=["AFG"], arrival_countries=["AFG", "AGO"], hs_code="0304", - min_date="51969-08-29T00:00:00+00:00", - max_date="52971-09-25T00:00:00+00:00", + min_date="2024-05-03T00:00:00+00:00", + max_date="2024-05-06T00:00:00+00:00", ), SupplyChainEdge( id="V03eYM", @@ -89,8 +89,8 @@ class ProjectEntitySupplyChainSnapshotByIdResponse(UniversalBaseModel): departure_countries=["USA", "CHN"], arrival_countries=["GBR", "NLD"], hs_code="0303", - min_date="51969-08-29T00:00:00+00:00", - max_date="52971-09-25T00:00:00+00:00", + min_date="2024-05-03T00:00:00+00:00", + max_date="2024-05-06T00:00:00+00:00", ), ], ),