@epilot/sdk 2.5.0 → 2.7.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.
Files changed (165) hide show
  1. package/definitions/event-catalog-runtime.json +1 -1
  2. package/definitions/event-catalog.json +256 -1
  3. package/definitions/integration-toolkit-runtime.json +1 -1
  4. package/definitions/integration-toolkit.json +480 -4
  5. package/definitions/metering-runtime.json +1 -1
  6. package/definitions/metering.json +728 -64
  7. package/definitions/webhooks.json +19 -4
  8. package/dist/apis/access-token.cjs +6 -6
  9. package/dist/apis/access-token.js +1 -1
  10. package/dist/apis/address-suggestions.cjs +6 -6
  11. package/dist/apis/address-suggestions.js +1 -1
  12. package/dist/apis/address.cjs +6 -6
  13. package/dist/apis/address.js +1 -1
  14. package/dist/apis/ai-agents.cjs +6 -6
  15. package/dist/apis/ai-agents.js +1 -1
  16. package/dist/apis/app.cjs +6 -6
  17. package/dist/apis/app.js +1 -1
  18. package/dist/apis/audit-logs.cjs +6 -6
  19. package/dist/apis/audit-logs.js +1 -1
  20. package/dist/apis/automation.cjs +6 -6
  21. package/dist/apis/automation.js +1 -1
  22. package/dist/apis/billing.cjs +6 -6
  23. package/dist/apis/billing.js +1 -1
  24. package/dist/apis/blueprint-manifest.cjs +6 -6
  25. package/dist/apis/blueprint-manifest.js +1 -1
  26. package/dist/apis/calendar.cjs +6 -6
  27. package/dist/apis/calendar.js +1 -1
  28. package/dist/apis/configuration-hub.cjs +6 -6
  29. package/dist/apis/configuration-hub.js +1 -1
  30. package/dist/apis/consent.cjs +6 -6
  31. package/dist/apis/consent.js +1 -1
  32. package/dist/apis/customer-portal.cjs +6 -6
  33. package/dist/apis/customer-portal.js +1 -1
  34. package/dist/apis/dashboard.cjs +6 -6
  35. package/dist/apis/dashboard.js +1 -1
  36. package/dist/apis/data-governance.cjs +6 -6
  37. package/dist/apis/data-governance.js +1 -1
  38. package/dist/apis/deduplication.cjs +6 -6
  39. package/dist/apis/deduplication.js +1 -1
  40. package/dist/apis/design.cjs +6 -6
  41. package/dist/apis/design.js +1 -1
  42. package/dist/apis/document.cjs +6 -6
  43. package/dist/apis/document.js +1 -1
  44. package/dist/apis/email-settings.cjs +6 -6
  45. package/dist/apis/email-settings.js +1 -1
  46. package/dist/apis/email-template.cjs +6 -6
  47. package/dist/apis/email-template.js +1 -1
  48. package/dist/apis/entity-mapping.cjs +6 -6
  49. package/dist/apis/entity-mapping.js +1 -1
  50. package/dist/apis/entity.cjs +6 -6
  51. package/dist/apis/entity.js +1 -1
  52. package/dist/apis/environments.cjs +6 -6
  53. package/dist/apis/environments.js +1 -1
  54. package/dist/apis/event-catalog.cjs +8 -8
  55. package/dist/apis/event-catalog.d.cts +2 -2
  56. package/dist/apis/event-catalog.d.ts +2 -2
  57. package/dist/apis/event-catalog.js +2 -2
  58. package/dist/apis/file.cjs +6 -6
  59. package/dist/apis/file.js +1 -1
  60. package/dist/apis/iban.cjs +6 -6
  61. package/dist/apis/iban.js +1 -1
  62. package/dist/apis/integration-toolkit.cjs +8 -8
  63. package/dist/apis/integration-toolkit.d.cts +2 -2
  64. package/dist/apis/integration-toolkit.d.ts +2 -2
  65. package/dist/apis/integration-toolkit.js +2 -2
  66. package/dist/apis/journey.cjs +6 -6
  67. package/dist/apis/journey.js +1 -1
  68. package/dist/apis/kanban.cjs +6 -6
  69. package/dist/apis/kanban.js +1 -1
  70. package/dist/apis/message.cjs +6 -6
  71. package/dist/apis/message.js +1 -1
  72. package/dist/apis/metering.cjs +8 -8
  73. package/dist/apis/metering.d.cts +2 -2
  74. package/dist/apis/metering.d.ts +2 -2
  75. package/dist/apis/metering.js +2 -2
  76. package/dist/apis/notes.cjs +6 -6
  77. package/dist/apis/notes.js +1 -1
  78. package/dist/apis/notification.cjs +6 -6
  79. package/dist/apis/notification.js +1 -1
  80. package/dist/apis/organization.cjs +6 -6
  81. package/dist/apis/organization.js +1 -1
  82. package/dist/apis/partner-directory.cjs +6 -6
  83. package/dist/apis/partner-directory.js +1 -1
  84. package/dist/apis/permissions.cjs +6 -6
  85. package/dist/apis/permissions.js +1 -1
  86. package/dist/apis/pricing-tier.cjs +6 -6
  87. package/dist/apis/pricing-tier.js +1 -1
  88. package/dist/apis/pricing.cjs +6 -6
  89. package/dist/apis/pricing.js +1 -1
  90. package/dist/apis/purpose.cjs +6 -6
  91. package/dist/apis/purpose.js +1 -1
  92. package/dist/apis/query.cjs +6 -6
  93. package/dist/apis/query.js +1 -1
  94. package/dist/apis/sandbox.cjs +6 -6
  95. package/dist/apis/sandbox.js +1 -1
  96. package/dist/apis/sharing.cjs +6 -6
  97. package/dist/apis/sharing.js +1 -1
  98. package/dist/apis/submission.cjs +6 -6
  99. package/dist/apis/submission.js +1 -1
  100. package/dist/apis/target.cjs +6 -6
  101. package/dist/apis/target.js +1 -1
  102. package/dist/apis/targeting.cjs +6 -6
  103. package/dist/apis/targeting.js +1 -1
  104. package/dist/apis/template-variables.cjs +6 -6
  105. package/dist/apis/template-variables.js +1 -1
  106. package/dist/apis/user.cjs +6 -6
  107. package/dist/apis/user.js +1 -1
  108. package/dist/apis/validation-rules.cjs +6 -6
  109. package/dist/apis/validation-rules.js +1 -1
  110. package/dist/apis/webhooks.cjs +6 -6
  111. package/dist/apis/webhooks.d.cts +2 -2
  112. package/dist/apis/webhooks.d.ts +2 -2
  113. package/dist/apis/webhooks.js +1 -1
  114. package/dist/apis/workflow-definition.cjs +6 -6
  115. package/dist/apis/workflow-definition.js +1 -1
  116. package/dist/apis/workflow.cjs +6 -6
  117. package/dist/apis/workflow.js +1 -1
  118. package/dist/{chunk-C7GDYBXX.cjs → chunk-35CN2YFK.cjs} +7 -7
  119. package/dist/{chunk-JTFWOEZF.cjs → chunk-4FFGRWLS.cjs} +1 -1
  120. package/dist/chunk-56MMZJOD.js +14 -0
  121. package/dist/{chunk-BLNXQAMX.cjs → chunk-CBDKPGO5.cjs} +1 -1
  122. package/dist/{chunk-WRD2XFHY.js → chunk-JB7LITSP.js} +7 -7
  123. package/dist/{chunk-TME4YJNP.js → chunk-OCMIXJWC.js} +1 -1
  124. package/dist/chunk-T6A22LSD.cjs +14 -0
  125. package/dist/chunk-WM74R3BD.js +14 -0
  126. package/dist/event-catalog-37B6JC7G.js +7 -0
  127. package/dist/event-catalog-5JBHJJ2I.cjs +7 -0
  128. package/dist/{event-catalog-runtime-5HQSAJVX.cjs → event-catalog-runtime-B2BPKQVG.cjs} +2 -2
  129. package/dist/{event-catalog-runtime-6FA3SCRI.js → event-catalog-runtime-N262TQ3Y.js} +1 -1
  130. package/dist/{event-catalog.d-ENw6HO-w.d.cts → event-catalog.d-mQJLSYUo.d.cts} +351 -6
  131. package/dist/{event-catalog.d-ENw6HO-w.d.ts → event-catalog.d-mQJLSYUo.d.ts} +351 -6
  132. package/dist/index.cjs +14 -14
  133. package/dist/index.d.cts +4 -4
  134. package/dist/index.d.ts +4 -4
  135. package/dist/index.js +4 -4
  136. package/dist/integration-toolkit-3I3IPVFN.cjs +7 -0
  137. package/dist/integration-toolkit-XAFQXNQY.js +7 -0
  138. package/dist/{integration-toolkit-runtime-5KG3LGXF.cjs → integration-toolkit-runtime-YHTU4X5J.cjs} +2 -2
  139. package/dist/{integration-toolkit-runtime-LYHFVIRW.js → integration-toolkit-runtime-YR4CIMKH.js} +1 -1
  140. package/dist/{integration-toolkit.d-Ry-KC9ow.d.cts → integration-toolkit.d-BstNqiJb.d.cts} +460 -20
  141. package/dist/{integration-toolkit.d-Ry-KC9ow.d.ts → integration-toolkit.d-BstNqiJb.d.ts} +460 -20
  142. package/dist/metering-3IUSYAGN.js +7 -0
  143. package/dist/metering-MHBFU7QH.cjs +7 -0
  144. package/dist/{metering-runtime-HAIWXZXJ.cjs → metering-runtime-IUZJHBVS.cjs} +2 -2
  145. package/dist/{metering-runtime-NJ6NEUMB.js → metering-runtime-KZMJKKUZ.js} +1 -1
  146. package/dist/{metering.d-DvtPv7wk.d.ts → metering.d-CUICZDiL.d.cts} +718 -130
  147. package/dist/{metering.d-DvtPv7wk.d.cts → metering.d-CUICZDiL.d.ts} +718 -130
  148. package/dist/{webhooks-XLBUXXCS.js → webhooks-NZHJBT64.js} +1 -1
  149. package/dist/{webhooks-NZ3TM3AY.cjs → webhooks-SK2STDKR.cjs} +1 -1
  150. package/dist/{webhooks.d-D79qib9f.d.cts → webhooks.d-ByePoUWs.d.cts} +40 -4
  151. package/dist/{webhooks.d-D79qib9f.d.ts → webhooks.d-ByePoUWs.d.ts} +40 -4
  152. package/docs/event-catalog.md +247 -1
  153. package/docs/integration-toolkit.md +334 -19
  154. package/docs/metering.md +570 -48
  155. package/docs/webhooks.md +3 -1
  156. package/package.json +1 -1
  157. package/dist/chunk-265TE2OV.js +0 -14
  158. package/dist/chunk-4ZMLRFDX.cjs +0 -14
  159. package/dist/chunk-U4PUHKZC.js +0 -14
  160. package/dist/event-catalog-C45ISVMP.cjs +0 -7
  161. package/dist/event-catalog-D7VJ7WRS.js +0 -7
  162. package/dist/integration-toolkit-FRPFOYT2.js +0 -7
  163. package/dist/integration-toolkit-VNMDI55O.cjs +0 -7
  164. package/dist/metering-DZNZPPY6.cjs +0 -7
  165. package/dist/metering-KOSCPPKB.js +0 -7
@@ -1,12 +1,22 @@
1
1
  import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
2
2
 
3
3
  /* Auto-copied from event-catalog-client */
4
- /* eslint-disable */
5
-
6
4
 
7
5
 
8
6
  declare namespace Components {
9
7
  namespace Schemas {
8
+ /**
9
+ * A schema field representing file attachments associated with the event.
10
+ * Present in schema_fields for events tagged with "attachment".
11
+ *
12
+ */
13
+ export interface AttachmentField {
14
+ items: /* A file attachment associated with an event */ EventAttachment;
15
+ /**
16
+ * Whether this field is required in the event payload
17
+ */
18
+ required?: boolean;
19
+ }
10
20
  /**
11
21
  * Common metadata fields present in all event payloads
12
22
  * example:
@@ -193,6 +203,48 @@ declare namespace Components {
193
203
  */
194
204
  _ack_id?: string;
195
205
  }
206
+ /**
207
+ * A file attachment associated with an event
208
+ */
209
+ export interface EventAttachment {
210
+ /**
211
+ * Entity ID of the file
212
+ */
213
+ entity_id: string; // uuid
214
+ /**
215
+ * Name of the file
216
+ */
217
+ filename?: string;
218
+ /**
219
+ * MIME type of the file (e.g., application/pdf)
220
+ */
221
+ mime_type?: string;
222
+ /**
223
+ * File size in bytes
224
+ */
225
+ size_bytes?: number;
226
+ /**
227
+ * S3 reference for the file content
228
+ */
229
+ s3ref?: {
230
+ /**
231
+ * S3 bucket name
232
+ */
233
+ bucket: string;
234
+ /**
235
+ * S3 object key
236
+ */
237
+ key: string;
238
+ };
239
+ /**
240
+ * File version index (always 0 for newly created files)
241
+ */
242
+ version_index: number;
243
+ /**
244
+ * Human-readable file size (e.g., "200 KB")
245
+ */
246
+ readable_size?: string;
247
+ }
196
248
  /**
197
249
  * Event configuration with required fields
198
250
  */
@@ -634,6 +686,64 @@ declare namespace Components {
634
686
  */
635
687
  export interface EventJsonSchema {
636
688
  }
689
+ /**
690
+ * A lightweight event summary returned by the v2 history endpoint.
691
+ *
692
+ * Includes the standard `_*` metadata fields plus a projected subset of the
693
+ * event payload. Hydrated entity objects (values carrying `_schema` or `_id`
694
+ * and arrays of such objects) are stripped — fetch via
695
+ * `GET /v2/events/{event_name}/history/{event_id}` for full hydration.
696
+ *
697
+ * Projected scalar payload fields appear as additional top-level properties.
698
+ *
699
+ */
700
+ export interface EventSummary {
701
+ [name: string]: any;
702
+ /**
703
+ * epilot tenant/organization ID
704
+ */
705
+ _org_id: string;
706
+ /**
707
+ * ISO 8601 timestamp when event occurred
708
+ */
709
+ _event_time: string; // date-time
710
+ /**
711
+ * Unique event identifier (ULID)
712
+ */
713
+ _event_id: string;
714
+ /**
715
+ * Event name from catalog
716
+ */
717
+ _event_name: string;
718
+ /**
719
+ * Event version (semver)
720
+ * example:
721
+ * 1.0.0
722
+ */
723
+ _event_version: string;
724
+ /**
725
+ * Source that triggered the event
726
+ */
727
+ _event_source: string;
728
+ /**
729
+ * The type of system that triggered the event.
730
+ * Common values: api, automation, operation, portal_user
731
+ *
732
+ * example:
733
+ * api
734
+ */
735
+ _trigger_source_type?: string;
736
+ /**
737
+ * Identifier of the specific trigger source.
738
+ *
739
+ */
740
+ _trigger_source?: string;
741
+ /**
742
+ * Unique acknowledgment tracking ID for the event.
743
+ *
744
+ */
745
+ _ack_id?: string;
746
+ }
637
747
  /**
638
748
  * List of entity fields to include or exclude in the response
639
749
  *
@@ -762,7 +872,12 @@ declare namespace Components {
762
872
  */
763
873
  graph_source?: string;
764
874
  }
765
- export type SchemaField = /* A primitive JSON Schema field definition */ PrimitiveField | ContextEntity;
875
+ export type SchemaField = /* A primitive JSON Schema field definition */ PrimitiveField | ContextEntity | /**
876
+ * A schema field representing file attachments associated with the event.
877
+ * Present in schema_fields for events tagged with "attachment".
878
+ *
879
+ */
880
+ AttachmentField;
766
881
  export interface SearchOptions {
767
882
  /**
768
883
  * Maximum number of results to return
@@ -809,6 +924,81 @@ declare namespace Components {
809
924
  */
810
925
  event_id?: string;
811
926
  }
927
+ /**
928
+ * Search options for the v2 history endpoint.
929
+ *
930
+ * Extends `SearchOptions` with an optional `fields` projection. When `fields`
931
+ * is omitted, the response includes all `_*` metadata plus all scalar payload
932
+ * fields (and primitive arrays / empty objects/arrays) after entity stripping.
933
+ * When `fields` is provided, glob/exclusion semantics from `FieldsParam` apply
934
+ * against `payload.*` paths; `_*` metadata is always included. Entity stripping
935
+ * runs AFTER selection.
936
+ *
937
+ */
938
+ export interface SearchOptionsV2 {
939
+ /**
940
+ * Maximum number of results to return
941
+ */
942
+ limit?: number;
943
+ /**
944
+ * Cursor for pagination. Use the next_cursor from the previous response to get the next page.
945
+ */
946
+ cursor?: {
947
+ /**
948
+ * Timestamp from the last event in the previous page
949
+ * example:
950
+ * 2025-10-31 12:34:56
951
+ */
952
+ event_time?: string;
953
+ /**
954
+ * Event ID from the last event in the previous page
955
+ * example:
956
+ * evt_1234567890abcdef
957
+ */
958
+ event_id?: string;
959
+ };
960
+ /**
961
+ * Filter events by timestamp range
962
+ */
963
+ timestamp?: {
964
+ /**
965
+ * Start timestamp in ISO 8601 format
966
+ * example:
967
+ * 2025-10-01T00:00:00Z
968
+ */
969
+ from?: string; // date-time
970
+ /**
971
+ * End timestamp in ISO 8601 format
972
+ * example:
973
+ * 2025-10-31T23:59:59Z
974
+ */
975
+ to?: string; // date-time
976
+ };
977
+ /**
978
+ * Filter by specific event ID
979
+ * example:
980
+ * evt_1234567890abcdef
981
+ */
982
+ event_id?: string;
983
+ fields?: /**
984
+ * List of entity fields to include or exclude in the response
985
+ *
986
+ * Use ! to exclude fields, e.g. `!_id` to exclude the `_id` field.
987
+ *
988
+ * Globbing and globstart (**) is supported for nested fields.
989
+ *
990
+ * example:
991
+ * [
992
+ * "_id",
993
+ * "_title",
994
+ * "first_name",
995
+ * "account",
996
+ * "!account.*._files",
997
+ * "**._product"
998
+ * ]
999
+ */
1000
+ FieldsParam;
1001
+ }
812
1002
  /**
813
1003
  * Payload for explicitly triggering an event via API
814
1004
  */
@@ -880,7 +1070,7 @@ declare namespace Components {
880
1070
  /**
881
1071
  * Payload for updating an event configuration.
882
1072
  * Accepts the same fields as EventConfig (all optional for PATCH).
883
- * Currently only `enabled` and `auto_trigger` fields are processed, other fields are ignored.
1073
+ * Currently `enabled` and `auto_trigger` fields are processed.
884
1074
  *
885
1075
  */
886
1076
  export interface UpdateEventPayload {
@@ -1209,6 +1399,48 @@ declare namespace Paths {
1209
1399
  Components.Schemas.EventJsonSchema;
1210
1400
  }
1211
1401
  }
1402
+ namespace GetHistoricalEvent {
1403
+ namespace Parameters {
1404
+ export type EventId = string;
1405
+ export type EventName = string;
1406
+ }
1407
+ export interface PathParameters {
1408
+ event_name: Parameters.EventName;
1409
+ event_id: Parameters.EventId;
1410
+ }
1411
+ namespace Responses {
1412
+ export type $200 = /**
1413
+ * An event instance in the event history
1414
+ * example:
1415
+ * {
1416
+ * "_org_id": "org_123456",
1417
+ * "_event_time": "2024-01-01T12:00:00Z",
1418
+ * "_event_id": "01FZ4Z5FZ5FZ5FZ5FZ5FZ5FZ5F",
1419
+ * "_event_name": "MeterReading",
1420
+ * "_event_version": "1.0.0",
1421
+ * "_event_source": "api",
1422
+ * "_trigger_source_type": "api",
1423
+ * "_trigger_source": "user_123456",
1424
+ * "reading_value": 123.45,
1425
+ * "reading_date": "2024-01-01T11:59:00Z",
1426
+ * "read_by": "John Doe",
1427
+ * "reason": "regular",
1428
+ * "direction": "feed-out",
1429
+ * "source": "portal",
1430
+ * "meter_id": "550e8400-e29b-41d4-a716-446655440000",
1431
+ * "counter_id": "660e8400-e29b-41d4-a716-446655440000",
1432
+ * "meter_number": "MT123456789",
1433
+ * "obis_number": "1-0:1.8.0",
1434
+ * "unit": "kWh",
1435
+ * "customer_id": "770e8400-e29b-41d4-a716-446655440000",
1436
+ * "contract_id": "880e8400-e29b-41d4-a716-446655440000"
1437
+ * }
1438
+ */
1439
+ Components.Schemas.Event;
1440
+ export interface $404 {
1441
+ }
1442
+ }
1443
+ }
1212
1444
  namespace ListEvents {
1213
1445
  namespace Responses {
1214
1446
  export interface $200 {
@@ -1226,7 +1458,7 @@ declare namespace Paths {
1226
1458
  export type RequestBody = /**
1227
1459
  * Payload for updating an event configuration.
1228
1460
  * Accepts the same fields as EventConfig (all optional for PATCH).
1229
- * Currently only `enabled` and `auto_trigger` fields are processed, other fields are ignored.
1461
+ * Currently `enabled` and `auto_trigger` fields are processed.
1230
1462
  *
1231
1463
  */
1232
1464
  Components.Schemas.UpdateEventPayload;
@@ -1294,6 +1526,59 @@ declare namespace Paths {
1294
1526
  }
1295
1527
  }
1296
1528
  }
1529
+ namespace SearchEventHistoryV2 {
1530
+ namespace Parameters {
1531
+ export type EventName = string;
1532
+ }
1533
+ export interface PathParameters {
1534
+ event_name: Parameters.EventName;
1535
+ }
1536
+ export type RequestBody = /**
1537
+ * Search options for the v2 history endpoint.
1538
+ *
1539
+ * Extends `SearchOptions` with an optional `fields` projection. When `fields`
1540
+ * is omitted, the response includes all `_*` metadata plus all scalar payload
1541
+ * fields (and primitive arrays / empty objects/arrays) after entity stripping.
1542
+ * When `fields` is provided, glob/exclusion semantics from `FieldsParam` apply
1543
+ * against `payload.*` paths; `_*` metadata is always included. Entity stripping
1544
+ * runs AFTER selection.
1545
+ *
1546
+ */
1547
+ Components.Schemas.SearchOptionsV2;
1548
+ namespace Responses {
1549
+ export interface $200 {
1550
+ results?: /**
1551
+ * A lightweight event summary returned by the v2 history endpoint.
1552
+ *
1553
+ * Includes the standard `_*` metadata fields plus a projected subset of the
1554
+ * event payload. Hydrated entity objects (values carrying `_schema` or `_id`
1555
+ * and arrays of such objects) are stripped — fetch via
1556
+ * `GET /v2/events/{event_name}/history/{event_id}` for full hydration.
1557
+ *
1558
+ * Projected scalar payload fields appear as additional top-level properties.
1559
+ *
1560
+ */
1561
+ Components.Schemas.EventSummary[];
1562
+ /**
1563
+ * Cursor for pagination. Use this to get the next page of results.
1564
+ */
1565
+ next_cursor?: {
1566
+ /**
1567
+ * Timestamp from the last event in the current page
1568
+ * example:
1569
+ * 2025-10-31T12:34:56Z
1570
+ */
1571
+ event_time?: string;
1572
+ /**
1573
+ * Event ID from the last event in the current page
1574
+ * example:
1575
+ * evt_1234567890abcdef
1576
+ */
1577
+ event_id?: string;
1578
+ } | null;
1579
+ }
1580
+ }
1581
+ }
1297
1582
  namespace TriggerEvent {
1298
1583
  namespace Parameters {
1299
1584
  export type EventName = string;
@@ -1376,6 +1661,32 @@ interface OperationMethods {
1376
1661
  data?: Paths.SearchEventHistory.RequestBody,
1377
1662
  config?: AxiosRequestConfig
1378
1663
  ): OperationResponse<Paths.SearchEventHistory.Responses.$200>
1664
+ /**
1665
+ * searchEventHistoryV2 - searchEventHistoryV2
1666
+ *
1667
+ * Paginated history of events with projected/lightweight payload (v2).
1668
+ *
1669
+ * Returns `EventSummary` objects instead of fully hydrated `Event` objects:
1670
+ * nested entity graphs (objects/arrays-of-objects carrying `_schema`/`_id`)
1671
+ * are stripped. Use GET /v2/events/{event_name}/history/{event_id} to fetch
1672
+ * the full hydrated event for a single result.
1673
+ *
1674
+ */
1675
+ 'searchEventHistoryV2'(
1676
+ parameters?: Parameters<Paths.SearchEventHistoryV2.PathParameters> | null,
1677
+ data?: Paths.SearchEventHistoryV2.RequestBody,
1678
+ config?: AxiosRequestConfig
1679
+ ): OperationResponse<Paths.SearchEventHistoryV2.Responses.$200>
1680
+ /**
1681
+ * getHistoricalEvent - getHistoricalEvent
1682
+ *
1683
+ * Fetch a single historical event by id with full hydration
1684
+ */
1685
+ 'getHistoricalEvent'(
1686
+ parameters?: Parameters<Paths.GetHistoricalEvent.PathParameters> | null,
1687
+ data?: any,
1688
+ config?: AxiosRequestConfig
1689
+ ): OperationResponse<Paths.GetHistoricalEvent.Responses.$200>
1379
1690
  /**
1380
1691
  * triggerEvent - triggerEvent
1381
1692
  *
@@ -1466,6 +1777,36 @@ interface PathsDictionary {
1466
1777
  config?: AxiosRequestConfig
1467
1778
  ): OperationResponse<Paths.SearchEventHistory.Responses.$200>
1468
1779
  }
1780
+ ['/v2/events/{event_name}:history']: {
1781
+ /**
1782
+ * searchEventHistoryV2 - searchEventHistoryV2
1783
+ *
1784
+ * Paginated history of events with projected/lightweight payload (v2).
1785
+ *
1786
+ * Returns `EventSummary` objects instead of fully hydrated `Event` objects:
1787
+ * nested entity graphs (objects/arrays-of-objects carrying `_schema`/`_id`)
1788
+ * are stripped. Use GET /v2/events/{event_name}/history/{event_id} to fetch
1789
+ * the full hydrated event for a single result.
1790
+ *
1791
+ */
1792
+ 'post'(
1793
+ parameters?: Parameters<Paths.SearchEventHistoryV2.PathParameters> | null,
1794
+ data?: Paths.SearchEventHistoryV2.RequestBody,
1795
+ config?: AxiosRequestConfig
1796
+ ): OperationResponse<Paths.SearchEventHistoryV2.Responses.$200>
1797
+ }
1798
+ ['/v2/events/{event_name}/history/{event_id}']: {
1799
+ /**
1800
+ * getHistoricalEvent - getHistoricalEvent
1801
+ *
1802
+ * Fetch a single historical event by id with full hydration
1803
+ */
1804
+ 'get'(
1805
+ parameters?: Parameters<Paths.GetHistoricalEvent.PathParameters> | null,
1806
+ data?: any,
1807
+ config?: AxiosRequestConfig
1808
+ ): OperationResponse<Paths.GetHistoricalEvent.Responses.$200>
1809
+ }
1469
1810
  ['/v1/events/{event_name}:trigger']: {
1470
1811
  /**
1471
1812
  * triggerEvent - triggerEvent
@@ -1490,13 +1831,16 @@ interface PathsDictionary {
1490
1831
  type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1491
1832
 
1492
1833
 
1834
+ type AttachmentField = Components.Schemas.AttachmentField;
1493
1835
  type CommonEventMetadata = Components.Schemas.CommonEventMetadata;
1494
1836
  type ContextEntity = Components.Schemas.ContextEntity;
1495
1837
  type EntityOperationTrigger = Components.Schemas.EntityOperationTrigger;
1496
1838
  type Event = Components.Schemas.Event;
1839
+ type EventAttachment = Components.Schemas.EventAttachment;
1497
1840
  type EventConfig = Components.Schemas.EventConfig;
1498
1841
  type EventConfigBase = Components.Schemas.EventConfigBase;
1499
1842
  type EventJsonSchema = Components.Schemas.EventJsonSchema;
1843
+ type EventSummary = Components.Schemas.EventSummary;
1500
1844
  type FieldsParam = Components.Schemas.FieldsParam;
1501
1845
  type GraphDefinition = Components.Schemas.GraphDefinition;
1502
1846
  type GraphEdge = Components.Schemas.GraphEdge;
@@ -1504,8 +1848,9 @@ type GraphNode = Components.Schemas.GraphNode;
1504
1848
  type PrimitiveField = Components.Schemas.PrimitiveField;
1505
1849
  type SchemaField = Components.Schemas.SchemaField;
1506
1850
  type SearchOptions = Components.Schemas.SearchOptions;
1851
+ type SearchOptionsV2 = Components.Schemas.SearchOptionsV2;
1507
1852
  type TriggerEventPayload = Components.Schemas.TriggerEventPayload;
1508
1853
  type TriggerEventResponse = Components.Schemas.TriggerEventResponse;
1509
1854
  type UpdateEventPayload = Components.Schemas.UpdateEventPayload;
1510
1855
 
1511
- export { type Client as C, type EntityOperationTrigger as E, type FieldsParam as F, type GraphDefinition as G, type OperationMethods as O, Paths as P, type SchemaField as S, type TriggerEventPayload as T, type UpdateEventPayload as U, Components as a, type PathsDictionary as b, type CommonEventMetadata as c, type ContextEntity as d, type Event as e, type EventConfig as f, type EventConfigBase as g, type EventJsonSchema as h, type GraphEdge as i, type GraphNode as j, type PrimitiveField as k, type SearchOptions as l, type TriggerEventResponse as m };
1856
+ export { type AttachmentField as A, type Client as C, type EntityOperationTrigger as E, type FieldsParam as F, type GraphDefinition as G, type OperationMethods as O, Paths as P, type SchemaField as S, type TriggerEventPayload as T, type UpdateEventPayload as U, Components as a, type PathsDictionary as b, type CommonEventMetadata as c, type ContextEntity as d, type Event as e, type EventAttachment as f, type EventConfig as g, type EventConfigBase as h, type EventJsonSchema as i, type EventSummary as j, type GraphEdge as k, type GraphNode as l, type PrimitiveField as m, type SearchOptions as n, type SearchOptionsV2 as o, type TriggerEventResponse as p };
package/dist/index.cjs CHANGED
@@ -57,7 +57,7 @@ var _chunkKP7H52BFcjs = require('./chunk-KP7H52BF.cjs');
57
57
  var _chunkWQBBB6BNcjs = require('./chunk-WQBBB6BN.cjs');
58
58
 
59
59
 
60
- var _chunkBLNXQAMXcjs = require('./chunk-BLNXQAMX.cjs');
60
+ var _chunkCBDKPGO5cjs = require('./chunk-CBDKPGO5.cjs');
61
61
 
62
62
 
63
63
  var _chunk4W22EIRFcjs = require('./chunk-4W22EIRF.cjs');
@@ -66,7 +66,7 @@ var _chunk4W22EIRFcjs = require('./chunk-4W22EIRF.cjs');
66
66
  var _chunkYO4M3BZLcjs = require('./chunk-YO4M3BZL.cjs');
67
67
 
68
68
 
69
- var _chunkJTFWOEZFcjs = require('./chunk-JTFWOEZF.cjs');
69
+ var _chunk4FFGRWLScjs = require('./chunk-4FFGRWLS.cjs');
70
70
 
71
71
 
72
72
  var _chunkMB6NKETAcjs = require('./chunk-MB6NKETA.cjs');
@@ -78,7 +78,7 @@ var _chunkG3VDRMOHcjs = require('./chunk-G3VDRMOH.cjs');
78
78
  var _chunkDUHAG5COcjs = require('./chunk-DUHAG5CO.cjs');
79
79
 
80
80
 
81
- var _chunk4ZMLRFDXcjs = require('./chunk-4ZMLRFDX.cjs');
81
+ var _chunkT6A22LSDcjs = require('./chunk-T6A22LSD.cjs');
82
82
 
83
83
 
84
84
  var _chunkIAHSYVYBcjs = require('./chunk-IAHSYVYB.cjs');
@@ -155,7 +155,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
155
155
 
156
156
 
157
157
 
158
- var _chunkC7GDYBXXcjs = require('./chunk-C7GDYBXX.cjs');
158
+ var _chunk35CN2YFKcjs = require('./chunk-35CN2YFK.cjs');
159
159
 
160
160
 
161
161
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -222,7 +222,7 @@ var resolveClient = (params) => {
222
222
  }
223
223
  if (!entry.instance) {
224
224
  const definition = entry.loader();
225
- entry.instance = _chunkC7GDYBXXcjs.createApiClient.call(void 0, {
225
+ entry.instance = _chunk35CN2YFKcjs.createApiClient.call(void 0, {
226
226
  definition,
227
227
  token: state.token,
228
228
  headers: state.globalHeaders,
@@ -255,7 +255,7 @@ var resetAllClients = (registry) => {
255
255
  };
256
256
 
257
257
  // src/apis/_registry.ts
258
- var expandDef = (mod) => _chunkC7GDYBXXcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
258
+ var expandDef = (mod) => _chunk35CN2YFKcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
259
259
  var registerBuiltinApis = (registry) => {
260
260
  registerApi({
261
261
  registry,
@@ -375,7 +375,7 @@ var registerBuiltinApis = (registry) => {
375
375
  registerApi({
376
376
  registry,
377
377
  name: "eventCatalog",
378
- loader: () => expandDef(_chunkBLNXQAMXcjs.require_event_catalog_runtime.call(void 0, ))
378
+ loader: () => expandDef(_chunkCBDKPGO5cjs.require_event_catalog_runtime.call(void 0, ))
379
379
  });
380
380
  registerApi({
381
381
  registry,
@@ -390,7 +390,7 @@ var registerBuiltinApis = (registry) => {
390
390
  registerApi({
391
391
  registry,
392
392
  name: "integrationToolkit",
393
- loader: () => expandDef(_chunkJTFWOEZFcjs.require_integration_toolkit_runtime.call(void 0, ))
393
+ loader: () => expandDef(_chunk4FFGRWLScjs.require_integration_toolkit_runtime.call(void 0, ))
394
394
  });
395
395
  registerApi({
396
396
  registry,
@@ -410,7 +410,7 @@ var registerBuiltinApis = (registry) => {
410
410
  registerApi({
411
411
  registry,
412
412
  name: "metering",
413
- loader: () => expandDef(_chunk4ZMLRFDXcjs.require_metering_runtime.call(void 0, ))
413
+ loader: () => expandDef(_chunkT6A22LSDcjs.require_metering_runtime.call(void 0, ))
414
414
  });
415
415
  registerApi({
416
416
  registry,
@@ -593,9 +593,9 @@ var createSDK = () => {
593
593
  const available = [...registry.keys()].join(", ");
594
594
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
595
595
  }
596
- return _chunkC7GDYBXXcjs.createApiHandle.call(void 0, {
596
+ return _chunk35CN2YFKcjs.createApiHandle.call(void 0, {
597
597
  resolveClient: () => resolveClient({ registry, name, state }),
598
- createClient: () => _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
598
+ createClient: () => _chunk35CN2YFKcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
599
599
  apiName: name
600
600
  });
601
601
  };
@@ -643,9 +643,9 @@ var createSDK = () => {
643
643
  return interceptorUse;
644
644
  }
645
645
  case "help":
646
- return (apiName) => _chunkC7GDYBXXcjs.help.call(void 0, apiName);
646
+ return (apiName) => _chunk35CN2YFKcjs.help.call(void 0, apiName);
647
647
  case "openapi":
648
- return (apiName) => _chunkC7GDYBXXcjs.openapi.call(void 0, apiName);
648
+ return (apiName) => _chunk35CN2YFKcjs.openapi.call(void 0, apiName);
649
649
  case "then":
650
650
  case "catch":
651
651
  case "finally":
@@ -675,4 +675,4 @@ var epilot = createSDK();
675
675
 
676
676
 
677
677
 
678
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkC7GDYBXXcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkC7GDYBXXcjs.help; exports.openapi = _chunkC7GDYBXXcjs.openapi;
678
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunk35CN2YFKcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk35CN2YFKcjs.help; exports.openapi = _chunk35CN2YFKcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -26,14 +26,14 @@ import { C as Client$j } from './email-template.d-gtQkdaXM.cjs';
26
26
  import { C as Client$k } from './entity.d-fospShiN.cjs';
27
27
  import { C as Client$l } from './entity-mapping.d-DKSW3sfy.cjs';
28
28
  import { C as Client$m } from './environments.d-BvqvN-PD.cjs';
29
- import { C as Client$n } from './event-catalog.d-ENw6HO-w.cjs';
29
+ import { C as Client$n } from './event-catalog.d-mQJLSYUo.cjs';
30
30
  import { C as Client$o } from './file.d-DcTJxjp7.cjs';
31
31
  import { C as Client$p } from './iban.d-BwdiGbxi.cjs';
32
- import { C as Client$q } from './integration-toolkit.d-Ry-KC9ow.cjs';
32
+ import { C as Client$q } from './integration-toolkit.d-BstNqiJb.cjs';
33
33
  import { C as Client$r } from './journey.d-ClXO0xK8.cjs';
34
34
  import { C as Client$s } from './kanban.d-BHnSRCYW.cjs';
35
35
  import { C as Client$t } from './message.d-B5UuSqgw.cjs';
36
- import { C as Client$u } from './metering.d-DvtPv7wk.cjs';
36
+ import { C as Client$u } from './metering.d-CUICZDiL.cjs';
37
37
  import { C as Client$v } from './notes.d-BcV_m5fe.cjs';
38
38
  import { C as Client$w } from './notification.d-BfBL3lga.cjs';
39
39
  import { C as Client$x } from './organization.d-DqwnNxMg.cjs';
@@ -50,7 +50,7 @@ import { C as Client$H } from './targeting.d-BNmcVsNS.cjs';
50
50
  import { C as Client$I } from './template-variables.d-Ble9TSBa.cjs';
51
51
  import { C as Client$J } from './user.d-D18fe97W.cjs';
52
52
  import { C as Client$K } from './validation-rules.d-Db5c5zTf.cjs';
53
- import { C as Client$L } from './webhooks.d-D79qib9f.cjs';
53
+ import { C as Client$L } from './webhooks.d-ByePoUWs.cjs';
54
54
  import { C as Client$M } from './workflow.d-CMSKt8oN.cjs';
55
55
  import { C as Client$N } from './workflow-definition.d-DOeb0KVV.cjs';
56
56
 
package/dist/index.d.ts CHANGED
@@ -26,14 +26,14 @@ import { C as Client$j } from './email-template.d-gtQkdaXM.js';
26
26
  import { C as Client$k } from './entity.d-fospShiN.js';
27
27
  import { C as Client$l } from './entity-mapping.d-DKSW3sfy.js';
28
28
  import { C as Client$m } from './environments.d-BvqvN-PD.js';
29
- import { C as Client$n } from './event-catalog.d-ENw6HO-w.js';
29
+ import { C as Client$n } from './event-catalog.d-mQJLSYUo.js';
30
30
  import { C as Client$o } from './file.d-DcTJxjp7.js';
31
31
  import { C as Client$p } from './iban.d-BwdiGbxi.js';
32
- import { C as Client$q } from './integration-toolkit.d-Ry-KC9ow.js';
32
+ import { C as Client$q } from './integration-toolkit.d-BstNqiJb.js';
33
33
  import { C as Client$r } from './journey.d-ClXO0xK8.js';
34
34
  import { C as Client$s } from './kanban.d-BHnSRCYW.js';
35
35
  import { C as Client$t } from './message.d-B5UuSqgw.js';
36
- import { C as Client$u } from './metering.d-DvtPv7wk.js';
36
+ import { C as Client$u } from './metering.d-CUICZDiL.js';
37
37
  import { C as Client$v } from './notes.d-BcV_m5fe.js';
38
38
  import { C as Client$w } from './notification.d-BfBL3lga.js';
39
39
  import { C as Client$x } from './organization.d-DqwnNxMg.js';
@@ -50,7 +50,7 @@ import { C as Client$H } from './targeting.d-BNmcVsNS.js';
50
50
  import { C as Client$I } from './template-variables.d-Ble9TSBa.js';
51
51
  import { C as Client$J } from './user.d-D18fe97W.js';
52
52
  import { C as Client$K } from './validation-rules.d-Db5c5zTf.js';
53
- import { C as Client$L } from './webhooks.d-D79qib9f.js';
53
+ import { C as Client$L } from './webhooks.d-ByePoUWs.js';
54
54
  import { C as Client$M } from './workflow.d-CMSKt8oN.js';
55
55
  import { C as Client$N } from './workflow-definition.d-DOeb0KVV.js';
56
56
 
package/dist/index.js CHANGED
@@ -57,7 +57,7 @@ import {
57
57
  } from "./chunk-D7Q4JGN7.js";
58
58
  import {
59
59
  require_event_catalog_runtime
60
- } from "./chunk-TME4YJNP.js";
60
+ } from "./chunk-OCMIXJWC.js";
61
61
  import {
62
62
  require_file_runtime
63
63
  } from "./chunk-E2WMGOM5.js";
@@ -66,7 +66,7 @@ import {
66
66
  } from "./chunk-5MFHAXBT.js";
67
67
  import {
68
68
  require_integration_toolkit_runtime
69
- } from "./chunk-U4PUHKZC.js";
69
+ } from "./chunk-WM74R3BD.js";
70
70
  import {
71
71
  require_journey_runtime
72
72
  } from "./chunk-VSZEOCIE.js";
@@ -78,7 +78,7 @@ import {
78
78
  } from "./chunk-FAZ63FEX.js";
79
79
  import {
80
80
  require_metering_runtime
81
- } from "./chunk-265TE2OV.js";
81
+ } from "./chunk-56MMZJOD.js";
82
82
  import {
83
83
  require_deduplication_runtime
84
84
  } from "./chunk-X2SC4GW5.js";
@@ -155,7 +155,7 @@ import {
155
155
  expand,
156
156
  help,
157
157
  openapi
158
- } from "./chunk-WRD2XFHY.js";
158
+ } from "./chunk-JB7LITSP.js";
159
159
  import {
160
160
  __require
161
161
  } from "./chunk-YPSWSI3M.js";