Skip to content

Commit 6a262f3

Browse files
authored
feat(i18n): update translations (#2702)
Co-authored-by: waleedlatif1 <[email protected]>
1 parent 5145ce1 commit 6a262f3

File tree

8 files changed

+476
-3
lines changed

8 files changed

+476
-3
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Webhook
3+
---
4+
5+
import { Callout } from 'fumadocs-ui/components/callout'
6+
import { Image } from '@/components/ui/image'
7+
8+
Der Webhook-Block sendet HTTP-POST-Anfragen an externe Webhook-Endpunkte mit automatischen Webhook-Headern und optionaler HMAC-Signierung.
9+
10+
<div className="flex justify-center">
11+
<Image
12+
src="/static/blocks/webhook.png"
13+
alt="Webhook-Block"
14+
width={500}
15+
height={400}
16+
className="my-6"
17+
/>
18+
</div>
19+
20+
## Konfiguration
21+
22+
### Webhook-URL
23+
24+
Der Ziel-Endpunkt für Ihre Webhook-Anfrage. Unterstützt sowohl statische URLs als auch dynamische Werte aus anderen Blöcken.
25+
26+
### Payload
27+
28+
JSON-Daten, die im Anfrage-Body gesendet werden. Verwenden Sie den KI-Zauberstab, um Payloads zu generieren oder auf Workflow-Variablen zu verweisen:
29+
30+
```json
31+
{
32+
"event": "workflow.completed",
33+
"data": {
34+
"result": "<agent.content>",
35+
"timestamp": "<function.result>"
36+
}
37+
}
38+
```
39+
40+
### Signierungsgeheimnis
41+
42+
Optionales Geheimnis für die HMAC-SHA256-Payload-Signierung. Wenn angegeben, wird ein `X-Webhook-Signature`Header hinzugefügt:
43+
44+
```
45+
X-Webhook-Signature: t=1704067200000,v1=5d41402abc4b2a76b9719d911017c592...
46+
```
47+
48+
Um Signaturen zu verifizieren, berechnen Sie `HMAC-SHA256(secret, "${timestamp}.${body}")` und vergleichen Sie mit dem `v1`Wert.
49+
50+
### Zusätzliche Header
51+
52+
Benutzerdefinierte Schlüssel-Wert-Header, die in die Anfrage aufgenommen werden. Diese überschreiben alle automatischen Header mit demselben Namen.
53+
54+
## Automatische Header
55+
56+
Jede Anfrage enthält automatisch diese Header:
57+
58+
| Header | Beschreibung |
59+
|--------|-------------|
60+
| `Content-Type` | `application/json` |
61+
| `X-Webhook-Timestamp` | Unix-Zeitstempel in Millisekunden |
62+
| `X-Delivery-ID` | Eindeutige UUID für diese Zustellung |
63+
| `Idempotency-Key` | Identisch mit `X-Delivery-ID` zur Deduplizierung |
64+
65+
## Ausgaben
66+
67+
| Ausgabe | Typ | Beschreibung |
68+
|--------|------|-------------|
69+
| `data` | json | Antwort-Body vom Endpunkt |
70+
| `status` | number | HTTP-Statuscode |
71+
| `headers` | object | Antwort-Header |
72+
73+
## Beispiel-Anwendungsfälle
74+
75+
**Externe Dienste benachrichtigen** - Workflow-Ergebnisse an Slack, Discord oder benutzerdefinierte Endpunkte senden
76+
77+
```
78+
Agent → Function (format) → Webhook (notify)
79+
```
80+
81+
**Externe Workflows auslösen** - Prozesse in anderen Systemen starten, wenn Bedingungen erfüllt sind
82+
83+
```
84+
Condition (check) → Webhook (trigger) → Response
85+
```
86+
87+
<Callout>
88+
Der Webhook-Block verwendet immer POST. Für andere HTTP-Methoden oder mehr Kontrolle verwenden Sie den [API-Block](/blocks/api).
89+
</Callout>
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Webhook
3+
---
4+
5+
import { Callout } from 'fumadocs-ui/components/callout'
6+
import { Image } from '@/components/ui/image'
7+
8+
El bloque Webhook envía solicitudes HTTP POST a endpoints de webhook externos con encabezados de webhook automáticos y firma HMAC opcional.
9+
10+
<div className="flex justify-center">
11+
<Image
12+
src="/static/blocks/webhook.png"
13+
alt="Bloque Webhook"
14+
width={500}
15+
height={400}
16+
className="my-6"
17+
/>
18+
</div>
19+
20+
## Configuración
21+
22+
### URL del webhook
23+
24+
El endpoint de destino para tu solicitud de webhook. Admite tanto URL estáticas como valores dinámicos de otros bloques.
25+
26+
### Carga útil
27+
28+
Datos JSON para enviar en el cuerpo de la solicitud. Usa la varita de IA para generar cargas útiles o referenciar variables del flujo de trabajo:
29+
30+
```json
31+
{
32+
"event": "workflow.completed",
33+
"data": {
34+
"result": "<agent.content>",
35+
"timestamp": "<function.result>"
36+
}
37+
}
38+
```
39+
40+
### Secreto de firma
41+
42+
Secreto opcional para la firma HMAC-SHA256 de la carga útil. Cuando se proporciona, añade un encabezado `X-Webhook-Signature`:
43+
44+
```
45+
X-Webhook-Signature: t=1704067200000,v1=5d41402abc4b2a76b9719d911017c592...
46+
```
47+
48+
Para verificar las firmas, calcula `HMAC-SHA256(secret, "${timestamp}.${body}")` y compara con el valor `v1`.
49+
50+
### Encabezados adicionales
51+
52+
Encabezados personalizados de clave-valor para incluir con la solicitud. Estos sobrescriben cualquier encabezado automático con el mismo nombre.
53+
54+
## Encabezados automáticos
55+
56+
Cada solicitud incluye estos encabezados automáticamente:
57+
58+
| Encabezado | Descripción |
59+
|--------|-------------|
60+
| `Content-Type` | `application/json` |
61+
| `X-Webhook-Timestamp` | Marca de tiempo Unix en milisegundos |
62+
| `X-Delivery-ID` | UUID único para esta entrega |
63+
| `Idempotency-Key` | Igual que `X-Delivery-ID` para deduplicación |
64+
65+
## Salidas
66+
67+
| Salida | Tipo | Descripción |
68+
|--------|------|-------------|
69+
| `data` | json | Cuerpo de respuesta del endpoint |
70+
| `status` | number | Código de estado HTTP |
71+
| `headers` | object | Encabezados de respuesta |
72+
73+
## Ejemplos de casos de uso
74+
75+
**Notificar servicios externos** - Envía resultados del flujo de trabajo a Slack, Discord o endpoints personalizados
76+
77+
```
78+
Agent → Function (format) → Webhook (notify)
79+
```
80+
81+
**Activar flujos de trabajo externos** - Inicia procesos en otros sistemas cuando se cumplan las condiciones
82+
83+
```
84+
Condition (check) → Webhook (trigger) → Response
85+
```
86+
87+
<Callout>
88+
El bloque Webhook siempre usa POST. Para otros métodos HTTP o más control, usa el [bloque API](/blocks/api).
89+
</Callout>

apps/docs/content/docs/es/triggers/webhook.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ El bloque de webhook genérico crea un punto de conexión flexible que puede rec
1616
<div className="flex justify-center">
1717
<Image
1818
src="/static/blocks/webhook-trigger.png"
19-
alt="Configuración genérica de webhook"
19+
alt="Configuración de webhook genérico"
2020
width={500}
2121
height={400}
2222
className="my-6"
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Webhook
3+
---
4+
5+
import { Callout } from 'fumadocs-ui/components/callout'
6+
import { Image } from '@/components/ui/image'
7+
8+
Le bloc Webhook envoie des requêtes HTTP POST vers des points de terminaison webhook externes avec des en-têtes webhook automatiques et une signature HMAC optionnelle.
9+
10+
<div className="flex justify-center">
11+
<Image
12+
src="/static/blocks/webhook.png"
13+
alt="Bloc Webhook"
14+
width={500}
15+
height={400}
16+
className="my-6"
17+
/>
18+
</div>
19+
20+
## Configuration
21+
22+
### URL du webhook
23+
24+
Le point de terminaison de destination pour votre requête webhook. Prend en charge les URL statiques et les valeurs dynamiques provenant d'autres blocs.
25+
26+
### Charge utile
27+
28+
Données JSON à envoyer dans le corps de la requête. Utilisez la baguette IA pour générer des charges utiles ou référencer des variables de workflow :
29+
30+
```json
31+
{
32+
"event": "workflow.completed",
33+
"data": {
34+
"result": "<agent.content>",
35+
"timestamp": "<function.result>"
36+
}
37+
}
38+
```
39+
40+
### Secret de signature
41+
42+
Secret optionnel pour la signature HMAC-SHA256 de la charge utile. Lorsqu'il est fourni, ajoute un en-tête `X-Webhook-Signature` :
43+
44+
```
45+
X-Webhook-Signature: t=1704067200000,v1=5d41402abc4b2a76b9719d911017c592...
46+
```
47+
48+
Pour vérifier les signatures, calculez `HMAC-SHA256(secret, "${timestamp}.${body}")` et comparez avec la valeur `v1`.
49+
50+
### En-têtes supplémentaires
51+
52+
En-têtes personnalisés clé-valeur à inclure avec la requête. Ceux-ci remplacent tous les en-têtes automatiques portant le même nom.
53+
54+
## En-têtes automatiques
55+
56+
Chaque requête inclut automatiquement ces en-têtes :
57+
58+
| En-tête | Description |
59+
|--------|-------------|
60+
| `Content-Type` | `application/json` |
61+
| `X-Webhook-Timestamp` | Horodatage Unix en millisecondes |
62+
| `X-Delivery-ID` | UUID unique pour cette livraison |
63+
| `Idempotency-Key` | Identique à `X-Delivery-ID` pour la déduplication |
64+
65+
## Sorties
66+
67+
| Sortie | Type | Description |
68+
|--------|------|-------------|
69+
| `data` | json | Corps de la réponse du point de terminaison |
70+
| `status` | number | Code de statut HTTP |
71+
| `headers` | object | En-têtes de réponse |
72+
73+
## Exemples de cas d'usage
74+
75+
**Notifier des services externes** - Envoyer les résultats du workflow vers Slack, Discord ou des points de terminaison personnalisés
76+
77+
```
78+
Agent → Function (format) → Webhook (notify)
79+
```
80+
81+
**Déclencher des workflows externes** - Démarrer des processus dans d'autres systèmes lorsque des conditions sont remplies
82+
83+
```
84+
Condition (check) → Webhook (trigger) → Response
85+
```
86+
87+
<Callout>
88+
Le bloc Webhook utilise toujours POST. Pour d'autres méthodes HTTP ou plus de contrôle, utilisez le [bloc API](/blocks/api).
89+
</Callout>

apps/docs/content/docs/fr/triggers/webhook.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Le bloc Webhook générique crée un point de terminaison flexible qui peut rece
1616
<div className="flex justify-center">
1717
<Image
1818
src="/static/blocks/webhook-trigger.png"
19-
alt="Configuration de webhook générique"
19+
alt="Configuration du webhook générique"
2020
width={500}
2121
height={400}
2222
className="my-6"
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Webhook
3+
---
4+
5+
import { Callout } from 'fumadocs-ui/components/callout'
6+
import { Image } from '@/components/ui/image'
7+
8+
Webhookブロックは、自動的なWebhookヘッダーとオプションのHMAC署名を使用して、外部のWebhookエンドポイントにHTTP POSTリクエストを送信します。
9+
10+
<div className="flex justify-center">
11+
<Image
12+
src="/static/blocks/webhook.png"
13+
alt="Webhookブロック"
14+
width={500}
15+
height={400}
16+
className="my-6"
17+
/>
18+
</div>
19+
20+
## 設定
21+
22+
### Webhook URL
23+
24+
Webhookリクエストの送信先エンドポイントです。静的URLと他のブロックからの動的な値の両方に対応しています。
25+
26+
### ペイロード
27+
28+
リクエストボディで送信するJSONデータです。AIワンドを使用してペイロードを生成したり、ワークフロー変数を参照したりできます。
29+
30+
```json
31+
{
32+
"event": "workflow.completed",
33+
"data": {
34+
"result": "<agent.content>",
35+
"timestamp": "<function.result>"
36+
}
37+
}
38+
```
39+
40+
### 署名シークレット
41+
42+
HMAC-SHA256ペイロード署名用のオプションのシークレットです。指定すると、`X-Webhook-Signature`ヘッダーが追加されます。
43+
44+
```
45+
X-Webhook-Signature: t=1704067200000,v1=5d41402abc4b2a76b9719d911017c592...
46+
```
47+
48+
署名を検証するには、`HMAC-SHA256(secret, "${timestamp}.${body}")`を計算し、`v1`の値と比較します。
49+
50+
### 追加ヘッダー
51+
52+
リクエストに含めるカスタムのキーと値のヘッダーです。同じ名前の自動ヘッダーがある場合は上書きされます。
53+
54+
## 自動ヘッダー
55+
56+
すべてのリクエストには、以下のヘッダーが自動的に含まれます。
57+
58+
| ヘッダー | 説明 |
59+
|--------|-------------|
60+
| `Content-Type` | `application/json` |
61+
| `X-Webhook-Timestamp` | ミリ秒単位のUnixタイムスタンプ |
62+
| `X-Delivery-ID` | この配信の一意のUUID |
63+
| `Idempotency-Key` | 重複排除用の`X-Delivery-ID`と同じ |
64+
65+
## 出力
66+
67+
| 出力 || 説明 |
68+
|--------|------|-------------|
69+
| `data` | json | エンドポイントからのレスポンスボディ |
70+
| `status` | number | HTTPステータスコード |
71+
| `headers` | object | レスポンスヘッダー |
72+
73+
## 使用例
74+
75+
**外部サービスへの通知** - ワークフローの結果をSlack、Discord、またはカスタムエンドポイントに送信します。
76+
77+
```
78+
Agent → Function (format) → Webhook (notify)
79+
```
80+
81+
**外部ワークフローのトリガー** - 条件が満たされたときに他のシステムでプロセスを開始します。
82+
83+
```
84+
Condition (check) → Webhook (trigger) → Response
85+
```
86+
87+
<Callout>
88+
Webhookブロックは常にPOSTを使用します。他のHTTPメソッドやより詳細な制御が必要な場合は、[APIブロック](/blocks/api)を使用してください。
89+
</Callout>

0 commit comments

Comments
 (0)