@djvlc/openapi-user-client 1.8.2 → 1.8.4

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.
@@ -125,6 +125,21 @@ CursorPaginationMeta:
125
125
  # 页面相关
126
126
  # ============================================================================
127
127
 
128
+ RolloutMatch:
129
+ type: object
130
+ required: [isDefault]
131
+ description: 灰度匹配信息(RolloutMatchVo)
132
+ properties:
133
+ strategyId:
134
+ type: string
135
+ description: 匹配的策略 ID
136
+ strategyName:
137
+ type: string
138
+ description: 匹配的策略名称
139
+ isDefault:
140
+ type: boolean
141
+ description: 是否使用默认版本
142
+
128
143
  ResolvePageResponse:
129
144
  type: object
130
145
  required: [pageId, resolvedVersionId, cdnBase, snapshotUrl, manifestUrl, ops, etag, cacheTtlSeconds]
@@ -145,11 +160,9 @@ ResolvePageResponse:
145
160
  snapshotUrl:
146
161
  type: string
147
162
  description: Snapshot URL
148
- example: https://cdn.example.com/pages/page_123456/snapshot.json
149
163
  manifestUrl:
150
164
  type: string
151
165
  description: Manifest URL
152
- example: https://cdn.example.com/pages/page_123456/manifest.json
153
166
  ops:
154
167
  description: 运维配置
155
168
  allOf:
@@ -169,6 +182,10 @@ ResolvePageResponse:
169
182
  type: string
170
183
  description: 运行时版本(SemVer)
171
184
  example: 1.0.0
185
+ rolloutMatch:
186
+ description: 灰度匹配信息
187
+ allOf:
188
+ - $ref: '#/RolloutMatch'
172
189
 
173
190
  ManifestComponent:
174
191
  type: object
@@ -235,70 +252,107 @@ ManifestResponse:
235
252
  allOf:
236
253
  - $ref: '#/ManifestRuntime'
237
254
 
238
- BlockedComponent:
255
+ KillSwitchItem:
256
+ type: object
257
+ required: [targetType, targetId, enabled]
258
+ description: Kill-Switch 项(KillSwitchItemVo)
259
+ properties:
260
+ targetType:
261
+ type: string
262
+ description: 目标类型
263
+ enum: [action, component, feature, page, query]
264
+ targetId:
265
+ type: string
266
+ description: 目标 ID
267
+ enabled:
268
+ type: boolean
269
+ description: 是否启用(true = 被关闭)
270
+ reason:
271
+ type: string
272
+ description: 关闭原因
273
+ enabledAt:
274
+ type: string
275
+ description: 关闭时间
276
+ example: '2024-01-01T00:00:00.000Z'
277
+ enabledBy:
278
+ type: string
279
+ description: 关闭操作者
280
+ userMessage:
281
+ type: string
282
+ description: 用户提示消息
283
+
284
+ BlockedComponentItem:
239
285
  type: object
240
- required: [name, reason, blockedAt, blockedBy]
241
- description: 被阻断的组件(BlockedComponentVo
286
+ required: [name, reason, blockedAt, blockedBy, urgent]
287
+ description: 被阻断的组件(BlockedComponentItemVo
242
288
  properties:
243
289
  name:
244
290
  type: string
245
291
  description: 组件名称
246
292
  version:
247
293
  type: string
248
- description: 组件版本(不填则阻断所有版本)
294
+ description: 组件版本(不指定则阻断所有版本)
249
295
  reason:
250
296
  type: string
251
297
  description: 阻断原因
252
298
  blockedAt:
253
299
  type: string
254
300
  description: 阻断时间
301
+ example: '2024-01-01T00:00:00.000Z'
255
302
  blockedBy:
256
303
  type: string
257
- description: 操作者
304
+ description: 阻断操作者
305
+ fallbackVersion:
306
+ type: string
307
+ description: 降级版本
308
+ urgent:
309
+ type: boolean
310
+ description: 是否紧急阻断
258
311
 
259
- DegradeConfig:
312
+ RateLimitConfig:
260
313
  type: object
261
- required: [enabled, mode]
262
- description: 降级配置(DegradeConfigVo)
314
+ description: 限流配置(RateLimitConfigVo)
263
315
  properties:
264
- enabled:
265
- type: boolean
266
- description: 是否启用降级
267
- mode:
268
- type: string
269
- description: 降级模式
270
- enum: [fallback, static, error]
271
- message:
272
- type: string
273
- description: 降级消息
316
+ globalQps:
317
+ type: number
318
+ description: 全局 QPS 限制
319
+ actionQps:
320
+ type: object
321
+ description: 按动作类型的 QPS 限制
322
+ additionalProperties:
323
+ type: number
274
324
 
275
325
  OpsConfig:
276
326
  type: object
277
- required: [killSwitch, blockedComponents, blockedPages, featureFlags, degradeConfig]
327
+ required: [killSwitch, blockedComponents, flags]
278
328
  description: 运维配置(OpsConfigVo)
279
329
  properties:
330
+ configVersionId:
331
+ type: string
332
+ description: 配置版本 ID(用于缓存失效)
280
333
  killSwitch:
281
- type: boolean
282
- description: 全局 kill-switch
283
- blockedComponents:
284
- description: 被阻断的组件列表
334
+ description: Kill-Switch 列表
285
335
  type: array
286
336
  items:
287
- $ref: '#/BlockedComponent'
288
- blockedPages:
289
- description: 被阻断的页面列表
337
+ $ref: '#/KillSwitchItem'
338
+ blockedComponents:
339
+ description: 被阻断的组件列表
290
340
  type: array
291
341
  items:
292
- type: string
293
- featureFlags:
342
+ $ref: '#/BlockedComponentItem'
343
+ flags:
294
344
  type: object
295
345
  description: 功能开关
296
346
  additionalProperties:
297
347
  type: boolean
298
- degradeConfig:
299
- description: 降级配置
348
+ rateLimit:
349
+ description: 限流配置
300
350
  allOf:
301
- - $ref: '#/DegradeConfig'
351
+ - $ref: '#/RateLimitConfig'
352
+ expiresAt:
353
+ type: string
354
+ description: 配置过期时间
355
+ example: '2024-01-01T00:00:00.000Z'
302
356
 
303
357
  # ============================================================================
304
358
  # Action Gateway 动作相关
@@ -483,7 +537,7 @@ ActionDefinitionVersionResponse:
483
537
  example: admin
484
538
  createdAt:
485
539
  type: string
486
- format: date-time
540
+ example: '2024-01-01T00:00:00.000Z'
487
541
  description: 创建时间
488
542
 
489
543
  # ============================================================================
@@ -643,11 +697,11 @@ ActivityInfoData:
643
697
  startAt:
644
698
  type: string
645
699
  description: 开始时间
646
- format: date-time
700
+ example: '2024-01-01T00:00:00.000Z'
647
701
  endAt:
648
702
  type: string
649
703
  description: 结束时间
650
- format: date-time
704
+ example: '2024-01-01T00:00:00.000Z'
651
705
 
652
706
  ActivityInfoResponse:
653
707
  type: object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djvlc/openapi-user-client",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "DJV Low-code Platform - User API 客户端(自动生成)",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",