@djvlc/openapi-user-client 1.7.15 → 1.8.0

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.
@@ -80,3 +80,93 @@ resolve:
80
80
  $ref: '../components/responses/_index.yaml#/NotFound'
81
81
  '503':
82
82
  $ref: '../components/responses/_index.yaml#/ServiceUnavailable'
83
+
84
+ manifest:
85
+ get:
86
+ tags: [Pages]
87
+ operationId: getPageManifest
88
+ summary: 获取组件清单
89
+ description: |
90
+ 返回页面的组件锁定清单(manifest),包含所有引用的组件版本和资源信息。
91
+
92
+ 用途:
93
+ - Runtime 根据 manifest 预加载组件资源
94
+ - Editor 根据 manifest 展示组件依赖
95
+ parameters:
96
+ - name: X-Trace-Id
97
+ in: header
98
+ required: false
99
+ schema:
100
+ type: string
101
+ description: 链路追踪 ID(OTel,全链路透传)
102
+ - name: pageId
103
+ in: query
104
+ required: true
105
+ schema:
106
+ type: string
107
+ description: 页面 ID
108
+ - name: env
109
+ in: query
110
+ required: false
111
+ schema:
112
+ type: string
113
+ enum: [prod, preview, staging]
114
+ default: prod
115
+ description: 环境(prod/preview/staging)
116
+ responses:
117
+ '200':
118
+ description: 获取成功
119
+ content:
120
+ application/json:
121
+ schema:
122
+ type: object
123
+ properties:
124
+ success:
125
+ type: boolean
126
+ data:
127
+ $ref: '../components/schemas/_index.yaml#/ResourceManifests'
128
+ '400':
129
+ $ref: '../components/responses/_index.yaml#/BadRequest'
130
+ '404':
131
+ $ref: '../components/responses/_index.yaml#/NotFound'
132
+
133
+ config:
134
+ get:
135
+ tags: [Pages]
136
+ operationId: getPageConfig
137
+ summary: 获取运维配置
138
+ description: |
139
+ 返回当前运维配置(killSwitch、blockedComponents、featureFlags 等)。
140
+
141
+ 用途:
142
+ - Runtime 启动时获取全局运维配置
143
+ - 判断是否有组件被阻断或功能被关闭
144
+ parameters:
145
+ - name: X-Trace-Id
146
+ in: header
147
+ required: false
148
+ schema:
149
+ type: string
150
+ description: 链路追踪 ID(OTel,全链路透传)
151
+ - name: env
152
+ in: query
153
+ required: false
154
+ schema:
155
+ type: string
156
+ enum: [prod, preview, staging]
157
+ default: prod
158
+ description: 环境(prod/preview/staging)
159
+ responses:
160
+ '200':
161
+ description: 获取成功
162
+ content:
163
+ application/json:
164
+ schema:
165
+ type: object
166
+ properties:
167
+ success:
168
+ type: boolean
169
+ data:
170
+ $ref: '../components/schemas/_index.yaml#/OpsConfig'
171
+ '503':
172
+ $ref: '../components/responses/_index.yaml#/ServiceUnavailable'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djvlc/openapi-user-client",
3
- "version": "1.7.15",
3
+ "version": "1.8.0",
4
4
  "description": "DJV Low-code Platform - User API 客户端(自动生成)",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -25,7 +25,7 @@
25
25
  "typecheck": "tsc --noEmit"
26
26
  },
27
27
  "dependencies": {
28
- "@djvlc/openapi-client-core": "1.2.12"
28
+ "@djvlc/openapi-client-core": "1.2.13"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^20.0.0",