@ampeco/public-api-mcp 3.248.1 → 3.250.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.
@@ -45,7 +45,7 @@ export const chargePointGetCompositeScheduleBody = z.object({
45
45
 
46
46
  // POST /public-api/actions/charge-point/v1.0/{chargePoint}/get-diagnostics
47
47
  export const chargePointGetDiagnosticsBody = z.object({
48
- location: z.string(),
48
+ location: z.string().optional(),
49
49
  start: z.string().datetime().optional(),
50
50
  stop: z.string().datetime().optional()
51
51
  });
@@ -3340,6 +3340,36 @@ export const partnerContractPatchBody = z.object({
3340
3340
  }).optional()
3341
3341
  });
3342
3342
 
3343
+ // GET /public-api/resources/partner-contracts/v1.0/{partnerContract}/settlement-overrides
3344
+
3345
+ // POST /public-api/resources/partner-contracts/v1.0/{partnerContract}/settlement-overrides
3346
+ export const partnerContractSettlementOverrideCreateBody = z.object({
3347
+ name: z.string().max(255),
3348
+ priority: z.number().int().min(1).max(4294967295),
3349
+ restriction: z.object({
3350
+ type: z.enum(["users_of_the_partner", "user_groups", "ad_hoc_users", "users_of_specific_partners"]),
3351
+ targetIds: z.array(z.number().int()).optional()
3352
+ }),
3353
+ acPercent: z.number().min(0).max(100).optional(),
3354
+ dcPercent: z.number().min(0).max(100).optional()
3355
+ });
3356
+
3357
+ // GET /public-api/resources/partner-contracts/v1.0/{partnerContract}/settlement-overrides/{settlementOverride}
3358
+
3359
+ // DELETE /public-api/resources/partner-contracts/v1.0/{partnerContract}/settlement-overrides/{settlementOverride}
3360
+
3361
+ // PATCH /public-api/resources/partner-contracts/v1.0/{partnerContract}/settlement-overrides/{settlementOverride}
3362
+ export const partnerContractSettlementOverrideUpdateBody = z.object({
3363
+ name: z.string().max(255).optional(),
3364
+ priority: z.number().int().min(1).max(4294967295).optional(),
3365
+ restriction: z.object({
3366
+ type: z.enum(["users_of_the_partner", "user_groups", "ad_hoc_users", "users_of_specific_partners"]),
3367
+ targetIds: z.array(z.number().int()).optional()
3368
+ }).optional(),
3369
+ acPercent: z.number().min(0).max(100).optional(),
3370
+ dcPercent: z.number().min(0).max(100).optional()
3371
+ });
3372
+
3343
3373
  // GET /public-api/resources/partner-expenses/v1.0
3344
3374
 
3345
3375
  // GET /public-api/resources/partner-expenses/v1.1
@@ -3717,7 +3747,7 @@ export const partnerInviteCreateV2_0Body = z.object({
3717
3747
  partnerId: z.number().int(),
3718
3748
  sendViaEmail: z.boolean().optional(),
3719
3749
  email: z.string().email().optional(),
3720
- language: z.enum(["en", "bg", "mk", "el", "zh-CN", "zh-HK", "zh-TW", "pt", "sl", "hr", "it", "de", "hu", "fi", "is", "sv-SE", "da-DK", "nb-NO", "tr-TR", "es-ES", "ar", "ary", "he", "ta", "ms", "cy", "sr", "fr", "fr-MA", "ro", "lt", "uk", "ru", "nl", "ca-ES", "id", "ar-EG", "pl", "lo", "th", "sq-XK", "ga-IE", "bs", "ja", "ko", "cs", "lv", "et", "az", "ka", "af", "hi", "de-CH", "fr-CH", "it-CH", "en-GB"]).optional(),
3750
+ language: z.enum(["en", "bg", "mk", "el", "zh-CN", "zh-HK", "zh-TW", "pt", "sl", "hr", "it", "de", "hu", "fi", "is", "sv-SE", "da-DK", "nb-NO", "tr-TR", "es-ES", "ar", "ary", "he", "ta", "ms", "cy", "sr", "fr", "fr-MA", "ro", "lt", "uk", "ru", "nl", "ca-ES", "id", "ar-EG", "pl", "lo", "th", "sq-XK", "ga-IE", "bs", "ja", "ko-KR", "cs", "lv", "et", "az", "ka", "af", "hi", "de-CH", "fr-CH", "it-CH", "en-GB"]).optional(),
3721
3751
  accessPolicyId: z.number().int().optional(),
3722
3752
  corporateBillingPolicyId: z.number().int().optional(),
3723
3753
  reimbursement: z.object({
@@ -5508,14 +5538,15 @@ export const subscriptionPlanUpdateBody = z.object({
5508
5538
  // POST /public-api/resources/tariff-groups/v1.0
5509
5539
  export const tariffGroupCreateBody = z.object({
5510
5540
  operatorId: z.number().int().optional(),
5541
+ display: z.object({
5542
+ defaultPriceInformation: z.string().max(150).optional(),
5543
+ defaultPriceInformationOffline: z.string().max(150).optional(),
5544
+ totalCostFallbackMessage: z.string().max(150).optional()
5545
+ }).optional(),
5511
5546
  name: z.string(),
5512
5547
  tariffIds: z.array(z.number().int()).optional(),
5513
5548
  partnerId: z.number().int().optional(),
5514
5549
  offlineTariffId: z.number().int().optional(),
5515
- display: z.object({
5516
- defaultPriceInformation: z.string().max(150).optional(),
5517
- defaultPriceInformationOffline: z.string().max(150).optional()
5518
- }).optional(),
5519
5550
  lastUpdatedAt: z.string().datetime().optional()
5520
5551
  });
5521
5552
 
@@ -5523,14 +5554,15 @@ export const tariffGroupCreateBody = z.object({
5523
5554
 
5524
5555
  // PUT /public-api/resources/tariff-groups/v1.0/{tariffGroup}
5525
5556
  export const tariffGroupUpdateBody = z.object({
5557
+ display: z.object({
5558
+ defaultPriceInformation: z.string().max(150).optional(),
5559
+ defaultPriceInformationOffline: z.string().max(150).optional(),
5560
+ totalCostFallbackMessage: z.string().max(150).optional()
5561
+ }).optional(),
5526
5562
  name: z.string(),
5527
5563
  tariffIds: z.array(z.number().int()).optional(),
5528
5564
  partnerId: z.number().int().optional(),
5529
5565
  offlineTariffId: z.number().int().optional(),
5530
- display: z.object({
5531
- defaultPriceInformation: z.string().max(150).optional(),
5532
- defaultPriceInformationOffline: z.string().max(150).optional()
5533
- }).optional(),
5534
5566
  lastUpdatedAt: z.string().datetime().optional()
5535
5567
  });
5536
5568
 
@@ -5707,6 +5739,8 @@ export const tariffCreateBody = z.object({
5707
5739
  applyToAdHocOperatorIds: z.array(z.number().int().min(1)).optional(),
5708
5740
  applyToUsersOfPartners: z.array(z.number()).optional(),
5709
5741
  applyToUsersWithGroups: z.array(z.string()).optional(),
5742
+ applyToHomeChargingOwner: z.boolean().optional(),
5743
+ applyToHomeChargingSharedUsers: z.boolean().optional(),
5710
5744
  applyToUserGroupIds: z.array(z.number()).optional(),
5711
5745
  applyToUsersWithSubscriptions: z.array(z.number()).optional(),
5712
5746
  applyToAuthorizationMethods: z.array(z.enum(["id_tag", "mac_address", "user_device", "plug_and_charge", "plug_and_charge_iso15118"])).optional(),
@@ -5898,6 +5932,8 @@ export const tariffUpdateBody = z.object({
5898
5932
  applyToAdHocOperatorIds: z.array(z.number().int().min(1)).optional(),
5899
5933
  applyToUsersOfPartners: z.array(z.number()).optional(),
5900
5934
  applyToUsersWithGroups: z.array(z.string()).optional(),
5935
+ applyToHomeChargingOwner: z.boolean().optional(),
5936
+ applyToHomeChargingSharedUsers: z.boolean().optional(),
5901
5937
  applyToUserGroupIds: z.array(z.number()).optional(),
5902
5938
  applyToUsersWithSubscriptions: z.array(z.number()).optional(),
5903
5939
  applyToAuthorizationMethods: z.array(z.enum(["id_tag", "mac_address", "user_device", "plug_and_charge", "plug_and_charge_iso15118"])).optional(),
@@ -6089,6 +6125,8 @@ export const tariffPartialUpdateBody = z.object({
6089
6125
  applyToAdHocOperatorIds: z.array(z.number().int().min(1)).optional(),
6090
6126
  applyToUsersOfPartners: z.array(z.number()).optional(),
6091
6127
  applyToUsersWithGroups: z.array(z.string()).optional(),
6128
+ applyToHomeChargingOwner: z.boolean().optional(),
6129
+ applyToHomeChargingSharedUsers: z.boolean().optional(),
6092
6130
  applyToUserGroupIds: z.array(z.number()).optional(),
6093
6131
  applyToUsersWithSubscriptions: z.array(z.number()).optional(),
6094
6132
  applyToAuthorizationMethods: z.array(z.enum(["id_tag", "mac_address", "user_device", "plug_and_charge", "plug_and_charge_iso15118"])).optional(),
@@ -6827,7 +6865,7 @@ export const userCreateV1_1Body = z.object({
6827
6865
  company_postal_code: z.string().optional(),
6828
6866
  company_country: z.enum(["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "XK", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]).optional(),
6829
6867
  company_receipts_enabled: z.boolean().optional(),
6830
- locale: z.enum(["en", "bg", "mk", "el", "zh-CN", "zh-HK", "zh-TW", "pt", "sl", "hr", "it", "de", "hu", "fi", "is", "sv-SE", "da-DK", "nb-NO", "tr-TR", "es-ES", "ar", "ary", "he", "ta", "ms", "cy", "sr", "fr", "fr-MA", "ro", "lt", "uk", "ru", "nl", "ca-ES", "id", "ar-EG", "pl", "lo", "th", "sq-XK", "ga-IE", "bs", "ja", "ko", "cs", "lv", "et", "az", "ka"]).optional(),
6868
+ locale: z.enum(["en", "bg", "mk", "el", "zh-CN", "zh-HK", "zh-TW", "pt", "sl", "hr", "it", "de", "hu", "fi", "is", "sv-SE", "da-DK", "nb-NO", "tr-TR", "es-ES", "ar", "ary", "he", "ta", "ms", "cy", "sr", "fr", "fr-MA", "ro", "lt", "uk", "ru", "nl", "ca-ES", "id", "ar-EG", "pl", "lo", "th", "sq-XK", "ga-IE", "bs", "ja", "ko-KR", "cs", "lv", "et", "az", "ka"]).optional(),
6831
6869
  userGroupIds: z.array(z.number().int()).optional(),
6832
6870
  externalId: z.string().optional(),
6833
6871
  options: z.object({
@@ -6875,7 +6913,7 @@ export const userUpdateV1_1Body = z.object({
6875
6913
  company_postal_code: z.string().optional(),
6876
6914
  company_country: z.enum(["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "XK", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]).optional(),
6877
6915
  company_receipts_enabled: z.boolean().optional(),
6878
- locale: z.enum(["en", "bg", "mk", "el", "zh-CN", "zh-HK", "zh-TW", "pt", "sl", "hr", "it", "de", "hu", "fi", "is", "sv-SE", "da-DK", "nb-NO", "tr-TR", "es-ES", "ar", "ary", "he", "ta", "ms", "cy", "sr", "fr", "fr-MA", "ro", "lt", "uk", "ru", "nl", "ca-ES", "id", "ar-EG", "pl", "lo", "th", "sq-XK", "ga-IE", "bs", "ja", "ko", "cs", "lv", "et", "az", "ka"]).optional(),
6916
+ locale: z.enum(["en", "bg", "mk", "el", "zh-CN", "zh-HK", "zh-TW", "pt", "sl", "hr", "it", "de", "hu", "fi", "is", "sv-SE", "da-DK", "nb-NO", "tr-TR", "es-ES", "ar", "ary", "he", "ta", "ms", "cy", "sr", "fr", "fr-MA", "ro", "lt", "uk", "ru", "nl", "ca-ES", "id", "ar-EG", "pl", "lo", "th", "sq-XK", "ga-IE", "bs", "ja", "ko-KR", "cs", "lv", "et", "az", "ka"]).optional(),
6879
6917
  userGroupIds: z.array(z.number().int()).optional(),
6880
6918
  externalId: z.string().optional(),
6881
6919
  options: z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampeco/public-api-mcp",
3
- "version": "3.248.1",
3
+ "version": "3.250.0",
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",