|
2 | 2 |
|
3 | 3 | namespace DotPilot.Core.Features.ControlPlaneDomain; |
4 | 4 |
|
5 | | -public readonly record struct WorkspaceId(Guid Value) |
| 5 | +[GenerateSerializer] |
| 6 | +public readonly record struct WorkspaceId([property: Id(0)] Guid Value) |
6 | 7 | { |
7 | 8 | public static WorkspaceId New() => new(ControlPlaneIdentifier.NewValue()); |
8 | 9 |
|
9 | 10 | public override string ToString() => ControlPlaneIdentifier.Format(Value); |
10 | 11 | } |
11 | 12 |
|
12 | | -public readonly record struct AgentProfileId(Guid Value) |
| 13 | +[GenerateSerializer] |
| 14 | +public readonly record struct AgentProfileId([property: Id(0)] Guid Value) |
13 | 15 | { |
14 | 16 | public static AgentProfileId New() => new(ControlPlaneIdentifier.NewValue()); |
15 | 17 |
|
16 | 18 | public override string ToString() => ControlPlaneIdentifier.Format(Value); |
17 | 19 | } |
18 | 20 |
|
19 | | -public readonly record struct SessionId(Guid Value) |
| 21 | +[GenerateSerializer] |
| 22 | +public readonly record struct SessionId([property: Id(0)] Guid Value) |
20 | 23 | { |
21 | 24 | public static SessionId New() => new(ControlPlaneIdentifier.NewValue()); |
22 | 25 |
|
23 | 26 | public override string ToString() => ControlPlaneIdentifier.Format(Value); |
24 | 27 | } |
25 | 28 |
|
26 | | -public readonly record struct FleetId(Guid Value) |
| 29 | +[GenerateSerializer] |
| 30 | +public readonly record struct FleetId([property: Id(0)] Guid Value) |
27 | 31 | { |
28 | 32 | public static FleetId New() => new(ControlPlaneIdentifier.NewValue()); |
29 | 33 |
|
30 | 34 | public override string ToString() => ControlPlaneIdentifier.Format(Value); |
31 | 35 | } |
32 | 36 |
|
33 | | -public readonly record struct ProviderId(Guid Value) |
| 37 | +[GenerateSerializer] |
| 38 | +public readonly record struct PolicyId([property: Id(0)] Guid Value) |
| 39 | +{ |
| 40 | + public static PolicyId New() => new(ControlPlaneIdentifier.NewValue()); |
| 41 | + |
| 42 | + public override string ToString() => ControlPlaneIdentifier.Format(Value); |
| 43 | +} |
| 44 | + |
| 45 | +[GenerateSerializer] |
| 46 | +public readonly record struct ProviderId([property: Id(0)] Guid Value) |
34 | 47 | { |
35 | 48 | public static ProviderId New() => new(ControlPlaneIdentifier.NewValue()); |
36 | 49 |
|
37 | 50 | public override string ToString() => ControlPlaneIdentifier.Format(Value); |
38 | 51 | } |
39 | 52 |
|
40 | | -public readonly record struct ModelRuntimeId(Guid Value) |
| 53 | +[GenerateSerializer] |
| 54 | +public readonly record struct ModelRuntimeId([property: Id(0)] Guid Value) |
41 | 55 | { |
42 | 56 | public static ModelRuntimeId New() => new(ControlPlaneIdentifier.NewValue()); |
43 | 57 |
|
44 | 58 | public override string ToString() => ControlPlaneIdentifier.Format(Value); |
45 | 59 | } |
46 | 60 |
|
47 | | -public readonly record struct ToolCapabilityId(Guid Value) |
| 61 | +[GenerateSerializer] |
| 62 | +public readonly record struct ToolCapabilityId([property: Id(0)] Guid Value) |
48 | 63 | { |
49 | 64 | public static ToolCapabilityId New() => new(ControlPlaneIdentifier.NewValue()); |
50 | 65 |
|
51 | 66 | public override string ToString() => ControlPlaneIdentifier.Format(Value); |
52 | 67 | } |
53 | 68 |
|
54 | | -public readonly record struct ApprovalId(Guid Value) |
| 69 | +[GenerateSerializer] |
| 70 | +public readonly record struct ApprovalId([property: Id(0)] Guid Value) |
55 | 71 | { |
56 | 72 | public static ApprovalId New() => new(ControlPlaneIdentifier.NewValue()); |
57 | 73 |
|
58 | 74 | public override string ToString() => ControlPlaneIdentifier.Format(Value); |
59 | 75 | } |
60 | 76 |
|
61 | | -public readonly record struct ArtifactId(Guid Value) |
| 77 | +[GenerateSerializer] |
| 78 | +public readonly record struct ArtifactId([property: Id(0)] Guid Value) |
62 | 79 | { |
63 | 80 | public static ArtifactId New() => new(ControlPlaneIdentifier.NewValue()); |
64 | 81 |
|
65 | 82 | public override string ToString() => ControlPlaneIdentifier.Format(Value); |
66 | 83 | } |
67 | 84 |
|
68 | | -public readonly record struct TelemetryRecordId(Guid Value) |
| 85 | +[GenerateSerializer] |
| 86 | +public readonly record struct TelemetryRecordId([property: Id(0)] Guid Value) |
69 | 87 | { |
70 | 88 | public static TelemetryRecordId New() => new(ControlPlaneIdentifier.NewValue()); |
71 | 89 |
|
72 | 90 | public override string ToString() => ControlPlaneIdentifier.Format(Value); |
73 | 91 | } |
74 | 92 |
|
75 | | -public readonly record struct EvaluationId(Guid Value) |
| 93 | +[GenerateSerializer] |
| 94 | +public readonly record struct EvaluationId([property: Id(0)] Guid Value) |
76 | 95 | { |
77 | 96 | public static EvaluationId New() => new(ControlPlaneIdentifier.NewValue()); |
78 | 97 |
|
|
0 commit comments