You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fetch org_id and project_id from API key
* taking org_id and project_id from apikey
* few more cleanups for credential CRUD
* few more cleanups for credential CRUD
* fixing typo
* coderabbit suggestions
* cleanup unnecessary variables
* reverting naming variables
* nitty gritty cleanups
* updating testcases with updatederror messages
summary="Create new credentials for an organization and project",
30
-
description="Creates new credentials for a specific organization and project combination. This endpoint requires superuser privileges. Each organization can have different credentials for different providers and projects. Only one credential per provider is allowed per organization-project combination.",
22
+
response_model=APIResponse[list[CredsPublic]],
23
+
summary="Create new credentials for the current organization and project",
24
+
description="Creates new credentials for the caller's organization and project. Each organization can have different credentials for different providers and projects. Only one credential per provider is allowed per organization-project combination.",
summary="Get all credentials for an organization and project",
75
-
description="Retrieves all provider credentials associated with a specific organization and project combination. If project_id is not provided, returns credentials for the organization level. This endpoint requires superuser privileges.",
65
+
"/",
66
+
response_model=APIResponse[list[CredsPublic]],
67
+
summary="Get all credentials for current org and project",
68
+
description="Retrieves all provider credentials associated with the caller's organization and project.",
summary="Get specific provider credentials for an organization and project",
90
-
description="Retrieves credentials for a specific provider (e.g., 'openai', 'anthropic') for a given organization and project combination. If project_id is not provided, returns organization-level credentials. This endpoint requires superuser privileges.",
89
+
summary="Get specific provider credentials for current org and project",
90
+
description="Retrieves credentials for a specific provider (e.g., 'openai', 'anthropic') for the caller's organization and project.",
summary="Update organization and project credentials",
113
-
description="Updates credentials for a specific organization and project combination. Can update specific provider credentials or add new providers. If project_id is provided in the update, credentials will be moved to that project. This endpoint requires superuser privileges.",
112
+
"/",
113
+
response_model=APIResponse[list[CredsPublic]],
114
+
summary="Update credentials for current org and project",
115
+
description="Updates credentials for a specific provider of the caller's organization and project.",
summary="Delete all credentials for an organization and project",
164
-
description="Removes all credentials for a specific organization and project combination. If project_id is provided, only removes credentials for that project. This is a soft delete operation that marks credentials as inactive. This endpoint requires superuser privileges.",
177
+
summary="Delete all credentials for current org and project",
178
+
description="Removes all credentials for the caller's organization and project. This is a soft delete operation that marks credentials as inactive.",
0 commit comments