v0.1.7
Available on npm:
notifkit@0.1.7(npm i notifkit@0.1.7)@notifkit/mcp@0.1.3
What changed
client.addUser(id, contacts, options):addUsernow accepts the user ID first, followed by a contacts array and profile options. The previous object signature (addUser({ id, ... })) still works.- Added
client.identify()as an alias foraddUser(). - Added support for a
contactsarray acrossAddUserSchema,UpdateUserSchema, and inline notification targets. You can now pass contacts for any supported channel (email,sms,push,webhook,in-app,telegram,discord,whatsapp,slack) along withlabel,isPrimary, and per-contact preferences. - Added
client.addContacts(userId, contacts)for adding multiple contacts in one call. - The
POST /v1/users/:id/contactsendpoint now accepts either a single contact object or an array of contacts. - Fixed unencoded URL parameters in
client.ts(deleteContact,getUserContacts, etc.) so targets containing+(like email aliases) or/(like webhook URLs) no longer break route matching. - Replaced loose
anyreturn types acrossNotifkitClientmethods with typed response interfaces (UserResponse,UserContactResponse,UserDetailResponse,WorkflowDefinitionRecord, and others). - Updated the MCP server's
upsert_userandupdate_usertools to accept thecontactsarray.