@epilot/sdk 2.20.24 → 2.20.25

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.
Files changed (226) hide show
  1. package/dist/apis/access-token.cjs +6 -6
  2. package/dist/apis/access-token.js +1 -1
  3. package/dist/apis/address-suggestions.cjs +6 -6
  4. package/dist/apis/address-suggestions.js +1 -1
  5. package/dist/apis/address.cjs +6 -6
  6. package/dist/apis/address.js +1 -1
  7. package/dist/apis/ai-agents.cjs +6 -6
  8. package/dist/apis/ai-agents.js +1 -1
  9. package/dist/apis/app.cjs +6 -6
  10. package/dist/apis/app.js +1 -1
  11. package/dist/apis/audit-logs.cjs +6 -6
  12. package/dist/apis/audit-logs.js +1 -1
  13. package/dist/apis/automation.cjs +6 -6
  14. package/dist/apis/automation.js +1 -1
  15. package/dist/apis/billing.cjs +6 -6
  16. package/dist/apis/billing.js +1 -1
  17. package/dist/apis/blueprint-manifest.cjs +6 -6
  18. package/dist/apis/blueprint-manifest.js +1 -1
  19. package/dist/apis/calendar.cjs +6 -6
  20. package/dist/apis/calendar.js +1 -1
  21. package/dist/apis/chat.cjs +6 -6
  22. package/dist/apis/chat.js +1 -1
  23. package/dist/apis/configuration-hub.cjs +6 -6
  24. package/dist/apis/configuration-hub.js +1 -1
  25. package/dist/apis/consent.cjs +6 -6
  26. package/dist/apis/consent.js +1 -1
  27. package/dist/apis/customer-portal.cjs +6 -6
  28. package/dist/apis/customer-portal.js +1 -1
  29. package/dist/apis/dashboard.cjs +6 -6
  30. package/dist/apis/dashboard.js +1 -1
  31. package/dist/apis/data-governance.cjs +6 -6
  32. package/dist/apis/data-governance.js +1 -1
  33. package/dist/apis/deduplication.cjs +6 -6
  34. package/dist/apis/deduplication.js +1 -1
  35. package/dist/apis/design.cjs +6 -6
  36. package/dist/apis/design.js +1 -1
  37. package/dist/apis/document.cjs +6 -6
  38. package/dist/apis/document.js +1 -1
  39. package/dist/apis/email-settings.cjs +6 -6
  40. package/dist/apis/email-settings.js +1 -1
  41. package/dist/apis/email-template.cjs +6 -6
  42. package/dist/apis/email-template.js +1 -1
  43. package/dist/apis/entity-mapping.cjs +6 -6
  44. package/dist/apis/entity-mapping.js +1 -1
  45. package/dist/apis/entity.cjs +6 -6
  46. package/dist/apis/entity.js +1 -1
  47. package/dist/apis/environments.cjs +6 -6
  48. package/dist/apis/environments.js +1 -1
  49. package/dist/apis/event-catalog.cjs +6 -6
  50. package/dist/apis/event-catalog.js +1 -1
  51. package/dist/apis/file.cjs +6 -6
  52. package/dist/apis/file.js +1 -1
  53. package/dist/apis/iban.cjs +6 -6
  54. package/dist/apis/iban.js +1 -1
  55. package/dist/apis/integration-toolkit.cjs +6 -6
  56. package/dist/apis/integration-toolkit.d.cts +2 -2
  57. package/dist/apis/integration-toolkit.d.ts +2 -2
  58. package/dist/apis/integration-toolkit.js +1 -1
  59. package/dist/apis/journey.cjs +6 -6
  60. package/dist/apis/journey.js +1 -1
  61. package/dist/apis/kanban.cjs +6 -6
  62. package/dist/apis/kanban.js +1 -1
  63. package/dist/apis/message.cjs +6 -6
  64. package/dist/apis/message.js +1 -1
  65. package/dist/apis/metering.cjs +6 -6
  66. package/dist/apis/metering.js +1 -1
  67. package/dist/apis/notes.cjs +6 -6
  68. package/dist/apis/notes.js +1 -1
  69. package/dist/apis/notification.cjs +6 -6
  70. package/dist/apis/notification.js +1 -1
  71. package/dist/apis/organization.cjs +6 -6
  72. package/dist/apis/organization.js +1 -1
  73. package/dist/apis/partner-directory.cjs +6 -6
  74. package/dist/apis/partner-directory.js +1 -1
  75. package/dist/apis/permissions.cjs +6 -6
  76. package/dist/apis/permissions.js +1 -1
  77. package/dist/apis/pricing-tier.cjs +6 -6
  78. package/dist/apis/pricing-tier.js +1 -1
  79. package/dist/apis/pricing.cjs +6 -6
  80. package/dist/apis/pricing.js +1 -1
  81. package/dist/apis/purpose.cjs +6 -6
  82. package/dist/apis/purpose.js +1 -1
  83. package/dist/apis/query.cjs +6 -6
  84. package/dist/apis/query.js +1 -1
  85. package/dist/apis/sandbox.cjs +6 -6
  86. package/dist/apis/sandbox.js +1 -1
  87. package/dist/apis/sharing.cjs +6 -6
  88. package/dist/apis/sharing.js +1 -1
  89. package/dist/apis/snapshot.cjs +6 -6
  90. package/dist/apis/snapshot.js +1 -1
  91. package/dist/apis/submission.cjs +6 -6
  92. package/dist/apis/submission.js +1 -1
  93. package/dist/apis/target.cjs +6 -6
  94. package/dist/apis/target.js +1 -1
  95. package/dist/apis/targeting.cjs +6 -6
  96. package/dist/apis/targeting.js +1 -1
  97. package/dist/apis/template-variables.cjs +6 -6
  98. package/dist/apis/template-variables.js +1 -1
  99. package/dist/apis/user.cjs +6 -6
  100. package/dist/apis/user.js +1 -1
  101. package/dist/apis/validation-rules.cjs +6 -6
  102. package/dist/apis/validation-rules.js +1 -1
  103. package/dist/apis/webhooks.cjs +6 -6
  104. package/dist/apis/webhooks.js +1 -1
  105. package/dist/apis/workflow-definition.cjs +6 -6
  106. package/dist/apis/workflow-definition.js +1 -1
  107. package/dist/apis/workflow.cjs +6 -6
  108. package/dist/apis/workflow.js +1 -1
  109. package/dist/{chunk-B43U4DLU.cjs → chunk-PZ4TXAF5.cjs} +1 -1
  110. package/dist/{chunk-5D6VD6OZ.js → chunk-X742W7MI.js} +1 -1
  111. package/dist/index.cjs +8 -8
  112. package/dist/index.d.cts +1 -1
  113. package/dist/index.d.ts +1 -1
  114. package/dist/index.js +1 -1
  115. package/dist/integration-toolkit-FHPQSYLH.js +7 -0
  116. package/dist/integration-toolkit-YBZJK4IG.cjs +7 -0
  117. package/dist/{integration-toolkit.d-bhpB79pc.d.ts → integration-toolkit.d--hon4GPp.d.cts} +79 -26
  118. package/dist/{integration-toolkit.d-bhpB79pc.d.cts → integration-toolkit.d--hon4GPp.d.ts} +79 -26
  119. package/docs/integration-toolkit.md +19 -250
  120. package/package.json +1 -1
  121. package/definitions/access-token-runtime.json +0 -1
  122. package/definitions/access-token.json +0 -1025
  123. package/definitions/address-runtime.json +0 -1
  124. package/definitions/address-suggestions-runtime.json +0 -1
  125. package/definitions/address-suggestions.json +0 -582
  126. package/definitions/address.json +0 -578
  127. package/definitions/ai-agents-runtime.json +0 -1
  128. package/definitions/ai-agents.json +0 -2863
  129. package/definitions/app-runtime.json +0 -1
  130. package/definitions/app.json +0 -5994
  131. package/definitions/audit-logs-runtime.json +0 -1
  132. package/definitions/audit-logs.json +0 -305
  133. package/definitions/automation-runtime.json +0 -1
  134. package/definitions/automation.json +0 -5979
  135. package/definitions/billing-runtime.json +0 -1
  136. package/definitions/billing.json +0 -2394
  137. package/definitions/blueprint-manifest-runtime.json +0 -1
  138. package/definitions/blueprint-manifest.json +0 -7817
  139. package/definitions/calendar-runtime.json +0 -1
  140. package/definitions/calendar.json +0 -2904
  141. package/definitions/chat-runtime.json +0 -1
  142. package/definitions/chat.json +0 -2909
  143. package/definitions/configuration-hub-runtime.json +0 -1
  144. package/definitions/configuration-hub.json +0 -2250
  145. package/definitions/consent-runtime.json +0 -1
  146. package/definitions/consent.json +0 -344
  147. package/definitions/customer-portal-runtime.json +0 -1
  148. package/definitions/customer-portal.json +0 -21181
  149. package/definitions/dashboard-runtime.json +0 -1
  150. package/definitions/dashboard.json +0 -1355
  151. package/definitions/data-governance-runtime.json +0 -1
  152. package/definitions/data-governance.json +0 -1126
  153. package/definitions/deduplication-runtime.json +0 -1
  154. package/definitions/deduplication.json +0 -782
  155. package/definitions/design-runtime.json +0 -1
  156. package/definitions/design.json +0 -1827
  157. package/definitions/document-runtime.json +0 -1
  158. package/definitions/document.json +0 -758
  159. package/definitions/email-settings-runtime.json +0 -1
  160. package/definitions/email-settings.json +0 -3736
  161. package/definitions/email-template-runtime.json +0 -1
  162. package/definitions/email-template.json +0 -1441
  163. package/definitions/entity-mapping-runtime.json +0 -1
  164. package/definitions/entity-mapping.json +0 -1852
  165. package/definitions/entity-runtime.json +0 -1
  166. package/definitions/entity.json +0 -11546
  167. package/definitions/environments-runtime.json +0 -1
  168. package/definitions/environments.json +0 -988
  169. package/definitions/event-catalog-runtime.json +0 -1
  170. package/definitions/event-catalog.json +0 -2014
  171. package/definitions/file-runtime.json +0 -1
  172. package/definitions/file.json +0 -4298
  173. package/definitions/iban-runtime.json +0 -1
  174. package/definitions/iban.json +0 -132
  175. package/definitions/integration-toolkit-runtime.json +0 -1
  176. package/definitions/integration-toolkit.json +0 -13069
  177. package/definitions/journey-runtime.json +0 -1
  178. package/definitions/journey.json +0 -3586
  179. package/definitions/kanban-runtime.json +0 -1
  180. package/definitions/kanban.json +0 -1506
  181. package/definitions/message-runtime.json +0 -1
  182. package/definitions/message.json +0 -3667
  183. package/definitions/metering-runtime.json +0 -1
  184. package/definitions/metering.json +0 -3132
  185. package/definitions/notes-runtime.json +0 -1
  186. package/definitions/notes.json +0 -1698
  187. package/definitions/notification-runtime.json +0 -1
  188. package/definitions/notification.json +0 -1439
  189. package/definitions/organization-runtime.json +0 -1
  190. package/definitions/organization.json +0 -1192
  191. package/definitions/partner-directory-runtime.json +0 -1
  192. package/definitions/partner-directory.json +0 -2284
  193. package/definitions/permissions-runtime.json +0 -1
  194. package/definitions/permissions.json +0 -1598
  195. package/definitions/pricing-runtime.json +0 -1
  196. package/definitions/pricing-tier-runtime.json +0 -1
  197. package/definitions/pricing-tier.json +0 -105
  198. package/definitions/pricing.json +0 -14369
  199. package/definitions/purpose-runtime.json +0 -1
  200. package/definitions/purpose.json +0 -524
  201. package/definitions/query-runtime.json +0 -1
  202. package/definitions/query.json +0 -3178
  203. package/definitions/sandbox-runtime.json +0 -1
  204. package/definitions/sandbox.json +0 -453
  205. package/definitions/sharing-runtime.json +0 -1
  206. package/definitions/sharing.json +0 -956
  207. package/definitions/snapshot-runtime.json +0 -1
  208. package/definitions/snapshot.json +0 -1103
  209. package/definitions/submission-runtime.json +0 -1
  210. package/definitions/submission.json +0 -313
  211. package/definitions/targeting-runtime.json +0 -1
  212. package/definitions/targeting.json +0 -2285
  213. package/definitions/template-variables-runtime.json +0 -1
  214. package/definitions/template-variables.json +0 -1416
  215. package/definitions/user-runtime.json +0 -1
  216. package/definitions/user.json +0 -3051
  217. package/definitions/validation-rules-runtime.json +0 -1
  218. package/definitions/validation-rules.json +0 -2642
  219. package/definitions/webhooks-runtime.json +0 -1
  220. package/definitions/webhooks.json +0 -1875
  221. package/definitions/workflow-definition-runtime.json +0 -1
  222. package/definitions/workflow-definition.json +0 -3592
  223. package/definitions/workflow-runtime.json +0 -1
  224. package/definitions/workflow.json +0 -4669
  225. package/dist/integration-toolkit-GOFVOMNH.js +0 -7
  226. package/dist/integration-toolkit-XMM5LLK6.cjs +0 -7
@@ -6124,6 +6124,27 @@ declare namespace Components {
6124
6124
  * ISO instant the rule last cleared back to OK.
6125
6125
  */
6126
6126
  last_cleared_at?: string | null; // date-time
6127
+ /**
6128
+ * The most recent evaluation of this rule, or null when it has never been evaluated. Answers "why isn't this rule firing?" for a rule that neither fires nor transitions — which otherwise leaves no trace at all.
6129
+ */
6130
+ last_evaluation?: {
6131
+ /**
6132
+ * ISO instant of the evaluation. Updates on every sweep tick.
6133
+ */
6134
+ evaluated_at: string; // date-time
6135
+ /**
6136
+ * The measure seen (error/warning count, success rate, or event total).
6137
+ */
6138
+ observed: number;
6139
+ /**
6140
+ * What it was compared against; null for a rule type with no threshold.
6141
+ */
6142
+ threshold?: number | null;
6143
+ /**
6144
+ * Present ONLY when the rule could not be evaluated. `sample_size` means the success-rate minimum-sample guard was not met, so the rule is neither healthy nor alerting — it is not evaluating at all. Absent when the evaluation ran normally.
6145
+ */
6146
+ suppressed_reason?: "sample_size";
6147
+ } | null;
6127
6148
  /**
6128
6149
  * Present only for enabled 'auto'-threshold rules; null otherwise.
6129
6150
  */
@@ -7006,9 +7027,9 @@ declare namespace Components {
7006
7027
  */
7007
7028
  use_case_type?: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy";
7008
7029
  /**
7009
- * Filter by event level
7030
+ * Filter by event level. `skipped` is accepted but can never match: the v2 pipeline normalises it to `info`, and the table's enum has no such member. It is retained here — and ONLY here, not on `MonitoringEventV2` — so that a client with a saved `level=skipped` filter keeps getting an empty 200 rather than a 400 from request validation. Use `info` instead.
7010
7031
  */
7011
- level?: "success" | "error" | "info" | "warning";
7032
+ level?: "success" | "error" | "info" | "warning" | "skipped";
7012
7033
  /**
7013
7034
  * Filter by taxonomy code (e.g. OAUTH2_TOKEN_FAILURE, HTTP_502). Accepts any `MonitoringCode` value, or an `HTTP_{status}` family value.
7014
7035
  */
@@ -10116,9 +10137,13 @@ interface OperationMethods {
10116
10137
  /**
10117
10138
  * queryInboundMonitoringEvents - queryInboundMonitoringEvents
10118
10139
  *
10119
- * Query inbound monitoring events for a specific integration.
10120
- * Returns detailed information about inbound sync events from ERP systems,
10121
- * including success rates, error breakdowns, and processing metrics.
10140
+ * **Deprecated and no longer implemented.** The `erp_monitoring` table this
10141
+ * endpoint read has been retired in favour of the unified `erp_monitoring_v2`
10142
+ * table. The endpoint is kept only so existing clients do not 404; it always
10143
+ * responds `200` with an empty result and never reads any data.
10144
+ *
10145
+ * Use `POST /v2/integrations/{integrationId}/monitoring/events` instead,
10146
+ * filtered to `use_case_type: inbound`.
10122
10147
  *
10123
10148
  */
10124
10149
  'queryInboundMonitoringEvents'(
@@ -10129,9 +10154,13 @@ interface OperationMethods {
10129
10154
  /**
10130
10155
  * getMonitoringStats - getMonitoringStats
10131
10156
  *
10132
- * Get aggregated statistics for both inbound and outbound monitoring events for a specific integration.
10133
- * Returns summary metrics for inbound (ERP sync) and outbound (webhook delivery) events,
10134
- * including success/error counts and optional breakdowns.
10157
+ * **Deprecated and no longer implemented.** The `erp_monitoring` and
10158
+ * `webhook_events` tables this endpoint aggregated have been retired in favour
10159
+ * of the unified `erp_monitoring_v2` table. The endpoint is kept only so
10160
+ * existing clients do not 404; it always responds `200` with zeroed counters
10161
+ * and never reads any data.
10162
+ *
10163
+ * Use `POST /v2/integrations/{integrationId}/monitoring/stats` instead.
10135
10164
  *
10136
10165
  */
10137
10166
  'getMonitoringStats'(
@@ -10142,9 +10171,13 @@ interface OperationMethods {
10142
10171
  /**
10143
10172
  * getMonitoringTimeSeries - getMonitoringTimeSeries
10144
10173
  *
10145
- * Get time-series aggregated event counts for monitoring charts.
10146
- * Returns pre-bucketed counts at configurable intervals for both inbound and outbound events.
10147
- * Maximum of 200 buckets per request. Returns 400 if the time range and interval would exceed this limit.
10174
+ * **Deprecated and no longer implemented.** The `erp_monitoring` and
10175
+ * `webhook_events` tables this endpoint bucketed have been retired in favour
10176
+ * of the unified `erp_monitoring_v2` table. The endpoint is kept only so
10177
+ * existing clients do not 404; it always responds `200` with an empty bucket
10178
+ * list and never reads any data.
10179
+ *
10180
+ * Use `POST /v2/integrations/{integrationId}/monitoring/time-series` instead.
10148
10181
  *
10149
10182
  */
10150
10183
  'getMonitoringTimeSeries'(
@@ -10288,9 +10321,13 @@ interface OperationMethods {
10288
10321
  /**
10289
10322
  * queryOutboundMonitoringEvents - queryOutboundMonitoringEvents
10290
10323
  *
10291
- * Query outbound monitoring events for a specific integration.
10292
- * Returns detailed information about outbound event deliveries,
10293
- * filtered by event_name (event_catalog_event) linked to the integration's outbound use cases.
10324
+ * **Deprecated and no longer implemented.** The `webhook_events` table this
10325
+ * endpoint read has been retired in favour of the unified `erp_monitoring_v2`
10326
+ * table. The endpoint is kept only so existing clients do not 404; it always
10327
+ * responds `200` with an empty result and never reads any data.
10328
+ *
10329
+ * Use `POST /v2/integrations/{integrationId}/monitoring/events` instead,
10330
+ * filtered to `use_case_type: outbound`.
10294
10331
  *
10295
10332
  */
10296
10333
  'queryOutboundMonitoringEvents'(
@@ -11081,9 +11118,13 @@ interface PathsDictionary {
11081
11118
  /**
11082
11119
  * queryInboundMonitoringEvents - queryInboundMonitoringEvents
11083
11120
  *
11084
- * Query inbound monitoring events for a specific integration.
11085
- * Returns detailed information about inbound sync events from ERP systems,
11086
- * including success rates, error breakdowns, and processing metrics.
11121
+ * **Deprecated and no longer implemented.** The `erp_monitoring` table this
11122
+ * endpoint read has been retired in favour of the unified `erp_monitoring_v2`
11123
+ * table. The endpoint is kept only so existing clients do not 404; it always
11124
+ * responds `200` with an empty result and never reads any data.
11125
+ *
11126
+ * Use `POST /v2/integrations/{integrationId}/monitoring/events` instead,
11127
+ * filtered to `use_case_type: inbound`.
11087
11128
  *
11088
11129
  */
11089
11130
  'post'(
@@ -11096,9 +11137,13 @@ interface PathsDictionary {
11096
11137
  /**
11097
11138
  * getMonitoringStats - getMonitoringStats
11098
11139
  *
11099
- * Get aggregated statistics for both inbound and outbound monitoring events for a specific integration.
11100
- * Returns summary metrics for inbound (ERP sync) and outbound (webhook delivery) events,
11101
- * including success/error counts and optional breakdowns.
11140
+ * **Deprecated and no longer implemented.** The `erp_monitoring` and
11141
+ * `webhook_events` tables this endpoint aggregated have been retired in favour
11142
+ * of the unified `erp_monitoring_v2` table. The endpoint is kept only so
11143
+ * existing clients do not 404; it always responds `200` with zeroed counters
11144
+ * and never reads any data.
11145
+ *
11146
+ * Use `POST /v2/integrations/{integrationId}/monitoring/stats` instead.
11102
11147
  *
11103
11148
  */
11104
11149
  'post'(
@@ -11111,9 +11156,13 @@ interface PathsDictionary {
11111
11156
  /**
11112
11157
  * getMonitoringTimeSeries - getMonitoringTimeSeries
11113
11158
  *
11114
- * Get time-series aggregated event counts for monitoring charts.
11115
- * Returns pre-bucketed counts at configurable intervals for both inbound and outbound events.
11116
- * Maximum of 200 buckets per request. Returns 400 if the time range and interval would exceed this limit.
11159
+ * **Deprecated and no longer implemented.** The `erp_monitoring` and
11160
+ * `webhook_events` tables this endpoint bucketed have been retired in favour
11161
+ * of the unified `erp_monitoring_v2` table. The endpoint is kept only so
11162
+ * existing clients do not 404; it always responds `200` with an empty bucket
11163
+ * list and never reads any data.
11164
+ *
11165
+ * Use `POST /v2/integrations/{integrationId}/monitoring/time-series` instead.
11117
11166
  *
11118
11167
  */
11119
11168
  'post'(
@@ -11275,9 +11324,13 @@ interface PathsDictionary {
11275
11324
  /**
11276
11325
  * queryOutboundMonitoringEvents - queryOutboundMonitoringEvents
11277
11326
  *
11278
- * Query outbound monitoring events for a specific integration.
11279
- * Returns detailed information about outbound event deliveries,
11280
- * filtered by event_name (event_catalog_event) linked to the integration's outbound use cases.
11327
+ * **Deprecated and no longer implemented.** The `webhook_events` table this
11328
+ * endpoint read has been retired in favour of the unified `erp_monitoring_v2`
11329
+ * table. The endpoint is kept only so existing clients do not 404; it always
11330
+ * responds `200` with an empty result and never reads any data.
11331
+ *
11332
+ * Use `POST /v2/integrations/{integrationId}/monitoring/events` instead,
11333
+ * filtered to `use_case_type: outbound`.
11281
11334
  *
11282
11335
  */
11283
11336
  'post'(
@@ -6124,6 +6124,27 @@ declare namespace Components {
6124
6124
  * ISO instant the rule last cleared back to OK.
6125
6125
  */
6126
6126
  last_cleared_at?: string | null; // date-time
6127
+ /**
6128
+ * The most recent evaluation of this rule, or null when it has never been evaluated. Answers "why isn't this rule firing?" for a rule that neither fires nor transitions — which otherwise leaves no trace at all.
6129
+ */
6130
+ last_evaluation?: {
6131
+ /**
6132
+ * ISO instant of the evaluation. Updates on every sweep tick.
6133
+ */
6134
+ evaluated_at: string; // date-time
6135
+ /**
6136
+ * The measure seen (error/warning count, success rate, or event total).
6137
+ */
6138
+ observed: number;
6139
+ /**
6140
+ * What it was compared against; null for a rule type with no threshold.
6141
+ */
6142
+ threshold?: number | null;
6143
+ /**
6144
+ * Present ONLY when the rule could not be evaluated. `sample_size` means the success-rate minimum-sample guard was not met, so the rule is neither healthy nor alerting — it is not evaluating at all. Absent when the evaluation ran normally.
6145
+ */
6146
+ suppressed_reason?: "sample_size";
6147
+ } | null;
6127
6148
  /**
6128
6149
  * Present only for enabled 'auto'-threshold rules; null otherwise.
6129
6150
  */
@@ -7006,9 +7027,9 @@ declare namespace Components {
7006
7027
  */
7007
7028
  use_case_type?: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy";
7008
7029
  /**
7009
- * Filter by event level
7030
+ * Filter by event level. `skipped` is accepted but can never match: the v2 pipeline normalises it to `info`, and the table's enum has no such member. It is retained here — and ONLY here, not on `MonitoringEventV2` — so that a client with a saved `level=skipped` filter keeps getting an empty 200 rather than a 400 from request validation. Use `info` instead.
7010
7031
  */
7011
- level?: "success" | "error" | "info" | "warning";
7032
+ level?: "success" | "error" | "info" | "warning" | "skipped";
7012
7033
  /**
7013
7034
  * Filter by taxonomy code (e.g. OAUTH2_TOKEN_FAILURE, HTTP_502). Accepts any `MonitoringCode` value, or an `HTTP_{status}` family value.
7014
7035
  */
@@ -10116,9 +10137,13 @@ interface OperationMethods {
10116
10137
  /**
10117
10138
  * queryInboundMonitoringEvents - queryInboundMonitoringEvents
10118
10139
  *
10119
- * Query inbound monitoring events for a specific integration.
10120
- * Returns detailed information about inbound sync events from ERP systems,
10121
- * including success rates, error breakdowns, and processing metrics.
10140
+ * **Deprecated and no longer implemented.** The `erp_monitoring` table this
10141
+ * endpoint read has been retired in favour of the unified `erp_monitoring_v2`
10142
+ * table. The endpoint is kept only so existing clients do not 404; it always
10143
+ * responds `200` with an empty result and never reads any data.
10144
+ *
10145
+ * Use `POST /v2/integrations/{integrationId}/monitoring/events` instead,
10146
+ * filtered to `use_case_type: inbound`.
10122
10147
  *
10123
10148
  */
10124
10149
  'queryInboundMonitoringEvents'(
@@ -10129,9 +10154,13 @@ interface OperationMethods {
10129
10154
  /**
10130
10155
  * getMonitoringStats - getMonitoringStats
10131
10156
  *
10132
- * Get aggregated statistics for both inbound and outbound monitoring events for a specific integration.
10133
- * Returns summary metrics for inbound (ERP sync) and outbound (webhook delivery) events,
10134
- * including success/error counts and optional breakdowns.
10157
+ * **Deprecated and no longer implemented.** The `erp_monitoring` and
10158
+ * `webhook_events` tables this endpoint aggregated have been retired in favour
10159
+ * of the unified `erp_monitoring_v2` table. The endpoint is kept only so
10160
+ * existing clients do not 404; it always responds `200` with zeroed counters
10161
+ * and never reads any data.
10162
+ *
10163
+ * Use `POST /v2/integrations/{integrationId}/monitoring/stats` instead.
10135
10164
  *
10136
10165
  */
10137
10166
  'getMonitoringStats'(
@@ -10142,9 +10171,13 @@ interface OperationMethods {
10142
10171
  /**
10143
10172
  * getMonitoringTimeSeries - getMonitoringTimeSeries
10144
10173
  *
10145
- * Get time-series aggregated event counts for monitoring charts.
10146
- * Returns pre-bucketed counts at configurable intervals for both inbound and outbound events.
10147
- * Maximum of 200 buckets per request. Returns 400 if the time range and interval would exceed this limit.
10174
+ * **Deprecated and no longer implemented.** The `erp_monitoring` and
10175
+ * `webhook_events` tables this endpoint bucketed have been retired in favour
10176
+ * of the unified `erp_monitoring_v2` table. The endpoint is kept only so
10177
+ * existing clients do not 404; it always responds `200` with an empty bucket
10178
+ * list and never reads any data.
10179
+ *
10180
+ * Use `POST /v2/integrations/{integrationId}/monitoring/time-series` instead.
10148
10181
  *
10149
10182
  */
10150
10183
  'getMonitoringTimeSeries'(
@@ -10288,9 +10321,13 @@ interface OperationMethods {
10288
10321
  /**
10289
10322
  * queryOutboundMonitoringEvents - queryOutboundMonitoringEvents
10290
10323
  *
10291
- * Query outbound monitoring events for a specific integration.
10292
- * Returns detailed information about outbound event deliveries,
10293
- * filtered by event_name (event_catalog_event) linked to the integration's outbound use cases.
10324
+ * **Deprecated and no longer implemented.** The `webhook_events` table this
10325
+ * endpoint read has been retired in favour of the unified `erp_monitoring_v2`
10326
+ * table. The endpoint is kept only so existing clients do not 404; it always
10327
+ * responds `200` with an empty result and never reads any data.
10328
+ *
10329
+ * Use `POST /v2/integrations/{integrationId}/monitoring/events` instead,
10330
+ * filtered to `use_case_type: outbound`.
10294
10331
  *
10295
10332
  */
10296
10333
  'queryOutboundMonitoringEvents'(
@@ -11081,9 +11118,13 @@ interface PathsDictionary {
11081
11118
  /**
11082
11119
  * queryInboundMonitoringEvents - queryInboundMonitoringEvents
11083
11120
  *
11084
- * Query inbound monitoring events for a specific integration.
11085
- * Returns detailed information about inbound sync events from ERP systems,
11086
- * including success rates, error breakdowns, and processing metrics.
11121
+ * **Deprecated and no longer implemented.** The `erp_monitoring` table this
11122
+ * endpoint read has been retired in favour of the unified `erp_monitoring_v2`
11123
+ * table. The endpoint is kept only so existing clients do not 404; it always
11124
+ * responds `200` with an empty result and never reads any data.
11125
+ *
11126
+ * Use `POST /v2/integrations/{integrationId}/monitoring/events` instead,
11127
+ * filtered to `use_case_type: inbound`.
11087
11128
  *
11088
11129
  */
11089
11130
  'post'(
@@ -11096,9 +11137,13 @@ interface PathsDictionary {
11096
11137
  /**
11097
11138
  * getMonitoringStats - getMonitoringStats
11098
11139
  *
11099
- * Get aggregated statistics for both inbound and outbound monitoring events for a specific integration.
11100
- * Returns summary metrics for inbound (ERP sync) and outbound (webhook delivery) events,
11101
- * including success/error counts and optional breakdowns.
11140
+ * **Deprecated and no longer implemented.** The `erp_monitoring` and
11141
+ * `webhook_events` tables this endpoint aggregated have been retired in favour
11142
+ * of the unified `erp_monitoring_v2` table. The endpoint is kept only so
11143
+ * existing clients do not 404; it always responds `200` with zeroed counters
11144
+ * and never reads any data.
11145
+ *
11146
+ * Use `POST /v2/integrations/{integrationId}/monitoring/stats` instead.
11102
11147
  *
11103
11148
  */
11104
11149
  'post'(
@@ -11111,9 +11156,13 @@ interface PathsDictionary {
11111
11156
  /**
11112
11157
  * getMonitoringTimeSeries - getMonitoringTimeSeries
11113
11158
  *
11114
- * Get time-series aggregated event counts for monitoring charts.
11115
- * Returns pre-bucketed counts at configurable intervals for both inbound and outbound events.
11116
- * Maximum of 200 buckets per request. Returns 400 if the time range and interval would exceed this limit.
11159
+ * **Deprecated and no longer implemented.** The `erp_monitoring` and
11160
+ * `webhook_events` tables this endpoint bucketed have been retired in favour
11161
+ * of the unified `erp_monitoring_v2` table. The endpoint is kept only so
11162
+ * existing clients do not 404; it always responds `200` with an empty bucket
11163
+ * list and never reads any data.
11164
+ *
11165
+ * Use `POST /v2/integrations/{integrationId}/monitoring/time-series` instead.
11117
11166
  *
11118
11167
  */
11119
11168
  'post'(
@@ -11275,9 +11324,13 @@ interface PathsDictionary {
11275
11324
  /**
11276
11325
  * queryOutboundMonitoringEvents - queryOutboundMonitoringEvents
11277
11326
  *
11278
- * Query outbound monitoring events for a specific integration.
11279
- * Returns detailed information about outbound event deliveries,
11280
- * filtered by event_name (event_catalog_event) linked to the integration's outbound use cases.
11327
+ * **Deprecated and no longer implemented.** The `webhook_events` table this
11328
+ * endpoint read has been retired in favour of the unified `erp_monitoring_v2`
11329
+ * table. The endpoint is kept only so existing clients do not 404; it always
11330
+ * responds `200` with an empty result and never reads any data.
11331
+ *
11332
+ * Use `POST /v2/integrations/{integrationId}/monitoring/events` instead,
11333
+ * filtered to `use_case_type: outbound`.
11281
11334
  *
11282
11335
  */
11283
11336
  'post'(
@@ -76,11 +76,7 @@ const { data } = await integrationToolkitClient.acknowledgeTracking(...)
76
76
  - [`commitTypes`](#committypes)
77
77
 
78
78
  **monitoring**
79
- - [`queryInboundMonitoringEvents`](#queryinboundmonitoringevents)
80
- - [`getMonitoringStats`](#getmonitoringstats)
81
- - [`getMonitoringTimeSeries`](#getmonitoringtimeseries)
82
79
  - [`queryAccessLogs`](#queryaccesslogs)
83
- - [`queryOutboundMonitoringEvents`](#queryoutboundmonitoringevents)
84
80
  - [`queryMonitoringEventsV2`](#querymonitoringeventsv2)
85
81
  - [`getMonitoringStatsV2`](#getmonitoringstatsv2)
86
82
  - [`getMonitoringTimeSeriesV2`](#getmonitoringtimeseriesv2)
@@ -2279,6 +2275,12 @@ const { data } = await client.getNotificationStatus({
2279
2275
  "state": "ok",
2280
2276
  "last_fired_at": "1970-01-01T00:00:00.000Z",
2281
2277
  "last_cleared_at": "1970-01-01T00:00:00.000Z",
2278
+ "last_evaluation": {
2279
+ "evaluated_at": "1970-01-01T00:00:00.000Z",
2280
+ "observed": 0,
2281
+ "threshold": 0,
2282
+ "suppressed_reason": "sample_size"
2283
+ },
2282
2284
  "baseline": {
2283
2285
  "is_mature": true,
2284
2286
  "computed_at": "1970-01-01T00:00:00.000Z",
@@ -2483,189 +2485,6 @@ const { data } = await client.deleteIntegrationAppMapping(
2483
2485
 
2484
2486
  ---
2485
2487
 
2486
- ### `queryInboundMonitoringEvents`
2487
-
2488
- Query inbound monitoring events for a specific integration.
2489
- Returns detailed information about inbound sync events from ERP systems,
2490
- including success rates, error breakdowns, and processing metrics.
2491
-
2492
- `POST /v1/integrations/{integrationId}/monitoring/inbound-events`
2493
-
2494
- ```ts
2495
- const { data } = await client.queryInboundMonitoringEvents(
2496
- {
2497
- integrationId: 'example',
2498
- },
2499
- {
2500
- use_case_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
2501
- event_type: 'CREATE',
2502
- sync_type: 'entity',
2503
- status: 'success',
2504
- error_category: 'validation',
2505
- correlation_id: 'string',
2506
- object_type: 'string',
2507
- event_name: 'string',
2508
- event_id: 'string',
2509
- from_date: '2025-01-01T00:00:00Z',
2510
- to_date: '2025-01-31T23:59:59Z',
2511
- limit: 50,
2512
- cursor: {
2513
- completed_at: '1970-01-01T00:00:00.000Z',
2514
- event_id: 'string'
2515
- }
2516
- },
2517
- )
2518
- ```
2519
-
2520
- <details>
2521
- <summary>Response</summary>
2522
-
2523
- ```json
2524
- {
2525
- "data": [
2526
- {
2527
- "org_id": "string",
2528
- "event_id": "string",
2529
- "correlation_id": "string",
2530
- "integration_id": "string",
2531
- "use_case_id": "string",
2532
- "event_type": "CREATE",
2533
- "object_type": "string",
2534
- "sync_type": "entity",
2535
- "status": "success",
2536
- "error_code": "string",
2537
- "error_message": "string",
2538
- "error_category": "validation",
2539
- "processing_duration_ms": 0,
2540
- "received_at": "1970-01-01T00:00:00.000Z",
2541
- "completed_at": "1970-01-01T00:00:00.000Z"
2542
- }
2543
- ],
2544
- "next_cursor": {
2545
- "completed_at": "1970-01-01T00:00:00.000Z",
2546
- "event_id": "string"
2547
- },
2548
- "has_more": true
2549
- }
2550
- ```
2551
-
2552
- </details>
2553
-
2554
- ---
2555
-
2556
- ### `getMonitoringStats`
2557
-
2558
- Get aggregated statistics for both inbound and outbound monitoring events for a specific integration.
2559
- Returns summary metrics for inbound (ERP sync) and outbound (webhook delivery) events,
2560
- including s
2561
-
2562
- `POST /v1/integrations/{integrationId}/monitoring/stats`
2563
-
2564
- ```ts
2565
- const { data } = await client.getMonitoringStats(
2566
- {
2567
- integrationId: 'example',
2568
- },
2569
- {
2570
- from_date: '2025-01-01T00:00:00Z',
2571
- to_date: '2025-01-31T23:59:59Z',
2572
- inbound_group_by: ['use_case_id', 'status'],
2573
- outbound_group_by: ['event_name', 'status']
2574
- },
2575
- )
2576
- ```
2577
-
2578
- <details>
2579
- <summary>Response</summary>
2580
-
2581
- ```json
2582
- {
2583
- "inbound": {
2584
- "total_events": 0,
2585
- "total_correlations": 0,
2586
- "success_count": 0,
2587
- "error_count": 0,
2588
- "skipped_count": 0,
2589
- "warning_count": 0,
2590
- "success_rate": 0,
2591
- "last_error_at": "1970-01-01T00:00:00.000Z",
2592
- "breakdown": [
2593
- {}
2594
- ]
2595
- },
2596
- "outbound": {
2597
- "total_events": 0,
2598
- "success_count": 0,
2599
- "error_count": 0,
2600
- "pending_count": 0,
2601
- "success_rate": 0,
2602
- "last_error_at": "1970-01-01T00:00:00.000Z",
2603
- "breakdown": [
2604
- {}
2605
- ]
2606
- }
2607
- }
2608
- ```
2609
-
2610
- </details>
2611
-
2612
- ---
2613
-
2614
- ### `getMonitoringTimeSeries`
2615
-
2616
- Get time-series aggregated event counts for monitoring charts.
2617
- Returns pre-bucketed counts at configurable intervals for both inbound and outbound events.
2618
- Maximum of 200 buckets per request. Returns 4
2619
-
2620
- `POST /v1/integrations/{integrationId}/monitoring/timeseries`
2621
-
2622
- ```ts
2623
- const { data } = await client.getMonitoringTimeSeries(
2624
- {
2625
- integrationId: 'example',
2626
- },
2627
- {
2628
- from_date: '2025-01-01T00:00:00Z',
2629
- to_date: '2025-01-31T23:59:59Z',
2630
- interval: '1h',
2631
- direction: 'both'
2632
- },
2633
- )
2634
- ```
2635
-
2636
- <details>
2637
- <summary>Response</summary>
2638
-
2639
- ```json
2640
- {
2641
- "interval": "5m",
2642
- "from_date": "1970-01-01T00:00:00.000Z",
2643
- "to_date": "1970-01-01T00:00:00.000Z",
2644
- "buckets": [
2645
- {
2646
- "timestamp": "1970-01-01T00:00:00.000Z",
2647
- "inbound": {
2648
- "success_count": 0,
2649
- "error_count": 0,
2650
- "warning_count": 0,
2651
- "skipped_count": 0,
2652
- "total_count": 0
2653
- },
2654
- "outbound": {
2655
- "success_count": 0,
2656
- "error_count": 0,
2657
- "pending_count": 0,
2658
- "total_count": 0
2659
- }
2660
- }
2661
- ]
2662
- }
2663
- ```
2664
-
2665
- </details>
2666
-
2667
- ---
2668
-
2669
2488
  ### `getOutboundStatus`
2670
2489
 
2671
2490
  Get the status of all outbound use cases for a specific integration.
@@ -3044,68 +2863,6 @@ const { data } = await client.queryAccessLogs(
3044
2863
 
3045
2864
  ---
3046
2865
 
3047
- ### `queryOutboundMonitoringEvents`
3048
-
3049
- Query outbound monitoring events for a specific integration.
3050
- Returns detailed information about outbound event deliveries,
3051
- filtered by event_name (event_catalog_event) linked to the integration's outb
3052
-
3053
- `POST /v1/integrations/{integrationId}/monitoring/outbound-events`
3054
-
3055
- ```ts
3056
- const { data } = await client.queryOutboundMonitoringEvents(
3057
- {
3058
- integrationId: 'example',
3059
- },
3060
- {
3061
- event_name: 'automation_flow_target',
3062
- status: 'succeeded',
3063
- webhook_config_id: 'string',
3064
- from_date: '2025-01-01T00:00:00Z',
3065
- to_date: '2025-01-31T23:59:59Z',
3066
- limit: 50,
3067
- cursor: {
3068
- created_at: '1970-01-01T00:00:00.000Z',
3069
- event_id: 'string'
3070
- }
3071
- },
3072
- )
3073
- ```
3074
-
3075
- <details>
3076
- <summary>Response</summary>
3077
-
3078
- ```json
3079
- {
3080
- "data": [
3081
- {
3082
- "org_id": "string",
3083
- "event_id": "string",
3084
- "event_name": "string",
3085
- "status": "succeeded",
3086
- "url": "string",
3087
- "http_method": "string",
3088
- "http_response": {},
3089
- "webhook_config_id": "string",
3090
- "metadata": {},
3091
- "execution_context": {},
3092
- "payload": {},
3093
- "created_at": "1970-01-01T00:00:00.000Z",
3094
- "updated_at": "1970-01-01T00:00:00.000Z"
3095
- }
3096
- ],
3097
- "next_cursor": {
3098
- "created_at": "1970-01-01T00:00:00.000Z",
3099
- "event_id": "string"
3100
- },
3101
- "has_more": true
3102
- }
3103
- ```
3104
-
3105
- </details>
3106
-
3107
- ---
3108
-
3109
2866
  ### `queryMonitoringEventsV2`
3110
2867
 
3111
2868
  Query monitoring events from the unified erp_monitoring_v2 table.
@@ -4348,6 +4105,12 @@ type NotificationStatusResponse = {
4348
4105
  state: "ok" | "alerting" | "recovered"
4349
4106
  last_fired_at?: string // date-time
4350
4107
  last_cleared_at?: string // date-time
4108
+ last_evaluation?: {
4109
+ evaluated_at: { ... }
4110
+ observed: { ... }
4111
+ threshold?: { ... }
4112
+ suppressed_reason?: { ... }
4113
+ }
4351
4114
  baseline?: {
4352
4115
  is_mature: { ... }
4353
4116
  computed_at?: { ... }
@@ -4368,6 +4131,12 @@ type NotificationRuleStatus = {
4368
4131
  state: "ok" | "alerting" | "recovered"
4369
4132
  last_fired_at?: string // date-time
4370
4133
  last_cleared_at?: string // date-time
4134
+ last_evaluation?: {
4135
+ evaluated_at: string // date-time
4136
+ observed: number
4137
+ threshold?: number
4138
+ suppressed_reason?: "sample_size"
4139
+ }
4371
4140
  baseline?: {
4372
4141
  is_mature: boolean
4373
4142
  computed_at?: string // date-time
@@ -9295,7 +9064,7 @@ type InboundMonitoringEvent = {
9295
9064
  type QueryMonitoringEventsV2Request = {
9296
9065
  use_case_id?: string
9297
9066
  use_case_type?: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy"
9298
- level?: "success" | "error" | "info" | "warning"
9067
+ level?: "success" | "error" | "info" | "warning" | "skipped"
9299
9068
  code?: string
9300
9069
  event_id?: string
9301
9070
  correlation_id?: string