Skip to content

fix: correct events schema and clients default limit - #21

Merged
priosshrsth merged 5 commits into
mainfrom
fix/events-schema-and-clients-limit
Apr 5, 2026
Merged

priosshrsth merged 5 commits into
mainfrom
fix/events-schema-and-clients-limit

Conversation

@priosshrsth

@priosshrsth priosshrsth commented Apr 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix EventActorType enum value from "client" to "clientUser" to match actual API
  • Make actorType required in EventCreateRequest using a discriminated union — "clientUser" requires companyId, "internalUser" does not
  • Fix clients.listAll() default limit from 50,000 to 5,000

Test plan

  • Verify EventCreateRequest enforces companyId when actorType is "clientUser"
  • Verify EventCreateRequest allows omitting companyId when actorType is "internalUser"
  • Verify clients.listAll() uses 5,000 as default limit

🤖 Generated with Claude Code

priosshrsth and others added 5 commits April 5, 2026 16:31
- Fix EventActorType enum: "client" → "clientUser" to match actual API values
- Make actorType required in EventCreateRequest with discriminated union:
  actorType "clientUser" requires companyId, "internalUser" does not
- Fix clients listAll default limit: 50000 → 5000

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
vp check/test requires Node.js to load vite.config.ts — Bun alone is not sufficient.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@priosshrsth
priosshrsth merged commit 2f52151 into main Apr 5, 2026
6 checks passed
@priosshrsth
priosshrsth deleted the fix/events-schema-and-clients-limit branch April 5, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant