* Add workspace webhooks and drop the unused automation webhook node. Give workspaces HMAC-signed outgoing webhooks for the post lifecycle, with retry, auto-pause, replay, and live logs, and keep HTTP Request as the only outbound automation node. * Tighten webhook controller and validation after review. Drop the redundant workspace redirects, prune logs without counting, and validate events/status with Rule::enum. * Move leftover webhook UI copy behind i18n. HTTP status phrases, delete-cancel, and validation attribute names were still English literals. * Build the webhook-paused email through Maizzle. The hand-written Blade skipped the shared layout, header, and footer used by the other mail templates. * Cover real webhook dispatch paths and restyle the webhook pages. * Ask for the shared delete keyword when confirming a webhook delete. The endpoint URL is a poor confirm string; posts and assets already use the common "delete" keyword. * Fix webhook review blockers so CI can go green. Drop leftover French automation keys, stop mutating Inertia log props, and show delivered_at instead of created_at. * Close the remaining webhook review gaps. Keep Echo log updates across infinite scroll, align the channel with the policy, persist log ids across retries, and fail unknown automation nodes without throwing. * Stop webhook delivery after disable and record last sent only on success. Queued jobs now skip paused or disabled endpoints unless the user replays, and changing the URL re-pings it first. * Limit webhooks to owners and admins, and encrypt signing secrets. Members can no longer create or inspect outgoing integrations, and secrets stay encrypted at rest. * Cover webhook secret hiding, skip-ping, and failed-delivery edges. * Send the full post on webhooks after labels and platforms are saved. * Fix webhook payloads for integer media ids and type webhook status. * Split the webhook show page into focused components. * Reset live webhook logs when switching endpoints. * Keep the newest webhook logs at the top after live merges. * Cast media item ids to string without the extra scalar check. * Add post.unscheduled webhooks and put the log id on the envelope. Unscheduling is now a first-class event, and receivers can send the delivery id back so we can find the matching log. * Translate webhook event names in the UI. * Make the webhook show page full-width and stop stacking flash toasts. * Translate remaining webhook UI copy in every locale. * Sign webhook pings and drop author email from the payload. * Send signed webhook tests after create instead of pinging on save. Create and update only block private URLs so the receiver can copy the secret first. The show page then sends a signed webhook.test with an object data envelope. * Polish webhook test UX and always mint the dispatch log id in the job. Keep send-test in the actions menu (its own group) and drop the leftover constructor param so retries reuse the serialized id instead of a caller-supplied one.
139 lines
5.7 KiB
PHP
139 lines
5.7 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'title' => 'Webhooks',
|
|
'description' => 'Otrzymuj powiadomienia w czasie rzeczywistym, gdy posty są tworzone, planowane, odwoływane z planu, publikowane lub kończą się niepowodzeniem.',
|
|
'new' => 'Utwórz webhook',
|
|
'empty_title' => 'Nie ma jeszcze webhooków',
|
|
'empty_description' => 'Utwórz webhook, aby otrzymywać powiadomienia o zdarzeniach w czasie rzeczywistym.',
|
|
'table' => [
|
|
'endpoint' => 'Endpoint',
|
|
'events' => 'Nasłuchuje',
|
|
'status' => 'Status',
|
|
'last_sent' => 'Ostatnio wysłano',
|
|
],
|
|
'events_count' => '{1} :count zdarzenie|[2,*] :count zdarzeń',
|
|
'never' => 'Nigdy',
|
|
'status' => [
|
|
'enabled' => 'Aktywny',
|
|
'disabled' => 'Wyłączony',
|
|
'paused' => 'Wstrzymany',
|
|
],
|
|
'actions' => [
|
|
'view' => 'Zobacz szczegóły',
|
|
'copy_id' => 'Kopiuj ID webhooka',
|
|
'delete' => 'Usuń',
|
|
'edit' => 'Edytuj endpoint',
|
|
'enable' => 'Włącz endpoint',
|
|
'disable' => 'Wyłącz endpoint',
|
|
'rotate' => 'Obróć secret podpisu',
|
|
'send_test' => 'Wyślij zdarzenie testowe',
|
|
'replay' => 'Wyślij ponownie',
|
|
'reveal_secret' => 'Pokaż secret',
|
|
'hide_secret' => 'Ukryj secret',
|
|
'copy_secret' => 'Kopiuj secret',
|
|
],
|
|
'create' => [
|
|
'title' => 'Utwórz webhook',
|
|
'description' => 'Skonfiguruj endpoint, aby otrzymywać powiadomienia webhook.',
|
|
'endpoint' => 'URL endpointu',
|
|
'endpoint_placeholder' => 'https://example.com/webhooks',
|
|
'events' => 'Zdarzenia',
|
|
'events_placeholder' => 'Wybierz zdarzenia...',
|
|
'events_selected' => '{1} :count zdarzenie wybrane|[2,*] :count zdarzeń wybranych',
|
|
'search_events' => 'Szukaj zdarzeń...',
|
|
'no_events' => 'Nie znaleziono zdarzeń',
|
|
'submit' => 'Utwórz webhook',
|
|
'cancel' => 'Anuluj',
|
|
],
|
|
'edit' => [
|
|
'title' => 'Edytuj endpoint',
|
|
'description' => 'Zaktualizuj URL endpointu i zdarzenia do nasłuchiwania.',
|
|
'submit' => 'Zapisz zmiany',
|
|
'cancel' => 'Anuluj',
|
|
],
|
|
'delete' => [
|
|
'title' => 'Usuń webhook',
|
|
'description' => 'Czy na pewno chcesz usunąć ten webhook? Nie będziesz już otrzymywać powiadomień o zdarzeniach na tym endpoincie.',
|
|
'confirm' => 'Usuń webhook',
|
|
'cancel' => 'Anuluj',
|
|
],
|
|
'rotate' => [
|
|
'title' => 'Obróć secret podpisu',
|
|
'description' => 'To wygeneruje nowy secret podpisu. Obecny secret przestanie działać od razu. Zaktualizuj swój endpoint, aby używał nowego secretu.',
|
|
'submit' => 'Obróć secret',
|
|
'cancel' => 'Anuluj',
|
|
],
|
|
'show' => [
|
|
'signing_secret' => 'Secret podpisu',
|
|
'last_sent' => 'Ostatnio wysłano :time',
|
|
'listening_for' => 'Nasłuchuje',
|
|
'http_status' => 'Status HTTP',
|
|
'status_code' => ':code - :reason',
|
|
'attempts' => 'Próby',
|
|
'delivered_at' => 'Dostarczono',
|
|
'response_body' => 'Treść odpowiedzi',
|
|
'response' => 'Odpowiedź',
|
|
'no_response_body' => 'Brak treści odpowiedzi',
|
|
'no_response' => 'Brak odpowiedzi',
|
|
'payload' => 'Payload wiadomości',
|
|
'empty_title' => 'Nie ma jeszcze zdarzeń',
|
|
'empty_description' => 'Gdy posty zostaną utworzone, zaplanowane, odwołane z planu lub opublikowane, zdarzenia webhooka pojawią się tutaj.',
|
|
],
|
|
'events' => [
|
|
'group_posts' => 'Posty',
|
|
'post_created' => 'Post utworzony',
|
|
'post_scheduled' => 'Post zaplanowany',
|
|
'post_unscheduled' => 'Planowanie anulowane',
|
|
'post_published' => 'Post opublikowany',
|
|
'post_partially_published' => 'Post częściowo opublikowany',
|
|
'post_failed' => 'Post nieudany',
|
|
'post_deleted' => 'Post usunięty',
|
|
],
|
|
'http_reasons' => [
|
|
'unknown' => 'Nieznany',
|
|
'200' => 'OK',
|
|
'201' => 'Utworzono',
|
|
'202' => 'Zaakceptowano',
|
|
'204' => 'Brak treści',
|
|
'400' => 'Nieprawidłowe żądanie',
|
|
'401' => 'Nieautoryzowany',
|
|
'403' => 'Zabronione',
|
|
'404' => 'Nie znaleziono',
|
|
'408' => 'Przekroczono czas',
|
|
'422' => 'Nieprzetwarzalna encja',
|
|
'429' => 'Zbyt wiele żądań',
|
|
'500' => 'Wewnętrzny błąd serwera',
|
|
'502' => 'Nieprawidłowa brama',
|
|
'503' => 'Usługa niedostępna',
|
|
'504' => 'Przekroczono czas bramy',
|
|
],
|
|
'copied' => [
|
|
'id' => 'ID webhooka skopiowane do schowka',
|
|
'secret' => 'Secret podpisu skopiowany do schowka',
|
|
'response' => 'Treść odpowiedzi skopiowana',
|
|
'payload' => 'Payload skopiowany',
|
|
],
|
|
'errors' => [
|
|
'endpoint_not_allowed' => 'Ten endpoint nie jest dozwolony.',
|
|
'endpoint_unreachable' => 'Endpoint jest nieosiągalny.',
|
|
'endpoint_http_status' => 'Endpoint zwrócił HTTP :status.',
|
|
],
|
|
'flash' => [
|
|
'created' => 'Webhook utworzony.',
|
|
'updated' => 'Webhook zaktualizowany.',
|
|
'deleted' => 'Webhook usunięty.',
|
|
'secret_rotated' => 'Secret podpisu obrócony.',
|
|
'replayed' => 'Zdarzenie webhooka wysłane ponownie.',
|
|
'tested' => 'Wysłano zdarzenie testowe.',
|
|
],
|
|
'mail' => [
|
|
'paused_subject' => 'Webhook wstrzymany: :endpoint',
|
|
'paused_title' => 'Webhook wstrzymany po powtarzających się błędach',
|
|
'paused_preview' => 'Wstrzymaliśmy webhook po 5 kolejnych błędach dostarczenia.',
|
|
'paused_body' => 'Wstrzymaliśmy webhook pod adresem :endpoint po 5 kolejnych błędach dostarczenia. Sprawdź endpoint i włącz go ponownie na stronie szczegółów webhooka.',
|
|
'paused_cta' => 'Zobacz webhook',
|
|
],
|
|
];
|