@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.
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/services/circles.d.ts +470 -0
- package/dist/services/circles.d.ts.map +1 -0
- package/dist/services/circles.js +1924 -0
- package/dist/services/circles.js.map +1 -0
- package/dist/services/identity.d.ts +29 -0
- package/dist/services/identity.d.ts.map +1 -0
- package/dist/services/identity.js +150 -0
- package/dist/services/identity.js.map +1 -0
- package/dist/stores/auth.d.ts +3 -0
- package/dist/stores/auth.d.ts.map +1 -1
- package/dist/stores/circles.d.ts +4283 -0
- package/dist/stores/circles.d.ts.map +1 -0
- package/dist/stores/circles.js +1670 -0
- package/dist/stores/circles.js.map +1 -0
- package/dist/types/api.d.ts +19 -0
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/auth.d.ts +34 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/auth.js +8 -0
- package/dist/types/auth.js.map +1 -0
- package/dist/types/identity.d.ts +34 -0
- package/dist/types/identity.d.ts.map +1 -0
- package/dist/types/identity.js +5 -0
- package/dist/types/identity.js.map +1 -0
- package/dist/types/user.d.ts +1 -0
- package/dist/types/user.d.ts.map +1 -1
- package/dist/types/user.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +105 -0
- package/src/services/circles.ts +2767 -0
- package/src/services/identity.ts +281 -0
- package/src/stores/circles.ts +2114 -0
- package/src/types/api.ts +20 -0
- package/src/types/auth.ts +39 -0
- package/src/types/identity.ts +41 -0
- 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