@epilot/sdk 2.20.36 → 2.20.37

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 (123) hide show
  1. package/definitions/integration-toolkit.json +25 -2
  2. package/dist/apis/access-token.cjs +6 -6
  3. package/dist/apis/access-token.js +1 -1
  4. package/dist/apis/address-suggestions.cjs +6 -6
  5. package/dist/apis/address-suggestions.js +1 -1
  6. package/dist/apis/address.cjs +6 -6
  7. package/dist/apis/address.js +1 -1
  8. package/dist/apis/ai-agents.cjs +6 -6
  9. package/dist/apis/ai-agents.js +1 -1
  10. package/dist/apis/app.cjs +6 -6
  11. package/dist/apis/app.js +1 -1
  12. package/dist/apis/audit-logs.cjs +6 -6
  13. package/dist/apis/audit-logs.js +1 -1
  14. package/dist/apis/automation.cjs +6 -6
  15. package/dist/apis/automation.js +1 -1
  16. package/dist/apis/billing.cjs +6 -6
  17. package/dist/apis/billing.js +1 -1
  18. package/dist/apis/blueprint-manifest.cjs +6 -6
  19. package/dist/apis/blueprint-manifest.js +1 -1
  20. package/dist/apis/calendar.cjs +6 -6
  21. package/dist/apis/calendar.js +1 -1
  22. package/dist/apis/chat.cjs +6 -6
  23. package/dist/apis/chat.js +1 -1
  24. package/dist/apis/configuration-hub.cjs +6 -6
  25. package/dist/apis/configuration-hub.js +1 -1
  26. package/dist/apis/consent.cjs +6 -6
  27. package/dist/apis/consent.js +1 -1
  28. package/dist/apis/customer-portal.cjs +6 -6
  29. package/dist/apis/customer-portal.js +1 -1
  30. package/dist/apis/dashboard.cjs +6 -6
  31. package/dist/apis/dashboard.js +1 -1
  32. package/dist/apis/data-governance.cjs +6 -6
  33. package/dist/apis/data-governance.js +1 -1
  34. package/dist/apis/deduplication.cjs +6 -6
  35. package/dist/apis/deduplication.js +1 -1
  36. package/dist/apis/design.cjs +6 -6
  37. package/dist/apis/design.js +1 -1
  38. package/dist/apis/document.cjs +6 -6
  39. package/dist/apis/document.js +1 -1
  40. package/dist/apis/email-settings.cjs +6 -6
  41. package/dist/apis/email-settings.js +1 -1
  42. package/dist/apis/email-template.cjs +6 -6
  43. package/dist/apis/email-template.js +1 -1
  44. package/dist/apis/entity-mapping.cjs +6 -6
  45. package/dist/apis/entity-mapping.js +1 -1
  46. package/dist/apis/entity.cjs +6 -6
  47. package/dist/apis/entity.js +1 -1
  48. package/dist/apis/environments.cjs +6 -6
  49. package/dist/apis/environments.js +1 -1
  50. package/dist/apis/event-catalog.cjs +6 -6
  51. package/dist/apis/event-catalog.js +1 -1
  52. package/dist/apis/file.cjs +6 -6
  53. package/dist/apis/file.js +1 -1
  54. package/dist/apis/iban.cjs +6 -6
  55. package/dist/apis/iban.js +1 -1
  56. package/dist/apis/integration-toolkit.cjs +6 -6
  57. package/dist/apis/integration-toolkit.d.cts +2 -2
  58. package/dist/apis/integration-toolkit.d.ts +2 -2
  59. package/dist/apis/integration-toolkit.js +1 -1
  60. package/dist/apis/journey.cjs +6 -6
  61. package/dist/apis/journey.js +1 -1
  62. package/dist/apis/kanban.cjs +6 -6
  63. package/dist/apis/kanban.js +1 -1
  64. package/dist/apis/message.cjs +6 -6
  65. package/dist/apis/message.js +1 -1
  66. package/dist/apis/metering.cjs +6 -6
  67. package/dist/apis/metering.js +1 -1
  68. package/dist/apis/notes.cjs +6 -6
  69. package/dist/apis/notes.js +1 -1
  70. package/dist/apis/notification.cjs +6 -6
  71. package/dist/apis/notification.js +1 -1
  72. package/dist/apis/organization.cjs +6 -6
  73. package/dist/apis/organization.js +1 -1
  74. package/dist/apis/partner-directory.cjs +6 -6
  75. package/dist/apis/partner-directory.js +1 -1
  76. package/dist/apis/permissions.cjs +6 -6
  77. package/dist/apis/permissions.js +1 -1
  78. package/dist/apis/pricing-tier.cjs +6 -6
  79. package/dist/apis/pricing-tier.js +1 -1
  80. package/dist/apis/pricing.cjs +6 -6
  81. package/dist/apis/pricing.js +1 -1
  82. package/dist/apis/purpose.cjs +6 -6
  83. package/dist/apis/purpose.js +1 -1
  84. package/dist/apis/query.cjs +6 -6
  85. package/dist/apis/query.js +1 -1
  86. package/dist/apis/sandbox.cjs +6 -6
  87. package/dist/apis/sandbox.js +1 -1
  88. package/dist/apis/sharing.cjs +6 -6
  89. package/dist/apis/sharing.js +1 -1
  90. package/dist/apis/snapshot.cjs +6 -6
  91. package/dist/apis/snapshot.js +1 -1
  92. package/dist/apis/submission.cjs +6 -6
  93. package/dist/apis/submission.js +1 -1
  94. package/dist/apis/target.cjs +6 -6
  95. package/dist/apis/target.js +1 -1
  96. package/dist/apis/targeting.cjs +6 -6
  97. package/dist/apis/targeting.js +1 -1
  98. package/dist/apis/template-variables.cjs +6 -6
  99. package/dist/apis/template-variables.js +1 -1
  100. package/dist/apis/user.cjs +6 -6
  101. package/dist/apis/user.js +1 -1
  102. package/dist/apis/validation-rules.cjs +6 -6
  103. package/dist/apis/validation-rules.js +1 -1
  104. package/dist/apis/webhooks.cjs +6 -6
  105. package/dist/apis/webhooks.js +1 -1
  106. package/dist/apis/workflow-definition.cjs +6 -6
  107. package/dist/apis/workflow-definition.js +1 -1
  108. package/dist/apis/workflow.cjs +6 -6
  109. package/dist/apis/workflow.js +1 -1
  110. package/dist/{chunk-YH6DUNL2.js → chunk-FWZRP5HX.js} +1 -1
  111. package/dist/{chunk-RSP6PAXQ.cjs → chunk-R2J3UNRP.cjs} +1 -1
  112. package/dist/index.cjs +8 -8
  113. package/dist/index.d.cts +1 -1
  114. package/dist/index.d.ts +1 -1
  115. package/dist/index.js +1 -1
  116. package/dist/integration-toolkit-4W2SXQZZ.cjs +7 -0
  117. package/dist/integration-toolkit-WZ324PVF.js +7 -0
  118. package/dist/{integration-toolkit.d-BQ0Fj-48.d.cts → integration-toolkit.d-DRYMfItg.d.cts} +21 -2
  119. package/dist/{integration-toolkit.d-BQ0Fj-48.d.ts → integration-toolkit.d-DRYMfItg.d.ts} +21 -2
  120. package/docs/integration-toolkit.md +7 -1
  121. package/package.json +1 -1
  122. package/dist/integration-toolkit-4ADZMNTB.cjs +0 -7
  123. package/dist/integration-toolkit-BCRYMKLW.js +0 -7
@@ -4055,6 +4055,21 @@ declare namespace Components {
4055
4055
  * 2025-01-31T23:59:59Z
4056
4056
  */
4057
4057
  to_date?: string; // date-time
4058
+ /**
4059
+ * Count only the events of ONE run. Every span a run produces carries its `correlation_id` (for a file import, the `import_id`), so this turns the stats call into an exact per-run readout — no time range to guess at, no pagination, and no 2000-span cap as on `/monitoring/traces/{correlationId}`. Applies to the `monitoring` source; the `incoming` feed is counted per received event and ignores it.
4060
+ * example:
4061
+ * imp_01M3799K98B6TG7GV7Q2DQT554
4062
+ */
4063
+ correlation_id?: string;
4064
+ /**
4065
+ * Count the events of THESE runs (matches any). Takes precedence over `correlation_id` when both are present. With `group_by=correlation_id` this returns one row per run, which is how a list of jobs gets a per-row readout in a single query instead of one call per row.
4066
+ * example:
4067
+ * [
4068
+ * "imp_01M3799K98B6TG7GV7Q2DQT554",
4069
+ * "imp_01M374YPQ0E7ZB0VYJZSK72M4E"
4070
+ * ]
4071
+ */
4072
+ correlation_ids?: string[];
4058
4073
  /**
4059
4074
  * Filter stats by a single use case type
4060
4075
  */
@@ -4064,9 +4079,9 @@ declare namespace Components {
4064
4079
  */
4065
4080
  use_case_types?: ("inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy")[];
4066
4081
  /**
4067
- * Field to group the breakdown by
4082
+ * Field to group the breakdown by. `correlation_id` gives one row per run — pair it with `correlation_ids` to bound the result to the runs on screen.
4068
4083
  */
4069
- group_by?: "use_case_id" | "use_case_type" | "level" | "code" | "date";
4084
+ group_by?: "use_case_id" | "use_case_type" | "level" | "code" | "correlation_id" | "date";
4070
4085
  /**
4071
4086
  * Data source for the stats. "monitoring" (default) aggregates processed events from erp_monitoring_v2 — this counts every event produced throughout the processing tree (fan-out children, post-actions, relation resolutions, etc.). "incoming" counts only the initial inbound events actually received (distinct event_id from erp_incoming_events); only group_by=use_case_id is supported and status/level breakdown is not available for this source (success/error/warning/skipped counts are returned as 0).
4072
4087
  *
@@ -5931,6 +5946,10 @@ declare namespace Components {
5931
5946
  * Timestamp of the most recent error
5932
5947
  */
5933
5948
  last_error_at?: string | null; // date-time
5949
+ /**
5950
+ * Timestamp of the most recent event of ANY level — "is this still moving?", which is a different question from when it last broke. Null when the filter matched nothing.
5951
+ */
5952
+ last_event_at?: string | null; // date-time
5934
5953
  /**
5935
5954
  * Statistics breakdown by requested group_by field
5936
5955
  */
@@ -4055,6 +4055,21 @@ declare namespace Components {
4055
4055
  * 2025-01-31T23:59:59Z
4056
4056
  */
4057
4057
  to_date?: string; // date-time
4058
+ /**
4059
+ * Count only the events of ONE run. Every span a run produces carries its `correlation_id` (for a file import, the `import_id`), so this turns the stats call into an exact per-run readout — no time range to guess at, no pagination, and no 2000-span cap as on `/monitoring/traces/{correlationId}`. Applies to the `monitoring` source; the `incoming` feed is counted per received event and ignores it.
4060
+ * example:
4061
+ * imp_01M3799K98B6TG7GV7Q2DQT554
4062
+ */
4063
+ correlation_id?: string;
4064
+ /**
4065
+ * Count the events of THESE runs (matches any). Takes precedence over `correlation_id` when both are present. With `group_by=correlation_id` this returns one row per run, which is how a list of jobs gets a per-row readout in a single query instead of one call per row.
4066
+ * example:
4067
+ * [
4068
+ * "imp_01M3799K98B6TG7GV7Q2DQT554",
4069
+ * "imp_01M374YPQ0E7ZB0VYJZSK72M4E"
4070
+ * ]
4071
+ */
4072
+ correlation_ids?: string[];
4058
4073
  /**
4059
4074
  * Filter stats by a single use case type
4060
4075
  */
@@ -4064,9 +4079,9 @@ declare namespace Components {
4064
4079
  */
4065
4080
  use_case_types?: ("inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy")[];
4066
4081
  /**
4067
- * Field to group the breakdown by
4082
+ * Field to group the breakdown by. `correlation_id` gives one row per run — pair it with `correlation_ids` to bound the result to the runs on screen.
4068
4083
  */
4069
- group_by?: "use_case_id" | "use_case_type" | "level" | "code" | "date";
4084
+ group_by?: "use_case_id" | "use_case_type" | "level" | "code" | "correlation_id" | "date";
4070
4085
  /**
4071
4086
  * Data source for the stats. "monitoring" (default) aggregates processed events from erp_monitoring_v2 — this counts every event produced throughout the processing tree (fan-out children, post-actions, relation resolutions, etc.). "incoming" counts only the initial inbound events actually received (distinct event_id from erp_incoming_events); only group_by=use_case_id is supported and status/level breakdown is not available for this source (success/error/warning/skipped counts are returned as 0).
4072
4087
  *
@@ -5931,6 +5946,10 @@ declare namespace Components {
5931
5946
  * Timestamp of the most recent error
5932
5947
  */
5933
5948
  last_error_at?: string | null; // date-time
5949
+ /**
5950
+ * Timestamp of the most recent event of ANY level — "is this still moving?", which is a different question from when it last broke. Null when the filter matched nothing.
5951
+ */
5952
+ last_event_at?: string | null; // date-time
5934
5953
  /**
5935
5954
  * Statistics breakdown by requested group_by field
5936
5955
  */
@@ -3244,6 +3244,8 @@ const { data } = await client.getMonitoringStatsV2(
3244
3244
  {
3245
3245
  from_date: '2025-01-01T00:00:00Z',
3246
3246
  to_date: '2025-01-31T23:59:59Z',
3247
+ correlation_id: 'imp_01M3799K98B6TG7GV7Q2DQT554',
3248
+ correlation_ids: ['imp_01M3799K98B6TG7GV7Q2DQT554', 'imp_01M374YPQ0E7ZB0VYJZSK72M4E'],
3247
3249
  use_case_type: 'inbound',
3248
3250
  use_case_types: ['inbound'],
3249
3251
  group_by: 'use_case_id',
@@ -3266,6 +3268,7 @@ const { data } = await client.getMonitoringStatsV2(
3266
3268
  "ack_timeout_count": 0,
3267
3269
  "success_rate": 0,
3268
3270
  "last_error_at": "1970-01-01T00:00:00.000Z",
3271
+ "last_event_at": "1970-01-01T00:00:00.000Z",
3269
3272
  "breakdown": [
3270
3273
  {}
3271
3274
  ]
@@ -9542,9 +9545,11 @@ type MonitoringEventV2 = {
9542
9545
  type GetMonitoringStatsV2Request = {
9543
9546
  from_date?: string // date-time
9544
9547
  to_date?: string // date-time
9548
+ correlation_id?: string
9549
+ correlation_ids?: string[]
9545
9550
  use_case_type?: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy"
9546
9551
  use_case_types?: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy"[]
9547
- group_by?: "use_case_id" | "use_case_type" | "level" | "code" | "date"
9552
+ group_by?: "use_case_id" | "use_case_type" | "level" | "code" | "correlation_id" | "date"
9548
9553
  source?: "monitoring" | "incoming"
9549
9554
  }
9550
9555
  ```
@@ -9562,6 +9567,7 @@ type MonitoringStatsV2 = {
9562
9567
  ack_timeout_count?: number
9563
9568
  success_rate?: number
9564
9569
  last_error_at?: string // date-time
9570
+ last_event_at?: string // date-time
9565
9571
  breakdown?: Record<string, unknown>[]
9566
9572
  }
9567
9573
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.20.36",
3
+ "version": "2.20.37",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",