Skip to content

Commit f5871a8

Browse files
feat(api): update via SDK Studio (#70)
1 parent 01cdba5 commit f5871a8

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Shared Types
22

33
```python
4-
from hyperspell.types import APIKkey, App
4+
from hyperspell.types import APIKey, App
55
```
66

77
# Documents

src/hyperspell/types/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from .token import Token as Token
66
from .scores import Scores as Scores
7-
from .shared import App as App, APIKkey as APIKkey
7+
from .shared import App as App, APIKey as APIKey
88
from .document import Document as Document
99
from .collection import Collection as Collection
1010
from .document_status import DocumentStatus as DocumentStatus
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from .app import App as App
4-
from .api_kkey import APIKkey as APIKkey
4+
from .api_key import APIKey as APIKey

src/hyperspell/types/shared/api_kkey.py renamed to src/hyperspell/types/shared/api_key.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
from ..._compat import PYDANTIC_V2
1010
from ..._models import BaseModel
1111

12-
__all__ = ["APIKkey"]
12+
__all__ = ["APIKey"]
1313

1414

15-
class APIKkey(BaseModel):
15+
class APIKey(BaseModel):
1616
app_id: int
1717

1818
scopes: List[Literal["all", "ingest", "query"]]
@@ -34,6 +34,6 @@ class APIKkey(BaseModel):
3434
from .app import App
3535

3636
if PYDANTIC_V2:
37-
APIKkey.model_rebuild()
37+
APIKey.model_rebuild()
3838
else:
39-
APIKkey.update_forward_refs() # type: ignore
39+
APIKey.update_forward_refs() # type: ignore

src/hyperspell/types/shared/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class App(BaseModel):
2020

2121
id: Optional[int] = None
2222

23-
api_keys: Optional[List["APIKkey"]] = None
23+
api_keys: Optional[List["APIKey"]] = None
2424

2525
collections: Optional[List[object]] = None
2626

@@ -37,7 +37,7 @@ class App(BaseModel):
3737
settings: Optional[object] = None
3838

3939

40-
from .api_kkey import APIKkey
40+
from .api_key import APIKey
4141

4242
if PYDANTIC_V2:
4343
App.model_rebuild()

0 commit comments

Comments
 (0)