@epilot/sdk 2.20.58 → 2.20.59

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 (134) hide show
  1. package/definitions/integration-toolkit-runtime.json +1 -1
  2. package/definitions/integration-toolkit.json +183 -1
  3. package/dist/apis/access-token.cjs +6 -6
  4. package/dist/apis/access-token.js +1 -1
  5. package/dist/apis/address-suggestions.cjs +6 -6
  6. package/dist/apis/address-suggestions.js +1 -1
  7. package/dist/apis/address.cjs +6 -6
  8. package/dist/apis/address.js +1 -1
  9. package/dist/apis/ai-agents.cjs +6 -6
  10. package/dist/apis/ai-agents.js +1 -1
  11. package/dist/apis/app.cjs +6 -6
  12. package/dist/apis/app.js +1 -1
  13. package/dist/apis/audit-logs.cjs +6 -6
  14. package/dist/apis/audit-logs.js +1 -1
  15. package/dist/apis/automation.cjs +6 -6
  16. package/dist/apis/automation.js +1 -1
  17. package/dist/apis/billing.cjs +6 -6
  18. package/dist/apis/billing.js +1 -1
  19. package/dist/apis/blueprint-manifest.cjs +6 -6
  20. package/dist/apis/blueprint-manifest.js +1 -1
  21. package/dist/apis/calendar.cjs +6 -6
  22. package/dist/apis/calendar.js +1 -1
  23. package/dist/apis/chat.cjs +6 -6
  24. package/dist/apis/chat.js +1 -1
  25. package/dist/apis/configuration-hub.cjs +6 -6
  26. package/dist/apis/configuration-hub.js +1 -1
  27. package/dist/apis/consent.cjs +6 -6
  28. package/dist/apis/consent.js +1 -1
  29. package/dist/apis/customer-portal.cjs +6 -6
  30. package/dist/apis/customer-portal.js +1 -1
  31. package/dist/apis/dashboard.cjs +6 -6
  32. package/dist/apis/dashboard.js +1 -1
  33. package/dist/apis/data-governance.cjs +6 -6
  34. package/dist/apis/data-governance.js +1 -1
  35. package/dist/apis/deduplication.cjs +6 -6
  36. package/dist/apis/deduplication.js +1 -1
  37. package/dist/apis/design.cjs +6 -6
  38. package/dist/apis/design.js +1 -1
  39. package/dist/apis/document.cjs +6 -6
  40. package/dist/apis/document.js +1 -1
  41. package/dist/apis/email-settings.cjs +6 -6
  42. package/dist/apis/email-settings.js +1 -1
  43. package/dist/apis/email-template.cjs +6 -6
  44. package/dist/apis/email-template.js +1 -1
  45. package/dist/apis/entity-mapping.cjs +6 -6
  46. package/dist/apis/entity-mapping.js +1 -1
  47. package/dist/apis/entity.cjs +6 -6
  48. package/dist/apis/entity.js +1 -1
  49. package/dist/apis/environments.cjs +6 -6
  50. package/dist/apis/environments.js +1 -1
  51. package/dist/apis/event-catalog.cjs +6 -6
  52. package/dist/apis/event-catalog.js +1 -1
  53. package/dist/apis/external-values.cjs +6 -6
  54. package/dist/apis/external-values.js +1 -1
  55. package/dist/apis/file.cjs +6 -6
  56. package/dist/apis/file.js +1 -1
  57. package/dist/apis/iban.cjs +6 -6
  58. package/dist/apis/iban.js +1 -1
  59. package/dist/apis/identity.cjs +6 -6
  60. package/dist/apis/identity.js +1 -1
  61. package/dist/apis/integration-toolkit.cjs +8 -8
  62. package/dist/apis/integration-toolkit.d.cts +2 -2
  63. package/dist/apis/integration-toolkit.d.ts +2 -2
  64. package/dist/apis/integration-toolkit.js +2 -2
  65. package/dist/apis/journey.cjs +6 -6
  66. package/dist/apis/journey.js +1 -1
  67. package/dist/apis/kanban.cjs +6 -6
  68. package/dist/apis/kanban.js +1 -1
  69. package/dist/apis/message.cjs +6 -6
  70. package/dist/apis/message.js +1 -1
  71. package/dist/apis/metering.cjs +6 -6
  72. package/dist/apis/metering.js +1 -1
  73. package/dist/apis/notes.cjs +6 -6
  74. package/dist/apis/notes.js +1 -1
  75. package/dist/apis/notification.cjs +6 -6
  76. package/dist/apis/notification.js +1 -1
  77. package/dist/apis/organization.cjs +6 -6
  78. package/dist/apis/organization.js +1 -1
  79. package/dist/apis/partner-directory.cjs +6 -6
  80. package/dist/apis/partner-directory.js +1 -1
  81. package/dist/apis/permissions.cjs +6 -6
  82. package/dist/apis/permissions.js +1 -1
  83. package/dist/apis/phone-integration.cjs +6 -6
  84. package/dist/apis/phone-integration.js +1 -1
  85. package/dist/apis/pricing-tier.cjs +6 -6
  86. package/dist/apis/pricing-tier.js +1 -1
  87. package/dist/apis/pricing.cjs +6 -6
  88. package/dist/apis/pricing.js +1 -1
  89. package/dist/apis/purpose.cjs +6 -6
  90. package/dist/apis/purpose.js +1 -1
  91. package/dist/apis/query.cjs +6 -6
  92. package/dist/apis/query.js +1 -1
  93. package/dist/apis/sandbox.cjs +6 -6
  94. package/dist/apis/sandbox.js +1 -1
  95. package/dist/apis/sharing.cjs +6 -6
  96. package/dist/apis/sharing.js +1 -1
  97. package/dist/apis/snapshot.cjs +6 -6
  98. package/dist/apis/snapshot.js +1 -1
  99. package/dist/apis/submission.cjs +6 -6
  100. package/dist/apis/submission.js +1 -1
  101. package/dist/apis/target.cjs +6 -6
  102. package/dist/apis/target.js +1 -1
  103. package/dist/apis/targeting.cjs +6 -6
  104. package/dist/apis/targeting.js +1 -1
  105. package/dist/apis/template-variables.cjs +6 -6
  106. package/dist/apis/template-variables.js +1 -1
  107. package/dist/apis/user.cjs +6 -6
  108. package/dist/apis/user.js +1 -1
  109. package/dist/apis/validation-rules.cjs +6 -6
  110. package/dist/apis/validation-rules.js +1 -1
  111. package/dist/apis/webhooks.cjs +6 -6
  112. package/dist/apis/webhooks.js +1 -1
  113. package/dist/apis/workflow-definition.cjs +6 -6
  114. package/dist/apis/workflow-definition.js +1 -1
  115. package/dist/apis/workflow.cjs +6 -6
  116. package/dist/apis/workflow.js +1 -1
  117. package/dist/{chunk-S5K3TLPQ.cjs → chunk-FPQK7U3P.cjs} +2 -2
  118. package/dist/{chunk-6JWMDS4Z.js → chunk-MBWCGRCK.js} +1 -1
  119. package/dist/{chunk-VAC7N66U.js → chunk-WPDKRU5K.js} +2 -2
  120. package/dist/{chunk-EPZ3JT2W.cjs → chunk-Y7KWK5H2.cjs} +1 -1
  121. package/dist/index.cjs +10 -10
  122. package/dist/index.d.cts +1 -1
  123. package/dist/index.d.ts +1 -1
  124. package/dist/index.js +2 -2
  125. package/dist/integration-toolkit-AB3GZDWM.cjs +7 -0
  126. package/dist/integration-toolkit-L745CJ5G.js +7 -0
  127. package/dist/{integration-toolkit-runtime-FT2J5NFV.js → integration-toolkit-runtime-3LKW4ORQ.js} +1 -1
  128. package/dist/{integration-toolkit-runtime-GDJVWSKC.cjs → integration-toolkit-runtime-3PM3MBEF.cjs} +2 -2
  129. package/dist/{integration-toolkit.d-DWslwG3c.d.cts → integration-toolkit.d-oORkWs_H.d.cts} +150 -1
  130. package/dist/{integration-toolkit.d-DWslwG3c.d.ts → integration-toolkit.d-oORkWs_H.d.ts} +150 -1
  131. package/docs/integration-toolkit.md +138 -3
  132. package/package.json +1 -1
  133. package/dist/integration-toolkit-3J7KVCK7.cjs +0 -7
  134. package/dist/integration-toolkit-CV2AU2R7.js +0 -7
@@ -88,6 +88,7 @@ const { data } = await integrationToolkitClient.acknowledgeTracking(...)
88
88
  - [`getAssociatedMonitoringEvents`](#getassociatedmonitoringevents)
89
89
  - [`ingestExternalMonitoringEvents`](#ingestexternalmonitoringevents)
90
90
  - [`getMonitoringTraceByCorrelation`](#getmonitoringtracebycorrelation)
91
+ - [`getMonitoringRunCompletionV2`](#getmonitoringruncompletionv2)
91
92
 
92
93
  **proxy**
93
94
  - [`secureProxy`](#secureproxy)
@@ -318,6 +319,10 @@ const { data } = await integrationToolkitClient.acknowledgeTracking(...)
318
319
  - [`MonitoringCode`](#monitoringcode)
319
320
  - [`MonitoringEventV2`](#monitoringeventv2)
320
321
  - [`GetMonitoringStatsV2Request`](#getmonitoringstatsv2request)
322
+ - [`GetMonitoringRunCompletionV2Request`](#getmonitoringruncompletionv2request)
323
+ - [`MonitoringRunCompletionV2Response`](#monitoringruncompletionv2response)
324
+ - [`MonitoringRunCompletionV2`](#monitoringruncompletionv2)
325
+ - [`MonitoringRunEntriesV2`](#monitoringrunentriesv2)
321
326
  - [`MonitoringStatsV2`](#monitoringstatsv2)
322
327
  - [`GetMonitoringTimeSeriesV2Request`](#getmonitoringtimeseriesv2request)
323
328
  - [`TimeSeriesBreakdownItemV2`](#timeseriesbreakdownitemv2)
@@ -3466,6 +3471,57 @@ const { data } = await client.getMonitoringTraceByCorrelation({
3466
3471
 
3467
3472
  ---
3468
3473
 
3474
+ ### `getMonitoringRunCompletionV2`
3475
+
3476
+ Per-event completion of one or more runs (every monitoring event sharing a
3477
+ `correlation_id`), each reduced to "how many events have reached a final
3478
+ outcome, and how many are still going". Unlike `getM
3479
+
3480
+ `POST /v2/integrations/{integrationId}/monitoring/runs/completion`
3481
+
3482
+ ```ts
3483
+ const { data } = await client.getMonitoringRunCompletionV2(
3484
+ {
3485
+ integrationId: 'example',
3486
+ },
3487
+ {
3488
+ correlation_ids: ['string']
3489
+ },
3490
+ )
3491
+ ```
3492
+
3493
+ <details>
3494
+ <summary>Response</summary>
3495
+
3496
+ ```json
3497
+ {
3498
+ "runs": [
3499
+ {
3500
+ "correlation_id": "string",
3501
+ "seen": 0,
3502
+ "in_flight": 0,
3503
+ "retrying": 0,
3504
+ "success": 0,
3505
+ "warning": 0,
3506
+ "error": 0,
3507
+ "info": 0,
3508
+ "entries": {
3509
+ "total": 0,
3510
+ "error": 0,
3511
+ "warning": 0,
3512
+ "success": 0,
3513
+ "info": 0
3514
+ },
3515
+ "last_activity_at": "1970-01-01T00:00:00.000Z"
3516
+ }
3517
+ ]
3518
+ }
3519
+ ```
3520
+
3521
+ </details>
3522
+
3523
+ ---
3524
+
3469
3525
  ### `listSecureProxies`
3470
3526
 
3471
3527
  Lists all secure_proxy use cases across all integrations for the authenticated organization.
@@ -3736,7 +3792,8 @@ const { data } = await client.createErpImport(
3736
3792
  },
3737
3793
  "progress": {
3738
3794
  "processed_rows": 0,
3739
- "total_rows": 0
3795
+ "total_rows": 0,
3796
+ "events_published": 0
3740
3797
  },
3741
3798
  "error": {
3742
3799
  "code": "VALIDATION_BLOCKED",
@@ -3833,7 +3890,8 @@ const { data } = await client.listErpImports({
3833
3890
  },
3834
3891
  "progress": {
3835
3892
  "processed_rows": 0,
3836
- "total_rows": 0
3893
+ "total_rows": 0,
3894
+ "events_published": 0
3837
3895
  },
3838
3896
  "error": {
3839
3897
  "code": "VALIDATION_BLOCKED",
@@ -3923,7 +3981,8 @@ const { data } = await client.getErpImport({
3923
3981
  },
3924
3982
  "progress": {
3925
3983
  "processed_rows": 0,
3926
- "total_rows": 0
3984
+ "total_rows": 0,
3985
+ "events_published": 0
3927
3986
  },
3928
3987
  "error": {
3929
3988
  "code": "VALIDATION_BLOCKED",
@@ -4263,6 +4322,7 @@ How far the currently running phase has got. Written at every batch boundary, so
4263
4322
  type ErpImportProgress = {
4264
4323
  processed_rows: number
4265
4324
  total_rows?: number
4325
+ events_published?: number
4266
4326
  }
4267
4327
  ```
4268
4328
 
@@ -4327,6 +4387,7 @@ type CreateErpImportResponse = {
4327
4387
  progress?: {
4328
4388
  processed_rows: { ... }
4329
4389
  total_rows?: { ... }
4390
+ events_published?: { ... }
4330
4391
  }
4331
4392
  error?: {
4332
4393
  code: { ... }
@@ -4389,6 +4450,7 @@ type ErpImportJob = {
4389
4450
  progress?: {
4390
4451
  processed_rows: number
4391
4452
  total_rows?: number
4453
+ events_published?: number
4392
4454
  }
4393
4455
  error?: {
4394
4456
  code: "VALIDATION_BLOCKED" | "FILE_FORMAT_UNSUPPORTED" | "FILE_UNAVAILABLE" | "VALIDATE_TIMEOUT" | "IMPORT_TIMEOUT" | "USE_CASE_NOT_USABLE" | "IMPORT_NO_PROGRESS" | "TIER_ROWS_NOT_GROUPED" | "CHUNK_TOO_LARGE" | "INTERNAL_ERROR"
@@ -4430,6 +4492,7 @@ type ErpImportList = {
4430
4492
  progress?: {
4431
4493
  processed_rows: { ... }
4432
4494
  total_rows?: { ... }
4495
+ events_published?: { ... }
4433
4496
  }
4434
4497
  error?: {
4435
4498
  code: { ... }
@@ -9661,6 +9724,78 @@ type GetMonitoringStatsV2Request = {
9661
9724
  }
9662
9725
  ```
9663
9726
 
9727
+ ### `GetMonitoringRunCompletionV2Request`
9728
+
9729
+ ```ts
9730
+ type GetMonitoringRunCompletionV2Request = {
9731
+ correlation_ids: string[]
9732
+ }
9733
+ ```
9734
+
9735
+ ### `MonitoringRunCompletionV2Response`
9736
+
9737
+ ```ts
9738
+ type MonitoringRunCompletionV2Response = {
9739
+ runs: Array<{
9740
+ correlation_id: string
9741
+ seen: number
9742
+ in_flight: number
9743
+ retrying: number
9744
+ success: number
9745
+ warning: number
9746
+ error: number
9747
+ info: number
9748
+ entries: {
9749
+ total: { ... }
9750
+ error: { ... }
9751
+ warning: { ... }
9752
+ success: { ... }
9753
+ info: { ... }
9754
+ }
9755
+ last_activity_at: string // date-time
9756
+ }>
9757
+ }
9758
+ ```
9759
+
9760
+ ### `MonitoringRunCompletionV2`
9761
+
9762
+ Per-event completion of one run. Every count is in EVENTS (distinct `event_id`), never rows: `seen = in_flight + success + warning + error + info`.
9763
+
9764
+ ```ts
9765
+ type MonitoringRunCompletionV2 = {
9766
+ correlation_id: string
9767
+ seen: number
9768
+ in_flight: number
9769
+ retrying: number
9770
+ success: number
9771
+ warning: number
9772
+ error: number
9773
+ info: number
9774
+ entries: {
9775
+ total: number
9776
+ error: number
9777
+ warning: number
9778
+ success: number
9779
+ info: number
9780
+ }
9781
+ last_activity_at: string // date-time
9782
+ }
9783
+ ```
9784
+
9785
+ ### `MonitoringRunEntriesV2`
9786
+
9787
+ The run's monitoring rows counted by level, retry markers included — the same rows its trace lists. Unlike the event counts above, one event can contribute many rows (one per entity written, plus every caveat and retry).
9788
+
9789
+ ```ts
9790
+ type MonitoringRunEntriesV2 = {
9791
+ total: number
9792
+ error: number
9793
+ warning: number
9794
+ success: number
9795
+ info: number
9796
+ }
9797
+ ```
9798
+
9664
9799
  ### `MonitoringStatsV2`
9665
9800
 
9666
9801
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.20.58",
3
+ "version": "2.20.59",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",