@epilot/sdk 2.6.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.
- package/definitions/event-catalog-runtime.json +1 -1
- package/definitions/event-catalog.json +256 -1
- package/definitions/webhooks.json +19 -4
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +8 -8
- package/dist/apis/event-catalog.d.cts +2 -2
- package/dist/apis/event-catalog.d.ts +2 -2
- package/dist/apis/event-catalog.js +2 -2
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.d.cts +2 -2
- package/dist/apis/webhooks.d.ts +2 -2
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-SDIGGISZ.cjs → chunk-35CN2YFK.cjs} +3 -3
- package/dist/{chunk-BLNXQAMX.cjs → chunk-CBDKPGO5.cjs} +1 -1
- package/dist/{chunk-QNUU4TTU.js → chunk-JB7LITSP.js} +3 -3
- package/dist/{chunk-TME4YJNP.js → chunk-OCMIXJWC.js} +1 -1
- package/dist/event-catalog-37B6JC7G.js +7 -0
- package/dist/event-catalog-5JBHJJ2I.cjs +7 -0
- package/dist/{event-catalog-runtime-5HQSAJVX.cjs → event-catalog-runtime-B2BPKQVG.cjs} +2 -2
- package/dist/{event-catalog-runtime-6FA3SCRI.js → event-catalog-runtime-N262TQ3Y.js} +1 -1
- package/dist/{event-catalog.d-ENw6HO-w.d.cts → event-catalog.d-mQJLSYUo.d.cts} +351 -6
- package/dist/{event-catalog.d-ENw6HO-w.d.ts → event-catalog.d-mQJLSYUo.d.ts} +351 -6
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{webhooks-XLBUXXCS.js → webhooks-NZHJBT64.js} +1 -1
- package/dist/{webhooks-NZ3TM3AY.cjs → webhooks-SK2STDKR.cjs} +1 -1
- package/dist/{webhooks.d-D79qib9f.d.ts → webhooks.d-ByePoUWs.d.cts} +40 -4
- package/dist/{webhooks.d-D79qib9f.d.cts → webhooks.d-ByePoUWs.d.ts} +40 -4
- package/docs/event-catalog.md +247 -1
- package/docs/webhooks.md +3 -1
- package/package.json +1 -1
- package/dist/event-catalog-C45ISVMP.cjs +0 -7
- package/dist/event-catalog-D7VJ7WRS.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
|
|
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
|
|
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
|
|
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
|
|
60
|
+
var _chunkCBDKPGO5cjs = require('./chunk-CBDKPGO5.cjs');
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
var _chunk4W22EIRFcjs = require('./chunk-4W22EIRF.cjs');
|
|
@@ -155,7 +155,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
var
|
|
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 =
|
|
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) =>
|
|
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(
|
|
378
|
+
loader: () => expandDef(_chunkCBDKPGO5cjs.require_event_catalog_runtime.call(void 0, ))
|
|
379
379
|
});
|
|
380
380
|
registerApi({
|
|
381
381
|
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
|
|
596
|
+
return _chunk35CN2YFKcjs.createApiHandle.call(void 0, {
|
|
597
597
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
598
|
-
createClient: () =>
|
|
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) =>
|
|
646
|
+
return (apiName) => _chunk35CN2YFKcjs.help.call(void 0, apiName);
|
|
647
647
|
case "openapi":
|
|
648
|
-
return (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 =
|
|
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,7 +26,7 @@ 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-
|
|
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
32
|
import { C as Client$q } from './integration-toolkit.d-BstNqiJb.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-
|
|
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,7 +26,7 @@ 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-
|
|
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
32
|
import { C as Client$q } from './integration-toolkit.d-BstNqiJb.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-
|
|
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-
|
|
60
|
+
} from "./chunk-OCMIXJWC.js";
|
|
61
61
|
import {
|
|
62
62
|
require_file_runtime
|
|
63
63
|
} from "./chunk-E2WMGOM5.js";
|
|
@@ -155,7 +155,7 @@ import {
|
|
|
155
155
|
expand,
|
|
156
156
|
help,
|
|
157
157
|
openapi
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-JB7LITSP.js";
|
|
159
159
|
import {
|
|
160
160
|
__require
|
|
161
161
|
} from "./chunk-YPSWSI3M.js";
|