@downcity/type 0.1.165 → 0.1.182
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/bin/index.d.ts
CHANGED
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { CITY_MODEL_KIND, isCityModel, } from "./types/CityModel.js";
|
|
7
7
|
export type { CityModel, CityModelDescriptor, CityModelEnvRequirement, CityModelReasoning, CityModelReasoningEffort, } from "./types/CityModel.js";
|
|
8
|
+
export type { AuthRoutePolicy } from "./types/auth/AuthRoute.js";
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
package/bin/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EACf,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EACf,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 跨 package 统一账户路由策略类型。
|
|
3
|
+
*
|
|
4
|
+
* 关键点(中文)
|
|
5
|
+
* - 当前文件先定义协议,后续路由全面切入 Bearer 鉴权时直接复用。
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* 单条路由的鉴权策略。
|
|
9
|
+
*/
|
|
10
|
+
export interface AuthRoutePolicy {
|
|
11
|
+
/**
|
|
12
|
+
* 路由路径模式。
|
|
13
|
+
*/
|
|
14
|
+
path: string;
|
|
15
|
+
/**
|
|
16
|
+
* HTTP 方法。
|
|
17
|
+
*/
|
|
18
|
+
method: string;
|
|
19
|
+
/**
|
|
20
|
+
* 是否必须登录。
|
|
21
|
+
*/
|
|
22
|
+
require_auth: boolean;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=AuthRoute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthRoute.d.ts","sourceRoot":"","sources":["../../../src/types/auth/AuthRoute.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthRoute.js","sourceRoot":"","sources":["../../../src/types/auth/AuthRoute.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|