@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.
- package/dist/index.d.mts +221 -87
- package/dist/index.d.ts +221 -87
- package/dist/index.js +183 -86
- package/dist/index.mjs +166 -77
- package/openapi/dist/user-api.yaml +97 -42
- package/openapi/src/components/schemas/_index.yaml +90 -36
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -334,7 +334,7 @@ function ActionDefinitionVersionResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
334
334
|
"status": json["status"],
|
|
335
335
|
"createdBy": json["createdBy"],
|
|
336
336
|
"createdByUsername": json["createdByUsername"],
|
|
337
|
-
"createdAt":
|
|
337
|
+
"createdAt": json["createdAt"]
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function ActionDefinitionVersionResponseToJSON(value) {
|
|
@@ -354,7 +354,7 @@ function ActionDefinitionVersionResponseToJSON(value) {
|
|
|
354
354
|
"status": value.status,
|
|
355
355
|
"createdBy": value.createdBy,
|
|
356
356
|
"createdByUsername": value.createdByUsername,
|
|
357
|
-
"createdAt": value.createdAt
|
|
357
|
+
"createdAt": value.createdAt
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
|
|
@@ -379,8 +379,8 @@ function ActivityInfoDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
379
379
|
"activityId": json["activityId"],
|
|
380
380
|
"name": json["name"],
|
|
381
381
|
"type": json["type"],
|
|
382
|
-
"startAt":
|
|
383
|
-
"endAt":
|
|
382
|
+
"startAt": json["startAt"],
|
|
383
|
+
"endAt": json["endAt"]
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
386
|
function ActivityInfoDataToJSON(value) {
|
|
@@ -394,8 +394,8 @@ function ActivityInfoDataToJSON(value) {
|
|
|
394
394
|
"activityId": value.activityId,
|
|
395
395
|
"name": value.name,
|
|
396
396
|
"type": value.type,
|
|
397
|
-
"startAt": value.startAt
|
|
398
|
-
"endAt": value.endAt
|
|
397
|
+
"startAt": value.startAt,
|
|
398
|
+
"endAt": value.endAt
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
401
|
|
|
@@ -725,19 +725,20 @@ function BatchQueryRequestToJSON(value) {
|
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
727
|
|
|
728
|
-
// src/generated/models/
|
|
729
|
-
function
|
|
728
|
+
// src/generated/models/BlockedComponentItem.ts
|
|
729
|
+
function instanceOfBlockedComponentItem(value) {
|
|
730
730
|
let isInstance = true;
|
|
731
731
|
isInstance = isInstance && "name" in value;
|
|
732
732
|
isInstance = isInstance && "reason" in value;
|
|
733
733
|
isInstance = isInstance && "blockedAt" in value;
|
|
734
734
|
isInstance = isInstance && "blockedBy" in value;
|
|
735
|
+
isInstance = isInstance && "urgent" in value;
|
|
735
736
|
return isInstance;
|
|
736
737
|
}
|
|
737
|
-
function
|
|
738
|
-
return
|
|
738
|
+
function BlockedComponentItemFromJSON(json) {
|
|
739
|
+
return BlockedComponentItemFromJSONTyped(json, false);
|
|
739
740
|
}
|
|
740
|
-
function
|
|
741
|
+
function BlockedComponentItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
741
742
|
if (json === void 0 || json === null) {
|
|
742
743
|
return json;
|
|
743
744
|
}
|
|
@@ -746,10 +747,12 @@ function BlockedComponentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
746
747
|
"version": !exists(json, "version") ? void 0 : json["version"],
|
|
747
748
|
"reason": json["reason"],
|
|
748
749
|
"blockedAt": json["blockedAt"],
|
|
749
|
-
"blockedBy": json["blockedBy"]
|
|
750
|
+
"blockedBy": json["blockedBy"],
|
|
751
|
+
"fallbackVersion": !exists(json, "fallbackVersion") ? void 0 : json["fallbackVersion"],
|
|
752
|
+
"urgent": json["urgent"]
|
|
750
753
|
};
|
|
751
754
|
}
|
|
752
|
-
function
|
|
755
|
+
function BlockedComponentItemToJSON(value) {
|
|
753
756
|
if (value === void 0) {
|
|
754
757
|
return void 0;
|
|
755
758
|
}
|
|
@@ -761,7 +764,9 @@ function BlockedComponentToJSON(value) {
|
|
|
761
764
|
"version": value.version,
|
|
762
765
|
"reason": value.reason,
|
|
763
766
|
"blockedAt": value.blockedAt,
|
|
764
|
-
"blockedBy": value.blockedBy
|
|
767
|
+
"blockedBy": value.blockedBy,
|
|
768
|
+
"fallbackVersion": value.fallbackVersion,
|
|
769
|
+
"urgent": value.urgent
|
|
765
770
|
};
|
|
766
771
|
}
|
|
767
772
|
|
|
@@ -835,45 +840,6 @@ function CursorPaginationMetaToJSON(value) {
|
|
|
835
840
|
};
|
|
836
841
|
}
|
|
837
842
|
|
|
838
|
-
// src/generated/models/DegradeConfig.ts
|
|
839
|
-
var DegradeConfigModeEnum = {
|
|
840
|
-
FALLBACK: "fallback",
|
|
841
|
-
STATIC: "static",
|
|
842
|
-
ERROR: "error"
|
|
843
|
-
};
|
|
844
|
-
function instanceOfDegradeConfig(value) {
|
|
845
|
-
let isInstance = true;
|
|
846
|
-
isInstance = isInstance && "enabled" in value;
|
|
847
|
-
isInstance = isInstance && "mode" in value;
|
|
848
|
-
return isInstance;
|
|
849
|
-
}
|
|
850
|
-
function DegradeConfigFromJSON(json) {
|
|
851
|
-
return DegradeConfigFromJSONTyped(json, false);
|
|
852
|
-
}
|
|
853
|
-
function DegradeConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
854
|
-
if (json === void 0 || json === null) {
|
|
855
|
-
return json;
|
|
856
|
-
}
|
|
857
|
-
return {
|
|
858
|
-
"enabled": json["enabled"],
|
|
859
|
-
"mode": json["mode"],
|
|
860
|
-
"message": !exists(json, "message") ? void 0 : json["message"]
|
|
861
|
-
};
|
|
862
|
-
}
|
|
863
|
-
function DegradeConfigToJSON(value) {
|
|
864
|
-
if (value === void 0) {
|
|
865
|
-
return void 0;
|
|
866
|
-
}
|
|
867
|
-
if (value === null) {
|
|
868
|
-
return null;
|
|
869
|
-
}
|
|
870
|
-
return {
|
|
871
|
-
"enabled": value.enabled,
|
|
872
|
-
"mode": value.mode,
|
|
873
|
-
"message": value.message
|
|
874
|
-
};
|
|
875
|
-
}
|
|
876
|
-
|
|
877
843
|
// src/generated/models/ErrorResponse.ts
|
|
878
844
|
function instanceOfErrorResponse(value) {
|
|
879
845
|
let isInstance = true;
|
|
@@ -1333,14 +1299,92 @@ function GetClaimStatus200ResponseToJSON(value) {
|
|
|
1333
1299
|
};
|
|
1334
1300
|
}
|
|
1335
1301
|
|
|
1302
|
+
// src/generated/models/KillSwitchItem.ts
|
|
1303
|
+
var KillSwitchItemTargetTypeEnum = {
|
|
1304
|
+
ACTION: "action",
|
|
1305
|
+
COMPONENT: "component",
|
|
1306
|
+
FEATURE: "feature",
|
|
1307
|
+
PAGE: "page",
|
|
1308
|
+
QUERY: "query"
|
|
1309
|
+
};
|
|
1310
|
+
function instanceOfKillSwitchItem(value) {
|
|
1311
|
+
let isInstance = true;
|
|
1312
|
+
isInstance = isInstance && "targetType" in value;
|
|
1313
|
+
isInstance = isInstance && "targetId" in value;
|
|
1314
|
+
isInstance = isInstance && "enabled" in value;
|
|
1315
|
+
return isInstance;
|
|
1316
|
+
}
|
|
1317
|
+
function KillSwitchItemFromJSON(json) {
|
|
1318
|
+
return KillSwitchItemFromJSONTyped(json, false);
|
|
1319
|
+
}
|
|
1320
|
+
function KillSwitchItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
1321
|
+
if (json === void 0 || json === null) {
|
|
1322
|
+
return json;
|
|
1323
|
+
}
|
|
1324
|
+
return {
|
|
1325
|
+
"targetType": json["targetType"],
|
|
1326
|
+
"targetId": json["targetId"],
|
|
1327
|
+
"enabled": json["enabled"],
|
|
1328
|
+
"reason": !exists(json, "reason") ? void 0 : json["reason"],
|
|
1329
|
+
"enabledAt": !exists(json, "enabledAt") ? void 0 : json["enabledAt"],
|
|
1330
|
+
"enabledBy": !exists(json, "enabledBy") ? void 0 : json["enabledBy"],
|
|
1331
|
+
"userMessage": !exists(json, "userMessage") ? void 0 : json["userMessage"]
|
|
1332
|
+
};
|
|
1333
|
+
}
|
|
1334
|
+
function KillSwitchItemToJSON(value) {
|
|
1335
|
+
if (value === void 0) {
|
|
1336
|
+
return void 0;
|
|
1337
|
+
}
|
|
1338
|
+
if (value === null) {
|
|
1339
|
+
return null;
|
|
1340
|
+
}
|
|
1341
|
+
return {
|
|
1342
|
+
"targetType": value.targetType,
|
|
1343
|
+
"targetId": value.targetId,
|
|
1344
|
+
"enabled": value.enabled,
|
|
1345
|
+
"reason": value.reason,
|
|
1346
|
+
"enabledAt": value.enabledAt,
|
|
1347
|
+
"enabledBy": value.enabledBy,
|
|
1348
|
+
"userMessage": value.userMessage
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
// src/generated/models/RateLimitConfig.ts
|
|
1353
|
+
function instanceOfRateLimitConfig(value) {
|
|
1354
|
+
let isInstance = true;
|
|
1355
|
+
return isInstance;
|
|
1356
|
+
}
|
|
1357
|
+
function RateLimitConfigFromJSON(json) {
|
|
1358
|
+
return RateLimitConfigFromJSONTyped(json, false);
|
|
1359
|
+
}
|
|
1360
|
+
function RateLimitConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
1361
|
+
if (json === void 0 || json === null) {
|
|
1362
|
+
return json;
|
|
1363
|
+
}
|
|
1364
|
+
return {
|
|
1365
|
+
"globalQps": !exists(json, "globalQps") ? void 0 : json["globalQps"],
|
|
1366
|
+
"actionQps": !exists(json, "actionQps") ? void 0 : json["actionQps"]
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
function RateLimitConfigToJSON(value) {
|
|
1370
|
+
if (value === void 0) {
|
|
1371
|
+
return void 0;
|
|
1372
|
+
}
|
|
1373
|
+
if (value === null) {
|
|
1374
|
+
return null;
|
|
1375
|
+
}
|
|
1376
|
+
return {
|
|
1377
|
+
"globalQps": value.globalQps,
|
|
1378
|
+
"actionQps": value.actionQps
|
|
1379
|
+
};
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1336
1382
|
// src/generated/models/OpsConfig.ts
|
|
1337
1383
|
function instanceOfOpsConfig(value) {
|
|
1338
1384
|
let isInstance = true;
|
|
1339
1385
|
isInstance = isInstance && "killSwitch" in value;
|
|
1340
1386
|
isInstance = isInstance && "blockedComponents" in value;
|
|
1341
|
-
isInstance = isInstance && "
|
|
1342
|
-
isInstance = isInstance && "featureFlags" in value;
|
|
1343
|
-
isInstance = isInstance && "degradeConfig" in value;
|
|
1387
|
+
isInstance = isInstance && "flags" in value;
|
|
1344
1388
|
return isInstance;
|
|
1345
1389
|
}
|
|
1346
1390
|
function OpsConfigFromJSON(json) {
|
|
@@ -1351,11 +1395,12 @@ function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1351
1395
|
return json;
|
|
1352
1396
|
}
|
|
1353
1397
|
return {
|
|
1354
|
-
"
|
|
1355
|
-
"
|
|
1356
|
-
"
|
|
1357
|
-
"
|
|
1358
|
-
"
|
|
1398
|
+
"configVersionId": !exists(json, "configVersionId") ? void 0 : json["configVersionId"],
|
|
1399
|
+
"killSwitch": json["killSwitch"].map(KillSwitchItemFromJSON),
|
|
1400
|
+
"blockedComponents": json["blockedComponents"].map(BlockedComponentItemFromJSON),
|
|
1401
|
+
"flags": json["flags"],
|
|
1402
|
+
"rateLimit": !exists(json, "rateLimit") ? void 0 : RateLimitConfigFromJSON(json["rateLimit"]),
|
|
1403
|
+
"expiresAt": !exists(json, "expiresAt") ? void 0 : json["expiresAt"]
|
|
1359
1404
|
};
|
|
1360
1405
|
}
|
|
1361
1406
|
function OpsConfigToJSON(value) {
|
|
@@ -1366,11 +1411,12 @@ function OpsConfigToJSON(value) {
|
|
|
1366
1411
|
return null;
|
|
1367
1412
|
}
|
|
1368
1413
|
return {
|
|
1369
|
-
"
|
|
1370
|
-
"
|
|
1371
|
-
"
|
|
1372
|
-
"
|
|
1373
|
-
"
|
|
1414
|
+
"configVersionId": value.configVersionId,
|
|
1415
|
+
"killSwitch": value.killSwitch.map(KillSwitchItemToJSON),
|
|
1416
|
+
"blockedComponents": value.blockedComponents.map(BlockedComponentItemToJSON),
|
|
1417
|
+
"flags": value.flags,
|
|
1418
|
+
"rateLimit": RateLimitConfigToJSON(value.rateLimit),
|
|
1419
|
+
"expiresAt": value.expiresAt
|
|
1374
1420
|
};
|
|
1375
1421
|
}
|
|
1376
1422
|
|
|
@@ -2512,6 +2558,39 @@ function ReadinessCheck200ResponseToJSON(value) {
|
|
|
2512
2558
|
};
|
|
2513
2559
|
}
|
|
2514
2560
|
|
|
2561
|
+
// src/generated/models/RolloutMatch.ts
|
|
2562
|
+
function instanceOfRolloutMatch(value) {
|
|
2563
|
+
let isInstance = true;
|
|
2564
|
+
isInstance = isInstance && "isDefault" in value;
|
|
2565
|
+
return isInstance;
|
|
2566
|
+
}
|
|
2567
|
+
function RolloutMatchFromJSON(json) {
|
|
2568
|
+
return RolloutMatchFromJSONTyped(json, false);
|
|
2569
|
+
}
|
|
2570
|
+
function RolloutMatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
2571
|
+
if (json === void 0 || json === null) {
|
|
2572
|
+
return json;
|
|
2573
|
+
}
|
|
2574
|
+
return {
|
|
2575
|
+
"strategyId": !exists(json, "strategyId") ? void 0 : json["strategyId"],
|
|
2576
|
+
"strategyName": !exists(json, "strategyName") ? void 0 : json["strategyName"],
|
|
2577
|
+
"isDefault": json["isDefault"]
|
|
2578
|
+
};
|
|
2579
|
+
}
|
|
2580
|
+
function RolloutMatchToJSON(value) {
|
|
2581
|
+
if (value === void 0) {
|
|
2582
|
+
return void 0;
|
|
2583
|
+
}
|
|
2584
|
+
if (value === null) {
|
|
2585
|
+
return null;
|
|
2586
|
+
}
|
|
2587
|
+
return {
|
|
2588
|
+
"strategyId": value.strategyId,
|
|
2589
|
+
"strategyName": value.strategyName,
|
|
2590
|
+
"isDefault": value.isDefault
|
|
2591
|
+
};
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2515
2594
|
// src/generated/models/ResolvePageResponse.ts
|
|
2516
2595
|
function instanceOfResolvePageResponse(value) {
|
|
2517
2596
|
let isInstance = true;
|
|
@@ -2542,7 +2621,8 @@ function ResolvePageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2542
2621
|
"etag": json["etag"],
|
|
2543
2622
|
"cacheTtlSeconds": json["cacheTtlSeconds"],
|
|
2544
2623
|
"traceId": !exists(json, "traceId") ? void 0 : json["traceId"],
|
|
2545
|
-
"runtimeVersion": !exists(json, "runtimeVersion") ? void 0 : json["runtimeVersion"]
|
|
2624
|
+
"runtimeVersion": !exists(json, "runtimeVersion") ? void 0 : json["runtimeVersion"],
|
|
2625
|
+
"rolloutMatch": !exists(json, "rolloutMatch") ? void 0 : RolloutMatchFromJSON(json["rolloutMatch"])
|
|
2546
2626
|
};
|
|
2547
2627
|
}
|
|
2548
2628
|
function ResolvePageResponseToJSON(value) {
|
|
@@ -2562,7 +2642,8 @@ function ResolvePageResponseToJSON(value) {
|
|
|
2562
2642
|
"etag": value.etag,
|
|
2563
2643
|
"cacheTtlSeconds": value.cacheTtlSeconds,
|
|
2564
2644
|
"traceId": value.traceId,
|
|
2565
|
-
"runtimeVersion": value.runtimeVersion
|
|
2645
|
+
"runtimeVersion": value.runtimeVersion,
|
|
2646
|
+
"rolloutMatch": RolloutMatchToJSON(value.rolloutMatch)
|
|
2566
2647
|
};
|
|
2567
2648
|
}
|
|
2568
2649
|
|
|
@@ -4255,9 +4336,9 @@ export {
|
|
|
4255
4336
|
BatchQueryResponseFromJSON,
|
|
4256
4337
|
BatchQueryResponseFromJSONTyped,
|
|
4257
4338
|
BatchQueryResponseToJSON,
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4339
|
+
BlockedComponentItemFromJSON,
|
|
4340
|
+
BlockedComponentItemFromJSONTyped,
|
|
4341
|
+
BlockedComponentItemToJSON,
|
|
4261
4342
|
ClaimStatusResponseFromJSON,
|
|
4262
4343
|
ClaimStatusResponseFromJSONTyped,
|
|
4263
4344
|
ClaimStatusResponseToJSON,
|
|
@@ -4265,10 +4346,6 @@ export {
|
|
|
4265
4346
|
CursorPaginationMetaFromJSON,
|
|
4266
4347
|
CursorPaginationMetaFromJSONTyped,
|
|
4267
4348
|
CursorPaginationMetaToJSON,
|
|
4268
|
-
DegradeConfigFromJSON,
|
|
4269
|
-
DegradeConfigFromJSONTyped,
|
|
4270
|
-
DegradeConfigModeEnum,
|
|
4271
|
-
DegradeConfigToJSON,
|
|
4272
4349
|
ErrorResponseFromJSON,
|
|
4273
4350
|
ErrorResponseFromJSONTyped,
|
|
4274
4351
|
ErrorResponseToJSON,
|
|
@@ -4325,6 +4402,10 @@ export {
|
|
|
4325
4402
|
HealthCheckResponseFromJSON,
|
|
4326
4403
|
HealthCheckResponseFromJSONTyped,
|
|
4327
4404
|
HealthCheckResponseToJSON,
|
|
4405
|
+
KillSwitchItemFromJSON,
|
|
4406
|
+
KillSwitchItemFromJSONTyped,
|
|
4407
|
+
KillSwitchItemTargetTypeEnum,
|
|
4408
|
+
KillSwitchItemToJSON,
|
|
4328
4409
|
LivenessCheck200ResponseFromJSON,
|
|
4329
4410
|
LivenessCheck200ResponseFromJSONTyped,
|
|
4330
4411
|
LivenessCheck200ResponseToJSON,
|
|
@@ -4375,6 +4456,9 @@ export {
|
|
|
4375
4456
|
QueryMetadataFromJSON,
|
|
4376
4457
|
QueryMetadataFromJSONTyped,
|
|
4377
4458
|
QueryMetadataToJSON,
|
|
4459
|
+
RateLimitConfigFromJSON,
|
|
4460
|
+
RateLimitConfigFromJSONTyped,
|
|
4461
|
+
RateLimitConfigToJSON,
|
|
4378
4462
|
ReadinessCheck200ResponseFromJSON,
|
|
4379
4463
|
ReadinessCheck200ResponseFromJSONTyped,
|
|
4380
4464
|
ReadinessCheck200ResponseToJSON,
|
|
@@ -4404,6 +4488,9 @@ export {
|
|
|
4404
4488
|
RewardInfoFromJSON,
|
|
4405
4489
|
RewardInfoFromJSONTyped,
|
|
4406
4490
|
RewardInfoToJSON,
|
|
4491
|
+
RolloutMatchFromJSON,
|
|
4492
|
+
RolloutMatchFromJSONTyped,
|
|
4493
|
+
RolloutMatchToJSON,
|
|
4407
4494
|
SigninCalendarDataFromJSON,
|
|
4408
4495
|
SigninCalendarDataFromJSONTyped,
|
|
4409
4496
|
SigninCalendarDataToJSON,
|
|
@@ -4479,10 +4566,9 @@ export {
|
|
|
4479
4566
|
instanceOfBatchQueryItemRequest,
|
|
4480
4567
|
instanceOfBatchQueryRequest,
|
|
4481
4568
|
instanceOfBatchQueryResponse,
|
|
4482
|
-
|
|
4569
|
+
instanceOfBlockedComponentItem,
|
|
4483
4570
|
instanceOfClaimStatusResponse,
|
|
4484
4571
|
instanceOfCursorPaginationMeta,
|
|
4485
|
-
instanceOfDegradeConfig,
|
|
4486
4572
|
instanceOfErrorResponse,
|
|
4487
4573
|
instanceOfExecuteAction200Response,
|
|
4488
4574
|
instanceOfExecuteActionRequest,
|
|
@@ -4501,6 +4587,7 @@ export {
|
|
|
4501
4587
|
instanceOfHealthCheck200Response,
|
|
4502
4588
|
instanceOfHealthCheckItem,
|
|
4503
4589
|
instanceOfHealthCheckResponse,
|
|
4590
|
+
instanceOfKillSwitchItem,
|
|
4504
4591
|
instanceOfLivenessCheck200Response,
|
|
4505
4592
|
instanceOfLivenessResponse,
|
|
4506
4593
|
instanceOfManifestComponent,
|
|
@@ -4516,6 +4603,7 @@ export {
|
|
|
4516
4603
|
instanceOfQueryDataResponse,
|
|
4517
4604
|
instanceOfQueryDefinitionResponse,
|
|
4518
4605
|
instanceOfQueryMetadata,
|
|
4606
|
+
instanceOfRateLimitConfig,
|
|
4519
4607
|
instanceOfReadinessCheck200Response,
|
|
4520
4608
|
instanceOfReadinessResponse,
|
|
4521
4609
|
instanceOfResolvePage200Response,
|
|
@@ -4525,6 +4613,7 @@ export {
|
|
|
4525
4613
|
instanceOfResolveTenantRequest,
|
|
4526
4614
|
instanceOfResolveTenantResponse,
|
|
4527
4615
|
instanceOfRewardInfo,
|
|
4616
|
+
instanceOfRolloutMatch,
|
|
4528
4617
|
instanceOfSigninCalendarData,
|
|
4529
4618
|
instanceOfSigninCalendarResponse,
|
|
4530
4619
|
instanceOfSigninStatusResponse,
|
|
@@ -902,82 +902,135 @@ components:
|
|
|
902
902
|
type: string
|
|
903
903
|
description: 链路追踪ID(用于全链路定位问题)
|
|
904
904
|
example: trace-uuid-string
|
|
905
|
-
|
|
905
|
+
KillSwitchItem:
|
|
906
|
+
type: object
|
|
907
|
+
required:
|
|
908
|
+
- targetType
|
|
909
|
+
- targetId
|
|
910
|
+
- enabled
|
|
911
|
+
description: Kill-Switch 项(KillSwitchItemVo)
|
|
912
|
+
properties:
|
|
913
|
+
targetType:
|
|
914
|
+
type: string
|
|
915
|
+
description: 目标类型
|
|
916
|
+
enum:
|
|
917
|
+
- action
|
|
918
|
+
- component
|
|
919
|
+
- feature
|
|
920
|
+
- page
|
|
921
|
+
- query
|
|
922
|
+
targetId:
|
|
923
|
+
type: string
|
|
924
|
+
description: 目标 ID
|
|
925
|
+
enabled:
|
|
926
|
+
type: boolean
|
|
927
|
+
description: 是否启用(true = 被关闭)
|
|
928
|
+
reason:
|
|
929
|
+
type: string
|
|
930
|
+
description: 关闭原因
|
|
931
|
+
enabledAt:
|
|
932
|
+
type: string
|
|
933
|
+
description: 关闭时间
|
|
934
|
+
example: '2024-01-01T00:00:00.000Z'
|
|
935
|
+
enabledBy:
|
|
936
|
+
type: string
|
|
937
|
+
description: 关闭操作者
|
|
938
|
+
userMessage:
|
|
939
|
+
type: string
|
|
940
|
+
description: 用户提示消息
|
|
941
|
+
BlockedComponentItem:
|
|
906
942
|
type: object
|
|
907
943
|
required:
|
|
908
944
|
- name
|
|
909
945
|
- reason
|
|
910
946
|
- blockedAt
|
|
911
947
|
- blockedBy
|
|
912
|
-
|
|
948
|
+
- urgent
|
|
949
|
+
description: 被阻断的组件(BlockedComponentItemVo)
|
|
913
950
|
properties:
|
|
914
951
|
name:
|
|
915
952
|
type: string
|
|
916
953
|
description: 组件名称
|
|
917
954
|
version:
|
|
918
955
|
type: string
|
|
919
|
-
description:
|
|
956
|
+
description: 组件版本(不指定则阻断所有版本)
|
|
920
957
|
reason:
|
|
921
958
|
type: string
|
|
922
959
|
description: 阻断原因
|
|
923
960
|
blockedAt:
|
|
924
961
|
type: string
|
|
925
962
|
description: 阻断时间
|
|
963
|
+
example: '2024-01-01T00:00:00.000Z'
|
|
926
964
|
blockedBy:
|
|
927
965
|
type: string
|
|
928
|
-
description:
|
|
929
|
-
|
|
966
|
+
description: 阻断操作者
|
|
967
|
+
fallbackVersion:
|
|
968
|
+
type: string
|
|
969
|
+
description: 降级版本
|
|
970
|
+
urgent:
|
|
971
|
+
type: boolean
|
|
972
|
+
description: 是否紧急阻断
|
|
973
|
+
RateLimitConfig:
|
|
930
974
|
type: object
|
|
931
|
-
|
|
932
|
-
- enabled
|
|
933
|
-
- mode
|
|
934
|
-
description: 降级配置(DegradeConfigVo)
|
|
975
|
+
description: 限流配置(RateLimitConfigVo)
|
|
935
976
|
properties:
|
|
936
|
-
|
|
937
|
-
type:
|
|
938
|
-
description:
|
|
939
|
-
|
|
940
|
-
type:
|
|
941
|
-
description:
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
- static
|
|
945
|
-
- error
|
|
946
|
-
message:
|
|
947
|
-
type: string
|
|
948
|
-
description: 降级消息
|
|
977
|
+
globalQps:
|
|
978
|
+
type: number
|
|
979
|
+
description: 全局 QPS 限制
|
|
980
|
+
actionQps:
|
|
981
|
+
type: object
|
|
982
|
+
description: 按动作类型的 QPS 限制
|
|
983
|
+
additionalProperties:
|
|
984
|
+
type: number
|
|
949
985
|
OpsConfig:
|
|
950
986
|
type: object
|
|
951
987
|
required:
|
|
952
988
|
- killSwitch
|
|
953
989
|
- blockedComponents
|
|
954
|
-
-
|
|
955
|
-
- featureFlags
|
|
956
|
-
- degradeConfig
|
|
990
|
+
- flags
|
|
957
991
|
description: 运维配置(OpsConfigVo)
|
|
958
992
|
properties:
|
|
993
|
+
configVersionId:
|
|
994
|
+
type: string
|
|
995
|
+
description: 配置版本 ID(用于缓存失效)
|
|
959
996
|
killSwitch:
|
|
960
|
-
|
|
961
|
-
description: 全局 kill-switch
|
|
962
|
-
blockedComponents:
|
|
963
|
-
description: 被阻断的组件列表
|
|
997
|
+
description: Kill-Switch 列表
|
|
964
998
|
type: array
|
|
965
999
|
items:
|
|
966
|
-
$ref: '#/components/schemas/
|
|
967
|
-
|
|
968
|
-
description:
|
|
1000
|
+
$ref: '#/components/schemas/KillSwitchItem'
|
|
1001
|
+
blockedComponents:
|
|
1002
|
+
description: 被阻断的组件列表
|
|
969
1003
|
type: array
|
|
970
1004
|
items:
|
|
971
|
-
|
|
972
|
-
|
|
1005
|
+
$ref: '#/components/schemas/BlockedComponentItem'
|
|
1006
|
+
flags:
|
|
973
1007
|
type: object
|
|
974
1008
|
description: 功能开关
|
|
975
1009
|
additionalProperties:
|
|
976
1010
|
type: boolean
|
|
977
|
-
|
|
978
|
-
description:
|
|
1011
|
+
rateLimit:
|
|
1012
|
+
description: 限流配置
|
|
979
1013
|
allOf:
|
|
980
|
-
- $ref: '#/components/schemas/
|
|
1014
|
+
- $ref: '#/components/schemas/RateLimitConfig'
|
|
1015
|
+
expiresAt:
|
|
1016
|
+
type: string
|
|
1017
|
+
description: 配置过期时间
|
|
1018
|
+
example: '2024-01-01T00:00:00.000Z'
|
|
1019
|
+
RolloutMatch:
|
|
1020
|
+
type: object
|
|
1021
|
+
required:
|
|
1022
|
+
- isDefault
|
|
1023
|
+
description: 灰度匹配信息(RolloutMatchVo)
|
|
1024
|
+
properties:
|
|
1025
|
+
strategyId:
|
|
1026
|
+
type: string
|
|
1027
|
+
description: 匹配的策略 ID
|
|
1028
|
+
strategyName:
|
|
1029
|
+
type: string
|
|
1030
|
+
description: 匹配的策略名称
|
|
1031
|
+
isDefault:
|
|
1032
|
+
type: boolean
|
|
1033
|
+
description: 是否使用默认版本
|
|
981
1034
|
ResolvePageResponse:
|
|
982
1035
|
type: object
|
|
983
1036
|
required:
|
|
@@ -1006,11 +1059,9 @@ components:
|
|
|
1006
1059
|
snapshotUrl:
|
|
1007
1060
|
type: string
|
|
1008
1061
|
description: Snapshot URL
|
|
1009
|
-
example: https://cdn.example.com/pages/page_123456/snapshot.json
|
|
1010
1062
|
manifestUrl:
|
|
1011
1063
|
type: string
|
|
1012
1064
|
description: Manifest URL
|
|
1013
|
-
example: https://cdn.example.com/pages/page_123456/manifest.json
|
|
1014
1065
|
ops:
|
|
1015
1066
|
description: 运维配置
|
|
1016
1067
|
allOf:
|
|
@@ -1030,6 +1081,10 @@ components:
|
|
|
1030
1081
|
type: string
|
|
1031
1082
|
description: 运行时版本(SemVer)
|
|
1032
1083
|
example: 1.0.0
|
|
1084
|
+
rolloutMatch:
|
|
1085
|
+
description: 灰度匹配信息
|
|
1086
|
+
allOf:
|
|
1087
|
+
- $ref: '#/components/schemas/RolloutMatch'
|
|
1033
1088
|
ErrorResponse:
|
|
1034
1089
|
type: object
|
|
1035
1090
|
required:
|
|
@@ -1340,7 +1395,7 @@ components:
|
|
|
1340
1395
|
example: admin
|
|
1341
1396
|
createdAt:
|
|
1342
1397
|
type: string
|
|
1343
|
-
|
|
1398
|
+
example: '2024-01-01T00:00:00.000Z'
|
|
1344
1399
|
description: 创建时间
|
|
1345
1400
|
QueryContext:
|
|
1346
1401
|
type: object
|
|
@@ -1502,11 +1557,11 @@ components:
|
|
|
1502
1557
|
startAt:
|
|
1503
1558
|
type: string
|
|
1504
1559
|
description: 开始时间
|
|
1505
|
-
|
|
1560
|
+
example: '2024-01-01T00:00:00.000Z'
|
|
1506
1561
|
endAt:
|
|
1507
1562
|
type: string
|
|
1508
1563
|
description: 结束时间
|
|
1509
|
-
|
|
1564
|
+
example: '2024-01-01T00:00:00.000Z'
|
|
1510
1565
|
ActivityInfoResponse:
|
|
1511
1566
|
type: object
|
|
1512
1567
|
required:
|