@epilot/sdk 2.4.4 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/app.json +137 -58
- package/definitions/customer-portal-runtime.json +1 -1
- package/definitions/customer-portal.json +496 -24
- package/definitions/entity.json +185 -8
- package/definitions/integration-toolkit-runtime.json +1 -1
- package/definitions/integration-toolkit.json +480 -4
- package/definitions/metering-runtime.json +1 -1
- package/definitions/metering.json +728 -64
- package/definitions/webhooks-runtime.json +1 -1
- package/definitions/webhooks.json +134 -4
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +8 -8
- package/dist/apis/app.d.cts +2 -2
- package/dist/apis/app.d.ts +2 -2
- package/dist/apis/app.js +2 -2
- 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 +8 -8
- package/dist/apis/customer-portal.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- package/dist/apis/customer-portal.js +2 -2
- 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.d.cts +2 -2
- package/dist/apis/entity.d.ts +2 -2
- 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 +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +8 -8
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +2 -2
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +8 -8
- package/dist/apis/metering.d.cts +2 -2
- package/dist/apis/metering.d.ts +2 -2
- package/dist/apis/metering.js +2 -2
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.d.cts +2 -2
- package/dist/apis/notes.d.ts +2 -2
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +8 -8
- package/dist/apis/webhooks.d.cts +2 -2
- package/dist/apis/webhooks.d.ts +2 -2
- package/dist/apis/webhooks.js +2 -2
- 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-34OBBTA4.js +7 -0
- package/dist/app-SSF545U7.cjs +7 -0
- package/dist/app-runtime-AFNM67YN.cjs +5 -0
- package/dist/{app-runtime-U7RGV7KT.js → app-runtime-DBUXZL6E.js} +1 -1
- package/dist/{app.d-u7Dq42kU.d.cts → app.d--5n0FQQ4.d.cts} +377 -11
- package/dist/{app.d-u7Dq42kU.d.ts → app.d--5n0FQQ4.d.ts} +377 -11
- package/dist/bin/cli.js +1 -1
- package/dist/{chunk-JTFWOEZF.cjs → chunk-4FFGRWLS.cjs} +1 -1
- package/dist/chunk-56MMZJOD.js +14 -0
- package/dist/chunk-5OBMZHRL.cjs +14 -0
- package/dist/{chunk-L66IX6GX.cjs → chunk-KMVJYNLB.cjs} +1 -1
- package/dist/chunk-KYCVV2XE.cjs +14 -0
- package/dist/{chunk-TSV242UN.js → chunk-QNUU4TTU.js} +13 -13
- package/dist/chunk-RGO3LTAM.js +14 -0
- package/dist/{chunk-CD4OX2U6.cjs → chunk-SDIGGISZ.cjs} +13 -13
- package/dist/chunk-T6A22LSD.cjs +14 -0
- package/dist/chunk-WM74R3BD.js +14 -0
- package/dist/{chunk-LLZYRINH.js → chunk-Z4H2FZ2K.js} +1 -1
- package/dist/chunk-Z6HGUGXK.js +14 -0
- package/dist/customer-portal-5I7ZGQDU.cjs +7 -0
- package/dist/customer-portal-YL2YMPZL.js +7 -0
- package/dist/{customer-portal-runtime-PSM55KGU.js → customer-portal-runtime-N4NWQ67M.js} +1 -1
- package/dist/{customer-portal-runtime-DULJLR7F.cjs → customer-portal-runtime-OEXTSMSE.cjs} +2 -2
- package/dist/{customer-portal.d-DyZ2n2dW.d.cts → customer-portal.d-ChSEioI5.d.cts} +394 -9
- package/dist/{customer-portal.d-DyZ2n2dW.d.ts → customer-portal.d-ChSEioI5.d.ts} +394 -9
- package/dist/entity-SS36LQO6.cjs +7 -0
- package/dist/entity-Z4YWKDVG.js +7 -0
- package/dist/{entity.d-BHR9dEon.d.cts → entity.d-fospShiN.d.cts} +234 -169
- package/dist/{entity.d-BHR9dEon.d.ts → entity.d-fospShiN.d.ts} +234 -169
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +6 -6
- package/dist/integration-toolkit-3I3IPVFN.cjs +7 -0
- package/dist/integration-toolkit-XAFQXNQY.js +7 -0
- package/dist/{integration-toolkit-runtime-5KG3LGXF.cjs → integration-toolkit-runtime-YHTU4X5J.cjs} +2 -2
- package/dist/{integration-toolkit-runtime-LYHFVIRW.js → integration-toolkit-runtime-YR4CIMKH.js} +1 -1
- package/dist/{integration-toolkit.d-Ry-KC9ow.d.cts → integration-toolkit.d-BstNqiJb.d.cts} +460 -20
- package/dist/{integration-toolkit.d-Ry-KC9ow.d.ts → integration-toolkit.d-BstNqiJb.d.ts} +460 -20
- package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
- package/dist/metering-3IUSYAGN.js +7 -0
- package/dist/metering-MHBFU7QH.cjs +7 -0
- package/dist/{webhooks-runtime-EBM4M3SU.cjs → metering-runtime-IUZJHBVS.cjs} +2 -2
- package/dist/{metering-runtime-NJ6NEUMB.js → metering-runtime-KZMJKKUZ.js} +1 -1
- package/dist/{metering.d-DvtPv7wk.d.ts → metering.d-CUICZDiL.d.cts} +718 -130
- package/dist/{metering.d-DvtPv7wk.d.cts → metering.d-CUICZDiL.d.ts} +718 -130
- package/dist/notes-K2IIFCX3.cjs +7 -0
- package/dist/notes-Q7JGS7O3.js +7 -0
- package/dist/{notes.d-BC-scR42.d.cts → notes.d-BcV_m5fe.d.cts} +33 -11
- package/dist/{notes.d-BC-scR42.d.ts → notes.d-BcV_m5fe.d.ts} +33 -11
- package/dist/{pricing-XAET4G7T.cjs → pricing-FODHQFCB.cjs} +1 -1
- package/dist/{pricing-G67CH3XH.js → pricing-XRIDVZFC.js} +1 -1
- package/dist/webhooks-NZ3TM3AY.cjs +7 -0
- package/dist/webhooks-XLBUXXCS.js +7 -0
- package/dist/{metering-runtime-HAIWXZXJ.cjs → webhooks-runtime-QVAFNBDW.cjs} +2 -2
- package/dist/{webhooks-runtime-XCQYIGQK.js → webhooks-runtime-UYTPQQVG.js} +1 -1
- package/dist/{webhooks.d-pLHIL_io.d.cts → webhooks.d-D79qib9f.d.cts} +115 -5
- package/dist/{webhooks.d-pLHIL_io.d.ts → webhooks.d-D79qib9f.d.ts} +115 -5
- package/docs/app.md +244 -9
- package/docs/customer-portal.md +340 -113
- package/docs/entity.md +65 -0
- package/docs/integration-toolkit.md +334 -19
- package/docs/metering.md +570 -48
- package/docs/notes.md +19 -12
- package/docs/pricing.md +3 -1
- package/docs/webhooks.md +49 -0
- package/package.json +1 -1
- package/dist/app-5KSVSKDU.js +0 -7
- package/dist/app-PL3IOROO.cjs +0 -7
- package/dist/app-runtime-SSNHSBR7.cjs +0 -5
- package/dist/chunk-265TE2OV.js +0 -14
- package/dist/chunk-2MMSXUOL.cjs +0 -14
- package/dist/chunk-4ZMLRFDX.cjs +0 -14
- package/dist/chunk-A7AAVJGM.js +0 -14
- package/dist/chunk-GVNT76UU.js +0 -14
- package/dist/chunk-HHMXS5NC.cjs +0 -14
- package/dist/chunk-U4PUHKZC.js +0 -14
- package/dist/customer-portal-5LMHNBMD.cjs +0 -7
- package/dist/customer-portal-RZACUF4N.js +0 -7
- package/dist/entity-H6ESUH3Y.js +0 -7
- package/dist/entity-ZVDKWQSF.cjs +0 -7
- package/dist/integration-toolkit-FRPFOYT2.js +0 -7
- package/dist/integration-toolkit-VNMDI55O.cjs +0 -7
- package/dist/metering-DZNZPPY6.cjs +0 -7
- package/dist/metering-KOSCPPKB.js +0 -7
- package/dist/notes-3AO5GXIT.js +0 -7
- package/dist/notes-MPWOQC5J.cjs +0 -7
- package/dist/webhooks-H3RT33BF.cjs +0 -7
- package/dist/webhooks-RTOU3MS5.js +0 -7
package/docs/app.md
CHANGED
|
@@ -60,9 +60,14 @@ const { data } = await appClient.getPublicFacingComponent(...)
|
|
|
60
60
|
- [`queryEvents`](#queryevents)
|
|
61
61
|
- [`ingestEvent`](#ingestevent)
|
|
62
62
|
|
|
63
|
+
**App Proxy**
|
|
64
|
+
- [`publicProxyGet`](#publicproxyget)
|
|
65
|
+
- [`publicProxyPost`](#publicproxypost)
|
|
66
|
+
|
|
63
67
|
**Schemas**
|
|
64
68
|
- [`Role`](#role)
|
|
65
69
|
- [`Options`](#options)
|
|
70
|
+
- [`ObjectField`](#objectfield)
|
|
66
71
|
- [`Option`](#option)
|
|
67
72
|
- [`OptionsRef`](#optionsref)
|
|
68
73
|
- [`S3Reference`](#s3reference)
|
|
@@ -72,6 +77,7 @@ const { data } = await appClient.getPublicFacingComponent(...)
|
|
|
72
77
|
- [`NotificationEvent`](#notificationevent)
|
|
73
78
|
- [`BaseComponentCommon`](#basecomponentcommon)
|
|
74
79
|
- [`BaseComponent`](#basecomponent)
|
|
80
|
+
- [`ApiProxyComponent`](#apiproxycomponent)
|
|
75
81
|
- [`CustomCapabilityComponent`](#customcapabilitycomponent)
|
|
76
82
|
- [`CustomPageComponent`](#custompagecomponent)
|
|
77
83
|
- [`CustomPageConfig`](#custompageconfig)
|
|
@@ -94,6 +100,8 @@ const { data } = await appClient.getPublicFacingComponent(...)
|
|
|
94
100
|
- [`PortalExtensionHookMeterReadingPlausibilityCheck`](#portalextensionhookmeterreadingplausibilitycheck)
|
|
95
101
|
- [`PortalExtensionHookPriceDataRetrieval`](#portalextensionhookpricedataretrieval)
|
|
96
102
|
- [`PortalExtensionHookConsumptionDataRetrieval`](#portalextensionhookconsumptiondataretrieval)
|
|
103
|
+
- [`PortalExtensionHookDataExport`](#portalextensionhookdataexport)
|
|
104
|
+
- [`PortalExtensionHookVisualizationMetadata`](#portalextensionhookvisualizationmetadata)
|
|
97
105
|
- [`PortalExtensionHookCostDataRetrieval`](#portalextensionhookcostdataretrieval)
|
|
98
106
|
- [`PortalExtensionSeamlessLink`](#portalextensionseamlesslink)
|
|
99
107
|
- [`PortalExtensionAuthBlock`](#portalextensionauthblock)
|
|
@@ -107,6 +115,7 @@ const { data } = await appClient.getPublicFacingComponent(...)
|
|
|
107
115
|
- [`JourneyBlockComponentArgs`](#journeyblockcomponentargs)
|
|
108
116
|
- [`TextArg`](#textarg)
|
|
109
117
|
- [`BooleanArg`](#booleanarg)
|
|
118
|
+
- [`BlockReferenceArg`](#blockreferencearg)
|
|
110
119
|
- [`EnumArg`](#enumarg)
|
|
111
120
|
- [`BillingFrequency`](#billingfrequency)
|
|
112
121
|
- [`Pricing`](#pricing)
|
|
@@ -114,6 +123,7 @@ const { data } = await appClient.getPublicFacingComponent(...)
|
|
|
114
123
|
- [`Review`](#review)
|
|
115
124
|
- [`ConfigurationMetadata`](#configurationmetadata)
|
|
116
125
|
- [`ConfigurationVersion`](#configurationversion)
|
|
126
|
+
- [`ApiProxyConfig`](#apiproxyconfig)
|
|
117
127
|
- [`Grants`](#grants)
|
|
118
128
|
- [`BlueprintRef`](#blueprintref)
|
|
119
129
|
- [`Installation`](#installation)
|
|
@@ -1668,6 +1678,41 @@ const { data } = await client.ingestEvent(
|
|
|
1668
1678
|
|
|
1669
1679
|
---
|
|
1670
1680
|
|
|
1681
|
+
### `publicProxyGet`
|
|
1682
|
+
|
|
1683
|
+
Forward a GET request to a registered proxy target from a public-facing component (e.g. journey blocks)
|
|
1684
|
+
|
|
1685
|
+
`GET /v1/public/app/{appId}/proxy/{proxyName}/{path}`
|
|
1686
|
+
|
|
1687
|
+
```ts
|
|
1688
|
+
const { data } = await client.publicProxyGet({
|
|
1689
|
+
appId: 'example',
|
|
1690
|
+
proxyName: 'example',
|
|
1691
|
+
path: 'example',
|
|
1692
|
+
})
|
|
1693
|
+
```
|
|
1694
|
+
|
|
1695
|
+
---
|
|
1696
|
+
|
|
1697
|
+
### `publicProxyPost`
|
|
1698
|
+
|
|
1699
|
+
Forward a POST request to a registered proxy target from a public-facing component (e.g. journey blocks)
|
|
1700
|
+
|
|
1701
|
+
`POST /v1/public/app/{appId}/proxy/{proxyName}/{path}`
|
|
1702
|
+
|
|
1703
|
+
```ts
|
|
1704
|
+
const { data } = await client.publicProxyPost(
|
|
1705
|
+
{
|
|
1706
|
+
appId: 'example',
|
|
1707
|
+
proxyName: 'example',
|
|
1708
|
+
path: 'example',
|
|
1709
|
+
},
|
|
1710
|
+
{},
|
|
1711
|
+
)
|
|
1712
|
+
```
|
|
1713
|
+
|
|
1714
|
+
---
|
|
1715
|
+
|
|
1671
1716
|
## Schemas
|
|
1672
1717
|
|
|
1673
1718
|
### `Role`
|
|
@@ -1692,7 +1737,31 @@ type Options = {
|
|
|
1692
1737
|
label?: string
|
|
1693
1738
|
required?: boolean
|
|
1694
1739
|
description?: string
|
|
1740
|
+
repeatable?: boolean
|
|
1741
|
+
fields?: Array<{
|
|
1742
|
+
key: string
|
|
1743
|
+
label?: string
|
|
1744
|
+
description?: string
|
|
1745
|
+
required?: boolean
|
|
1746
|
+
type: "text" | "number" | "boolean" | "secret"
|
|
1747
|
+
}>
|
|
1695
1748
|
value?: unknown
|
|
1749
|
+
type: "text" | "number" | "boolean" | "secret" | "object"
|
|
1750
|
+
}
|
|
1751
|
+
```
|
|
1752
|
+
|
|
1753
|
+
### `ObjectField`
|
|
1754
|
+
|
|
1755
|
+
One declared field inside a `type: object` option. Fields are primitives — object nesting
|
|
1756
|
+
is not supported.
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
```ts
|
|
1760
|
+
type ObjectField = {
|
|
1761
|
+
key: string
|
|
1762
|
+
label?: string
|
|
1763
|
+
description?: string
|
|
1764
|
+
required?: boolean
|
|
1696
1765
|
type: "text" | "number" | "boolean" | "secret"
|
|
1697
1766
|
}
|
|
1698
1767
|
```
|
|
@@ -1732,7 +1801,7 @@ type S3Reference = {
|
|
|
1732
1801
|
Type of app component
|
|
1733
1802
|
|
|
1734
1803
|
```ts
|
|
1735
|
-
type ComponentType = "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE"
|
|
1804
|
+
type ComponentType = "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY"
|
|
1736
1805
|
```
|
|
1737
1806
|
|
|
1738
1807
|
### `Author`
|
|
@@ -1778,8 +1847,16 @@ type BaseComponentCommon = {
|
|
|
1778
1847
|
label?: string
|
|
1779
1848
|
required?: boolean
|
|
1780
1849
|
description?: string
|
|
1850
|
+
repeatable?: boolean
|
|
1851
|
+
fields?: Array<{
|
|
1852
|
+
key: { ... }
|
|
1853
|
+
label?: { ... }
|
|
1854
|
+
description?: { ... }
|
|
1855
|
+
required?: { ... }
|
|
1856
|
+
type: { ... }
|
|
1857
|
+
}>
|
|
1781
1858
|
value?: unknown
|
|
1782
|
-
type: "text" | "number" | "boolean" | "secret"
|
|
1859
|
+
type: "text" | "number" | "boolean" | "secret" | "object"
|
|
1783
1860
|
}>
|
|
1784
1861
|
surfaces?: object
|
|
1785
1862
|
}
|
|
@@ -1803,13 +1880,36 @@ type BaseComponent = {
|
|
|
1803
1880
|
label?: string
|
|
1804
1881
|
required?: boolean
|
|
1805
1882
|
description?: string
|
|
1883
|
+
repeatable?: boolean
|
|
1884
|
+
fields?: Array<{
|
|
1885
|
+
key: { ... }
|
|
1886
|
+
label?: { ... }
|
|
1887
|
+
description?: { ... }
|
|
1888
|
+
required?: { ... }
|
|
1889
|
+
type: { ... }
|
|
1890
|
+
}>
|
|
1806
1891
|
value?: unknown
|
|
1807
|
-
type: "text" | "number" | "boolean" | "secret"
|
|
1892
|
+
type: "text" | "number" | "boolean" | "secret" | "object"
|
|
1808
1893
|
}>
|
|
1809
1894
|
surfaces?: object
|
|
1810
1895
|
}
|
|
1811
1896
|
```
|
|
1812
1897
|
|
|
1898
|
+
### `ApiProxyComponent`
|
|
1899
|
+
|
|
1900
|
+
```ts
|
|
1901
|
+
type ApiProxyComponent = {
|
|
1902
|
+
component_type: "API_PROXY"
|
|
1903
|
+
configuration: {
|
|
1904
|
+
name: string
|
|
1905
|
+
target: string // uri
|
|
1906
|
+
auth_type: "header" | "bearer" | "oauth2" | "none"
|
|
1907
|
+
auth_header?: string
|
|
1908
|
+
token_url?: string // uri
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
```
|
|
1912
|
+
|
|
1813
1913
|
### `CustomCapabilityComponent`
|
|
1814
1914
|
|
|
1815
1915
|
```ts
|
|
@@ -2186,6 +2286,15 @@ type PortalExtensionComponent = {
|
|
|
2186
2286
|
resolved?: { ... }
|
|
2187
2287
|
use_static_ips?: { ... }
|
|
2188
2288
|
secure_proxy?: { ... }
|
|
2289
|
+
} | {
|
|
2290
|
+
id: { ... }
|
|
2291
|
+
name?: { ... }
|
|
2292
|
+
type: { ... }
|
|
2293
|
+
block_types?: { ... }
|
|
2294
|
+
auth?: { ... }
|
|
2295
|
+
call: { ... }
|
|
2296
|
+
use_static_ips?: { ... }
|
|
2297
|
+
secure_proxy?: { ... }
|
|
2189
2298
|
} | {
|
|
2190
2299
|
id: { ... }
|
|
2191
2300
|
name?: { ... }
|
|
@@ -2206,6 +2315,15 @@ type PortalExtensionComponent = {
|
|
|
2206
2315
|
resolved: { ... }
|
|
2207
2316
|
use_static_ips?: { ... }
|
|
2208
2317
|
secure_proxy?: { ... }
|
|
2318
|
+
} | {
|
|
2319
|
+
id: { ... }
|
|
2320
|
+
name?: { ... }
|
|
2321
|
+
type: { ... }
|
|
2322
|
+
auth?: { ... }
|
|
2323
|
+
call: { ... }
|
|
2324
|
+
resolved?: { ... }
|
|
2325
|
+
use_static_ips?: { ... }
|
|
2326
|
+
secure_proxy?: { ... }
|
|
2209
2327
|
}>
|
|
2210
2328
|
links?: Array<{
|
|
2211
2329
|
id: { ... }
|
|
@@ -2553,6 +2671,86 @@ type PortalExtensionHookConsumptionDataRetrieval = {
|
|
|
2553
2671
|
}
|
|
2554
2672
|
```
|
|
2555
2673
|
|
|
2674
|
+
### `PortalExtensionHookDataExport`
|
|
2675
|
+
|
|
2676
|
+
Generic data export hook. When configured on blocks that support it, the portal delegates the export action (e.g. CSV/Excel/PDF download) to the configured external source instead of generating the file itself. Can be used by any block that supports export — consumption charts, dynamic tariff charts
|
|
2677
|
+
|
|
2678
|
+
```ts
|
|
2679
|
+
type PortalExtensionHookDataExport = {
|
|
2680
|
+
id: string
|
|
2681
|
+
name?: {
|
|
2682
|
+
en?: string
|
|
2683
|
+
de: string
|
|
2684
|
+
}
|
|
2685
|
+
type: "dataExport"
|
|
2686
|
+
block_types?: string[]
|
|
2687
|
+
auth?: {
|
|
2688
|
+
method?: string
|
|
2689
|
+
url: string
|
|
2690
|
+
params?: Record<string, string>
|
|
2691
|
+
headers?: Record<string, string>
|
|
2692
|
+
body?: Record<string, unknown>
|
|
2693
|
+
cache?: {
|
|
2694
|
+
key: { ... }
|
|
2695
|
+
ttl: { ... }
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
call: {
|
|
2699
|
+
method?: string
|
|
2700
|
+
url: string
|
|
2701
|
+
params?: Record<string, string>
|
|
2702
|
+
headers?: Record<string, string>
|
|
2703
|
+
body?: Record<string, unknown>
|
|
2704
|
+
}
|
|
2705
|
+
use_static_ips?: boolean
|
|
2706
|
+
secure_proxy?: {
|
|
2707
|
+
integration_id: string // uuid
|
|
2708
|
+
use_case_slug: string
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
```
|
|
2712
|
+
|
|
2713
|
+
### `PortalExtensionHookVisualizationMetadata`
|
|
2714
|
+
|
|
2715
|
+
Hook that returns runtime metadata describing how a visualization (consumption / price / cost chart) should be rendered for a given portal context (meter, contract, etc). It is invoked by the portal before fetching data, with the same context the data hook would receive, so that the discovery shape
|
|
2716
|
+
|
|
2717
|
+
```ts
|
|
2718
|
+
type PortalExtensionHookVisualizationMetadata = {
|
|
2719
|
+
id: string
|
|
2720
|
+
name?: {
|
|
2721
|
+
en?: string
|
|
2722
|
+
de: string
|
|
2723
|
+
}
|
|
2724
|
+
type: "visualizationMetadata"
|
|
2725
|
+
auth?: {
|
|
2726
|
+
method?: string
|
|
2727
|
+
url: string
|
|
2728
|
+
params?: Record<string, string>
|
|
2729
|
+
headers?: Record<string, string>
|
|
2730
|
+
body?: Record<string, unknown>
|
|
2731
|
+
cache?: {
|
|
2732
|
+
key: { ... }
|
|
2733
|
+
ttl: { ... }
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
call: {
|
|
2737
|
+
method?: string
|
|
2738
|
+
url: string
|
|
2739
|
+
params?: Record<string, string>
|
|
2740
|
+
headers?: Record<string, string>
|
|
2741
|
+
body?: Record<string, unknown>
|
|
2742
|
+
}
|
|
2743
|
+
resolved?: {
|
|
2744
|
+
dataPath?: string
|
|
2745
|
+
}
|
|
2746
|
+
use_static_ips?: boolean
|
|
2747
|
+
secure_proxy?: {
|
|
2748
|
+
integration_id: string // uuid
|
|
2749
|
+
use_case_slug: string
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
```
|
|
2753
|
+
|
|
2556
2754
|
### `PortalExtensionHookCostDataRetrieval`
|
|
2557
2755
|
|
|
2558
2756
|
Hook that will allow using the specified source as data for consumption visualizations. This hook is triggered to fetch the data. Format of the request and response has to follow the following specification: TBD. The expected response to the call is:
|
|
@@ -2690,7 +2888,7 @@ type JourneyBlockConfig = {
|
|
|
2690
2888
|
component_tag: string
|
|
2691
2889
|
component_args?: Array<{
|
|
2692
2890
|
key: string
|
|
2693
|
-
type: "text" | "boolean" | "enum"
|
|
2891
|
+
type: "text" | "boolean" | "enum" | "block_reference"
|
|
2694
2892
|
required?: boolean
|
|
2695
2893
|
description?: {
|
|
2696
2894
|
en?: { ... }
|
|
@@ -2738,7 +2936,7 @@ type PortalBlockSurfaceConfig = {
|
|
|
2738
2936
|
```ts
|
|
2739
2937
|
type JourneyBlockComponentArgs = {
|
|
2740
2938
|
key: string
|
|
2741
|
-
type: "text" | "boolean" | "enum"
|
|
2939
|
+
type: "text" | "boolean" | "enum" | "block_reference"
|
|
2742
2940
|
required?: boolean
|
|
2743
2941
|
description?: {
|
|
2744
2942
|
en?: string
|
|
@@ -2767,6 +2965,21 @@ type BooleanArg = {
|
|
|
2767
2965
|
}
|
|
2768
2966
|
```
|
|
2769
2967
|
|
|
2968
|
+
### `BlockReferenceArg`
|
|
2969
|
+
|
|
2970
|
+
References another journey block by its ID. The configuring user picks
|
|
2971
|
+
a block from the journey via a dropdown in the journey-builder; the
|
|
2972
|
+
chosen block's ID is stored as the arg value (a string). The bundle can
|
|
2973
|
+
then call `subscribe(blockId, cb)` / `getValue(blockId)` against that ID.
|
|
2974
|
+
|
|
2975
|
+
|
|
2976
|
+
```ts
|
|
2977
|
+
type BlockReferenceArg = {
|
|
2978
|
+
type?: "block_reference"
|
|
2979
|
+
allowed_types?: string[]
|
|
2980
|
+
}
|
|
2981
|
+
```
|
|
2982
|
+
|
|
2770
2983
|
### `EnumArg`
|
|
2771
2984
|
|
|
2772
2985
|
```ts
|
|
@@ -2892,6 +3105,8 @@ type ConfigurationVersion = {
|
|
|
2892
3105
|
label?: { ... }
|
|
2893
3106
|
required?: { ... }
|
|
2894
3107
|
description?: { ... }
|
|
3108
|
+
repeatable?: { ... }
|
|
3109
|
+
fields?: { ... }
|
|
2895
3110
|
value?: { ... }
|
|
2896
3111
|
type: { ... }
|
|
2897
3112
|
}>
|
|
@@ -2928,6 +3143,20 @@ type ConfigurationVersion = {
|
|
|
2928
3143
|
}
|
|
2929
3144
|
```
|
|
2930
3145
|
|
|
3146
|
+
### `ApiProxyConfig`
|
|
3147
|
+
|
|
3148
|
+
Configuration for an API proxy component
|
|
3149
|
+
|
|
3150
|
+
```ts
|
|
3151
|
+
type ApiProxyConfig = {
|
|
3152
|
+
name: string
|
|
3153
|
+
target: string // uri
|
|
3154
|
+
auth_type: "header" | "bearer" | "oauth2" | "none"
|
|
3155
|
+
auth_header?: string
|
|
3156
|
+
token_url?: string // uri
|
|
3157
|
+
}
|
|
3158
|
+
```
|
|
3159
|
+
|
|
2931
3160
|
### `Grants`
|
|
2932
3161
|
|
|
2933
3162
|
Required grants for the app in order to call APIs for the installing tenant
|
|
@@ -2982,6 +3211,8 @@ type Installation = {
|
|
|
2982
3211
|
label?: { ... }
|
|
2983
3212
|
required?: { ... }
|
|
2984
3213
|
description?: { ... }
|
|
3214
|
+
repeatable?: { ... }
|
|
3215
|
+
fields?: { ... }
|
|
2985
3216
|
value?: { ... }
|
|
2986
3217
|
type: { ... }
|
|
2987
3218
|
}>
|
|
@@ -3046,6 +3277,8 @@ type PublicConfiguration = {
|
|
|
3046
3277
|
label?: { ... }
|
|
3047
3278
|
required?: { ... }
|
|
3048
3279
|
description?: { ... }
|
|
3280
|
+
repeatable?: { ... }
|
|
3281
|
+
fields?: { ... }
|
|
3049
3282
|
value?: { ... }
|
|
3050
3283
|
type: { ... }
|
|
3051
3284
|
}>
|
|
@@ -3163,6 +3396,8 @@ type Configuration = {
|
|
|
3163
3396
|
label?: { ... }
|
|
3164
3397
|
required?: { ... }
|
|
3165
3398
|
description?: { ... }
|
|
3399
|
+
repeatable?: { ... }
|
|
3400
|
+
fields?: { ... }
|
|
3166
3401
|
value?: { ... }
|
|
3167
3402
|
type: { ... }
|
|
3168
3403
|
}>
|
|
@@ -3231,7 +3466,7 @@ type BatchEventRequest = {
|
|
|
3231
3466
|
timestamp?: string
|
|
3232
3467
|
correlation_id?: string
|
|
3233
3468
|
event_type: "ERROR" | "WARNING" | "INFO"
|
|
3234
|
-
source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE"
|
|
3469
|
+
source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY"
|
|
3235
3470
|
actor: {
|
|
3236
3471
|
org_id?: { ... }
|
|
3237
3472
|
user_id?: { ... }
|
|
@@ -3263,7 +3498,7 @@ type AppEventData = {
|
|
|
3263
3498
|
timestamp?: string
|
|
3264
3499
|
correlation_id?: string
|
|
3265
3500
|
event_type: "ERROR" | "WARNING" | "INFO"
|
|
3266
|
-
source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE"
|
|
3501
|
+
source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY"
|
|
3267
3502
|
actor: {
|
|
3268
3503
|
org_id?: string
|
|
3269
3504
|
user_id?: string
|
|
@@ -3283,7 +3518,7 @@ type EventsQuery = {
|
|
|
3283
3518
|
preset?: "1h" | "6h" | "24h" | "7d" | "30d"
|
|
3284
3519
|
}
|
|
3285
3520
|
filters?: {
|
|
3286
|
-
source?: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE"[]
|
|
3521
|
+
source?: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY"[]
|
|
3287
3522
|
component_id?: string[]
|
|
3288
3523
|
event_type?: "ERROR" | "WARNING" | "INFO"[]
|
|
3289
3524
|
correlation_id?: string
|
|
@@ -3375,7 +3610,7 @@ type RawEvents = {
|
|
|
3375
3610
|
timestamp?: string
|
|
3376
3611
|
correlation_id?: string
|
|
3377
3612
|
event_type: "ERROR" | "WARNING" | "INFO"
|
|
3378
|
-
source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE"
|
|
3613
|
+
source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY"
|
|
3379
3614
|
actor: {
|
|
3380
3615
|
org_id?: { ... }
|
|
3381
3616
|
user_id?: { ... }
|