@bgord/bun 1.21.7 → 1.21.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.
Files changed (52) hide show
  1. package/dist/command-envelope.d.ts +4 -4
  2. package/dist/correlation-id.vo.d.ts +1 -1
  3. package/dist/correlation-id.vo.d.ts.map +1 -1
  4. package/dist/event-envelope.d.ts +2 -2
  5. package/dist/id-provider-crypto.adapter.d.ts +1 -1
  6. package/dist/id-provider-crypto.adapter.d.ts.map +1 -1
  7. package/dist/id-provider-crypto.adapter.js +3 -1
  8. package/dist/id-provider-crypto.adapter.js.map +1 -1
  9. package/dist/job-envelope.d.ts +2 -2
  10. package/dist/modules/history/events/HISTORY_CLEARED_EVENT.d.ts +3 -3
  11. package/dist/modules/history/events/HISTORY_POPULATED_EVENT.d.ts +8 -6
  12. package/dist/modules/history/events/HISTORY_POPULATED_EVENT.d.ts.map +1 -1
  13. package/dist/modules/history/value-objects/history-id.d.ts +3 -1
  14. package/dist/modules/history/value-objects/history-id.d.ts.map +1 -1
  15. package/dist/modules/history/value-objects/history-id.js +3 -1
  16. package/dist/modules/history/value-objects/history-id.js.map +1 -1
  17. package/dist/modules/history/value-objects/history-operation.d.ts +2 -1
  18. package/dist/modules/history/value-objects/history-operation.d.ts.map +1 -1
  19. package/dist/modules/history/value-objects/history-operation.js +3 -1
  20. package/dist/modules/history/value-objects/history-operation.js.map +1 -1
  21. package/dist/modules/history/value-objects/history-payload.d.ts +10 -4
  22. package/dist/modules/history/value-objects/history-payload.d.ts.map +1 -1
  23. package/dist/modules/history/value-objects/history-payload.js +6 -2
  24. package/dist/modules/history/value-objects/history-payload.js.map +1 -1
  25. package/dist/modules/history/value-objects/history-subject.d.ts +1 -1
  26. package/dist/modules/history/value-objects/history-subject.d.ts.map +1 -1
  27. package/dist/modules/history/value-objects/history-subject.js +3 -1
  28. package/dist/modules/history/value-objects/history-subject.js.map +1 -1
  29. package/dist/modules/history/value-objects/history.d.ts +14 -10
  30. package/dist/modules/history/value-objects/history.d.ts.map +1 -1
  31. package/dist/modules/preferences/commands/SET_USER_LANGUAGE_COMMAND.d.ts +3 -3
  32. package/dist/modules/preferences/events/USER_LANGUAGE_SET_EVENT.d.ts +3 -3
  33. package/dist/modules/system/events/HOUR_HAS_PASSED_EVENT.d.ts +2 -2
  34. package/dist/modules/system/events/MINUTE_HAS_PASSED_EVENT.d.ts +2 -2
  35. package/dist/modules/system/events/SECURITY_VIOLATION_DETECTED_EVENT.d.ts +3 -3
  36. package/dist/modules/system/jobs/SEND_EMAIL_JOB.d.ts +2 -2
  37. package/dist/smtp-port.vo.d.ts +2 -2
  38. package/dist/smtp-port.vo.d.ts.map +1 -1
  39. package/dist/smtp-port.vo.js +2 -1
  40. package/dist/smtp-port.vo.js.map +1 -1
  41. package/dist/uuid.vo.d.ts +1 -1
  42. package/dist/uuid.vo.d.ts.map +1 -1
  43. package/dist/uuid.vo.js +1 -1
  44. package/dist/uuid.vo.js.map +1 -1
  45. package/package.json +6 -6
  46. package/src/id-provider-crypto.adapter.ts +3 -2
  47. package/src/modules/history/value-objects/history-id.ts +5 -1
  48. package/src/modules/history/value-objects/history-operation.ts +4 -0
  49. package/src/modules/history/value-objects/history-payload.ts +11 -1
  50. package/src/modules/history/value-objects/history-subject.ts +2 -0
  51. package/src/smtp-port.vo.ts +2 -2
  52. package/src/uuid.vo.ts +1 -1
@@ -6,13 +6,13 @@ type Dependencies = {
6
6
  Clock: ClockPort;
7
7
  };
8
8
  export declare const CommandEnvelopeSchema: {
9
- id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
10
- correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
9
+ id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
10
+ correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
11
11
  createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
12
12
  };
13
13
  export declare const createCommandEnvelope: (deps: Dependencies) => {
14
- readonly id: string;
15
- readonly correlationId: string & v.Brand<"CorrelationId">;
14
+ readonly id: string & v.Brand<"UUID">;
15
+ readonly correlationId: string & v.Brand<"UUID"> & v.Brand<"CorrelationId">;
16
16
  readonly createdAt: number & v.Brand<"TimestampValue">;
17
17
  };
18
18
  export declare function command<Schema extends v.ObjectSchema<any, any>>(schema: Schema, fields: Omit<v.InferOutput<Schema>, "id" | "correlationId" | "createdAt" | "name">, deps: Dependencies): v.InferOutput<Schema>;
@@ -1,4 +1,4 @@
1
1
  import * as v from "valibot";
2
- export declare const CorrelationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
2
+ export declare const CorrelationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
3
3
  export type CorrelationIdType = v.InferOutput<typeof CorrelationId>;
4
4
  //# sourceMappingURL=correlation-id.vo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"correlation-id.vo.d.ts","sourceRoot":"","sources":["../src/correlation-id.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,eAAO,MAAM,aAAa,kKAAyC,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"correlation-id.vo.d.ts","sourceRoot":"","sources":["../src/correlation-id.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,eAAO,MAAM,aAAa,mNAAyC,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -9,8 +9,8 @@ type Dependencies = {
9
9
  CommitConfig: StaticConfigPort<CommitShaValueType>;
10
10
  };
11
11
  export declare const EventEnvelopeSchema: {
12
- id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
13
- correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
12
+ id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
13
+ correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
14
14
  createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
15
15
  stream: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 256, string>, v.BrandAction<string, "EventStream">]>;
16
16
  version: v.LiteralSchema<1, undefined>;
@@ -1,5 +1,5 @@
1
1
  import type { IdProviderPort } from "./id-provider.port";
2
- import type { UUIDType } from "./uuid.vo";
2
+ import { type UUIDType } from "./uuid.vo";
3
3
  export declare class IdProviderCryptoAdapter implements IdProviderPort {
4
4
  generate(): UUIDType;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"id-provider-crypto.adapter.d.ts","sourceRoot":"","sources":["../src/id-provider-crypto.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,qBAAa,uBAAwB,YAAW,cAAc;IAC5D,QAAQ,IAAI,QAAQ,CAEnB;CACF"}
1
+ {"version":3,"file":"id-provider-crypto.adapter.d.ts","sourceRoot":"","sources":["../src/id-provider-crypto.adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEhD,qBAAa,uBAAwB,YAAW,cAAc;IAC5D,QAAQ,IAAI,QAAQ,CAEnB;CACF"}
@@ -1,6 +1,8 @@
1
+ import * as v from "valibot";
2
+ import { UUID } from "./uuid.vo";
1
3
  export class IdProviderCryptoAdapter {
2
4
  generate() {
3
- return crypto.randomUUID();
5
+ return v.parse(UUID, crypto.randomUUID());
4
6
  }
5
7
  }
6
8
  //# sourceMappingURL=id-provider-crypto.adapter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"id-provider-crypto.adapter.js","sourceRoot":"","sources":["../src/id-provider-crypto.adapter.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,uBAAuB;IAClC,QAAQ;QACN,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"id-provider-crypto.adapter.js","sourceRoot":"","sources":["../src/id-provider-crypto.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAiB,MAAM,WAAW,CAAC;AAEhD,MAAM,OAAO,uBAAuB;IAClC,QAAQ;QACN,OAAO,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;IAC5C,CAAC;CACF"}
@@ -6,8 +6,8 @@ type Dependencies = {
6
6
  Clock: ClockPort;
7
7
  };
8
8
  export declare const JobEnvelopeSchema: {
9
- id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
10
- correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
9
+ id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
10
+ correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
11
11
  createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
12
12
  revision: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.IntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "RevisionValue">]>;
13
13
  };
@@ -1,8 +1,8 @@
1
1
  import * as v from "valibot";
2
2
  export declare const HISTORY_CLEARED_EVENT = "HISTORY_CLEARED_EVENT";
3
3
  export declare const HistoryClearedEvent: v.ObjectSchema<{
4
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
5
- readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
4
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
5
+ readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
6
6
  readonly createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
7
7
  readonly stream: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 256, string>, v.BrandAction<string, "EventStream">]>;
8
8
  readonly version: v.LiteralSchema<1, undefined>;
@@ -10,7 +10,7 @@ export declare const HistoryClearedEvent: v.ObjectSchema<{
10
10
  readonly commit: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>, v.BrandAction<string, "CommitShaValue">]>;
11
11
  readonly name: v.LiteralSchema<"HISTORY_CLEARED_EVENT", undefined>;
12
12
  readonly payload: v.ObjectSchema<{
13
- readonly subject: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>]>;
13
+ readonly subject: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "HistorySubject">]>;
14
14
  }, undefined>;
15
15
  }, undefined>;
16
16
  export type HistoryClearedEventType = v.InferOutput<typeof HistoryClearedEvent>;
@@ -1,8 +1,8 @@
1
1
  import * as v from "valibot";
2
2
  export declare const HISTORY_POPULATED_EVENT = "HISTORY_POPULATED_EVENT";
3
3
  export declare const HistoryPopulatedEvent: v.ObjectSchema<{
4
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
5
- readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
4
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
5
+ readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
6
6
  readonly createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
7
7
  readonly stream: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 256, string>, v.BrandAction<string, "EventStream">]>;
8
8
  readonly version: v.LiteralSchema<1, undefined>;
@@ -10,10 +10,12 @@ export declare const HistoryPopulatedEvent: v.ObjectSchema<{
10
10
  readonly commit: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>, v.BrandAction<string, "CommitShaValue">]>;
11
11
  readonly name: v.LiteralSchema<"HISTORY_POPULATED_EVENT", undefined>;
12
12
  readonly payload: v.ObjectSchema<{
13
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
14
- readonly operation: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>]>;
15
- readonly subject: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>]>;
16
- readonly payload: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
13
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "HistoryId">]>;
14
+ readonly operation: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "HistoryOperation">]>;
15
+ readonly subject: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "HistorySubject">]>;
16
+ readonly payload: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, v.BrandAction<{
17
+ [x: string]: unknown;
18
+ }, "HistoryPayload">]>;
17
19
  }, undefined>;
18
20
  }, undefined>;
19
21
  export type HistoryPopulatedEventType = v.InferOutput<typeof HistoryPopulatedEvent>;
@@ -1 +1 @@
1
- {"version":3,"file":"HISTORY_POPULATED_EVENT.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/events/HISTORY_POPULATED_EVENT.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAI7B,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;aAShC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"HISTORY_POPULATED_EVENT.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/events/HISTORY_POPULATED_EVENT.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAI7B,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;aAShC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -1,2 +1,4 @@
1
- export declare const HistoryId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<"uuid.type">, import("valibot").UuidAction<string, "uuid.type">]>;
1
+ import * as v from "valibot";
2
+ export declare const HistoryId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "HistoryId">]>;
3
+ export type HistoryIdType = v.InferOutput<typeof HistoryId>;
2
4
  //# sourceMappingURL=history-id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"history-id.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-id.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,6IAAO,CAAC"}
1
+ {"version":3,"file":"history-id.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAI7B,eAAO,MAAM,SAAS,+MAAqC,CAAC;AAE5D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,SAAS,CAAC,CAAC"}
@@ -1,3 +1,5 @@
1
+ import * as v from "valibot";
1
2
  import { UUID } from "../../../uuid.vo";
2
- export const HistoryId = UUID;
3
+ // Stryker disable next-line StringLiteral
4
+ export const HistoryId = v.pipe(UUID, v.brand("HistoryId"));
3
5
  //# sourceMappingURL=history-id.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"history-id.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"history-id.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,0CAA0C;AAC1C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC"}
@@ -4,5 +4,6 @@ export declare const HistoryOperationError: {
4
4
  Empty: string;
5
5
  TooLong: string;
6
6
  };
7
- export declare const HistoryOperation: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>]>;
7
+ export declare const HistoryOperation: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "HistoryOperation">]>;
8
+ export type HistoryOperationType = v.InferOutput<typeof HistoryOperation>;
8
9
  //# sourceMappingURL=history-operation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"history-operation.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,qBAAqB;IAChC,IAAI;IACJ,KAAK;IACL,OAAO;CACR,CAAC;AAEF,eAAO,MAAM,gBAAgB,mIAI5B,CAAC"}
1
+ {"version":3,"file":"history-operation.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,qBAAqB;IAChC,IAAI;IACJ,KAAK;IACL,OAAO;CACR,CAAC;AAEF,eAAO,MAAM,gBAAgB,8KAM5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -4,5 +4,7 @@ export const HistoryOperationError = {
4
4
  Empty: "history.operation.empty",
5
5
  TooLong: "history.operation.too.long",
6
6
  };
7
- export const HistoryOperation = v.pipe(v.string(HistoryOperationError.Type), v.minLength(1, HistoryOperationError.Empty), v.maxLength(128, HistoryOperationError.TooLong));
7
+ export const HistoryOperation = v.pipe(v.string(HistoryOperationError.Type), v.minLength(1, HistoryOperationError.Empty), v.maxLength(128, HistoryOperationError.TooLong),
8
+ // Stryker disable next-line StringLiteral
9
+ v.brand("HistoryOperation"));
8
10
  //# sourceMappingURL=history-operation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"history-operation.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,wBAAwB;IAC9B,KAAK,EAAE,yBAAyB;IAChC,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CACpC,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,EACpC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,EAC3C,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAChD,CAAC"}
1
+ {"version":3,"file":"history-operation.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,wBAAwB;IAC9B,KAAK,EAAE,yBAAyB;IAChC,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CACpC,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,EACpC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,EAC3C,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,qBAAqB,CAAC,OAAO,CAAC;AAC/C,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5B,CAAC"}
@@ -1,11 +1,17 @@
1
1
  import * as v from "valibot";
2
- export declare const HistoryPayload: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
2
+ export declare const HistoryPayload: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, v.BrandAction<{
3
+ [x: string]: unknown;
4
+ }, "HistoryPayload">]>;
5
+ export type HistoryPayloadType = v.InferOutput<typeof HistoryPayload>;
3
6
  export declare const HistoryPayloadParsedError: {
4
7
  NotSerializable: string;
5
8
  };
6
- export declare const HistoryPayloadParsed: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, v.CheckAction<{
9
+ export declare const HistoryPayloadParsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, v.BrandAction<{
10
+ [x: string]: unknown;
11
+ }, "HistoryPayload">]>, v.CheckAction<{
7
12
  [x: string]: unknown;
8
- }, string>, v.TransformAction<{
13
+ } & v.Brand<"HistoryPayload">, string>, v.TransformAction<{
9
14
  [x: string]: unknown;
10
- }, string>]>;
15
+ } & v.Brand<"HistoryPayload">, string>, v.BrandAction<string, "HistoryPayloadParsed">]>;
16
+ export type HistoryPayloadParsedType = v.InferOutput<typeof HistoryPayloadParsed>;
11
17
  //# sourceMappingURL=history-payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"history-payload.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,cAAc,uEAAoC,CAAC;AAEhE,eAAO,MAAM,yBAAyB;IACpC,eAAe;CAChB,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;;YAWhC,CAAC"}
1
+ {"version":3,"file":"history-payload.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,cAAc;;sBAI1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtE,eAAO,MAAM,yBAAyB;IACpC,eAAe;CAChB,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;;;;uFAahC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import * as v from "valibot";
2
- export const HistoryPayload = v.record(v.string(), v.unknown());
2
+ export const HistoryPayload = v.pipe(v.record(v.string(), v.unknown()),
3
+ // Stryker disable next-line StringLiteral
4
+ v.brand("HistoryPayload"));
3
5
  export const HistoryPayloadParsedError = {
4
6
  NotSerializable: "history.payload.parsed.not.serializable",
5
7
  };
@@ -12,5 +14,7 @@ export const HistoryPayloadParsed = v.pipe(HistoryPayload, v.check((value) => {
12
14
  catch {
13
15
  return false;
14
16
  }
15
- }, HistoryPayloadParsedError.NotSerializable), v.transform((value) => JSON.stringify(value)));
17
+ }, HistoryPayloadParsedError.NotSerializable), v.transform((value) => JSON.stringify(value)),
18
+ // Stryker disable next-line StringLiteral
19
+ v.brand("HistoryPayloadParsed"));
16
20
  //# sourceMappingURL=history-payload.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"history-payload.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,eAAe,EAAE,yCAAyC;CAC3D,CAAC;AAEF,iCAAiC;AACjC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CACxC,cAAc,EACd,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAChB,IAAI,CAAC;QACH,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,EAC7C,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAC9C,CAAC"}
1
+ {"version":3,"file":"history-payload.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAClC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;AACjC,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAC1B,CAAC;AAIF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,eAAe,EAAE,yCAAyC;CAC3D,CAAC;AAEF,iCAAiC;AACjC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CACxC,cAAc,EACd,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAChB,IAAI,CAAC;QACH,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,EAC7C,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC7C,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAChC,CAAC"}
@@ -4,6 +4,6 @@ export declare const HistorySubjectError: {
4
4
  Empty: string;
5
5
  TooLong: string;
6
6
  };
7
- export declare const HistorySubject: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>]>;
7
+ export declare const HistorySubject: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "HistorySubject">]>;
8
8
  export type HistorySubjectType = v.InferOutput<typeof HistorySubject>;
9
9
  //# sourceMappingURL=history-subject.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"history-subject.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-subject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,mBAAmB;IAC9B,IAAI;IACJ,KAAK;IACL,OAAO;CACR,CAAC;AAEF,eAAO,MAAM,cAAc,mIAI1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"history-subject.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-subject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,mBAAmB;IAC9B,IAAI;IACJ,KAAK;IACL,OAAO;CACR,CAAC;AAEF,eAAO,MAAM,cAAc,4KAM1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -4,5 +4,7 @@ export const HistorySubjectError = {
4
4
  Empty: "history.subject.empty",
5
5
  TooLong: "history.subject.too.long",
6
6
  };
7
- export const HistorySubject = v.pipe(v.string(HistorySubjectError.Type), v.minLength(1, HistorySubjectError.Empty), v.maxLength(128, HistorySubjectError.TooLong));
7
+ export const HistorySubject = v.pipe(v.string(HistorySubjectError.Type), v.minLength(1, HistorySubjectError.Empty), v.maxLength(128, HistorySubjectError.TooLong),
8
+ // Stryker disable next-line StringLiteral
9
+ v.brand("HistorySubject"));
8
10
  //# sourceMappingURL=history-subject.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"history-subject.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-subject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,uBAAuB;IAC9B,OAAO,EAAE,0BAA0B;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAClC,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAClC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,EACzC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAC9C,CAAC"}
1
+ {"version":3,"file":"history-subject.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-subject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,uBAAuB;IAC9B,OAAO,EAAE,0BAA0B;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAClC,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAClC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,EACzC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,mBAAmB,CAAC,OAAO,CAAC;AAC7C,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAC1B,CAAC"}
@@ -1,21 +1,25 @@
1
1
  import * as v from "valibot";
2
2
  export declare const History: v.ObjectSchema<{
3
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
4
- readonly operation: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>]>;
5
- readonly payload: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
6
- readonly subject: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>]>;
3
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "HistoryId">]>;
4
+ readonly operation: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "HistoryOperation">]>;
5
+ readonly payload: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, v.BrandAction<{
6
+ [x: string]: unknown;
7
+ }, "HistoryPayload">]>;
8
+ readonly subject: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "HistorySubject">]>;
7
9
  readonly createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
8
10
  }, undefined>;
9
11
  export type HistoryType = v.InferOutput<typeof History>;
10
12
  export declare const HistoryParsed: v.ObjectSchema<{
11
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
12
- readonly operation: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>]>;
13
- readonly payload: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, v.CheckAction<{
13
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "HistoryId">]>;
14
+ readonly operation: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "HistoryOperation">]>;
15
+ readonly payload: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, v.BrandAction<{
16
+ [x: string]: unknown;
17
+ }, "HistoryPayload">]>, v.CheckAction<{
14
18
  [x: string]: unknown;
15
- }, string>, v.TransformAction<{
19
+ } & v.Brand<"HistoryPayload">, string>, v.TransformAction<{
16
20
  [x: string]: unknown;
17
- }, string>]>;
18
- readonly subject: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>]>;
21
+ } & v.Brand<"HistoryPayload">, string>, v.BrandAction<string, "HistoryPayloadParsed">]>;
22
+ readonly subject: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "HistorySubject">]>;
19
23
  readonly createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
20
24
  }, undefined>;
21
25
  export type HistoryParsedType = v.InferOutput<typeof HistoryParsed>;
@@ -1 +1 @@
1
- {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAO7B,eAAO,MAAM,OAAO;;;;;;aAMlB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAExD,eAAO,MAAM,aAAa;;;;;;;;;;aAMxB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAO7B,eAAO,MAAM,OAAO;;;;;;;;aAMlB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAExD,eAAO,MAAM,aAAa;;;;;;;;;;;;aAMxB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import * as v from "valibot";
2
2
  export declare const SET_USER_LANGUAGE_COMMAND = "SET_USER_LANGUAGE_COMMAND";
3
3
  export declare const SetUserLanguageCommand: v.ObjectSchema<{
4
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
5
- readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
4
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
5
+ readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
6
6
  readonly createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
7
7
  readonly name: v.LiteralSchema<"SET_USER_LANGUAGE_COMMAND", undefined>;
8
8
  readonly payload: v.ObjectSchema<{
9
9
  readonly language: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>]>;
10
- readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
10
+ readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
11
11
  }, undefined>;
12
12
  }, undefined>;
13
13
  export type SetUserLanguageCommandType = v.InferOutput<typeof SetUserLanguageCommand>;
@@ -1,8 +1,8 @@
1
1
  import * as v from "valibot";
2
2
  export declare const USER_LANGUAGE_SET_EVENT = "USER_LANGUAGE_SET_EVENT";
3
3
  export declare const UserLanguageSetEvent: v.ObjectSchema<{
4
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
5
- readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
4
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
5
+ readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
6
6
  readonly createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
7
7
  readonly stream: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 256, string>, v.BrandAction<string, "EventStream">]>;
8
8
  readonly version: v.LiteralSchema<1, undefined>;
@@ -10,7 +10,7 @@ export declare const UserLanguageSetEvent: v.ObjectSchema<{
10
10
  readonly commit: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>, v.BrandAction<string, "CommitShaValue">]>;
11
11
  readonly name: v.LiteralSchema<"USER_LANGUAGE_SET_EVENT", undefined>;
12
12
  readonly payload: v.ObjectSchema<{
13
- readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
13
+ readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
14
14
  readonly language: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>]>;
15
15
  }, undefined>;
16
16
  }, undefined>;
@@ -1,8 +1,8 @@
1
1
  import * as v from "valibot";
2
2
  export declare const HOUR_HAS_PASSED_EVENT = "HOUR_HAS_PASSED_EVENT";
3
3
  export declare const HourHasPassedEvent: v.ObjectSchema<{
4
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
5
- readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
4
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
5
+ readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
6
6
  readonly createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
7
7
  readonly stream: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 256, string>, v.BrandAction<string, "EventStream">]>;
8
8
  readonly version: v.LiteralSchema<1, undefined>;
@@ -1,8 +1,8 @@
1
1
  import * as v from "valibot";
2
2
  export declare const MINUTE_HAS_PASSED_EVENT = "MINUTE_HAS_PASSED_EVENT";
3
3
  export declare const MinuteHasPassedEvent: v.ObjectSchema<{
4
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
5
- readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
4
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
5
+ readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
6
6
  readonly createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
7
7
  readonly stream: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 256, string>, v.BrandAction<string, "EventStream">]>;
8
8
  readonly version: v.LiteralSchema<1, undefined>;
@@ -1,8 +1,8 @@
1
1
  import * as v from "valibot";
2
2
  export declare const SECURITY_VIOLATION_DETECTED_EVENT = "SECURITY_VIOLATION_DETECTED_EVENT";
3
3
  export declare const SecurityViolationDetectedEvent: v.ObjectSchema<{
4
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
5
- readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
4
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
5
+ readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
6
6
  readonly createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
7
7
  readonly stream: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 256, string>, v.BrandAction<string, "EventStream">]>;
8
8
  readonly version: v.LiteralSchema<1, undefined>;
@@ -15,7 +15,7 @@ export declare const SecurityViolationDetectedEvent: v.ObjectSchema<{
15
15
  readonly ip: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<string>, v.IpAction<string, string>, v.BrandAction<string, "ClientIp">]>, undefined>;
16
16
  readonly ua: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>, v.BrandAction<string, "ClientUserAgent">]>, undefined>;
17
17
  }, undefined>;
18
- readonly userId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, undefined>;
18
+ readonly userId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, undefined>;
19
19
  readonly countermeasure: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>, v.BrandAction<string, "SecurityCountermeasureName">]>;
20
20
  readonly action: v.StringSchema<undefined>;
21
21
  }, undefined>;
@@ -1,8 +1,8 @@
1
1
  import * as v from "valibot";
2
2
  export declare const SEND_EMAIL_JOB = "SEND_EMAIL_JOB";
3
3
  export declare const SendEmailJobSchema: v.ObjectSchema<{
4
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
5
- readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>, v.BrandAction<string, "CorrelationId">]>;
4
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
5
+ readonly correlationId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>, v.BrandAction<string & v.Brand<"UUID">, "CorrelationId">]>;
6
6
  readonly createdAt: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.SafeIntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "TimestampValue">]>;
7
7
  readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.IntegerAction<number, string>, v.MinValueAction<number, 0, string>, v.BrandAction<number, "RevisionValue">]>;
8
8
  readonly name: v.LiteralSchema<"SEND_EMAIL_JOB", undefined>;
@@ -1,4 +1,4 @@
1
- import type * as v from "valibot";
2
- export declare const SmtpPort: v.SchemaWithPipe<readonly [v.UnknownSchema, v.TransformAction<any, number>, v.NumberSchema<"port.type">, v.IntegerAction<number, "port.type">, v.MinValueAction<number, 0, "port.invalid">, v.MaxValueAction<number, 99999, "port.invalid">, v.BrandAction<number, "Port">]>;
1
+ import * as v from "valibot";
2
+ export declare const SmtpPort: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnknownSchema, v.TransformAction<any, number>, v.NumberSchema<"port.type">, v.IntegerAction<number, "port.type">, v.MinValueAction<number, 0, "port.invalid">, v.MaxValueAction<number, 99999, "port.invalid">, v.BrandAction<number, "Port">]>, v.BrandAction<number & v.Brand<"Port">, "SmtpPort">]>;
3
3
  export type SmtpPortType = v.InferOutput<typeof SmtpPort>;
4
4
  //# sourceMappingURL=smtp-port.vo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smtp-port.vo.d.ts","sourceRoot":"","sources":["../src/smtp-port.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAC;AAGlC,eAAO,MAAM,QAAQ,8QAAO,CAAC;AAC7B,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"smtp-port.vo.d.ts","sourceRoot":"","sources":["../src/smtp-port.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,eAAO,MAAM,QAAQ,gWAAoC,CAAC;AAC1D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import * as v from "valibot";
1
2
  import { Port } from "./port.vo";
2
- export const SmtpPort = Port;
3
+ export const SmtpPort = v.pipe(Port, v.brand("SmtpPort"));
3
4
  //# sourceMappingURL=smtp-port.vo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smtp-port.vo.js","sourceRoot":"","sources":["../src/smtp-port.vo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"smtp-port.vo.js","sourceRoot":"","sources":["../src/smtp-port.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC"}
package/dist/uuid.vo.d.ts CHANGED
@@ -2,6 +2,6 @@ import * as v from "valibot";
2
2
  export declare const UUIDError: {
3
3
  readonly Type: "uuid.type";
4
4
  };
5
- export declare const UUID: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
5
+ export declare const UUID: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">, v.BrandAction<string, "UUID">]>;
6
6
  export type UUIDType = v.InferOutput<typeof UUID>;
7
7
  //# sourceMappingURL=uuid.vo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"uuid.vo.d.ts","sourceRoot":"","sources":["../src/uuid.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,SAAS;aAAK,IAAI,EAAE,WAAW;CAAW,CAAC;AAExD,eAAO,MAAM,IAAI,6FAA2D,CAAC;AAE7E,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"uuid.vo.d.ts","sourceRoot":"","sources":["../src/uuid.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,SAAS;aAAK,IAAI,EAAE,WAAW;CAAW,CAAC;AAExD,eAAO,MAAM,IAAI,4HAA4E,CAAC;AAE9F,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,IAAI,CAAC,CAAC"}
package/dist/uuid.vo.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import * as v from "valibot";
2
2
  export const UUIDError = { Type: "uuid.type" };
3
- export const UUID = v.pipe(v.string(UUIDError.Type), v.uuid(UUIDError.Type));
3
+ export const UUID = v.pipe(v.string(UUIDError.Type), v.uuid(UUIDError.Type), v.brand("UUID"));
4
4
  //# sourceMappingURL=uuid.vo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uuid.vo.js","sourceRoot":"","sources":["../src/uuid.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,WAAW,EAAW,CAAC;AAExD,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"uuid.vo.js","sourceRoot":"","sources":["../src/uuid.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,WAAW,EAAW,CAAC;AAExD,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bgord/bun",
3
- "version": "1.21.7",
3
+ "version": "1.21.8",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bartosz Gordon",
@@ -20,17 +20,17 @@
20
20
  "build": "bash scripts/package-build.sh"
21
21
  },
22
22
  "devDependencies": {
23
- "@biomejs/biome": "2.5.7",
23
+ "@biomejs/biome": "2.5.8",
24
24
  "@standard-schema/spec": "1.1.0",
25
25
  "@stryker-mutator/core": "9.6.1",
26
26
  "@stryker-mutator/typescript-checker": "9.6.1",
27
27
  "@types/bun": "1.3.14",
28
28
  "@types/nodemailer": "8.0.1",
29
29
  "@types/yazl": "3.3.1",
30
- "better-auth": "1.6.26",
30
+ "better-auth": "1.6.27",
31
31
  "cspell": "10.0.1",
32
32
  "csv": "6.6.3",
33
- "fallow": "3.14.0",
33
+ "fallow": "3.15.0",
34
34
  "lefthook": "2.1.10",
35
35
  "lockfile-lint": "5.0.0",
36
36
  "nodemailer": "9.0.5",
@@ -42,11 +42,11 @@
42
42
  "dependencies": {
43
43
  "@bgord/tools": "1.6.6",
44
44
  "emittery": "2.0.0",
45
- "hono": "4.13.1",
45
+ "hono": "4.13.2",
46
46
  "node-cache": "5.1.2"
47
47
  },
48
48
  "peerDependencies": {
49
- "better-auth": "1.6.26",
49
+ "better-auth": "1.6.27",
50
50
  "csv": "6.6.3",
51
51
  "nodemailer": "9.0.5",
52
52
  "yazl": "3.3.1"
@@ -1,8 +1,9 @@
1
+ import * as v from "valibot";
1
2
  import type { IdProviderPort } from "./id-provider.port";
2
- import type { UUIDType } from "./uuid.vo";
3
+ import { UUID, type UUIDType } from "./uuid.vo";
3
4
 
4
5
  export class IdProviderCryptoAdapter implements IdProviderPort {
5
6
  generate(): UUIDType {
6
- return crypto.randomUUID();
7
+ return v.parse(UUID, crypto.randomUUID());
7
8
  }
8
9
  }
@@ -1,3 +1,7 @@
1
+ import * as v from "valibot";
1
2
  import { UUID } from "../../../uuid.vo";
2
3
 
3
- export const HistoryId = UUID;
4
+ // Stryker disable next-line StringLiteral
5
+ export const HistoryId = v.pipe(UUID, v.brand("HistoryId"));
6
+
7
+ export type HistoryIdType = v.InferOutput<typeof HistoryId>;
@@ -10,4 +10,8 @@ export const HistoryOperation = v.pipe(
10
10
  v.string(HistoryOperationError.Type),
11
11
  v.minLength(1, HistoryOperationError.Empty),
12
12
  v.maxLength(128, HistoryOperationError.TooLong),
13
+ // Stryker disable next-line StringLiteral
14
+ v.brand("HistoryOperation"),
13
15
  );
16
+
17
+ export type HistoryOperationType = v.InferOutput<typeof HistoryOperation>;
@@ -1,6 +1,12 @@
1
1
  import * as v from "valibot";
2
2
 
3
- export const HistoryPayload = v.record(v.string(), v.unknown());
3
+ export const HistoryPayload = v.pipe(
4
+ v.record(v.string(), v.unknown()),
5
+ // Stryker disable next-line StringLiteral
6
+ v.brand("HistoryPayload"),
7
+ );
8
+
9
+ export type HistoryPayloadType = v.InferOutput<typeof HistoryPayload>;
4
10
 
5
11
  export const HistoryPayloadParsedError = {
6
12
  NotSerializable: "history.payload.parsed.not.serializable",
@@ -18,4 +24,8 @@ export const HistoryPayloadParsed = v.pipe(
18
24
  }
19
25
  }, HistoryPayloadParsedError.NotSerializable),
20
26
  v.transform((value) => JSON.stringify(value)),
27
+ // Stryker disable next-line StringLiteral
28
+ v.brand("HistoryPayloadParsed"),
21
29
  );
30
+
31
+ export type HistoryPayloadParsedType = v.InferOutput<typeof HistoryPayloadParsed>;
@@ -10,6 +10,8 @@ export const HistorySubject = v.pipe(
10
10
  v.string(HistorySubjectError.Type),
11
11
  v.minLength(1, HistorySubjectError.Empty),
12
12
  v.maxLength(128, HistorySubjectError.TooLong),
13
+ // Stryker disable next-line StringLiteral
14
+ v.brand("HistorySubject"),
13
15
  );
14
16
 
15
17
  export type HistorySubjectType = v.InferOutput<typeof HistorySubject>;
@@ -1,5 +1,5 @@
1
- import type * as v from "valibot";
1
+ import * as v from "valibot";
2
2
  import { Port } from "./port.vo";
3
3
 
4
- export const SmtpPort = Port;
4
+ export const SmtpPort = v.pipe(Port, v.brand("SmtpPort"));
5
5
  export type SmtpPortType = v.InferOutput<typeof SmtpPort>;
package/src/uuid.vo.ts CHANGED
@@ -2,6 +2,6 @@ import * as v from "valibot";
2
2
 
3
3
  export const UUIDError = { Type: "uuid.type" } as const;
4
4
 
5
- export const UUID = v.pipe(v.string(UUIDError.Type), v.uuid(UUIDError.Type));
5
+ export const UUID = v.pipe(v.string(UUIDError.Type), v.uuid(UUIDError.Type), v.brand("UUID"));
6
6
 
7
7
  export type UUIDType = v.InferOutput<typeof UUID>;