@kne/fastify-app-manager 0.1.28 → 0.1.30
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/index.js +12 -0
- package/libs/controllers/app.js +377 -137
- package/libs/controllers/dbops.js +130 -47
- package/libs/controllers/link.js +68 -0
- package/libs/controllers/migration.js +50 -13
- package/libs/models/app.js +15 -9
- package/libs/schema/response.js +234 -0
- package/libs/services/app.js +64 -13
- package/libs/services/bootstrap.js +54 -6
- package/libs/services/dbops.js +19 -0
- package/libs/services/link.js +334 -0
- package/libs/services/migration.js +22 -0
- package/libs/services/openApi.js +14 -1
- package/libs/utils/appKind.js +33 -0
- package/oidc.js +121 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -55,6 +55,18 @@ module.exports = fp(
|
|
|
55
55
|
getOpenApiToken: null,
|
|
56
56
|
/** async ({ app, userId, tenantId }) => accessToken,以登录用户身份签发子应用令牌;不传则 /app/open-api/token 不可用 */
|
|
57
57
|
issueUserAccessToken: null,
|
|
58
|
+
/**
|
|
59
|
+
* 外部关联(linked)应用:
|
|
60
|
+
* - origin:本平台对外 ORIGIN,须与 installKey.platformOrigin 一致
|
|
61
|
+
* - signPlatformAssertion / ensureLinkedRegistration / getOpsServiceToken:通常来自 createAppOidc 返回值
|
|
62
|
+
* - linkSyncIntervalMs:定时同步权限/健康,0 表示仅启动时同步一次
|
|
63
|
+
*/
|
|
64
|
+
origin: null,
|
|
65
|
+
signPlatformAssertion: null,
|
|
66
|
+
ensureLinkedRegistration: null,
|
|
67
|
+
getOpsServiceToken: null,
|
|
68
|
+
linkSyncIntervalMs: 5 * 60 * 1000,
|
|
69
|
+
linkProxyTimeoutMs: 15000,
|
|
58
70
|
/** async ({ fileId, name, version, request }) => Buffer,版本上传传 fileId 时读取宿主文件 */
|
|
59
71
|
resolveVersionFile: null,
|
|
60
72
|
secretEnvKeyPattern: /(SECRET|PASSWORD|TOKEN|KEY|PRIVATE)/i,
|