@movmo_app/types 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/sessions.d.ts +19 -3
  2. package/package.json +1 -1
@@ -3,9 +3,25 @@
3
3
  */
4
4
  export type OTPDeliveryMethod = 'email_and_phone' | 'email_only' | 'phone_only';
5
5
  /**
6
- * Session represents a login session record displayed on the Security page.
7
- * No backend API exists yet — this type is designed for future
8
- * GET/DELETE endpoints at /v1/users/:id/sessions.
6
+ * AuthEvent represents a recorded authentication event returned by
7
+ * GET /v1/users/me/auth-events.
8
+ */
9
+ export type AuthEvent = {
10
+ id: string;
11
+ user_id: string;
12
+ event_type: 'sign_in' | 'sign_up';
13
+ browser: string;
14
+ device_type: string;
15
+ os: string;
16
+ ip_address: string;
17
+ city: string;
18
+ country: string;
19
+ timezone: string;
20
+ created_at: string;
21
+ };
22
+ /**
23
+ * @deprecated Use AuthEvent instead. This type was a placeholder before the
24
+ * auth events API existed.
9
25
  */
10
26
  export type Session = {
11
27
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movmo_app/types",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "A collection of Movmo's types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",