@ampeco/public-api-mcp 3.257.2 → 3.258.1

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.
@@ -3,6 +3,13 @@ import { z } from "zod";
3
3
  // Auto-generated Zod schemas from OpenAPI specification
4
4
  // Do not edit manually - regenerate with build script
5
5
 
6
+ // POST /public-api/actions/admin/v1.0/{admin}/end-all-access
7
+
8
+ // POST /public-api/actions/admin/v1.0/{admin}/terminate-sessions
9
+ export const adminTerminateSessionsBody = z.object({
10
+ sessionIds: z.array(z.string().uuid()).min(1).max(100)
11
+ });
12
+
6
13
  // POST /public-api/actions/charge-point/v1.0/{chargePoint}/change-availability
7
14
  export const chargePointChangeAvailabilityBody = z.object({
8
15
  evseNetworkId: z.number().int().optional(),
@@ -424,7 +431,7 @@ export const locationCheckBookingAvailabilityBody = z.object({
424
431
 
425
432
  // POST /public-api/actions/notifications/v1.0/{notification}/resend
426
433
  export const notificationsResendFailedBody = z.object({
427
- notifications: z.array(z.enum(["AuthorizationNotification", "authorization.changed", "BootNotification", "ChargePointChangedNotification", "chargePoint.changed", "evse.changed", "ChargePointSyncConfigurationNotification", "CircuitConsumptionNotification", "circuit.changed", "DiagnosticsStatusNotification", "FirmwareStatusNotification", "HardwareStatusNotification", "LocationChangedNotification", "NetworkStatusNotification", "SecurityEventNotification", "SessionMeterValuesNotification", "SessionStartStopNotification", "session.start.stop.notification", "SessionUpdateNotification", "session.chargingPeriod.changed", "UserChangedNotification", "user.UserGroup.changed", "SubOperatorChangedNotification", "TariffChangedNotification", "tariffGroup.changed", "user.subscriptionChanged", "user.subscription.changed", "ReservationChangedNotification", "PaymentMethodChangedNotification", "PartnerInviteChangedNotification", "reservation.changed", "user.paymentMethod.changed", "userBalance.changed", "partnerInvite.changed", "partnerInviteCorporateBillingPolicy.changed", "roamingPlatform.changed", "parkingSpace.occupancyStatus.changed", "partner.changed", "transaction.changed", "settlementReport.created", "idTag.changed", "issue.changed", "chargePoint.dataTransferReceived", "subscriptionPlan.changed", "user.invoiceDetails.changed", "cdr.received", "chargingProfile.applied", "installerJob.changed", "corporateBilling.limitReached"])),
434
+ notifications: z.array(z.enum(["AuthorizationNotification", "authorization.changed", "BootNotification", "ChargePointChangedNotification", "chargePoint.changed", "evse.changed", "ChargePointSyncConfigurationNotification", "CircuitConsumptionNotification", "circuit.changed", "CoOperatorInsightChangedNotification", "DiagnosticsStatusNotification", "FirmwareStatusNotification", "HardwareStatusNotification", "LocationChangedNotification", "NetworkStatusNotification", "SecurityEventNotification", "SessionMeterValuesNotification", "SessionStartStopNotification", "session.start.stop.notification", "SessionUpdateNotification", "session.chargingPeriod.changed", "UserChangedNotification", "user.UserGroup.changed", "SubOperatorChangedNotification", "TariffChangedNotification", "tariffGroup.changed", "user.subscriptionChanged", "user.subscription.changed", "ReservationChangedNotification", "PaymentMethodChangedNotification", "PartnerInviteChangedNotification", "reservation.changed", "user.paymentMethod.changed", "userBalance.changed", "partnerInvite.changed", "partnerInviteCorporateBillingPolicy.changed", "roamingPlatform.changed", "parkingSpace.occupancyStatus.changed", "partner.changed", "transaction.changed", "settlementReport.created", "idTag.changed", "issue.changed", "chargePoint.dataTransferReceived", "subscriptionPlan.changed", "user.invoiceDetails.changed", "cdr.received", "chargingProfile.applied", "installerJob.changed", "corporateBilling.limitReached", "SignedFirmwareStatusNotification"])),
428
435
  startTime: z.string().optional(),
429
436
  endTime: z.string().optional()
430
437
  });
@@ -434,6 +441,10 @@ export const parkingSpaceUpdateOccupancyStatusBody = z.object({
434
441
  status: z.enum(["available", "occupied", "blocked"])
435
442
  });
436
443
 
444
+ // POST /public-api/actions/partner-discount-change/v1.0/{discountChange}/cancel
445
+
446
+ // POST /public-api/actions/partner-discount-change/v1.0/{discountChange}/end-now
447
+
437
448
  // POST /public-api/actions/partner-invite-corporate-billing-policy/v1.0/{corporateBillingPolicy}/disable
438
449
 
439
450
  // POST /public-api/actions/partner-invite-corporate-billing-policy/v1.0/{corporateBillingPolicy}/enable
@@ -452,6 +463,11 @@ export const partnerInvoiceUpdateExternalIdBody = z.object({
452
463
  externalId: z.string().max(255)
453
464
  });
454
465
 
466
+ // POST /public-api/actions/partner-revenue/v1.0/{partnerRevenue}/set-custom-fields
467
+ export const partnerRevenueSetCustomFieldsBody = z.object({
468
+ customFields: z.record(z.unknown())
469
+ }).strict();
470
+
455
471
  // POST /public-api/actions/partner-settlement-report/v1.0/{partnerSettlementReport}/issue-partner-invoice
456
472
 
457
473
  // POST /public-api/actions/partner-settlement-report/v1.0/{partnerSettlementReport}/set-custom-fields
@@ -811,9 +827,11 @@ export const notificationsUpdateDeprecatedBody = z.object({
811
827
 
812
828
  // POST /public-api/notifications/v2.0
813
829
  export const notificationsSubscribeBody = z.object({
830
+ name: z.string().max(255).optional(),
831
+ description: z.string().max(1000).optional(),
814
832
  id: z.number(),
815
833
  via: z.enum(["webhook", "kafka"]),
816
- notifications: z.array(z.enum(["AuthorizationNotification", "authorization.changed", "BootNotification", "ChargePointChangedNotification", "chargePoint.changed", "evse.changed", "ChargePointSyncConfigurationNotification", "CircuitConsumptionNotification", "circuit.changed", "DiagnosticsStatusNotification", "FirmwareStatusNotification", "HardwareStatusNotification", "LocationChangedNotification", "NetworkStatusNotification", "SecurityEventNotification", "SessionMeterValuesNotification", "SessionStartStopNotification", "session.start.stop.notification", "SessionUpdateNotification", "session.chargingPeriod.changed", "UserChangedNotification", "user.UserGroup.changed", "SubOperatorChangedNotification", "TariffChangedNotification", "tariffGroup.changed", "user.subscriptionChanged", "user.subscription.changed", "ReservationChangedNotification", "PaymentMethodChangedNotification", "PartnerInviteChangedNotification", "reservation.changed", "user.paymentMethod.changed", "userBalance.changed", "partnerInvite.changed", "partnerInviteCorporateBillingPolicy.changed", "roamingPlatform.changed", "parkingSpace.occupancyStatus.changed", "partner.changed", "transaction.changed", "settlementReport.created", "idTag.changed", "issue.changed", "chargePoint.dataTransferReceived", "subscriptionPlan.changed", "user.invoiceDetails.changed", "cdr.received", "chargingProfile.applied", "installerJob.changed", "corporateBilling.limitReached"])),
834
+ notifications: z.array(z.enum(["AuthorizationNotification", "authorization.changed", "BootNotification", "ChargePointChangedNotification", "chargePoint.changed", "evse.changed", "ChargePointSyncConfigurationNotification", "CircuitConsumptionNotification", "circuit.changed", "CoOperatorInsightChangedNotification", "DiagnosticsStatusNotification", "FirmwareStatusNotification", "HardwareStatusNotification", "LocationChangedNotification", "NetworkStatusNotification", "SecurityEventNotification", "SessionMeterValuesNotification", "SessionStartStopNotification", "session.start.stop.notification", "SessionUpdateNotification", "session.chargingPeriod.changed", "UserChangedNotification", "user.UserGroup.changed", "SubOperatorChangedNotification", "TariffChangedNotification", "tariffGroup.changed", "user.subscriptionChanged", "user.subscription.changed", "ReservationChangedNotification", "PaymentMethodChangedNotification", "PartnerInviteChangedNotification", "reservation.changed", "user.paymentMethod.changed", "userBalance.changed", "partnerInvite.changed", "partnerInviteCorporateBillingPolicy.changed", "roamingPlatform.changed", "parkingSpace.occupancyStatus.changed", "partner.changed", "transaction.changed", "settlementReport.created", "idTag.changed", "issue.changed", "chargePoint.dataTransferReceived", "subscriptionPlan.changed", "user.invoiceDetails.changed", "cdr.received", "chargingProfile.applied", "installerJob.changed", "corporateBilling.limitReached", "SignedFirmwareStatusNotification"])),
817
835
  includeTimestampInSignature: z.boolean().optional(),
818
836
  skipRoamingInfrastructure: z.boolean().optional(),
819
837
  suppressSelfNotifications: z.boolean().optional(),
@@ -835,9 +853,11 @@ export const notificationsSubscribeBody = z.object({
835
853
 
836
854
  // PUT /public-api/notifications/v2.0/{notification}
837
855
  export const notificationsCreateBody = z.object({
856
+ name: z.string().max(255).optional(),
857
+ description: z.string().max(1000).optional(),
838
858
  id: z.number(),
839
859
  via: z.enum(["webhook", "kafka"]),
840
- notifications: z.array(z.enum(["AuthorizationNotification", "authorization.changed", "BootNotification", "ChargePointChangedNotification", "chargePoint.changed", "evse.changed", "ChargePointSyncConfigurationNotification", "CircuitConsumptionNotification", "circuit.changed", "DiagnosticsStatusNotification", "FirmwareStatusNotification", "HardwareStatusNotification", "LocationChangedNotification", "NetworkStatusNotification", "SecurityEventNotification", "SessionMeterValuesNotification", "SessionStartStopNotification", "session.start.stop.notification", "SessionUpdateNotification", "session.chargingPeriod.changed", "UserChangedNotification", "user.UserGroup.changed", "SubOperatorChangedNotification", "TariffChangedNotification", "tariffGroup.changed", "user.subscriptionChanged", "user.subscription.changed", "ReservationChangedNotification", "PaymentMethodChangedNotification", "PartnerInviteChangedNotification", "reservation.changed", "user.paymentMethod.changed", "userBalance.changed", "partnerInvite.changed", "partnerInviteCorporateBillingPolicy.changed", "roamingPlatform.changed", "parkingSpace.occupancyStatus.changed", "partner.changed", "transaction.changed", "settlementReport.created", "idTag.changed", "issue.changed", "chargePoint.dataTransferReceived", "subscriptionPlan.changed", "user.invoiceDetails.changed", "cdr.received", "chargingProfile.applied", "installerJob.changed", "corporateBilling.limitReached"])),
860
+ notifications: z.array(z.enum(["AuthorizationNotification", "authorization.changed", "BootNotification", "ChargePointChangedNotification", "chargePoint.changed", "evse.changed", "ChargePointSyncConfigurationNotification", "CircuitConsumptionNotification", "circuit.changed", "CoOperatorInsightChangedNotification", "DiagnosticsStatusNotification", "FirmwareStatusNotification", "HardwareStatusNotification", "LocationChangedNotification", "NetworkStatusNotification", "SecurityEventNotification", "SessionMeterValuesNotification", "SessionStartStopNotification", "session.start.stop.notification", "SessionUpdateNotification", "session.chargingPeriod.changed", "UserChangedNotification", "user.UserGroup.changed", "SubOperatorChangedNotification", "TariffChangedNotification", "tariffGroup.changed", "user.subscriptionChanged", "user.subscription.changed", "ReservationChangedNotification", "PaymentMethodChangedNotification", "PartnerInviteChangedNotification", "reservation.changed", "user.paymentMethod.changed", "userBalance.changed", "partnerInvite.changed", "partnerInviteCorporateBillingPolicy.changed", "roamingPlatform.changed", "parkingSpace.occupancyStatus.changed", "partner.changed", "transaction.changed", "settlementReport.created", "idTag.changed", "issue.changed", "chargePoint.dataTransferReceived", "subscriptionPlan.changed", "user.invoiceDetails.changed", "cdr.received", "chargingProfile.applied", "installerJob.changed", "corporateBilling.limitReached", "SignedFirmwareStatusNotification"])),
841
861
  includeTimestampInSignature: z.boolean().optional(),
842
862
  skipRoamingInfrastructure: z.boolean().optional(),
843
863
  suppressSelfNotifications: z.boolean().optional(),
@@ -877,6 +897,8 @@ export const oauthTokenExchangeBody = z.object({
877
897
 
878
898
  // GET /public-api/resources/admins/v1.0/{admin}/permissions
879
899
 
900
+ // GET /public-api/resources/admins/v1.0/{admin}/sessions
901
+
880
902
  // GET /public-api/resources/authorizations/v1.0/{authorization}
881
903
 
882
904
  // GET /public-api/resources/authorizations/v2.0
@@ -1280,15 +1302,6 @@ export const chargePointEvseCreateBody = z.object({
1280
1302
  allowsReservation: z.boolean().optional(),
1281
1303
  bookingEnabled: z.boolean().optional(),
1282
1304
  monitoringEnabled: z.boolean().optional(),
1283
- powerOptions: z.object({
1284
- maxOutputVoltage: z.number().int().min(1).max(1000).optional(),
1285
- maxPower: z.number().int().optional(),
1286
- maxVoltage: z.enum(["230", "380", "400", "480", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
1287
- maxAmperage: z.number().optional(),
1288
- phases: z.enum(["single_phase", "three_phase", "split_phase"]).optional(),
1289
- phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]).optional(),
1290
- connectedPhase: z.enum(["L1", "L2", "L3", "L1_L2", "L1_L3", "L2_L3"]).optional()
1291
- }).optional(),
1292
1305
  externalId: z.string().optional(),
1293
1306
  capabilityOverrides: z.object({
1294
1307
  rfidReader: z.enum(["auto", "force_enable", "force_disable"]).optional(),
@@ -1304,6 +1317,16 @@ export const chargePointEvseCreateBody = z.object({
1304
1317
  chargingPreferencesCapable: z.enum(["auto", "force_enable", "force_disable"]).optional(),
1305
1318
  startSessionConnectorRequired: z.enum(["auto", "force_enable", "force_disable"]).optional(),
1306
1319
  tokenGroupCapable: z.enum(["auto", "force_enable", "force_disable"]).optional()
1320
+ }).optional(),
1321
+ powerOptions: z.object({
1322
+ maxPower: z.number().int().optional(),
1323
+ maxVoltage: z.enum(["230", "380", "400", "480", "600", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
1324
+ maxAmperage: z.number().optional(),
1325
+ phases: z.enum(["single_phase", "three_phase", "split_phase"]).optional(),
1326
+ phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]).optional(),
1327
+ connectedPhase: z.enum(["L1", "L2", "L3", "L1_L2", "L1_L3", "L2_L3"]).optional(),
1328
+ maxOutputVoltage: z.number().int().min(1).max(1000).optional(),
1329
+ efficiencyPercent: z.number().min(90).max(100).optional()
1307
1330
  }).optional()
1308
1331
  });
1309
1332
 
@@ -1323,15 +1346,6 @@ export const chargePointEvseUpdateBody = z.object({
1323
1346
  allowsReservation: z.boolean().optional(),
1324
1347
  bookingEnabled: z.boolean().optional(),
1325
1348
  monitoringEnabled: z.boolean().optional(),
1326
- powerOptions: z.object({
1327
- maxOutputVoltage: z.number().int().min(1).max(1000).optional(),
1328
- maxPower: z.number().int().optional(),
1329
- maxVoltage: z.enum(["230", "380", "400", "480", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
1330
- maxAmperage: z.number().optional(),
1331
- phases: z.enum(["single_phase", "three_phase", "split_phase"]).optional(),
1332
- phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]).optional(),
1333
- connectedPhase: z.enum(["L1", "L2", "L3", "L1_L2", "L1_L3", "L2_L3"]).optional()
1334
- }).optional(),
1335
1349
  externalId: z.string().optional(),
1336
1350
  capabilityOverrides: z.object({
1337
1351
  rfidReader: z.enum(["auto", "force_enable", "force_disable"]).optional(),
@@ -1347,6 +1361,16 @@ export const chargePointEvseUpdateBody = z.object({
1347
1361
  chargingPreferencesCapable: z.enum(["auto", "force_enable", "force_disable"]).optional(),
1348
1362
  startSessionConnectorRequired: z.enum(["auto", "force_enable", "force_disable"]).optional(),
1349
1363
  tokenGroupCapable: z.enum(["auto", "force_enable", "force_disable"]).optional()
1364
+ }).optional(),
1365
+ powerOptions: z.object({
1366
+ maxPower: z.number().int().optional(),
1367
+ maxVoltage: z.enum(["230", "380", "400", "480", "600", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
1368
+ maxAmperage: z.number().optional(),
1369
+ phases: z.enum(["single_phase", "three_phase", "split_phase"]).optional(),
1370
+ phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]).optional(),
1371
+ connectedPhase: z.enum(["L1", "L2", "L3", "L1_L2", "L1_L3", "L2_L3"]).optional(),
1372
+ maxOutputVoltage: z.number().int().min(1).max(1000).optional(),
1373
+ efficiencyPercent: z.number().optional()
1350
1374
  }).optional()
1351
1375
  });
1352
1376
 
@@ -1356,7 +1380,8 @@ export const chargePointEvseUpdateBody = z.object({
1356
1380
  export const chargePointEvseConnectorCreateBody = z.object({
1357
1381
  type: z.enum(["type1", "type2", "type3", "chademo", "ccs1", "ccs2", "schuko", "nacs", "cee16", "cee32", "j1772", "inductive", "nema-5-20", "type-e-french", "type-g-british", "type-j-swiss", "avcon", "gb-t-ac", "gb-t-dc", "chaoji", "nema-6-30", "nema-6-50", "nema-10-30", "nema-10-50", "nema-14-30", "nema-14-50", "mcs", "unknown"]),
1358
1382
  format: z.enum(["socket", "cable"]).optional(),
1359
- status: z.enum(["enabled", "disabled"]).optional()
1383
+ status: z.enum(["enabled", "disabled"]).optional(),
1384
+ externalId: z.string().max(255).optional()
1360
1385
  });
1361
1386
 
1362
1387
  // GET /public-api/resources/charge-points/v2.0/{chargePoint}/evses/{evse}/connectors/{connector}
@@ -1367,7 +1392,8 @@ export const chargePointEvseConnectorCreateBody = z.object({
1367
1392
  export const chargePointEvseConnectorUpdateBody = z.object({
1368
1393
  type: z.enum(["type1", "type2", "type3", "chademo", "ccs1", "ccs2", "schuko", "nacs", "cee16", "cee32", "j1772", "inductive", "nema-5-20", "type-e-french", "type-g-british", "type-j-swiss", "avcon", "gb-t-ac", "gb-t-dc", "chaoji", "nema-6-30", "nema-6-50", "nema-10-30", "nema-10-50", "nema-14-30", "nema-14-50", "mcs", "unknown"]).optional(),
1369
1394
  format: z.enum(["socket", "cable"]).optional(),
1370
- status: z.enum(["enabled", "disabled"]).optional()
1395
+ status: z.enum(["enabled", "disabled"]).optional(),
1396
+ externalId: z.string().max(255).optional()
1371
1397
  });
1372
1398
 
1373
1399
  // GET /public-api/resources/charge-points/v2.0/{chargePoint}/hardware-status-logs
@@ -1530,7 +1556,7 @@ export const chargePointSmartChargingUpdateBody = z.union([z.object({
1530
1556
  preconditioningTime: z.number().int().optional(),
1531
1557
  minCurrent: z.number().optional(),
1532
1558
  enableKeepAwake: z.boolean().optional(),
1533
- maxVoltage: z.enum(["230", "380", "400", "480", "120", "208", "240", "110-130", "220-240", "277"]),
1559
+ maxVoltage: z.enum(["230", "380", "400", "480", "600", "120", "208", "240", "110-130", "220-240", "277"]),
1534
1560
  electricalConfiguration: z.enum(["star", "delta"]).optional(),
1535
1561
  phases: z.enum(["single_phase", "three_phase", "split_phase"]),
1536
1562
  phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]),
@@ -1548,7 +1574,7 @@ export const chargePointSmartChargingUpdateBody = z.union([z.object({
1548
1574
  circuitId: z.number().int().optional(),
1549
1575
  minCurrent: z.number().optional(),
1550
1576
  enableKeepAwake: z.boolean().optional(),
1551
- maxVoltage: z.enum(["230", "380", "400", "480", "120", "208", "240", "110-130", "220-240", "277"]),
1577
+ maxVoltage: z.enum(["230", "380", "400", "480", "600", "120", "208", "240", "110-130", "220-240", "277"]),
1552
1578
  electricalConfiguration: z.enum(["star", "delta"]).optional(),
1553
1579
  phases: z.enum(["single_phase", "three_phase", "split_phase"]),
1554
1580
  phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]),
@@ -1566,7 +1592,7 @@ export const chargePointSmartChargingUpdateBody = z.union([z.object({
1566
1592
  circuitId: z.number().int().optional(),
1567
1593
  minCurrent: z.number(),
1568
1594
  enableKeepAwake: z.boolean(),
1569
- maxVoltage: z.enum(["230", "380", "400", "480", "120", "208", "240", "110-130", "220-240", "277"]),
1595
+ maxVoltage: z.enum(["230", "380", "400", "480", "600", "120", "208", "240", "110-130", "220-240", "277"]),
1570
1596
  electricalConfiguration: z.enum(["star", "delta"]).optional(),
1571
1597
  phases: z.enum(["single_phase", "three_phase", "split_phase"]),
1572
1598
  phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]),
@@ -1647,7 +1673,7 @@ export const circuitCreateBody = z.object({
1647
1673
  phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]).optional(),
1648
1674
  connectedPhase: z.enum(["L1", "L2", "L3", "L1_L2", "L1_L3", "L2_L3"]).optional(),
1649
1675
  electricalConfiguration: z.enum(["star", "delta"]).optional(),
1650
- maxVoltage: z.enum(["230", "380", "400", "480", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
1676
+ maxVoltage: z.enum(["230", "380", "400", "480", "600", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
1651
1677
  maxCurrent: z.number(),
1652
1678
  minChargePointCurrent: z.number().optional(),
1653
1679
  applyMinimumCurrentOnSessionStart: z.boolean().optional(),
@@ -1679,7 +1705,7 @@ export const circuitUpdateBody = z.object({
1679
1705
  phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]).optional(),
1680
1706
  connectedPhase: z.enum(["L1", "L2", "L3", "L1_L2", "L1_L3", "L2_L3"]).optional(),
1681
1707
  electricalConfiguration: z.enum(["star", "delta"]).optional(),
1682
- maxVoltage: z.enum(["230", "380", "400", "480", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
1708
+ maxVoltage: z.enum(["230", "380", "400", "480", "600", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
1683
1709
  maxCurrent: z.number().optional(),
1684
1710
  minChargePointCurrent: z.number().optional(),
1685
1711
  applyMinimumCurrentOnSessionStart: z.boolean().optional(),
@@ -1860,6 +1886,16 @@ export const contactDetailsUpdateBody = z.object({
1860
1886
 
1861
1887
  // DELETE /public-api/resources/contact-details/v2.0
1862
1888
 
1889
+ // GET /public-api/resources/cooperator-insights/v1.0
1890
+
1891
+ // POST /public-api/resources/cooperator-insights/v1.0
1892
+ export const cooperatorInsightCreateBody = z.object({
1893
+ message: z.string().min(1).max(10000),
1894
+ context: z.record(z.union([z.string().max(1000), z.number(), z.boolean()])).optional()
1895
+ });
1896
+
1897
+ // GET /public-api/resources/cooperator-insights/v1.0/{insight}
1898
+
1863
1899
  // GET /public-api/resources/cp-models/v1.0
1864
1900
 
1865
1901
  // POST /public-api/resources/cp-models/v1.0
@@ -2332,7 +2368,7 @@ export const evseUpdateDeprecatedBody = z.object({
2332
2368
  tariffGroupId: z.number().int().optional(),
2333
2369
  allowsReservation: z.boolean(),
2334
2370
  maxPowerKw: z.number().optional(),
2335
- maxVoltage: z.intersection(z.enum(["230", "380", "400", "480", "120", "208", "240", "110-130", "220-240", "277"]), z.unknown()),
2371
+ maxVoltage: z.intersection(z.enum(["230", "380", "400", "480", "600", "120", "208", "240", "110-130", "220-240", "277"]), z.unknown()),
2336
2372
  maxAmperage: z.number().optional(),
2337
2373
  phases: z.enum(["single_phase", "three_phase"]),
2338
2374
  phaseRotation: z.enum(["rst", "rts", "srt", "str", "trs", "tsr"]).optional(),
@@ -2390,15 +2426,6 @@ export const evseCreateBody = z.object({
2390
2426
  allowsReservation: z.boolean().optional(),
2391
2427
  bookingEnabled: z.boolean().optional(),
2392
2428
  monitoringEnabled: z.boolean().optional(),
2393
- powerOptions: z.object({
2394
- maxOutputVoltage: z.number().int().min(1).max(1000).optional(),
2395
- maxPower: z.number().int().optional(),
2396
- maxVoltage: z.enum(["230", "380", "400", "480", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
2397
- maxAmperage: z.number().optional(),
2398
- phases: z.enum(["single_phase", "three_phase", "split_phase"]).optional(),
2399
- phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]).optional(),
2400
- connectedPhase: z.enum(["L1", "L2", "L3", "L1_L2", "L1_L3", "L2_L3"]).optional()
2401
- }).optional(),
2402
2429
  externalId: z.string().optional(),
2403
2430
  capabilityOverrides: z.object({
2404
2431
  rfidReader: z.enum(["auto", "force_enable", "force_disable"]).optional(),
@@ -2414,6 +2441,16 @@ export const evseCreateBody = z.object({
2414
2441
  chargingPreferencesCapable: z.enum(["auto", "force_enable", "force_disable"]).optional(),
2415
2442
  startSessionConnectorRequired: z.enum(["auto", "force_enable", "force_disable"]).optional(),
2416
2443
  tokenGroupCapable: z.enum(["auto", "force_enable", "force_disable"]).optional()
2444
+ }).optional(),
2445
+ powerOptions: z.object({
2446
+ maxPower: z.number().int().optional(),
2447
+ maxVoltage: z.enum(["230", "380", "400", "480", "600", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
2448
+ maxAmperage: z.number().optional(),
2449
+ phases: z.enum(["single_phase", "three_phase", "split_phase"]).optional(),
2450
+ phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]).optional(),
2451
+ connectedPhase: z.enum(["L1", "L2", "L3", "L1_L2", "L1_L3", "L2_L3"]).optional(),
2452
+ maxOutputVoltage: z.number().int().min(1).max(1000).optional(),
2453
+ efficiencyPercent: z.number().min(90).max(100).optional()
2417
2454
  }).optional()
2418
2455
  });
2419
2456
 
@@ -2433,15 +2470,6 @@ export const evseUpdateBody = z.object({
2433
2470
  allowsReservation: z.boolean().optional(),
2434
2471
  bookingEnabled: z.boolean().optional(),
2435
2472
  monitoringEnabled: z.boolean().optional(),
2436
- powerOptions: z.object({
2437
- maxOutputVoltage: z.number().int().min(1).max(1000).optional(),
2438
- maxPower: z.number().int().optional(),
2439
- maxVoltage: z.enum(["230", "380", "400", "480", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
2440
- maxAmperage: z.number().optional(),
2441
- phases: z.enum(["single_phase", "three_phase", "split_phase"]).optional(),
2442
- phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]).optional(),
2443
- connectedPhase: z.enum(["L1", "L2", "L3", "L1_L2", "L1_L3", "L2_L3"]).optional()
2444
- }).optional(),
2445
2473
  externalId: z.string().optional(),
2446
2474
  capabilityOverrides: z.object({
2447
2475
  rfidReader: z.enum(["auto", "force_enable", "force_disable"]).optional(),
@@ -2457,6 +2485,16 @@ export const evseUpdateBody = z.object({
2457
2485
  chargingPreferencesCapable: z.enum(["auto", "force_enable", "force_disable"]).optional(),
2458
2486
  startSessionConnectorRequired: z.enum(["auto", "force_enable", "force_disable"]).optional(),
2459
2487
  tokenGroupCapable: z.enum(["auto", "force_enable", "force_disable"]).optional()
2488
+ }).optional(),
2489
+ powerOptions: z.object({
2490
+ maxPower: z.number().int().optional(),
2491
+ maxVoltage: z.enum(["230", "380", "400", "480", "600", "120", "208", "240", "110-130", "220-240", "277"]).optional(),
2492
+ maxAmperage: z.number().optional(),
2493
+ phases: z.enum(["single_phase", "three_phase", "split_phase"]).optional(),
2494
+ phaseRotation: z.enum(["RST", "RTS", "SRT", "STR", "TRS", "TSR"]).optional(),
2495
+ connectedPhase: z.enum(["L1", "L2", "L3", "L1_L2", "L1_L3", "L2_L3"]).optional(),
2496
+ maxOutputVoltage: z.number().int().min(1).max(1000).optional(),
2497
+ efficiencyPercent: z.number().optional()
2460
2498
  }).optional()
2461
2499
  });
2462
2500
 
@@ -4232,6 +4270,28 @@ export const partnerAdminUpdateBody = z.object({
4232
4270
  locationIds: z.array(z.number().int()).optional()
4233
4271
  });
4234
4272
 
4273
+ // GET /public-api/resources/partners/v2.0/{partner}/discount-changes
4274
+
4275
+ // POST /public-api/resources/partners/v2.0/{partner}/discount-changes
4276
+ export const partnerDiscountChangeCreateBody = z.object({
4277
+ discount: z.number().min(0).max(100),
4278
+ startsAt: z.string().datetime(),
4279
+ endsAt: z.string().datetime().optional(),
4280
+ revertDiscount: z.number().min(0).max(100).optional(),
4281
+ note: z.string().max(16000).optional()
4282
+ });
4283
+
4284
+ // GET /public-api/resources/partners/v2.0/{partner}/discount-changes/{discountChange}
4285
+
4286
+ // PATCH /public-api/resources/partners/v2.0/{partner}/discount-changes/{discountChange}
4287
+ export const partnerDiscountChangeUpdateBody = z.object({
4288
+ discount: z.number().min(0).max(100).optional(),
4289
+ startsAt: z.string().datetime().optional(),
4290
+ endsAt: z.string().datetime().optional(),
4291
+ revertDiscount: z.number().min(0).max(100).optional(),
4292
+ note: z.string().max(16000).optional()
4293
+ });
4294
+
4235
4295
  // GET /public-api/resources/partners/v2.0/{partner}/notes
4236
4296
 
4237
4297
  // POST /public-api/resources/partners/v2.0/{partner}/notes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampeco/public-api-mcp",
3
- "version": "3.257.2",
3
+ "version": "3.258.1",
4
4
  "description": "MCP server that dynamically exposes the AMPECO.CHARGE Public API defined by an OpenAPI 3 specification",
5
5
  "type": "module",
6
6
  "main": "dist/cli/index.js",