@epilot/erp-integration-client 0.20.2 → 0.21.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.
package/dist/openapi.d.ts CHANGED
@@ -18,31 +18,13 @@ declare namespace Components {
18
18
  */
19
19
  event_id: string;
20
20
  /**
21
- * Processing status for the event (skipped indicates duplicate deduplication_id, ignored indicates unconfigured event)
21
+ * Processing status for the event (skipped indicates duplicate deduplication_id)
22
22
  */
23
- status: "success" | "error" | "skipped" | "ignored";
23
+ status: "success" | "error" | "skipped";
24
24
  message?: string;
25
25
  }[];
26
26
  }
27
27
  export type GetMonitoringStatsResponse = Schemas.MonitoringStats;
28
- export interface GetMonitoringTimeSeriesResponse {
29
- /**
30
- * The time bucket interval used for aggregation
31
- */
32
- interval: "5m" | "10m" | "30m" | "1h" | "3h" | "1d";
33
- /**
34
- * Start date of the time series
35
- */
36
- from_date: string; // date-time
37
- /**
38
- * End date of the time series
39
- */
40
- to_date: string; // date-time
41
- /**
42
- * List of time-series buckets with event counts
43
- */
44
- buckets: Schemas.TimeSeriesBucket[];
45
- }
46
28
  export type InternalServerError = Schemas.ErrorResponseBase;
47
29
  export type NotFound = Schemas.ErrorResponseBase;
48
30
  export interface QueryAccessLogsResponse {
@@ -89,11 +71,11 @@ declare namespace Components {
89
71
  */
90
72
  has_more?: boolean;
91
73
  }
92
- export interface QueryInboundMonitoringEventsResponse {
74
+ export interface QueryMonitoringEventsResponse {
93
75
  /**
94
- * List of inbound monitoring events
76
+ * List of monitoring events
95
77
  */
96
- data?: Schemas.InboundMonitoringEvent[];
78
+ data?: Schemas.MonitoringEvent[];
97
79
  /**
98
80
  * Cursor to fetch the next page. Null if no more results.
99
81
  */
@@ -106,23 +88,6 @@ declare namespace Components {
106
88
  */
107
89
  has_more?: boolean;
108
90
  }
109
- export interface QueryOutboundMonitoringEventsResponse {
110
- /**
111
- * List of outbound monitoring events
112
- */
113
- data?: Schemas.OutboundMonitoringEvent[];
114
- /**
115
- * Cursor to fetch the next page. Null if no more results.
116
- */
117
- next_cursor?: {
118
- created_at?: string; // date-time
119
- event_id?: string;
120
- } | null;
121
- /**
122
- * Indicates if more results are available
123
- */
124
- has_more?: boolean;
125
- }
126
91
  export interface ReplayEventsResponse {
127
92
  /**
128
93
  * List of event IDs for which replay was requested
@@ -211,10 +176,6 @@ declare namespace Components {
211
176
  * Optional description of the integration
212
177
  */
213
178
  description?: string;
214
- /**
215
- * List of access token IDs to associate with this integration
216
- */
217
- access_token_ids?: string[];
218
179
  }
219
180
  export interface CreateOutboundUseCaseRequest {
220
181
  /**
@@ -399,33 +360,6 @@ declare namespace Components {
399
360
  */
400
361
  deduplication_id?: string; // ^[a-zA-Z0-9_-]+$
401
362
  }
402
- export interface ErpEventV3 {
403
- /**
404
- * Name of the event (e.g., business_partner, contract_account). Corresponds to the "Event Name" from the integration UI. Replaces object_type from V2.
405
- */
406
- event_name: string;
407
- /**
408
- * Timestamp when the event occurred
409
- */
410
- timestamp: string; // date-time
411
- /**
412
- * Format of the payload data
413
- */
414
- format: "json" | "xml";
415
- /**
416
- * The object data payload - can be either a serialized string or a direct JSON object
417
- */
418
- payload: /* The object data payload - can be either a serialized string or a direct JSON object */ string | {
419
- [name: string]: any;
420
- };
421
- /**
422
- * Optional unique identifier for idempotency - prevents duplicate processing of the same event within 24 hours in context of the same integration. Must contain only alphanumeric characters, hyphens, and underscores.
423
- *
424
- * example:
425
- * evt-2025-05-01-12345-bp
426
- */
427
- deduplication_id?: string; // ^[a-zA-Z0-9_-]+$
428
- }
429
363
  export interface ErpUpdatesEventsV2Request {
430
364
  /**
431
365
  * UUID that identifies the integration configuration to use
@@ -440,20 +374,6 @@ declare namespace Components {
440
374
  */
441
375
  events: ErpEvent[];
442
376
  }
443
- export interface ErpUpdatesEventsV3Request {
444
- /**
445
- * UUID that identifies the integration configuration to use
446
- */
447
- integration_id: string; // uuid
448
- /**
449
- * Optional ID that identifies the specific request for debugging purposes
450
- */
451
- correlation_id?: string;
452
- /**
453
- * List of ERP events to process
454
- */
455
- events: ErpEventV3[];
456
- }
457
377
  export interface ErrorResponseBase {
458
378
  /**
459
379
  * Computer-readable error code
@@ -465,6 +385,14 @@ declare namespace Components {
465
385
  message?: string;
466
386
  }
467
387
  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";
468
396
  /**
469
397
  * Start date for statistics period (inclusive)
470
398
  * example:
@@ -478,49 +406,14 @@ declare namespace Components {
478
406
  */
479
407
  to_date?: string; // date-time
480
408
  /**
481
- * Fields to group inbound statistics by
409
+ * Fields to group statistics by
482
410
  * example:
483
411
  * [
484
- * "use_case_id",
412
+ * "direction",
485
413
  * "status"
486
414
  * ]
487
415
  */
488
- inbound_group_by?: ("use_case_id" | "sync_type" | "status" | "error_category" | "object_type" | "event_name" | "date")[];
489
- /**
490
- * Fields to group outbound statistics by
491
- * example:
492
- * [
493
- * "event_name",
494
- * "status"
495
- * ]
496
- */
497
- outbound_group_by?: ("event_name" | "status" | "webhook_config_id" | "date")[];
498
- }
499
- export interface GetMonitoringTimeSeriesRequest {
500
- /**
501
- * Start date for the time series (inclusive)
502
- * example:
503
- * 2025-01-01T00:00:00Z
504
- */
505
- from_date: string; // date-time
506
- /**
507
- * End date for the time series (inclusive). Defaults to current time if not specified.
508
- * example:
509
- * 2025-01-31T23:59:59Z
510
- */
511
- to_date?: string; // date-time
512
- /**
513
- * The time bucket interval for aggregation
514
- * example:
515
- * 1h
516
- */
517
- interval: "5m" | "10m" | "30m" | "1h" | "3h" | "1d";
518
- /**
519
- * Filter by event direction. Defaults to both.
520
- * example:
521
- * both
522
- */
523
- direction?: "inbound" | "outbound" | "both";
416
+ group_by?: ("direction" | "use_case_id" | "sync_type" | "status" | "error_category" | "object_type" | "date")[];
524
417
  }
525
418
  /**
526
419
  * Configuration for inbound use cases (ERP to epilot)
@@ -535,68 +428,6 @@ declare namespace Components {
535
428
  */
536
429
  meter_readings?: IntegrationMeterReading[];
537
430
  }
538
- export interface InboundMonitoringEvent {
539
- /**
540
- * Organization ID
541
- */
542
- org_id: string;
543
- /**
544
- * Unique event identifier
545
- */
546
- event_id: string;
547
- /**
548
- * Correlation ID for tracing related events
549
- */
550
- correlation_id?: string | null;
551
- /**
552
- * Integration ID
553
- */
554
- integration_id?: string | null;
555
- /**
556
- * Use case ID
557
- */
558
- use_case_id?: string | null;
559
- /**
560
- * Type of event (optional for V3 events)
561
- */
562
- event_type?: "CREATE" | "UPDATE" | "DELETE" | "TRIGGER";
563
- /**
564
- * Type of object being synced (e.g., 'contract', 'meter')
565
- */
566
- object_type: string;
567
- /**
568
- * Type of sync operation
569
- */
570
- sync_type: "entity" | "meter_reading" | "webhook" | "api_deprecation";
571
- /**
572
- * Processing status
573
- */
574
- status: "success" | "error" | "skipped" | "warning";
575
- /**
576
- * Error code (when status=error)
577
- */
578
- error_code?: string | null;
579
- /**
580
- * Error message (when status=error)
581
- */
582
- error_message?: string | null;
583
- /**
584
- * Error category (when status=error)
585
- */
586
- error_category?: "validation" | "configuration" | "downstream_api" | "timeout" | "system";
587
- /**
588
- * Processing duration in milliseconds
589
- */
590
- processing_duration_ms?: number | null;
591
- /**
592
- * When the event was received
593
- */
594
- received_at: string; // date-time
595
- /**
596
- * When processing completed
597
- */
598
- completed_at: string; // date-time
599
- }
600
431
  export interface InboundUseCase {
601
432
  /**
602
433
  * Unique identifier for the use case
@@ -689,10 +520,6 @@ declare namespace Components {
689
520
  * Optional description of the integration
690
521
  */
691
522
  description?: string;
692
- /**
693
- * List of access token IDs associated with this integration
694
- */
695
- access_token_ids?: string[];
696
523
  /**
697
524
  * ISO-8601 timestamp when the integration was created
698
525
  */
@@ -756,23 +583,6 @@ declare namespace Components {
756
583
  * Controls whether this entity mapping should be processed. Can be a boolean or a JSONata expression (string) that evaluates to a boolean.
757
584
  */
758
585
  enabled?: /* Controls whether this entity mapping should be processed. Can be a boolean or a JSONata expression (string) that evaluates to a boolean. */ boolean | string;
759
- /**
760
- * Operation mode for entity mapping:
761
- * - 'upsert': Create or update the entity (default)
762
- * - 'delete': Soft delete the entity (marks as deleted)
763
- * - 'purge': Hard delete the entity (permanent removal)
764
- * - 'upsert-prune-scope-purge': Upsert entities from array, then purge entities in scope that weren't upserted
765
- * - 'upsert-prune-scope-delete': Upsert entities from array, then soft delete entities in scope that weren't upserted
766
- *
767
- */
768
- mode?: "upsert" | "delete" | "purge" | "upsert-prune-scope-purge" | "upsert-prune-scope-delete";
769
- scope?: /**
770
- * Scope configuration for upsert-prune-scope modes.
771
- * Defines how to find entities that should be pruned if not in the upsert payload.
772
- * The scope is resolved against the original event payload (not individual array items).
773
- *
774
- */
775
- PruneScopeConfig;
776
586
  /**
777
587
  * Field mapping definitions
778
588
  */
@@ -814,6 +624,35 @@ declare namespace Components {
814
624
  */
815
625
  RelationRefsConfig;
816
626
  }
627
+ /**
628
+ * Environment configuration for an integration with masked secrets
629
+ */
630
+ export interface IntegrationEnvironment {
631
+ /**
632
+ * Parent integration ID
633
+ */
634
+ integrationId: string; // uuid
635
+ /**
636
+ * Environment values as key-value pairs.
637
+ * Secret values are masked as "****" in responses.
638
+ *
639
+ */
640
+ values: {
641
+ [name: string]: string;
642
+ };
643
+ /**
644
+ * List of keys that contain secret values (masked in values field)
645
+ */
646
+ secret_keys?: string[];
647
+ /**
648
+ * ISO-8601 timestamp when the environment was created
649
+ */
650
+ created_at?: string | null; // date-time
651
+ /**
652
+ * ISO-8601 timestamp when the environment was last updated
653
+ */
654
+ updated_at?: string | null; // date-time
655
+ }
817
656
  export interface IntegrationFieldV1 {
818
657
  /**
819
658
  * Target entity slug
@@ -889,10 +728,6 @@ declare namespace Components {
889
728
  * Optional description of the integration
890
729
  */
891
730
  description?: string;
892
- /**
893
- * List of access token IDs associated with this integration
894
- */
895
- access_token_ids?: string[];
896
731
  /**
897
732
  * All use cases belonging to this integration
898
733
  */
@@ -966,7 +801,7 @@ declare namespace Components {
966
801
  };
967
802
  };
968
803
  /**
969
- * Meter reading attributes. Required: external_id, timestamp, source, value. `source` must be one of: ECP, ERP, 360, journey-submission. `reason` (optional) must be one of: regular, irregular, last, first, meter_change, contract_change, meter_adjustment (or empty/null).
804
+ * Meter reading attributes (external_id, timestamp, source, value, etc.)
970
805
  */
971
806
  attributes: {
972
807
  [name: string]: any;
@@ -981,85 +816,115 @@ declare namespace Components {
981
816
  ...RelationUniqueIdField[]
982
817
  ];
983
818
  }
819
+ export interface MonitoringEvent {
820
+ /**
821
+ * Organization ID
822
+ */
823
+ org_id: string;
824
+ /**
825
+ * Unique event identifier
826
+ */
827
+ event_id: string;
828
+ /**
829
+ * Correlation ID for tracing related events
830
+ */
831
+ correlation_id?: string | null;
832
+ /**
833
+ * Integration ID
834
+ */
835
+ integration_id?: string | null;
836
+ /**
837
+ * Use case ID
838
+ */
839
+ use_case_id?: string | null;
840
+ /**
841
+ * Sync direction
842
+ */
843
+ direction: "inbound" | "outbound";
844
+ /**
845
+ * Type of event
846
+ */
847
+ event_type: "CREATE" | "UPDATE" | "DELETE" | "TRIGGER";
848
+ /**
849
+ * Type of object being synced (e.g., 'contract', 'meter')
850
+ */
851
+ object_type: string;
852
+ /**
853
+ * Type of sync operation
854
+ */
855
+ sync_type: "entity" | "meter_reading" | "webhook";
856
+ /**
857
+ * Processing status
858
+ */
859
+ status: "success" | "error" | "skipped";
860
+ /**
861
+ * Error code (when status=error)
862
+ */
863
+ error_code?: string | null;
864
+ /**
865
+ * Error message (when status=error)
866
+ */
867
+ error_message?: string | null;
868
+ /**
869
+ * Error category (when status=error)
870
+ */
871
+ error_category?: "validation" | "configuration" | "downstream_api" | "timeout" | "system" | "webhook_delivery";
872
+ /**
873
+ * Processing duration in milliseconds
874
+ */
875
+ processing_duration_ms?: number | null;
876
+ /**
877
+ * Target URL for outbound requests
878
+ */
879
+ target_url?: string | null;
880
+ /**
881
+ * HTTP status code from target (outbound only)
882
+ */
883
+ http_status_code?: number | null;
884
+ /**
885
+ * When the event was received
886
+ */
887
+ received_at: string; // date-time
888
+ /**
889
+ * When processing completed
890
+ */
891
+ completed_at: string; // date-time
892
+ }
984
893
  export interface MonitoringStats {
985
894
  /**
986
- * Statistics for inbound (ERP sync) events
895
+ * Total number of events in the period
987
896
  */
988
- inbound: {
989
- /**
990
- * Total number of inbound events in the period
991
- */
992
- total_events: number;
993
- /**
994
- * Total number of unique correlation IDs
995
- */
996
- total_correlations?: number;
997
- /**
998
- * Number of successful events
999
- */
1000
- success_count: number;
1001
- /**
1002
- * Number of failed events
1003
- */
1004
- error_count: number;
1005
- /**
1006
- * Number of skipped events
1007
- */
1008
- skipped_count: number;
1009
- /**
1010
- * Number of warning events
1011
- */
1012
- warning_count?: number;
1013
- /**
1014
- * Success rate as percentage (0-100)
1015
- */
1016
- success_rate?: number; // float
1017
- /**
1018
- * Timestamp of the most recent error
1019
- */
1020
- last_error_at?: string | null; // date-time
1021
- /**
1022
- * Statistics breakdown by requested inbound_group_by fields
1023
- */
1024
- breakdown?: {
1025
- [name: string]: any;
1026
- }[];
1027
- };
897
+ total_events: number;
1028
898
  /**
1029
- * Statistics for outbound (webhook delivery) events
899
+ * Total number of unique correlation IDs (a correlation_id groups multiple event_ids)
1030
900
  */
1031
- outbound: {
1032
- /**
1033
- * Total number of outbound events in the period
1034
- */
1035
- total_events: number;
1036
- /**
1037
- * Number of successful deliveries
1038
- */
1039
- success_count: number;
1040
- /**
1041
- * Number of failed deliveries
1042
- */
1043
- error_count: number;
1044
- /**
1045
- * Number of pending deliveries
1046
- */
1047
- pending_count?: number;
1048
- /**
1049
- * Success rate as percentage (0-100)
1050
- */
1051
- success_rate?: number; // float
1052
- /**
1053
- * Timestamp of the most recent error
1054
- */
1055
- last_error_at?: string | null; // date-time
1056
- /**
1057
- * Statistics breakdown by requested outbound_group_by fields
1058
- */
1059
- breakdown?: {
1060
- [name: string]: any;
1061
- }[];
1062
- };
901
+ total_correlations: number;
902
+ /**
903
+ * Number of successful events
904
+ */
905
+ success_count: number;
906
+ /**
907
+ * Number of failed events
908
+ */
909
+ error_count: number;
910
+ /**
911
+ * Number of skipped events
912
+ */
913
+ skipped_count: number;
914
+ /**
915
+ * Success rate as percentage (0-100)
916
+ */
917
+ success_rate?: number; // float
918
+ /**
919
+ * Timestamp of the most recent error
920
+ */
921
+ last_error_at?: string | null; // date-time
922
+ /**
923
+ * Statistics breakdown by requested group_by fields
924
+ */
925
+ breakdown?: {
926
+ [name: string]: any;
927
+ }[];
1063
928
  }
1064
929
  export interface OutboundConflict {
1065
930
  /**
@@ -1132,68 +997,6 @@ declare namespace Components {
1132
997
  */
1133
998
  updated_at?: string; // date-time
1134
999
  }
1135
- export interface OutboundMonitoringEvent {
1136
- /**
1137
- * Organization ID
1138
- */
1139
- org_id: string;
1140
- /**
1141
- * Unique event identifier
1142
- */
1143
- event_id: string;
1144
- /**
1145
- * Event name (event_catalog_event)
1146
- */
1147
- event_name: string;
1148
- /**
1149
- * Delivery status
1150
- */
1151
- status: "succeeded" | "failed" | "pending";
1152
- /**
1153
- * Target URL
1154
- */
1155
- url?: string;
1156
- /**
1157
- * HTTP method used (e.g., POST)
1158
- */
1159
- http_method?: string;
1160
- /**
1161
- * HTTP response details (status_code, message, headers)
1162
- */
1163
- http_response?: {
1164
- [name: string]: any;
1165
- };
1166
- /**
1167
- * Webhook configuration ID
1168
- */
1169
- webhook_config_id?: string;
1170
- /**
1171
- * Additional metadata (webhook_id, organization details, correlation_id, etc.)
1172
- */
1173
- metadata?: {
1174
- [name: string]: any;
1175
- };
1176
- /**
1177
- * Execution context (execution_arn, state_machine_arn, etc.)
1178
- */
1179
- execution_context?: {
1180
- [name: string]: any;
1181
- };
1182
- /**
1183
- * Payload that was sent
1184
- */
1185
- payload?: {
1186
- [name: string]: any;
1187
- };
1188
- /**
1189
- * When the event was created
1190
- */
1191
- created_at: string; // date-time
1192
- /**
1193
- * When the event was last updated
1194
- */
1195
- updated_at?: string; // date-time
1196
- }
1197
1000
  export interface OutboundStatusResponse {
1198
1001
  useCases: OutboundUseCaseStatus[];
1199
1002
  }
@@ -1309,49 +1112,13 @@ declare namespace Components {
1309
1112
  */
1310
1113
  conflicts?: OutboundConflict[];
1311
1114
  }
1312
- /**
1313
- * Scope configuration for upsert-prune-scope modes.
1314
- * Defines how to find entities that should be pruned if not in the upsert payload.
1315
- * The scope is resolved against the original event payload (not individual array items).
1316
- *
1317
- */
1318
- export interface PruneScopeConfig {
1319
- /**
1320
- * Scope mode for finding entities to prune:
1321
- * - 'relations': Find scope by looking at all entities related to a specific entity (both direct and reverse relations)
1322
- * - 'query': Find scope entities directly via query parameters
1323
- *
1324
- */
1325
- scope_mode: "relations" | "query";
1326
- /**
1327
- * For 'relations' mode: The schema of the entity to find (e.g., 'billing_account').
1328
- * Not used for 'query' mode.
1329
- *
1330
- */
1331
- schema?: string;
1332
- /**
1333
- * For 'relations' mode: How to identify the scope entity from the payload.
1334
- * Not used for 'query' mode.
1335
- *
1336
- */
1337
- unique_ids?: RelationUniqueIdField[];
1338
- /**
1339
- * For 'query' mode: Direct query parameters to find scope entities.
1340
- * Not used for 'relations' or 'reverse-relations' modes.
1341
- *
1342
- */
1343
- query?: RelationUniqueIdField[];
1344
- }
1345
1115
  export interface QueryAccessLogsRequest {
1346
1116
  /**
1347
- * Filter by a specific access token ID (e.g., 'api_5ZugdRXasLfWBypHi93Fk').
1348
- * Must be one of the access_token_ids linked to the integration.
1349
- * If omitted, returns logs for all access tokens linked to the integration.
1350
- *
1117
+ * Filter by access token ID (e.g., 'api_5ZugdRXasLfWBypHi93Fk')
1351
1118
  * example:
1352
1119
  * api_5ZugdRXasLfWBypHi93Fk
1353
1120
  */
1354
- token_id?: string;
1121
+ token_id: string;
1355
1122
  /**
1356
1123
  * Filter by service name (e.g., 'entity', 'metering', 'submission-api')
1357
1124
  * example:
@@ -1423,10 +1190,6 @@ declare namespace Components {
1423
1190
  * Filter by object type
1424
1191
  */
1425
1192
  object_type?: string;
1426
- /**
1427
- * Filter by event name (alias for object_type)
1428
- */
1429
- event_name?: string;
1430
1193
  /**
1431
1194
  * Maximum number of results to return
1432
1195
  * example:
@@ -1451,11 +1214,15 @@ declare namespace Components {
1451
1214
  event_id?: string;
1452
1215
  };
1453
1216
  }
1454
- export interface QueryInboundMonitoringEventsRequest {
1217
+ export interface QueryMonitoringEventsRequest {
1455
1218
  /**
1456
1219
  * Filter by use case ID
1457
1220
  */
1458
1221
  use_case_id?: string; // uuid
1222
+ /**
1223
+ * Filter by sync direction
1224
+ */
1225
+ direction?: "inbound" | "outbound";
1459
1226
  /**
1460
1227
  * Filter by event type
1461
1228
  */
@@ -1463,15 +1230,15 @@ declare namespace Components {
1463
1230
  /**
1464
1231
  * Filter by sync type
1465
1232
  */
1466
- sync_type?: "entity" | "meter_reading" | "webhook" | "api_deprecation";
1233
+ sync_type?: "entity" | "meter_reading" | "webhook";
1467
1234
  /**
1468
1235
  * Filter by processing status
1469
1236
  */
1470
- status?: "success" | "error" | "skipped" | "warning";
1237
+ status?: "success" | "error" | "skipped";
1471
1238
  /**
1472
1239
  * Filter by error category (only applicable when status=error)
1473
1240
  */
1474
- error_category?: "validation" | "configuration" | "downstream_api" | "timeout" | "system";
1241
+ error_category?: "validation" | "configuration" | "downstream_api" | "timeout" | "system" | "webhook_delivery";
1475
1242
  /**
1476
1243
  * Filter by correlation ID
1477
1244
  */
@@ -1480,10 +1247,6 @@ declare namespace Components {
1480
1247
  * Filter by object type (e.g., 'contract', 'meter')
1481
1248
  */
1482
1249
  object_type?: string;
1483
- /**
1484
- * Filter by event name (alias for object_type)
1485
- */
1486
- event_name?: string;
1487
1250
  /**
1488
1251
  * Filter by event ID to find a specific event
1489
1252
  */
@@ -1520,53 +1283,6 @@ declare namespace Components {
1520
1283
  event_id?: string;
1521
1284
  };
1522
1285
  }
1523
- export interface QueryOutboundMonitoringEventsRequest {
1524
- /**
1525
- * Filter by event name (event_catalog_event). If not specified, returns events for all linked event names in the integration's outbound use cases.
1526
- * example:
1527
- * automation_flow_target
1528
- */
1529
- event_name?: string;
1530
- /**
1531
- * Filter by delivery status
1532
- */
1533
- status?: "succeeded" | "failed" | "pending";
1534
- /**
1535
- * Filter by webhook configuration ID
1536
- */
1537
- webhook_config_id?: string;
1538
- /**
1539
- * Filter events from this date (inclusive)
1540
- * example:
1541
- * 2025-01-01T00:00:00Z
1542
- */
1543
- from_date?: string; // date-time
1544
- /**
1545
- * Filter events until this date (inclusive)
1546
- * example:
1547
- * 2025-01-31T23:59:59Z
1548
- */
1549
- to_date?: string; // date-time
1550
- /**
1551
- * Maximum number of results to return
1552
- * example:
1553
- * 50
1554
- */
1555
- limit?: number;
1556
- /**
1557
- * Cursor for pagination
1558
- */
1559
- cursor?: {
1560
- /**
1561
- * Timestamp from the last event in the previous page
1562
- */
1563
- created_at?: string; // date-time
1564
- /**
1565
- * Event ID from the last event in the previous page
1566
- */
1567
- event_id?: string;
1568
- };
1569
- }
1570
1286
  export interface RelationConfig {
1571
1287
  /**
1572
1288
  * Relation operation:
@@ -1821,31 +1537,6 @@ declare namespace Components {
1821
1537
  */
1822
1538
  overwrite?: boolean;
1823
1539
  }
1824
- export interface TimeSeriesBucket {
1825
- /**
1826
- * The start timestamp of the bucket
1827
- */
1828
- timestamp: string; // date-time
1829
- /**
1830
- * Inbound event counts for this bucket. Null when direction is outbound.
1831
- */
1832
- inbound?: {
1833
- success_count?: number;
1834
- error_count?: number;
1835
- warning_count?: number;
1836
- skipped_count?: number;
1837
- total_count?: number;
1838
- } | null;
1839
- /**
1840
- * Outbound event counts for this bucket. Null when direction is inbound.
1841
- */
1842
- outbound?: {
1843
- success_count?: number;
1844
- error_count?: number;
1845
- pending_count?: number;
1846
- total_count?: number;
1847
- } | null;
1848
- }
1849
1540
  export interface TriggerErpActionRequest {
1850
1541
  /**
1851
1542
  * Unique identifier of the current automation execution
@@ -1919,6 +1610,31 @@ declare namespace Components {
1919
1610
  type?: "inbound";
1920
1611
  configuration?: /* Configuration for inbound use cases (ERP to epilot) */ InboundIntegrationEventConfiguration;
1921
1612
  }
1613
+ /**
1614
+ * Request to update environment configuration.
1615
+ * Supports partial updates - only provided values are modified.
1616
+ *
1617
+ */
1618
+ export interface UpdateIntegrationEnvironmentRequest {
1619
+ /**
1620
+ * Plain text environment values to update.
1621
+ * Set a value to null to clear it.
1622
+ *
1623
+ */
1624
+ values?: {
1625
+ [name: string]: string | null;
1626
+ };
1627
+ /**
1628
+ * Secret environment values to update.
1629
+ * These are stored securely and masked in GET responses.
1630
+ * Set a value to null to clear it.
1631
+ * Omit a secret to keep its existing value.
1632
+ *
1633
+ */
1634
+ secrets?: {
1635
+ [name: string]: string | null;
1636
+ };
1637
+ }
1922
1638
  export interface UpdateIntegrationRequest {
1923
1639
  /**
1924
1640
  * Integration name
@@ -1928,10 +1644,6 @@ declare namespace Components {
1928
1644
  * Optional description of the integration
1929
1645
  */
1930
1646
  description?: string;
1931
- /**
1932
- * List of access token IDs to associate with this integration
1933
- */
1934
- access_token_ids?: string[];
1935
1647
  }
1936
1648
  export interface UpdateOutboundUseCaseRequest {
1937
1649
  /**
@@ -1981,10 +1693,6 @@ declare namespace Components {
1981
1693
  * Optional description of the integration
1982
1694
  */
1983
1695
  description?: string;
1984
- /**
1985
- * List of access token IDs to associate with this integration
1986
- */
1987
- access_token_ids?: string[];
1988
1696
  /**
1989
1697
  * Full list of use cases (declarative). This replaces ALL existing use cases.
1990
1698
  * - Use cases with an `id` field matching an existing use case will be updated
@@ -2230,7 +1938,7 @@ declare namespace Paths {
2230
1938
  export type $500 = Components.Responses.InternalServerError;
2231
1939
  }
2232
1940
  }
2233
- namespace GetIntegrationV2 {
1941
+ namespace GetIntegrationEnvironment {
2234
1942
  namespace Parameters {
2235
1943
  export type IntegrationId = string; // uuid
2236
1944
  }
@@ -2238,39 +1946,38 @@ declare namespace Paths {
2238
1946
  integrationId: Parameters.IntegrationId /* uuid */;
2239
1947
  }
2240
1948
  namespace Responses {
2241
- export type $200 = /* Integration with embedded use cases for atomic CRUD operations */ Components.Schemas.IntegrationWithUseCases;
1949
+ export type $200 = /* Environment configuration for an integration with masked secrets */ Components.Schemas.IntegrationEnvironment;
2242
1950
  export type $401 = Components.Responses.Unauthorized;
2243
1951
  export interface $404 {
2244
1952
  }
2245
1953
  export type $500 = Components.Responses.InternalServerError;
2246
1954
  }
2247
1955
  }
2248
- namespace GetMonitoringStats {
1956
+ namespace GetIntegrationV2 {
2249
1957
  namespace Parameters {
2250
1958
  export type IntegrationId = string; // uuid
2251
1959
  }
2252
1960
  export interface PathParameters {
2253
1961
  integrationId: Parameters.IntegrationId /* uuid */;
2254
1962
  }
2255
- export type RequestBody = Components.Schemas.GetMonitoringStatsRequest;
2256
1963
  namespace Responses {
2257
- export type $200 = Components.Responses.GetMonitoringStatsResponse;
2258
- export type $400 = Components.Responses.BadRequest;
1964
+ export type $200 = /* Integration with embedded use cases for atomic CRUD operations */ Components.Schemas.IntegrationWithUseCases;
2259
1965
  export type $401 = Components.Responses.Unauthorized;
2260
- export type $404 = Components.Responses.NotFound;
1966
+ export interface $404 {
1967
+ }
2261
1968
  export type $500 = Components.Responses.InternalServerError;
2262
1969
  }
2263
1970
  }
2264
- namespace GetMonitoringTimeSeries {
1971
+ namespace GetMonitoringStats {
2265
1972
  namespace Parameters {
2266
1973
  export type IntegrationId = string; // uuid
2267
1974
  }
2268
1975
  export interface PathParameters {
2269
1976
  integrationId: Parameters.IntegrationId /* uuid */;
2270
1977
  }
2271
- export type RequestBody = Components.Schemas.GetMonitoringTimeSeriesRequest;
1978
+ export type RequestBody = Components.Schemas.GetMonitoringStatsRequest;
2272
1979
  namespace Responses {
2273
- export type $200 = Components.Responses.GetMonitoringTimeSeriesResponse;
1980
+ export type $200 = Components.Responses.GetMonitoringStatsResponse;
2274
1981
  export type $400 = Components.Responses.BadRequest;
2275
1982
  export type $401 = Components.Responses.Unauthorized;
2276
1983
  export type $404 = Components.Responses.NotFound;
@@ -2400,6 +2107,7 @@ declare namespace Paths {
2400
2107
  export type $200 = Components.Responses.ERPUpdatesResponse;
2401
2108
  export type $400 = Components.Responses.BadRequest;
2402
2109
  export type $401 = Components.Responses.Unauthorized;
2110
+ export type $422 = Components.Responses.ERPUpdatesResponse;
2403
2111
  export type $500 = Components.Responses.InternalServerError;
2404
2112
  }
2405
2113
  }
@@ -2409,15 +2117,7 @@ declare namespace Paths {
2409
2117
  export type $200 = Components.Responses.ERPUpdatesResponse;
2410
2118
  export type $400 = Components.Responses.BadRequest;
2411
2119
  export type $401 = Components.Responses.Unauthorized;
2412
- export type $500 = Components.Responses.InternalServerError;
2413
- }
2414
- }
2415
- namespace ProcessErpUpdatesEventsV3 {
2416
- export type RequestBody = Components.Schemas.ErpUpdatesEventsV3Request;
2417
- namespace Responses {
2418
- export type $200 = Components.Responses.ERPUpdatesResponse;
2419
- export type $400 = Components.Responses.BadRequest;
2420
- export type $401 = Components.Responses.Unauthorized;
2120
+ export type $422 = Components.Responses.ERPUpdatesResponse;
2421
2121
  export type $500 = Components.Responses.InternalServerError;
2422
2122
  }
2423
2123
  }
@@ -2453,32 +2153,16 @@ declare namespace Paths {
2453
2153
  export type $500 = Components.Responses.InternalServerError;
2454
2154
  }
2455
2155
  }
2456
- namespace QueryInboundMonitoringEvents {
2457
- namespace Parameters {
2458
- export type IntegrationId = string; // uuid
2459
- }
2460
- export interface PathParameters {
2461
- integrationId: Parameters.IntegrationId /* uuid */;
2462
- }
2463
- export type RequestBody = Components.Schemas.QueryInboundMonitoringEventsRequest;
2464
- namespace Responses {
2465
- export type $200 = Components.Responses.QueryInboundMonitoringEventsResponse;
2466
- export type $400 = Components.Responses.BadRequest;
2467
- export type $401 = Components.Responses.Unauthorized;
2468
- export type $404 = Components.Responses.NotFound;
2469
- export type $500 = Components.Responses.InternalServerError;
2470
- }
2471
- }
2472
- namespace QueryOutboundMonitoringEvents {
2156
+ namespace QueryMonitoringEvents {
2473
2157
  namespace Parameters {
2474
2158
  export type IntegrationId = string; // uuid
2475
2159
  }
2476
2160
  export interface PathParameters {
2477
2161
  integrationId: Parameters.IntegrationId /* uuid */;
2478
2162
  }
2479
- export type RequestBody = Components.Schemas.QueryOutboundMonitoringEventsRequest;
2163
+ export type RequestBody = Components.Schemas.QueryMonitoringEventsRequest;
2480
2164
  namespace Responses {
2481
- export type $200 = Components.Responses.QueryOutboundMonitoringEventsResponse;
2165
+ export type $200 = Components.Responses.QueryMonitoringEventsResponse;
2482
2166
  export type $400 = Components.Responses.BadRequest;
2483
2167
  export type $401 = Components.Responses.Unauthorized;
2484
2168
  export type $404 = Components.Responses.NotFound;
@@ -2573,6 +2257,28 @@ declare namespace Paths {
2573
2257
  export type $500 = Components.Responses.InternalServerError;
2574
2258
  }
2575
2259
  }
2260
+ namespace UpdateIntegrationEnvironment {
2261
+ namespace Parameters {
2262
+ export type IntegrationId = string; // uuid
2263
+ }
2264
+ export interface PathParameters {
2265
+ integrationId: Parameters.IntegrationId /* uuid */;
2266
+ }
2267
+ export type RequestBody = /**
2268
+ * Request to update environment configuration.
2269
+ * Supports partial updates - only provided values are modified.
2270
+ *
2271
+ */
2272
+ Components.Schemas.UpdateIntegrationEnvironmentRequest;
2273
+ namespace Responses {
2274
+ export type $200 = /* Environment configuration for an integration with masked secrets */ Components.Schemas.IntegrationEnvironment;
2275
+ export type $400 = Components.Responses.BadRequest;
2276
+ export type $401 = Components.Responses.Unauthorized;
2277
+ export interface $404 {
2278
+ }
2279
+ export type $500 = Components.Responses.InternalServerError;
2280
+ }
2281
+ }
2576
2282
  namespace UpdateIntegrationV2 {
2577
2283
  namespace Parameters {
2578
2284
  export type IntegrationId = string; // uuid
@@ -2661,19 +2367,6 @@ export interface OperationMethods {
2661
2367
  data?: Paths.ProcessErpUpdatesEventsV2.RequestBody,
2662
2368
  config?: AxiosRequestConfig
2663
2369
  ): OperationResponse<Paths.ProcessErpUpdatesEventsV2.Responses.$200>
2664
- /**
2665
- * processErpUpdatesEventsV3 - processErpUpdatesEventsV3
2666
- *
2667
- * Handles updates from ERP systems using integration_id directly.
2668
- * This is the v3 version that removes the unused event_type field and renames object_type to event_name
2669
- * to align with the integration UI naming.
2670
- *
2671
- */
2672
- 'processErpUpdatesEventsV3'(
2673
- parameters?: Parameters<UnknownParamsObject> | null,
2674
- data?: Paths.ProcessErpUpdatesEventsV3.RequestBody,
2675
- config?: AxiosRequestConfig
2676
- ): OperationResponse<Paths.ProcessErpUpdatesEventsV3.Responses.$200>
2677
2370
  /**
2678
2371
  * simulateMappingV2 - simulateMappingV2
2679
2372
  *
@@ -2894,6 +2587,33 @@ export interface OperationMethods {
2894
2587
  data?: any,
2895
2588
  config?: AxiosRequestConfig
2896
2589
  ): OperationResponse<Paths.DeleteIntegrationV2.Responses.$200>
2590
+ /**
2591
+ * getIntegrationEnvironment - getIntegrationEnvironment
2592
+ *
2593
+ * Retrieve the environment configuration for an integration.
2594
+ * Secret values are masked and replaced with "****" to prevent exposure.
2595
+ *
2596
+ */
2597
+ 'getIntegrationEnvironment'(
2598
+ parameters?: Parameters<Paths.GetIntegrationEnvironment.PathParameters> | null,
2599
+ data?: any,
2600
+ config?: AxiosRequestConfig
2601
+ ): OperationResponse<Paths.GetIntegrationEnvironment.Responses.$200>
2602
+ /**
2603
+ * updateIntegrationEnvironment - updateIntegrationEnvironment
2604
+ *
2605
+ * Update the environment configuration for an integration.
2606
+ * Supports partial updates - only provided values are modified.
2607
+ * Secret values can be updated by providing the actual value in the secrets field.
2608
+ * To keep existing secrets, omit them from the request.
2609
+ * To clear a value, set it to null.
2610
+ *
2611
+ */
2612
+ 'updateIntegrationEnvironment'(
2613
+ parameters?: Parameters<Paths.UpdateIntegrationEnvironment.PathParameters> | null,
2614
+ data?: Paths.UpdateIntegrationEnvironment.RequestBody,
2615
+ config?: AxiosRequestConfig
2616
+ ): OperationResponse<Paths.UpdateIntegrationEnvironment.Responses.$200>
2897
2617
  /**
2898
2618
  * setIntegrationAppMapping - setIntegrationAppMapping
2899
2619
  *
@@ -2919,24 +2639,24 @@ export interface OperationMethods {
2919
2639
  config?: AxiosRequestConfig
2920
2640
  ): OperationResponse<Paths.DeleteIntegrationAppMapping.Responses.$200>
2921
2641
  /**
2922
- * queryInboundMonitoringEvents - queryInboundMonitoringEvents
2642
+ * queryMonitoringEvents - queryMonitoringEvents
2923
2643
  *
2924
- * Query inbound monitoring events for a specific integration.
2925
- * Returns detailed information about inbound sync events from ERP systems,
2644
+ * Query ERP sync monitoring events for a specific integration.
2645
+ * Returns detailed information about inbound/outbound sync events,
2926
2646
  * including success rates, error breakdowns, and processing metrics.
2927
2647
  *
2928
2648
  */
2929
- 'queryInboundMonitoringEvents'(
2930
- parameters?: Parameters<Paths.QueryInboundMonitoringEvents.PathParameters> | null,
2931
- data?: Paths.QueryInboundMonitoringEvents.RequestBody,
2649
+ 'queryMonitoringEvents'(
2650
+ parameters?: Parameters<Paths.QueryMonitoringEvents.PathParameters> | null,
2651
+ data?: Paths.QueryMonitoringEvents.RequestBody,
2932
2652
  config?: AxiosRequestConfig
2933
- ): OperationResponse<Paths.QueryInboundMonitoringEvents.Responses.$200>
2653
+ ): OperationResponse<Paths.QueryMonitoringEvents.Responses.$200>
2934
2654
  /**
2935
2655
  * getMonitoringStats - getMonitoringStats
2936
2656
  *
2937
- * Get aggregated statistics for both inbound and outbound monitoring events for a specific integration.
2938
- * Returns summary metrics for inbound (ERP sync) and outbound (webhook delivery) events,
2939
- * including success/error counts and optional breakdowns.
2657
+ * Get aggregated statistics for ERP sync monitoring events for a specific integration.
2658
+ * Returns summary metrics like total events, success/error counts,
2659
+ * and breakdowns by use case, direction, and sync type.
2940
2660
  *
2941
2661
  */
2942
2662
  'getMonitoringStats'(
@@ -2944,19 +2664,6 @@ export interface OperationMethods {
2944
2664
  data?: Paths.GetMonitoringStats.RequestBody,
2945
2665
  config?: AxiosRequestConfig
2946
2666
  ): OperationResponse<Paths.GetMonitoringStats.Responses.$200>
2947
- /**
2948
- * getMonitoringTimeSeries - getMonitoringTimeSeries
2949
- *
2950
- * Get time-series aggregated event counts for monitoring charts.
2951
- * Returns pre-bucketed counts at configurable intervals for both inbound and outbound events.
2952
- * Maximum of 200 buckets per request. Returns 400 if the time range and interval would exceed this limit.
2953
- *
2954
- */
2955
- 'getMonitoringTimeSeries'(
2956
- parameters?: Parameters<Paths.GetMonitoringTimeSeries.PathParameters> | null,
2957
- data?: Paths.GetMonitoringTimeSeries.RequestBody,
2958
- config?: AxiosRequestConfig
2959
- ): OperationResponse<Paths.GetMonitoringTimeSeries.Responses.$200>
2960
2667
  /**
2961
2668
  * getOutboundStatus - getOutboundStatus
2962
2669
  *
@@ -2982,19 +2689,6 @@ export interface OperationMethods {
2982
2689
  data?: Paths.QueryAccessLogs.RequestBody,
2983
2690
  config?: AxiosRequestConfig
2984
2691
  ): OperationResponse<Paths.QueryAccessLogs.Responses.$200>
2985
- /**
2986
- * queryOutboundMonitoringEvents - queryOutboundMonitoringEvents
2987
- *
2988
- * Query outbound monitoring events for a specific integration.
2989
- * Returns detailed information about outbound event deliveries,
2990
- * filtered by event_name (event_catalog_event) linked to the integration's outbound use cases.
2991
- *
2992
- */
2993
- 'queryOutboundMonitoringEvents'(
2994
- parameters?: Parameters<Paths.QueryOutboundMonitoringEvents.PathParameters> | null,
2995
- data?: Paths.QueryOutboundMonitoringEvents.RequestBody,
2996
- config?: AxiosRequestConfig
2997
- ): OperationResponse<Paths.QueryOutboundMonitoringEvents.Responses.$200>
2998
2692
  }
2999
2693
 
3000
2694
  export interface PathsDictionary {
@@ -3049,21 +2743,6 @@ export interface PathsDictionary {
3049
2743
  config?: AxiosRequestConfig
3050
2744
  ): OperationResponse<Paths.ProcessErpUpdatesEventsV2.Responses.$200>
3051
2745
  }
3052
- ['/v3/erp/updates/events']: {
3053
- /**
3054
- * processErpUpdatesEventsV3 - processErpUpdatesEventsV3
3055
- *
3056
- * Handles updates from ERP systems using integration_id directly.
3057
- * This is the v3 version that removes the unused event_type field and renames object_type to event_name
3058
- * to align with the integration UI naming.
3059
- *
3060
- */
3061
- 'post'(
3062
- parameters?: Parameters<UnknownParamsObject> | null,
3063
- data?: Paths.ProcessErpUpdatesEventsV3.RequestBody,
3064
- config?: AxiosRequestConfig
3065
- ): OperationResponse<Paths.ProcessErpUpdatesEventsV3.Responses.$200>
3066
- }
3067
2746
  ['/v2/erp/updates/mapping_simulation']: {
3068
2747
  /**
3069
2748
  * simulateMappingV2 - simulateMappingV2
@@ -3306,6 +2985,35 @@ export interface PathsDictionary {
3306
2985
  config?: AxiosRequestConfig
3307
2986
  ): OperationResponse<Paths.DeleteIntegrationV2.Responses.$200>
3308
2987
  }
2988
+ ['/v2/integrations/{integrationId}/environment']: {
2989
+ /**
2990
+ * getIntegrationEnvironment - getIntegrationEnvironment
2991
+ *
2992
+ * Retrieve the environment configuration for an integration.
2993
+ * Secret values are masked and replaced with "****" to prevent exposure.
2994
+ *
2995
+ */
2996
+ 'get'(
2997
+ parameters?: Parameters<Paths.GetIntegrationEnvironment.PathParameters> | null,
2998
+ data?: any,
2999
+ config?: AxiosRequestConfig
3000
+ ): OperationResponse<Paths.GetIntegrationEnvironment.Responses.$200>
3001
+ /**
3002
+ * updateIntegrationEnvironment - updateIntegrationEnvironment
3003
+ *
3004
+ * Update the environment configuration for an integration.
3005
+ * Supports partial updates - only provided values are modified.
3006
+ * Secret values can be updated by providing the actual value in the secrets field.
3007
+ * To keep existing secrets, omit them from the request.
3008
+ * To clear a value, set it to null.
3009
+ *
3010
+ */
3011
+ 'patch'(
3012
+ parameters?: Parameters<Paths.UpdateIntegrationEnvironment.PathParameters> | null,
3013
+ data?: Paths.UpdateIntegrationEnvironment.RequestBody,
3014
+ config?: AxiosRequestConfig
3015
+ ): OperationResponse<Paths.UpdateIntegrationEnvironment.Responses.$200>
3016
+ }
3309
3017
  ['/v1/integrations/{integrationId}/app-mapping']: {
3310
3018
  /**
3311
3019
  * setIntegrationAppMapping - setIntegrationAppMapping
@@ -3332,28 +3040,28 @@ export interface PathsDictionary {
3332
3040
  config?: AxiosRequestConfig
3333
3041
  ): OperationResponse<Paths.DeleteIntegrationAppMapping.Responses.$200>
3334
3042
  }
3335
- ['/v1/integrations/{integrationId}/monitoring/inbound-events']: {
3043
+ ['/v1/integrations/{integrationId}/monitoring/events']: {
3336
3044
  /**
3337
- * queryInboundMonitoringEvents - queryInboundMonitoringEvents
3045
+ * queryMonitoringEvents - queryMonitoringEvents
3338
3046
  *
3339
- * Query inbound monitoring events for a specific integration.
3340
- * Returns detailed information about inbound sync events from ERP systems,
3047
+ * Query ERP sync monitoring events for a specific integration.
3048
+ * Returns detailed information about inbound/outbound sync events,
3341
3049
  * including success rates, error breakdowns, and processing metrics.
3342
3050
  *
3343
3051
  */
3344
3052
  'post'(
3345
- parameters?: Parameters<Paths.QueryInboundMonitoringEvents.PathParameters> | null,
3346
- data?: Paths.QueryInboundMonitoringEvents.RequestBody,
3053
+ parameters?: Parameters<Paths.QueryMonitoringEvents.PathParameters> | null,
3054
+ data?: Paths.QueryMonitoringEvents.RequestBody,
3347
3055
  config?: AxiosRequestConfig
3348
- ): OperationResponse<Paths.QueryInboundMonitoringEvents.Responses.$200>
3056
+ ): OperationResponse<Paths.QueryMonitoringEvents.Responses.$200>
3349
3057
  }
3350
3058
  ['/v1/integrations/{integrationId}/monitoring/stats']: {
3351
3059
  /**
3352
3060
  * getMonitoringStats - getMonitoringStats
3353
3061
  *
3354
- * Get aggregated statistics for both inbound and outbound monitoring events for a specific integration.
3355
- * Returns summary metrics for inbound (ERP sync) and outbound (webhook delivery) events,
3356
- * including success/error counts and optional breakdowns.
3062
+ * Get aggregated statistics for ERP sync monitoring events for a specific integration.
3063
+ * Returns summary metrics like total events, success/error counts,
3064
+ * and breakdowns by use case, direction, and sync type.
3357
3065
  *
3358
3066
  */
3359
3067
  'post'(
@@ -3362,21 +3070,6 @@ export interface PathsDictionary {
3362
3070
  config?: AxiosRequestConfig
3363
3071
  ): OperationResponse<Paths.GetMonitoringStats.Responses.$200>
3364
3072
  }
3365
- ['/v1/integrations/{integrationId}/monitoring/timeseries']: {
3366
- /**
3367
- * getMonitoringTimeSeries - getMonitoringTimeSeries
3368
- *
3369
- * Get time-series aggregated event counts for monitoring charts.
3370
- * Returns pre-bucketed counts at configurable intervals for both inbound and outbound events.
3371
- * Maximum of 200 buckets per request. Returns 400 if the time range and interval would exceed this limit.
3372
- *
3373
- */
3374
- 'post'(
3375
- parameters?: Parameters<Paths.GetMonitoringTimeSeries.PathParameters> | null,
3376
- data?: Paths.GetMonitoringTimeSeries.RequestBody,
3377
- config?: AxiosRequestConfig
3378
- ): OperationResponse<Paths.GetMonitoringTimeSeries.Responses.$200>
3379
- }
3380
3073
  ['/v1/integrations/{integrationId}/outbound-status']: {
3381
3074
  /**
3382
3075
  * getOutboundStatus - getOutboundStatus
@@ -3406,21 +3099,6 @@ export interface PathsDictionary {
3406
3099
  config?: AxiosRequestConfig
3407
3100
  ): OperationResponse<Paths.QueryAccessLogs.Responses.$200>
3408
3101
  }
3409
- ['/v1/integrations/{integrationId}/monitoring/outbound-events']: {
3410
- /**
3411
- * queryOutboundMonitoringEvents - queryOutboundMonitoringEvents
3412
- *
3413
- * Query outbound monitoring events for a specific integration.
3414
- * Returns detailed information about outbound event deliveries,
3415
- * filtered by event_name (event_catalog_event) linked to the integration's outbound use cases.
3416
- *
3417
- */
3418
- 'post'(
3419
- parameters?: Parameters<Paths.QueryOutboundMonitoringEvents.PathParameters> | null,
3420
- data?: Paths.QueryOutboundMonitoringEvents.RequestBody,
3421
- config?: AxiosRequestConfig
3422
- ): OperationResponse<Paths.QueryOutboundMonitoringEvents.Responses.$200>
3423
- }
3424
3102
  }
3425
3103
 
3426
3104
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
@@ -3440,14 +3118,10 @@ export type EmbeddedUseCaseRequest = Components.Schemas.EmbeddedUseCaseRequest;
3440
3118
  export type EmbeddedUseCaseRequestBase = Components.Schemas.EmbeddedUseCaseRequestBase;
3441
3119
  export type EntityUpdate = Components.Schemas.EntityUpdate;
3442
3120
  export type ErpEvent = Components.Schemas.ErpEvent;
3443
- export type ErpEventV3 = Components.Schemas.ErpEventV3;
3444
3121
  export type ErpUpdatesEventsV2Request = Components.Schemas.ErpUpdatesEventsV2Request;
3445
- export type ErpUpdatesEventsV3Request = Components.Schemas.ErpUpdatesEventsV3Request;
3446
3122
  export type ErrorResponseBase = Components.Schemas.ErrorResponseBase;
3447
3123
  export type GetMonitoringStatsRequest = Components.Schemas.GetMonitoringStatsRequest;
3448
- export type GetMonitoringTimeSeriesRequest = Components.Schemas.GetMonitoringTimeSeriesRequest;
3449
3124
  export type InboundIntegrationEventConfiguration = Components.Schemas.InboundIntegrationEventConfiguration;
3450
- export type InboundMonitoringEvent = Components.Schemas.InboundMonitoringEvent;
3451
3125
  export type InboundUseCase = Components.Schemas.InboundUseCase;
3452
3126
  export type InboundUseCaseHistoryEntry = Components.Schemas.InboundUseCaseHistoryEntry;
3453
3127
  export type Integration = Components.Schemas.Integration;
@@ -3456,6 +3130,7 @@ export type IntegrationConfigurationV1 = Components.Schemas.IntegrationConfigura
3456
3130
  export type IntegrationConfigurationV2 = Components.Schemas.IntegrationConfigurationV2;
3457
3131
  export type IntegrationEntity = Components.Schemas.IntegrationEntity;
3458
3132
  export type IntegrationEntityField = Components.Schemas.IntegrationEntityField;
3133
+ export type IntegrationEnvironment = Components.Schemas.IntegrationEnvironment;
3459
3134
  export type IntegrationFieldV1 = Components.Schemas.IntegrationFieldV1;
3460
3135
  export type IntegrationMeterReading = Components.Schemas.IntegrationMeterReading;
3461
3136
  export type IntegrationObjectV1 = Components.Schemas.IntegrationObjectV1;
@@ -3465,20 +3140,18 @@ export type MappingSimulationResponse = Components.Schemas.MappingSimulationResp
3465
3140
  export type MappingSimulationV2Request = Components.Schemas.MappingSimulationV2Request;
3466
3141
  export type MeterReadingUpdate = Components.Schemas.MeterReadingUpdate;
3467
3142
  export type MeterUniqueIdsConfig = Components.Schemas.MeterUniqueIdsConfig;
3143
+ export type MonitoringEvent = Components.Schemas.MonitoringEvent;
3468
3144
  export type MonitoringStats = Components.Schemas.MonitoringStats;
3469
3145
  export type OutboundConflict = Components.Schemas.OutboundConflict;
3470
3146
  export type OutboundIntegrationEventConfiguration = Components.Schemas.OutboundIntegrationEventConfiguration;
3471
3147
  export type OutboundMapping = Components.Schemas.OutboundMapping;
3472
- export type OutboundMonitoringEvent = Components.Schemas.OutboundMonitoringEvent;
3473
3148
  export type OutboundStatusResponse = Components.Schemas.OutboundStatusResponse;
3474
3149
  export type OutboundUseCase = Components.Schemas.OutboundUseCase;
3475
3150
  export type OutboundUseCaseHistoryEntry = Components.Schemas.OutboundUseCaseHistoryEntry;
3476
3151
  export type OutboundUseCaseStatus = Components.Schemas.OutboundUseCaseStatus;
3477
- export type PruneScopeConfig = Components.Schemas.PruneScopeConfig;
3478
3152
  export type QueryAccessLogsRequest = Components.Schemas.QueryAccessLogsRequest;
3479
3153
  export type QueryEventsRequest = Components.Schemas.QueryEventsRequest;
3480
- export type QueryInboundMonitoringEventsRequest = Components.Schemas.QueryInboundMonitoringEventsRequest;
3481
- export type QueryOutboundMonitoringEventsRequest = Components.Schemas.QueryOutboundMonitoringEventsRequest;
3154
+ export type QueryMonitoringEventsRequest = Components.Schemas.QueryMonitoringEventsRequest;
3482
3155
  export type RelationConfig = Components.Schemas.RelationConfig;
3483
3156
  export type RelationItemConfig = Components.Schemas.RelationItemConfig;
3484
3157
  export type RelationRefItemConfig = Components.Schemas.RelationRefItemConfig;
@@ -3488,10 +3161,10 @@ export type RelationUniqueIdField = Components.Schemas.RelationUniqueIdField;
3488
3161
  export type RepeatableFieldType = Components.Schemas.RepeatableFieldType;
3489
3162
  export type ReplayEventsRequest = Components.Schemas.ReplayEventsRequest;
3490
3163
  export type SetIntegrationAppMappingRequest = Components.Schemas.SetIntegrationAppMappingRequest;
3491
- export type TimeSeriesBucket = Components.Schemas.TimeSeriesBucket;
3492
3164
  export type TriggerErpActionRequest = Components.Schemas.TriggerErpActionRequest;
3493
3165
  export type TriggerWebhookResp = Components.Schemas.TriggerWebhookResp;
3494
3166
  export type UpdateInboundUseCaseRequest = Components.Schemas.UpdateInboundUseCaseRequest;
3167
+ export type UpdateIntegrationEnvironmentRequest = Components.Schemas.UpdateIntegrationEnvironmentRequest;
3495
3168
  export type UpdateIntegrationRequest = Components.Schemas.UpdateIntegrationRequest;
3496
3169
  export type UpdateOutboundUseCaseRequest = Components.Schemas.UpdateOutboundUseCaseRequest;
3497
3170
  export type UpdateUseCaseRequest = Components.Schemas.UpdateUseCaseRequest;