codemie-sdk-python 0.1.709__tar.gz → 0.1.711__tar.gz
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_python-0.1.709 → codemie_sdk_python-0.1.711}/PKG-INFO +1 -1
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/pyproject.toml +1 -1
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/__init__.py +34 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/builders/workflow/definition.py +2 -1
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/client/client.py +8 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/assistant.py +60 -0
- codemie_sdk_python-0.1.711/src/codemie_sdk/models/marketplace_management.py +204 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/assistant.py +89 -0
- codemie_sdk_python-0.1.711/src/codemie_sdk/services/export.py +57 -0
- codemie_sdk_python-0.1.711/src/codemie_sdk/services/marketplace_management.py +228 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/README.md +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/auth/__init__.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/auth/credentials.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/builders/__init__.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/builders/workflow/__init__.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/builders/workflow/builder.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/builders/workflow/publish.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/client/__init__.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/exceptions.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/__init__.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/a2a.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/activity_event.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/admin.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/analytics.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/categories.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/common.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/conversation.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/cost_center.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/datasource.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/errors.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/file_operation.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/guardrails.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/integration.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/llm.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/mcp_config.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/mermaid.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/project.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/servicenow_integration.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/skill.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/task.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/usage_attribution.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/user.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/vendor_assistant.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/vendor_guardrail.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/vendor_knowledgebase.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/vendor_runtime.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/vendor_workflow.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/workflow.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/workflow_execution_payload.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/workflow_state.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/workflow_thoughts.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/workflow_transition.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/workspace.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/a2a.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/activity_event.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/admin.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/analytics.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/categories.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/codemie_guardrails.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/conversation.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/cost_center.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/customer_config_service.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/datasource.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/dynamic_config.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/files.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/integration.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/llm.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/mcp_configs.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/mermaid.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/project.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/project_budget_groups.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/servicenow_integration.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/skill.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/task.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/usage_attribution.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/user.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/vendor_assistant.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/vendor_guardrail.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/vendor_knowledgebase.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/vendor_runtime.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/vendor_workflow.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/webhook.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/workflow.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/workflow_execution.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/workflow_execution_state.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/workspace.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/utils/__init__.py +0 -0
- {codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/utils/http.py +0 -0
|
@@ -185,6 +185,24 @@ from .models.usage_attribution import (
|
|
|
185
185
|
UsageAttributionSettingsResponse,
|
|
186
186
|
)
|
|
187
187
|
from .services.usage_attribution import UsageAttributionService
|
|
188
|
+
from .models.marketplace_management import (
|
|
189
|
+
MarketplaceStatusFilter,
|
|
190
|
+
MarketplaceGateResult,
|
|
191
|
+
MarketplacePendingOrderBy,
|
|
192
|
+
MarketplaceGateFinding,
|
|
193
|
+
MarketplacePendingRow,
|
|
194
|
+
MarketplacePendingResponse,
|
|
195
|
+
MarketplaceAssistantRow,
|
|
196
|
+
MarketplaceAssistantsResponse,
|
|
197
|
+
MarketplacePendingStats,
|
|
198
|
+
MarketplaceOverview,
|
|
199
|
+
MarketplaceReviewDetail,
|
|
200
|
+
MarketplaceIndexingOutcome,
|
|
201
|
+
MarketplaceReviewActionResponse,
|
|
202
|
+
MarketplaceForcePublishResponse,
|
|
203
|
+
MarketplaceDecisionRequest,
|
|
204
|
+
)
|
|
205
|
+
from .services.marketplace_management import MarketplaceManagementService
|
|
188
206
|
|
|
189
207
|
try:
|
|
190
208
|
__version__ = _pkg_version("codemie-sdk-python")
|
|
@@ -329,4 +347,20 @@ __all__ = [
|
|
|
329
347
|
"UsageAttributionTableResponse",
|
|
330
348
|
"UsageAttributionSettingsResponse",
|
|
331
349
|
"UsageAttributionService",
|
|
350
|
+
"MarketplaceStatusFilter",
|
|
351
|
+
"MarketplaceGateResult",
|
|
352
|
+
"MarketplacePendingOrderBy",
|
|
353
|
+
"MarketplaceGateFinding",
|
|
354
|
+
"MarketplacePendingRow",
|
|
355
|
+
"MarketplacePendingResponse",
|
|
356
|
+
"MarketplaceAssistantRow",
|
|
357
|
+
"MarketplaceAssistantsResponse",
|
|
358
|
+
"MarketplacePendingStats",
|
|
359
|
+
"MarketplaceOverview",
|
|
360
|
+
"MarketplaceReviewDetail",
|
|
361
|
+
"MarketplaceIndexingOutcome",
|
|
362
|
+
"MarketplaceReviewActionResponse",
|
|
363
|
+
"MarketplaceForcePublishResponse",
|
|
364
|
+
"MarketplaceDecisionRequest",
|
|
365
|
+
"MarketplaceManagementService",
|
|
332
366
|
]
|
|
@@ -35,7 +35,8 @@ from ...models.assistant import MCPServerConfig
|
|
|
35
35
|
from ...models.workflow import WorkflowMode
|
|
36
36
|
|
|
37
37
|
# These models are the builder's own input surface, not API response models
|
|
38
|
-
# (which use `extra="ignore"` elsewhere in the SDK, see
|
|
38
|
+
# (which use `extra="ignore"` elsewhere in the SDK, see
|
|
39
|
+
# .ai-run/guides/standards/code-quality.md, section "Pydantic models").
|
|
39
40
|
# A typo'd or renamed kwarg here changes workflow behaviour silently instead of
|
|
40
41
|
# erroring, so `extra="forbid"` catches it at construction time. `frozen=True`
|
|
41
42
|
# backs the builder's and this module's own "render() result is immutable, safe
|
|
@@ -35,6 +35,8 @@ from ..services.customer_config_service import CustomerConfigService
|
|
|
35
35
|
from ..services.project_budget_groups import ProjectBudgetGroupsService
|
|
36
36
|
from ..services.usage_attribution import UsageAttributionService
|
|
37
37
|
from ..services.servicenow_integration import ServiceNowIntegrationService
|
|
38
|
+
from ..services.marketplace_management import MarketplaceManagementService
|
|
39
|
+
from ..services.export import ExportService
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
class CodeMieClient:
|
|
@@ -197,6 +199,12 @@ class CodeMieClient:
|
|
|
197
199
|
self.usage_attribution = UsageAttributionService(
|
|
198
200
|
self._api_domain, _token_source, verify_ssl=self._verify_ssl
|
|
199
201
|
)
|
|
202
|
+
self.marketplace_management = MarketplaceManagementService(
|
|
203
|
+
self._api_domain, _token_source, verify_ssl=self._verify_ssl
|
|
204
|
+
)
|
|
205
|
+
self.export = ExportService(
|
|
206
|
+
self._api_domain, _token_source, verify_ssl=self._verify_ssl
|
|
207
|
+
)
|
|
200
208
|
|
|
201
209
|
@property
|
|
202
210
|
def token(self) -> str:
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/assistant.py
RENAMED
|
@@ -71,6 +71,10 @@ class PromptVariable(BaseModel):
|
|
|
71
71
|
key: str
|
|
72
72
|
description: str | None = None
|
|
73
73
|
default_value: str
|
|
74
|
+
is_sensitive: bool = Field(
|
|
75
|
+
default=False,
|
|
76
|
+
description="Whether this variable holds sensitive data; its default is never round-tripped in plain text",
|
|
77
|
+
)
|
|
74
78
|
|
|
75
79
|
|
|
76
80
|
class MCPServerConfig(BaseModel):
|
|
@@ -329,6 +333,18 @@ class Assistant(AssistantBase):
|
|
|
329
333
|
description="Number of times this assistant has been cloned in the Marketplace",
|
|
330
334
|
)
|
|
331
335
|
tool_permissions: ToolPermissionsConfig | None = None
|
|
336
|
+
marketplace_status: str | None = Field(
|
|
337
|
+
default=None,
|
|
338
|
+
description="Marketplace review status (DRAFT, PENDING_REVIEW, APPROVED, REJECTED, WITHDRAWN)",
|
|
339
|
+
)
|
|
340
|
+
is_verified: bool | None = Field(
|
|
341
|
+
default=None,
|
|
342
|
+
description="True once a reviewer approved the assistant for the marketplace",
|
|
343
|
+
)
|
|
344
|
+
marketplace_decision_reason: str | None = Field(
|
|
345
|
+
default=None,
|
|
346
|
+
description="Reason given by the reviewer who rejected the assistant",
|
|
347
|
+
)
|
|
332
348
|
hedging_config: HedgingConfig | None = None
|
|
333
349
|
interactive_enabled: bool = False
|
|
334
350
|
enable_image_generation: bool | None = False
|
|
@@ -826,3 +842,47 @@ class UserMappingResponse(BaseModel):
|
|
|
826
842
|
default=None,
|
|
827
843
|
description="Workflow scope the response is effective for",
|
|
828
844
|
)
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
class ShareUsersRequest(BaseModel):
|
|
848
|
+
"""Request body for POST/DELETE /v1/assistants/{assistant_id}/share."""
|
|
849
|
+
|
|
850
|
+
model_config = ConfigDict(extra="ignore")
|
|
851
|
+
|
|
852
|
+
user_ids: List[str] = Field(
|
|
853
|
+
description="Internal user ids to grant or revoke per-user access for"
|
|
854
|
+
)
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
class SharedUser(BaseModel):
|
|
858
|
+
"""One entry of a shared-with / sharable-users list item."""
|
|
859
|
+
|
|
860
|
+
model_config = ConfigDict(extra="ignore")
|
|
861
|
+
|
|
862
|
+
id: str = Field(description="User id")
|
|
863
|
+
username: str = Field(description="Username")
|
|
864
|
+
email: Optional[str] = Field(default=None, description="User email")
|
|
865
|
+
name: Optional[str] = Field(default=None, description="Display name")
|
|
866
|
+
picture: Optional[str] = Field(default=None, description="Avatar URL")
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
class SharedWithResponse(BaseModel):
|
|
870
|
+
"""Response body for GET/POST/DELETE .../shared-with and .../share."""
|
|
871
|
+
|
|
872
|
+
model_config = ConfigDict(extra="ignore")
|
|
873
|
+
|
|
874
|
+
shared_with: List[SharedUser] = Field(
|
|
875
|
+
default_factory=list,
|
|
876
|
+
description="Users currently granted per-user access to the assistant",
|
|
877
|
+
)
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
class SharableUsersResponse(BaseModel):
|
|
881
|
+
"""Response body for GET /v1/assistants/{assistant_id}/sharable-users."""
|
|
882
|
+
|
|
883
|
+
model_config = ConfigDict(extra="ignore")
|
|
884
|
+
|
|
885
|
+
users: List[SharedUser] = Field(
|
|
886
|
+
default_factory=list,
|
|
887
|
+
description="Internal users matching the search query that can be granted access",
|
|
888
|
+
)
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# Copyright 2026 EPAM Systems, Inc. ("EPAM")
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
"""Marketplace management (assistant review queue) models for the CodeMie SDK."""
|
|
16
|
+
|
|
17
|
+
from datetime import datetime
|
|
18
|
+
from enum import Enum
|
|
19
|
+
from typing import Any
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class MarketplaceStatusFilter(str, Enum):
|
|
25
|
+
"""Status filter of the marketplace assistants listing."""
|
|
26
|
+
|
|
27
|
+
ALL = "ALL"
|
|
28
|
+
VERIFIED = "VERIFIED"
|
|
29
|
+
PENDING = "PENDING"
|
|
30
|
+
REJECTED = "REJECTED"
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class MarketplaceGateResult(str, Enum):
|
|
34
|
+
"""Filter of the pending queue by the result of the live gate checks."""
|
|
35
|
+
|
|
36
|
+
ALL_CLEAR = "all_clear"
|
|
37
|
+
HAS_CRITICAL = "has_critical"
|
|
38
|
+
HAS_OPTIONAL_ONLY = "has_optional_only"
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class MarketplacePendingOrderBy(str, Enum):
|
|
42
|
+
"""Sort order of the pending queue."""
|
|
43
|
+
|
|
44
|
+
SUBMITTED_ASC = "submitted_asc"
|
|
45
|
+
SUBMITTED_DESC = "submitted_desc"
|
|
46
|
+
NAME_ASC = "name_asc"
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class MarketplaceGateFinding(BaseModel):
|
|
50
|
+
"""One deterministic gate finding of an assistant."""
|
|
51
|
+
|
|
52
|
+
model_config = ConfigDict(extra="ignore")
|
|
53
|
+
|
|
54
|
+
rule: str = Field(description="Identifier of the gate rule")
|
|
55
|
+
severity: str = Field(description='"CRITICAL" or "OPTIONAL"')
|
|
56
|
+
message: str = Field(description="Human-readable explanation")
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class MarketplacePendingRow(BaseModel):
|
|
60
|
+
"""Summary of an assistant waiting in the review queue."""
|
|
61
|
+
|
|
62
|
+
model_config = ConfigDict(extra="ignore")
|
|
63
|
+
|
|
64
|
+
assistant_id: str
|
|
65
|
+
name: str | None = None
|
|
66
|
+
project: str | None = None
|
|
67
|
+
marketplace_status: str | None = None
|
|
68
|
+
submitted_at: float | None = Field(
|
|
69
|
+
None, description="POSIX timestamp of the submission"
|
|
70
|
+
)
|
|
71
|
+
submitted_by: str | None = None
|
|
72
|
+
gate_findings: list[MarketplaceGateFinding] = Field(default_factory=list)
|
|
73
|
+
categories: list[str] = Field(default_factory=list)
|
|
74
|
+
gate_recompute_failed: bool = Field(
|
|
75
|
+
False, description="The gate checks could not be evaluated for this row"
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class MarketplacePendingResponse(BaseModel):
|
|
80
|
+
"""One page of the review queue."""
|
|
81
|
+
|
|
82
|
+
model_config = ConfigDict(extra="ignore")
|
|
83
|
+
|
|
84
|
+
total: int
|
|
85
|
+
page: int
|
|
86
|
+
page_size: int
|
|
87
|
+
items: list[MarketplacePendingRow] = Field(default_factory=list)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class MarketplaceAssistantRow(MarketplacePendingRow):
|
|
91
|
+
"""A row of the marketplace assistants listing, with the review outcome."""
|
|
92
|
+
|
|
93
|
+
is_verified: bool = False
|
|
94
|
+
marketplace_decision_reason: str | None = None
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
class MarketplaceAssistantsResponse(BaseModel):
|
|
98
|
+
"""One page of the marketplace assistants listing."""
|
|
99
|
+
|
|
100
|
+
model_config = ConfigDict(extra="ignore")
|
|
101
|
+
|
|
102
|
+
total: int
|
|
103
|
+
page: int
|
|
104
|
+
page_size: int
|
|
105
|
+
items: list[MarketplaceAssistantRow] = Field(default_factory=list)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
class MarketplacePendingStats(BaseModel):
|
|
109
|
+
"""Size and waiting times of the review queue."""
|
|
110
|
+
|
|
111
|
+
model_config = ConfigDict(extra="ignore")
|
|
112
|
+
|
|
113
|
+
count: int = 0
|
|
114
|
+
waiting_over_7d: int = 0
|
|
115
|
+
avg_wait_days: float = 0.0
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class MarketplaceOverview(BaseModel):
|
|
119
|
+
"""Marketplace health figures; only the review queue block is modelled in detail."""
|
|
120
|
+
|
|
121
|
+
model_config = ConfigDict(extra="allow")
|
|
122
|
+
|
|
123
|
+
total: int | None = None
|
|
124
|
+
marketplace_assistants_total: int | None = None
|
|
125
|
+
pending: MarketplacePendingStats = Field(default_factory=MarketplacePendingStats)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class MarketplaceReviewDetail(BaseModel):
|
|
129
|
+
"""What a reviewer sees about one assistant, including the live gate findings."""
|
|
130
|
+
|
|
131
|
+
model_config = ConfigDict(extra="ignore")
|
|
132
|
+
|
|
133
|
+
id: str | None = None
|
|
134
|
+
name: str
|
|
135
|
+
description: str = ""
|
|
136
|
+
categories: list[str] = Field(default_factory=list)
|
|
137
|
+
project: str | None = None
|
|
138
|
+
submitted_by: str | None = None
|
|
139
|
+
marketplace_submitted_at: datetime | None = None
|
|
140
|
+
marketplace_status: str | None = None
|
|
141
|
+
marketplace_version: int = Field(
|
|
142
|
+
0, description="Compare-and-set token to pass as expected_version"
|
|
143
|
+
)
|
|
144
|
+
is_global: bool | None = None
|
|
145
|
+
is_verified: bool = False
|
|
146
|
+
marketplace_decided_at: datetime | None = None
|
|
147
|
+
marketplace_decided_by: str | None = None
|
|
148
|
+
marketplace_decision_reason: str | None = None
|
|
149
|
+
system_prompt_length: int = 0
|
|
150
|
+
gate_findings: list[MarketplaceGateFinding] = Field(default_factory=list)
|
|
151
|
+
critical_count: int = 0
|
|
152
|
+
optional_count: int = 0
|
|
153
|
+
override_notice: str | None = None
|
|
154
|
+
overridden_by: str | None = None
|
|
155
|
+
bypassed_gate_findings: list[MarketplaceGateFinding] | None = None
|
|
156
|
+
bypassed_gate_findings_unavailable: bool = False
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
class MarketplaceIndexingOutcome(BaseModel):
|
|
160
|
+
"""What happened to the search-index projection of a decision."""
|
|
161
|
+
|
|
162
|
+
model_config = ConfigDict(extra="ignore")
|
|
163
|
+
|
|
164
|
+
action: str = Field(description='"index" or "remove"')
|
|
165
|
+
state: str = Field(description='"OK" or "FAILED"')
|
|
166
|
+
attempts: int = 0
|
|
167
|
+
error: str | None = None
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
class MarketplaceReviewActionResponse(BaseModel):
|
|
171
|
+
"""Outcome of approve, reject or withdraw."""
|
|
172
|
+
|
|
173
|
+
model_config = ConfigDict(extra="ignore")
|
|
174
|
+
|
|
175
|
+
ok: bool
|
|
176
|
+
entity_kind: str
|
|
177
|
+
entity_id: str
|
|
178
|
+
status: str = Field(description="Marketplace status after the decision")
|
|
179
|
+
indexing: MarketplaceIndexingOutcome | None = None
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
class MarketplaceForcePublishResponse(MarketplaceReviewActionResponse):
|
|
183
|
+
"""Force-publish also echoes the notice and the findings it waived."""
|
|
184
|
+
|
|
185
|
+
override_notice: str
|
|
186
|
+
bypassed_gate_findings: list[MarketplaceGateFinding] = Field(default_factory=list)
|
|
187
|
+
bypassed_gate_findings_unavailable: bool = False
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
class MarketplaceDecisionRequest(BaseModel):
|
|
191
|
+
"""Body of a review decision; only the fields that are set are sent."""
|
|
192
|
+
|
|
193
|
+
model_config = ConfigDict(extra="forbid")
|
|
194
|
+
|
|
195
|
+
reason: str | None = None
|
|
196
|
+
override_notice: str | None = None
|
|
197
|
+
expected_version: int | None = Field(
|
|
198
|
+
None,
|
|
199
|
+
ge=0,
|
|
200
|
+
description="Apply only if the assistant is still at this marketplace_version",
|
|
201
|
+
)
|
|
202
|
+
|
|
203
|
+
def to_body(self) -> dict[str, Any]:
|
|
204
|
+
return self.model_dump(exclude_none=True)
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/assistant.py
RENAMED
|
@@ -554,18 +554,27 @@ class AssistantService:
|
|
|
554
554
|
assistant_id: str,
|
|
555
555
|
categories: list[str] | None = None,
|
|
556
556
|
ignore_recommendations: bool = False,
|
|
557
|
+
force_publish: bool = False,
|
|
558
|
+
override_notice: str | None = None,
|
|
557
559
|
) -> dict:
|
|
558
560
|
"""Publish an assistant to the marketplace.
|
|
559
561
|
Args:
|
|
560
562
|
assistant_id: ID of the assistant to publish
|
|
561
563
|
categories: List of categories for marketplace classification (e.g., ['quality-assurance'])
|
|
562
564
|
ignore_recommendations: If True, bypass validation and publish anyway
|
|
565
|
+
force_publish: Admins and maintainers only: publish over CRITICAL gate findings.
|
|
566
|
+
Requires override_notice.
|
|
567
|
+
override_notice: Justification for force_publish, 20 to 2000 characters
|
|
563
568
|
"""
|
|
564
569
|
body = {}
|
|
565
570
|
if categories:
|
|
566
571
|
body["categories"] = categories
|
|
567
572
|
if ignore_recommendations:
|
|
568
573
|
body["ignore_recommendations"] = ignore_recommendations
|
|
574
|
+
if force_publish:
|
|
575
|
+
body["force_publish"] = force_publish
|
|
576
|
+
if override_notice is not None:
|
|
577
|
+
body["override_notice"] = override_notice
|
|
569
578
|
|
|
570
579
|
return self._api.post(
|
|
571
580
|
f"/v1/assistants/{assistant_id}/marketplace/publish",
|
|
@@ -827,3 +836,83 @@ class AssistantService:
|
|
|
827
836
|
dict,
|
|
828
837
|
params=params or None,
|
|
829
838
|
)
|
|
839
|
+
|
|
840
|
+
def list_shared_with(self, assistant_id: str):
|
|
841
|
+
"""List users explicitly granted per-user access to the assistant (owner only).
|
|
842
|
+
|
|
843
|
+
Calls GET /v1/assistants/{assistant_id}/shared-with.
|
|
844
|
+
|
|
845
|
+
Args:
|
|
846
|
+
assistant_id: ID of the assistant
|
|
847
|
+
|
|
848
|
+
Returns:
|
|
849
|
+
SharedWithResponse with the current shared_with list
|
|
850
|
+
"""
|
|
851
|
+
from ..models.assistant import SharedWithResponse
|
|
852
|
+
|
|
853
|
+
return self._api.get(
|
|
854
|
+
f"/v1/assistants/{assistant_id}/shared-with", SharedWithResponse
|
|
855
|
+
)
|
|
856
|
+
|
|
857
|
+
def share(self, assistant_id: str, user_ids: list[str]):
|
|
858
|
+
"""Grant per-user READ access to the assistant to one or more internal users (owner only).
|
|
859
|
+
|
|
860
|
+
Calls POST /v1/assistants/{assistant_id}/share.
|
|
861
|
+
|
|
862
|
+
Args:
|
|
863
|
+
assistant_id: ID of the assistant
|
|
864
|
+
user_ids: Internal user ids to grant access to
|
|
865
|
+
|
|
866
|
+
Returns:
|
|
867
|
+
SharedWithResponse with the refreshed shared_with list
|
|
868
|
+
"""
|
|
869
|
+
from ..models.assistant import ShareUsersRequest, SharedWithResponse
|
|
870
|
+
|
|
871
|
+
request = ShareUsersRequest(user_ids=user_ids)
|
|
872
|
+
return self._api.post(
|
|
873
|
+
f"/v1/assistants/{assistant_id}/share",
|
|
874
|
+
SharedWithResponse,
|
|
875
|
+
json_data=request.model_dump(),
|
|
876
|
+
)
|
|
877
|
+
|
|
878
|
+
def revoke_share(self, assistant_id: str, user_ids: list[str]):
|
|
879
|
+
"""Revoke per-user READ access to the assistant for one or more users (owner only).
|
|
880
|
+
|
|
881
|
+
Calls DELETE /v1/assistants/{assistant_id}/share.
|
|
882
|
+
|
|
883
|
+
Args:
|
|
884
|
+
assistant_id: ID of the assistant
|
|
885
|
+
user_ids: Internal user ids to revoke access from
|
|
886
|
+
|
|
887
|
+
Returns:
|
|
888
|
+
SharedWithResponse with the refreshed shared_with list
|
|
889
|
+
"""
|
|
890
|
+
from ..models.assistant import ShareUsersRequest, SharedWithResponse
|
|
891
|
+
|
|
892
|
+
request = ShareUsersRequest(user_ids=user_ids)
|
|
893
|
+
return self._api.delete(
|
|
894
|
+
f"/v1/assistants/{assistant_id}/share",
|
|
895
|
+
SharedWithResponse,
|
|
896
|
+
json_data=request.model_dump(),
|
|
897
|
+
)
|
|
898
|
+
|
|
899
|
+
def search_sharable_users(self, assistant_id: str, q: str):
|
|
900
|
+
"""Search internal users that can be granted access to the assistant (owner only).
|
|
901
|
+
|
|
902
|
+
Calls GET /v1/assistants/{assistant_id}/sharable-users?q=<q>. The backend
|
|
903
|
+
requires ``q`` to be at least 2 characters (422 otherwise).
|
|
904
|
+
|
|
905
|
+
Args:
|
|
906
|
+
assistant_id: ID of the assistant
|
|
907
|
+
q: Search query matched against name, username and email
|
|
908
|
+
|
|
909
|
+
Returns:
|
|
910
|
+
SharableUsersResponse listing matching internal users
|
|
911
|
+
"""
|
|
912
|
+
from ..models.assistant import SharableUsersResponse
|
|
913
|
+
|
|
914
|
+
return self._api.get(
|
|
915
|
+
f"/v1/assistants/{assistant_id}/sharable-users",
|
|
916
|
+
SharableUsersResponse,
|
|
917
|
+
params={"q": q},
|
|
918
|
+
)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""Export service — the public IaC export endpoint (GET /v1/export/{kind}/{id})."""
|
|
2
|
+
|
|
3
|
+
import requests
|
|
4
|
+
|
|
5
|
+
from ..utils import ApiRequestHandler, TokenSource
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ExportService:
|
|
9
|
+
"""Service for exporting a CodeMie entity as a canonical IaC document.
|
|
10
|
+
|
|
11
|
+
The document is `{version, meta: {kind, name}, spec}`: no platform ids, credentials
|
|
12
|
+
replaced with `env:` references, and references to other entities rendered by name.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, api_domain: str, token: TokenSource, verify_ssl: bool = True):
|
|
16
|
+
"""Initialize the export service.
|
|
17
|
+
|
|
18
|
+
Args:
|
|
19
|
+
api_domain: Base URL for the CodeMie API
|
|
20
|
+
token: Authentication token
|
|
21
|
+
verify_ssl: Whether to verify SSL certificates
|
|
22
|
+
"""
|
|
23
|
+
self._api = ApiRequestHandler(api_domain, token, verify_ssl)
|
|
24
|
+
|
|
25
|
+
def export(self, kind: str, entity_id: str) -> dict:
|
|
26
|
+
"""Export an entity as a canonical document.
|
|
27
|
+
|
|
28
|
+
Args:
|
|
29
|
+
kind: Entity kind (assistant, workflow, datasource, integration, skill, category)
|
|
30
|
+
entity_id: Id of the entity to export
|
|
31
|
+
|
|
32
|
+
Returns:
|
|
33
|
+
The raw document: `{"version": ..., "meta": {"kind": ..., "name": ...}, "spec": {...}}`
|
|
34
|
+
|
|
35
|
+
Raises:
|
|
36
|
+
requests.HTTPError: non-2xx response — 404 for an unknown kind or a missing entity,
|
|
37
|
+
403 for a referenced entity the caller cannot read, 422 for stored data the
|
|
38
|
+
document format cannot represent (an unresolved credential or reference).
|
|
39
|
+
"""
|
|
40
|
+
return self._api.get(
|
|
41
|
+
f"/v1/export/{kind}/{entity_id}", dict, wrap_response=False
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
def export_raw(self, kind: str, entity_id: str) -> bytes:
|
|
45
|
+
"""Export an entity, returning the exact response bytes (key order, spacing) as sent.
|
|
46
|
+
|
|
47
|
+
Use this instead of `export()` when the byte-for-byte shape of the document itself is
|
|
48
|
+
under test (e.g. determinism of the canonical serialisation); `export()` parses the body
|
|
49
|
+
into a dict, which loses key order.
|
|
50
|
+
|
|
51
|
+
Raises:
|
|
52
|
+
requests.HTTPError: same as `export()`.
|
|
53
|
+
"""
|
|
54
|
+
response = self._api.get(
|
|
55
|
+
f"/v1/export/{kind}/{entity_id}", requests.Response, wrap_response=False
|
|
56
|
+
)
|
|
57
|
+
return response.content
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# Copyright 2026 EPAM Systems, Inc. ("EPAM")
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
"""Marketplace management service for the CodeMie SDK.
|
|
16
|
+
|
|
17
|
+
Wraps the assistant review queue under ``/v1/marketplace-management``. Every route
|
|
18
|
+
requires the admin or maintainer role.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
from enum import Enum
|
|
22
|
+
from typing import Any
|
|
23
|
+
from urllib.parse import quote
|
|
24
|
+
|
|
25
|
+
from ..models.marketplace_management import (
|
|
26
|
+
MarketplaceAssistantsResponse,
|
|
27
|
+
MarketplaceDecisionRequest,
|
|
28
|
+
MarketplaceForcePublishResponse,
|
|
29
|
+
MarketplaceGateResult,
|
|
30
|
+
MarketplaceOverview,
|
|
31
|
+
MarketplacePendingOrderBy,
|
|
32
|
+
MarketplacePendingResponse,
|
|
33
|
+
MarketplaceReviewActionResponse,
|
|
34
|
+
MarketplaceReviewDetail,
|
|
35
|
+
MarketplaceStatusFilter,
|
|
36
|
+
)
|
|
37
|
+
from ..utils import ApiRequestHandler, TokenSource
|
|
38
|
+
|
|
39
|
+
_BASE = "/v1/marketplace-management/entities/assistants"
|
|
40
|
+
_IDEMPOTENCY_HEADER = "Idempotency-Key"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _value(item: Any) -> Any:
|
|
44
|
+
"""The wire value of an enum member; other values pass through."""
|
|
45
|
+
return item.value if isinstance(item, Enum) else item
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class MarketplaceManagementService:
|
|
49
|
+
"""Service for reviewing assistants submitted to the marketplace."""
|
|
50
|
+
|
|
51
|
+
def __init__(self, api_domain: str, token: TokenSource, verify_ssl: bool = True):
|
|
52
|
+
"""Initialize the marketplace management service.
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
api_domain: Base URL for the CodeMie API
|
|
56
|
+
token: Authentication token
|
|
57
|
+
verify_ssl: Whether to verify SSL certificates
|
|
58
|
+
"""
|
|
59
|
+
self._api = ApiRequestHandler(api_domain, token, verify_ssl)
|
|
60
|
+
|
|
61
|
+
@staticmethod
|
|
62
|
+
def _path(*parts: str) -> str:
|
|
63
|
+
return "/".join([_BASE, *(quote(part, safe="") for part in parts)])
|
|
64
|
+
|
|
65
|
+
def get_overview(self) -> MarketplaceOverview:
|
|
66
|
+
"""Marketplace health figures, including the size of the review queue."""
|
|
67
|
+
return self._api.get(
|
|
68
|
+
f"{_BASE}/overview", MarketplaceOverview, wrap_response=False
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
def list_pending(
|
|
72
|
+
self,
|
|
73
|
+
category: str | None = None,
|
|
74
|
+
gate_result: MarketplaceGateResult | str | None = None,
|
|
75
|
+
order_by: MarketplacePendingOrderBy | str | None = None,
|
|
76
|
+
page: int = 1,
|
|
77
|
+
page_size: int = 25,
|
|
78
|
+
) -> MarketplacePendingResponse:
|
|
79
|
+
"""List the assistants waiting for review.
|
|
80
|
+
|
|
81
|
+
Args:
|
|
82
|
+
category: Only assistants in this category id
|
|
83
|
+
gate_result: Only assistants with this live gate result
|
|
84
|
+
order_by: Sort order; the server default is oldest submission first
|
|
85
|
+
page: Page number, starting at 1
|
|
86
|
+
page_size: Page size, 1 to 100
|
|
87
|
+
"""
|
|
88
|
+
params = {
|
|
89
|
+
"category": category,
|
|
90
|
+
"gate_result": _value(gate_result),
|
|
91
|
+
"order_by": _value(order_by),
|
|
92
|
+
"page": page,
|
|
93
|
+
"page_size": page_size,
|
|
94
|
+
}
|
|
95
|
+
return self._api.get(
|
|
96
|
+
f"{_BASE}/pending",
|
|
97
|
+
MarketplacePendingResponse,
|
|
98
|
+
params={key: value for key, value in params.items() if value is not None},
|
|
99
|
+
wrap_response=False,
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
def list_marketplace_assistants(
|
|
103
|
+
self,
|
|
104
|
+
status: MarketplaceStatusFilter | str | None = None,
|
|
105
|
+
page: int = 1,
|
|
106
|
+
page_size: int | None = None,
|
|
107
|
+
) -> MarketplaceAssistantsResponse:
|
|
108
|
+
"""List assistants by review status.
|
|
109
|
+
|
|
110
|
+
Args:
|
|
111
|
+
status: Status filter; the server default is all statuses
|
|
112
|
+
page: Page number, starting at 1
|
|
113
|
+
page_size: Page size, 1 to 100; omit to get every matching row
|
|
114
|
+
"""
|
|
115
|
+
params = {"status": _value(status), "page": page, "page_size": page_size}
|
|
116
|
+
return self._api.get(
|
|
117
|
+
f"{_BASE}/marketplace-assistants",
|
|
118
|
+
MarketplaceAssistantsResponse,
|
|
119
|
+
params={key: value for key, value in params.items() if value is not None},
|
|
120
|
+
wrap_response=False,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
def get_detail(self, entity_id: str) -> MarketplaceReviewDetail:
|
|
124
|
+
"""Review detail of one assistant, with its gate findings recomputed live."""
|
|
125
|
+
return self._api.get(
|
|
126
|
+
self._path(entity_id), MarketplaceReviewDetail, wrap_response=False
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
def _decide(
|
|
130
|
+
self,
|
|
131
|
+
entity_id: str,
|
|
132
|
+
action: str,
|
|
133
|
+
request: MarketplaceDecisionRequest,
|
|
134
|
+
response_model: type,
|
|
135
|
+
idempotency_key: str | None = None,
|
|
136
|
+
):
|
|
137
|
+
return self._api.post(
|
|
138
|
+
f"{self._path('pending', entity_id)}/{action}",
|
|
139
|
+
response_model,
|
|
140
|
+
json_data=request.to_body(),
|
|
141
|
+
extra_headers=(
|
|
142
|
+
{_IDEMPOTENCY_HEADER: idempotency_key} if idempotency_key else None
|
|
143
|
+
),
|
|
144
|
+
wrap_response=False,
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
def approve(
|
|
148
|
+
self,
|
|
149
|
+
entity_id: str,
|
|
150
|
+
expected_version: int | None = None,
|
|
151
|
+
idempotency_key: str | None = None,
|
|
152
|
+
) -> MarketplaceReviewActionResponse:
|
|
153
|
+
"""Approve a pending assistant: publish and verify it.
|
|
154
|
+
|
|
155
|
+
Args:
|
|
156
|
+
entity_id: Assistant ID
|
|
157
|
+
expected_version: marketplace_version the reviewer looked at; a different
|
|
158
|
+
current version is refused with HTTP 409
|
|
159
|
+
idempotency_key: Replay token; the same key returns the first answer
|
|
160
|
+
"""
|
|
161
|
+
return self._decide(
|
|
162
|
+
entity_id,
|
|
163
|
+
"approve",
|
|
164
|
+
MarketplaceDecisionRequest(expected_version=expected_version),
|
|
165
|
+
MarketplaceReviewActionResponse,
|
|
166
|
+
idempotency_key,
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
def reject(
|
|
170
|
+
self,
|
|
171
|
+
entity_id: str,
|
|
172
|
+
reason: str,
|
|
173
|
+
expected_version: int | None = None,
|
|
174
|
+
) -> MarketplaceReviewActionResponse:
|
|
175
|
+
"""Reject a pending assistant: unpublish and unverify it.
|
|
176
|
+
|
|
177
|
+
Args:
|
|
178
|
+
entity_id: Assistant ID
|
|
179
|
+
reason: 20 to 2000 characters after trimming, kept with the assistant
|
|
180
|
+
expected_version: marketplace_version the reviewer looked at
|
|
181
|
+
"""
|
|
182
|
+
return self._decide(
|
|
183
|
+
entity_id,
|
|
184
|
+
"reject",
|
|
185
|
+
MarketplaceDecisionRequest(
|
|
186
|
+
reason=reason, expected_version=expected_version
|
|
187
|
+
),
|
|
188
|
+
MarketplaceReviewActionResponse,
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
def force_publish(
|
|
192
|
+
self,
|
|
193
|
+
entity_id: str,
|
|
194
|
+
override_notice: str,
|
|
195
|
+
expected_version: int | None = None,
|
|
196
|
+
) -> MarketplaceForcePublishResponse:
|
|
197
|
+
"""Publish an assistant over its CRITICAL gate findings.
|
|
198
|
+
|
|
199
|
+
Args:
|
|
200
|
+
entity_id: Assistant ID
|
|
201
|
+
override_notice: 20 to 2000 characters after trimming, recorded with the decision
|
|
202
|
+
expected_version: marketplace_version the reviewer looked at
|
|
203
|
+
"""
|
|
204
|
+
return self._decide(
|
|
205
|
+
entity_id,
|
|
206
|
+
"force-publish",
|
|
207
|
+
MarketplaceDecisionRequest(
|
|
208
|
+
override_notice=override_notice, expected_version=expected_version
|
|
209
|
+
),
|
|
210
|
+
MarketplaceForcePublishResponse,
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
def withdraw(
|
|
214
|
+
self, entity_id: str, expected_version: int | None = None
|
|
215
|
+
) -> MarketplaceReviewActionResponse:
|
|
216
|
+
"""Withdraw an assistant from the marketplace: unpublish and unverify it.
|
|
217
|
+
|
|
218
|
+
Args:
|
|
219
|
+
entity_id: Assistant ID
|
|
220
|
+
expected_version: marketplace_version the caller looked at. The route reads
|
|
221
|
+
no body fields today, so the server accepts and ignores it.
|
|
222
|
+
"""
|
|
223
|
+
return self._decide(
|
|
224
|
+
entity_id,
|
|
225
|
+
"withdraw",
|
|
226
|
+
MarketplaceDecisionRequest(expected_version=expected_version),
|
|
227
|
+
MarketplaceReviewActionResponse,
|
|
228
|
+
)
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/auth/credentials.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/builders/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/client/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/activity_event.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/analytics.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/categories.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/conversation.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/cost_center.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/file_operation.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/guardrails.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/integration.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/mcp_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/vendor_assistant.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/vendor_guardrail.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/vendor_runtime.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/vendor_workflow.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/workflow.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/workflow_state.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/models/workspace.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/activity_event.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/analytics.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/categories.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/conversation.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/cost_center.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/datasource.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/dynamic_config.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/integration.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/mcp_configs.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/mermaid.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/project.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/vendor_runtime.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/webhook.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/workflow.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.709 → codemie_sdk_python-0.1.711}/src/codemie_sdk/services/workspace.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|