Skip to content

Commit 63de01f

Browse files
feat: Add credential field labels to the API
Stainless-Generated-From: c78ab6e55680756f338514b9fb95457f9256470d
1 parent 9e16997 commit 63de01f

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

src/kernel/types/vaults/credential_vault_field_definition.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
4+
35
from ..._models import BaseModel
46
from .credential_vault_field_type import CredentialVaultFieldType
57

@@ -32,3 +34,11 @@ class CredentialVaultFieldDefinition(BaseModel):
3234
never fill the seed. Custom algorithms, digits, periods, and form enrollment are
3335
unsupported.
3436
"""
37+
38+
label: Optional[str] = None
39+
"""Optional human-readable display label.
40+
41+
It is returned as non-secret metadata and never affects value keys, updates, or
42+
browser fills. Use single-line, trimmed display text without control or
43+
formatting characters. The server enforces a 128-byte UTF-8 limit.
44+
"""

src/kernel/types/vaults/credential_vault_field_input_param.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ class CredentialVaultFieldInputParam(TypedDict, total=False):
2525
unsupported.
2626
"""
2727

28+
label: str
29+
"""Optional human-readable display label.
30+
31+
It is returned as non-secret metadata and never affects value keys, updates, or
32+
browser fills. Use single-line, trimmed display text without control or
33+
formatting characters. The server enforces a 128-byte UTF-8 limit.
34+
"""
35+
2836
required: bool
2937

3038
sensitive: bool

tests/api_resources/vaults/test_items.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,7 @@ def test_method_upsert_with_all_params_overload_3(self, client: Kernel) -> None:
11671167
{
11681168
"name": "name",
11691169
"type": "text",
1170+
"label": "label",
11701171
"required": True,
11711172
"sensitive": True,
11721173
"value": "x",
@@ -2408,6 +2409,7 @@ async def test_method_upsert_with_all_params_overload_3(self, async_client: Asyn
24082409
{
24092410
"name": "name",
24102411
"type": "text",
2412+
"label": "label",
24112413
"required": True,
24122414
"sensitive": True,
24132415
"value": "x",

0 commit comments

Comments
 (0)