@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.
- package/definitions/event-catalog-runtime.json +1 -1
- package/definitions/event-catalog.json +256 -1
- package/definitions/integration-toolkit-runtime.json +1 -1
- package/definitions/integration-toolkit.json +480 -4
- package/definitions/metering-runtime.json +1 -1
- package/definitions/metering.json +728 -64
- 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 +8 -8
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +2 -2
- 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 +8 -8
- package/dist/apis/metering.d.cts +2 -2
- package/dist/apis/metering.d.ts +2 -2
- package/dist/apis/metering.js +2 -2
- 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-C7GDYBXX.cjs → chunk-35CN2YFK.cjs} +7 -7
- package/dist/{chunk-JTFWOEZF.cjs → chunk-4FFGRWLS.cjs} +1 -1
- package/dist/chunk-56MMZJOD.js +14 -0
- package/dist/{chunk-BLNXQAMX.cjs → chunk-CBDKPGO5.cjs} +1 -1
- package/dist/{chunk-WRD2XFHY.js → chunk-JB7LITSP.js} +7 -7
- package/dist/{chunk-TME4YJNP.js → chunk-OCMIXJWC.js} +1 -1
- package/dist/chunk-T6A22LSD.cjs +14 -0
- package/dist/chunk-WM74R3BD.js +14 -0
- 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 +14 -14
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/integration-toolkit-3I3IPVFN.cjs +7 -0
- package/dist/integration-toolkit-XAFQXNQY.js +7 -0
- package/dist/{integration-toolkit-runtime-5KG3LGXF.cjs → integration-toolkit-runtime-YHTU4X5J.cjs} +2 -2
- package/dist/{integration-toolkit-runtime-LYHFVIRW.js → integration-toolkit-runtime-YR4CIMKH.js} +1 -1
- package/dist/{integration-toolkit.d-Ry-KC9ow.d.cts → integration-toolkit.d-BstNqiJb.d.cts} +460 -20
- package/dist/{integration-toolkit.d-Ry-KC9ow.d.ts → integration-toolkit.d-BstNqiJb.d.ts} +460 -20
- package/dist/metering-3IUSYAGN.js +7 -0
- package/dist/metering-MHBFU7QH.cjs +7 -0
- package/dist/{metering-runtime-HAIWXZXJ.cjs → metering-runtime-IUZJHBVS.cjs} +2 -2
- package/dist/{metering-runtime-NJ6NEUMB.js → metering-runtime-KZMJKKUZ.js} +1 -1
- package/dist/{metering.d-DvtPv7wk.d.ts → metering.d-CUICZDiL.d.cts} +718 -130
- package/dist/{metering.d-DvtPv7wk.d.cts → metering.d-CUICZDiL.d.ts} +718 -130
- 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.cts → webhooks.d-ByePoUWs.d.cts} +40 -4
- package/dist/{webhooks.d-D79qib9f.d.ts → webhooks.d-ByePoUWs.d.ts} +40 -4
- package/docs/event-catalog.md +247 -1
- package/docs/integration-toolkit.md +334 -19
- package/docs/metering.md +570 -48
- package/docs/webhooks.md +3 -1
- package/package.json +1 -1
- package/dist/chunk-265TE2OV.js +0 -14
- package/dist/chunk-4ZMLRFDX.cjs +0 -14
- package/dist/chunk-U4PUHKZC.js +0 -14
- package/dist/event-catalog-C45ISVMP.cjs +0 -7
- package/dist/event-catalog-D7VJ7WRS.js +0 -7
- package/dist/integration-toolkit-FRPFOYT2.js +0 -7
- package/dist/integration-toolkit-VNMDI55O.cjs +0 -7
- package/dist/metering-DZNZPPY6.cjs +0 -7
- package/dist/metering-KOSCPPKB.js +0 -7
package/docs/event-catalog.md
CHANGED
|
@@ -31,6 +31,8 @@ const { data } = await eventCatalogClient.listEvents(...)
|
|
|
31
31
|
- [`getEventJSONSchema`](#geteventjsonschema)
|
|
32
32
|
- [`getEventExample`](#geteventexample)
|
|
33
33
|
- [`searchEventHistory`](#searcheventhistory)
|
|
34
|
+
- [`searchEventHistoryV2`](#searcheventhistoryv2)
|
|
35
|
+
- [`getHistoricalEvent`](#gethistoricalevent)
|
|
34
36
|
- [`triggerEvent`](#triggerevent)
|
|
35
37
|
|
|
36
38
|
**Schemas**
|
|
@@ -39,18 +41,22 @@ const { data } = await eventCatalogClient.listEvents(...)
|
|
|
39
41
|
- [`UpdateEventPayload`](#updateeventpayload)
|
|
40
42
|
- [`PrimitiveField`](#primitivefield)
|
|
41
43
|
- [`ContextEntity`](#contextentity)
|
|
44
|
+
- [`AttachmentField`](#attachmentfield)
|
|
42
45
|
- [`SchemaField`](#schemafield)
|
|
43
46
|
- [`CommonEventMetadata`](#commoneventmetadata)
|
|
44
47
|
- [`EventJsonSchema`](#eventjsonschema)
|
|
45
48
|
- [`Event`](#event)
|
|
49
|
+
- [`EventSummary`](#eventsummary)
|
|
46
50
|
- [`GraphDefinition`](#graphdefinition)
|
|
47
51
|
- [`GraphNode`](#graphnode)
|
|
48
52
|
- [`GraphEdge`](#graphedge)
|
|
49
53
|
- [`EntityOperationTrigger`](#entityoperationtrigger)
|
|
50
54
|
- [`SearchOptions`](#searchoptions)
|
|
55
|
+
- [`SearchOptionsV2`](#searchoptionsv2)
|
|
51
56
|
- [`FieldsParam`](#fieldsparam)
|
|
52
57
|
- [`TriggerEventPayload`](#triggereventpayload)
|
|
53
58
|
- [`TriggerEventResponse`](#triggereventresponse)
|
|
59
|
+
- [`EventAttachment`](#eventattachment)
|
|
54
60
|
|
|
55
61
|
### `listEvents`
|
|
56
62
|
|
|
@@ -470,6 +476,108 @@ const { data } = await client.searchEventHistory(
|
|
|
470
476
|
|
|
471
477
|
---
|
|
472
478
|
|
|
479
|
+
### `searchEventHistoryV2`
|
|
480
|
+
|
|
481
|
+
Paginated history of events with projected/lightweight payload (v2).
|
|
482
|
+
|
|
483
|
+
`POST /v2/events/{event_name}:history`
|
|
484
|
+
|
|
485
|
+
```ts
|
|
486
|
+
const { data } = await client.searchEventHistoryV2(
|
|
487
|
+
{
|
|
488
|
+
event_name: 'example',
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
limit: 10,
|
|
492
|
+
cursor: {
|
|
493
|
+
event_time: '2025-10-31 12:34:56',
|
|
494
|
+
event_id: 'evt_1234567890abcdef'
|
|
495
|
+
},
|
|
496
|
+
timestamp: {
|
|
497
|
+
from: '2025-10-01T00:00:00Z',
|
|
498
|
+
to: '2025-10-31T23:59:59Z'
|
|
499
|
+
},
|
|
500
|
+
event_id: 'evt_1234567890abcdef',
|
|
501
|
+
fields: ['_id', '_title', 'first_name', 'account', '!account.*._files', '**._product']
|
|
502
|
+
},
|
|
503
|
+
)
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
<details>
|
|
507
|
+
<summary>Response</summary>
|
|
508
|
+
|
|
509
|
+
```json
|
|
510
|
+
{
|
|
511
|
+
"results": [
|
|
512
|
+
{
|
|
513
|
+
"_org_id": "string",
|
|
514
|
+
"_event_time": "1970-01-01T00:00:00.000Z",
|
|
515
|
+
"_event_id": "string",
|
|
516
|
+
"_event_name": "string",
|
|
517
|
+
"_event_version": "1.0.0",
|
|
518
|
+
"_event_source": "string",
|
|
519
|
+
"_trigger_source_type": "api",
|
|
520
|
+
"_trigger_source": "string",
|
|
521
|
+
"_ack_id": "string"
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"next_cursor": {
|
|
525
|
+
"event_time": "2025-10-31T12:34:56Z",
|
|
526
|
+
"event_id": "evt_1234567890abcdef"
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
</details>
|
|
532
|
+
|
|
533
|
+
---
|
|
534
|
+
|
|
535
|
+
### `getHistoricalEvent`
|
|
536
|
+
|
|
537
|
+
Fetch a single historical event by id with full hydration
|
|
538
|
+
|
|
539
|
+
`GET /v2/events/{event_name}/history/{event_id}`
|
|
540
|
+
|
|
541
|
+
```ts
|
|
542
|
+
const { data } = await client.getHistoricalEvent({
|
|
543
|
+
event_name: 'example',
|
|
544
|
+
event_id: 'example',
|
|
545
|
+
})
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
<details>
|
|
549
|
+
<summary>Response</summary>
|
|
550
|
+
|
|
551
|
+
```json
|
|
552
|
+
{
|
|
553
|
+
"_org_id": "org_123456",
|
|
554
|
+
"_event_time": "2024-01-01T12:00:00Z",
|
|
555
|
+
"_event_id": "01FZ4Z5FZ5FZ5FZ5FZ5FZ5FZ5F",
|
|
556
|
+
"_event_name": "MeterReading",
|
|
557
|
+
"_event_version": "1.0.0",
|
|
558
|
+
"_event_source": "api",
|
|
559
|
+
"_trigger_source_type": "api",
|
|
560
|
+
"_trigger_source": "user_123456",
|
|
561
|
+
"reading_value": 123.45,
|
|
562
|
+
"reading_date": "2024-01-01T11:59:00Z",
|
|
563
|
+
"read_by": "John Doe",
|
|
564
|
+
"reason": "regular",
|
|
565
|
+
"direction": "feed-out",
|
|
566
|
+
"source": "portal",
|
|
567
|
+
"meter_id": "550e8400-e29b-41d4-a716-446655440000",
|
|
568
|
+
"counter_id": "660e8400-e29b-41d4-a716-446655440000",
|
|
569
|
+
"meter_number": "MT123456789",
|
|
570
|
+
"obis_number": "1-0:1.8.0",
|
|
571
|
+
"unit": "kWh",
|
|
572
|
+
"customer_id": "770e8400-e29b-41d4-a716-446655440000",
|
|
573
|
+
"contract_id": "880e8400-e29b-41d4-a716-446655440000"
|
|
574
|
+
}
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
</details>
|
|
578
|
+
|
|
579
|
+
---
|
|
580
|
+
|
|
473
581
|
### `triggerEvent`
|
|
474
582
|
|
|
475
583
|
Explicitly trigger an event by providing input field values and an optional entity seed
|
|
@@ -531,6 +639,17 @@ type EventConfigBase = {
|
|
|
531
639
|
} | {
|
|
532
640
|
entity_schema: string
|
|
533
641
|
required?: boolean
|
|
642
|
+
} | {
|
|
643
|
+
items: {
|
|
644
|
+
entity_id: { ... }
|
|
645
|
+
filename?: { ... }
|
|
646
|
+
mime_type?: { ... }
|
|
647
|
+
size_bytes?: { ... }
|
|
648
|
+
s3ref?: { ... }
|
|
649
|
+
version_index: { ... }
|
|
650
|
+
readable_size?: { ... }
|
|
651
|
+
}
|
|
652
|
+
required?: boolean
|
|
534
653
|
}>
|
|
535
654
|
entity_graph?: {
|
|
536
655
|
nodes: Array<{
|
|
@@ -575,6 +694,17 @@ type EventConfig = {
|
|
|
575
694
|
} | {
|
|
576
695
|
entity_schema: string
|
|
577
696
|
required?: boolean
|
|
697
|
+
} | {
|
|
698
|
+
items: {
|
|
699
|
+
entity_id: { ... }
|
|
700
|
+
filename?: { ... }
|
|
701
|
+
mime_type?: { ... }
|
|
702
|
+
size_bytes?: { ... }
|
|
703
|
+
s3ref?: { ... }
|
|
704
|
+
version_index: { ... }
|
|
705
|
+
readable_size?: { ... }
|
|
706
|
+
}
|
|
707
|
+
required?: boolean
|
|
578
708
|
}>
|
|
579
709
|
entity_graph?: {
|
|
580
710
|
nodes: Array<{
|
|
@@ -604,7 +734,7 @@ type EventConfig = {
|
|
|
604
734
|
|
|
605
735
|
Payload for updating an event configuration.
|
|
606
736
|
Accepts the same fields as EventConfig (all optional for PATCH).
|
|
607
|
-
Currently
|
|
737
|
+
Currently `enabled` and `auto_trigger` fields are processed.
|
|
608
738
|
|
|
609
739
|
|
|
610
740
|
```ts
|
|
@@ -622,6 +752,17 @@ type UpdateEventPayload = {
|
|
|
622
752
|
} | {
|
|
623
753
|
entity_schema: string
|
|
624
754
|
required?: boolean
|
|
755
|
+
} | {
|
|
756
|
+
items: {
|
|
757
|
+
entity_id: { ... }
|
|
758
|
+
filename?: { ... }
|
|
759
|
+
mime_type?: { ... }
|
|
760
|
+
size_bytes?: { ... }
|
|
761
|
+
s3ref?: { ... }
|
|
762
|
+
version_index: { ... }
|
|
763
|
+
readable_size?: { ... }
|
|
764
|
+
}
|
|
765
|
+
required?: boolean
|
|
625
766
|
}>
|
|
626
767
|
entity_graph?: {
|
|
627
768
|
nodes: Array<{
|
|
@@ -668,6 +809,30 @@ type ContextEntity = {
|
|
|
668
809
|
}
|
|
669
810
|
```
|
|
670
811
|
|
|
812
|
+
### `AttachmentField`
|
|
813
|
+
|
|
814
|
+
A schema field representing file attachments associated with the event.
|
|
815
|
+
Present in schema_fields for events tagged with "attachment".
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
```ts
|
|
819
|
+
type AttachmentField = {
|
|
820
|
+
items: {
|
|
821
|
+
entity_id: string // uuid
|
|
822
|
+
filename?: string
|
|
823
|
+
mime_type?: string
|
|
824
|
+
size_bytes?: number
|
|
825
|
+
s3ref?: {
|
|
826
|
+
bucket: { ... }
|
|
827
|
+
key: { ... }
|
|
828
|
+
}
|
|
829
|
+
version_index: number
|
|
830
|
+
readable_size?: string
|
|
831
|
+
}
|
|
832
|
+
required?: boolean
|
|
833
|
+
}
|
|
834
|
+
```
|
|
835
|
+
|
|
671
836
|
### `SchemaField`
|
|
672
837
|
|
|
673
838
|
```ts
|
|
@@ -678,6 +843,20 @@ type SchemaField = {
|
|
|
678
843
|
} | {
|
|
679
844
|
entity_schema: string
|
|
680
845
|
required?: boolean
|
|
846
|
+
} | {
|
|
847
|
+
items: {
|
|
848
|
+
entity_id: string // uuid
|
|
849
|
+
filename?: string
|
|
850
|
+
mime_type?: string
|
|
851
|
+
size_bytes?: number
|
|
852
|
+
s3ref?: {
|
|
853
|
+
bucket: { ... }
|
|
854
|
+
key: { ... }
|
|
855
|
+
}
|
|
856
|
+
version_index: number
|
|
857
|
+
readable_size?: string
|
|
858
|
+
}
|
|
859
|
+
required?: boolean
|
|
681
860
|
}
|
|
682
861
|
```
|
|
683
862
|
|
|
@@ -715,6 +894,29 @@ type Event = {
|
|
|
715
894
|
}
|
|
716
895
|
```
|
|
717
896
|
|
|
897
|
+
### `EventSummary`
|
|
898
|
+
|
|
899
|
+
A lightweight event summary returned by the v2 history endpoint.
|
|
900
|
+
|
|
901
|
+
Includes the standard `_*` metadata fields plus a projected subset of the
|
|
902
|
+
event payload. Hydrated entity objects (values carrying `_schema` or `_id`
|
|
903
|
+
and arrays of such objects) are stripped — fetch via
|
|
904
|
+
`GET /v2/events/{event_name}/his
|
|
905
|
+
|
|
906
|
+
```ts
|
|
907
|
+
type EventSummary = {
|
|
908
|
+
_org_id: string
|
|
909
|
+
_event_time: string // date-time
|
|
910
|
+
_event_id: string
|
|
911
|
+
_event_name: string
|
|
912
|
+
_event_version: string
|
|
913
|
+
_event_source: string
|
|
914
|
+
_trigger_source_type?: string
|
|
915
|
+
_trigger_source?: string
|
|
916
|
+
_ack_id?: string
|
|
917
|
+
}
|
|
918
|
+
```
|
|
919
|
+
|
|
718
920
|
### `GraphDefinition`
|
|
719
921
|
|
|
720
922
|
Entity graph definition for resolving related entities
|
|
@@ -792,6 +994,31 @@ type SearchOptions = {
|
|
|
792
994
|
}
|
|
793
995
|
```
|
|
794
996
|
|
|
997
|
+
### `SearchOptionsV2`
|
|
998
|
+
|
|
999
|
+
Search options for the v2 history endpoint.
|
|
1000
|
+
|
|
1001
|
+
Extends `SearchOptions` with an optional `fields` projection. When `fields`
|
|
1002
|
+
is omitted, the response includes all `_*` metadata plus all scalar payload
|
|
1003
|
+
fields (and primitive arrays / empty objects/arrays) after entity stripping.
|
|
1004
|
+
When `fields` is provided,
|
|
1005
|
+
|
|
1006
|
+
```ts
|
|
1007
|
+
type SearchOptionsV2 = {
|
|
1008
|
+
limit?: number
|
|
1009
|
+
cursor?: {
|
|
1010
|
+
event_time?: string
|
|
1011
|
+
event_id?: string
|
|
1012
|
+
}
|
|
1013
|
+
timestamp?: {
|
|
1014
|
+
from?: string // date-time
|
|
1015
|
+
to?: string // date-time
|
|
1016
|
+
}
|
|
1017
|
+
event_id?: string
|
|
1018
|
+
fields?: string[]
|
|
1019
|
+
}
|
|
1020
|
+
```
|
|
1021
|
+
|
|
795
1022
|
### `FieldsParam`
|
|
796
1023
|
|
|
797
1024
|
List of entity fields to include or exclude in the response
|
|
@@ -833,3 +1060,22 @@ type TriggerEventResponse = {
|
|
|
833
1060
|
event_bridge_event_id?: string
|
|
834
1061
|
}
|
|
835
1062
|
```
|
|
1063
|
+
|
|
1064
|
+
### `EventAttachment`
|
|
1065
|
+
|
|
1066
|
+
A file attachment associated with an event
|
|
1067
|
+
|
|
1068
|
+
```ts
|
|
1069
|
+
type EventAttachment = {
|
|
1070
|
+
entity_id: string // uuid
|
|
1071
|
+
filename?: string
|
|
1072
|
+
mime_type?: string
|
|
1073
|
+
size_bytes?: number
|
|
1074
|
+
s3ref?: {
|
|
1075
|
+
bucket: string
|
|
1076
|
+
key: string
|
|
1077
|
+
}
|
|
1078
|
+
version_index: number
|
|
1079
|
+
readable_size?: string
|
|
1080
|
+
}
|
|
1081
|
+
```
|