codemie-sdk-python 0.1.485__py3-none-any.whl → 0.1.487__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codemie_sdk/models/admin.py +12 -1
- codemie_sdk/models/integration.py +1 -0
- codemie_sdk/services/admin.py +3 -2
- codemie_sdk/services/project.py +6 -0
- {codemie_sdk_python-0.1.485.dist-info → codemie_sdk_python-0.1.487.dist-info}/METADATA +1 -1
- {codemie_sdk_python-0.1.485.dist-info → codemie_sdk_python-0.1.487.dist-info}/RECORD +7 -7
- {codemie_sdk_python-0.1.485.dist-info → codemie_sdk_python-0.1.487.dist-info}/WHEEL +0 -0
codemie_sdk/models/admin.py
CHANGED
|
@@ -3,12 +3,23 @@
|
|
|
3
3
|
from pydantic import BaseModel, ConfigDict, Field
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
class ApplicationInfo(BaseModel):
|
|
7
|
+
"""Single application entry returned by GET /v1/admin/applications."""
|
|
8
|
+
|
|
9
|
+
model_config = ConfigDict(extra="ignore")
|
|
10
|
+
|
|
11
|
+
name: str
|
|
12
|
+
display_name: str | None = None
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
class ApplicationsListResponse(BaseModel):
|
|
7
16
|
"""Response model for list applications endpoint."""
|
|
8
17
|
|
|
9
18
|
model_config = ConfigDict(extra="ignore")
|
|
10
19
|
|
|
11
|
-
applications: list[
|
|
20
|
+
applications: list[ApplicationInfo] = Field(
|
|
21
|
+
..., description="List of application info objects"
|
|
22
|
+
)
|
|
12
23
|
|
|
13
24
|
|
|
14
25
|
class ApplicationCreateRequest(BaseModel):
|
codemie_sdk/services/admin.py
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
from ..models.admin import (
|
|
4
4
|
AdminUserListItem,
|
|
5
5
|
AdminUserListResponse,
|
|
6
|
-
ApplicationsListResponse,
|
|
7
6
|
ApplicationCreateRequest,
|
|
8
7
|
ApplicationCreateResponse,
|
|
8
|
+
ApplicationsListResponse,
|
|
9
9
|
LocalUserCreateRequest,
|
|
10
10
|
LocalUserDetail,
|
|
11
11
|
)
|
|
@@ -43,7 +43,8 @@ class AdminService:
|
|
|
43
43
|
ApplicationsListResponse,
|
|
44
44
|
params=params if params else None,
|
|
45
45
|
)
|
|
46
|
-
|
|
46
|
+
# Return plain names for backward compatibility with callers
|
|
47
|
+
return [app.name for app in response.applications]
|
|
47
48
|
|
|
48
49
|
def create_application(self, request: ApplicationCreateRequest) -> str:
|
|
49
50
|
"""Create a new application/project.
|
codemie_sdk/services/project.py
CHANGED
|
@@ -54,6 +54,7 @@ class ProjectService:
|
|
|
54
54
|
name: str,
|
|
55
55
|
description: str,
|
|
56
56
|
cost_center_id: UUID | None = None,
|
|
57
|
+
display_name: str | None = None,
|
|
57
58
|
) -> ProjectCreateResponse:
|
|
58
59
|
"""Create a new shared project.
|
|
59
60
|
|
|
@@ -61,6 +62,7 @@ class ProjectService:
|
|
|
61
62
|
name: Project name
|
|
62
63
|
description: Project description
|
|
63
64
|
cost_center_id: Optional cost center ID
|
|
65
|
+
display_name: Human-friendly display name (max 150 chars)
|
|
64
66
|
|
|
65
67
|
Returns:
|
|
66
68
|
ProjectCreateResponse with project details
|
|
@@ -72,6 +74,7 @@ class ProjectService:
|
|
|
72
74
|
name=name,
|
|
73
75
|
description=description,
|
|
74
76
|
cost_center_id=cost_center_id,
|
|
77
|
+
display_name=display_name,
|
|
75
78
|
)
|
|
76
79
|
|
|
77
80
|
return self._api.post(
|
|
@@ -150,6 +153,7 @@ class ProjectService:
|
|
|
150
153
|
cost_center_id: UUID | None = None,
|
|
151
154
|
clear_cost_center: bool = False,
|
|
152
155
|
enforce_member_spend_limits: bool | None = None,
|
|
156
|
+
display_name: str | None = None,
|
|
153
157
|
) -> ProjectUpdateResponse:
|
|
154
158
|
"""Update a project.
|
|
155
159
|
|
|
@@ -160,6 +164,7 @@ class ProjectService:
|
|
|
160
164
|
cost_center_id: New cost center ID (optional)
|
|
161
165
|
clear_cost_center: Set to True to remove cost center
|
|
162
166
|
enforce_member_spend_limits: Enable/disable per-member spend enforcement
|
|
167
|
+
display_name: Human-friendly display name (max 150 chars)
|
|
163
168
|
|
|
164
169
|
Returns:
|
|
165
170
|
ProjectUpdateResponse with updated project details
|
|
@@ -173,6 +178,7 @@ class ProjectService:
|
|
|
173
178
|
cost_center_id=cost_center_id,
|
|
174
179
|
clear_cost_center=clear_cost_center,
|
|
175
180
|
enforce_member_spend_limits=enforce_member_spend_limits,
|
|
181
|
+
display_name=display_name,
|
|
176
182
|
)
|
|
177
183
|
|
|
178
184
|
return self._api.patch(
|
|
@@ -5,7 +5,7 @@ codemie_sdk/client/__init__.py,sha256=yf6C39MmrJ6gK9ZHMhBeynKwUUYVSUTQbKxU8-4qpK
|
|
|
5
5
|
codemie_sdk/client/client.py,sha256=N1GglbxXLdMn7yu3wF0l5qVxlGY54fkwEjL2BXwfmTw,8261
|
|
6
6
|
codemie_sdk/exceptions.py,sha256=uuzvtvYBMzrNGt7Q4k5RVq0Pd8eJ_tR2tLy3pF2ICDs,1148
|
|
7
7
|
codemie_sdk/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
codemie_sdk/models/admin.py,sha256=
|
|
8
|
+
codemie_sdk/models/admin.py,sha256=2UGaO60ZrHHcDcV9thYBVxDyUCvtfPQhs10WswhGFJs,2298
|
|
9
9
|
codemie_sdk/models/analytics.py,sha256=B29Cqt2Mvqohfjz-keRV5gFBpTKw_iIkF2ARxmEUv-Y,4953
|
|
10
10
|
codemie_sdk/models/assistant.py,sha256=gAaZ-NGJYFnZf8fFAmTxUtKR7sqSQGX8H9Q4qD_B6bE,20690
|
|
11
11
|
codemie_sdk/models/categories.py,sha256=eq7_sw-sevNLeWpjaW3N055Xcgbbevs0Bl_rj--maUk,2303
|
|
@@ -15,7 +15,7 @@ codemie_sdk/models/datasource.py,sha256=_4E6LlKlJeT857DErrLaNbhwj-6hNew6fYAyC5LZ
|
|
|
15
15
|
codemie_sdk/models/errors.py,sha256=tQXoPUhM2U95NoyTxsSSJws8PQ-Fr3iOQQ8IjJCsx78,11658
|
|
16
16
|
codemie_sdk/models/file_operation.py,sha256=h5UBCCAbQQGm1EavF0AHn_dNE2t_Cc9be20lv_K5Vo8,722
|
|
17
17
|
codemie_sdk/models/guardrails.py,sha256=813PRnu9VEF6hoUB-lw5xG_qAZXPic38qL40AwYkSMQ,2114
|
|
18
|
-
codemie_sdk/models/integration.py,sha256=
|
|
18
|
+
codemie_sdk/models/integration.py,sha256=3SYDjQu3P0R2KtarMe9rCcRIt4iT0foE2nrGdq9hfkg,2372
|
|
19
19
|
codemie_sdk/models/llm.py,sha256=0tmTZoaPtUdgAsS6pFjwUuzlena6iIsgZ6FYSN1Fqgo,1183
|
|
20
20
|
codemie_sdk/models/mermaid.py,sha256=dhRgX-itvfyrt0LUg5pbSo0CTH5PewiegqcZn3hWggU,675
|
|
21
21
|
codemie_sdk/models/project.py,sha256=EXm2Y-1onpCaxVCwx_1iIzFMU0I4kRSiDNBTxJhu81U,6683
|
|
@@ -31,7 +31,7 @@ codemie_sdk/models/workflow.py,sha256=nbpWrnIP1GjNNGg09QnCHPfbBTvQ2IzOpKRx4XWxi_
|
|
|
31
31
|
codemie_sdk/models/workflow_execution_payload.py,sha256=T5GJkD84VzcWYsCbDtbZCSauqXljsP2XNOYU_B1rNZ4,1093
|
|
32
32
|
codemie_sdk/models/workflow_state.py,sha256=uP1yLYwPpgPc17xpLwjanvlRzK6zT9qMZR-fAkvwFGg,1322
|
|
33
33
|
codemie_sdk/models/workflow_thoughts.py,sha256=9fE380lMvC23fq677EI_JTk48Nf2jyPg3-mpj9VTx54,579
|
|
34
|
-
codemie_sdk/services/admin.py,sha256=
|
|
34
|
+
codemie_sdk/services/admin.py,sha256=yk1xdBXDjpdW4OMOdBaURkZhAxak9h-TppKyhStLekc,4006
|
|
35
35
|
codemie_sdk/services/analytics.py,sha256=HosMPk8B_kmuU5XcJhy5Mjx3ZjIwZAQB0LwDPsdH7SI,14882
|
|
36
36
|
codemie_sdk/services/assistant.py,sha256=8rV41Eex0Hgqzsy2LFV3uSphfCyAvlGeSKhPBTdjlYs,20700
|
|
37
37
|
codemie_sdk/services/categories.py,sha256=1qd98JCcMNdpbos0O1WpMApT6TurE7OuI7zoYewnwk8,5030
|
|
@@ -42,7 +42,7 @@ codemie_sdk/services/files.py,sha256=ZBmHsn--bGg-AgpNWP55L-RP1Jq0-rABobj2KBliCrY
|
|
|
42
42
|
codemie_sdk/services/integration.py,sha256=tx1UuUSgzFQnhHni6Urx5P3kLpiq7U_vUD87GzD661c,5403
|
|
43
43
|
codemie_sdk/services/llm.py,sha256=GQWIi359f99uU4YRnAdpbyae1kXp1G5OpVgJNIIn7-8,1132
|
|
44
44
|
codemie_sdk/services/mermaid.py,sha256=7cLykdrJVW576raUbON3yhuWnbGaXl8rX1QfVwbu2JE,2246
|
|
45
|
-
codemie_sdk/services/project.py,sha256=
|
|
45
|
+
codemie_sdk/services/project.py,sha256=ouvDn5Oo40mrvUThssFUejXpiAH1uHJ5fxj7kV-Kf0s,12432
|
|
46
46
|
codemie_sdk/services/skill.py,sha256=6fvkd8b0rIN8Qn-wKa2E11pkIkmIw5s2Cnd1IlHXe9g,10624
|
|
47
47
|
codemie_sdk/services/task.py,sha256=UaYh__xGF7VKWCJKPrncVjTvx46Gz1AN9XczPVL71oA,1052
|
|
48
48
|
codemie_sdk/services/user.py,sha256=aLyj8tgu9bjUa52-jOzYYKMULmi_W7TBLe8c7KwL4x8,5476
|
|
@@ -57,6 +57,6 @@ codemie_sdk/services/workflow_execution.py,sha256=Nnf_ZJQrK9HiRyCRuUjUu3jXmbH3sn
|
|
|
57
57
|
codemie_sdk/services/workflow_execution_state.py,sha256=u1xmGvaHjqvQS5ujhyvJ_Ac7ByjKem2Qe8q0swsmoWw,2045
|
|
58
58
|
codemie_sdk/utils/__init__.py,sha256=EzK_UrS5KHmAnE73Hci9LaObB5omjVUhIq4svh0gfwo,137
|
|
59
59
|
codemie_sdk/utils/http.py,sha256=yKWx-K9cFbpstVt0qran42e6MESm0f6XVd8MIctaD5Y,12546
|
|
60
|
-
codemie_sdk_python-0.1.
|
|
61
|
-
codemie_sdk_python-0.1.
|
|
62
|
-
codemie_sdk_python-0.1.
|
|
60
|
+
codemie_sdk_python-0.1.487.dist-info/METADATA,sha256=pPQRz90X0hlS23viwQ0ct1rJVMxj3DD4tmE0C1qdur8,36801
|
|
61
|
+
codemie_sdk_python-0.1.487.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
62
|
+
codemie_sdk_python-0.1.487.dist-info/RECORD,,
|
|
File without changes
|