@codingfactory/socialkit-vue 0.1.0 → 0.3.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 (40) hide show
  1. package/dist/index.d.ts +9 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/services/circles.d.ts +470 -0
  6. package/dist/services/circles.d.ts.map +1 -0
  7. package/dist/services/circles.js +1924 -0
  8. package/dist/services/circles.js.map +1 -0
  9. package/dist/services/identity.d.ts +29 -0
  10. package/dist/services/identity.d.ts.map +1 -0
  11. package/dist/services/identity.js +150 -0
  12. package/dist/services/identity.js.map +1 -0
  13. package/dist/stores/auth.d.ts +3 -0
  14. package/dist/stores/auth.d.ts.map +1 -1
  15. package/dist/stores/circles.d.ts +4283 -0
  16. package/dist/stores/circles.d.ts.map +1 -0
  17. package/dist/stores/circles.js +1670 -0
  18. package/dist/stores/circles.js.map +1 -0
  19. package/dist/types/api.d.ts +19 -0
  20. package/dist/types/api.d.ts.map +1 -1
  21. package/dist/types/auth.d.ts +34 -0
  22. package/dist/types/auth.d.ts.map +1 -0
  23. package/dist/types/auth.js +8 -0
  24. package/dist/types/auth.js.map +1 -0
  25. package/dist/types/identity.d.ts +34 -0
  26. package/dist/types/identity.d.ts.map +1 -0
  27. package/dist/types/identity.js +5 -0
  28. package/dist/types/identity.js.map +1 -0
  29. package/dist/types/user.d.ts +1 -0
  30. package/dist/types/user.d.ts.map +1 -1
  31. package/dist/types/user.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/index.ts +105 -0
  34. package/src/services/circles.ts +2767 -0
  35. package/src/services/identity.ts +281 -0
  36. package/src/stores/circles.ts +2114 -0
  37. package/src/types/api.ts +20 -0
  38. package/src/types/auth.ts +39 -0
  39. package/src/types/identity.ts +41 -0
  40. package/src/types/user.ts +1 -0
package/src/types/api.ts CHANGED
@@ -54,3 +54,23 @@ export interface RequestConfig {
54
54
  onUploadProgress?: (progressEvent: UploadProgressEvent) => void
55
55
  signal?: AbortSignal
56
56
  }
57
+
58
+ /** Echo/WebSocket configuration shape used by app-level realtime clients. */
59
+ export interface EchoConfig {
60
+ broadcaster: string
61
+ key: string
62
+ wsHost: string
63
+ wsPort: number
64
+ wssPort: number
65
+ forceTLS: boolean
66
+ encrypted: boolean
67
+ disableStats: boolean
68
+ enabledTransports: string[]
69
+ auth: {
70
+ headers: {
71
+ Authorization: string
72
+ Accept: string
73
+ }
74
+ }
75
+ authEndpoint: string
76
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Legacy auth DTOs that remain useful for app-level compatibility.
3
+ *
4
+ * These types do not drive the shared auth service implementation directly,
5
+ * but keeping them in the package lets apps re-export one source of truth.
6
+ */
7
+
8
+ import type { User } from './user.js'
9
+
10
+ export interface LoginCredentials {
11
+ email: string
12
+ password: string
13
+ remember?: boolean
14
+ }
15
+
16
+ export interface RegisterCredentials {
17
+ name: string
18
+ email: string
19
+ username: string
20
+ password: string
21
+ password_confirmation: string
22
+ }
23
+
24
+ export interface AuthResponse {
25
+ user: User
26
+ token: string
27
+ expires_at?: string
28
+ }
29
+
30
+ export interface PasswordResetRequest {
31
+ email: string
32
+ }
33
+
34
+ export interface PasswordResetConfirm {
35
+ email: string
36
+ token: string
37
+ password: string
38
+ password_confirmation: string
39
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Identity-service DTOs shared across SocialKit frontends.
3
+ */
4
+
5
+ export interface ChangePasswordPayload {
6
+ currentPassword: string
7
+ newPassword: string
8
+ confirmPassword: string
9
+ }
10
+
11
+ export interface ChangePasswordResult {
12
+ message: string
13
+ }
14
+
15
+ export interface TwoFactorStatus {
16
+ enabled: boolean
17
+ }
18
+
19
+ export interface TwoFactorEnrollment {
20
+ qrCodeUrl: string
21
+ secretBase32: string
22
+ }
23
+
24
+ export interface TwoFactorEnableResult {
25
+ recoveryCodes: string[]
26
+ }
27
+
28
+ export interface TwoFactorDisablePayload {
29
+ password: string
30
+ code: string
31
+ }
32
+
33
+ export interface AccountDeletionRequestResult {
34
+ requestId: string
35
+ status: string
36
+ confirmationToken: string | null
37
+ }
38
+
39
+ export interface AccountDeletionConfirmationResult {
40
+ status: string
41
+ }
package/src/types/user.ts CHANGED
@@ -10,6 +10,7 @@ export interface User {
10
10
  avatar?: string | Record<string, unknown> | null
11
11
  avatar_url?: string | null
12
12
  cover_photo?: string | null
13
+ bio?: string | null
13
14
  handle?: string
14
15
  role: 'admin' | 'moderator' | 'user'
15
16
  tenant_id?: string