1# generated by datamodel-codegen:
2# filename: rfc3161_schema.json
3# version: 0.26.3
4
5from __future__ import annotations
6
7from pydantic import BaseModel, ConfigDict, Field, RootModel
8
9
10class Tsr(BaseModel):
11 """Information about the tsr file associated with the entry"""
12
13 model_config = ConfigDict(
14 populate_by_name=True,
15 )
16 content: str = Field(
17 ...,
18 description="Specifies the tsr file content inline within the document",
19 )
20
21
22class Rfc3161V001Schema(BaseModel):
23 """Schema for RFC3161 entries"""
24
25 model_config = ConfigDict(
26 populate_by_name=True,
27 )
28 tsr: Tsr = Field(..., description="Information about the tsr file associated with the entry")
29
30
31class TimestampSchema(RootModel[Rfc3161V001Schema]):
32 model_config = ConfigDict(
33 populate_by_name=True,
34 )
35 root: Rfc3161V001Schema = Field(
36 ...,
37 description="Schema for RFC 3161 timestamp objects",
38 title="Timestamp Schema",
39 )