We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1271776 commit c39f166Copy full SHA for c39f166
packages/models-library/src/models_library/api_schemas_webserver/auth.py
@@ -83,8 +83,13 @@ class ApiKeyCreateRequest(InputSchema):
83
)
84
85
86
-class ApiKeyCreateResponse(ApiKeyCreateRequest):
+class ApiKeyCreateResponse(OutputSchema):
87
id: IDStr
88
+ display_name: Annotated[str, Field(..., min_length=3)]
89
+ expiration: timedelta | None = Field(
90
+ None,
91
+ description="Time delta from creation time to expiration. If None, then it does not expire.",
92
+ )
93
api_base_url: HttpUrl
94
api_key: str
95
api_secret: str
0 commit comments