From a885f92a5b7490394303148e053685f7218d1902 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 23:33:41 +0000 Subject: [PATCH] fix(runtime): the approval action-page door and the inbound automation hooks answer their 501 in the request's language The two doors still answered the missing-service 501 as English literals. Both now answer operationUserMessage(key, { locale: requestLocaleOf(context) }) with four new whole-sentence catalog keys in en, zh-CN, ja-JP and es-ES, the English byte for byte the sentences they answered before. Review follow-ups of #37639 ride along: the own-door bridge's section title no longer says "when the bridge names its noun" (it always does), the catalog jsdoc for these whole-sentence keys states the top Accept-Language tag and that no errors. override is consulted, and one pin walks every module that builds an own-door bridge, tying nounKey to the catalog in every locale and nounPlural to the English noun's number. Claude-Session: https://claude.ai/code/session_01L6bhgU7eeqHgQrtv5CeJK6 Co-authored-by: Claude --- ...-approvals-act-inbound-hooks-501-locale.md | 14 +++++ .../runtime/src/domains/approvals-act.test.ts | 51 ++++++++++++++++++ packages/runtime/src/domains/approvals.ts | 10 ++-- .../src/domains/automation-hooks.test.ts | 51 ++++++++++++++++++ .../runtime/src/domains/automation-hooks.ts | 11 ++-- .../src/domains/own-door-bridge.test.ts | 52 +++++++++++++++++++ .../runtime/src/domains/own-door-bridge.ts | 2 +- packages/spec/src/system/operation-message.ts | 47 +++++++++++++++-- 8 files changed, 224 insertions(+), 14 deletions(-) create mode 100644 .changeset/37662-approvals-act-inbound-hooks-501-locale.md diff --git a/.changeset/37662-approvals-act-inbound-hooks-501-locale.md b/.changeset/37662-approvals-act-inbound-hooks-501-locale.md new file mode 100644 index 00000000000..beafcb2ee83 --- /dev/null +++ b/.changeset/37662-approvals-act-inbound-hooks-501-locale.md @@ -0,0 +1,14 @@ +--- +'@objectstack/spec': patch +'@objectstack/runtime': patch +--- + +fix(runtime): the approval action-page door and the inbound automation hooks answer their 501 in the request's language + +Clause-②: yes (widening) +Metadata-protocol: none +Skills-docs: none (no page under `skills/**` names these doors' `501` sentences) + +The approval action-page door (`/approvals/act`) and the inbound automation hook route (`/automation/hooks/:flow/:hook`) now answer their `501 NOT_IMPLEMENTED` in the request's language, as the comment, webhook redelivery, print, personal-view and attachment doors do. On a kernel with no `approvals` or `trigger-api` service, or with one that lacks `handleActionPage` / `handleInboundHook`, a `zh-CN`, `ja-JP` or `es-ES` request read the sentence in English. The operation-message catalog (`BUILTIN_OPERATION_MESSAGES`, `@objectstack/spec/system`) gains `approvals_act_service_unregistered`, `approvals_act_member_missing`, `automation_hooks_service_unregistered` and `automation_hooks_member_missing` in `en`, `zh-CN`, `ja-JP` and `es-ES`. Their English is the sentence each door answered before, byte for byte. Code and status do not change, and no `userMessage` is added. + +The catalog's notes on these whole-sentence `501` keys now say how they are read: by the request's top `Accept-Language` tag, with no `errors.` override consulted. diff --git a/packages/runtime/src/domains/approvals-act.test.ts b/packages/runtime/src/domains/approvals-act.test.ts index 7a3a6b22bb3..eee46e312f1 100644 --- a/packages/runtime/src/domains/approvals-act.test.ts +++ b/packages/runtime/src/domains/approvals-act.test.ts @@ -35,6 +35,10 @@ */ import { describe, it, expect, vi } from 'vitest'; +// Paid during collection, not inside a case's clock: the dispatcher reaches +// `standalone-stack.ts`, whose dynamic `@objectstack/metadata` import would +// otherwise load inside the first case that gets that far (check:test-source-alias). +import '@objectstack/metadata'; import { HttpDispatcher } from '../http-dispatcher.js'; import type { HttpProtocolContext, KernelResolver } from '../http-dispatcher.js'; @@ -326,3 +330,50 @@ describe('[#22576] the token is the only credential — the membership gate skip } }); }); + +// [#37662] The action-page door's two `501` sentences are the operation-message +// catalog's, in the request's top `Accept-Language` tag, as the own-door +// bridge answers its doors' own. The English is byte for byte the sentence the +// door answered before, the code and status are unchanged, and no +// `userMessage` is added. +describe('[#37662] the action-page door\'s 501 follows the request\'s language', () => { + const SENTENCES = { + unregistered: { + en: 'Approval action pages are not available: no approvals service is registered. Register @objectstack/plugin-approvals to serve them.', + 'zh-CN': '审批操作页不可用:未注册 approvals 服务。请注册 @objectstack/plugin-approvals 来提供这些页面。', + 'ja-JP': '承認アクションページは利用できません。approvals サービスが登録されていません。これらのページを提供するには @objectstack/plugin-approvals を登録してください。', + 'es-ES': 'Las páginas de acción de aprobación no están disponibles: no hay ningún servicio approvals registrado. Registre @objectstack/plugin-approvals para servirlas.', + }, + memberMissing: { + en: 'Approval action pages are not available: the registered approvals service does not implement handleActionPage.', + 'zh-CN': '审批操作页不可用:已注册的 approvals 服务未实现 handleActionPage。', + 'ja-JP': '承認アクションページは利用できません。登録されている approvals サービスは handleActionPage を実装していません。', + 'es-ES': 'Las páginas de acción de aprobación no están disponibles: el servicio approvals registrado no implementa handleActionPage.', + }, + }; + const HEADERS: Record<'en' | 'zh-CN' | 'ja-JP' | 'es-ES', Array>> = { + en: [{ 'accept-language': 'en-US,en;q=0.9' }, {}], + 'zh-CN': [{ 'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8' }], + 'ja-JP': [{ 'accept-language': 'ja-JP,ja;q=0.9' }], + 'es-ES': [{ 'accept-language': 'es-ES,es;q=0.9' }], + }; + + for (const site of [ + { name: 'no approvals slot on the kernel', services: {} as Record, sentences: SENTENCES.unregistered }, + { name: 'an approvals service without handleActionPage', services: { approvals: { getRequest: vi.fn() } }, sentences: SENTENCES.memberMissing }, + ]) { + it(`${site.name}: 501 NOT_IMPLEMENTED in en (and with no header), zh-CN, ja-JP and es-ES`, async () => { + for (const [locale, list] of Object.entries(HEADERS) as Array<[keyof typeof HEADERS, Array>]>) { + for (const headers of list) { + const { dispatcher } = makeDispatcher(site.services); + const request = new Request(`${ORIGIN}/api/v1${ACT}?token=t`, { headers }); + const label = JSON.stringify(headers); + const result = await dispatcher.dispatch('GET', ACT, undefined, {}, ctx(request)); + expect(envelope(result), label).toEqual({ status: 501, code: 'NOT_IMPLEMENTED' }); + expect(result.response?.body?.error?.message, label).toBe(site.sentences[locale]); + expect(result.response?.body?.error?.userMessage, label).toBeUndefined(); + } + } + }); + } +}); diff --git a/packages/runtime/src/domains/approvals.ts b/packages/runtime/src/domains/approvals.ts index 57d3fccbaf3..d032ae20813 100644 --- a/packages/runtime/src/domains/approvals.ts +++ b/packages/runtime/src/domains/approvals.ts @@ -65,9 +65,11 @@ */ import { INTERNAL_ERROR_MESSAGE } from '@objectstack/types'; +import { operationUserMessage } from '@objectstack/core'; import type { IApprovalService } from '@objectstack/spec/contracts'; import type { HttpProtocolContext, HttpDispatcherResult } from '../http-dispatcher.js'; import type { DomainHandlerDeps, DomainRoute } from '../domain-handler-registry.js'; +import { requestLocaleOf } from './own-door-bridge.js'; /** * The one path this domain claims — exactly, with no sub-paths: the action @@ -109,12 +111,13 @@ export async function handleApprovalsActRequest( ): Promise { const service = await deps.resolveService(context, APPROVALS_SLOT, context.environmentId) as Pick | undefined; + // [#37662] The `501` is the operation-message catalog's, in the request's + // top `Accept-Language` tag, as the own-door bridge answers its own. if (!service) { return { handled: true, response: deps.error( - 'Approval action pages are not available: no approvals service is registered. ' - + 'Register @objectstack/plugin-approvals to serve them.', + operationUserMessage('approvals_act_service_unregistered', { locale: requestLocaleOf(context) }), 501, ), }; @@ -123,8 +126,7 @@ export async function handleApprovalsActRequest( return { handled: true, response: deps.error( - 'Approval action pages are not available: the registered approvals service ' - + 'does not implement handleActionPage.', + operationUserMessage('approvals_act_member_missing', { locale: requestLocaleOf(context) }), 501, ), }; diff --git a/packages/runtime/src/domains/automation-hooks.test.ts b/packages/runtime/src/domains/automation-hooks.test.ts index 4ad7324d14e..f459e72a6c3 100644 --- a/packages/runtime/src/domains/automation-hooks.test.ts +++ b/packages/runtime/src/domains/automation-hooks.test.ts @@ -925,3 +925,54 @@ describe('[#31696] a name two packages hold, on a kernel with no http.server', ( } }); }); + +// [#37662] The inbound hook route's two `501` sentences are the +// operation-message catalog's, in the request's top `Accept-Language` tag, as +// the own-door bridge answers its doors' own. The English is byte for byte the +// sentence the route answered before, the code and status are unchanged, and +// no `userMessage` is added. +describe('[#37662] the inbound hook route\'s 501 follows the request\'s language', () => { + const SENTENCES = { + unregistered: { + en: 'Inbound automation hooks are not available: no trigger-api service is registered. The inbound-hook trigger (@objectstack/trigger-api) serves this route through that service; compose it on the environment that owns the flow.', + 'zh-CN': '入站自动化钩子不可用:未注册 trigger-api 服务。入站钩子触发器(@objectstack/trigger-api)通过该服务提供此路由;请在拥有该流程的环境上组合它。', + 'ja-JP': '受信オートメーションフックは利用できません。trigger-api サービスが登録されていません。受信フックトリガー(@objectstack/trigger-api)がこのサービスを通じてこのルートを提供します。フローを所有する環境に組み込んでください。', + 'es-ES': 'Los ganchos de automatización entrantes no están disponibles: no hay ningún servicio trigger-api registrado. El disparador de ganchos entrantes (@objectstack/trigger-api) sirve esta ruta a través de ese servicio; compóngalo en el entorno al que pertenece el flujo.', + }, + memberMissing: { + en: 'Inbound automation hooks are not available: the registered trigger-api service does not implement handleInboundHook.', + 'zh-CN': '入站自动化钩子不可用:已注册的 trigger-api 服务未实现 handleInboundHook。', + 'ja-JP': '受信オートメーションフックは利用できません。登録されている trigger-api サービスは handleInboundHook を実装していません。', + 'es-ES': 'Los ganchos de automatización entrantes no están disponibles: el servicio trigger-api registrado no implementa handleInboundHook.', + }, + }; + const HEADERS: Record<'en' | 'zh-CN' | 'ja-JP' | 'es-ES', Array>> = { + en: [{ 'accept-language': 'en-US,en;q=0.9' }, {}], + 'zh-CN': [{ 'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8' }], + 'ja-JP': [{ 'accept-language': 'ja-JP,ja;q=0.9' }], + 'es-ES': [{ 'accept-language': 'es-ES,es;q=0.9' }], + }; + + for (const site of [ + { name: 'no trigger-api slot on the kernel', services: {} as Record, sentences: SENTENCES.unregistered }, + { name: 'a trigger-api service without handleInboundHook', services: { 'trigger-api': { somethingElse: vi.fn() } }, sentences: SENTENCES.memberMissing }, + ]) { + it(`${site.name}: 501 NOT_IMPLEMENTED in en (and with no header), zh-CN, ja-JP and es-ES`, async () => { + for (const [locale, list] of Object.entries(HEADERS) as Array<[keyof typeof HEADERS, Array>]>) { + for (const headers of list) { + const { dispatcher } = makeDispatcher(site.services); + const request = new Request(`${ORIGIN}/api/v1${ROUTE}`, { + method: 'POST', + headers: { ...JSON_HEADERS, 'x-objectstack-signature': sign(BODY, SECRET), ...headers }, + body: BODY, + }); + const label = JSON.stringify(headers); + const result = await dispatcher.dispatch('POST', ROUTE, {}, {}, ctx(request)); + expect(envelope(result), label).toEqual({ status: 501, code: 'NOT_IMPLEMENTED' }); + expect(result.response?.body?.error?.message, label).toBe(site.sentences[locale]); + expect(result.response?.body?.error?.userMessage, label).toBeUndefined(); + } + } + }); + } +}); diff --git a/packages/runtime/src/domains/automation-hooks.ts b/packages/runtime/src/domains/automation-hooks.ts index 44b325ce5cf..87e92ae2a43 100644 --- a/packages/runtime/src/domains/automation-hooks.ts +++ b/packages/runtime/src/domains/automation-hooks.ts @@ -91,12 +91,14 @@ import { INTERNAL_ERROR_MESSAGE } from '@objectstack/types'; import { admitInboundHookAddress, inboundHookRefusalResponse, + operationUserMessage, type InboundHookRouteMatch, } from '@objectstack/core'; import { automationAddressRegistryOf } from './automation-address.js'; import type { ITriggerApiService } from '@objectstack/spec/contracts'; import type { HttpProtocolContext, HttpDispatcherResult } from '../http-dispatcher.js'; import type { DomainHandlerDeps } from '../domain-handler-registry.js'; +import { requestLocaleOf } from './own-door-bridge.js'; /** The slot the member lives on — the trigger package's own name (ADR-0041 §2). */ const TRIGGER_API_SLOT = 'trigger-api'; @@ -182,13 +184,13 @@ export async function handleInboundHookRequest( ): Promise { const service = await deps.resolveService(context, TRIGGER_API_SLOT, context.environmentId) as Pick | undefined; + // [#37662] The `501` is the operation-message catalog's, in the request's + // top `Accept-Language` tag, as the own-door bridge answers its own. if (!service) { return { handled: true, response: deps.error( - 'Inbound automation hooks are not available: no trigger-api service is registered. ' - + 'The inbound-hook trigger (@objectstack/trigger-api) serves this route through that ' - + 'service; compose it on the environment that owns the flow.', + operationUserMessage('automation_hooks_service_unregistered', { locale: requestLocaleOf(context) }), 501, ), }; @@ -197,8 +199,7 @@ export async function handleInboundHookRequest( return { handled: true, response: deps.error( - 'Inbound automation hooks are not available: the registered trigger-api service ' - + 'does not implement handleInboundHook.', + operationUserMessage('automation_hooks_member_missing', { locale: requestLocaleOf(context) }), 501, ), }; diff --git a/packages/runtime/src/domains/own-door-bridge.test.ts b/packages/runtime/src/domains/own-door-bridge.test.ts index 9ad1d18f0f9..63bda3beb3b 100644 --- a/packages/runtime/src/domains/own-door-bridge.test.ts +++ b/packages/runtime/src/domains/own-door-bridge.test.ts @@ -44,6 +44,10 @@ import { BUILTIN_OPERATION_MESSAGES } from '@objectstack/spec/system'; import { PERSONAL_VIEWS_BRIDGE } from './personal-views.js'; import { ATTACHMENTS_BRIDGE } from './attachments.js'; import { PRINT_BRIDGE } from './print.js'; +import type { OwnDoorBridge } from './own-door-bridge.js'; +import { readdirSync, readFileSync } from 'node:fs'; +import { dirname, join } from 'node:path'; +import { fileURLToPath } from 'node:url'; const ORIGIN = 'http://tenant.example'; const JSON_HEADERS = { 'Content-Type': 'application/json' }; @@ -506,3 +510,51 @@ describe('[#37352] the personal-view and attachment doors\' 501s follow the requ expect(BUILTIN_OPERATION_MESSAGES.en[PRINT_BRIDGE.nounKey]).toBe(PRINT_BRIDGE.noun); }); }); + +/** + * [#37662] Every bridge's flags against the catalog, found rather than listed: + * each module of this directory that builds a bridge domain + * (`createOwnDoorBridgeDomain(`) is imported and its exported bridges walked, + * so a fourth bridge is held to the same rules the day it lands. + */ +describe('[#37662] every own-door bridge is tied to the catalog', () => { + const isBridge = (value: unknown): value is OwnDoorBridge => + !!value && typeof value === 'object' + && typeof (value as OwnDoorBridge).nounKey === 'string' + && typeof (value as OwnDoorBridge).slot === 'string' + && Array.isArray((value as OwnDoorBridge).doors); + const here = dirname(fileURLToPath(import.meta.url)); + const builders = readdirSync(here) + .filter((name) => name.endsWith('.ts') && !name.endsWith('.test.ts') && name !== 'own-door-bridge.ts') + .filter((name) => readFileSync(join(here, name), 'utf8').includes('createOwnDoorBridgeDomain(')); + + it('finds the shipped bridges, each module exporting the bridge it builds', async () => { + const found: Array<[string, OwnDoorBridge]> = []; + for (const name of builders) { + const mod = await import(/* @vite-ignore */ `./${name.replace(/\.ts$/, '.js')}`) as Record; + const bridges = Object.entries(mod).filter(([, value]) => isBridge(value)) as Array<[string, OwnDoorBridge]>; + expect(bridges.length, `${name} builds a bridge domain but exports no bridge`).toBeGreaterThan(0); + found.push(...bridges); + } + expect(found.map(([exported]) => exported).sort()) + .toEqual(expect.arrayContaining(['ATTACHMENTS_BRIDGE', 'PERSONAL_VIEWS_BRIDGE', 'PRINT_BRIDGE'])); + + const locales = Object.keys(BUILTIN_OPERATION_MESSAGES); + for (const [exported, bridge] of found) { + // The noun key is in every locale, and its English is the noun. + for (const locale of locales) { + expect(BUILTIN_OPERATION_MESSAGES[locale][bridge.nounKey], `${exported} ${locale}`).toBeTruthy(); + } + expect(BUILTIN_OPERATION_MESSAGES.en[bridge.nounKey], exported).toBe(bridge.noun); + // `nounPlural` is set exactly when the English noun is plural (`the … doors`). + expect(bridge.nounPlural === true, `${exported}: '${bridge.noun}'`).toBe(/\bdoors\b/.test(bridge.noun)); + // The pair of sentences the bridge reads is in every locale. + const suffix = bridge.nounPlural ? '_plural' : ''; + for (const key of ['own_door_service_unregistered', 'own_door_member_missing']) { + for (const locale of locales) { + expect(BUILTIN_OPERATION_MESSAGES[locale][key + suffix], `${exported} ${locale} ${key}${suffix}`).toBeTruthy(); + } + } + } + }); +}); diff --git a/packages/runtime/src/domains/own-door-bridge.ts b/packages/runtime/src/domains/own-door-bridge.ts index ef952cd4edd..60edffd9cd7 100644 --- a/packages/runtime/src/domains/own-door-bridge.ts +++ b/packages/runtime/src/domains/own-door-bridge.ts @@ -60,7 +60,7 @@ * dispatcher's `404 ROUTE_NOT_FOUND`: the route IS mounted, and what is * missing is the implementation behind it. * - * ## The `501` is in the request's language when the bridge names its noun + * ## The `501` is in the request's language * * [#37273] The two `501` sentences are the operation-message catalog's * (`own_door_service_unregistered`, `own_door_member_missing`), rendered in diff --git a/packages/spec/src/system/operation-message.ts b/packages/spec/src/system/operation-message.ts index fae0b73db49..a5f0376bb9f 100644 --- a/packages/spec/src/system/operation-message.ts +++ b/packages/spec/src/system/operation-message.ts @@ -370,10 +370,19 @@ export function operationMessageTranslationKey(messageKey: string): string { * is plural (`own_door_attachment_mutate`) reads the `_plural` pair, so the * English verb agrees. * - * The `comment_doors_*` and `webhook_redeliver_*` keys are the same `501` on - * the comment doors (`comments.ts`) and the webhook redelivery door - * (`webhooks.ts`), which are not own-door bridges: each sentence is whole, - * with its slot, member and package names written in, never translated. + * The `comment_doors_*`, `webhook_redeliver_*`, `approvals_act_*` and + * `automation_hooks_*` keys are the same `501` on the comment doors + * (`comments.ts`), the webhook redelivery door (`webhooks.ts`), the approval + * action-page door (`approvals.ts`) and the inbound automation hooks + * (`automation-hooks.ts`), which are not own-door bridges: each sentence is + * whole, with its slot, member and package names written in, never + * translated. Each door reads them as the bridge does: by the request's top + * `Accept-Language` tag (`requestLocaleOf`, `own-door-bridge.ts`), a top tag + * the catalog lacks answering English, and with no `i18n` service, so no + * `errors.comment_doors_*`, `errors.webhook_redeliver_*`, + * `errors.approvals_act_*` or `errors.automation_hooks_*` override is + * consulted. Their English is byte-identical to the fixed sentences the doors + * answered before they were localized. */ export const BUILTIN_OPERATION_MESSAGES: Record> = { en: { @@ -462,6 +471,14 @@ export const BUILTIN_OPERATION_MESSAGES: Record> 'Webhook redelivery is not available: no webhooks service is registered. @objectstack/plugin-webhooks registers it once its redelivery veto is installed, which needs the data engine and @objectstack/service-messaging; the boot log names the one that is missing.', webhook_redeliver_member_missing: 'Webhook redelivery is not available: the registered webhooks service does not implement handleRedeliver.', + approvals_act_service_unregistered: + 'Approval action pages are not available: no approvals service is registered. Register @objectstack/plugin-approvals to serve them.', + approvals_act_member_missing: + 'Approval action pages are not available: the registered approvals service does not implement handleActionPage.', + automation_hooks_service_unregistered: + 'Inbound automation hooks are not available: no trigger-api service is registered. The inbound-hook trigger (@objectstack/trigger-api) serves this route through that service; compose it on the environment that owns the flow.', + automation_hooks_member_missing: + 'Inbound automation hooks are not available: the registered trigger-api service does not implement handleInboundHook.', }, 'zh-CN': { permission_denied: '您没有执行此操作的权限,如需访问请联系管理员。', @@ -522,6 +539,12 @@ export const BUILTIN_OPERATION_MESSAGES: Record> webhook_redeliver_service_unregistered: 'Webhook 重新投递不可用:未注册 webhooks 服务。@objectstack/plugin-webhooks 在安装其重新投递否决器后注册该服务,这需要数据引擎和 @objectstack/service-messaging;启动日志会指出缺少的是哪一个。', webhook_redeliver_member_missing: 'Webhook 重新投递不可用:已注册的 webhooks 服务未实现 handleRedeliver。', + approvals_act_service_unregistered: + '审批操作页不可用:未注册 approvals 服务。请注册 @objectstack/plugin-approvals 来提供这些页面。', + approvals_act_member_missing: '审批操作页不可用:已注册的 approvals 服务未实现 handleActionPage。', + automation_hooks_service_unregistered: + '入站自动化钩子不可用:未注册 trigger-api 服务。入站钩子触发器(@objectstack/trigger-api)通过该服务提供此路由;请在拥有该流程的环境上组合它。', + automation_hooks_member_missing: '入站自动化钩子不可用:已注册的 trigger-api 服务未实现 handleInboundHook。', }, 'ja-JP': { permission_denied: 'この操作を実行する権限がありません。アクセスが必要な場合は管理者にお問い合わせください。', @@ -604,6 +627,14 @@ export const BUILTIN_OPERATION_MESSAGES: Record> 'Webhook の再配信は利用できません。webhooks サービスが登録されていません。@objectstack/plugin-webhooks は再配信の拒否フックがインストールされると登録します。それにはデータエンジンと @objectstack/service-messaging が必要です。不足しているものは起動ログに示されます。', webhook_redeliver_member_missing: 'Webhook の再配信は利用できません。登録されている webhooks サービスは handleRedeliver を実装していません。', + approvals_act_service_unregistered: + '承認アクションページは利用できません。approvals サービスが登録されていません。これらのページを提供するには @objectstack/plugin-approvals を登録してください。', + approvals_act_member_missing: + '承認アクションページは利用できません。登録されている approvals サービスは handleActionPage を実装していません。', + automation_hooks_service_unregistered: + '受信オートメーションフックは利用できません。trigger-api サービスが登録されていません。受信フックトリガー(@objectstack/trigger-api)がこのサービスを通じてこのルートを提供します。フローを所有する環境に組み込んでください。', + automation_hooks_member_missing: + '受信オートメーションフックは利用できません。登録されている trigger-api サービスは handleInboundHook を実装していません。', }, 'es-ES': { permission_denied: @@ -691,6 +722,14 @@ export const BUILTIN_OPERATION_MESSAGES: Record> 'El reenvío de webhooks no está disponible: no hay ningún servicio webhooks registrado. @objectstack/plugin-webhooks lo registra una vez instalado su veto de reenvío, que necesita el motor de datos y @objectstack/service-messaging; el registro de arranque indica cuál falta.', webhook_redeliver_member_missing: 'El reenvío de webhooks no está disponible: el servicio webhooks registrado no implementa handleRedeliver.', + approvals_act_service_unregistered: + 'Las páginas de acción de aprobación no están disponibles: no hay ningún servicio approvals registrado. Registre @objectstack/plugin-approvals para servirlas.', + approvals_act_member_missing: + 'Las páginas de acción de aprobación no están disponibles: el servicio approvals registrado no implementa handleActionPage.', + automation_hooks_service_unregistered: + 'Los ganchos de automatización entrantes no están disponibles: no hay ningún servicio trigger-api registrado. El disparador de ganchos entrantes (@objectstack/trigger-api) sirve esta ruta a través de ese servicio; compóngalo en el entorno al que pertenece el flujo.', + automation_hooks_member_missing: + 'Los ganchos de automatización entrantes no están disponibles: el servicio trigger-api registrado no implementa handleInboundHook.', }, };