@objectstack/plugin-webhooks 7.2.1 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.turbo/turbo-build.log +30 -26
  2. package/CHANGELOG.md +116 -0
  3. package/dist/chunk-7HS5DLU2.js +319 -0
  4. package/dist/chunk-7HS5DLU2.js.map +1 -0
  5. package/dist/{chunk-FA66GQEO.cjs → chunk-HF7CCDPB.cjs} +3 -3
  6. package/dist/{chunk-FA66GQEO.cjs.map → chunk-HF7CCDPB.cjs.map} +1 -1
  7. package/dist/{chunk-BS2QTZH3.js → chunk-KNGLLSSP.js} +2 -2
  8. package/dist/{chunk-MJZGD37S.cjs → chunk-TDSI7UHY.cjs} +138 -3
  9. package/dist/chunk-TDSI7UHY.cjs.map +1 -0
  10. package/dist/index.cjs +43 -14
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.js +33 -4
  13. package/dist/index.js.map +1 -1
  14. package/dist/schema.cjs +4 -2
  15. package/dist/schema.cjs.map +1 -1
  16. package/dist/schema.d.cts +3002 -137
  17. package/dist/schema.d.ts +3002 -137
  18. package/dist/schema.js +3 -1
  19. package/dist/sql-outbox.cjs +3 -3
  20. package/dist/sql-outbox.js +2 -2
  21. package/dist/translations-AV47AVPV.js +727 -0
  22. package/dist/translations-AV47AVPV.js.map +1 -0
  23. package/dist/translations-OAKKANSP.cjs +727 -0
  24. package/dist/translations-OAKKANSP.cjs.map +1 -0
  25. package/package.json +6 -6
  26. package/scripts/i18n-extract.config.ts +32 -0
  27. package/src/schema.ts +7 -3
  28. package/src/sys-webhook.object.ts +177 -0
  29. package/src/translations/en.objects.generated.ts +187 -0
  30. package/src/translations/es-ES.objects.generated.ts +187 -0
  31. package/src/translations/index.ts +23 -0
  32. package/src/translations/ja-JP.objects.generated.ts +187 -0
  33. package/src/translations/zh-CN.objects.generated.ts +187 -0
  34. package/src/webhook-outbox-plugin.ts +38 -7
  35. package/dist/chunk-33LYZT7O.js +0 -184
  36. package/dist/chunk-33LYZT7O.js.map +0 -1
  37. package/dist/chunk-MJZGD37S.cjs.map +0 -1
  38. /package/dist/{chunk-BS2QTZH3.js.map → chunk-KNGLLSSP.js.map} +0 -0
@@ -0,0 +1,187 @@
1
+ // Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
2
+
3
+ /**
4
+ * Auto-generated by 'os i18n extract' for locale 'es-ES'.
5
+ * Edit translations in place; re-run extract (with --merge) to fill new gaps.
6
+ * Do not hand-edit the structure — only the leaf string values.
7
+ */
8
+
9
+ import type { TranslationData } from '@objectstack/spec/system';
10
+
11
+ export const esESObjects: NonNullable<TranslationData['objects']> = {
12
+ sys_webhook: {
13
+ label: "Webhook",
14
+ pluralLabel: "Webhooks",
15
+ description: "Suscripción saliente de Webhook HTTP. Se crea mediante defineWebhook() en código o con el editor de Studio; la ejecuta el plugin del conector HTTP.",
16
+ fields: {
17
+ id: {
18
+ label: "ID de webhook"
19
+ },
20
+ name: {
21
+ label: "Nombre",
22
+ help: "Nombre snake_case único; se usa en los registros y en la auditoría."
23
+ },
24
+ label: {
25
+ label: "Nombre visible"
26
+ },
27
+ object_name: {
28
+ label: "Objeto",
29
+ help: "Nombre corto del objeto cuyos eventos activan este Webhook (vacío = activación manual / API)."
30
+ },
31
+ triggers: {
32
+ label: "Desencadenantes",
33
+ help: "Lista de eventos separada por comas: create,update,delete,undelete,api."
34
+ },
35
+ url: {
36
+ label: "URL de destino",
37
+ help: "Endpoint externo que recibe el POST."
38
+ },
39
+ method: {
40
+ label: "Método HTTP",
41
+ help: "GET / POST / PUT / PATCH / DELETE"
42
+ },
43
+ description: {
44
+ label: "Descripción"
45
+ },
46
+ active: {
47
+ label: "Activo",
48
+ help: "Los Webhooks inactivos se omiten en el despachador."
49
+ },
50
+ definition_json: {
51
+ label: "Definición",
52
+ help: "JSON serializado de Webhook (consulte @objectstack/spec/automation/webhook): configuración completa de cabeceras/auth/reintentos/payload."
53
+ },
54
+ created_at: {
55
+ label: "Creado el"
56
+ },
57
+ updated_at: {
58
+ label: "Actualizado el"
59
+ }
60
+ },
61
+ _views: {
62
+ active: {
63
+ label: "Activo"
64
+ },
65
+ inactive: {
66
+ label: "Inactivo"
67
+ },
68
+ by_object: {
69
+ label: "Por objeto"
70
+ },
71
+ all_webhooks: {
72
+ label: "Todos"
73
+ }
74
+ }
75
+ },
76
+ sys_webhook_delivery: {
77
+ label: "Webhook Delivery",
78
+ pluralLabel: "Webhook Deliveries",
79
+ description: "Durable outbox row for one webhook attempt. Managed by @objectstack/plugin-webhooks; do not write directly.",
80
+ fields: {
81
+ id: {
82
+ label: "Delivery ID",
83
+ help: "UUID — also doubles as the receiver-side idempotency key"
84
+ },
85
+ webhook_id: {
86
+ label: "Webhook ID",
87
+ help: "FK to sys_webhook.id (loosely coupled — denormalised URL/secret on row)"
88
+ },
89
+ event_id: {
90
+ label: "Event ID",
91
+ help: "Source event id; UNIQUE(event_id, webhook_id) for dedup"
92
+ },
93
+ event_type: {
94
+ label: "Event Type",
95
+ help: "e.g. data.record.created"
96
+ },
97
+ url: {
98
+ label: "Target URL",
99
+ help: "Snapshotted at enqueue so config edits do not rewrite live rows"
100
+ },
101
+ method: {
102
+ label: "Method"
103
+ },
104
+ headers_json: {
105
+ label: "Headers JSON"
106
+ },
107
+ secret: {
108
+ label: "HMAC Secret"
109
+ },
110
+ timeout_ms: {
111
+ label: "Timeout (ms)"
112
+ },
113
+ payload_json: {
114
+ label: "Payload JSON"
115
+ },
116
+ partition_key: {
117
+ label: "Partition",
118
+ help: "hash(webhook_id) mod partitionCount — precomputed for cheap WHERE"
119
+ },
120
+ status: {
121
+ label: "Status",
122
+ help: "pending | in_flight | success | failed | dead"
123
+ },
124
+ attempts: {
125
+ label: "Attempts",
126
+ help: "Number of POST attempts made so far"
127
+ },
128
+ claimed_by: {
129
+ label: "Claimed By"
130
+ },
131
+ claimed_at: {
132
+ label: "Claimed At (ms)"
133
+ },
134
+ next_retry_at: {
135
+ label: "Next Retry At (ms)"
136
+ },
137
+ last_attempted_at: {
138
+ label: "Last Attempted At (ms)"
139
+ },
140
+ response_code: {
141
+ label: "HTTP Status"
142
+ },
143
+ response_body: {
144
+ label: "Response Body (capped)"
145
+ },
146
+ error: {
147
+ label: "Error"
148
+ },
149
+ created_at: {
150
+ label: "Created At (ms)"
151
+ },
152
+ updated_at: {
153
+ label: "Updated At (ms)"
154
+ }
155
+ },
156
+ _views: {
157
+ recent: {
158
+ label: "Recent"
159
+ },
160
+ failures: {
161
+ label: "Failures"
162
+ },
163
+ in_flight: {
164
+ label: "In Flight"
165
+ },
166
+ pending: {
167
+ label: "Pending"
168
+ },
169
+ by_status: {
170
+ label: "By Status"
171
+ },
172
+ by_webhook: {
173
+ label: "By Webhook"
174
+ },
175
+ all_deliveries: {
176
+ label: "All"
177
+ }
178
+ },
179
+ _actions: {
180
+ redeliver: {
181
+ label: "Redeliver",
182
+ confirmText: "Replay this delivery? The receiver will get the original payload again — they must be idempotent on the X-Objectstack-Delivery header.",
183
+ successMessage: "Queued for redelivery"
184
+ }
185
+ }
186
+ }
187
+ };
@@ -0,0 +1,23 @@
1
+ // Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2
+
3
+ /**
4
+ * WebhooksTranslations — i18n bundle owned by this plugin (ADR-0029 D8).
5
+ *
6
+ * Object label/field/view/action translations for the sys_* objects this
7
+ * plugin owns. Loaded at runtime via the plugin's `kernel:ready` hook
8
+ * (`i18n.loadTranslations`). Regenerate with `os i18n extract` against
9
+ * `scripts/i18n-extract.config.ts`.
10
+ */
11
+
12
+ import type { TranslationBundle } from '@objectstack/spec/system';
13
+ import { enObjects } from './en.objects.generated.js';
14
+ import { zhCNObjects } from './zh-CN.objects.generated.js';
15
+ import { jaJPObjects } from './ja-JP.objects.generated.js';
16
+ import { esESObjects } from './es-ES.objects.generated.js';
17
+
18
+ export const WebhooksTranslations: TranslationBundle = {
19
+ en: { objects: enObjects },
20
+ 'zh-CN': { objects: zhCNObjects },
21
+ 'ja-JP': { objects: jaJPObjects },
22
+ 'es-ES': { objects: esESObjects },
23
+ };
@@ -0,0 +1,187 @@
1
+ // Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
2
+
3
+ /**
4
+ * Auto-generated by 'os i18n extract' for locale 'ja-JP'.
5
+ * Edit translations in place; re-run extract (with --merge) to fill new gaps.
6
+ * Do not hand-edit the structure — only the leaf string values.
7
+ */
8
+
9
+ import type { TranslationData } from '@objectstack/spec/system';
10
+
11
+ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
12
+ sys_webhook: {
13
+ label: "Webhook",
14
+ pluralLabel: "Webhook",
15
+ description: "送信 HTTP Webhook サブスクリプション。defineWebhook() またはスタジオエディタで作成し、HTTP コネクタプラグインが実行します。",
16
+ fields: {
17
+ id: {
18
+ label: "Webhook ID"
19
+ },
20
+ name: {
21
+ label: "名前",
22
+ help: "一意の snake_case 名 — ログおよび監査で参照"
23
+ },
24
+ label: {
25
+ label: "表示名"
26
+ },
27
+ object_name: {
28
+ label: "オブジェクト",
29
+ help: "このウェブフックを発火するイベントのオブジェクト短縮名(空白 = 手動 / API トリガー)"
30
+ },
31
+ triggers: {
32
+ label: "トリガー",
33
+ help: "カンマ区切りのイベントリスト: create,update,delete,undelete,api"
34
+ },
35
+ url: {
36
+ label: "ターゲット URL",
37
+ help: "POST を受信する外部エンドポイント"
38
+ },
39
+ method: {
40
+ label: "HTTP メソッド",
41
+ help: "GET / POST / PUT / PATCH / DELETE"
42
+ },
43
+ description: {
44
+ label: "説明"
45
+ },
46
+ active: {
47
+ label: "有効",
48
+ help: "無効にするとディスパッチャにスキップされます"
49
+ },
50
+ definition_json: {
51
+ label: "定義",
52
+ help: "シリアライズされた Webhook JSON(@objectstack/spec/automation/webhook 参照)— ヘッダー/認証/リトライ/ペイロード設定を含む"
53
+ },
54
+ created_at: {
55
+ label: "作成日時"
56
+ },
57
+ updated_at: {
58
+ label: "更新日時"
59
+ }
60
+ },
61
+ _views: {
62
+ active: {
63
+ label: "有効"
64
+ },
65
+ inactive: {
66
+ label: "無効"
67
+ },
68
+ by_object: {
69
+ label: "オブジェクト別"
70
+ },
71
+ all_webhooks: {
72
+ label: "すべて"
73
+ }
74
+ }
75
+ },
76
+ sys_webhook_delivery: {
77
+ label: "Webhook Delivery",
78
+ pluralLabel: "Webhook Deliveries",
79
+ description: "Durable outbox row for one webhook attempt. Managed by @objectstack/plugin-webhooks; do not write directly.",
80
+ fields: {
81
+ id: {
82
+ label: "Delivery ID",
83
+ help: "UUID — also doubles as the receiver-side idempotency key"
84
+ },
85
+ webhook_id: {
86
+ label: "Webhook ID",
87
+ help: "FK to sys_webhook.id (loosely coupled — denormalised URL/secret on row)"
88
+ },
89
+ event_id: {
90
+ label: "Event ID",
91
+ help: "Source event id; UNIQUE(event_id, webhook_id) for dedup"
92
+ },
93
+ event_type: {
94
+ label: "Event Type",
95
+ help: "e.g. data.record.created"
96
+ },
97
+ url: {
98
+ label: "Target URL",
99
+ help: "Snapshotted at enqueue so config edits do not rewrite live rows"
100
+ },
101
+ method: {
102
+ label: "Method"
103
+ },
104
+ headers_json: {
105
+ label: "Headers JSON"
106
+ },
107
+ secret: {
108
+ label: "HMAC Secret"
109
+ },
110
+ timeout_ms: {
111
+ label: "Timeout (ms)"
112
+ },
113
+ payload_json: {
114
+ label: "Payload JSON"
115
+ },
116
+ partition_key: {
117
+ label: "Partition",
118
+ help: "hash(webhook_id) mod partitionCount — precomputed for cheap WHERE"
119
+ },
120
+ status: {
121
+ label: "Status",
122
+ help: "pending | in_flight | success | failed | dead"
123
+ },
124
+ attempts: {
125
+ label: "Attempts",
126
+ help: "Number of POST attempts made so far"
127
+ },
128
+ claimed_by: {
129
+ label: "Claimed By"
130
+ },
131
+ claimed_at: {
132
+ label: "Claimed At (ms)"
133
+ },
134
+ next_retry_at: {
135
+ label: "Next Retry At (ms)"
136
+ },
137
+ last_attempted_at: {
138
+ label: "Last Attempted At (ms)"
139
+ },
140
+ response_code: {
141
+ label: "HTTP Status"
142
+ },
143
+ response_body: {
144
+ label: "Response Body (capped)"
145
+ },
146
+ error: {
147
+ label: "Error"
148
+ },
149
+ created_at: {
150
+ label: "Created At (ms)"
151
+ },
152
+ updated_at: {
153
+ label: "Updated At (ms)"
154
+ }
155
+ },
156
+ _views: {
157
+ recent: {
158
+ label: "Recent"
159
+ },
160
+ failures: {
161
+ label: "Failures"
162
+ },
163
+ in_flight: {
164
+ label: "In Flight"
165
+ },
166
+ pending: {
167
+ label: "Pending"
168
+ },
169
+ by_status: {
170
+ label: "By Status"
171
+ },
172
+ by_webhook: {
173
+ label: "By Webhook"
174
+ },
175
+ all_deliveries: {
176
+ label: "All"
177
+ }
178
+ },
179
+ _actions: {
180
+ redeliver: {
181
+ label: "Redeliver",
182
+ confirmText: "Replay this delivery? The receiver will get the original payload again — they must be idempotent on the X-Objectstack-Delivery header.",
183
+ successMessage: "Queued for redelivery"
184
+ }
185
+ }
186
+ }
187
+ };
@@ -0,0 +1,187 @@
1
+ // Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
2
+
3
+ /**
4
+ * Auto-generated by 'os i18n extract' for locale 'zh-CN'.
5
+ * Edit translations in place; re-run extract (with --merge) to fill new gaps.
6
+ * Do not hand-edit the structure — only the leaf string values.
7
+ */
8
+
9
+ import type { TranslationData } from '@objectstack/spec/system';
10
+
11
+ export const zhCNObjects: NonNullable<TranslationData['objects']> = {
12
+ sys_webhook: {
13
+ label: "Webhook",
14
+ pluralLabel: "Webhook",
15
+ description: "外发 HTTP Webhook 订阅。可在代码中通过 defineWebhook() 编写,或在 Studio 编辑器中维护;由 HTTP 连接器插件执行。",
16
+ fields: {
17
+ id: {
18
+ label: "Webhook ID"
19
+ },
20
+ name: {
21
+ label: "名称",
22
+ help: "唯一的 snake_case 名称——用于日志和审计引用"
23
+ },
24
+ label: {
25
+ label: "显示标签"
26
+ },
27
+ object_name: {
28
+ label: "对象",
29
+ help: "触发该 Webhook 的短对象名(留空 = 手动 / API 触发)"
30
+ },
31
+ triggers: {
32
+ label: "触发器",
33
+ help: "以逗号分隔的事件列表:create,update,delete,undelete,api"
34
+ },
35
+ url: {
36
+ label: "目标 URL",
37
+ help: "接收 POST 请求的外部端点"
38
+ },
39
+ method: {
40
+ label: "HTTP 方法",
41
+ help: "GET / POST / PUT / PATCH / DELETE"
42
+ },
43
+ description: {
44
+ label: "描述"
45
+ },
46
+ active: {
47
+ label: "启用",
48
+ help: "停用的 Webhook 会被调度器跳过"
49
+ },
50
+ definition_json: {
51
+ label: "定义",
52
+ help: "序列化的 Webhook JSON(参见 @objectstack/spec/automation/webhook)——包含完整的 headers/auth/retry/payload 配置"
53
+ },
54
+ created_at: {
55
+ label: "创建时间"
56
+ },
57
+ updated_at: {
58
+ label: "更新时间"
59
+ }
60
+ },
61
+ _views: {
62
+ active: {
63
+ label: "启用"
64
+ },
65
+ inactive: {
66
+ label: "停用"
67
+ },
68
+ by_object: {
69
+ label: "按对象"
70
+ },
71
+ all_webhooks: {
72
+ label: "全部"
73
+ }
74
+ }
75
+ },
76
+ sys_webhook_delivery: {
77
+ label: "Webhook Delivery",
78
+ pluralLabel: "Webhook Deliveries",
79
+ description: "Durable outbox row for one webhook attempt. Managed by @objectstack/plugin-webhooks; do not write directly.",
80
+ fields: {
81
+ id: {
82
+ label: "Delivery ID",
83
+ help: "UUID — also doubles as the receiver-side idempotency key"
84
+ },
85
+ webhook_id: {
86
+ label: "Webhook ID",
87
+ help: "FK to sys_webhook.id (loosely coupled — denormalised URL/secret on row)"
88
+ },
89
+ event_id: {
90
+ label: "Event ID",
91
+ help: "Source event id; UNIQUE(event_id, webhook_id) for dedup"
92
+ },
93
+ event_type: {
94
+ label: "Event Type",
95
+ help: "e.g. data.record.created"
96
+ },
97
+ url: {
98
+ label: "Target URL",
99
+ help: "Snapshotted at enqueue so config edits do not rewrite live rows"
100
+ },
101
+ method: {
102
+ label: "Method"
103
+ },
104
+ headers_json: {
105
+ label: "Headers JSON"
106
+ },
107
+ secret: {
108
+ label: "HMAC Secret"
109
+ },
110
+ timeout_ms: {
111
+ label: "Timeout (ms)"
112
+ },
113
+ payload_json: {
114
+ label: "Payload JSON"
115
+ },
116
+ partition_key: {
117
+ label: "Partition",
118
+ help: "hash(webhook_id) mod partitionCount — precomputed for cheap WHERE"
119
+ },
120
+ status: {
121
+ label: "Status",
122
+ help: "pending | in_flight | success | failed | dead"
123
+ },
124
+ attempts: {
125
+ label: "Attempts",
126
+ help: "Number of POST attempts made so far"
127
+ },
128
+ claimed_by: {
129
+ label: "Claimed By"
130
+ },
131
+ claimed_at: {
132
+ label: "Claimed At (ms)"
133
+ },
134
+ next_retry_at: {
135
+ label: "Next Retry At (ms)"
136
+ },
137
+ last_attempted_at: {
138
+ label: "Last Attempted At (ms)"
139
+ },
140
+ response_code: {
141
+ label: "HTTP Status"
142
+ },
143
+ response_body: {
144
+ label: "Response Body (capped)"
145
+ },
146
+ error: {
147
+ label: "Error"
148
+ },
149
+ created_at: {
150
+ label: "Created At (ms)"
151
+ },
152
+ updated_at: {
153
+ label: "Updated At (ms)"
154
+ }
155
+ },
156
+ _views: {
157
+ recent: {
158
+ label: "Recent"
159
+ },
160
+ failures: {
161
+ label: "Failures"
162
+ },
163
+ in_flight: {
164
+ label: "In Flight"
165
+ },
166
+ pending: {
167
+ label: "Pending"
168
+ },
169
+ by_status: {
170
+ label: "By Status"
171
+ },
172
+ by_webhook: {
173
+ label: "By Webhook"
174
+ },
175
+ all_deliveries: {
176
+ label: "All"
177
+ }
178
+ },
179
+ _actions: {
180
+ redeliver: {
181
+ label: "Redeliver",
182
+ confirmText: "Replay this delivery? The receiver will get the original payload again — they must be idempotent on the X-Objectstack-Delivery header.",
183
+ successMessage: "Queued for redelivery"
184
+ }
185
+ }
186
+ }
187
+ };
@@ -7,7 +7,6 @@ import type {
7
7
  IDataEngine,
8
8
  IRealtimeService,
9
9
  } from '@objectstack/spec/contracts';
10
- import { SysWebhook } from '@objectstack/platform-objects/integration';
11
10
  import { AutoEnqueuer, type AutoEnqueuerOptions } from './auto-enqueuer.js';
12
11
  import { WebhookDispatcher, type DispatcherOptions } from './dispatcher.js';
13
12
  import { MemoryWebhookOutbox } from './memory-outbox.js';
@@ -17,6 +16,7 @@ import {
17
16
  type DeliveryRetentionOptions,
18
17
  } from './retention.js';
19
18
  import { SqlWebhookOutbox } from './sql-outbox.js';
19
+ import { SysWebhook } from './sys-webhook.object.js';
20
20
  import { SysWebhookDelivery } from './sys-webhook-delivery.object.js';
21
21
 
22
22
  export interface WebhookOutboxPluginOptions
@@ -117,12 +117,12 @@ export class WebhookOutboxPlugin implements Plugin {
117
117
  );
118
118
  }
119
119
 
120
- // Register the schemas this plugin owns at runtime. `sys_webhook`
121
- // (config) lives in @objectstack/platform-objects but no other
122
- // plugin claims it — the webhook plugin is the natural owner
123
- // since it's the consumer of those rows. `sys_webhook_delivery`
124
- // (telemetry) is plugin-private. Registering them here means a
125
- // stack just needs `plugins: [new WebhookOutboxPlugin(...)]`
120
+ // Register the schemas this plugin owns at runtime (ADR-0029 K2.a).
121
+ // Both `sys_webhook` (config) and `sys_webhook_delivery` (telemetry)
122
+ // are now defined and owned here — the webhook plugin ships its data
123
+ // model and behavior as one unit instead of importing `sys_webhook`
124
+ // from the @objectstack/platform-objects monolith. Registering them
125
+ // here means a stack just needs `plugins: [new WebhookOutboxPlugin(...)]`
126
126
  // and both objects auto-appear in REST/Studio/Setup nav.
127
127
  const manifest = ctx.getService<{ register(m: any): void }>('manifest');
128
128
  if (manifest && typeof manifest.register === 'function') {
@@ -136,6 +136,21 @@ export class WebhookOutboxPlugin implements Plugin {
136
136
  description:
137
137
  'Registers sys_webhook (configuration) and sys_webhook_delivery (durable outbox telemetry).',
138
138
  objects: [SysWebhook, SysWebhookDelivery],
139
+ // ADR-0029 D7 — contribute the Webhooks entries into the
140
+ // Setup app's `group_integrations` slot. The plugin owns these
141
+ // objects (K2.a), so it ships their menu too; when the plugin
142
+ // isn't installed the slot stays empty.
143
+ navigationContributions: [
144
+ {
145
+ app: 'setup',
146
+ group: 'group_integrations',
147
+ priority: 100,
148
+ items: [
149
+ { id: 'nav_webhooks', type: 'object', label: 'Webhooks', objectName: 'sys_webhook', icon: 'webhook', requiresObject: 'sys_webhook' },
150
+ { id: 'nav_webhook_deliveries', type: 'object', label: 'Webhook Deliveries', objectName: 'sys_webhook_delivery', icon: 'send', requiresObject: 'sys_webhook_delivery' },
151
+ ],
152
+ },
153
+ ],
139
154
  });
140
155
  } else {
141
156
  ctx.logger.warn?.(
@@ -143,6 +158,22 @@ export class WebhookOutboxPlugin implements Plugin {
143
158
  );
144
159
  }
145
160
 
161
+ // ADR-0029 D8 — contribute this plugin's object translations to the
162
+ // i18n service on kernel:ready (the i18n plugin may register later).
163
+ if (typeof (ctx as any).hook === 'function') {
164
+ (ctx as any).hook('kernel:ready', async () => {
165
+ try {
166
+ const i18n = ctx.getService<any>('i18n');
167
+ if (i18n && typeof i18n.loadTranslations === 'function') {
168
+ const { WebhooksTranslations } = await import('./translations/index.js');
169
+ for (const [locale, data] of Object.entries(WebhooksTranslations)) {
170
+ i18n.loadTranslations(locale, data as Record<string, unknown>);
171
+ }
172
+ }
173
+ } catch { /* i18n optional */ }
174
+ });
175
+ }
176
+
146
177
  const outbox = this.resolveOutbox(ctx);
147
178
  this.outboxInstance = outbox;
148
179
  const nodeId =