@epilot/sdk 2.7.9 → 2.7.11

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 (140) hide show
  1. package/LICENSE +21 -0
  2. package/definitions/event-catalog-runtime.json +1 -1
  3. package/definitions/event-catalog.json +168 -12
  4. package/definitions/integration-toolkit.json +9 -0
  5. package/dist/apis/access-token.cjs +6 -6
  6. package/dist/apis/access-token.js +1 -1
  7. package/dist/apis/address-suggestions.cjs +6 -6
  8. package/dist/apis/address-suggestions.js +1 -1
  9. package/dist/apis/address.cjs +6 -6
  10. package/dist/apis/address.js +1 -1
  11. package/dist/apis/ai-agents.cjs +6 -6
  12. package/dist/apis/ai-agents.js +1 -1
  13. package/dist/apis/app.cjs +6 -6
  14. package/dist/apis/app.js +1 -1
  15. package/dist/apis/audit-logs.cjs +6 -6
  16. package/dist/apis/audit-logs.js +1 -1
  17. package/dist/apis/automation.cjs +6 -6
  18. package/dist/apis/automation.js +1 -1
  19. package/dist/apis/billing.cjs +6 -6
  20. package/dist/apis/billing.js +1 -1
  21. package/dist/apis/blueprint-manifest.cjs +6 -6
  22. package/dist/apis/blueprint-manifest.js +1 -1
  23. package/dist/apis/calendar.cjs +6 -6
  24. package/dist/apis/calendar.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 +8 -8
  52. package/dist/apis/event-catalog.d.cts +2 -2
  53. package/dist/apis/event-catalog.d.ts +2 -2
  54. package/dist/apis/event-catalog.js +2 -2
  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/integration-toolkit.cjs +6 -6
  60. package/dist/apis/integration-toolkit.d.cts +2 -2
  61. package/dist/apis/integration-toolkit.d.ts +2 -2
  62. package/dist/apis/integration-toolkit.js +1 -1
  63. package/dist/apis/journey.cjs +6 -6
  64. package/dist/apis/journey.js +1 -1
  65. package/dist/apis/kanban.cjs +6 -6
  66. package/dist/apis/kanban.js +1 -1
  67. package/dist/apis/message.cjs +6 -6
  68. package/dist/apis/message.js +1 -1
  69. package/dist/apis/metering.cjs +6 -6
  70. package/dist/apis/metering.js +1 -1
  71. package/dist/apis/notes.cjs +6 -6
  72. package/dist/apis/notes.js +1 -1
  73. package/dist/apis/notification.cjs +6 -6
  74. package/dist/apis/notification.js +1 -1
  75. package/dist/apis/organization.cjs +6 -6
  76. package/dist/apis/organization.js +1 -1
  77. package/dist/apis/partner-directory.cjs +6 -6
  78. package/dist/apis/partner-directory.js +1 -1
  79. package/dist/apis/permissions.cjs +6 -6
  80. package/dist/apis/permissions.js +1 -1
  81. package/dist/apis/pricing-tier.cjs +6 -6
  82. package/dist/apis/pricing-tier.js +1 -1
  83. package/dist/apis/pricing.cjs +6 -6
  84. package/dist/apis/pricing.js +1 -1
  85. package/dist/apis/purpose.cjs +6 -6
  86. package/dist/apis/purpose.js +1 -1
  87. package/dist/apis/query.cjs +6 -6
  88. package/dist/apis/query.js +1 -1
  89. package/dist/apis/sandbox.cjs +6 -6
  90. package/dist/apis/sandbox.js +1 -1
  91. package/dist/apis/sharing.cjs +6 -6
  92. package/dist/apis/sharing.js +1 -1
  93. package/dist/apis/submission.cjs +6 -6
  94. package/dist/apis/submission.js +1 -1
  95. package/dist/apis/target.cjs +6 -6
  96. package/dist/apis/target.js +1 -1
  97. package/dist/apis/targeting.cjs +6 -6
  98. package/dist/apis/targeting.js +1 -1
  99. package/dist/apis/template-variables.cjs +6 -6
  100. package/dist/apis/template-variables.js +1 -1
  101. package/dist/apis/user.cjs +6 -6
  102. package/dist/apis/user.js +1 -1
  103. package/dist/apis/validation-rules.cjs +6 -6
  104. package/dist/apis/validation-rules.js +1 -1
  105. package/dist/apis/webhooks.cjs +6 -6
  106. package/dist/apis/webhooks.js +1 -1
  107. package/dist/apis/workflow-definition.cjs +6 -6
  108. package/dist/apis/workflow-definition.js +1 -1
  109. package/dist/apis/workflow.cjs +6 -6
  110. package/dist/apis/workflow.js +1 -1
  111. package/dist/chunk-FDS727SL.cjs +14 -0
  112. package/dist/chunk-M4FO2MI4.js +14 -0
  113. package/dist/{chunk-4UGWLYKW.js → chunk-THI6AB4O.js} +3 -3
  114. package/dist/{chunk-DCILLSW6.cjs → chunk-XZPA2XDZ.cjs} +3 -3
  115. package/dist/event-catalog-3YOQ46ZW.js +7 -0
  116. package/dist/event-catalog-HLWUT7RM.cjs +7 -0
  117. package/dist/{event-catalog-runtime-N262TQ3Y.js → event-catalog-runtime-JUSLF3UR.js} +1 -1
  118. package/dist/{event-catalog-runtime-B2BPKQVG.cjs → event-catalog-runtime-RH7542GL.cjs} +2 -2
  119. package/dist/{event-catalog.d-mQJLSYUo.d.cts → event-catalog.d-CXbUn8T1.d.cts} +199 -36
  120. package/dist/{event-catalog.d-mQJLSYUo.d.ts → event-catalog.d-CXbUn8T1.d.ts} +199 -36
  121. package/dist/index.cjs +10 -10
  122. package/dist/index.d.cts +2 -2
  123. package/dist/index.d.ts +2 -2
  124. package/dist/index.js +2 -2
  125. package/dist/integration-toolkit-PGT2TTEZ.cjs +7 -0
  126. package/dist/integration-toolkit-RBGVNSUA.js +7 -0
  127. package/dist/{integration-toolkit.d-_h70Q7Q9.d.cts → integration-toolkit.d-CDcHwmoI.d.cts} +5 -0
  128. package/dist/{integration-toolkit.d-_h70Q7Q9.d.ts → integration-toolkit.d-CDcHwmoI.d.ts} +5 -0
  129. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  130. package/docs/event-catalog.md +126 -13
  131. package/docs/integration-toolkit.md +3 -1
  132. package/package.json +11 -12
  133. package/definitions/focus-pocus-runtime.json +0 -1
  134. package/definitions/focus-pocus.json +0 -757
  135. package/dist/chunk-CBDKPGO5.cjs +0 -14
  136. package/dist/chunk-OCMIXJWC.js +0 -14
  137. package/dist/event-catalog-37B6JC7G.js +0 -7
  138. package/dist/event-catalog-5JBHJJ2I.cjs +0 -7
  139. package/dist/integration-toolkit-IFWW3PF3.cjs +0 -7
  140. package/dist/integration-toolkit-JEV67AFW.js +0 -7
@@ -132,7 +132,7 @@ declare namespace Components {
132
132
  * "_event_time": "2024-01-01T12:00:00Z",
133
133
  * "_event_id": "01FZ4Z5FZ5FZ5FZ5FZ5FZ5FZ5F",
134
134
  * "_event_name": "MeterReading",
135
- * "_event_version": "1.0.0",
135
+ * "_event_version": "1.0",
136
136
  * "_event_source": "api",
137
137
  * "_trigger_source_type": "api",
138
138
  * "_trigger_source": "user_123456",
@@ -170,9 +170,9 @@ declare namespace Components {
170
170
  */
171
171
  _event_name: string;
172
172
  /**
173
- * Event version (semver)
173
+ * Event payload version (MAJOR.MINOR)
174
174
  * example:
175
- * 1.0.0
175
+ * 1.0
176
176
  */
177
177
  _event_version: string;
178
178
  /**
@@ -268,9 +268,9 @@ declare namespace Components {
268
268
  */
269
269
  event_description?: string;
270
270
  /**
271
- * Event version (semver)
271
+ * Event payload version (MAJOR.MINOR)
272
272
  * example:
273
- * 1.0.0
273
+ * 1.0
274
274
  */
275
275
  event_version: string;
276
276
  /**
@@ -418,9 +418,9 @@ declare namespace Components {
418
418
  */
419
419
  event_description?: string;
420
420
  /**
421
- * Event version (semver)
421
+ * Event payload version (MAJOR.MINOR)
422
422
  * example:
423
- * 1.0.0
423
+ * 1.0
424
424
  */
425
425
  event_version?: string;
426
426
  /**
@@ -570,7 +570,7 @@ declare namespace Components {
570
570
  * },
571
571
  * "_event_version": {
572
572
  * "type": "string",
573
- * "description": "Event version (semver)"
573
+ * "description": "Event payload version (MAJOR.MINOR)"
574
574
  * },
575
575
  * "_event_source": {
576
576
  * "type": "string",
@@ -690,9 +690,11 @@ declare namespace Components {
690
690
  * A lightweight event summary returned by the v2 history endpoint.
691
691
  *
692
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.
693
+ * event payload. Hydrated entity objects (values carrying `_schema` or `_id`)
694
+ * and arrays of such objects are reduced to reference stubs
695
+ * `{_schema, _id, _title}` so consumers can identify and follow up on each
696
+ * entity without paying the cost of the full hydrated graph. Fetch
697
+ * `GET /v2/events/{event_name}/history/{event_id}` for the full hydration.
696
698
  *
697
699
  * Projected scalar payload fields appear as additional top-level properties.
698
700
  *
@@ -716,9 +718,9 @@ declare namespace Components {
716
718
  */
717
719
  _event_name: string;
718
720
  /**
719
- * Event version (semver)
721
+ * Event payload version (MAJOR.MINOR)
720
722
  * example:
721
- * 1.0.0
723
+ * 1.0
722
724
  */
723
725
  _event_version: string;
724
726
  /**
@@ -744,6 +746,56 @@ declare namespace Components {
744
746
  */
745
747
  _ack_id?: string;
746
748
  }
749
+ /**
750
+ * Summary of an event's version timeline returned by
751
+ * `GET /v1/events/{event_name}/versions`.
752
+ *
753
+ */
754
+ export interface EventVersionRegistrySummary {
755
+ /**
756
+ * example:
757
+ * MeterReadingAdded
758
+ */
759
+ event_name: string;
760
+ /**
761
+ * The newest registered version.
762
+ * example:
763
+ * 1.0
764
+ */
765
+ latest: string;
766
+ /**
767
+ * Full version timeline, ordered oldest → newest.
768
+ */
769
+ versions: /* One entry of an event's version timeline. */ VersionMeta[];
770
+ }
771
+ /**
772
+ * A field-level change descriptor. Powers the declarative half of the
773
+ * version DSL.
774
+ *
775
+ */
776
+ export interface FieldChange {
777
+ /**
778
+ * Name of the field affected by this change.
779
+ * example:
780
+ * reading
781
+ */
782
+ field: string;
783
+ /**
784
+ * Kind of change. Renames are NOT a first-class op — represent them
785
+ * as a `removed` + `added` pair (semantic intent goes into
786
+ * `change_summary` / `change_notes`).
787
+ *
788
+ */
789
+ op: "added" | "removed" | "type-changed";
790
+ /**
791
+ * Type label for the previous shape (for `removed` and `type-changed`).
792
+ */
793
+ type_old?: string;
794
+ /**
795
+ * Type label for the new shape (for `added` and `type-changed`).
796
+ */
797
+ type_new?: string;
798
+ }
747
799
  /**
748
800
  * List of entity fields to include or exclude in the response
749
801
  *
@@ -1093,9 +1145,9 @@ declare namespace Components {
1093
1145
  */
1094
1146
  event_description?: string;
1095
1147
  /**
1096
- * Event version (semver)
1148
+ * Event payload version (MAJOR.MINOR)
1097
1149
  * example:
1098
- * 1.0.0
1150
+ * 1.0
1099
1151
  */
1100
1152
  event_version?: string;
1101
1153
  /**
@@ -1220,6 +1272,40 @@ declare namespace Components {
1220
1272
  */
1221
1273
  automation_trigger?: boolean;
1222
1274
  }
1275
+ /**
1276
+ * One entry of an event's version timeline.
1277
+ */
1278
+ export interface VersionMeta {
1279
+ /**
1280
+ * MAJOR.MINOR version label.
1281
+ * example:
1282
+ * 1.0
1283
+ */
1284
+ version: string;
1285
+ /**
1286
+ * ISO 8601 release timestamp.
1287
+ * example:
1288
+ * 2025-11-15
1289
+ */
1290
+ released_at: string;
1291
+ /**
1292
+ * Required one-liner describing what changed in this version (≤280 chars).
1293
+ */
1294
+ change_summary: string;
1295
+ /**
1296
+ * Optional longer-form prose (markdown).
1297
+ */
1298
+ change_notes?: string;
1299
+ /**
1300
+ * Hand-authored list of field-level changes from the previous version. Empty for v1.
1301
+ */
1302
+ changes: /**
1303
+ * A field-level change descriptor. Powers the declarative half of the
1304
+ * version DSL.
1305
+ *
1306
+ */
1307
+ FieldChange[];
1308
+ }
1223
1309
  }
1224
1310
  }
1225
1311
  declare namespace Paths {
@@ -1235,7 +1321,11 @@ declare namespace Paths {
1235
1321
  }
1236
1322
  }
1237
1323
  namespace GetEventExample {
1324
+ export interface HeaderParameters {
1325
+ "Epilot-Event-Version"?: Parameters.EpilotEventVersion;
1326
+ }
1238
1327
  namespace Parameters {
1328
+ export type EpilotEventVersion = string;
1239
1329
  export type EventName = string;
1240
1330
  }
1241
1331
  export interface PathParameters {
@@ -1247,10 +1337,16 @@ declare namespace Paths {
1247
1337
  */
1248
1338
  export interface $200 {
1249
1339
  }
1340
+ export interface $404 {
1341
+ }
1250
1342
  }
1251
1343
  }
1252
1344
  namespace GetEventJSONSchema {
1345
+ export interface HeaderParameters {
1346
+ "Epilot-Event-Version"?: Parameters.EpilotEventVersion;
1347
+ }
1253
1348
  namespace Parameters {
1349
+ export type EpilotEventVersion = string;
1254
1350
  export type EventName = string;
1255
1351
  }
1256
1352
  export interface PathParameters {
@@ -1282,7 +1378,7 @@ declare namespace Paths {
1282
1378
  * },
1283
1379
  * "_event_version": {
1284
1380
  * "type": "string",
1285
- * "description": "Event version (semver)"
1381
+ * "description": "Event payload version (MAJOR.MINOR)"
1286
1382
  * },
1287
1383
  * "_event_source": {
1288
1384
  * "type": "string",
@@ -1397,6 +1493,8 @@ declare namespace Paths {
1397
1493
  * }
1398
1494
  */
1399
1495
  Components.Schemas.EventJsonSchema;
1496
+ export interface $404 {
1497
+ }
1400
1498
  }
1401
1499
  }
1402
1500
  namespace GetHistoricalEvent {
@@ -1417,7 +1515,7 @@ declare namespace Paths {
1417
1515
  * "_event_time": "2024-01-01T12:00:00Z",
1418
1516
  * "_event_id": "01FZ4Z5FZ5FZ5FZ5FZ5FZ5FZ5F",
1419
1517
  * "_event_name": "MeterReading",
1420
- * "_event_version": "1.0.0",
1518
+ * "_event_version": "1.0",
1421
1519
  * "_event_source": "api",
1422
1520
  * "_trigger_source_type": "api",
1423
1521
  * "_trigger_source": "user_123456",
@@ -1441,6 +1539,24 @@ declare namespace Paths {
1441
1539
  }
1442
1540
  }
1443
1541
  }
1542
+ namespace ListEventVersions {
1543
+ namespace Parameters {
1544
+ export type EventName = string;
1545
+ }
1546
+ export interface PathParameters {
1547
+ event_name: Parameters.EventName;
1548
+ }
1549
+ namespace Responses {
1550
+ export type $200 = /**
1551
+ * Summary of an event's version timeline returned by
1552
+ * `GET /v1/events/{event_name}/versions`.
1553
+ *
1554
+ */
1555
+ Components.Schemas.EventVersionRegistrySummary;
1556
+ export interface $404 {
1557
+ }
1558
+ }
1559
+ }
1444
1560
  namespace ListEvents {
1445
1561
  namespace Responses {
1446
1562
  export interface $200 {
@@ -1486,7 +1602,7 @@ declare namespace Paths {
1486
1602
  * "_event_time": "2024-01-01T12:00:00Z",
1487
1603
  * "_event_id": "01FZ4Z5FZ5FZ5FZ5FZ5FZ5FZ5F",
1488
1604
  * "_event_name": "MeterReading",
1489
- * "_event_version": "1.0.0",
1605
+ * "_event_version": "1.0",
1490
1606
  * "_event_source": "api",
1491
1607
  * "_trigger_source_type": "api",
1492
1608
  * "_trigger_source": "user_123456",
@@ -1551,9 +1667,11 @@ declare namespace Paths {
1551
1667
  * A lightweight event summary returned by the v2 history endpoint.
1552
1668
  *
1553
1669
  * 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.
1670
+ * event payload. Hydrated entity objects (values carrying `_schema` or `_id`)
1671
+ * and arrays of such objects are reduced to reference stubs
1672
+ * `{_schema, _id, _title}` so consumers can identify and follow up on each
1673
+ * entity without paying the cost of the full hydrated graph. Fetch
1674
+ * `GET /v2/events/{event_name}/history/{event_id}` for the full hydration.
1557
1675
  *
1558
1676
  * Projected scalar payload fields appear as additional top-level properties.
1559
1677
  *
@@ -1634,23 +1752,42 @@ interface OperationMethods {
1634
1752
  /**
1635
1753
  * getEventJSONSchema - getEventJSONSchema
1636
1754
  *
1637
- * Retrieve the JSON Schema of a specific business event
1755
+ * Retrieve the JSON Schema of a specific business event. Pass an optional
1756
+ * `Epilot-Event-Version` header to retrieve a specific version's schema;
1757
+ * when omitted, the event's latest version is returned.
1758
+ *
1638
1759
  */
1639
1760
  'getEventJSONSchema'(
1640
- parameters?: Parameters<Paths.GetEventJSONSchema.PathParameters> | null,
1761
+ parameters?: Parameters<Paths.GetEventJSONSchema.HeaderParameters & Paths.GetEventJSONSchema.PathParameters> | null,
1641
1762
  data?: any,
1642
1763
  config?: AxiosRequestConfig
1643
1764
  ): OperationResponse<Paths.GetEventJSONSchema.Responses.$200>
1644
1765
  /**
1645
1766
  * getEventExample - getEventExample
1646
1767
  *
1647
- * Generate a sample event payload based on the event's JSON Schema
1768
+ * Generate a sample event payload based on the event's JSON Schema. Pass an
1769
+ * optional `Epilot-Event-Version` header to generate the example for a
1770
+ * specific version; when omitted, the event's latest version is used.
1771
+ *
1648
1772
  */
1649
1773
  'getEventExample'(
1650
- parameters?: Parameters<Paths.GetEventExample.PathParameters> | null,
1774
+ parameters?: Parameters<Paths.GetEventExample.HeaderParameters & Paths.GetEventExample.PathParameters> | null,
1651
1775
  data?: any,
1652
1776
  config?: AxiosRequestConfig
1653
1777
  ): OperationResponse<Paths.GetEventExample.Responses.$200>
1778
+ /**
1779
+ * listEventVersions - listEventVersions
1780
+ *
1781
+ * List every known version of an event, along with the `latest`
1782
+ * and the set of currently `active` versions. See §3.2 of the
1783
+ * Event Payload Versioning RFC.
1784
+ *
1785
+ */
1786
+ 'listEventVersions'(
1787
+ parameters?: Parameters<Paths.ListEventVersions.PathParameters> | null,
1788
+ data?: any,
1789
+ config?: AxiosRequestConfig
1790
+ ): OperationResponse<Paths.ListEventVersions.Responses.$200>
1654
1791
  /**
1655
1792
  * searchEventHistory - searchEventHistory
1656
1793
  *
@@ -1667,9 +1804,10 @@ interface OperationMethods {
1667
1804
  * Paginated history of events with projected/lightweight payload (v2).
1668
1805
  *
1669
1806
  * 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.
1807
+ * hydrated entity objects (values carrying `_schema`/`_id`) are reduced to
1808
+ * reference stubs `{_schema, _id, _title}` the full entity is recoverable
1809
+ * via GET /v2/events/{event_name}/history/{event_id} or by hitting
1810
+ * entity-api directly with the `_id`.
1673
1811
  *
1674
1812
  */
1675
1813
  'searchEventHistoryV2'(
@@ -1745,10 +1883,13 @@ interface PathsDictionary {
1745
1883
  /**
1746
1884
  * getEventJSONSchema - getEventJSONSchema
1747
1885
  *
1748
- * Retrieve the JSON Schema of a specific business event
1886
+ * Retrieve the JSON Schema of a specific business event. Pass an optional
1887
+ * `Epilot-Event-Version` header to retrieve a specific version's schema;
1888
+ * when omitted, the event's latest version is returned.
1889
+ *
1749
1890
  */
1750
1891
  'get'(
1751
- parameters?: Parameters<Paths.GetEventJSONSchema.PathParameters> | null,
1892
+ parameters?: Parameters<Paths.GetEventJSONSchema.HeaderParameters & Paths.GetEventJSONSchema.PathParameters> | null,
1752
1893
  data?: any,
1753
1894
  config?: AxiosRequestConfig
1754
1895
  ): OperationResponse<Paths.GetEventJSONSchema.Responses.$200>
@@ -1757,14 +1898,32 @@ interface PathsDictionary {
1757
1898
  /**
1758
1899
  * getEventExample - getEventExample
1759
1900
  *
1760
- * Generate a sample event payload based on the event's JSON Schema
1901
+ * Generate a sample event payload based on the event's JSON Schema. Pass an
1902
+ * optional `Epilot-Event-Version` header to generate the example for a
1903
+ * specific version; when omitted, the event's latest version is used.
1904
+ *
1761
1905
  */
1762
1906
  'get'(
1763
- parameters?: Parameters<Paths.GetEventExample.PathParameters> | null,
1907
+ parameters?: Parameters<Paths.GetEventExample.HeaderParameters & Paths.GetEventExample.PathParameters> | null,
1764
1908
  data?: any,
1765
1909
  config?: AxiosRequestConfig
1766
1910
  ): OperationResponse<Paths.GetEventExample.Responses.$200>
1767
1911
  }
1912
+ ['/v1/events/{event_name}/versions']: {
1913
+ /**
1914
+ * listEventVersions - listEventVersions
1915
+ *
1916
+ * List every known version of an event, along with the `latest`
1917
+ * and the set of currently `active` versions. See §3.2 of the
1918
+ * Event Payload Versioning RFC.
1919
+ *
1920
+ */
1921
+ 'get'(
1922
+ parameters?: Parameters<Paths.ListEventVersions.PathParameters> | null,
1923
+ data?: any,
1924
+ config?: AxiosRequestConfig
1925
+ ): OperationResponse<Paths.ListEventVersions.Responses.$200>
1926
+ }
1768
1927
  ['/v1/events/{event_name}:history']: {
1769
1928
  /**
1770
1929
  * searchEventHistory - searchEventHistory
@@ -1784,9 +1943,10 @@ interface PathsDictionary {
1784
1943
  * Paginated history of events with projected/lightweight payload (v2).
1785
1944
  *
1786
1945
  * 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.
1946
+ * hydrated entity objects (values carrying `_schema`/`_id`) are reduced to
1947
+ * reference stubs `{_schema, _id, _title}` the full entity is recoverable
1948
+ * via GET /v2/events/{event_name}/history/{event_id} or by hitting
1949
+ * entity-api directly with the `_id`.
1790
1950
  *
1791
1951
  */
1792
1952
  'post'(
@@ -1841,6 +2001,8 @@ type EventConfig = Components.Schemas.EventConfig;
1841
2001
  type EventConfigBase = Components.Schemas.EventConfigBase;
1842
2002
  type EventJsonSchema = Components.Schemas.EventJsonSchema;
1843
2003
  type EventSummary = Components.Schemas.EventSummary;
2004
+ type EventVersionRegistrySummary = Components.Schemas.EventVersionRegistrySummary;
2005
+ type FieldChange = Components.Schemas.FieldChange;
1844
2006
  type FieldsParam = Components.Schemas.FieldsParam;
1845
2007
  type GraphDefinition = Components.Schemas.GraphDefinition;
1846
2008
  type GraphEdge = Components.Schemas.GraphEdge;
@@ -1852,5 +2014,6 @@ type SearchOptionsV2 = Components.Schemas.SearchOptionsV2;
1852
2014
  type TriggerEventPayload = Components.Schemas.TriggerEventPayload;
1853
2015
  type TriggerEventResponse = Components.Schemas.TriggerEventResponse;
1854
2016
  type UpdateEventPayload = Components.Schemas.UpdateEventPayload;
2017
+ type VersionMeta = Components.Schemas.VersionMeta;
1855
2018
 
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 };
2019
+ export { type AttachmentField as A, type Client as C, type EntityOperationTrigger as E, type FieldChange 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, type VersionMeta as V, 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 EventVersionRegistrySummary as k, type FieldsParam as l, type GraphEdge as m, type GraphNode as n, type PrimitiveField as o, type SearchOptions as p, type SearchOptionsV2 as q, type TriggerEventResponse as r };