chore(api): regenerate TypeScript SDK with new user endpoints
New endpoints: GET /api/users/{username}/activity, GET /api/users/{username}/stars,
GET /api/users/{username}/following. Updated types: UserActivityItem, UserActivityResponse,
UserStarsResponse, RepoStarItem, ProjectFollowItem, UserCard.
This commit is contained in:
parent
80e2201b8b
commit
587dc06e8c
1360
openapi.json
1360
openapi.json
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -56,6 +56,15 @@ export type AddSshKeyParams = {
|
|||||||
public_key: string;
|
public_key: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type AlertDetail = {
|
||||||
|
workspace_id: string;
|
||||||
|
workspace_name: string;
|
||||||
|
alert_type: string;
|
||||||
|
threshold: number;
|
||||||
|
current_value: number;
|
||||||
|
recipients: Array<string>;
|
||||||
|
};
|
||||||
|
|
||||||
export type AnswerRequest = {
|
export type AnswerRequest = {
|
||||||
question: string;
|
question: string;
|
||||||
answer: string;
|
answer: string;
|
||||||
@ -478,6 +487,16 @@ export type ApiResponseCardResponse = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ApiResponseCheckAlertsResponse = {
|
||||||
|
code: number;
|
||||||
|
message: string;
|
||||||
|
data?: {
|
||||||
|
workspaces_checked: number;
|
||||||
|
alerts_sent: number;
|
||||||
|
details: Array<AlertDetail>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type ApiResponseColumnResponse = {
|
export type ApiResponseColumnResponse = {
|
||||||
code: number;
|
code: number;
|
||||||
message: string;
|
message: string;
|
||||||
@ -1467,6 +1486,7 @@ export type ApiResponseRoomAiResponse = {
|
|||||||
think: boolean;
|
think: boolean;
|
||||||
stream: boolean;
|
stream: boolean;
|
||||||
min_score?: number | null;
|
min_score?: number | null;
|
||||||
|
agent_type?: string | null;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
};
|
};
|
||||||
@ -1529,6 +1549,11 @@ export type ApiResponseRoomMessageResponse = {
|
|||||||
send_at: string;
|
send_at: string;
|
||||||
revoked?: string | null;
|
revoked?: string | null;
|
||||||
revoked_by?: string | null;
|
revoked_by?: string | null;
|
||||||
|
/**
|
||||||
|
* Highlighted content with <mark> tags around matched terms (for search results)
|
||||||
|
*/
|
||||||
|
highlighted_content?: string | null;
|
||||||
|
attachment_ids?: Array<string>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1680,6 +1705,19 @@ export type ApiResponseString = {
|
|||||||
data?: string;
|
data?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ApiResponseSyncModelsResponse = {
|
||||||
|
code: number;
|
||||||
|
message: string;
|
||||||
|
data?: {
|
||||||
|
models_created: number;
|
||||||
|
models_updated: number;
|
||||||
|
versions_created: number;
|
||||||
|
pricing_created: number;
|
||||||
|
capabilities_created: number;
|
||||||
|
profiles_created: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type ApiResponseTagCountResponse = {
|
export type ApiResponseTagCountResponse = {
|
||||||
code: number;
|
code: number;
|
||||||
message: string;
|
message: string;
|
||||||
@ -1828,6 +1866,17 @@ export type ApiResponseTreeIsEmptyResponse = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ApiResponseUserActivityResponse = {
|
||||||
|
code: number;
|
||||||
|
message: string;
|
||||||
|
data?: {
|
||||||
|
items: Array<UserActivityItem>;
|
||||||
|
total: number;
|
||||||
|
page: number;
|
||||||
|
per_page: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type ApiResponseUserInfoExternal = {
|
export type ApiResponseUserInfoExternal = {
|
||||||
code: number;
|
code: number;
|
||||||
message: string;
|
message: string;
|
||||||
@ -1869,6 +1918,16 @@ export type ApiResponseUserReposResponse = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ApiResponseUserStarsResponse = {
|
||||||
|
code: number;
|
||||||
|
message: string;
|
||||||
|
data?: {
|
||||||
|
repos: Array<RepoStarItem>;
|
||||||
|
projects: Array<ProjectFollowItem>;
|
||||||
|
total: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type ApiResponseValue = {
|
export type ApiResponseValue = {
|
||||||
code: number;
|
code: number;
|
||||||
message: string;
|
message: string;
|
||||||
@ -2075,6 +2134,20 @@ export type ApiResponseVecMergeheadInfoResponse = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ApiResponseVecMyWorkspaceInvitation = {
|
||||||
|
code: number;
|
||||||
|
message: string;
|
||||||
|
data?: Array<{
|
||||||
|
workspace_id: string;
|
||||||
|
workspace_slug: string;
|
||||||
|
workspace_name: string;
|
||||||
|
role: string;
|
||||||
|
invited_by_username?: string | null;
|
||||||
|
invited_at: string;
|
||||||
|
expires_at?: string | null;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
|
||||||
export type ApiResponseVecPendingInvitationInfo = {
|
export type ApiResponseVecPendingInvitationInfo = {
|
||||||
code: number;
|
code: number;
|
||||||
message: string;
|
message: string;
|
||||||
@ -2124,6 +2197,7 @@ export type ApiResponseVecRoomAiResponse = {
|
|||||||
think: boolean;
|
think: boolean;
|
||||||
stream: boolean;
|
stream: boolean;
|
||||||
min_score?: number | null;
|
min_score?: number | null;
|
||||||
|
agent_type?: string | null;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
}>;
|
}>;
|
||||||
@ -2268,6 +2342,18 @@ export type ApiResponseVecTreeEntryResponse = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ApiResponseVecUserCard = {
|
||||||
|
code: number;
|
||||||
|
message: string;
|
||||||
|
data?: Array<{
|
||||||
|
user_uid: string;
|
||||||
|
username: string;
|
||||||
|
display_name?: string | null;
|
||||||
|
avatar_url?: string | null;
|
||||||
|
is_following_me: boolean;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
|
||||||
export type ApiResponseVecWatchUserInfo = {
|
export type ApiResponseVecWatchUserInfo = {
|
||||||
code: number;
|
code: number;
|
||||||
message: string;
|
message: string;
|
||||||
@ -2722,6 +2808,12 @@ export type ChangePasswordParams = {
|
|||||||
new_password: string;
|
new_password: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type CheckAlertsResponse = {
|
||||||
|
workspaces_checked: number;
|
||||||
|
alerts_sent: number;
|
||||||
|
details: Array<AlertDetail>;
|
||||||
|
};
|
||||||
|
|
||||||
export type ColumnResponse = {
|
export type ColumnResponse = {
|
||||||
id: string;
|
id: string;
|
||||||
board: string;
|
board: string;
|
||||||
@ -2992,6 +3084,11 @@ export type ConfigSnapshotResponse = {
|
|||||||
entries: Array<ConfigEntryResponse>;
|
entries: Array<ConfigEntryResponse>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ConfirmResetPasswordParams = {
|
||||||
|
token: string;
|
||||||
|
new_password: string;
|
||||||
|
};
|
||||||
|
|
||||||
export type ContextMe = {
|
export type ContextMe = {
|
||||||
uid: string;
|
uid: string;
|
||||||
username: string;
|
username: string;
|
||||||
@ -3199,11 +3296,6 @@ export type DiffStatsResponse = {
|
|||||||
deletions: number;
|
deletions: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Disable2FaParams = {
|
|
||||||
code: string;
|
|
||||||
password: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type EmailChangeRequest = {
|
export type EmailChangeRequest = {
|
||||||
new_email: string;
|
new_email: string;
|
||||||
password: string;
|
password: string;
|
||||||
@ -3217,12 +3309,6 @@ export type EmailVerifyRequest = {
|
|||||||
token: string;
|
token: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Enable2FaResponse = {
|
|
||||||
secret: string;
|
|
||||||
qr_code: string;
|
|
||||||
backup_codes: Array<string>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ExchangeProjectName = {
|
export type ExchangeProjectName = {
|
||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
@ -3262,12 +3348,6 @@ export type GeneratePrDescriptionResponse = {
|
|||||||
billing?: null | BillingRecord;
|
billing?: null | BillingRecord;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Get2FaStatusResponse = {
|
|
||||||
is_enabled: boolean;
|
|
||||||
method?: string | null;
|
|
||||||
has_backup_codes: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GitInitRequest = {
|
export type GitInitRequest = {
|
||||||
path: string;
|
path: string;
|
||||||
bare?: boolean;
|
bare?: boolean;
|
||||||
@ -3552,7 +3632,6 @@ export type LoginParams = {
|
|||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
captcha: string;
|
captcha: string;
|
||||||
totp_code?: string | null;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MemberInfo = {
|
export type MemberInfo = {
|
||||||
@ -3742,6 +3821,19 @@ export type MoveCardParams = {
|
|||||||
position: number;
|
position: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invitation received by the current user (workspace invitation for self).
|
||||||
|
*/
|
||||||
|
export type MyWorkspaceInvitation = {
|
||||||
|
workspace_id: string;
|
||||||
|
workspace_slug: string;
|
||||||
|
workspace_name: string;
|
||||||
|
role: string;
|
||||||
|
invited_by_username?: string | null;
|
||||||
|
invited_at: string;
|
||||||
|
expires_at?: string | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type NotificationListResponse = {
|
export type NotificationListResponse = {
|
||||||
notifications: Array<NotificationResponse>;
|
notifications: Array<NotificationResponse>;
|
||||||
total: number;
|
total: number;
|
||||||
@ -3759,6 +3851,18 @@ export type NotificationPreferencesParams = {
|
|||||||
marketing_enabled?: boolean | null;
|
marketing_enabled?: boolean | null;
|
||||||
security_enabled?: boolean | null;
|
security_enabled?: boolean | null;
|
||||||
product_enabled?: boolean | null;
|
product_enabled?: boolean | null;
|
||||||
|
/**
|
||||||
|
* Web Push subscription endpoint (set to null to unsubscribe)
|
||||||
|
*/
|
||||||
|
push_subscription_endpoint?: string | null;
|
||||||
|
/**
|
||||||
|
* Web Push subscription p256dh key
|
||||||
|
*/
|
||||||
|
push_subscription_keys_p256dh?: string | null;
|
||||||
|
/**
|
||||||
|
* Web Push subscription auth key
|
||||||
|
*/
|
||||||
|
push_subscription_keys_auth?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type NotificationPreferencesResponse = {
|
export type NotificationPreferencesResponse = {
|
||||||
@ -3797,7 +3901,7 @@ export type NotificationResponse = {
|
|||||||
expires_at?: string | null;
|
expires_at?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type NotificationType = 'mention' | 'invitation' | 'role_change' | 'room_created' | 'room_deleted' | 'system_announcement';
|
export type NotificationType = 'mention' | 'invitation' | 'role_change' | 'room_created' | 'room_deleted' | 'system_announcement' | 'project_invitation' | 'workspace_invitation';
|
||||||
|
|
||||||
export type Pager = {
|
export type Pager = {
|
||||||
page: number;
|
page: number;
|
||||||
@ -3816,16 +3920,6 @@ export type PendingInvitationInfo = {
|
|||||||
expires_at?: string | null;
|
expires_at?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MyWorkspaceInvitation = {
|
|
||||||
workspace_id: string;
|
|
||||||
workspace_slug: string;
|
|
||||||
workspace_name: string;
|
|
||||||
role: string;
|
|
||||||
invited_by_username?: string | null;
|
|
||||||
invited_at: string;
|
|
||||||
expires_at?: string | null;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type PrCommitResponse = {
|
export type PrCommitResponse = {
|
||||||
oid: string;
|
oid: string;
|
||||||
short_oid: string;
|
short_oid: string;
|
||||||
@ -3936,6 +4030,15 @@ export type ProjectBillingHistoryResponse = {
|
|||||||
list: Array<ProjectBillingHistoryItem>;
|
list: Array<ProjectBillingHistoryItem>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ProjectFollowItem = {
|
||||||
|
uid: string;
|
||||||
|
name: string;
|
||||||
|
display_name: string;
|
||||||
|
description?: string | null;
|
||||||
|
is_public: boolean;
|
||||||
|
followed_at: string;
|
||||||
|
};
|
||||||
|
|
||||||
export type ProjectInfoKeyValue = {
|
export type ProjectInfoKeyValue = {
|
||||||
key: string;
|
key: string;
|
||||||
value: string;
|
value: string;
|
||||||
@ -4201,13 +4304,18 @@ export type RepoSearchItem = {
|
|||||||
created_at: string;
|
created_at: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ResetPasswordParams = {
|
export type RepoStarItem = {
|
||||||
email: string;
|
uid: string;
|
||||||
|
repo_name: string;
|
||||||
|
owner: string;
|
||||||
|
description?: string | null;
|
||||||
|
is_private: boolean;
|
||||||
|
default_branch: string;
|
||||||
|
starred_at: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ConfirmResetPasswordParams = {
|
export type ResetPasswordParams = {
|
||||||
token: string;
|
email: string;
|
||||||
new_password: string;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ReviewCommentCreateRequest = {
|
export type ReviewCommentCreateRequest = {
|
||||||
@ -4348,7 +4456,7 @@ export type ReviewerInfo = {
|
|||||||
export type RoomAiResponse = {
|
export type RoomAiResponse = {
|
||||||
room: string;
|
room: string;
|
||||||
model: string;
|
model: string;
|
||||||
model_name?: string;
|
model_name?: string | null;
|
||||||
version?: string | null;
|
version?: string | null;
|
||||||
call_count: number;
|
call_count: number;
|
||||||
last_call_at?: string | null;
|
last_call_at?: string | null;
|
||||||
@ -4436,7 +4544,7 @@ export type RoomMessageCreateRequest = {
|
|||||||
content_type?: string | null;
|
content_type?: string | null;
|
||||||
thread_id?: string | null;
|
thread_id?: string | null;
|
||||||
in_reply_to?: string | null;
|
in_reply_to?: string | null;
|
||||||
attachment_ids?: string[];
|
attachment_ids?: Array<string>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type RoomMessageListResponse = {
|
export type RoomMessageListResponse = {
|
||||||
@ -4459,7 +4567,11 @@ export type RoomMessageResponse = {
|
|||||||
send_at: string;
|
send_at: string;
|
||||||
revoked?: string | null;
|
revoked?: string | null;
|
||||||
revoked_by?: string | null;
|
revoked_by?: string | null;
|
||||||
attachment_ids?: string[];
|
/**
|
||||||
|
* Highlighted content with <mark> tags around matched terms (for search results)
|
||||||
|
*/
|
||||||
|
highlighted_content?: string | null;
|
||||||
|
attachment_ids?: Array<string>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type RoomMessageUpdateRequest = {
|
export type RoomMessageUpdateRequest = {
|
||||||
@ -4700,6 +4812,15 @@ export type SubscriptionInfo = {
|
|||||||
is_active: boolean;
|
is_active: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type SyncModelsResponse = {
|
||||||
|
models_created: number;
|
||||||
|
models_updated: number;
|
||||||
|
versions_created: number;
|
||||||
|
pricing_created: number;
|
||||||
|
capabilities_created: number;
|
||||||
|
profiles_created: number;
|
||||||
|
};
|
||||||
|
|
||||||
export type TagCountResponse = {
|
export type TagCountResponse = {
|
||||||
count: number;
|
count: number;
|
||||||
};
|
};
|
||||||
@ -4945,6 +5066,32 @@ export type UpdateWebhookParams = {
|
|||||||
active?: boolean | null;
|
active?: boolean | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type UserActivityItem = {
|
||||||
|
id: number;
|
||||||
|
activity_type: string;
|
||||||
|
action: string;
|
||||||
|
title: string;
|
||||||
|
resource_type?: string | null;
|
||||||
|
resource_name?: string | null;
|
||||||
|
metadata?: unknown;
|
||||||
|
created_at: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type UserActivityResponse = {
|
||||||
|
items: Array<UserActivityItem>;
|
||||||
|
total: number;
|
||||||
|
page: number;
|
||||||
|
per_page: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type UserCard = {
|
||||||
|
user_uid: string;
|
||||||
|
username: string;
|
||||||
|
display_name?: string | null;
|
||||||
|
avatar_url?: string | null;
|
||||||
|
is_following_me: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
export type UserInfo = {
|
export type UserInfo = {
|
||||||
uid: string;
|
uid: string;
|
||||||
username: string;
|
username: string;
|
||||||
@ -5023,8 +5170,10 @@ export type UserSearchItem = {
|
|||||||
created_at: string;
|
created_at: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Verify2FaParams = {
|
export type UserStarsResponse = {
|
||||||
code: string;
|
repos: Array<RepoStarItem>;
|
||||||
|
projects: Array<ProjectFollowItem>;
|
||||||
|
total: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type WatchCountResponse = {
|
export type WatchCountResponse = {
|
||||||
@ -5067,6 +5216,13 @@ export type WebhookResponse = {
|
|||||||
touch_count: number;
|
touch_count: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request body for accepting workspace invitation by slug.
|
||||||
|
*/
|
||||||
|
export type WorkspaceAcceptBySlugParams = {
|
||||||
|
slug: string;
|
||||||
|
};
|
||||||
|
|
||||||
export type WorkspaceActivityItem = {
|
export type WorkspaceActivityItem = {
|
||||||
id: number;
|
id: number;
|
||||||
project_name: string;
|
project_name: string;
|
||||||
@ -5148,10 +5304,6 @@ export type WorkspaceInviteParams = {
|
|||||||
role?: string | null;
|
role?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type WorkspaceAcceptBySlugParams = {
|
|
||||||
slug: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type WorkspaceListItem = {
|
export type WorkspaceListItem = {
|
||||||
id: string;
|
id: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
@ -5225,6 +5377,92 @@ export type WorkspaceUpdateParams = {
|
|||||||
billing_email?: string | null;
|
billing_email?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type AdminSyncModelsData = {
|
||||||
|
body?: never;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/admin/ai/sync';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AdminSyncModelsErrors = {
|
||||||
|
/**
|
||||||
|
* Invalid or missing admin API key
|
||||||
|
*/
|
||||||
|
401: unknown;
|
||||||
|
/**
|
||||||
|
* Sync failed
|
||||||
|
*/
|
||||||
|
500: unknown;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AdminSyncModelsResponses = {
|
||||||
|
/**
|
||||||
|
* Sync result
|
||||||
|
*/
|
||||||
|
200: ApiResponseSyncModelsResponse;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AdminSyncModelsResponse = AdminSyncModelsResponses[keyof AdminSyncModelsResponses];
|
||||||
|
|
||||||
|
export type AdminCheckAlertsData = {
|
||||||
|
body?: never;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/admin/alerts/check';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AdminCheckAlertsErrors = {
|
||||||
|
/**
|
||||||
|
* Invalid or missing admin API key
|
||||||
|
*/
|
||||||
|
401: unknown;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AdminCheckAlertsResponses = {
|
||||||
|
/**
|
||||||
|
* Alert check result
|
||||||
|
*/
|
||||||
|
200: ApiResponseCheckAlertsResponse;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AdminCheckAlertsResponse = AdminCheckAlertsResponses[keyof AdminCheckAlertsResponses];
|
||||||
|
|
||||||
|
export type AdminWorkspaceAddCreditData = {
|
||||||
|
body: WorkspaceBillingAddCreditParams;
|
||||||
|
path: {
|
||||||
|
/**
|
||||||
|
* Workspace slug
|
||||||
|
*/
|
||||||
|
slug: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/admin/workspaces/{slug}/add-credit';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AdminWorkspaceAddCreditErrors = {
|
||||||
|
/**
|
||||||
|
* Invalid amount
|
||||||
|
*/
|
||||||
|
400: unknown;
|
||||||
|
/**
|
||||||
|
* Invalid or missing admin API key
|
||||||
|
*/
|
||||||
|
401: unknown;
|
||||||
|
/**
|
||||||
|
* Workspace not found
|
||||||
|
*/
|
||||||
|
404: unknown;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AdminWorkspaceAddCreditResponses = {
|
||||||
|
/**
|
||||||
|
* Credit added
|
||||||
|
*/
|
||||||
|
200: ApiResponseWorkspaceBillingCurrentResponse;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AdminWorkspaceAddCreditResponse = AdminWorkspaceAddCreditResponses[keyof AdminWorkspaceAddCreditResponses];
|
||||||
|
|
||||||
export type ModelCapabilityCreateData = {
|
export type ModelCapabilityCreateData = {
|
||||||
body: CreateModelCapabilityRequest;
|
body: CreateModelCapabilityRequest;
|
||||||
path?: never;
|
path?: never;
|
||||||
@ -5917,146 +6155,6 @@ export type ModelPricingListResponses = {
|
|||||||
|
|
||||||
export type ModelPricingListResponse = ModelPricingListResponses[keyof ModelPricingListResponses];
|
export type ModelPricingListResponse = ModelPricingListResponses[keyof ModelPricingListResponses];
|
||||||
|
|
||||||
export type Api2FaDisableData = {
|
|
||||||
body: Disable2FaParams;
|
|
||||||
path?: never;
|
|
||||||
query?: never;
|
|
||||||
url: '/api/auth/2fa/disable';
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaDisableErrors = {
|
|
||||||
/**
|
|
||||||
* 2FA not enabled or invalid code/password
|
|
||||||
*/
|
|
||||||
400: unknown;
|
|
||||||
/**
|
|
||||||
* Unauthorized
|
|
||||||
*/
|
|
||||||
401: unknown;
|
|
||||||
/**
|
|
||||||
* Not found
|
|
||||||
*/
|
|
||||||
404: ApiResponseApiError;
|
|
||||||
/**
|
|
||||||
* Internal server error
|
|
||||||
*/
|
|
||||||
500: unknown;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaDisableError = Api2FaDisableErrors[keyof Api2FaDisableErrors];
|
|
||||||
|
|
||||||
export type Api2FaDisableResponses = {
|
|
||||||
/**
|
|
||||||
* 2FA disabled
|
|
||||||
*/
|
|
||||||
200: unknown;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaEnableData = {
|
|
||||||
body?: never;
|
|
||||||
path?: never;
|
|
||||||
query?: never;
|
|
||||||
url: '/api/auth/2fa/enable';
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaEnableErrors = {
|
|
||||||
/**
|
|
||||||
* Unauthorized
|
|
||||||
*/
|
|
||||||
401: unknown;
|
|
||||||
/**
|
|
||||||
* Not found
|
|
||||||
*/
|
|
||||||
404: ApiResponseApiError;
|
|
||||||
/**
|
|
||||||
* 2FA already enabled
|
|
||||||
*/
|
|
||||||
409: unknown;
|
|
||||||
/**
|
|
||||||
* Internal server error
|
|
||||||
*/
|
|
||||||
500: unknown;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaEnableError = Api2FaEnableErrors[keyof Api2FaEnableErrors];
|
|
||||||
|
|
||||||
export type Api2FaEnableResponses = {
|
|
||||||
/**
|
|
||||||
* 2FA setup initiated
|
|
||||||
*/
|
|
||||||
200: Enable2FaResponse;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaEnableResponse = Api2FaEnableResponses[keyof Api2FaEnableResponses];
|
|
||||||
|
|
||||||
export type Api2FaStatusData = {
|
|
||||||
body?: never;
|
|
||||||
path?: never;
|
|
||||||
query?: never;
|
|
||||||
url: '/api/auth/2fa/status';
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaStatusErrors = {
|
|
||||||
/**
|
|
||||||
* Unauthorized
|
|
||||||
*/
|
|
||||||
401: unknown;
|
|
||||||
/**
|
|
||||||
* Not found
|
|
||||||
*/
|
|
||||||
404: ApiResponseApiError;
|
|
||||||
/**
|
|
||||||
* Internal server error
|
|
||||||
*/
|
|
||||||
500: unknown;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaStatusError = Api2FaStatusErrors[keyof Api2FaStatusErrors];
|
|
||||||
|
|
||||||
export type Api2FaStatusResponses = {
|
|
||||||
/**
|
|
||||||
* 2FA status
|
|
||||||
*/
|
|
||||||
200: Get2FaStatusResponse;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaStatusResponse = Api2FaStatusResponses[keyof Api2FaStatusResponses];
|
|
||||||
|
|
||||||
export type Api2FaVerifyData = {
|
|
||||||
body: Verify2FaParams;
|
|
||||||
path?: never;
|
|
||||||
query?: never;
|
|
||||||
url: '/api/auth/2fa/verify';
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaVerifyErrors = {
|
|
||||||
/**
|
|
||||||
* 2FA not set up
|
|
||||||
*/
|
|
||||||
400: unknown;
|
|
||||||
/**
|
|
||||||
* Unauthorized or invalid code
|
|
||||||
*/
|
|
||||||
401: unknown;
|
|
||||||
/**
|
|
||||||
* Not found
|
|
||||||
*/
|
|
||||||
404: ApiResponseApiError;
|
|
||||||
/**
|
|
||||||
* Internal server error
|
|
||||||
*/
|
|
||||||
500: unknown;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Api2FaVerifyError = Api2FaVerifyErrors[keyof Api2FaVerifyErrors];
|
|
||||||
|
|
||||||
export type Api2FaVerifyResponses = {
|
|
||||||
/**
|
|
||||||
* 2FA verified and enabled
|
|
||||||
*/
|
|
||||||
200: unknown;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ApiAuthCaptchaData = {
|
export type ApiAuthCaptchaData = {
|
||||||
body: CaptchaQuery;
|
body: CaptchaQuery;
|
||||||
path?: never;
|
path?: never;
|
||||||
@ -6299,39 +6397,6 @@ export type ApiUserChangePasswordResponses = {
|
|||||||
|
|
||||||
export type ApiUserChangePasswordResponse = ApiUserChangePasswordResponses[keyof ApiUserChangePasswordResponses];
|
export type ApiUserChangePasswordResponse = ApiUserChangePasswordResponses[keyof ApiUserChangePasswordResponses];
|
||||||
|
|
||||||
export type ApiUserRequestPasswordResetData = {
|
|
||||||
body: ResetPasswordParams;
|
|
||||||
path?: never;
|
|
||||||
query?: never;
|
|
||||||
url: '/api/auth/password/reset';
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ApiUserRequestPasswordResetErrors = {
|
|
||||||
/**
|
|
||||||
* Unauthorized
|
|
||||||
*/
|
|
||||||
401: ApiResponseApiError;
|
|
||||||
/**
|
|
||||||
* User not found
|
|
||||||
*/
|
|
||||||
404: ApiResponseApiError;
|
|
||||||
/**
|
|
||||||
* Internal server error
|
|
||||||
*/
|
|
||||||
500: ApiResponseApiError;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ApiUserRequestPasswordResetError = ApiUserRequestPasswordResetErrors[keyof ApiUserRequestPasswordResetErrors];
|
|
||||||
|
|
||||||
export type ApiUserRequestPasswordResetResponses = {
|
|
||||||
/**
|
|
||||||
* Password reset email sent
|
|
||||||
*/
|
|
||||||
200: ApiResponseString;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ApiUserRequestPasswordResetResponse = ApiUserRequestPasswordResetResponses[keyof ApiUserRequestPasswordResetResponses];
|
|
||||||
|
|
||||||
export type ApiUserConfirmPasswordResetData = {
|
export type ApiUserConfirmPasswordResetData = {
|
||||||
body: ConfirmResetPasswordParams;
|
body: ConfirmResetPasswordParams;
|
||||||
path?: never;
|
path?: never;
|
||||||
@ -6365,6 +6430,39 @@ export type ApiUserConfirmPasswordResetResponses = {
|
|||||||
|
|
||||||
export type ApiUserConfirmPasswordResetResponse = ApiUserConfirmPasswordResetResponses[keyof ApiUserConfirmPasswordResetResponses];
|
export type ApiUserConfirmPasswordResetResponse = ApiUserConfirmPasswordResetResponses[keyof ApiUserConfirmPasswordResetResponses];
|
||||||
|
|
||||||
|
export type ApiUserRequestPasswordResetData = {
|
||||||
|
body: ResetPasswordParams;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/auth/password/reset';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ApiUserRequestPasswordResetErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: ApiResponseApiError;
|
||||||
|
/**
|
||||||
|
* User not found
|
||||||
|
*/
|
||||||
|
404: ApiResponseApiError;
|
||||||
|
/**
|
||||||
|
* Internal server error
|
||||||
|
*/
|
||||||
|
500: ApiResponseApiError;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ApiUserRequestPasswordResetError = ApiUserRequestPasswordResetErrors[keyof ApiUserRequestPasswordResetErrors];
|
||||||
|
|
||||||
|
export type ApiUserRequestPasswordResetResponses = {
|
||||||
|
/**
|
||||||
|
* Password reset email sent
|
||||||
|
*/
|
||||||
|
200: ApiResponseString;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ApiUserRequestPasswordResetResponse = ApiUserRequestPasswordResetResponses[keyof ApiUserRequestPasswordResetResponses];
|
||||||
|
|
||||||
export type ApiAuthRegisterData = {
|
export type ApiAuthRegisterData = {
|
||||||
body: RegisterParams;
|
body: RegisterParams;
|
||||||
path?: never;
|
path?: never;
|
||||||
@ -14803,7 +14901,7 @@ export type GitReadmeData = {
|
|||||||
};
|
};
|
||||||
query?: {
|
query?: {
|
||||||
/**
|
/**
|
||||||
* Git reference (branch, tag, commit). Defaults to HEAD.
|
* Git reference (branch, tag, commit). Defaults to the repository's default branch.
|
||||||
*/
|
*/
|
||||||
ref?: string;
|
ref?: string;
|
||||||
};
|
};
|
||||||
@ -17961,6 +18059,38 @@ export type GetProfileByUsernameResponses = {
|
|||||||
|
|
||||||
export type GetProfileByUsernameResponse = GetProfileByUsernameResponses[keyof GetProfileByUsernameResponses];
|
export type GetProfileByUsernameResponse = GetProfileByUsernameResponses[keyof GetProfileByUsernameResponses];
|
||||||
|
|
||||||
|
export type GetUserActivityData = {
|
||||||
|
body?: never;
|
||||||
|
path: {
|
||||||
|
username: string;
|
||||||
|
};
|
||||||
|
query?: {
|
||||||
|
page?: number;
|
||||||
|
per_page?: number;
|
||||||
|
};
|
||||||
|
url: '/api/users/{username}/activity';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetUserActivityErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown;
|
||||||
|
/**
|
||||||
|
* Not found
|
||||||
|
*/
|
||||||
|
404: unknown;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetUserActivityResponses = {
|
||||||
|
/**
|
||||||
|
* Get user activity
|
||||||
|
*/
|
||||||
|
200: ApiResponseUserActivityResponse;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetUserActivityResponse = GetUserActivityResponses[keyof GetUserActivityResponses];
|
||||||
|
|
||||||
export type UnsubscribeTargetData = {
|
export type UnsubscribeTargetData = {
|
||||||
body?: never;
|
body?: never;
|
||||||
path: {
|
path: {
|
||||||
@ -18094,6 +18224,35 @@ export type GetSubscriberCountResponses = {
|
|||||||
200: unknown;
|
200: unknown;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetFollowingListData = {
|
||||||
|
body?: never;
|
||||||
|
path: {
|
||||||
|
username: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/users/{username}/following';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetFollowingListErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown;
|
||||||
|
/**
|
||||||
|
* Not found
|
||||||
|
*/
|
||||||
|
404: unknown;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetFollowingListResponses = {
|
||||||
|
/**
|
||||||
|
* List following users
|
||||||
|
*/
|
||||||
|
200: ApiResponseVecUserCard;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetFollowingListResponse = GetFollowingListResponses[keyof GetFollowingListResponses];
|
||||||
|
|
||||||
export type GetSubscriptionCountData = {
|
export type GetSubscriptionCountData = {
|
||||||
body?: never;
|
body?: never;
|
||||||
path: {
|
path: {
|
||||||
@ -18237,6 +18396,35 @@ export type GetUserReposResponses = {
|
|||||||
|
|
||||||
export type GetUserReposResponse = GetUserReposResponses[keyof GetUserReposResponses];
|
export type GetUserReposResponse = GetUserReposResponses[keyof GetUserReposResponses];
|
||||||
|
|
||||||
|
export type GetUserStarsData = {
|
||||||
|
body?: never;
|
||||||
|
path: {
|
||||||
|
username: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/users/{username}/stars';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetUserStarsErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown;
|
||||||
|
/**
|
||||||
|
* Not found
|
||||||
|
*/
|
||||||
|
404: unknown;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetUserStarsResponses = {
|
||||||
|
/**
|
||||||
|
* Get user stars
|
||||||
|
*/
|
||||||
|
200: ApiResponseUserStarsResponse;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetUserStarsResponse = GetUserStarsResponses[keyof GetUserStarsResponses];
|
||||||
|
|
||||||
export type WorkspaceCreateData = {
|
export type WorkspaceCreateData = {
|
||||||
body: WorkspaceInitParams;
|
body: WorkspaceInitParams;
|
||||||
path?: never;
|
path?: never;
|
||||||
@ -18295,35 +18483,6 @@ export type WorkspaceAcceptInvitationResponses = {
|
|||||||
|
|
||||||
export type WorkspaceAcceptInvitationResponse = WorkspaceAcceptInvitationResponses[keyof WorkspaceAcceptInvitationResponses];
|
export type WorkspaceAcceptInvitationResponse = WorkspaceAcceptInvitationResponses[keyof WorkspaceAcceptInvitationResponses];
|
||||||
|
|
||||||
export type WorkspaceMyInvitationsData = {
|
|
||||||
body?: never;
|
|
||||||
path?: never;
|
|
||||||
query?: never;
|
|
||||||
url: '/api/workspaces/me/invitations';
|
|
||||||
};
|
|
||||||
|
|
||||||
export type WorkspaceMyInvitationsErrors = {
|
|
||||||
/**
|
|
||||||
* Unauthorized
|
|
||||||
*/
|
|
||||||
401: unknown;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ApiResponseVecMyWorkspaceInvitation = {
|
|
||||||
code: number;
|
|
||||||
message: string;
|
|
||||||
data?: Array<MyWorkspaceInvitation>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type WorkspaceMyInvitationsResponses = {
|
|
||||||
/**
|
|
||||||
* List my workspace invitations
|
|
||||||
*/
|
|
||||||
200: ApiResponseVecMyWorkspaceInvitation;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type WorkspaceMyInvitationsResponse = WorkspaceMyInvitationsResponses[keyof WorkspaceMyInvitationsResponses];
|
|
||||||
|
|
||||||
export type WorkspaceAcceptInvitationBySlugData = {
|
export type WorkspaceAcceptInvitationBySlugData = {
|
||||||
body: WorkspaceAcceptBySlugParams;
|
body: WorkspaceAcceptBySlugParams;
|
||||||
path?: never;
|
path?: never;
|
||||||
@ -18332,6 +18491,10 @@ export type WorkspaceAcceptInvitationBySlugData = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type WorkspaceAcceptInvitationBySlugErrors = {
|
export type WorkspaceAcceptInvitationBySlugErrors = {
|
||||||
|
/**
|
||||||
|
* Invalid or expired token
|
||||||
|
*/
|
||||||
|
400: unknown;
|
||||||
/**
|
/**
|
||||||
* Unauthorized
|
* Unauthorized
|
||||||
*/
|
*/
|
||||||
@ -18378,6 +18541,29 @@ export type WorkspaceListResponses = {
|
|||||||
|
|
||||||
export type WorkspaceListResponse2 = WorkspaceListResponses[keyof WorkspaceListResponses];
|
export type WorkspaceListResponse2 = WorkspaceListResponses[keyof WorkspaceListResponses];
|
||||||
|
|
||||||
|
export type WorkspaceMyInvitationsData = {
|
||||||
|
body?: never;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/workspaces/me/invitations';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type WorkspaceMyInvitationsErrors = {
|
||||||
|
/**
|
||||||
|
* Unauthorized
|
||||||
|
*/
|
||||||
|
401: unknown;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type WorkspaceMyInvitationsResponses = {
|
||||||
|
/**
|
||||||
|
* List my workspace invitations
|
||||||
|
*/
|
||||||
|
200: ApiResponseVecMyWorkspaceInvitation;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type WorkspaceMyInvitationsResponse = WorkspaceMyInvitationsResponses[keyof WorkspaceMyInvitationsResponses];
|
||||||
|
|
||||||
export type WorkspaceDeleteData = {
|
export type WorkspaceDeleteData = {
|
||||||
body?: never;
|
body?: never;
|
||||||
path: {
|
path: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user