@epilot/erp-integration-client 0.15.4 → 0.16.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.
package/dist/openapi.d.ts CHANGED
@@ -71,11 +71,11 @@ declare namespace Components {
71
71
  */
72
72
  has_more?: boolean;
73
73
  }
74
- export interface QueryMonitoringEventsResponse {
74
+ export interface QueryInboundMonitoringEventsResponse {
75
75
  /**
76
- * List of monitoring events
76
+ * List of inbound monitoring events
77
77
  */
78
- data?: Schemas.MonitoringEvent[];
78
+ data?: Schemas.InboundMonitoringEvent[];
79
79
  /**
80
80
  * Cursor to fetch the next page. Null if no more results.
81
81
  */
@@ -88,6 +88,23 @@ declare namespace Components {
88
88
  */
89
89
  has_more?: boolean;
90
90
  }
91
+ export interface QueryOutboundMonitoringEventsResponse {
92
+ /**
93
+ * List of outbound monitoring events
94
+ */
95
+ data?: Schemas.OutboundMonitoringEvent[];
96
+ /**
97
+ * Cursor to fetch the next page. Null if no more results.
98
+ */
99
+ next_cursor?: {
100
+ created_at?: string; // date-time
101
+ event_id?: string;
102
+ } | null;
103
+ /**
104
+ * Indicates if more results are available
105
+ */
106
+ has_more?: boolean;
107
+ }
91
108
  export interface ReplayEventsResponse {
92
109
  /**
93
110
  * List of event IDs for which replay was requested
@@ -176,6 +193,10 @@ declare namespace Components {
176
193
  * Optional description of the integration
177
194
  */
178
195
  description?: string;
196
+ /**
197
+ * List of access token IDs to associate with this integration
198
+ */
199
+ access_token_ids?: string[];
179
200
  }
180
201
  export interface CreateOutboundUseCaseRequest {
181
202
  /**
@@ -385,14 +406,6 @@ declare namespace Components {
385
406
  message?: string;
386
407
  }
387
408
  export interface GetMonitoringStatsRequest {
388
- /**
389
- * Filter by use case ID
390
- */
391
- use_case_id?: string; // uuid
392
- /**
393
- * Filter by sync direction
394
- */
395
- direction?: "inbound" | "outbound";
396
409
  /**
397
410
  * Start date for statistics period (inclusive)
398
411
  * example:
@@ -406,14 +419,23 @@ declare namespace Components {
406
419
  */
407
420
  to_date?: string; // date-time
408
421
  /**
409
- * Fields to group statistics by
422
+ * Fields to group inbound statistics by
423
+ * example:
424
+ * [
425
+ * "use_case_id",
426
+ * "status"
427
+ * ]
428
+ */
429
+ inbound_group_by?: ("use_case_id" | "sync_type" | "status" | "error_category" | "object_type" | "date")[];
430
+ /**
431
+ * Fields to group outbound statistics by
410
432
  * example:
411
433
  * [
412
- * "direction",
434
+ * "event_name",
413
435
  * "status"
414
436
  * ]
415
437
  */
416
- group_by?: ("direction" | "use_case_id" | "sync_type" | "status" | "error_category" | "object_type" | "date")[];
438
+ outbound_group_by?: ("event_name" | "status" | "webhook_config_id" | "date")[];
417
439
  }
418
440
  /**
419
441
  * Configuration for inbound use cases (ERP to epilot)
@@ -428,6 +450,68 @@ declare namespace Components {
428
450
  */
429
451
  meter_readings?: IntegrationMeterReading[];
430
452
  }
453
+ export interface InboundMonitoringEvent {
454
+ /**
455
+ * Organization ID
456
+ */
457
+ org_id: string;
458
+ /**
459
+ * Unique event identifier
460
+ */
461
+ event_id: string;
462
+ /**
463
+ * Correlation ID for tracing related events
464
+ */
465
+ correlation_id?: string | null;
466
+ /**
467
+ * Integration ID
468
+ */
469
+ integration_id?: string | null;
470
+ /**
471
+ * Use case ID
472
+ */
473
+ use_case_id?: string | null;
474
+ /**
475
+ * Type of event
476
+ */
477
+ event_type: "CREATE" | "UPDATE" | "DELETE" | "TRIGGER";
478
+ /**
479
+ * Type of object being synced (e.g., 'contract', 'meter')
480
+ */
481
+ object_type: string;
482
+ /**
483
+ * Type of sync operation
484
+ */
485
+ sync_type: "entity" | "meter_reading";
486
+ /**
487
+ * Processing status
488
+ */
489
+ status: "success" | "error" | "skipped";
490
+ /**
491
+ * Error code (when status=error)
492
+ */
493
+ error_code?: string | null;
494
+ /**
495
+ * Error message (when status=error)
496
+ */
497
+ error_message?: string | null;
498
+ /**
499
+ * Error category (when status=error)
500
+ */
501
+ error_category?: "validation" | "configuration" | "downstream_api" | "timeout" | "system";
502
+ /**
503
+ * Processing duration in milliseconds
504
+ */
505
+ processing_duration_ms?: number | null;
506
+ /**
507
+ * When the event was received
508
+ */
509
+ received_at: string; // date-time
510
+ /**
511
+ * When processing completed
512
+ */
513
+ completed_at: string; // date-time
514
+ }
431
515
  export interface InboundUseCase {
432
516
  /**
433
517
  * Unique identifier for the use case
@@ -520,6 +604,10 @@ declare namespace Components {
520
604
  * Optional description of the integration
521
605
  */
522
606
  description?: string;
607
+ /**
608
+ * List of access token IDs associated with this integration
609
+ */
610
+ access_token_ids?: string[];
523
611
  /**
524
612
  * ISO-8601 timestamp when the integration was created
525
613
  */
@@ -699,6 +787,10 @@ declare namespace Components {
699
787
  * Optional description of the integration
700
788
  */
701
789
  description?: string;
790
+ /**
791
+ * List of access token IDs associated with this integration
792
+ */
793
+ access_token_ids?: string[];
702
794
  /**
703
795
  * All use cases belonging to this integration
704
796
  */
@@ -787,115 +879,81 @@ declare namespace Components {
787
879
  ...RelationUniqueIdField[]
788
880
  ];
789
881
  }
790
- export interface MonitoringEvent {
791
- /**
792
- * Organization ID
793
- */
794
- org_id: string;
795
- /**
796
- * Unique event identifier
797
- */
798
- event_id: string;
799
- /**
800
- * Correlation ID for tracing related events
801
- */
802
- correlation_id?: string | null;
803
- /**
804
- * Integration ID
805
- */
806
- integration_id?: string | null;
807
- /**
808
- * Use case ID
809
- */
810
- use_case_id?: string | null;
811
- /**
812
- * Sync direction
813
- */
814
- direction: "inbound" | "outbound";
815
- /**
816
- * Type of event
817
- */
818
- event_type: "CREATE" | "UPDATE" | "DELETE" | "TRIGGER";
819
- /**
820
- * Type of object being synced (e.g., 'contract', 'meter')
821
- */
822
- object_type: string;
823
- /**
824
- * Type of sync operation
825
- */
826
- sync_type: "entity" | "meter_reading" | "webhook";
827
- /**
828
- * Processing status
829
- */
830
- status: "success" | "error" | "skipped";
831
- /**
832
- * Error code (when status=error)
833
- */
834
- error_code?: string | null;
835
- /**
836
- * Error message (when status=error)
837
- */
838
- error_message?: string | null;
839
- /**
840
- * Error category (when status=error)
841
- */
842
- error_category?: "validation" | "configuration" | "downstream_api" | "timeout" | "system" | "webhook_delivery";
843
- /**
844
- * Processing duration in milliseconds
845
- */
846
- processing_duration_ms?: number | null;
847
- /**
848
- * Target URL for outbound requests
849
- */
850
- target_url?: string | null;
851
- /**
852
- * HTTP status code from target (outbound only)
853
- */
854
- http_status_code?: number | null;
855
- /**
856
- * When the event was received
857
- */
858
- received_at: string; // date-time
859
- /**
860
- * When processing completed
861
- */
862
- completed_at: string; // date-time
863
- }
864
882
  export interface MonitoringStats {
865
883
  /**
866
- * Total number of events in the period
867
- */
868
- total_events: number;
869
- /**
870
- * Total number of unique correlation IDs (a correlation_id groups multiple event_ids)
884
+ * Statistics for inbound (ERP sync) events
871
885
  */
872
- total_correlations: number;
873
- /**
874
- * Number of successful events
875
- */
876
- success_count: number;
877
- /**
878
- * Number of failed events
879
- */
880
- error_count: number;
881
- /**
882
- * Number of skipped events
883
- */
884
- skipped_count: number;
885
- /**
886
- * Success rate as percentage (0-100)
887
- */
888
- success_rate?: number; // float
889
- /**
890
- * Timestamp of the most recent error
891
- */
892
- last_error_at?: string | null; // date-time
886
+ inbound: {
887
+ /**
888
+ * Total number of inbound events in the period
889
+ */
890
+ total_events: number;
891
+ /**
892
+ * Total number of unique correlation IDs
893
+ */
894
+ total_correlations?: number;
895
+ /**
896
+ * Number of successful events
897
+ */
898
+ success_count: number;
899
+ /**
900
+ * Number of failed events
901
+ */
902
+ error_count: number;
903
+ /**
904
+ * Number of skipped events
905
+ */
906
+ skipped_count: number;
907
+ /**
908
+ * Success rate as percentage (0-100)
909
+ */
910
+ success_rate?: number; // float
911
+ /**
912
+ * Timestamp of the most recent error
913
+ */
914
+ last_error_at?: string | null; // date-time
915
+ /**
916
+ * Statistics breakdown by requested inbound_group_by fields
917
+ */
918
+ breakdown?: {
919
+ [name: string]: any;
920
+ }[];
921
+ };
893
922
  /**
894
- * Statistics breakdown by requested group_by fields
923
+ * Statistics for outbound (webhook delivery) events
895
924
  */
896
- breakdown?: {
897
- [name: string]: any;
898
- }[];
925
+ outbound: {
926
+ /**
927
+ * Total number of outbound events in the period
928
+ */
929
+ total_events: number;
930
+ /**
931
+ * Number of successful deliveries
932
+ */
933
+ success_count: number;
934
+ /**
935
+ * Number of failed deliveries
936
+ */
937
+ error_count: number;
938
+ /**
939
+ * Number of pending deliveries
940
+ */
941
+ pending_count?: number;
942
+ /**
943
+ * Success rate as percentage (0-100)
944
+ */
945
+ success_rate?: number; // float
946
+ /**
947
+ * Timestamp of the most recent error
948
+ */
949
+ last_error_at?: string | null; // date-time
950
+ /**
951
+ * Statistics breakdown by requested outbound_group_by fields
952
+ */
953
+ breakdown?: {
954
+ [name: string]: any;
955
+ }[];
956
+ };
899
957
  }
900
958
  export interface OutboundConflict {
901
959
  /**
@@ -968,6 +1026,68 @@ declare namespace Components {
968
1026
  */
969
1027
  updated_at?: string; // date-time
970
1028
  }
1029
+ export interface OutboundMonitoringEvent {
1030
+ /**
1031
+ * Organization ID
1032
+ */
1033
+ org_id: string;
1034
+ /**
1035
+ * Unique event identifier
1036
+ */
1037
+ event_id: string;
1038
+ /**
1039
+ * Event name (event_catalog_event)
1040
+ */
1041
+ event_name: string;
1042
+ /**
1043
+ * Delivery status
1044
+ */
1045
+ status: "succeeded" | "failed" | "pending";
1046
+ /**
1047
+ * Target URL
1048
+ */
1049
+ url?: string;
1050
+ /**
1051
+ * HTTP method used (e.g., POST)
1052
+ */
1053
+ http_method?: string;
1054
+ /**
1055
+ * HTTP response details (status_code, message, headers)
1056
+ */
1057
+ http_response?: {
1058
+ [name: string]: any;
1059
+ };
1060
+ /**
1061
+ * Webhook configuration ID
1062
+ */
1063
+ webhook_config_id?: string;
1064
+ /**
1065
+ * Additional metadata (webhook_id, organization details, correlation_id, etc.)
1066
+ */
1067
+ metadata?: {
1068
+ [name: string]: any;
1069
+ };
1070
+ /**
1071
+ * Execution context (execution_arn, state_machine_arn, etc.)
1072
+ */
1073
+ execution_context?: {
1074
+ [name: string]: any;
1075
+ };
1076
+ /**
1077
+ * Payload that was sent
1078
+ */
1079
+ payload?: {
1080
+ [name: string]: any;
1081
+ };
1082
+ /**
1083
+ * When the event was created
1084
+ */
1085
+ created_at: string; // date-time
1086
+ /**
1087
+ * When the event was last updated
1088
+ */
1089
+ updated_at?: string; // date-time
1090
+ }
971
1091
  export interface OutboundStatusResponse {
972
1092
  useCases: OutboundUseCaseStatus[];
973
1093
  }
@@ -1085,11 +1205,14 @@ declare namespace Components {
1085
1205
  }
1086
1206
  export interface QueryAccessLogsRequest {
1087
1207
  /**
1088
- * Filter by access token ID (e.g., 'api_5ZugdRXasLfWBypHi93Fk')
1208
+ * Filter by a specific access token ID (e.g., 'api_5ZugdRXasLfWBypHi93Fk').
1209
+ * Must be one of the access_token_ids linked to the integration.
1210
+ * If omitted, returns logs for all access tokens linked to the integration.
1211
+ *
1089
1212
  * example:
1090
1213
  * api_5ZugdRXasLfWBypHi93Fk
1091
1214
  */
1092
- token_id: string;
1215
+ token_id?: string;
1093
1216
  /**
1094
1217
  * Filter by service name (e.g., 'entity', 'metering', 'submission-api')
1095
1218
  * example:
@@ -1185,15 +1308,11 @@ declare namespace Components {
1185
1308
  event_id?: string;
1186
1309
  };
1187
1310
  }
1188
- export interface QueryMonitoringEventsRequest {
1311
+ export interface QueryInboundMonitoringEventsRequest {
1189
1312
  /**
1190
1313
  * Filter by use case ID
1191
1314
  */
1192
1315
  use_case_id?: string; // uuid
1193
- /**
1194
- * Filter by sync direction
1195
- */
1196
- direction?: "inbound" | "outbound";
1197
1316
  /**
1198
1317
  * Filter by event type
1199
1318
  */
@@ -1201,7 +1320,7 @@ declare namespace Components {
1201
1320
  /**
1202
1321
  * Filter by sync type
1203
1322
  */
1204
- sync_type?: "entity" | "meter_reading" | "webhook";
1323
+ sync_type?: "entity" | "meter_reading";
1205
1324
  /**
1206
1325
  * Filter by processing status
1207
1326
  */
@@ -1209,7 +1328,7 @@ declare namespace Components {
1209
1328
  /**
1210
1329
  * Filter by error category (only applicable when status=error)
1211
1330
  */
1212
- error_category?: "validation" | "configuration" | "downstream_api" | "timeout" | "system" | "webhook_delivery";
1331
+ error_category?: "validation" | "configuration" | "downstream_api" | "timeout" | "system";
1213
1332
  /**
1214
1333
  * Filter by correlation ID
1215
1334
  */
@@ -1254,6 +1373,53 @@ declare namespace Components {
1254
1373
  event_id?: string;
1255
1374
  };
1256
1375
  }
1376
+ export interface QueryOutboundMonitoringEventsRequest {
1377
+ /**
1378
+ * Filter by event name (event_catalog_event). If not specified, returns events for all linked event names in the integration's outbound use cases.
1379
+ * example:
1380
+ * automation_flow_target
1381
+ */
1382
+ event_name?: string;
1383
+ /**
1384
+ * Filter by delivery status
1385
+ */
1386
+ status?: "succeeded" | "failed" | "pending";
1387
+ /**
1388
+ * Filter by webhook configuration ID
1389
+ */
1390
+ webhook_config_id?: string;
1391
+ /**
1392
+ * Filter events from this date (inclusive)
1393
+ * example:
1394
+ * 2025-01-01T00:00:00Z
1395
+ */
1396
+ from_date?: string; // date-time
1397
+ /**
1398
+ * Filter events until this date (inclusive)
1399
+ * example:
1400
+ * 2025-01-31T23:59:59Z
1401
+ */
1402
+ to_date?: string; // date-time
1403
+ /**
1404
+ * Maximum number of results to return
1405
+ * example:
1406
+ * 50
1407
+ */
1408
+ limit?: number;
1409
+ /**
1410
+ * Cursor for pagination
1411
+ */
1412
+ cursor?: {
1413
+ /**
1414
+ * Timestamp from the last event in the previous page
1415
+ */
1416
+ created_at?: string; // date-time
1417
+ /**
1418
+ * Event ID from the last event in the previous page
1419
+ */
1420
+ event_id?: string;
1421
+ };
1422
+ }
1257
1423
  export interface RelationConfig {
1258
1424
  /**
1259
1425
  * Relation operation:
@@ -1590,6 +1756,10 @@ declare namespace Components {
1590
1756
  * Optional description of the integration
1591
1757
  */
1592
1758
  description?: string;
1759
+ /**
1760
+ * List of access token IDs to associate with this integration
1761
+ */
1762
+ access_token_ids?: string[];
1593
1763
  }
1594
1764
  export interface UpdateOutboundUseCaseRequest {
1595
1765
  /**
@@ -1639,6 +1809,10 @@ declare namespace Components {
1639
1809
  * Optional description of the integration
1640
1810
  */
1641
1811
  description?: string;
1812
+ /**
1813
+ * List of access token IDs to associate with this integration
1814
+ */
1815
+ access_token_ids?: string[];
1642
1816
  /**
1643
1817
  * Full list of use cases (declarative). This replaces ALL existing use cases.
1644
1818
  * - Use cases with an `id` field matching an existing use case will be updated
@@ -2084,16 +2258,32 @@ declare namespace Paths {
2084
2258
  export type $500 = Components.Responses.InternalServerError;
2085
2259
  }
2086
2260
  }
2087
- namespace QueryMonitoringEvents {
2261
+ namespace QueryInboundMonitoringEvents {
2088
2262
  namespace Parameters {
2089
2263
  export type IntegrationId = string; // uuid
2090
2264
  }
2091
2265
  export interface PathParameters {
2092
2266
  integrationId: Parameters.IntegrationId /* uuid */;
2093
2267
  }
2094
- export type RequestBody = Components.Schemas.QueryMonitoringEventsRequest;
2268
+ export type RequestBody = Components.Schemas.QueryInboundMonitoringEventsRequest;
2095
2269
  namespace Responses {
2096
- export type $200 = Components.Responses.QueryMonitoringEventsResponse;
2270
+ export type $200 = Components.Responses.QueryInboundMonitoringEventsResponse;
2271
+ export type $400 = Components.Responses.BadRequest;
2272
+ export type $401 = Components.Responses.Unauthorized;
2273
+ export type $404 = Components.Responses.NotFound;
2274
+ export type $500 = Components.Responses.InternalServerError;
2275
+ }
2276
+ }
2277
+ namespace QueryOutboundMonitoringEvents {
2278
+ namespace Parameters {
2279
+ export type IntegrationId = string; // uuid
2280
+ }
2281
+ export interface PathParameters {
2282
+ integrationId: Parameters.IntegrationId /* uuid */;
2283
+ }
2284
+ export type RequestBody = Components.Schemas.QueryOutboundMonitoringEventsRequest;
2285
+ namespace Responses {
2286
+ export type $200 = Components.Responses.QueryOutboundMonitoringEventsResponse;
2097
2287
  export type $400 = Components.Responses.BadRequest;
2098
2288
  export type $401 = Components.Responses.Unauthorized;
2099
2289
  export type $404 = Components.Responses.NotFound;
@@ -2521,24 +2711,24 @@ export interface OperationMethods {
2521
2711
  config?: AxiosRequestConfig
2522
2712
  ): OperationResponse<Paths.DeleteIntegrationAppMapping.Responses.$200>
2523
2713
  /**
2524
- * queryMonitoringEvents - queryMonitoringEvents
2714
+ * queryInboundMonitoringEvents - queryInboundMonitoringEvents
2525
2715
  *
2526
- * Query ERP sync monitoring events for a specific integration.
2527
- * Returns detailed information about inbound/outbound sync events,
2716
+ * Query inbound monitoring events for a specific integration.
2717
+ * Returns detailed information about inbound sync events from ERP systems,
2528
2718
  * including success rates, error breakdowns, and processing metrics.
2529
2719
  *
2530
2720
  */
2531
- 'queryMonitoringEvents'(
2532
- parameters?: Parameters<Paths.QueryMonitoringEvents.PathParameters> | null,
2533
- data?: Paths.QueryMonitoringEvents.RequestBody,
2721
+ 'queryInboundMonitoringEvents'(
2722
+ parameters?: Parameters<Paths.QueryInboundMonitoringEvents.PathParameters> | null,
2723
+ data?: Paths.QueryInboundMonitoringEvents.RequestBody,
2534
2724
  config?: AxiosRequestConfig
2535
- ): OperationResponse<Paths.QueryMonitoringEvents.Responses.$200>
2725
+ ): OperationResponse<Paths.QueryInboundMonitoringEvents.Responses.$200>
2536
2726
  /**
2537
2727
  * getMonitoringStats - getMonitoringStats
2538
2728
  *
2539
- * Get aggregated statistics for ERP sync monitoring events for a specific integration.
2540
- * Returns summary metrics like total events, success/error counts,
2541
- * and breakdowns by use case, direction, and sync type.
2729
+ * Get aggregated statistics for both inbound and outbound monitoring events for a specific integration.
2730
+ * Returns summary metrics for inbound (ERP sync) and outbound (webhook delivery) events,
2731
+ * including success/error counts and optional breakdowns.
2542
2732
  *
2543
2733
  */
2544
2734
  'getMonitoringStats'(
@@ -2571,6 +2761,19 @@ export interface OperationMethods {
2571
2761
  data?: Paths.QueryAccessLogs.RequestBody,
2572
2762
  config?: AxiosRequestConfig
2573
2763
  ): OperationResponse<Paths.QueryAccessLogs.Responses.$200>
2764
+ /**
2765
+ * queryOutboundMonitoringEvents - queryOutboundMonitoringEvents
2766
+ *
2767
+ * Query outbound monitoring events for a specific integration.
2768
+ * Returns detailed information about outbound event deliveries,
2769
+ * filtered by event_name (event_catalog_event) linked to the integration's outbound use cases.
2770
+ *
2771
+ */
2772
+ 'queryOutboundMonitoringEvents'(
2773
+ parameters?: Parameters<Paths.QueryOutboundMonitoringEvents.PathParameters> | null,
2774
+ data?: Paths.QueryOutboundMonitoringEvents.RequestBody,
2775
+ config?: AxiosRequestConfig
2776
+ ): OperationResponse<Paths.QueryOutboundMonitoringEvents.Responses.$200>
2574
2777
  }
2575
2778
 
2576
2779
  export interface PathsDictionary {
@@ -2893,28 +3096,28 @@ export interface PathsDictionary {
2893
3096
  config?: AxiosRequestConfig
2894
3097
  ): OperationResponse<Paths.DeleteIntegrationAppMapping.Responses.$200>
2895
3098
  }
2896
- ['/v1/integrations/{integrationId}/monitoring/events']: {
3099
+ ['/v1/integrations/{integrationId}/monitoring/inbound-events']: {
2897
3100
  /**
2898
- * queryMonitoringEvents - queryMonitoringEvents
3101
+ * queryInboundMonitoringEvents - queryInboundMonitoringEvents
2899
3102
  *
2900
- * Query ERP sync monitoring events for a specific integration.
2901
- * Returns detailed information about inbound/outbound sync events,
3103
+ * Query inbound monitoring events for a specific integration.
3104
+ * Returns detailed information about inbound sync events from ERP systems,
2902
3105
  * including success rates, error breakdowns, and processing metrics.
2903
3106
  *
2904
3107
  */
2905
3108
  'post'(
2906
- parameters?: Parameters<Paths.QueryMonitoringEvents.PathParameters> | null,
2907
- data?: Paths.QueryMonitoringEvents.RequestBody,
3109
+ parameters?: Parameters<Paths.QueryInboundMonitoringEvents.PathParameters> | null,
3110
+ data?: Paths.QueryInboundMonitoringEvents.RequestBody,
2908
3111
  config?: AxiosRequestConfig
2909
- ): OperationResponse<Paths.QueryMonitoringEvents.Responses.$200>
3112
+ ): OperationResponse<Paths.QueryInboundMonitoringEvents.Responses.$200>
2910
3113
  }
2911
3114
  ['/v1/integrations/{integrationId}/monitoring/stats']: {
2912
3115
  /**
2913
3116
  * getMonitoringStats - getMonitoringStats
2914
3117
  *
2915
- * Get aggregated statistics for ERP sync monitoring events for a specific integration.
2916
- * Returns summary metrics like total events, success/error counts,
2917
- * and breakdowns by use case, direction, and sync type.
3118
+ * Get aggregated statistics for both inbound and outbound monitoring events for a specific integration.
3119
+ * Returns summary metrics for inbound (ERP sync) and outbound (webhook delivery) events,
3120
+ * including success/error counts and optional breakdowns.
2918
3121
  *
2919
3122
  */
2920
3123
  'post'(
@@ -2952,6 +3155,21 @@ export interface PathsDictionary {
2952
3155
  config?: AxiosRequestConfig
2953
3156
  ): OperationResponse<Paths.QueryAccessLogs.Responses.$200>
2954
3157
  }
3158
+ ['/v1/integrations/{integrationId}/monitoring/outbound-events']: {
3159
+ /**
3160
+ * queryOutboundMonitoringEvents - queryOutboundMonitoringEvents
3161
+ *
3162
+ * Query outbound monitoring events for a specific integration.
3163
+ * Returns detailed information about outbound event deliveries,
3164
+ * filtered by event_name (event_catalog_event) linked to the integration's outbound use cases.
3165
+ *
3166
+ */
3167
+ 'post'(
3168
+ parameters?: Parameters<Paths.QueryOutboundMonitoringEvents.PathParameters> | null,
3169
+ data?: Paths.QueryOutboundMonitoringEvents.RequestBody,
3170
+ config?: AxiosRequestConfig
3171
+ ): OperationResponse<Paths.QueryOutboundMonitoringEvents.Responses.$200>
3172
+ }
2955
3173
  }
2956
3174
 
2957
3175
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
@@ -2975,6 +3193,7 @@ export type ErpUpdatesEventsV2Request = Components.Schemas.ErpUpdatesEventsV2Req
2975
3193
  export type ErrorResponseBase = Components.Schemas.ErrorResponseBase;
2976
3194
  export type GetMonitoringStatsRequest = Components.Schemas.GetMonitoringStatsRequest;
2977
3195
  export type InboundIntegrationEventConfiguration = Components.Schemas.InboundIntegrationEventConfiguration;
3196
+ export type InboundMonitoringEvent = Components.Schemas.InboundMonitoringEvent;
2978
3197
  export type InboundUseCase = Components.Schemas.InboundUseCase;
2979
3198
  export type InboundUseCaseHistoryEntry = Components.Schemas.InboundUseCaseHistoryEntry;
2980
3199
  export type Integration = Components.Schemas.Integration;
@@ -2992,18 +3211,19 @@ export type MappingSimulationResponse = Components.Schemas.MappingSimulationResp
2992
3211
  export type MappingSimulationV2Request = Components.Schemas.MappingSimulationV2Request;
2993
3212
  export type MeterReadingUpdate = Components.Schemas.MeterReadingUpdate;
2994
3213
  export type MeterUniqueIdsConfig = Components.Schemas.MeterUniqueIdsConfig;
2995
- export type MonitoringEvent = Components.Schemas.MonitoringEvent;
2996
3214
  export type MonitoringStats = Components.Schemas.MonitoringStats;
2997
3215
  export type OutboundConflict = Components.Schemas.OutboundConflict;
2998
3216
  export type OutboundIntegrationEventConfiguration = Components.Schemas.OutboundIntegrationEventConfiguration;
2999
3217
  export type OutboundMapping = Components.Schemas.OutboundMapping;
3218
+ export type OutboundMonitoringEvent = Components.Schemas.OutboundMonitoringEvent;
3000
3219
  export type OutboundStatusResponse = Components.Schemas.OutboundStatusResponse;
3001
3220
  export type OutboundUseCase = Components.Schemas.OutboundUseCase;
3002
3221
  export type OutboundUseCaseHistoryEntry = Components.Schemas.OutboundUseCaseHistoryEntry;
3003
3222
  export type OutboundUseCaseStatus = Components.Schemas.OutboundUseCaseStatus;
3004
3223
  export type QueryAccessLogsRequest = Components.Schemas.QueryAccessLogsRequest;
3005
3224
  export type QueryEventsRequest = Components.Schemas.QueryEventsRequest;
3006
- export type QueryMonitoringEventsRequest = Components.Schemas.QueryMonitoringEventsRequest;
3225
+ export type QueryInboundMonitoringEventsRequest = Components.Schemas.QueryInboundMonitoringEventsRequest;
3226
+ export type QueryOutboundMonitoringEventsRequest = Components.Schemas.QueryOutboundMonitoringEventsRequest;
3007
3227
  export type RelationConfig = Components.Schemas.RelationConfig;
3008
3228
  export type RelationItemConfig = Components.Schemas.RelationItemConfig;
3009
3229
  export type RelationRefItemConfig = Components.Schemas.RelationRefItemConfig;