tychat-contracts 1.4.7 → 1.4.8

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.
@@ -1,3 +1,4 @@
1
+ import { TenantAiTokenStateDto } from '../tenants/tenant-ai-token-state.dto';
1
2
  import { PlanSummaryDto } from './plan-summary.dto';
2
3
  import { TenantLimitsSummaryDto } from './tenant-limits-summary.dto';
3
4
  import { TenantStorageUsageSummaryDto } from './tenant-storage-usage-summary.dto';
@@ -14,6 +15,7 @@ export declare class ConfigurationTenantSummaryDto {
14
15
  plan: PlanSummaryDto | null;
15
16
  limits: TenantLimitsSummaryDto | null;
16
17
  storageUsage: TenantStorageUsageSummaryDto | null;
18
+ aiTokenState: TenantAiTokenStateDto | null;
17
19
  conversationEffectiveLimitBytes?: string;
18
20
  clinicEffectiveLimitBytes?: string;
19
21
  extraStorageCharge?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"configuration-tenant-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/configuration-tenant-summary.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAElF;;GAEG;AACH,qBAAa,6BAA6B;IAExC,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAO9B,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IAO5B,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAOtC,YAAY,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAGlD,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAGzC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAKnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAK5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
1
+ {"version":3,"file":"configuration-tenant-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/configuration-tenant-summary.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAElF;;GAEG;AACH,qBAAa,6BAA6B;IAExC,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAO9B,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IAO5B,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAOtC,YAAY,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAOlD,YAAY,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAG3C,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAGzC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAKnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAK5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ConfigurationTenantSummaryDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
+ const tenant_ai_token_state_dto_1 = require("../tenants/tenant-ai-token-state.dto");
14
15
  const plan_summary_dto_1 = require("./plan-summary.dto");
15
16
  const tenant_limits_summary_dto_1 = require("./tenant-limits-summary.dto");
16
17
  const tenant_storage_usage_summary_dto_1 = require("./tenant-storage-usage-summary.dto");
@@ -27,6 +28,7 @@ class ConfigurationTenantSummaryDto {
27
28
  plan;
28
29
  limits;
29
30
  storageUsage;
31
+ aiTokenState;
30
32
  conversationEffectiveLimitBytes;
31
33
  clinicEffectiveLimitBytes;
32
34
  extraStorageCharge;
@@ -81,6 +83,14 @@ __decorate([
81
83
  }),
82
84
  __metadata("design:type", Object)
83
85
  ], ConfigurationTenantSummaryDto.prototype, "storageUsage", void 0);
86
+ __decorate([
87
+ (0, swagger_1.ApiPropertyOptional)({
88
+ description: 'Saldo e cota de tokens de IA no ciclo atual',
89
+ type: () => tenant_ai_token_state_dto_1.TenantAiTokenStateDto,
90
+ nullable: true,
91
+ }),
92
+ __metadata("design:type", Object)
93
+ ], ConfigurationTenantSummaryDto.prototype, "aiTokenState", void 0);
84
94
  __decorate([
85
95
  (0, swagger_1.ApiPropertyOptional)({ description: 'Limite efetivo de conversas em bytes (plano + extras)' }),
86
96
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tychat-contracts",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
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",
@@ -1,4 +1,5 @@
1
1
  import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
2
+ import { TenantAiTokenStateDto } from '../tenants/tenant-ai-token-state.dto';
2
3
  import { PlanSummaryDto } from './plan-summary.dto';
3
4
  import { TenantLimitsSummaryDto } from './tenant-limits-summary.dto';
4
5
  import { TenantStorageUsageSummaryDto } from './tenant-storage-usage-summary.dto';
@@ -46,6 +47,13 @@ export class ConfigurationTenantSummaryDto {
46
47
  })
47
48
  storageUsage: TenantStorageUsageSummaryDto | null;
48
49
 
50
+ @ApiPropertyOptional({
51
+ description: 'Saldo e cota de tokens de IA no ciclo atual',
52
+ type: () => TenantAiTokenStateDto,
53
+ nullable: true,
54
+ })
55
+ aiTokenState: TenantAiTokenStateDto | null;
56
+
49
57
  @ApiPropertyOptional({ description: 'Limite efetivo de conversas em bytes (plano + extras)' })
50
58
  conversationEffectiveLimitBytes?: string;
51
59