tychat-contracts 1.6.2 → 1.6.4

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.
@@ -14,6 +14,8 @@ export declare class PlanSummaryDto {
14
14
  maxAttendants: number;
15
15
  maxAdministrators: number;
16
16
  maxProcedures: number;
17
+ maxConcurrentSessionsPerAccount: number;
18
+ concurrentSessionsExceededPolicy: 'revoke_lru' | 'deny_login';
17
19
  monthlyAiTokens: number;
18
20
  monthlyLegalTerms: number;
19
21
  conversationStorageGb: number;
@@ -1 +1 @@
1
- {"version":3,"file":"plan-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/plan-summary.dto.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,cAAc;IAEzB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,cAAc,EAAE,MAAM,CAAC;IAGvB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAG9B,oBAAoB,EAAE,MAAM,CAAC;IAG7B,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAGtB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,aAAa,EAAE,MAAM,CAAC;IAGtB,eAAe,EAAE,MAAM,CAAC;IAGxB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,qBAAqB,EAAE,MAAM,CAAC;IAG9B,eAAe,EAAE,MAAM,CAAC;IAGxB,2BAA2B,EAAE,MAAM,CAAC;IAGpC,qBAAqB,EAAE,MAAM,CAAC;IAG9B,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
1
+ {"version":3,"file":"plan-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/plan-summary.dto.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,cAAc;IAEzB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,cAAc,EAAE,MAAM,CAAC;IAGvB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAG9B,oBAAoB,EAAE,MAAM,CAAC;IAG7B,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAGtB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,aAAa,EAAE,MAAM,CAAC;IAMtB,+BAA+B,EAAE,MAAM,CAAC;IAOxC,gCAAgC,EAAE,YAAY,GAAG,YAAY,CAAC;IAG9D,eAAe,EAAE,MAAM,CAAC;IAGxB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,qBAAqB,EAAE,MAAM,CAAC;IAG9B,eAAe,EAAE,MAAM,CAAC;IAGxB,2BAA2B,EAAE,MAAM,CAAC;IAGpC,qBAAqB,EAAE,MAAM,CAAC;IAG9B,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
@@ -27,6 +27,8 @@ class PlanSummaryDto {
27
27
  maxAttendants;
28
28
  maxAdministrators;
29
29
  maxProcedures;
30
+ maxConcurrentSessionsPerAccount;
31
+ concurrentSessionsExceededPolicy;
30
32
  monthlyAiTokens;
31
33
  monthlyLegalTerms;
32
34
  conversationStorageGb;
@@ -85,6 +87,21 @@ __decorate([
85
87
  (0, swagger_1.ApiProperty)({ description: 'Max procedures', example: 200 }),
86
88
  __metadata("design:type", Number)
87
89
  ], PlanSummaryDto.prototype, "maxProcedures", void 0);
90
+ __decorate([
91
+ (0, swagger_1.ApiProperty)({
92
+ description: 'Máx. sessões ativas por conta no tenant (0 = ilimitado)',
93
+ example: 2,
94
+ }),
95
+ __metadata("design:type", Number)
96
+ ], PlanSummaryDto.prototype, "maxConcurrentSessionsPerAccount", void 0);
97
+ __decorate([
98
+ (0, swagger_1.ApiProperty)({
99
+ description: 'Política ao exceder o limite de sessões',
100
+ enum: ['revoke_lru', 'deny_login'],
101
+ example: 'revoke_lru',
102
+ }),
103
+ __metadata("design:type", String)
104
+ ], PlanSummaryDto.prototype, "concurrentSessionsExceededPolicy", void 0);
88
105
  __decorate([
89
106
  (0, swagger_1.ApiProperty)({ description: 'Monthly AI token allowance', example: 5000 }),
90
107
  __metadata("design:type", Number)
@@ -13,5 +13,7 @@ export declare class TenantLimitsSummaryDto {
13
13
  monthlyLegalTerms: number | null;
14
14
  extraConversationStorageGb: number;
15
15
  extraClinicStorageGb: number;
16
+ maxConcurrentSessionsPerAccount: number | null;
17
+ concurrentSessionsExceededPolicy: 'revoke_lru' | 'deny_login' | null;
16
18
  }
17
19
  //# sourceMappingURL=tenant-limits-summary.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tenant-limits-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/tenant-limits-summary.dto.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,sBAAsB;IAEjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGpC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,0BAA0B,EAAE,MAAM,CAAC;IAGnC,oBAAoB,EAAE,MAAM,CAAC;CAC9B"}
1
+ {"version":3,"file":"tenant-limits-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/tenant-limits-summary.dto.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,sBAAsB;IAEjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGpC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,0BAA0B,EAAE,MAAM,CAAC;IAGnC,oBAAoB,EAAE,MAAM,CAAC;IAK7B,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAC;IAM/C,gCAAgC,EAAE,YAAY,GAAG,YAAY,GAAG,IAAI,CAAC;CACtE"}
@@ -26,6 +26,8 @@ class TenantLimitsSummaryDto {
26
26
  monthlyLegalTerms;
27
27
  extraConversationStorageGb;
28
28
  extraClinicStorageGb;
29
+ maxConcurrentSessionsPerAccount;
30
+ concurrentSessionsExceededPolicy;
29
31
  }
30
32
  exports.TenantLimitsSummaryDto = TenantLimitsSummaryDto;
31
33
  __decorate([
@@ -72,3 +74,16 @@ __decorate([
72
74
  (0, swagger_1.ApiPropertyOptional)({ description: 'GB extras de armazenamento clínico (somados ao plano)', default: 0 }),
73
75
  __metadata("design:type", Number)
74
76
  ], TenantLimitsSummaryDto.prototype, "extraClinicStorageGb", void 0);
77
+ __decorate([
78
+ (0, swagger_1.ApiPropertyOptional)({
79
+ description: 'Override: máx. sessões ativas por conta (0 = ilimitado); null = herdar do plano',
80
+ }),
81
+ __metadata("design:type", Object)
82
+ ], TenantLimitsSummaryDto.prototype, "maxConcurrentSessionsPerAccount", void 0);
83
+ __decorate([
84
+ (0, swagger_1.ApiPropertyOptional)({
85
+ description: 'Override da política ao exceder sessões; null = herdar do plano',
86
+ enum: ['revoke_lru', 'deny_login'],
87
+ }),
88
+ __metadata("design:type", Object)
89
+ ], TenantLimitsSummaryDto.prototype, "concurrentSessionsExceededPolicy", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tychat-contracts",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "DTOs compartilhados com class-validator (API e microserviços)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -40,6 +40,19 @@ export class PlanSummaryDto {
40
40
  @ApiProperty({ description: 'Max procedures', example: 200 })
41
41
  maxProcedures: number;
42
42
 
43
+ @ApiProperty({
44
+ description: 'Máx. sessões ativas por conta no tenant (0 = ilimitado)',
45
+ example: 2,
46
+ })
47
+ maxConcurrentSessionsPerAccount: number;
48
+
49
+ @ApiProperty({
50
+ description: 'Política ao exceder o limite de sessões',
51
+ enum: ['revoke_lru', 'deny_login'],
52
+ example: 'revoke_lru',
53
+ })
54
+ concurrentSessionsExceededPolicy: 'revoke_lru' | 'deny_login';
55
+
43
56
  @ApiProperty({ description: 'Monthly AI token allowance', example: 5000 })
44
57
  monthlyAiTokens: number;
45
58
 
@@ -36,4 +36,15 @@ export class TenantLimitsSummaryDto {
36
36
 
37
37
  @ApiPropertyOptional({ description: 'GB extras de armazenamento clínico (somados ao plano)', default: 0 })
38
38
  extraClinicStorageGb: number;
39
+
40
+ @ApiPropertyOptional({
41
+ description: 'Override: máx. sessões ativas por conta (0 = ilimitado); null = herdar do plano',
42
+ })
43
+ maxConcurrentSessionsPerAccount: number | null;
44
+
45
+ @ApiPropertyOptional({
46
+ description: 'Override da política ao exceder sessões; null = herdar do plano',
47
+ enum: ['revoke_lru', 'deny_login'],
48
+ })
49
+ concurrentSessionsExceededPolicy: 'revoke_lru' | 'deny_login' | null;
39
50
  }