Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions apps/docs/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
--color-background-tertiary: oklch(97.95% 0.0054 274.97);
--color-background-border: oklch(91.92% 0.006 274.97);

--color-callout-info-bg: oklch(97% 0.015 270);
--color-callout-info-border: oklch(91% 0.025 270);
--color-callout-info-header-bg: oklch(95% 0.02 270);
--color-callout-info-text: oklch(54.82% 0.2498 270.55);
--color-callout-info-bg: oklch(60.2% 0.193 263 / 10%);
--color-callout-info-border: oklch(60.2% 0.193 263 / 20%);
--color-callout-info-header-bg: oklch(60.2% 0.193 263 / 12%);
--color-callout-info-text: oklch(60.2% 0.193 263);

--color-accent-yellow: oklch(55% 0.14 85);
--color-accent-green: oklch(50% 0.14 143.5);
Expand Down Expand Up @@ -68,10 +68,10 @@ html.dark {
--color-background-tertiary: oklch(27.77% 0.0068 240);
--color-background-border: oklch(34% 0.0077 240);

--color-callout-info-bg: oklch(53.91% 0.19 270 / 12%);
--color-callout-info-border: oklch(53.91% 0.19 270 / 20%);
--color-callout-info-header-bg: oklch(53.91% 0.19 270 / 10%);
--color-callout-info-text: oklch(68.4% 0.16 270);
--color-callout-info-bg: oklch(66% 0.193 263 / 10%);
--color-callout-info-border: oklch(66% 0.193 263 / 20%);
--color-callout-info-header-bg: oklch(66% 0.193 263 / 8%);
--color-callout-info-text: oklch(66% 0.193 263);

--color-accent-yellow: oklch(81.1% 0.154 70.7);
--color-accent-green: oklch(75% 0.12 143.5);
Expand All @@ -89,6 +89,9 @@ html.dark {
--color-callout-danger-border: oklch(75% 0.13 17 / 20%);
--color-callout-danger-header-bg: oklch(75% 0.13 17 / 15%);

--color-method-get: oklch(66% 0.193 263);
--color-method-post: oklch(68% 0.142 143.5);
--color-method-put: oklch(68% 0.116 77);
--color-method-delete: oklch(67.1% 0.145 17);
--color-method-patch: oklch(69.4% 0.164 318);
}
Expand All @@ -107,10 +110,10 @@ html.dark {
--color-background-tertiary: oklch(27.77% 0.0068 240);
--color-background-border: oklch(34% 0.0077 240);

--color-callout-info-bg: oklch(53.91% 0.19 270 / 12%);
--color-callout-info-border: oklch(53.91% 0.19 270 / 20%);
--color-callout-info-header-bg: oklch(53.91% 0.19 270 / 10%);
--color-callout-info-text: oklch(68.4% 0.16 270);
--color-callout-info-bg: oklch(66% 0.193 263 / 10%);
--color-callout-info-border: oklch(66% 0.193 263 / 20%);
--color-callout-info-header-bg: oklch(66% 0.193 263 / 8%);
--color-callout-info-text: oklch(66% 0.193 263);

--color-accent-yellow: oklch(81.1% 0.154 70.7);
--color-accent-green: oklch(75% 0.12 143.5);
Expand All @@ -128,6 +131,9 @@ html.dark {
--color-callout-danger-border: oklch(75% 0.13 17 / 20%);
--color-callout-danger-header-bg: oklch(75% 0.13 17 / 15%);

--color-method-get: oklch(66% 0.193 263);
--color-method-post: oklch(68% 0.142 143.5);
--color-method-put: oklch(68% 0.116 77);
--color-method-delete: oklch(67.1% 0.145 17);
--color-method-patch: oklch(69.4% 0.164 318);
}
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/components/api/endpoint-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ export function EndpointHeader({
{requirements.auth === false && (
<Link
href="/guides/authorization"
className="inline-flex items-center px-1.5 py-0.5 rounded-full text-[11px] font-semibold bg-[var(--color-callout-info-bg)] ![color:var(--color-callout-info-text)] ![text-decoration:none] hover:opacity-80 transition-opacity"
className="inline-flex items-center px-1.5 py-0.5 rounded-full text-[11px] font-semibold bg-method-get/10 ![color:var(--color-method-get)] ![text-decoration:none] hover:opacity-80 transition-opacity"
>
Без авторизации
</Link>
)}
{requirements.scope && (
<Link
href="/guides/authorization#скоупы"
className="inline-flex items-center px-1.5 py-0.5 rounded-full text-[11px] font-semibold bg-[var(--color-callout-info-bg)] ![color:var(--color-callout-info-text)] ![text-decoration:none] hover:opacity-80 transition-opacity"
className="inline-flex items-center px-1.5 py-0.5 rounded-full text-[11px] font-semibold bg-method-get/10 ![color:var(--color-method-get)] ![text-decoration:none] hover:opacity-80 transition-opacity"
>
{requirements.scope}
</Link>
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/components/layout/mobile-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export function MobileSidebar({ navigation }: MobileSidebarProps) {
className="lg:hidden fixed top-0 left-0 right-0 bg-background-secondary border-b border-background-border z-50 flex items-center px-4 justify-between"
style={{ height: 'var(--mobile-header-height)' }}
>
<div className="flex items-center gap-3">
<div className="flex items-center gap-3 min-w-0 overflow-hidden">
<LogoLink />
</div>

<div className="flex items-center gap-2">
<div className="flex items-center gap-2 shrink-0">
<ThemeToggle />
<SearchButton variant="header" />
<button
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/components/layout/pachka-logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ export function LogoLink() {
return (
<Link
href="/"
className="flex items-center gap-2.5 hover:opacity-80 transition-opacity outline-none"
className="flex items-center gap-2.5 hover:opacity-80 transition-opacity outline-none min-w-0"
>
<PachkaIcon className="text-text-primary" size={28} />
<div className="w-px h-[18px] bg-text-tertiary/40" />
<span className="text-[14px] font-semibold text-text-primary tracking-tight">
<PachkaIcon className="text-text-primary shrink-0" size={28} />
<div className="w-px h-[18px] bg-text-tertiary/40 shrink-0" />
<span className="text-[14px] font-semibold text-text-primary tracking-tight truncate">
Для разработчиков
</span>
</Link>
Expand Down
3 changes: 3 additions & 0 deletions apps/docs/components/mdx/cards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import {
MessageSquareReply,
AtSign,
ArrowDownToLine,
KeyRound,
type LucideIcon,
} from 'lucide-react';

Expand Down Expand Up @@ -75,10 +76,12 @@ const iconMap: Record<string, LucideIcon> = {
MessageSquareReply,
AtSign,
ArrowDownToLine,
KeyRound,
};

/** Icon mapping for guide pages by path */
const GUIDE_ICONS: Record<string, string> = {
'/guides/authorization': 'KeyRound',
'/guides/ai-agents': 'Sparkles',
'/guides/requests-responses': 'ArrowLeftRight',
'/guides/webhook': 'Webhook',
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/content/guides/updates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ useUpdatesComponent: true

## Новые типы аудит-событий

В журнал аудита событий добавлены новые типы событий для отслеживания создания сообщений и работы с реакциями:
В журнал аудита событий добавлены новые типы событий для отслеживания создания сообщений, тредов и работы с реакциями:

- `message_created` — сообщение создано
- `thread_created` — тред создан
- `reaction_created` — реакция добавлена
- `reaction_deleted` — реакция удалена

Expand Down
2 changes: 2 additions & 0 deletions packages/spec/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4747,6 +4747,7 @@ components:
- message_created
- reaction_created
- reaction_deleted
- thread_created
- access_token_created
- access_token_updated
- access_token_destroy
Expand Down Expand Up @@ -4780,6 +4781,7 @@ components:
message_created: Сообщение создано
reaction_created: Реакция добавлена
reaction_deleted: Реакция удалена
thread_created: Тред создан
access_token_created: Создан новый токен доступа
access_token_updated: Токен доступа обновлен
access_token_destroy: Токен доступа удален
Expand Down
4 changes: 4 additions & 0 deletions packages/spec/typespec.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ enum ValidationErrorCode {
message_created: "Сообщение создано",
reaction_created: "Реакция добавлена",
reaction_deleted: "Реакция удалена",
thread_created: "Тред создан",
access_token_created: "Создан новый токен доступа",
access_token_updated: "Токен доступа обновлен",
access_token_destroy: "Токен доступа удален",
Expand Down Expand Up @@ -540,6 +541,9 @@ enum AuditEventKey {
@doc("Реакция удалена")
reaction_deleted: "reaction_deleted",

@doc("Тред создан")
thread_created: "thread_created",

@doc("Создан новый токен доступа")
access_token_created: "access_token_created",

Expand Down
Loading