Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changeset/canonical-events-new-resources.md

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @passmint/node

## 0.2.0

### Minor Changes

- dd9ac5d: Catch the SDK up to the current Passmint API (canonical webhook payload cutover, natively-prefixed ids, and the new read/ops endpoints):

- **Canonical events.** `webhooks.constructEvent` now returns the typed canonical envelope (`PassmintEvent`): `pass.*` event types, `api_version`, `livemode`, PII-minimized `data.object.pass`, and `source` attribution. `PASSMINT_EVENT_TYPES` is exported. The old loose `WebhookEvent` type is a deprecated alias.
- **Webhook management.** `passmint.webhooks` gains `create`, `retrieve`, `list`, `update`, `delete`, `backfill`, `deliveries`, and `replayDelivery` wrapping `/v1/webhooks*`.
- **New resources.** `passmint.events.list()` (canonical event stream with filters + `startingAfter` cursor), `passmint.metrics.funnel()`, and `passmint.me.retrieve()`.
- **Type backfills.** `Pass` adds `certificate_set_id`, `platforms`, `platform_status`, `google_wallet_url` and a nullable `download_url`; `Template` adds `platforms`, `certificate_set_id`, `google_issuer_id`; `PassEvent['type']` adds `update_delivered` and `google_save_clicked`; `passes.create` returns issuance `warnings`.
- **New params.** `passes.create` accepts `platforms` and `certificateSetId` (explicit `null` forces the dev cert); `templates.create` accepts `platforms`; `templates.update` accepts `platforms`, `certificateSetId`, `googleIssuerId`.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@passmint/node",
"version": "0.1.0",
"version": "0.2.0",
"description": "Official Node.js SDK for the Passmint API.",
"type": "module",
"packageManager": "pnpm@9.15.0",
Expand Down
Loading