@h-ai/serv 1.0.0-beta.22 → 1.0.0-beta.23
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/README.en.md +1 -1
- package/README.ja.md +1 -1
- package/README.md +1 -1
- package/package.json +16 -16
package/README.en.md
CHANGED
|
@@ -256,7 +256,7 @@ Set `transport.maxPlaintextBytes` for both request and response JSON plaintext,
|
|
|
256
256
|
|
|
257
257
|
Ordinary routes retain `transport.maxPlaintextBytes` (auto/omitted: 1 MiB). Declare Feedback report intake, evidence, attachments and ZIP download capacity separately using `routePlaintextBytes` and `feedback.budget.maxTransportBytes`; `*` matches one complete path segment and explicit host route values take precedence. Handshakes, adapter-node and proxies use the maximum route capacity. HTTP adapters admit at most 2 explicitly declared material requests above 1 MiB and a separate 16 ordinary business requests, releasing admission after the entire response or failure. Busy admission returns 503 / `hai:crypto:072`; business writes are not automatically replayed.
|
|
258
258
|
|
|
259
|
-
Serv/Kit return an encrypted HTTP 400 for an out-of-window request after validating request binding, signature and MAC. The client throws `TransportTimeError` (`hai:crypto:071`), displays the server’s UTC time at validation, and asks the user to enable automatic synchronization or set the device time manually before refreshing. `serverTime` is Unix milliseconds.
|
|
259
|
+
Serv/Kit return an encrypted HTTP 400 for an out-of-window request after validating request binding, signature and MAC. The client throws `TransportTimeError` (`hai:crypto:071`), displays the server’s UTC time at validation, and asks the user to enable automatic synchronization or set the device time manually before refreshing. `serverTime` is Unix milliseconds. `api-client` maps the error to `VALIDATION_FAILED` and preserves `cause.transportCode` and `cause.serverTime`.
|
|
260
260
|
|
|
261
261
|
### Token authentication (`iam` / `refreshCookie`)
|
|
262
262
|
|
package/README.ja.md
CHANGED
|
@@ -256,7 +256,7 @@ const app = serv.createApp({
|
|
|
256
256
|
|
|
257
257
|
通常業務は `transport.maxPlaintextBytes`(auto/省略は 1 MiB)を維持します。Feedback の受理・証拠・添付・ZIP ダウンロードは `routePlaintextBytes` と `feedback.budget.maxTransportBytes` で別途宣言します。`*` は完全な1パス区間のみ一致し、ホストの明示値が優先です。ハンドシェイク、adapter-node、プロキシは経路の最大値を使用します。HTTP アダプターは個別宣言された 1 MiB 超の資料経路を最大2件、通常業務を別枠で16件まで許可し、応答完了・失敗時に解放します。混雑は503 / `hai:crypto:072` を返し、業務書込は自動再送しません。
|
|
258
258
|
|
|
259
|
-
Serv/Kit は要求の結合、署名、MAC を検証した後、時刻の許容範囲を超えた要求に暗号化した HTTP 400 を返します。クライアントは `TransportTimeError`(`hai:crypto:071`)をスローし、検証時のサーバー UTC 時刻を表示して、自動時刻同期を有効にするか手動で時刻を設定してから再読み込みするよう案内します。`serverTime` は Unix
|
|
259
|
+
Serv/Kit は要求の結合、署名、MAC を検証した後、時刻の許容範囲を超えた要求に暗号化した HTTP 400 を返します。クライアントは `TransportTimeError`(`hai:crypto:071`)をスローし、検証時のサーバー UTC 時刻を表示して、自動時刻同期を有効にするか手動で時刻を設定してから再読み込みするよう案内します。`serverTime` は Unix ミリ秒です。`api-client` は `VALIDATION_FAILED` に変換し、`cause.transportCode` と `cause.serverTime` を保持します。
|
|
260
260
|
|
|
261
261
|
### Token 認証(`iam` / `refreshCookie`)
|
|
262
262
|
|
package/README.md
CHANGED
|
@@ -256,7 +256,7 @@ const app = serv.createApp({
|
|
|
256
256
|
|
|
257
257
|
普通业务仍使用 `transport.maxPlaintextBytes`(auto/省略为 1 MiB);Feedback 的报告受理、证据、附件及 ZIP 下载路由通过 `routePlaintextBytes` 单独声明 `feedback.budget.maxTransportBytes`。路径中的 `*` 仅匹配一个完整路径段;宿主显式路由值优先。握手、adapter-node 与代理使用各路由最大容量,普通业务不会随材料预算扩大。HTTP 适配器为单独声明且大于 1 MiB 的材料路由保留最多 2 个槽,普通业务另有 16 个槽,完整响应/失败后释放;忙碌返回 503 / `hai:crypto:072`,不自动重放业务写入。
|
|
258
258
|
|
|
259
|
-
Serv/Kit 对通过请求绑定、签名和 MAC 校验但超出时间窗口的请求返回加密的 HTTP 400 错误。客户端抛出 `TransportTimeError`(`hai:crypto:071`),显示校验时的服务器 UTC 时间,提示开启设备的自动校时或手工修改时间后刷新。`serverTime` 为 Unix
|
|
259
|
+
Serv/Kit 对通过请求绑定、签名和 MAC 校验但超出时间窗口的请求返回加密的 HTTP 400 错误。客户端抛出 `TransportTimeError`(`hai:crypto:071`),显示校验时的服务器 UTC 时间,提示开启设备的自动校时或手工修改时间后刷新。`serverTime` 为 Unix 毫秒。`api-client` 映射为 `VALIDATION_FAILED`,在 `cause.transportCode` 和 `cause.serverTime` 保留诊断信息。
|
|
260
260
|
|
|
261
261
|
### Token 认证(`iam` / `refreshCookie`)
|
|
262
262
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-ai/serv",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.23",
|
|
5
5
|
"description": "Hai Framework service runtime powered by Hono and oRPC.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"exports": {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"node": "^22.23.4 || ^24.22.1 || ^26.12.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@h-ai/ai": "1.0.0-beta.
|
|
43
|
-
"@h-ai/feedback": "1.0.0-beta.
|
|
44
|
-
"@h-ai/iam": "1.0.0-beta.
|
|
45
|
-
"@h-ai/storage": "1.0.0-beta.
|
|
42
|
+
"@h-ai/ai": "1.0.0-beta.23",
|
|
43
|
+
"@h-ai/feedback": "1.0.0-beta.23",
|
|
44
|
+
"@h-ai/iam": "1.0.0-beta.23",
|
|
45
|
+
"@h-ai/storage": "1.0.0-beta.23"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
48
48
|
"@h-ai/ai": {
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@h-ai/api-contract": "1.0.0-beta.
|
|
63
|
-
"@h-ai/audit": "1.0.0-beta.
|
|
64
|
-
"@h-ai/core": "1.0.0-beta.
|
|
65
|
-
"@h-ai/crypto": "1.0.0-beta.
|
|
62
|
+
"@h-ai/api-contract": "1.0.0-beta.23",
|
|
63
|
+
"@h-ai/audit": "1.0.0-beta.23",
|
|
64
|
+
"@h-ai/core": "1.0.0-beta.23",
|
|
65
|
+
"@h-ai/crypto": "1.0.0-beta.23",
|
|
66
66
|
"@hono/node-server": "^2.1.6",
|
|
67
67
|
"@orpc/openapi": "^1.16.2",
|
|
68
68
|
"@orpc/server": "^1.16.2",
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
"zod": "^4.6.7"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@h-ai/ai": "1.0.0-beta.
|
|
77
|
-
"@h-ai/api-client": "1.0.0-beta.
|
|
78
|
-
"@h-ai/cache": "1.0.0-beta.
|
|
79
|
-
"@h-ai/feedback": "1.0.0-beta.
|
|
80
|
-
"@h-ai/iam": "1.0.0-beta.
|
|
81
|
-
"@h-ai/reldb": "1.0.0-beta.
|
|
82
|
-
"@h-ai/storage": "1.0.0-beta.
|
|
76
|
+
"@h-ai/ai": "1.0.0-beta.23",
|
|
77
|
+
"@h-ai/api-client": "1.0.0-beta.23",
|
|
78
|
+
"@h-ai/cache": "1.0.0-beta.23",
|
|
79
|
+
"@h-ai/feedback": "1.0.0-beta.23",
|
|
80
|
+
"@h-ai/iam": "1.0.0-beta.23",
|
|
81
|
+
"@h-ai/reldb": "1.0.0-beta.23",
|
|
82
|
+
"@h-ai/storage": "1.0.0-beta.23",
|
|
83
83
|
"@types/node": "^26.6.6",
|
|
84
84
|
"@types/ws": "^8.18.2",
|
|
85
85
|
"altcha": "^3.5.0",
|