Skip to content

Commit 96b941f

Browse files
authored
feat(api): expose organization access and usage operations (#8127)
* feat(api): expose organization access and usage operations * fix(api): enforce current invitation and organization scope * fix(billing): serialize credit caps with access revocation * fix(workspaces): align detachment with invitation lock order
1 parent 745cdbe commit 96b941f

137 files changed

Lines changed: 25351 additions & 7670 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/test-build.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,19 @@ jobs:
127127
lib/billing/core/usage-log.postgres.test.ts
128128
lib/billing/core/organization-activity.postgres.test.ts
129129
lib/billing/core/usage-analytics-queries.postgres.test.ts
130+
lib/billing/core/organization-usage-pagination.postgres.test.ts
131+
lib/billing/organizations/member-limits.postgres.test.ts
132+
lib/workspaces/organization-workspaces.postgres.test.ts
130133
lib/billing/calculations/usage-reservation.test.ts
131134
135+
- name: Verify access request pagination and impact in PostgreSQL
136+
working-directory: apps/sim
137+
env:
138+
ACCESS_REQUESTS_TEST_DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/sim_access_requests_test
139+
run: |
140+
bun -e 'import postgres from "postgres"; const sql = postgres(process.env.DATABASE_URL); await sql.unsafe("CREATE DATABASE sim_access_requests_test"); await sql.end()'
141+
bunx vitest run ee/access-requests/lib/repository.postgres.test.ts ee/access-requests/lib/impact.postgres.test.ts
142+
132143
- name: Verify fork previews ignore execution file history in PostgreSQL
133144
working-directory: apps/sim
134145
env:

‎apps/docs/content/docs/api-reference/meta.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"(generated)/workspaces",
2020
"(generated)/organizations",
2121
"(generated)/permission-groups",
22+
"(generated)/access-requests",
2223
"(generated)/workspace-sync",
2324
"(generated)/mcp-servers",
2425
"(generated)/skills",

0 commit comments

Comments
 (0)