diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 65c05f814..0f265ebb6 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: c48cf606-fb42-4a45-9c23-8f0555307828 management: - docChecksum: 3dc6b9becb1dd17399124bc1dfabd38a + docChecksum: ccde1016b1e3767a647954d3c0a1110e docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.156 - configChecksum: 1bf0170b4bad4ad5a834268897b1bfa3 + releaseVersion: 1.3.157 + configChecksum: 98aeb5fc1435e989a8fcd86d34eae2fd repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 1ea63ca2-235e-46cf-8fcc-caaf87da85c2 - pristine_commit_hash: 2a98f8aec0376b7bfca0115b2715c08e0e81a7ea - pristine_tree_hash: f9cddff889daf4e40e47bae67d81c07d5f1030c0 + generation_id: 05ef2bed-4986-471d-bb8a-b39a7d498ff0 + pristine_commit_hash: 8439197151761d2fd63276ccba8048d5fd31d33b + pristine_tree_hash: 3c4bb5e6b3afc72056b07c5345d68cbc52c3862a features: python: acceptHeaders: 3.0.0 @@ -11428,8 +11428,8 @@ trackedFiles: pristine_git_object: f265978fdb338b412232349476bf1e874833c9f8 docs/sdks/analytics/README.mdx: id: 281aa5320be1 - last_write_checksum: sha1:488fe930c68f475ff0c7a7ea9865fae0c84782d8 - pristine_git_object: 11f0655022f8574fc79bc3d17c5c3e9186ca158f + last_write_checksum: sha1:2ea65c7e61be83a351492690003bdd34889a5640 + pristine_git_object: ccdae17cd63930fb0d65fe1171735373c233e38b docs/sdks/apikeys/README.mdx: id: 27fcaae1c346 last_write_checksum: sha1:09195a526bc468df6743e47dbdee79949f66e77c @@ -11588,8 +11588,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:350c250d375e528f4b182f8715a6985301914463 - pristine_git_object: df73c3fe6050eb939195dc78558ecd0c37ed8582 + last_write_checksum: sha1:1c87dbce46855a46bcb3e11a53b8b01c01a787cf + pristine_git_object: 358d49fbcfd5d24f1d01e003acf0b93af434cf5d scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -11616,16 +11616,16 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:f0c49655b2088e98075bdaf212c6553b47434dde - pristine_git_object: 57dc566face63e6cb1f59f2a216a469f0ea08edc + last_write_checksum: sha1:4fe70108eb1b0c95a86b8bf44193d84c8a00142a + pristine_git_object: 3ac8b95c67bd6fc7d72e4de29a2e6dffc4f6c33d src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 pristine_git_object: f512ec0a9dab3feb43c9add635c0a926b7728b2d src/openrouter/analytics.py: id: cb406b5aaabb - last_write_checksum: sha1:3a1050fada155ce635b53ce1c7357b4b3f764e24 - pristine_git_object: 4d607b411903e7aeba02238b2fd2f8bf0c8c0f89 + last_write_checksum: sha1:283a50def426154cefd2d55de78c83f5e7073569 + pristine_git_object: 6dc3ecedfec396bd5a0f46c89178563f84c72dd7 src/openrouter/api_keys.py: id: 876fac88fff6 last_write_checksum: sha1:eee27956e31d7525d8cfbc9177d5b79db2b3aab3 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 16c085d12..a52443523 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.156 + version: 1.3.157 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 2c56d9f29..81dd29876 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -39341,7 +39341,7 @@ openapi: '3.1.0' paths: /activity: get: - description: 'Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). [Management key](/docs/guides/overview/auth/management-api-keys) required.' + description: 'Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). [Management key](/docs/guides/overview/auth/management-api-keys) required.' operationId: 'getUserActivity' parameters: - description: 'Filter by a single UTC date in the last 30 days (YYYY-MM-DD format).' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index b39f17e76..b2988e7d2 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.803.2 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:9e21e846dafaa2c36ad3733506b3106fc45dba689adee0f95543f36fefdb7b45 - sourceBlobDigest: sha256:2ced0693e6668959ef1098e232fff9689cb44732157a40e73d68f51da4f5a51e + sourceRevisionDigest: sha256:89644ebfe4a1d1bb29e0f1a674f4cf209cc6ff613235f6b20b7bb69b65509334 + sourceBlobDigest: sha256:aea5677509f1c6492bb73a9727c5628c33e467350b75d95d67de2ac7697c33d0 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:9e21e846dafaa2c36ad3733506b3106fc45dba689adee0f95543f36fefdb7b45 - sourceBlobDigest: sha256:2ced0693e6668959ef1098e232fff9689cb44732157a40e73d68f51da4f5a51e + sourceRevisionDigest: sha256:89644ebfe4a1d1bb29e0f1a674f4cf209cc6ff613235f6b20b7bb69b65509334 + sourceBlobDigest: sha256:aea5677509f1c6492bb73a9727c5628c33e467350b75d95d67de2ac7697c33d0 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:902152057d143bc0d494b8d705aa092c47754915042585e61aa4984e21e70472 + codeSamplesRevisionDigest: sha256:b6e94d7141c0223a4e91342f180e1eb0a840dc0ec937b3ee72747dbd7542f6a9 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 722494b2e..8c752a368 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4329,4 +4329,14 @@ Based on: ### Generated - [python v1.3.156] . ### Releases -- [PyPI v1.3.156] https://pypi.org/project/openrouter/1.3.156 - . \ No newline at end of file +- [PyPI v1.3.156] https://pypi.org/project/openrouter/1.3.156 - . + +## 2026-11-11 02:40:22 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.157] . +### Releases +- [PyPI v1.3.157] https://pypi.org/project/openrouter/1.3.157 - . \ No newline at end of file diff --git a/docs/sdks/analytics/README.mdx b/docs/sdks/analytics/README.mdx index 11f065502..ccdae17cd 100644 --- a/docs/sdks/analytics/README.mdx +++ b/docs/sdks/analytics/README.mdx @@ -15,7 +15,7 @@ Analytics and usage endpoints ## get_user_activity -Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). [Management key](/docs/guides/overview/auth/management-api-keys) required. +Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). [Management key](/docs/guides/overview/auth/management-api-keys) required. ### Example Usage diff --git a/pyproject.toml b/pyproject.toml index df73c3fe6..358d49fbc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.156" +version = "1.3.157" description = "Official Python Client SDK for OpenRouter." authors = [{ name = "OpenRouter" },] readme = "README-PYPI.md" diff --git a/src/openrouter/_version.py b/src/openrouter/_version.py index 57dc566fa..3ac8b95c6 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "openrouter" -__version__: str = "1.3.156" +__version__: str = "1.3.157" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.156 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.157 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/analytics.py b/src/openrouter/analytics.py index 4d607b411..6dc3ecedf 100644 --- a/src/openrouter/analytics.py +++ b/src/openrouter/analytics.py @@ -26,7 +26,7 @@ def get_user_activity( ) -> components.ActivityResponse: r"""Get user activity grouped by endpoint - Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). [Management key](/docs/guides/overview/auth/management-api-keys) required. + Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). [Management key](/docs/guides/overview/auth/management-api-keys) required. :param request: The request object to send. :param retries: Override the default retry configuration for this method @@ -154,7 +154,7 @@ async def get_user_activity_async( ) -> components.ActivityResponse: r"""Get user activity grouped by endpoint - Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). [Management key](/docs/guides/overview/auth/management-api-keys) required. + Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). [Management key](/docs/guides/overview/auth/management-api-keys) required. :param request: The request object to send. :param retries: Override the default retry configuration for this method diff --git a/uv.lock b/uv.lock index bed71e74a..a0c391a04 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.156" +version = "1.3.157" source = { editable = "." } dependencies = [ { name = "httpcore" },