Skip to content

feat(api): add WebApp consumer APIs - #45154

Merged
linw1995 merged 8 commits into
linw/snp-911-end-user-authfrom
linw/snp-974-end-user-api
Nov 3, 2026
Merged

linw1995 merged 8 commits into
linw/snp-911-end-user-authfrom
linw/snp-974-end-user-api

Conversation

@linw1995

@linw1995 linw1995 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Expose My Apps and My Connections through the WebApp API using the Account login cookie, without requiring workspace membership.

List accessible Chatflow and Workflow Apps with favorites and shared discovery, deriving recent use from Account-linked EndUsers and retained WorkflowRuns. Group personal Connections by Provider, account label and Connection type, using representative Connection UUIDs as compact group keys. Expose accessible WebApp counts, per-group App listing and disconnect. Reuse existing tables and Connection lifecycle operations, adding lookup indexes and generated frontend contracts.

Refs SNP-974.

@github-actions github-actions Bot added size:XXL This PR changes 1000+ lines, ignoring generated files. web This relates to changes on the web. labels Oct 30, 2026
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 79.38% 79.42% +0.04%
Strict coverage 79.07% 79.11% +0.04%
Typed symbols 77,181 77,408 +227
Untyped symbols 20,129 20,137 +8
Modules 4018 4028 +10

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-11-03 06:51:42.196174319 +0000
+++ /tmp/pyrefly_pr.txt	2026-11-03 06:51:30.728101470 +0000
@@ -5899,17 +5899,17 @@
 ERROR Argument `Literal['app']` is not assignable to parameter `value` with type `ApiTokenType | SQLCoreOperations[ApiTokenType]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
    --> tests/unit_tests/services/test_api_token_service.py:322:30
 ERROR Argument `AppMode | str` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.App.__init__` [bad-argument-type]
-  --> tests/unit_tests/services/test_app_generate_service.py:85:14
+  --> tests/unit_tests/services/test_app_generate_service.py:88:14
 ERROR Class member `_TrackingRateLimit.exit` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
-   --> tests/unit_tests/services/test_app_generate_service.py:778:21
+   --> tests/unit_tests/services/test_app_generate_service.py:781:21
 ERROR Class member `_TrackingRateLimit.exit` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
-   --> tests/unit_tests/services/test_app_generate_service.py:814:21
+   --> tests/unit_tests/services/test_app_generate_service.py:817:21
 ERROR Class member `_TrackingRateLimit.exit` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
-   --> tests/unit_tests/services/test_app_generate_service.py:848:21
+   --> tests/unit_tests/services/test_app_generate_service.py:851:21
 ERROR Argument `_FakeStreams` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
-    --> tests/unit_tests/services/test_app_generate_service.py:1203:40
+    --> tests/unit_tests/services/test_app_generate_service.py:1206:40
 ERROR Argument `_FakeRedisClient` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.pubsub_channel.BroadcastChannel.__init__` [bad-argument-type]
-    --> tests/unit_tests/services/test_app_generate_service.py:1221:38
+    --> tests/unit_tests/services/test_app_generate_service.py:1224:38
 ERROR Argument `str | None` is not assignable to parameter `tenant_id` with type `str` in function `services.app_service.AppService.create_app` [bad-argument-type]
    --> tests/unit_tests/services/test_app_service.py:257:17
 ERROR Argument `str | None` is not assignable to parameter `tenant_id` with type `str` in function `services.app_service.AppService.create_app` [bad-argument-type]

@linw1995 linw1995 changed the title feat(api): add Account consumer APIs feat(api): add WebApp consumer APIs Nov 3, 2026
@linw1995
linw1995 marked this pull request as ready for review November 3, 2026 09:29
@linw1995
linw1995 merged commit fbc2049 into linw/snp-911-end-user-auth Nov 3, 2026
9 checks passed
@linw1995
linw1995 deleted the linw/snp-974-end-user-api branch November 3, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL This PR changes 1000+ lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant