@autional/shared 0.1.0-rc.54 → 0.1.0-rc.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autional/shared",
3
- "version": "0.1.0-rc.54",
3
+ "version": "0.1.0-rc.56",
4
4
  "description": "Autional shared layer — API client, auth, types, hooks, utils",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./src/index.ts",
@@ -1,7 +1,7 @@
1
1
  // GENERATED FILE — DO NOT EDIT.
2
2
  // Source: contracts/errors.semantics.json(@autional/shared 仓内镜像,源 = service-core base/error/testdata/errors.semantics.json)
3
3
  // Regenerate: pnpm gen:errors · Verify: pnpm gen:errors:check
4
- // rows: 802 · source sha256: d1d69d0eedc43e211b89c0efa5ade53b95a0d2ff31ea706800ba29b04c97f20f
4
+ // rows: 803 · source sha256: f4e10203c9d4a888df05ff40bf16d5b997c0606859a31e1ff1061bd12f791665
5
5
  //
6
6
  // 单一真源链:service-core/base/error/semantics.go(Go)→ errors.semantics.json → 本文件。
7
7
  // ⚠️ 禁止在本文件或页面里手抄错误码分支:请消费 ERROR_SEMANTICS / UNPROVISIONED_CODES。
@@ -292,6 +292,7 @@ export const ERROR_SEMANTICS: Readonly<Record<number, ErrorSemantics>> = {
292
292
  40800302: { code: 40800302, httpStatus: 404, class: 'not_found', absence: 'entity', uiObservation: 'not_found_page', retryable: false, docsPath: '/errors/40800302' },
293
293
  40800303: { code: 40800303, httpStatus: 401, class: 'unauthorized', absence: '', uiObservation: 'session_expired', retryable: false, docsPath: '/errors/40800303' },
294
294
  40800305: { code: 40800305, httpStatus: 409, class: 'conflict', absence: '', uiObservation: 'conflict', retryable: false, docsPath: '/errors/40800305' },
295
+ 40800306: { code: 40800306, httpStatus: 403, class: 'forbidden', absence: '', uiObservation: 'forbidden', retryable: false, docsPath: '/errors/40800306' },
295
296
  40800401: { code: 40800401, httpStatus: 404, class: 'not_found', absence: 'entity', uiObservation: 'not_found_page', retryable: false, docsPath: '/errors/40800401' },
296
297
  40800501: { code: 40800501, httpStatus: 429, class: 'limit', absence: '', uiObservation: 'rate_limited', retryable: true, docsPath: '/errors/40800501' },
297
298
  40800502: { code: 40800502, httpStatus: 403, class: 'forbidden', absence: '', uiObservation: 'forbidden', retryable: false, docsPath: '/errors/40800502' },
@@ -863,8 +864,8 @@ export const UNPROVISIONED_CODES: ReadonlySet<number> = new Set([]);
863
864
  export const EMPTY_STATE_CODES: ReadonlySet<number> = new Set([]);
864
865
 
865
866
  export const ERROR_SEMANTICS_META = {
866
- rowCount: 802,
867
- sourceSha256: 'd1d69d0eedc43e211b89c0efa5ade53b95a0d2ff31ea706800ba29b04c97f20f',
867
+ rowCount: 803,
868
+ sourceSha256: 'f4e10203c9d4a888df05ff40bf16d5b997c0606859a31e1ff1061bd12f791665',
868
869
  } as const;
869
870
 
870
871
  /** 具名错误码常量(契约 name → code)。页面只消费常量,不写数字字面量。 */