From be6502a6519559f00cc8b56491db4c75ec9ab002 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 9 Sep 2026 14:10:23 +0000 Subject: [PATCH 1/2] ## Python SDK Changes: * `textql.secrets.delete_api_access_key()`: **Added** * `textql.secrets.get_api_access_key()`: **Added** * `textql.secrets.list_api_access_keys()`: **Added** * `textql.secrets.list_api_providers()`: **Added** * `textql.secrets.test_api_access_key()`: **Added** * `textql.secrets.upsert_api_access_key()`: **Added** * `textql.agents.create()`: * `request.methodology` **Added** * `response.agent.methodology` **Added** * `textql.agents.duplicate()`: `response.agent.methodology` **Added** * `textql.agents.get_agent()`: `response.agent.methodology` **Added** * `textql.agents.list()`: `response.agents[].methodology` **Added** * `textql.agents.update()`: * `request.methodology` **Added** * `response.agent.methodology` **Added** --- .speakeasy/gen.lock | 286 ++- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 679 ++++++ .speakeasy/workflow.lock | 10 +- README-PYPI.md | 6 + README.md | 6 + RELEASES.md | 12 +- docs/models/revision.md | 17 + .../secretservicedeleteapiaccesskeyrequest.md | 10 + ...secretservicedeleteapiaccesskeyresponse.md | 17 + .../secretservicegetapiaccesskeyrequest.md | 10 + .../secretservicegetapiaccesskeyresponse.md | 17 + .../secretservicelistapiaccesskeysrequest.md | 10 + .../secretservicelistapiaccesskeysresponse.md | 17 + .../secretservicelistapiprovidersrequest.md | 10 + .../secretservicelistapiprovidersresponse.md | 17 + .../secretservicetestapiaccesskeyrequest.md | 10 + .../secretservicetestapiaccesskeyresponse.md | 17 + .../secretserviceupsertapiaccesskeyrequest.md | 10 + ...secretserviceupsertapiaccesskeyresponse.md | 17 + docs/models/textqlrpcpublicagentagent.md | 3 +- .../textqlrpcpublicagentcreateagentrequest.md | 3 +- .../textqlrpcpublicagentupdateagentrequest.md | 3 +- .../textqlrpcpublicsecretapiaccesskey.md | 31 + .../textqlrpcpublicsecretapiaccessref.md | 9 + .../textqlrpcpublicsecretapiprovider.md | 29 + .../textqlrpcpublicsecretbodycontenttype.md | 19 + ...pcpublicsecretdeleteapiaccesskeyrequest.md | 8 + ...cpublicsecretdeleteapiaccesskeyresponse.md | 7 + .../textqlrpcpublicsecretenvvarfield.md | 13 + ...qlrpcpublicsecretgetapiaccesskeyrequest.md | 8 + ...lrpcpublicsecretgetapiaccesskeyresponse.md | 8 + .../textqlrpcpublicsecrethttpbasicauth.md | 9 + ...rpcpublicsecretlistapiaccesskeysrequest.md | 7 + ...pcpublicsecretlistapiaccesskeysresponse.md | 8 + ...lrpcpublicsecretlistapiprovidersrequest.md | 7 + ...rpcpublicsecretlistapiprovidersresponse.md | 8 + ...lrpcpublicsecrettestapiaccesskeyrequest.md | 8 + ...rpcpublicsecrettestapiaccesskeyresponse.md | 10 + ...pcpublicsecretupsertapiaccesskeyrequest.md | 24 + ...cpublicsecretupsertapiaccesskeyresponse.md | 8 + docs/sdks/agents/README.md | 2 + docs/sdks/secrets/README.md | 269 +++ pyproject.toml | 2 +- src/textql_sdk/_version.py | 4 +- src/textql_sdk/agents.py | 12 + src/textql_sdk/models/__init__.py | 231 ++ .../secretservice_deleteapiaccesskeyop.py | 85 + .../models/secretservice_getapiaccesskeyop.py | 83 + .../secretservice_listapiaccesskeysop.py | 85 + .../secretservice_listapiprovidersop.py | 85 + .../secretservice_testapiaccesskeyop.py | 85 + .../secretservice_upsertapiaccesskeyop.py | 85 + .../models/textql_rpc_public_agent_agent.py | 5 + ...tql_rpc_public_agent_createagentrequest.py | 5 + ...tql_rpc_public_agent_updateagentrequest.py | 5 + .../textql_rpc_public_secret_apiaccesskey.py | 713 ++++++ .../textql_rpc_public_secret_apiaccessref.py | 49 + .../textql_rpc_public_secret_apiprovider.py | 153 ++ ...extql_rpc_public_secret_bodycontenttype.py | 15 + ...public_secret_deleteapiaccesskeyrequest.py | 31 + ...ublic_secret_deleteapiaccesskeyresponse.py | 13 + .../textql_rpc_public_secret_envvarfield.py | 55 + ...pc_public_secret_getapiaccesskeyrequest.py | 31 + ...c_public_secret_getapiaccesskeyresponse.py | 45 + .../textql_rpc_public_secret_httpbasicauth.py | 34 + ..._public_secret_listapiaccesskeysrequest.py | 13 + ...public_secret_listapiaccesskeysresponse.py | 45 + ...c_public_secret_listapiprovidersrequest.py | 13 + ..._public_secret_listapiprovidersresponse.py | 35 + ...c_public_secret_testapiaccesskeyrequest.py | 35 + ..._public_secret_testapiaccesskeyresponse.py | 44 + ...public_secret_upsertapiaccesskeyrequest.py | 308 +++ ...ublic_secret_upsertapiaccesskeyresponse.py | 45 + src/textql_sdk/secrets.py | 1929 +++++++++++++++-- uv.lock | 2 +- 76 files changed, 5839 insertions(+), 222 deletions(-) create mode 100644 docs/models/revision.md create mode 100644 docs/models/secretservicedeleteapiaccesskeyrequest.md create mode 100644 docs/models/secretservicedeleteapiaccesskeyresponse.md create mode 100644 docs/models/secretservicegetapiaccesskeyrequest.md create mode 100644 docs/models/secretservicegetapiaccesskeyresponse.md create mode 100644 docs/models/secretservicelistapiaccesskeysrequest.md create mode 100644 docs/models/secretservicelistapiaccesskeysresponse.md create mode 100644 docs/models/secretservicelistapiprovidersrequest.md create mode 100644 docs/models/secretservicelistapiprovidersresponse.md create mode 100644 docs/models/secretservicetestapiaccesskeyrequest.md create mode 100644 docs/models/secretservicetestapiaccesskeyresponse.md create mode 100644 docs/models/secretserviceupsertapiaccesskeyrequest.md create mode 100644 docs/models/secretserviceupsertapiaccesskeyresponse.md create mode 100644 docs/models/textqlrpcpublicsecretapiaccesskey.md create mode 100644 docs/models/textqlrpcpublicsecretapiaccessref.md create mode 100644 docs/models/textqlrpcpublicsecretapiprovider.md create mode 100644 docs/models/textqlrpcpublicsecretbodycontenttype.md create mode 100644 docs/models/textqlrpcpublicsecretdeleteapiaccesskeyrequest.md create mode 100644 docs/models/textqlrpcpublicsecretdeleteapiaccesskeyresponse.md create mode 100644 docs/models/textqlrpcpublicsecretenvvarfield.md create mode 100644 docs/models/textqlrpcpublicsecretgetapiaccesskeyrequest.md create mode 100644 docs/models/textqlrpcpublicsecretgetapiaccesskeyresponse.md create mode 100644 docs/models/textqlrpcpublicsecrethttpbasicauth.md create mode 100644 docs/models/textqlrpcpublicsecretlistapiaccesskeysrequest.md create mode 100644 docs/models/textqlrpcpublicsecretlistapiaccesskeysresponse.md create mode 100644 docs/models/textqlrpcpublicsecretlistapiprovidersrequest.md create mode 100644 docs/models/textqlrpcpublicsecretlistapiprovidersresponse.md create mode 100644 docs/models/textqlrpcpublicsecrettestapiaccesskeyrequest.md create mode 100644 docs/models/textqlrpcpublicsecrettestapiaccesskeyresponse.md create mode 100644 docs/models/textqlrpcpublicsecretupsertapiaccesskeyrequest.md create mode 100644 docs/models/textqlrpcpublicsecretupsertapiaccesskeyresponse.md create mode 100644 src/textql_sdk/models/secretservice_deleteapiaccesskeyop.py create mode 100644 src/textql_sdk/models/secretservice_getapiaccesskeyop.py create mode 100644 src/textql_sdk/models/secretservice_listapiaccesskeysop.py create mode 100644 src/textql_sdk/models/secretservice_listapiprovidersop.py create mode 100644 src/textql_sdk/models/secretservice_testapiaccesskeyop.py create mode 100644 src/textql_sdk/models/secretservice_upsertapiaccesskeyop.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_apiaccesskey.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_apiaccessref.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_apiprovider.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_bodycontenttype.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_deleteapiaccesskeyrequest.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_deleteapiaccesskeyresponse.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_envvarfield.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_getapiaccesskeyrequest.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_getapiaccesskeyresponse.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_httpbasicauth.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_listapiaccesskeysrequest.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_listapiaccesskeysresponse.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_listapiprovidersrequest.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_listapiprovidersresponse.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_testapiaccesskeyrequest.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_testapiaccesskeyresponse.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_upsertapiaccesskeyrequest.py create mode 100644 src/textql_sdk/models/textql_rpc_public_secret_upsertapiaccesskeyresponse.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0dd12bfc..29c2bb97 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 140336b3-3873-4a19-9c47-b02749d85f10 management: - docChecksum: 9b944d527b82ee4eb71f0d557d235fa1 + docChecksum: 8a10272268c2aba91795f0873d5230d5 docVersion: 1.0.0 speakeasyVersion: 1.796.4 generationVersion: 2.935.1 - releaseVersion: 1.1.22 - configChecksum: 96e666215398b81aa6ede8c2151d9663 + releaseVersion: 1.1.23 + configChecksum: 061c8d317a4df8aa78258fb1ff474e05 repoURL: https://github.com/TextQLLabs/textql-python-v3.git installationURL: https://github.com/TextQLLabs/textql-python-v3.git published: true persistentEdits: - generation_id: 91a80c0a-4c65-4eba-90b9-25e01b4396af - pristine_commit_hash: 3199a48224faa67012f44af585c4ddbc2a2f8e52 - pristine_tree_hash: 756cda2e704298a2dc775a1774ad38c4ea2bbdde + generation_id: 3bc754c7-9309-4f3c-bd4f-0736aaff8b37 + pristine_commit_hash: 9db30236528fa7632fc8e1c5cf7222fbed2238a8 + pristine_tree_hash: b42fe672693bda19a9bff91dd9e2090d1a1541be features: python: additionalDependencies: 1.1.0 @@ -3429,6 +3429,10 @@ trackedFiles: id: 8c432156710e last_write_checksum: sha1:1be10737223ff6d8f54a7ed12bcb2f5823424e6b pristine_git_object: 4ddb925966852f685eed311130d8155fc83cd830 + docs/models/revision.md: + id: d26c214d5030 + last_write_checksum: sha1:fbf3ced6b547eccba5a2cb068815504d3a2688b4 + pristine_git_object: 651bf4c3a571638af893aa76e834eb86efe0e31e docs/models/rowcount.md: id: 15fa4f3ea222 last_write_checksum: sha1:ad5fbb9060ca7cb4a5becee32ba273824198ecc2 @@ -3677,6 +3681,14 @@ trackedFiles: id: d50449d367c0 last_write_checksum: sha1:459b2c7ddb78936a0b24fb9f2f67c050acfd7e91 pristine_git_object: f253f7193d7d4f6ac65afc9bd2d68b9cceeb1c0d + docs/models/secretservicedeleteapiaccesskeyrequest.md: + id: 0a402c6d8bef + last_write_checksum: sha1:aa666a2a37f5ff93517de3f1189db51181fe7d6e + pristine_git_object: c2fbca20ecaa7571540b1b194bf2df3590b76039 + docs/models/secretservicedeleteapiaccesskeyresponse.md: + id: cb287639b8eb + last_write_checksum: sha1:39850d9de6192eb5ef71ae5d99bd5489af984ea2 + pristine_git_object: eee9eb9d13a519653b476f15d430f45851aca6ba docs/models/secretservicedeletesecretrequest.md: id: 239922be754f last_write_checksum: sha1:9df9b230d8e39486b63f1f31b2349cee5745e9b3 @@ -3685,6 +3697,14 @@ trackedFiles: id: db61496fa864 last_write_checksum: sha1:d0def6a7c089e9557383497c0c2fe551b58a8aba pristine_git_object: a5040c2929c7d933ab79c2d969f0dba1cb7d1902 + docs/models/secretservicegetapiaccesskeyrequest.md: + id: da575507af2b + last_write_checksum: sha1:b621bfb1501287ca3e1132d4f1db8606ab406fde + pristine_git_object: 6c4ade49215f8ad4f1d77b679583d6aeea474b54 + docs/models/secretservicegetapiaccesskeyresponse.md: + id: 55a35744cac8 + last_write_checksum: sha1:ee9bbd0e3b3b1f7b432314ce0b4e93d901e314c3 + pristine_git_object: b39e6ce42ec5857456a7e7cfd5c69178a34fe89f docs/models/secretservicegetmemberswithsecretsrequest.md: id: eeeb7c8b8470 last_write_checksum: sha1:835b844e0e17a829a7d94bab8b53aa215578fc60 @@ -3693,6 +3713,22 @@ trackedFiles: id: 154dc1e009e9 last_write_checksum: sha1:34305ae664230626ebc9669d4e52fe4818c2ddfe pristine_git_object: 3a456024047fab46186f0478eb3ccd02d5c8332f + docs/models/secretservicelistapiaccesskeysrequest.md: + id: f32cb946385d + last_write_checksum: sha1:dcd6e0c610b05a9f6e32eca1b4af55ce2f0ed807 + pristine_git_object: 7b01cb7a8b9bee4d9cdfa50a6673b1d43b3e465e + docs/models/secretservicelistapiaccesskeysresponse.md: + id: 5f0275762d55 + last_write_checksum: sha1:da8996473718fd605e7d717df0a059c1a050eda8 + pristine_git_object: b9a4cfbf504effb5eb484d6f188e336bc6380083 + docs/models/secretservicelistapiprovidersrequest.md: + id: 9959b8893af5 + last_write_checksum: sha1:2e403792fc43768a0ce415b49e9d668a7d7c2300 + pristine_git_object: 59460e879cd0cdf084f40c5add8e965968e907d2 + docs/models/secretservicelistapiprovidersresponse.md: + id: 1556566df8fa + last_write_checksum: sha1:5da6b01f79a28856ab7868404070860e8b62a2e4 + pristine_git_object: c2fe68ddf28c2c6e6b3f06ac26515b3236fab7c8 docs/models/secretservicelistsecretsrequest.md: id: 4aa3d4483d5e last_write_checksum: sha1:a9141ad2a8c1855bca1a87a1f17f8e55e1c244d3 @@ -3709,6 +3745,14 @@ trackedFiles: id: fdf963998ff0 last_write_checksum: sha1:5433f5b9ba193c4ca9735ce194a41e1ff945c4e2 pristine_git_object: 6b65af7930815345e37b935c0826cc6eaf523f1a + docs/models/secretservicetestapiaccesskeyrequest.md: + id: ddef88d9a66f + last_write_checksum: sha1:c3b547589db990ec8bb7dd7db0e94b486e67b42d + pristine_git_object: c302e6643a9d0dd0c46e1d0d130fd91fb53da455 + docs/models/secretservicetestapiaccesskeyresponse.md: + id: b7ec4b950ac7 + last_write_checksum: sha1:83396059f545994c695d805d6f8456e5243524a3 + pristine_git_object: c0dff20001d2a1ec506b007dd6d8590c871f4b71 docs/models/secretserviceupdatesecretrequest.md: id: 16a831522389 last_write_checksum: sha1:879a1168317dcb72411ad0c6e640688bb407d2b7 @@ -3717,6 +3761,14 @@ trackedFiles: id: d89aed9b6add last_write_checksum: sha1:e03e79b2b671af37373d581f4dabdc53742d7b66 pristine_git_object: 58b4280e8352efda775d766086d55c4f067cc604 + docs/models/secretserviceupsertapiaccesskeyrequest.md: + id: 4522d9228bb8 + last_write_checksum: sha1:f2754f81fc0aa77762232315d5b1de331accfae4 + pristine_git_object: c160edb344f6123e749d25fbb5290f06d96444b7 + docs/models/secretserviceupsertapiaccesskeyresponse.md: + id: 74e556d36514 + last_write_checksum: sha1:a297ca5e3a7bab089c01c711cf92b5bbdd26e41b + pristine_git_object: 598e7f7fa8b31a1d8862271d6a12bd41d189afe3 docs/models/security.md: id: 452e4d4eb67a last_write_checksum: sha1:45b7b8881a6560a468153662d61b99605a492edf @@ -4151,8 +4203,8 @@ trackedFiles: pristine_git_object: 7f08367abd641922ed3c337c2589ec0fbbb728ab docs/models/textqlrpcpublicagentagent.md: id: 709ff23cc507 - last_write_checksum: sha1:d58d88c66fc0536357daa04c2bc7bbab4ee02ac2 - pristine_git_object: 5ef8f21e3b6d3ebf0d32eb51afaa8b0f4d108d2e + last_write_checksum: sha1:5bc8a52626f7baa6418131740e8904f706dfc6d7 + pristine_git_object: 4bb6a811d7babbba83e6729c4a88862f2318ded2 docs/models/textqlrpcpublicagentagentdbcolumn.md: id: 8fd7ac4730b6 last_write_checksum: sha1:307fcea5e4a7ed9f8d032c2005e7fe780d1f3521 @@ -4199,8 +4251,8 @@ trackedFiles: pristine_git_object: 160f0b73ff6b1f5cfaf608efd8cb9ffe9a90c0e6 docs/models/textqlrpcpublicagentcreateagentrequest.md: id: e9889c577694 - last_write_checksum: sha1:02ca1c436b3d463c3d96a0fe75b9b909408f08a8 - pristine_git_object: 9cf9c3483e1e4de5e6d7b8d56dcb8aefee7ae0f7 + last_write_checksum: sha1:083e848dc9001fc3fecc44a1b247eb4836b2c054 + pristine_git_object: 203f43a86e3deed5b24fb94eca2e06edd691ae83 docs/models/textqlrpcpublicagentcreateagentresponse.md: id: a220cc9501b4 last_write_checksum: sha1:cc89eddaadefc7834ed9315cf8a885298637dce0 @@ -4291,8 +4343,8 @@ trackedFiles: pristine_git_object: d3483854869e2da5d7e5dc870282dbf302912baf docs/models/textqlrpcpublicagentupdateagentrequest.md: id: 8e0cbaf4faee - last_write_checksum: sha1:6af470c221b6f8e98c62bbd5c09c27836a41c720 - pristine_git_object: 1b6d5ad2c80ebe969ebbb3c7331ef963d593cadd + last_write_checksum: sha1:91f01b276ddb4f02e7d0ee5b21589f4f97d93073 + pristine_git_object: 589ed3cdda2ea63921b9d76c6fbbe276dfe9cc9e docs/models/textqlrpcpublicagentupdateagentresponse.md: id: 46356572bfb8 last_write_checksum: sha1:79421ccfbc70ff5b7bbb854b126f984181179782 @@ -9321,6 +9373,30 @@ trackedFiles: id: 9417c0979b20 last_write_checksum: sha1:db8df6fe9228fcfe2716c10ce14fa117a58562a4 pristine_git_object: 110a93263acdd330d71c8d62a2759ff98e014ee4 + docs/models/textqlrpcpublicsecretapiaccesskey.md: + id: 85be35844248 + last_write_checksum: sha1:d627bb8c69c66606f60249bf61bd8577d64ee48b + pristine_git_object: 488f9dee3e7872cb980e2da68edc9b62ab8a0911 + docs/models/textqlrpcpublicsecretapiaccessref.md: + id: 10a57ad6b222 + last_write_checksum: sha1:6b2195dfa5e01c641a3515dec4a855470839d97c + pristine_git_object: 098f23f94f411c73c143d6f7edc95279481454d4 + docs/models/textqlrpcpublicsecretapiprovider.md: + id: 0709fb42768c + last_write_checksum: sha1:e1383cfafb3bbfb43b0f6852b7696663f6601092 + pristine_git_object: 7484a0688052ca50de4c7ac8f25f591c5783959d + docs/models/textqlrpcpublicsecretbodycontenttype.md: + id: 86425ec7cc6e + last_write_checksum: sha1:c6056deb41e7214835a4bf6d61b112d0297868ad + pristine_git_object: 540eac1940a6c8d51acd7f9430d9b368ec5873da + docs/models/textqlrpcpublicsecretdeleteapiaccesskeyrequest.md: + id: 9f19f31a96dd + last_write_checksum: sha1:441f7dff02d7734d804019345d74221d1bb2bd16 + pristine_git_object: 8e83bff13d0294b8ad03bc20e7e202b128458c1a + docs/models/textqlrpcpublicsecretdeleteapiaccesskeyresponse.md: + id: c08f59983aab + last_write_checksum: sha1:bfe5f4cc8ce89be12d29d260b1f4e1bf13009ba8 + pristine_git_object: b8ff06a31e5911cf0c9f4e6c4e95ea90346fed2b docs/models/textqlrpcpublicsecretdeletesecretrequest.md: id: 3b457a33ad05 last_write_checksum: sha1:cb0301ecf9f82c40a89e87ee7680e5b93deadcb8 @@ -9329,6 +9405,18 @@ trackedFiles: id: 69b8d26f422f last_write_checksum: sha1:ebc9cc9a5c8c72fbfd5699249686ba4ed0d181f8 pristine_git_object: de34574eb4cd02cf8237a05b87b5b6183f536d9e + docs/models/textqlrpcpublicsecretenvvarfield.md: + id: 0da9d69cbcb2 + last_write_checksum: sha1:5b3bddc579c4571a697f7e6b9cd04e0eb71ed477 + pristine_git_object: d400746ea4463421ac6fa5907642c1f8b00b6aa5 + docs/models/textqlrpcpublicsecretgetapiaccesskeyrequest.md: + id: b6885c52ff1a + last_write_checksum: sha1:69f887e775a4a16e20111e57a403b0ff4540071d + pristine_git_object: 7702378ef75ee61b1beeac4843536d0d3463b25c + docs/models/textqlrpcpublicsecretgetapiaccesskeyresponse.md: + id: "158421418368" + last_write_checksum: sha1:5e8cd768ede49bd4f1658bf25e2fd3d6167b250b + pristine_git_object: 7579982c69846a25b9f5b5b7f2f7f17825754c8e docs/models/textqlrpcpublicsecretgetmemberswithsecretsrequest.md: id: 36fbbc9a770e last_write_checksum: sha1:059adf4a082ceb5d947fa1f4d5d808e33f454eeb @@ -9337,6 +9425,26 @@ trackedFiles: id: 1d9283a75a27 last_write_checksum: sha1:d1b6a11c9915c1535f9a79787b89d618d542bfd2 pristine_git_object: ed6269faecfeaeaba5e42887aff5eb0bbc3e73a3 + docs/models/textqlrpcpublicsecrethttpbasicauth.md: + id: 0192d521122e + last_write_checksum: sha1:51cefd3e6da80bc0f9d639dcd64e0b891e5233fc + pristine_git_object: e62ce2fe53e08c66d15813c13dbe33eec7fa32b9 + docs/models/textqlrpcpublicsecretlistapiaccesskeysrequest.md: + id: 5bb6578f6b32 + last_write_checksum: sha1:a5bef8b0958c102e87161b0884880d8ac7b7c654 + pristine_git_object: 88fb1d5e3a876bccaee85934dcac8716ffc3da7c + docs/models/textqlrpcpublicsecretlistapiaccesskeysresponse.md: + id: 854b29e35eab + last_write_checksum: sha1:139bd6ed91298ce47ee4966e720cf4636b410ec8 + pristine_git_object: 93d530fefe633522190cf3c755f433d403a4d13c + docs/models/textqlrpcpublicsecretlistapiprovidersrequest.md: + id: e52bc84261ca + last_write_checksum: sha1:490c1d6f84997836e8fafb27ddcee5a8a3b29a88 + pristine_git_object: 54ccba38343f1f0c0f39b989c63d13dd509c0f0b + docs/models/textqlrpcpublicsecretlistapiprovidersresponse.md: + id: 5679f0ccd0b6 + last_write_checksum: sha1:fc19d555c57b80a3941e78f86b4180129445c64a + pristine_git_object: 32dc45b5a42e4df854c66b27618fd14b764fa4c6 docs/models/textqlrpcpublicsecretlistsecretsrequest.md: id: 0b6b4ff6a758 last_write_checksum: sha1:71e0afcb516eb772ed7a6562822ddb9a1bcbc4c0 @@ -9357,6 +9465,14 @@ trackedFiles: id: 91e9748e0eb0 last_write_checksum: sha1:36ad34831306cb71a66b7397e5e685ef71247252 pristine_git_object: 34be2fb8e13263e44ab66bce69faff317fb17874 + docs/models/textqlrpcpublicsecrettestapiaccesskeyrequest.md: + id: 012256c22207 + last_write_checksum: sha1:18fedd24de9a2ce1d2af4a323070a5a973226a98 + pristine_git_object: 9c3d487b56488abf9bfa907902620512228917e4 + docs/models/textqlrpcpublicsecrettestapiaccesskeyresponse.md: + id: 0b6386d640bd + last_write_checksum: sha1:1dc24ce004a4de8470c4be44ceec68eabd468394 + pristine_git_object: d93e563c6e5d6ffa9a9f8de6ba9c43fdbf64e12a docs/models/textqlrpcpublicsecretupdatesecretrequest.md: id: 9eb6ea36801f last_write_checksum: sha1:26dc8f644f359cfdf320609536f78cec7e3b454a @@ -9365,6 +9481,14 @@ trackedFiles: id: 4dd97a99bff3 last_write_checksum: sha1:35aaa4a4d9ad8d256b1f69fb26e5a5d1f90a9e6a pristine_git_object: 40ba09fb2fff0c8b5c652aadc4818dd8ac7d8c41 + docs/models/textqlrpcpublicsecretupsertapiaccesskeyrequest.md: + id: 9dae802c2383 + last_write_checksum: sha1:470b19714e2f0692c346f249e8d69746c445d031 + pristine_git_object: aa89a2d6724b140a307cc353ac6c7b1347c270a9 + docs/models/textqlrpcpublicsecretupsertapiaccesskeyresponse.md: + id: 65a66559d522 + last_write_checksum: sha1:9fcc56477b9864fae2cb9491d224aebe085694a8 + pristine_git_object: c56244f88080131e03a3492f2c9c1c1d546c6f1e docs/models/textqlrpcpublicsettingscheckmemberstatusrequest.md: id: 2cf5deb3999a last_write_checksum: sha1:0d5daed595013bc4fd7eff777536ffecb2baa3c3 @@ -9743,8 +9867,8 @@ trackedFiles: pristine_git_object: d0b3df784263388e27afa067276a5a89b639774b docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:8c24ba39ca955156781fc50ec5e8ba1e550a5f0b - pristine_git_object: a7efc4adf3b0e2f90daeddc8c1c3261b0e94d35c + last_write_checksum: sha1:7249306c22064de809402bcb0262cd286fb3275a + pristine_git_object: f18994bcf0b9a80ffe66d510fe0c036c9c7394a2 docs/sdks/apps/README.md: id: 9c9c1a6527a3 last_write_checksum: sha1:348ab63fd3c83230affc0471d8f50e081feda1e4 @@ -9815,8 +9939,8 @@ trackedFiles: pristine_git_object: 3affcf5f2cb01ff296fa2c745e4143393e98db7a docs/sdks/secrets/README.md: id: 856a082980a1 - last_write_checksum: sha1:673d2d43097087cc6cec5566f98ccc62f5604181 - pristine_git_object: 90581a6beb735c0db52edd8a0d9534f1a9ac8c76 + last_write_checksum: sha1:44d11403e38198e82295fbe6121f234d63655959 + pristine_git_object: 9a9623fe14b48268acc9074b3d253d7d2c402f4e docs/sdks/settings/README.md: id: ffd4dbcfc0ce last_write_checksum: sha1:c5a0111f04b3bee442929d5d8493dce5397e49e6 @@ -9843,8 +9967,8 @@ trackedFiles: pristine_git_object: d45dd3dfed8f57c8dde47774f645a4eb9575ba90 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:5764d5459f736a904b0bf70d72afebc5cc560957 - pristine_git_object: 60cfa7212740bea1dfbac68e1133b75fa0780834 + last_write_checksum: sha1:901c0da0c5eb5762fcbc6e117726fee66a842c3e + pristine_git_object: d66bb38dfc4acc67374b9885562c10dad5c3f4cc scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:d5a0f1ce09f7b890340fdb6f26345fce7dc9a70d @@ -9871,12 +9995,12 @@ trackedFiles: pristine_git_object: a9e63d694ae036ae9a43efc262dd124a2e1062e7 src/textql_sdk/_version.py: id: "226928447e58" - last_write_checksum: sha1:5c6344f76c89b26f77ec8747c1f0a171178d6db0 - pristine_git_object: b0925db7073da72389f3d008e57a4b0da9866d87 + last_write_checksum: sha1:a2d1c98f58545badc524f36f3d4eb61c4f0b8a5d + pristine_git_object: 5a7c952ecdf6f53df30ae86e83cd349775ca3097 src/textql_sdk/agents.py: id: 4ff492529583 - last_write_checksum: sha1:865c3c9444ec0da3e0805e7079a5004099ac0dc8 - pristine_git_object: 779a86fc29acb4fe17140cdeea38ddfabceb2b52 + last_write_checksum: sha1:94f170d130c92cd3e2c61c2993c2e829056f3df7 + pristine_git_object: 877d317ac296512ff0088473625bef0a5807a56c src/textql_sdk/apps.py: id: c38298d579a3 last_write_checksum: sha1:3d87df1c6d4fbdf964016273bfd04167012e4dd8 @@ -9939,8 +10063,8 @@ trackedFiles: pristine_git_object: f5227a747725a68f1c9b6ebffe42ac0d2436f77f src/textql_sdk/models/__init__.py: id: c8cef98ef3e7 - last_write_checksum: sha1:849330bdcbe6dd1c8d49fd6f8929af36b11a2bd2 - pristine_git_object: 1cf762133349efc297cd1895a41fabfc5f7c0657 + last_write_checksum: sha1:a86b5f55fd0bfcb971795d3391650458987324f8 + pristine_git_object: f4c9f700cab8879386bf0834beb07ea1bdb3d560 src/textql_sdk/models/agentservice_createagentop.py: id: c31d4c4b52ae last_write_checksum: sha1:eb9ab95a772110d0f587963a73ff3ab4a6f11859 @@ -11429,14 +11553,30 @@ trackedFiles: id: c89bb9983a31 last_write_checksum: sha1:1f98b909f97a20b3b4a2dd7980f8a0f7172d262f pristine_git_object: 4c2a4a5a6b01735c1f47247f9ed31b8a59ed78c2 + src/textql_sdk/models/secretservice_deleteapiaccesskeyop.py: + id: 54a1b00cb5de + last_write_checksum: sha1:45b74b82445568b12b8fe0663278caee01ef7996 + pristine_git_object: da7d26e4df3edb2302015f40a6465e9aba8ed742 src/textql_sdk/models/secretservice_deletesecretop.py: id: 25b105649c24 last_write_checksum: sha1:2801f78430c632d33b0e8130b8212e3796fc8dc7 pristine_git_object: 1106ff251d9de29c6eac83f6b3358419d8120e47 + src/textql_sdk/models/secretservice_getapiaccesskeyop.py: + id: 7076bcfb92fa + last_write_checksum: sha1:6685f39130a13873d1fd8e5746dbd65821cee676 + pristine_git_object: a5e421b3e9eb0a5b715322b5d8665d5d3674b10c src/textql_sdk/models/secretservice_getmemberswithsecretsop.py: id: 510b6c7eef62 last_write_checksum: sha1:1a4a335ca3655d30da938c48e3d6180ecbe291f9 pristine_git_object: 394bd39656e154822081dad99431aa3aba48bd36 + src/textql_sdk/models/secretservice_listapiaccesskeysop.py: + id: 25157a874d82 + last_write_checksum: sha1:128c7a1ed7604b0fec93522110ebeb9ba3f51435 + pristine_git_object: b514638400188bea2847cb301a8800fa7264384b + src/textql_sdk/models/secretservice_listapiprovidersop.py: + id: 12b85f819fe1 + last_write_checksum: sha1:cb7a4af5cd9c15441cd52644226b5c4a438e65fd + pristine_git_object: 6c42e61d277789273dd6949a0b566e46ee457f82 src/textql_sdk/models/secretservice_listsecretsop.py: id: a58247b8cad7 last_write_checksum: sha1:9f561881640ba1ab73b38eaac88590bb08fdd283 @@ -11445,10 +11585,18 @@ trackedFiles: id: d8326b5d6ef2 last_write_checksum: sha1:c7ac223ef42a550ea1f8aae5eedb6887b0fbfd40 pristine_git_object: b28ecbb933b293deaba74aa4be19c8862fe06b48 + src/textql_sdk/models/secretservice_testapiaccesskeyop.py: + id: 68e3089309a9 + last_write_checksum: sha1:44ec327a657f9cc1f2e63b412dfff8f61400d2d0 + pristine_git_object: 15c5217ba65e13d1f16deaca48afacb59a86c8a4 src/textql_sdk/models/secretservice_updatesecretop.py: id: fbfbe6f66174 last_write_checksum: sha1:10e3f2227b4340d84621cce1b68ea0c7af7d1332 pristine_git_object: cbca968158f5492b32af2426cfb90506c63773d4 + src/textql_sdk/models/secretservice_upsertapiaccesskeyop.py: + id: 83cca4316831 + last_write_checksum: sha1:e53ba0bdb7df70c67713cba0b92a74aebd9e97a2 + pristine_git_object: 73602f48c0370c66fc8688c404002ccf497f65ba src/textql_sdk/models/security.py: id: 8db7dfdb590a last_write_checksum: sha1:44a6422b903a601842416473464199864c6bf76a @@ -11631,8 +11779,8 @@ trackedFiles: pristine_git_object: 71546889b598a4a95221695029506783395ec45f src/textql_sdk/models/textql_rpc_public_agent_agent.py: id: ff673475ddd1 - last_write_checksum: sha1:273c06d93f1f03e34be000b61d479e94846a31f3 - pristine_git_object: e3b7844419cc3b0af34c0e4d527c3d0d06471521 + last_write_checksum: sha1:4341c542c65f22e061141da18e9bc467ac750438 + pristine_git_object: fae3e1778466c67a264b8a6aac8aca3c19293670 src/textql_sdk/models/textql_rpc_public_agent_agentdbcolumn.py: id: c7ce4265b969 last_write_checksum: sha1:b384f9dbf5e70048869ce7acfdc764cc3f6502e3 @@ -11671,8 +11819,8 @@ trackedFiles: pristine_git_object: d15c8526f7c18c5496451dced4d5b6c85af67e40 src/textql_sdk/models/textql_rpc_public_agent_createagentrequest.py: id: 0c148122f4e2 - last_write_checksum: sha1:0bb72d38c177637f244412cf47e939d48081517f - pristine_git_object: becd861d8045d4a644e9a9593b19d18294830f7c + last_write_checksum: sha1:6cbc2d94f28207ef75da421bb7e8de1fa48e5ead + pristine_git_object: 4515f36b0b115bd4a3009384bb0c7ecb04f7176b src/textql_sdk/models/textql_rpc_public_agent_createagentresponse.py: id: 30a27d6d36cd last_write_checksum: sha1:57e6f01cdfa68577145d58fc4930fb7861fd4a8a @@ -11759,8 +11907,8 @@ trackedFiles: pristine_git_object: 48cc8a717b6f2183991e6ad59c0cf630504acbcb src/textql_sdk/models/textql_rpc_public_agent_updateagentrequest.py: id: b705601baef3 - last_write_checksum: sha1:ecf2dd62245d157e8c435c46fbafe9d94c4e9c92 - pristine_git_object: f6bf9199fb242b709bad65c0633949fbb12f7423 + last_write_checksum: sha1:22bd4d06bd8c83f9c2c1515bb7925297bd5eafdf + pristine_git_object: ca4400f866e2e27d5592aca085c949ff2733c7e8 src/textql_sdk/models/textql_rpc_public_agent_updateagentresponse.py: id: c3f1421cde74 last_write_checksum: sha1:92ad23b07b71e68eaf454fe63c0973ded50bef2a @@ -16261,6 +16409,30 @@ trackedFiles: id: 3f8bd5a38b42 last_write_checksum: sha1:2402200b62ae5af3e304ecfbb0ea3140d7e8cdb6 pristine_git_object: 8a9ae199cd535754469b3ef444b5661f5d81009f + src/textql_sdk/models/textql_rpc_public_secret_apiaccesskey.py: + id: 15ce406055e9 + last_write_checksum: sha1:ccce282b9bd7bdcf0417e2ed5e4cbca6bc44dcb4 + pristine_git_object: b2293202c711a933f908ee55a24cb89805793c05 + src/textql_sdk/models/textql_rpc_public_secret_apiaccessref.py: + id: 12b5112c730f + last_write_checksum: sha1:a05e97aa39b5e9a5360618e3c1a163158022c6ce + pristine_git_object: b4b94fb3686df772307b507ff44ff9aab44a5e91 + src/textql_sdk/models/textql_rpc_public_secret_apiprovider.py: + id: c3095e4ddcf2 + last_write_checksum: sha1:87926beb7bd70f4662505750f6a9e4731b6a5b9e + pristine_git_object: a35817f3f9b0776e181d8ebe2d03f529e8d5169f + src/textql_sdk/models/textql_rpc_public_secret_bodycontenttype.py: + id: 800c333084c2 + last_write_checksum: sha1:2c1b1d1854232d712256848f6ce794d9b6b2a761 + pristine_git_object: 44ac8e84faf9c390991005e61c52d6f1c471be8f + src/textql_sdk/models/textql_rpc_public_secret_deleteapiaccesskeyrequest.py: + id: bbaff6a24005 + last_write_checksum: sha1:035f685a0067715c89324ffc51a3d3cd33672dd5 + pristine_git_object: 32c014f735464c0c7e469a2cec9c59068ec25d51 + src/textql_sdk/models/textql_rpc_public_secret_deleteapiaccesskeyresponse.py: + id: 22748f7db3e7 + last_write_checksum: sha1:b77f205c4b3bb59c2df9ff9da9c76b20f1aaf76e + pristine_git_object: 8c40740c15e07ef176cbd75bb559dd7c6a0a9269 src/textql_sdk/models/textql_rpc_public_secret_deletesecretrequest.py: id: 9c5e45d8761a last_write_checksum: sha1:71e98f0899a99f0d8b060da6f99f943d8bcb408a @@ -16269,6 +16441,18 @@ trackedFiles: id: b0caa981a04c last_write_checksum: sha1:00dd7068c92e0aeccf2469cf4cb86dfd0ea75040 pristine_git_object: a27f82fc9a583dd0c06e71b012961561159b2d1e + src/textql_sdk/models/textql_rpc_public_secret_envvarfield.py: + id: a86353027d08 + last_write_checksum: sha1:fa9b20702766923b22fc85ea8897804c42395bd2 + pristine_git_object: e067a530cba033afed2641f4d4112a6f3ce95297 + src/textql_sdk/models/textql_rpc_public_secret_getapiaccesskeyrequest.py: + id: 775d6c29ebc7 + last_write_checksum: sha1:8069ea6698911b009ac21b3360c0ba257a89a83b + pristine_git_object: 8cd9c281f1e01eb1c4b543948740107a82529e73 + src/textql_sdk/models/textql_rpc_public_secret_getapiaccesskeyresponse.py: + id: c92d4a1553de + last_write_checksum: sha1:bcc79f13a5e13ce6c9bb19a8b12cba59258ea1c8 + pristine_git_object: 46a139fa8c6300a2424cead72ed4ce19ec8f129e src/textql_sdk/models/textql_rpc_public_secret_getmemberswithsecretsrequest.py: id: a71c9271078e last_write_checksum: sha1:fa9e357c7eef10fe25e53e5cc298c5d21963ae73 @@ -16277,6 +16461,26 @@ trackedFiles: id: b173844b827e last_write_checksum: sha1:731d59cc3681c9352be1bb2aeecbed54d69c6230 pristine_git_object: 6ddfb0fe5841f8fe71b4509eda4187561fcd5c21 + src/textql_sdk/models/textql_rpc_public_secret_httpbasicauth.py: + id: 4becbb630950 + last_write_checksum: sha1:2f79e5271c4a298feb669f6b737d3ea43c958b55 + pristine_git_object: abb8058db7665233328e38e0212f22b6be48b717 + src/textql_sdk/models/textql_rpc_public_secret_listapiaccesskeysrequest.py: + id: 89e53d0baa3a + last_write_checksum: sha1:24f6d4fda0464b52cf050c3c56ee1f6af88f1a99 + pristine_git_object: 33f417c5930f8d612017ff679e3d9712b5a4586f + src/textql_sdk/models/textql_rpc_public_secret_listapiaccesskeysresponse.py: + id: 9c80068b0564 + last_write_checksum: sha1:037a99076c043c0aad6cebf41839dcaaf8355dc1 + pristine_git_object: 3a415f1667816f7520f24426aa54d27eb0f1922e + src/textql_sdk/models/textql_rpc_public_secret_listapiprovidersrequest.py: + id: 8d296fd4ec36 + last_write_checksum: sha1:b47e72c486ea9581556694499d05e9f1d71a93fe + pristine_git_object: ffeda69a65ad79b10c571a132b04ec6849aa062b + src/textql_sdk/models/textql_rpc_public_secret_listapiprovidersresponse.py: + id: 10e0028845e6 + last_write_checksum: sha1:8a131e5ec91b4cb2c259258e7e25042fc3d4283e + pristine_git_object: 92265ea1de37edde1be228ce7165991de1b6b3a2 src/textql_sdk/models/textql_rpc_public_secret_listsecretsrequest.py: id: 9620f8836319 last_write_checksum: sha1:25213e2e2bae2b843c22adf704e1d280018627a2 @@ -16297,6 +16501,14 @@ trackedFiles: id: fadf8fb2f82a last_write_checksum: sha1:c898f25ba505f68d1607e3dff40cd8e6d6c6028d pristine_git_object: ec410526ceb6c9a0803d2ade4d4377f59b6a061e + src/textql_sdk/models/textql_rpc_public_secret_testapiaccesskeyrequest.py: + id: 5fb00da6e756 + last_write_checksum: sha1:566f3917b6995cbb1bfb831abeb5cde6086fa9b1 + pristine_git_object: 3d8599a44e83e908765571d9d79e3abf8af01a91 + src/textql_sdk/models/textql_rpc_public_secret_testapiaccesskeyresponse.py: + id: d1bade0c5857 + last_write_checksum: sha1:0a2eeee4d2d20ca1c3cc7c28cf4441fae275af5c + pristine_git_object: be7e28674e3ed9c65bf5208b0b9c1edeb90d626c src/textql_sdk/models/textql_rpc_public_secret_updatesecretrequest.py: id: ee76a4a51d48 last_write_checksum: sha1:d85c8452a15ac747f3c3b9e301c5182914727c32 @@ -16305,6 +16517,14 @@ trackedFiles: id: 4777d421b09b last_write_checksum: sha1:35eebfa68536a68c765dda52b200711544c17827 pristine_git_object: 5e05d370a550f7585049ef6a93ffdd9ea94e9713 + src/textql_sdk/models/textql_rpc_public_secret_upsertapiaccesskeyrequest.py: + id: a87533519d42 + last_write_checksum: sha1:4e222556582ba68155e57e495d40da158f93b411 + pristine_git_object: 5fec9ae569139f52d8a05922d203ee26bc8ad3d0 + src/textql_sdk/models/textql_rpc_public_secret_upsertapiaccesskeyresponse.py: + id: b0eb8f90d4c5 + last_write_checksum: sha1:9b5782a1881564d77f6b996743af3e3d4fb011fc + pristine_git_object: 407df4a8008d376f75c17a1ebf42fdfb2ade8355 src/textql_sdk/models/textql_rpc_public_settings_checkmemberstatusrequest.py: id: 360ff671d13e last_write_checksum: sha1:aeb74c12233f7f8851068518e9a336b48bdee7be @@ -16635,8 +16855,8 @@ trackedFiles: pristine_git_object: 06ec5b8e1d6023b29318d350e80f4b30a037c6b7 src/textql_sdk/secrets.py: id: 7a4d8c58294f - last_write_checksum: sha1:5588382efb436576ed7765d0b8e33acda3066080 - pristine_git_object: 8741e23f6a1c62db486037ba9721f607a97e80fa + last_write_checksum: sha1:4881bfbb60a4437d0ef1997a3ef61c28f8575b5d + pristine_git_object: 633b61f897c8745bd74fa76aebc4c51d6d1b0629 src/textql_sdk/settings.py: id: 00081268cc62 last_write_checksum: sha1:3101e0d57ed929fc8b1e4c3279b822c9993e52c4 @@ -27707,4 +27927,4 @@ examples: default: application/json: {"code": "not_found"} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `textql.agents.create()`: \n * `request.llm_model` **Changed**\n * `response.agent.llm_model` **Changed**\n* `textql.agents.duplicate()`: `response.agent.llm_model` **Changed**\n* `textql.agents.get_agent()`: `response.agent.llm_model` **Changed**\n* `textql.agents.list()`: `response.agents[].llm_model` **Changed**\n* `textql.agents.update()`: \n * `request.llm_model` **Changed**\n * `response.agent.llm_model` **Changed**\n* `textql.chats.attach_agent()`: `response.chat.model` **Changed**\n* `textql.chats.attach_app()`: `response.cell.union(feed_create_cell).feed_create_cell.agent.llm_model` **Changed**\n* `textql.chats.attach_dashboard()`: `response.cell.union(feed_create_cell).feed_create_cell.agent.llm_model` **Changed**\n* `textql.chats.attach_dataset()`: `response.cell.union(feed_create_cell).feed_create_cell.agent.llm_model` **Changed**\n* `textql.chats.check_health()`: `request.model` **Changed**\n* `textql.chats.check_streamlit_health()`: `response.cell.union(feed_create_cell).feed_create_cell.agent.llm_model` **Changed**\n* `textql.chats.create_chat()`: \n * `request.model` **Changed**\n * `response.chat.model` **Changed**\n* `textql.chats.duplicate_chat()`: \n * `request.model` **Changed**\n * `response.chat.model` **Changed**\n* `textql.chats.get()`: `response.chat.model` **Changed**\n* `textql.chats.get_history()`: `response.cells[].union(feed_create_cell).feed_create_cell.agent.llm_model` **Changed**\n* `textql.chats.get_all()`: `response.chats[].model` **Changed**\n* `textql.chats.get_playbook_chats()`: `response.chats[].model` **Changed**\n* `textql.chats.poll_events()`: `response.events[].union(cell).cell.union(feed_create_cell).feed_create_cell.agent.llm_model` **Changed**\n* `textql.chats.query_one_shot()`: \n * `request.model` **Changed**\n * `response.cells[].union(feed_create_cell).feed_create_cell.agent.llm_model` **Changed**\n* `textql.chats.run()`: \n * `request.model` **Changed**\n * `response.cells[].union(feed_create_cell).feed_create_cell.agent.llm_model` **Changed**\n* `textql.chats.update()`: `response.chat.model` **Changed**\n* `textql.observability.get_check_record_fix()`: `response.fix_patch_cell.union(feed_create_cell).feed_create_cell.agent.llm_model` **Changed**\n* `textql.observability.get_thread_warnings()`: `response.warnings_by_chat.Map.warnings[].fix_patch_cell.union(feed_create_cell).feed_create_cell.agent.llm_model` **Changed**\n* `textql.playbooks.create_playbook()`: `response.playbook.llm_model` **Changed**\n* `textql.playbooks.duplicate()`: `response.playbook.llm_model` **Changed**\n* `textql.playbooks.fetch()`: `response.playbook.llm_model` **Changed**\n* `textql.playbooks.get()`: `response.playbooks[].llm_model` **Changed**\n* `textql.playbooks.update()`: \n * `request.llm_model` **Changed**\n * `response.playbook.llm_model` **Changed**\n* `textql.rbac.create_role()`: `response.role.allowed_models[]` **Changed**\n* `textql.rbac.get_current_member_roles_and_permissions()`: `response.roles[].allowed_models[]` **Changed**\n* `textql.rbac.get_member_roles()`: `response.member_roles.Map.roles[].allowed_models[]` **Changed**\n* `textql.rbac.get_role()`: `response.role.allowed_models[]` **Changed**\n* `textql.rbac.list_roles()`: `response.roles[].allowed_models[]` **Changed**\n* `textql.rbac.update_role()`: \n * `request.allowed_models[]` **Changed**\n * `response.role.allowed_models[]` **Changed**\n* `textql.rbac.who_am_i()`: `response.roles[].allowed_models[]` **Changed**\n* `textql.settings.update_models()`: `request.default_model` **Changed**\n* `textql.settings.update()`: \n * `request.enabled_models[]` **Changed**\n" +releaseNotes: "## Python SDK Changes:\n* `textql.secrets.delete_api_access_key()`: **Added**\n* `textql.secrets.get_api_access_key()`: **Added**\n* `textql.secrets.list_api_access_keys()`: **Added**\n* `textql.secrets.list_api_providers()`: **Added**\n* `textql.secrets.test_api_access_key()`: **Added**\n* `textql.secrets.upsert_api_access_key()`: **Added**\n* `textql.agents.create()`: \n * `request.methodology` **Added**\n * `response.agent.methodology` **Added**\n* `textql.agents.duplicate()`: `response.agent.methodology` **Added**\n* `textql.agents.get_agent()`: `response.agent.methodology` **Added**\n* `textql.agents.list()`: `response.agents[].methodology` **Added**\n* `textql.agents.update()`: \n * `request.methodology` **Added**\n * `response.agent.methodology` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 8f933315..bc33b848 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -34,7 +34,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false python: - version: 1.1.22 + version: 1.1.23 additionalDependencies: dev: types-protobuf: '>=6.31' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 9ac118e2..e0b92613 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -13767,6 +13767,43 @@ paths: application/json: schema: $ref: '#/components/schemas/textql.rpc.public.scim.RevokeScimTokenResponse' + /textql.rpc.public.secret.SecretService/DeleteApiAccessKey: + post: + tags: + - SecretService + summary: DeleteApiAccessKey + operationId: SecretService_DeleteApiAccessKey + x-speakeasy-group: secrets + x-speakeasy-name-override: deleteApiAccessKey + parameters: + - name: Connect-Protocol-Version + in: header + required: true + schema: + $ref: '#/components/schemas/connect-protocol-version' + - name: Connect-Timeout-Ms + in: header + schema: + $ref: '#/components/schemas/connect-timeout-header' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.DeleteApiAccessKeyRequest' + required: true + responses: + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/connect.error' + "200": + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.DeleteApiAccessKeyResponse' /textql.rpc.public.secret.SecretService/DeleteSecret: post: tags: @@ -13804,6 +13841,43 @@ paths: application/json: schema: $ref: '#/components/schemas/textql.rpc.public.secret.DeleteSecretResponse' + /textql.rpc.public.secret.SecretService/GetApiAccessKey: + post: + tags: + - SecretService + summary: GetApiAccessKey + operationId: SecretService_GetApiAccessKey + x-speakeasy-group: secrets + x-speakeasy-name-override: getApiAccessKey + parameters: + - name: Connect-Protocol-Version + in: header + required: true + schema: + $ref: '#/components/schemas/connect-protocol-version' + - name: Connect-Timeout-Ms + in: header + schema: + $ref: '#/components/schemas/connect-timeout-header' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.GetApiAccessKeyRequest' + required: true + responses: + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/connect.error' + "200": + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.GetApiAccessKeyResponse' /textql.rpc.public.secret.SecretService/GetMembersWithSecrets: post: tags: @@ -13841,6 +13915,80 @@ paths: application/json: schema: $ref: '#/components/schemas/textql.rpc.public.secret.GetMembersWithSecretsResponse' + /textql.rpc.public.secret.SecretService/ListApiAccessKeys: + post: + tags: + - SecretService + summary: ListApiAccessKeys + operationId: SecretService_ListApiAccessKeys + x-speakeasy-group: secrets + x-speakeasy-name-override: listApiAccessKeys + parameters: + - name: Connect-Protocol-Version + in: header + required: true + schema: + $ref: '#/components/schemas/connect-protocol-version' + - name: Connect-Timeout-Ms + in: header + schema: + $ref: '#/components/schemas/connect-timeout-header' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.ListApiAccessKeysRequest' + required: true + responses: + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/connect.error' + "200": + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.ListApiAccessKeysResponse' + /textql.rpc.public.secret.SecretService/ListApiProviders: + post: + tags: + - SecretService + summary: ListApiProviders + operationId: SecretService_ListApiProviders + x-speakeasy-group: secrets + x-speakeasy-name-override: listApiProviders + parameters: + - name: Connect-Protocol-Version + in: header + required: true + schema: + $ref: '#/components/schemas/connect-protocol-version' + - name: Connect-Timeout-Ms + in: header + schema: + $ref: '#/components/schemas/connect-timeout-header' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.ListApiProvidersRequest' + required: true + responses: + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/connect.error' + "200": + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.ListApiProvidersResponse' /textql.rpc.public.secret.SecretService/ListSecrets: post: tags: @@ -13915,6 +14063,43 @@ paths: application/json: schema: $ref: '#/components/schemas/textql.rpc.public.secret.PutSecretResponse' + /textql.rpc.public.secret.SecretService/TestApiAccessKey: + post: + tags: + - SecretService + summary: TestApiAccessKey + operationId: SecretService_TestApiAccessKey + x-speakeasy-group: secrets + x-speakeasy-name-override: testApiAccessKey + parameters: + - name: Connect-Protocol-Version + in: header + required: true + schema: + $ref: '#/components/schemas/connect-protocol-version' + - name: Connect-Timeout-Ms + in: header + schema: + $ref: '#/components/schemas/connect-timeout-header' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.TestApiAccessKeyRequest' + required: true + responses: + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/connect.error' + "200": + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.TestApiAccessKeyResponse' /textql.rpc.public.secret.SecretService/UpdateSecret: post: tags: @@ -13952,6 +14137,44 @@ paths: application/json: schema: $ref: '#/components/schemas/textql.rpc.public.secret.UpdateSecretResponse' + /textql.rpc.public.secret.SecretService/UpsertApiAccessKey: + post: + tags: + - SecretService + summary: '---- API Connectors (deprecated) ----' + description: '---- API Connectors (deprecated) ----' + operationId: SecretService_UpsertApiAccessKey + x-speakeasy-group: secrets + x-speakeasy-name-override: upsertApiAccessKey + parameters: + - name: Connect-Protocol-Version + in: header + required: true + schema: + $ref: '#/components/schemas/connect-protocol-version' + - name: Connect-Timeout-Ms + in: header + schema: + $ref: '#/components/schemas/connect-timeout-header' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.UpsertApiAccessKeyRequest' + required: true + responses: + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/connect.error' + "200": + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/textql.rpc.public.secret.UpsertApiAccessKeyResponse' /textql.rpc.public.settings.SettingsService/CheckMemberStatus: post: tags: @@ -16533,6 +16756,9 @@ components: allowAdHocSubagents: type: boolean title: allow_ad_hoc_subagents + methodology: + title: methodology + $ref: '#/components/schemas/textql.rpc.public.chat.Methodology' title: Agent additionalProperties: false textql.rpc.public.agent.AgentDBColumn: @@ -16952,6 +17178,10 @@ components: type: boolean title: allow_ad_hoc_subagents nullable: true + methodology: + title: methodology + nullable: true + $ref: '#/components/schemas/textql.rpc.public.chat.Methodology' title: CreateAgentRequest additionalProperties: false textql.rpc.public.agent.CreateAgentResponse: @@ -17311,6 +17541,11 @@ components: type: boolean title: allow_ad_hoc_subagents nullable: true + methodology: + title: methodology + description: Omitted leaves the saved methodology unchanged. + nullable: true + $ref: '#/components/schemas/textql.rpc.public.chat.Methodology' title: UpdateAgentRequest additionalProperties: false textql.rpc.public.agent.UpdateAgentResponse: @@ -39044,6 +39279,239 @@ components: $ref: '#/components/schemas/google.protobuf.Timestamp' title: ScimToken additionalProperties: false + textql.rpc.public.secret.ApiAccessKey: + type: object + properties: + id: + type: string + title: id + orgId: + type: string + title: org_id + memberId: + type: string + title: member_id + hosts: + type: array + items: + type: string + title: hosts + headers: + type: object + title: headers + additionalProperties: + type: string + title: value + queryParams: + type: object + title: query_params + additionalProperties: + type: string + title: value + description: + type: string + title: description + createdAt: + title: created_at + $ref: '#/components/schemas/google.protobuf.Timestamp' + updatedAt: + title: updated_at + $ref: '#/components/schemas/google.protobuf.Timestamp' + expiresAt: + title: expires_at + nullable: true + $ref: '#/components/schemas/google.protobuf.Timestamp' + provider: + type: string + title: provider + authType: + type: string + title: auth_type + description: '"token", "oauth_u2m", "oauth_per_member"' + memberOauthAuthenticated: + type: boolean + title: member_oauth_authenticated + memberOauthDisplayName: + type: string + title: member_oauth_display_name + httpBasicAuth: + title: http_basic_auth + nullable: true + $ref: '#/components/schemas/textql.rpc.public.secret.HttpBasicAuth' + body: + type: object + title: body + additionalProperties: + type: string + title: value + contentType: + title: content_type + $ref: '#/components/schemas/textql.rpc.public.secret.BodyContentType' + canWrite: + type: boolean + title: can_write + accessType: + type: string + title: access_type + nullable: true + isPublic: + type: boolean + title: is_public + testUrl: + type: string + title: test_url + name: + type: string + title: name + authPrefix: + type: string + title: auth_prefix + testMethod: + type: string + title: test_method + title: ApiAccessKey + additionalProperties: false + textql.rpc.public.secret.ApiAccessKey.BodyEntry: + type: object + properties: + key: + type: string + title: key + value: + type: string + title: value + title: BodyEntry + additionalProperties: false + textql.rpc.public.secret.ApiAccessKey.HeadersEntry: + type: object + properties: + key: + type: string + title: key + value: + type: string + title: value + title: HeadersEntry + additionalProperties: false + textql.rpc.public.secret.ApiAccessKey.QueryParamsEntry: + type: object + properties: + key: + type: string + title: key + value: + type: string + title: value + title: QueryParamsEntry + additionalProperties: false + textql.rpc.public.secret.ApiAccessRef: + type: object + properties: + apiAccessKeyId: + type: string + title: api_access_key_id + revision: + type: + - integer + - string + title: revision + format: int64 + title: ApiAccessRef + additionalProperties: false + textql.rpc.public.secret.ApiProvider: + type: object + properties: + id: + type: string + title: id + name: + type: string + title: name + iconUrl: + type: string + title: icon_url + authType: + type: string + title: auth_type + description: + type: string + title: description + docsUrl: + type: string + title: docs_url + defaultHosts: + type: array + items: + type: string + title: default_hosts + tokenLabel: + type: string + title: token_label + authHeader: + type: string + title: auth_header + authPrefix: + type: string + title: auth_prefix + oauthSupported: + type: boolean + title: oauth_supported + oauthConfigured: + type: boolean + title: oauth_configured + memberAuthenticated: + type: boolean + title: member_authenticated + memberAuthDisplayName: + type: string + title: member_auth_display_name + envVarFields: + type: array + items: + $ref: '#/components/schemas/textql.rpc.public.secret.EnvVarField' + title: env_var_fields + oauthHasDefaultUrls: + type: boolean + title: oauth_has_default_urls + oauthAuthUrl: + type: string + title: oauth_auth_url + oauthTokenUrl: + type: string + title: oauth_token_url + oauthScopes: + type: string + title: oauth_scopes + oauthUsePkce: + type: boolean + title: oauth_use_pkce + oauthTokenAuthMethod: + type: string + title: oauth_token_auth_method + testUrl: + type: string + title: test_url + title: ApiProvider + additionalProperties: false + textql.rpc.public.secret.BodyContentType: + type: string + title: BodyContentType + enum: + - BODY_CONTENT_TYPE_NONE + - BODY_CONTENT_TYPE_JSON + - BODY_CONTENT_TYPE_FORM + textql.rpc.public.secret.DeleteApiAccessKeyRequest: + type: object + properties: + id: + type: string + title: id + title: DeleteApiAccessKeyRequest + additionalProperties: false + textql.rpc.public.secret.DeleteApiAccessKeyResponse: + type: object + title: DeleteApiAccessKeyResponse + additionalProperties: false textql.rpc.public.secret.DeleteSecretRequest: type: object properties: @@ -39056,6 +39524,45 @@ components: type: object title: DeleteSecretResponse additionalProperties: false + textql.rpc.public.secret.EnvVarField: + type: object + properties: + envVar: + type: string + title: env_var + label: + type: string + title: label + required: + type: boolean + title: required + secret: + type: boolean + title: secret + defaultValue: + type: string + title: default_value + placeholder: + type: string + title: placeholder + title: EnvVarField + additionalProperties: false + textql.rpc.public.secret.GetApiAccessKeyRequest: + type: object + properties: + id: + type: string + title: id + title: GetApiAccessKeyRequest + additionalProperties: false + textql.rpc.public.secret.GetApiAccessKeyResponse: + type: object + properties: + apiAccessKey: + title: api_access_key + $ref: '#/components/schemas/textql.rpc.public.secret.ApiAccessKey' + title: GetApiAccessKeyResponse + additionalProperties: false textql.rpc.public.secret.GetMembersWithSecretsRequest: type: object title: GetMembersWithSecretsRequest @@ -39070,6 +39577,45 @@ components: title: members title: GetMembersWithSecretsResponse additionalProperties: false + textql.rpc.public.secret.HttpBasicAuth: + type: object + properties: + username: + type: string + title: username + password: + type: string + title: password + title: HttpBasicAuth + additionalProperties: false + textql.rpc.public.secret.ListApiAccessKeysRequest: + type: object + title: ListApiAccessKeysRequest + additionalProperties: false + textql.rpc.public.secret.ListApiAccessKeysResponse: + type: object + properties: + apiAccessKeys: + type: array + items: + $ref: '#/components/schemas/textql.rpc.public.secret.ApiAccessKey' + title: api_access_keys + title: ListApiAccessKeysResponse + additionalProperties: false + textql.rpc.public.secret.ListApiProvidersRequest: + type: object + title: ListApiProvidersRequest + additionalProperties: false + textql.rpc.public.secret.ListApiProvidersResponse: + type: object + properties: + providers: + type: array + items: + $ref: '#/components/schemas/textql.rpc.public.secret.ApiProvider' + title: providers + title: ListApiProvidersResponse + additionalProperties: false textql.rpc.public.secret.ListSecretsRequest: type: object title: ListSecretsRequest @@ -39145,6 +39691,29 @@ components: title: is_public title: Secret additionalProperties: false + textql.rpc.public.secret.TestApiAccessKeyRequest: + type: object + properties: + ref: + title: ref + $ref: '#/components/schemas/textql.rpc.public.secret.ApiAccessRef' + title: TestApiAccessKeyRequest + additionalProperties: false + textql.rpc.public.secret.TestApiAccessKeyResponse: + type: object + properties: + success: + type: boolean + title: success + statusCode: + type: integer + title: status_code + format: int32 + message: + type: string + title: message + title: TestApiAccessKeyResponse + additionalProperties: false textql.rpc.public.secret.UpdateSecretRequest: type: object properties: @@ -39169,6 +39738,116 @@ components: type: object title: UpdateSecretResponse additionalProperties: false + textql.rpc.public.secret.UpsertApiAccessKeyRequest: + type: object + properties: + ref: + title: ref + $ref: '#/components/schemas/textql.rpc.public.secret.ApiAccessRef' + persistToDb: + type: boolean + title: persist_to_db + hosts: + type: array + items: + type: string + title: hosts + headers: + type: object + title: headers + additionalProperties: + type: string + title: value + queryParams: + type: object + title: query_params + additionalProperties: + type: string + title: value + description: + type: string + title: description + expiresAt: + title: expires_at + nullable: true + $ref: '#/components/schemas/google.protobuf.Timestamp' + provider: + type: string + title: provider + authValue: + type: string + title: auth_value + authValueExtra: + type: string + title: auth_value_extra + authType: + type: string + title: auth_type + httpBasicAuth: + title: http_basic_auth + nullable: true + $ref: '#/components/schemas/textql.rpc.public.secret.HttpBasicAuth' + body: + type: object + title: body + additionalProperties: + type: string + title: value + contentType: + title: content_type + $ref: '#/components/schemas/textql.rpc.public.secret.BodyContentType' + testUrl: + type: string + title: test_url + name: + type: string + title: name + testMethod: + type: string + title: test_method + title: UpsertApiAccessKeyRequest + additionalProperties: false + textql.rpc.public.secret.UpsertApiAccessKeyRequest.BodyEntry: + type: object + properties: + key: + type: string + title: key + value: + type: string + title: value + title: BodyEntry + additionalProperties: false + textql.rpc.public.secret.UpsertApiAccessKeyRequest.HeadersEntry: + type: object + properties: + key: + type: string + title: key + value: + type: string + title: value + title: HeadersEntry + additionalProperties: false + textql.rpc.public.secret.UpsertApiAccessKeyRequest.QueryParamsEntry: + type: object + properties: + key: + type: string + title: key + value: + type: string + title: value + title: QueryParamsEntry + additionalProperties: false + textql.rpc.public.secret.UpsertApiAccessKeyResponse: + type: object + properties: + apiAccessKey: + title: api_access_key + $ref: '#/components/schemas/textql.rpc.public.secret.ApiAccessKey' + title: UpsertApiAccessKeyResponse + additionalProperties: false textql.rpc.public.settings.CheckMemberStatusRequest: type: object properties: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 01036b05..b72597b9 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.796.4 sources: TextQL API: sourceNamespace: textql-api - sourceRevisionDigest: sha256:fe82464388d2c57509da4ab4d6e656d02262b0c6625a98a7c84b0461cfdbc492 - sourceBlobDigest: sha256:8f2626dc7c4b06927acd98f6cf39e5b85ee2e04c3079556e2ef844c795eecc15 + sourceRevisionDigest: sha256:c9517c4b584e0a5135439652e8fcc7ffd2a0e230c0748674d707683e939c9941 + sourceBlobDigest: sha256:e37d345d84153d95627f300d5b77c05828b962f4f5c154c936ea87017f18735a tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: textql: source: TextQL API sourceNamespace: textql-api - sourceRevisionDigest: sha256:fe82464388d2c57509da4ab4d6e656d02262b0c6625a98a7c84b0461cfdbc492 - sourceBlobDigest: sha256:8f2626dc7c4b06927acd98f6cf39e5b85ee2e04c3079556e2ef844c795eecc15 + sourceRevisionDigest: sha256:c9517c4b584e0a5135439652e8fcc7ffd2a0e230c0748674d707683e939c9941 + sourceBlobDigest: sha256:e37d345d84153d95627f300d5b77c05828b962f4f5c154c936ea87017f18735a codeSamplesNamespace: textql-api-python-code-samples - codeSamplesRevisionDigest: sha256:bef69d3b079bae4800c19dc5627170f5956418f28a0d5af074e169a67a612d7c + codeSamplesRevisionDigest: sha256:72cafe6db0f7998421c1a662107561fe5d216a297f94740ac965998343bf30b4 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README-PYPI.md b/README-PYPI.md index 59ba1cff..6c4cfcf5 100644 --- a/README-PYPI.md +++ b/README-PYPI.md @@ -612,11 +612,17 @@ with Textql( ### [Secrets](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md) +* [delete_api_access_key](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#delete_api_access_key) - DeleteApiAccessKey * [delete_secret](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#delete_secret) - DeleteSecret +* [get_api_access_key](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#get_api_access_key) - GetApiAccessKey * [get_members_with_secrets](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#get_members_with_secrets) - GetMembersWithSecrets +* [list_api_access_keys](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#list_api_access_keys) - ListApiAccessKeys +* [list_api_providers](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#list_api_providers) - ListApiProviders * [list_secrets](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#list_secrets) - ListSecrets * [put_secret](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#put_secret) - PutSecret +* [test_api_access_key](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#test_api_access_key) - TestApiAccessKey * [update](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#update) - UpdateSecret +* [upsert_api_access_key](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/secrets/README.md#upsert_api_access_key) - ---- API Connectors (deprecated) ---- ### [Settings](https://github.com/TextQLLabs/textql-python-v3/blob/master/docs/sdks/settings/README.md) diff --git a/README.md b/README.md index c1b7ebb3..ca3e2740 100644 --- a/README.md +++ b/README.md @@ -612,11 +612,17 @@ with Textql( ### [Secrets](docs/sdks/secrets/README.md) +* [delete_api_access_key](docs/sdks/secrets/README.md#delete_api_access_key) - DeleteApiAccessKey * [delete_secret](docs/sdks/secrets/README.md#delete_secret) - DeleteSecret +* [get_api_access_key](docs/sdks/secrets/README.md#get_api_access_key) - GetApiAccessKey * [get_members_with_secrets](docs/sdks/secrets/README.md#get_members_with_secrets) - GetMembersWithSecrets +* [list_api_access_keys](docs/sdks/secrets/README.md#list_api_access_keys) - ListApiAccessKeys +* [list_api_providers](docs/sdks/secrets/README.md#list_api_providers) - ListApiProviders * [list_secrets](docs/sdks/secrets/README.md#list_secrets) - ListSecrets * [put_secret](docs/sdks/secrets/README.md#put_secret) - PutSecret +* [test_api_access_key](docs/sdks/secrets/README.md#test_api_access_key) - TestApiAccessKey * [update](docs/sdks/secrets/README.md#update) - UpdateSecret +* [upsert_api_access_key](docs/sdks/secrets/README.md#upsert_api_access_key) - ---- API Connectors (deprecated) ---- ### [Settings](docs/sdks/settings/README.md) diff --git a/RELEASES.md b/RELEASES.md index 9f467085..1e8a3ee5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -458,4 +458,14 @@ Based on: ### Generated - [python v1.1.22] . ### Releases -- [PyPI v1.1.22] https://pypi.org/project/textql-sdk/1.1.22 - . \ No newline at end of file +- [PyPI v1.1.22] https://pypi.org/project/textql-sdk/1.1.22 - . + +## 2026-09-09 14:06:47 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.4 (2.935.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.1.23] . +### Releases +- [PyPI v1.1.23] https://pypi.org/project/textql-sdk/1.1.23 - . \ No newline at end of file diff --git a/docs/models/revision.md b/docs/models/revision.md new file mode 100644 index 00000000..651bf4c3 --- /dev/null +++ b/docs/models/revision.md @@ -0,0 +1,17 @@ +# Revision + + +## Supported Types + +### `int` + +```python +value: int = /* values here */ +``` + +### `str` + +```python +value: str = /* values here */ +``` + diff --git a/docs/models/secretservicedeleteapiaccesskeyrequest.md b/docs/models/secretservicedeleteapiaccesskeyrequest.md new file mode 100644 index 00000000..c2fbca20 --- /dev/null +++ b/docs/models/secretservicedeleteapiaccesskeyrequest.md @@ -0,0 +1,10 @@ +# SecretServiceDeleteAPIAccessKeyRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `connect_protocol_version` | *float* | :heavy_check_mark: | N/A | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `body` | [models.TextqlRPCPublicSecretDeleteAPIAccessKeyRequest](../models/textqlrpcpublicsecretdeleteapiaccesskeyrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/secretservicedeleteapiaccesskeyresponse.md b/docs/models/secretservicedeleteapiaccesskeyresponse.md new file mode 100644 index 00000000..eee9eb9d --- /dev/null +++ b/docs/models/secretservicedeleteapiaccesskeyresponse.md @@ -0,0 +1,17 @@ +# SecretServiceDeleteAPIAccessKeyResponse + + +## Supported Types + +### `models.TextqlRPCPublicSecretDeleteAPIAccessKeyResponse` + +```python +value: models.TextqlRPCPublicSecretDeleteAPIAccessKeyResponse = /* values here */ +``` + +### `models.ConnectError` + +```python +value: models.ConnectError = /* values here */ +``` + diff --git a/docs/models/secretservicegetapiaccesskeyrequest.md b/docs/models/secretservicegetapiaccesskeyrequest.md new file mode 100644 index 00000000..6c4ade49 --- /dev/null +++ b/docs/models/secretservicegetapiaccesskeyrequest.md @@ -0,0 +1,10 @@ +# SecretServiceGetAPIAccessKeyRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `connect_protocol_version` | *float* | :heavy_check_mark: | N/A | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `body` | [models.TextqlRPCPublicSecretGetAPIAccessKeyRequest](../models/textqlrpcpublicsecretgetapiaccesskeyrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/secretservicegetapiaccesskeyresponse.md b/docs/models/secretservicegetapiaccesskeyresponse.md new file mode 100644 index 00000000..b39e6ce4 --- /dev/null +++ b/docs/models/secretservicegetapiaccesskeyresponse.md @@ -0,0 +1,17 @@ +# SecretServiceGetAPIAccessKeyResponse + + +## Supported Types + +### `models.TextqlRPCPublicSecretGetAPIAccessKeyResponse` + +```python +value: models.TextqlRPCPublicSecretGetAPIAccessKeyResponse = /* values here */ +``` + +### `models.ConnectError` + +```python +value: models.ConnectError = /* values here */ +``` + diff --git a/docs/models/secretservicelistapiaccesskeysrequest.md b/docs/models/secretservicelistapiaccesskeysrequest.md new file mode 100644 index 00000000..7b01cb7a --- /dev/null +++ b/docs/models/secretservicelistapiaccesskeysrequest.md @@ -0,0 +1,10 @@ +# SecretServiceListAPIAccessKeysRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `connect_protocol_version` | *float* | :heavy_check_mark: | N/A | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `body` | [models.TextqlRPCPublicSecretListAPIAccessKeysRequest](../models/textqlrpcpublicsecretlistapiaccesskeysrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/secretservicelistapiaccesskeysresponse.md b/docs/models/secretservicelistapiaccesskeysresponse.md new file mode 100644 index 00000000..b9a4cfbf --- /dev/null +++ b/docs/models/secretservicelistapiaccesskeysresponse.md @@ -0,0 +1,17 @@ +# SecretServiceListAPIAccessKeysResponse + + +## Supported Types + +### `models.TextqlRPCPublicSecretListAPIAccessKeysResponse` + +```python +value: models.TextqlRPCPublicSecretListAPIAccessKeysResponse = /* values here */ +``` + +### `models.ConnectError` + +```python +value: models.ConnectError = /* values here */ +``` + diff --git a/docs/models/secretservicelistapiprovidersrequest.md b/docs/models/secretservicelistapiprovidersrequest.md new file mode 100644 index 00000000..59460e87 --- /dev/null +++ b/docs/models/secretservicelistapiprovidersrequest.md @@ -0,0 +1,10 @@ +# SecretServiceListAPIProvidersRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `connect_protocol_version` | *float* | :heavy_check_mark: | N/A | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `body` | [models.TextqlRPCPublicSecretListAPIProvidersRequest](../models/textqlrpcpublicsecretlistapiprovidersrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/secretservicelistapiprovidersresponse.md b/docs/models/secretservicelistapiprovidersresponse.md new file mode 100644 index 00000000..c2fe68dd --- /dev/null +++ b/docs/models/secretservicelistapiprovidersresponse.md @@ -0,0 +1,17 @@ +# SecretServiceListAPIProvidersResponse + + +## Supported Types + +### `models.TextqlRPCPublicSecretListAPIProvidersResponse` + +```python +value: models.TextqlRPCPublicSecretListAPIProvidersResponse = /* values here */ +``` + +### `models.ConnectError` + +```python +value: models.ConnectError = /* values here */ +``` + diff --git a/docs/models/secretservicetestapiaccesskeyrequest.md b/docs/models/secretservicetestapiaccesskeyrequest.md new file mode 100644 index 00000000..c302e664 --- /dev/null +++ b/docs/models/secretservicetestapiaccesskeyrequest.md @@ -0,0 +1,10 @@ +# SecretServiceTestAPIAccessKeyRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `connect_protocol_version` | *float* | :heavy_check_mark: | N/A | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `body` | [models.TextqlRPCPublicSecretTestAPIAccessKeyRequest](../models/textqlrpcpublicsecrettestapiaccesskeyrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/secretservicetestapiaccesskeyresponse.md b/docs/models/secretservicetestapiaccesskeyresponse.md new file mode 100644 index 00000000..c0dff200 --- /dev/null +++ b/docs/models/secretservicetestapiaccesskeyresponse.md @@ -0,0 +1,17 @@ +# SecretServiceTestAPIAccessKeyResponse + + +## Supported Types + +### `models.TextqlRPCPublicSecretTestAPIAccessKeyResponse` + +```python +value: models.TextqlRPCPublicSecretTestAPIAccessKeyResponse = /* values here */ +``` + +### `models.ConnectError` + +```python +value: models.ConnectError = /* values here */ +``` + diff --git a/docs/models/secretserviceupsertapiaccesskeyrequest.md b/docs/models/secretserviceupsertapiaccesskeyrequest.md new file mode 100644 index 00000000..c160edb3 --- /dev/null +++ b/docs/models/secretserviceupsertapiaccesskeyrequest.md @@ -0,0 +1,10 @@ +# SecretServiceUpsertAPIAccessKeyRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `connect_protocol_version` | *float* | :heavy_check_mark: | N/A | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `body` | [models.TextqlRPCPublicSecretUpsertAPIAccessKeyRequest](../models/textqlrpcpublicsecretupsertapiaccesskeyrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/secretserviceupsertapiaccesskeyresponse.md b/docs/models/secretserviceupsertapiaccesskeyresponse.md new file mode 100644 index 00000000..598e7f7f --- /dev/null +++ b/docs/models/secretserviceupsertapiaccesskeyresponse.md @@ -0,0 +1,17 @@ +# SecretServiceUpsertAPIAccessKeyResponse + + +## Supported Types + +### `models.TextqlRPCPublicSecretUpsertAPIAccessKeyResponse` + +```python +value: models.TextqlRPCPublicSecretUpsertAPIAccessKeyResponse = /* values here */ +``` + +### `models.ConnectError` + +```python +value: models.ConnectError = /* values here */ +``` + diff --git a/docs/models/textqlrpcpublicagentagent.md b/docs/models/textqlrpcpublicagentagent.md index 5ef8f21e..4bb6a811 100644 --- a/docs/models/textqlrpcpublicagentagent.md +++ b/docs/models/textqlrpcpublicagentagent.md @@ -39,4 +39,5 @@ | `subagent_invoker_role_ids` | List[*str*] | :heavy_minus_sign: | N/A | | | `feed_enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | | | `subagent_agent_ids` | List[*str*] | :heavy_minus_sign: | N/A | | -| `allow_ad_hoc_subagents` | *Optional[bool]* | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `allow_ad_hoc_subagents` | *Optional[bool]* | :heavy_minus_sign: | N/A | | +| `methodology` | [Optional[models.TextqlRPCPublicChatMethodology]](../models/textqlrpcpublicchatmethodology.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicagentcreateagentrequest.md b/docs/models/textqlrpcpublicagentcreateagentrequest.md index 9cf9c348..203f43a8 100644 --- a/docs/models/textqlrpcpublicagentcreateagentrequest.md +++ b/docs/models/textqlrpcpublicagentcreateagentrequest.md @@ -27,4 +27,5 @@ | `subagent_invoker_role_ids` | List[*str*] | :heavy_minus_sign: | N/A | | `feed_enabled` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `subagent_agent_ids` | List[*str*] | :heavy_minus_sign: | N/A | -| `allow_ad_hoc_subagents` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `allow_ad_hoc_subagents` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | +| `methodology` | [Optional[models.TextqlRPCPublicChatMethodology]](../models/textqlrpcpublicchatmethodology.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicagentupdateagentrequest.md b/docs/models/textqlrpcpublicagentupdateagentrequest.md index 1b6d5ad2..589ed3cd 100644 --- a/docs/models/textqlrpcpublicagentupdateagentrequest.md +++ b/docs/models/textqlrpcpublicagentupdateagentrequest.md @@ -32,4 +32,5 @@ | `feed_enabled` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `subagent_agent_ids` | List[*str*] | :heavy_minus_sign: | N/A | | `update_subagents` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | -| `allow_ad_hoc_subagents` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `allow_ad_hoc_subagents` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | +| `methodology` | [Optional[models.TextqlRPCPublicChatMethodology]](../models/textqlrpcpublicchatmethodology.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretapiaccesskey.md b/docs/models/textqlrpcpublicsecretapiaccesskey.md new file mode 100644 index 00000000..488f9dee --- /dev/null +++ b/docs/models/textqlrpcpublicsecretapiaccesskey.md @@ -0,0 +1,31 @@ +# TextqlRPCPublicSecretAPIAccessKey + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `org_id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `member_id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `hosts` | List[*str*] | :heavy_minus_sign: | N/A | | +| `headers` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | +| `query_params` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | +| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | A Timestamp represents a point in time independent of any time zone or local
calendar, encoded as a count of seconds and fractions of seconds at
nanosecond resolution. The count is relative to an epoch at UTC midnight on
January 1, 1970, in the proleptic Gregorian calendar which extends the
Gregorian calendar backwards to year one.

All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
second table is needed for interpretation, using a [24-hour linear
smear](https://developers.google.com/time/smear).

The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
restricting to that range, we ensure that we can convert to and from [RFC
3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.

# Examples

Example 1: Compute Timestamp from POSIX `time()`.

Timestamp timestamp;
timestamp.set_seconds(time(NULL));
timestamp.set_nanos(0);

Example 2: Compute Timestamp from POSIX `gettimeofday()`.

struct timeval tv;
gettimeofday(&tv, NULL);

Timestamp timestamp;
timestamp.set_seconds(tv.tv_sec);
timestamp.set_nanos(tv.tv_usec * 1000);

Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.

FILETIME ft;
GetSystemTimeAsFileTime(&ft);
UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) \| ft.dwLowDateTime;

// A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
// is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
Timestamp timestamp;
timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));

Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.

long millis = System.currentTimeMillis();

Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
.setNanos((int) ((millis % 1000) * 1000000)).build();

Example 5: Compute Timestamp from Java `Instant.now()`.

Instant now = Instant.now();

Timestamp timestamp =
Timestamp.newBuilder().setSeconds(now.getEpochSecond())
.setNanos(now.getNano()).build();

Example 6: Compute Timestamp from current time in Python.

timestamp = Timestamp()
timestamp.GetCurrentTime()

# JSON Mapping

In JSON format, the Timestamp type is encoded as a string in the
[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
where {year} is always expressed using four digits while {month}, {day},
{hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
is required. A proto3 JSON serializer should always use UTC (as indicated by
"Z") when printing the Timestamp type and a proto3 JSON parser should be
able to accept both UTC and other timezones (as indicated by an offset).

For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
01:30 UTC on January 15, 2017.

In JavaScript, one can convert a Date object to this format using the
standard
[toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
method. In Python, a standard `datetime.datetime` object can be converted
to this format using
[`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
the Joda Time's [`ISODateTimeFormat.dateTime()`](
http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
) to obtain a formatter capable of generating timestamps in this format. | **Example 1:** 2023-01-15T01:30:15.01Z
**Example 2:** 2024-12-25T12:00:00Z | +| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | A Timestamp represents a point in time independent of any time zone or local
calendar, encoded as a count of seconds and fractions of seconds at
nanosecond resolution. The count is relative to an epoch at UTC midnight on
January 1, 1970, in the proleptic Gregorian calendar which extends the
Gregorian calendar backwards to year one.

All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
second table is needed for interpretation, using a [24-hour linear
smear](https://developers.google.com/time/smear).

The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
restricting to that range, we ensure that we can convert to and from [RFC
3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.

# Examples

Example 1: Compute Timestamp from POSIX `time()`.

Timestamp timestamp;
timestamp.set_seconds(time(NULL));
timestamp.set_nanos(0);

Example 2: Compute Timestamp from POSIX `gettimeofday()`.

struct timeval tv;
gettimeofday(&tv, NULL);

Timestamp timestamp;
timestamp.set_seconds(tv.tv_sec);
timestamp.set_nanos(tv.tv_usec * 1000);

Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.

FILETIME ft;
GetSystemTimeAsFileTime(&ft);
UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) \| ft.dwLowDateTime;

// A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
// is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
Timestamp timestamp;
timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));

Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.

long millis = System.currentTimeMillis();

Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
.setNanos((int) ((millis % 1000) * 1000000)).build();

Example 5: Compute Timestamp from Java `Instant.now()`.

Instant now = Instant.now();

Timestamp timestamp =
Timestamp.newBuilder().setSeconds(now.getEpochSecond())
.setNanos(now.getNano()).build();

Example 6: Compute Timestamp from current time in Python.

timestamp = Timestamp()
timestamp.GetCurrentTime()

# JSON Mapping

In JSON format, the Timestamp type is encoded as a string in the
[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
where {year} is always expressed using four digits while {month}, {day},
{hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
is required. A proto3 JSON serializer should always use UTC (as indicated by
"Z") when printing the Timestamp type and a proto3 JSON parser should be
able to accept both UTC and other timezones (as indicated by an offset).

For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
01:30 UTC on January 15, 2017.

In JavaScript, one can convert a Date object to this format using the
standard
[toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
method. In Python, a standard `datetime.datetime` object can be converted
to this format using
[`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
the Joda Time's [`ISODateTimeFormat.dateTime()`](
http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
) to obtain a formatter capable of generating timestamps in this format. | **Example 1:** 2023-01-15T01:30:15.01Z
**Example 2:** 2024-12-25T12:00:00Z | +| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | A Timestamp represents a point in time independent of any time zone or local
calendar, encoded as a count of seconds and fractions of seconds at
nanosecond resolution. The count is relative to an epoch at UTC midnight on
January 1, 1970, in the proleptic Gregorian calendar which extends the
Gregorian calendar backwards to year one.

All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
second table is needed for interpretation, using a [24-hour linear
smear](https://developers.google.com/time/smear).

The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
restricting to that range, we ensure that we can convert to and from [RFC
3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.

# Examples

Example 1: Compute Timestamp from POSIX `time()`.

Timestamp timestamp;
timestamp.set_seconds(time(NULL));
timestamp.set_nanos(0);

Example 2: Compute Timestamp from POSIX `gettimeofday()`.

struct timeval tv;
gettimeofday(&tv, NULL);

Timestamp timestamp;
timestamp.set_seconds(tv.tv_sec);
timestamp.set_nanos(tv.tv_usec * 1000);

Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.

FILETIME ft;
GetSystemTimeAsFileTime(&ft);
UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) \| ft.dwLowDateTime;

// A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
// is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
Timestamp timestamp;
timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));

Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.

long millis = System.currentTimeMillis();

Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
.setNanos((int) ((millis % 1000) * 1000000)).build();

Example 5: Compute Timestamp from Java `Instant.now()`.

Instant now = Instant.now();

Timestamp timestamp =
Timestamp.newBuilder().setSeconds(now.getEpochSecond())
.setNanos(now.getNano()).build();

Example 6: Compute Timestamp from current time in Python.

timestamp = Timestamp()
timestamp.GetCurrentTime()

# JSON Mapping

In JSON format, the Timestamp type is encoded as a string in the
[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
where {year} is always expressed using four digits while {month}, {day},
{hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
is required. A proto3 JSON serializer should always use UTC (as indicated by
"Z") when printing the Timestamp type and a proto3 JSON parser should be
able to accept both UTC and other timezones (as indicated by an offset).

For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
01:30 UTC on January 15, 2017.

In JavaScript, one can convert a Date object to this format using the
standard
[toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
method. In Python, a standard `datetime.datetime` object can be converted
to this format using
[`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
the Joda Time's [`ISODateTimeFormat.dateTime()`](
http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
) to obtain a formatter capable of generating timestamps in this format. | **Example 1:** 2023-01-15T01:30:15.01Z
**Example 2:** 2024-12-25T12:00:00Z | +| `provider` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `auth_type` | *Optional[str]* | :heavy_minus_sign: | "token", "oauth_u2m", "oauth_per_member" | | +| `member_oauth_authenticated` | *Optional[bool]* | :heavy_minus_sign: | N/A | | +| `member_oauth_display_name` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `http_basic_auth` | [Optional[models.TextqlRPCPublicSecretHTTPBasicAuth]](../models/textqlrpcpublicsecrethttpbasicauth.md) | :heavy_minus_sign: | N/A | | +| `body` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | +| `content_type` | [Optional[models.TextqlRPCPublicSecretBodyContentType]](../models/textqlrpcpublicsecretbodycontenttype.md) | :heavy_minus_sign: | N/A | | +| `can_write` | *Optional[bool]* | :heavy_minus_sign: | N/A | | +| `access_type` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | +| `is_public` | *Optional[bool]* | :heavy_minus_sign: | N/A | | +| `test_url` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `name` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `auth_prefix` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `test_method` | *Optional[str]* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretapiaccessref.md b/docs/models/textqlrpcpublicsecretapiaccessref.md new file mode 100644 index 00000000..098f23f9 --- /dev/null +++ b/docs/models/textqlrpcpublicsecretapiaccessref.md @@ -0,0 +1,9 @@ +# TextqlRPCPublicSecretAPIAccessRef + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `api_access_key_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `revision` | [Optional[models.Revision]](../models/revision.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretapiprovider.md b/docs/models/textqlrpcpublicsecretapiprovider.md new file mode 100644 index 00000000..7484a068 --- /dev/null +++ b/docs/models/textqlrpcpublicsecretapiprovider.md @@ -0,0 +1,29 @@ +# TextqlRPCPublicSecretAPIProvider + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `name` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `icon_url` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `auth_type` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `docs_url` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `default_hosts` | List[*str*] | :heavy_minus_sign: | N/A | +| `token_label` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `auth_header` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `auth_prefix` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `oauth_supported` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `oauth_configured` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `member_authenticated` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `member_auth_display_name` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `env_var_fields` | List[[models.TextqlRPCPublicSecretEnvVarField](../models/textqlrpcpublicsecretenvvarfield.md)] | :heavy_minus_sign: | N/A | +| `oauth_has_default_urls` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `oauth_auth_url` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `oauth_token_url` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `oauth_scopes` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `oauth_use_pkce` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `oauth_token_auth_method` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `test_url` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretbodycontenttype.md b/docs/models/textqlrpcpublicsecretbodycontenttype.md new file mode 100644 index 00000000..540eac19 --- /dev/null +++ b/docs/models/textqlrpcpublicsecretbodycontenttype.md @@ -0,0 +1,19 @@ +# TextqlRPCPublicSecretBodyContentType + +## Example Usage + +```python +from textql_sdk.models import TextqlRPCPublicSecretBodyContentType + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: TextqlRPCPublicSecretBodyContentType = "BODY_CONTENT_TYPE_NONE" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"BODY_CONTENT_TYPE_NONE"` +- `"BODY_CONTENT_TYPE_JSON"` +- `"BODY_CONTENT_TYPE_FORM"` diff --git a/docs/models/textqlrpcpublicsecretdeleteapiaccesskeyrequest.md b/docs/models/textqlrpcpublicsecretdeleteapiaccesskeyrequest.md new file mode 100644 index 00000000..8e83bff1 --- /dev/null +++ b/docs/models/textqlrpcpublicsecretdeleteapiaccesskeyrequest.md @@ -0,0 +1,8 @@ +# TextqlRPCPublicSecretDeleteAPIAccessKeyRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretdeleteapiaccesskeyresponse.md b/docs/models/textqlrpcpublicsecretdeleteapiaccesskeyresponse.md new file mode 100644 index 00000000..b8ff06a3 --- /dev/null +++ b/docs/models/textqlrpcpublicsecretdeleteapiaccesskeyresponse.md @@ -0,0 +1,7 @@ +# TextqlRPCPublicSecretDeleteAPIAccessKeyResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretenvvarfield.md b/docs/models/textqlrpcpublicsecretenvvarfield.md new file mode 100644 index 00000000..d400746e --- /dev/null +++ b/docs/models/textqlrpcpublicsecretenvvarfield.md @@ -0,0 +1,13 @@ +# TextqlRPCPublicSecretEnvVarField + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `env_var` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `label` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `secret` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default_value` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `placeholder` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretgetapiaccesskeyrequest.md b/docs/models/textqlrpcpublicsecretgetapiaccesskeyrequest.md new file mode 100644 index 00000000..7702378e --- /dev/null +++ b/docs/models/textqlrpcpublicsecretgetapiaccesskeyrequest.md @@ -0,0 +1,8 @@ +# TextqlRPCPublicSecretGetAPIAccessKeyRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretgetapiaccesskeyresponse.md b/docs/models/textqlrpcpublicsecretgetapiaccesskeyresponse.md new file mode 100644 index 00000000..7579982c --- /dev/null +++ b/docs/models/textqlrpcpublicsecretgetapiaccesskeyresponse.md @@ -0,0 +1,8 @@ +# TextqlRPCPublicSecretGetAPIAccessKeyResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `api_access_key` | [Optional[models.TextqlRPCPublicSecretAPIAccessKey]](../models/textqlrpcpublicsecretapiaccesskey.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecrethttpbasicauth.md b/docs/models/textqlrpcpublicsecrethttpbasicauth.md new file mode 100644 index 00000000..e62ce2fe --- /dev/null +++ b/docs/models/textqlrpcpublicsecrethttpbasicauth.md @@ -0,0 +1,9 @@ +# TextqlRPCPublicSecretHTTPBasicAuth + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `username` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `password` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretlistapiaccesskeysrequest.md b/docs/models/textqlrpcpublicsecretlistapiaccesskeysrequest.md new file mode 100644 index 00000000..88fb1d5e --- /dev/null +++ b/docs/models/textqlrpcpublicsecretlistapiaccesskeysrequest.md @@ -0,0 +1,7 @@ +# TextqlRPCPublicSecretListAPIAccessKeysRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretlistapiaccesskeysresponse.md b/docs/models/textqlrpcpublicsecretlistapiaccesskeysresponse.md new file mode 100644 index 00000000..93d530fe --- /dev/null +++ b/docs/models/textqlrpcpublicsecretlistapiaccesskeysresponse.md @@ -0,0 +1,8 @@ +# TextqlRPCPublicSecretListAPIAccessKeysResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `api_access_keys` | List[[models.TextqlRPCPublicSecretAPIAccessKey](../models/textqlrpcpublicsecretapiaccesskey.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretlistapiprovidersrequest.md b/docs/models/textqlrpcpublicsecretlistapiprovidersrequest.md new file mode 100644 index 00000000..54ccba38 --- /dev/null +++ b/docs/models/textqlrpcpublicsecretlistapiprovidersrequest.md @@ -0,0 +1,7 @@ +# TextqlRPCPublicSecretListAPIProvidersRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretlistapiprovidersresponse.md b/docs/models/textqlrpcpublicsecretlistapiprovidersresponse.md new file mode 100644 index 00000000..32dc45b5 --- /dev/null +++ b/docs/models/textqlrpcpublicsecretlistapiprovidersresponse.md @@ -0,0 +1,8 @@ +# TextqlRPCPublicSecretListAPIProvidersResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `providers` | List[[models.TextqlRPCPublicSecretAPIProvider](../models/textqlrpcpublicsecretapiprovider.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecrettestapiaccesskeyrequest.md b/docs/models/textqlrpcpublicsecrettestapiaccesskeyrequest.md new file mode 100644 index 00000000..9c3d487b --- /dev/null +++ b/docs/models/textqlrpcpublicsecrettestapiaccesskeyrequest.md @@ -0,0 +1,8 @@ +# TextqlRPCPublicSecretTestAPIAccessKeyRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `ref` | [Optional[models.TextqlRPCPublicSecretAPIAccessRef]](../models/textqlrpcpublicsecretapiaccessref.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecrettestapiaccesskeyresponse.md b/docs/models/textqlrpcpublicsecrettestapiaccesskeyresponse.md new file mode 100644 index 00000000..d93e563c --- /dev/null +++ b/docs/models/textqlrpcpublicsecrettestapiaccesskeyresponse.md @@ -0,0 +1,10 @@ +# TextqlRPCPublicSecretTestAPIAccessKeyResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `success` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `message` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretupsertapiaccesskeyrequest.md b/docs/models/textqlrpcpublicsecretupsertapiaccesskeyrequest.md new file mode 100644 index 00000000..aa89a2d6 --- /dev/null +++ b/docs/models/textqlrpcpublicsecretupsertapiaccesskeyrequest.md @@ -0,0 +1,24 @@ +# TextqlRPCPublicSecretUpsertAPIAccessKeyRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ref` | [Optional[models.TextqlRPCPublicSecretAPIAccessRef]](../models/textqlrpcpublicsecretapiaccessref.md) | :heavy_minus_sign: | N/A | | +| `persist_to_db` | *Optional[bool]* | :heavy_minus_sign: | N/A | | +| `hosts` | List[*str*] | :heavy_minus_sign: | N/A | | +| `headers` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | +| `query_params` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | +| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | A Timestamp represents a point in time independent of any time zone or local
calendar, encoded as a count of seconds and fractions of seconds at
nanosecond resolution. The count is relative to an epoch at UTC midnight on
January 1, 1970, in the proleptic Gregorian calendar which extends the
Gregorian calendar backwards to year one.

All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
second table is needed for interpretation, using a [24-hour linear
smear](https://developers.google.com/time/smear).

The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
restricting to that range, we ensure that we can convert to and from [RFC
3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.

# Examples

Example 1: Compute Timestamp from POSIX `time()`.

Timestamp timestamp;
timestamp.set_seconds(time(NULL));
timestamp.set_nanos(0);

Example 2: Compute Timestamp from POSIX `gettimeofday()`.

struct timeval tv;
gettimeofday(&tv, NULL);

Timestamp timestamp;
timestamp.set_seconds(tv.tv_sec);
timestamp.set_nanos(tv.tv_usec * 1000);

Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.

FILETIME ft;
GetSystemTimeAsFileTime(&ft);
UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) \| ft.dwLowDateTime;

// A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
// is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
Timestamp timestamp;
timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));

Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.

long millis = System.currentTimeMillis();

Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
.setNanos((int) ((millis % 1000) * 1000000)).build();

Example 5: Compute Timestamp from Java `Instant.now()`.

Instant now = Instant.now();

Timestamp timestamp =
Timestamp.newBuilder().setSeconds(now.getEpochSecond())
.setNanos(now.getNano()).build();

Example 6: Compute Timestamp from current time in Python.

timestamp = Timestamp()
timestamp.GetCurrentTime()

# JSON Mapping

In JSON format, the Timestamp type is encoded as a string in the
[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
where {year} is always expressed using four digits while {month}, {day},
{hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
is required. A proto3 JSON serializer should always use UTC (as indicated by
"Z") when printing the Timestamp type and a proto3 JSON parser should be
able to accept both UTC and other timezones (as indicated by an offset).

For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
01:30 UTC on January 15, 2017.

In JavaScript, one can convert a Date object to this format using the
standard
[toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
method. In Python, a standard `datetime.datetime` object can be converted
to this format using
[`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
the Joda Time's [`ISODateTimeFormat.dateTime()`](
http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
) to obtain a formatter capable of generating timestamps in this format. | **Example 1:** 2023-01-15T01:30:15.01Z
**Example 2:** 2024-12-25T12:00:00Z | +| `provider` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `auth_value` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `auth_value_extra` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `auth_type` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `http_basic_auth` | [Optional[models.TextqlRPCPublicSecretHTTPBasicAuth]](../models/textqlrpcpublicsecrethttpbasicauth.md) | :heavy_minus_sign: | N/A | | +| `body` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | +| `content_type` | [Optional[models.TextqlRPCPublicSecretBodyContentType]](../models/textqlrpcpublicsecretbodycontenttype.md) | :heavy_minus_sign: | N/A | | +| `test_url` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `name` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `test_method` | *Optional[str]* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/textqlrpcpublicsecretupsertapiaccesskeyresponse.md b/docs/models/textqlrpcpublicsecretupsertapiaccesskeyresponse.md new file mode 100644 index 00000000..c56244f8 --- /dev/null +++ b/docs/models/textqlrpcpublicsecretupsertapiaccesskeyresponse.md @@ -0,0 +1,8 @@ +# TextqlRPCPublicSecretUpsertAPIAccessKeyResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `api_access_key` | [Optional[models.TextqlRPCPublicSecretAPIAccessKey]](../models/textqlrpcpublicsecretapiaccesskey.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index a7efc4ad..f18994bc 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -69,6 +69,7 @@ with Textql( | `feed_enabled` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `subagent_agent_ids` | List[*str*] | :heavy_minus_sign: | N/A | | `allow_ad_hoc_subagents` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | +| `methodology` | [Optional[models.TextqlRPCPublicChatMethodology]](../../models/textqlrpcpublicchatmethodology.md) | :heavy_minus_sign: | N/A | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -555,6 +556,7 @@ with Textql( | `subagent_agent_ids` | List[*str*] | :heavy_minus_sign: | N/A | | `update_subagents` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `allow_ad_hoc_subagents` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | +| `methodology` | [Optional[models.TextqlRPCPublicChatMethodology]](../../models/textqlrpcpublicchatmethodology.md) | :heavy_minus_sign: | N/A | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/secrets/README.md b/docs/sdks/secrets/README.md index 90581a6b..9a9623fe 100644 --- a/docs/sdks/secrets/README.md +++ b/docs/sdks/secrets/README.md @@ -4,11 +4,58 @@ ### Available Operations +* [delete_api_access_key](#delete_api_access_key) - DeleteApiAccessKey * [delete_secret](#delete_secret) - DeleteSecret +* [get_api_access_key](#get_api_access_key) - GetApiAccessKey * [get_members_with_secrets](#get_members_with_secrets) - GetMembersWithSecrets +* [list_api_access_keys](#list_api_access_keys) - ListApiAccessKeys +* [list_api_providers](#list_api_providers) - ListApiProviders * [list_secrets](#list_secrets) - ListSecrets * [put_secret](#put_secret) - PutSecret +* [test_api_access_key](#test_api_access_key) - TestApiAccessKey * [update](#update) - UpdateSecret +* [upsert_api_access_key](#upsert_api_access_key) - ---- API Connectors (deprecated) ---- + +## delete_api_access_key + +DeleteApiAccessKey + +### Example Usage + + +```python +import os +from textql_sdk import Textql + + +with Textql( + api_key=os.getenv("TEXTQL_API_KEY", ""), +) as textql: + + res = textql.secrets.delete_api_access_key() + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.SecretServiceDeleteAPIAccessKeyResponse](../../models/secretservicedeleteapiaccesskeyresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.TextqlDefaultError | 4XX, 5XX | \*/\* | ## delete_secret @@ -51,6 +98,47 @@ with Textql( | ------------------------- | ------------------------- | ------------------------- | | errors.TextqlDefaultError | 4XX, 5XX | \*/\* | +## get_api_access_key + +GetApiAccessKey + +### Example Usage + + +```python +import os +from textql_sdk import Textql + + +with Textql( + api_key=os.getenv("TEXTQL_API_KEY", ""), +) as textql: + + res = textql.secrets.get_api_access_key() + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.SecretServiceGetAPIAccessKeyResponse](../../models/secretservicegetapiaccesskeyresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.TextqlDefaultError | 4XX, 5XX | \*/\* | + ## get_members_with_secrets GetMembersWithSecrets @@ -92,6 +180,88 @@ with Textql( | ------------------------- | ------------------------- | ------------------------- | | errors.TextqlDefaultError | 4XX, 5XX | \*/\* | +## list_api_access_keys + +ListApiAccessKeys + +### Example Usage + + +```python +import os +from textql_sdk import Textql + + +with Textql( + api_key=os.getenv("TEXTQL_API_KEY", ""), +) as textql: + + res = textql.secrets.list_api_access_keys(body={}) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `body` | [models.TextqlRPCPublicSecretListAPIAccessKeysRequest](../../models/textqlrpcpublicsecretlistapiaccesskeysrequest.md) | :heavy_check_mark: | N/A | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.SecretServiceListAPIAccessKeysResponse](../../models/secretservicelistapiaccesskeysresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.TextqlDefaultError | 4XX, 5XX | \*/\* | + +## list_api_providers + +ListApiProviders + +### Example Usage + + +```python +import os +from textql_sdk import Textql + + +with Textql( + api_key=os.getenv("TEXTQL_API_KEY", ""), +) as textql: + + res = textql.secrets.list_api_providers(body={}) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `body` | [models.TextqlRPCPublicSecretListAPIProvidersRequest](../../models/textqlrpcpublicsecretlistapiprovidersrequest.md) | :heavy_check_mark: | N/A | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.SecretServiceListAPIProvidersResponse](../../models/secretservicelistapiprovidersresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.TextqlDefaultError | 4XX, 5XX | \*/\* | + ## list_secrets ListSecrets @@ -178,6 +348,47 @@ with Textql( | ------------------------- | ------------------------- | ------------------------- | | errors.TextqlDefaultError | 4XX, 5XX | \*/\* | +## test_api_access_key + +TestApiAccessKey + +### Example Usage + + +```python +import os +from textql_sdk import Textql + + +with Textql( + api_key=os.getenv("TEXTQL_API_KEY", ""), +) as textql: + + res = textql.secrets.test_api_access_key() + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `ref` | [Optional[models.TextqlRPCPublicSecretAPIAccessRef]](../../models/textqlrpcpublicsecretapiaccessref.md) | :heavy_minus_sign: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.SecretServiceTestAPIAccessKeyResponse](../../models/secretservicetestapiaccesskeyresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.TextqlDefaultError | 4XX, 5XX | \*/\* | + ## update UpdateSecret @@ -218,6 +429,64 @@ with Textql( ### Errors +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.TextqlDefaultError | 4XX, 5XX | \*/\* | + +## upsert_api_access_key + +---- API Connectors (deprecated) ---- + +### Example Usage + + +```python +import os +from textql_sdk import Textql +from textql_sdk.utils import parse_datetime + + +with Textql( + api_key=os.getenv("TEXTQL_API_KEY", ""), +) as textql: + + res = textql.secrets.upsert_api_access_key(expires_at=parse_datetime("2023-01-15T01:30:15.01Z")) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `connect_timeout_ms` | *Optional[float]* | :heavy_minus_sign: | N/A | | +| `ref` | [Optional[models.TextqlRPCPublicSecretAPIAccessRef]](../../models/textqlrpcpublicsecretapiaccessref.md) | :heavy_minus_sign: | N/A | | +| `persist_to_db` | *Optional[bool]* | :heavy_minus_sign: | N/A | | +| `hosts` | List[*str*] | :heavy_minus_sign: | N/A | | +| `headers` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | +| `query_params` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | +| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | A Timestamp represents a point in time independent of any time zone or local
calendar, encoded as a count of seconds and fractions of seconds at
nanosecond resolution. The count is relative to an epoch at UTC midnight on
January 1, 1970, in the proleptic Gregorian calendar which extends the
Gregorian calendar backwards to year one.

All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
second table is needed for interpretation, using a [24-hour linear
smear](https://developers.google.com/time/smear).

The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
restricting to that range, we ensure that we can convert to and from [RFC
3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.

# Examples

Example 1: Compute Timestamp from POSIX `time()`.

Timestamp timestamp;
timestamp.set_seconds(time(NULL));
timestamp.set_nanos(0);

Example 2: Compute Timestamp from POSIX `gettimeofday()`.

struct timeval tv;
gettimeofday(&tv, NULL);

Timestamp timestamp;
timestamp.set_seconds(tv.tv_sec);
timestamp.set_nanos(tv.tv_usec * 1000);

Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.

FILETIME ft;
GetSystemTimeAsFileTime(&ft);
UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) \| ft.dwLowDateTime;

// A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
// is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
Timestamp timestamp;
timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));

Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.

long millis = System.currentTimeMillis();

Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
.setNanos((int) ((millis % 1000) * 1000000)).build();

Example 5: Compute Timestamp from Java `Instant.now()`.

Instant now = Instant.now();

Timestamp timestamp =
Timestamp.newBuilder().setSeconds(now.getEpochSecond())
.setNanos(now.getNano()).build();

Example 6: Compute Timestamp from current time in Python.

timestamp = Timestamp()
timestamp.GetCurrentTime()

# JSON Mapping

In JSON format, the Timestamp type is encoded as a string in the
[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
where {year} is always expressed using four digits while {month}, {day},
{hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
is required. A proto3 JSON serializer should always use UTC (as indicated by
"Z") when printing the Timestamp type and a proto3 JSON parser should be
able to accept both UTC and other timezones (as indicated by an offset).

For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
01:30 UTC on January 15, 2017.

In JavaScript, one can convert a Date object to this format using the
standard
[toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
method. In Python, a standard `datetime.datetime` object can be converted
to this format using
[`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
the Joda Time's [`ISODateTimeFormat.dateTime()`](
http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
) to obtain a formatter capable of generating timestamps in this format. | **Example 1:** 2023-01-15T01:30:15.01Z
**Example 2:** 2024-12-25T12:00:00Z | +| `provider` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `auth_value` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `auth_value_extra` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `auth_type` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `http_basic_auth` | [Optional[models.TextqlRPCPublicSecretHTTPBasicAuth]](../../models/textqlrpcpublicsecrethttpbasicauth.md) | :heavy_minus_sign: | N/A | | +| `body` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | +| `content_type` | [Optional[models.TextqlRPCPublicSecretBodyContentType]](../../models/textqlrpcpublicsecretbodycontenttype.md) | :heavy_minus_sign: | N/A | | +| `test_url` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `name` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `test_method` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | + +### Response + +**[models.SecretServiceUpsertAPIAccessKeyResponse](../../models/secretserviceupsertapiaccesskeyresponse.md)** + +### Errors + | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | | errors.TextqlDefaultError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 60cfa721..d66bb38d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "textql-sdk" -version = "1.1.22" +version = "1.1.23" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Speakeasy" },] readme = "README-PYPI.md" diff --git a/src/textql_sdk/_version.py b/src/textql_sdk/_version.py index b0925db7..5a7c952e 100644 --- a/src/textql_sdk/_version.py +++ b/src/textql_sdk/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "textql-sdk" -__version__: str = "1.1.22" +__version__: str = "1.1.23" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.935.1" -__user_agent__: str = "speakeasy-sdk/python 1.1.22 2.935.1 1.0.0 textql-sdk" +__user_agent__: str = "speakeasy-sdk/python 1.1.23 2.935.1 1.0.0 textql-sdk" try: if __package__ is not None: diff --git a/src/textql_sdk/agents.py b/src/textql_sdk/agents.py index 779a86fc..877d317a 100644 --- a/src/textql_sdk/agents.py +++ b/src/textql_sdk/agents.py @@ -47,6 +47,7 @@ def create( feed_enabled: OptionalNullable[bool] = UNSET, subagent_agent_ids: Optional[Iterable[str]] = None, allow_ad_hoc_subagents: OptionalNullable[bool] = UNSET, + methodology: Optional[models.TextqlRPCPublicChatMethodology] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -81,6 +82,7 @@ def create( :param feed_enabled: :param subagent_agent_ids: :param allow_ad_hoc_subagents: + :param methodology: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -144,6 +146,7 @@ def create( subagent_agent_ids, Optional[List[str]] ), allow_ad_hoc_subagents=allow_ad_hoc_subagents, + methodology=methodology, ), ) @@ -252,6 +255,7 @@ async def create_async( feed_enabled: OptionalNullable[bool] = UNSET, subagent_agent_ids: Optional[Iterable[str]] = None, allow_ad_hoc_subagents: OptionalNullable[bool] = UNSET, + methodology: Optional[models.TextqlRPCPublicChatMethodology] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -286,6 +290,7 @@ async def create_async( :param feed_enabled: :param subagent_agent_ids: :param allow_ad_hoc_subagents: + :param methodology: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -349,6 +354,7 @@ async def create_async( subagent_agent_ids, Optional[List[str]] ), allow_ad_hoc_subagents=allow_ad_hoc_subagents, + methodology=methodology, ), ) @@ -2586,6 +2592,7 @@ def update( subagent_agent_ids: Optional[Iterable[str]] = None, update_subagents: OptionalNullable[bool] = UNSET, allow_ad_hoc_subagents: OptionalNullable[bool] = UNSET, + methodology: Optional[models.TextqlRPCPublicChatMethodology] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -2624,6 +2631,7 @@ def update( :param subagent_agent_ids: :param update_subagents: :param allow_ad_hoc_subagents: + :param methodology: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -2692,6 +2700,7 @@ def update( ), update_subagents=update_subagents, allow_ad_hoc_subagents=allow_ad_hoc_subagents, + methodology=methodology, ), ) @@ -2805,6 +2814,7 @@ async def update_async( subagent_agent_ids: Optional[Iterable[str]] = None, update_subagents: OptionalNullable[bool] = UNSET, allow_ad_hoc_subagents: OptionalNullable[bool] = UNSET, + methodology: Optional[models.TextqlRPCPublicChatMethodology] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -2843,6 +2853,7 @@ async def update_async( :param subagent_agent_ids: :param update_subagents: :param allow_ad_hoc_subagents: + :param methodology: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -2911,6 +2922,7 @@ async def update_async( ), update_subagents=update_subagents, allow_ad_hoc_subagents=allow_ad_hoc_subagents, + methodology=methodology, ), ) diff --git a/src/textql_sdk/models/__init__.py b/src/textql_sdk/models/__init__.py index 1cf76213..f4c9f700 100644 --- a/src/textql_sdk/models/__init__.py +++ b/src/textql_sdk/models/__init__.py @@ -2246,18 +2246,42 @@ ScimServiceRevokeScimTokenResponse, ScimServiceRevokeScimTokenResponseTypedDict, ) + from .secretservice_deleteapiaccesskeyop import ( + SecretServiceDeleteAPIAccessKeyRequest, + SecretServiceDeleteAPIAccessKeyRequestTypedDict, + SecretServiceDeleteAPIAccessKeyResponse, + SecretServiceDeleteAPIAccessKeyResponseTypedDict, + ) from .secretservice_deletesecretop import ( SecretServiceDeleteSecretRequest, SecretServiceDeleteSecretRequestTypedDict, SecretServiceDeleteSecretResponse, SecretServiceDeleteSecretResponseTypedDict, ) + from .secretservice_getapiaccesskeyop import ( + SecretServiceGetAPIAccessKeyRequest, + SecretServiceGetAPIAccessKeyRequestTypedDict, + SecretServiceGetAPIAccessKeyResponse, + SecretServiceGetAPIAccessKeyResponseTypedDict, + ) from .secretservice_getmemberswithsecretsop import ( SecretServiceGetMembersWithSecretsRequest, SecretServiceGetMembersWithSecretsRequestTypedDict, SecretServiceGetMembersWithSecretsResponse, SecretServiceGetMembersWithSecretsResponseTypedDict, ) + from .secretservice_listapiaccesskeysop import ( + SecretServiceListAPIAccessKeysRequest, + SecretServiceListAPIAccessKeysRequestTypedDict, + SecretServiceListAPIAccessKeysResponse, + SecretServiceListAPIAccessKeysResponseTypedDict, + ) + from .secretservice_listapiprovidersop import ( + SecretServiceListAPIProvidersRequest, + SecretServiceListAPIProvidersRequestTypedDict, + SecretServiceListAPIProvidersResponse, + SecretServiceListAPIProvidersResponseTypedDict, + ) from .secretservice_listsecretsop import ( SecretServiceListSecretsRequest, SecretServiceListSecretsRequestTypedDict, @@ -2270,12 +2294,24 @@ SecretServicePutSecretResponse, SecretServicePutSecretResponseTypedDict, ) + from .secretservice_testapiaccesskeyop import ( + SecretServiceTestAPIAccessKeyRequest, + SecretServiceTestAPIAccessKeyRequestTypedDict, + SecretServiceTestAPIAccessKeyResponse, + SecretServiceTestAPIAccessKeyResponseTypedDict, + ) from .secretservice_updatesecretop import ( SecretServiceUpdateSecretRequest, SecretServiceUpdateSecretRequestTypedDict, SecretServiceUpdateSecretResponse, SecretServiceUpdateSecretResponseTypedDict, ) + from .secretservice_upsertapiaccesskeyop import ( + SecretServiceUpsertAPIAccessKeyRequest, + SecretServiceUpsertAPIAccessKeyRequestTypedDict, + SecretServiceUpsertAPIAccessKeyResponse, + SecretServiceUpsertAPIAccessKeyResponseTypedDict, + ) from .security import Security, SecurityTypedDict from .settingsservice_checkmemberstatusop import ( SettingsServiceCheckMemberStatusRequest, @@ -7711,6 +7747,31 @@ TextqlRPCPublicScimScimToken, TextqlRPCPublicScimScimTokenTypedDict, ) + from .textql_rpc_public_secret_apiaccesskey import ( + TextqlRPCPublicSecretAPIAccessKey, + TextqlRPCPublicSecretAPIAccessKeyTypedDict, + ) + from .textql_rpc_public_secret_apiaccessref import ( + Revision, + RevisionTypedDict, + TextqlRPCPublicSecretAPIAccessRef, + TextqlRPCPublicSecretAPIAccessRefTypedDict, + ) + from .textql_rpc_public_secret_apiprovider import ( + TextqlRPCPublicSecretAPIProvider, + TextqlRPCPublicSecretAPIProviderTypedDict, + ) + from .textql_rpc_public_secret_bodycontenttype import ( + TextqlRPCPublicSecretBodyContentType, + ) + from .textql_rpc_public_secret_deleteapiaccesskeyrequest import ( + TextqlRPCPublicSecretDeleteAPIAccessKeyRequest, + TextqlRPCPublicSecretDeleteAPIAccessKeyRequestTypedDict, + ) + from .textql_rpc_public_secret_deleteapiaccesskeyresponse import ( + TextqlRPCPublicSecretDeleteAPIAccessKeyResponse, + TextqlRPCPublicSecretDeleteAPIAccessKeyResponseTypedDict, + ) from .textql_rpc_public_secret_deletesecretrequest import ( TextqlRPCPublicSecretDeleteSecretRequest, TextqlRPCPublicSecretDeleteSecretRequestTypedDict, @@ -7719,6 +7780,18 @@ TextqlRPCPublicSecretDeleteSecretResponse, TextqlRPCPublicSecretDeleteSecretResponseTypedDict, ) + from .textql_rpc_public_secret_envvarfield import ( + TextqlRPCPublicSecretEnvVarField, + TextqlRPCPublicSecretEnvVarFieldTypedDict, + ) + from .textql_rpc_public_secret_getapiaccesskeyrequest import ( + TextqlRPCPublicSecretGetAPIAccessKeyRequest, + TextqlRPCPublicSecretGetAPIAccessKeyRequestTypedDict, + ) + from .textql_rpc_public_secret_getapiaccesskeyresponse import ( + TextqlRPCPublicSecretGetAPIAccessKeyResponse, + TextqlRPCPublicSecretGetAPIAccessKeyResponseTypedDict, + ) from .textql_rpc_public_secret_getmemberswithsecretsrequest import ( TextqlRPCPublicSecretGetMembersWithSecretsRequest, TextqlRPCPublicSecretGetMembersWithSecretsRequestTypedDict, @@ -7727,6 +7800,26 @@ TextqlRPCPublicSecretGetMembersWithSecretsResponse, TextqlRPCPublicSecretGetMembersWithSecretsResponseTypedDict, ) + from .textql_rpc_public_secret_httpbasicauth import ( + TextqlRPCPublicSecretHTTPBasicAuth, + TextqlRPCPublicSecretHTTPBasicAuthTypedDict, + ) + from .textql_rpc_public_secret_listapiaccesskeysrequest import ( + TextqlRPCPublicSecretListAPIAccessKeysRequest, + TextqlRPCPublicSecretListAPIAccessKeysRequestTypedDict, + ) + from .textql_rpc_public_secret_listapiaccesskeysresponse import ( + TextqlRPCPublicSecretListAPIAccessKeysResponse, + TextqlRPCPublicSecretListAPIAccessKeysResponseTypedDict, + ) + from .textql_rpc_public_secret_listapiprovidersrequest import ( + TextqlRPCPublicSecretListAPIProvidersRequest, + TextqlRPCPublicSecretListAPIProvidersRequestTypedDict, + ) + from .textql_rpc_public_secret_listapiprovidersresponse import ( + TextqlRPCPublicSecretListAPIProvidersResponse, + TextqlRPCPublicSecretListAPIProvidersResponseTypedDict, + ) from .textql_rpc_public_secret_listsecretsrequest import ( TextqlRPCPublicSecretListSecretsRequest, TextqlRPCPublicSecretListSecretsRequestTypedDict, @@ -7747,6 +7840,14 @@ TextqlRPCPublicSecretSecret, TextqlRPCPublicSecretSecretTypedDict, ) + from .textql_rpc_public_secret_testapiaccesskeyrequest import ( + TextqlRPCPublicSecretTestAPIAccessKeyRequest, + TextqlRPCPublicSecretTestAPIAccessKeyRequestTypedDict, + ) + from .textql_rpc_public_secret_testapiaccesskeyresponse import ( + TextqlRPCPublicSecretTestAPIAccessKeyResponse, + TextqlRPCPublicSecretTestAPIAccessKeyResponseTypedDict, + ) from .textql_rpc_public_secret_updatesecretrequest import ( TextqlRPCPublicSecretUpdateSecretRequest, TextqlRPCPublicSecretUpdateSecretRequestTypedDict, @@ -7755,6 +7856,14 @@ TextqlRPCPublicSecretUpdateSecretResponse, TextqlRPCPublicSecretUpdateSecretResponseTypedDict, ) + from .textql_rpc_public_secret_upsertapiaccesskeyrequest import ( + TextqlRPCPublicSecretUpsertAPIAccessKeyRequest, + TextqlRPCPublicSecretUpsertAPIAccessKeyRequestTypedDict, + ) + from .textql_rpc_public_secret_upsertapiaccesskeyresponse import ( + TextqlRPCPublicSecretUpsertAPIAccessKeyResponse, + TextqlRPCPublicSecretUpsertAPIAccessKeyResponseTypedDict, + ) from .textql_rpc_public_settings_checkmemberstatusrequest import ( TextqlRPCPublicSettingsCheckMemberStatusRequest, TextqlRPCPublicSettingsCheckMemberStatusRequestTypedDict, @@ -9724,6 +9833,8 @@ "ReportCellTypedDict", "ReportHistoryCell", "ReportHistoryCellTypedDict", + "Revision", + "RevisionTypedDict", "RowCount", "RowCountTypedDict", "RunComplete", @@ -9854,14 +9965,30 @@ "ScimServiceRevokeScimTokenRequestTypedDict", "ScimServiceRevokeScimTokenResponse", "ScimServiceRevokeScimTokenResponseTypedDict", + "SecretServiceDeleteAPIAccessKeyRequest", + "SecretServiceDeleteAPIAccessKeyRequestTypedDict", + "SecretServiceDeleteAPIAccessKeyResponse", + "SecretServiceDeleteAPIAccessKeyResponseTypedDict", "SecretServiceDeleteSecretRequest", "SecretServiceDeleteSecretRequestTypedDict", "SecretServiceDeleteSecretResponse", "SecretServiceDeleteSecretResponseTypedDict", + "SecretServiceGetAPIAccessKeyRequest", + "SecretServiceGetAPIAccessKeyRequestTypedDict", + "SecretServiceGetAPIAccessKeyResponse", + "SecretServiceGetAPIAccessKeyResponseTypedDict", "SecretServiceGetMembersWithSecretsRequest", "SecretServiceGetMembersWithSecretsRequestTypedDict", "SecretServiceGetMembersWithSecretsResponse", "SecretServiceGetMembersWithSecretsResponseTypedDict", + "SecretServiceListAPIAccessKeysRequest", + "SecretServiceListAPIAccessKeysRequestTypedDict", + "SecretServiceListAPIAccessKeysResponse", + "SecretServiceListAPIAccessKeysResponseTypedDict", + "SecretServiceListAPIProvidersRequest", + "SecretServiceListAPIProvidersRequestTypedDict", + "SecretServiceListAPIProvidersResponse", + "SecretServiceListAPIProvidersResponseTypedDict", "SecretServiceListSecretsRequest", "SecretServiceListSecretsRequestTypedDict", "SecretServiceListSecretsResponse", @@ -9870,10 +9997,18 @@ "SecretServicePutSecretRequestTypedDict", "SecretServicePutSecretResponse", "SecretServicePutSecretResponseTypedDict", + "SecretServiceTestAPIAccessKeyRequest", + "SecretServiceTestAPIAccessKeyRequestTypedDict", + "SecretServiceTestAPIAccessKeyResponse", + "SecretServiceTestAPIAccessKeyResponseTypedDict", "SecretServiceUpdateSecretRequest", "SecretServiceUpdateSecretRequestTypedDict", "SecretServiceUpdateSecretResponse", "SecretServiceUpdateSecretResponseTypedDict", + "SecretServiceUpsertAPIAccessKeyRequest", + "SecretServiceUpsertAPIAccessKeyRequestTypedDict", + "SecretServiceUpsertAPIAccessKeyResponse", + "SecretServiceUpsertAPIAccessKeyResponseTypedDict", "Security", "SecurityTypedDict", "SettingsServiceCheckMemberStatusRequest", @@ -12599,14 +12734,41 @@ "TextqlRPCPublicScimScimOAuthClientTypedDict", "TextqlRPCPublicScimScimToken", "TextqlRPCPublicScimScimTokenTypedDict", + "TextqlRPCPublicSecretAPIAccessKey", + "TextqlRPCPublicSecretAPIAccessKeyTypedDict", + "TextqlRPCPublicSecretAPIAccessRef", + "TextqlRPCPublicSecretAPIAccessRefTypedDict", + "TextqlRPCPublicSecretAPIProvider", + "TextqlRPCPublicSecretAPIProviderTypedDict", + "TextqlRPCPublicSecretBodyContentType", + "TextqlRPCPublicSecretDeleteAPIAccessKeyRequest", + "TextqlRPCPublicSecretDeleteAPIAccessKeyRequestTypedDict", + "TextqlRPCPublicSecretDeleteAPIAccessKeyResponse", + "TextqlRPCPublicSecretDeleteAPIAccessKeyResponseTypedDict", "TextqlRPCPublicSecretDeleteSecretRequest", "TextqlRPCPublicSecretDeleteSecretRequestTypedDict", "TextqlRPCPublicSecretDeleteSecretResponse", "TextqlRPCPublicSecretDeleteSecretResponseTypedDict", + "TextqlRPCPublicSecretEnvVarField", + "TextqlRPCPublicSecretEnvVarFieldTypedDict", + "TextqlRPCPublicSecretGetAPIAccessKeyRequest", + "TextqlRPCPublicSecretGetAPIAccessKeyRequestTypedDict", + "TextqlRPCPublicSecretGetAPIAccessKeyResponse", + "TextqlRPCPublicSecretGetAPIAccessKeyResponseTypedDict", "TextqlRPCPublicSecretGetMembersWithSecretsRequest", "TextqlRPCPublicSecretGetMembersWithSecretsRequestTypedDict", "TextqlRPCPublicSecretGetMembersWithSecretsResponse", "TextqlRPCPublicSecretGetMembersWithSecretsResponseTypedDict", + "TextqlRPCPublicSecretHTTPBasicAuth", + "TextqlRPCPublicSecretHTTPBasicAuthTypedDict", + "TextqlRPCPublicSecretListAPIAccessKeysRequest", + "TextqlRPCPublicSecretListAPIAccessKeysRequestTypedDict", + "TextqlRPCPublicSecretListAPIAccessKeysResponse", + "TextqlRPCPublicSecretListAPIAccessKeysResponseTypedDict", + "TextqlRPCPublicSecretListAPIProvidersRequest", + "TextqlRPCPublicSecretListAPIProvidersRequestTypedDict", + "TextqlRPCPublicSecretListAPIProvidersResponse", + "TextqlRPCPublicSecretListAPIProvidersResponseTypedDict", "TextqlRPCPublicSecretListSecretsRequest", "TextqlRPCPublicSecretListSecretsRequestTypedDict", "TextqlRPCPublicSecretListSecretsResponse", @@ -12617,10 +12779,18 @@ "TextqlRPCPublicSecretPutSecretResponseTypedDict", "TextqlRPCPublicSecretSecret", "TextqlRPCPublicSecretSecretTypedDict", + "TextqlRPCPublicSecretTestAPIAccessKeyRequest", + "TextqlRPCPublicSecretTestAPIAccessKeyRequestTypedDict", + "TextqlRPCPublicSecretTestAPIAccessKeyResponse", + "TextqlRPCPublicSecretTestAPIAccessKeyResponseTypedDict", "TextqlRPCPublicSecretUpdateSecretRequest", "TextqlRPCPublicSecretUpdateSecretRequestTypedDict", "TextqlRPCPublicSecretUpdateSecretResponse", "TextqlRPCPublicSecretUpdateSecretResponseTypedDict", + "TextqlRPCPublicSecretUpsertAPIAccessKeyRequest", + "TextqlRPCPublicSecretUpsertAPIAccessKeyRequestTypedDict", + "TextqlRPCPublicSecretUpsertAPIAccessKeyResponse", + "TextqlRPCPublicSecretUpsertAPIAccessKeyResponseTypedDict", "TextqlRPCPublicSettingsCheckMemberStatusRequest", "TextqlRPCPublicSettingsCheckMemberStatusRequestTypedDict", "TextqlRPCPublicSettingsCheckMemberStatusResponse", @@ -14292,14 +14462,30 @@ "ScimServiceRevokeScimTokenRequestTypedDict": ".scimservice_revokescimtokenop", "ScimServiceRevokeScimTokenResponse": ".scimservice_revokescimtokenop", "ScimServiceRevokeScimTokenResponseTypedDict": ".scimservice_revokescimtokenop", + "SecretServiceDeleteAPIAccessKeyRequest": ".secretservice_deleteapiaccesskeyop", + "SecretServiceDeleteAPIAccessKeyRequestTypedDict": ".secretservice_deleteapiaccesskeyop", + "SecretServiceDeleteAPIAccessKeyResponse": ".secretservice_deleteapiaccesskeyop", + "SecretServiceDeleteAPIAccessKeyResponseTypedDict": ".secretservice_deleteapiaccesskeyop", "SecretServiceDeleteSecretRequest": ".secretservice_deletesecretop", "SecretServiceDeleteSecretRequestTypedDict": ".secretservice_deletesecretop", "SecretServiceDeleteSecretResponse": ".secretservice_deletesecretop", "SecretServiceDeleteSecretResponseTypedDict": ".secretservice_deletesecretop", + "SecretServiceGetAPIAccessKeyRequest": ".secretservice_getapiaccesskeyop", + "SecretServiceGetAPIAccessKeyRequestTypedDict": ".secretservice_getapiaccesskeyop", + "SecretServiceGetAPIAccessKeyResponse": ".secretservice_getapiaccesskeyop", + "SecretServiceGetAPIAccessKeyResponseTypedDict": ".secretservice_getapiaccesskeyop", "SecretServiceGetMembersWithSecretsRequest": ".secretservice_getmemberswithsecretsop", "SecretServiceGetMembersWithSecretsRequestTypedDict": ".secretservice_getmemberswithsecretsop", "SecretServiceGetMembersWithSecretsResponse": ".secretservice_getmemberswithsecretsop", "SecretServiceGetMembersWithSecretsResponseTypedDict": ".secretservice_getmemberswithsecretsop", + "SecretServiceListAPIAccessKeysRequest": ".secretservice_listapiaccesskeysop", + "SecretServiceListAPIAccessKeysRequestTypedDict": ".secretservice_listapiaccesskeysop", + "SecretServiceListAPIAccessKeysResponse": ".secretservice_listapiaccesskeysop", + "SecretServiceListAPIAccessKeysResponseTypedDict": ".secretservice_listapiaccesskeysop", + "SecretServiceListAPIProvidersRequest": ".secretservice_listapiprovidersop", + "SecretServiceListAPIProvidersRequestTypedDict": ".secretservice_listapiprovidersop", + "SecretServiceListAPIProvidersResponse": ".secretservice_listapiprovidersop", + "SecretServiceListAPIProvidersResponseTypedDict": ".secretservice_listapiprovidersop", "SecretServiceListSecretsRequest": ".secretservice_listsecretsop", "SecretServiceListSecretsRequestTypedDict": ".secretservice_listsecretsop", "SecretServiceListSecretsResponse": ".secretservice_listsecretsop", @@ -14308,10 +14494,18 @@ "SecretServicePutSecretRequestTypedDict": ".secretservice_putsecretop", "SecretServicePutSecretResponse": ".secretservice_putsecretop", "SecretServicePutSecretResponseTypedDict": ".secretservice_putsecretop", + "SecretServiceTestAPIAccessKeyRequest": ".secretservice_testapiaccesskeyop", + "SecretServiceTestAPIAccessKeyRequestTypedDict": ".secretservice_testapiaccesskeyop", + "SecretServiceTestAPIAccessKeyResponse": ".secretservice_testapiaccesskeyop", + "SecretServiceTestAPIAccessKeyResponseTypedDict": ".secretservice_testapiaccesskeyop", "SecretServiceUpdateSecretRequest": ".secretservice_updatesecretop", "SecretServiceUpdateSecretRequestTypedDict": ".secretservice_updatesecretop", "SecretServiceUpdateSecretResponse": ".secretservice_updatesecretop", "SecretServiceUpdateSecretResponseTypedDict": ".secretservice_updatesecretop", + "SecretServiceUpsertAPIAccessKeyRequest": ".secretservice_upsertapiaccesskeyop", + "SecretServiceUpsertAPIAccessKeyRequestTypedDict": ".secretservice_upsertapiaccesskeyop", + "SecretServiceUpsertAPIAccessKeyResponse": ".secretservice_upsertapiaccesskeyop", + "SecretServiceUpsertAPIAccessKeyResponseTypedDict": ".secretservice_upsertapiaccesskeyop", "Security": ".security", "SecurityTypedDict": ".security", "SettingsServiceCheckMemberStatusRequest": ".settingsservice_checkmemberstatusop", @@ -17387,14 +17581,43 @@ "TextqlRPCPublicScimScimOAuthClientTypedDict": ".textql_rpc_public_scim_scimoauthclient", "TextqlRPCPublicScimScimToken": ".textql_rpc_public_scim_scimtoken", "TextqlRPCPublicScimScimTokenTypedDict": ".textql_rpc_public_scim_scimtoken", + "TextqlRPCPublicSecretAPIAccessKey": ".textql_rpc_public_secret_apiaccesskey", + "TextqlRPCPublicSecretAPIAccessKeyTypedDict": ".textql_rpc_public_secret_apiaccesskey", + "Revision": ".textql_rpc_public_secret_apiaccessref", + "RevisionTypedDict": ".textql_rpc_public_secret_apiaccessref", + "TextqlRPCPublicSecretAPIAccessRef": ".textql_rpc_public_secret_apiaccessref", + "TextqlRPCPublicSecretAPIAccessRefTypedDict": ".textql_rpc_public_secret_apiaccessref", + "TextqlRPCPublicSecretAPIProvider": ".textql_rpc_public_secret_apiprovider", + "TextqlRPCPublicSecretAPIProviderTypedDict": ".textql_rpc_public_secret_apiprovider", + "TextqlRPCPublicSecretBodyContentType": ".textql_rpc_public_secret_bodycontenttype", + "TextqlRPCPublicSecretDeleteAPIAccessKeyRequest": ".textql_rpc_public_secret_deleteapiaccesskeyrequest", + "TextqlRPCPublicSecretDeleteAPIAccessKeyRequestTypedDict": ".textql_rpc_public_secret_deleteapiaccesskeyrequest", + "TextqlRPCPublicSecretDeleteAPIAccessKeyResponse": ".textql_rpc_public_secret_deleteapiaccesskeyresponse", + "TextqlRPCPublicSecretDeleteAPIAccessKeyResponseTypedDict": ".textql_rpc_public_secret_deleteapiaccesskeyresponse", "TextqlRPCPublicSecretDeleteSecretRequest": ".textql_rpc_public_secret_deletesecretrequest", "TextqlRPCPublicSecretDeleteSecretRequestTypedDict": ".textql_rpc_public_secret_deletesecretrequest", "TextqlRPCPublicSecretDeleteSecretResponse": ".textql_rpc_public_secret_deletesecretresponse", "TextqlRPCPublicSecretDeleteSecretResponseTypedDict": ".textql_rpc_public_secret_deletesecretresponse", + "TextqlRPCPublicSecretEnvVarField": ".textql_rpc_public_secret_envvarfield", + "TextqlRPCPublicSecretEnvVarFieldTypedDict": ".textql_rpc_public_secret_envvarfield", + "TextqlRPCPublicSecretGetAPIAccessKeyRequest": ".textql_rpc_public_secret_getapiaccesskeyrequest", + "TextqlRPCPublicSecretGetAPIAccessKeyRequestTypedDict": ".textql_rpc_public_secret_getapiaccesskeyrequest", + "TextqlRPCPublicSecretGetAPIAccessKeyResponse": ".textql_rpc_public_secret_getapiaccesskeyresponse", + "TextqlRPCPublicSecretGetAPIAccessKeyResponseTypedDict": ".textql_rpc_public_secret_getapiaccesskeyresponse", "TextqlRPCPublicSecretGetMembersWithSecretsRequest": ".textql_rpc_public_secret_getmemberswithsecretsrequest", "TextqlRPCPublicSecretGetMembersWithSecretsRequestTypedDict": ".textql_rpc_public_secret_getmemberswithsecretsrequest", "TextqlRPCPublicSecretGetMembersWithSecretsResponse": ".textql_rpc_public_secret_getmemberswithsecretsresponse", "TextqlRPCPublicSecretGetMembersWithSecretsResponseTypedDict": ".textql_rpc_public_secret_getmemberswithsecretsresponse", + "TextqlRPCPublicSecretHTTPBasicAuth": ".textql_rpc_public_secret_httpbasicauth", + "TextqlRPCPublicSecretHTTPBasicAuthTypedDict": ".textql_rpc_public_secret_httpbasicauth", + "TextqlRPCPublicSecretListAPIAccessKeysRequest": ".textql_rpc_public_secret_listapiaccesskeysrequest", + "TextqlRPCPublicSecretListAPIAccessKeysRequestTypedDict": ".textql_rpc_public_secret_listapiaccesskeysrequest", + "TextqlRPCPublicSecretListAPIAccessKeysResponse": ".textql_rpc_public_secret_listapiaccesskeysresponse", + "TextqlRPCPublicSecretListAPIAccessKeysResponseTypedDict": ".textql_rpc_public_secret_listapiaccesskeysresponse", + "TextqlRPCPublicSecretListAPIProvidersRequest": ".textql_rpc_public_secret_listapiprovidersrequest", + "TextqlRPCPublicSecretListAPIProvidersRequestTypedDict": ".textql_rpc_public_secret_listapiprovidersrequest", + "TextqlRPCPublicSecretListAPIProvidersResponse": ".textql_rpc_public_secret_listapiprovidersresponse", + "TextqlRPCPublicSecretListAPIProvidersResponseTypedDict": ".textql_rpc_public_secret_listapiprovidersresponse", "TextqlRPCPublicSecretListSecretsRequest": ".textql_rpc_public_secret_listsecretsrequest", "TextqlRPCPublicSecretListSecretsRequestTypedDict": ".textql_rpc_public_secret_listsecretsrequest", "TextqlRPCPublicSecretListSecretsResponse": ".textql_rpc_public_secret_listsecretsresponse", @@ -17405,10 +17628,18 @@ "TextqlRPCPublicSecretPutSecretResponseTypedDict": ".textql_rpc_public_secret_putsecretresponse", "TextqlRPCPublicSecretSecret": ".textql_rpc_public_secret_secret", "TextqlRPCPublicSecretSecretTypedDict": ".textql_rpc_public_secret_secret", + "TextqlRPCPublicSecretTestAPIAccessKeyRequest": ".textql_rpc_public_secret_testapiaccesskeyrequest", + "TextqlRPCPublicSecretTestAPIAccessKeyRequestTypedDict": ".textql_rpc_public_secret_testapiaccesskeyrequest", + "TextqlRPCPublicSecretTestAPIAccessKeyResponse": ".textql_rpc_public_secret_testapiaccesskeyresponse", + "TextqlRPCPublicSecretTestAPIAccessKeyResponseTypedDict": ".textql_rpc_public_secret_testapiaccesskeyresponse", "TextqlRPCPublicSecretUpdateSecretRequest": ".textql_rpc_public_secret_updatesecretrequest", "TextqlRPCPublicSecretUpdateSecretRequestTypedDict": ".textql_rpc_public_secret_updatesecretrequest", "TextqlRPCPublicSecretUpdateSecretResponse": ".textql_rpc_public_secret_updatesecretresponse", "TextqlRPCPublicSecretUpdateSecretResponseTypedDict": ".textql_rpc_public_secret_updatesecretresponse", + "TextqlRPCPublicSecretUpsertAPIAccessKeyRequest": ".textql_rpc_public_secret_upsertapiaccesskeyrequest", + "TextqlRPCPublicSecretUpsertAPIAccessKeyRequestTypedDict": ".textql_rpc_public_secret_upsertapiaccesskeyrequest", + "TextqlRPCPublicSecretUpsertAPIAccessKeyResponse": ".textql_rpc_public_secret_upsertapiaccesskeyresponse", + "TextqlRPCPublicSecretUpsertAPIAccessKeyResponseTypedDict": ".textql_rpc_public_secret_upsertapiaccesskeyresponse", "TextqlRPCPublicSettingsCheckMemberStatusRequest": ".textql_rpc_public_settings_checkmemberstatusrequest", "TextqlRPCPublicSettingsCheckMemberStatusRequestTypedDict": ".textql_rpc_public_settings_checkmemberstatusrequest", "TextqlRPCPublicSettingsCheckMemberStatusResponse": ".textql_rpc_public_settings_checkmemberstatusresponse", diff --git a/src/textql_sdk/models/secretservice_deleteapiaccesskeyop.py b/src/textql_sdk/models/secretservice_deleteapiaccesskeyop.py new file mode 100644 index 00000000..da7d26e4 --- /dev/null +++ b/src/textql_sdk/models/secretservice_deleteapiaccesskeyop.py @@ -0,0 +1,85 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .connect_error import ConnectError, ConnectErrorTypedDict +from .textql_rpc_public_secret_deleteapiaccesskeyrequest import ( + TextqlRPCPublicSecretDeleteAPIAccessKeyRequest, + TextqlRPCPublicSecretDeleteAPIAccessKeyRequestTypedDict, +) +from .textql_rpc_public_secret_deleteapiaccesskeyresponse import ( + TextqlRPCPublicSecretDeleteAPIAccessKeyResponse, + TextqlRPCPublicSecretDeleteAPIAccessKeyResponseTypedDict, +) +import pydantic +from pydantic import model_serializer +from pydantic.functional_validators import AfterValidator +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from textql_sdk.utils import ( + FieldMetadata, + HeaderMetadata, + RequestMetadata, + validate_const, +) +from typing import Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class SecretServiceDeleteAPIAccessKeyRequestTypedDict(TypedDict): + body: TextqlRPCPublicSecretDeleteAPIAccessKeyRequestTypedDict + connect_protocol_version: float + connect_timeout_ms: NotRequired[float] + + +class SecretServiceDeleteAPIAccessKeyRequest(BaseModel): + body: Annotated[ + TextqlRPCPublicSecretDeleteAPIAccessKeyRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + + connect_protocol_version: Annotated[ + Annotated[float, AfterValidator(validate_const(1))], + pydantic.Field(alias="Connect-Protocol-Version"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = 1 + + connect_timeout_ms: Annotated[ + Optional[float], + pydantic.Field(alias="Connect-Timeout-Ms"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["Connect-Timeout-Ms"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +SecretServiceDeleteAPIAccessKeyResponseTypedDict = TypeAliasType( + "SecretServiceDeleteAPIAccessKeyResponseTypedDict", + Union[ + TextqlRPCPublicSecretDeleteAPIAccessKeyResponseTypedDict, ConnectErrorTypedDict + ], +) + + +SecretServiceDeleteAPIAccessKeyResponse = TypeAliasType( + "SecretServiceDeleteAPIAccessKeyResponse", + Union[TextqlRPCPublicSecretDeleteAPIAccessKeyResponse, ConnectError], +) + + +try: + SecretServiceDeleteAPIAccessKeyRequest.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/secretservice_getapiaccesskeyop.py b/src/textql_sdk/models/secretservice_getapiaccesskeyop.py new file mode 100644 index 00000000..a5e421b3 --- /dev/null +++ b/src/textql_sdk/models/secretservice_getapiaccesskeyop.py @@ -0,0 +1,83 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .connect_error import ConnectError, ConnectErrorTypedDict +from .textql_rpc_public_secret_getapiaccesskeyrequest import ( + TextqlRPCPublicSecretGetAPIAccessKeyRequest, + TextqlRPCPublicSecretGetAPIAccessKeyRequestTypedDict, +) +from .textql_rpc_public_secret_getapiaccesskeyresponse import ( + TextqlRPCPublicSecretGetAPIAccessKeyResponse, + TextqlRPCPublicSecretGetAPIAccessKeyResponseTypedDict, +) +import pydantic +from pydantic import model_serializer +from pydantic.functional_validators import AfterValidator +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from textql_sdk.utils import ( + FieldMetadata, + HeaderMetadata, + RequestMetadata, + validate_const, +) +from typing import Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class SecretServiceGetAPIAccessKeyRequestTypedDict(TypedDict): + body: TextqlRPCPublicSecretGetAPIAccessKeyRequestTypedDict + connect_protocol_version: float + connect_timeout_ms: NotRequired[float] + + +class SecretServiceGetAPIAccessKeyRequest(BaseModel): + body: Annotated[ + TextqlRPCPublicSecretGetAPIAccessKeyRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + + connect_protocol_version: Annotated[ + Annotated[float, AfterValidator(validate_const(1))], + pydantic.Field(alias="Connect-Protocol-Version"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = 1 + + connect_timeout_ms: Annotated[ + Optional[float], + pydantic.Field(alias="Connect-Timeout-Ms"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["Connect-Timeout-Ms"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +SecretServiceGetAPIAccessKeyResponseTypedDict = TypeAliasType( + "SecretServiceGetAPIAccessKeyResponseTypedDict", + Union[TextqlRPCPublicSecretGetAPIAccessKeyResponseTypedDict, ConnectErrorTypedDict], +) + + +SecretServiceGetAPIAccessKeyResponse = TypeAliasType( + "SecretServiceGetAPIAccessKeyResponse", + Union[TextqlRPCPublicSecretGetAPIAccessKeyResponse, ConnectError], +) + + +try: + SecretServiceGetAPIAccessKeyRequest.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/secretservice_listapiaccesskeysop.py b/src/textql_sdk/models/secretservice_listapiaccesskeysop.py new file mode 100644 index 00000000..b5146384 --- /dev/null +++ b/src/textql_sdk/models/secretservice_listapiaccesskeysop.py @@ -0,0 +1,85 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .connect_error import ConnectError, ConnectErrorTypedDict +from .textql_rpc_public_secret_listapiaccesskeysrequest import ( + TextqlRPCPublicSecretListAPIAccessKeysRequest, + TextqlRPCPublicSecretListAPIAccessKeysRequestTypedDict, +) +from .textql_rpc_public_secret_listapiaccesskeysresponse import ( + TextqlRPCPublicSecretListAPIAccessKeysResponse, + TextqlRPCPublicSecretListAPIAccessKeysResponseTypedDict, +) +import pydantic +from pydantic import model_serializer +from pydantic.functional_validators import AfterValidator +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from textql_sdk.utils import ( + FieldMetadata, + HeaderMetadata, + RequestMetadata, + validate_const, +) +from typing import Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class SecretServiceListAPIAccessKeysRequestTypedDict(TypedDict): + body: TextqlRPCPublicSecretListAPIAccessKeysRequestTypedDict + connect_protocol_version: float + connect_timeout_ms: NotRequired[float] + + +class SecretServiceListAPIAccessKeysRequest(BaseModel): + body: Annotated[ + TextqlRPCPublicSecretListAPIAccessKeysRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + + connect_protocol_version: Annotated[ + Annotated[float, AfterValidator(validate_const(1))], + pydantic.Field(alias="Connect-Protocol-Version"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = 1 + + connect_timeout_ms: Annotated[ + Optional[float], + pydantic.Field(alias="Connect-Timeout-Ms"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["Connect-Timeout-Ms"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +SecretServiceListAPIAccessKeysResponseTypedDict = TypeAliasType( + "SecretServiceListAPIAccessKeysResponseTypedDict", + Union[ + TextqlRPCPublicSecretListAPIAccessKeysResponseTypedDict, ConnectErrorTypedDict + ], +) + + +SecretServiceListAPIAccessKeysResponse = TypeAliasType( + "SecretServiceListAPIAccessKeysResponse", + Union[TextqlRPCPublicSecretListAPIAccessKeysResponse, ConnectError], +) + + +try: + SecretServiceListAPIAccessKeysRequest.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/secretservice_listapiprovidersop.py b/src/textql_sdk/models/secretservice_listapiprovidersop.py new file mode 100644 index 00000000..6c42e61d --- /dev/null +++ b/src/textql_sdk/models/secretservice_listapiprovidersop.py @@ -0,0 +1,85 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .connect_error import ConnectError, ConnectErrorTypedDict +from .textql_rpc_public_secret_listapiprovidersrequest import ( + TextqlRPCPublicSecretListAPIProvidersRequest, + TextqlRPCPublicSecretListAPIProvidersRequestTypedDict, +) +from .textql_rpc_public_secret_listapiprovidersresponse import ( + TextqlRPCPublicSecretListAPIProvidersResponse, + TextqlRPCPublicSecretListAPIProvidersResponseTypedDict, +) +import pydantic +from pydantic import model_serializer +from pydantic.functional_validators import AfterValidator +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from textql_sdk.utils import ( + FieldMetadata, + HeaderMetadata, + RequestMetadata, + validate_const, +) +from typing import Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class SecretServiceListAPIProvidersRequestTypedDict(TypedDict): + body: TextqlRPCPublicSecretListAPIProvidersRequestTypedDict + connect_protocol_version: float + connect_timeout_ms: NotRequired[float] + + +class SecretServiceListAPIProvidersRequest(BaseModel): + body: Annotated[ + TextqlRPCPublicSecretListAPIProvidersRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + + connect_protocol_version: Annotated[ + Annotated[float, AfterValidator(validate_const(1))], + pydantic.Field(alias="Connect-Protocol-Version"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = 1 + + connect_timeout_ms: Annotated[ + Optional[float], + pydantic.Field(alias="Connect-Timeout-Ms"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["Connect-Timeout-Ms"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +SecretServiceListAPIProvidersResponseTypedDict = TypeAliasType( + "SecretServiceListAPIProvidersResponseTypedDict", + Union[ + TextqlRPCPublicSecretListAPIProvidersResponseTypedDict, ConnectErrorTypedDict + ], +) + + +SecretServiceListAPIProvidersResponse = TypeAliasType( + "SecretServiceListAPIProvidersResponse", + Union[TextqlRPCPublicSecretListAPIProvidersResponse, ConnectError], +) + + +try: + SecretServiceListAPIProvidersRequest.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/secretservice_testapiaccesskeyop.py b/src/textql_sdk/models/secretservice_testapiaccesskeyop.py new file mode 100644 index 00000000..15c5217b --- /dev/null +++ b/src/textql_sdk/models/secretservice_testapiaccesskeyop.py @@ -0,0 +1,85 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .connect_error import ConnectError, ConnectErrorTypedDict +from .textql_rpc_public_secret_testapiaccesskeyrequest import ( + TextqlRPCPublicSecretTestAPIAccessKeyRequest, + TextqlRPCPublicSecretTestAPIAccessKeyRequestTypedDict, +) +from .textql_rpc_public_secret_testapiaccesskeyresponse import ( + TextqlRPCPublicSecretTestAPIAccessKeyResponse, + TextqlRPCPublicSecretTestAPIAccessKeyResponseTypedDict, +) +import pydantic +from pydantic import model_serializer +from pydantic.functional_validators import AfterValidator +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from textql_sdk.utils import ( + FieldMetadata, + HeaderMetadata, + RequestMetadata, + validate_const, +) +from typing import Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class SecretServiceTestAPIAccessKeyRequestTypedDict(TypedDict): + body: TextqlRPCPublicSecretTestAPIAccessKeyRequestTypedDict + connect_protocol_version: float + connect_timeout_ms: NotRequired[float] + + +class SecretServiceTestAPIAccessKeyRequest(BaseModel): + body: Annotated[ + TextqlRPCPublicSecretTestAPIAccessKeyRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + + connect_protocol_version: Annotated[ + Annotated[float, AfterValidator(validate_const(1))], + pydantic.Field(alias="Connect-Protocol-Version"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = 1 + + connect_timeout_ms: Annotated[ + Optional[float], + pydantic.Field(alias="Connect-Timeout-Ms"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["Connect-Timeout-Ms"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +SecretServiceTestAPIAccessKeyResponseTypedDict = TypeAliasType( + "SecretServiceTestAPIAccessKeyResponseTypedDict", + Union[ + TextqlRPCPublicSecretTestAPIAccessKeyResponseTypedDict, ConnectErrorTypedDict + ], +) + + +SecretServiceTestAPIAccessKeyResponse = TypeAliasType( + "SecretServiceTestAPIAccessKeyResponse", + Union[TextqlRPCPublicSecretTestAPIAccessKeyResponse, ConnectError], +) + + +try: + SecretServiceTestAPIAccessKeyRequest.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/secretservice_upsertapiaccesskeyop.py b/src/textql_sdk/models/secretservice_upsertapiaccesskeyop.py new file mode 100644 index 00000000..73602f48 --- /dev/null +++ b/src/textql_sdk/models/secretservice_upsertapiaccesskeyop.py @@ -0,0 +1,85 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .connect_error import ConnectError, ConnectErrorTypedDict +from .textql_rpc_public_secret_upsertapiaccesskeyrequest import ( + TextqlRPCPublicSecretUpsertAPIAccessKeyRequest, + TextqlRPCPublicSecretUpsertAPIAccessKeyRequestTypedDict, +) +from .textql_rpc_public_secret_upsertapiaccesskeyresponse import ( + TextqlRPCPublicSecretUpsertAPIAccessKeyResponse, + TextqlRPCPublicSecretUpsertAPIAccessKeyResponseTypedDict, +) +import pydantic +from pydantic import model_serializer +from pydantic.functional_validators import AfterValidator +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from textql_sdk.utils import ( + FieldMetadata, + HeaderMetadata, + RequestMetadata, + validate_const, +) +from typing import Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class SecretServiceUpsertAPIAccessKeyRequestTypedDict(TypedDict): + body: TextqlRPCPublicSecretUpsertAPIAccessKeyRequestTypedDict + connect_protocol_version: float + connect_timeout_ms: NotRequired[float] + + +class SecretServiceUpsertAPIAccessKeyRequest(BaseModel): + body: Annotated[ + TextqlRPCPublicSecretUpsertAPIAccessKeyRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + + connect_protocol_version: Annotated[ + Annotated[float, AfterValidator(validate_const(1))], + pydantic.Field(alias="Connect-Protocol-Version"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = 1 + + connect_timeout_ms: Annotated[ + Optional[float], + pydantic.Field(alias="Connect-Timeout-Ms"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["Connect-Timeout-Ms"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +SecretServiceUpsertAPIAccessKeyResponseTypedDict = TypeAliasType( + "SecretServiceUpsertAPIAccessKeyResponseTypedDict", + Union[ + TextqlRPCPublicSecretUpsertAPIAccessKeyResponseTypedDict, ConnectErrorTypedDict + ], +) + + +SecretServiceUpsertAPIAccessKeyResponse = TypeAliasType( + "SecretServiceUpsertAPIAccessKeyResponse", + Union[TextqlRPCPublicSecretUpsertAPIAccessKeyResponse, ConnectError], +) + + +try: + SecretServiceUpsertAPIAccessKeyRequest.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/textql_rpc_public_agent_agent.py b/src/textql_sdk/models/textql_rpc_public_agent_agent.py index e3b78444..fae3e177 100644 --- a/src/textql_sdk/models/textql_rpc_public_agent_agent.py +++ b/src/textql_sdk/models/textql_rpc_public_agent_agent.py @@ -6,6 +6,7 @@ TextqlRPCPublicAgentSlackAgentTriggerTypedDict, ) from .textql_rpc_public_chat_llmmodel import TextqlRPCPublicChatLlmModel +from .textql_rpc_public_chat_methodology import TextqlRPCPublicChatMethodology from .textql_rpc_public_paradigm_paradigmoptions import ( TextqlRPCPublicParadigmParadigmOptions, TextqlRPCPublicParadigmParadigmOptionsTypedDict, @@ -160,6 +161,7 @@ class TextqlRPCPublicAgentAgentTypedDict(TypedDict): feed_enabled: NotRequired[bool] subagent_agent_ids: NotRequired[List[str]] allow_ad_hoc_subagents: NotRequired[bool] + methodology: NotRequired[TextqlRPCPublicChatMethodology] class TextqlRPCPublicAgentAgent(BaseModel): @@ -383,6 +385,8 @@ class TextqlRPCPublicAgentAgent(BaseModel): Optional[bool], pydantic.Field(alias="allowAdHocSubagents") ] = None + methodology: Optional[TextqlRPCPublicChatMethodology] = None + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( @@ -422,6 +426,7 @@ def serialize_model(self, handler): "feedEnabled", "subagentAgentIds", "allowAdHocSubagents", + "methodology", ] ) nullable_fields = set( diff --git a/src/textql_sdk/models/textql_rpc_public_agent_createagentrequest.py b/src/textql_sdk/models/textql_rpc_public_agent_createagentrequest.py index becd861d..4515f36b 100644 --- a/src/textql_sdk/models/textql_rpc_public_agent_createagentrequest.py +++ b/src/textql_sdk/models/textql_rpc_public_agent_createagentrequest.py @@ -6,6 +6,7 @@ TextqlRPCPublicAgentSlackAgentTriggerTypedDict, ) from .textql_rpc_public_chat_llmmodel import TextqlRPCPublicChatLlmModel +from .textql_rpc_public_chat_methodology import TextqlRPCPublicChatMethodology from .textql_rpc_public_paradigm_paradigmoptions import ( TextqlRPCPublicParadigmParadigmOptions, TextqlRPCPublicParadigmParadigmOptionsTypedDict, @@ -54,6 +55,7 @@ class TextqlRPCPublicAgentCreateAgentRequestTypedDict(TypedDict): feed_enabled: NotRequired[Nullable[bool]] subagent_agent_ids: NotRequired[List[str]] allow_ad_hoc_subagents: NotRequired[Nullable[bool]] + methodology: NotRequired[TextqlRPCPublicChatMethodology] class TextqlRPCPublicAgentCreateAgentRequest(BaseModel): @@ -154,6 +156,8 @@ class TextqlRPCPublicAgentCreateAgentRequest(BaseModel): OptionalNullable[bool], pydantic.Field(alias="allowAdHocSubagents") ] = UNSET + methodology: Optional[TextqlRPCPublicChatMethodology] = None + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( @@ -181,6 +185,7 @@ def serialize_model(self, handler): "feedEnabled", "subagentAgentIds", "allowAdHocSubagents", + "methodology", ] ) nullable_fields = set( diff --git a/src/textql_sdk/models/textql_rpc_public_agent_updateagentrequest.py b/src/textql_sdk/models/textql_rpc_public_agent_updateagentrequest.py index f6bf9199..ca4400f8 100644 --- a/src/textql_sdk/models/textql_rpc_public_agent_updateagentrequest.py +++ b/src/textql_sdk/models/textql_rpc_public_agent_updateagentrequest.py @@ -6,6 +6,7 @@ TextqlRPCPublicAgentSlackAgentTriggerTypedDict, ) from .textql_rpc_public_chat_llmmodel import TextqlRPCPublicChatLlmModel +from .textql_rpc_public_chat_methodology import TextqlRPCPublicChatMethodology from .textql_rpc_public_paradigm_paradigmoptions import ( TextqlRPCPublicParadigmParadigmOptions, TextqlRPCPublicParadigmParadigmOptionsTypedDict, @@ -57,6 +58,7 @@ class TextqlRPCPublicAgentUpdateAgentRequestTypedDict(TypedDict): subagent_agent_ids: NotRequired[List[str]] update_subagents: NotRequired[Nullable[bool]] allow_ad_hoc_subagents: NotRequired[Nullable[bool]] + methodology: NotRequired[TextqlRPCPublicChatMethodology] class TextqlRPCPublicAgentUpdateAgentRequest(BaseModel): @@ -171,6 +173,8 @@ class TextqlRPCPublicAgentUpdateAgentRequest(BaseModel): OptionalNullable[bool], pydantic.Field(alias="allowAdHocSubagents") ] = UNSET + methodology: Optional[TextqlRPCPublicChatMethodology] = None + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( @@ -203,6 +207,7 @@ def serialize_model(self, handler): "subagentAgentIds", "updateSubagents", "allowAdHocSubagents", + "methodology", ] ) nullable_fields = set( diff --git a/src/textql_sdk/models/textql_rpc_public_secret_apiaccesskey.py b/src/textql_sdk/models/textql_rpc_public_secret_apiaccesskey.py new file mode 100644 index 00000000..b2293202 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_apiaccesskey.py @@ -0,0 +1,713 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .textql_rpc_public_secret_bodycontenttype import ( + TextqlRPCPublicSecretBodyContentType, +) +from .textql_rpc_public_secret_httpbasicauth import ( + TextqlRPCPublicSecretHTTPBasicAuth, + TextqlRPCPublicSecretHTTPBasicAuthTypedDict, +) +from datetime import datetime +import pydantic +from pydantic import model_serializer +from textql_sdk.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from typing import Dict, List, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TextqlRPCPublicSecretAPIAccessKeyTypedDict(TypedDict): + id: NotRequired[str] + org_id: NotRequired[str] + member_id: NotRequired[str] + hosts: NotRequired[List[str]] + headers: NotRequired[Dict[str, str]] + query_params: NotRequired[Dict[str, str]] + description: NotRequired[str] + created_at: NotRequired[datetime] + r"""A Timestamp represents a point in time independent of any time zone or local + calendar, encoded as a count of seconds and fractions of seconds at + nanosecond resolution. The count is relative to an epoch at UTC midnight on + January 1, 1970, in the proleptic Gregorian calendar which extends the + Gregorian calendar backwards to year one. + + All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap + second table is needed for interpretation, using a [24-hour linear + smear](https://developers.google.com/time/smear). + + The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + restricting to that range, we ensure that we can convert to and from [RFC + 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + + # Examples + + Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + + Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + + Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + + Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + + Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + + # JSON Mapping + + In JSON format, the Timestamp type is encoded as a string in the + [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" + where {year} is always expressed using four digits while {month}, {day}, + {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone + is required. A proto3 JSON serializer should always use UTC (as indicated by + \"Z\") when printing the Timestamp type and a proto3 JSON parser should be + able to accept both UTC and other timezones (as indicated by an offset). + + For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past + 01:30 UTC on January 15, 2017. + + In JavaScript, one can convert a Date object to this format using the + standard + [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + method. In Python, a standard `datetime.datetime` object can be converted + to this format using + [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + the Joda Time's [`ISODateTimeFormat.dateTime()`]( + http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + ) to obtain a formatter capable of generating timestamps in this format. + """ + updated_at: NotRequired[datetime] + r"""A Timestamp represents a point in time independent of any time zone or local + calendar, encoded as a count of seconds and fractions of seconds at + nanosecond resolution. The count is relative to an epoch at UTC midnight on + January 1, 1970, in the proleptic Gregorian calendar which extends the + Gregorian calendar backwards to year one. + + All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap + second table is needed for interpretation, using a [24-hour linear + smear](https://developers.google.com/time/smear). + + The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + restricting to that range, we ensure that we can convert to and from [RFC + 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + + # Examples + + Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + + Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + + Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + + Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + + Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + + # JSON Mapping + + In JSON format, the Timestamp type is encoded as a string in the + [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" + where {year} is always expressed using four digits while {month}, {day}, + {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone + is required. A proto3 JSON serializer should always use UTC (as indicated by + \"Z\") when printing the Timestamp type and a proto3 JSON parser should be + able to accept both UTC and other timezones (as indicated by an offset). + + For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past + 01:30 UTC on January 15, 2017. + + In JavaScript, one can convert a Date object to this format using the + standard + [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + method. In Python, a standard `datetime.datetime` object can be converted + to this format using + [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + the Joda Time's [`ISODateTimeFormat.dateTime()`]( + http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + ) to obtain a formatter capable of generating timestamps in this format. + """ + expires_at: NotRequired[datetime] + r"""A Timestamp represents a point in time independent of any time zone or local + calendar, encoded as a count of seconds and fractions of seconds at + nanosecond resolution. The count is relative to an epoch at UTC midnight on + January 1, 1970, in the proleptic Gregorian calendar which extends the + Gregorian calendar backwards to year one. + + All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap + second table is needed for interpretation, using a [24-hour linear + smear](https://developers.google.com/time/smear). + + The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + restricting to that range, we ensure that we can convert to and from [RFC + 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + + # Examples + + Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + + Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + + Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + + Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + + Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + + # JSON Mapping + + In JSON format, the Timestamp type is encoded as a string in the + [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" + where {year} is always expressed using four digits while {month}, {day}, + {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone + is required. A proto3 JSON serializer should always use UTC (as indicated by + \"Z\") when printing the Timestamp type and a proto3 JSON parser should be + able to accept both UTC and other timezones (as indicated by an offset). + + For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past + 01:30 UTC on January 15, 2017. + + In JavaScript, one can convert a Date object to this format using the + standard + [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + method. In Python, a standard `datetime.datetime` object can be converted + to this format using + [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + the Joda Time's [`ISODateTimeFormat.dateTime()`]( + http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + ) to obtain a formatter capable of generating timestamps in this format. + """ + provider: NotRequired[str] + auth_type: NotRequired[str] + r"""\"token\", \"oauth_u2m\", \"oauth_per_member\" """ + member_oauth_authenticated: NotRequired[bool] + member_oauth_display_name: NotRequired[str] + http_basic_auth: NotRequired[TextqlRPCPublicSecretHTTPBasicAuthTypedDict] + body: NotRequired[Dict[str, str]] + content_type: NotRequired[TextqlRPCPublicSecretBodyContentType] + can_write: NotRequired[bool] + access_type: NotRequired[Nullable[str]] + is_public: NotRequired[bool] + test_url: NotRequired[str] + name: NotRequired[str] + auth_prefix: NotRequired[str] + test_method: NotRequired[str] + + +class TextqlRPCPublicSecretAPIAccessKey(BaseModel): + id: Optional[str] = None + + org_id: Annotated[Optional[str], pydantic.Field(alias="orgId")] = None + + member_id: Annotated[Optional[str], pydantic.Field(alias="memberId")] = None + + hosts: Optional[List[str]] = None + + headers: Optional[Dict[str, str]] = None + + query_params: Annotated[ + Optional[Dict[str, str]], pydantic.Field(alias="queryParams") + ] = None + + description: Optional[str] = None + + created_at: Annotated[Optional[datetime], pydantic.Field(alias="createdAt")] = None + r"""A Timestamp represents a point in time independent of any time zone or local + calendar, encoded as a count of seconds and fractions of seconds at + nanosecond resolution. The count is relative to an epoch at UTC midnight on + January 1, 1970, in the proleptic Gregorian calendar which extends the + Gregorian calendar backwards to year one. + + All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap + second table is needed for interpretation, using a [24-hour linear + smear](https://developers.google.com/time/smear). + + The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + restricting to that range, we ensure that we can convert to and from [RFC + 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + + # Examples + + Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + + Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + + Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + + Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + + Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + + # JSON Mapping + + In JSON format, the Timestamp type is encoded as a string in the + [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" + where {year} is always expressed using four digits while {month}, {day}, + {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone + is required. A proto3 JSON serializer should always use UTC (as indicated by + \"Z\") when printing the Timestamp type and a proto3 JSON parser should be + able to accept both UTC and other timezones (as indicated by an offset). + + For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past + 01:30 UTC on January 15, 2017. + + In JavaScript, one can convert a Date object to this format using the + standard + [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + method. In Python, a standard `datetime.datetime` object can be converted + to this format using + [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + the Joda Time's [`ISODateTimeFormat.dateTime()`]( + http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + ) to obtain a formatter capable of generating timestamps in this format. + """ + + updated_at: Annotated[Optional[datetime], pydantic.Field(alias="updatedAt")] = None + r"""A Timestamp represents a point in time independent of any time zone or local + calendar, encoded as a count of seconds and fractions of seconds at + nanosecond resolution. The count is relative to an epoch at UTC midnight on + January 1, 1970, in the proleptic Gregorian calendar which extends the + Gregorian calendar backwards to year one. + + All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap + second table is needed for interpretation, using a [24-hour linear + smear](https://developers.google.com/time/smear). + + The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + restricting to that range, we ensure that we can convert to and from [RFC + 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + + # Examples + + Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + + Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + + Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + + Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + + Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + + # JSON Mapping + + In JSON format, the Timestamp type is encoded as a string in the + [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" + where {year} is always expressed using four digits while {month}, {day}, + {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone + is required. A proto3 JSON serializer should always use UTC (as indicated by + \"Z\") when printing the Timestamp type and a proto3 JSON parser should be + able to accept both UTC and other timezones (as indicated by an offset). + + For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past + 01:30 UTC on January 15, 2017. + + In JavaScript, one can convert a Date object to this format using the + standard + [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + method. In Python, a standard `datetime.datetime` object can be converted + to this format using + [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + the Joda Time's [`ISODateTimeFormat.dateTime()`]( + http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + ) to obtain a formatter capable of generating timestamps in this format. + """ + + expires_at: Annotated[Optional[datetime], pydantic.Field(alias="expiresAt")] = None + r"""A Timestamp represents a point in time independent of any time zone or local + calendar, encoded as a count of seconds and fractions of seconds at + nanosecond resolution. The count is relative to an epoch at UTC midnight on + January 1, 1970, in the proleptic Gregorian calendar which extends the + Gregorian calendar backwards to year one. + + All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap + second table is needed for interpretation, using a [24-hour linear + smear](https://developers.google.com/time/smear). + + The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + restricting to that range, we ensure that we can convert to and from [RFC + 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + + # Examples + + Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + + Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + + Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + + Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + + Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + + # JSON Mapping + + In JSON format, the Timestamp type is encoded as a string in the + [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" + where {year} is always expressed using four digits while {month}, {day}, + {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone + is required. A proto3 JSON serializer should always use UTC (as indicated by + \"Z\") when printing the Timestamp type and a proto3 JSON parser should be + able to accept both UTC and other timezones (as indicated by an offset). + + For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past + 01:30 UTC on January 15, 2017. + + In JavaScript, one can convert a Date object to this format using the + standard + [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + method. In Python, a standard `datetime.datetime` object can be converted + to this format using + [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + the Joda Time's [`ISODateTimeFormat.dateTime()`]( + http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + ) to obtain a formatter capable of generating timestamps in this format. + """ + + provider: Optional[str] = None + + auth_type: Annotated[Optional[str], pydantic.Field(alias="authType")] = None + r"""\"token\", \"oauth_u2m\", \"oauth_per_member\" """ + + member_oauth_authenticated: Annotated[ + Optional[bool], pydantic.Field(alias="memberOauthAuthenticated") + ] = None + + member_oauth_display_name: Annotated[ + Optional[str], pydantic.Field(alias="memberOauthDisplayName") + ] = None + + http_basic_auth: Annotated[ + Optional[TextqlRPCPublicSecretHTTPBasicAuth], + pydantic.Field(alias="httpBasicAuth"), + ] = None + + body: Optional[Dict[str, str]] = None + + content_type: Annotated[ + Optional[TextqlRPCPublicSecretBodyContentType], + pydantic.Field(alias="contentType"), + ] = None + + can_write: Annotated[Optional[bool], pydantic.Field(alias="canWrite")] = None + + access_type: Annotated[ + OptionalNullable[str], pydantic.Field(alias="accessType") + ] = UNSET + + is_public: Annotated[Optional[bool], pydantic.Field(alias="isPublic")] = None + + test_url: Annotated[Optional[str], pydantic.Field(alias="testUrl")] = None + + name: Optional[str] = None + + auth_prefix: Annotated[Optional[str], pydantic.Field(alias="authPrefix")] = None + + test_method: Annotated[Optional[str], pydantic.Field(alias="testMethod")] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "id", + "orgId", + "memberId", + "hosts", + "headers", + "queryParams", + "description", + "createdAt", + "updatedAt", + "expiresAt", + "provider", + "authType", + "memberOauthAuthenticated", + "memberOauthDisplayName", + "httpBasicAuth", + "body", + "contentType", + "canWrite", + "accessType", + "isPublic", + "testUrl", + "name", + "authPrefix", + "testMethod", + ] + ) + nullable_fields = set(["accessType"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + + +try: + TextqlRPCPublicSecretAPIAccessKey.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_apiaccessref.py b/src/textql_sdk/models/textql_rpc_public_secret_apiaccessref.py new file mode 100644 index 00000000..b4b94fb3 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_apiaccessref.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +import pydantic +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +RevisionTypedDict = TypeAliasType("RevisionTypedDict", Union[int, str]) + + +Revision = TypeAliasType("Revision", Union[int, str]) + + +class TextqlRPCPublicSecretAPIAccessRefTypedDict(TypedDict): + api_access_key_id: NotRequired[str] + revision: NotRequired[RevisionTypedDict] + + +class TextqlRPCPublicSecretAPIAccessRef(BaseModel): + api_access_key_id: Annotated[ + Optional[str], pydantic.Field(alias="apiAccessKeyId") + ] = None + + revision: Optional[Revision] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["apiAccessKeyId", "revision"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TextqlRPCPublicSecretAPIAccessRef.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_apiprovider.py b/src/textql_sdk/models/textql_rpc_public_secret_apiprovider.py new file mode 100644 index 00000000..a35817f3 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_apiprovider.py @@ -0,0 +1,153 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .textql_rpc_public_secret_envvarfield import ( + TextqlRPCPublicSecretEnvVarField, + TextqlRPCPublicSecretEnvVarFieldTypedDict, +) +import pydantic +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import List, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TextqlRPCPublicSecretAPIProviderTypedDict(TypedDict): + id: NotRequired[str] + name: NotRequired[str] + icon_url: NotRequired[str] + auth_type: NotRequired[str] + description: NotRequired[str] + docs_url: NotRequired[str] + default_hosts: NotRequired[List[str]] + token_label: NotRequired[str] + auth_header: NotRequired[str] + auth_prefix: NotRequired[str] + oauth_supported: NotRequired[bool] + oauth_configured: NotRequired[bool] + member_authenticated: NotRequired[bool] + member_auth_display_name: NotRequired[str] + env_var_fields: NotRequired[List[TextqlRPCPublicSecretEnvVarFieldTypedDict]] + oauth_has_default_urls: NotRequired[bool] + oauth_auth_url: NotRequired[str] + oauth_token_url: NotRequired[str] + oauth_scopes: NotRequired[str] + oauth_use_pkce: NotRequired[bool] + oauth_token_auth_method: NotRequired[str] + test_url: NotRequired[str] + + +class TextqlRPCPublicSecretAPIProvider(BaseModel): + id: Optional[str] = None + + name: Optional[str] = None + + icon_url: Annotated[Optional[str], pydantic.Field(alias="iconUrl")] = None + + auth_type: Annotated[Optional[str], pydantic.Field(alias="authType")] = None + + description: Optional[str] = None + + docs_url: Annotated[Optional[str], pydantic.Field(alias="docsUrl")] = None + + default_hosts: Annotated[ + Optional[List[str]], pydantic.Field(alias="defaultHosts") + ] = None + + token_label: Annotated[Optional[str], pydantic.Field(alias="tokenLabel")] = None + + auth_header: Annotated[Optional[str], pydantic.Field(alias="authHeader")] = None + + auth_prefix: Annotated[Optional[str], pydantic.Field(alias="authPrefix")] = None + + oauth_supported: Annotated[ + Optional[bool], pydantic.Field(alias="oauthSupported") + ] = None + + oauth_configured: Annotated[ + Optional[bool], pydantic.Field(alias="oauthConfigured") + ] = None + + member_authenticated: Annotated[ + Optional[bool], pydantic.Field(alias="memberAuthenticated") + ] = None + + member_auth_display_name: Annotated[ + Optional[str], pydantic.Field(alias="memberAuthDisplayName") + ] = None + + env_var_fields: Annotated[ + Optional[List[TextqlRPCPublicSecretEnvVarField]], + pydantic.Field(alias="envVarFields"), + ] = None + + oauth_has_default_urls: Annotated[ + Optional[bool], pydantic.Field(alias="oauthHasDefaultUrls") + ] = None + + oauth_auth_url: Annotated[Optional[str], pydantic.Field(alias="oauthAuthUrl")] = ( + None + ) + + oauth_token_url: Annotated[Optional[str], pydantic.Field(alias="oauthTokenUrl")] = ( + None + ) + + oauth_scopes: Annotated[Optional[str], pydantic.Field(alias="oauthScopes")] = None + + oauth_use_pkce: Annotated[Optional[bool], pydantic.Field(alias="oauthUsePkce")] = ( + None + ) + + oauth_token_auth_method: Annotated[ + Optional[str], pydantic.Field(alias="oauthTokenAuthMethod") + ] = None + + test_url: Annotated[Optional[str], pydantic.Field(alias="testUrl")] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "id", + "name", + "iconUrl", + "authType", + "description", + "docsUrl", + "defaultHosts", + "tokenLabel", + "authHeader", + "authPrefix", + "oauthSupported", + "oauthConfigured", + "memberAuthenticated", + "memberAuthDisplayName", + "envVarFields", + "oauthHasDefaultUrls", + "oauthAuthUrl", + "oauthTokenUrl", + "oauthScopes", + "oauthUsePkce", + "oauthTokenAuthMethod", + "testUrl", + ] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TextqlRPCPublicSecretAPIProvider.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_bodycontenttype.py b/src/textql_sdk/models/textql_rpc_public_secret_bodycontenttype.py new file mode 100644 index 00000000..44ac8e84 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_bodycontenttype.py @@ -0,0 +1,15 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from textql_sdk.types import UnrecognizedStr +from typing import Literal, Union + + +TextqlRPCPublicSecretBodyContentType = Union[ + Literal[ + "BODY_CONTENT_TYPE_NONE", + "BODY_CONTENT_TYPE_JSON", + "BODY_CONTENT_TYPE_FORM", + ], + UnrecognizedStr, +] diff --git a/src/textql_sdk/models/textql_rpc_public_secret_deleteapiaccesskeyrequest.py b/src/textql_sdk/models/textql_rpc_public_secret_deleteapiaccesskeyrequest.py new file mode 100644 index 00000000..32c014f7 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_deleteapiaccesskeyrequest.py @@ -0,0 +1,31 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class TextqlRPCPublicSecretDeleteAPIAccessKeyRequestTypedDict(TypedDict): + id: NotRequired[str] + + +class TextqlRPCPublicSecretDeleteAPIAccessKeyRequest(BaseModel): + id: Optional[str] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/textql_sdk/models/textql_rpc_public_secret_deleteapiaccesskeyresponse.py b/src/textql_sdk/models/textql_rpc_public_secret_deleteapiaccesskeyresponse.py new file mode 100644 index 00000000..8c40740c --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_deleteapiaccesskeyresponse.py @@ -0,0 +1,13 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from textql_sdk.types import BaseModel +from typing_extensions import TypedDict + + +class TextqlRPCPublicSecretDeleteAPIAccessKeyResponseTypedDict(TypedDict): + pass + + +class TextqlRPCPublicSecretDeleteAPIAccessKeyResponse(BaseModel): + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_envvarfield.py b/src/textql_sdk/models/textql_rpc_public_secret_envvarfield.py new file mode 100644 index 00000000..e067a530 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_envvarfield.py @@ -0,0 +1,55 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +import pydantic +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TextqlRPCPublicSecretEnvVarFieldTypedDict(TypedDict): + env_var: NotRequired[str] + label: NotRequired[str] + required: NotRequired[bool] + secret: NotRequired[bool] + default_value: NotRequired[str] + placeholder: NotRequired[str] + + +class TextqlRPCPublicSecretEnvVarField(BaseModel): + env_var: Annotated[Optional[str], pydantic.Field(alias="envVar")] = None + + label: Optional[str] = None + + required: Optional[bool] = None + + secret: Optional[bool] = None + + default_value: Annotated[Optional[str], pydantic.Field(alias="defaultValue")] = None + + placeholder: Optional[str] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + ["envVar", "label", "required", "secret", "defaultValue", "placeholder"] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TextqlRPCPublicSecretEnvVarField.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_getapiaccesskeyrequest.py b/src/textql_sdk/models/textql_rpc_public_secret_getapiaccesskeyrequest.py new file mode 100644 index 00000000..8cd9c281 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_getapiaccesskeyrequest.py @@ -0,0 +1,31 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class TextqlRPCPublicSecretGetAPIAccessKeyRequestTypedDict(TypedDict): + id: NotRequired[str] + + +class TextqlRPCPublicSecretGetAPIAccessKeyRequest(BaseModel): + id: Optional[str] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/textql_sdk/models/textql_rpc_public_secret_getapiaccesskeyresponse.py b/src/textql_sdk/models/textql_rpc_public_secret_getapiaccesskeyresponse.py new file mode 100644 index 00000000..46a139fa --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_getapiaccesskeyresponse.py @@ -0,0 +1,45 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .textql_rpc_public_secret_apiaccesskey import ( + TextqlRPCPublicSecretAPIAccessKey, + TextqlRPCPublicSecretAPIAccessKeyTypedDict, +) +import pydantic +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TextqlRPCPublicSecretGetAPIAccessKeyResponseTypedDict(TypedDict): + api_access_key: NotRequired[TextqlRPCPublicSecretAPIAccessKeyTypedDict] + + +class TextqlRPCPublicSecretGetAPIAccessKeyResponse(BaseModel): + api_access_key: Annotated[ + Optional[TextqlRPCPublicSecretAPIAccessKey], + pydantic.Field(alias="apiAccessKey"), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["apiAccessKey"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TextqlRPCPublicSecretGetAPIAccessKeyResponse.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_httpbasicauth.py b/src/textql_sdk/models/textql_rpc_public_secret_httpbasicauth.py new file mode 100644 index 00000000..abb8058d --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_httpbasicauth.py @@ -0,0 +1,34 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class TextqlRPCPublicSecretHTTPBasicAuthTypedDict(TypedDict): + username: NotRequired[str] + password: NotRequired[str] + + +class TextqlRPCPublicSecretHTTPBasicAuth(BaseModel): + username: Optional[str] = None + + password: Optional[str] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["username", "password"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/textql_sdk/models/textql_rpc_public_secret_listapiaccesskeysrequest.py b/src/textql_sdk/models/textql_rpc_public_secret_listapiaccesskeysrequest.py new file mode 100644 index 00000000..33f417c5 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_listapiaccesskeysrequest.py @@ -0,0 +1,13 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from textql_sdk.types import BaseModel +from typing_extensions import TypedDict + + +class TextqlRPCPublicSecretListAPIAccessKeysRequestTypedDict(TypedDict): + pass + + +class TextqlRPCPublicSecretListAPIAccessKeysRequest(BaseModel): + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_listapiaccesskeysresponse.py b/src/textql_sdk/models/textql_rpc_public_secret_listapiaccesskeysresponse.py new file mode 100644 index 00000000..3a415f16 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_listapiaccesskeysresponse.py @@ -0,0 +1,45 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .textql_rpc_public_secret_apiaccesskey import ( + TextqlRPCPublicSecretAPIAccessKey, + TextqlRPCPublicSecretAPIAccessKeyTypedDict, +) +import pydantic +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import List, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TextqlRPCPublicSecretListAPIAccessKeysResponseTypedDict(TypedDict): + api_access_keys: NotRequired[List[TextqlRPCPublicSecretAPIAccessKeyTypedDict]] + + +class TextqlRPCPublicSecretListAPIAccessKeysResponse(BaseModel): + api_access_keys: Annotated[ + Optional[List[TextqlRPCPublicSecretAPIAccessKey]], + pydantic.Field(alias="apiAccessKeys"), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["apiAccessKeys"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TextqlRPCPublicSecretListAPIAccessKeysResponse.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_listapiprovidersrequest.py b/src/textql_sdk/models/textql_rpc_public_secret_listapiprovidersrequest.py new file mode 100644 index 00000000..ffeda69a --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_listapiprovidersrequest.py @@ -0,0 +1,13 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from textql_sdk.types import BaseModel +from typing_extensions import TypedDict + + +class TextqlRPCPublicSecretListAPIProvidersRequestTypedDict(TypedDict): + pass + + +class TextqlRPCPublicSecretListAPIProvidersRequest(BaseModel): + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_listapiprovidersresponse.py b/src/textql_sdk/models/textql_rpc_public_secret_listapiprovidersresponse.py new file mode 100644 index 00000000..92265ea1 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_listapiprovidersresponse.py @@ -0,0 +1,35 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .textql_rpc_public_secret_apiprovider import ( + TextqlRPCPublicSecretAPIProvider, + TextqlRPCPublicSecretAPIProviderTypedDict, +) +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import List, Optional +from typing_extensions import NotRequired, TypedDict + + +class TextqlRPCPublicSecretListAPIProvidersResponseTypedDict(TypedDict): + providers: NotRequired[List[TextqlRPCPublicSecretAPIProviderTypedDict]] + + +class TextqlRPCPublicSecretListAPIProvidersResponse(BaseModel): + providers: Optional[List[TextqlRPCPublicSecretAPIProvider]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["providers"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/textql_sdk/models/textql_rpc_public_secret_testapiaccesskeyrequest.py b/src/textql_sdk/models/textql_rpc_public_secret_testapiaccesskeyrequest.py new file mode 100644 index 00000000..3d8599a4 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_testapiaccesskeyrequest.py @@ -0,0 +1,35 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .textql_rpc_public_secret_apiaccessref import ( + TextqlRPCPublicSecretAPIAccessRef, + TextqlRPCPublicSecretAPIAccessRefTypedDict, +) +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class TextqlRPCPublicSecretTestAPIAccessKeyRequestTypedDict(TypedDict): + ref: NotRequired[TextqlRPCPublicSecretAPIAccessRefTypedDict] + + +class TextqlRPCPublicSecretTestAPIAccessKeyRequest(BaseModel): + ref: Optional[TextqlRPCPublicSecretAPIAccessRef] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["ref"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/textql_sdk/models/textql_rpc_public_secret_testapiaccesskeyresponse.py b/src/textql_sdk/models/textql_rpc_public_secret_testapiaccesskeyresponse.py new file mode 100644 index 00000000..be7e2867 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_testapiaccesskeyresponse.py @@ -0,0 +1,44 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +import pydantic +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TextqlRPCPublicSecretTestAPIAccessKeyResponseTypedDict(TypedDict): + success: NotRequired[bool] + status_code: NotRequired[int] + message: NotRequired[str] + + +class TextqlRPCPublicSecretTestAPIAccessKeyResponse(BaseModel): + success: Optional[bool] = None + + status_code: Annotated[Optional[int], pydantic.Field(alias="statusCode")] = None + + message: Optional[str] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["success", "statusCode", "message"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TextqlRPCPublicSecretTestAPIAccessKeyResponse.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_upsertapiaccesskeyrequest.py b/src/textql_sdk/models/textql_rpc_public_secret_upsertapiaccesskeyrequest.py new file mode 100644 index 00000000..5fec9ae5 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_upsertapiaccesskeyrequest.py @@ -0,0 +1,308 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .textql_rpc_public_secret_apiaccessref import ( + TextqlRPCPublicSecretAPIAccessRef, + TextqlRPCPublicSecretAPIAccessRefTypedDict, +) +from .textql_rpc_public_secret_bodycontenttype import ( + TextqlRPCPublicSecretBodyContentType, +) +from .textql_rpc_public_secret_httpbasicauth import ( + TextqlRPCPublicSecretHTTPBasicAuth, + TextqlRPCPublicSecretHTTPBasicAuthTypedDict, +) +from datetime import datetime +import pydantic +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import Dict, List, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TextqlRPCPublicSecretUpsertAPIAccessKeyRequestTypedDict(TypedDict): + ref: NotRequired[TextqlRPCPublicSecretAPIAccessRefTypedDict] + persist_to_db: NotRequired[bool] + hosts: NotRequired[List[str]] + headers: NotRequired[Dict[str, str]] + query_params: NotRequired[Dict[str, str]] + description: NotRequired[str] + expires_at: NotRequired[datetime] + r"""A Timestamp represents a point in time independent of any time zone or local + calendar, encoded as a count of seconds and fractions of seconds at + nanosecond resolution. The count is relative to an epoch at UTC midnight on + January 1, 1970, in the proleptic Gregorian calendar which extends the + Gregorian calendar backwards to year one. + + All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap + second table is needed for interpretation, using a [24-hour linear + smear](https://developers.google.com/time/smear). + + The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + restricting to that range, we ensure that we can convert to and from [RFC + 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + + # Examples + + Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + + Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + + Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + + Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + + Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + + # JSON Mapping + + In JSON format, the Timestamp type is encoded as a string in the + [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" + where {year} is always expressed using four digits while {month}, {day}, + {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone + is required. A proto3 JSON serializer should always use UTC (as indicated by + \"Z\") when printing the Timestamp type and a proto3 JSON parser should be + able to accept both UTC and other timezones (as indicated by an offset). + + For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past + 01:30 UTC on January 15, 2017. + + In JavaScript, one can convert a Date object to this format using the + standard + [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + method. In Python, a standard `datetime.datetime` object can be converted + to this format using + [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + the Joda Time's [`ISODateTimeFormat.dateTime()`]( + http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + ) to obtain a formatter capable of generating timestamps in this format. + """ + provider: NotRequired[str] + auth_value: NotRequired[str] + auth_value_extra: NotRequired[str] + auth_type: NotRequired[str] + http_basic_auth: NotRequired[TextqlRPCPublicSecretHTTPBasicAuthTypedDict] + body: NotRequired[Dict[str, str]] + content_type: NotRequired[TextqlRPCPublicSecretBodyContentType] + test_url: NotRequired[str] + name: NotRequired[str] + test_method: NotRequired[str] + + +class TextqlRPCPublicSecretUpsertAPIAccessKeyRequest(BaseModel): + ref: Optional[TextqlRPCPublicSecretAPIAccessRef] = None + + persist_to_db: Annotated[Optional[bool], pydantic.Field(alias="persistToDb")] = None + + hosts: Optional[List[str]] = None + + headers: Optional[Dict[str, str]] = None + + query_params: Annotated[ + Optional[Dict[str, str]], pydantic.Field(alias="queryParams") + ] = None + + description: Optional[str] = None + + expires_at: Annotated[Optional[datetime], pydantic.Field(alias="expiresAt")] = None + r"""A Timestamp represents a point in time independent of any time zone or local + calendar, encoded as a count of seconds and fractions of seconds at + nanosecond resolution. The count is relative to an epoch at UTC midnight on + January 1, 1970, in the proleptic Gregorian calendar which extends the + Gregorian calendar backwards to year one. + + All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap + second table is needed for interpretation, using a [24-hour linear + smear](https://developers.google.com/time/smear). + + The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + restricting to that range, we ensure that we can convert to and from [RFC + 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + + # Examples + + Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + + Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + + Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + + Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + + Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + + # JSON Mapping + + In JSON format, the Timestamp type is encoded as a string in the + [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" + where {year} is always expressed using four digits while {month}, {day}, + {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone + is required. A proto3 JSON serializer should always use UTC (as indicated by + \"Z\") when printing the Timestamp type and a proto3 JSON parser should be + able to accept both UTC and other timezones (as indicated by an offset). + + For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past + 01:30 UTC on January 15, 2017. + + In JavaScript, one can convert a Date object to this format using the + standard + [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + method. In Python, a standard `datetime.datetime` object can be converted + to this format using + [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + the Joda Time's [`ISODateTimeFormat.dateTime()`]( + http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + ) to obtain a formatter capable of generating timestamps in this format. + """ + + provider: Optional[str] = None + + auth_value: Annotated[Optional[str], pydantic.Field(alias="authValue")] = None + + auth_value_extra: Annotated[ + Optional[str], pydantic.Field(alias="authValueExtra") + ] = None + + auth_type: Annotated[Optional[str], pydantic.Field(alias="authType")] = None + + http_basic_auth: Annotated[ + Optional[TextqlRPCPublicSecretHTTPBasicAuth], + pydantic.Field(alias="httpBasicAuth"), + ] = None + + body: Optional[Dict[str, str]] = None + + content_type: Annotated[ + Optional[TextqlRPCPublicSecretBodyContentType], + pydantic.Field(alias="contentType"), + ] = None + + test_url: Annotated[Optional[str], pydantic.Field(alias="testUrl")] = None + + name: Optional[str] = None + + test_method: Annotated[Optional[str], pydantic.Field(alias="testMethod")] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "ref", + "persistToDb", + "hosts", + "headers", + "queryParams", + "description", + "expiresAt", + "provider", + "authValue", + "authValueExtra", + "authType", + "httpBasicAuth", + "body", + "contentType", + "testUrl", + "name", + "testMethod", + ] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TextqlRPCPublicSecretUpsertAPIAccessKeyRequest.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/models/textql_rpc_public_secret_upsertapiaccesskeyresponse.py b/src/textql_sdk/models/textql_rpc_public_secret_upsertapiaccesskeyresponse.py new file mode 100644 index 00000000..407df4a8 --- /dev/null +++ b/src/textql_sdk/models/textql_rpc_public_secret_upsertapiaccesskeyresponse.py @@ -0,0 +1,45 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .textql_rpc_public_secret_apiaccesskey import ( + TextqlRPCPublicSecretAPIAccessKey, + TextqlRPCPublicSecretAPIAccessKeyTypedDict, +) +import pydantic +from pydantic import model_serializer +from textql_sdk.types import BaseModel, UNSET_SENTINEL +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TextqlRPCPublicSecretUpsertAPIAccessKeyResponseTypedDict(TypedDict): + api_access_key: NotRequired[TextqlRPCPublicSecretAPIAccessKeyTypedDict] + + +class TextqlRPCPublicSecretUpsertAPIAccessKeyResponse(BaseModel): + api_access_key: Annotated[ + Optional[TextqlRPCPublicSecretAPIAccessKey], + pydantic.Field(alias="apiAccessKey"), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["apiAccessKey"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TextqlRPCPublicSecretUpsertAPIAccessKeyResponse.model_rebuild() +except NameError: + pass diff --git a/src/textql_sdk/secrets.py b/src/textql_sdk/secrets.py index 8741e23f..633b61f8 100644 --- a/src/textql_sdk/secrets.py +++ b/src/textql_sdk/secrets.py @@ -1,29 +1,30 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK +from datetime import datetime from textql_sdk import errors, models, utils from textql_sdk._hooks import HookContext from textql_sdk.types import OptionalNullable, UNSET from textql_sdk.utils import get_security_from_env from textql_sdk.utils.unmarshal_json_response import unmarshal_json_response -from typing import Mapping, Optional, Union +from typing import Dict, Iterable, List, Mapping, Optional, Union class Secrets(BaseSDK): - def delete_secret( + def delete_api_access_key( self, *, connect_timeout_ms: Optional[float] = None, - name: Optional[str] = None, + id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SecretServiceDeleteSecretResponse: - r"""DeleteSecret + ) -> models.SecretServiceDeleteAPIAccessKeyResponse: + r"""DeleteApiAccessKey :param connect_timeout_ms: - :param name: + :param id: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -39,16 +40,16 @@ def delete_secret( else: base_url = self._get_url(base_url, url_variables) - request = models.SecretServiceDeleteSecretRequest( + request = models.SecretServiceDeleteAPIAccessKeyRequest( connect_timeout_ms=connect_timeout_ms, - body=models.TextqlRPCPublicSecretDeleteSecretRequest( - name=name, + body=models.TextqlRPCPublicSecretDeleteAPIAccessKeyRequest( + id=id, ), ) req = self._build_request( method="POST", - path="/textql.rpc.public.secret.SecretService/DeleteSecret", + path="/textql.rpc.public.secret.SecretService/DeleteApiAccessKey", base_url=base_url, url_variables=url_variables, request=request, @@ -64,7 +65,7 @@ def delete_secret( False, False, "json", - models.TextqlRPCPublicSecretDeleteSecretRequest, + models.TextqlRPCPublicSecretDeleteAPIAccessKeyRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -82,7 +83,7 @@ def delete_secret( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="SecretService_DeleteSecret", + operation_id="SecretService_DeleteApiAccessKey", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -97,7 +98,7 @@ def delete_secret( if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.TextqlRPCPublicSecretDeleteSecretResponse, http_res + models.TextqlRPCPublicSecretDeleteAPIAccessKeyResponse, http_res ) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) @@ -114,20 +115,20 @@ def delete_secret( raise errors.TextqlDefaultError("Unexpected response received", http_res) - async def delete_secret_async( + async def delete_api_access_key_async( self, *, connect_timeout_ms: Optional[float] = None, - name: Optional[str] = None, + id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SecretServiceDeleteSecretResponse: - r"""DeleteSecret + ) -> models.SecretServiceDeleteAPIAccessKeyResponse: + r"""DeleteApiAccessKey :param connect_timeout_ms: - :param name: + :param id: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -143,16 +144,16 @@ async def delete_secret_async( else: base_url = self._get_url(base_url, url_variables) - request = models.SecretServiceDeleteSecretRequest( + request = models.SecretServiceDeleteAPIAccessKeyRequest( connect_timeout_ms=connect_timeout_ms, - body=models.TextqlRPCPublicSecretDeleteSecretRequest( - name=name, + body=models.TextqlRPCPublicSecretDeleteAPIAccessKeyRequest( + id=id, ), ) req = self._build_request_async( method="POST", - path="/textql.rpc.public.secret.SecretService/DeleteSecret", + path="/textql.rpc.public.secret.SecretService/DeleteApiAccessKey", base_url=base_url, url_variables=url_variables, request=request, @@ -168,7 +169,7 @@ async def delete_secret_async( False, False, "json", - models.TextqlRPCPublicSecretDeleteSecretRequest, + models.TextqlRPCPublicSecretDeleteAPIAccessKeyRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -186,7 +187,7 @@ async def delete_secret_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="SecretService_DeleteSecret", + operation_id="SecretService_DeleteApiAccessKey", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -201,7 +202,7 @@ async def delete_secret_async( if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.TextqlRPCPublicSecretDeleteSecretResponse, http_res + models.TextqlRPCPublicSecretDeleteAPIAccessKeyResponse, http_res ) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) @@ -218,23 +219,20 @@ async def delete_secret_async( raise errors.TextqlDefaultError("Unexpected response received", http_res) - def get_members_with_secrets( + def delete_secret( self, *, - body: Union[ - models.TextqlRPCPublicSecretGetMembersWithSecretsRequest, - models.TextqlRPCPublicSecretGetMembersWithSecretsRequestTypedDict, - ], connect_timeout_ms: Optional[float] = None, + name: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SecretServiceGetMembersWithSecretsResponse: - r"""GetMembersWithSecrets + ) -> models.SecretServiceDeleteSecretResponse: + r"""DeleteSecret - :param body: :param connect_timeout_ms: + :param name: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -250,16 +248,16 @@ def get_members_with_secrets( else: base_url = self._get_url(base_url, url_variables) - request = models.SecretServiceGetMembersWithSecretsRequest( + request = models.SecretServiceDeleteSecretRequest( connect_timeout_ms=connect_timeout_ms, - body=utils.get_pydantic_model( - body, models.TextqlRPCPublicSecretGetMembersWithSecretsRequest + body=models.TextqlRPCPublicSecretDeleteSecretRequest( + name=name, ), ) req = self._build_request( method="POST", - path="/textql.rpc.public.secret.SecretService/GetMembersWithSecrets", + path="/textql.rpc.public.secret.SecretService/DeleteSecret", base_url=base_url, url_variables=url_variables, request=request, @@ -275,7 +273,7 @@ def get_members_with_secrets( False, False, "json", - models.TextqlRPCPublicSecretGetMembersWithSecretsRequest, + models.TextqlRPCPublicSecretDeleteSecretRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -293,7 +291,7 @@ def get_members_with_secrets( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="SecretService_GetMembersWithSecrets", + operation_id="SecretService_DeleteSecret", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -308,7 +306,7 @@ def get_members_with_secrets( if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.TextqlRPCPublicSecretGetMembersWithSecretsResponse, http_res + models.TextqlRPCPublicSecretDeleteSecretResponse, http_res ) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) @@ -325,23 +323,20 @@ def get_members_with_secrets( raise errors.TextqlDefaultError("Unexpected response received", http_res) - async def get_members_with_secrets_async( + async def delete_secret_async( self, *, - body: Union[ - models.TextqlRPCPublicSecretGetMembersWithSecretsRequest, - models.TextqlRPCPublicSecretGetMembersWithSecretsRequestTypedDict, - ], connect_timeout_ms: Optional[float] = None, + name: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SecretServiceGetMembersWithSecretsResponse: - r"""GetMembersWithSecrets + ) -> models.SecretServiceDeleteSecretResponse: + r"""DeleteSecret - :param body: :param connect_timeout_ms: + :param name: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -357,16 +352,16 @@ async def get_members_with_secrets_async( else: base_url = self._get_url(base_url, url_variables) - request = models.SecretServiceGetMembersWithSecretsRequest( + request = models.SecretServiceDeleteSecretRequest( connect_timeout_ms=connect_timeout_ms, - body=utils.get_pydantic_model( - body, models.TextqlRPCPublicSecretGetMembersWithSecretsRequest + body=models.TextqlRPCPublicSecretDeleteSecretRequest( + name=name, ), ) req = self._build_request_async( method="POST", - path="/textql.rpc.public.secret.SecretService/GetMembersWithSecrets", + path="/textql.rpc.public.secret.SecretService/DeleteSecret", base_url=base_url, url_variables=url_variables, request=request, @@ -382,7 +377,7 @@ async def get_members_with_secrets_async( False, False, "json", - models.TextqlRPCPublicSecretGetMembersWithSecretsRequest, + models.TextqlRPCPublicSecretDeleteSecretRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -400,7 +395,7 @@ async def get_members_with_secrets_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="SecretService_GetMembersWithSecrets", + operation_id="SecretService_DeleteSecret", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -415,7 +410,7 @@ async def get_members_with_secrets_async( if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.TextqlRPCPublicSecretGetMembersWithSecretsResponse, http_res + models.TextqlRPCPublicSecretDeleteSecretResponse, http_res ) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) @@ -432,23 +427,20 @@ async def get_members_with_secrets_async( raise errors.TextqlDefaultError("Unexpected response received", http_res) - def list_secrets( + def get_api_access_key( self, *, - body: Union[ - models.TextqlRPCPublicSecretListSecretsRequest, - models.TextqlRPCPublicSecretListSecretsRequestTypedDict, - ], connect_timeout_ms: Optional[float] = None, + id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SecretServiceListSecretsResponse: - r"""ListSecrets + ) -> models.SecretServiceGetAPIAccessKeyResponse: + r"""GetApiAccessKey - :param body: :param connect_timeout_ms: + :param id: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -464,16 +456,16 @@ def list_secrets( else: base_url = self._get_url(base_url, url_variables) - request = models.SecretServiceListSecretsRequest( + request = models.SecretServiceGetAPIAccessKeyRequest( connect_timeout_ms=connect_timeout_ms, - body=utils.get_pydantic_model( - body, models.TextqlRPCPublicSecretListSecretsRequest + body=models.TextqlRPCPublicSecretGetAPIAccessKeyRequest( + id=id, ), ) req = self._build_request( method="POST", - path="/textql.rpc.public.secret.SecretService/ListSecrets", + path="/textql.rpc.public.secret.SecretService/GetApiAccessKey", base_url=base_url, url_variables=url_variables, request=request, @@ -489,7 +481,7 @@ def list_secrets( False, False, "json", - models.TextqlRPCPublicSecretListSecretsRequest, + models.TextqlRPCPublicSecretGetAPIAccessKeyRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -507,7 +499,7 @@ def list_secrets( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="SecretService_ListSecrets", + operation_id="SecretService_GetApiAccessKey", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -522,7 +514,7 @@ def list_secrets( if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.TextqlRPCPublicSecretListSecretsResponse, http_res + models.TextqlRPCPublicSecretGetAPIAccessKeyResponse, http_res ) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) @@ -539,23 +531,20 @@ def list_secrets( raise errors.TextqlDefaultError("Unexpected response received", http_res) - async def list_secrets_async( + async def get_api_access_key_async( self, *, - body: Union[ - models.TextqlRPCPublicSecretListSecretsRequest, - models.TextqlRPCPublicSecretListSecretsRequestTypedDict, - ], connect_timeout_ms: Optional[float] = None, + id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SecretServiceListSecretsResponse: - r"""ListSecrets + ) -> models.SecretServiceGetAPIAccessKeyResponse: + r"""GetApiAccessKey - :param body: :param connect_timeout_ms: + :param id: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -571,16 +560,16 @@ async def list_secrets_async( else: base_url = self._get_url(base_url, url_variables) - request = models.SecretServiceListSecretsRequest( + request = models.SecretServiceGetAPIAccessKeyRequest( connect_timeout_ms=connect_timeout_ms, - body=utils.get_pydantic_model( - body, models.TextqlRPCPublicSecretListSecretsRequest + body=models.TextqlRPCPublicSecretGetAPIAccessKeyRequest( + id=id, ), ) req = self._build_request_async( method="POST", - path="/textql.rpc.public.secret.SecretService/ListSecrets", + path="/textql.rpc.public.secret.SecretService/GetApiAccessKey", base_url=base_url, url_variables=url_variables, request=request, @@ -596,7 +585,7 @@ async def list_secrets_async( False, False, "json", - models.TextqlRPCPublicSecretListSecretsRequest, + models.TextqlRPCPublicSecretGetAPIAccessKeyRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -614,7 +603,7 @@ async def list_secrets_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="SecretService_ListSecrets", + operation_id="SecretService_GetApiAccessKey", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -629,7 +618,7 @@ async def list_secrets_async( if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.TextqlRPCPublicSecretListSecretsResponse, http_res + models.TextqlRPCPublicSecretGetAPIAccessKeyResponse, http_res ) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) @@ -646,28 +635,23 @@ async def list_secrets_async( raise errors.TextqlDefaultError("Unexpected response received", http_res) - def put_secret( + def get_members_with_secrets( self, *, + body: Union[ + models.TextqlRPCPublicSecretGetMembersWithSecretsRequest, + models.TextqlRPCPublicSecretGetMembersWithSecretsRequestTypedDict, + ], connect_timeout_ms: Optional[float] = None, - name: Optional[str] = None, - value: Optional[str] = None, - description: OptionalNullable[str] = UNSET, - link: OptionalNullable[str] = UNSET, - is_private: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SecretServicePutSecretResponse: - r"""PutSecret + ) -> models.SecretServiceGetMembersWithSecretsResponse: + r"""GetMembersWithSecrets + :param body: :param connect_timeout_ms: - :param name: - :param value: - :param description: - :param link: - :param is_private: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -683,20 +667,16 @@ def put_secret( else: base_url = self._get_url(base_url, url_variables) - request = models.SecretServicePutSecretRequest( + request = models.SecretServiceGetMembersWithSecretsRequest( connect_timeout_ms=connect_timeout_ms, - body=models.TextqlRPCPublicSecretPutSecretRequest( - name=name, - value=value, - description=description, - link=link, - is_private=is_private, + body=utils.get_pydantic_model( + body, models.TextqlRPCPublicSecretGetMembersWithSecretsRequest ), ) req = self._build_request( method="POST", - path="/textql.rpc.public.secret.SecretService/PutSecret", + path="/textql.rpc.public.secret.SecretService/GetMembersWithSecrets", base_url=base_url, url_variables=url_variables, request=request, @@ -712,7 +692,7 @@ def put_secret( False, False, "json", - models.TextqlRPCPublicSecretPutSecretRequest, + models.TextqlRPCPublicSecretGetMembersWithSecretsRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -730,7 +710,7 @@ def put_secret( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="SecretService_PutSecret", + operation_id="SecretService_GetMembersWithSecrets", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -745,7 +725,7 @@ def put_secret( if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.TextqlRPCPublicSecretPutSecretResponse, http_res + models.TextqlRPCPublicSecretGetMembersWithSecretsResponse, http_res ) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) @@ -762,28 +742,23 @@ def put_secret( raise errors.TextqlDefaultError("Unexpected response received", http_res) - async def put_secret_async( + async def get_members_with_secrets_async( self, *, + body: Union[ + models.TextqlRPCPublicSecretGetMembersWithSecretsRequest, + models.TextqlRPCPublicSecretGetMembersWithSecretsRequestTypedDict, + ], connect_timeout_ms: Optional[float] = None, - name: Optional[str] = None, - value: Optional[str] = None, - description: OptionalNullable[str] = UNSET, - link: OptionalNullable[str] = UNSET, - is_private: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SecretServicePutSecretResponse: - r"""PutSecret + ) -> models.SecretServiceGetMembersWithSecretsResponse: + r"""GetMembersWithSecrets + :param body: :param connect_timeout_ms: - :param name: - :param value: - :param description: - :param link: - :param is_private: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -799,20 +774,16 @@ async def put_secret_async( else: base_url = self._get_url(base_url, url_variables) - request = models.SecretServicePutSecretRequest( + request = models.SecretServiceGetMembersWithSecretsRequest( connect_timeout_ms=connect_timeout_ms, - body=models.TextqlRPCPublicSecretPutSecretRequest( - name=name, - value=value, - description=description, - link=link, - is_private=is_private, + body=utils.get_pydantic_model( + body, models.TextqlRPCPublicSecretGetMembersWithSecretsRequest ), ) req = self._build_request_async( method="POST", - path="/textql.rpc.public.secret.SecretService/PutSecret", + path="/textql.rpc.public.secret.SecretService/GetMembersWithSecrets", base_url=base_url, url_variables=url_variables, request=request, @@ -828,7 +799,7 @@ async def put_secret_async( False, False, "json", - models.TextqlRPCPublicSecretPutSecretRequest, + models.TextqlRPCPublicSecretGetMembersWithSecretsRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -846,7 +817,7 @@ async def put_secret_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="SecretService_PutSecret", + operation_id="SecretService_GetMembersWithSecrets", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -861,7 +832,7 @@ async def put_secret_async( if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.TextqlRPCPublicSecretPutSecretResponse, http_res + models.TextqlRPCPublicSecretGetMembersWithSecretsResponse, http_res ) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) @@ -878,26 +849,23 @@ async def put_secret_async( raise errors.TextqlDefaultError("Unexpected response received", http_res) - def update( + def list_api_access_keys( self, *, + body: Union[ + models.TextqlRPCPublicSecretListAPIAccessKeysRequest, + models.TextqlRPCPublicSecretListAPIAccessKeysRequestTypedDict, + ], connect_timeout_ms: Optional[float] = None, - name: Optional[str] = None, - value: OptionalNullable[str] = UNSET, - description: OptionalNullable[str] = UNSET, - link: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SecretServiceUpdateSecretResponse: - r"""UpdateSecret + ) -> models.SecretServiceListAPIAccessKeysResponse: + r"""ListApiAccessKeys + :param body: :param connect_timeout_ms: - :param name: - :param value: - :param description: - :param link: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -913,19 +881,16 @@ def update( else: base_url = self._get_url(base_url, url_variables) - request = models.SecretServiceUpdateSecretRequest( + request = models.SecretServiceListAPIAccessKeysRequest( connect_timeout_ms=connect_timeout_ms, - body=models.TextqlRPCPublicSecretUpdateSecretRequest( - name=name, - value=value, - description=description, - link=link, + body=utils.get_pydantic_model( + body, models.TextqlRPCPublicSecretListAPIAccessKeysRequest ), ) req = self._build_request( method="POST", - path="/textql.rpc.public.secret.SecretService/UpdateSecret", + path="/textql.rpc.public.secret.SecretService/ListApiAccessKeys", base_url=base_url, url_variables=url_variables, request=request, @@ -941,7 +906,7 @@ def update( False, False, "json", - models.TextqlRPCPublicSecretUpdateSecretRequest, + models.TextqlRPCPublicSecretListAPIAccessKeysRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -959,7 +924,7 @@ def update( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="SecretService_UpdateSecret", + operation_id="SecretService_ListApiAccessKeys", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -974,7 +939,7 @@ def update( if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.TextqlRPCPublicSecretUpdateSecretResponse, http_res + models.TextqlRPCPublicSecretListAPIAccessKeysResponse, http_res ) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) @@ -991,26 +956,23 @@ def update( raise errors.TextqlDefaultError("Unexpected response received", http_res) - async def update_async( + async def list_api_access_keys_async( self, *, + body: Union[ + models.TextqlRPCPublicSecretListAPIAccessKeysRequest, + models.TextqlRPCPublicSecretListAPIAccessKeysRequestTypedDict, + ], connect_timeout_ms: Optional[float] = None, - name: Optional[str] = None, - value: OptionalNullable[str] = UNSET, - description: OptionalNullable[str] = UNSET, - link: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SecretServiceUpdateSecretResponse: - r"""UpdateSecret + ) -> models.SecretServiceListAPIAccessKeysResponse: + r"""ListApiAccessKeys + :param body: :param connect_timeout_ms: - :param name: - :param value: - :param description: - :param link: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -1026,19 +988,16 @@ async def update_async( else: base_url = self._get_url(base_url, url_variables) - request = models.SecretServiceUpdateSecretRequest( + request = models.SecretServiceListAPIAccessKeysRequest( connect_timeout_ms=connect_timeout_ms, - body=models.TextqlRPCPublicSecretUpdateSecretRequest( - name=name, - value=value, - description=description, - link=link, + body=utils.get_pydantic_model( + body, models.TextqlRPCPublicSecretListAPIAccessKeysRequest ), ) req = self._build_request_async( method="POST", - path="/textql.rpc.public.secret.SecretService/UpdateSecret", + path="/textql.rpc.public.secret.SecretService/ListApiAccessKeys", base_url=base_url, url_variables=url_variables, request=request, @@ -1054,7 +1013,7 @@ async def update_async( False, False, "json", - models.TextqlRPCPublicSecretUpdateSecretRequest, + models.TextqlRPCPublicSecretListAPIAccessKeysRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -1072,7 +1031,7 @@ async def update_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="SecretService_UpdateSecret", + operation_id="SecretService_ListApiAccessKeys", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1087,7 +1046,1627 @@ async def update_async( if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.TextqlRPCPublicSecretUpdateSecretResponse, http_res + models.TextqlRPCPublicSecretListAPIAccessKeysResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + def list_api_providers( + self, + *, + body: Union[ + models.TextqlRPCPublicSecretListAPIProvidersRequest, + models.TextqlRPCPublicSecretListAPIProvidersRequestTypedDict, + ], + connect_timeout_ms: Optional[float] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServiceListAPIProvidersResponse: + r"""ListApiProviders + + :param body: + :param connect_timeout_ms: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServiceListAPIProvidersRequest( + connect_timeout_ms=connect_timeout_ms, + body=utils.get_pydantic_model( + body, models.TextqlRPCPublicSecretListAPIProvidersRequest + ), + ) + + req = self._build_request( + method="POST", + path="/textql.rpc.public.secret.SecretService/ListApiProviders", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretListAPIProvidersRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_ListApiProviders", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretListAPIProvidersResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + async def list_api_providers_async( + self, + *, + body: Union[ + models.TextqlRPCPublicSecretListAPIProvidersRequest, + models.TextqlRPCPublicSecretListAPIProvidersRequestTypedDict, + ], + connect_timeout_ms: Optional[float] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServiceListAPIProvidersResponse: + r"""ListApiProviders + + :param body: + :param connect_timeout_ms: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServiceListAPIProvidersRequest( + connect_timeout_ms=connect_timeout_ms, + body=utils.get_pydantic_model( + body, models.TextqlRPCPublicSecretListAPIProvidersRequest + ), + ) + + req = self._build_request_async( + method="POST", + path="/textql.rpc.public.secret.SecretService/ListApiProviders", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretListAPIProvidersRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_ListApiProviders", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretListAPIProvidersResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + def list_secrets( + self, + *, + body: Union[ + models.TextqlRPCPublicSecretListSecretsRequest, + models.TextqlRPCPublicSecretListSecretsRequestTypedDict, + ], + connect_timeout_ms: Optional[float] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServiceListSecretsResponse: + r"""ListSecrets + + :param body: + :param connect_timeout_ms: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServiceListSecretsRequest( + connect_timeout_ms=connect_timeout_ms, + body=utils.get_pydantic_model( + body, models.TextqlRPCPublicSecretListSecretsRequest + ), + ) + + req = self._build_request( + method="POST", + path="/textql.rpc.public.secret.SecretService/ListSecrets", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretListSecretsRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_ListSecrets", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretListSecretsResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + async def list_secrets_async( + self, + *, + body: Union[ + models.TextqlRPCPublicSecretListSecretsRequest, + models.TextqlRPCPublicSecretListSecretsRequestTypedDict, + ], + connect_timeout_ms: Optional[float] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServiceListSecretsResponse: + r"""ListSecrets + + :param body: + :param connect_timeout_ms: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServiceListSecretsRequest( + connect_timeout_ms=connect_timeout_ms, + body=utils.get_pydantic_model( + body, models.TextqlRPCPublicSecretListSecretsRequest + ), + ) + + req = self._build_request_async( + method="POST", + path="/textql.rpc.public.secret.SecretService/ListSecrets", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretListSecretsRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_ListSecrets", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretListSecretsResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + def put_secret( + self, + *, + connect_timeout_ms: Optional[float] = None, + name: Optional[str] = None, + value: Optional[str] = None, + description: OptionalNullable[str] = UNSET, + link: OptionalNullable[str] = UNSET, + is_private: Optional[bool] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServicePutSecretResponse: + r"""PutSecret + + :param connect_timeout_ms: + :param name: + :param value: + :param description: + :param link: + :param is_private: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServicePutSecretRequest( + connect_timeout_ms=connect_timeout_ms, + body=models.TextqlRPCPublicSecretPutSecretRequest( + name=name, + value=value, + description=description, + link=link, + is_private=is_private, + ), + ) + + req = self._build_request( + method="POST", + path="/textql.rpc.public.secret.SecretService/PutSecret", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretPutSecretRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_PutSecret", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretPutSecretResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + async def put_secret_async( + self, + *, + connect_timeout_ms: Optional[float] = None, + name: Optional[str] = None, + value: Optional[str] = None, + description: OptionalNullable[str] = UNSET, + link: OptionalNullable[str] = UNSET, + is_private: Optional[bool] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServicePutSecretResponse: + r"""PutSecret + + :param connect_timeout_ms: + :param name: + :param value: + :param description: + :param link: + :param is_private: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServicePutSecretRequest( + connect_timeout_ms=connect_timeout_ms, + body=models.TextqlRPCPublicSecretPutSecretRequest( + name=name, + value=value, + description=description, + link=link, + is_private=is_private, + ), + ) + + req = self._build_request_async( + method="POST", + path="/textql.rpc.public.secret.SecretService/PutSecret", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretPutSecretRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_PutSecret", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretPutSecretResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + def test_api_access_key( + self, + *, + connect_timeout_ms: Optional[float] = None, + ref: Optional[ + Union[ + models.TextqlRPCPublicSecretAPIAccessRef, + models.TextqlRPCPublicSecretAPIAccessRefTypedDict, + ] + ] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServiceTestAPIAccessKeyResponse: + r"""TestApiAccessKey + + :param connect_timeout_ms: + :param ref: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServiceTestAPIAccessKeyRequest( + connect_timeout_ms=connect_timeout_ms, + body=models.TextqlRPCPublicSecretTestAPIAccessKeyRequest( + ref=utils.get_pydantic_model( + ref, Optional[models.TextqlRPCPublicSecretAPIAccessRef] + ), + ), + ) + + req = self._build_request( + method="POST", + path="/textql.rpc.public.secret.SecretService/TestApiAccessKey", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretTestAPIAccessKeyRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_TestApiAccessKey", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretTestAPIAccessKeyResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + async def test_api_access_key_async( + self, + *, + connect_timeout_ms: Optional[float] = None, + ref: Optional[ + Union[ + models.TextqlRPCPublicSecretAPIAccessRef, + models.TextqlRPCPublicSecretAPIAccessRefTypedDict, + ] + ] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServiceTestAPIAccessKeyResponse: + r"""TestApiAccessKey + + :param connect_timeout_ms: + :param ref: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServiceTestAPIAccessKeyRequest( + connect_timeout_ms=connect_timeout_ms, + body=models.TextqlRPCPublicSecretTestAPIAccessKeyRequest( + ref=utils.get_pydantic_model( + ref, Optional[models.TextqlRPCPublicSecretAPIAccessRef] + ), + ), + ) + + req = self._build_request_async( + method="POST", + path="/textql.rpc.public.secret.SecretService/TestApiAccessKey", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretTestAPIAccessKeyRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_TestApiAccessKey", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretTestAPIAccessKeyResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + def update( + self, + *, + connect_timeout_ms: Optional[float] = None, + name: Optional[str] = None, + value: OptionalNullable[str] = UNSET, + description: OptionalNullable[str] = UNSET, + link: OptionalNullable[str] = UNSET, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServiceUpdateSecretResponse: + r"""UpdateSecret + + :param connect_timeout_ms: + :param name: + :param value: + :param description: + :param link: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServiceUpdateSecretRequest( + connect_timeout_ms=connect_timeout_ms, + body=models.TextqlRPCPublicSecretUpdateSecretRequest( + name=name, + value=value, + description=description, + link=link, + ), + ) + + req = self._build_request( + method="POST", + path="/textql.rpc.public.secret.SecretService/UpdateSecret", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretUpdateSecretRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_UpdateSecret", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretUpdateSecretResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + async def update_async( + self, + *, + connect_timeout_ms: Optional[float] = None, + name: Optional[str] = None, + value: OptionalNullable[str] = UNSET, + description: OptionalNullable[str] = UNSET, + link: OptionalNullable[str] = UNSET, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServiceUpdateSecretResponse: + r"""UpdateSecret + + :param connect_timeout_ms: + :param name: + :param value: + :param description: + :param link: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServiceUpdateSecretRequest( + connect_timeout_ms=connect_timeout_ms, + body=models.TextqlRPCPublicSecretUpdateSecretRequest( + name=name, + value=value, + description=description, + link=link, + ), + ) + + req = self._build_request_async( + method="POST", + path="/textql.rpc.public.secret.SecretService/UpdateSecret", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretUpdateSecretRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_UpdateSecret", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretUpdateSecretResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + def upsert_api_access_key( + self, + *, + connect_timeout_ms: Optional[float] = None, + ref: Optional[ + Union[ + models.TextqlRPCPublicSecretAPIAccessRef, + models.TextqlRPCPublicSecretAPIAccessRefTypedDict, + ] + ] = None, + persist_to_db: Optional[bool] = None, + hosts: Optional[Iterable[str]] = None, + headers: Optional[Mapping[str, str]] = None, + query_params: Optional[Mapping[str, str]] = None, + description: Optional[str] = None, + expires_at: Optional[datetime] = None, + provider: Optional[str] = None, + auth_value: Optional[str] = None, + auth_value_extra: Optional[str] = None, + auth_type: Optional[str] = None, + http_basic_auth: Optional[ + Union[ + models.TextqlRPCPublicSecretHTTPBasicAuth, + models.TextqlRPCPublicSecretHTTPBasicAuthTypedDict, + ] + ] = None, + body: Optional[Mapping[str, str]] = None, + content_type: Optional[models.TextqlRPCPublicSecretBodyContentType] = None, + test_url: Optional[str] = None, + name: Optional[str] = None, + test_method: Optional[str] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServiceUpsertAPIAccessKeyResponse: + r"""---- API Connectors (deprecated) ---- + + ---- API Connectors (deprecated) ---- + + :param connect_timeout_ms: + :param ref: + :param persist_to_db: + :param hosts: + :param headers: + :param query_params: + :param description: + :param expires_at: A Timestamp represents a point in time independent of any time zone or local + calendar, encoded as a count of seconds and fractions of seconds at + nanosecond resolution. The count is relative to an epoch at UTC midnight on + January 1, 1970, in the proleptic Gregorian calendar which extends the + Gregorian calendar backwards to year one. + + All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap + second table is needed for interpretation, using a [24-hour linear + smear](https://developers.google.com/time/smear). + + The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + restricting to that range, we ensure that we can convert to and from [RFC + 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + + # Examples + + Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + + Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + + Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + + Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + + Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + + # JSON Mapping + + In JSON format, the Timestamp type is encoded as a string in the + [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" + where {year} is always expressed using four digits while {month}, {day}, + {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone + is required. A proto3 JSON serializer should always use UTC (as indicated by + \"Z\") when printing the Timestamp type and a proto3 JSON parser should be + able to accept both UTC and other timezones (as indicated by an offset). + + For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past + 01:30 UTC on January 15, 2017. + + In JavaScript, one can convert a Date object to this format using the + standard + [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + method. In Python, a standard `datetime.datetime` object can be converted + to this format using + [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + the Joda Time's [`ISODateTimeFormat.dateTime()`]( + http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + ) to obtain a formatter capable of generating timestamps in this format. + :param provider: + :param auth_value: + :param auth_value_extra: + :param auth_type: + :param http_basic_auth: + :param body: + :param content_type: + :param test_url: + :param name: + :param test_method: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServiceUpsertAPIAccessKeyRequest( + connect_timeout_ms=connect_timeout_ms, + body=models.TextqlRPCPublicSecretUpsertAPIAccessKeyRequest( + ref=utils.get_pydantic_model( + ref, Optional[models.TextqlRPCPublicSecretAPIAccessRef] + ), + persist_to_db=persist_to_db, + hosts=utils.unmarshal(hosts, Optional[List[str]]), + headers=utils.unmarshal(headers, Optional[Dict[str, str]]), + query_params=utils.unmarshal(query_params, Optional[Dict[str, str]]), + description=description, + expires_at=expires_at, + provider=provider, + auth_value=auth_value, + auth_value_extra=auth_value_extra, + auth_type=auth_type, + http_basic_auth=utils.get_pydantic_model( + http_basic_auth, Optional[models.TextqlRPCPublicSecretHTTPBasicAuth] + ), + body=utils.unmarshal(body, Optional[Dict[str, str]]), + content_type=content_type, + test_url=test_url, + name=name, + test_method=test_method, + ), + ) + + req = self._build_request( + method="POST", + path="/textql.rpc.public.secret.SecretService/UpsertApiAccessKey", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretUpsertAPIAccessKeyRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_UpsertApiAccessKey", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretUpsertAPIAccessKeyResponse, http_res + ) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.TextqlDefaultError( + "API error occurred", http_res, http_res_text + ) + if utils.match_response(http_res, "default", "application/json"): + return unmarshal_json_response(models.ConnectError, http_res) + + raise errors.TextqlDefaultError("Unexpected response received", http_res) + + async def upsert_api_access_key_async( + self, + *, + connect_timeout_ms: Optional[float] = None, + ref: Optional[ + Union[ + models.TextqlRPCPublicSecretAPIAccessRef, + models.TextqlRPCPublicSecretAPIAccessRefTypedDict, + ] + ] = None, + persist_to_db: Optional[bool] = None, + hosts: Optional[Iterable[str]] = None, + headers: Optional[Mapping[str, str]] = None, + query_params: Optional[Mapping[str, str]] = None, + description: Optional[str] = None, + expires_at: Optional[datetime] = None, + provider: Optional[str] = None, + auth_value: Optional[str] = None, + auth_value_extra: Optional[str] = None, + auth_type: Optional[str] = None, + http_basic_auth: Optional[ + Union[ + models.TextqlRPCPublicSecretHTTPBasicAuth, + models.TextqlRPCPublicSecretHTTPBasicAuthTypedDict, + ] + ] = None, + body: Optional[Mapping[str, str]] = None, + content_type: Optional[models.TextqlRPCPublicSecretBodyContentType] = None, + test_url: Optional[str] = None, + name: Optional[str] = None, + test_method: Optional[str] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SecretServiceUpsertAPIAccessKeyResponse: + r"""---- API Connectors (deprecated) ---- + + ---- API Connectors (deprecated) ---- + + :param connect_timeout_ms: + :param ref: + :param persist_to_db: + :param hosts: + :param headers: + :param query_params: + :param description: + :param expires_at: A Timestamp represents a point in time independent of any time zone or local + calendar, encoded as a count of seconds and fractions of seconds at + nanosecond resolution. The count is relative to an epoch at UTC midnight on + January 1, 1970, in the proleptic Gregorian calendar which extends the + Gregorian calendar backwards to year one. + + All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap + second table is needed for interpretation, using a [24-hour linear + smear](https://developers.google.com/time/smear). + + The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + restricting to that range, we ensure that we can convert to and from [RFC + 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + + # Examples + + Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + + Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + + Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + + Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + + Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + + # JSON Mapping + + In JSON format, the Timestamp type is encoded as a string in the + [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" + where {year} is always expressed using four digits while {month}, {day}, + {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone + is required. A proto3 JSON serializer should always use UTC (as indicated by + \"Z\") when printing the Timestamp type and a proto3 JSON parser should be + able to accept both UTC and other timezones (as indicated by an offset). + + For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past + 01:30 UTC on January 15, 2017. + + In JavaScript, one can convert a Date object to this format using the + standard + [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + method. In Python, a standard `datetime.datetime` object can be converted + to this format using + [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + the Joda Time's [`ISODateTimeFormat.dateTime()`]( + http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + ) to obtain a formatter capable of generating timestamps in this format. + :param provider: + :param auth_value: + :param auth_value_extra: + :param auth_type: + :param http_basic_auth: + :param body: + :param content_type: + :param test_url: + :param name: + :param test_method: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.SecretServiceUpsertAPIAccessKeyRequest( + connect_timeout_ms=connect_timeout_ms, + body=models.TextqlRPCPublicSecretUpsertAPIAccessKeyRequest( + ref=utils.get_pydantic_model( + ref, Optional[models.TextqlRPCPublicSecretAPIAccessRef] + ), + persist_to_db=persist_to_db, + hosts=utils.unmarshal(hosts, Optional[List[str]]), + headers=utils.unmarshal(headers, Optional[Dict[str, str]]), + query_params=utils.unmarshal(query_params, Optional[Dict[str, str]]), + description=description, + expires_at=expires_at, + provider=provider, + auth_value=auth_value, + auth_value_extra=auth_value_extra, + auth_type=auth_type, + http_basic_auth=utils.get_pydantic_model( + http_basic_auth, Optional[models.TextqlRPCPublicSecretHTTPBasicAuth] + ), + body=utils.unmarshal(body, Optional[Dict[str, str]]), + content_type=content_type, + test_url=test_url, + name=name, + test_method=test_method, + ), + ) + + req = self._build_request_async( + method="POST", + path="/textql.rpc.public.secret.SecretService/UpsertApiAccessKey", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.body, + False, + False, + "json", + models.TextqlRPCPublicSecretUpsertAPIAccessKeyRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="SecretService_UpsertApiAccessKey", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["SecretService"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.TextqlRPCPublicSecretUpsertAPIAccessKeyResponse, http_res ) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) diff --git a/uv.lock b/uv.lock index 37760bb4..aa1da9e9 100644 --- a/uv.lock +++ b/uv.lock @@ -470,7 +470,7 @@ wheels = [ [[package]] name = "textql-sdk" -version = "1.1.22" +version = "1.1.23" source = { editable = "." } dependencies = [ { name = "connect-python" }, From 568006f145646a3dfa581226815d50f009bf7c46 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 14:10:33 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow