@ampeco/public-api-mcp 3.105.8 → 3.105.9

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.
@@ -1,13 +1,13 @@
1
1
  {
2
- "totalEndpoints": 447,
3
- "originalSize": 2673598,
4
- "optimizedSize": 782602,
5
- "reductionPercent": 70.73,
6
- "buildDuration": 632,
2
+ "totalEndpoints": 449,
3
+ "originalSize": 2679324,
4
+ "optimizedSize": 785363,
5
+ "reductionPercent": 70.69,
6
+ "buildDuration": 694,
7
7
  "responseSchemas": {
8
- "total": 447,
9
- "withSchemas": 447,
10
- "totalSchemaSize": 1484727,
11
- "averageSchemaSize": 3322
8
+ "total": 449,
9
+ "withSchemas": 449,
10
+ "totalSchemaSize": 1487633,
11
+ "averageSchemaSize": 3313
12
12
  }
13
13
  }
@@ -173,6 +173,59 @@
173
173
  }
174
174
  }
175
175
  },
176
+ {
177
+ "path": "/public-api/actions/charge-point/v1.0/{chargePoint}/disconnect",
178
+ "method": "POST",
179
+ "operationId": "chargePointDisconnect",
180
+ "summary": "Charge Point / Disconnect",
181
+ "description": "Disconnect a charge point",
182
+ "tags": [
183
+ "action / charge point"
184
+ ],
185
+ "requestBody": {
186
+ "required": true,
187
+ "content": {
188
+ "application/json": {
189
+ "schema": {
190
+ "type": "object",
191
+ "properties": {
192
+ "reason": {
193
+ "type": "string",
194
+ "maxLength": 255,
195
+ "description": "Human-readable reason for disconnecting the charge point. Used for audit logging purposes."
196
+ }
197
+ },
198
+ "required": [
199
+ "reason"
200
+ ]
201
+ }
202
+ }
203
+ }
204
+ },
205
+ "responses": {
206
+ "202": {
207
+ "description": "Disconnect request accepted"
208
+ },
209
+ "401": {
210
+ "description": "Access token is missing or invalid"
211
+ },
212
+ "403": {
213
+ "description": "You do not have permission to perform the action"
214
+ },
215
+ "404": {
216
+ "description": "The record is not found"
217
+ },
218
+ "409": {
219
+ "description": "Conflict"
220
+ },
221
+ "422": {
222
+ "description": "The payload you provided is invalid"
223
+ },
224
+ "429": {
225
+ "description": "Too many requests. Please try again later. For more information, please check the rate limit headers X-RateLimit-*"
226
+ }
227
+ }
228
+ },
176
229
  {
177
230
  "path": "/public-api/actions/charge-point/v1.0/{chargePoint}/get-diagnostics",
178
231
  "method": "POST",
@@ -12926,6 +12979,73 @@
12926
12979
  }
12927
12980
  }
12928
12981
  },
12982
+ {
12983
+ "path": "/public-api/resources/consents/v1.0",
12984
+ "method": "POST",
12985
+ "operationId": "consentsCreate",
12986
+ "summary": "Consents / Create",
12987
+ "description": "Create user consent for a specific term version. If a consent already exists for the given user and term version combination, the request will fail with a 409 Conflict error.",
12988
+ "tags": [
12989
+ "resource / consents"
12990
+ ],
12991
+ "requestBody": {
12992
+ "required": true,
12993
+ "content": {
12994
+ "application/json": {
12995
+ "schema": {
12996
+ "type": "object",
12997
+ "properties": {
12998
+ "userId": {
12999
+ "type": "integer",
13000
+ "description": "The ID of the user for whom consent is being created"
13001
+ },
13002
+ "termVersionId": {
13003
+ "type": "integer",
13004
+ "description": "The ID of the specific term version for which consent is being given or rejected"
13005
+ },
13006
+ "status": {
13007
+ "type": "string",
13008
+ "enum": [
13009
+ "agreed",
13010
+ "rejected"
13011
+ ],
13012
+ "example": "agreed",
13013
+ "description": "The consent status: - agreed: User has agreed to the terms - rejected: User has explicitly rejected the terms"
13014
+ }
13015
+ },
13016
+ "required": [
13017
+ "userId",
13018
+ "termVersionId",
13019
+ "status"
13020
+ ]
13021
+ }
13022
+ }
13023
+ }
13024
+ },
13025
+ "responses": {
13026
+ "201": {
13027
+ "description": "Consent created successfully"
13028
+ },
13029
+ "400": {
13030
+ "description": "Bad Request"
13031
+ },
13032
+ "401": {
13033
+ "description": "Access token is missing or invalid"
13034
+ },
13035
+ "403": {
13036
+ "description": "You do not have permission to perform the action"
13037
+ },
13038
+ "409": {
13039
+ "description": "Conflict"
13040
+ },
13041
+ "422": {
13042
+ "description": "The payload you provided is invalid"
13043
+ },
13044
+ "429": {
13045
+ "description": "Too many requests. Please try again later. For more information, please check the rate limit headers X-RateLimit-*"
13046
+ }
13047
+ }
13048
+ },
12929
13049
  {
12930
13050
  "path": "/public-api/resources/contact-details/v2.0",
12931
13051
  "method": "GET",
@@ -34083,7 +34203,17 @@
34083
34203
  "properties": {
34084
34204
  "partnerId": {
34085
34205
  "type": "number",
34086
- "description": "Only list tariffs managed by certan partner."
34206
+ "description": "Only list tariff groups managed by certain partner."
34207
+ },
34208
+ "lastUpdatedAfter": {
34209
+ "type": "string",
34210
+ "format": "date-time",
34211
+ "description": "ISO 8601 formatted date. Only list status logs created after this datetime"
34212
+ },
34213
+ "lastUpdatedBefore": {
34214
+ "type": "string",
34215
+ "format": "date-time",
34216
+ "description": "ISO 8601 formatted date. Only list status logs created after this datetime"
34087
34217
  }
34088
34218
  }
34089
34219
  }
@@ -34116,6 +34246,9 @@
34116
34246
  "403": {
34117
34247
  "description": "You do not have permission to perform the action"
34118
34248
  },
34249
+ "422": {
34250
+ "description": "The payload you provided is invalid"
34251
+ },
34119
34252
  "429": {
34120
34253
  "description": "Too many requests. Please try again later. For more information, please check the rate limit headers X-RateLimit-*"
34121
34254
  }
@@ -41682,7 +41815,7 @@
41682
41815
  ],
41683
41816
  "info": {
41684
41817
  "title": "AMPECO.CHARGE Public API",
41685
- "version": "3.105.8",
41818
+ "version": "3.106.1",
41686
41819
  "description": "AMPECO.CHARGE Public API provides you with the option to use AMPECO.CHARGE's backend in a server-to-server manner\n"
41687
41820
  },
41688
41821
  "servers": [
@@ -41696,18 +41829,18 @@
41696
41829
  }
41697
41830
  }
41698
41831
  ],
41699
- "buildTimestamp": "2025-12-02T09:14:33.129Z",
41832
+ "buildTimestamp": "2025-12-03T06:52:48.630Z",
41700
41833
  "stats": {
41701
- "totalEndpoints": 447,
41702
- "originalSize": 2673598,
41703
- "optimizedSize": 782602,
41704
- "reductionPercent": 70.73,
41705
- "buildDuration": 632,
41834
+ "totalEndpoints": 449,
41835
+ "originalSize": 2679324,
41836
+ "optimizedSize": 785363,
41837
+ "reductionPercent": 70.69,
41838
+ "buildDuration": 694,
41706
41839
  "responseSchemas": {
41707
- "total": 447,
41708
- "withSchemas": 447,
41709
- "totalSchemaSize": 1484727,
41710
- "averageSchemaSize": 3322
41840
+ "total": 449,
41841
+ "withSchemas": 449,
41842
+ "totalSchemaSize": 1487633,
41843
+ "averageSchemaSize": 3313
41711
41844
  }
41712
41845
  }
41713
41846
  }
@@ -194,6 +194,94 @@
194
194
  }
195
195
  }
196
196
  },
197
+ "chargePointDisconnect": {
198
+ "202": {
199
+ "schema": {
200
+ "type": "object",
201
+ "properties": {
202
+ "success": {
203
+ "type": "boolean"
204
+ }
205
+ },
206
+ "required": [
207
+ "success"
208
+ ]
209
+ }
210
+ },
211
+ "401": {
212
+ "schema": {
213
+ "type": "object",
214
+ "properties": {
215
+ "message": {
216
+ "type": "string"
217
+ }
218
+ }
219
+ }
220
+ },
221
+ "403": {
222
+ "schema": {
223
+ "type": "object",
224
+ "properties": {
225
+ "message": {
226
+ "type": "string",
227
+ "default": "This action is unauthorized."
228
+ }
229
+ }
230
+ }
231
+ },
232
+ "404": {
233
+ "schema": {
234
+ "type": "object",
235
+ "properties": {
236
+ "message": {
237
+ "type": "string"
238
+ }
239
+ }
240
+ }
241
+ },
242
+ "409": {
243
+ "schema": {
244
+ "type": "object",
245
+ "properties": {
246
+ "message": {
247
+ "type": "string"
248
+ }
249
+ }
250
+ }
251
+ },
252
+ "422": {
253
+ "schema": {
254
+ "type": "object",
255
+ "required": [
256
+ "message"
257
+ ],
258
+ "properties": {
259
+ "message": {
260
+ "type": "string"
261
+ },
262
+ "errors": {
263
+ "type": "object",
264
+ "additionalProperties": {
265
+ "type": "array",
266
+ "items": {
267
+ "type": "string"
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
273
+ },
274
+ "429": {
275
+ "schema": {
276
+ "type": "object",
277
+ "properties": {
278
+ "message": {
279
+ "type": "string"
280
+ }
281
+ }
282
+ }
283
+ }
284
+ },
197
285
  "chargePointGetDiagnostics": {
198
286
  "202": {
199
287
  "schema": {
@@ -19648,18 +19736,7 @@
19648
19736
  }
19649
19737
  }
19650
19738
  }
19651
- ],
19652
- "discriminator": {
19653
- "propertyName": "type",
19654
- "mapping": {
19655
- "user_controlled_schedule": "#/components/schemas/PersonalSmartChargingPreferencesUserControlledSchedule",
19656
- "solar": "#/components/schemas/PersonalSmartChargingPreferencesSolar",
19657
- "octopus_agile": "#/components/schemas/PersonalSmartChargingPreferencesOctopusAgile",
19658
- "octopus_go": "#/components/schemas/PersonalSmartChargingPreferencesOctopusGo",
19659
- "nordpool": "#/components/schemas/PersonalSmartChargingPreferencesNordPool",
19660
- "charger_electricity_rate": "#/components/schemas/PersonalSmartChargingPreferencesChargerElectricityRate"
19661
- }
19662
- }
19739
+ ]
19663
19740
  }
19664
19741
  }
19665
19742
  }
@@ -21169,16 +21246,7 @@
21169
21246
  "mode"
21170
21247
  ]
21171
21248
  }
21172
- ],
21173
- "discriminator": {
21174
- "propertyName": "mode",
21175
- "mapping": {
21176
- "tod": "#/components/schemas/SmartChargingTod",
21177
- "dynamic": "#/components/schemas/SmartChargingDynamic",
21178
- "user_schedule": "#/components/schemas/SmartChargingUserSchedule",
21179
- "disabled": "#/components/schemas/SmartChargingDisabled"
21180
- }
21181
- }
21249
+ ]
21182
21250
  }
21183
21251
  }
21184
21252
  }
@@ -24882,12 +24950,29 @@
24882
24950
  },
24883
24951
  "status": {
24884
24952
  "type": "string",
24885
- "description": "The consent status:\n- agreed: User has agreed to the terms\n- rejected: User has explicitly rejected the terms\n",
24886
24953
  "enum": [
24887
24954
  "agreed",
24888
24955
  "rejected"
24889
24956
  ],
24890
- "readOnly": true
24957
+ "description": "The consent status:\n- agreed: User has agreed to the terms\n- rejected: User has explicitly rejected the terms\n",
24958
+ "example": "agreed"
24959
+ },
24960
+ "collection": {
24961
+ "type": "string",
24962
+ "enum": [
24963
+ "explicit",
24964
+ "automatic"
24965
+ ],
24966
+ "description": "Defines how consent is collected:\n- **explicit**: Requires user explicit confirmation\n- **automatic**: Assumes consent upon use\n"
24967
+ },
24968
+ "source": {
24969
+ "type": "string",
24970
+ "readOnly": true,
24971
+ "enum": [
24972
+ "app",
24973
+ "api"
24974
+ ],
24975
+ "description": "Where the consent originated:\n- app: Consent created via mobile application\n- api: Consent created via API endpoint\n"
24891
24976
  },
24892
24977
  "agreedAt": {
24893
24978
  "type": "string",
@@ -24912,6 +24997,8 @@
24912
24997
  "termVersionId",
24913
24998
  "termType",
24914
24999
  "status",
25000
+ "collection",
25001
+ "source",
24915
25002
  "termVersionIsActive"
24916
25003
  ]
24917
25004
  }
@@ -25086,6 +25173,166 @@
25086
25173
  }
25087
25174
  }
25088
25175
  },
25176
+ "consentsCreate": {
25177
+ "201": {
25178
+ "schema": {
25179
+ "type": "object",
25180
+ "properties": {
25181
+ "data": {
25182
+ "type": "object",
25183
+ "properties": {
25184
+ "userId": {
25185
+ "type": "integer",
25186
+ "description": "The ID of the user who gave or rejected consent",
25187
+ "readOnly": true
25188
+ },
25189
+ "termVersionId": {
25190
+ "type": "integer",
25191
+ "description": "The ID of the specific term version for which consent was given or rejected",
25192
+ "readOnly": true
25193
+ },
25194
+ "termType": {
25195
+ "type": "string",
25196
+ "readOnly": true,
25197
+ "enum": [
25198
+ "marketing",
25199
+ "signup",
25200
+ "subscription",
25201
+ "top-up"
25202
+ ],
25203
+ "description": "The type of term:\n- marketing: Marketing and promotional communications consent\n- signup: Initial registration terms and conditions\n- subscription: Subscription service terms\n- top-up: Top-up service terms\n"
25204
+ },
25205
+ "status": {
25206
+ "type": "string",
25207
+ "enum": [
25208
+ "agreed",
25209
+ "rejected"
25210
+ ],
25211
+ "description": "The consent status:\n- agreed: User has agreed to the terms\n- rejected: User has explicitly rejected the terms\n",
25212
+ "example": "agreed"
25213
+ },
25214
+ "collection": {
25215
+ "type": "string",
25216
+ "enum": [
25217
+ "explicit",
25218
+ "automatic"
25219
+ ],
25220
+ "description": "Defines how consent is collected:\n- **explicit**: Requires user explicit confirmation\n- **automatic**: Assumes consent upon use\n"
25221
+ },
25222
+ "source": {
25223
+ "type": "string",
25224
+ "readOnly": true,
25225
+ "enum": [
25226
+ "app",
25227
+ "api"
25228
+ ],
25229
+ "description": "Where the consent originated:\n- app: Consent created via mobile application\n- api: Consent created via API endpoint\n"
25230
+ },
25231
+ "agreedAt": {
25232
+ "type": "string",
25233
+ "format": "date-time",
25234
+ "description": "ISO 8601 formatted date",
25235
+ "readOnly": true
25236
+ },
25237
+ "rejectedAt": {
25238
+ "type": "string",
25239
+ "format": "date-time",
25240
+ "description": "ISO 8601 formatted date",
25241
+ "readOnly": true
25242
+ },
25243
+ "termVersionIsActive": {
25244
+ "type": "boolean",
25245
+ "description": "Whether the associated term version is currently active (not past or future)",
25246
+ "readOnly": true
25247
+ }
25248
+ },
25249
+ "required": [
25250
+ "userId",
25251
+ "termVersionId",
25252
+ "termType",
25253
+ "status",
25254
+ "collection",
25255
+ "source",
25256
+ "termVersionIsActive"
25257
+ ]
25258
+ }
25259
+ }
25260
+ }
25261
+ },
25262
+ "400": {
25263
+ "schema": {
25264
+ "type": "object",
25265
+ "properties": {
25266
+ "message": {
25267
+ "type": "string"
25268
+ }
25269
+ }
25270
+ }
25271
+ },
25272
+ "401": {
25273
+ "schema": {
25274
+ "type": "object",
25275
+ "properties": {
25276
+ "message": {
25277
+ "type": "string"
25278
+ }
25279
+ }
25280
+ }
25281
+ },
25282
+ "403": {
25283
+ "schema": {
25284
+ "type": "object",
25285
+ "properties": {
25286
+ "message": {
25287
+ "type": "string",
25288
+ "default": "This action is unauthorized."
25289
+ }
25290
+ }
25291
+ }
25292
+ },
25293
+ "409": {
25294
+ "schema": {
25295
+ "type": "object",
25296
+ "properties": {
25297
+ "message": {
25298
+ "type": "string"
25299
+ }
25300
+ }
25301
+ }
25302
+ },
25303
+ "422": {
25304
+ "schema": {
25305
+ "type": "object",
25306
+ "required": [
25307
+ "message"
25308
+ ],
25309
+ "properties": {
25310
+ "message": {
25311
+ "type": "string"
25312
+ },
25313
+ "errors": {
25314
+ "type": "object",
25315
+ "additionalProperties": {
25316
+ "type": "array",
25317
+ "items": {
25318
+ "type": "string"
25319
+ }
25320
+ }
25321
+ }
25322
+ }
25323
+ }
25324
+ },
25325
+ "429": {
25326
+ "schema": {
25327
+ "type": "object",
25328
+ "properties": {
25329
+ "message": {
25330
+ "type": "string"
25331
+ }
25332
+ }
25333
+ }
25334
+ }
25335
+ },
25089
25336
  "contactDetailsRead": {
25090
25337
  "200": {
25091
25338
  "schema": {
@@ -70365,7 +70612,7 @@
70365
70612
  "grid"
70366
70613
  ]
70367
70614
  },
70368
- "estimatedElectricityCostSavings": {
70615
+ "estimatedSavings": {
70369
70616
  "type": "number",
70370
70617
  "description": "The sum of savings that could be achieved if the consumed energy was not locally generated but delivered from the grid for all clock-aligned consumption periods in the charging session."
70371
70618
  },
@@ -71391,7 +71638,7 @@
71391
71638
  "grid"
71392
71639
  ]
71393
71640
  },
71394
- "estimatedElectricityCostSavings": {
71641
+ "estimatedSavings": {
71395
71642
  "type": "number",
71396
71643
  "description": "The sum of savings that could be achieved if the consumed energy was not locally generated but delivered from the grid for all clock-aligned consumption periods in the charging session."
71397
71644
  },
@@ -74052,6 +74299,28 @@
74052
74299
  }
74053
74300
  }
74054
74301
  },
74302
+ "422": {
74303
+ "schema": {
74304
+ "type": "object",
74305
+ "required": [
74306
+ "message"
74307
+ ],
74308
+ "properties": {
74309
+ "message": {
74310
+ "type": "string"
74311
+ },
74312
+ "errors": {
74313
+ "type": "object",
74314
+ "additionalProperties": {
74315
+ "type": "array",
74316
+ "items": {
74317
+ "type": "string"
74318
+ }
74319
+ }
74320
+ }
74321
+ }
74322
+ }
74323
+ },
74055
74324
  "429": {
74056
74325
  "schema": {
74057
74326
  "type": "object",
@@ -32,6 +32,13 @@ export declare const chargePointClearChargingProfileBody: z.ZodObject<{
32
32
  chargingProfilePurpose?: string | undefined;
33
33
  stackLevel?: number | undefined;
34
34
  }>;
35
+ export declare const chargePointDisconnectBody: z.ZodObject<{
36
+ reason: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ reason: string;
39
+ }, {
40
+ reason: string;
41
+ }>;
35
42
  export declare const chargePointGetDiagnosticsBody: z.ZodObject<{
36
43
  location: z.ZodString;
37
44
  start: z.ZodOptional<z.ZodString>;
@@ -3946,6 +3953,19 @@ export declare const configurationTemplateVariableUpdateBody: z.ZodUnion<[z.ZodO
3946
3953
  component?: string | undefined;
3947
3954
  componentInstance?: string | undefined;
3948
3955
  }>]>;
3956
+ export declare const consentsCreateBody: z.ZodObject<{
3957
+ userId: z.ZodNumber;
3958
+ termVersionId: z.ZodNumber;
3959
+ status: z.ZodEnum<["agreed", "rejected"]>;
3960
+ }, "strip", z.ZodTypeAny, {
3961
+ userId: number;
3962
+ status: "rejected" | "agreed";
3963
+ termVersionId: number;
3964
+ }, {
3965
+ userId: number;
3966
+ status: "rejected" | "agreed";
3967
+ termVersionId: number;
3968
+ }>;
3949
3969
  export declare const contactDetailsUpdateBody: z.ZodObject<{
3950
3970
  email: z.ZodString;
3951
3971
  phone: z.ZodOptional<z.ZodString>;