diff --git a/messages/en.json b/messages/en.json index e5a3eb29a5..7824023a50 100644 --- a/messages/en.json +++ b/messages/en.json @@ -1051,7 +1051,7 @@ "hashed-api-keys-enforcement-enabled": "Secure API keys enforcement has been enabled.", "header-event-desc": "The event type (e.g., app_versions.INSERT)", "header-event-id-desc": "Unique identifier for this event", - "header-signature-desc": "HMAC-SHA256 signature in format v1={timestamp}.{hex_signature}", + "header-signature-desc": "Standard Webhooks HMAC-SHA256 signature in format v1,{base64_signature}", "header-timestamp-desc": "Unix timestamp when the request was sent", "here": "here", "history": "History", @@ -1726,7 +1726,8 @@ "signature-example-title": "Node.js verification example:", "signature-verification-intro": "Each webhook request includes headers for signature verification:", "signing-secret": "Signing Secret", - "signing-secret-hint": "Use this secret to verify webhook signatures. The signature is sent in the X-Capgo-Signature header.", + "signing-secret-hint": "Use this secret to verify webhook signatures for the selected delivery version.", + "signing-secret-unavailable": "Signing secrets are only shown when a webhook is created.", "size": "Size", "size-not-found": "Not found", "something-went-wrong-try-again-later": "Something went wrong! Try again later.", @@ -1922,6 +1923,7 @@ "webhook-created": "Webhook created successfully", "webhook-delete-failed": "Failed to delete webhook", "webhook-deleted": "Webhook deleted successfully", + "webhook-delivery-version": "Delivery version", "webhook-disabled": "Webhook disabled", "webhook-enabled": "Webhook enabled", "webhook-events": "Events", @@ -1938,6 +1940,10 @@ "webhook-url-https-required": "Webhook URL must use HTTPS", "webhook-url-invalid": "Please enter a valid URL", "webhook-url-placeholder": "https://example.com/webhook", + "webhook-version-legacy": "Compatible (legacy)", + "webhook-version-legacy-hint": "Keeps the existing Capgo payload and X-Capgo headers for current integrations.", + "webhook-version-standard": "Standard Webhooks", + "webhook-version-standard-hint": "Adds Standard Webhooks payload type and webhook-* signature headers.", "webhooks": "Webhooks", "webhooks-description": "Configure webhooks to receive HTTP notifications when events occur in your organization.", "welcome-to": "Welcome to", @@ -1964,6 +1970,7 @@ "latest-snapshot": "Latest snapshot", "latest-day-in-selected-period": "Latest day in selected period", "latest-day-in-selected-period-help": "{count} devices were on {version} on {date}.", + "legacy-header-signature-desc": "Capgo HMAC-SHA256 signature in format v1={timestamp}.{hex_signature}", "selected-period": "Selected period", "start-of-selected-period": "Start of selected period", "start-of-selected-period-help": "{count} devices were on {version} on {date}.", diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index 761981b09b..6bc0425563 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -346,7 +346,7 @@ declare global { export type { PasswordPolicyConfig, Organization, OrganizationRole, ExtendedOrganizationMember, ExtendedOrganizationMembers } from './stores/organization' import('./stores/organization') // @ts-ignore - export type { DeliveryPagination, TestResult } from './stores/webhooks' + export type { DeliveryPagination, TestResult, Webhook, WebhookDeliveryVersion } from './stores/webhooks' import('./stores/webhooks') } diff --git a/src/components/WebhookDeliveryLog.vue b/src/components/WebhookDeliveryLog.vue index de649914c2..2479f99c4f 100644 --- a/src/components/WebhookDeliveryLog.vue +++ b/src/components/WebhookDeliveryLog.vue @@ -1,4 +1,5 @@