@epilot/sdk 2.20.10 → 2.20.12
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/app.json +13 -12
- package/definitions/customer-portal.json +249 -9
- package/definitions/event-catalog-runtime.json +1 -1
- package/definitions/event-catalog.json +83 -12
- 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.d.cts +2 -2
- package/dist/apis/app.d.ts +2 -2
- 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.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +8 -8
- package/dist/apis/event-catalog.d.cts +2 -2
- package/dist/apis/event-catalog.d.ts +2 -2
- package/dist/apis/event-catalog.js +2 -2
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/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/{app-E75NP2YE.js → app-B3TAEVS4.js} +1 -1
- package/dist/{app-EI2PFRBV.cjs → app-C5H6RLZ5.cjs} +1 -1
- package/dist/{app.d-BHpFAvPW.d.cts → app.d-CqXqNLxq.d.cts} +9 -10
- package/dist/{app.d-BHpFAvPW.d.ts → app.d-CqXqNLxq.d.ts} +9 -10
- package/dist/chunk-2Q6CNXJ2.cjs +14 -0
- package/dist/{chunk-A7UIYIBZ.js → chunk-36NU5MIM.js} +4 -4
- package/dist/{chunk-VAGYR2R6.cjs → chunk-75JAKEAU.cjs} +4 -4
- package/dist/chunk-LTCN52JS.js +14 -0
- package/dist/customer-portal-FDB3TGS7.cjs +7 -0
- package/dist/customer-portal-NELL7GRO.js +7 -0
- package/dist/{customer-portal.d-DJHJY-vb.d.cts → customer-portal.d-gb6dOHv3.d.cts} +218 -6
- package/dist/{customer-portal.d-DJHJY-vb.d.ts → customer-portal.d-gb6dOHv3.d.ts} +218 -6
- package/dist/event-catalog-S4OYTDIB.js +7 -0
- package/dist/event-catalog-Z6BO4L2G.cjs +7 -0
- package/dist/{event-catalog-runtime-AME244T7.cjs → event-catalog-runtime-XWSYNUGQ.cjs} +2 -2
- package/dist/{event-catalog-runtime-Q3MKEDG4.js → event-catalog-runtime-Z6OMHQBD.js} +1 -1
- package/dist/{event-catalog.d-Bd2wmtlZ.d.cts → event-catalog.d-CCE1qmBN.d.cts} +105 -22
- package/dist/{event-catalog.d-Bd2wmtlZ.d.ts → event-catalog.d-CCE1qmBN.d.ts} +105 -22
- 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/docs/app.md +4 -7
- package/docs/customer-portal.md +136 -21
- package/docs/event-catalog.md +155 -5
- package/package.json +1 -1
- package/dist/chunk-EEKJGTAS.js +0 -14
- package/dist/chunk-MPZICOVZ.cjs +0 -14
- package/dist/customer-portal-CDFQM72A.js +0 -7
- package/dist/customer-portal-MS6WNXAO.cjs +0 -7
- package/dist/event-catalog-4FVQZ65M.cjs +0 -7
- package/dist/event-catalog-PEOHXUJO.js +0 -7
package/docs/customer-portal.md
CHANGED
|
@@ -355,6 +355,11 @@ const { data } = await customerPortalClient.upsertPortal(...)
|
|
|
355
355
|
- [`SwappableConfig`](#swappableconfig)
|
|
356
356
|
- [`PortalUserRegistrationStatus`](#portaluserregistrationstatus)
|
|
357
357
|
- [`BusinessPartnerItem`](#businesspartneritem)
|
|
358
|
+
- [`SupportReportType`](#supportreporttype)
|
|
359
|
+
- [`SupportRequestAttachment`](#supportrequestattachment)
|
|
360
|
+
- [`CleverPvContext`](#cleverpvcontext)
|
|
361
|
+
- [`CreateSupportRequest`](#createsupportrequest)
|
|
362
|
+
- [`SupportRequestResult`](#supportrequestresult)
|
|
358
363
|
|
|
359
364
|
### `upsertPortal`
|
|
360
365
|
|
|
@@ -459,7 +464,9 @@ const { data } = await client.upsertPortal(
|
|
|
459
464
|
start_page: true,
|
|
460
465
|
billing: true,
|
|
461
466
|
change_due_date: true,
|
|
462
|
-
new_design: true
|
|
467
|
+
new_design: true,
|
|
468
|
+
mcp_enabled: true,
|
|
469
|
+
mcp_grant_version: 0
|
|
463
470
|
},
|
|
464
471
|
accessToken: 'string',
|
|
465
472
|
advanced_mfa: {
|
|
@@ -696,7 +703,9 @@ const { data } = await client.upsertPortal(
|
|
|
696
703
|
"start_page": true,
|
|
697
704
|
"billing": true,
|
|
698
705
|
"change_due_date": true,
|
|
699
|
-
"new_design": true
|
|
706
|
+
"new_design": true,
|
|
707
|
+
"mcp_enabled": true,
|
|
708
|
+
"mcp_grant_version": 0
|
|
700
709
|
},
|
|
701
710
|
"accessToken": "string",
|
|
702
711
|
"advanced_mfa": {
|
|
@@ -1070,7 +1079,9 @@ const { data } = await client.getPortalConfigByDomain({
|
|
|
1070
1079
|
"start_page": true,
|
|
1071
1080
|
"billing": true,
|
|
1072
1081
|
"change_due_date": true,
|
|
1073
|
-
"new_design": true
|
|
1082
|
+
"new_design": true,
|
|
1083
|
+
"mcp_enabled": true,
|
|
1084
|
+
"mcp_grant_version": 0
|
|
1074
1085
|
},
|
|
1075
1086
|
"accessToken": "string",
|
|
1076
1087
|
"advanced_mfa": {
|
|
@@ -1347,7 +1358,9 @@ const { data } = await client.getPortalConfig({
|
|
|
1347
1358
|
"start_page": true,
|
|
1348
1359
|
"billing": true,
|
|
1349
1360
|
"change_due_date": true,
|
|
1350
|
-
"new_design": true
|
|
1361
|
+
"new_design": true,
|
|
1362
|
+
"mcp_enabled": true,
|
|
1363
|
+
"mcp_grant_version": 0
|
|
1351
1364
|
},
|
|
1352
1365
|
"accessToken": "string",
|
|
1353
1366
|
"advanced_mfa": {
|
|
@@ -2136,6 +2149,10 @@ const { data } = await client.getConsumption({
|
|
|
2136
2149
|
"label": {
|
|
2137
2150
|
"en": "Billing period 1",
|
|
2138
2151
|
"de": "Abrechnungszeitraum 1"
|
|
2152
|
+
},
|
|
2153
|
+
"period": {
|
|
2154
|
+
"from": "2024-01-03T00:00:00.000Z",
|
|
2155
|
+
"to": "2025-01-05T00:00:00.000Z"
|
|
2139
2156
|
}
|
|
2140
2157
|
}
|
|
2141
2158
|
]
|
|
@@ -2513,7 +2530,9 @@ const { data } = await client.getPublicPortalConfig({
|
|
|
2513
2530
|
"start_page": true,
|
|
2514
2531
|
"billing": true,
|
|
2515
2532
|
"change_due_date": true,
|
|
2516
|
-
"new_design": true
|
|
2533
|
+
"new_design": true,
|
|
2534
|
+
"mcp_enabled": true,
|
|
2535
|
+
"mcp_grant_version": 0
|
|
2517
2536
|
},
|
|
2518
2537
|
"accessToken": "string",
|
|
2519
2538
|
"advanced_mfa": {
|
|
@@ -2790,7 +2809,9 @@ const { data } = await client.getOrgPortalConfig({
|
|
|
2790
2809
|
"start_page": true,
|
|
2791
2810
|
"billing": true,
|
|
2792
2811
|
"change_due_date": true,
|
|
2793
|
-
"new_design": true
|
|
2812
|
+
"new_design": true,
|
|
2813
|
+
"mcp_enabled": true,
|
|
2814
|
+
"mcp_grant_version": 0
|
|
2794
2815
|
},
|
|
2795
2816
|
"accessToken": "string",
|
|
2796
2817
|
"advanced_mfa": {
|
|
@@ -3076,7 +3097,9 @@ const { data } = await client.getPublicPortalConfigV3({
|
|
|
3076
3097
|
"start_page": true,
|
|
3077
3098
|
"billing": true,
|
|
3078
3099
|
"change_due_date": true,
|
|
3079
|
-
"new_design": true
|
|
3100
|
+
"new_design": true,
|
|
3101
|
+
"mcp_enabled": true,
|
|
3102
|
+
"mcp_grant_version": 0
|
|
3080
3103
|
},
|
|
3081
3104
|
"accessToken": "string",
|
|
3082
3105
|
"advanced_mfa": {
|
|
@@ -3353,7 +3376,9 @@ const { data } = await client.getOrgPortalConfigV3({
|
|
|
3353
3376
|
"start_page": true,
|
|
3354
3377
|
"billing": true,
|
|
3355
3378
|
"change_due_date": true,
|
|
3356
|
-
"new_design": true
|
|
3379
|
+
"new_design": true,
|
|
3380
|
+
"mcp_enabled": true,
|
|
3381
|
+
"mcp_grant_version": 0
|
|
3357
3382
|
},
|
|
3358
3383
|
"accessToken": "string",
|
|
3359
3384
|
"advanced_mfa": {
|
|
@@ -8291,7 +8316,9 @@ const { data } = await client.createPortalConfig(
|
|
|
8291
8316
|
start_page: true,
|
|
8292
8317
|
billing: true,
|
|
8293
8318
|
change_due_date: true,
|
|
8294
|
-
new_design: true
|
|
8319
|
+
new_design: true,
|
|
8320
|
+
mcp_enabled: true,
|
|
8321
|
+
mcp_grant_version: 0
|
|
8295
8322
|
},
|
|
8296
8323
|
accessToken: 'string',
|
|
8297
8324
|
advanced_mfa: {
|
|
@@ -8570,7 +8597,9 @@ const { data } = await client.createPortalConfig(
|
|
|
8570
8597
|
"start_page": true,
|
|
8571
8598
|
"billing": true,
|
|
8572
8599
|
"change_due_date": true,
|
|
8573
|
-
"new_design": true
|
|
8600
|
+
"new_design": true,
|
|
8601
|
+
"mcp_enabled": true,
|
|
8602
|
+
"mcp_grant_version": 0
|
|
8574
8603
|
},
|
|
8575
8604
|
"accessToken": "string",
|
|
8576
8605
|
"advanced_mfa": {
|
|
@@ -8884,7 +8913,9 @@ const { data } = await client.getPortalConfigV3({
|
|
|
8884
8913
|
"start_page": true,
|
|
8885
8914
|
"billing": true,
|
|
8886
8915
|
"change_due_date": true,
|
|
8887
|
-
"new_design": true
|
|
8916
|
+
"new_design": true,
|
|
8917
|
+
"mcp_enabled": true,
|
|
8918
|
+
"mcp_grant_version": 0
|
|
8888
8919
|
},
|
|
8889
8920
|
"accessToken": "string",
|
|
8890
8921
|
"advanced_mfa": {
|
|
@@ -9194,7 +9225,9 @@ const { data } = await client.putPortalConfig(
|
|
|
9194
9225
|
start_page: true,
|
|
9195
9226
|
billing: true,
|
|
9196
9227
|
change_due_date: true,
|
|
9197
|
-
new_design: true
|
|
9228
|
+
new_design: true,
|
|
9229
|
+
mcp_enabled: true,
|
|
9230
|
+
mcp_grant_version: 0
|
|
9198
9231
|
},
|
|
9199
9232
|
accessToken: 'string',
|
|
9200
9233
|
advanced_mfa: {
|
|
@@ -9494,7 +9527,9 @@ const { data } = await client.putPortalConfig(
|
|
|
9494
9527
|
"start_page": true,
|
|
9495
9528
|
"billing": true,
|
|
9496
9529
|
"change_due_date": true,
|
|
9497
|
-
"new_design": true
|
|
9530
|
+
"new_design": true,
|
|
9531
|
+
"mcp_enabled": true,
|
|
9532
|
+
"mcp_grant_version": 0
|
|
9498
9533
|
},
|
|
9499
9534
|
"accessToken": "string",
|
|
9500
9535
|
"advanced_mfa": {
|
|
@@ -9934,7 +9969,9 @@ const { data } = await client.clonePortalConfig(
|
|
|
9934
9969
|
"start_page": true,
|
|
9935
9970
|
"billing": true,
|
|
9936
9971
|
"change_due_date": true,
|
|
9937
|
-
"new_design": true
|
|
9972
|
+
"new_design": true,
|
|
9973
|
+
"mcp_enabled": true,
|
|
9974
|
+
"mcp_grant_version": 0
|
|
9938
9975
|
},
|
|
9939
9976
|
"accessToken": "string",
|
|
9940
9977
|
"advanced_mfa": {
|
|
@@ -10992,6 +11029,8 @@ type CommonConfigAttributes = {
|
|
|
10992
11029
|
billing?: boolean
|
|
10993
11030
|
change_due_date?: boolean
|
|
10994
11031
|
new_design?: boolean
|
|
11032
|
+
mcp_enabled?: boolean
|
|
11033
|
+
mcp_grant_version?: number
|
|
10995
11034
|
}
|
|
10996
11035
|
accessToken?: string
|
|
10997
11036
|
advanced_mfa?: {
|
|
@@ -11030,8 +11069,6 @@ type CommonConfigAttributes = {
|
|
|
11030
11069
|
password_history_size?: { ... }
|
|
11031
11070
|
}
|
|
11032
11071
|
}
|
|
11033
|
-
config?: string
|
|
11034
|
-
contact_identifiers?: string[]
|
|
11035
11072
|
// ...
|
|
11036
11073
|
}
|
|
11037
11074
|
```
|
|
@@ -11217,6 +11254,8 @@ type PortalConfig = {
|
|
|
11217
11254
|
billing?: boolean
|
|
11218
11255
|
change_due_date?: boolean
|
|
11219
11256
|
new_design?: boolean
|
|
11257
|
+
mcp_enabled?: boolean
|
|
11258
|
+
mcp_grant_version?: number
|
|
11220
11259
|
}
|
|
11221
11260
|
accessToken?: string
|
|
11222
11261
|
advanced_mfa?: {
|
|
@@ -11255,8 +11294,6 @@ type PortalConfig = {
|
|
|
11255
11294
|
password_history_size?: { ... }
|
|
11256
11295
|
}
|
|
11257
11296
|
}
|
|
11258
|
-
config?: string
|
|
11259
|
-
contact_identifiers?: string[]
|
|
11260
11297
|
// ...
|
|
11261
11298
|
}
|
|
11262
11299
|
```
|
|
@@ -13175,7 +13212,7 @@ type VisualizationMetadata = {
|
|
|
13175
13212
|
color?: "primary" | "slate" | "mauve" | "orange" | "red" | "tomato" | "amber" | "green" | "blue"
|
|
13176
13213
|
precision?: number
|
|
13177
13214
|
}>
|
|
13178
|
-
intervals?: "PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y"[]
|
|
13215
|
+
intervals?: "PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y" | "custom"[]
|
|
13179
13216
|
data_range?: {
|
|
13180
13217
|
from?: string // date-time
|
|
13181
13218
|
to?: string // date-time
|
|
@@ -14403,6 +14440,8 @@ type CommonConfigAttributesV3 = {
|
|
|
14403
14440
|
billing?: boolean
|
|
14404
14441
|
change_due_date?: boolean
|
|
14405
14442
|
new_design?: boolean
|
|
14443
|
+
mcp_enabled?: boolean
|
|
14444
|
+
mcp_grant_version?: number
|
|
14406
14445
|
}
|
|
14407
14446
|
accessToken?: string
|
|
14408
14447
|
advanced_mfa?: {
|
|
@@ -14441,8 +14480,6 @@ type CommonConfigAttributesV3 = {
|
|
|
14441
14480
|
password_history_size?: { ... }
|
|
14442
14481
|
}
|
|
14443
14482
|
}
|
|
14444
|
-
config?: string
|
|
14445
|
-
contact_identifiers?: string[]
|
|
14446
14483
|
// ...
|
|
14447
14484
|
}
|
|
14448
14485
|
```
|
|
@@ -14693,6 +14730,7 @@ type PortalConfigV3 = {
|
|
|
14693
14730
|
type JuiceSettings = {
|
|
14694
14731
|
is_dummy?: boolean
|
|
14695
14732
|
is_canary?: boolean
|
|
14733
|
+
is_legacy_design?: boolean
|
|
14696
14734
|
redirect_to?: string
|
|
14697
14735
|
}
|
|
14698
14736
|
```
|
|
@@ -14725,3 +14763,80 @@ type BusinessPartnerItem = {
|
|
|
14725
14763
|
access_status?: boolean
|
|
14726
14764
|
}
|
|
14727
14765
|
```
|
|
14766
|
+
|
|
14767
|
+
### `SupportReportType`
|
|
14768
|
+
|
|
14769
|
+
```ts
|
|
14770
|
+
type SupportReportType = "bug" | "feedback"
|
|
14771
|
+
```
|
|
14772
|
+
|
|
14773
|
+
### `SupportRequestAttachment`
|
|
14774
|
+
|
|
14775
|
+
```ts
|
|
14776
|
+
type SupportRequestAttachment = {
|
|
14777
|
+
filename: string
|
|
14778
|
+
mime_type: string
|
|
14779
|
+
contents: string
|
|
14780
|
+
}
|
|
14781
|
+
```
|
|
14782
|
+
|
|
14783
|
+
### `CleverPvContext`
|
|
14784
|
+
|
|
14785
|
+
```ts
|
|
14786
|
+
type CleverPvContext = {
|
|
14787
|
+
screen?: string
|
|
14788
|
+
version?: string
|
|
14789
|
+
connection_state?: string
|
|
14790
|
+
locale?: string
|
|
14791
|
+
timezone?: string
|
|
14792
|
+
firmware_version?: string
|
|
14793
|
+
build?: string
|
|
14794
|
+
trace_id?: string
|
|
14795
|
+
device?: Record<string, unknown>
|
|
14796
|
+
vendor?: {
|
|
14797
|
+
id?: string
|
|
14798
|
+
name?: string
|
|
14799
|
+
}
|
|
14800
|
+
}
|
|
14801
|
+
```
|
|
14802
|
+
|
|
14803
|
+
### `CreateSupportRequest`
|
|
14804
|
+
|
|
14805
|
+
```ts
|
|
14806
|
+
type CreateSupportRequest = {
|
|
14807
|
+
report_type: "bug" | "feedback"
|
|
14808
|
+
description: string
|
|
14809
|
+
submission_id: string
|
|
14810
|
+
site_id?: string // uuid
|
|
14811
|
+
device_id?: string // uuid
|
|
14812
|
+
clever_pv?: {
|
|
14813
|
+
screen?: string
|
|
14814
|
+
version?: string
|
|
14815
|
+
connection_state?: string
|
|
14816
|
+
locale?: string
|
|
14817
|
+
timezone?: string
|
|
14818
|
+
firmware_version?: string
|
|
14819
|
+
build?: string
|
|
14820
|
+
trace_id?: string
|
|
14821
|
+
device?: Record<string, unknown>
|
|
14822
|
+
vendor?: {
|
|
14823
|
+
id?: { ... }
|
|
14824
|
+
name?: { ... }
|
|
14825
|
+
}
|
|
14826
|
+
}
|
|
14827
|
+
attachments?: Array<{
|
|
14828
|
+
filename: string
|
|
14829
|
+
mime_type: string
|
|
14830
|
+
contents: string
|
|
14831
|
+
}>
|
|
14832
|
+
}
|
|
14833
|
+
```
|
|
14834
|
+
|
|
14835
|
+
### `SupportRequestResult`
|
|
14836
|
+
|
|
14837
|
+
```ts
|
|
14838
|
+
type SupportRequestResult = {
|
|
14839
|
+
reference: string
|
|
14840
|
+
status: string
|
|
14841
|
+
}
|
|
14842
|
+
```
|
package/docs/event-catalog.md
CHANGED
|
@@ -29,6 +29,7 @@ const { data } = await eventCatalogClient.listEvents(...)
|
|
|
29
29
|
- [`createCustomEvent`](#createcustomevent)
|
|
30
30
|
- [`getEvent`](#getevent)
|
|
31
31
|
- [`patchEvent`](#patchevent)
|
|
32
|
+
- [`replaceCustomEventDraft`](#replacecustomeventdraft)
|
|
32
33
|
- [`deprecateCustomEvent`](#deprecatecustomevent)
|
|
33
34
|
- [`previewCustomEvent`](#previewcustomevent)
|
|
34
35
|
- [`publishCustomEventDefinition`](#publishcustomeventdefinition)
|
|
@@ -131,6 +132,7 @@ const { data } = await client.listEvents()
|
|
|
131
132
|
"enabled": true,
|
|
132
133
|
"auto_trigger": true,
|
|
133
134
|
"automation_trigger": true,
|
|
135
|
+
"api_trigger": true,
|
|
134
136
|
"automation_trigger_only": true,
|
|
135
137
|
"automation_trigger_seed_node": "ticket",
|
|
136
138
|
"event_origin": "builtin",
|
|
@@ -163,7 +165,7 @@ const { data } = await client.listEvents()
|
|
|
163
165
|
|
|
164
166
|
### `createCustomEvent`
|
|
165
167
|
|
|
166
|
-
Reserve an org-scoped custom event name and persist its immutable v1.0 draft definition.
|
|
168
|
+
Reserve 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,
|
|
167
169
|
|
|
168
170
|
`POST /v1/events`
|
|
169
171
|
|
|
@@ -205,6 +207,9 @@ const { data } = await client.createCustomEvent(
|
|
|
205
207
|
]
|
|
206
208
|
},
|
|
207
209
|
automation_trigger: true,
|
|
210
|
+
api_trigger: true,
|
|
211
|
+
automation_trigger_only: false,
|
|
212
|
+
automation_trigger_seed_node: 'string',
|
|
208
213
|
mapping: {
|
|
209
214
|
mode: 'guided',
|
|
210
215
|
jsonata: 'string'
|
|
@@ -261,6 +266,7 @@ const { data } = await client.createCustomEvent(
|
|
|
261
266
|
"enabled": true,
|
|
262
267
|
"auto_trigger": true,
|
|
263
268
|
"automation_trigger": true,
|
|
269
|
+
"api_trigger": true,
|
|
264
270
|
"automation_trigger_only": true,
|
|
265
271
|
"automation_trigger_seed_node": "ticket",
|
|
266
272
|
"event_origin": "builtin",
|
|
@@ -344,6 +350,7 @@ const { data } = await client.getEvent({
|
|
|
344
350
|
"enabled": true,
|
|
345
351
|
"auto_trigger": true,
|
|
346
352
|
"automation_trigger": true,
|
|
353
|
+
"api_trigger": true,
|
|
347
354
|
"automation_trigger_only": true,
|
|
348
355
|
"automation_trigger_seed_node": "ticket",
|
|
349
356
|
"event_origin": "builtin",
|
|
@@ -439,6 +446,143 @@ const { data } = await client.patchEvent(
|
|
|
439
446
|
"enabled": true,
|
|
440
447
|
"auto_trigger": true,
|
|
441
448
|
"automation_trigger": true,
|
|
449
|
+
"api_trigger": true,
|
|
450
|
+
"automation_trigger_only": true,
|
|
451
|
+
"automation_trigger_seed_node": "ticket",
|
|
452
|
+
"event_origin": "builtin",
|
|
453
|
+
"mapping": {
|
|
454
|
+
"mode": "guided",
|
|
455
|
+
"jsonata": "string"
|
|
456
|
+
},
|
|
457
|
+
"lineage": {
|
|
458
|
+
"base_event_name": "string",
|
|
459
|
+
"base_event_version": "string"
|
|
460
|
+
},
|
|
461
|
+
"success_criteria": [
|
|
462
|
+
{
|
|
463
|
+
"entity_schema": "contract",
|
|
464
|
+
"attribute": "installment_amount"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"entity_schema": "billing_account",
|
|
468
|
+
"attribute": "due_date"
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
</details>
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
### `replaceCustomEventDraft`
|
|
479
|
+
|
|
480
|
+
Replace the complete v1.0 definition of an org-scoped custom event while it is still an
|
|
481
|
+
unpublished draft. Drafts have no consumers, so their definition is not yet immutable;
|
|
482
|
+
the event name is the ide
|
|
483
|
+
|
|
484
|
+
`PUT /v1/events/{event_name}`
|
|
485
|
+
|
|
486
|
+
```ts
|
|
487
|
+
const { data } = await client.replaceCustomEventDraft(
|
|
488
|
+
{
|
|
489
|
+
event_name: 'example',
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
event_name: 'string',
|
|
493
|
+
event_title: 'string',
|
|
494
|
+
event_description: 'string',
|
|
495
|
+
event_tags: ['string'],
|
|
496
|
+
schema_fields: {},
|
|
497
|
+
entity_graph: {
|
|
498
|
+
nodes: [
|
|
499
|
+
{
|
|
500
|
+
id: 'contact',
|
|
501
|
+
schema: 'contact',
|
|
502
|
+
cardinality: 'one',
|
|
503
|
+
fields: ['_id', '_title', 'first_name', 'account', '!account.*._files', '**._product']
|
|
504
|
+
}
|
|
505
|
+
],
|
|
506
|
+
edges: [
|
|
507
|
+
{
|
|
508
|
+
from: 'contact',
|
|
509
|
+
to: 'billing_account'
|
|
510
|
+
}
|
|
511
|
+
]
|
|
512
|
+
},
|
|
513
|
+
entity_operation: {
|
|
514
|
+
operation: ['createEntity', 'updateEntity'],
|
|
515
|
+
schema: ['contact', 'contract', 'order'],
|
|
516
|
+
attribute: ['email', 'phone', 'status'],
|
|
517
|
+
purpose: ['Kündigung', 'Umzug/Auszug'],
|
|
518
|
+
purpose_filters: [
|
|
519
|
+
{
|
|
520
|
+
id: 'string',
|
|
521
|
+
display_name: 'string'
|
|
522
|
+
}
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
automation_trigger: true,
|
|
526
|
+
api_trigger: true,
|
|
527
|
+
automation_trigger_only: false,
|
|
528
|
+
automation_trigger_seed_node: 'string',
|
|
529
|
+
mapping: {
|
|
530
|
+
mode: 'guided',
|
|
531
|
+
jsonata: 'string'
|
|
532
|
+
},
|
|
533
|
+
lineage: {
|
|
534
|
+
base_event_name: 'string',
|
|
535
|
+
base_event_version: 'string'
|
|
536
|
+
},
|
|
537
|
+
example: {}
|
|
538
|
+
},
|
|
539
|
+
)
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
<details>
|
|
543
|
+
<summary>Response</summary>
|
|
544
|
+
|
|
545
|
+
```json
|
|
546
|
+
{
|
|
547
|
+
"event_name": "AddMeterReading",
|
|
548
|
+
"event_title": "Add Meter Reading",
|
|
549
|
+
"event_description": "Triggered when a new meter reading is added",
|
|
550
|
+
"event_version": "1.0",
|
|
551
|
+
"event_status": "active",
|
|
552
|
+
"event_tags": ["builtin", "metering", "erp"],
|
|
553
|
+
"schema_fields": {},
|
|
554
|
+
"entity_graph": {
|
|
555
|
+
"nodes": [
|
|
556
|
+
{
|
|
557
|
+
"id": "contact",
|
|
558
|
+
"schema": "contact",
|
|
559
|
+
"cardinality": "one",
|
|
560
|
+
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"edges": [
|
|
564
|
+
{
|
|
565
|
+
"from": "contact",
|
|
566
|
+
"to": "billing_account"
|
|
567
|
+
}
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
"entity_operation": {
|
|
571
|
+
"operation": ["createEntity", "updateEntity"],
|
|
572
|
+
"schema": ["contact", "contract", "order"],
|
|
573
|
+
"attribute": ["email", "phone", "status"],
|
|
574
|
+
"purpose": ["Kündigung", "Umzug/Auszug"],
|
|
575
|
+
"purpose_filters": [
|
|
576
|
+
{
|
|
577
|
+
"id": "string",
|
|
578
|
+
"display_name": "string"
|
|
579
|
+
}
|
|
580
|
+
]
|
|
581
|
+
},
|
|
582
|
+
"enabled": true,
|
|
583
|
+
"auto_trigger": true,
|
|
584
|
+
"automation_trigger": true,
|
|
585
|
+
"api_trigger": true,
|
|
442
586
|
"automation_trigger_only": true,
|
|
443
587
|
"automation_trigger_seed_node": "ticket",
|
|
444
588
|
"event_origin": "builtin",
|
|
@@ -584,6 +728,7 @@ const { data } = await client.publishCustomEventDefinition(
|
|
|
584
728
|
"enabled": true,
|
|
585
729
|
"auto_trigger": true,
|
|
586
730
|
"automation_trigger": true,
|
|
731
|
+
"api_trigger": true,
|
|
587
732
|
"automation_trigger_only": true,
|
|
588
733
|
"automation_trigger_seed_node": "ticket",
|
|
589
734
|
"event_origin": "builtin",
|
|
@@ -1072,6 +1217,7 @@ type EventConfigBase = {
|
|
|
1072
1217
|
enabled?: boolean
|
|
1073
1218
|
auto_trigger?: boolean
|
|
1074
1219
|
automation_trigger?: boolean
|
|
1220
|
+
api_trigger?: boolean
|
|
1075
1221
|
automation_trigger_only?: boolean
|
|
1076
1222
|
automation_trigger_seed_node?: string
|
|
1077
1223
|
event_origin?: "builtin" | "custom"
|
|
@@ -1146,6 +1292,7 @@ type EventConfig = {
|
|
|
1146
1292
|
enabled?: boolean
|
|
1147
1293
|
auto_trigger?: boolean
|
|
1148
1294
|
automation_trigger?: boolean
|
|
1295
|
+
api_trigger?: boolean
|
|
1149
1296
|
automation_trigger_only?: boolean
|
|
1150
1297
|
automation_trigger_seed_node?: string
|
|
1151
1298
|
event_origin?: "builtin" | "custom"
|
|
@@ -1166,7 +1313,7 @@ type EventConfig = {
|
|
|
1166
1313
|
|
|
1167
1314
|
### `CreateCustomEventPayload`
|
|
1168
1315
|
|
|
1169
|
-
Complete immutable custom-event v1.0 definition. Publication is a separate conditional action.
|
|
1316
|
+
Complete immutable custom-event v1.0 definition projected from a required entity graph. Publication is a separate conditional action.
|
|
1170
1317
|
|
|
1171
1318
|
```ts
|
|
1172
1319
|
type CreateCustomEventPayload = {
|
|
@@ -1182,7 +1329,7 @@ type CreateCustomEventPayload = {
|
|
|
1182
1329
|
entity_schema: string
|
|
1183
1330
|
required?: boolean
|
|
1184
1331
|
}>
|
|
1185
|
-
entity_graph
|
|
1332
|
+
entity_graph: {
|
|
1186
1333
|
nodes: Array<{
|
|
1187
1334
|
id: { ... }
|
|
1188
1335
|
schema: { ... }
|
|
@@ -1205,6 +1352,9 @@ type CreateCustomEventPayload = {
|
|
|
1205
1352
|
}>
|
|
1206
1353
|
}
|
|
1207
1354
|
automation_trigger?: boolean
|
|
1355
|
+
api_trigger?: boolean
|
|
1356
|
+
automation_trigger_only?: boolean
|
|
1357
|
+
automation_trigger_seed_node?: string
|
|
1208
1358
|
mapping?: {
|
|
1209
1359
|
mode: "guided" | "jsonata"
|
|
1210
1360
|
jsonata?: string
|
|
@@ -1230,7 +1380,7 @@ type EventMapping = {
|
|
|
1230
1380
|
|
|
1231
1381
|
### `CustomEventLineage`
|
|
1232
1382
|
|
|
1233
|
-
Optional catalog lineage to a separately named base event. It does not replace the base event.
|
|
1383
|
+
Optional 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.
|
|
1234
1384
|
|
|
1235
1385
|
```ts
|
|
1236
1386
|
type CustomEventLineage = {
|
|
@@ -1341,7 +1491,7 @@ type AttachmentField = {
|
|
|
1341
1491
|
|
|
1342
1492
|
### `CustomSchemaField`
|
|
1343
1493
|
|
|
1344
|
-
Custom v1 fields support JSON Schema values and context entities; attachment semantics are built-in-only.
|
|
1494
|
+
Custom v1 fields support graph-projected JSON Schema values and context entities; attachment semantics are built-in-only.
|
|
1345
1495
|
|
|
1346
1496
|
```ts
|
|
1347
1497
|
type CustomSchemaField = {
|
package/package.json
CHANGED
package/dist/chunk-EEKJGTAS.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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], ["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], ["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
|
-
};
|
package/dist/chunk-MPZICOVZ.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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], ["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], ["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;
|