@nauth-toolkit/core 0.1.39 → 0.1.40
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/dto/get-user-sessions-response.dto.d.ts +88 -0
- package/dist/dto/get-user-sessions-response.dto.d.ts.map +1 -0
- package/dist/dto/get-user-sessions-response.dto.js +181 -0
- package/dist/dto/get-user-sessions-response.dto.js.map +1 -0
- package/dist/dto/get-user-sessions.dto.d.ts +17 -0
- package/dist/dto/get-user-sessions.dto.d.ts.map +1 -0
- package/dist/dto/get-user-sessions.dto.js +38 -0
- package/dist/dto/get-user-sessions.dto.js.map +1 -0
- package/dist/dto/index.d.ts +4 -0
- package/dist/dto/index.d.ts.map +1 -1
- package/dist/dto/index.js +4 -0
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/logout-session-response.dto.d.ts +20 -0
- package/dist/dto/logout-session-response.dto.d.ts.map +1 -0
- package/dist/dto/logout-session-response.dto.js +42 -0
- package/dist/dto/logout-session-response.dto.js.map +1 -0
- package/dist/dto/logout-session.dto.d.ts +22 -0
- package/dist/dto/logout-session.dto.d.ts.map +1 -0
- package/dist/dto/logout-session.dto.js +48 -0
- package/dist/dto/logout-session.dto.js.map +1 -0
- package/dist/services/auth-service-internal-helpers.d.ts +229 -0
- package/dist/services/auth-service-internal-helpers.d.ts.map +1 -0
- package/dist/services/auth-service-internal-helpers.js +1004 -0
- package/dist/services/auth-service-internal-helpers.js.map +1 -0
- package/dist/services/auth.service.d.ts +178 -156
- package/dist/services/auth.service.d.ts.map +1 -1
- package/dist/services/auth.service.js +486 -2308
- package/dist/services/auth.service.js.map +1 -1
- package/dist/services/user.service.d.ts +274 -0
- package/dist/services/user.service.d.ts.map +1 -0
- package/dist/services/user.service.js +1327 -0
- package/dist/services/user.service.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session information in user sessions response
|
|
3
|
+
*/
|
|
4
|
+
export declare class UserSessionInfo {
|
|
5
|
+
/**
|
|
6
|
+
* Session ID
|
|
7
|
+
*/
|
|
8
|
+
sessionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Device ID
|
|
11
|
+
*/
|
|
12
|
+
deviceId: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* Device name
|
|
15
|
+
*/
|
|
16
|
+
deviceName: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Device type
|
|
19
|
+
*/
|
|
20
|
+
deviceType: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Platform
|
|
23
|
+
*/
|
|
24
|
+
platform: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Browser
|
|
27
|
+
*/
|
|
28
|
+
browser: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* IP address
|
|
31
|
+
*/
|
|
32
|
+
ipAddress: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* IP country
|
|
35
|
+
*/
|
|
36
|
+
ipCountry: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* IP city
|
|
39
|
+
*/
|
|
40
|
+
ipCity: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Last activity timestamp
|
|
43
|
+
*/
|
|
44
|
+
lastActivityAt: Date;
|
|
45
|
+
/**
|
|
46
|
+
* Session creation timestamp
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Session expiration timestamp
|
|
51
|
+
*/
|
|
52
|
+
expiresAt: Date;
|
|
53
|
+
/**
|
|
54
|
+
* Whether session is remembered
|
|
55
|
+
*/
|
|
56
|
+
isRemembered: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether this is the current session
|
|
59
|
+
*/
|
|
60
|
+
isCurrent: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Authentication method used for this session
|
|
63
|
+
* Examples: 'password', 'social', 'admin', 'admin-social'
|
|
64
|
+
* For social logins, check authProvider for the specific OAuth provider
|
|
65
|
+
*/
|
|
66
|
+
authMethod: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* OAuth provider name (only present for social logins)
|
|
69
|
+
* Examples: 'google', 'facebook', 'github', 'apple'
|
|
70
|
+
*/
|
|
71
|
+
authProvider: string | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Response DTO for getting user sessions
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```typescript
|
|
78
|
+
* const response = await authService.getUserSessions(dto);
|
|
79
|
+
* // response.sessions = [{ sessionId: '123', authMethod: 'password', ... }, ...]
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export declare class GetUserSessionsResponseDTO {
|
|
83
|
+
/**
|
|
84
|
+
* Array of user sessions
|
|
85
|
+
*/
|
|
86
|
+
sessions: UserSessionInfo[];
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=get-user-sessions-response.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-sessions-response.dto.d.ts","sourceRoot":"","sources":["../../src/dto/get-user-sessions-response.dto.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBAAa,eAAe;IAC1B;;OAEG;IAEH,SAAS,EAAG,MAAM,CAAC;IAEnB;;OAEG;IAGH,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IAGH,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IAGH,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IAGH,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IAGH,OAAO,EAAG,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IAGH,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IAGH,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IAGH,MAAM,EAAG,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IAGH,cAAc,EAAG,IAAI,CAAC;IAEtB;;OAEG;IAGH,SAAS,EAAG,IAAI,CAAC;IAEjB;;OAEG;IAGH,SAAS,EAAG,IAAI,CAAC;IAEjB;;OAEG;IAEH,YAAY,EAAG,OAAO,CAAC;IAEvB;;OAEG;IAEH,SAAS,EAAG,OAAO,CAAC;IAEpB;;;;OAIG;IAGH,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IAGH,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED;;;;;;;;GAQG;AACH,qBAAa,0BAA0B;IACrC;;OAEG;IACH,QAAQ,EAAG,eAAe,EAAE,CAAC;CAC9B"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetUserSessionsResponseDTO = exports.UserSessionInfo = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
/**
|
|
16
|
+
* Session information in user sessions response
|
|
17
|
+
*/
|
|
18
|
+
class UserSessionInfo {
|
|
19
|
+
/**
|
|
20
|
+
* Session ID
|
|
21
|
+
*/
|
|
22
|
+
sessionId;
|
|
23
|
+
/**
|
|
24
|
+
* Device ID
|
|
25
|
+
*/
|
|
26
|
+
deviceId;
|
|
27
|
+
/**
|
|
28
|
+
* Device name
|
|
29
|
+
*/
|
|
30
|
+
deviceName;
|
|
31
|
+
/**
|
|
32
|
+
* Device type
|
|
33
|
+
*/
|
|
34
|
+
deviceType;
|
|
35
|
+
/**
|
|
36
|
+
* Platform
|
|
37
|
+
*/
|
|
38
|
+
platform;
|
|
39
|
+
/**
|
|
40
|
+
* Browser
|
|
41
|
+
*/
|
|
42
|
+
browser;
|
|
43
|
+
/**
|
|
44
|
+
* IP address
|
|
45
|
+
*/
|
|
46
|
+
ipAddress;
|
|
47
|
+
/**
|
|
48
|
+
* IP country
|
|
49
|
+
*/
|
|
50
|
+
ipCountry;
|
|
51
|
+
/**
|
|
52
|
+
* IP city
|
|
53
|
+
*/
|
|
54
|
+
ipCity;
|
|
55
|
+
/**
|
|
56
|
+
* Last activity timestamp
|
|
57
|
+
*/
|
|
58
|
+
lastActivityAt;
|
|
59
|
+
/**
|
|
60
|
+
* Session creation timestamp
|
|
61
|
+
*/
|
|
62
|
+
createdAt;
|
|
63
|
+
/**
|
|
64
|
+
* Session expiration timestamp
|
|
65
|
+
*/
|
|
66
|
+
expiresAt;
|
|
67
|
+
/**
|
|
68
|
+
* Whether session is remembered
|
|
69
|
+
*/
|
|
70
|
+
isRemembered;
|
|
71
|
+
/**
|
|
72
|
+
* Whether this is the current session
|
|
73
|
+
*/
|
|
74
|
+
isCurrent;
|
|
75
|
+
/**
|
|
76
|
+
* Authentication method used for this session
|
|
77
|
+
* Examples: 'password', 'social', 'admin', 'admin-social'
|
|
78
|
+
* For social logins, check authProvider for the specific OAuth provider
|
|
79
|
+
*/
|
|
80
|
+
authMethod;
|
|
81
|
+
/**
|
|
82
|
+
* OAuth provider name (only present for social logins)
|
|
83
|
+
* Examples: 'google', 'facebook', 'github', 'apple'
|
|
84
|
+
*/
|
|
85
|
+
authProvider;
|
|
86
|
+
}
|
|
87
|
+
exports.UserSessionInfo = UserSessionInfo;
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_validator_1.IsString)(),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], UserSessionInfo.prototype, "sessionId", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsString)(),
|
|
94
|
+
(0, class_validator_1.IsOptional)(),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], UserSessionInfo.prototype, "deviceId", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_validator_1.IsString)(),
|
|
99
|
+
(0, class_validator_1.IsOptional)(),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], UserSessionInfo.prototype, "deviceName", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, class_validator_1.IsString)(),
|
|
104
|
+
(0, class_validator_1.IsOptional)(),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], UserSessionInfo.prototype, "deviceType", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, class_validator_1.IsString)(),
|
|
109
|
+
(0, class_validator_1.IsOptional)(),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], UserSessionInfo.prototype, "platform", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, class_validator_1.IsString)(),
|
|
114
|
+
(0, class_validator_1.IsOptional)(),
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
|
+
], UserSessionInfo.prototype, "browser", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, class_validator_1.IsString)(),
|
|
119
|
+
(0, class_validator_1.IsOptional)(),
|
|
120
|
+
__metadata("design:type", Object)
|
|
121
|
+
], UserSessionInfo.prototype, "ipAddress", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, class_validator_1.IsString)(),
|
|
124
|
+
(0, class_validator_1.IsOptional)(),
|
|
125
|
+
__metadata("design:type", Object)
|
|
126
|
+
], UserSessionInfo.prototype, "ipCountry", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, class_validator_1.IsString)(),
|
|
129
|
+
(0, class_validator_1.IsOptional)(),
|
|
130
|
+
__metadata("design:type", Object)
|
|
131
|
+
], UserSessionInfo.prototype, "ipCity", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, class_validator_1.IsDate)(),
|
|
134
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
135
|
+
__metadata("design:type", Date)
|
|
136
|
+
], UserSessionInfo.prototype, "lastActivityAt", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, class_validator_1.IsDate)(),
|
|
139
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
140
|
+
__metadata("design:type", Date)
|
|
141
|
+
], UserSessionInfo.prototype, "createdAt", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, class_validator_1.IsDate)(),
|
|
144
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
145
|
+
__metadata("design:type", Date)
|
|
146
|
+
], UserSessionInfo.prototype, "expiresAt", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, class_validator_1.IsBoolean)(),
|
|
149
|
+
__metadata("design:type", Boolean)
|
|
150
|
+
], UserSessionInfo.prototype, "isRemembered", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, class_validator_1.IsBoolean)(),
|
|
153
|
+
__metadata("design:type", Boolean)
|
|
154
|
+
], UserSessionInfo.prototype, "isCurrent", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, class_validator_1.IsString)(),
|
|
157
|
+
(0, class_validator_1.IsOptional)(),
|
|
158
|
+
__metadata("design:type", Object)
|
|
159
|
+
], UserSessionInfo.prototype, "authMethod", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, class_validator_1.IsString)(),
|
|
162
|
+
(0, class_validator_1.IsOptional)(),
|
|
163
|
+
__metadata("design:type", Object)
|
|
164
|
+
], UserSessionInfo.prototype, "authProvider", void 0);
|
|
165
|
+
/**
|
|
166
|
+
* Response DTO for getting user sessions
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```typescript
|
|
170
|
+
* const response = await authService.getUserSessions(dto);
|
|
171
|
+
* // response.sessions = [{ sessionId: '123', authMethod: 'password', ... }, ...]
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
class GetUserSessionsResponseDTO {
|
|
175
|
+
/**
|
|
176
|
+
* Array of user sessions
|
|
177
|
+
*/
|
|
178
|
+
sessions;
|
|
179
|
+
}
|
|
180
|
+
exports.GetUserSessionsResponseDTO = GetUserSessionsResponseDTO;
|
|
181
|
+
//# sourceMappingURL=get-user-sessions-response.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-sessions-response.dto.js","sourceRoot":"","sources":["../../src/dto/get-user-sessions-response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAC1E,yDAAyC;AAEzC;;GAEG;AACH,MAAa,eAAe;IAC1B;;OAEG;IAEH,SAAS,CAAU;IAEnB;;OAEG;IAGH,QAAQ,CAAiB;IAEzB;;OAEG;IAGH,UAAU,CAAiB;IAE3B;;OAEG;IAGH,UAAU,CAAiB;IAE3B;;OAEG;IAGH,QAAQ,CAAiB;IAEzB;;OAEG;IAGH,OAAO,CAAiB;IAExB;;OAEG;IAGH,SAAS,CAAiB;IAE1B;;OAEG;IAGH,SAAS,CAAiB;IAE1B;;OAEG;IAGH,MAAM,CAAiB;IAEvB;;OAEG;IAGH,cAAc,CAAQ;IAEtB;;OAEG;IAGH,SAAS,CAAQ;IAEjB;;OAEG;IAGH,SAAS,CAAQ;IAEjB;;OAEG;IAEH,YAAY,CAAW;IAEvB;;OAEG;IAEH,SAAS,CAAW;IAEpB;;;;OAIG;IAGH,UAAU,CAAiB;IAE3B;;;OAGG;IAGH,YAAY,CAAiB;CAC9B;AAhHD,0C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
|
2
|
+
* DTO for getting user sessions
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript
|
|
6
|
+
* const dto = new GetUserSessionsDTO();
|
|
7
|
+
* dto.sub = 'user-uuid-123';
|
|
8
|
+
* const sessions = await authService.getUserSessions(dto);
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class GetUserSessionsDTO {
|
|
12
|
+
/**
|
|
13
|
+
* User sub (UUID)
|
|
14
|
+
*/
|
|
15
|
+
sub: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=get-user-sessions.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-sessions.dto.d.ts","sourceRoot":"","sources":["../../src/dto/get-user-sessions.dto.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,qBAAa,kBAAkB;IAC7B;;OAEG;IAIH,GAAG,EAAG,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetUserSessionsDTO = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
/**
|
|
16
|
+
* DTO for getting user sessions
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const dto = new GetUserSessionsDTO();
|
|
21
|
+
* dto.sub = 'user-uuid-123';
|
|
22
|
+
* const sessions = await authService.getUserSessions(dto);
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
class GetUserSessionsDTO {
|
|
26
|
+
/**
|
|
27
|
+
* User sub (UUID)
|
|
28
|
+
*/
|
|
29
|
+
sub;
|
|
30
|
+
}
|
|
31
|
+
exports.GetUserSessionsDTO = GetUserSessionsDTO;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsUUID)('4'),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
(0, class_transformer_1.Transform)(({ value }) => value?.trim().toLowerCase()),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], GetUserSessionsDTO.prototype, "sub", void 0);
|
|
38
|
+
//# sourceMappingURL=get-user-sessions.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-sessions.dto.js","sourceRoot":"","sources":["../../src/dto/get-user-sessions.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,yDAA8C;AAE9C;;;;;;;;;GASG;AACH,MAAa,kBAAkB;IAC7B;;OAEG;IAIH,GAAG,CAAU;CACd;AARD,gDAQC;AADC;IAHC,IAAA,wBAAM,EAAC,GAAG,CAAC;IACX,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;;+CACzC"}
|
package/dist/dto/index.d.ts
CHANGED
|
@@ -52,6 +52,10 @@ export * from './logout.dto';
|
|
|
52
52
|
export * from './logout-response.dto';
|
|
53
53
|
export * from './logout-all.dto';
|
|
54
54
|
export * from './logout-all-response.dto';
|
|
55
|
+
export * from './get-user-sessions.dto';
|
|
56
|
+
export * from './get-user-sessions-response.dto';
|
|
57
|
+
export * from './logout-session.dto';
|
|
58
|
+
export * from './logout-session-response.dto';
|
|
55
59
|
export * from './set-must-change-password.dto';
|
|
56
60
|
export * from './set-must-change-password-response.dto';
|
|
57
61
|
export * from './admin-set-password.dto';
|
package/dist/dto/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,C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C;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,0BAA0B,CAAC;AAEzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AAEjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC"}
|
package/dist/dto/index.js
CHANGED
|
@@ -69,6 +69,10 @@ __exportStar(require("./logout.dto"), exports);
|
|
|
69
69
|
__exportStar(require("./logout-response.dto"), exports);
|
|
70
70
|
__exportStar(require("./logout-all.dto"), exports);
|
|
71
71
|
__exportStar(require("./logout-all-response.dto"), exports);
|
|
72
|
+
__exportStar(require("./get-user-sessions.dto"), exports);
|
|
73
|
+
__exportStar(require("./get-user-sessions-response.dto"), exports);
|
|
74
|
+
__exportStar(require("./logout-session.dto"), exports);
|
|
75
|
+
__exportStar(require("./logout-session-response.dto"), exports);
|
|
72
76
|
__exportStar(require("./set-must-change-password.dto"), exports);
|
|
73
77
|
__exportStar(require("./set-must-change-password-response.dto"), exports);
|
|
74
78
|
__exportStar(require("./admin-set-password.dto"), exports);
|
package/dist/dto/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iBAAiB;AACjB,+CAA6B;AAC7B,qDAAmC;AACnC,4DAA0C;AAC1C,oDAAkC;AAClC,kDAAgC;AAChC,qDAAmC;AACnC,oDAAkC;AAClC,8CAA4B;AAC5B,wDAAsC;AACtC,gEAA8C;AAC9C,iEAA+C;AAC/C,sDAAoC;AACpC,oDAAkC;AAClC,uEAAqD;AACrD,uEAAqD;AACrD,qDAAmC;AACnC,qDAAmC;AACnC,4DAA0C;AAC1C,uDAAqC;AACrC,wDAAsC;AACtC,gEAA8C;AAC9C,sDAAoC;AACpC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,uDAAqC;AACrC,gEAA8C;AAC9C,2DAAyC;AACzC,oEAAkD;AAClD,8DAA4C;AAC5C,uDAAqC;AACrC,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAC9C,uDAAqC;AACrC,0DAAwC;AACxC,6DAA2C;AAC3C,kDAAgC;AAChC,wDAAsC;AACtC,wDAAsC;AACtC,gEAA8C;AAC9C,gEAA8C;AAC9C,kEAAgD;AAChD,gEAA8C;AAC9C,oDAAkC;AAClC,6DAA2C;AAC3C,0DAAwC;AACxC,uDAAqC;AACrC,0DAAwC;AACxC,+CAA6B;AAC7B,wDAAsC;AACtC,mDAAiC;AACjC,4DAA0C;AAC1C,iEAA+C;AAC/C,0EAAwD;AACxD,2DAAyC;AACzC,+EAA+E;AAC/E,8DAA4C;AAC5C,mEAAiD;AAEjD,oDAAkC;AAClC,wDAAsC;AAEtC,+DAA+D;AAC/D,+CAA+C;AAC/C,mCAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iBAAiB;AACjB,+CAA6B;AAC7B,qDAAmC;AACnC,4DAA0C;AAC1C,oDAAkC;AAClC,kDAAgC;AAChC,qDAAmC;AACnC,oDAAkC;AAClC,8CAA4B;AAC5B,wDAAsC;AACtC,gEAA8C;AAC9C,iEAA+C;AAC/C,sDAAoC;AACpC,oDAAkC;AAClC,uEAAqD;AACrD,uEAAqD;AACrD,qDAAmC;AACnC,qDAAmC;AACnC,4DAA0C;AAC1C,uDAAqC;AACrC,wDAAsC;AACtC,gEAA8C;AAC9C,sDAAoC;AACpC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,uDAAqC;AACrC,gEAA8C;AAC9C,2DAAyC;AACzC,oEAAkD;AAClD,8DAA4C;AAC5C,uDAAqC;AACrC,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAC9C,uDAAqC;AACrC,0DAAwC;AACxC,6DAA2C;AAC3C,kDAAgC;AAChC,wDAAsC;AACtC,wDAAsC;AACtC,gEAA8C;AAC9C,gEAA8C;AAC9C,kEAAgD;AAChD,gEAA8C;AAC9C,oDAAkC;AAClC,6DAA2C;AAC3C,0DAAwC;AACxC,uDAAqC;AACrC,0DAAwC;AACxC,+CAA6B;AAC7B,wDAAsC;AACtC,mDAAiC;AACjC,4DAA0C;AAC1C,0DAAwC;AACxC,mEAAiD;AACjD,uDAAqC;AACrC,gEAA8C;AAC9C,iEAA+C;AAC/C,0EAAwD;AACxD,2DAAyC;AACzC,+EAA+E;AAC/E,8DAA4C;AAC5C,mEAAiD;AAEjD,oDAAkC;AAClC,wDAAsC;AAEtC,+DAA+D;AAC/D,+CAA+C;AAC/C,mCAAmC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response DTO for logging out a specific session
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript
|
|
6
|
+
* const response = await authService.logoutSession(dto);
|
|
7
|
+
* // response.success === true
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
export declare class LogoutSessionResponseDTO {
|
|
11
|
+
/**
|
|
12
|
+
* Whether the session was successfully revoked
|
|
13
|
+
*/
|
|
14
|
+
success: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the revoked session was the current session
|
|
17
|
+
*/
|
|
18
|
+
wasCurrentSession: boolean;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=logout-session-response.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logout-session-response.dto.d.ts","sourceRoot":"","sources":["../../src/dto/logout-session-response.dto.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,qBAAa,wBAAwB;IACnC;;OAEG;IAEH,OAAO,EAAG,OAAO,CAAC;IAElB;;OAEG;IAEH,iBAAiB,EAAG,OAAO,CAAC;CAC7B"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LogoutSessionResponseDTO = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Response DTO for logging out a specific session
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* const response = await authService.logoutSession(dto);
|
|
20
|
+
* // response.success === true
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
class LogoutSessionResponseDTO {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the session was successfully revoked
|
|
26
|
+
*/
|
|
27
|
+
success;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the revoked session was the current session
|
|
30
|
+
*/
|
|
31
|
+
wasCurrentSession;
|
|
32
|
+
}
|
|
33
|
+
exports.LogoutSessionResponseDTO = LogoutSessionResponseDTO;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsBoolean)(),
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], LogoutSessionResponseDTO.prototype, "success", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], LogoutSessionResponseDTO.prototype, "wasCurrentSession", void 0);
|
|
42
|
+
//# sourceMappingURL=logout-session-response.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logout-session-response.dto.js","sourceRoot":"","sources":["../../src/dto/logout-session-response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAE5C;;;;;;;;GAQG;AACH,MAAa,wBAAwB;IACnC;;OAEG;IAEH,OAAO,CAAW;IAElB;;OAEG;IAEH,iBAAiB,CAAW;CAC7B;AAZD,4DAYC;AAPC;IADC,IAAA,2BAAS,GAAE;;yDACM;AAMlB;IADC,IAAA,2BAAS,GAAE;;mEACgB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DTO for logging out a specific session
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript
|
|
6
|
+
* const dto = new LogoutSessionDTO();
|
|
7
|
+
* dto.sub = 'user-uuid-123';
|
|
8
|
+
* dto.sessionId = '456';
|
|
9
|
+
* await authService.logoutSession(dto);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare class LogoutSessionDTO {
|
|
13
|
+
/**
|
|
14
|
+
* User sub (UUID) - must match the session owner
|
|
15
|
+
*/
|
|
16
|
+
sub: string;
|
|
17
|
+
/**
|
|
18
|
+
* Session ID to revoke
|
|
19
|
+
*/
|
|
20
|
+
sessionId: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=logout-session.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logout-session.dto.d.ts","sourceRoot":"","sources":["../../src/dto/logout-session.dto.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;IAIH,GAAG,EAAG,MAAM,CAAC;IAEb;;OAEG;IAGH,SAAS,EAAG,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LogoutSessionDTO = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
/**
|
|
16
|
+
* DTO for logging out a specific session
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const dto = new LogoutSessionDTO();
|
|
21
|
+
* dto.sub = 'user-uuid-123';
|
|
22
|
+
* dto.sessionId = '456';
|
|
23
|
+
* await authService.logoutSession(dto);
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
class LogoutSessionDTO {
|
|
27
|
+
/**
|
|
28
|
+
* User sub (UUID) - must match the session owner
|
|
29
|
+
*/
|
|
30
|
+
sub;
|
|
31
|
+
/**
|
|
32
|
+
* Session ID to revoke
|
|
33
|
+
*/
|
|
34
|
+
sessionId;
|
|
35
|
+
}
|
|
36
|
+
exports.LogoutSessionDTO = LogoutSessionDTO;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsUUID)('4'),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
(0, class_transformer_1.Transform)(({ value }) => value?.trim().toLowerCase()),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], LogoutSessionDTO.prototype, "sub", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], LogoutSessionDTO.prototype, "sessionId", void 0);
|
|
48
|
+
//# sourceMappingURL=logout-session.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logout-session.dto.js","sourceRoot":"","sources":["../../src/dto/logout-session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAA8C;AAE9C;;;;;;;;;;GAUG;AACH,MAAa,gBAAgB;IAC3B;;OAEG;IAIH,GAAG,CAAU;IAEb;;OAEG;IAGH,SAAS,CAAU;CACpB;AAfD,4CAeC;AARC;IAHC,IAAA,wBAAM,EAAC,GAAG,CAAC;IACX,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;;6CACzC;AAOb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACM"}
|