@djvlc/openapi-user-client 1.2.0 → 1.3.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.mjs CHANGED
@@ -1,279 +1,2173 @@
1
- // src/index.ts
2
- var UserApiClient = class {
3
- constructor(config) {
4
- this.config = {
5
- timeout: 1e4,
6
- ...config
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/gen/runtime.ts
8
+ var BASE_PATH = "https://api.djvlc.com".replace(/\/+$/, "");
9
+ var Configuration = class {
10
+ constructor(configuration = {}) {
11
+ this.configuration = configuration;
12
+ }
13
+ set config(configuration) {
14
+ this.configuration = configuration;
15
+ }
16
+ get basePath() {
17
+ return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
18
+ }
19
+ get fetchApi() {
20
+ return this.configuration.fetchApi;
21
+ }
22
+ get middleware() {
23
+ return this.configuration.middleware || [];
24
+ }
25
+ get queryParamsStringify() {
26
+ return this.configuration.queryParamsStringify || querystring;
27
+ }
28
+ get username() {
29
+ return this.configuration.username;
30
+ }
31
+ get password() {
32
+ return this.configuration.password;
33
+ }
34
+ get apiKey() {
35
+ const apiKey = this.configuration.apiKey;
36
+ if (apiKey) {
37
+ return typeof apiKey === "function" ? apiKey : () => apiKey;
38
+ }
39
+ return void 0;
40
+ }
41
+ get accessToken() {
42
+ const accessToken = this.configuration.accessToken;
43
+ if (accessToken) {
44
+ return typeof accessToken === "function" ? accessToken : async () => accessToken;
45
+ }
46
+ return void 0;
47
+ }
48
+ get headers() {
49
+ return this.configuration.headers;
50
+ }
51
+ get credentials() {
52
+ return this.configuration.credentials;
53
+ }
54
+ };
55
+ var DefaultConfig = new Configuration();
56
+ var _BaseAPI = class _BaseAPI {
57
+ constructor(configuration = DefaultConfig) {
58
+ this.configuration = configuration;
59
+ this.fetchApi = async (url, init) => {
60
+ let fetchParams = { url, init };
61
+ for (const middleware of this.middleware) {
62
+ if (middleware.pre) {
63
+ fetchParams = await middleware.pre({
64
+ fetch: this.fetchApi,
65
+ ...fetchParams
66
+ }) || fetchParams;
67
+ }
68
+ }
69
+ let response = void 0;
70
+ try {
71
+ response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
72
+ } catch (e) {
73
+ for (const middleware of this.middleware) {
74
+ if (middleware.onError) {
75
+ response = await middleware.onError({
76
+ fetch: this.fetchApi,
77
+ url: fetchParams.url,
78
+ init: fetchParams.init,
79
+ error: e,
80
+ response: response ? response.clone() : void 0
81
+ }) || response;
82
+ }
83
+ }
84
+ if (response === void 0) {
85
+ if (e instanceof Error) {
86
+ throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
87
+ } else {
88
+ throw e;
89
+ }
90
+ }
91
+ }
92
+ for (const middleware of this.middleware) {
93
+ if (middleware.post) {
94
+ response = await middleware.post({
95
+ fetch: this.fetchApi,
96
+ url: fetchParams.url,
97
+ init: fetchParams.init,
98
+ response: response.clone()
99
+ }) || response;
100
+ }
101
+ }
102
+ return response;
7
103
  };
104
+ this.middleware = configuration.middleware;
105
+ }
106
+ withMiddleware(...middlewares) {
107
+ const next = this.clone();
108
+ next.middleware = next.middleware.concat(...middlewares);
109
+ return next;
110
+ }
111
+ withPreMiddleware(...preMiddlewares) {
112
+ const middlewares = preMiddlewares.map((pre) => ({ pre }));
113
+ return this.withMiddleware(...middlewares);
114
+ }
115
+ withPostMiddleware(...postMiddlewares) {
116
+ const middlewares = postMiddlewares.map((post) => ({ post }));
117
+ return this.withMiddleware(...middlewares);
8
118
  }
9
119
  /**
10
- * 获取认证 Token
120
+ * Check if the given MIME is a JSON MIME.
121
+ * JSON MIME examples:
122
+ * application/json
123
+ * application/json; charset=UTF8
124
+ * APPLICATION/JSON
125
+ * application/vnd.company+json
126
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
127
+ * @return True if the given MIME is JSON, false otherwise.
11
128
  */
12
- async getAuthToken() {
13
- if (this.config.getToken) {
14
- return this.config.getToken();
129
+ isJsonMime(mime) {
130
+ if (!mime) {
131
+ return false;
15
132
  }
16
- return this.config.token;
133
+ return _BaseAPI.jsonRegex.test(mime);
17
134
  }
18
- /**
19
- * 获取通用请求头
20
- */
21
- async getCommonHeaders() {
22
- const headers = {
23
- "Content-Type": "application/json",
24
- ...this.config.headers
25
- };
26
- const token = await this.getAuthToken();
27
- if (token) {
28
- headers["Authorization"] = `Bearer ${token}`;
135
+ async request(context, initOverrides) {
136
+ const { url, init } = await this.createFetchParams(context, initOverrides);
137
+ const response = await this.fetchApi(url, init);
138
+ if (response && (response.status >= 200 && response.status < 300)) {
139
+ return response;
29
140
  }
30
- if (this.config.deviceId) {
31
- headers["x-device-id"] = this.config.deviceId;
141
+ throw new ResponseError(response, "Response returned an error code");
142
+ }
143
+ async createFetchParams(context, initOverrides) {
144
+ let url = this.configuration.basePath + context.path;
145
+ if (context.query !== void 0 && Object.keys(context.query).length !== 0) {
146
+ url += "?" + this.configuration.queryParamsStringify(context.query);
32
147
  }
33
- if (this.config.channel) {
34
- headers["x-channel"] = this.config.channel;
148
+ const headers = Object.assign({}, this.configuration.headers, context.headers);
149
+ Object.keys(headers).forEach((key) => headers[key] === void 0 ? delete headers[key] : {});
150
+ const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
151
+ const initParams = {
152
+ method: context.method,
153
+ headers,
154
+ body: context.body,
155
+ credentials: this.configuration.credentials
156
+ };
157
+ const overriddenInit = {
158
+ ...initParams,
159
+ ...await initOverrideFn({
160
+ init: initParams,
161
+ context
162
+ })
163
+ };
164
+ let body;
165
+ if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
166
+ body = overriddenInit.body;
167
+ } else if (this.isJsonMime(headers["Content-Type"])) {
168
+ body = JSON.stringify(overriddenInit.body);
169
+ } else {
170
+ body = overriddenInit.body;
171
+ }
172
+ const init = {
173
+ ...overriddenInit,
174
+ body
175
+ };
176
+ return { url, init };
177
+ }
178
+ /**
179
+ * Create a shallow clone of `this` by constructing a new instance
180
+ * and then shallow cloning data members.
181
+ */
182
+ clone() {
183
+ const constructor = this.constructor;
184
+ const next = new constructor(this.configuration);
185
+ next.middleware = this.middleware.slice();
186
+ return next;
187
+ }
188
+ };
189
+ _BaseAPI.jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
190
+ var BaseAPI = _BaseAPI;
191
+ function isBlob(value) {
192
+ return typeof Blob !== "undefined" && value instanceof Blob;
193
+ }
194
+ function isFormData(value) {
195
+ return typeof FormData !== "undefined" && value instanceof FormData;
196
+ }
197
+ var ResponseError = class extends Error {
198
+ constructor(response, msg) {
199
+ super(msg);
200
+ this.response = response;
201
+ this.name = "ResponseError";
202
+ }
203
+ };
204
+ var FetchError = class extends Error {
205
+ constructor(cause, msg) {
206
+ super(msg);
207
+ this.cause = cause;
208
+ this.name = "FetchError";
209
+ }
210
+ };
211
+ var RequiredError = class extends Error {
212
+ constructor(field, msg) {
213
+ super(msg);
214
+ this.field = field;
215
+ this.name = "RequiredError";
216
+ }
217
+ };
218
+ function querystring(params, prefix = "") {
219
+ return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
220
+ }
221
+ function querystringSingleKey(key, value, keyPrefix = "") {
222
+ const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
223
+ if (value instanceof Array) {
224
+ const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
225
+ return `${encodeURIComponent(fullKey)}=${multiValue}`;
226
+ }
227
+ if (value instanceof Set) {
228
+ const valueAsArray = Array.from(value);
229
+ return querystringSingleKey(key, valueAsArray, keyPrefix);
230
+ }
231
+ if (value instanceof Date) {
232
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
233
+ }
234
+ if (value instanceof Object) {
235
+ return querystring(value, fullKey);
236
+ }
237
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
238
+ }
239
+ function mapValues(data, fn) {
240
+ const result = {};
241
+ for (const key of Object.keys(data)) {
242
+ result[key] = fn(data[key]);
243
+ }
244
+ return result;
245
+ }
246
+ var JSONApiResponse = class {
247
+ constructor(raw, transformer = (jsonValue) => jsonValue) {
248
+ this.raw = raw;
249
+ this.transformer = transformer;
250
+ }
251
+ async value() {
252
+ return this.transformer(await this.raw.json());
253
+ }
254
+ };
255
+ var VoidApiResponse = class {
256
+ constructor(raw) {
257
+ this.raw = raw;
258
+ }
259
+ async value() {
260
+ return void 0;
261
+ }
262
+ };
263
+
264
+ // src/gen/apis/index.ts
265
+ var apis_exports = {};
266
+ __export(apis_exports, {
267
+ ActionApi: () => ActionApi,
268
+ ActivityApi: () => ActivityApi,
269
+ DataApi: () => DataApi,
270
+ HealthApi: () => HealthApi,
271
+ PageApi: () => PageApi,
272
+ ResolvePageChannelEnum: () => ResolvePageChannelEnum,
273
+ TrackApi: () => TrackApi
274
+ });
275
+
276
+ // src/gen/models/ActionContext.ts
277
+ function instanceOfActionContext(value) {
278
+ return true;
279
+ }
280
+ function ActionContextFromJSON(json) {
281
+ return ActionContextFromJSONTyped(json, false);
282
+ }
283
+ function ActionContextFromJSONTyped(json, ignoreDiscriminator) {
284
+ if (json == null) {
285
+ return json;
286
+ }
287
+ return {
288
+ "pageVersionId": json["pageVersionId"] == null ? void 0 : json["pageVersionId"],
289
+ "componentVersion": json["componentVersion"] == null ? void 0 : json["componentVersion"],
290
+ "uid": json["uid"] == null ? void 0 : json["uid"],
291
+ "deviceId": json["deviceId"] == null ? void 0 : json["deviceId"],
292
+ "channel": json["channel"] == null ? void 0 : json["channel"],
293
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"],
294
+ "extra": json["extra"] == null ? void 0 : json["extra"]
295
+ };
296
+ }
297
+ function ActionContextToJSON(json) {
298
+ return ActionContextToJSONTyped(json, false);
299
+ }
300
+ function ActionContextToJSONTyped(value, ignoreDiscriminator = false) {
301
+ if (value == null) {
302
+ return value;
303
+ }
304
+ return {
305
+ "pageVersionId": value["pageVersionId"],
306
+ "componentVersion": value["componentVersion"],
307
+ "uid": value["uid"],
308
+ "deviceId": value["deviceId"],
309
+ "channel": value["channel"],
310
+ "traceId": value["traceId"],
311
+ "extra": value["extra"]
312
+ };
313
+ }
314
+
315
+ // src/gen/models/ActionExecuteRequest.ts
316
+ function instanceOfActionExecuteRequest(value) {
317
+ if (!("actionType" in value) || value["actionType"] === void 0) return false;
318
+ if (!("params" in value) || value["params"] === void 0) return false;
319
+ if (!("context" in value) || value["context"] === void 0) return false;
320
+ return true;
321
+ }
322
+ function ActionExecuteRequestFromJSON(json) {
323
+ return ActionExecuteRequestFromJSONTyped(json, false);
324
+ }
325
+ function ActionExecuteRequestFromJSONTyped(json, ignoreDiscriminator) {
326
+ if (json == null) {
327
+ return json;
328
+ }
329
+ return {
330
+ "actionType": json["actionType"],
331
+ "params": json["params"],
332
+ "context": ActionContextFromJSON(json["context"]),
333
+ "idempotencyKey": json["idempotencyKey"] == null ? void 0 : json["idempotencyKey"]
334
+ };
335
+ }
336
+ function ActionExecuteRequestToJSON(json) {
337
+ return ActionExecuteRequestToJSONTyped(json, false);
338
+ }
339
+ function ActionExecuteRequestToJSONTyped(value, ignoreDiscriminator = false) {
340
+ if (value == null) {
341
+ return value;
342
+ }
343
+ return {
344
+ "actionType": value["actionType"],
345
+ "params": value["params"],
346
+ "context": ActionContextToJSON(value["context"]),
347
+ "idempotencyKey": value["idempotencyKey"]
348
+ };
349
+ }
350
+
351
+ // src/gen/models/ActionExecuteResponse.ts
352
+ function instanceOfActionExecuteResponse(value) {
353
+ if (!("success" in value) || value["success"] === void 0) return false;
354
+ return true;
355
+ }
356
+ function ActionExecuteResponseFromJSON(json) {
357
+ return ActionExecuteResponseFromJSONTyped(json, false);
358
+ }
359
+ function ActionExecuteResponseFromJSONTyped(json, ignoreDiscriminator) {
360
+ if (json == null) {
361
+ return json;
362
+ }
363
+ return {
364
+ "success": json["success"],
365
+ "data": json["data"] == null ? void 0 : json["data"],
366
+ "code": json["code"] == null ? void 0 : json["code"],
367
+ "message": json["message"] == null ? void 0 : json["message"],
368
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"]
369
+ };
370
+ }
371
+ function ActionExecuteResponseToJSON(json) {
372
+ return ActionExecuteResponseToJSONTyped(json, false);
373
+ }
374
+ function ActionExecuteResponseToJSONTyped(value, ignoreDiscriminator = false) {
375
+ if (value == null) {
376
+ return value;
377
+ }
378
+ return {
379
+ "success": value["success"],
380
+ "data": value["data"],
381
+ "code": value["code"],
382
+ "message": value["message"],
383
+ "traceId": value["traceId"]
384
+ };
385
+ }
386
+
387
+ // src/gen/models/UserActivityStateProgress.ts
388
+ function instanceOfUserActivityStateProgress(value) {
389
+ return true;
390
+ }
391
+ function UserActivityStateProgressFromJSON(json) {
392
+ return UserActivityStateProgressFromJSONTyped(json, false);
393
+ }
394
+ function UserActivityStateProgressFromJSONTyped(json, ignoreDiscriminator) {
395
+ if (json == null) {
396
+ return json;
397
+ }
398
+ return {
399
+ "current": json["current"] == null ? void 0 : json["current"],
400
+ "target": json["target"] == null ? void 0 : json["target"],
401
+ "percentage": json["percentage"] == null ? void 0 : json["percentage"]
402
+ };
403
+ }
404
+ function UserActivityStateProgressToJSON(json) {
405
+ return UserActivityStateProgressToJSONTyped(json, false);
406
+ }
407
+ function UserActivityStateProgressToJSONTyped(value, ignoreDiscriminator = false) {
408
+ if (value == null) {
409
+ return value;
410
+ }
411
+ return {
412
+ "current": value["current"],
413
+ "target": value["target"],
414
+ "percentage": value["percentage"]
415
+ };
416
+ }
417
+
418
+ // src/gen/models/UserActivityState.ts
419
+ function instanceOfUserActivityState(value) {
420
+ return true;
421
+ }
422
+ function UserActivityStateFromJSON(json) {
423
+ return UserActivityStateFromJSONTyped(json, false);
424
+ }
425
+ function UserActivityStateFromJSONTyped(json, ignoreDiscriminator) {
426
+ if (json == null) {
427
+ return json;
428
+ }
429
+ return {
430
+ "participated": json["participated"] == null ? void 0 : json["participated"],
431
+ "claimedCount": json["claimedCount"] == null ? void 0 : json["claimedCount"],
432
+ "remainingCount": json["remainingCount"] == null ? void 0 : json["remainingCount"],
433
+ "lastClaimedAt": json["lastClaimedAt"] == null ? void 0 : json["lastClaimedAt"],
434
+ "consecutiveDays": json["consecutiveDays"] == null ? void 0 : json["consecutiveDays"],
435
+ "progress": json["progress"] == null ? void 0 : UserActivityStateProgressFromJSON(json["progress"])
436
+ };
437
+ }
438
+ function UserActivityStateToJSON(json) {
439
+ return UserActivityStateToJSONTyped(json, false);
440
+ }
441
+ function UserActivityStateToJSONTyped(value, ignoreDiscriminator = false) {
442
+ if (value == null) {
443
+ return value;
444
+ }
445
+ return {
446
+ "participated": value["participated"],
447
+ "claimedCount": value["claimedCount"],
448
+ "remainingCount": value["remainingCount"],
449
+ "lastClaimedAt": value["lastClaimedAt"],
450
+ "consecutiveDays": value["consecutiveDays"],
451
+ "progress": UserActivityStateProgressToJSON(value["progress"])
452
+ };
453
+ }
454
+
455
+ // src/gen/models/ActivityStateActivityInfo.ts
456
+ function instanceOfActivityStateActivityInfo(value) {
457
+ return true;
458
+ }
459
+ function ActivityStateActivityInfoFromJSON(json) {
460
+ return ActivityStateActivityInfoFromJSONTyped(json, false);
461
+ }
462
+ function ActivityStateActivityInfoFromJSONTyped(json, ignoreDiscriminator) {
463
+ if (json == null) {
464
+ return json;
465
+ }
466
+ return {
467
+ "name": json["name"] == null ? void 0 : json["name"],
468
+ "startTime": json["startTime"] == null ? void 0 : json["startTime"],
469
+ "endTime": json["endTime"] == null ? void 0 : json["endTime"]
470
+ };
471
+ }
472
+ function ActivityStateActivityInfoToJSON(json) {
473
+ return ActivityStateActivityInfoToJSONTyped(json, false);
474
+ }
475
+ function ActivityStateActivityInfoToJSONTyped(value, ignoreDiscriminator = false) {
476
+ if (value == null) {
477
+ return value;
478
+ }
479
+ return {
480
+ "name": value["name"],
481
+ "startTime": value["startTime"],
482
+ "endTime": value["endTime"]
483
+ };
484
+ }
485
+
486
+ // src/gen/models/ActivityState.ts
487
+ var ActivityStateStatusEnum = {
488
+ not_started: "not_started",
489
+ active: "active",
490
+ paused: "paused",
491
+ ended: "ended"
492
+ };
493
+ function instanceOfActivityState(value) {
494
+ return true;
495
+ }
496
+ function ActivityStateFromJSON(json) {
497
+ return ActivityStateFromJSONTyped(json, false);
498
+ }
499
+ function ActivityStateFromJSONTyped(json, ignoreDiscriminator) {
500
+ if (json == null) {
501
+ return json;
502
+ }
503
+ return {
504
+ "activityId": json["activityId"] == null ? void 0 : json["activityId"],
505
+ "status": json["status"] == null ? void 0 : json["status"],
506
+ "userState": json["userState"] == null ? void 0 : UserActivityStateFromJSON(json["userState"]),
507
+ "activityInfo": json["activityInfo"] == null ? void 0 : ActivityStateActivityInfoFromJSON(json["activityInfo"])
508
+ };
509
+ }
510
+ function ActivityStateToJSON(json) {
511
+ return ActivityStateToJSONTyped(json, false);
512
+ }
513
+ function ActivityStateToJSONTyped(value, ignoreDiscriminator = false) {
514
+ if (value == null) {
515
+ return value;
516
+ }
517
+ return {
518
+ "activityId": value["activityId"],
519
+ "status": value["status"],
520
+ "userState": UserActivityStateToJSON(value["userState"]),
521
+ "activityInfo": ActivityStateActivityInfoToJSON(value["activityInfo"])
522
+ };
523
+ }
524
+
525
+ // src/gen/models/ActivityStateResponse.ts
526
+ function instanceOfActivityStateResponse(value) {
527
+ if (!("success" in value) || value["success"] === void 0) return false;
528
+ return true;
529
+ }
530
+ function ActivityStateResponseFromJSON(json) {
531
+ return ActivityStateResponseFromJSONTyped(json, false);
532
+ }
533
+ function ActivityStateResponseFromJSONTyped(json, ignoreDiscriminator) {
534
+ if (json == null) {
535
+ return json;
536
+ }
537
+ return {
538
+ "success": json["success"],
539
+ "data": json["data"] == null ? void 0 : ActivityStateFromJSON(json["data"]),
540
+ "code": json["code"] == null ? void 0 : json["code"],
541
+ "message": json["message"] == null ? void 0 : json["message"],
542
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"]
543
+ };
544
+ }
545
+ function ActivityStateResponseToJSON(json) {
546
+ return ActivityStateResponseToJSONTyped(json, false);
547
+ }
548
+ function ActivityStateResponseToJSONTyped(value, ignoreDiscriminator = false) {
549
+ if (value == null) {
550
+ return value;
551
+ }
552
+ return {
553
+ "success": value["success"],
554
+ "data": ActivityStateToJSON(value["data"]),
555
+ "code": value["code"],
556
+ "message": value["message"],
557
+ "traceId": value["traceId"]
558
+ };
559
+ }
560
+
561
+ // src/gen/models/BaseResponseVo.ts
562
+ function instanceOfBaseResponseVo(value) {
563
+ if (!("success" in value) || value["success"] === void 0) return false;
564
+ if (!("code" in value) || value["code"] === void 0) return false;
565
+ if (!("message" in value) || value["message"] === void 0) return false;
566
+ if (!("data" in value) || value["data"] === void 0) return false;
567
+ if (!("timestamp" in value) || value["timestamp"] === void 0) return false;
568
+ if (!("path" in value) || value["path"] === void 0) return false;
569
+ return true;
570
+ }
571
+ function BaseResponseVoFromJSON(json) {
572
+ return BaseResponseVoFromJSONTyped(json, false);
573
+ }
574
+ function BaseResponseVoFromJSONTyped(json, ignoreDiscriminator) {
575
+ if (json == null) {
576
+ return json;
577
+ }
578
+ return {
579
+ "success": json["success"],
580
+ "code": json["code"],
581
+ "message": json["message"],
582
+ "data": json["data"],
583
+ "timestamp": json["timestamp"],
584
+ "path": json["path"],
585
+ "requestId": json["requestId"] == null ? void 0 : json["requestId"]
586
+ };
587
+ }
588
+ function BaseResponseVoToJSON(json) {
589
+ return BaseResponseVoToJSONTyped(json, false);
590
+ }
591
+ function BaseResponseVoToJSONTyped(value, ignoreDiscriminator = false) {
592
+ if (value == null) {
593
+ return value;
594
+ }
595
+ return {
596
+ "success": value["success"],
597
+ "code": value["code"],
598
+ "message": value["message"],
599
+ "data": value["data"],
600
+ "timestamp": value["timestamp"],
601
+ "path": value["path"],
602
+ "requestId": value["requestId"]
603
+ };
604
+ }
605
+
606
+ // src/gen/models/BlockedComponent.ts
607
+ function instanceOfBlockedComponent(value) {
608
+ if (!("name" in value) || value["name"] === void 0) return false;
609
+ if (!("version" in value) || value["version"] === void 0) return false;
610
+ if (!("reason" in value) || value["reason"] === void 0) return false;
611
+ if (!("blockedAt" in value) || value["blockedAt"] === void 0) return false;
612
+ return true;
613
+ }
614
+ function BlockedComponentFromJSON(json) {
615
+ return BlockedComponentFromJSONTyped(json, false);
616
+ }
617
+ function BlockedComponentFromJSONTyped(json, ignoreDiscriminator) {
618
+ if (json == null) {
619
+ return json;
620
+ }
621
+ return {
622
+ "name": json["name"],
623
+ "version": json["version"],
624
+ "reason": json["reason"],
625
+ "blockedAt": json["blockedAt"],
626
+ "fallbackComponent": json["fallbackComponent"] == null ? void 0 : json["fallbackComponent"]
627
+ };
628
+ }
629
+ function BlockedComponentToJSON(json) {
630
+ return BlockedComponentToJSONTyped(json, false);
631
+ }
632
+ function BlockedComponentToJSONTyped(value, ignoreDiscriminator = false) {
633
+ if (value == null) {
634
+ return value;
635
+ }
636
+ return {
637
+ "name": value["name"],
638
+ "version": value["version"],
639
+ "reason": value["reason"],
640
+ "blockedAt": value["blockedAt"],
641
+ "fallbackComponent": value["fallbackComponent"]
642
+ };
643
+ }
644
+
645
+ // src/gen/models/DataQueryContext.ts
646
+ function instanceOfDataQueryContext(value) {
647
+ return true;
648
+ }
649
+ function DataQueryContextFromJSON(json) {
650
+ return DataQueryContextFromJSONTyped(json, false);
651
+ }
652
+ function DataQueryContextFromJSONTyped(json, ignoreDiscriminator) {
653
+ if (json == null) {
654
+ return json;
655
+ }
656
+ return {
657
+ "pageVersionId": json["pageVersionId"] == null ? void 0 : json["pageVersionId"],
658
+ "uid": json["uid"] == null ? void 0 : json["uid"],
659
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"]
660
+ };
661
+ }
662
+ function DataQueryContextToJSON(json) {
663
+ return DataQueryContextToJSONTyped(json, false);
664
+ }
665
+ function DataQueryContextToJSONTyped(value, ignoreDiscriminator = false) {
666
+ if (value == null) {
667
+ return value;
668
+ }
669
+ return {
670
+ "pageVersionId": value["pageVersionId"],
671
+ "uid": value["uid"],
672
+ "traceId": value["traceId"]
673
+ };
674
+ }
675
+
676
+ // src/gen/models/DataQueryRequest.ts
677
+ function instanceOfDataQueryRequest(value) {
678
+ if (!("queryVersionId" in value) || value["queryVersionId"] === void 0) return false;
679
+ if (!("params" in value) || value["params"] === void 0) return false;
680
+ return true;
681
+ }
682
+ function DataQueryRequestFromJSON(json) {
683
+ return DataQueryRequestFromJSONTyped(json, false);
684
+ }
685
+ function DataQueryRequestFromJSONTyped(json, ignoreDiscriminator) {
686
+ if (json == null) {
687
+ return json;
688
+ }
689
+ return {
690
+ "queryVersionId": json["queryVersionId"],
691
+ "params": json["params"],
692
+ "context": json["context"] == null ? void 0 : DataQueryContextFromJSON(json["context"])
693
+ };
694
+ }
695
+ function DataQueryRequestToJSON(json) {
696
+ return DataQueryRequestToJSONTyped(json, false);
697
+ }
698
+ function DataQueryRequestToJSONTyped(value, ignoreDiscriminator = false) {
699
+ if (value == null) {
700
+ return value;
701
+ }
702
+ return {
703
+ "queryVersionId": value["queryVersionId"],
704
+ "params": value["params"],
705
+ "context": DataQueryContextToJSON(value["context"])
706
+ };
707
+ }
708
+
709
+ // src/gen/models/DataQueryResponse.ts
710
+ function instanceOfDataQueryResponse(value) {
711
+ if (!("success" in value) || value["success"] === void 0) return false;
712
+ return true;
713
+ }
714
+ function DataQueryResponseFromJSON(json) {
715
+ return DataQueryResponseFromJSONTyped(json, false);
716
+ }
717
+ function DataQueryResponseFromJSONTyped(json, ignoreDiscriminator) {
718
+ if (json == null) {
719
+ return json;
720
+ }
721
+ return {
722
+ "success": json["success"],
723
+ "data": json["data"] == null ? void 0 : json["data"],
724
+ "fromCache": json["fromCache"] == null ? void 0 : json["fromCache"],
725
+ "cacheTime": json["cacheTime"] == null ? void 0 : json["cacheTime"],
726
+ "code": json["code"] == null ? void 0 : json["code"],
727
+ "message": json["message"] == null ? void 0 : json["message"],
728
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"]
729
+ };
730
+ }
731
+ function DataQueryResponseToJSON(json) {
732
+ return DataQueryResponseToJSONTyped(json, false);
733
+ }
734
+ function DataQueryResponseToJSONTyped(value, ignoreDiscriminator = false) {
735
+ if (value == null) {
736
+ return value;
737
+ }
738
+ return {
739
+ "success": value["success"],
740
+ "data": value["data"],
741
+ "fromCache": value["fromCache"],
742
+ "cacheTime": value["cacheTime"],
743
+ "code": value["code"],
744
+ "message": value["message"],
745
+ "traceId": value["traceId"]
746
+ };
747
+ }
748
+
749
+ // src/gen/models/ErrorDetail.ts
750
+ function instanceOfErrorDetail(value) {
751
+ return true;
752
+ }
753
+ function ErrorDetailFromJSON(json) {
754
+ return ErrorDetailFromJSONTyped(json, false);
755
+ }
756
+ function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
757
+ if (json == null) {
758
+ return json;
759
+ }
760
+ return {
761
+ "field": json["field"] == null ? void 0 : json["field"],
762
+ "code": json["code"] == null ? void 0 : json["code"],
763
+ "message": json["message"] == null ? void 0 : json["message"]
764
+ };
765
+ }
766
+ function ErrorDetailToJSON(json) {
767
+ return ErrorDetailToJSONTyped(json, false);
768
+ }
769
+ function ErrorDetailToJSONTyped(value, ignoreDiscriminator = false) {
770
+ if (value == null) {
771
+ return value;
772
+ }
773
+ return {
774
+ "field": value["field"],
775
+ "code": value["code"],
776
+ "message": value["message"]
777
+ };
778
+ }
779
+
780
+ // src/gen/models/ErrorResponseVo.ts
781
+ function instanceOfErrorResponseVo(value) {
782
+ if (!("success" in value) || value["success"] === void 0) return false;
783
+ if (!("code" in value) || value["code"] === void 0) return false;
784
+ if (!("message" in value) || value["message"] === void 0) return false;
785
+ if (!("timestamp" in value) || value["timestamp"] === void 0) return false;
786
+ if (!("path" in value) || value["path"] === void 0) return false;
787
+ return true;
788
+ }
789
+ function ErrorResponseVoFromJSON(json) {
790
+ return ErrorResponseVoFromJSONTyped(json, false);
791
+ }
792
+ function ErrorResponseVoFromJSONTyped(json, ignoreDiscriminator) {
793
+ if (json == null) {
794
+ return json;
795
+ }
796
+ return {
797
+ "success": json["success"],
798
+ "code": json["code"],
799
+ "message": json["message"],
800
+ "timestamp": json["timestamp"],
801
+ "path": json["path"],
802
+ "requestId": json["requestId"] == null ? void 0 : json["requestId"],
803
+ "details": json["details"] == null ? void 0 : json["details"].map(ErrorDetailFromJSON)
804
+ };
805
+ }
806
+ function ErrorResponseVoToJSON(json) {
807
+ return ErrorResponseVoToJSONTyped(json, false);
808
+ }
809
+ function ErrorResponseVoToJSONTyped(value, ignoreDiscriminator = false) {
810
+ if (value == null) {
811
+ return value;
812
+ }
813
+ return {
814
+ "success": value["success"],
815
+ "code": value["code"],
816
+ "message": value["message"],
817
+ "timestamp": value["timestamp"],
818
+ "path": value["path"],
819
+ "requestId": value["requestId"],
820
+ "details": value["details"] == null ? void 0 : value["details"].map(ErrorDetailToJSON)
821
+ };
822
+ }
823
+
824
+ // src/gen/models/ExecuteActionBatch200Response.ts
825
+ function instanceOfExecuteActionBatch200Response(value) {
826
+ if (!("success" in value) || value["success"] === void 0) return false;
827
+ return true;
828
+ }
829
+ function ExecuteActionBatch200ResponseFromJSON(json) {
830
+ return ExecuteActionBatch200ResponseFromJSONTyped(json, false);
831
+ }
832
+ function ExecuteActionBatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
833
+ if (json == null) {
834
+ return json;
835
+ }
836
+ return {
837
+ "success": json["success"],
838
+ "data": json["data"] == null ? void 0 : json["data"].map(ActionExecuteResponseFromJSON),
839
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"]
840
+ };
841
+ }
842
+ function ExecuteActionBatch200ResponseToJSON(json) {
843
+ return ExecuteActionBatch200ResponseToJSONTyped(json, false);
844
+ }
845
+ function ExecuteActionBatch200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
846
+ if (value == null) {
847
+ return value;
848
+ }
849
+ return {
850
+ "success": value["success"],
851
+ "data": value["data"] == null ? void 0 : value["data"].map(ActionExecuteResponseToJSON),
852
+ "traceId": value["traceId"]
853
+ };
854
+ }
855
+
856
+ // src/gen/models/ExecuteActionBatchRequest.ts
857
+ function instanceOfExecuteActionBatchRequest(value) {
858
+ if (!("actions" in value) || value["actions"] === void 0) return false;
859
+ return true;
860
+ }
861
+ function ExecuteActionBatchRequestFromJSON(json) {
862
+ return ExecuteActionBatchRequestFromJSONTyped(json, false);
863
+ }
864
+ function ExecuteActionBatchRequestFromJSONTyped(json, ignoreDiscriminator) {
865
+ if (json == null) {
866
+ return json;
867
+ }
868
+ return {
869
+ "actions": json["actions"].map(ActionExecuteRequestFromJSON),
870
+ "stopOnError": json["stopOnError"] == null ? void 0 : json["stopOnError"]
871
+ };
872
+ }
873
+ function ExecuteActionBatchRequestToJSON(json) {
874
+ return ExecuteActionBatchRequestToJSONTyped(json, false);
875
+ }
876
+ function ExecuteActionBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
877
+ if (value == null) {
878
+ return value;
879
+ }
880
+ return {
881
+ "actions": value["actions"].map(ActionExecuteRequestToJSON),
882
+ "stopOnError": value["stopOnError"]
883
+ };
884
+ }
885
+
886
+ // src/gen/models/GetActivityStateBatch200Response.ts
887
+ function instanceOfGetActivityStateBatch200Response(value) {
888
+ if (!("success" in value) || value["success"] === void 0) return false;
889
+ return true;
890
+ }
891
+ function GetActivityStateBatch200ResponseFromJSON(json) {
892
+ return GetActivityStateBatch200ResponseFromJSONTyped(json, false);
893
+ }
894
+ function GetActivityStateBatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
895
+ if (json == null) {
896
+ return json;
897
+ }
898
+ return {
899
+ "success": json["success"],
900
+ "data": json["data"] == null ? void 0 : json["data"].map(ActivityStateFromJSON),
901
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"]
902
+ };
903
+ }
904
+ function GetActivityStateBatch200ResponseToJSON(json) {
905
+ return GetActivityStateBatch200ResponseToJSONTyped(json, false);
906
+ }
907
+ function GetActivityStateBatch200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
908
+ if (value == null) {
909
+ return value;
910
+ }
911
+ return {
912
+ "success": value["success"],
913
+ "data": value["data"] == null ? void 0 : value["data"].map(ActivityStateToJSON),
914
+ "traceId": value["traceId"]
915
+ };
916
+ }
917
+
918
+ // src/gen/models/GetActivityStateBatchRequest.ts
919
+ function instanceOfGetActivityStateBatchRequest(value) {
920
+ if (!("activityIds" in value) || value["activityIds"] === void 0) return false;
921
+ return true;
922
+ }
923
+ function GetActivityStateBatchRequestFromJSON(json) {
924
+ return GetActivityStateBatchRequestFromJSONTyped(json, false);
925
+ }
926
+ function GetActivityStateBatchRequestFromJSONTyped(json, ignoreDiscriminator) {
927
+ if (json == null) {
928
+ return json;
929
+ }
930
+ return {
931
+ "activityIds": json["activityIds"],
932
+ "uid": json["uid"] == null ? void 0 : json["uid"]
933
+ };
934
+ }
935
+ function GetActivityStateBatchRequestToJSON(json) {
936
+ return GetActivityStateBatchRequestToJSONTyped(json, false);
937
+ }
938
+ function GetActivityStateBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
939
+ if (value == null) {
940
+ return value;
941
+ }
942
+ return {
943
+ "activityIds": value["activityIds"],
944
+ "uid": value["uid"]
945
+ };
946
+ }
947
+
948
+ // src/gen/models/HealthResponseChecksValue.ts
949
+ function instanceOfHealthResponseChecksValue(value) {
950
+ return true;
951
+ }
952
+ function HealthResponseChecksValueFromJSON(json) {
953
+ return HealthResponseChecksValueFromJSONTyped(json, false);
954
+ }
955
+ function HealthResponseChecksValueFromJSONTyped(json, ignoreDiscriminator) {
956
+ if (json == null) {
957
+ return json;
958
+ }
959
+ return {
960
+ "status": json["status"] == null ? void 0 : json["status"],
961
+ "latency": json["latency"] == null ? void 0 : json["latency"]
962
+ };
963
+ }
964
+ function HealthResponseChecksValueToJSON(json) {
965
+ return HealthResponseChecksValueToJSONTyped(json, false);
966
+ }
967
+ function HealthResponseChecksValueToJSONTyped(value, ignoreDiscriminator = false) {
968
+ if (value == null) {
969
+ return value;
970
+ }
971
+ return {
972
+ "status": value["status"],
973
+ "latency": value["latency"]
974
+ };
975
+ }
976
+
977
+ // src/gen/models/HealthResponse.ts
978
+ var HealthResponseStatusEnum = {
979
+ healthy: "healthy",
980
+ degraded: "degraded",
981
+ unhealthy: "unhealthy"
982
+ };
983
+ function instanceOfHealthResponse(value) {
984
+ if (!("status" in value) || value["status"] === void 0) return false;
985
+ if (!("version" in value) || value["version"] === void 0) return false;
986
+ return true;
987
+ }
988
+ function HealthResponseFromJSON(json) {
989
+ return HealthResponseFromJSONTyped(json, false);
990
+ }
991
+ function HealthResponseFromJSONTyped(json, ignoreDiscriminator) {
992
+ if (json == null) {
993
+ return json;
994
+ }
995
+ return {
996
+ "status": json["status"],
997
+ "version": json["version"],
998
+ "service": json["service"] == null ? void 0 : json["service"],
999
+ "timestamp": json["timestamp"] == null ? void 0 : json["timestamp"],
1000
+ "checks": json["checks"] == null ? void 0 : mapValues(json["checks"], HealthResponseChecksValueFromJSON)
1001
+ };
1002
+ }
1003
+ function HealthResponseToJSON(json) {
1004
+ return HealthResponseToJSONTyped(json, false);
1005
+ }
1006
+ function HealthResponseToJSONTyped(value, ignoreDiscriminator = false) {
1007
+ if (value == null) {
1008
+ return value;
1009
+ }
1010
+ return {
1011
+ "status": value["status"],
1012
+ "version": value["version"],
1013
+ "service": value["service"],
1014
+ "timestamp": value["timestamp"],
1015
+ "checks": value["checks"] == null ? void 0 : mapValues(value["checks"], HealthResponseChecksValueToJSON)
1016
+ };
1017
+ }
1018
+
1019
+ // src/gen/models/ManifestItem.ts
1020
+ function instanceOfManifestItem(value) {
1021
+ if (!("name" in value) || value["name"] === void 0) return false;
1022
+ if (!("version" in value) || value["version"] === void 0) return false;
1023
+ if (!("entryUrl" in value) || value["entryUrl"] === void 0) return false;
1024
+ if (!("integrity" in value) || value["integrity"] === void 0) return false;
1025
+ return true;
1026
+ }
1027
+ function ManifestItemFromJSON(json) {
1028
+ return ManifestItemFromJSONTyped(json, false);
1029
+ }
1030
+ function ManifestItemFromJSONTyped(json, ignoreDiscriminator) {
1031
+ if (json == null) {
1032
+ return json;
1033
+ }
1034
+ return {
1035
+ "name": json["name"],
1036
+ "version": json["version"],
1037
+ "entryUrl": json["entryUrl"],
1038
+ "integrity": json["integrity"],
1039
+ "critical": json["critical"] == null ? void 0 : json["critical"],
1040
+ "fallbackUrl": json["fallbackUrl"] == null ? void 0 : json["fallbackUrl"]
1041
+ };
1042
+ }
1043
+ function ManifestItemToJSON(json) {
1044
+ return ManifestItemToJSONTyped(json, false);
1045
+ }
1046
+ function ManifestItemToJSONTyped(value, ignoreDiscriminator = false) {
1047
+ if (value == null) {
1048
+ return value;
1049
+ }
1050
+ return {
1051
+ "name": value["name"],
1052
+ "version": value["version"],
1053
+ "entryUrl": value["entryUrl"],
1054
+ "integrity": value["integrity"],
1055
+ "critical": value["critical"],
1056
+ "fallbackUrl": value["fallbackUrl"]
1057
+ };
1058
+ }
1059
+
1060
+ // src/gen/models/PageManifest.ts
1061
+ function instanceOfPageManifest(value) {
1062
+ if (!("manifestVersion" in value) || value["manifestVersion"] === void 0) return false;
1063
+ if (!("contentHash" in value) || value["contentHash"] === void 0) return false;
1064
+ if (!("runtimeVersion" in value) || value["runtimeVersion"] === void 0) return false;
1065
+ if (!("components" in value) || value["components"] === void 0) return false;
1066
+ if (!("generatedAt" in value) || value["generatedAt"] === void 0) return false;
1067
+ return true;
1068
+ }
1069
+ function PageManifestFromJSON(json) {
1070
+ return PageManifestFromJSONTyped(json, false);
1071
+ }
1072
+ function PageManifestFromJSONTyped(json, ignoreDiscriminator) {
1073
+ if (json == null) {
1074
+ return json;
1075
+ }
1076
+ return {
1077
+ "manifestVersion": json["manifestVersion"],
1078
+ "contentHash": json["contentHash"],
1079
+ "runtimeVersion": json["runtimeVersion"],
1080
+ "components": json["components"].map(ManifestItemFromJSON),
1081
+ "generatedAt": json["generatedAt"]
1082
+ };
1083
+ }
1084
+ function PageManifestToJSON(json) {
1085
+ return PageManifestToJSONTyped(json, false);
1086
+ }
1087
+ function PageManifestToJSONTyped(value, ignoreDiscriminator = false) {
1088
+ if (value == null) {
1089
+ return value;
1090
+ }
1091
+ return {
1092
+ "manifestVersion": value["manifestVersion"],
1093
+ "contentHash": value["contentHash"],
1094
+ "runtimeVersion": value["runtimeVersion"],
1095
+ "components": value["components"].map(ManifestItemToJSON),
1096
+ "generatedAt": value["generatedAt"]
1097
+ };
1098
+ }
1099
+
1100
+ // src/gen/models/RuntimeConfigReportConfig.ts
1101
+ function instanceOfRuntimeConfigReportConfig(value) {
1102
+ return true;
1103
+ }
1104
+ function RuntimeConfigReportConfigFromJSON(json) {
1105
+ return RuntimeConfigReportConfigFromJSONTyped(json, false);
1106
+ }
1107
+ function RuntimeConfigReportConfigFromJSONTyped(json, ignoreDiscriminator) {
1108
+ if (json == null) {
1109
+ return json;
1110
+ }
1111
+ return {
1112
+ "enabled": json["enabled"] == null ? void 0 : json["enabled"],
1113
+ "sampleRate": json["sampleRate"] == null ? void 0 : json["sampleRate"],
1114
+ "endpoint": json["endpoint"] == null ? void 0 : json["endpoint"]
1115
+ };
1116
+ }
1117
+ function RuntimeConfigReportConfigToJSON(json) {
1118
+ return RuntimeConfigReportConfigToJSONTyped(json, false);
1119
+ }
1120
+ function RuntimeConfigReportConfigToJSONTyped(value, ignoreDiscriminator = false) {
1121
+ if (value == null) {
1122
+ return value;
1123
+ }
1124
+ return {
1125
+ "enabled": value["enabled"],
1126
+ "sampleRate": value["sampleRate"],
1127
+ "endpoint": value["endpoint"]
1128
+ };
1129
+ }
1130
+
1131
+ // src/gen/models/RuntimeConfig.ts
1132
+ function instanceOfRuntimeConfig(value) {
1133
+ return true;
1134
+ }
1135
+ function RuntimeConfigFromJSON(json) {
1136
+ return RuntimeConfigFromJSONTyped(json, false);
1137
+ }
1138
+ function RuntimeConfigFromJSONTyped(json, ignoreDiscriminator) {
1139
+ if (json == null) {
1140
+ return json;
1141
+ }
1142
+ return {
1143
+ "killSwitches": json["killSwitches"] == null ? void 0 : json["killSwitches"],
1144
+ "blockedComponents": json["blockedComponents"] == null ? void 0 : json["blockedComponents"].map(BlockedComponentFromJSON),
1145
+ "features": json["features"] == null ? void 0 : json["features"],
1146
+ "debug": json["debug"] == null ? void 0 : json["debug"],
1147
+ "reportConfig": json["reportConfig"] == null ? void 0 : RuntimeConfigReportConfigFromJSON(json["reportConfig"])
1148
+ };
1149
+ }
1150
+ function RuntimeConfigToJSON(json) {
1151
+ return RuntimeConfigToJSONTyped(json, false);
1152
+ }
1153
+ function RuntimeConfigToJSONTyped(value, ignoreDiscriminator = false) {
1154
+ if (value == null) {
1155
+ return value;
1156
+ }
1157
+ return {
1158
+ "killSwitches": value["killSwitches"],
1159
+ "blockedComponents": value["blockedComponents"] == null ? void 0 : value["blockedComponents"].map(BlockedComponentToJSON),
1160
+ "features": value["features"],
1161
+ "debug": value["debug"],
1162
+ "reportConfig": RuntimeConfigReportConfigToJSON(value["reportConfig"])
1163
+ };
1164
+ }
1165
+
1166
+ // src/gen/models/PageResolveResult.ts
1167
+ function instanceOfPageResolveResult(value) {
1168
+ if (!("pageUid" in value) || value["pageUid"] === void 0) return false;
1169
+ if (!("pageVersionId" in value) || value["pageVersionId"] === void 0) return false;
1170
+ if (!("pageJson" in value) || value["pageJson"] === void 0) return false;
1171
+ if (!("manifest" in value) || value["manifest"] === void 0) return false;
1172
+ if (!("runtimeConfig" in value) || value["runtimeConfig"] === void 0) return false;
1173
+ if (!("runtimeVersion" in value) || value["runtimeVersion"] === void 0) return false;
1174
+ return true;
1175
+ }
1176
+ function PageResolveResultFromJSON(json) {
1177
+ return PageResolveResultFromJSONTyped(json, false);
1178
+ }
1179
+ function PageResolveResultFromJSONTyped(json, ignoreDiscriminator) {
1180
+ if (json == null) {
1181
+ return json;
1182
+ }
1183
+ return {
1184
+ "pageUid": json["pageUid"],
1185
+ "pageVersionId": json["pageVersionId"],
1186
+ "pageJson": json["pageJson"],
1187
+ "manifest": PageManifestFromJSON(json["manifest"]),
1188
+ "runtimeConfig": RuntimeConfigFromJSON(json["runtimeConfig"]),
1189
+ "runtimeVersion": json["runtimeVersion"],
1190
+ "isPreview": json["isPreview"] == null ? void 0 : json["isPreview"]
1191
+ };
1192
+ }
1193
+ function PageResolveResultToJSON(json) {
1194
+ return PageResolveResultToJSONTyped(json, false);
1195
+ }
1196
+ function PageResolveResultToJSONTyped(value, ignoreDiscriminator = false) {
1197
+ if (value == null) {
1198
+ return value;
1199
+ }
1200
+ return {
1201
+ "pageUid": value["pageUid"],
1202
+ "pageVersionId": value["pageVersionId"],
1203
+ "pageJson": value["pageJson"],
1204
+ "manifest": PageManifestToJSON(value["manifest"]),
1205
+ "runtimeConfig": RuntimeConfigToJSON(value["runtimeConfig"]),
1206
+ "runtimeVersion": value["runtimeVersion"],
1207
+ "isPreview": value["isPreview"]
1208
+ };
1209
+ }
1210
+
1211
+ // src/gen/models/PageResolveResponse.ts
1212
+ function instanceOfPageResolveResponse(value) {
1213
+ if (!("success" in value) || value["success"] === void 0) return false;
1214
+ return true;
1215
+ }
1216
+ function PageResolveResponseFromJSON(json) {
1217
+ return PageResolveResponseFromJSONTyped(json, false);
1218
+ }
1219
+ function PageResolveResponseFromJSONTyped(json, ignoreDiscriminator) {
1220
+ if (json == null) {
1221
+ return json;
1222
+ }
1223
+ return {
1224
+ "success": json["success"],
1225
+ "data": json["data"] == null ? void 0 : PageResolveResultFromJSON(json["data"]),
1226
+ "code": json["code"] == null ? void 0 : json["code"],
1227
+ "message": json["message"] == null ? void 0 : json["message"],
1228
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"]
1229
+ };
1230
+ }
1231
+ function PageResolveResponseToJSON(json) {
1232
+ return PageResolveResponseToJSONTyped(json, false);
1233
+ }
1234
+ function PageResolveResponseToJSONTyped(value, ignoreDiscriminator = false) {
1235
+ if (value == null) {
1236
+ return value;
1237
+ }
1238
+ return {
1239
+ "success": value["success"],
1240
+ "data": PageResolveResultToJSON(value["data"]),
1241
+ "code": value["code"],
1242
+ "message": value["message"],
1243
+ "traceId": value["traceId"]
1244
+ };
1245
+ }
1246
+
1247
+ // src/gen/models/QueryDataBatch200Response.ts
1248
+ function instanceOfQueryDataBatch200Response(value) {
1249
+ if (!("success" in value) || value["success"] === void 0) return false;
1250
+ return true;
1251
+ }
1252
+ function QueryDataBatch200ResponseFromJSON(json) {
1253
+ return QueryDataBatch200ResponseFromJSONTyped(json, false);
1254
+ }
1255
+ function QueryDataBatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1256
+ if (json == null) {
1257
+ return json;
1258
+ }
1259
+ return {
1260
+ "success": json["success"],
1261
+ "data": json["data"] == null ? void 0 : json["data"].map(DataQueryResponseFromJSON),
1262
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"]
1263
+ };
1264
+ }
1265
+ function QueryDataBatch200ResponseToJSON(json) {
1266
+ return QueryDataBatch200ResponseToJSONTyped(json, false);
1267
+ }
1268
+ function QueryDataBatch200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
1269
+ if (value == null) {
1270
+ return value;
1271
+ }
1272
+ return {
1273
+ "success": value["success"],
1274
+ "data": value["data"] == null ? void 0 : value["data"].map(DataQueryResponseToJSON),
1275
+ "traceId": value["traceId"]
1276
+ };
1277
+ }
1278
+
1279
+ // src/gen/models/QueryDataBatchRequest.ts
1280
+ function instanceOfQueryDataBatchRequest(value) {
1281
+ if (!("queries" in value) || value["queries"] === void 0) return false;
1282
+ return true;
1283
+ }
1284
+ function QueryDataBatchRequestFromJSON(json) {
1285
+ return QueryDataBatchRequestFromJSONTyped(json, false);
1286
+ }
1287
+ function QueryDataBatchRequestFromJSONTyped(json, ignoreDiscriminator) {
1288
+ if (json == null) {
1289
+ return json;
1290
+ }
1291
+ return {
1292
+ "queries": json["queries"].map(DataQueryRequestFromJSON)
1293
+ };
1294
+ }
1295
+ function QueryDataBatchRequestToJSON(json) {
1296
+ return QueryDataBatchRequestToJSONTyped(json, false);
1297
+ }
1298
+ function QueryDataBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
1299
+ if (value == null) {
1300
+ return value;
1301
+ }
1302
+ return {
1303
+ "queries": value["queries"].map(DataQueryRequestToJSON)
1304
+ };
1305
+ }
1306
+
1307
+ // src/gen/models/ResolvePageBatch200Response.ts
1308
+ function instanceOfResolvePageBatch200Response(value) {
1309
+ if (!("success" in value) || value["success"] === void 0) return false;
1310
+ return true;
1311
+ }
1312
+ function ResolvePageBatch200ResponseFromJSON(json) {
1313
+ return ResolvePageBatch200ResponseFromJSONTyped(json, false);
1314
+ }
1315
+ function ResolvePageBatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1316
+ if (json == null) {
1317
+ return json;
1318
+ }
1319
+ return {
1320
+ "success": json["success"],
1321
+ "data": json["data"] == null ? void 0 : json["data"].map(PageResolveResultFromJSON),
1322
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"]
1323
+ };
1324
+ }
1325
+ function ResolvePageBatch200ResponseToJSON(json) {
1326
+ return ResolvePageBatch200ResponseToJSONTyped(json, false);
1327
+ }
1328
+ function ResolvePageBatch200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
1329
+ if (value == null) {
1330
+ return value;
1331
+ }
1332
+ return {
1333
+ "success": value["success"],
1334
+ "data": value["data"] == null ? void 0 : value["data"].map(PageResolveResultToJSON),
1335
+ "traceId": value["traceId"]
1336
+ };
1337
+ }
1338
+
1339
+ // src/gen/models/ResolvePageBatchRequest.ts
1340
+ var ResolvePageBatchRequestChannelEnum = {
1341
+ preview: "preview",
1342
+ prod: "prod",
1343
+ gray: "gray"
1344
+ };
1345
+ function instanceOfResolvePageBatchRequest(value) {
1346
+ if (!("pageUids" in value) || value["pageUids"] === void 0) return false;
1347
+ return true;
1348
+ }
1349
+ function ResolvePageBatchRequestFromJSON(json) {
1350
+ return ResolvePageBatchRequestFromJSONTyped(json, false);
1351
+ }
1352
+ function ResolvePageBatchRequestFromJSONTyped(json, ignoreDiscriminator) {
1353
+ if (json == null) {
1354
+ return json;
1355
+ }
1356
+ return {
1357
+ "pageUids": json["pageUids"],
1358
+ "channel": json["channel"] == null ? void 0 : json["channel"]
1359
+ };
1360
+ }
1361
+ function ResolvePageBatchRequestToJSON(json) {
1362
+ return ResolvePageBatchRequestToJSONTyped(json, false);
1363
+ }
1364
+ function ResolvePageBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
1365
+ if (value == null) {
1366
+ return value;
1367
+ }
1368
+ return {
1369
+ "pageUids": value["pageUids"],
1370
+ "channel": value["channel"]
1371
+ };
1372
+ }
1373
+
1374
+ // src/gen/models/TraceContext.ts
1375
+ function instanceOfTraceContext(value) {
1376
+ return true;
1377
+ }
1378
+ function TraceContextFromJSON(json) {
1379
+ return TraceContextFromJSONTyped(json, false);
1380
+ }
1381
+ function TraceContextFromJSONTyped(json, ignoreDiscriminator) {
1382
+ if (json == null) {
1383
+ return json;
1384
+ }
1385
+ return {
1386
+ "traceId": json["traceId"] == null ? void 0 : json["traceId"],
1387
+ "spanId": json["spanId"] == null ? void 0 : json["spanId"],
1388
+ "pageVersionId": json["pageVersionId"] == null ? void 0 : json["pageVersionId"],
1389
+ "componentVersion": json["componentVersion"] == null ? void 0 : json["componentVersion"],
1390
+ "actionId": json["actionId"] == null ? void 0 : json["actionId"]
1391
+ };
1392
+ }
1393
+ function TraceContextToJSON(json) {
1394
+ return TraceContextToJSONTyped(json, false);
1395
+ }
1396
+ function TraceContextToJSONTyped(value, ignoreDiscriminator = false) {
1397
+ if (value == null) {
1398
+ return value;
1399
+ }
1400
+ return {
1401
+ "traceId": value["traceId"],
1402
+ "spanId": value["spanId"],
1403
+ "pageVersionId": value["pageVersionId"],
1404
+ "componentVersion": value["componentVersion"],
1405
+ "actionId": value["actionId"]
1406
+ };
1407
+ }
1408
+
1409
+ // src/gen/models/TrackContext.ts
1410
+ function instanceOfTrackContext(value) {
1411
+ return true;
1412
+ }
1413
+ function TrackContextFromJSON(json) {
1414
+ return TrackContextFromJSONTyped(json, false);
1415
+ }
1416
+ function TrackContextFromJSONTyped(json, ignoreDiscriminator) {
1417
+ if (json == null) {
1418
+ return json;
1419
+ }
1420
+ return {
1421
+ "pageVersionId": json["pageVersionId"] == null ? void 0 : json["pageVersionId"],
1422
+ "componentVersion": json["componentVersion"] == null ? void 0 : json["componentVersion"],
1423
+ "actionId": json["actionId"] == null ? void 0 : json["actionId"],
1424
+ "sessionId": json["sessionId"] == null ? void 0 : json["sessionId"],
1425
+ "deviceId": json["deviceId"] == null ? void 0 : json["deviceId"],
1426
+ "uid": json["uid"] == null ? void 0 : json["uid"],
1427
+ "channel": json["channel"] == null ? void 0 : json["channel"]
1428
+ };
1429
+ }
1430
+ function TrackContextToJSON(json) {
1431
+ return TrackContextToJSONTyped(json, false);
1432
+ }
1433
+ function TrackContextToJSONTyped(value, ignoreDiscriminator = false) {
1434
+ if (value == null) {
1435
+ return value;
1436
+ }
1437
+ return {
1438
+ "pageVersionId": value["pageVersionId"],
1439
+ "componentVersion": value["componentVersion"],
1440
+ "actionId": value["actionId"],
1441
+ "sessionId": value["sessionId"],
1442
+ "deviceId": value["deviceId"],
1443
+ "uid": value["uid"],
1444
+ "channel": value["channel"]
1445
+ };
1446
+ }
1447
+
1448
+ // src/gen/models/TrackEvent.ts
1449
+ var TrackEventEventTypeEnum = {
1450
+ page_view: "page_view",
1451
+ component_view: "component_view",
1452
+ component_click: "component_click",
1453
+ action_trigger: "action_trigger",
1454
+ action_result: "action_result",
1455
+ error: "error",
1456
+ performance: "performance",
1457
+ custom: "custom"
1458
+ };
1459
+ function instanceOfTrackEvent(value) {
1460
+ if (!("eventName" in value) || value["eventName"] === void 0) return false;
1461
+ return true;
1462
+ }
1463
+ function TrackEventFromJSON(json) {
1464
+ return TrackEventFromJSONTyped(json, false);
1465
+ }
1466
+ function TrackEventFromJSONTyped(json, ignoreDiscriminator) {
1467
+ if (json == null) {
1468
+ return json;
1469
+ }
1470
+ return {
1471
+ "eventName": json["eventName"],
1472
+ "eventType": json["eventType"] == null ? void 0 : json["eventType"],
1473
+ "params": json["params"] == null ? void 0 : json["params"],
1474
+ "timestamp": json["timestamp"] == null ? void 0 : json["timestamp"],
1475
+ "context": json["context"] == null ? void 0 : TrackContextFromJSON(json["context"])
1476
+ };
1477
+ }
1478
+ function TrackEventToJSON(json) {
1479
+ return TrackEventToJSONTyped(json, false);
1480
+ }
1481
+ function TrackEventToJSONTyped(value, ignoreDiscriminator = false) {
1482
+ if (value == null) {
1483
+ return value;
1484
+ }
1485
+ return {
1486
+ "eventName": value["eventName"],
1487
+ "eventType": value["eventType"],
1488
+ "params": value["params"],
1489
+ "timestamp": value["timestamp"],
1490
+ "context": TrackContextToJSON(value["context"])
1491
+ };
1492
+ }
1493
+
1494
+ // src/gen/models/TrackRequest.ts
1495
+ function instanceOfTrackRequest(value) {
1496
+ if (!("events" in value) || value["events"] === void 0) return false;
1497
+ return true;
1498
+ }
1499
+ function TrackRequestFromJSON(json) {
1500
+ return TrackRequestFromJSONTyped(json, false);
1501
+ }
1502
+ function TrackRequestFromJSONTyped(json, ignoreDiscriminator) {
1503
+ if (json == null) {
1504
+ return json;
1505
+ }
1506
+ return {
1507
+ "events": json["events"].map(TrackEventFromJSON)
1508
+ };
1509
+ }
1510
+ function TrackRequestToJSON(json) {
1511
+ return TrackRequestToJSONTyped(json, false);
1512
+ }
1513
+ function TrackRequestToJSONTyped(value, ignoreDiscriminator = false) {
1514
+ if (value == null) {
1515
+ return value;
1516
+ }
1517
+ return {
1518
+ "events": value["events"].map(TrackEventToJSON)
1519
+ };
1520
+ }
1521
+
1522
+ // src/gen/apis/ActionApi.ts
1523
+ var ActionApi = class extends BaseAPI {
1524
+ /**
1525
+ * 所有业务动作的统一入口,包含: - 认证/鉴权 - 风控检查(限流、黑名单) - 幂等处理 - 审计记录
1526
+ * 执行动作
1527
+ */
1528
+ async executeActionRaw(requestParameters, initOverrides) {
1529
+ if (requestParameters["actionExecuteRequest"] == null) {
1530
+ throw new RequiredError(
1531
+ "actionExecuteRequest",
1532
+ 'Required parameter "actionExecuteRequest" was null or undefined when calling executeAction().'
1533
+ );
35
1534
  }
36
- if (this.config.getTraceHeaders) {
37
- Object.assign(headers, this.config.getTraceHeaders());
1535
+ const queryParameters = {};
1536
+ const headerParameters = {};
1537
+ headerParameters["Content-Type"] = "application/json";
1538
+ let urlPath = `/api/actions/execute`;
1539
+ const response = await this.request({
1540
+ path: urlPath,
1541
+ method: "POST",
1542
+ headers: headerParameters,
1543
+ query: queryParameters,
1544
+ body: ActionExecuteRequestToJSON(requestParameters["actionExecuteRequest"])
1545
+ }, initOverrides);
1546
+ return new JSONApiResponse(response, (jsonValue) => ActionExecuteResponseFromJSON(jsonValue));
1547
+ }
1548
+ /**
1549
+ * 所有业务动作的统一入口,包含: - 认证/鉴权 - 风控检查(限流、黑名单) - 幂等处理 - 审计记录
1550
+ * 执行动作
1551
+ */
1552
+ async executeAction(requestParameters, initOverrides) {
1553
+ const response = await this.executeActionRaw(requestParameters, initOverrides);
1554
+ return await response.value();
1555
+ }
1556
+ /**
1557
+ * 批量执行多个动作(原子性不保证)
1558
+ * 批量执行动作
1559
+ */
1560
+ async executeActionBatchRaw(requestParameters, initOverrides) {
1561
+ if (requestParameters["executeActionBatchRequest"] == null) {
1562
+ throw new RequiredError(
1563
+ "executeActionBatchRequest",
1564
+ 'Required parameter "executeActionBatchRequest" was null or undefined when calling executeActionBatch().'
1565
+ );
38
1566
  }
39
- return headers;
1567
+ const queryParameters = {};
1568
+ const headerParameters = {};
1569
+ headerParameters["Content-Type"] = "application/json";
1570
+ let urlPath = `/api/actions/batch`;
1571
+ const response = await this.request({
1572
+ path: urlPath,
1573
+ method: "POST",
1574
+ headers: headerParameters,
1575
+ query: queryParameters,
1576
+ body: ExecuteActionBatchRequestToJSON(requestParameters["executeActionBatchRequest"])
1577
+ }, initOverrides);
1578
+ return new JSONApiResponse(response, (jsonValue) => ExecuteActionBatch200ResponseFromJSON(jsonValue));
40
1579
  }
41
1580
  /**
42
- * 发送请求
1581
+ * 批量执行多个动作(原子性不保证)
1582
+ * 批量执行动作
43
1583
  */
44
- async request(method, path, options) {
45
- let url = `${this.config.baseUrl}${path}`;
46
- if (options?.params) {
47
- const searchParams = new URLSearchParams();
48
- Object.entries(options.params).forEach(([key, value]) => {
49
- if (value !== void 0) {
50
- searchParams.append(key, value);
51
- }
52
- });
53
- const queryString = searchParams.toString();
54
- if (queryString) {
55
- url += `?${queryString}`;
56
- }
1584
+ async executeActionBatch(requestParameters, initOverrides) {
1585
+ const response = await this.executeActionBatchRaw(requestParameters, initOverrides);
1586
+ return await response.value();
1587
+ }
1588
+ };
1589
+
1590
+ // src/gen/apis/ActivityApi.ts
1591
+ var ActivityApi = class extends BaseAPI {
1592
+ /**
1593
+ * 获取用户在指定活动中的状态
1594
+ * 查询活动状态
1595
+ */
1596
+ async getActivityStateRaw(requestParameters, initOverrides) {
1597
+ if (requestParameters["activityId"] == null) {
1598
+ throw new RequiredError(
1599
+ "activityId",
1600
+ 'Required parameter "activityId" was null or undefined when calling getActivityState().'
1601
+ );
57
1602
  }
58
- const commonHeaders = await this.getCommonHeaders();
59
- let requestConfig = {
60
- method,
61
- headers: {
62
- ...commonHeaders,
63
- ...options?.headers
64
- },
65
- body: options?.body ? JSON.stringify(options.body) : void 0
66
- };
67
- if (this.config.onRequest) {
68
- requestConfig = this.config.onRequest(requestConfig);
1603
+ const queryParameters = {};
1604
+ if (requestParameters["activityId"] != null) {
1605
+ queryParameters["activityId"] = requestParameters["activityId"];
69
1606
  }
70
- try {
71
- const controller = new AbortController();
72
- const timeoutId = setTimeout(() => controller.abort(), this.config.timeout);
73
- const response = await fetch(url, {
74
- ...requestConfig,
75
- signal: controller.signal
76
- });
77
- clearTimeout(timeoutId);
78
- let result = await response.json();
79
- if (this.config.onResponse) {
80
- result = this.config.onResponse(result);
81
- }
82
- if (!result.success) {
83
- const error = new Error(result.message || "Request failed");
84
- error.code = result.code;
85
- throw error;
86
- }
87
- return result.data;
88
- } catch (error) {
89
- if (this.config.onError) {
90
- this.config.onError(error);
91
- }
92
- throw error;
1607
+ if (requestParameters["uid"] != null) {
1608
+ queryParameters["uid"] = requestParameters["uid"];
93
1609
  }
1610
+ const headerParameters = {};
1611
+ let urlPath = `/api/activity/state`;
1612
+ const response = await this.request({
1613
+ path: urlPath,
1614
+ method: "GET",
1615
+ headers: headerParameters,
1616
+ query: queryParameters
1617
+ }, initOverrides);
1618
+ return new JSONApiResponse(response, (jsonValue) => ActivityStateResponseFromJSON(jsonValue));
94
1619
  }
95
1620
  /**
96
- * 发送请求(返回完整响应)
1621
+ * 获取用户在指定活动中的状态
1622
+ * 查询活动状态
97
1623
  */
98
- async requestFull(method, path, options) {
99
- let url = `${this.config.baseUrl}${path}`;
100
- if (options?.params) {
101
- const searchParams = new URLSearchParams();
102
- Object.entries(options.params).forEach(([key, value]) => {
103
- if (value !== void 0) {
104
- searchParams.append(key, value);
105
- }
106
- });
107
- const queryString = searchParams.toString();
108
- if (queryString) {
109
- url += `?${queryString}`;
110
- }
1624
+ async getActivityState(requestParameters, initOverrides) {
1625
+ const response = await this.getActivityStateRaw(requestParameters, initOverrides);
1626
+ return await response.value();
1627
+ }
1628
+ /**
1629
+ * 批量获取用户在多个活动中的状态
1630
+ * 批量查询活动状态
1631
+ */
1632
+ async getActivityStateBatchRaw(requestParameters, initOverrides) {
1633
+ if (requestParameters["getActivityStateBatchRequest"] == null) {
1634
+ throw new RequiredError(
1635
+ "getActivityStateBatchRequest",
1636
+ 'Required parameter "getActivityStateBatchRequest" was null or undefined when calling getActivityStateBatch().'
1637
+ );
111
1638
  }
112
- const commonHeaders = await this.getCommonHeaders();
113
- let requestConfig = {
114
- method,
115
- headers: commonHeaders,
116
- body: options?.body ? JSON.stringify(options.body) : void 0
117
- };
118
- if (this.config.onRequest) {
119
- requestConfig = this.config.onRequest(requestConfig);
1639
+ const queryParameters = {};
1640
+ const headerParameters = {};
1641
+ headerParameters["Content-Type"] = "application/json";
1642
+ let urlPath = `/api/activity/state/batch`;
1643
+ const response = await this.request({
1644
+ path: urlPath,
1645
+ method: "POST",
1646
+ headers: headerParameters,
1647
+ query: queryParameters,
1648
+ body: GetActivityStateBatchRequestToJSON(requestParameters["getActivityStateBatchRequest"])
1649
+ }, initOverrides);
1650
+ return new JSONApiResponse(response, (jsonValue) => GetActivityStateBatch200ResponseFromJSON(jsonValue));
1651
+ }
1652
+ /**
1653
+ * 批量获取用户在多个活动中的状态
1654
+ * 批量查询活动状态
1655
+ */
1656
+ async getActivityStateBatch(requestParameters, initOverrides) {
1657
+ const response = await this.getActivityStateBatchRaw(requestParameters, initOverrides);
1658
+ return await response.value();
1659
+ }
1660
+ };
1661
+
1662
+ // src/gen/apis/DataApi.ts
1663
+ var DataApi = class extends BaseAPI {
1664
+ /**
1665
+ * 数据查询代理,支持: - 白名单校验 - 字段裁剪/脱敏 - 缓存 - 审计
1666
+ * 查询数据
1667
+ */
1668
+ async queryDataRaw(requestParameters, initOverrides) {
1669
+ if (requestParameters["dataQueryRequest"] == null) {
1670
+ throw new RequiredError(
1671
+ "dataQueryRequest",
1672
+ 'Required parameter "dataQueryRequest" was null or undefined when calling queryData().'
1673
+ );
120
1674
  }
121
- try {
122
- const controller = new AbortController();
123
- const timeoutId = setTimeout(() => controller.abort(), this.config.timeout);
124
- const response = await fetch(url, {
125
- ...requestConfig,
126
- signal: controller.signal
127
- });
128
- clearTimeout(timeoutId);
129
- let result = await response.json();
130
- if (this.config.onResponse) {
131
- result = this.config.onResponse(result);
132
- }
133
- return result;
134
- } catch (error) {
135
- if (this.config.onError) {
136
- this.config.onError(error);
137
- }
138
- throw error;
1675
+ const queryParameters = {};
1676
+ const headerParameters = {};
1677
+ headerParameters["Content-Type"] = "application/json";
1678
+ let urlPath = `/api/data/query`;
1679
+ const response = await this.request({
1680
+ path: urlPath,
1681
+ method: "POST",
1682
+ headers: headerParameters,
1683
+ query: queryParameters,
1684
+ body: DataQueryRequestToJSON(requestParameters["dataQueryRequest"])
1685
+ }, initOverrides);
1686
+ return new JSONApiResponse(response, (jsonValue) => DataQueryResponseFromJSON(jsonValue));
1687
+ }
1688
+ /**
1689
+ * 数据查询代理,支持: - 白名单校验 - 字段裁剪/脱敏 - 缓存 - 审计
1690
+ * 查询数据
1691
+ */
1692
+ async queryData(requestParameters, initOverrides) {
1693
+ const response = await this.queryDataRaw(requestParameters, initOverrides);
1694
+ return await response.value();
1695
+ }
1696
+ /**
1697
+ * 批量执行多个数据查询
1698
+ * 批量查询数据
1699
+ */
1700
+ async queryDataBatchRaw(requestParameters, initOverrides) {
1701
+ if (requestParameters["queryDataBatchRequest"] == null) {
1702
+ throw new RequiredError(
1703
+ "queryDataBatchRequest",
1704
+ 'Required parameter "queryDataBatchRequest" was null or undefined when calling queryDataBatch().'
1705
+ );
139
1706
  }
1707
+ const queryParameters = {};
1708
+ const headerParameters = {};
1709
+ headerParameters["Content-Type"] = "application/json";
1710
+ let urlPath = `/api/data/query/batch`;
1711
+ const response = await this.request({
1712
+ path: urlPath,
1713
+ method: "POST",
1714
+ headers: headerParameters,
1715
+ query: queryParameters,
1716
+ body: QueryDataBatchRequestToJSON(requestParameters["queryDataBatchRequest"])
1717
+ }, initOverrides);
1718
+ return new JSONApiResponse(response, (jsonValue) => QueryDataBatch200ResponseFromJSON(jsonValue));
140
1719
  }
141
- // ==================== 页面解析 ====================
142
1720
  /**
143
- * 解析页面
144
- * GET /api/page/resolve
1721
+ * 批量执行多个数据查询
1722
+ * 批量查询数据
145
1723
  */
146
- async resolvePage(params) {
147
- return this.request("GET", "/api/page/resolve", {
148
- params: {
149
- pageUid: params.pageUid,
150
- channel: params.channel,
151
- uid: params.uid,
152
- deviceId: params.deviceId,
153
- previewToken: params.previewToken
154
- }
155
- });
1724
+ async queryDataBatch(requestParameters, initOverrides) {
1725
+ const response = await this.queryDataBatchRaw(requestParameters, initOverrides);
1726
+ return await response.value();
156
1727
  }
157
- // ==================== Action Gateway ====================
1728
+ };
1729
+
1730
+ // src/gen/apis/HealthApi.ts
1731
+ var HealthApi = class extends BaseAPI {
158
1732
  /**
159
- * 执行动作
160
- * POST /api/actions/execute
1733
+ * 检查服务健康状态
1734
+ * 健康检查
161
1735
  */
162
- async executeAction(request) {
163
- return this.request("POST", "/api/actions/execute", {
164
- body: request
165
- });
1736
+ async healthRaw(initOverrides) {
1737
+ const queryParameters = {};
1738
+ const headerParameters = {};
1739
+ let urlPath = `/api/health`;
1740
+ const response = await this.request({
1741
+ path: urlPath,
1742
+ method: "GET",
1743
+ headers: headerParameters,
1744
+ query: queryParameters
1745
+ }, initOverrides);
1746
+ return new JSONApiResponse(response, (jsonValue) => HealthResponseFromJSON(jsonValue));
166
1747
  }
167
1748
  /**
168
- * 快捷方法:领取
1749
+ * 检查服务健康状态
1750
+ * 健康检查
169
1751
  */
170
- async claim(activityId, params) {
171
- return this.executeAction({
172
- actionType: "claim",
173
- params: { activityId, ...params },
174
- context: {
175
- deviceId: this.config.deviceId,
176
- channel: this.config.channel
177
- }
178
- });
1752
+ async health(initOverrides) {
1753
+ const response = await this.healthRaw(initOverrides);
1754
+ return await response.value();
179
1755
  }
180
1756
  /**
181
- * 快捷方法:签到
1757
+ * 检查服务是否存活
1758
+ * 存活检查
182
1759
  */
183
- async signin(activityId) {
184
- return this.executeAction({
185
- actionType: "signin",
186
- params: { activityId },
187
- context: {
188
- deviceId: this.config.deviceId,
189
- channel: this.config.channel
190
- }
191
- });
1760
+ async livenessRaw(initOverrides) {
1761
+ const queryParameters = {};
1762
+ const headerParameters = {};
1763
+ let urlPath = `/api/health/live`;
1764
+ const response = await this.request({
1765
+ path: urlPath,
1766
+ method: "GET",
1767
+ headers: headerParameters,
1768
+ query: queryParameters
1769
+ }, initOverrides);
1770
+ return new JSONApiResponse(response, (jsonValue) => HealthResponseFromJSON(jsonValue));
192
1771
  }
193
1772
  /**
194
- * 快捷方法:抽奖
1773
+ * 检查服务是否存活
1774
+ * 存活检查
195
1775
  */
196
- async lottery(activityId, params) {
197
- return this.executeAction({
198
- actionType: "lottery",
199
- params: { activityId, ...params },
200
- context: {
201
- deviceId: this.config.deviceId,
202
- channel: this.config.channel
203
- }
204
- });
1776
+ async liveness(initOverrides) {
1777
+ const response = await this.livenessRaw(initOverrides);
1778
+ return await response.value();
205
1779
  }
206
- // ==================== Data Proxy ====================
207
1780
  /**
208
- * 查询数据
209
- * POST /api/data/query
1781
+ * 检查服务是否就绪(可接受流量)
1782
+ * 就绪检查
210
1783
  */
211
- async queryData(request) {
212
- return this.request("POST", "/api/data/query", {
213
- body: request
214
- });
1784
+ async readinessRaw(initOverrides) {
1785
+ const queryParameters = {};
1786
+ const headerParameters = {};
1787
+ let urlPath = `/api/health/ready`;
1788
+ const response = await this.request({
1789
+ path: urlPath,
1790
+ method: "GET",
1791
+ headers: headerParameters,
1792
+ query: queryParameters
1793
+ }, initOverrides);
1794
+ return new JSONApiResponse(response, (jsonValue) => HealthResponseFromJSON(jsonValue));
215
1795
  }
216
1796
  /**
217
- * 快捷方法:查询数据
1797
+ * 检查服务是否就绪(可接受流量)
1798
+ * 就绪检查
218
1799
  */
219
- async query(queryVersionId, params) {
220
- const response = await this.queryData({
221
- queryVersionId,
222
- params: params || {}
223
- });
224
- return response.data;
225
- }
226
- // ==================== 埋点 ====================
1800
+ async readiness(initOverrides) {
1801
+ const response = await this.readinessRaw(initOverrides);
1802
+ return await response.value();
1803
+ }
1804
+ };
1805
+
1806
+ // src/gen/apis/PageApi.ts
1807
+ var PageApi = class extends BaseAPI {
227
1808
  /**
228
- * 上报埋点
229
- * POST /api/track
1809
+ * 根据页面 UID 解析页面配置,返回: - 页面 JSON Schema - 组件 Manifest(锁定的组件版本清单) - 运行时配置(Kill Switch、Blocked Components 等)
1810
+ * 解析页面
230
1811
  */
231
- async track(events) {
232
- await this.request("POST", "/api/track", {
233
- body: { events }
234
- });
1812
+ async resolvePageRaw(requestParameters, initOverrides) {
1813
+ if (requestParameters["pageUid"] == null) {
1814
+ throw new RequiredError(
1815
+ "pageUid",
1816
+ 'Required parameter "pageUid" was null or undefined when calling resolvePage().'
1817
+ );
1818
+ }
1819
+ const queryParameters = {};
1820
+ if (requestParameters["pageUid"] != null) {
1821
+ queryParameters["pageUid"] = requestParameters["pageUid"];
1822
+ }
1823
+ if (requestParameters["channel"] != null) {
1824
+ queryParameters["channel"] = requestParameters["channel"];
1825
+ }
1826
+ if (requestParameters["uid"] != null) {
1827
+ queryParameters["uid"] = requestParameters["uid"];
1828
+ }
1829
+ if (requestParameters["deviceId"] != null) {
1830
+ queryParameters["deviceId"] = requestParameters["deviceId"];
1831
+ }
1832
+ if (requestParameters["previewToken"] != null) {
1833
+ queryParameters["previewToken"] = requestParameters["previewToken"];
1834
+ }
1835
+ const headerParameters = {};
1836
+ let urlPath = `/api/page/resolve`;
1837
+ const response = await this.request({
1838
+ path: urlPath,
1839
+ method: "GET",
1840
+ headers: headerParameters,
1841
+ query: queryParameters
1842
+ }, initOverrides);
1843
+ return new JSONApiResponse(response, (jsonValue) => PageResolveResponseFromJSON(jsonValue));
235
1844
  }
236
1845
  /**
237
- * 快捷方法:上报单个事件
1846
+ * 根据页面 UID 解析页面配置,返回: - 页面 JSON Schema - 组件 Manifest(锁定的组件版本清单) - 运行时配置(Kill Switch、Blocked Components 等)
1847
+ * 解析页面
238
1848
  */
239
- async trackEvent(eventName, params) {
240
- await this.track([
241
- {
242
- eventName,
243
- params,
244
- timestamp: Date.now()
245
- }
246
- ]);
1849
+ async resolvePage(requestParameters, initOverrides) {
1850
+ const response = await this.resolvePageRaw(requestParameters, initOverrides);
1851
+ return await response.value();
247
1852
  }
248
- // ==================== 活动状态 ====================
249
1853
  /**
250
- * 获取活动状态
251
- * GET /api/activity/state
1854
+ * 批量获取多个页面的解析结果
1855
+ * 批量解析页面
252
1856
  */
253
- async getActivityState(params) {
254
- return this.request("GET", "/api/activity/state", {
255
- params: {
256
- activityId: params.activityId,
257
- uid: params.uid,
258
- deviceId: params.deviceId
259
- }
260
- });
1857
+ async resolvePageBatchRaw(requestParameters, initOverrides) {
1858
+ if (requestParameters["resolvePageBatchRequest"] == null) {
1859
+ throw new RequiredError(
1860
+ "resolvePageBatchRequest",
1861
+ 'Required parameter "resolvePageBatchRequest" was null or undefined when calling resolvePageBatch().'
1862
+ );
1863
+ }
1864
+ const queryParameters = {};
1865
+ const headerParameters = {};
1866
+ headerParameters["Content-Type"] = "application/json";
1867
+ let urlPath = `/api/page/resolve/batch`;
1868
+ const response = await this.request({
1869
+ path: urlPath,
1870
+ method: "POST",
1871
+ headers: headerParameters,
1872
+ query: queryParameters,
1873
+ body: ResolvePageBatchRequestToJSON(requestParameters["resolvePageBatchRequest"])
1874
+ }, initOverrides);
1875
+ return new JSONApiResponse(response, (jsonValue) => ResolvePageBatch200ResponseFromJSON(jsonValue));
261
1876
  }
262
- // ==================== 健康检查 ====================
263
1877
  /**
264
- * 健康检查
265
- * GET /api/health
1878
+ * 批量获取多个页面的解析结果
1879
+ * 批量解析页面
1880
+ */
1881
+ async resolvePageBatch(requestParameters, initOverrides) {
1882
+ const response = await this.resolvePageBatchRaw(requestParameters, initOverrides);
1883
+ return await response.value();
1884
+ }
1885
+ };
1886
+ var ResolvePageChannelEnum = {
1887
+ preview: "preview",
1888
+ prod: "prod",
1889
+ gray: "gray"
1890
+ };
1891
+
1892
+ // src/gen/apis/TrackApi.ts
1893
+ var TrackApi = class extends BaseAPI {
1894
+ /**
1895
+ * 批量上报埋点事件
1896
+ * 上报埋点
1897
+ */
1898
+ async trackRaw(requestParameters, initOverrides) {
1899
+ if (requestParameters["trackRequest"] == null) {
1900
+ throw new RequiredError(
1901
+ "trackRequest",
1902
+ 'Required parameter "trackRequest" was null or undefined when calling track().'
1903
+ );
1904
+ }
1905
+ const queryParameters = {};
1906
+ const headerParameters = {};
1907
+ headerParameters["Content-Type"] = "application/json";
1908
+ let urlPath = `/api/track`;
1909
+ const response = await this.request({
1910
+ path: urlPath,
1911
+ method: "POST",
1912
+ headers: headerParameters,
1913
+ query: queryParameters,
1914
+ body: TrackRequestToJSON(requestParameters["trackRequest"])
1915
+ }, initOverrides);
1916
+ return new VoidApiResponse(response);
1917
+ }
1918
+ /**
1919
+ * 批量上报埋点事件
1920
+ * 上报埋点
266
1921
  */
267
- async health() {
268
- return this.request("GET", "/api/health");
1922
+ async track(requestParameters, initOverrides) {
1923
+ await this.trackRaw(requestParameters, initOverrides);
269
1924
  }
270
1925
  };
271
- function createUserClient(config) {
272
- return new UserApiClient(config);
1926
+
1927
+ // src/index.ts
1928
+ function stripTrailingSlash(url) {
1929
+ return url.replace(/\/$/, "");
1930
+ }
1931
+ function createFetchWithTimeout(fetchImpl, timeoutMs) {
1932
+ return (async (input, init) => {
1933
+ const controller = new AbortController();
1934
+ const id = setTimeout(() => controller.abort(), timeoutMs);
1935
+ try {
1936
+ return await fetchImpl(input, { ...init, signal: controller.signal });
1937
+ } finally {
1938
+ clearTimeout(id);
1939
+ }
1940
+ });
1941
+ }
1942
+ function normalizeHeaders(initHeaders) {
1943
+ return new Headers(initHeaders ?? {});
1944
+ }
1945
+ function createUserClient(opts) {
1946
+ const timeoutMs = opts.timeoutMs ?? 15e3;
1947
+ const fetchImpl = opts.fetchApi ?? fetch;
1948
+ const fetchWithTimeout = createFetchWithTimeout(fetchImpl, timeoutMs);
1949
+ const headersMiddleware = {
1950
+ async pre(context) {
1951
+ const headers = normalizeHeaders(context.init.headers);
1952
+ if (opts.defaultHeaders) {
1953
+ for (const [k, v] of Object.entries(opts.defaultHeaders)) headers.set(k, v);
1954
+ }
1955
+ if (opts.getAuthToken) {
1956
+ const token = await opts.getAuthToken();
1957
+ if (token) headers.set("Authorization", `Bearer ${token}`);
1958
+ }
1959
+ if (opts.getTraceHeaders) {
1960
+ const traceHeaders = opts.getTraceHeaders();
1961
+ for (const [k, v] of Object.entries(traceHeaders)) headers.set(k, v);
1962
+ }
1963
+ return { url: context.url, init: { ...context.init, headers } };
1964
+ }
1965
+ };
1966
+ const config = new Configuration({
1967
+ basePath: stripTrailingSlash(opts.baseUrl),
1968
+ fetchApi: fetchWithTimeout,
1969
+ middleware: [headersMiddleware],
1970
+ credentials: opts.credentials ?? "omit"
1971
+ });
1972
+ const apiInstances = {};
1973
+ for (const [name, ApiClass] of Object.entries(apis_exports)) {
1974
+ if (typeof ApiClass === "function" && name.endsWith("Api")) {
1975
+ apiInstances[name] = new ApiClass(config);
1976
+ }
1977
+ }
1978
+ return {
1979
+ config,
1980
+ apis: apiInstances,
1981
+ ...apiInstances
1982
+ };
273
1983
  }
274
- var index_default = UserApiClient;
275
1984
  export {
276
- UserApiClient,
1985
+ ActionApi,
1986
+ ActionContextFromJSON,
1987
+ ActionContextFromJSONTyped,
1988
+ ActionContextToJSON,
1989
+ ActionContextToJSONTyped,
1990
+ ActionExecuteRequestFromJSON,
1991
+ ActionExecuteRequestFromJSONTyped,
1992
+ ActionExecuteRequestToJSON,
1993
+ ActionExecuteRequestToJSONTyped,
1994
+ ActionExecuteResponseFromJSON,
1995
+ ActionExecuteResponseFromJSONTyped,
1996
+ ActionExecuteResponseToJSON,
1997
+ ActionExecuteResponseToJSONTyped,
1998
+ ActivityApi,
1999
+ ActivityStateActivityInfoFromJSON,
2000
+ ActivityStateActivityInfoFromJSONTyped,
2001
+ ActivityStateActivityInfoToJSON,
2002
+ ActivityStateActivityInfoToJSONTyped,
2003
+ ActivityStateFromJSON,
2004
+ ActivityStateFromJSONTyped,
2005
+ ActivityStateResponseFromJSON,
2006
+ ActivityStateResponseFromJSONTyped,
2007
+ ActivityStateResponseToJSON,
2008
+ ActivityStateResponseToJSONTyped,
2009
+ ActivityStateStatusEnum,
2010
+ ActivityStateToJSON,
2011
+ ActivityStateToJSONTyped,
2012
+ BaseResponseVoFromJSON,
2013
+ BaseResponseVoFromJSONTyped,
2014
+ BaseResponseVoToJSON,
2015
+ BaseResponseVoToJSONTyped,
2016
+ BlockedComponentFromJSON,
2017
+ BlockedComponentFromJSONTyped,
2018
+ BlockedComponentToJSON,
2019
+ BlockedComponentToJSONTyped,
2020
+ Configuration,
2021
+ DataApi,
2022
+ DataQueryContextFromJSON,
2023
+ DataQueryContextFromJSONTyped,
2024
+ DataQueryContextToJSON,
2025
+ DataQueryContextToJSONTyped,
2026
+ DataQueryRequestFromJSON,
2027
+ DataQueryRequestFromJSONTyped,
2028
+ DataQueryRequestToJSON,
2029
+ DataQueryRequestToJSONTyped,
2030
+ DataQueryResponseFromJSON,
2031
+ DataQueryResponseFromJSONTyped,
2032
+ DataQueryResponseToJSON,
2033
+ DataQueryResponseToJSONTyped,
2034
+ ErrorDetailFromJSON,
2035
+ ErrorDetailFromJSONTyped,
2036
+ ErrorDetailToJSON,
2037
+ ErrorDetailToJSONTyped,
2038
+ ErrorResponseVoFromJSON,
2039
+ ErrorResponseVoFromJSONTyped,
2040
+ ErrorResponseVoToJSON,
2041
+ ErrorResponseVoToJSONTyped,
2042
+ ExecuteActionBatch200ResponseFromJSON,
2043
+ ExecuteActionBatch200ResponseFromJSONTyped,
2044
+ ExecuteActionBatch200ResponseToJSON,
2045
+ ExecuteActionBatch200ResponseToJSONTyped,
2046
+ ExecuteActionBatchRequestFromJSON,
2047
+ ExecuteActionBatchRequestFromJSONTyped,
2048
+ ExecuteActionBatchRequestToJSON,
2049
+ ExecuteActionBatchRequestToJSONTyped,
2050
+ GetActivityStateBatch200ResponseFromJSON,
2051
+ GetActivityStateBatch200ResponseFromJSONTyped,
2052
+ GetActivityStateBatch200ResponseToJSON,
2053
+ GetActivityStateBatch200ResponseToJSONTyped,
2054
+ GetActivityStateBatchRequestFromJSON,
2055
+ GetActivityStateBatchRequestFromJSONTyped,
2056
+ GetActivityStateBatchRequestToJSON,
2057
+ GetActivityStateBatchRequestToJSONTyped,
2058
+ HealthApi,
2059
+ HealthResponseChecksValueFromJSON,
2060
+ HealthResponseChecksValueFromJSONTyped,
2061
+ HealthResponseChecksValueToJSON,
2062
+ HealthResponseChecksValueToJSONTyped,
2063
+ HealthResponseFromJSON,
2064
+ HealthResponseFromJSONTyped,
2065
+ HealthResponseStatusEnum,
2066
+ HealthResponseToJSON,
2067
+ HealthResponseToJSONTyped,
2068
+ ManifestItemFromJSON,
2069
+ ManifestItemFromJSONTyped,
2070
+ ManifestItemToJSON,
2071
+ ManifestItemToJSONTyped,
2072
+ PageApi,
2073
+ PageManifestFromJSON,
2074
+ PageManifestFromJSONTyped,
2075
+ PageManifestToJSON,
2076
+ PageManifestToJSONTyped,
2077
+ PageResolveResponseFromJSON,
2078
+ PageResolveResponseFromJSONTyped,
2079
+ PageResolveResponseToJSON,
2080
+ PageResolveResponseToJSONTyped,
2081
+ PageResolveResultFromJSON,
2082
+ PageResolveResultFromJSONTyped,
2083
+ PageResolveResultToJSON,
2084
+ PageResolveResultToJSONTyped,
2085
+ QueryDataBatch200ResponseFromJSON,
2086
+ QueryDataBatch200ResponseFromJSONTyped,
2087
+ QueryDataBatch200ResponseToJSON,
2088
+ QueryDataBatch200ResponseToJSONTyped,
2089
+ QueryDataBatchRequestFromJSON,
2090
+ QueryDataBatchRequestFromJSONTyped,
2091
+ QueryDataBatchRequestToJSON,
2092
+ QueryDataBatchRequestToJSONTyped,
2093
+ ResolvePageBatch200ResponseFromJSON,
2094
+ ResolvePageBatch200ResponseFromJSONTyped,
2095
+ ResolvePageBatch200ResponseToJSON,
2096
+ ResolvePageBatch200ResponseToJSONTyped,
2097
+ ResolvePageBatchRequestChannelEnum,
2098
+ ResolvePageBatchRequestFromJSON,
2099
+ ResolvePageBatchRequestFromJSONTyped,
2100
+ ResolvePageBatchRequestToJSON,
2101
+ ResolvePageBatchRequestToJSONTyped,
2102
+ ResolvePageChannelEnum,
2103
+ RuntimeConfigFromJSON,
2104
+ RuntimeConfigFromJSONTyped,
2105
+ RuntimeConfigReportConfigFromJSON,
2106
+ RuntimeConfigReportConfigFromJSONTyped,
2107
+ RuntimeConfigReportConfigToJSON,
2108
+ RuntimeConfigReportConfigToJSONTyped,
2109
+ RuntimeConfigToJSON,
2110
+ RuntimeConfigToJSONTyped,
2111
+ TraceContextFromJSON,
2112
+ TraceContextFromJSONTyped,
2113
+ TraceContextToJSON,
2114
+ TraceContextToJSONTyped,
2115
+ TrackApi,
2116
+ TrackContextFromJSON,
2117
+ TrackContextFromJSONTyped,
2118
+ TrackContextToJSON,
2119
+ TrackContextToJSONTyped,
2120
+ TrackEventEventTypeEnum,
2121
+ TrackEventFromJSON,
2122
+ TrackEventFromJSONTyped,
2123
+ TrackEventToJSON,
2124
+ TrackEventToJSONTyped,
2125
+ TrackRequestFromJSON,
2126
+ TrackRequestFromJSONTyped,
2127
+ TrackRequestToJSON,
2128
+ TrackRequestToJSONTyped,
2129
+ UserActivityStateFromJSON,
2130
+ UserActivityStateFromJSONTyped,
2131
+ UserActivityStateProgressFromJSON,
2132
+ UserActivityStateProgressFromJSONTyped,
2133
+ UserActivityStateProgressToJSON,
2134
+ UserActivityStateProgressToJSONTyped,
2135
+ UserActivityStateToJSON,
2136
+ UserActivityStateToJSONTyped,
277
2137
  createUserClient,
278
- index_default as default
2138
+ instanceOfActionContext,
2139
+ instanceOfActionExecuteRequest,
2140
+ instanceOfActionExecuteResponse,
2141
+ instanceOfActivityState,
2142
+ instanceOfActivityStateActivityInfo,
2143
+ instanceOfActivityStateResponse,
2144
+ instanceOfBaseResponseVo,
2145
+ instanceOfBlockedComponent,
2146
+ instanceOfDataQueryContext,
2147
+ instanceOfDataQueryRequest,
2148
+ instanceOfDataQueryResponse,
2149
+ instanceOfErrorDetail,
2150
+ instanceOfErrorResponseVo,
2151
+ instanceOfExecuteActionBatch200Response,
2152
+ instanceOfExecuteActionBatchRequest,
2153
+ instanceOfGetActivityStateBatch200Response,
2154
+ instanceOfGetActivityStateBatchRequest,
2155
+ instanceOfHealthResponse,
2156
+ instanceOfHealthResponseChecksValue,
2157
+ instanceOfManifestItem,
2158
+ instanceOfPageManifest,
2159
+ instanceOfPageResolveResponse,
2160
+ instanceOfPageResolveResult,
2161
+ instanceOfQueryDataBatch200Response,
2162
+ instanceOfQueryDataBatchRequest,
2163
+ instanceOfResolvePageBatch200Response,
2164
+ instanceOfResolvePageBatchRequest,
2165
+ instanceOfRuntimeConfig,
2166
+ instanceOfRuntimeConfigReportConfig,
2167
+ instanceOfTraceContext,
2168
+ instanceOfTrackContext,
2169
+ instanceOfTrackEvent,
2170
+ instanceOfTrackRequest,
2171
+ instanceOfUserActivityState,
2172
+ instanceOfUserActivityStateProgress
279
2173
  };