@remnawave/backend-contract 3.3.1 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/build/backend/api/controllers/index.d.ts +1 -0
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +1 -0
  4. package/build/backend/api/controllers/node-integrations.d.ts +9 -0
  5. package/build/backend/api/controllers/node-integrations.d.ts.map +1 -0
  6. package/build/backend/api/controllers/node-integrations.js +11 -0
  7. package/build/backend/api/controllers-info.d.ts +5 -0
  8. package/build/backend/api/controllers-info.d.ts.map +1 -1
  9. package/build/backend/api/controllers-info.js +5 -0
  10. package/build/backend/api/routes.d.ts +7 -0
  11. package/build/backend/api/routes.d.ts.map +1 -1
  12. package/build/backend/api/routes.js +7 -0
  13. package/build/backend/commands/index.d.ts +1 -0
  14. package/build/backend/commands/index.d.ts.map +1 -1
  15. package/build/backend/commands/index.js +1 -0
  16. package/build/backend/commands/node-integrations/create-node-integration.command.d.ts +22 -0
  17. package/build/backend/commands/node-integrations/create-node-integration.command.d.ts.map +1 -0
  18. package/build/backend/commands/node-integrations/create-node-integration.command.js +24 -0
  19. package/build/backend/commands/node-integrations/delete-node-integration.command.d.ts +11 -0
  20. package/build/backend/commands/node-integrations/delete-node-integration.command.d.ts.map +1 -0
  21. package/build/backend/commands/node-integrations/delete-node-integration.command.js +15 -0
  22. package/build/backend/commands/node-integrations/get-node-integration.command.d.ts +20 -0
  23. package/build/backend/commands/node-integrations/get-node-integration.command.d.ts.map +1 -0
  24. package/build/backend/commands/node-integrations/get-node-integration.command.js +19 -0
  25. package/build/backend/commands/node-integrations/get-node-integrations.command.d.ts +19 -0
  26. package/build/backend/commands/node-integrations/get-node-integrations.command.d.ts.map +1 -0
  27. package/build/backend/commands/node-integrations/get-node-integrations.command.js +19 -0
  28. package/build/backend/commands/node-integrations/index.d.ts +6 -0
  29. package/build/backend/commands/node-integrations/index.d.ts.map +1 -0
  30. package/build/backend/commands/node-integrations/index.js +21 -0
  31. package/build/backend/commands/node-integrations/update-node-integration.command.d.ts +24 -0
  32. package/build/backend/commands/node-integrations/update-node-integration.command.d.ts.map +1 -0
  33. package/build/backend/commands/node-integrations/update-node-integration.command.js +27 -0
  34. package/build/backend/commands/nodes/actions/disable.command.d.ts +1 -0
  35. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  36. package/build/backend/commands/nodes/actions/enable.command.d.ts +1 -0
  37. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  38. package/build/backend/commands/nodes/actions/reorder.command.d.ts +1 -0
  39. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  40. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts +1 -0
  41. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts.map +1 -1
  42. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.js +1 -0
  43. package/build/backend/commands/nodes/create.command.d.ts +2 -0
  44. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  45. package/build/backend/commands/nodes/create.command.js +1 -0
  46. package/build/backend/commands/nodes/get-node.command.d.ts +1 -0
  47. package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
  48. package/build/backend/commands/nodes/get-nodes.command.d.ts +1 -0
  49. package/build/backend/commands/nodes/get-nodes.command.d.ts.map +1 -1
  50. package/build/backend/commands/nodes/node.response.d.ts +1 -0
  51. package/build/backend/commands/nodes/node.response.d.ts.map +1 -1
  52. package/build/backend/commands/nodes/update.command.d.ts +2 -0
  53. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  54. package/build/backend/commands/nodes/update.command.js +1 -0
  55. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +126 -108
  56. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
  57. package/build/backend/constants/errors/errors.d.ts +35 -0
  58. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  59. package/build/backend/constants/errors/errors.js +35 -0
  60. package/build/backend/models/index.d.ts +1 -0
  61. package/build/backend/models/index.d.ts.map +1 -1
  62. package/build/backend/models/index.js +1 -0
  63. package/build/backend/models/node-integration.schema.d.ts +8 -0
  64. package/build/backend/models/node-integration.schema.d.ts.map +1 -0
  65. package/build/backend/models/node-integration.schema.js +13 -0
  66. package/build/backend/models/nodes.schema.d.ts +1 -0
  67. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  68. package/build/backend/models/nodes.schema.js +1 -0
  69. package/build/backend/models/resolved-proxy-config.schema.d.ts +207 -107
  70. package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -1
  71. package/build/backend/models/resolved-proxy-config.schema.js +19 -35
  72. package/build/backend/models/webhook/webhook.schema.d.ts +4 -0
  73. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
  74. package/build/frontend/api/controllers/index.js +1 -0
  75. package/build/frontend/api/controllers/node-integrations.js +11 -0
  76. package/build/frontend/api/controllers-info.js +5 -0
  77. package/build/frontend/api/routes.js +7 -0
  78. package/build/frontend/commands/index.js +1 -0
  79. package/build/frontend/commands/node-integrations/create-node-integration.command.js +24 -0
  80. package/build/frontend/commands/node-integrations/delete-node-integration.command.js +15 -0
  81. package/build/frontend/commands/node-integrations/get-node-integration.command.js +19 -0
  82. package/build/frontend/commands/node-integrations/get-node-integrations.command.js +19 -0
  83. package/build/frontend/commands/node-integrations/index.js +21 -0
  84. package/build/frontend/commands/node-integrations/update-node-integration.command.js +27 -0
  85. package/build/frontend/commands/nodes/bulk-actions/bulk-update.command.js +1 -0
  86. package/build/frontend/commands/nodes/create.command.js +1 -0
  87. package/build/frontend/commands/nodes/update.command.js +1 -0
  88. package/build/frontend/constants/errors/errors.js +35 -0
  89. package/build/frontend/models/index.js +1 -0
  90. package/build/frontend/models/node-integration.schema.js +13 -0
  91. package/build/frontend/models/nodes.schema.js +1 -0
  92. package/build/frontend/models/resolved-proxy-config.schema.js +19 -35
  93. package/package.json +1 -1
@@ -243,116 +243,10 @@ export declare const ProxyEntryMetadataSchema: z.ZodObject<{
243
243
  vlessRouteId: z.ZodNullable<z.ZodInt>;
244
244
  rawInbound: z.ZodNullable<z.ZodUnknown>;
245
245
  }, z.core.$strip>;
246
- export declare const ResolvedProxyConfigSchema: z.ZodObject<{
246
+ export declare const ResolvedProxyConfigBaseSchema: z.ZodObject<{
247
247
  finalRemark: z.ZodString;
248
248
  address: z.ZodString;
249
249
  port: z.ZodInt;
250
- protocol: z.ZodEnum<{
251
- vless: "vless";
252
- trojan: "trojan";
253
- shadowsocks: "shadowsocks";
254
- hysteria: "hysteria";
255
- }>;
256
- protocolOptions: z.ZodUnion<readonly [z.ZodObject<{
257
- encryption: z.ZodString;
258
- id: z.ZodString;
259
- flow: z.ZodEnum<{
260
- "": "";
261
- "xtls-rprx-vision": "xtls-rprx-vision";
262
- "xtls-rprx-vision-udp443": "xtls-rprx-vision-udp443";
263
- }>;
264
- }, z.core.$strip>, z.ZodObject<{
265
- password: z.ZodString;
266
- }, z.core.$strip>, z.ZodObject<{
267
- method: z.ZodString;
268
- password: z.ZodString;
269
- uot: z.ZodBoolean;
270
- uotVersion: z.ZodInt;
271
- }, z.core.$strip>, z.ZodObject<{
272
- version: z.ZodInt;
273
- }, z.core.$strip>]>;
274
- transport: z.ZodEnum<{
275
- hysteria: "hysteria";
276
- tcp: "tcp";
277
- xhttp: "xhttp";
278
- ws: "ws";
279
- httpupgrade: "httpupgrade";
280
- grpc: "grpc";
281
- kcp: "kcp";
282
- }>;
283
- transportOptions: z.ZodUnion<readonly [z.ZodObject<{
284
- header: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
285
- type: z.ZodLiteral<"none">;
286
- }, z.core.$strip>, z.ZodObject<{
287
- type: z.ZodLiteral<"http">;
288
- request: z.ZodOptional<z.ZodObject<{
289
- version: z.ZodOptional<z.ZodString>;
290
- method: z.ZodOptional<z.ZodString>;
291
- path: z.ZodOptional<z.ZodArray<z.ZodString>>;
292
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
293
- }, z.core.$strip>>;
294
- response: z.ZodOptional<z.ZodObject<{
295
- version: z.ZodOptional<z.ZodString>;
296
- status: z.ZodOptional<z.ZodString>;
297
- reason: z.ZodOptional<z.ZodString>;
298
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
299
- }, z.core.$strip>>;
300
- }, z.core.$strip>], "type">>;
301
- }, z.core.$strip>, z.ZodObject<{
302
- path: z.ZodNullable<z.ZodString>;
303
- host: z.ZodNullable<z.ZodString>;
304
- mode: z.ZodEnum<{
305
- auto: "auto";
306
- "packet-up": "packet-up";
307
- "stream-up": "stream-up";
308
- "stream-one": "stream-one";
309
- }>;
310
- extra: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
311
- }, z.core.$strip>, z.ZodObject<{
312
- path: z.ZodNullable<z.ZodString>;
313
- host: z.ZodNullable<z.ZodString>;
314
- headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
315
- heartbeatPeriod: z.ZodNullable<z.ZodNumber>;
316
- }, z.core.$strip>, z.ZodObject<{
317
- path: z.ZodNullable<z.ZodString>;
318
- host: z.ZodNullable<z.ZodString>;
319
- headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
320
- }, z.core.$strip>, z.ZodObject<{
321
- authority: z.ZodNullable<z.ZodString>;
322
- serviceName: z.ZodNullable<z.ZodString>;
323
- multiMode: z.ZodBoolean;
324
- }, z.core.$strip>, z.ZodObject<{
325
- clientMtu: z.ZodInt;
326
- clientTti: z.ZodInt;
327
- congestion: z.ZodBoolean;
328
- }, z.core.$strip>, z.ZodObject<{
329
- version: z.ZodInt;
330
- auth: z.ZodString;
331
- }, z.core.$strip>]>;
332
- security: z.ZodEnum<{
333
- none: "none";
334
- tls: "tls";
335
- reality: "reality";
336
- }>;
337
- securityOptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
338
- pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
339
- verifyPeerCertByName: z.ZodNullable<z.ZodString>;
340
- alpn: z.ZodNullable<z.ZodString>;
341
- enableSessionResumption: z.ZodBoolean;
342
- fingerprint: z.ZodNullable<z.ZodString>;
343
- serverName: z.ZodNullable<z.ZodString>;
344
- echConfigList: z.ZodNullable<z.ZodString>;
345
- echForceQuery: z.ZodNullable<z.ZodString>;
346
- echSockopt: z.ZodNullable<z.ZodUnknown>;
347
- cipherSuites: z.ZodNullable<z.ZodString>;
348
- }, z.core.$strip>, z.ZodObject<{
349
- fingerprint: z.ZodString;
350
- publicKey: z.ZodString;
351
- shortId: z.ZodNullable<z.ZodString>;
352
- serverName: z.ZodString;
353
- spiderX: z.ZodNullable<z.ZodString>;
354
- mldsa65Verify: z.ZodNullable<z.ZodString>;
355
- }, z.core.$strip>]>>;
356
250
  streamOverrides: z.ZodObject<{
357
251
  finalMask: z.ZodNullable<z.ZodUnknown>;
358
252
  sockopt: z.ZodNullable<z.ZodUnknown>;
@@ -431,4 +325,210 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
431
325
  rawInbound: z.ZodNullable<z.ZodUnknown>;
432
326
  }, z.core.$strip>;
433
327
  }, z.core.$strip>;
328
+ export declare const ResolvedProxyConfigSchema: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
329
+ finalRemark: z.ZodString;
330
+ address: z.ZodString;
331
+ port: z.ZodInt;
332
+ streamOverrides: z.ZodObject<{
333
+ finalMask: z.ZodNullable<z.ZodUnknown>;
334
+ sockopt: z.ZodNullable<z.ZodUnknown>;
335
+ }, z.core.$strip>;
336
+ mux: z.ZodNullable<z.ZodUnknown>;
337
+ clientOverrides: z.ZodObject<{
338
+ shuffleHost: z.ZodBoolean;
339
+ mihomoX25519: z.ZodBoolean;
340
+ mihomoIpVersion: z.ZodNullable<z.ZodEnum<{
341
+ readonly DUAL: "dual";
342
+ readonly IPV4: "ipv4";
343
+ readonly IPV6: "ipv6";
344
+ readonly IPV4_PREFER: "ipv4-prefer";
345
+ readonly IPV6_PREFER: "ipv6-prefer";
346
+ }>>;
347
+ serverDescription: z.ZodNullable<z.ZodString>;
348
+ xrayJsonTemplate: z.ZodNullable<z.ZodUnknown>;
349
+ mapper: z.ZodObject<{
350
+ xrayJson: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
351
+ op: z.ZodLiteral<"copy">;
352
+ from: z.ZodString;
353
+ to: z.ZodString;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ op: z.ZodLiteral<"set">;
356
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodJSONSchema>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>]>;
357
+ to: z.ZodString;
358
+ }, z.core.$strip>, z.ZodObject<{
359
+ op: z.ZodLiteral<"unset">;
360
+ to: z.ZodString;
361
+ }, z.core.$strip>], "op">>>;
362
+ mihomo: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
363
+ op: z.ZodLiteral<"copy">;
364
+ from: z.ZodString;
365
+ to: z.ZodString;
366
+ }, z.core.$strip>, z.ZodObject<{
367
+ op: z.ZodLiteral<"set">;
368
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodJSONSchema>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>]>;
369
+ to: z.ZodString;
370
+ }, z.core.$strip>, z.ZodObject<{
371
+ op: z.ZodLiteral<"unset">;
372
+ to: z.ZodString;
373
+ }, z.core.$strip>], "op">>>;
374
+ base64: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
375
+ op: z.ZodLiteral<"copy">;
376
+ from: z.ZodString;
377
+ to: z.ZodString;
378
+ }, z.core.$strip>, z.ZodObject<{
379
+ op: z.ZodLiteral<"set">;
380
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodJSONSchema>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>]>;
381
+ to: z.ZodString;
382
+ }, z.core.$strip>, z.ZodObject<{
383
+ op: z.ZodLiteral<"unset">;
384
+ to: z.ZodString;
385
+ }, z.core.$strip>], "op">>>;
386
+ }, z.core.$strip>;
387
+ }, z.core.$strip>;
388
+ metadata: z.ZodObject<{
389
+ uuid: z.ZodUUID;
390
+ tags: z.ZodArray<z.ZodString>;
391
+ excludeFromSubscriptionTypes: z.ZodArray<z.ZodEnum<{
392
+ readonly XRAY_JSON: "XRAY_JSON";
393
+ readonly XRAY_BASE64: "XRAY_BASE64";
394
+ readonly MIHOMO: "MIHOMO";
395
+ readonly STASH: "STASH";
396
+ readonly CLASH: "CLASH";
397
+ readonly SINGBOX: "SINGBOX";
398
+ }>>;
399
+ inboundTag: z.ZodString;
400
+ configProfileUuid: z.ZodNullable<z.ZodUUID>;
401
+ configProfileInboundUuid: z.ZodNullable<z.ZodUUID>;
402
+ isDisabled: z.ZodBoolean;
403
+ isHidden: z.ZodBoolean;
404
+ viewPosition: z.ZodInt;
405
+ remark: z.ZodString;
406
+ vlessRouteId: z.ZodNullable<z.ZodInt>;
407
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
408
+ }, z.core.$strip>;
409
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
410
+ protocol: z.ZodLiteral<"vless">;
411
+ protocolOptions: z.ZodObject<{
412
+ encryption: z.ZodString;
413
+ id: z.ZodString;
414
+ flow: z.ZodEnum<{
415
+ "": "";
416
+ "xtls-rprx-vision": "xtls-rprx-vision";
417
+ "xtls-rprx-vision-udp443": "xtls-rprx-vision-udp443";
418
+ }>;
419
+ }, z.core.$strip>;
420
+ }, z.core.$strip>, z.ZodObject<{
421
+ protocol: z.ZodLiteral<"trojan">;
422
+ protocolOptions: z.ZodObject<{
423
+ password: z.ZodString;
424
+ }, z.core.$strip>;
425
+ }, z.core.$strip>, z.ZodObject<{
426
+ protocol: z.ZodLiteral<"shadowsocks">;
427
+ protocolOptions: z.ZodObject<{
428
+ method: z.ZodString;
429
+ password: z.ZodString;
430
+ uot: z.ZodBoolean;
431
+ uotVersion: z.ZodInt;
432
+ }, z.core.$strip>;
433
+ }, z.core.$strip>, z.ZodObject<{
434
+ protocol: z.ZodLiteral<"hysteria">;
435
+ protocolOptions: z.ZodObject<{
436
+ version: z.ZodInt;
437
+ }, z.core.$strip>;
438
+ }, z.core.$strip>], "protocol">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
439
+ transport: z.ZodLiteral<"tcp">;
440
+ transportOptions: z.ZodObject<{
441
+ header: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
442
+ type: z.ZodLiteral<"none">;
443
+ }, z.core.$strip>, z.ZodObject<{
444
+ type: z.ZodLiteral<"http">;
445
+ request: z.ZodOptional<z.ZodObject<{
446
+ version: z.ZodOptional<z.ZodString>;
447
+ method: z.ZodOptional<z.ZodString>;
448
+ path: z.ZodOptional<z.ZodArray<z.ZodString>>;
449
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
450
+ }, z.core.$strip>>;
451
+ response: z.ZodOptional<z.ZodObject<{
452
+ version: z.ZodOptional<z.ZodString>;
453
+ status: z.ZodOptional<z.ZodString>;
454
+ reason: z.ZodOptional<z.ZodString>;
455
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
456
+ }, z.core.$strip>>;
457
+ }, z.core.$strip>], "type">>;
458
+ }, z.core.$strip>;
459
+ }, z.core.$strip>, z.ZodObject<{
460
+ transport: z.ZodLiteral<"xhttp">;
461
+ transportOptions: z.ZodObject<{
462
+ path: z.ZodNullable<z.ZodString>;
463
+ host: z.ZodNullable<z.ZodString>;
464
+ mode: z.ZodEnum<{
465
+ auto: "auto";
466
+ "packet-up": "packet-up";
467
+ "stream-up": "stream-up";
468
+ "stream-one": "stream-one";
469
+ }>;
470
+ extra: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
471
+ }, z.core.$strip>;
472
+ }, z.core.$strip>, z.ZodObject<{
473
+ transport: z.ZodLiteral<"ws">;
474
+ transportOptions: z.ZodObject<{
475
+ path: z.ZodNullable<z.ZodString>;
476
+ host: z.ZodNullable<z.ZodString>;
477
+ headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
478
+ heartbeatPeriod: z.ZodNullable<z.ZodNumber>;
479
+ }, z.core.$strip>;
480
+ }, z.core.$strip>, z.ZodObject<{
481
+ transport: z.ZodLiteral<"httpupgrade">;
482
+ transportOptions: z.ZodObject<{
483
+ path: z.ZodNullable<z.ZodString>;
484
+ host: z.ZodNullable<z.ZodString>;
485
+ headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
486
+ }, z.core.$strip>;
487
+ }, z.core.$strip>, z.ZodObject<{
488
+ transport: z.ZodLiteral<"grpc">;
489
+ transportOptions: z.ZodObject<{
490
+ authority: z.ZodNullable<z.ZodString>;
491
+ serviceName: z.ZodNullable<z.ZodString>;
492
+ multiMode: z.ZodBoolean;
493
+ }, z.core.$strip>;
494
+ }, z.core.$strip>, z.ZodObject<{
495
+ transport: z.ZodLiteral<"kcp">;
496
+ transportOptions: z.ZodObject<{
497
+ clientMtu: z.ZodInt;
498
+ clientTti: z.ZodInt;
499
+ congestion: z.ZodBoolean;
500
+ }, z.core.$strip>;
501
+ }, z.core.$strip>, z.ZodObject<{
502
+ transport: z.ZodLiteral<"hysteria">;
503
+ transportOptions: z.ZodObject<{
504
+ version: z.ZodInt;
505
+ auth: z.ZodString;
506
+ }, z.core.$strip>;
507
+ }, z.core.$strip>], "transport">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
508
+ security: z.ZodLiteral<"tls">;
509
+ securityOptions: z.ZodObject<{
510
+ pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
511
+ verifyPeerCertByName: z.ZodNullable<z.ZodString>;
512
+ alpn: z.ZodNullable<z.ZodString>;
513
+ enableSessionResumption: z.ZodBoolean;
514
+ fingerprint: z.ZodNullable<z.ZodString>;
515
+ serverName: z.ZodNullable<z.ZodString>;
516
+ echConfigList: z.ZodNullable<z.ZodString>;
517
+ echForceQuery: z.ZodNullable<z.ZodString>;
518
+ echSockopt: z.ZodNullable<z.ZodUnknown>;
519
+ cipherSuites: z.ZodNullable<z.ZodString>;
520
+ }, z.core.$strip>;
521
+ }, z.core.$strip>, z.ZodObject<{
522
+ security: z.ZodLiteral<"reality">;
523
+ securityOptions: z.ZodObject<{
524
+ fingerprint: z.ZodString;
525
+ publicKey: z.ZodString;
526
+ shortId: z.ZodNullable<z.ZodString>;
527
+ serverName: z.ZodString;
528
+ spiderX: z.ZodNullable<z.ZodString>;
529
+ mldsa65Verify: z.ZodNullable<z.ZodString>;
530
+ }, z.core.$strip>;
531
+ }, z.core.$strip>, z.ZodObject<{
532
+ security: z.ZodLiteral<"none">;
533
+ }, z.core.$strip>], "security">>;
434
534
  //# sourceMappingURL=resolved-proxy-config.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolved-proxy-config.schema.d.ts","sourceRoot":"","sources":["../../../models/resolved-proxy-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B;;;;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;iBAK3C,CAAC;AA4BH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAKtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;iBAI5C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;iBA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EntryMetadataSchema = exports.SecurityVariantSchema = exports.TransportVariantSchema = exports.ProtocolVariantSchema = exports.RealitySecurityOptionsSchema = exports.TlsSecurityOptionsSchema = exports.HysteriaTransportOptionsSchema = exports.HysteriaProtocolOptionsSchema = exports.KcpTransportOptionsSchema = exports.GrpcTransportOptionsSchema = exports.HttpUpgradeTransportOptionsSchema = exports.WsTransportOptionsSchema = exports.XhttpTransportOptionsSchema = exports.TcpTransportOptionsSchema = exports.ShadowsocksProtocolOptionsSchema = exports.TrojanProtocolOptionsSchema = exports.VlessProtocolOptionsSchema = void 0;
3
+ exports.ResolvedProxyConfigSchema = exports.ResolvedProxyConfigBaseSchema = exports.ProxyEntryMetadataSchema = exports.SecurityVariantSchema = exports.TransportVariantSchema = exports.ProtocolVariantSchema = exports.RealitySecurityOptionsSchema = exports.TlsSecurityOptionsSchema = exports.HysteriaTransportOptionsSchema = exports.HysteriaProtocolOptionsSchema = exports.KcpTransportOptionsSchema = exports.GrpcTransportOptionsSchema = exports.HttpUpgradeTransportOptionsSchema = exports.WsTransportOptionsSchema = exports.XhttpTransportOptionsSchema = exports.TcpTransportOptionsSchema = exports.ShadowsocksProtocolOptionsSchema = exports.TrojanProtocolOptionsSchema = exports.VlessProtocolOptionsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const constants_1 = require("../constants");
6
6
  const host_mapper_1 = require("./host-mapper");
@@ -113,10 +113,10 @@ const HysteriaProtocolSchema = zod_1.z.object({
113
113
  protocolOptions: exports.HysteriaProtocolOptionsSchema,
114
114
  });
115
115
  exports.ProtocolVariantSchema = zod_1.z.discriminatedUnion('protocol', [
116
- VlessProtocolSchema,
117
- TrojanProtocolSchema,
118
- ShadowsocksProtocolSchema,
119
- HysteriaProtocolSchema,
116
+ VlessProtocolSchema.meta({ title: 'vless' }),
117
+ TrojanProtocolSchema.meta({ title: 'trojan' }),
118
+ ShadowsocksProtocolSchema.meta({ title: 'shadowsocks' }),
119
+ HysteriaProtocolSchema.meta({ title: 'hysteria' }),
120
120
  ]);
121
121
  const TcpTransportSchema = zod_1.z.object({
122
122
  transport: zod_1.z.literal('tcp'),
@@ -147,13 +147,13 @@ const HysteriaTransportSchema = zod_1.z.object({
147
147
  transportOptions: exports.HysteriaTransportOptionsSchema,
148
148
  });
149
149
  exports.TransportVariantSchema = zod_1.z.discriminatedUnion('transport', [
150
- TcpTransportSchema,
151
- XHttpTransportSchema,
152
- WsTransportSchema,
153
- HttpUpgradeTransportSchema,
154
- GrpcTransportSchema,
155
- KcpTransportSchema,
156
- HysteriaTransportSchema,
150
+ TcpTransportSchema.meta({ title: 'tcp' }),
151
+ XHttpTransportSchema.meta({ title: 'xhttp' }),
152
+ WsTransportSchema.meta({ title: 'ws' }),
153
+ HttpUpgradeTransportSchema.meta({ title: 'httpupgrade' }),
154
+ GrpcTransportSchema.meta({ title: 'grpc' }),
155
+ KcpTransportSchema.meta({ title: 'kcp' }),
156
+ HysteriaTransportSchema.meta({ title: 'hysteria' }),
157
157
  ]);
158
158
  const TlsSecuritySchema = zod_1.z.object({
159
159
  security: zod_1.z.literal('tls'),
@@ -167,9 +167,9 @@ const NoneSecuritySchema = zod_1.z.object({
167
167
  security: zod_1.z.literal('none'),
168
168
  });
169
169
  exports.SecurityVariantSchema = zod_1.z.discriminatedUnion('security', [
170
- TlsSecuritySchema,
171
- RealitySecuritySchema,
172
- NoneSecuritySchema,
170
+ TlsSecuritySchema.meta({ title: 'tls' }),
171
+ RealitySecuritySchema.meta({ title: 'reality' }),
172
+ NoneSecuritySchema.meta({ title: 'none' }),
173
173
  ]);
174
174
  exports.ProxyEntryMetadataSchema = zod_1.z.object({
175
175
  uuid: zod_1.z.uuid(),
@@ -185,29 +185,10 @@ exports.ProxyEntryMetadataSchema = zod_1.z.object({
185
185
  vlessRouteId: zod_1.z.int().nullable(),
186
186
  rawInbound: zod_1.z.nullable(zod_1.z.unknown()),
187
187
  });
188
- exports.ResolvedProxyConfigSchema = zod_1.z.object({
188
+ exports.ResolvedProxyConfigBaseSchema = zod_1.z.object({
189
189
  finalRemark: zod_1.z.string(),
190
190
  address: zod_1.z.string(),
191
191
  port: zod_1.z.int().positive(),
192
- protocol: zod_1.z.enum(['vless', 'trojan', 'shadowsocks', 'hysteria']),
193
- protocolOptions: zod_1.z.union([
194
- exports.VlessProtocolOptionsSchema,
195
- exports.TrojanProtocolOptionsSchema,
196
- exports.ShadowsocksProtocolOptionsSchema,
197
- exports.HysteriaProtocolOptionsSchema,
198
- ]),
199
- transport: zod_1.z.enum(['tcp', 'xhttp', 'ws', 'httpupgrade', 'grpc', 'kcp', 'hysteria']),
200
- transportOptions: zod_1.z.union([
201
- exports.TcpTransportOptionsSchema,
202
- exports.XhttpTransportOptionsSchema,
203
- exports.WsTransportOptionsSchema,
204
- exports.HttpUpgradeTransportOptionsSchema,
205
- exports.GrpcTransportOptionsSchema,
206
- exports.KcpTransportOptionsSchema,
207
- exports.HysteriaTransportOptionsSchema,
208
- ]),
209
- security: zod_1.z.enum(['tls', 'reality', 'none']),
210
- securityOptions: zod_1.z.union([exports.TlsSecurityOptionsSchema, exports.RealitySecurityOptionsSchema]).optional(),
211
192
  streamOverrides: zod_1.z.object({
212
193
  finalMask: zod_1.z.nullable(zod_1.z.unknown()),
213
194
  sockopt: zod_1.z.nullable(zod_1.z.unknown()),
@@ -223,3 +204,6 @@ exports.ResolvedProxyConfigSchema = zod_1.z.object({
223
204
  }),
224
205
  metadata: exports.ProxyEntryMetadataSchema,
225
206
  });
207
+ exports.ResolvedProxyConfigSchema = exports.ResolvedProxyConfigBaseSchema.and(exports.ProtocolVariantSchema)
208
+ .and(exports.TransportVariantSchema)
209
+ .and(exports.SecurityVariantSchema);
@@ -170,6 +170,7 @@ export declare const RemnawaveWebhookNodeEvents: z.ZodObject<{
170
170
  consumptionMultiplier: z.ZodNumber;
171
171
  nodeConsumptionMultiplier: z.ZodNumber;
172
172
  tags: z.ZodArray<z.ZodString>;
173
+ integrationUuids: z.ZodArray<z.ZodUUID>;
173
174
  ips: z.ZodArray<z.ZodObject<{
174
175
  ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
175
176
  status: z.ZodEnum<{
@@ -340,6 +341,7 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
340
341
  consumptionMultiplier: z.ZodNumber;
341
342
  nodeConsumptionMultiplier: z.ZodNumber;
342
343
  tags: z.ZodArray<z.ZodString>;
344
+ integrationUuids: z.ZodArray<z.ZodUUID>;
343
345
  ips: z.ZodArray<z.ZodObject<{
344
346
  ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
345
347
  status: z.ZodEnum<{
@@ -657,6 +659,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
657
659
  consumptionMultiplier: z.ZodNumber;
658
660
  nodeConsumptionMultiplier: z.ZodNumber;
659
661
  tags: z.ZodArray<z.ZodString>;
662
+ integrationUuids: z.ZodArray<z.ZodUUID>;
660
663
  ips: z.ZodArray<z.ZodObject<{
661
664
  ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
662
665
  status: z.ZodEnum<{
@@ -823,6 +826,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
823
826
  consumptionMultiplier: z.ZodNumber;
824
827
  nodeConsumptionMultiplier: z.ZodNumber;
825
828
  tags: z.ZodArray<z.ZodString>;
829
+ integrationUuids: z.ZodArray<z.ZodUUID>;
826
830
  ips: z.ZodArray<z.ZodObject<{
827
831
  ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
828
832
  status: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.schema.d.ts","sourceRoot":"","sources":["../../../../models/webhook/webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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sB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEjF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAClF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,qCAAqC,CAC/C,CAAC;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,oCAAoC,CAC9C,CAAC"}
@@ -26,6 +26,7 @@ __exportStar(require("./internal-squads"), exports);
26
26
  __exportStar(require("./connections"), exports);
27
27
  __exportStar(require("./keygen"), exports);
28
28
  __exportStar(require("./metadata"), exports);
29
+ __exportStar(require("./node-integrations"), exports);
29
30
  __exportStar(require("./node-plugins"), exports);
30
31
  __exportStar(require("./nodes"), exports);
31
32
  __exportStar(require("./passkeys"), exports);
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NODE_INTEGRATIONS_ROUTES = exports.NODE_INTEGRATIONS_CONTROLLER = void 0;
4
+ exports.NODE_INTEGRATIONS_CONTROLLER = 'node-integrations';
5
+ exports.NODE_INTEGRATIONS_ROUTES = {
6
+ GET_ALL: '', // get
7
+ GET: (uuid) => `${uuid}`, // get
8
+ UPDATE: '', // patch
9
+ DELETE: (uuid) => `${uuid}`, // delete
10
+ CREATE: '', // post
11
+ };
@@ -37,6 +37,11 @@ exports.CONTROLLERS_INFO = {
37
37
  description: '',
38
38
  resource: 'node-plugins',
39
39
  },
40
+ NODE_INTEGRATIONS: {
41
+ tag: 'Node Integrations Controller',
42
+ description: 'Management of Node Integrations.',
43
+ resource: 'node-integrations',
44
+ },
40
45
  BANDWIDTH_STATS: {
41
46
  tag: 'Bandwidth Stats Controller',
42
47
  description: '',
@@ -301,6 +301,13 @@ exports.REST_API = {
301
301
  CLONE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.ACTIONS.CLONE}`,
302
302
  },
303
303
  },
304
+ NODE_INTEGRATIONS: {
305
+ GET: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODE_INTEGRATIONS_CONTROLLER}/${CONTROLLERS.NODE_INTEGRATIONS_ROUTES.GET(uuid)}`,
306
+ GET_ALL: `${exports.ROOT}/${CONTROLLERS.NODE_INTEGRATIONS_CONTROLLER}/${CONTROLLERS.NODE_INTEGRATIONS_ROUTES.GET_ALL}`,
307
+ UPDATE: `${exports.ROOT}/${CONTROLLERS.NODE_INTEGRATIONS_CONTROLLER}/${CONTROLLERS.NODE_INTEGRATIONS_ROUTES.UPDATE}`,
308
+ DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODE_INTEGRATIONS_CONTROLLER}/${CONTROLLERS.NODE_INTEGRATIONS_ROUTES.DELETE(uuid)}`,
309
+ CREATE: `${exports.ROOT}/${CONTROLLERS.NODE_INTEGRATIONS_CONTROLLER}/${CONTROLLERS.NODE_INTEGRATIONS_ROUTES.CREATE}`,
310
+ },
304
311
  NODE_PLUGINS: {
305
312
  GET: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.GET(uuid)}`,
306
313
  GET_ALL: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.GET_ALL}`,
@@ -26,6 +26,7 @@ __exportStar(require("./internal-squads"), exports);
26
26
  __exportStar(require("./connections"), exports);
27
27
  __exportStar(require("./keygen"), exports);
28
28
  __exportStar(require("./metadata"), exports);
29
+ __exportStar(require("./node-integrations"), exports);
29
30
  __exportStar(require("./node-plugins"), exports);
30
31
  __exportStar(require("./nodes"), exports);
31
32
  __exportStar(require("./passkeys"), exports);
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateNodeIntegrationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var CreateNodeIntegrationCommand;
9
+ (function (CreateNodeIntegrationCommand) {
10
+ CreateNodeIntegrationCommand.url = api_1.REST_API.NODE_INTEGRATIONS.CREATE;
11
+ CreateNodeIntegrationCommand.TSQ_url = CreateNodeIntegrationCommand.url;
12
+ CreateNodeIntegrationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_INTEGRATIONS_ROUTES.CREATE, 'post', 'Create Node Integration', { scope: 'create', kind: 'write' });
13
+ CreateNodeIntegrationCommand.RequestBodySchema = zod_1.z.object({
14
+ name: zod_1.z
15
+ .string()
16
+ .min(2, 'Name must be at least 2 characters')
17
+ .max(30, 'Name must be less than 30 characters'),
18
+ description: zod_1.z.nullish(zod_1.z.string().max(255, 'Description must be less than 255 characters')),
19
+ config: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
20
+ });
21
+ CreateNodeIntegrationCommand.ResponseSchema = zod_1.z.object({
22
+ response: models_1.NodeIntegrationSchema,
23
+ });
24
+ })(CreateNodeIntegrationCommand || (exports.CreateNodeIntegrationCommand = CreateNodeIntegrationCommand = {}));
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteNodeIntegrationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ var DeleteNodeIntegrationCommand;
8
+ (function (DeleteNodeIntegrationCommand) {
9
+ DeleteNodeIntegrationCommand.url = api_1.REST_API.NODE_INTEGRATIONS.DELETE;
10
+ DeleteNodeIntegrationCommand.TSQ_url = DeleteNodeIntegrationCommand.url(':uuid');
11
+ DeleteNodeIntegrationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_INTEGRATIONS_ROUTES.DELETE(':uuid'), 'delete', 'Delete Node Integration', { scope: 'delete', kind: 'write' });
12
+ DeleteNodeIntegrationCommand.RequestParamSchema = zod_1.z.object({
13
+ uuid: zod_1.z.uuid(),
14
+ });
15
+ })(DeleteNodeIntegrationCommand || (exports.DeleteNodeIntegrationCommand = DeleteNodeIntegrationCommand = {}));
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetNodeIntegrationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var GetNodeIntegrationCommand;
9
+ (function (GetNodeIntegrationCommand) {
10
+ GetNodeIntegrationCommand.url = api_1.REST_API.NODE_INTEGRATIONS.GET;
11
+ GetNodeIntegrationCommand.TSQ_url = GetNodeIntegrationCommand.url(':uuid');
12
+ GetNodeIntegrationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_INTEGRATIONS_ROUTES.GET(':uuid'), 'get', 'Get Node Integration by uuid', { scope: 'get', kind: 'read' });
13
+ GetNodeIntegrationCommand.RequestParamSchema = zod_1.z.object({
14
+ uuid: zod_1.z.uuid(),
15
+ });
16
+ GetNodeIntegrationCommand.ResponseSchema = zod_1.z.object({
17
+ response: models_1.NodeIntegrationSchema,
18
+ });
19
+ })(GetNodeIntegrationCommand || (exports.GetNodeIntegrationCommand = GetNodeIntegrationCommand = {}));
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetNodeIntegrationsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var GetNodeIntegrationsCommand;
9
+ (function (GetNodeIntegrationsCommand) {
10
+ GetNodeIntegrationsCommand.url = api_1.REST_API.NODE_INTEGRATIONS.GET_ALL;
11
+ GetNodeIntegrationsCommand.TSQ_url = GetNodeIntegrationsCommand.url;
12
+ GetNodeIntegrationsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_INTEGRATIONS_ROUTES.GET_ALL, 'get', 'Get all Node Integrations', { scope: 'list', kind: 'read' });
13
+ GetNodeIntegrationsCommand.ResponseSchema = zod_1.z.object({
14
+ response: zod_1.z.object({
15
+ total: zod_1.z.number(),
16
+ nodeIntegrations: zod_1.z.array(models_1.NodeIntegrationSchema),
17
+ }),
18
+ });
19
+ })(GetNodeIntegrationsCommand || (exports.GetNodeIntegrationsCommand = GetNodeIntegrationsCommand = {}));
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-node-integration.command"), exports);
18
+ __exportStar(require("./delete-node-integration.command"), exports);
19
+ __exportStar(require("./get-node-integration.command"), exports);
20
+ __exportStar(require("./get-node-integrations.command"), exports);
21
+ __exportStar(require("./update-node-integration.command"), exports);