@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.
package/dist/index.js CHANGED
@@ -40,6 +40,10 @@ __export(index_exports, {
40
40
  ActionManifestToJSON: () => ActionManifestToJSON,
41
41
  ActionsApi: () => ActionsApi,
42
42
  ActivitiesApi: () => ActivitiesApi,
43
+ ActivityStatusFromJSON: () => ActivityStatusFromJSON,
44
+ ActivityStatusFromJSONTyped: () => ActivityStatusFromJSONTyped,
45
+ ActivityStatusToJSON: () => ActivityStatusToJSON,
46
+ ActivityStatusTypeEnum: () => ActivityStatusTypeEnum,
43
47
  ApiError: () => import_openapi_client_core2.ApiError,
44
48
  BaseAPI: () => BaseAPI,
45
49
  BatchQueryRequestFromJSON: () => BatchQueryRequestFromJSON,
@@ -66,6 +70,7 @@ __export(index_exports, {
66
70
  ClaimRecordInfoToJSON: () => ClaimRecordInfoToJSON,
67
71
  ComponentManifestFromJSON: () => ComponentManifestFromJSON,
68
72
  ComponentManifestFromJSONTyped: () => ComponentManifestFromJSONTyped,
73
+ ComponentManifestSourceEnum: () => ComponentManifestSourceEnum,
69
74
  ComponentManifestToJSON: () => ComponentManifestToJSON,
70
75
  Configuration: () => Configuration,
71
76
  ErrorResponseFromJSON: () => ErrorResponseFromJSON,
@@ -91,15 +96,30 @@ __export(index_exports, {
91
96
  GetActivityState200ResponseFromJSON: () => GetActivityState200ResponseFromJSON,
92
97
  GetActivityState200ResponseFromJSONTyped: () => GetActivityState200ResponseFromJSONTyped,
93
98
  GetActivityState200ResponseToJSON: () => GetActivityState200ResponseToJSON,
99
+ GetActivityStatus200ResponseFromJSON: () => GetActivityStatus200ResponseFromJSON,
100
+ GetActivityStatus200ResponseFromJSONTyped: () => GetActivityStatus200ResponseFromJSONTyped,
101
+ GetActivityStatus200ResponseToJSON: () => GetActivityStatus200ResponseToJSON,
94
102
  GetClaimRecords200ResponseFromJSON: () => GetClaimRecords200ResponseFromJSON,
95
103
  GetClaimRecords200ResponseFromJSONTyped: () => GetClaimRecords200ResponseFromJSONTyped,
96
104
  GetClaimRecords200ResponseToJSON: () => GetClaimRecords200ResponseToJSON,
105
+ GetClaimStatus200ResponseFromJSON: () => GetClaimStatus200ResponseFromJSON,
106
+ GetClaimStatus200ResponseFromJSONTyped: () => GetClaimStatus200ResponseFromJSONTyped,
107
+ GetClaimStatus200ResponseToJSON: () => GetClaimStatus200ResponseToJSON,
97
108
  GetLotteryRecords200ResponseFromJSON: () => GetLotteryRecords200ResponseFromJSON,
98
109
  GetLotteryRecords200ResponseFromJSONTyped: () => GetLotteryRecords200ResponseFromJSONTyped,
99
110
  GetLotteryRecords200ResponseToJSON: () => GetLotteryRecords200ResponseToJSON,
111
+ GetPageConfig200ResponseFromJSON: () => GetPageConfig200ResponseFromJSON,
112
+ GetPageConfig200ResponseFromJSONTyped: () => GetPageConfig200ResponseFromJSONTyped,
113
+ GetPageConfig200ResponseToJSON: () => GetPageConfig200ResponseToJSON,
114
+ GetPageManifest200ResponseFromJSON: () => GetPageManifest200ResponseFromJSON,
115
+ GetPageManifest200ResponseFromJSONTyped: () => GetPageManifest200ResponseFromJSONTyped,
116
+ GetPageManifest200ResponseToJSON: () => GetPageManifest200ResponseToJSON,
100
117
  GetSigninCalendar200ResponseFromJSON: () => GetSigninCalendar200ResponseFromJSON,
101
118
  GetSigninCalendar200ResponseFromJSONTyped: () => GetSigninCalendar200ResponseFromJSONTyped,
102
119
  GetSigninCalendar200ResponseToJSON: () => GetSigninCalendar200ResponseToJSON,
120
+ GetSigninStatus200ResponseFromJSON: () => GetSigninStatus200ResponseFromJSON,
121
+ GetSigninStatus200ResponseFromJSONTyped: () => GetSigninStatus200ResponseFromJSONTyped,
122
+ GetSigninStatus200ResponseToJSON: () => GetSigninStatus200ResponseToJSON,
103
123
  GetTenantConfig200ResponseFromJSON: () => GetTenantConfig200ResponseFromJSON,
104
124
  GetTenantConfig200ResponseFromJSONTyped: () => GetTenantConfig200ResponseFromJSONTyped,
105
125
  GetTenantConfig200ResponseToJSON: () => GetTenantConfig200ResponseToJSON,
@@ -199,6 +219,7 @@ __export(index_exports, {
199
219
  ResolvePageResponseAllOfDataSnapshotFromJSONTyped: () => ResolvePageResponseAllOfDataSnapshotFromJSONTyped,
200
220
  ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSON: () => ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSON,
201
221
  ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped: () => ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped,
222
+ ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum: () => ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum,
202
223
  ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON: () => ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON,
203
224
  ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON: () => ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON,
204
225
  ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSONTyped: () => ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSONTyped,
@@ -347,6 +368,7 @@ __export(index_exports, {
347
368
  instanceOfActionDefinitionResponseData: () => instanceOfActionDefinitionResponseData,
348
369
  instanceOfActionEffect: () => instanceOfActionEffect,
349
370
  instanceOfActionManifest: () => instanceOfActionManifest,
371
+ instanceOfActivityStatus: () => instanceOfActivityStatus,
350
372
  instanceOfBatchQueryRequest: () => instanceOfBatchQueryRequest,
351
373
  instanceOfBatchQueryRequestQueriesInner: () => instanceOfBatchQueryRequestQueriesInner,
352
374
  instanceOfBatchQueryResponse: () => instanceOfBatchQueryResponse,
@@ -362,9 +384,14 @@ __export(index_exports, {
362
384
  instanceOfExecuteActionResponseAllOfDataRiskDecision: () => instanceOfExecuteActionResponseAllOfDataRiskDecision,
363
385
  instanceOfGetActivityInfo200Response: () => instanceOfGetActivityInfo200Response,
364
386
  instanceOfGetActivityState200Response: () => instanceOfGetActivityState200Response,
387
+ instanceOfGetActivityStatus200Response: () => instanceOfGetActivityStatus200Response,
365
388
  instanceOfGetClaimRecords200Response: () => instanceOfGetClaimRecords200Response,
389
+ instanceOfGetClaimStatus200Response: () => instanceOfGetClaimStatus200Response,
366
390
  instanceOfGetLotteryRecords200Response: () => instanceOfGetLotteryRecords200Response,
391
+ instanceOfGetPageConfig200Response: () => instanceOfGetPageConfig200Response,
392
+ instanceOfGetPageManifest200Response: () => instanceOfGetPageManifest200Response,
367
393
  instanceOfGetSigninCalendar200Response: () => instanceOfGetSigninCalendar200Response,
394
+ instanceOfGetSigninStatus200Response: () => instanceOfGetSigninStatus200Response,
368
395
  instanceOfGetTenantConfig200Response: () => instanceOfGetTenantConfig200Response,
369
396
  instanceOfHealthResponse: () => instanceOfHealthResponse,
370
397
  instanceOfHealthResponseDependenciesValue: () => instanceOfHealthResponseDependenciesValue,
@@ -893,6 +920,54 @@ function ActionManifestToJSON(value) {
893
920
  };
894
921
  }
895
922
 
923
+ // src/generated/models/ActivityStatus.ts
924
+ var ActivityStatusTypeEnum = {
925
+ CLAIM: "claim",
926
+ SIGNIN: "signin"
927
+ };
928
+ function instanceOfActivityStatus(value) {
929
+ let isInstance = true;
930
+ isInstance = isInstance && "activityUid" in value;
931
+ isInstance = isInstance && "name" in value;
932
+ isInstance = isInstance && "type" in value;
933
+ isInstance = isInstance && "isInProgress" in value;
934
+ isInstance = isInstance && "startAt" in value;
935
+ isInstance = isInstance && "endAt" in value;
936
+ return isInstance;
937
+ }
938
+ function ActivityStatusFromJSON(json) {
939
+ return ActivityStatusFromJSONTyped(json, false);
940
+ }
941
+ function ActivityStatusFromJSONTyped(json, ignoreDiscriminator) {
942
+ if (json === void 0 || json === null) {
943
+ return json;
944
+ }
945
+ return {
946
+ "activityUid": json["activityUid"],
947
+ "name": json["name"],
948
+ "type": json["type"],
949
+ "isInProgress": json["isInProgress"],
950
+ "startAt": new Date(json["startAt"]),
951
+ "endAt": new Date(json["endAt"])
952
+ };
953
+ }
954
+ function ActivityStatusToJSON(value) {
955
+ if (value === void 0) {
956
+ return void 0;
957
+ }
958
+ if (value === null) {
959
+ return null;
960
+ }
961
+ return {
962
+ "activityUid": value.activityUid,
963
+ "name": value.name,
964
+ "type": value.type,
965
+ "isInProgress": value.isInProgress,
966
+ "startAt": value.startAt.toISOString(),
967
+ "endAt": value.endAt.toISOString()
968
+ };
969
+ }
970
+
896
971
  // src/generated/models/BatchQueryRequestQueriesInner.ts
897
972
  function instanceOfBatchQueryRequestQueriesInner(value) {
898
973
  let isInstance = true;
@@ -1177,11 +1252,15 @@ function ClaimRecordInfoToJSON(value) {
1177
1252
  }
1178
1253
 
1179
1254
  // src/generated/models/ComponentManifest.ts
1255
+ var ComponentManifestSourceEnum = {
1256
+ BUNDLED: "bundled",
1257
+ REMOTE: "remote"
1258
+ };
1180
1259
  function instanceOfComponentManifest(value) {
1181
1260
  let isInstance = true;
1182
1261
  isInstance = isInstance && "componentType" in value;
1183
1262
  isInstance = isInstance && "version" in value;
1184
- isInstance = isInstance && "entryUrl" in value;
1263
+ isInstance = isInstance && "source" in value;
1185
1264
  return isInstance;
1186
1265
  }
1187
1266
  function ComponentManifestFromJSON(json) {
@@ -1194,7 +1273,8 @@ function ComponentManifestFromJSONTyped(json, ignoreDiscriminator) {
1194
1273
  return {
1195
1274
  "componentType": json["componentType"],
1196
1275
  "version": json["version"],
1197
- "entryUrl": json["entryUrl"],
1276
+ "source": json["source"],
1277
+ "entryUrl": !exists(json, "entryUrl") ? void 0 : json["entryUrl"],
1198
1278
  "styleUrl": !exists(json, "styleUrl") ? void 0 : json["styleUrl"],
1199
1279
  "integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
1200
1280
  "blocked": !exists(json, "blocked") ? void 0 : json["blocked"],
@@ -1211,6 +1291,7 @@ function ComponentManifestToJSON(value) {
1211
1291
  return {
1212
1292
  "componentType": value.componentType,
1213
1293
  "version": value.version,
1294
+ "source": value.source,
1214
1295
  "entryUrl": value.entryUrl,
1215
1296
  "styleUrl": value.styleUrl,
1216
1297
  "integrity": value.integrity,
@@ -1986,6 +2067,36 @@ function GetActivityState200ResponseToJSON(value) {
1986
2067
  };
1987
2068
  }
1988
2069
 
2070
+ // src/generated/models/GetActivityStatus200Response.ts
2071
+ function instanceOfGetActivityStatus200Response(value) {
2072
+ let isInstance = true;
2073
+ return isInstance;
2074
+ }
2075
+ function GetActivityStatus200ResponseFromJSON(json) {
2076
+ return GetActivityStatus200ResponseFromJSONTyped(json, false);
2077
+ }
2078
+ function GetActivityStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2079
+ if (json === void 0 || json === null) {
2080
+ return json;
2081
+ }
2082
+ return {
2083
+ "success": !exists(json, "success") ? void 0 : json["success"],
2084
+ "data": !exists(json, "data") ? void 0 : ActivityStatusFromJSON(json["data"])
2085
+ };
2086
+ }
2087
+ function GetActivityStatus200ResponseToJSON(value) {
2088
+ if (value === void 0) {
2089
+ return void 0;
2090
+ }
2091
+ if (value === null) {
2092
+ return null;
2093
+ }
2094
+ return {
2095
+ "success": value.success,
2096
+ "data": ActivityStatusToJSON(value.data)
2097
+ };
2098
+ }
2099
+
1989
2100
  // src/generated/models/PaginationMeta.ts
1990
2101
  function instanceOfPaginationMeta(value) {
1991
2102
  let isInstance = true;
@@ -2062,6 +2173,36 @@ function GetClaimRecords200ResponseToJSON(value) {
2062
2173
  };
2063
2174
  }
2064
2175
 
2176
+ // src/generated/models/GetClaimStatus200Response.ts
2177
+ function instanceOfGetClaimStatus200Response(value) {
2178
+ let isInstance = true;
2179
+ return isInstance;
2180
+ }
2181
+ function GetClaimStatus200ResponseFromJSON(json) {
2182
+ return GetClaimStatus200ResponseFromJSONTyped(json, false);
2183
+ }
2184
+ function GetClaimStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2185
+ if (json === void 0 || json === null) {
2186
+ return json;
2187
+ }
2188
+ return {
2189
+ "success": !exists(json, "success") ? void 0 : json["success"],
2190
+ "data": !exists(json, "data") ? void 0 : json["data"]
2191
+ };
2192
+ }
2193
+ function GetClaimStatus200ResponseToJSON(value) {
2194
+ if (value === void 0) {
2195
+ return void 0;
2196
+ }
2197
+ if (value === null) {
2198
+ return null;
2199
+ }
2200
+ return {
2201
+ "success": value.success,
2202
+ "data": value.data
2203
+ };
2204
+ }
2205
+
2065
2206
  // src/generated/models/LotteryRecordInfo.ts
2066
2207
  var LotteryRecordInfoPrizeTypeEnum = {
2067
2208
  PHYSICAL: "physical",
@@ -2153,6 +2294,221 @@ function GetLotteryRecords200ResponseToJSON(value) {
2153
2294
  };
2154
2295
  }
2155
2296
 
2297
+ // src/generated/models/KillSwitchItem.ts
2298
+ var KillSwitchItemTargetTypeEnum = {
2299
+ ACTION: "action",
2300
+ COMPONENT: "component",
2301
+ FEATURE: "feature",
2302
+ PAGE: "page",
2303
+ QUERY: "query"
2304
+ };
2305
+ function instanceOfKillSwitchItem(value) {
2306
+ let isInstance = true;
2307
+ isInstance = isInstance && "targetType" in value;
2308
+ isInstance = isInstance && "targetId" in value;
2309
+ isInstance = isInstance && "enabled" in value;
2310
+ return isInstance;
2311
+ }
2312
+ function KillSwitchItemFromJSON(json) {
2313
+ return KillSwitchItemFromJSONTyped(json, false);
2314
+ }
2315
+ function KillSwitchItemFromJSONTyped(json, ignoreDiscriminator) {
2316
+ if (json === void 0 || json === null) {
2317
+ return json;
2318
+ }
2319
+ return {
2320
+ "targetType": json["targetType"],
2321
+ "targetId": json["targetId"],
2322
+ "enabled": json["enabled"],
2323
+ "reason": !exists(json, "reason") ? void 0 : json["reason"],
2324
+ "enabledAt": !exists(json, "enabledAt") ? void 0 : new Date(json["enabledAt"]),
2325
+ "enabledBy": !exists(json, "enabledBy") ? void 0 : json["enabledBy"],
2326
+ "userMessage": !exists(json, "userMessage") ? void 0 : json["userMessage"]
2327
+ };
2328
+ }
2329
+ function KillSwitchItemToJSON(value) {
2330
+ if (value === void 0) {
2331
+ return void 0;
2332
+ }
2333
+ if (value === null) {
2334
+ return null;
2335
+ }
2336
+ return {
2337
+ "targetType": value.targetType,
2338
+ "targetId": value.targetId,
2339
+ "enabled": value.enabled,
2340
+ "reason": value.reason,
2341
+ "enabledAt": value.enabledAt === void 0 ? void 0 : value.enabledAt.toISOString(),
2342
+ "enabledBy": value.enabledBy,
2343
+ "userMessage": value.userMessage
2344
+ };
2345
+ }
2346
+
2347
+ // src/generated/models/OpsConfig.ts
2348
+ function instanceOfOpsConfig(value) {
2349
+ let isInstance = true;
2350
+ isInstance = isInstance && "killSwitch" in value;
2351
+ isInstance = isInstance && "blockedComponents" in value;
2352
+ isInstance = isInstance && "flags" in value;
2353
+ return isInstance;
2354
+ }
2355
+ function OpsConfigFromJSON(json) {
2356
+ return OpsConfigFromJSONTyped(json, false);
2357
+ }
2358
+ function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
2359
+ if (json === void 0 || json === null) {
2360
+ return json;
2361
+ }
2362
+ return {
2363
+ "configVersionId": !exists(json, "configVersionId") ? void 0 : json["configVersionId"],
2364
+ "killSwitch": json["killSwitch"].map(KillSwitchItemFromJSON),
2365
+ "blockedComponents": json["blockedComponents"].map(BlockedComponentItemFromJSON),
2366
+ "flags": json["flags"],
2367
+ "expiresAt": !exists(json, "expiresAt") ? void 0 : new Date(json["expiresAt"])
2368
+ };
2369
+ }
2370
+ function OpsConfigToJSON(value) {
2371
+ if (value === void 0) {
2372
+ return void 0;
2373
+ }
2374
+ if (value === null) {
2375
+ return null;
2376
+ }
2377
+ return {
2378
+ "configVersionId": value.configVersionId,
2379
+ "killSwitch": value.killSwitch.map(KillSwitchItemToJSON),
2380
+ "blockedComponents": value.blockedComponents.map(BlockedComponentItemToJSON),
2381
+ "flags": value.flags,
2382
+ "expiresAt": value.expiresAt === void 0 ? void 0 : value.expiresAt.toISOString()
2383
+ };
2384
+ }
2385
+
2386
+ // src/generated/models/GetPageConfig200Response.ts
2387
+ function instanceOfGetPageConfig200Response(value) {
2388
+ let isInstance = true;
2389
+ return isInstance;
2390
+ }
2391
+ function GetPageConfig200ResponseFromJSON(json) {
2392
+ return GetPageConfig200ResponseFromJSONTyped(json, false);
2393
+ }
2394
+ function GetPageConfig200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2395
+ if (json === void 0 || json === null) {
2396
+ return json;
2397
+ }
2398
+ return {
2399
+ "success": !exists(json, "success") ? void 0 : json["success"],
2400
+ "data": !exists(json, "data") ? void 0 : OpsConfigFromJSON(json["data"])
2401
+ };
2402
+ }
2403
+ function GetPageConfig200ResponseToJSON(value) {
2404
+ if (value === void 0) {
2405
+ return void 0;
2406
+ }
2407
+ if (value === null) {
2408
+ return null;
2409
+ }
2410
+ return {
2411
+ "success": value.success,
2412
+ "data": OpsConfigToJSON(value.data)
2413
+ };
2414
+ }
2415
+
2416
+ // src/generated/models/QueryManifest.ts
2417
+ function instanceOfQueryManifest(value) {
2418
+ let isInstance = true;
2419
+ isInstance = isInstance && "queryId" in value;
2420
+ isInstance = isInstance && "queryVersionId" in value;
2421
+ return isInstance;
2422
+ }
2423
+ function QueryManifestFromJSON(json) {
2424
+ return QueryManifestFromJSONTyped(json, false);
2425
+ }
2426
+ function QueryManifestFromJSONTyped(json, ignoreDiscriminator) {
2427
+ if (json === void 0 || json === null) {
2428
+ return json;
2429
+ }
2430
+ return {
2431
+ "queryId": json["queryId"],
2432
+ "queryVersionId": json["queryVersionId"],
2433
+ "cacheTtl": !exists(json, "cacheTtl") ? void 0 : json["cacheTtl"]
2434
+ };
2435
+ }
2436
+ function QueryManifestToJSON(value) {
2437
+ if (value === void 0) {
2438
+ return void 0;
2439
+ }
2440
+ if (value === null) {
2441
+ return null;
2442
+ }
2443
+ return {
2444
+ "queryId": value.queryId,
2445
+ "queryVersionId": value.queryVersionId,
2446
+ "cacheTtl": value.cacheTtl
2447
+ };
2448
+ }
2449
+
2450
+ // src/generated/models/ResourceManifests.ts
2451
+ function instanceOfResourceManifests(value) {
2452
+ let isInstance = true;
2453
+ return isInstance;
2454
+ }
2455
+ function ResourceManifestsFromJSON(json) {
2456
+ return ResourceManifestsFromJSONTyped(json, false);
2457
+ }
2458
+ function ResourceManifestsFromJSONTyped(json, ignoreDiscriminator) {
2459
+ if (json === void 0 || json === null) {
2460
+ return json;
2461
+ }
2462
+ return {
2463
+ "components": !exists(json, "components") ? void 0 : json["components"].map(ComponentManifestFromJSON),
2464
+ "actions": !exists(json, "actions") ? void 0 : json["actions"].map(ActionManifestFromJSON),
2465
+ "queries": !exists(json, "queries") ? void 0 : json["queries"].map(QueryManifestFromJSON)
2466
+ };
2467
+ }
2468
+ function ResourceManifestsToJSON(value) {
2469
+ if (value === void 0) {
2470
+ return void 0;
2471
+ }
2472
+ if (value === null) {
2473
+ return null;
2474
+ }
2475
+ return {
2476
+ "components": value.components === void 0 ? void 0 : value.components.map(ComponentManifestToJSON),
2477
+ "actions": value.actions === void 0 ? void 0 : value.actions.map(ActionManifestToJSON),
2478
+ "queries": value.queries === void 0 ? void 0 : value.queries.map(QueryManifestToJSON)
2479
+ };
2480
+ }
2481
+
2482
+ // src/generated/models/GetPageManifest200Response.ts
2483
+ function instanceOfGetPageManifest200Response(value) {
2484
+ let isInstance = true;
2485
+ return isInstance;
2486
+ }
2487
+ function GetPageManifest200ResponseFromJSON(json) {
2488
+ return GetPageManifest200ResponseFromJSONTyped(json, false);
2489
+ }
2490
+ function GetPageManifest200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2491
+ if (json === void 0 || json === null) {
2492
+ return json;
2493
+ }
2494
+ return {
2495
+ "success": !exists(json, "success") ? void 0 : json["success"],
2496
+ "data": !exists(json, "data") ? void 0 : ResourceManifestsFromJSON(json["data"])
2497
+ };
2498
+ }
2499
+ function GetPageManifest200ResponseToJSON(value) {
2500
+ if (value === void 0) {
2501
+ return void 0;
2502
+ }
2503
+ if (value === null) {
2504
+ return null;
2505
+ }
2506
+ return {
2507
+ "success": value.success,
2508
+ "data": ResourceManifestsToJSON(value.data)
2509
+ };
2510
+ }
2511
+
2156
2512
  // src/generated/models/SigninCalendarRecordsInnerReward.ts
2157
2513
  function instanceOfSigninCalendarRecordsInnerReward(value) {
2158
2514
  let isInstance = true;
@@ -2284,6 +2640,36 @@ function GetSigninCalendar200ResponseToJSON(value) {
2284
2640
  };
2285
2641
  }
2286
2642
 
2643
+ // src/generated/models/GetSigninStatus200Response.ts
2644
+ function instanceOfGetSigninStatus200Response(value) {
2645
+ let isInstance = true;
2646
+ return isInstance;
2647
+ }
2648
+ function GetSigninStatus200ResponseFromJSON(json) {
2649
+ return GetSigninStatus200ResponseFromJSONTyped(json, false);
2650
+ }
2651
+ function GetSigninStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2652
+ if (json === void 0 || json === null) {
2653
+ return json;
2654
+ }
2655
+ return {
2656
+ "success": !exists(json, "success") ? void 0 : json["success"],
2657
+ "data": !exists(json, "data") ? void 0 : json["data"]
2658
+ };
2659
+ }
2660
+ function GetSigninStatus200ResponseToJSON(value) {
2661
+ if (value === void 0) {
2662
+ return void 0;
2663
+ }
2664
+ if (value === null) {
2665
+ return null;
2666
+ }
2667
+ return {
2668
+ "success": value.success,
2669
+ "data": value.data
2670
+ };
2671
+ }
2672
+
2287
2673
  // src/generated/models/TenantConfigBlockedComponentsInner.ts
2288
2674
  function instanceOfTenantConfigBlockedComponentsInner(value) {
2289
2675
  let isInstance = true;
@@ -2520,115 +2906,36 @@ function IdempotencyConflictResponseDataToJSON(value) {
2520
2906
  return void 0;
2521
2907
  }
2522
2908
  if (value === null) {
2523
- return null;
2524
- }
2525
- return {
2526
- "idempotent": value.idempotent,
2527
- "originalActionId": value.originalActionId,
2528
- "originalResult": value.originalResult,
2529
- "originalExecutedAt": value.originalExecutedAt === void 0 ? void 0 : value.originalExecutedAt.toISOString()
2530
- };
2531
- }
2532
-
2533
- // src/generated/models/IdempotencyConflictResponse.ts
2534
- function instanceOfIdempotencyConflictResponse(value) {
2535
- let isInstance = true;
2536
- isInstance = isInstance && "success" in value;
2537
- isInstance = isInstance && "data" in value;
2538
- return isInstance;
2539
- }
2540
- function IdempotencyConflictResponseFromJSON(json) {
2541
- return IdempotencyConflictResponseFromJSONTyped(json, false);
2542
- }
2543
- function IdempotencyConflictResponseFromJSONTyped(json, ignoreDiscriminator) {
2544
- if (json === void 0 || json === null) {
2545
- return json;
2546
- }
2547
- return {
2548
- "success": json["success"],
2549
- "data": IdempotencyConflictResponseDataFromJSON(json["data"])
2550
- };
2551
- }
2552
- function IdempotencyConflictResponseToJSON(value) {
2553
- if (value === void 0) {
2554
- return void 0;
2555
- }
2556
- if (value === null) {
2557
- return null;
2558
- }
2559
- return {
2560
- "success": value.success,
2561
- "data": IdempotencyConflictResponseDataToJSON(value.data)
2562
- };
2563
- }
2564
-
2565
- // src/generated/models/KillSwitchItem.ts
2566
- var KillSwitchItemTargetTypeEnum = {
2567
- ACTION: "action",
2568
- COMPONENT: "component",
2569
- FEATURE: "feature",
2570
- PAGE: "page",
2571
- QUERY: "query"
2572
- };
2573
- function instanceOfKillSwitchItem(value) {
2574
- let isInstance = true;
2575
- isInstance = isInstance && "targetType" in value;
2576
- isInstance = isInstance && "targetId" in value;
2577
- isInstance = isInstance && "enabled" in value;
2578
- return isInstance;
2579
- }
2580
- function KillSwitchItemFromJSON(json) {
2581
- return KillSwitchItemFromJSONTyped(json, false);
2582
- }
2583
- function KillSwitchItemFromJSONTyped(json, ignoreDiscriminator) {
2584
- if (json === void 0 || json === null) {
2585
- return json;
2586
- }
2587
- return {
2588
- "targetType": json["targetType"],
2589
- "targetId": json["targetId"],
2590
- "enabled": json["enabled"],
2591
- "reason": !exists(json, "reason") ? void 0 : json["reason"],
2592
- "enabledAt": !exists(json, "enabledAt") ? void 0 : new Date(json["enabledAt"]),
2593
- "enabledBy": !exists(json, "enabledBy") ? void 0 : json["enabledBy"],
2594
- "userMessage": !exists(json, "userMessage") ? void 0 : json["userMessage"]
2595
- };
2596
- }
2597
- function KillSwitchItemToJSON(value) {
2598
- if (value === void 0) {
2599
- return void 0;
2600
- }
2601
- if (value === null) {
2602
- return null;
2603
- }
2604
- return {
2605
- "targetType": value.targetType,
2606
- "targetId": value.targetId,
2607
- "enabled": value.enabled,
2608
- "reason": value.reason,
2609
- "enabledAt": value.enabledAt === void 0 ? void 0 : value.enabledAt.toISOString(),
2610
- "enabledBy": value.enabledBy,
2611
- "userMessage": value.userMessage
2909
+ return null;
2910
+ }
2911
+ return {
2912
+ "idempotent": value.idempotent,
2913
+ "originalActionId": value.originalActionId,
2914
+ "originalResult": value.originalResult,
2915
+ "originalExecutedAt": value.originalExecutedAt === void 0 ? void 0 : value.originalExecutedAt.toISOString()
2612
2916
  };
2613
2917
  }
2614
2918
 
2615
- // src/generated/models/LivenessCheck200Response.ts
2616
- function instanceOfLivenessCheck200Response(value) {
2919
+ // src/generated/models/IdempotencyConflictResponse.ts
2920
+ function instanceOfIdempotencyConflictResponse(value) {
2617
2921
  let isInstance = true;
2922
+ isInstance = isInstance && "success" in value;
2923
+ isInstance = isInstance && "data" in value;
2618
2924
  return isInstance;
2619
2925
  }
2620
- function LivenessCheck200ResponseFromJSON(json) {
2621
- return LivenessCheck200ResponseFromJSONTyped(json, false);
2926
+ function IdempotencyConflictResponseFromJSON(json) {
2927
+ return IdempotencyConflictResponseFromJSONTyped(json, false);
2622
2928
  }
2623
- function LivenessCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2929
+ function IdempotencyConflictResponseFromJSONTyped(json, ignoreDiscriminator) {
2624
2930
  if (json === void 0 || json === null) {
2625
2931
  return json;
2626
2932
  }
2627
2933
  return {
2628
- "alive": !exists(json, "alive") ? void 0 : json["alive"]
2934
+ "success": json["success"],
2935
+ "data": IdempotencyConflictResponseDataFromJSON(json["data"])
2629
2936
  };
2630
2937
  }
2631
- function LivenessCheck200ResponseToJSON(value) {
2938
+ function IdempotencyConflictResponseToJSON(value) {
2632
2939
  if (value === void 0) {
2633
2940
  return void 0;
2634
2941
  }
@@ -2636,34 +2943,28 @@ function LivenessCheck200ResponseToJSON(value) {
2636
2943
  return null;
2637
2944
  }
2638
2945
  return {
2639
- "alive": value.alive
2946
+ "success": value.success,
2947
+ "data": IdempotencyConflictResponseDataToJSON(value.data)
2640
2948
  };
2641
2949
  }
2642
2950
 
2643
- // src/generated/models/OpsConfig.ts
2644
- function instanceOfOpsConfig(value) {
2951
+ // src/generated/models/LivenessCheck200Response.ts
2952
+ function instanceOfLivenessCheck200Response(value) {
2645
2953
  let isInstance = true;
2646
- isInstance = isInstance && "killSwitch" in value;
2647
- isInstance = isInstance && "blockedComponents" in value;
2648
- isInstance = isInstance && "flags" in value;
2649
2954
  return isInstance;
2650
2955
  }
2651
- function OpsConfigFromJSON(json) {
2652
- return OpsConfigFromJSONTyped(json, false);
2956
+ function LivenessCheck200ResponseFromJSON(json) {
2957
+ return LivenessCheck200ResponseFromJSONTyped(json, false);
2653
2958
  }
2654
- function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
2959
+ function LivenessCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2655
2960
  if (json === void 0 || json === null) {
2656
2961
  return json;
2657
2962
  }
2658
2963
  return {
2659
- "configVersionId": !exists(json, "configVersionId") ? void 0 : json["configVersionId"],
2660
- "killSwitch": json["killSwitch"].map(KillSwitchItemFromJSON),
2661
- "blockedComponents": json["blockedComponents"].map(BlockedComponentItemFromJSON),
2662
- "flags": json["flags"],
2663
- "expiresAt": !exists(json, "expiresAt") ? void 0 : new Date(json["expiresAt"])
2964
+ "alive": !exists(json, "alive") ? void 0 : json["alive"]
2664
2965
  };
2665
2966
  }
2666
- function OpsConfigToJSON(value) {
2967
+ function LivenessCheck200ResponseToJSON(value) {
2667
2968
  if (value === void 0) {
2668
2969
  return void 0;
2669
2970
  }
@@ -2671,11 +2972,7 @@ function OpsConfigToJSON(value) {
2671
2972
  return null;
2672
2973
  }
2673
2974
  return {
2674
- "configVersionId": value.configVersionId,
2675
- "killSwitch": value.killSwitch.map(KillSwitchItemToJSON),
2676
- "blockedComponents": value.blockedComponents.map(BlockedComponentItemToJSON),
2677
- "flags": value.flags,
2678
- "expiresAt": value.expiresAt === void 0 ? void 0 : value.expiresAt.toISOString()
2975
+ "alive": value.alive
2679
2976
  };
2680
2977
  }
2681
2978
 
@@ -2986,40 +3283,6 @@ function QueryDefinitionResponseToJSON(value) {
2986
3283
  };
2987
3284
  }
2988
3285
 
2989
- // src/generated/models/QueryManifest.ts
2990
- function instanceOfQueryManifest(value) {
2991
- let isInstance = true;
2992
- isInstance = isInstance && "queryId" in value;
2993
- isInstance = isInstance && "queryVersionId" in value;
2994
- return isInstance;
2995
- }
2996
- function QueryManifestFromJSON(json) {
2997
- return QueryManifestFromJSONTyped(json, false);
2998
- }
2999
- function QueryManifestFromJSONTyped(json, ignoreDiscriminator) {
3000
- if (json === void 0 || json === null) {
3001
- return json;
3002
- }
3003
- return {
3004
- "queryId": json["queryId"],
3005
- "queryVersionId": json["queryVersionId"],
3006
- "cacheTtl": !exists(json, "cacheTtl") ? void 0 : json["cacheTtl"]
3007
- };
3008
- }
3009
- function QueryManifestToJSON(value) {
3010
- if (value === void 0) {
3011
- return void 0;
3012
- }
3013
- if (value === null) {
3014
- return null;
3015
- }
3016
- return {
3017
- "queryId": value.queryId,
3018
- "queryVersionId": value.queryVersionId,
3019
- "cacheTtl": value.cacheTtl
3020
- };
3021
- }
3022
-
3023
3286
  // src/generated/models/ReadinessCheck200Response.ts
3024
3287
  function instanceOfReadinessCheck200Response(value) {
3025
3288
  let isInstance = true;
@@ -3207,6 +3470,10 @@ function ResolvePageResponseAllOfDataSnapshotManifestEntrypointsToJSON(value) {
3207
3470
  }
3208
3471
 
3209
3472
  // src/generated/models/ResolvePageResponseAllOfDataSnapshotManifestComponents.ts
3473
+ var ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum = {
3474
+ BUNDLED: "bundled",
3475
+ REMOTE: "remote"
3476
+ };
3210
3477
  function instanceOfResolvePageResponseAllOfDataSnapshotManifestComponents(value) {
3211
3478
  let isInstance = true;
3212
3479
  return isInstance;
@@ -3221,6 +3488,7 @@ function ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped(jso
3221
3488
  return {
3222
3489
  "name": !exists(json, "name") ? void 0 : json["name"],
3223
3490
  "version": !exists(json, "version") ? void 0 : json["version"],
3491
+ "source": !exists(json, "source") ? void 0 : json["source"],
3224
3492
  "integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
3225
3493
  "assetsUrl": !exists(json, "assetsUrl") ? void 0 : json["assetsUrl"],
3226
3494
  "entrypoints": !exists(json, "entrypoints") ? void 0 : ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON(json["entrypoints"])
@@ -3236,6 +3504,7 @@ function ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON(value) {
3236
3504
  return {
3237
3505
  "name": value.name,
3238
3506
  "version": value.version,
3507
+ "source": value.source,
3239
3508
  "integrity": value.integrity,
3240
3509
  "assetsUrl": value.assetsUrl,
3241
3510
  "entrypoints": ResolvePageResponseAllOfDataSnapshotManifestEntrypointsToJSON(value.entrypoints)
@@ -3671,38 +3940,6 @@ function ResolveTenantRequestToJSON(value) {
3671
3940
  };
3672
3941
  }
3673
3942
 
3674
- // src/generated/models/ResourceManifests.ts
3675
- function instanceOfResourceManifests(value) {
3676
- let isInstance = true;
3677
- return isInstance;
3678
- }
3679
- function ResourceManifestsFromJSON(json) {
3680
- return ResourceManifestsFromJSONTyped(json, false);
3681
- }
3682
- function ResourceManifestsFromJSONTyped(json, ignoreDiscriminator) {
3683
- if (json === void 0 || json === null) {
3684
- return json;
3685
- }
3686
- return {
3687
- "components": !exists(json, "components") ? void 0 : json["components"].map(ComponentManifestFromJSON),
3688
- "actions": !exists(json, "actions") ? void 0 : json["actions"].map(ActionManifestFromJSON),
3689
- "queries": !exists(json, "queries") ? void 0 : json["queries"].map(QueryManifestFromJSON)
3690
- };
3691
- }
3692
- function ResourceManifestsToJSON(value) {
3693
- if (value === void 0) {
3694
- return void 0;
3695
- }
3696
- if (value === null) {
3697
- return null;
3698
- }
3699
- return {
3700
- "components": value.components === void 0 ? void 0 : value.components.map(ComponentManifestToJSON),
3701
- "actions": value.actions === void 0 ? void 0 : value.actions.map(ActionManifestToJSON),
3702
- "queries": value.queries === void 0 ? void 0 : value.queries.map(QueryManifestToJSON)
3703
- };
3704
- }
3705
-
3706
3943
  // src/generated/models/SuccessResponse.ts
3707
3944
  function instanceOfSuccessResponse(value) {
3708
3945
  let isInstance = true;
@@ -4319,6 +4556,32 @@ var ActivitiesApi = class extends BaseAPI {
4319
4556
  const response = await this.getActivityStateRaw(requestParameters, initOverrides);
4320
4557
  return await response.value();
4321
4558
  }
4559
+ /**
4560
+ * 获取活动的当前状态信息,包括是否进行中、时间范围等。 不需要登录,可用于前端判断活动是否在有效期内。
4561
+ * 获取活动状态(兼容)
4562
+ */
4563
+ async getActivityStatusRaw(requestParameters, initOverrides) {
4564
+ if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
4565
+ throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getActivityStatus.");
4566
+ }
4567
+ const queryParameters = {};
4568
+ const headerParameters = {};
4569
+ const response = await this.request({
4570
+ path: `/activities/{activityId}/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4571
+ method: "GET",
4572
+ headers: headerParameters,
4573
+ query: queryParameters
4574
+ }, initOverrides);
4575
+ return new JSONApiResponse(response, (jsonValue) => GetActivityStatus200ResponseFromJSON(jsonValue));
4576
+ }
4577
+ /**
4578
+ * 获取活动的当前状态信息,包括是否进行中、时间范围等。 不需要登录,可用于前端判断活动是否在有效期内。
4579
+ * 获取活动状态(兼容)
4580
+ */
4581
+ async getActivityStatus(requestParameters, initOverrides) {
4582
+ const response = await this.getActivityStatusRaw(requestParameters, initOverrides);
4583
+ return await response.value();
4584
+ }
4322
4585
  /**
4323
4586
  * 获取用户在指定活动中的领取记录
4324
4587
  * 获取领取记录
@@ -4358,6 +4621,45 @@ var ActivitiesApi = class extends BaseAPI {
4358
4621
  const response = await this.getClaimRecordsRaw(requestParameters, initOverrides);
4359
4622
  return await response.value();
4360
4623
  }
4624
+ /**
4625
+ * 获取用户在指定活动中的领取状态
4626
+ * 获取领取状态
4627
+ */
4628
+ async getClaimStatusRaw(requestParameters, initOverrides) {
4629
+ if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
4630
+ throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getClaimStatus.");
4631
+ }
4632
+ if (requestParameters.uid === null || requestParameters.uid === void 0) {
4633
+ throw new RequiredError("uid", "Required parameter requestParameters.uid was null or undefined when calling getClaimStatus.");
4634
+ }
4635
+ const queryParameters = {};
4636
+ if (requestParameters.uid !== void 0) {
4637
+ queryParameters["uid"] = requestParameters.uid;
4638
+ }
4639
+ const headerParameters = {};
4640
+ if (this.configuration && this.configuration.accessToken) {
4641
+ const token = this.configuration.accessToken;
4642
+ const tokenString = await token("BearerAuth", []);
4643
+ if (tokenString) {
4644
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4645
+ }
4646
+ }
4647
+ const response = await this.request({
4648
+ path: `/activities/{activityId}/claim/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4649
+ method: "GET",
4650
+ headers: headerParameters,
4651
+ query: queryParameters
4652
+ }, initOverrides);
4653
+ return new JSONApiResponse(response, (jsonValue) => GetClaimStatus200ResponseFromJSON(jsonValue));
4654
+ }
4655
+ /**
4656
+ * 获取用户在指定活动中的领取状态
4657
+ * 获取领取状态
4658
+ */
4659
+ async getClaimStatus(requestParameters, initOverrides) {
4660
+ const response = await this.getClaimStatusRaw(requestParameters, initOverrides);
4661
+ return await response.value();
4662
+ }
4361
4663
  /**
4362
4664
  * 获取用户在指定活动中的抽奖记录
4363
4665
  * 获取抽奖记录
@@ -4433,6 +4735,45 @@ var ActivitiesApi = class extends BaseAPI {
4433
4735
  const response = await this.getSigninCalendarRaw(requestParameters, initOverrides);
4434
4736
  return await response.value();
4435
4737
  }
4738
+ /**
4739
+ * 获取用户在指定活动中的签到状态
4740
+ * 获取签到状态
4741
+ */
4742
+ async getSigninStatusRaw(requestParameters, initOverrides) {
4743
+ if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
4744
+ throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getSigninStatus.");
4745
+ }
4746
+ if (requestParameters.uid === null || requestParameters.uid === void 0) {
4747
+ throw new RequiredError("uid", "Required parameter requestParameters.uid was null or undefined when calling getSigninStatus.");
4748
+ }
4749
+ const queryParameters = {};
4750
+ if (requestParameters.uid !== void 0) {
4751
+ queryParameters["uid"] = requestParameters.uid;
4752
+ }
4753
+ const headerParameters = {};
4754
+ if (this.configuration && this.configuration.accessToken) {
4755
+ const token = this.configuration.accessToken;
4756
+ const tokenString = await token("BearerAuth", []);
4757
+ if (tokenString) {
4758
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4759
+ }
4760
+ }
4761
+ const response = await this.request({
4762
+ path: `/activities/{activityId}/signin/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4763
+ method: "GET",
4764
+ headers: headerParameters,
4765
+ query: queryParameters
4766
+ }, initOverrides);
4767
+ return new JSONApiResponse(response, (jsonValue) => GetSigninStatus200ResponseFromJSON(jsonValue));
4768
+ }
4769
+ /**
4770
+ * 获取用户在指定活动中的签到状态
4771
+ * 获取签到状态
4772
+ */
4773
+ async getSigninStatus(requestParameters, initOverrides) {
4774
+ const response = await this.getSigninStatusRaw(requestParameters, initOverrides);
4775
+ return await response.value();
4776
+ }
4436
4777
  };
4437
4778
 
4438
4779
  // src/generated/apis/HealthApi.ts
@@ -4510,6 +4851,90 @@ var HealthApi = class extends BaseAPI {
4510
4851
 
4511
4852
  // src/generated/apis/PagesApi.ts
4512
4853
  var PagesApi = class extends BaseAPI {
4854
+ /**
4855
+ * 返回当前运维配置(killSwitch、blockedComponents、featureFlags 等)。 用途: - Runtime 启动时获取全局运维配置 - 判断是否有组件被阻断或功能被关闭
4856
+ * 获取运维配置
4857
+ */
4858
+ async getPageConfigRaw(requestParameters, initOverrides) {
4859
+ const queryParameters = {};
4860
+ if (requestParameters.env !== void 0) {
4861
+ queryParameters["env"] = requestParameters.env;
4862
+ }
4863
+ const headerParameters = {};
4864
+ if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
4865
+ headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
4866
+ }
4867
+ if (this.configuration && this.configuration.apiKey) {
4868
+ headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
4869
+ }
4870
+ if (this.configuration && this.configuration.accessToken) {
4871
+ const token = this.configuration.accessToken;
4872
+ const tokenString = await token("BearerAuth", []);
4873
+ if (tokenString) {
4874
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4875
+ }
4876
+ }
4877
+ const response = await this.request({
4878
+ path: `/page/config`,
4879
+ method: "GET",
4880
+ headers: headerParameters,
4881
+ query: queryParameters
4882
+ }, initOverrides);
4883
+ return new JSONApiResponse(response, (jsonValue) => GetPageConfig200ResponseFromJSON(jsonValue));
4884
+ }
4885
+ /**
4886
+ * 返回当前运维配置(killSwitch、blockedComponents、featureFlags 等)。 用途: - Runtime 启动时获取全局运维配置 - 判断是否有组件被阻断或功能被关闭
4887
+ * 获取运维配置
4888
+ */
4889
+ async getPageConfig(requestParameters = {}, initOverrides) {
4890
+ const response = await this.getPageConfigRaw(requestParameters, initOverrides);
4891
+ return await response.value();
4892
+ }
4893
+ /**
4894
+ * 返回页面的组件锁定清单(manifest),包含所有引用的组件版本和资源信息。 用途: - Runtime 根据 manifest 预加载组件资源 - Editor 根据 manifest 展示组件依赖
4895
+ * 获取组件清单
4896
+ */
4897
+ async getPageManifestRaw(requestParameters, initOverrides) {
4898
+ if (requestParameters.pageId === null || requestParameters.pageId === void 0) {
4899
+ throw new RequiredError("pageId", "Required parameter requestParameters.pageId was null or undefined when calling getPageManifest.");
4900
+ }
4901
+ const queryParameters = {};
4902
+ if (requestParameters.pageId !== void 0) {
4903
+ queryParameters["pageId"] = requestParameters.pageId;
4904
+ }
4905
+ if (requestParameters.env !== void 0) {
4906
+ queryParameters["env"] = requestParameters.env;
4907
+ }
4908
+ const headerParameters = {};
4909
+ if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
4910
+ headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
4911
+ }
4912
+ if (this.configuration && this.configuration.apiKey) {
4913
+ headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
4914
+ }
4915
+ if (this.configuration && this.configuration.accessToken) {
4916
+ const token = this.configuration.accessToken;
4917
+ const tokenString = await token("BearerAuth", []);
4918
+ if (tokenString) {
4919
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4920
+ }
4921
+ }
4922
+ const response = await this.request({
4923
+ path: `/page/manifest`,
4924
+ method: "GET",
4925
+ headers: headerParameters,
4926
+ query: queryParameters
4927
+ }, initOverrides);
4928
+ return new JSONApiResponse(response, (jsonValue) => GetPageManifest200ResponseFromJSON(jsonValue));
4929
+ }
4930
+ /**
4931
+ * 返回页面的组件锁定清单(manifest),包含所有引用的组件版本和资源信息。 用途: - Runtime 根据 manifest 预加载组件资源 - Editor 根据 manifest 展示组件依赖
4932
+ * 获取组件清单
4933
+ */
4934
+ async getPageManifest(requestParameters, initOverrides) {
4935
+ const response = await this.getPageManifestRaw(requestParameters, initOverrides);
4936
+ return await response.value();
4937
+ }
4513
4938
  /**
4514
4939
  * Runtime 的核心接口,返回渲染所需的完整数据。 支持两种模式: 1. 稳定入口(推荐):支持灰度/回滚/ops,返回 resolvedVersionId 和 CDN 地址 2. 保底模式:当 includeSnapshot=1 时,返回完整 snapshot(CDN 失败时使用) 响应包含: - resolvedVersionId: 解析后的页面版本 ID(考虑灰度/回滚) - cdnBase: CDN 基础地址 - snapshotUrl: snapshot.json 的完整 URL - manifestUrl: manifest.json 的完整 URL - ops: 运维配置(killSwitch、blockedComponents、flags) - etag: 内容哈希(用于缓存) - cacheTtlSeconds: 缓存 TTL(建议 10~30 秒) - snapshot: 完整快照(仅当 includeSnapshot=1 时返回)
4515
4940
  * 解析页面(Runtime 核心接口)
@@ -4923,6 +5348,10 @@ var VERSION = "1.0.0";
4923
5348
  ActionManifestToJSON,
4924
5349
  ActionsApi,
4925
5350
  ActivitiesApi,
5351
+ ActivityStatusFromJSON,
5352
+ ActivityStatusFromJSONTyped,
5353
+ ActivityStatusToJSON,
5354
+ ActivityStatusTypeEnum,
4926
5355
  ApiError,
4927
5356
  BaseAPI,
4928
5357
  BatchQueryRequestFromJSON,
@@ -4949,6 +5378,7 @@ var VERSION = "1.0.0";
4949
5378
  ClaimRecordInfoToJSON,
4950
5379
  ComponentManifestFromJSON,
4951
5380
  ComponentManifestFromJSONTyped,
5381
+ ComponentManifestSourceEnum,
4952
5382
  ComponentManifestToJSON,
4953
5383
  Configuration,
4954
5384
  ErrorResponseFromJSON,
@@ -4974,15 +5404,30 @@ var VERSION = "1.0.0";
4974
5404
  GetActivityState200ResponseFromJSON,
4975
5405
  GetActivityState200ResponseFromJSONTyped,
4976
5406
  GetActivityState200ResponseToJSON,
5407
+ GetActivityStatus200ResponseFromJSON,
5408
+ GetActivityStatus200ResponseFromJSONTyped,
5409
+ GetActivityStatus200ResponseToJSON,
4977
5410
  GetClaimRecords200ResponseFromJSON,
4978
5411
  GetClaimRecords200ResponseFromJSONTyped,
4979
5412
  GetClaimRecords200ResponseToJSON,
5413
+ GetClaimStatus200ResponseFromJSON,
5414
+ GetClaimStatus200ResponseFromJSONTyped,
5415
+ GetClaimStatus200ResponseToJSON,
4980
5416
  GetLotteryRecords200ResponseFromJSON,
4981
5417
  GetLotteryRecords200ResponseFromJSONTyped,
4982
5418
  GetLotteryRecords200ResponseToJSON,
5419
+ GetPageConfig200ResponseFromJSON,
5420
+ GetPageConfig200ResponseFromJSONTyped,
5421
+ GetPageConfig200ResponseToJSON,
5422
+ GetPageManifest200ResponseFromJSON,
5423
+ GetPageManifest200ResponseFromJSONTyped,
5424
+ GetPageManifest200ResponseToJSON,
4983
5425
  GetSigninCalendar200ResponseFromJSON,
4984
5426
  GetSigninCalendar200ResponseFromJSONTyped,
4985
5427
  GetSigninCalendar200ResponseToJSON,
5428
+ GetSigninStatus200ResponseFromJSON,
5429
+ GetSigninStatus200ResponseFromJSONTyped,
5430
+ GetSigninStatus200ResponseToJSON,
4986
5431
  GetTenantConfig200ResponseFromJSON,
4987
5432
  GetTenantConfig200ResponseFromJSONTyped,
4988
5433
  GetTenantConfig200ResponseToJSON,
@@ -5082,6 +5527,7 @@ var VERSION = "1.0.0";
5082
5527
  ResolvePageResponseAllOfDataSnapshotFromJSONTyped,
5083
5528
  ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSON,
5084
5529
  ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped,
5530
+ ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum,
5085
5531
  ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON,
5086
5532
  ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON,
5087
5533
  ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSONTyped,
@@ -5230,6 +5676,7 @@ var VERSION = "1.0.0";
5230
5676
  instanceOfActionDefinitionResponseData,
5231
5677
  instanceOfActionEffect,
5232
5678
  instanceOfActionManifest,
5679
+ instanceOfActivityStatus,
5233
5680
  instanceOfBatchQueryRequest,
5234
5681
  instanceOfBatchQueryRequestQueriesInner,
5235
5682
  instanceOfBatchQueryResponse,
@@ -5245,9 +5692,14 @@ var VERSION = "1.0.0";
5245
5692
  instanceOfExecuteActionResponseAllOfDataRiskDecision,
5246
5693
  instanceOfGetActivityInfo200Response,
5247
5694
  instanceOfGetActivityState200Response,
5695
+ instanceOfGetActivityStatus200Response,
5248
5696
  instanceOfGetClaimRecords200Response,
5697
+ instanceOfGetClaimStatus200Response,
5249
5698
  instanceOfGetLotteryRecords200Response,
5699
+ instanceOfGetPageConfig200Response,
5700
+ instanceOfGetPageManifest200Response,
5250
5701
  instanceOfGetSigninCalendar200Response,
5702
+ instanceOfGetSigninStatus200Response,
5251
5703
  instanceOfGetTenantConfig200Response,
5252
5704
  instanceOfHealthResponse,
5253
5705
  instanceOfHealthResponseDependenciesValue,