@zlooks.cn/global-config-server 1.0.2 → 1.0.4
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.
- package/dist/command/index.js +2 -6
- package/dist/command/index.js.map +1 -1
- package/dist/mcp/global-config-provider.d.ts +8 -8
- package/dist/mcp/global-config-provider.d.ts.map +1 -1
- package/dist/mcp/global-config-provider.js +44 -39
- package/dist/mcp/global-config-provider.js.map +1 -1
- package/dist/messages/site-presentation/read.msg.d.ts +51 -0
- package/dist/messages/site-presentation/read.msg.d.ts.map +1 -0
- package/dist/messages/site-presentation/read.msg.js +6 -0
- package/dist/messages/site-presentation/read.msg.js.map +1 -0
- package/dist/messages/site-presentation/update.msg.d.ts +93 -0
- package/dist/messages/site-presentation/update.msg.d.ts.map +1 -0
- package/dist/messages/site-presentation/update.msg.js +6 -0
- package/dist/messages/site-presentation/update.msg.js.map +1 -0
- package/dist/messages/site-profile/read.msg.d.ts +37 -0
- package/dist/messages/site-profile/read.msg.d.ts.map +1 -0
- package/dist/messages/site-profile/read.msg.js +6 -0
- package/dist/messages/site-profile/read.msg.js.map +1 -0
- package/dist/messages/site-profile/update.msg.d.ts +65 -0
- package/dist/messages/site-profile/update.msg.d.ts.map +1 -0
- package/dist/messages/site-profile/update.msg.js +6 -0
- package/dist/messages/site-profile/update.msg.js.map +1 -0
- package/dist/models/read-site-presentation.model.d.ts +43 -0
- package/dist/models/read-site-presentation.model.d.ts.map +1 -0
- package/dist/models/read-site-presentation.model.js +12 -0
- package/dist/models/read-site-presentation.model.js.map +1 -0
- package/dist/models/read-site-profile.model.d.ts +33 -0
- package/dist/models/read-site-profile.model.d.ts.map +1 -0
- package/dist/models/read-site-profile.model.js +12 -0
- package/dist/models/read-site-profile.model.js.map +1 -0
- package/dist/models/update-site-presentation.model.d.ts +81 -0
- package/dist/models/update-site-presentation.model.d.ts.map +1 -0
- package/dist/models/update-site-presentation.model.js +18 -0
- package/dist/models/update-site-presentation.model.js.map +1 -0
- package/dist/models/update-site-profile.model.d.ts +61 -0
- package/dist/models/update-site-profile.model.d.ts.map +1 -0
- package/dist/models/update-site-profile.model.js +18 -0
- package/dist/models/update-site-profile.model.js.map +1 -0
- package/dist/services/application.service.d.ts +6 -2
- package/dist/services/application.service.d.ts.map +1 -1
- package/dist/services/application.service.js +13 -5
- package/dist/services/application.service.js.map +1 -1
- package/dist/services/config.service.js +1 -1
- package/dist/services/config.service.js.map +1 -1
- package/dist/services/global-config-runtime.service.d.ts +8 -148
- package/dist/services/global-config-runtime.service.d.ts.map +1 -1
- package/dist/services/global-config-runtime.service.js +3 -26
- package/dist/services/global-config-runtime.service.js.map +1 -1
- package/dist/services/global-config.boot.js +3 -0
- package/dist/services/global-config.boot.js.map +1 -1
- package/dist/services/mcp-provider.service.js +3 -6
- package/dist/services/mcp-provider.service.js.map +1 -1
- package/package.json +14 -12
package/dist/command/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
3
|
import { createRegistryDatabaseDataSource, registerDatabaseCommands, } from '@zlooks.cn/database-command';
|
|
4
|
-
import { runServiceCommand } from '@zlooks.cn/service-command';
|
|
4
|
+
import { reportServiceCommandFailure, runServiceCommand } from '@zlooks.cn/service-command';
|
|
5
5
|
import { globalConfigMigrations } from '../migrations/index.js';
|
|
6
6
|
import { SitePresentationEntity, SiteProfileEntity } from '../persistence/entities.js';
|
|
7
7
|
await runServiceCommand({
|
|
@@ -16,9 +16,5 @@ await runServiceCommand({
|
|
|
16
16
|
migrations: globalConfigMigrations,
|
|
17
17
|
});
|
|
18
18
|
},
|
|
19
|
-
}).catch(
|
|
20
|
-
function reportStartupFailure(error) {
|
|
21
|
-
process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
22
|
-
process.exitCode = 1;
|
|
23
|
-
}
|
|
19
|
+
}).catch(reportServiceCommandFailure);
|
|
24
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,gCAAgC,EAChC,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,gCAAgC,EAChC,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEvF,MAAM,iBAAiB,CAAC;IACtB,WAAW,EAAE,aAAa,CAAC,IAAI,GAAG,CAAC,QAAQ,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9D,mBAAmB,EAAE,KAAK;IAC1B,SAAS,CAAC,OAAO;QACf,wBAAwB,CAAC,OAAO,EAAE;YAChC,gBAAgB,EAAE,CAAC,OAAO,EAAE,EAAE,CAC5B,gCAAgC,CAAC,OAAO,EAAE;gBACxC,gBAAgB,EAAE,oCAAoC;gBACtD,QAAQ,EAAE,CAAC,sBAAsB,EAAE,iBAAiB,CAAC;aACtD,CAAC;YACJ,UAAU,EAAE,sBAAsB;SACnC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { type McpInvocationContext } from '@hile/mcp';
|
|
2
|
+
import { type GlobalConfigClient } from '@zlooks.cn/global-config-shared';
|
|
3
|
+
type GlobalConfigLocalClient = GlobalConfigClient<ReturnType<typeof microOptions>>;
|
|
4
|
+
export declare function createGlobalConfigMcpProvider(globalConfig: GlobalConfigLocalClient): import("@hile/mcp").McpProviderDefinition;
|
|
5
|
+
declare function microOptions(context: McpInvocationContext): Readonly<{
|
|
6
|
+
context: McpInvocationContext['executionContext'];
|
|
7
|
+
signal: AbortSignal;
|
|
8
|
+
}>;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=global-config-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-config-provider.d.ts","sourceRoot":"","sources":["../../src/mcp/global-config-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"global-config-provider.d.ts","sourceRoot":"","sources":["../../src/mcp/global-config-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,oBAAoB,EAE1B,MAAM,WAAW,CAAC;AACnB,OAAO,EAiBL,KAAK,kBAAkB,EAGxB,MAAM,iCAAiC,CAAC;AAEzC,KAAK,uBAAuB,GAAG,kBAAkB,CAC/C,UAAU,CAAC,OAAO,YAAY,CAAC,CAChC,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,YAAY,EAAE,uBAAuB,6CA+GlF;AAuBD,iBAAS,YAAY,CAAC,OAAO,EAAE,oBAAoB,GAAG,QAAQ,CAAC;IAC7D,OAAO,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;IAClD,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC,CAED"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { defineMcpPrompt, defineMcpProvider, defineMcpTool, } from '@hile/mcp';
|
|
2
|
-
import { GLOBAL_CONFIG_MCP_EDIT_PROFILE_PROMPT, GLOBAL_CONFIG_MCP_EDIT_PROMPT,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
name:
|
|
1
|
+
import { defineMcpPrompt, defineMcpProvider, defineMcpResource, defineMcpTool, } from '@hile/mcp';
|
|
2
|
+
import { GLOBAL_CONFIG_MCP_EDIT_PROFILE_PROMPT, GLOBAL_CONFIG_MCP_EDIT_PROMPT, GLOBAL_CONFIG_MCP_PRESENTATION_RESOURCE, GLOBAL_CONFIG_MCP_PRESENTATION_URI, GLOBAL_CONFIG_MCP_PROFILE_RESOURCE, GLOBAL_CONFIG_MCP_PROFILE_URI, GLOBAL_CONFIG_MCP_PROVIDER_ID, GLOBAL_CONFIG_MCP_READ_SCOPE, GLOBAL_CONFIG_MCP_UPDATE_PROFILE_TOOL, GLOBAL_CONFIG_MCP_UPDATE_TOOL, GLOBAL_CONFIG_MCP_WRITE_SCOPE, globalConfigMcpEditPromptSchema, globalConfigMcpProfileUpdateSchema, globalConfigMcpUpdateSchema, sitePresentationSnapshotSchema, siteProfileSnapshotSchema, } from '@zlooks.cn/global-config-shared';
|
|
3
|
+
export function createGlobalConfigMcpProvider(globalConfig) {
|
|
4
|
+
const readPresentation = defineMcpResource({
|
|
5
|
+
kind: 'static',
|
|
6
|
+
name: GLOBAL_CONFIG_MCP_PRESENTATION_RESOURCE,
|
|
7
|
+
uri: GLOBAL_CONFIG_MCP_PRESENTATION_URI,
|
|
7
8
|
title: '读取站点展示配置',
|
|
8
|
-
description: '读取当前完整的站点展示配置快照及 revision
|
|
9
|
-
|
|
10
|
-
outputSchema: sitePresentationSnapshotSchema,
|
|
11
|
-
annotations: { readOnlyHint: true, idempotentHint: true, destructiveHint: false },
|
|
9
|
+
description: '读取当前完整的站点展示配置快照及 revision,包括站点身份、链接分组、版权、备案和背景资源等公开字段。应用应在更新前读取该资源,以最新快照保留未要求变更的字段并取得 expectedRevision。',
|
|
10
|
+
mimeType: 'application/json',
|
|
12
11
|
access: { scopes: [GLOBAL_CONFIG_MCP_READ_SCOPE] },
|
|
13
|
-
|
|
14
|
-
}, async (_input, context) => cancellableRead(context.signal, operations.readPresentation));
|
|
12
|
+
}, async (uri, context) => resourceResult(uri.toString(), await cancellableRead(context, (options) => globalConfig.readPresentation(options))));
|
|
15
13
|
const updatePresentation = defineMcpTool({
|
|
16
14
|
name: GLOBAL_CONFIG_MCP_UPDATE_TOOL,
|
|
17
15
|
title: '修改站点展示配置',
|
|
@@ -23,10 +21,7 @@ export function createGlobalConfigMcpProvider(operations) {
|
|
|
23
21
|
execution: { timeoutMs: 10_000, retry: 'never' },
|
|
24
22
|
}, async (input, context) => {
|
|
25
23
|
context.signal.throwIfAborted();
|
|
26
|
-
const snapshot = await
|
|
27
|
-
...input,
|
|
28
|
-
updatedBy: actorFrom(context.principal),
|
|
29
|
-
});
|
|
24
|
+
const snapshot = await globalConfig.updatePresentation({ ...input, actor: actorFrom(context.principal) }, microOptions(context));
|
|
30
25
|
await bestEffortUpdateNotice(context.emit, {
|
|
31
26
|
event: 'global-config.site-presentation.updated',
|
|
32
27
|
revision: snapshot.revision,
|
|
@@ -34,16 +29,15 @@ export function createGlobalConfigMcpProvider(operations) {
|
|
|
34
29
|
});
|
|
35
30
|
return result(snapshot, `站点展示配置已更新到 revision ${snapshot.revision}`);
|
|
36
31
|
});
|
|
37
|
-
const readProfile =
|
|
38
|
-
|
|
32
|
+
const readProfile = defineMcpResource({
|
|
33
|
+
kind: 'static',
|
|
34
|
+
name: GLOBAL_CONFIG_MCP_PROFILE_RESOURCE,
|
|
35
|
+
uri: GLOBAL_CONFIG_MCP_PROFILE_URI,
|
|
39
36
|
title: '读取站点资料',
|
|
40
|
-
description: '读取当前完整的语义站点资料快照及 revision
|
|
41
|
-
|
|
42
|
-
outputSchema: siteProfileSnapshotSchema,
|
|
43
|
-
annotations: { readOnlyHint: true, idempotentHint: true, destructiveHint: false },
|
|
37
|
+
description: '读取当前完整的语义站点资料快照及 revision,包括主体资料、长期关注主题、重点链接和审计信息。应用应在更新前读取该资源,以最新快照保留未要求变更的字段并取得 expectedRevision。',
|
|
38
|
+
mimeType: 'application/json',
|
|
44
39
|
access: { scopes: [GLOBAL_CONFIG_MCP_READ_SCOPE] },
|
|
45
|
-
|
|
46
|
-
}, async (_input, context) => cancellableRead(context.signal, operations.readProfile));
|
|
40
|
+
}, async (uri, context) => resourceResult(uri.toString(), await cancellableRead(context, (options) => globalConfig.readProfile(options))));
|
|
47
41
|
const updateProfile = defineMcpTool({
|
|
48
42
|
name: GLOBAL_CONFIG_MCP_UPDATE_PROFILE_TOOL,
|
|
49
43
|
title: '修改站点资料',
|
|
@@ -55,10 +49,7 @@ export function createGlobalConfigMcpProvider(operations) {
|
|
|
55
49
|
execution: { timeoutMs: 10_000, retry: 'never' },
|
|
56
50
|
}, async (input, context) => {
|
|
57
51
|
context.signal.throwIfAborted();
|
|
58
|
-
const snapshot = await
|
|
59
|
-
...input,
|
|
60
|
-
updatedBy: actorFrom(context.principal),
|
|
61
|
-
});
|
|
52
|
+
const snapshot = await globalConfig.updateProfile({ ...input, actor: actorFrom(context.principal) }, microOptions(context));
|
|
62
53
|
await bestEffortUpdateNotice(context.emit, {
|
|
63
54
|
event: 'global-config.site-profile.updated',
|
|
64
55
|
revision: snapshot.revision,
|
|
@@ -90,11 +81,13 @@ export function createGlobalConfigMcpProvider(operations) {
|
|
|
90
81
|
id: GLOBAL_CONFIG_MCP_PROVIDER_ID,
|
|
91
82
|
displayName: '全局配置',
|
|
92
83
|
tools: {
|
|
93
|
-
[GLOBAL_CONFIG_MCP_READ_TOOL]: readPresentation,
|
|
94
84
|
[GLOBAL_CONFIG_MCP_UPDATE_TOOL]: updatePresentation,
|
|
95
|
-
[GLOBAL_CONFIG_MCP_READ_PROFILE_TOOL]: readProfile,
|
|
96
85
|
[GLOBAL_CONFIG_MCP_UPDATE_PROFILE_TOOL]: updateProfile,
|
|
97
86
|
},
|
|
87
|
+
resources: {
|
|
88
|
+
[GLOBAL_CONFIG_MCP_PRESENTATION_RESOURCE]: readPresentation,
|
|
89
|
+
[GLOBAL_CONFIG_MCP_PROFILE_RESOURCE]: readProfile,
|
|
90
|
+
},
|
|
98
91
|
prompts: {
|
|
99
92
|
[GLOBAL_CONFIG_MCP_EDIT_PROMPT]: editPresentation,
|
|
100
93
|
[GLOBAL_CONFIG_MCP_EDIT_PROFILE_PROMPT]: editProfile,
|
|
@@ -109,11 +102,14 @@ async function bestEffortUpdateNotice(emit, data) {
|
|
|
109
102
|
// Observability must not turn a committed configuration update into a reported failure.
|
|
110
103
|
}
|
|
111
104
|
}
|
|
112
|
-
async function cancellableRead(
|
|
113
|
-
signal.throwIfAborted();
|
|
114
|
-
const snapshot = await read();
|
|
115
|
-
signal.throwIfAborted();
|
|
116
|
-
return
|
|
105
|
+
async function cancellableRead(context, read) {
|
|
106
|
+
context.signal.throwIfAborted();
|
|
107
|
+
const snapshot = await read(microOptions(context));
|
|
108
|
+
context.signal.throwIfAborted();
|
|
109
|
+
return snapshot;
|
|
110
|
+
}
|
|
111
|
+
function microOptions(context) {
|
|
112
|
+
return { context: context.executionContext, signal: context.signal };
|
|
117
113
|
}
|
|
118
114
|
function result(snapshot, message) {
|
|
119
115
|
return {
|
|
@@ -121,6 +117,15 @@ function result(snapshot, message) {
|
|
|
121
117
|
structuredContent: snapshot,
|
|
122
118
|
};
|
|
123
119
|
}
|
|
120
|
+
function resourceResult(uri, snapshot) {
|
|
121
|
+
return {
|
|
122
|
+
contents: [{
|
|
123
|
+
uri,
|
|
124
|
+
mimeType: 'application/json',
|
|
125
|
+
text: JSON.stringify(snapshot),
|
|
126
|
+
}],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
124
129
|
function promptResult(description, text) {
|
|
125
130
|
return {
|
|
126
131
|
description,
|
|
@@ -129,24 +134,24 @@ function promptResult(description, text) {
|
|
|
129
134
|
}
|
|
130
135
|
function editPresentationMessage(changeRequest) {
|
|
131
136
|
return `请按以下要求修改站点展示配置:${changeRequest}
|
|
132
|
-
1.
|
|
137
|
+
1. 先读取 Resource ${GLOBAL_CONFIG_MCP_PRESENTATION_URI} 获取当前完整配置和 revision;不得凭旧上下文构造更新。
|
|
133
138
|
2. 只修改 identity、linkGroups、legal 中用户明确要求的字段,保留所有未提及字段。backgroundVideoUrl、logoUrl、faviconUrl 只能是站内绝对路径或 HTTP/HTTPS URL;backgroundVideoUrl 设为 null 表示关闭动态背景。legal 会同步投影到首页和博客页脚;registrations 必须使用 id、kind、number、可选 verificationUrl/iconUrl 的结构。
|
|
134
139
|
3. 修改备案信息时,number、kind 和 verificationUrl 必须来自用户提供或已核验的权威来源;缺失的事实不得推断、猜测或编造。
|
|
135
140
|
4. 不得加入密钥、令牌、任意 HTML、脚本或未经核验的法律登记信息。
|
|
136
141
|
5. 向用户展示字段级变更摘要和即将提交的完整配置,并在写入前取得明确确认。
|
|
137
142
|
6. 确认后调用 global-config.${GLOBAL_CONFIG_MCP_UPDATE_TOOL},传入完整 value 和刚读取到的 expectedRevision。
|
|
138
143
|
7. 若版本冲突,重新读取最新快照,只重新应用原始变更要求并再次确认;不得覆盖并发修改。
|
|
139
|
-
8.
|
|
144
|
+
8. 更新成功后再次读取 Resource ${GLOBAL_CONFIG_MCP_PRESENTATION_URI},核对 revision 和目标字段,再报告结果。`;
|
|
140
145
|
}
|
|
141
146
|
function editProfileMessage(changeRequest) {
|
|
142
147
|
return `请按以下要求修改站点资料:${changeRequest}
|
|
143
|
-
1.
|
|
148
|
+
1. 先读取 Resource ${GLOBAL_CONFIG_MCP_PROFILE_URI} 获取当前完整配置和 revision;不得凭旧上下文构造更新。
|
|
144
149
|
2. 只修改用户明确要求的 profile、topics、featuredLinks,保留所有未提及字段。profile 表达主体资料,topics 表达长期关注主题,featuredLinks 表达重点目的地;不得加入 hero、orbit、card、布局、样式或组件配置。
|
|
145
150
|
3. 不得加入密钥、令牌、任意 HTML、脚本或未经用户提供的个人资料。
|
|
146
151
|
4. 向用户展示字段级变更摘要和即将提交的完整配置,并在写入前取得明确确认。
|
|
147
152
|
5. 确认后调用 global-config.${GLOBAL_CONFIG_MCP_UPDATE_PROFILE_TOOL},传入完整 value 和刚读取到的 expectedRevision。
|
|
148
153
|
6. 若版本冲突,重新读取最新快照,只重新应用原始变更要求并再次确认;不得覆盖并发修改。
|
|
149
|
-
7.
|
|
154
|
+
7. 更新成功后再次读取 Resource ${GLOBAL_CONFIG_MCP_PROFILE_URI},核对 revision 和目标字段,再报告结果。`;
|
|
150
155
|
}
|
|
151
156
|
function actorFrom(principal) {
|
|
152
157
|
if (!principal)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-config-provider.js","sourceRoot":"","sources":["../../src/mcp/global-config-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,aAAa,GAGd,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,qCAAqC,EACrC,6BAA6B,EAC7B,6BAA6B,EAC7B,
|
|
1
|
+
{"version":3,"file":"global-config-provider.js","sourceRoot":"","sources":["../../src/mcp/global-config-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,GAGd,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,qCAAqC,EACrC,6BAA6B,EAC7B,uCAAuC,EACvC,kCAAkC,EAClC,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,EAC5B,qCAAqC,EACrC,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,kCAAkC,EAClC,2BAA2B,EAC3B,8BAA8B,EAC9B,yBAAyB,GAI1B,MAAM,iCAAiC,CAAC;AAMzC,MAAM,UAAU,6BAA6B,CAAC,YAAqC;IACjF,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;QACzC,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,uCAAuC;QAC7C,GAAG,EAAE,kCAAkC;QACvC,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,yGAAyG;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ACH,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;aAC/B,CAAC;KACH,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,WAAmB,EAAE,IAAY;IACrD,OAAO;QACL,WAAW;QACX,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,EAAE,CAAC;KAChF,CAAC;AACJ,CAAC;AAED,SAAS,uBAAuB,CAAC,aAAqB;IACpD,OAAO,kBAAkB,aAAa;kBACtB,kCAAkC;;;;;yBAK3B,6BAA6B;;wBAE9B,kCAAkC,2BAA2B,CAAC;AACtF,CAAC;AAED,SAAS,kBAAkB,CAAC,aAAqB;IAC/C,OAAO,gBAAgB,aAAa;kBACpB,6BAA6B;;;;yBAItB,qCAAqC;;wBAEtC,6BAA6B,2BAA2B,CAAC;AACjF,CAAC;AAED,SAAS,SAAS,CAAC,SAAmC;IACpD,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACtE,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,OAAO,CAAC;IACzD,MAAM,KAAK,GAAG,OAAO,QAAQ,EAAE,CAAC;IAChC,IAAI,KAAK,CAAC,MAAM,GAAG,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IAC9E,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const _default: import("@hile/micro").MicroContractMessage<{
|
|
2
|
+
readonly path: "/site-presentation/read";
|
|
3
|
+
readonly input: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
4
|
+
readonly output: import("zod").ZodObject<{
|
|
5
|
+
schemaVersion: import("zod").ZodLiteral<2>;
|
|
6
|
+
revision: import("zod").ZodNumber;
|
|
7
|
+
value: import("zod").ZodObject<{
|
|
8
|
+
identity: import("zod").ZodObject<{
|
|
9
|
+
name: import("zod").ZodString;
|
|
10
|
+
homeHref: import("zod").ZodString;
|
|
11
|
+
backgroundVideoUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>>;
|
|
12
|
+
logoUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
13
|
+
faviconUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
14
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
}, import("zod/v4/core").$strict>;
|
|
16
|
+
linkGroups: import("zod").ZodArray<import("zod").ZodObject<{
|
|
17
|
+
id: import("zod").ZodString;
|
|
18
|
+
label: import("zod").ZodString;
|
|
19
|
+
links: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
20
|
+
id: import("zod").ZodString;
|
|
21
|
+
label: import("zod").ZodString;
|
|
22
|
+
href: import("zod").ZodString;
|
|
23
|
+
external: import("zod").ZodLiteral<false>;
|
|
24
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
25
|
+
id: import("zod").ZodString;
|
|
26
|
+
label: import("zod").ZodString;
|
|
27
|
+
href: import("zod").ZodURL;
|
|
28
|
+
external: import("zod").ZodLiteral<true>;
|
|
29
|
+
}, import("zod/v4/core").$strict>], "external">>;
|
|
30
|
+
}, import("zod/v4/core").$strict>>;
|
|
31
|
+
legal: import("zod").ZodObject<{
|
|
32
|
+
copyright: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
+
registrations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
34
|
+
id: import("zod").ZodString;
|
|
35
|
+
kind: import("zod").ZodEnum<{
|
|
36
|
+
icp: "icp";
|
|
37
|
+
other: "other";
|
|
38
|
+
"public-security": "public-security";
|
|
39
|
+
}>;
|
|
40
|
+
number: import("zod").ZodString;
|
|
41
|
+
verificationUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
42
|
+
iconUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
43
|
+
}, import("zod/v4/core").$strict>>;
|
|
44
|
+
}, import("zod/v4/core").$strict>;
|
|
45
|
+
}, import("zod/v4/core").$strict>;
|
|
46
|
+
updatedAt: import("zod").ZodISODateTime;
|
|
47
|
+
updatedBy: import("zod").ZodString;
|
|
48
|
+
}, import("zod/v4/core").$strict>;
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
|
51
|
+
//# sourceMappingURL=read.msg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.msg.d.ts","sourceRoot":"","sources":["../../../src/messages/site-presentation/read.msg.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { loadModel } from '@hile/model';
|
|
2
|
+
import { defineMicroMessage } from '@hile/micro';
|
|
3
|
+
import { globalConfigMicroContract } from '@zlooks.cn/global-config-shared';
|
|
4
|
+
import readSitePresentationModel from '../../models/read-site-presentation.model.js';
|
|
5
|
+
export default defineMicroMessage(globalConfigMicroContract.operations.readPresentation, ({ data, invocation }) => loadModel(readSitePresentationModel, data, invocation));
|
|
6
|
+
//# sourceMappingURL=read.msg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.msg.js","sourceRoot":"","sources":["../../../src/messages/site-presentation/read.msg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,yBAAyB,MAAM,8CAA8C,CAAC;AAErF,eAAe,kBAAkB,CAC/B,yBAAyB,CAAC,UAAU,CAAC,gBAAgB,EACrD,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,yBAAyB,EAAE,IAAI,EAAE,UAAU,CAAC,CACjF,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const _default: import("@hile/micro").MicroContractMessage<{
|
|
2
|
+
readonly path: "/site-presentation/update";
|
|
3
|
+
readonly input: import("zod").ZodObject<{
|
|
4
|
+
expectedRevision: import("zod").ZodNumber;
|
|
5
|
+
value: import("zod").ZodObject<{
|
|
6
|
+
identity: import("zod").ZodObject<{
|
|
7
|
+
name: import("zod").ZodString;
|
|
8
|
+
homeHref: import("zod").ZodString;
|
|
9
|
+
backgroundVideoUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>>;
|
|
10
|
+
logoUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
11
|
+
faviconUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
12
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
}, import("zod/v4/core").$strict>;
|
|
14
|
+
linkGroups: import("zod").ZodArray<import("zod").ZodObject<{
|
|
15
|
+
id: import("zod").ZodString;
|
|
16
|
+
label: import("zod").ZodString;
|
|
17
|
+
links: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
18
|
+
id: import("zod").ZodString;
|
|
19
|
+
label: import("zod").ZodString;
|
|
20
|
+
href: import("zod").ZodString;
|
|
21
|
+
external: import("zod").ZodLiteral<false>;
|
|
22
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
23
|
+
id: import("zod").ZodString;
|
|
24
|
+
label: import("zod").ZodString;
|
|
25
|
+
href: import("zod").ZodURL;
|
|
26
|
+
external: import("zod").ZodLiteral<true>;
|
|
27
|
+
}, import("zod/v4/core").$strict>], "external">>;
|
|
28
|
+
}, import("zod/v4/core").$strict>>;
|
|
29
|
+
legal: import("zod").ZodObject<{
|
|
30
|
+
copyright: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
registrations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
32
|
+
id: import("zod").ZodString;
|
|
33
|
+
kind: import("zod").ZodEnum<{
|
|
34
|
+
icp: "icp";
|
|
35
|
+
other: "other";
|
|
36
|
+
"public-security": "public-security";
|
|
37
|
+
}>;
|
|
38
|
+
number: import("zod").ZodString;
|
|
39
|
+
verificationUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
40
|
+
iconUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
41
|
+
}, import("zod/v4/core").$strict>>;
|
|
42
|
+
}, import("zod/v4/core").$strict>;
|
|
43
|
+
}, import("zod/v4/core").$strict>;
|
|
44
|
+
actor: import("zod").ZodString;
|
|
45
|
+
}, import("zod/v4/core").$strict>;
|
|
46
|
+
readonly output: import("zod").ZodObject<{
|
|
47
|
+
schemaVersion: import("zod").ZodLiteral<2>;
|
|
48
|
+
revision: import("zod").ZodNumber;
|
|
49
|
+
value: import("zod").ZodObject<{
|
|
50
|
+
identity: import("zod").ZodObject<{
|
|
51
|
+
name: import("zod").ZodString;
|
|
52
|
+
homeHref: import("zod").ZodString;
|
|
53
|
+
backgroundVideoUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>>;
|
|
54
|
+
logoUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
55
|
+
faviconUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
56
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
57
|
+
}, import("zod/v4/core").$strict>;
|
|
58
|
+
linkGroups: import("zod").ZodArray<import("zod").ZodObject<{
|
|
59
|
+
id: import("zod").ZodString;
|
|
60
|
+
label: import("zod").ZodString;
|
|
61
|
+
links: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
62
|
+
id: import("zod").ZodString;
|
|
63
|
+
label: import("zod").ZodString;
|
|
64
|
+
href: import("zod").ZodString;
|
|
65
|
+
external: import("zod").ZodLiteral<false>;
|
|
66
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
67
|
+
id: import("zod").ZodString;
|
|
68
|
+
label: import("zod").ZodString;
|
|
69
|
+
href: import("zod").ZodURL;
|
|
70
|
+
external: import("zod").ZodLiteral<true>;
|
|
71
|
+
}, import("zod/v4/core").$strict>], "external">>;
|
|
72
|
+
}, import("zod/v4/core").$strict>>;
|
|
73
|
+
legal: import("zod").ZodObject<{
|
|
74
|
+
copyright: import("zod").ZodOptional<import("zod").ZodString>;
|
|
75
|
+
registrations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
76
|
+
id: import("zod").ZodString;
|
|
77
|
+
kind: import("zod").ZodEnum<{
|
|
78
|
+
icp: "icp";
|
|
79
|
+
other: "other";
|
|
80
|
+
"public-security": "public-security";
|
|
81
|
+
}>;
|
|
82
|
+
number: import("zod").ZodString;
|
|
83
|
+
verificationUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
84
|
+
iconUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
85
|
+
}, import("zod/v4/core").$strict>>;
|
|
86
|
+
}, import("zod/v4/core").$strict>;
|
|
87
|
+
}, import("zod/v4/core").$strict>;
|
|
88
|
+
updatedAt: import("zod").ZodISODateTime;
|
|
89
|
+
updatedBy: import("zod").ZodString;
|
|
90
|
+
}, import("zod/v4/core").$strict>;
|
|
91
|
+
}>;
|
|
92
|
+
export default _default;
|
|
93
|
+
//# sourceMappingURL=update.msg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.msg.d.ts","sourceRoot":"","sources":["../../../src/messages/site-presentation/update.msg.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { loadModel } from '@hile/model';
|
|
2
|
+
import { defineMicroMessage } from '@hile/micro';
|
|
3
|
+
import { globalConfigMicroContract } from '@zlooks.cn/global-config-shared';
|
|
4
|
+
import updateSitePresentationModel from '../../models/update-site-presentation.model.js';
|
|
5
|
+
export default defineMicroMessage(globalConfigMicroContract.operations.updatePresentation, ({ data, invocation }) => loadModel(updateSitePresentationModel, data, invocation));
|
|
6
|
+
//# sourceMappingURL=update.msg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.msg.js","sourceRoot":"","sources":["../../../src/messages/site-presentation/update.msg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,2BAA2B,MAAM,gDAAgD,CAAC;AAEzF,eAAe,kBAAkB,CAC/B,yBAAyB,CAAC,UAAU,CAAC,kBAAkB,EACvD,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,2BAA2B,EAAE,IAAI,EAAE,UAAU,CAAC,CACnF,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: import("@hile/micro").MicroContractMessage<{
|
|
2
|
+
readonly path: "/site-profile/read";
|
|
3
|
+
readonly input: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
4
|
+
readonly output: import("zod").ZodObject<{
|
|
5
|
+
schemaVersion: import("zod").ZodLiteral<1>;
|
|
6
|
+
revision: import("zod").ZodNumber;
|
|
7
|
+
value: import("zod").ZodObject<{
|
|
8
|
+
profile: import("zod").ZodObject<{
|
|
9
|
+
displayName: import("zod").ZodString;
|
|
10
|
+
avatarUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
11
|
+
headline: import("zod").ZodString;
|
|
12
|
+
biography: import("zod").ZodString;
|
|
13
|
+
}, import("zod/v4/core").$strict>;
|
|
14
|
+
topics: import("zod").ZodArray<import("zod").ZodObject<{
|
|
15
|
+
id: import("zod").ZodString;
|
|
16
|
+
name: import("zod").ZodString;
|
|
17
|
+
summary: import("zod").ZodString;
|
|
18
|
+
href: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
19
|
+
}, import("zod/v4/core").$strict>>;
|
|
20
|
+
featuredLinks: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
21
|
+
id: import("zod").ZodString;
|
|
22
|
+
label: import("zod").ZodString;
|
|
23
|
+
href: import("zod").ZodString;
|
|
24
|
+
external: import("zod").ZodLiteral<false>;
|
|
25
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
26
|
+
id: import("zod").ZodString;
|
|
27
|
+
label: import("zod").ZodString;
|
|
28
|
+
href: import("zod").ZodURL;
|
|
29
|
+
external: import("zod").ZodLiteral<true>;
|
|
30
|
+
}, import("zod/v4/core").$strict>], "external">>;
|
|
31
|
+
}, import("zod/v4/core").$strict>;
|
|
32
|
+
updatedAt: import("zod").ZodISODateTime;
|
|
33
|
+
updatedBy: import("zod").ZodString;
|
|
34
|
+
}, import("zod/v4/core").$strict>;
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
37
|
+
//# sourceMappingURL=read.msg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.msg.d.ts","sourceRoot":"","sources":["../../../src/messages/site-profile/read.msg.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { loadModel } from '@hile/model';
|
|
2
|
+
import { defineMicroMessage } from '@hile/micro';
|
|
3
|
+
import { globalConfigMicroContract } from '@zlooks.cn/global-config-shared';
|
|
4
|
+
import readSiteProfileModel from '../../models/read-site-profile.model.js';
|
|
5
|
+
export default defineMicroMessage(globalConfigMicroContract.operations.readProfile, ({ data, invocation }) => loadModel(readSiteProfileModel, data, invocation));
|
|
6
|
+
//# sourceMappingURL=read.msg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.msg.js","sourceRoot":"","sources":["../../../src/messages/site-profile/read.msg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,oBAAoB,MAAM,yCAAyC,CAAC;AAE3E,eAAe,kBAAkB,CAC/B,yBAAyB,CAAC,UAAU,CAAC,WAAW,EAChD,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,oBAAoB,EAAE,IAAI,EAAE,UAAU,CAAC,CAC5E,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare const _default: import("@hile/micro").MicroContractMessage<{
|
|
2
|
+
readonly path: "/site-profile/update";
|
|
3
|
+
readonly input: import("zod").ZodObject<{
|
|
4
|
+
expectedRevision: import("zod").ZodNumber;
|
|
5
|
+
value: import("zod").ZodObject<{
|
|
6
|
+
profile: import("zod").ZodObject<{
|
|
7
|
+
displayName: import("zod").ZodString;
|
|
8
|
+
avatarUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
9
|
+
headline: import("zod").ZodString;
|
|
10
|
+
biography: import("zod").ZodString;
|
|
11
|
+
}, import("zod/v4/core").$strict>;
|
|
12
|
+
topics: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13
|
+
id: import("zod").ZodString;
|
|
14
|
+
name: import("zod").ZodString;
|
|
15
|
+
summary: import("zod").ZodString;
|
|
16
|
+
href: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
17
|
+
}, import("zod/v4/core").$strict>>;
|
|
18
|
+
featuredLinks: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
19
|
+
id: import("zod").ZodString;
|
|
20
|
+
label: import("zod").ZodString;
|
|
21
|
+
href: import("zod").ZodString;
|
|
22
|
+
external: import("zod").ZodLiteral<false>;
|
|
23
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
24
|
+
id: import("zod").ZodString;
|
|
25
|
+
label: import("zod").ZodString;
|
|
26
|
+
href: import("zod").ZodURL;
|
|
27
|
+
external: import("zod").ZodLiteral<true>;
|
|
28
|
+
}, import("zod/v4/core").$strict>], "external">>;
|
|
29
|
+
}, import("zod/v4/core").$strict>;
|
|
30
|
+
actor: import("zod").ZodString;
|
|
31
|
+
}, import("zod/v4/core").$strict>;
|
|
32
|
+
readonly output: import("zod").ZodObject<{
|
|
33
|
+
schemaVersion: import("zod").ZodLiteral<1>;
|
|
34
|
+
revision: import("zod").ZodNumber;
|
|
35
|
+
value: import("zod").ZodObject<{
|
|
36
|
+
profile: import("zod").ZodObject<{
|
|
37
|
+
displayName: import("zod").ZodString;
|
|
38
|
+
avatarUrl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
39
|
+
headline: import("zod").ZodString;
|
|
40
|
+
biography: import("zod").ZodString;
|
|
41
|
+
}, import("zod/v4/core").$strict>;
|
|
42
|
+
topics: import("zod").ZodArray<import("zod").ZodObject<{
|
|
43
|
+
id: import("zod").ZodString;
|
|
44
|
+
name: import("zod").ZodString;
|
|
45
|
+
summary: import("zod").ZodString;
|
|
46
|
+
href: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodURL]>>;
|
|
47
|
+
}, import("zod/v4/core").$strict>>;
|
|
48
|
+
featuredLinks: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
49
|
+
id: import("zod").ZodString;
|
|
50
|
+
label: import("zod").ZodString;
|
|
51
|
+
href: import("zod").ZodString;
|
|
52
|
+
external: import("zod").ZodLiteral<false>;
|
|
53
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
54
|
+
id: import("zod").ZodString;
|
|
55
|
+
label: import("zod").ZodString;
|
|
56
|
+
href: import("zod").ZodURL;
|
|
57
|
+
external: import("zod").ZodLiteral<true>;
|
|
58
|
+
}, import("zod/v4/core").$strict>], "external">>;
|
|
59
|
+
}, import("zod/v4/core").$strict>;
|
|
60
|
+
updatedAt: import("zod").ZodISODateTime;
|
|
61
|
+
updatedBy: import("zod").ZodString;
|
|
62
|
+
}, import("zod/v4/core").$strict>;
|
|
63
|
+
}>;
|
|
64
|
+
export default _default;
|
|
65
|
+
//# sourceMappingURL=update.msg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.msg.d.ts","sourceRoot":"","sources":["../../../src/messages/site-profile/update.msg.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { loadModel } from '@hile/model';
|
|
2
|
+
import { defineMicroMessage } from '@hile/micro';
|
|
3
|
+
import { globalConfigMicroContract } from '@zlooks.cn/global-config-shared';
|
|
4
|
+
import updateSiteProfileModel from '../../models/update-site-profile.model.js';
|
|
5
|
+
export default defineMicroMessage(globalConfigMicroContract.operations.updateProfile, ({ data, invocation }) => loadModel(updateSiteProfileModel, data, invocation));
|
|
6
|
+
//# sourceMappingURL=update.msg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.msg.js","sourceRoot":"","sources":["../../../src/messages/site-profile/update.msg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,sBAAsB,MAAM,2CAA2C,CAAC;AAE/E,eAAe,kBAAkB,CAC/B,yBAAyB,CAAC,UAAU,CAAC,aAAa,EAClD,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,sBAAsB,EAAE,IAAI,EAAE,UAAU,CAAC,CAC9E,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: import("@hile/model").ModelDefinition<Record<string, never>, Readonly<{
|
|
2
|
+
schemaVersion: 2;
|
|
3
|
+
revision: number;
|
|
4
|
+
value: {
|
|
5
|
+
identity: {
|
|
6
|
+
name: string;
|
|
7
|
+
homeHref: string;
|
|
8
|
+
backgroundVideoUrl?: string | null | undefined;
|
|
9
|
+
logoUrl?: string | undefined;
|
|
10
|
+
faviconUrl?: string | undefined;
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
linkGroups: {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
links: ({
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
href: string;
|
|
20
|
+
external: false;
|
|
21
|
+
} | {
|
|
22
|
+
id: string;
|
|
23
|
+
label: string;
|
|
24
|
+
href: string;
|
|
25
|
+
external: true;
|
|
26
|
+
})[];
|
|
27
|
+
}[];
|
|
28
|
+
legal: {
|
|
29
|
+
copyright?: string | undefined;
|
|
30
|
+
registrations: {
|
|
31
|
+
id: string;
|
|
32
|
+
kind: "icp" | "other" | "public-security";
|
|
33
|
+
number: string;
|
|
34
|
+
verificationUrl?: string | undefined;
|
|
35
|
+
iconUrl?: string | undefined;
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
updatedBy: string;
|
|
41
|
+
}>>;
|
|
42
|
+
export default _default;
|
|
43
|
+
//# sourceMappingURL=read-site-presentation.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-site-presentation.model.d.ts","sourceRoot":"","sources":["../../src/models/read-site-presentation.model.ts"],"names":[],"mappings":""}
|