Skip to content

feat(events): add Postscript /api/v2/events client support#78

Merged
jcartwright merged 2 commits into
mainfrom
jason/feat-support-v2-events
Jul 21, 2026
Merged

feat(events): add Postscript /api/v2/events client support#78
jcartwright merged 2 commits into
mainfrom
jason/feat-support-v2-events

Conversation

@jcartwright

Copy link
Copy Markdown
Contributor

Summary

  • Add Postscript.Event.create/1 for Custom Events (POST /api/v2/events), with operations baking in http_path: "/api/v2" so callers cannot accidentally hit /v1/events
  • Leave existing /v1 Trigger/Subscriber/Keyword APIs and default http_path unchanged; 202 Accepted + event_ids already succeeds via existing request handling
  • Bump to 1.1.0 and target the private Malomo Hex org (organization: "malomo") for publish after merge

Test plan

  • CI green (test + dialyzer matrix)
  • Confirm Event.create/1 URL is https://api.postscript.io/api/v2/events without passing http_path to Postscript.request/2
  • Confirm Trigger (and other v1) requests still use /v1
  • After merge: mix hex.publish as a Malomo org member; verify 1.1.0 on the Malomo org packages dashboard
  • Point integration-postscript at {:postscript, "~> 1.1", organization: "malomo"}

Made with Cursor

jcartwright and others added 2 commits July 20, 2026 18:56
Co-authored-by: Cursor <cursoragent@cursor.com>
GitHub is auto-failing workflows that still pin the deprecated
actions/cache@v4.1.2, which blocked dialyzer and test jobs on the PR.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jcartwright
jcartwright merged commit fec37a7 into main Jul 21, 2026
18 checks passed
@jcartwright
jcartwright deleted the jason/feat-support-v2-events branch July 21, 2026 00:04
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