Skip to main content

App API

Usage​

import { epilot } from '@epilot/sdk'

epilot.authorize(() => '<token>')
const { data } = await epilot.app.getPublicFacingComponent(...)

Tree-shakeable import​

import { getClient, authorize } from '@epilot/sdk/app'

const appClient = getClient()
authorize(appClient, () => '<token>')
const { data } = await appClient.getPublicFacingComponent(...)

Operations​

App Installation

App Configuration

App Analytics

App Proxy

Schemas

getPublicFacingComponent​

Retrieve public facing components for an installed app

GET /v1/public/app/{appId}/components/{componentId}

const { data } = await client.getPublicFacingComponent({
appId: 'example',
componentId: 'example',
})
Response
{
"component": {
"component_type": "CUSTOM_JOURNEY_BLOCK",
"configuration": {
"override_dev_mode": {
"override_url": "http://localhost:3000"
},
"component_url": "https://cdn.apps.com/123/v1.0.0/bundle.js",
"component_tag": "string",
"component_args": [
{
"type": "text"
}
],
"component_size": 0,
"component_mapping": {}
}
}
}

listConfigurations​

List all app configuration metadata owned by an organization. To get full app configuration details, use the /v1/app-configurations/{appId} endpoint.

GET /v1/app-configurations

const { data } = await client.listConfigurations({
page: 1,
pageSize: 1,
})
Response
{
"configurations": [
{
"app_id": "string",
"name": "string",
"author": {
"name": "string",
"company": "string",
"email": "string"
},
"dev_mode": true,
"versions": ["string"],
"public_versions": ["string"],
"support_email": "string",
"latest_version": "string",
"category": "string",
"icon_url": "string",
"documentation_url": "string",
"description": {
"en": "string",
"de": "string"
},
"notifications": {
"email": "developer@example.com",
"events": ["app.installed"]
},
"owner_org_id": "string",
"internal": false,
"pricing": {
"pricing_type": "FREE",
"billing_frequency": "MONTHLY"
},
"configuration_audit": {
"created_at": "string",
"created_by": "string",
"updated_at": "string",
"updated_by": "string"
}
}
],
"pagination": {
"total": 0,
"page": 0,
"pageSize": 0
}
}

createConfiguration​

Create a new private app configuration. To make it public a verification process needs to be triggered

POST /v1/app-configurations

const { data } = await client.createConfiguration(
null,
{
name: 'string',
description: {
en: 'string',
de: 'string'
},
category: 'string',
logo_url_key: 'string'
},
)
Response
{
"app_id": "string"
}

listPublicConfigurations​

List all publicly available app configurations that can be installed. This endpoint returns apps that have at least one public version.

GET /v1/app-configurations/public

const { data } = await client.listPublicConfigurations({
page: 1,
pageSize: 1,
})
Response
{
"configurations": [
{
"app_id": "string",
"name": "string",
"author": {
"name": "string",
"company": "string",
"email": "string"
},
"dev_mode": true,
"versions": ["string"],
"public_versions": ["string"],
"support_email": "string",
"latest_version": "string",
"category": "string",
"icon_url": "string",
"documentation_url": "string",
"description": {
"en": "string",
"de": "string"
},
"notifications": {
"email": "developer@example.com",
"events": ["app.installed"]
},
"owner_org_id": "string",
"internal": false,
"pricing": {
"pricing_type": "FREE",
"billing_frequency": "MONTHLY"
},
"configuration_audit": {
"created_at": "string",
"created_by": "string",
"updated_at": "string",
"updated_by": "string"
}
}
],
"pagination": {
"total": 0,
"page": 0,
"pageSize": 0
}
}

getPublicConfiguration​

Retrieve the public configuration of an app to install in your tenant

GET /v1/app-configurations/public/{appId}

const { data } = await client.getPublicConfiguration({
appId: 'example',
version: 'example',
})
Response
{
"app_id": "string",
"support_email": "string",
"owner_org_id": "string",
"name": "string",
"author": {
"name": "string",
"company": "string",
"email": "string"
},
"dev_mode": true,
"category": "string",
"icon_url": "string",
"documentation_url": "string",
"description": {
"en": "string",
"de": "string"
},
"pricing": {
"pricing_type": "FREE",
"billing_frequency": "MONTHLY"
},
"components": [
{
"component_type": "CUSTOM_JOURNEY_BLOCK",
"configuration": {}
}
],
"functions": [
{
"name": "string",
"type": "workflow",
"label": {},
"description": {},
"code": "string",
"schedule": "rate(30 minutes)",
"schedule_timezone": "Europe/Berlin",
"schedule_overlap": "skip",
"secrets": ["string"]
}
],
"options": [
{
"key": "string",
"label": "string",
"required": true,
"description": "string",
"repeatable": true,
"fields": [],
"value": {},
"type": "text",
"sensitive": true,
"configured": true,
"lifted": true,
"value_updated_at": "string"
}
],
"is_beta": true,
"deprecated_at": "string",
"version": "string",
"role": {
"id": "string",
"grants": [
{}
]
},
"blueprint_ref": {
"manifest_id": "string",
"job_id": "string",
"source_blueprint_file": "string"
},
"latest_version": "string",
"public": true,
"versions": [
{
"app_id": "string",
"owner_org_id": "string",
"components": [],
"functions": [],
"options": [],
"visibility": "private",
"public": false,
"pending": false,
"version": "string",
"is_beta": true,
"deprecated_at": "string",
"changelog": "string",
"review_status": "approved",
"role": {},
"blueprint_ref": {},
"version_audit": {}
}
]
}

getConfiguration​

Retrieve a specific app configuration

GET /v1/app-configurations/{appId}

const { data } = await client.getConfiguration({
appId: 'example',
version: 'example',
})
Response
{
"app_id": "string",
"name": "string",
"author": {
"name": "string",
"company": "string",
"email": "string"
},
"dev_mode": true,
"versions": ["string"],
"public_versions": ["string"],
"support_email": "string",
"latest_version": "string",
"category": "string",
"icon_url": "string",
"documentation_url": "string",
"description": {
"en": "string",
"de": "string"
},
"notifications": {
"email": "developer@example.com",
"events": ["app.installed"]
},
"owner_org_id": "string",
"internal": false,
"pricing": {
"pricing_type": "FREE",
"billing_frequency": "MONTHLY"
},
"configuration_audit": {
"created_at": "string",
"created_by": "string",
"updated_at": "string",
"updated_by": "string"
},
"components": [
{
"component_type": "CUSTOM_JOURNEY_BLOCK",
"configuration": {}
}
],
"functions": [
{
"name": "string",
"type": "workflow",
"label": {},
"description": {},
"code": "string",
"schedule": "rate(30 minutes)",
"schedule_timezone": "Europe/Berlin",
"schedule_overlap": "skip",
"secrets": ["string"]
}
],
"options": [
{
"key": "string",
"label": "string",
"required": true,
"description": "string",
"repeatable": true,
"fields": [],
"value": {},
"type": "text",
"sensitive": true,
"configured": true,
"lifted": true,
"value_updated_at": "string"
}
],
"visibility": "private",
"public": false,
"pending": false,
"version": "string",
"is_beta": true,
"deprecated_at": "string",
"changelog": "string",
"review_status": "approved",
"role": {
"id": "string",
"grants": [
{}
]
},
"blueprint_ref": {
"manifest_id": "string",
"job_id": "string",
"source_blueprint_file": "string"
},
"version_audit": {
"created_at": "string",
"created_by": "string",
"updated_at": "string",
"updated_by": "string",
"versioned_at": "string",
"versioned_by": "string"
}
}

patchMetadata​

Patch non-versioned configuration metadata of a given app configuration.

PATCH /v1/app-configurations/{appId}

const { data } = await client.patchMetadata(
{
appId: 'example',
},
{
name: 'string',
description: {
en: 'string',
de: 'string'
},
category: 'string',
documentation_url: 'string',
notifications: {
email: 'developer@example.com',
events: ['app.installed']
},
pricing: {
pricing_type: 'FREE',
billing_frequency: 'MONTHLY'
},
logo_url_key: 'string',
support_email: 'string',
dev_mode: true
},
)

deleteConfiguration​

Delete app configuration

DELETE /v1/app-configurations/{appId}

const { data } = await client.deleteConfiguration({
appId: 'example',
})

queryEvents​

Query analytics events for a specific app with flexible filtering

POST /v1/app-configurations/{appId}/events

const { data } = await client.queryEvents(
{
appId: 'example',
},
{
time_range: {
start: '1970-01-01T00:00:00.000Z',
end: '1970-01-01T00:00:00.000Z',
preset: '1h'
},
filters: {
source: ['CUSTOM_JOURNEY_BLOCK'],
component_id: ['string'],
event_type: ['ERROR'],
correlation_id: 'string',
search: 'string'
},
aggregation: {
group_by: ['source'],
metrics: ['count']
},
pagination: {
page: 1,
page_size: 100,
before: '1970-01-01T00:00:00.000Z'
},
sort: {
field: 'timestamp',
order: 'desc'
}
},
)
Response
{
"query": {
"time_range": {
"start": "1970-01-01T00:00:00.000Z",
"end": "1970-01-01T00:00:00.000Z",
"preset": "1h"
},
"filters": {
"source": ["CUSTOM_JOURNEY_BLOCK"],
"component_id": ["string"],
"event_type": ["ERROR"],
"correlation_id": "string",
"search": "string"
},
"aggregation": {
"group_by": ["source"],
"metrics": ["count"]
},
"pagination": {
"page": 1,
"page_size": 100,
"before": "1970-01-01T00:00:00.000Z"
},
"sort": {
"field": "timestamp",
"order": "desc"
}
},
"results": {
"type": "raw",
"events": [
{
"app_id": "string",
"version": "string",
"event_id": "string",
"component_id": "string",
"timestamp": "string",
"correlation_id": "string",
"event_type": "ERROR",
"source": "CUSTOM_JOURNEY_BLOCK",
"actor": {
"org_id": "string",
"user_id": "string",
"type": "user"
},
"details": {}
}
]
},
"pagination": {
"page": 0,
"page_size": 0,
"total_items": 0,
"has_next": true
}
}

createBundleUploadUrl​

Generate a presigned URL for uploading app bundle to /<app-id>/bundle.js path

POST /v1/app-configurations/{appId}/bundle

const { data } = await client.createBundleUploadUrl(
{
appId: 'example',
},
{
version: 'string',
component_id: 'string'
},
)
Response
{
"component_id": "string",
"component_url": "string",
"upload_url": "string",
"s3ref": {
"bucket": "my-bucket",
"key": "manifest.json"
},
"expires_at": "1970-01-01T00:00:00.000Z"
}

createZipUploadUrl​

Generate a presigned URL to upload a zip file with artifacts that will be unpacked in a new directory under the /<app-id>/ path

POST /v1/app-configurations/{appId}/zip

const { data } = await client.createZipUploadUrl(
{
appId: 'example',
},
{
version: '1.0.0',
component_id: 'string',
filename: 'dist.zip'
},
)
Response
{
"component_id": "string",
"upload_url": "string",
"artifact_url": "string",
"s3ref": {
"bucket": "my-bucket",
"key": "manifest.json"
},
"expires_at": "1970-01-01T00:00:00.000Z"
}

createLogoUploadUrl​

Generate a presigned URL for uploading app logo to /<app-id>/logo.png path

POST /v1/app-configurations/{appId}/logo

const { data } = await client.createLogoUploadUrl(
{
appId: 'example',
},
{
filename: 'company-logo.png',
mime_type: 'image/png'
},
)
Response
{
"upload_url": "string",
"s3ref": {
"bucket": "my-bucket",
"key": "manifest.json"
},
"expires_at": "1970-01-01T00:00:00.000Z"
}

Delete the app logo from /<app-id>/logo.png path

DELETE /v1/app-configurations/{appId}/logo

const { data } = await client.deleteLogo({
appId: 'example',
})

listVersions​

Retrieve a list of versions for an app configuration

GET /v1/app-configurations/{appId}/versions

const { data } = await client.listVersions({
appId: 'example',
page: 1,
pageSize: 1,
})
Response
{
"versions": [
{
"app_id": "string",
"owner_org_id": "string",
"components": [],
"functions": [],
"options": [],
"visibility": "private",
"public": false,
"pending": false,
"version": "string",
"is_beta": true,
"deprecated_at": "string",
"changelog": "string",
"review_status": "approved",
"role": {},
"blueprint_ref": {},
"version_audit": {}
}
],
"pagination": {
"total": 0,
"page": 0,
"pageSize": 0
}
}

getVersion​

Retrieve a specific version of an app configuration

GET /v1/app-configurations/{appId}/versions/{version}

const { data } = await client.getVersion({
appId: 'example',
version: 'example',
})
Response
{
"app_id": "string",
"name": "string",
"author": {
"name": "string",
"company": "string",
"email": "string"
},
"dev_mode": true,
"versions": ["string"],
"public_versions": ["string"],
"support_email": "string",
"latest_version": "string",
"category": "string",
"icon_url": "string",
"documentation_url": "string",
"description": {
"en": "string",
"de": "string"
},
"notifications": {
"email": "developer@example.com",
"events": ["app.installed"]
},
"owner_org_id": "string",
"internal": false,
"pricing": {
"pricing_type": "FREE",
"billing_frequency": "MONTHLY"
},
"configuration_audit": {
"created_at": "string",
"created_by": "string",
"updated_at": "string",
"updated_by": "string"
},
"components": [
{
"component_type": "CUSTOM_JOURNEY_BLOCK",
"configuration": {}
}
],
"functions": [
{
"name": "string",
"type": "workflow",
"label": {},
"description": {},
"code": "string",
"schedule": "rate(30 minutes)",
"schedule_timezone": "Europe/Berlin",
"schedule_overlap": "skip",
"secrets": ["string"]
}
],
"options": [
{
"key": "string",
"label": "string",
"required": true,
"description": "string",
"repeatable": true,
"fields": [],
"value": {},
"type": "text",
"sensitive": true,
"configured": true,
"lifted": true,
"value_updated_at": "string"
}
],
"visibility": "private",
"public": false,
"pending": false,
"version": "string",
"is_beta": true,
"deprecated_at": "string",
"changelog": "string",
"review_status": "approved",
"role": {
"id": "string",
"grants": [
{}
]
},
"blueprint_ref": {
"manifest_id": "string",
"job_id": "string",
"source_blueprint_file": "string"
},
"version_audit": {
"created_at": "string",
"created_by": "string",
"updated_at": "string",
"updated_by": "string",
"versioned_at": "string",
"versioned_by": "string"
}
}

deleteVersion​

Delete a specific version of an app configuration

DELETE /v1/app-configurations/{appId}/versions/{version}

const { data } = await client.deleteVersion({
appId: 'example',
version: 'example',
})

patchVersion​

Patch an existing app version

PATCH /v1/app-configurations/{appId}/versions/{version}

const { data } = await client.patchVersion(
{
appId: 'example',
version: 'example',
},
{
manifest_id: 'string',
role_id: 'string',
grants: [
{
action: 'string',
resource: 'string'
}
],
functions: [
{
name: 'string',
type: 'workflow',
label: {
en: 'string',
de: 'string'
},
description: {
en: 'string',
de: 'string'
},
code: 'string',
schedule: 'rate(30 minutes)',
schedule_timezone: 'Europe/Berlin',
schedule_overlap: 'skip',
secrets: ['string']
}
],
options: [
{
key: 'string',
label: 'string',
required: true,
description: 'string',
repeatable: true,
fields: [
{
key: 'string',
label: 'string',
description: 'string',
required: true,
type: 'text'
}
],
value: {},
type: 'text',
sensitive: true,
configured: true,
lifted: true,
value_updated_at: 'string'
}
],
changelog: 'string'
},
)

getReview​

Retrieve the review status of a specific app version

GET /v1/app-configurations/{appId}/versions/{version}/review

const { data } = await client.getReview({
appId: 'example',
version: 'example',
})
Response
{
"review": {
"version": "string",
"review_status": "approved",
"requested_at": "string",
"requested_by": "string",
"technical_contact": "string",
"marketing_contact": "string",
"demo_url": "string"
}
}

createReview​

Submit an app version for review to make it public

POST /v1/app-configurations/{appId}/versions/{version}/review

const { data } = await client.createReview(
{
appId: 'example',
version: 'example',
},
{
technical_contact: 'string',
marketing_contact: 'string',
demo_url: 'string'
},
)
Response
{
"review": {
"version": "string",
"review_status": "approved",
"requested_at": "string",
"requested_by": "string",
"technical_contact": "string",
"marketing_contact": "string",
"demo_url": "string"
}
}

createComponent​

Patch an existing app version to create/add a component

POST /v1/app-configurations/{appId}/versions/{version}/components

const { data } = await client.createComponent(
{
appId: 'example',
version: 'example',
},
{
component_type: 'CUSTOM_JOURNEY_BLOCK',
configuration: {
override_dev_mode: {
override_url: 'http://localhost:3000'
},
component_url: 'https://cdn.apps.com/123/v1.0.0/bundle.js',
component_tag: 'string',
component_args: [
{
type: 'text'
}
],
component_size: 0,
component_mapping: {}
}
},
)
Response
{
"component": {
"component_type": "CUSTOM_JOURNEY_BLOCK",
"configuration": {
"override_dev_mode": {
"override_url": "http://localhost:3000"
},
"component_url": "https://cdn.apps.com/123/v1.0.0/bundle.js",
"component_tag": "string",
"component_args": [
{
"type": "text"
}
],
"component_size": 0,
"component_mapping": {}
}
}
}

patchComponent​

Patch an existing app version to update its components

PATCH /v1/app-configurations/{appId}/versions/{version}/components/{componentId}

const { data } = await client.patchComponent(
{
appId: 'example',
version: 'example',
componentId: 'example',
},
{
component_type: 'CUSTOM_JOURNEY_BLOCK',
configuration: {
override_dev_mode: {
override_url: 'http://localhost:3000'
},
component_url: 'https://cdn.apps.com/123/v1.0.0/bundle.js',
component_tag: 'string',
component_args: [
{
type: 'text'
}
],
component_size: 0,
component_mapping: {}
}
},
)

deleteComponent​

Delete a specific component from an app version

DELETE /v1/app-configurations/{appId}/versions/{version}/components/{componentId}

const { data } = await client.deleteComponent({
appId: 'example',
version: 'example',
componentId: 'example',
})

cloneVersion​

Clone an existing app version to create a new version

POST /v1/app-configurations/{appId}/versions/{sourceVersion}/clone-to/{targetVersion}

const { data } = await client.cloneVersion(
{
appId: 'example',
sourceVersion: 'example',
targetVersion: 'example',
},
{
changelog: 'string'
},
)
Response
{
"app_id": "string",
"version": "string",
"status": "pending"
}

listInstallations​

Retrieve a list of installed apps for the organization.

GET /v1/app

const { data } = await client.listInstallations({
componentType: 'example',
enabled: true,
page: 1,
pageSize: 1,
})
Response
{
"apps": [
{
"app_id": "string",
"installer_org_id": "string",
"owner_org_id": "string",
"enabled": true,
"name": "string",
"icon_url": "string",
"option_values": [],
"components": [],
"functions": [],
"options": [],
"installed_version": "string",
"role": "string",
"blueprint_ref": {},
"installation_audit": {},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
}
],
"pagination": {
"total": 0,
"page": 0,
"pageSize": 0
}
}

getInstallation​

Retrieve details of an installed app by its ID.

GET /v1/app/{appId}

const { data } = await client.getInstallation({
appId: 'example',
})
Response
{
"app_id": "string",
"installer_org_id": "string",
"owner_org_id": "string",
"enabled": true,
"name": "string",
"icon_url": "string",
"option_values": [
{
"component_id": "string",
"options": [
{
"key": "string",
"value": {}
}
]
}
],
"components": [
{
"component_type": "CUSTOM_JOURNEY_BLOCK",
"configuration": {
"override_dev_mode": {
"override_url": "http://localhost:3000"
},
"component_url": "https://cdn.apps.com/123/v1.0.0/bundle.js",
"component_tag": "string",
"component_args": [
{
"type": "text"
}
],
"component_size": 0,
"component_mapping": {}
}
}
],
"functions": [
{
"name": "string",
"type": "workflow",
"label": {
"en": "string",
"de": "string"
},
"description": {
"en": "string",
"de": "string"
},
"code": "string",
"schedule": "rate(30 minutes)",
"schedule_timezone": "Europe/Berlin",
"schedule_overlap": "skip",
"secrets": ["string"]
}
],
"options": [
{
"key": "string",
"label": "string",
"required": true,
"description": "string",
"repeatable": true,
"fields": [
{
"key": "string",
"label": "string",
"description": "string",
"required": true,
"type": "text"
}
],
"value": {},
"type": "text",
"sensitive": true,
"configured": true,
"lifted": true,
"value_updated_at": "string"
}
],
"installed_version": "string",
"role": "string",
"blueprint_ref": {
"manifest_id": "string",
"job_id": "string",
"source_blueprint_file": "string"
},
"installation_audit": {
"created_at": "string",
"created_by": "string",
"updated_at": "string",
"updated_by": "string"
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
}

install​

Upsert app installation by its ID.

POST /v1/app/{appId}

const { data } = await client.install(
{
appId: 'example',
},
{
version: 'string',
option_values: [
{
component_id: 'string',
options: [
{
key: 'string',
value: {}
}
]
}
],
_manifest: ['123e4567-e89b-12d3-a456-426614174000']
},
)
Response
{
"app_id": "string",
"installer_org_id": "string",
"owner_org_id": "string",
"enabled": true,
"name": "string",
"icon_url": "string",
"option_values": [
{
"component_id": "string",
"options": [
{
"key": "string",
"value": {}
}
]
}
],
"components": [
{
"component_type": "CUSTOM_JOURNEY_BLOCK",
"configuration": {
"override_dev_mode": {
"override_url": "http://localhost:3000"
},
"component_url": "https://cdn.apps.com/123/v1.0.0/bundle.js",
"component_tag": "string",
"component_args": [
{
"type": "text"
}
],
"component_size": 0,
"component_mapping": {}
}
}
],
"functions": [
{
"name": "string",
"type": "workflow",
"label": {
"en": "string",
"de": "string"
},
"description": {
"en": "string",
"de": "string"
},
"code": "string",
"schedule": "rate(30 minutes)",
"schedule_timezone": "Europe/Berlin",
"schedule_overlap": "skip",
"secrets": ["string"]
}
],
"options": [
{
"key": "string",
"label": "string",
"required": true,
"description": "string",
"repeatable": true,
"fields": [
{
"key": "string",
"label": "string",
"description": "string",
"required": true,
"type": "text"
}
],
"value": {},
"type": "text",
"sensitive": true,
"configured": true,
"lifted": true,
"value_updated_at": "string"
}
],
"installed_version": "string",
"role": "string",
"blueprint_ref": {
"manifest_id": "string",
"job_id": "string",
"source_blueprint_file": "string"
},
"installation_audit": {
"created_at": "string",
"created_by": "string",
"updated_at": "string",
"updated_by": "string"
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
}

patchInstallation​

Patch an installed app by its ID.

PATCH /v1/app/{appId}

const { data } = await client.patchInstallation(
{
appId: 'example',
},
{
version: 'string',
option_values: [
{
component_id: 'string',
options: [
{
key: 'string',
value: {}
}
]
}
],
_manifest: ['123e4567-e89b-12d3-a456-426614174000']
},
)

uninstall​

Uninstall an app by its ID.

DELETE /v1/app/{appId}

const { data } = await client.uninstall({
appId: 'example',
})

promoteVersion​

Update an installed app to a new version

POST /v1/app/{appId}/promote-to/{version}

const { data } = await client.promoteVersion({
appId: 'example',
version: 'example',
})
Response
{
"app_id": "string",
"installer_org_id": "string",
"owner_org_id": "string",
"enabled": true,
"name": "string",
"icon_url": "string",
"option_values": [
{
"component_id": "string",
"options": [
{
"key": "string",
"value": {}
}
]
}
],
"components": [
{
"component_type": "CUSTOM_JOURNEY_BLOCK",
"configuration": {
"override_dev_mode": {
"override_url": "http://localhost:3000"
},
"component_url": "https://cdn.apps.com/123/v1.0.0/bundle.js",
"component_tag": "string",
"component_args": [
{
"type": "text"
}
],
"component_size": 0,
"component_mapping": {}
}
}
],
"functions": [
{
"name": "string",
"type": "workflow",
"label": {
"en": "string",
"de": "string"
},
"description": {
"en": "string",
"de": "string"
},
"code": "string",
"schedule": "rate(30 minutes)",
"schedule_timezone": "Europe/Berlin",
"schedule_overlap": "skip",
"secrets": ["string"]
}
],
"options": [
{
"key": "string",
"label": "string",
"required": true,
"description": "string",
"repeatable": true,
"fields": [
{
"key": "string",
"label": "string",
"description": "string",
"required": true,
"type": "text"
}
],
"value": {},
"type": "text",
"sensitive": true,
"configured": true,
"lifted": true,
"value_updated_at": "string"
}
],
"installed_version": "string",
"role": "string",
"blueprint_ref": {
"manifest_id": "string",
"job_id": "string",
"source_blueprint_file": "string"
},
"installation_audit": {
"created_at": "string",
"created_by": "string",
"updated_at": "string",
"updated_by": "string"
},
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
}

resolveOptions​

Resolve the effective app-level options of an installation, including decrypted sensitive values (secrets). This endpoint accepts epilot internal-auth tokens exclusively (internal service calls, e.g.

POST /v1/app/{appId}/options/resolve

const { data } = await client.resolveOptions(
{
appId: 'example',
},
{
keys: ['string']
},
)
Response
{
"options": [
{
"key": "string",
"label": "string",
"required": true,
"description": "string",
"repeatable": true,
"fields": [
{
"key": "string",
"label": "string",
"description": "string",
"required": true,
"type": "text"
}
],
"value": {},
"type": "text",
"sensitive": true,
"configured": true,
"lifted": true,
"value_updated_at": "string"
}
]
}

ingestEvent​

Internal endpoint for services to submit app events for analytic purposes

POST /v1/app-events

const { data } = await client.ingestEvent(
null,
{
app_id: 'string',
version: 'string',
event_id: 'string',
component_id: 'string',
timestamp: 'string',
correlation_id: 'string',
event_type: 'ERROR',
source: 'CUSTOM_JOURNEY_BLOCK',
actor: {
org_id: 'string',
user_id: 'string',
type: 'user'
},
details: {}
},
)

publicProxyGet​

Forward a GET request to a registered proxy target from a public-facing component (e.g. journey blocks)

GET /v1/public/app/{appId}/proxy/{proxyName}/{path}

const { data } = await client.publicProxyGet({
appId: 'example',
proxyName: 'example',
path: 'example',
query: 'example',
})

publicProxyPost​

Forward a POST request to a registered proxy target from a public-facing component (e.g. journey blocks)

POST /v1/public/app/{appId}/proxy/{proxyName}/{path}

const { data } = await client.publicProxyPost(
{
appId: 'example',
proxyName: 'example',
path: 'example',
query: 'example',
},
{},
)

publicProxyPut​

Forward a PUT request to a registered proxy target from a public-facing component

PUT /v1/public/app/{appId}/proxy/{proxyName}/{path}

const { data } = await client.publicProxyPut(
{
appId: 'example',
proxyName: 'example',
path: 'example',
query: 'example',
},
{},
)

publicProxyPatch​

Forward a PATCH request to a registered proxy target from a public-facing component

PATCH /v1/public/app/{appId}/proxy/{proxyName}/{path}

const { data } = await client.publicProxyPatch(
{
appId: 'example',
proxyName: 'example',
path: 'example',
query: 'example',
},
{},
)

publicProxyDelete​

Forward a DELETE request to a registered proxy target from a public-facing component

DELETE /v1/public/app/{appId}/proxy/{proxyName}/{path}

const { data } = await client.publicProxyDelete({
appId: 'example',
proxyName: 'example',
path: 'example',
query: 'example',
})

Schemas​

Role​

type Role = {
id?: string
grants?: Array<{
action: string
resource?: string
}>
}

Options​

An option declaration — a setting the installing org fills in. Declared at app level.

type Options = {
key: string
label?: string
required?: boolean
description?: string
repeatable?: boolean
fields?: Array<{
key: string
label?: string
description?: string
required?: boolean
type: "text" | "number" | "boolean" | "secret"
}>
value?: unknown
type: "text" | "number" | "boolean" | "secret" | "object"
sensitive?: boolean
configured?: boolean
lifted?: boolean
value_updated_at?: string
}

ObjectField​

One declared field inside a type: object option. Fields are primitives — object nesting is not supported.

type ObjectField = {
key: string
label?: string
description?: string
required?: boolean
type: "text" | "number" | "boolean" | "secret"
}

Option​

type Option = {
key: string
value: unknown
}

OptionsRef​

type OptionsRef = {
component_id: string
options: Array<{
key: string
value: unknown
}>
}

S3Reference​

type S3Reference = {
bucket: string
key: string
}

ComponentType​

Type of app component

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" | "EXTERNAL_VALUES" | "APP_FUNCTION"

FunctionDefinition​

A named server-side function belonging to the app. Runs in the epilot code-execution sandbox with an installation-scoped app token. Functions with a schedule are executed automatically once per installation.

type FunctionDefinition = {
name: string
type: "workflow" | "scheduled"
label?: {
en?: string
de: string
}
description?: {
en?: string
de: string
}
code: string
schedule?: string
schedule_timezone?: string
schedule_overlap?: "skip"
secrets?: string[]
}

Author​

type Author = {
name?: string
company: string
email?: string
}

NotificationConfig​

type NotificationConfig = {
email?: string // email
events?: "app.installed" | "app.uninstalled"[]
}

NotificationEvent​

type NotificationEvent = "app.installed" | "app.uninstalled"

BaseComponentCommon​

type BaseComponentCommon = {
id: string
name?: {
en?: string
de: string
}
description?: {
en?: string
de: string
}
options?: Array<{
key: string
label?: string
required?: boolean
description?: string
repeatable?: boolean
fields?: Array<{
key: { ... }
label?: { ... }
description?: { ... }
required?: { ... }
type: { ... }
}>
value?: unknown
type: "text" | "number" | "boolean" | "secret" | "object"
sensitive?: boolean
configured?: boolean
lifted?: boolean
value_updated_at?: string
}>
uses_options?: string[]
surfaces?: object
}

BaseComponent​

type BaseComponent = {
id: string
name?: {
en?: string
de: string
}
description?: {
en?: string
de: string
}
options?: Array<{
key: string
label?: string
required?: boolean
description?: string
repeatable?: boolean
fields?: Array<{
key: { ... }
label?: { ... }
description?: { ... }
required?: { ... }
type: { ... }
}>
value?: unknown
type: "text" | "number" | "boolean" | "secret" | "object"
sensitive?: boolean
configured?: boolean
lifted?: boolean
value_updated_at?: string
}>
uses_options?: string[]
surfaces?: object
}

ApiProxyComponent​

type ApiProxyComponent = {
component_type: "API_PROXY"
configuration: {
name: string
target: string
auth_type: "header" | "bearer" | "basic" | "oauth2" | "none"
auth_header?: string
token_url?: string // uri
headers?: Record<string, string>
}
}

ExternalValuesComponent​

Exposes typed values resolved from an external system at runtime (e.g. a meter reading prediction). Consumers such as validation rules reference a hook and one of its results by id. Resolution is performed by the external-values-api on behalf of authenticated epilot 360 users and portal end customer

type ExternalValuesComponent = {
component_type: "EXTERNAL_VALUES"
configuration: {
hooks: Array<{
id: { ... }
name: { ... }
description?: { ... }
auth_type?: { ... }
auth_header?: { ... }
auth_secret?: { ... }
auth?: { ... }
call: { ... }
result: { ... }
timeout_ms?: { ... }
on_unavailable?: { ... }
contexts?: { ... }
cache?: { ... }
secure_proxy?: { ... }
}>
}
}

CustomCapabilityComponent​

type CustomCapabilityComponent = {
component_type: "CUSTOM_CAPABILITY"
configuration: {
type?: "tab" | "group" | "widget"
allowed_schemas?: string[]
}
surfaces?: {
capability_config?: {
app_url?: { ... }
zip_url?: { ... }
override_url?: { ... }
}
}
}

CustomPageComponent​

type CustomPageComponent = {
component_type: "CUSTOM_PAGE"
configuration: {
slug: string
nav_label?: string
nav_icon?: string
nav_description?: string
}
surfaces?: {
page?: {
app_url?: { ... }
zip_url?: { ... }
override_url?: { ... }
}
}
}

CustomPageConfig​

type CustomPageConfig = {
slug: string
nav_label?: string
nav_icon?: string
nav_description?: string
}

JourneyBlockComponent​

type JourneyBlockComponent = {
component_type: "CUSTOM_JOURNEY_BLOCK"
configuration: {
override_dev_mode?: {
override_url?: { ... }
}
component_url: string
component_tag: string
component_args?: Array<{
key: { ... }
type: { ... }
required?: { ... }
description?: { ... }
label: { ... }
}>
component_size?: number
component_mapping?: Record<string, "string" | "boolean" | "date" | "datetime" | "link" | "number">
}
}

PortalBlockComponent​

type PortalBlockComponent = {
component_type: "CUSTOM_PORTAL_BLOCK"
configuration: object
surfaces?: {
portal_block?: {
app_url?: { ... }
zip_url?: { ... }
override_url?: { ... }
supported_surfaces?: { ... }
}
}
}

ErpInformToolkitComponent​

type ErpInformToolkitComponent = {
component_type: "ERP_INFORM_TOOLKIT"
configuration: {
type: "inbound" | "outbound"
}
}

CustomFlowActionComponent​

type CustomFlowActionComponent = {
component_type: "CUSTOM_FLOW_ACTION"
configuration: {
name?: string
description?: string
wait_for_callback?: boolean
type: "external_integration"
external_integration_settings?: {
url?: { ... }
headers?: { ... }
}
} | {
name?: string
description?: string
wait_for_callback?: boolean
type: "function"
function_name: string
}
surfaces?: {
flow_action_config?: {
app_url?: { ... }
zip_url?: { ... }
override_url?: { ... }
}
}
}

BaseCustomActionConfig​

type BaseCustomActionConfig = {
name?: string
description?: string
wait_for_callback?: boolean
}

ExternalIntegrationCustomActionConfig​

type ExternalIntegrationCustomActionConfig = {
name?: string
description?: string
wait_for_callback?: boolean
type: "external_integration"
external_integration_settings?: {
url?: string
headers?: Record<string, unknown>
}
}

FunctionRefCustomActionConfig​

type FunctionRefCustomActionConfig = {
name?: string
description?: string
wait_for_callback?: boolean
type: "function"
function_name: string
}

CustomFlowConfig​

Configuration of a flow action component. external_integration calls an external HTTP endpoint; function runs a workflow-type app function in the epilot sandbox.

type CustomFlowConfig = {
name?: string
description?: string
wait_for_callback?: boolean
type: "external_integration"
external_integration_settings?: {
url?: string
headers?: Record<string, unknown>
}
} | {
name?: string
description?: string
wait_for_callback?: boolean
type: "function"
function_name: string
}

ExternalProductCatalogComponent​

type ExternalProductCatalogComponent = {
component_type: "EXTERNAL_PRODUCT_CATALOG"
configuration: {
hooks?: Array<{
id: { ... }
name?: { ... }
type: { ... }
auth?: { ... }
call: { ... }
} | {
id: { ... }
name?: { ... }
type: { ... }
auth?: { ... }
call: { ... }
}>
}
}

ExternalProductCatalogConfig​

type ExternalProductCatalogConfig = {
hooks?: Array<{
id: string
name?: {
en?: { ... }
de: { ... }
}
type: "products"
auth?: {
method?: { ... }
url: { ... }
params?: { ... }
headers?: { ... }
body?: { ... }
}
call: {
method?: { ... }
url: { ... }
params?: { ... }
headers?: { ... }
body?: { ... }
}
} | {
id: string
name?: {
en?: { ... }
de: { ... }
}
type: "product-recommendations"
auth?: {
method?: { ... }
url: { ... }
params?: { ... }
headers?: { ... }
body?: { ... }
}
call: {
method?: { ... }
url: { ... }
params?: { ... }
headers?: { ... }
body?: { ... }
}
}>
}

ExternalProductCatalogHookProducts​

Hook for getting products from an external catalog. This hook makes a call to retrieve product data from an external source. Check the docs or the response API call contract https://docs.api.epilot.io/pricing-api-external-catalog for more details.

type ExternalProductCatalogHookProducts = {
id: string
name?: {
en?: string
de: string
}
type: "products"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
}
}

ExternalProductCatalogHookProductRecommendations​

Hook for getting product recommendations from an external catalog. This hook makes a call to retrieve product recommendations from an external source. Check the docs or the response API call contract https://docs.api.epilot.io/pricing-api-external-catalog for more details.

type ExternalProductCatalogHookProductRecommendations = {
id: string
name?: {
en?: string
de: string
}
type: "product-recommendations"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
}
}

PortalExtensionComponent​

type PortalExtensionComponent = {
component_type: "PORTAL_EXTENSION"
configuration: {
hooks?: Array<{
id: { ... }
name?: { ... }
type: { ... }
auth?: { ... }
call: { ... }
resolved?: { ... }
use_static_ips?: { ... }
secure_proxy?: { ... }
} | {
id: { ... }
name?: { ... }
type: { ... }
auth?: { ... }
call: { ... }
resolved?: { ... }
assignment_mode?: { ... }
contact_relation_attribute?: { ... }
explanation?: { ... }
use_static_ips?: { ... }
secure_proxy?: { ... }
} | {
id: { ... }
name?: { ... }
type: { ... }
intervals?: { ... }
auth?: { ... }
call: { ... }
resolved?: { ... }
use_static_ips?: { ... }
secure_proxy?: { ... }
} | {
id: { ... }
name?: { ... }
type: { ... }
intervals?: { ... }
auth?: { ... }
call: { ... }
resolved?: { ... }
use_static_ips?: { ... }
secure_proxy?: { ... }
} | {
id: { ... }
name?: { ... }
type: { ... }
block_types?: { ... }
auth?: { ... }
call: { ... }
resolved?: { ... }
use_static_ips?: { ... }
secure_proxy?: { ... }
} | {
id: { ... }
name?: { ... }
type: { ... }
intervals?: { ... }
auth?: { ... }
call: { ... }
resolved?: { ... }
use_static_ips?: { ... }
secure_proxy?: { ... }
} | {
id: { ... }
name?: { ... }
type: { ... }
plausibility_mode?: { ... }
auth?: { ... }
call: { ... }
resolved: { ... }
use_static_ips?: { ... }
secure_proxy?: { ... }
} | {
id: { ... }
name?: { ... }
type: { ... }
auth?: { ... }
call: { ... }
resolved?: { ... }
use_static_ips?: { ... }
secure_proxy?: { ... }
} | {
id: { ... }
name?: { ... }
type: { ... }
change_mode?: { ... }
require_password_confirmation?: { ... }
explanation?: { ... }
auth?: { ... }
call: { ... }
resolved?: { ... }
secure_proxy?: { ... }
} | {
id: { ... }
name?: { ... }
type: { ... }
require_new_password?: { ... }
explanation?: { ... }
// ...
}

PortalExtensionConfig​

type PortalExtensionConfig = {
hooks?: Array<{
id: string
name?: {
en?: { ... }
de: { ... }
}
type: "registrationIdentifiersCheck"
auth?: {
method?: { ... }
url: { ... }
params?: { ... }
headers?: { ... }
body?: { ... }
cache?: { ... }
}
call: {
method?: { ... }
url: { ... }
params?: { ... }
headers: { ... }
body?: { ... }
result: { ... }
result_correlation_id?: { ... }
}
resolved?: {
result?: { ... }
result_correlation_id?: { ... }
error_message_path?: { ... }
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: { ... }
use_case_slug: { ... }
}
} | {
id: string
name?: {
en?: { ... }
de: { ... }
}
type: "contractIdentification"
auth?: {
method?: { ... }
url: { ... }
params?: { ... }
headers?: { ... }
body?: { ... }
cache?: { ... }
}
call: {
method?: { ... }
url: { ... }
params?: { ... }
headers: { ... }
body?: { ... }
result?: { ... }
result_correlation_id?: { ... }
}
resolved?: {
result?: { ... }
result_correlation_id?: { ... }
error_message_path?: { ... }
}
assignment_mode?: "contracts" | "contact_to_contracts" | "contact_to_portal_user"
contact_relation_attribute?: string
explanation?: {
en: { ... }
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: { ... }
use_case_slug: { ... }
}
} | {
id: string
name?: {
en?: { ... }
de: { ... }
}
type: "priceDataRetrieval"
intervals?: "PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y" | "custom"[]
auth?: {
method?: { ... }
url: { ... }
params?: { ... }
headers?: { ... }
body?: { ... }
cache?: { ... }
}
call: {
method?: { ... }
url: { ... }
params?: { ... }
headers?: { ... }
body?: { ... }
}
resolved?: {
data_path?: { ... }
dataPath?: { ... }
// ...
}

PortalExtensionHookRegistrationIdentifiersCheck​

Hook that replaces the built-in registration identifiers check. This hook makes a POST call whenever a user is trying to register to find the corresponding contact. The expected response to the call is:

  • 200 with contact id if exactly one contact is found
  • 404 if no contact is found or more th
type PortalExtensionHookRegistrationIdentifiersCheck = {
id: string
name?: {
en?: string
de: string
}
type: "registrationIdentifiersCheck"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers: Record<string, string>
body?: object
result: string
result_correlation_id?: string
}
resolved?: {
result?: string
result_correlation_id?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

PortalExtensionHookContractIdentification​

Hook that replaces the built-in Contract identification for self-assignment. This hook involves an HTTP request whenever a user is trying to self-assign Contract(s). The expected response http status code to the call is:

  • 200 if found
  • 404 if not found

The following assignment modes are suppo

type PortalExtensionHookContractIdentification = {
id: string
name?: {
en?: string
de: string
}
type: "contractIdentification"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers: Record<string, string>
body?: object
result?: string
result_correlation_id?: string
}
resolved?: {
result?: string
result_correlation_id?: string
error_message_path?: string
}
assignment_mode?: "contracts" | "contact_to_contracts" | "contact_to_portal_user"
contact_relation_attribute?: string
explanation?: {
en: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

PortalExtensionHookMeterReadingPlausibilityCheck​

Hook that checks the plausibility of meter readings before they are saved. This hook makes a POST call whenever a user is trying to save a meter reading. The expected response to the call is:

  • 200: If meter reading is plausible, the response should contain:
    • valid: true If meter re
type PortalExtensionHookMeterReadingPlausibilityCheck = {
id: string
name?: {
en?: string
de: string
}
type: "meterReadingPlausibilityCheck"
plausibility_mode?: "check" | "range"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
url: string
body: Record<string, unknown>
headers: Record<string, string>
}
resolved: {
data_path?: string
dataPath?: string
counter_identifiers?: Record<string, string>
valid?: string
upper_limit?: string
lower_limit?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

PortalExtensionHookPriceDataRetrieval​

Hook that will allow using the specified source as data for price 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:

  • 200 with the time series data
type PortalExtensionHookPriceDataRetrieval = {
id: string
name?: {
en?: string
de: string
}
type: "priceDataRetrieval"
intervals?: "PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y" | "custom"[]
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
}
resolved?: {
data_path?: string
dataPath?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

PortalExtensionHookConsumptionDataRetrieval​

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:

  • 200 with the time series data
type PortalExtensionHookConsumptionDataRetrieval = {
id: string
name?: {
en?: string
de: string
}
type: "consumptionDataRetrieval"
intervals?: "PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y" | "custom"[]
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
}
resolved?: {
data_path?: string
dataPath?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

PortalExtensionHookDataExport​

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

type PortalExtensionHookDataExport = {
id: string
name?: {
en?: string
de: string
}
type: "dataExport"
block_types?: string[]
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
}
resolved?: {
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

PortalExtensionHookVisualizationMetadata​

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

type PortalExtensionHookVisualizationMetadata = {
id: string
name?: {
en?: string
de: string
}
type: "visualizationMetadata"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
}
resolved?: {
data_path?: string
dataPath?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

PortalExtensionHookCostDataRetrieval​

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:

  • 200 with the time series data
type PortalExtensionHookCostDataRetrieval = {
id: string
name?: {
en?: string
de: string
}
type: "costDataRetrieval"
intervals?: "PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y" | "custom"[]
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
}
resolved?: {
data_path?: string
dataPath?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

PortalExtensionHookChangeEmail​

Hook that replaces the built-in change email functionality for portal users. When configured, the portal does not run its own change email flow. Instead, this hook makes an HTTP call to the third-party system, which is expected to handle the email change. The change_mode controls what the portal d

type PortalExtensionHookChangeEmail = {
id: string
name?: {
en?: string
de: string
}
type: "changeEmail"
change_mode?: "synchronous" | "asynchronous"
require_password_confirmation?: boolean
explanation?: {
en: string
}
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers: Record<string, string>
body?: object
}
resolved?: {
error_message_path?: string
}
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

PortalExtensionHookChangePassword​

Hook that replaces the built-in change password functionality for portal users. When configured, the portal does not change the user's password itself. Instead, this hook makes an HTTP call to the third-party system, which is expected to handle the password change (most likely by sending the user in

type PortalExtensionHookChangePassword = {
id: string
name?: {
en?: string
de: string
}
type: "changePassword"
require_new_password?: boolean
explanation?: {
en: string
}
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers: Record<string, string>
body?: object
}
resolved?: {
error_message_path?: string
}
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

PortalExtensionHookDeleteAccount​

Hook that replaces the built-in delete account functionality for portal users. When configured, the portal does not delete the user itself. Instead, this hook makes an HTTP call to the third-party system, which is expected to handle the deletion. The deletion_mode controls what the portal does aft

type PortalExtensionHookDeleteAccount = {
id: string
name?: {
en?: string
de: string
}
type: "deleteAccount"
deletion_mode?: "synchronous" | "asynchronous"
delete_contact?: "none" | "soft" | "hard"
explanation?: {
en: string
}
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers: Record<string, string>
body?: object
}
resolved?: {
error_message_path?: string
}
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}
type PortalExtensionSeamlessLink = {
id: string
name: {
en?: string
de: string
}
description?: {
en?: string
de: string
}
type: "seamless"
condition?: string
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
redirect: {
url?: string
params?: Record<string, string>
}
}

PortalExtensionAuthBlock​

type PortalExtensionAuthBlock = {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: string
ttl: string
}
}

PortalExtensionSecureProxy​

If set, requests are routed through the ERP Integration secure proxy. Mutually exclusive with use_static_ips.

type PortalExtensionSecureProxy = {
integration_id: string // uuid
use_case_slug: string
}

ExternalProductCatalogAuthBlock​

type ExternalProductCatalogAuthBlock = {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
}

OverrideDevMode​

Override URL when app is in dev mode

type OverrideDevMode = {
override_url?: string
}

JourneyBlockConfig​

type JourneyBlockConfig = {
override_dev_mode?: {
override_url?: string
}
component_url: string
component_tag: string
component_args?: Array<{
key: string
type: "text" | "boolean" | "enum" | "block_reference"
required?: boolean
description?: {
en?: { ... }
de: { ... }
}
label: {
en?: { ... }
de: { ... }
}
}>
component_size?: number
component_mapping?: Record<string, "string" | "boolean" | "date" | "datetime" | "link" | "number">
}

PortalBlockConfig​

type PortalBlockConfig = object

AppBridgeSurfaceConfig​

type AppBridgeSurfaceConfig = {
app_url?: string
zip_url?: string
override_url?: string
}

PortalBlockSurfaceConfig​

type PortalBlockSurfaceConfig = {
app_url?: string
zip_url?: string
override_url?: string
supported_surfaces?: "main" | "footer_inline" | "footer_left_absolute" | "footer_right_absolute"[]
}

JourneyBlockComponentArgs​

type JourneyBlockComponentArgs = {
key: string
type: "text" | "boolean" | "enum" | "block_reference"
required?: boolean
description?: {
en?: string
de: string
}
label: {
en?: string
de: string
}
}

TextArg​

type TextArg = {
type?: "text"
}

BooleanArg​

type BooleanArg = {
type?: "boolean"
}

BlockReferenceArg​

References another journey block by its ID. The configuring user picks a block from the journey via a dropdown in the journey-builder; the chosen block's ID is stored as the arg value (a string). The bundle can then call subscribe(blockId, cb) / getValue(blockId) against that ID.

type BlockReferenceArg = {
type?: "block_reference"
allowed_types?: string[]
}

EnumArg​

type EnumArg = {
type?: "enum"
isMulti?: boolean
options: Array<{
id: string
label: {
en?: { ... }
de: { ... }
}
}>
}

BillingFrequency​

How often the subscription is billed

type BillingFrequency = "MONTHLY" | "QUARTERLY" | "YEARLY" | "CUSTOM"

Pricing​

type Pricing = {
pricing_type?: "FREE" | "SUBSCRIPTION" | "USAGE_BASED" | "ONE_TIME" | "CUSTOM" | "UNKNOWN"
billing_frequency?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "CUSTOM"
}

Audit​

type Audit = {
created_at?: string
created_by?: string
updated_at?: string
updated_by?: string
}

Review​

type Review = {
version?: string
review_status?: "approved" | "rejected" | "pending"
requested_at?: string
requested_by?: string
technical_contact?: string
marketing_contact?: string
demo_url?: string
}

InternalReview​

Review entry including app ownership info, used by internal admin endpoints

type InternalReview = {
version?: string
review_status?: "approved" | "rejected" | "pending"
requested_at?: string
requested_by?: string
technical_contact?: string
marketing_contact?: string
demo_url?: string
app_id?: string
org_id?: string
reviewed_by?: string
reviewed_at?: string
}

ConfigurationMetadata​

Basic metadata about your app configuration which does not get versioned

type ConfigurationMetadata = {
app_id: string
name: string
author?: {
name?: string
company: string
email?: string
}
dev_mode?: boolean
versions: string[]
public_versions?: string[]
support_email?: string
latest_version: string
category?: string
icon_url?: string
documentation_url?: string
description: {
en?: string
de: string
}
notifications?: {
email?: string // email
events?: "app.installed" | "app.uninstalled"[]
}
owner_org_id: string
internal?: boolean
pricing?: {
pricing_type?: "FREE" | "SUBSCRIPTION" | "USAGE_BASED" | "ONE_TIME" | "CUSTOM" | "UNKNOWN"
billing_frequency?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "CUSTOM"
}
configuration_audit?: {
created_at?: string
created_by?: string
updated_at?: string
updated_by?: string
}
}

ConfigurationVersion​

Configuration data about your app which is versionable

type ConfigurationVersion = {
app_id: string
owner_org_id: string
components: Array<{
id: string
name?: {
en?: { ... }
de: { ... }
}
description?: {
en?: { ... }
de: { ... }
}
options?: Array<{
key: { ... }
label?: { ... }
required?: { ... }
description?: { ... }
repeatable?: { ... }
fields?: { ... }
value?: { ... }
type: { ... }
sensitive?: { ... }
configured?: { ... }
lifted?: { ... }
value_updated_at?: { ... }
}>
uses_options?: string[]
surfaces?: object
}>
functions?: Array<{
name: string
type: "workflow" | "scheduled"
label?: {
en?: { ... }
de: { ... }
}
description?: {
en?: { ... }
de: { ... }
}
code: string
schedule?: string
schedule_timezone?: string
schedule_overlap?: "skip"
secrets?: string[]
}>
options?: Array<{
key: string
label?: string
required?: boolean
description?: string
repeatable?: boolean
fields?: Array<{
key: { ... }
label?: { ... }
description?: { ... }
required?: { ... }
type: { ... }
}>
value?: unknown
type: "text" | "number" | "boolean" | "secret" | "object"
sensitive?: boolean
configured?: boolean
lifted?: boolean
value_updated_at?: string
}>
visibility?: "public" | "private"
public?: boolean
pending?: boolean
version: string
is_beta?: boolean
deprecated_at?: string
changelog?: string
review_status?: "approved" | "rejected" | "pending"
role?: {
id?: string
grants?: Array<{
action: { ... }
resource?: { ... }
}>
}
blueprint_ref?: {
manifest_id?: string
job_id?: string
source_blueprint_file?: string
}
version_audit: {
created_at?: string
created_by?: string
updated_at?: string
updated_by?: string
versioned_at?: string
versioned_by?: string
}
}

ApiProxyConfig​

Configuration for an API proxy component

type ApiProxyConfig = {
name: string
target: string
auth_type: "header" | "bearer" | "basic" | "oauth2" | "none"
auth_header?: string
token_url?: string // uri
headers?: Record<string, string>
}

ExternalValuesConfig​

Configuration for an EXTERNAL_VALUES component

type ExternalValuesConfig = {
hooks: Array<{
id: string
name: {
en?: { ... }
de: { ... }
}
description?: {
en?: { ... }
de: { ... }
}
auth_type?: "none" | "header" | "bearer" | "hmac"
auth_header?: string
auth_secret?: string
auth?: {
method?: { ... }
url: { ... }
params?: { ... }
headers?: { ... }
body?: { ... }
cache?: { ... }
}
call: {
method?: { ... }
url: { ... }
headers?: { ... }
params?: { ... }
body?: { ... }
}
result: Array<{
id: { ... }
type: { ... }
name: { ... }
template?: { ... }
path?: { ... }
jsonata?: { ... }
}>
timeout_ms?: number
on_unavailable?: "skip" | "block"
contexts?: Array<{
type: { ... }
schema: { ... }
} | {
type: { ... }
name: { ... }
value_type: { ... }
}>
cache?: {
ttl_seconds: { ... }
key?: { ... }
}
secure_proxy?: {
integration_id: { ... }
use_case_slug: { ... }
}
}>
}

ExternalValuesHook​

One external call that returns one or more typed results. Interpolated templates (Liquid) have access to Context, Consumer, Options, Env and — for result templates — Response and AuthResponse (each is also available snake_case, e.g. {{ context.contract }}).

Context is the name → v

type ExternalValuesHook = {
id: string
name: {
en?: string
de: string
}
description?: {
en?: string
de: string
}
auth_type?: "none" | "header" | "bearer" | "hmac"
auth_header?: string
auth_secret?: string
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, unknown>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: "GET" | "POST" | "PUT" | "PATCH"
url: string
headers?: Record<string, string>
params?: Record<string, string>
body?: Record<string, unknown>
}
result: Array<{
id: string
type: "number" | "text" | "date" | "boolean"
name: {
en?: { ... }
de: { ... }
}
template?: string
path?: string
jsonata?: string
}>
timeout_ms?: number
on_unavailable?: "skip" | "block"
contexts?: Array<{
type: "entity"
schema: string
} | {
type: "value"
name: string
value_type: "number" | "text" | "date" | "boolean"
}>
cache?: {
ttl_seconds: number
key?: string
}
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ContextRequirement​

A requirement a hook reads from Context, discriminated by type. More types will be added later; consumers must ignore types they do not know.

type ContextRequirement = {
type: "entity"
schema: string
} | {
type: "value"
name: string
value_type: "number" | "text" | "date" | "boolean"
}

EntityContextRequirement​

The consumer supplies the bound entities of schema under Context.<schema>.

type EntityContextRequirement = {
type: "entity"
schema: string
}

ValueContextRequirement​

The consumer supplies one scalar value under Context.<name>, e.g. a date the customer entered in a journey block. A value input is optional: the consumer sends it when it has a value and omits it otherwise, so the hook's templates must cope with its absence, e.g. `{{ Context.reading_date | default

type ValueContextRequirement = {
type: "value"
name: string
value_type: "number" | "text" | "date" | "boolean"
}

ExternalValuesResult​

A single typed value extracted from the hook response. Exactly one of template, path or jsonata must be set.

type ExternalValuesResult = {
id: string
type: "number" | "text" | "date" | "boolean"
name: {
en?: string
de: string
}
template?: string
path?: string
jsonata?: string
}

Grants​

Required grants for the app in order to call APIs for the installing tenant

type Grants = Array<{
action: string
resource?: string
}>

BlueprintRef​

type BlueprintRef = {
manifest_id?: string
job_id?: string
source_blueprint_file?: string
}

Installation​

Information about the installed app. Has configuration data of the installed version

type Installation = {
app_id: string
installer_org_id: string
owner_org_id?: string
enabled: boolean
name: string
icon_url?: string
option_values?: Array<{
component_id: string
options: Array<{
key: { ... }
value: { ... }
}>
}>
components: Array<{
id: string
name?: {
en?: { ... }
de: { ... }
}
description?: {
en?: { ... }
de: { ... }
}
options?: Array<{
key: { ... }
label?: { ... }
required?: { ... }
description?: { ... }
repeatable?: { ... }
fields?: { ... }
value?: { ... }
type: { ... }
sensitive?: { ... }
configured?: { ... }
lifted?: { ... }
value_updated_at?: { ... }
}>
uses_options?: string[]
surfaces?: object
}>
functions?: Array<{
name: string
type: "workflow" | "scheduled"
label?: {
en?: { ... }
de: { ... }
}
description?: {
en?: { ... }
de: { ... }
}
code: string
schedule?: string
schedule_timezone?: string
schedule_overlap?: "skip"
secrets?: string[]
}>
options?: Array<{
key: string
label?: string
required?: boolean
description?: string
repeatable?: boolean
fields?: Array<{
key: { ... }
label?: { ... }
description?: { ... }
required?: { ... }
type: { ... }
}>
value?: unknown
type: "text" | "number" | "boolean" | "secret" | "object"
sensitive?: boolean
configured?: boolean
lifted?: boolean
value_updated_at?: string
}>
installed_version: string
role?: string
blueprint_ref?: {
manifest_id?: string
job_id?: string
source_blueprint_file?: string
}
installation_audit?: {
created_at?: string
created_by?: string
updated_at?: string
updated_by?: string
}
_manifest?: string // uuid[]
}

PublicConfiguration​

Public configuration of the published app

type PublicConfiguration = {
app_id: string
support_email?: string
owner_org_id: string
name: string
author?: {
name?: string
company: string
email?: string
}
dev_mode?: boolean
category?: string
icon_url?: string
documentation_url?: string
description?: {
en?: string
de: string
}
pricing?: {
pricing_type?: "FREE" | "SUBSCRIPTION" | "USAGE_BASED" | "ONE_TIME" | "CUSTOM" | "UNKNOWN"
billing_frequency?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "CUSTOM"
}
components: Array<{
id: string
name?: {
en?: { ... }
de: { ... }
}
description?: {
en?: { ... }
de: { ... }
}
options?: Array<{
key: { ... }
label?: { ... }
required?: { ... }
description?: { ... }
repeatable?: { ... }
fields?: { ... }
value?: { ... }
type: { ... }
sensitive?: { ... }
configured?: { ... }
lifted?: { ... }
value_updated_at?: { ... }
}>
uses_options?: string[]
surfaces?: object
}>
functions?: Array<{
name: string
type: "workflow" | "scheduled"
label?: {
en?: { ... }
de: { ... }
}
description?: {
en?: { ... }
de: { ... }
}
code: string
schedule?: string
schedule_timezone?: string
schedule_overlap?: "skip"
secrets?: string[]
}>
options?: Array<{
key: string
label?: string
required?: boolean
description?: string
repeatable?: boolean
fields?: Array<{
key: { ... }
label?: { ... }
description?: { ... }
required?: { ... }
type: { ... }
}>
value?: unknown
type: "text" | "number" | "boolean" | "secret" | "object"
sensitive?: boolean
configured?: boolean
lifted?: boolean
value_updated_at?: string
}>
is_beta?: boolean
deprecated_at?: string
version: string
role?: {
id?: string
grants?: Array<{
action: { ... }
resource?: { ... }
}>
}
blueprint_ref?: {
manifest_id?: string
job_id?: string
source_blueprint_file?: string
// ...
}

Configuration​

Configuration of the published app

type Configuration = {
app_id: string
name: string
author?: {
name?: string
company: string
email?: string
}
dev_mode?: boolean
versions: string[]
public_versions?: string[]
support_email?: string
latest_version: string
category?: string
icon_url?: string
documentation_url?: string
description: {
en?: string
de: string
}
notifications?: {
email?: string // email
events?: "app.installed" | "app.uninstalled"[]
}
owner_org_id: string
internal?: boolean
pricing?: {
pricing_type?: "FREE" | "SUBSCRIPTION" | "USAGE_BASED" | "ONE_TIME" | "CUSTOM" | "UNKNOWN"
billing_frequency?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "CUSTOM"
}
configuration_audit?: {
created_at?: string
created_by?: string
updated_at?: string
updated_by?: string
}
components: Array<{
id: string
name?: {
en?: { ... }
de: { ... }
}
description?: {
en?: { ... }
de: { ... }
}
options?: Array<{
key: { ... }
label?: { ... }
required?: { ... }
description?: { ... }
repeatable?: { ... }
fields?: { ... }
value?: { ... }
type: { ... }
sensitive?: { ... }
configured?: { ... }
lifted?: { ... }
value_updated_at?: { ... }
}>
uses_options?: string[]
surfaces?: object
}>
functions?: Array<{
name: string
type: "workflow" | "scheduled"
label?: {
en?: { ... }
de: { ... }
}
description?: {
en?: { ... }
de: { ... }
}
code: string
schedule?: string
schedule_timezone?: string
schedule_overlap?: "skip"
secrets?: string[]
}>
options?: Array<{
key: string
label?: string
required?: boolean
description?: string
repeatable?: boolean
fields?: Array<{
key: { ... }
label?: { ... }
description?: { ... }
required?: { ... }
type: { ... }
}>
value?: unknown
type: "text" | "number" | "boolean" | "secret" | "object"
sensitive?: boolean
configured?: boolean
lifted?: boolean
value_updated_at?: string
}>
// ...
}

TranslatedString​

type TranslatedString = {
en?: string
de: string
}

CallerIdentity​

type CallerIdentity = {
name?: unknown
org_id: string
user_id?: string
token_id?: string
}

BatchEventRequest​

type BatchEventRequest = {
events: Array<{
app_id: string
version: string
event_id?: string
component_id: string
timestamp?: string
correlation_id?: string
event_type: "ERROR" | "WARNING" | "INFO"
source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY" | "EXTERNAL_VALUES" | "APP_FUNCTION"
actor: {
org_id?: { ... }
user_id?: { ... }
type: { ... }
}
details?: Record<string, unknown>
}>
}

Actor​

type Actor = {
org_id?: string
user_id?: string
type: "user" | "system"
}

AppEventData​

type AppEventData = {
app_id: string
version: string
event_id?: string
component_id: string
timestamp?: string
correlation_id?: string
event_type: "ERROR" | "WARNING" | "INFO"
source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY" | "EXTERNAL_VALUES" | "APP_FUNCTION"
actor: {
org_id?: string
user_id?: string
type: "user" | "system"
}
details?: Record<string, unknown>
}

EventsQuery​

type EventsQuery = {
time_range?: {
start?: string // date-time
end?: string // date-time
preset?: "1h" | "6h" | "24h" | "7d" | "30d"
}
filters?: {
source?: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY" | "EXTERNAL_VALUES" | "APP_FUNCTION"[]
component_id?: string[]
event_type?: "ERROR" | "WARNING" | "INFO"[]
correlation_id?: string
search?: string
}
aggregation?: {
group_by?: "source" | "component_id" | "event_type" | "hour" | "day"[]
metrics?: "count" | "error_rate" | "unique_users"[]
}
pagination?: {
page?: number
page_size?: number
before?: string // date-time
}
sort?: {
field?: "timestamp" | "event_type" | "component_id"
order?: "asc" | "desc"
}
}

EventsQueryResponse​

type EventsQueryResponse = {
query?: {
time_range?: {
start?: { ... }
end?: { ... }
preset?: { ... }
}
filters?: {
source?: { ... }
component_id?: { ... }
event_type?: { ... }
correlation_id?: { ... }
search?: { ... }
}
aggregation?: {
group_by?: { ... }
metrics?: { ... }
}
pagination?: {
page?: { ... }
page_size?: { ... }
before?: { ... }
}
sort?: {
field?: { ... }
order?: { ... }
}
}
results?: {
type?: "raw"
events?: Array<{
app_id: { ... }
version: { ... }
event_id?: { ... }
component_id: { ... }
timestamp?: { ... }
correlation_id?: { ... }
event_type: { ... }
source: { ... }
actor: { ... }
details?: { ... }
}>
} | {
type?: "aggregated"
groups?: Array<{
dimensions?: { ... }
metrics?: { ... }
}>
}
pagination?: {
page?: number
page_size?: number
total_items?: number
has_next?: boolean
}
}

RawEvents​

type RawEvents = {
type?: "raw"
events?: Array<{
app_id: string
version: string
event_id?: string
component_id: string
timestamp?: string
correlation_id?: string
event_type: "ERROR" | "WARNING" | "INFO"
source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY" | "EXTERNAL_VALUES" | "APP_FUNCTION"
actor: {
org_id?: { ... }
user_id?: { ... }
type: { ... }
}
details?: Record<string, unknown>
}>
}

AggregatedEvents​

type AggregatedEvents = {
type?: "aggregated"
groups?: Array<{
dimensions?: Record<string, unknown>
metrics?: {
count?: { ... }
error_rate?: { ... }
}
}>
}