trypost/lang/en/webhooks.php
Paulo Castellano 58d8e066b5
Add workspace webhooks and drop the unused automation webhook node (#326)
* 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.
2026-09-04 09:43:29 -03:00

139 lines
5.3 KiB
PHP

<?php
declare(strict_types=1);
return [
'title' => 'Webhooks',
'description' => 'Receive real-time notifications when posts are created, scheduled, unscheduled, published, or fail.',
'new' => 'Create webhook',
'empty_title' => 'No webhooks yet',
'empty_description' => 'Create a webhook to receive real-time event notifications.',
'table' => [
'endpoint' => 'Endpoint',
'events' => 'Listening for',
'status' => 'Status',
'last_sent' => 'Last sent',
],
'events_count' => '{1} :count event|[2,*] :count events',
'never' => 'Never',
'status' => [
'enabled' => 'Enabled',
'disabled' => 'Disabled',
'paused' => 'Paused',
],
'actions' => [
'view' => 'View details',
'copy_id' => 'Copy webhook ID',
'delete' => 'Delete',
'edit' => 'Edit endpoint',
'enable' => 'Enable endpoint',
'disable' => 'Disable endpoint',
'rotate' => 'Rotate signing secret',
'send_test' => 'Send test event',
'replay' => 'Replay',
'reveal_secret' => 'Reveal secret',
'hide_secret' => 'Hide secret',
'copy_secret' => 'Copy secret',
],
'create' => [
'title' => 'Create webhook',
'description' => 'Configure an endpoint to receive webhook notifications.',
'endpoint' => 'Endpoint URL',
'endpoint_placeholder' => 'https://example.com/webhooks',
'events' => 'Events',
'events_placeholder' => 'Select events...',
'events_selected' => '{1} :count event selected|[2,*] :count events selected',
'search_events' => 'Search events...',
'no_events' => 'No events found',
'submit' => 'Create webhook',
'cancel' => 'Cancel',
],
'edit' => [
'title' => 'Edit endpoint',
'description' => 'Update the webhook endpoint URL and events to listen for.',
'submit' => 'Save changes',
'cancel' => 'Cancel',
],
'delete' => [
'title' => 'Delete webhook',
'description' => 'Are you sure you want to delete this webhook? You will no longer receive event notifications at this endpoint.',
'confirm' => 'Delete webhook',
'cancel' => 'Cancel',
],
'rotate' => [
'title' => 'Rotate signing secret',
'description' => 'This will generate a new signing secret. The current secret will stop working immediately. Make sure to update your endpoint to use the new secret.',
'submit' => 'Rotate secret',
'cancel' => 'Cancel',
],
'show' => [
'signing_secret' => 'Signing secret',
'last_sent' => 'Last sent :time',
'listening_for' => 'Listening for',
'http_status' => 'HTTP status',
'status_code' => ':code - :reason',
'attempts' => 'Attempts',
'delivered_at' => 'Delivered at',
'response_body' => 'Response body',
'response' => 'Response',
'no_response_body' => 'No response body',
'no_response' => 'No response',
'payload' => 'Message payload',
'empty_title' => 'No webhook events yet',
'empty_description' => 'Once posts are created, scheduled, unscheduled, or published, you will see the webhook events here.',
],
'events' => [
'group_posts' => 'Posts',
'post_created' => 'Post created',
'post_scheduled' => 'Post scheduled',
'post_unscheduled' => 'Post unscheduled',
'post_published' => 'Post published',
'post_partially_published' => 'Post partially published',
'post_failed' => 'Post failed',
'post_deleted' => 'Post deleted',
],
'http_reasons' => [
'unknown' => 'Unknown',
'200' => 'OK',
'201' => 'Created',
'202' => 'Accepted',
'204' => 'No Content',
'400' => 'Bad Request',
'401' => 'Unauthorized',
'403' => 'Forbidden',
'404' => 'Not Found',
'408' => 'Request Timeout',
'422' => 'Unprocessable Entity',
'429' => 'Too Many Requests',
'500' => 'Internal Server Error',
'502' => 'Bad Gateway',
'503' => 'Service Unavailable',
'504' => 'Gateway Timeout',
],
'copied' => [
'id' => 'Webhook ID copied to clipboard',
'secret' => 'Signing secret copied to clipboard',
'response' => 'Response body copied',
'payload' => 'Payload copied',
],
'errors' => [
'endpoint_not_allowed' => 'This endpoint is not allowed.',
'endpoint_unreachable' => 'The endpoint is not reachable.',
'endpoint_http_status' => 'The endpoint returned HTTP :status.',
],
'flash' => [
'created' => 'Webhook created.',
'updated' => 'Webhook updated.',
'deleted' => 'Webhook deleted.',
'secret_rotated' => 'Signing secret rotated.',
'replayed' => 'Webhook event replayed.',
'tested' => 'Test event sent.',
],
'mail' => [
'paused_subject' => 'Webhook paused: :endpoint',
'paused_title' => 'Webhook paused after repeated failures',
'paused_preview' => 'We paused a webhook after 5 consecutive delivery failures.',
'paused_body' => 'We paused the webhook at :endpoint after 5 consecutive delivery failures. Review the endpoint and re-enable it from the webhook details page.',
'paused_cta' => 'View webhook',
],
];