@epilot/sdk 2.20.32 → 2.20.34
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/automation.json +228 -7
- package/definitions/event-catalog-runtime.json +1 -1
- package/definitions/event-catalog.json +310 -1
- package/definitions/focus-pocus-runtime.json +1 -0
- package/definitions/focus-pocus.json +757 -0
- package/definitions/integration-toolkit.json +272 -1
- package/definitions/metering.json +19 -8
- 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.d.cts +2 -2
- package/dist/apis/automation.d.ts +2 -2
- 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/chat.cjs +6 -6
- package/dist/apis/chat.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.d.cts +2 -2
- package/dist/apis/metering.d.ts +2 -2
- 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/snapshot.cjs +6 -6
- package/dist/apis/snapshot.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.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/automation-G2CKAQNB.cjs +7 -0
- package/dist/automation-UPTNUOYO.js +7 -0
- package/dist/{automation.d-2biAmiMc.d.cts → automation.d-B8g3nYp-.d.cts} +175 -7
- package/dist/{automation.d-2biAmiMc.d.ts → automation.d-B8g3nYp-.d.ts} +175 -7
- package/dist/chunk-M6G3GHCU.js +14 -0
- package/dist/{chunk-E7DJRTMC.js → chunk-RJVNG46W.js} +4 -4
- package/dist/chunk-ULV6ZQQR.cjs +14 -0
- package/dist/{chunk-A6FO6QAZ.cjs → chunk-XFBOYWIP.cjs} +4 -4
- package/dist/event-catalog-5HHAS7NI.js +7 -0
- package/dist/event-catalog-SAH4ZEOO.cjs +7 -0
- package/dist/{event-catalog-runtime-XWSYNUGQ.cjs → event-catalog-runtime-2ACQMB22.cjs} +2 -2
- package/dist/{event-catalog-runtime-Z6OMHQBD.js → event-catalog-runtime-5IXAZVIB.js} +1 -1
- package/dist/{event-catalog.d-CCE1qmBN.d.cts → event-catalog.d-BQqG_LGF.d.cts} +248 -1
- package/dist/{event-catalog.d-CCE1qmBN.d.ts → event-catalog.d-BQqG_LGF.d.ts} +248 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/dist/{metering-COO4BTOC.js → metering-SHNCUA4O.js} +1 -1
- package/dist/{metering-FJI2AU7Q.cjs → metering-WAVFLJZD.cjs} +1 -1
- package/dist/{metering.d-DomHYl06.d.ts → metering.d-BP04w-gR.d.cts} +24 -15
- package/dist/{metering.d-DomHYl06.d.cts → metering.d-BP04w-gR.d.ts} +24 -15
- package/docs/automation.md +200 -3
- package/docs/event-catalog.md +439 -0
- package/docs/metering.md +4 -4
- package/package.json +12 -11
- package/dist/automation-CDMOEYVP.cjs +0 -7
- package/dist/automation-XFMSH7Y3.js +0 -7
- package/dist/chunk-2Q6CNXJ2.cjs +0 -14
- package/dist/chunk-LTCN52JS.js +0 -14
- package/dist/event-catalog-S4OYTDIB.js +0 -7
- package/dist/event-catalog-Z6BO4L2G.cjs +0 -7
|
@@ -92,6 +92,35 @@ declare namespace Components {
|
|
|
92
92
|
*/
|
|
93
93
|
ConditionStatement[];
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Internal. Run-time inputs for the actions of this execution, keyed by
|
|
97
|
+
* action type. An action reads the entry for its own type and treats it
|
|
98
|
+
* as replacing the matching configured values; an action whose type has
|
|
99
|
+
* no entry runs entirely from its configuration.
|
|
100
|
+
*
|
|
101
|
+
* Only the workflows service may set this field, on behalf of the person
|
|
102
|
+
* running a semi-automated flow task: it forwards what that person chose
|
|
103
|
+
* after checking their permission to run the task. A request carrying
|
|
104
|
+
* `action_inputs` under any other token is refused with 403 and nothing
|
|
105
|
+
* is stored.
|
|
106
|
+
*
|
|
107
|
+
* This is deliberately NOT stored on `actions[].config`. Retrying a step
|
|
108
|
+
* refreshes that action's config from the live flow (see `startAction`),
|
|
109
|
+
* which would silently drop an override and re-run the action with the
|
|
110
|
+
* configured values — sending the wrong email, or cancelling a flow
|
|
111
|
+
* under the wrong reason. Keeping the inputs on the execution row means a
|
|
112
|
+
* retry replays what the person actually chose.
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
export interface ActionInputs {
|
|
116
|
+
"cancel-flow-execution"?: /* The cancellation reasons a person chose when running a semi-automated cancel step, replacing `selected_reasons` from the action's configuration. */ FlowExecutionCancelInputs;
|
|
117
|
+
"send-email"?: /**
|
|
118
|
+
* Adjustments a person made to an email before sending it, replacing the rendered values the template produced. The template itself is untouched.
|
|
119
|
+
*
|
|
120
|
+
* `attachment_entity_ids` is a request, not an instruction: the worker keeps only the ids that are genuinely files of the entity this execution runs on, so a caller cannot attach an arbitrary file.
|
|
121
|
+
*/
|
|
122
|
+
SendEmailInputs;
|
|
123
|
+
}
|
|
95
124
|
export interface ActionSchedule {
|
|
96
125
|
/**
|
|
97
126
|
* Schedule Id
|
|
@@ -1393,6 +1422,27 @@ declare namespace Components {
|
|
|
1393
1422
|
conditions?: ActionCondition[];
|
|
1394
1423
|
schedules?: ActionSchedule[];
|
|
1395
1424
|
actions: AnyAction[];
|
|
1425
|
+
action_inputs?: /**
|
|
1426
|
+
* Internal. Run-time inputs for the actions of this execution, keyed by
|
|
1427
|
+
* action type. An action reads the entry for its own type and treats it
|
|
1428
|
+
* as replacing the matching configured values; an action whose type has
|
|
1429
|
+
* no entry runs entirely from its configuration.
|
|
1430
|
+
*
|
|
1431
|
+
* Only the workflows service may set this field, on behalf of the person
|
|
1432
|
+
* running a semi-automated flow task: it forwards what that person chose
|
|
1433
|
+
* after checking their permission to run the task. A request carrying
|
|
1434
|
+
* `action_inputs` under any other token is refused with 403 and nothing
|
|
1435
|
+
* is stored.
|
|
1436
|
+
*
|
|
1437
|
+
* This is deliberately NOT stored on `actions[].config`. Retrying a step
|
|
1438
|
+
* refreshes that action's config from the live flow (see `startAction`),
|
|
1439
|
+
* which would silently drop an override and re-run the action with the
|
|
1440
|
+
* configured values — sending the wrong email, or cancelling a flow
|
|
1441
|
+
* under the wrong reason. Keeping the inputs on the execution row means a
|
|
1442
|
+
* retry replays what the person actually chose.
|
|
1443
|
+
*
|
|
1444
|
+
*/
|
|
1445
|
+
ActionInputs;
|
|
1396
1446
|
resume_token?: /**
|
|
1397
1447
|
* A unique token to resume a paused automation execution
|
|
1398
1448
|
* example:
|
|
@@ -1420,7 +1470,7 @@ declare namespace Components {
|
|
|
1420
1470
|
TriggerEventEventCatalog;
|
|
1421
1471
|
workflow_context?: WorkflowExecutionContext;
|
|
1422
1472
|
workflow_wait_context?: /**
|
|
1423
|
-
* Correlation stamped when the triggering submission entity carried workflow wait claims from a journey link
|
|
1473
|
+
* Correlation stamped when the triggering submission entity carried workflow wait claims from a journey link. Consumed by svc-workflows to resume a task waiting on this journey submission.
|
|
1424
1474
|
*
|
|
1425
1475
|
*/
|
|
1426
1476
|
WorkflowWaitContext;
|
|
@@ -2908,7 +2958,7 @@ declare namespace Components {
|
|
|
2908
2958
|
AutomationActionId;
|
|
2909
2959
|
name?: string;
|
|
2910
2960
|
type?: "cancel-flow-execution";
|
|
2911
|
-
config?: /* Configuration for cancelling a flow execution
|
|
2961
|
+
config?: /* Configuration for cancelling a flow execution. The selected reasons are optional; a semi-automated step lets the person running it choose them when the execution starts. */ FlowExecutionCancelConfig;
|
|
2912
2962
|
/**
|
|
2913
2963
|
* Whether to stop execution in a failed state if this action fails
|
|
2914
2964
|
*/
|
|
@@ -3000,7 +3050,7 @@ declare namespace Components {
|
|
|
3000
3050
|
AutomationActionId;
|
|
3001
3051
|
name?: string;
|
|
3002
3052
|
type?: "cancel-flow-execution";
|
|
3003
|
-
config?: /* Configuration for cancelling a flow execution
|
|
3053
|
+
config?: /* Configuration for cancelling a flow execution. The selected reasons are optional; a semi-automated step lets the person running it choose them when the execution starts. */ FlowExecutionCancelConfig;
|
|
3004
3054
|
/**
|
|
3005
3055
|
* Whether to stop execution in a failed state if this action fails
|
|
3006
3056
|
*/
|
|
@@ -3042,7 +3092,7 @@ declare namespace Components {
|
|
|
3042
3092
|
loop_id?: string;
|
|
3043
3093
|
}
|
|
3044
3094
|
/**
|
|
3045
|
-
* Configuration for cancelling a flow execution
|
|
3095
|
+
* Configuration for cancelling a flow execution. The selected reasons are optional; a semi-automated step lets the person running it choose them when the execution starts.
|
|
3046
3096
|
*/
|
|
3047
3097
|
export interface FlowExecutionCancelConfig {
|
|
3048
3098
|
/**
|
|
@@ -3056,6 +3106,16 @@ declare namespace Components {
|
|
|
3056
3106
|
*/
|
|
3057
3107
|
extra_description?: string;
|
|
3058
3108
|
}
|
|
3109
|
+
/**
|
|
3110
|
+
* The cancellation reasons a person chose when running a semi-automated cancel step, replacing `selected_reasons` from the action's configuration.
|
|
3111
|
+
*/
|
|
3112
|
+
export interface FlowExecutionCancelInputs {
|
|
3113
|
+
selected_reasons: /* A reason for cancelling a flow execution */ CancellationReason[];
|
|
3114
|
+
/**
|
|
3115
|
+
* A note the person added with their choice, replacing the one fixed in the action's configuration.
|
|
3116
|
+
*/
|
|
3117
|
+
extra_description?: string;
|
|
3118
|
+
}
|
|
3059
3119
|
export interface FlowsTrigger {
|
|
3060
3120
|
/**
|
|
3061
3121
|
* example:
|
|
@@ -3233,6 +3293,13 @@ declare namespace Components {
|
|
|
3233
3293
|
* Prefix to add to the original email subject
|
|
3234
3294
|
*/
|
|
3235
3295
|
subject_prefix?: string;
|
|
3296
|
+
/**
|
|
3297
|
+
* Language of the "Forwarded message" attribution header
|
|
3298
|
+
* (From / Date / To / Subject) prepended to the forwarded email.
|
|
3299
|
+
* Defaults to German.
|
|
3300
|
+
*
|
|
3301
|
+
*/
|
|
3302
|
+
language_code?: "de" | "en";
|
|
3236
3303
|
/**
|
|
3237
3304
|
* When enabled, the email thread will be automatically marked as done after this action completes.
|
|
3238
3305
|
*/
|
|
@@ -3524,6 +3591,54 @@ declare namespace Components {
|
|
|
3524
3591
|
* 8c086140-f33e-4bb7-a993-50c0f2402c7b
|
|
3525
3592
|
*/
|
|
3526
3593
|
export type JobId = string;
|
|
3594
|
+
export interface JourneyContextUsage {
|
|
3595
|
+
kind: "automation";
|
|
3596
|
+
resource: {
|
|
3597
|
+
type: "automation_flow";
|
|
3598
|
+
id: string;
|
|
3599
|
+
name?: string;
|
|
3600
|
+
};
|
|
3601
|
+
location?: {
|
|
3602
|
+
action_id?: string;
|
|
3603
|
+
action_type?: string;
|
|
3604
|
+
};
|
|
3605
|
+
matched_as: {
|
|
3606
|
+
dialect: "name";
|
|
3607
|
+
token: string;
|
|
3608
|
+
at: string;
|
|
3609
|
+
};
|
|
3610
|
+
link_hint: {
|
|
3611
|
+
route: "automation-flow";
|
|
3612
|
+
params: {
|
|
3613
|
+
[name: string]: string;
|
|
3614
|
+
};
|
|
3615
|
+
};
|
|
3616
|
+
}
|
|
3617
|
+
export interface JourneyContextUsagesReq {
|
|
3618
|
+
journey_id: string; // uuid
|
|
3619
|
+
/**
|
|
3620
|
+
* Context parameter keys to look for, as plain strings.
|
|
3621
|
+
*/
|
|
3622
|
+
param_keys: string[];
|
|
3623
|
+
/**
|
|
3624
|
+
* Accepted and ignored. This service stores context references by name only; the field keeps one request shape across every adapter.
|
|
3625
|
+
*
|
|
3626
|
+
*/
|
|
3627
|
+
param_ids?: string[];
|
|
3628
|
+
}
|
|
3629
|
+
export interface JourneyContextUsagesResp {
|
|
3630
|
+
usages: JourneyContextUsage[];
|
|
3631
|
+
/**
|
|
3632
|
+
* partial means the row cap (MAX_USAGES) was reached mid-scan and the scan was aborted: entire flows after the one that tripped the cap may have gone unscanned, not just that some rows were dropped from the one flow being scanned when it tripped.
|
|
3633
|
+
*
|
|
3634
|
+
*/
|
|
3635
|
+
status: "ok" | "partial";
|
|
3636
|
+
/**
|
|
3637
|
+
* Number of flows actually entered by the scan, including the one flow the scan was aborted part-way through when the row cap tripped. Not a total: when status is partial, flows after the aborted one were never visited and are not counted here.
|
|
3638
|
+
*
|
|
3639
|
+
*/
|
|
3640
|
+
scanned: number;
|
|
3641
|
+
}
|
|
3527
3642
|
export interface JourneySubmitTrigger {
|
|
3528
3643
|
/**
|
|
3529
3644
|
* example:
|
|
@@ -4484,7 +4599,7 @@ declare namespace Components {
|
|
|
4484
4599
|
/**
|
|
4485
4600
|
* Only relevant when this action runs from a workflow automation task. After the email is sent,
|
|
4486
4601
|
* the workflow task waits for the journey referenced in the email template to be submitted and
|
|
4487
|
-
* its submission automation to complete
|
|
4602
|
+
* its submission automation to complete.
|
|
4488
4603
|
*
|
|
4489
4604
|
* The email template should contain a journey link created with the generateJourneyLink variable.
|
|
4490
4605
|
*
|
|
@@ -4540,6 +4655,22 @@ declare namespace Components {
|
|
|
4540
4655
|
* .*
|
|
4541
4656
|
*/
|
|
4542
4657
|
filename_regex?: string;
|
|
4658
|
+
/**
|
|
4659
|
+
* Match by exact filename
|
|
4660
|
+
* example:
|
|
4661
|
+
* Datenblatt_PV.pdf
|
|
4662
|
+
*/
|
|
4663
|
+
filename?: string;
|
|
4664
|
+
/**
|
|
4665
|
+
* Match by a filename pattern that may contain template variables. Each
|
|
4666
|
+
* `{{variable}}` placeholder matches any text, so a pattern written the way a
|
|
4667
|
+
* generated document is named picks up every document produced from that
|
|
4668
|
+
* template, whatever the variables resolved to.
|
|
4669
|
+
*
|
|
4670
|
+
* example:
|
|
4671
|
+
* {{system.date}}_Summary_{{contact._title}}.docx
|
|
4672
|
+
*/
|
|
4673
|
+
filename_pattern?: string;
|
|
4543
4674
|
/**
|
|
4544
4675
|
* Filter by a specific relation attribute on the main entity
|
|
4545
4676
|
* example:
|
|
@@ -4571,6 +4702,16 @@ declare namespace Components {
|
|
|
4571
4702
|
*/
|
|
4572
4703
|
conditions?: SendEmailCondition[];
|
|
4573
4704
|
}
|
|
4705
|
+
/**
|
|
4706
|
+
* Adjustments a person made to an email before sending it, replacing the rendered values the template produced. The template itself is untouched.
|
|
4707
|
+
*
|
|
4708
|
+
* `attachment_entity_ids` is a request, not an instruction: the worker keeps only the ids that are genuinely files of the entity this execution runs on, so a caller cannot attach an arbitrary file.
|
|
4709
|
+
*/
|
|
4710
|
+
export interface SendEmailInputs {
|
|
4711
|
+
subject?: string;
|
|
4712
|
+
body?: string;
|
|
4713
|
+
attachment_entity_ids?: string[];
|
|
4714
|
+
}
|
|
4574
4715
|
export interface SetValueMapper {
|
|
4575
4716
|
mode: /**
|
|
4576
4717
|
* - copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.
|
|
@@ -4608,6 +4749,27 @@ declare namespace Components {
|
|
|
4608
4749
|
* Use workflow_context.workflow_exec_task_id instead
|
|
4609
4750
|
*/
|
|
4610
4751
|
flow_automation_task_id?: string;
|
|
4752
|
+
action_inputs?: /**
|
|
4753
|
+
* Internal. Run-time inputs for the actions of this execution, keyed by
|
|
4754
|
+
* action type. An action reads the entry for its own type and treats it
|
|
4755
|
+
* as replacing the matching configured values; an action whose type has
|
|
4756
|
+
* no entry runs entirely from its configuration.
|
|
4757
|
+
*
|
|
4758
|
+
* Only the workflows service may set this field, on behalf of the person
|
|
4759
|
+
* running a semi-automated flow task: it forwards what that person chose
|
|
4760
|
+
* after checking their permission to run the task. A request carrying
|
|
4761
|
+
* `action_inputs` under any other token is refused with 403 and nothing
|
|
4762
|
+
* is stored.
|
|
4763
|
+
*
|
|
4764
|
+
* This is deliberately NOT stored on `actions[].config`. Retrying a step
|
|
4765
|
+
* refreshes that action's config from the live flow (see `startAction`),
|
|
4766
|
+
* which would silently drop an override and re-run the action with the
|
|
4767
|
+
* configured values — sending the wrong email, or cancelling a flow
|
|
4768
|
+
* under the wrong reason. Keeping the inputs on the execution row means a
|
|
4769
|
+
* retry replays what the person actually chose.
|
|
4770
|
+
*
|
|
4771
|
+
*/
|
|
4772
|
+
ActionInputs;
|
|
4611
4773
|
}
|
|
4612
4774
|
export interface SuffixCondition {
|
|
4613
4775
|
suffix?: string;
|
|
@@ -5477,7 +5639,7 @@ declare namespace Components {
|
|
|
5477
5639
|
trigger_user_id?: string;
|
|
5478
5640
|
}
|
|
5479
5641
|
/**
|
|
5480
|
-
* Correlation stamped when the triggering submission entity carried workflow wait claims from a journey link
|
|
5642
|
+
* Correlation stamped when the triggering submission entity carried workflow wait claims from a journey link. Consumed by svc-workflows to resume a task waiting on this journey submission.
|
|
5481
5643
|
*
|
|
5482
5644
|
*/
|
|
5483
5645
|
export interface WorkflowWaitContext {
|
|
@@ -6359,6 +6521,7 @@ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
|
6359
6521
|
|
|
6360
6522
|
|
|
6361
6523
|
type ActionCondition = Components.Schemas.ActionCondition;
|
|
6524
|
+
type ActionInputs = Components.Schemas.ActionInputs;
|
|
6362
6525
|
type ActionSchedule = Components.Schemas.ActionSchedule;
|
|
6363
6526
|
type ActionScheduleSource = Components.Schemas.ActionScheduleSource;
|
|
6364
6527
|
type ActivityId = Components.Schemas.ActivityId;
|
|
@@ -6427,6 +6590,7 @@ type FilterConditionOnEvent = Components.Schemas.FilterConditionOnEvent;
|
|
|
6427
6590
|
type FlowExecutionCancelAction = Components.Schemas.FlowExecutionCancelAction;
|
|
6428
6591
|
type FlowExecutionCancelActionConfig = Components.Schemas.FlowExecutionCancelActionConfig;
|
|
6429
6592
|
type FlowExecutionCancelConfig = Components.Schemas.FlowExecutionCancelConfig;
|
|
6593
|
+
type FlowExecutionCancelInputs = Components.Schemas.FlowExecutionCancelInputs;
|
|
6430
6594
|
type FlowsTrigger = Components.Schemas.FlowsTrigger;
|
|
6431
6595
|
type ForwardEmailAction = Components.Schemas.ForwardEmailAction;
|
|
6432
6596
|
type ForwardEmailActionConfig = Components.Schemas.ForwardEmailActionConfig;
|
|
@@ -6443,6 +6607,9 @@ type InformERPAction = Components.Schemas.InformERPAction;
|
|
|
6443
6607
|
type InformERPActionConfig = Components.Schemas.InformERPActionConfig;
|
|
6444
6608
|
type InformERPConfig = Components.Schemas.InformERPConfig;
|
|
6445
6609
|
type JobId = Components.Schemas.JobId;
|
|
6610
|
+
type JourneyContextUsage = Components.Schemas.JourneyContextUsage;
|
|
6611
|
+
type JourneyContextUsagesReq = Components.Schemas.JourneyContextUsagesReq;
|
|
6612
|
+
type JourneyContextUsagesResp = Components.Schemas.JourneyContextUsagesResp;
|
|
6446
6613
|
type JourneySubmitTrigger = Components.Schemas.JourneySubmitTrigger;
|
|
6447
6614
|
type MapEntityAction = Components.Schemas.MapEntityAction;
|
|
6448
6615
|
type MapEntityActionConfig = Components.Schemas.MapEntityActionConfig;
|
|
@@ -6480,6 +6647,7 @@ type SendEmailAction = Components.Schemas.SendEmailAction;
|
|
|
6480
6647
|
type SendEmailActionConfig = Components.Schemas.SendEmailActionConfig;
|
|
6481
6648
|
type SendEmailCondition = Components.Schemas.SendEmailCondition;
|
|
6482
6649
|
type SendEmailConfig = Components.Schemas.SendEmailConfig;
|
|
6650
|
+
type SendEmailInputs = Components.Schemas.SendEmailInputs;
|
|
6483
6651
|
type SetValueMapper = Components.Schemas.SetValueMapper;
|
|
6484
6652
|
type StartExecutionRequest = Components.Schemas.StartExecutionRequest;
|
|
6485
6653
|
type SuffixCondition = Components.Schemas.SuffixCondition;
|
|
@@ -6510,4 +6678,4 @@ type WorkflowContextRole = Components.Schemas.WorkflowContextRole;
|
|
|
6510
6678
|
type WorkflowExecutionContext = Components.Schemas.WorkflowExecutionContext;
|
|
6511
6679
|
type WorkflowWaitContext = Components.Schemas.WorkflowWaitContext;
|
|
6512
6680
|
|
|
6513
|
-
export { type
|
|
6681
|
+
export { type EntityId as $, type ActionCondition as A, type AutomationExecutionId as B, type Client as C, type AutomationFlow as D, type AutomationFlowId as E, type AutomationLoop as F, type AutomationLoopState as G, type AutomationTrigger as H, type BulkTriggerJob as I, type BulkTriggerRequest as J, type CancellationReason as K, type CartCheckoutAction as L, type CartCheckoutActionConfig as M, type CartCheckoutConfig as N, type OperationMethods as O, Paths as P, type Comparison as Q, type ConditionStatement as R, type CopyValueMapper as S, type CreateDocumentAction as T, type CreateDocumentActionConfig as U, type CreateDocumentConfig as V, type CustomAction as W, type DiffAdded as X, type DiffDeleted as Y, type DiffUpdated as Z, type EntityAssignee as _, Components as a, type ReplyEmailAction as a$, type EntityItemSnapshot as a0, type EntityManualTrigger as a1, type EntityOperation as a2, type EntityOperationTrigger as a3, type EntityRef as a4, type EntitySearchFilter as a5, type EntitySearchFilterValue as a6, type EqualsIgnoreCaseCondition as a7, type ErrorCode as a8, type ErrorDetail as a9, type InformERPConfig as aA, type JobId as aB, type JourneyContextUsage as aC, type JourneyContextUsagesReq as aD, type JourneyContextUsagesResp as aE, type JourneySubmitTrigger as aF, type MapEntityAction as aG, type MapEntityActionConfig as aH, type MapEntityConfig as aI, type MappingAttribute as aJ, type MappingAttributeMode as aK, type MappingAttributeV2 as aL, type MappingConfigRef as aM, type MoveThreadAction as aN, type MoveThreadConfig as aO, type NewEmailThreadTrigger as aP, type NumericCondition as aQ, type OperationNode as aR, type OperationObjectNode as aS, type OrCondition as aT, type OrConditionForDiff as aU, type OrganizationId as aV, type PatchBulkJobRequest as aW, type PrefixCondition as aX, type PrimitiveJSONValue as aY, type ReceivedEmailTrigger as aZ, type RelationAttribute as a_, type ErrorObject as aa, type ErrorOutput as ab, type EventCatalogTrigger as ac, type ExecItem as ad, type ExecutionChain as ae, type ExecutionStatus as af, type ExistsCondition as ag, type FilterConditionOnEvent as ah, type FlowExecutionCancelAction as ai, type FlowExecutionCancelActionConfig as aj, type FlowExecutionCancelConfig as ak, type FlowExecutionCancelInputs as al, type FlowsTrigger as am, type ForwardEmailAction as an, type ForwardEmailActionConfig as ao, type ForwardEmailConfig as ap, type FrontendSubmitTrigger as aq, type GetExecutionsResp as ar, type GraphContextEntry as as, type GraphDefinition as at, type GraphEdge as au, type GraphNode as av, type GraphNodeFilter as aw, type GraphSeed as ax, type InformERPAction as ay, type InformERPActionConfig as az, type PathsDictionary as b, type ReplyEmailActionConfig as b0, type ReplyEmailConfig as b1, type ResumeReq as b2, type ResumeResp as b3, type ResumeToken as b4, type RetryReq as b5, type RetryStrategy as b6, type SearchAutomationsResp as b7, type SearchExecutionsReq as b8, type SearchExecutionsResp as b9, type TriggerWorkflowAction as bA, type TriggerWorkflowActionConfig as bB, type TriggerWorkflowCondition as bC, type TriggerWorkflowConfig as bD, type WildcardCondition as bE, type WorkflowContextRole as bF, type WorkflowExecutionContext as bG, type WorkflowWaitContext as bH, type SendEmailAction as ba, type SendEmailActionConfig as bb, type SendEmailCondition as bc, type SendEmailConfig as bd, type SendEmailInputs as be, type SetValueMapper as bf, type StartExecutionRequest as bg, type SuffixCondition as bh, type TriggerCondition as bi, type TriggerContext as bj, type TriggerEventAction as bk, type TriggerEventActionConfig as bl, type TriggerEventConfig as bm, type TriggerEventEntityActivity as bn, type TriggerEventEntityOperation as bo, type TriggerEventEventCatalog as bp, type TriggerEventFlowAutomationTask as bq, type TriggerEventManual as br, type TriggerEventMessaging as bs, type TriggerEventPayloadRef as bt, type TriggerShareEntityAction as bu, type TriggerShareEntityActionConfig as bv, type TriggerShareEntityConfig as bw, type TriggerWebhookAction as bx, type TriggerWebhookActionConfig as by, type TriggerWebhookConfig as bz, type ActionInputs as c, type ActionSchedule as d, type ActionScheduleSource as e, type ActivityId as f, type ActivityTrigger as g, type AnyAction as h, type AnyActionConfig as i, type AnyTrigger as j, type AnythingButCondition as k, type ApiCallerContext as l, type ApiSubmissionTrigger as m, type AppendValueMapper as n, type AssignEntityAction as o, type AssignEntityActionConfig as p, type AssignEntityConfig as q, type AssignThreadAction as r, type AssignThreadConfig as s, type AssignUsersToStep as t, type AutomationAction as u, type AutomationActionConfig as v, type AutomationActionExecutionState as w, type AutomationActionId as x, type AutomationActionIteration as y, type AutomationExecution as z };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS
|
|
3
|
+
} from "./chunk-YPSWSI3M.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/event-catalog-runtime.json
|
|
6
|
+
var require_event_catalog_runtime = __commonJS({
|
|
7
|
+
"src/definitions/event-catalog-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://event-catalog.sls.epilot.io", o: [["listEvents", "get", "/v1/events"], ["createCustomEvent", "post", "/v1/events", null, 1], ["getEvent", "get", "/v1/events/{event_name}", [["event_name", "p", true]]], ["patchEvent", "patch", "/v1/events/{event_name}", [["event_name", "p", true]], 1], ["replaceCustomEventDraft", "put", "/v1/events/{event_name}", [["event_name", "p", true]], 1], ["deprecateCustomEvent", "delete", "/v1/events/{event_name}", [["event_name", "p", true]]], ["previewCustomEvent", "post", "/v1/events/{event_name}:preview", [["event_name", "p", true]], 1], ["publishCustomEventDefinition", "post", "/v1/events/{event_name}:publish", [["event_name", "p", true]], 1], ["getCustomEventVersionDraft", "get", "/v1/events/{event_name}/version_draft", [["event_name", "p", true]]], ["putCustomEventVersionDraft", "put", "/v1/events/{event_name}/version_draft", [["event_name", "p", true]], 1], ["deleteCustomEventVersionDraft", "delete", "/v1/events/{event_name}/version_draft", [["event_name", "p", true]]], ["publishCustomEventVersion", "post", "/v1/events/{event_name}/version_draft:publish", [["event_name", "p", true]], 1], ["getEventJSONSchema", "get", "/v1/events/{event_name}/json_schema", [["event_name", "p", true], ["Epilot-Event-Version", "h"]]], ["getEventExample", "get", "/v1/events/{event_name}/example", [["event_name", "p", true], ["Epilot-Event-Version", "h"]]], ["listEventVersions", "get", "/v1/events/{event_name}/versions", [["event_name", "p", true]]], ["searchEventHistory", "post", "/v1/events/{event_name}:history", [["event_name", "p", true]], 1], ["searchEventHistoryV2", "post", "/v2/events/{event_name}:history", [["event_name", "p", true]], 1], ["getHistoricalEvent", "get", "/v2/events/{event_name}/history/{event_id}", [["event_name", "p", true], ["event_id", "p", true]]], ["triggerEvent", "post", "/v1/events/{event_name}:trigger", [["event_name", "p", true]], 1]], v: "3.0.0" };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
require_event_catalog_runtime
|
|
14
|
+
};
|
|
@@ -35,7 +35,7 @@ var globImport_docs = __glob({
|
|
|
35
35
|
"./docs/ai-agents.json": () => import("./ai-agents-MY4QE4CP.js"),
|
|
36
36
|
"./docs/app.json": () => import("./app-B3TAEVS4.js"),
|
|
37
37
|
"./docs/audit-logs.json": () => import("./audit-logs-5VXHOQ7S.js"),
|
|
38
|
-
"./docs/automation.json": () => import("./automation-
|
|
38
|
+
"./docs/automation.json": () => import("./automation-UPTNUOYO.js"),
|
|
39
39
|
"./docs/billing.json": () => import("./billing-UJ6I7FPG.js"),
|
|
40
40
|
"./docs/blueprint-manifest.json": () => import("./blueprint-manifest-YU2UZLHV.js"),
|
|
41
41
|
"./docs/calendar.json": () => import("./calendar-2H4RGMV3.js"),
|
|
@@ -54,14 +54,14 @@ var globImport_docs = __glob({
|
|
|
54
54
|
"./docs/entity.json": () => import("./entity-UEP5OY55.js"),
|
|
55
55
|
"./docs/environments.json": () => import("./environments-OYCH6VUD.js"),
|
|
56
56
|
"./docs/erp-integration.json": () => import("./erp-integration-SBQJ6HEG.js"),
|
|
57
|
-
"./docs/event-catalog.json": () => import("./event-catalog-
|
|
57
|
+
"./docs/event-catalog.json": () => import("./event-catalog-5HHAS7NI.js"),
|
|
58
58
|
"./docs/file.json": () => import("./file-N3SGGI6E.js"),
|
|
59
59
|
"./docs/iban.json": () => import("./iban-LDKYDVQV.js"),
|
|
60
60
|
"./docs/integration-toolkit.json": () => import("./integration-toolkit-PUA7B6YT.js"),
|
|
61
61
|
"./docs/journey.json": () => import("./journey-IVIBYU5V.js"),
|
|
62
62
|
"./docs/kanban.json": () => import("./kanban-F22JXYCG.js"),
|
|
63
63
|
"./docs/message.json": () => import("./message-SSTVRGEF.js"),
|
|
64
|
-
"./docs/metering.json": () => import("./metering-
|
|
64
|
+
"./docs/metering.json": () => import("./metering-SHNCUA4O.js"),
|
|
65
65
|
"./docs/notes.json": () => import("./notes-6JESMRLW.js"),
|
|
66
66
|
"./docs/notification.json": () => import("./notification-PLIRHBNF.js"),
|
|
67
67
|
"./docs/organization.json": () => import("./organization-ZERPH2IH.js"),
|
|
@@ -148,7 +148,7 @@ var globImport_definitions_json = __glob({
|
|
|
148
148
|
"./definitions/environments.json": () => import("./environments-VCREW73K.js"),
|
|
149
149
|
"./definitions/erp-integration-runtime.json": () => import("./erp-integration-runtime-JGVGQ22V.js"),
|
|
150
150
|
"./definitions/erp-integration.json": () => import("./erp-integration-735KQ73W.js"),
|
|
151
|
-
"./definitions/event-catalog-runtime.json": () => import("./event-catalog-runtime-
|
|
151
|
+
"./definitions/event-catalog-runtime.json": () => import("./event-catalog-runtime-5IXAZVIB.js"),
|
|
152
152
|
"./definitions/event-catalog.json": () => import("./event-catalog-ZUFXLY7B.js"),
|
|
153
153
|
"./definitions/file-runtime.json": () => import("./file-runtime-RS4DX5LB.js"),
|
|
154
154
|
"./definitions/file.json": () => import("./file-EJJBQEQI.js"),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
4
|
+
|
|
5
|
+
// src/definitions/event-catalog-runtime.json
|
|
6
|
+
var require_event_catalog_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
|
+
"src/definitions/event-catalog-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://event-catalog.sls.epilot.io", o: [["listEvents", "get", "/v1/events"], ["createCustomEvent", "post", "/v1/events", null, 1], ["getEvent", "get", "/v1/events/{event_name}", [["event_name", "p", true]]], ["patchEvent", "patch", "/v1/events/{event_name}", [["event_name", "p", true]], 1], ["replaceCustomEventDraft", "put", "/v1/events/{event_name}", [["event_name", "p", true]], 1], ["deprecateCustomEvent", "delete", "/v1/events/{event_name}", [["event_name", "p", true]]], ["previewCustomEvent", "post", "/v1/events/{event_name}:preview", [["event_name", "p", true]], 1], ["publishCustomEventDefinition", "post", "/v1/events/{event_name}:publish", [["event_name", "p", true]], 1], ["getCustomEventVersionDraft", "get", "/v1/events/{event_name}/version_draft", [["event_name", "p", true]]], ["putCustomEventVersionDraft", "put", "/v1/events/{event_name}/version_draft", [["event_name", "p", true]], 1], ["deleteCustomEventVersionDraft", "delete", "/v1/events/{event_name}/version_draft", [["event_name", "p", true]]], ["publishCustomEventVersion", "post", "/v1/events/{event_name}/version_draft:publish", [["event_name", "p", true]], 1], ["getEventJSONSchema", "get", "/v1/events/{event_name}/json_schema", [["event_name", "p", true], ["Epilot-Event-Version", "h"]]], ["getEventExample", "get", "/v1/events/{event_name}/example", [["event_name", "p", true], ["Epilot-Event-Version", "h"]]], ["listEventVersions", "get", "/v1/events/{event_name}/versions", [["event_name", "p", true]]], ["searchEventHistory", "post", "/v1/events/{event_name}:history", [["event_name", "p", true]], 1], ["searchEventHistoryV2", "post", "/v2/events/{event_name}:history", [["event_name", "p", true]], 1], ["getHistoricalEvent", "get", "/v2/events/{event_name}/history/{event_id}", [["event_name", "p", true], ["event_id", "p", true]]], ["triggerEvent", "post", "/v1/events/{event_name}:trigger", [["event_name", "p", true]], 1]], v: "3.0.0" };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.require_event_catalog_runtime = require_event_catalog_runtime;
|
|
@@ -35,7 +35,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
35
35
|
"./docs/ai-agents.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./ai-agents-ME5VRKMY.cjs"))),
|
|
36
36
|
"./docs/app.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./app-C5H6RLZ5.cjs"))),
|
|
37
37
|
"./docs/audit-logs.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./audit-logs-D2LFUA2R.cjs"))),
|
|
38
|
-
"./docs/automation.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./automation-
|
|
38
|
+
"./docs/automation.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./automation-G2CKAQNB.cjs"))),
|
|
39
39
|
"./docs/billing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./billing-CKCFSK6K.cjs"))),
|
|
40
40
|
"./docs/blueprint-manifest.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./blueprint-manifest-SXG3M6B4.cjs"))),
|
|
41
41
|
"./docs/calendar.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./calendar-UADWQX7G.cjs"))),
|
|
@@ -54,14 +54,14 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
54
54
|
"./docs/entity.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./entity-3XUHHKA4.cjs"))),
|
|
55
55
|
"./docs/environments.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./environments-S3O6ASTY.cjs"))),
|
|
56
56
|
"./docs/erp-integration.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./erp-integration-PAVHSUDM.cjs"))),
|
|
57
|
-
"./docs/event-catalog.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-
|
|
57
|
+
"./docs/event-catalog.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-SAH4ZEOO.cjs"))),
|
|
58
58
|
"./docs/file.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-2KT6MMMG.cjs"))),
|
|
59
59
|
"./docs/iban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./iban-24GHLFDB.cjs"))),
|
|
60
60
|
"./docs/integration-toolkit.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./integration-toolkit-FM53LFD7.cjs"))),
|
|
61
61
|
"./docs/journey.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-ZN46FFPM.cjs"))),
|
|
62
62
|
"./docs/kanban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./kanban-FSATKIGH.cjs"))),
|
|
63
63
|
"./docs/message.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./message-LJ32JH6Z.cjs"))),
|
|
64
|
-
"./docs/metering.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./metering-
|
|
64
|
+
"./docs/metering.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./metering-WAVFLJZD.cjs"))),
|
|
65
65
|
"./docs/notes.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./notes-SLEUSNP4.cjs"))),
|
|
66
66
|
"./docs/notification.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./notification-R2XBHFEW.cjs"))),
|
|
67
67
|
"./docs/organization.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./organization-RARYYG2E.cjs"))),
|
|
@@ -148,7 +148,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
148
148
|
"./definitions/environments.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./environments-5IS2ZJYQ.cjs"))),
|
|
149
149
|
"./definitions/erp-integration-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./erp-integration-runtime-OZ4YSTQX.cjs"))),
|
|
150
150
|
"./definitions/erp-integration.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./erp-integration-W7FZDJOB.cjs"))),
|
|
151
|
-
"./definitions/event-catalog-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-runtime-
|
|
151
|
+
"./definitions/event-catalog-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-runtime-2ACQMB22.cjs"))),
|
|
152
152
|
"./definitions/event-catalog.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-MZYFJ23V.cjs"))),
|
|
153
153
|
"./definitions/file-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-runtime-JL2IZ2CE.cjs"))),
|
|
154
154
|
"./definitions/file.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-637CTR4Y.cjs"))),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./chunk-YPSWSI3M.js";
|
|
2
|
+
|
|
3
|
+
// src/docs/event-catalog.json
|
|
4
|
+
var event_catalog_default = '# Event Catalog API\n\n- **Base URL:** `https://event-catalog.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/event-catalog](https://docs.epilot.io/api/event-catalog)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.eventCatalog.listEvents(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/event-catalog\'\n\nconst eventCatalogClient = getClient()\nauthorize(eventCatalogClient, () => \'<token>\')\nconst { data } = await eventCatalogClient.listEvents(...)\n```\n\n## Operations\n\n**Event Catalog**\n- [`listEvents`](#listevents)\n- [`createCustomEvent`](#createcustomevent)\n- [`getEvent`](#getevent)\n- [`patchEvent`](#patchevent)\n- [`replaceCustomEventDraft`](#replacecustomeventdraft)\n- [`deprecateCustomEvent`](#deprecatecustomevent)\n- [`previewCustomEvent`](#previewcustomevent)\n- [`publishCustomEventDefinition`](#publishcustomeventdefinition)\n- [`getCustomEventVersionDraft`](#getcustomeventversiondraft)\n- [`putCustomEventVersionDraft`](#putcustomeventversiondraft)\n- [`deleteCustomEventVersionDraft`](#deletecustomeventversiondraft)\n- [`publishCustomEventVersion`](#publishcustomeventversion)\n- [`getEventJSONSchema`](#geteventjsonschema)\n- [`getEventExample`](#geteventexample)\n- [`listEventVersions`](#listeventversions)\n- [`searchEventHistory`](#searcheventhistory)\n- [`searchEventHistoryV2`](#searcheventhistoryv2)\n- [`getHistoricalEvent`](#gethistoricalevent)\n- [`triggerEvent`](#triggerevent)\n\n**Schemas**\n- [`EventConfigBase`](#eventconfigbase)\n- [`EventConfig`](#eventconfig)\n- [`CreateCustomEventPayload`](#createcustomeventpayload)\n- [`EventMapping`](#eventmapping)\n- [`CustomEventLineage`](#customeventlineage)\n- [`PurposeFilterSnapshot`](#purposefiltersnapshot)\n- [`PublishCustomEventPayload`](#publishcustomeventpayload)\n- [`CustomEventVersionDraft`](#customeventversiondraft)\n- [`PublishCustomEventVersionPayload`](#publishcustomeventversionpayload)\n- [`ValidationIssue`](#validationissue)\n- [`PreviewEventResponse`](#previeweventresponse)\n- [`UpdateEventPayload`](#updateeventpayload)\n- [`PrimitiveField`](#primitivefield)\n- [`ContextEntity`](#contextentity)\n- [`AttachmentField`](#attachmentfield)\n- [`CustomSchemaField`](#customschemafield)\n- [`SchemaField`](#schemafield)\n- [`SuccessCriterion`](#successcriterion)\n- [`CommonEventMetadata`](#commoneventmetadata)\n- [`EventJsonSchema`](#eventjsonschema)\n- [`InlineDowngradeStep`](#inlinedowngradestep)\n- [`Event`](#event)\n- [`EventSummary`](#eventsummary)\n- [`GraphDefinition`](#graphdefinition)\n- [`GraphNode`](#graphnode)\n- [`GraphEdge`](#graphedge)\n- [`EntityOperationTrigger`](#entityoperationtrigger)\n- [`SearchOptions`](#searchoptions)\n- [`SearchOptionsV2`](#searchoptionsv2)\n- [`FieldsParam`](#fieldsparam)\n- [`TriggerEventPayload`](#triggereventpayload)\n- [`TriggerEventResponse`](#triggereventresponse)\n- [`EventAttachment`](#eventattachment)\n- [`FieldChange`](#fieldchange)\n- [`VersionMeta`](#versionmeta)\n- [`EventVersionRegistrySummary`](#eventversionregistrysummary)\n\n### `listEvents`\n\nRetrieve list of available business events\n\n`GET /v1/events`\n\n```ts\nconst { data } = await client.listEvents()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "event_name": "AddMeterReading",\n "event_title": "Add Meter Reading",\n "event_description": "Triggered when a new meter reading is added",\n "event_version": "1.0",\n "event_status": "active",\n "event_tags": ["builtin", "metering", "erp"],\n "schema_fields": {},\n "entity_graph": {\n "nodes": [\n {\n "id": "contact",\n "schema": "contact",\n "cardinality": "one",\n "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]\n }\n ],\n "edges": [\n {\n "from": "contact",\n "to": "billing_account"\n }\n ]\n },\n "entity_operation": {\n "operation": ["createEntity", "updateEntity"],\n "schema": ["contact", "contract", "order"],\n "attribute": ["email", "phone", "status"],\n "purpose": ["K\xFCndigung", "Umzug/Auszug"],\n "purpose_filters": [\n {\n "id": "string",\n "display_name": "string"\n }\n ]\n },\n "enabled": true,\n "auto_trigger": true,\n "automation_trigger": true,\n "api_trigger": true,\n "automation_trigger_only": true,\n "automation_trigger_seed_node": "ticket",\n "event_origin": "builtin",\n "mapping": {\n "mode": "guided",\n "jsonata": "string"\n },\n "lineage": {\n "base_event_name": "string",\n "base_event_version": "string"\n },\n "success_criteria": [\n {\n "entity_schema": "contract",\n "attribute": "installment_amount"\n },\n {\n "entity_schema": "billing_account",\n "attribute": "due_date"\n }\n ]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `createCustomEvent`\n\nReserve an org-scoped custom event name and persist its immutable v1.0 draft definition. Custom events are always projected from an entity graph: entity_graph is required and, in guided mapping mode, \n\n`POST /v1/events`\n\n```ts\nconst { data } = await client.createCustomEvent(\n null,\n {\n event_name: \'string\',\n event_title: \'string\',\n event_description: \'string\',\n event_tags: [\'string\'],\n schema_fields: {},\n entity_graph: {\n nodes: [\n {\n id: \'contact\',\n schema: \'contact\',\n cardinality: \'one\',\n fields: [\'_id\', \'_title\', \'first_name\', \'account\', \'!account.*._files\', \'**._product\']\n }\n ],\n edges: [\n {\n from: \'contact\',\n to: \'billing_account\'\n }\n ]\n },\n entity_operation: {\n operation: [\'createEntity\', \'updateEntity\'],\n schema: [\'contact\', \'contract\', \'order\'],\n attribute: [\'email\', \'phone\', \'status\'],\n purpose: [\'K\xFCndigung\', \'Umzug/Auszug\'],\n purpose_filters: [\n {\n id: \'string\',\n display_name: \'string\'\n }\n ]\n },\n automation_trigger: true,\n api_trigger: true,\n automation_trigger_only: false,\n automation_trigger_seed_node: \'string\',\n mapping: {\n mode: \'guided\',\n jsonata: \'string\'\n },\n lineage: {\n base_event_name: \'string\',\n base_event_version: \'string\'\n },\n example: {}\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "event_name": "AddMeterReading",\n "event_title": "Add Meter Reading",\n "event_description": "Triggered when a new meter reading is added",\n "event_version": "1.0",\n "event_status": "active",\n "event_tags": ["builtin", "metering", "erp"],\n "schema_fields": {},\n "entity_graph": {\n "nodes": [\n {\n "id": "contact",\n "schema": "contact",\n "cardinality": "one",\n "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]\n }\n ],\n "edges": [\n {\n "from": "contact",\n "to": "billing_account"\n }\n ]\n },\n "entity_operation": {\n "operation": ["createEntity", "updateEntity"],\n "schema": ["contact", "contract", "order"],\n "attribute": ["email", "phone", "status"],\n "purpose": ["K\xFCndigung", "Umzug/Auszug"],\n "purpose_filters": [\n {\n "id": "string",\n "display_name": "string"\n }\n ]\n },\n "enabled": true,\n "auto_trigger": true,\n "automation_trigger": true,\n "api_trigger": true,\n "automation_trigger_only": true,\n "automation_trigger_seed_node": "ticket",\n "event_origin": "builtin",\n "mapping": {\n "mode": "guided",\n "jsonata": "string"\n },\n "lineage": {\n "base_event_name": "string",\n "base_event_version": "string"\n },\n "success_criteria": [\n {\n "entity_schema": "contract",\n "attribute": "installment_amount"\n },\n {\n "entity_schema": "billing_account",\n "attribute": "due_date"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getEvent`\n\nRetrieve the configuration of a specific business event\n\n`GET /v1/events/{event_name}`\n\n```ts\nconst { data } = await client.getEvent({\n event_name: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "event_name": "AddMeterReading",\n "event_title": "Add Meter Reading",\n "event_description": "Triggered when a new meter reading is added",\n "event_version": "1.0",\n "event_status": "active",\n "event_tags": ["builtin", "metering", "erp"],\n "schema_fields": {},\n "entity_graph": {\n "nodes": [\n {\n "id": "contact",\n "schema": "contact",\n "cardinality": "one",\n "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]\n }\n ],\n "edges": [\n {\n "from": "contact",\n "to": "billing_account"\n }\n ]\n },\n "entity_operation": {\n "operation": ["createEntity", "updateEntity"],\n "schema": ["contact", "contract", "order"],\n "attribute": ["email", "phone", "status"],\n "purpose": ["K\xFCndigung", "Umzug/Auszug"],\n "purpose_filters": [\n {\n "id": "string",\n "display_name": "string"\n }\n ]\n },\n "enabled": true,\n "auto_trigger": true,\n "automation_trigger": true,\n "api_trigger": true,\n "automation_trigger_only": true,\n "automation_trigger_seed_node": "ticket",\n "event_origin": "builtin",\n "mapping": {\n "mode": "guided",\n "jsonata": "string"\n },\n "lineage": {\n "base_event_name": "string",\n "base_event_version": "string"\n },\n "success_criteria": [\n {\n "entity_schema": "contract",\n "attribute": "installment_amount"\n },\n {\n "entity_schema": "billing_account",\n "attribute": "due_date"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `patchEvent`\n\nUpdate the configuration of a specific business event for the organization\n\n`PATCH /v1/events/{event_name}`\n\n```ts\nconst { data } = await client.patchEvent(\n {\n event_name: \'example\',\n },\n {\n enabled: true,\n auto_trigger: true,\n success_criteria: [\n {\n entity_schema: \'contract\',\n attribute: \'installment_amount\'\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "event_name": "AddMeterReading",\n "event_title": "Add Meter Reading",\n "event_description": "Triggered when a new meter reading is added",\n "event_version": "1.0",\n "event_status": "active",\n "event_tags": ["builtin", "metering", "erp"],\n "schema_fields": {},\n "entity_graph": {\n "nodes": [\n {\n "id": "contact",\n "schema": "contact",\n "cardinality": "one",\n "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]\n }\n ],\n "edges": [\n {\n "from": "contact",\n "to": "billing_account"\n }\n ]\n },\n "entity_operation": {\n "operation": ["createEntity", "updateEntity"],\n "schema": ["contact", "contract", "order"],\n "attribute": ["email", "phone", "status"],\n "purpose": ["K\xFCndigung", "Umzug/Auszug"],\n "purpose_filters": [\n {\n "id": "string",\n "display_name": "string"\n }\n ]\n },\n "enabled": true,\n "auto_trigger": true,\n "automation_trigger": true,\n "api_trigger": true,\n "automation_trigger_only": true,\n "automation_trigger_seed_node": "ticket",\n "event_origin": "builtin",\n "mapping": {\n "mode": "guided",\n "jsonata": "string"\n },\n "lineage": {\n "base_event_name": "string",\n "base_event_version": "string"\n },\n "success_criteria": [\n {\n "entity_schema": "contract",\n "attribute": "installment_amount"\n },\n {\n "entity_schema": "billing_account",\n "attribute": "due_date"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `replaceCustomEventDraft`\n\nReplace the complete v1.0 definition of an org-scoped custom event while it is still an\nunpublished draft. Drafts have no consumers, so their definition is not yet immutable;\nthe event name is the ide\n\n`PUT /v1/events/{event_name}`\n\n```ts\nconst { data } = await client.replaceCustomEventDraft(\n {\n event_name: \'example\',\n },\n {\n event_name: \'string\',\n event_title: \'string\',\n event_description: \'string\',\n event_tags: [\'string\'],\n schema_fields: {},\n entity_graph: {\n nodes: [\n {\n id: \'contact\',\n schema: \'contact\',\n cardinality: \'one\',\n fields: [\'_id\', \'_title\', \'first_name\', \'account\', \'!account.*._files\', \'**._product\']\n }\n ],\n edges: [\n {\n from: \'contact\',\n to: \'billing_account\'\n }\n ]\n },\n entity_operation: {\n operation: [\'createEntity\', \'updateEntity\'],\n schema: [\'contact\', \'contract\', \'order\'],\n attribute: [\'email\', \'phone\', \'status\'],\n purpose: [\'K\xFCndigung\', \'Umzug/Auszug\'],\n purpose_filters: [\n {\n id: \'string\',\n display_name: \'string\'\n }\n ]\n },\n automation_trigger: true,\n api_trigger: true,\n automation_trigger_only: false,\n automation_trigger_seed_node: \'string\',\n mapping: {\n mode: \'guided\',\n jsonata: \'string\'\n },\n lineage: {\n base_event_name: \'string\',\n base_event_version: \'string\'\n },\n example: {}\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "event_name": "AddMeterReading",\n "event_title": "Add Meter Reading",\n "event_description": "Triggered when a new meter reading is added",\n "event_version": "1.0",\n "event_status": "active",\n "event_tags": ["builtin", "metering", "erp"],\n "schema_fields": {},\n "entity_graph": {\n "nodes": [\n {\n "id": "contact",\n "schema": "contact",\n "cardinality": "one",\n "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]\n }\n ],\n "edges": [\n {\n "from": "contact",\n "to": "billing_account"\n }\n ]\n },\n "entity_operation": {\n "operation": ["createEntity", "updateEntity"],\n "schema": ["contact", "contract", "order"],\n "attribute": ["email", "phone", "status"],\n "purpose": ["K\xFCndigung", "Umzug/Auszug"],\n "purpose_filters": [\n {\n "id": "string",\n "display_name": "string"\n }\n ]\n },\n "enabled": true,\n "auto_trigger": true,\n "automation_trigger": true,\n "api_trigger": true,\n "automation_trigger_only": true,\n "automation_trigger_seed_node": "ticket",\n "event_origin": "builtin",\n "mapping": {\n "mode": "guided",\n "jsonata": "string"\n },\n "lineage": {\n "base_event_name": "string",\n "base_event_version": "string"\n },\n "success_criteria": [\n {\n "entity_schema": "contract",\n "attribute": "installment_amount"\n },\n {\n "entity_schema": "billing_account",\n "attribute": "due_date"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `deprecateCustomEvent`\n\nSoft-deprecate an org-scoped custom event. Definitions and v1.0 history remain readable.\n\n`DELETE /v1/events/{event_name}`\n\n```ts\nconst { data } = await client.deprecateCustomEvent({\n event_name: \'example\',\n})\n```\n\n---\n\n### `previewCustomEvent`\n\nAssemble and fully validate a persisted custom-event draft without publishing it.\n\n`POST /v1/events/{event_name}:preview`\n\n```ts\nconst { data } = await client.previewCustomEvent(\n {\n event_name: \'example\',\n },\n {\n seed: {\n entity_id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n node_id: \'ticket\'\n },\n _trigger_source_type: \'automation\',\n _trigger_source: \'execution-id/action-id\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "payload": {},\n "errors": [\n {\n "path": "string",\n "message": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `publishCustomEventDefinition`\n\nConditionally activate an immutable custom-event v1.0 definition.\n\n`POST /v1/events/{event_name}:publish`\n\n```ts\nconst { data } = await client.publishCustomEventDefinition(\n {\n event_name: \'example\',\n },\n {\n enabled: true,\n auto_trigger: true,\n base_auto_trigger_enabled: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "event_name": "AddMeterReading",\n "event_title": "Add Meter Reading",\n "event_description": "Triggered when a new meter reading is added",\n "event_version": "1.0",\n "event_status": "active",\n "event_tags": ["builtin", "metering", "erp"],\n "schema_fields": {},\n "entity_graph": {\n "nodes": [\n {\n "id": "contact",\n "schema": "contact",\n "cardinality": "one",\n "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]\n }\n ],\n "edges": [\n {\n "from": "contact",\n "to": "billing_account"\n }\n ]\n },\n "entity_operation": {\n "operation": ["createEntity", "updateEntity"],\n "schema": ["contact", "contract", "order"],\n "attribute": ["email", "phone", "status"],\n "purpose": ["K\xFCndigung", "Umzug/Auszug"],\n "purpose_filters": [\n {\n "id": "string",\n "display_name": "string"\n }\n ]\n },\n "enabled": true,\n "auto_trigger": true,\n "automation_trigger": true,\n "api_trigger": true,\n "automation_trigger_only": true,\n "automation_trigger_seed_node": "ticket",\n "event_origin": "builtin",\n "mapping": {\n "mode": "guided",\n "jsonata": "string"\n },\n "lineage": {\n "base_event_name": "string",\n "base_event_version": "string"\n },\n "success_criteria": [\n {\n "entity_schema": "contract",\n "attribute": "installment_amount"\n },\n {\n "entity_schema": "billing_account",\n "attribute": "due_date"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getCustomEventVersionDraft`\n\nRead the in-progress successor of a published custom event, together with the version it\nwould be published as. The live version keeps firing while the successor is authored.\n\n`GET /v1/events/{event_name}/version_draft`\n\n```ts\nconst { data } = await client.getCustomEventVersionDraft({\n event_name: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "config": {\n "event_name": "AddMeterReading",\n "event_title": "Add Meter Reading",\n "event_description": "Triggered when a new meter reading is added",\n "event_version": "1.0",\n "event_status": "active",\n "event_tags": ["builtin", "metering", "erp"],\n "schema_fields": {},\n "entity_graph": {\n "nodes": [\n {\n "id": "contact",\n "schema": "contact",\n "cardinality": "one",\n "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]\n }\n ],\n "edges": [\n {\n "from": "contact",\n "to": "billing_account"\n }\n ]\n },\n "entity_operation": {\n "operation": ["createEntity", "updateEntity"],\n "schema": ["contact", "contract", "order"],\n "attribute": ["email", "phone", "status"],\n "purpose": ["K\xFCndigung", "Umzug/Auszug"],\n "purpose_filters": [\n {\n "id": "string",\n "display_name": "string"\n }\n ]\n },\n "enabled": true,\n "auto_trigger": true,\n "automation_trigger": true,\n "api_trigger": true,\n "automation_trigger_only": true,\n "automation_trigger_seed_node": "ticket",\n "event_origin": "builtin",\n "mapping": {\n "mode": "guided",\n "jsonata": "string"\n },\n "lineage": {\n "base_event_name": "string",\n "base_event_version": "string"\n },\n "success_criteria": [\n {\n "entity_schema": "contract",\n "attribute": "installment_amount"\n },\n {\n "entity_schema": "billing_account",\n "attribute": "due_date"\n }\n ]\n },\n "change_class": "none",\n "next_version": "1.1",\n "changes": [\n {\n "field": "reading",\n "op": "added",\n "type_old": "string",\n "type_new": "string"\n }\n ],\n "remapped_fields": ["string"],\n "added_nodes": ["string"],\n "blocked_reason": "string"\n}\n```\n\n</details>\n\n---\n\n### `putCustomEventVersionDraft`\n\nCreate or replace the successor of a published custom event. The published definition stays\nimmutable and keeps firing; only publishing the draft promotes it.\n\n`PUT /v1/events/{event_name}/version_draft`\n\n```ts\nconst { data } = await client.putCustomEventVersionDraft(\n {\n event_name: \'example\',\n },\n {\n event_name: \'string\',\n event_title: \'string\',\n event_description: \'string\',\n event_tags: [\'string\'],\n schema_fields: {},\n entity_graph: {\n nodes: [\n {\n id: \'contact\',\n schema: \'contact\',\n cardinality: \'one\',\n fields: [\'_id\', \'_title\', \'first_name\', \'account\', \'!account.*._files\', \'**._product\']\n }\n ],\n edges: [\n {\n from: \'contact\',\n to: \'billing_account\'\n }\n ]\n },\n entity_operation: {\n operation: [\'createEntity\', \'updateEntity\'],\n schema: [\'contact\', \'contract\', \'order\'],\n attribute: [\'email\', \'phone\', \'status\'],\n purpose: [\'K\xFCndigung\', \'Umzug/Auszug\'],\n purpose_filters: [\n {\n id: \'string\',\n display_name: \'string\'\n }\n ]\n },\n automation_trigger: true,\n api_trigger: true,\n automation_trigger_only: false,\n automation_trigger_seed_node: \'string\',\n mapping: {\n mode: \'guided\',\n jsonata: \'string\'\n },\n lineage: {\n base_event_name: \'string\',\n base_event_version: \'string\'\n },\n example: {}\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "config": {\n "event_name": "AddMeterReading",\n "event_title": "Add Meter Reading",\n "event_description": "Triggered when a new meter reading is added",\n "event_version": "1.0",\n "event_status": "active",\n "event_tags": ["builtin", "metering", "erp"],\n "schema_fields": {},\n "entity_graph": {\n "nodes": [\n {\n "id": "contact",\n "schema": "contact",\n "cardinality": "one",\n "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]\n }\n ],\n "edges": [\n {\n "from": "contact",\n "to": "billing_account"\n }\n ]\n },\n "entity_operation": {\n "operation": ["createEntity", "updateEntity"],\n "schema": ["contact", "contract", "order"],\n "attribute": ["email", "phone", "status"],\n "purpose": ["K\xFCndigung", "Umzug/Auszug"],\n "purpose_filters": [\n {\n "id": "string",\n "display_name": "string"\n }\n ]\n },\n "enabled": true,\n "auto_trigger": true,\n "automation_trigger": true,\n "api_trigger": true,\n "automation_trigger_only": true,\n "automation_trigger_seed_node": "ticket",\n "event_origin": "builtin",\n "mapping": {\n "mode": "guided",\n "jsonata": "string"\n },\n "lineage": {\n "base_event_name": "string",\n "base_event_version": "string"\n },\n "success_criteria": [\n {\n "entity_schema": "contract",\n "attribute": "installment_amount"\n },\n {\n "entity_schema": "billing_account",\n "attribute": "due_date"\n }\n ]\n },\n "change_class": "none",\n "next_version": "1.1",\n "changes": [\n {\n "field": "reading",\n "op": "added",\n "type_old": "string",\n "type_new": "string"\n }\n ],\n "remapped_fields": ["string"],\n "added_nodes": ["string"],\n "blocked_reason": "string"\n}\n```\n\n</details>\n\n---\n\n### `deleteCustomEventVersionDraft`\n\nDiscard the next-version draft. The published version is untouched.\n\n`DELETE /v1/events/{event_name}/version_draft`\n\n```ts\nconst { data } = await client.deleteCustomEventVersionDraft({\n event_name: \'example\',\n})\n```\n\n---\n\n### `publishCustomEventVersion`\n\nPublish the next-version draft as the event\'s new live version.\n\n`POST /v1/events/{event_name}/version_draft:publish`\n\n```ts\nconst { data } = await client.publishCustomEventVersion(\n {\n event_name: \'example\',\n },\n {\n change_summary: \'string\',\n change_notes: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "event_name": "AddMeterReading",\n "event_title": "Add Meter Reading",\n "event_description": "Triggered when a new meter reading is added",\n "event_version": "1.0",\n "event_status": "active",\n "event_tags": ["builtin", "metering", "erp"],\n "schema_fields": {},\n "entity_graph": {\n "nodes": [\n {\n "id": "contact",\n "schema": "contact",\n "cardinality": "one",\n "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]\n }\n ],\n "edges": [\n {\n "from": "contact",\n "to": "billing_account"\n }\n ]\n },\n "entity_operation": {\n "operation": ["createEntity", "updateEntity"],\n "schema": ["contact", "contract", "order"],\n "attribute": ["email", "phone", "status"],\n "purpose": ["K\xFCndigung", "Umzug/Auszug"],\n "purpose_filters": [\n {\n "id": "string",\n "display_name": "string"\n }\n ]\n },\n "enabled": true,\n "auto_trigger": true,\n "automation_trigger": true,\n "api_trigger": true,\n "automation_trigger_only": true,\n "automation_trigger_seed_node": "ticket",\n "event_origin": "builtin",\n "mapping": {\n "mode": "guided",\n "jsonata": "string"\n },\n "lineage": {\n "base_event_name": "string",\n "base_event_version": "string"\n },\n "success_criteria": [\n {\n "entity_schema": "contract",\n "attribute": "installment_amount"\n },\n {\n "entity_schema": "billing_account",\n "attribute": "due_date"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getEventJSONSchema`\n\nRetrieve the JSON Schema of a specific business event. Pass an optional\n`Epilot-Event-Version` header to retrieve a specific version\'s schema;\nwhen omitted, the event\'s latest version is returned.\n\n`GET /v1/events/{event_name}/json_schema`\n\n```ts\nconst { data } = await client.getEventJSONSchema({\n event_name: \'example\',\n Epilot-Event-Version: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "object",\n "properties": {\n "_org_id": {\n "type": "string",\n "description": "epilot tenant/organization ID"\n },\n "_event_time": {\n "type": "string",\n "format": "date-time",\n "description": "ISO 8601 timestamp when event occurred"\n },\n "_event_id": {\n "type": "string",\n "description": "Unique event identifier (ULID)"\n },\n "_event_name": {\n "type": "string",\n "description": "Event name from catalog"\n },\n "_event_version": {\n "type": "string",\n "description": "Event payload version (MAJOR.MINOR)"\n },\n "_event_source": {\n "type": "string",\n "description": "Source that triggered the event"\n },\n "reading_value": {\n "type": "number",\n "description": "The meter reading value"\n },\n "reading_date": {\n "type": "string",\n "format": "date-time",\n "description": "ISO 8601 timestamp when reading was taken"\n },\n "read_by": {\n "type": "string",\n "description": "Name or identifier of who submitted the reading"\n },\n "reason": {\n "type": "string",\n "enum": ["regular", "move-in", "move-out", "supplier-change", "correction", "final"],\n "description": "Reason for the meter reading"\n },\n "direction": {\n "type": "string",\n "enum": ["feed-in", "feed-out"],\n "description": "Direction of energy flow"\n },\n "source": {\n "type": "string",\n "enum": ["portal", "360", "api", "automation"],\n "description": "Source system where reading was submitted"\n },\n "meter_id": {\n "type": "string",\n "format": "uuid",\n "description": "Entity ID of the meter"\n },\n "counter_id": {\n "type": "string",\n "format": "uuid",\n "description": "Entity ID of the meter counter"\n },\n "meter_number": {\n "type": "string",\n "description": "Human-readable meter number"\n },\n "obis_number": {\n "type": "string",\n "description": "OBIS code of the counter"\n },\n "unit": {\n "type": "string",\n "description": "Unit of measurement (e.g., kWh, m3)"\n },\n "customer_id": {\n "type": "string",\n "format": "uuid",\n "description": "Entity ID of the customer"\n },\n "contract_id": {\n "type": "string",\n "format": "uuid",\n "description": "Entity ID of the contract"\n },\n "user_id": {\n "type": "string",\n "description": "ID of the user who submitted the reading"\n },\n "user_email": {\n "type": "string",\n "format": "email",\n "description": "Email of the user who submitted the reading"\n }\n },\n "required": ["_org_id", "_event_time", "_event_id", "_event_name", "_event_version", "_event_source", "reading_value", "reading_date", "read_by", "reason", "direction", "source", "meter_id", "counter_id", "meter_number", "obis_number", "unit", "customer_id", "contract_id"]\n}\n```\n\n</details>\n\n---\n\n### `getEventExample`\n\nGenerate a sample event payload based on the event\'s JSON Schema. Pass an\noptional `Epilot-Event-Version` header to generate the example for a\nspecific version; when omitted, the event\'s latest versio\n\n`GET /v1/events/{event_name}/example`\n\n```ts\nconst { data } = await client.getEventExample({\n event_name: \'example\',\n Epilot-Event-Version: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{}\n```\n\n</details>\n\n---\n\n### `listEventVersions`\n\nList every known version of an event, along with the `latest`\nand the set of currently `active` versions. See \xA73.2 of the\nEvent Payload Versioning RFC.\n\n`GET /v1/events/{event_name}/versions`\n\n```ts\nconst { data } = await client.listEventVersions({\n event_name: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "event_name": "MeterReadingAdded",\n "latest": "1.0",\n "versions": [\n {\n "version": "1.0",\n "released_at": "2025-11-15",\n "change_summary": "string",\n "change_notes": "string",\n "changes": [\n {\n "field": "reading",\n "op": "added",\n "type_old": "string",\n "type_new": "string"\n }\n ]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `searchEventHistory`\n\nPaginated history of events\n\n`POST /v1/events/{event_name}:history`\n\n```ts\nconst { data } = await client.searchEventHistory(\n {\n event_name: \'example\',\n },\n {\n limit: 10,\n cursor: {\n event_time: \'2025-10-31 12:34:56\',\n event_id: \'evt_1234567890abcdef\'\n },\n timestamp: {\n from: \'2025-10-01T00:00:00Z\',\n to: \'2025-10-31T23:59:59Z\'\n },\n event_id: \'evt_1234567890abcdef\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "_org_id": "org_123456",\n "_event_time": "2024-01-01T12:00:00Z",\n "_event_id": "01FZ4Z5FZ5FZ5FZ5FZ5FZ5FZ5F",\n "_event_name": "MeterReading",\n "_event_version": "1.0",\n "_event_source": "api",\n "_trigger_source_type": "api",\n "_trigger_source": "user_123456",\n "reading_value": 123.45,\n "reading_date": "2024-01-01T11:59:00Z",\n "read_by": "John Doe",\n "reason": "regular",\n "direction": "feed-out",\n "source": "portal",\n "meter_id": "550e8400-e29b-41d4-a716-446655440000",\n "counter_id": "660e8400-e29b-41d4-a716-446655440000",\n "meter_number": "MT123456789",\n "obis_number": "1-0:1.8.0",\n "unit": "kWh",\n "customer_id": "770e8400-e29b-41d4-a716-446655440000",\n "contract_id": "880e8400-e29b-41d4-a716-446655440000"\n }\n ],\n "next_cursor": {\n "event_time": "2025-10-31T12:34:56Z",\n "event_id": "evt_1234567890abcdef"\n }\n}\n```\n\n</details>\n\n---\n\n### `searchEventHistoryV2`\n\nPaginated history of events with projected/lightweight payload (v2).\n\n`POST /v2/events/{event_name}:history`\n\n```ts\nconst { data } = await client.searchEventHistoryV2(\n {\n event_name: \'example\',\n },\n {\n limit: 10,\n cursor: {\n event_time: \'2025-10-31 12:34:56\',\n event_id: \'evt_1234567890abcdef\'\n },\n timestamp: {\n from: \'2025-10-01T00:00:00Z\',\n to: \'2025-10-31T23:59:59Z\'\n },\n event_id: \'evt_1234567890abcdef\',\n fields: [\'_id\', \'_title\', \'first_name\', \'account\', \'!account.*._files\', \'**._product\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "_org_id": "string",\n "_event_time": "1970-01-01T00:00:00.000Z",\n "_event_id": "string",\n "_event_name": "string",\n "_event_version": "1.0",\n "_event_source": "string",\n "_trigger_source_type": "api",\n "_trigger_source": "string",\n "_ack_id": "string"\n }\n ],\n "next_cursor": {\n "event_time": "2025-10-31T12:34:56Z",\n "event_id": "evt_1234567890abcdef"\n }\n}\n```\n\n</details>\n\n---\n\n### `getHistoricalEvent`\n\nFetch a single historical event by id with full hydration\n\n`GET /v2/events/{event_name}/history/{event_id}`\n\n```ts\nconst { data } = await client.getHistoricalEvent({\n event_name: \'example\',\n event_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "_org_id": "org_123456",\n "_event_time": "2024-01-01T12:00:00Z",\n "_event_id": "01FZ4Z5FZ5FZ5FZ5FZ5FZ5FZ5F",\n "_event_name": "MeterReading",\n "_event_version": "1.0",\n "_event_source": "api",\n "_trigger_source_type": "api",\n "_trigger_source": "user_123456",\n "reading_value": 123.45,\n "reading_date": "2024-01-01T11:59:00Z",\n "read_by": "John Doe",\n "reason": "regular",\n "direction": "feed-out",\n "source": "portal",\n "meter_id": "550e8400-e29b-41d4-a716-446655440000",\n "counter_id": "660e8400-e29b-41d4-a716-446655440000",\n "meter_number": "MT123456789",\n "obis_number": "1-0:1.8.0",\n "unit": "kWh",\n "customer_id": "770e8400-e29b-41d4-a716-446655440000",\n "contract_id": "880e8400-e29b-41d4-a716-446655440000"\n}\n```\n\n</details>\n\n---\n\n### `triggerEvent`\n\nExplicitly trigger an event by providing input field values and an optional entity seed\nfor graph hydration. The event must be enabled for the organization.\n\n`POST /v1/events/{event_name}:trigger`\n\n```ts\nconst { data } = await client.triggerEvent(\n {\n event_name: \'example\',\n },\n {\n seed: {\n entity_id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n node_id: \'ticket\'\n },\n _trigger_source_type: \'automation\',\n _trigger_source: \'execution-id/action-id\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "success": true,\n "event_id": "string",\n "event_bridge_event_id": "string"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `EventConfigBase`\n\nBase properties shared between EventConfig and UpdateEventPayload\n\n```ts\ntype EventConfigBase = {\n event_name?: string\n event_title?: string\n event_description?: string\n event_version?: string\n event_status?: "active" | "deprecated" | "draft" | "disabled"\n event_tags?: string[]\n schema_fields?: Record<string, {\n json_schema: object\n required?: boolean\n graph_source?: string\n } | {\n entity_schema: string\n required?: boolean\n } | {\n items: {\n entity_id: { ... }\n filename?: { ... }\n mime_type?: { ... }\n size_bytes?: { ... }\n s3ref?: { ... }\n version_index: { ... }\n readable_size?: { ... }\n }\n required?: boolean\n }>\n entity_graph?: {\n nodes: Array<{\n id: { ... }\n schema: { ... }\n cardinality?: { ... }\n fields?: { ... }\n }>\n edges: Array<{\n from: { ... }\n to: { ... }\n }>\n }\n entity_operation?: {\n operation: "createEntity" | "updateEntity" | "deleteEntity"[]\n schema: string[]\n attribute?: string[]\n purpose?: string[]\n purpose_filters?: Array<{\n id: { ... }\n display_name: { ... }\n }>\n }\n enabled?: boolean\n auto_trigger?: boolean\n automation_trigger?: boolean\n api_trigger?: boolean\n automation_trigger_only?: boolean\n automation_trigger_seed_node?: string\n event_origin?: "builtin" | "custom"\n mapping?: {\n mode: "guided" | "jsonata"\n jsonata?: string\n }\n lineage?: {\n base_event_name: string\n base_event_version: string\n }\n success_criteria?: Array<{\n entity_schema: string\n attribute: string\n }>\n}\n```\n\n### `EventConfig`\n\nEvent configuration with required fields\n\n```ts\ntype EventConfig = {\n event_name: string\n event_title?: string\n event_description?: string\n event_version: string\n event_status?: "active" | "deprecated" | "draft" | "disabled"\n event_tags?: string[]\n schema_fields: Record<string, {\n json_schema: object\n required?: boolean\n graph_source?: string\n } | {\n entity_schema: string\n required?: boolean\n } | {\n items: {\n entity_id: { ... }\n filename?: { ... }\n mime_type?: { ... }\n size_bytes?: { ... }\n s3ref?: { ... }\n version_index: { ... }\n readable_size?: { ... }\n }\n required?: boolean\n }>\n entity_graph?: {\n nodes: Array<{\n id: { ... }\n schema: { ... }\n cardinality?: { ... }\n fields?: { ... }\n }>\n edges: Array<{\n from: { ... }\n to: { ... }\n }>\n }\n entity_operation?: {\n operation: "createEntity" | "updateEntity" | "deleteEntity"[]\n schema: string[]\n attribute?: string[]\n purpose?: string[]\n purpose_filters?: Array<{\n id: { ... }\n display_name: { ... }\n }>\n }\n enabled?: boolean\n auto_trigger?: boolean\n automation_trigger?: boolean\n api_trigger?: boolean\n automation_trigger_only?: boolean\n automation_trigger_seed_node?: string\n event_origin?: "builtin" | "custom"\n mapping?: {\n mode: "guided" | "jsonata"\n jsonata?: string\n }\n lineage?: {\n base_event_name: string\n base_event_version: string\n }\n success_criteria?: Array<{\n entity_schema: string\n attribute: string\n }>\n}\n```\n\n### `CreateCustomEventPayload`\n\nComplete immutable custom-event v1.0 definition projected from a required entity graph. Publication is a separate conditional action.\n\n```ts\ntype CreateCustomEventPayload = {\n event_name: string\n event_title: string\n event_description?: string\n event_tags?: string[]\n schema_fields: Record<string, {\n json_schema: object\n required?: boolean\n graph_source?: string\n } | {\n entity_schema: string\n required?: boolean\n }>\n entity_graph: {\n nodes: Array<{\n id: { ... }\n schema: { ... }\n cardinality?: { ... }\n fields?: { ... }\n }>\n edges: Array<{\n from: { ... }\n to: { ... }\n }>\n }\n entity_operation?: {\n operation: "createEntity" | "updateEntity" | "deleteEntity"[]\n schema: string[]\n attribute?: string[]\n purpose?: string[]\n purpose_filters?: Array<{\n id: { ... }\n display_name: { ... }\n }>\n }\n automation_trigger?: boolean\n api_trigger?: boolean\n automation_trigger_only?: boolean\n automation_trigger_seed_node?: string\n mapping?: {\n mode: "guided" | "jsonata"\n jsonata?: string\n }\n lineage?: {\n base_event_name: string\n base_event_version: string\n }\n example?: Record<string, unknown>\n}\n```\n\n### `EventMapping`\n\nGuided mappings use schema_fields graph_source expressions; raw mode evaluates one JSONata object transform.\n\n```ts\ntype EventMapping = {\n mode: "guided" | "jsonata"\n jsonata?: string\n}\n```\n\n### `CustomEventLineage`\n\nOptional catalog lineage to a separately named base event. Built-in inheritance is validated against this exact registered version; its trigger restrictions cannot be removed or replaced. It does not replace the base event.\n\n```ts\ntype CustomEventLineage = {\n base_event_name: string\n base_event_version: string\n}\n```\n\n### `PurposeFilterSnapshot`\n\n```ts\ntype PurposeFilterSnapshot = {\n id: string\n display_name: string\n}\n```\n\n### `PublishCustomEventPayload`\n\n```ts\ntype PublishCustomEventPayload = {\n enabled?: boolean\n auto_trigger?: boolean\n base_auto_trigger_enabled?: boolean\n}\n```\n\n### `CustomEventVersionDraft`\n\nA pending successor to a published custom event, with the version it would become.\n\n\n```ts\ntype CustomEventVersionDraft = {\n config: {\n event_name: string\n event_title?: string\n event_description?: string\n event_version: string\n event_status?: "active" | "deprecated" | "draft" | "disabled"\n event_tags?: string[]\n schema_fields: Record<string, {\n json_schema: { ... }\n required?: { ... }\n graph_source?: { ... }\n } | {\n entity_schema: { ... }\n required?: { ... }\n } | {\n items: { ... }\n required?: { ... }\n }>\n entity_graph?: {\n nodes: { ... }\n edges: { ... }\n }\n entity_operation?: {\n operation: { ... }\n schema: { ... }\n attribute?: { ... }\n purpose?: { ... }\n purpose_filters?: { ... }\n }\n enabled?: boolean\n auto_trigger?: boolean\n automation_trigger?: boolean\n api_trigger?: boolean\n automation_trigger_only?: boolean\n automation_trigger_seed_node?: string\n event_origin?: "builtin" | "custom"\n mapping?: {\n mode: { ... }\n jsonata?: { ... }\n }\n lineage?: {\n base_event_name: { ... }\n base_event_version: { ... }\n }\n success_criteria?: Array<{\n entity_schema: { ... }\n attribute: { ... }\n }>\n }\n change_class: "none" | "minor" | "major" | "blocked"\n next_version?: string\n changes: Array<{\n field: string\n op: "added" | "removed" | "type-changed"\n type_old?: string\n type_new?: string\n }>\n remapped_fields: string[]\n added_nodes: string[]\n blocked_reason?: string\n}\n```\n\n### `PublishCustomEventVersionPayload`\n\n```ts\ntype PublishCustomEventVersionPayload = {\n change_summary?: string\n change_notes?: string\n}\n```\n\n### `ValidationIssue`\n\n```ts\ntype ValidationIssue = {\n path: string\n message: string\n}\n```\n\n### `PreviewEventResponse`\n\n```ts\ntype PreviewEventResponse = {\n payload: Record<string, unknown>\n errors: Array<{\n path: string\n message: string\n }>\n}\n```\n\n### `UpdateEventPayload`\n\nMutable org activation overlay. Immutable event definition fields are not accepted.\n\n```ts\ntype UpdateEventPayload = {\n enabled?: boolean\n auto_trigger?: boolean\n success_criteria?: Array<{\n entity_schema: string\n attribute: string\n }>\n}\n```\n\n### `PrimitiveField`\n\nA primitive JSON Schema field definition\n\n```ts\ntype PrimitiveField = {\n json_schema: object\n required?: boolean\n graph_source?: string\n}\n```\n\n### `ContextEntity`\n\n```ts\ntype ContextEntity = {\n entity_schema: string\n required?: boolean\n}\n```\n\n### `AttachmentField`\n\nA schema field representing file attachments associated with the event.\nPresent in schema_fields for events tagged with "attachment".\n\n\n```ts\ntype AttachmentField = {\n items: {\n entity_id: string // uuid\n filename?: string\n mime_type?: string\n size_bytes?: number\n s3ref?: {\n bucket: { ... }\n key: { ... }\n }\n version_index: number\n readable_size?: string\n }\n required?: boolean\n}\n```\n\n### `CustomSchemaField`\n\nCustom v1 fields support graph-projected JSON Schema values and context entities; attachment semantics are built-in-only.\n\n```ts\ntype CustomSchemaField = {\n json_schema: object\n required?: boolean\n graph_source?: string\n} | {\n entity_schema: string\n required?: boolean\n}\n```\n\n### `SchemaField`\n\n```ts\ntype SchemaField = {\n json_schema: object\n required?: boolean\n graph_source?: string\n} | {\n entity_schema: string\n required?: boolean\n} | {\n items: {\n entity_id: string // uuid\n filename?: string\n mime_type?: string\n size_bytes?: number\n s3ref?: {\n bucket: { ... }\n key: { ... }\n }\n version_index: number\n readable_size?: string\n }\n required?: boolean\n}\n```\n\n### `SuccessCriterion`\n\nA single org-defined success criterion: an entity attribute that must be captured\nfor this event\'s change request to be considered complete.\n\nIdentity is the entity schema plus the attribute name \u2014 mirroring the\nEntityOperationTrigger `schema`/`attribute` vocabulary. On write (PATCH), both\n`attribut\n\n```ts\ntype SuccessCriterion = {\n entity_schema: string\n attribute: string\n}\n```\n\n### `CommonEventMetadata`\n\nCommon metadata fields present in all event payloads\n\n```ts\ntype CommonEventMetadata = object\n```\n\n### `EventJsonSchema`\n\nJSON Schema declaring the event payload structure\n\n```ts\ntype EventJsonSchema = object\n```\n\n### `InlineDowngradeStep`\n\nOne step of an event\'s inline `_downgrades` chain. Maps the current-version payload to the previous version via a JSONata expression. Stamped by Event Catalog at publish time; executed by consumers during walk-back, never by EC itself.\n\n```ts\ntype InlineDowngradeStep = {\n to: string\n jsonata: string\n}\n```\n\n### `Event`\n\nAn event instance in the event history\n\n```ts\ntype Event = {\n _org_id: string\n _event_time: string // date-time\n _event_id: string\n _event_name: string\n _event_version: string\n _event_source: string\n _trigger_source_type?: string\n _trigger_source?: string\n _ack_id?: string\n _downgrades?: Array<{\n to: string\n jsonata: string\n }>\n _automation_chain?: string[]\n}\n```\n\n### `EventSummary`\n\nA lightweight event summary returned by the v2 history endpoint.\n\nIncludes the standard `_*` metadata fields plus a projected subset of the\nevent payload. Hydrated entity objects (values carrying `_schema` or `_id`)\n\u2014 and arrays of such objects \u2014 are reduced to reference stubs\n`{_schema, _id, _title\n\n```ts\ntype EventSummary = {\n _org_id: string\n _event_time: string // date-time\n _event_id: string\n _event_name: string\n _event_version: string\n _event_source: string\n _trigger_source_type?: string\n _trigger_source?: string\n _ack_id?: string\n}\n```\n\n### `GraphDefinition`\n\nEntity graph definition for resolving related entities\n\n```ts\ntype GraphDefinition = {\n nodes: Array<{\n id: string\n schema: string\n cardinality?: "one" | "many"\n fields?: object\n }>\n edges: Array<{\n from: string\n to: string\n }>\n}\n```\n\n### `GraphNode`\n\nA node in the entity graph\n\n```ts\ntype GraphNode = {\n id: string\n schema: string\n cardinality?: "one" | "many"\n fields?: object\n}\n```\n\n### `GraphEdge`\n\nAn edge connecting two nodes in the graph\n\n```ts\ntype GraphEdge = {\n from: string\n to: string\n}\n```\n\n### `EntityOperationTrigger`\n\nConfiguration for triggering an event based on entity operations.\n\nWhen an entity operation matches the configured criteria, the event will be triggered.\n- On createEntity: the attribute must be present in the entity payload\n- On updateEntity: the attribute must be in diff.added, diff.updated, or di\n\n```ts\ntype EntityOperationTrigger = {\n operation: "createEntity" | "updateEntity" | "deleteEntity"[]\n schema: string[]\n attribute?: string[]\n purpose?: string[]\n purpose_filters?: Array<{\n id: string\n display_name: string\n }>\n}\n```\n\n### `SearchOptions`\n\n```ts\ntype SearchOptions = {\n limit?: number\n cursor?: {\n event_time?: string\n event_id?: string\n }\n timestamp?: {\n from?: string // date-time\n to?: string // date-time\n }\n event_id?: string\n}\n```\n\n### `SearchOptionsV2`\n\nSearch options for the v2 history endpoint.\n\nExtends `SearchOptions` with an optional `fields` projection. When `fields`\nis omitted, the response includes all `_*` metadata plus all scalar payload\nfields (and primitive arrays / empty objects/arrays) after entity stripping.\nWhen `fields` is provided,\n\n```ts\ntype SearchOptionsV2 = {\n limit?: number\n cursor?: {\n event_time?: string\n event_id?: string\n }\n timestamp?: {\n from?: string // date-time\n to?: string // date-time\n }\n event_id?: string\n fields?: string[]\n}\n```\n\n### `FieldsParam`\n\nList of entity fields to include or exclude in the response\n\nUse ! to exclude fields, e.g. `!_id` to exclude the `_id` field.\n\nGlobbing and globstart (**) is supported for nested fields.\n\n\n```ts\ntype FieldsParam = string[]\n```\n\n### `TriggerEventPayload`\n\nPayload for explicitly triggering an event via API\n\n```ts\ntype TriggerEventPayload = {\n seed?: {\n entity_id: string // uuid\n node_id: string\n }\n fields?: Record<string, unknown>\n skip_hydration?: string[]\n _trigger_source_type?: string\n _trigger_source?: string\n _automation_chain?: string[]\n}\n```\n\n### `TriggerEventResponse`\n\nResponse from triggering an event\n\n```ts\ntype TriggerEventResponse = {\n success: boolean\n event_id: string\n event_bridge_event_id?: string\n}\n```\n\n### `EventAttachment`\n\nA file attachment associated with an event\n\n```ts\ntype EventAttachment = {\n entity_id: string // uuid\n filename?: string\n mime_type?: string\n size_bytes?: number\n s3ref?: {\n bucket: string\n key: string\n }\n version_index: number\n readable_size?: string\n}\n```\n\n### `FieldChange`\n\nA field-level change descriptor. Powers the declarative half of the\nversion DSL.\n\n\n```ts\ntype FieldChange = {\n field: string\n op: "added" | "removed" | "type-changed"\n type_old?: string\n type_new?: string\n}\n```\n\n### `VersionMeta`\n\nOne entry of an event\'s version timeline.\n\n```ts\ntype VersionMeta = {\n version: string\n released_at: string\n change_summary: string\n change_notes?: string\n changes: Array<{\n field: string\n op: "added" | "removed" | "type-changed"\n type_old?: string\n type_new?: string\n }>\n}\n```\n\n### `EventVersionRegistrySummary`\n\nSummary of an event\'s version timeline returned by\n`GET /v1/events/{event_name}/versions`.\n\n\n```ts\ntype EventVersionRegistrySummary = {\n event_name: string\n latest: string\n versions: Array<{\n version: string\n released_at: string\n change_summary: string\n change_notes?: string\n changes: Array<{\n field: { ... }\n op: { ... }\n type_old?: { ... }\n type_new?: { ... }\n }>\n }>\n}\n```\n';
|
|
5
|
+
export {
|
|
6
|
+
event_catalog_default as default
|
|
7
|
+
};
|