Skip to content

Commit cecdf6d

Browse files
feat: Count project names by Unicode code point
1 parent 00c24c5 commit cecdf6d

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 127
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-1dffe057847b596dd311ce4b6e0e8036126dce3e97d390636c9c8e6d2f4823e1.yml
3-
openapi_spec_hash: c06336c199ee64c222ba3122deae9463
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-6568ec20bad9bc5257619dae6b6817eedc308f8b74453912e660df95e329e44a.yml
3+
openapi_spec_hash: 17b9ed1a0a3193731c52c4b1aac2b5b8
44
config_hash: 77ee715aa17061166f9a02b264a21b8d

src/kernel/resources/projects/projects.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def create(
7474
Create a new project within the authenticated organization.
7575
7676
Args:
77-
name: Project name (1-255 characters)
77+
name: Project name (1-255 Unicode code points)
7878
7979
extra_headers: Send extra headers
8080
@@ -144,7 +144,7 @@ def update(
144144
Update a project's name or status.
145145
146146
Args:
147-
name: New project name
147+
name: New project name (1-255 Unicode code points)
148148
149149
status: New project status
150150
@@ -307,7 +307,7 @@ async def create(
307307
Create a new project within the authenticated organization.
308308
309309
Args:
310-
name: Project name (1-255 characters)
310+
name: Project name (1-255 Unicode code points)
311311
312312
extra_headers: Send extra headers
313313
@@ -377,7 +377,7 @@ async def update(
377377
Update a project's name or status.
378378
379379
Args:
380-
name: New project name
380+
name: New project name (1-255 Unicode code points)
381381
382382
status: New project status
383383

src/kernel/types/project_create_params.py

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

1010
class ProjectCreateParams(TypedDict, total=False):
1111
name: Required[str]
12-
"""Project name (1-255 characters)"""
12+
"""Project name (1-255 Unicode code points)"""

src/kernel/types/project_update_params.py

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

1010
class ProjectUpdateParams(TypedDict, total=False):
1111
name: str
12-
"""New project name"""
12+
"""New project name (1-255 Unicode code points)"""
1313

1414
status: Literal["active", "archived"]
1515
"""New project status"""

tests/api_resources/test_projects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_method_update(self, client: Kernel) -> None:
107107
def test_method_update_with_all_params(self, client: Kernel) -> None:
108108
project = client.projects.update(
109109
id="id",
110-
name="name",
110+
name="x",
111111
status="active",
112112
)
113113
assert_matches_type(Project, project, path=["response"])
@@ -322,7 +322,7 @@ async def test_method_update(self, async_client: AsyncKernel) -> None:
322322
async def test_method_update_with_all_params(self, async_client: AsyncKernel) -> None:
323323
project = await async_client.projects.update(
324324
id="id",
325-
name="name",
325+
name="x",
326326
status="active",
327327
)
328328
assert_matches_type(Project, project, path=["response"])

0 commit comments

Comments
 (0)