camstreamerlib 4.0.14 → 4.0.16

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.
@@ -37,6 +37,9 @@ class CamStreamerAPI extends BasicAPI_1.BasicAPI {
37
37
  }
38
38
  async isCSPassValid(pass, options) {
39
39
  const res = await this._getJson(`${BASE_PATH}/check_pass.cgi`, { pass }, options);
40
+ if (res.status !== 200) {
41
+ throw new Error(res.message);
42
+ }
40
43
  return res.data === '1';
41
44
  }
42
45
  async getCamStreamerAppLog(options) {
@@ -44,6 +47,9 @@ class CamStreamerAPI extends BasicAPI_1.BasicAPI {
44
47
  }
45
48
  async getStreamList(options) {
46
49
  const res = await this._getJson(`${BASE_PATH}/stream_list.cgi`, { action: 'get' }, options);
50
+ if (res.status !== 200) {
51
+ throw new Error(res.message);
52
+ }
47
53
  const oldStreamListRecord = zod_1.z.record(zod_1.z.string(), oldStreamSchema_1.oldStringStreamSchema).safeParse(res.data);
48
54
  if (oldStreamListRecord.success) {
49
55
  const data = Object.entries(oldStreamListRecord.data).map(([streamId, streamData]) => ({
@@ -88,6 +94,9 @@ class CamStreamerAPI extends BasicAPI_1.BasicAPI {
88
94
  }
89
95
  async getStream(streamId, options) {
90
96
  const res = await this._getJson(`${BASE_PATH}/stream_list.cgi`, { action: 'get', stream_id: streamId }, options);
97
+ if (res.status !== 200) {
98
+ throw new Error(res.message);
99
+ }
91
100
  const newStream = CamStreamerAPI_1.streamSchema.safeParse(res.data);
92
101
  if (newStream.success) {
93
102
  return newStream.data;
@@ -117,6 +117,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
117
117
  displayIcao?: boolean | undefined;
118
118
  displayRegistration?: boolean | undefined;
119
119
  displayFlightNumber?: boolean | undefined;
120
+ displayCallsign?: boolean | undefined;
120
121
  displayAltitude?: boolean | undefined;
121
122
  displayVelocity?: boolean | undefined;
122
123
  displayDistance?: boolean | undefined;
@@ -177,6 +177,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
177
177
  displayIcao: z.ZodOptional<z.ZodBoolean>;
178
178
  displayRegistration: z.ZodOptional<z.ZodBoolean>;
179
179
  displayFlightNumber: z.ZodOptional<z.ZodBoolean>;
180
+ displayCallsign: z.ZodOptional<z.ZodBoolean>;
180
181
  displayAltitude: z.ZodOptional<z.ZodBoolean>;
181
182
  displayVelocity: z.ZodOptional<z.ZodBoolean>;
182
183
  displayDistance: z.ZodOptional<z.ZodBoolean>;
@@ -199,6 +200,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
199
200
  displayIcao?: boolean | undefined;
200
201
  displayRegistration?: boolean | undefined;
201
202
  displayFlightNumber?: boolean | undefined;
203
+ displayCallsign?: boolean | undefined;
202
204
  displayAltitude?: boolean | undefined;
203
205
  displayVelocity?: boolean | undefined;
204
206
  displayDistance?: boolean | undefined;
@@ -221,6 +223,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
221
223
  displayIcao?: boolean | undefined;
222
224
  displayRegistration?: boolean | undefined;
223
225
  displayFlightNumber?: boolean | undefined;
226
+ displayCallsign?: boolean | undefined;
224
227
  displayAltitude?: boolean | undefined;
225
228
  displayVelocity?: boolean | undefined;
226
229
  displayDistance?: boolean | undefined;
@@ -470,6 +473,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
470
473
  displayIcao?: boolean | undefined;
471
474
  displayRegistration?: boolean | undefined;
472
475
  displayFlightNumber?: boolean | undefined;
476
+ displayCallsign?: boolean | undefined;
473
477
  displayAltitude?: boolean | undefined;
474
478
  displayVelocity?: boolean | undefined;
475
479
  displayDistance?: boolean | undefined;
@@ -540,6 +544,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
540
544
  displayIcao?: boolean | undefined;
541
545
  displayRegistration?: boolean | undefined;
542
546
  displayFlightNumber?: boolean | undefined;
547
+ displayCallsign?: boolean | undefined;
543
548
  displayAltitude?: boolean | undefined;
544
549
  displayVelocity?: boolean | undefined;
545
550
  displayDistance?: boolean | undefined;
@@ -120,6 +120,7 @@ exports.cameraSettingsSchema = zod_1.z.object({
120
120
  displayIcao: zod_1.z.boolean().optional(),
121
121
  displayRegistration: zod_1.z.boolean().optional(),
122
122
  displayFlightNumber: zod_1.z.boolean().optional(),
123
+ displayCallsign: zod_1.z.boolean().optional(),
123
124
  displayAltitude: zod_1.z.boolean().optional(),
124
125
  displayVelocity: zod_1.z.boolean().optional(),
125
126
  displayDistance: zod_1.z.boolean().optional(),
@@ -107,6 +107,7 @@ export declare enum EUserActions {
107
107
  TRACK_ICAO = "trackIcao.cgi",
108
108
  TRACK_TARGET = "trackTarget.cgi",
109
109
  RESET_ICAO = "resetIcao.cgi",
110
+ RESET_TARGET = "resetTarget.cgi",
110
111
  SET_PRIORITY_LIST = "setPriorityList.cgi",
111
112
  SET_BLACK_LIST = "setBlackList.cgi",
112
113
  SET_WHITE_LIST = "setWhiteList.cgi",
@@ -408,6 +409,44 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
408
409
  ip: string;
409
410
  cgi: EUserActions.RESET_ICAO;
410
411
  postJsonBody?: any;
412
+ }>, z.ZodObject<{
413
+ type: z.ZodLiteral<"USER_ACTION">;
414
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
415
+ ip: z.ZodString;
416
+ params: z.ZodObject<{
417
+ userId: z.ZodString;
418
+ userName: z.ZodString;
419
+ userPriority: z.ZodString;
420
+ }, "strip", z.ZodTypeAny, {
421
+ userId: string;
422
+ userName: string;
423
+ userPriority: string;
424
+ }, {
425
+ userId: string;
426
+ userName: string;
427
+ userPriority: string;
428
+ }>;
429
+ postJsonBody: z.ZodAny;
430
+ }, "strip", z.ZodTypeAny, {
431
+ params: {
432
+ userId: string;
433
+ userName: string;
434
+ userPriority: string;
435
+ };
436
+ type: "USER_ACTION";
437
+ ip: string;
438
+ cgi: EUserActions.RESET_TARGET;
439
+ postJsonBody?: any;
440
+ }, {
441
+ params: {
442
+ userId: string;
443
+ userName: string;
444
+ userPriority: string;
445
+ };
446
+ type: "USER_ACTION";
447
+ ip: string;
448
+ cgi: EUserActions.RESET_TARGET;
449
+ postJsonBody?: any;
411
450
  }>, z.ZodObject<{
412
451
  type: z.ZodLiteral<"USER_ACTION">;
413
452
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
@@ -1406,6 +1445,44 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1406
1445
  ip: string;
1407
1446
  cgi: EUserActions.RESET_ICAO;
1408
1447
  postJsonBody?: any;
1448
+ }>, z.ZodObject<{
1449
+ type: z.ZodLiteral<"USER_ACTION">;
1450
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
1451
+ ip: z.ZodString;
1452
+ params: z.ZodObject<{
1453
+ userId: z.ZodString;
1454
+ userName: z.ZodString;
1455
+ userPriority: z.ZodString;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ userId: string;
1458
+ userName: string;
1459
+ userPriority: string;
1460
+ }, {
1461
+ userId: string;
1462
+ userName: string;
1463
+ userPriority: string;
1464
+ }>;
1465
+ postJsonBody: z.ZodAny;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ params: {
1468
+ userId: string;
1469
+ userName: string;
1470
+ userPriority: string;
1471
+ };
1472
+ type: "USER_ACTION";
1473
+ ip: string;
1474
+ cgi: EUserActions.RESET_TARGET;
1475
+ postJsonBody?: any;
1476
+ }, {
1477
+ params: {
1478
+ userId: string;
1479
+ userName: string;
1480
+ userPriority: string;
1481
+ };
1482
+ type: "USER_ACTION";
1483
+ ip: string;
1484
+ cgi: EUserActions.RESET_TARGET;
1485
+ postJsonBody?: any;
1409
1486
  }>, z.ZodObject<{
1410
1487
  type: z.ZodLiteral<"USER_ACTION">;
1411
1488
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
@@ -2185,6 +2262,16 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2185
2262
  ip: string;
2186
2263
  cgi: EUserActions.RESET_ICAO;
2187
2264
  postJsonBody?: any;
2265
+ } | {
2266
+ params: {
2267
+ userId: string;
2268
+ userName: string;
2269
+ userPriority: string;
2270
+ };
2271
+ type: "USER_ACTION";
2272
+ ip: string;
2273
+ cgi: EUserActions.RESET_TARGET;
2274
+ postJsonBody?: any;
2188
2275
  } | {
2189
2276
  params: {
2190
2277
  userId: string;
@@ -2414,6 +2501,16 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2414
2501
  ip: string;
2415
2502
  cgi: EUserActions.RESET_ICAO;
2416
2503
  postJsonBody?: any;
2504
+ } | {
2505
+ params: {
2506
+ userId: string;
2507
+ userName: string;
2508
+ userPriority: string;
2509
+ };
2510
+ type: "USER_ACTION";
2511
+ ip: string;
2512
+ cgi: EUserActions.RESET_TARGET;
2513
+ postJsonBody?: any;
2417
2514
  } | {
2418
2515
  params: {
2419
2516
  userId: string;
@@ -2860,6 +2957,44 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2860
2957
  ip: string;
2861
2958
  cgi: EUserActions.RESET_ICAO;
2862
2959
  postJsonBody?: any;
2960
+ }>, z.ZodObject<{
2961
+ type: z.ZodLiteral<"USER_ACTION">;
2962
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
2963
+ ip: z.ZodString;
2964
+ params: z.ZodObject<{
2965
+ userId: z.ZodString;
2966
+ userName: z.ZodString;
2967
+ userPriority: z.ZodString;
2968
+ }, "strip", z.ZodTypeAny, {
2969
+ userId: string;
2970
+ userName: string;
2971
+ userPriority: string;
2972
+ }, {
2973
+ userId: string;
2974
+ userName: string;
2975
+ userPriority: string;
2976
+ }>;
2977
+ postJsonBody: z.ZodAny;
2978
+ }, "strip", z.ZodTypeAny, {
2979
+ params: {
2980
+ userId: string;
2981
+ userName: string;
2982
+ userPriority: string;
2983
+ };
2984
+ type: "USER_ACTION";
2985
+ ip: string;
2986
+ cgi: EUserActions.RESET_TARGET;
2987
+ postJsonBody?: any;
2988
+ }, {
2989
+ params: {
2990
+ userId: string;
2991
+ userName: string;
2992
+ userPriority: string;
2993
+ };
2994
+ type: "USER_ACTION";
2995
+ ip: string;
2996
+ cgi: EUserActions.RESET_TARGET;
2997
+ postJsonBody?: any;
2863
2998
  }>, z.ZodObject<{
2864
2999
  type: z.ZodLiteral<"USER_ACTION">;
2865
3000
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
@@ -47,6 +47,7 @@ var EUserActions;
47
47
  EUserActions["TRACK_ICAO"] = "trackIcao.cgi";
48
48
  EUserActions["TRACK_TARGET"] = "trackTarget.cgi";
49
49
  EUserActions["RESET_ICAO"] = "resetIcao.cgi";
50
+ EUserActions["RESET_TARGET"] = "resetTarget.cgi";
50
51
  EUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
51
52
  EUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
52
53
  EUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
@@ -89,6 +90,13 @@ const eventsDataSchema = zod_1.z.union([
89
90
  params: userSchema,
90
91
  postJsonBody: zod_1.z.any(),
91
92
  }),
93
+ zod_1.z.object({
94
+ type: zod_1.z.literal('USER_ACTION'),
95
+ cgi: zod_1.z.literal(EUserActions.RESET_TARGET),
96
+ ip: zod_1.z.string(),
97
+ params: userSchema,
98
+ postJsonBody: zod_1.z.any(),
99
+ }),
92
100
  zod_1.z.object({
93
101
  type: zod_1.z.literal('USER_ACTION'),
94
102
  cgi: zod_1.z.literal(EUserActions.SET_PRIORITY_LIST),
@@ -34,6 +34,9 @@ export class CamStreamerAPI extends BasicAPI {
34
34
  }
35
35
  async isCSPassValid(pass, options) {
36
36
  const res = await this._getJson(`${BASE_PATH}/check_pass.cgi`, { pass }, options);
37
+ if (res.status !== 200) {
38
+ throw new Error(res.message);
39
+ }
37
40
  return res.data === '1';
38
41
  }
39
42
  async getCamStreamerAppLog(options) {
@@ -41,6 +44,9 @@ export class CamStreamerAPI extends BasicAPI {
41
44
  }
42
45
  async getStreamList(options) {
43
46
  const res = await this._getJson(`${BASE_PATH}/stream_list.cgi`, { action: 'get' }, options);
47
+ if (res.status !== 200) {
48
+ throw new Error(res.message);
49
+ }
44
50
  const oldStreamListRecord = z.record(z.string(), oldStringStreamSchema).safeParse(res.data);
45
51
  if (oldStreamListRecord.success) {
46
52
  const data = Object.entries(oldStreamListRecord.data).map(([streamId, streamData]) => ({
@@ -85,6 +91,9 @@ export class CamStreamerAPI extends BasicAPI {
85
91
  }
86
92
  async getStream(streamId, options) {
87
93
  const res = await this._getJson(`${BASE_PATH}/stream_list.cgi`, { action: 'get', stream_id: streamId }, options);
94
+ if (res.status !== 200) {
95
+ throw new Error(res.message);
96
+ }
88
97
  const newStream = streamSchema.safeParse(res.data);
89
98
  if (newStream.success) {
90
99
  return newStream.data;
@@ -117,6 +117,7 @@ export const cameraSettingsSchema = z.object({
117
117
  displayIcao: z.boolean().optional(),
118
118
  displayRegistration: z.boolean().optional(),
119
119
  displayFlightNumber: z.boolean().optional(),
120
+ displayCallsign: z.boolean().optional(),
120
121
  displayAltitude: z.boolean().optional(),
121
122
  displayVelocity: z.boolean().optional(),
122
123
  displayDistance: z.boolean().optional(),
@@ -44,6 +44,7 @@ export var EUserActions;
44
44
  EUserActions["TRACK_ICAO"] = "trackIcao.cgi";
45
45
  EUserActions["TRACK_TARGET"] = "trackTarget.cgi";
46
46
  EUserActions["RESET_ICAO"] = "resetIcao.cgi";
47
+ EUserActions["RESET_TARGET"] = "resetTarget.cgi";
47
48
  EUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
48
49
  EUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
49
50
  EUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
@@ -86,6 +87,13 @@ const eventsDataSchema = z.union([
86
87
  params: userSchema,
87
88
  postJsonBody: z.any(),
88
89
  }),
90
+ z.object({
91
+ type: z.literal('USER_ACTION'),
92
+ cgi: z.literal(EUserActions.RESET_TARGET),
93
+ ip: z.string(),
94
+ params: userSchema,
95
+ postJsonBody: z.any(),
96
+ }),
89
97
  z.object({
90
98
  type: z.literal('USER_ACTION'),
91
99
  cgi: z.literal(EUserActions.SET_PRIORITY_LIST),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.14",
3
+ "version": "4.0.16",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -117,6 +117,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
117
117
  displayIcao?: boolean | undefined;
118
118
  displayRegistration?: boolean | undefined;
119
119
  displayFlightNumber?: boolean | undefined;
120
+ displayCallsign?: boolean | undefined;
120
121
  displayAltitude?: boolean | undefined;
121
122
  displayVelocity?: boolean | undefined;
122
123
  displayDistance?: boolean | undefined;
@@ -177,6 +177,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
177
177
  displayIcao: z.ZodOptional<z.ZodBoolean>;
178
178
  displayRegistration: z.ZodOptional<z.ZodBoolean>;
179
179
  displayFlightNumber: z.ZodOptional<z.ZodBoolean>;
180
+ displayCallsign: z.ZodOptional<z.ZodBoolean>;
180
181
  displayAltitude: z.ZodOptional<z.ZodBoolean>;
181
182
  displayVelocity: z.ZodOptional<z.ZodBoolean>;
182
183
  displayDistance: z.ZodOptional<z.ZodBoolean>;
@@ -199,6 +200,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
199
200
  displayIcao?: boolean | undefined;
200
201
  displayRegistration?: boolean | undefined;
201
202
  displayFlightNumber?: boolean | undefined;
203
+ displayCallsign?: boolean | undefined;
202
204
  displayAltitude?: boolean | undefined;
203
205
  displayVelocity?: boolean | undefined;
204
206
  displayDistance?: boolean | undefined;
@@ -221,6 +223,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
221
223
  displayIcao?: boolean | undefined;
222
224
  displayRegistration?: boolean | undefined;
223
225
  displayFlightNumber?: boolean | undefined;
226
+ displayCallsign?: boolean | undefined;
224
227
  displayAltitude?: boolean | undefined;
225
228
  displayVelocity?: boolean | undefined;
226
229
  displayDistance?: boolean | undefined;
@@ -470,6 +473,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
470
473
  displayIcao?: boolean | undefined;
471
474
  displayRegistration?: boolean | undefined;
472
475
  displayFlightNumber?: boolean | undefined;
476
+ displayCallsign?: boolean | undefined;
473
477
  displayAltitude?: boolean | undefined;
474
478
  displayVelocity?: boolean | undefined;
475
479
  displayDistance?: boolean | undefined;
@@ -540,6 +544,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
540
544
  displayIcao?: boolean | undefined;
541
545
  displayRegistration?: boolean | undefined;
542
546
  displayFlightNumber?: boolean | undefined;
547
+ displayCallsign?: boolean | undefined;
543
548
  displayAltitude?: boolean | undefined;
544
549
  displayVelocity?: boolean | undefined;
545
550
  displayDistance?: boolean | undefined;
@@ -107,6 +107,7 @@ export declare enum EUserActions {
107
107
  TRACK_ICAO = "trackIcao.cgi",
108
108
  TRACK_TARGET = "trackTarget.cgi",
109
109
  RESET_ICAO = "resetIcao.cgi",
110
+ RESET_TARGET = "resetTarget.cgi",
110
111
  SET_PRIORITY_LIST = "setPriorityList.cgi",
111
112
  SET_BLACK_LIST = "setBlackList.cgi",
112
113
  SET_WHITE_LIST = "setWhiteList.cgi",
@@ -408,6 +409,44 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
408
409
  ip: string;
409
410
  cgi: EUserActions.RESET_ICAO;
410
411
  postJsonBody?: any;
412
+ }>, z.ZodObject<{
413
+ type: z.ZodLiteral<"USER_ACTION">;
414
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
415
+ ip: z.ZodString;
416
+ params: z.ZodObject<{
417
+ userId: z.ZodString;
418
+ userName: z.ZodString;
419
+ userPriority: z.ZodString;
420
+ }, "strip", z.ZodTypeAny, {
421
+ userId: string;
422
+ userName: string;
423
+ userPriority: string;
424
+ }, {
425
+ userId: string;
426
+ userName: string;
427
+ userPriority: string;
428
+ }>;
429
+ postJsonBody: z.ZodAny;
430
+ }, "strip", z.ZodTypeAny, {
431
+ params: {
432
+ userId: string;
433
+ userName: string;
434
+ userPriority: string;
435
+ };
436
+ type: "USER_ACTION";
437
+ ip: string;
438
+ cgi: EUserActions.RESET_TARGET;
439
+ postJsonBody?: any;
440
+ }, {
441
+ params: {
442
+ userId: string;
443
+ userName: string;
444
+ userPriority: string;
445
+ };
446
+ type: "USER_ACTION";
447
+ ip: string;
448
+ cgi: EUserActions.RESET_TARGET;
449
+ postJsonBody?: any;
411
450
  }>, z.ZodObject<{
412
451
  type: z.ZodLiteral<"USER_ACTION">;
413
452
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
@@ -1406,6 +1445,44 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1406
1445
  ip: string;
1407
1446
  cgi: EUserActions.RESET_ICAO;
1408
1447
  postJsonBody?: any;
1448
+ }>, z.ZodObject<{
1449
+ type: z.ZodLiteral<"USER_ACTION">;
1450
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
1451
+ ip: z.ZodString;
1452
+ params: z.ZodObject<{
1453
+ userId: z.ZodString;
1454
+ userName: z.ZodString;
1455
+ userPriority: z.ZodString;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ userId: string;
1458
+ userName: string;
1459
+ userPriority: string;
1460
+ }, {
1461
+ userId: string;
1462
+ userName: string;
1463
+ userPriority: string;
1464
+ }>;
1465
+ postJsonBody: z.ZodAny;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ params: {
1468
+ userId: string;
1469
+ userName: string;
1470
+ userPriority: string;
1471
+ };
1472
+ type: "USER_ACTION";
1473
+ ip: string;
1474
+ cgi: EUserActions.RESET_TARGET;
1475
+ postJsonBody?: any;
1476
+ }, {
1477
+ params: {
1478
+ userId: string;
1479
+ userName: string;
1480
+ userPriority: string;
1481
+ };
1482
+ type: "USER_ACTION";
1483
+ ip: string;
1484
+ cgi: EUserActions.RESET_TARGET;
1485
+ postJsonBody?: any;
1409
1486
  }>, z.ZodObject<{
1410
1487
  type: z.ZodLiteral<"USER_ACTION">;
1411
1488
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
@@ -2185,6 +2262,16 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2185
2262
  ip: string;
2186
2263
  cgi: EUserActions.RESET_ICAO;
2187
2264
  postJsonBody?: any;
2265
+ } | {
2266
+ params: {
2267
+ userId: string;
2268
+ userName: string;
2269
+ userPriority: string;
2270
+ };
2271
+ type: "USER_ACTION";
2272
+ ip: string;
2273
+ cgi: EUserActions.RESET_TARGET;
2274
+ postJsonBody?: any;
2188
2275
  } | {
2189
2276
  params: {
2190
2277
  userId: string;
@@ -2414,6 +2501,16 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2414
2501
  ip: string;
2415
2502
  cgi: EUserActions.RESET_ICAO;
2416
2503
  postJsonBody?: any;
2504
+ } | {
2505
+ params: {
2506
+ userId: string;
2507
+ userName: string;
2508
+ userPriority: string;
2509
+ };
2510
+ type: "USER_ACTION";
2511
+ ip: string;
2512
+ cgi: EUserActions.RESET_TARGET;
2513
+ postJsonBody?: any;
2417
2514
  } | {
2418
2515
  params: {
2419
2516
  userId: string;
@@ -2860,6 +2957,44 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2860
2957
  ip: string;
2861
2958
  cgi: EUserActions.RESET_ICAO;
2862
2959
  postJsonBody?: any;
2960
+ }>, z.ZodObject<{
2961
+ type: z.ZodLiteral<"USER_ACTION">;
2962
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
2963
+ ip: z.ZodString;
2964
+ params: z.ZodObject<{
2965
+ userId: z.ZodString;
2966
+ userName: z.ZodString;
2967
+ userPriority: z.ZodString;
2968
+ }, "strip", z.ZodTypeAny, {
2969
+ userId: string;
2970
+ userName: string;
2971
+ userPriority: string;
2972
+ }, {
2973
+ userId: string;
2974
+ userName: string;
2975
+ userPriority: string;
2976
+ }>;
2977
+ postJsonBody: z.ZodAny;
2978
+ }, "strip", z.ZodTypeAny, {
2979
+ params: {
2980
+ userId: string;
2981
+ userName: string;
2982
+ userPriority: string;
2983
+ };
2984
+ type: "USER_ACTION";
2985
+ ip: string;
2986
+ cgi: EUserActions.RESET_TARGET;
2987
+ postJsonBody?: any;
2988
+ }, {
2989
+ params: {
2990
+ userId: string;
2991
+ userName: string;
2992
+ userPriority: string;
2993
+ };
2994
+ type: "USER_ACTION";
2995
+ ip: string;
2996
+ cgi: EUserActions.RESET_TARGET;
2997
+ postJsonBody?: any;
2863
2998
  }>, z.ZodObject<{
2864
2999
  type: z.ZodLiteral<"USER_ACTION">;
2865
3000
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;