@djvlc/openapi-user-client 1.8.2 → 1.8.3
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/dist/index.d.mts +217 -83
- package/dist/index.d.ts +217 -83
- package/dist/index.js +179 -82
- package/dist/index.mjs +162 -73
- package/openapi/dist/user-api.yaml +94 -39
- package/openapi/src/components/schemas/_index.yaml +87 -33
- package/package.json +1 -1
|
@@ -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
|
-
|
|
255
|
+
KillSwitchItem:
|
|
239
256
|
type: object
|
|
240
|
-
required: [
|
|
241
|
-
description:
|
|
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
|
+
format: date-time
|
|
277
|
+
enabledBy:
|
|
278
|
+
type: string
|
|
279
|
+
description: 关闭操作者
|
|
280
|
+
userMessage:
|
|
281
|
+
type: string
|
|
282
|
+
description: 用户提示消息
|
|
283
|
+
|
|
284
|
+
BlockedComponentItem:
|
|
285
|
+
type: object
|
|
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
|
+
format: date-time
|
|
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
|
-
|
|
312
|
+
RateLimitConfig:
|
|
260
313
|
type: object
|
|
261
|
-
|
|
262
|
-
description: 降级配置(DegradeConfigVo)
|
|
314
|
+
description: 限流配置(RateLimitConfigVo)
|
|
263
315
|
properties:
|
|
264
|
-
|
|
265
|
-
type:
|
|
266
|
-
description:
|
|
267
|
-
|
|
268
|
-
type:
|
|
269
|
-
description:
|
|
270
|
-
|
|
271
|
-
|
|
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,
|
|
327
|
+
required: [killSwitch, blockedComponents, flags]
|
|
278
328
|
description: 运维配置(OpsConfigVo)
|
|
279
329
|
properties:
|
|
330
|
+
configVersionId:
|
|
331
|
+
type: string
|
|
332
|
+
description: 配置版本 ID(用于缓存失效)
|
|
280
333
|
killSwitch:
|
|
281
|
-
|
|
282
|
-
description: 全局 kill-switch
|
|
283
|
-
blockedComponents:
|
|
284
|
-
description: 被阻断的组件列表
|
|
334
|
+
description: Kill-Switch 列表
|
|
285
335
|
type: array
|
|
286
336
|
items:
|
|
287
|
-
$ref: '#/
|
|
288
|
-
|
|
289
|
-
description:
|
|
337
|
+
$ref: '#/KillSwitchItem'
|
|
338
|
+
blockedComponents:
|
|
339
|
+
description: 被阻断的组件列表
|
|
290
340
|
type: array
|
|
291
341
|
items:
|
|
292
|
-
|
|
293
|
-
|
|
342
|
+
$ref: '#/BlockedComponentItem'
|
|
343
|
+
flags:
|
|
294
344
|
type: object
|
|
295
345
|
description: 功能开关
|
|
296
346
|
additionalProperties:
|
|
297
347
|
type: boolean
|
|
298
|
-
|
|
299
|
-
description:
|
|
348
|
+
rateLimit:
|
|
349
|
+
description: 限流配置
|
|
300
350
|
allOf:
|
|
301
|
-
- $ref: '#/
|
|
351
|
+
- $ref: '#/RateLimitConfig'
|
|
352
|
+
expiresAt:
|
|
353
|
+
type: string
|
|
354
|
+
description: 配置过期时间
|
|
355
|
+
format: date-time
|
|
302
356
|
|
|
303
357
|
# ============================================================================
|
|
304
358
|
# Action Gateway 动作相关
|