@epilot/sdk 2.4.0 → 2.4.1
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/access-token-runtime.json +1 -0
- package/definitions/access-token.json +663 -0
- package/definitions/address-runtime.json +1 -0
- package/definitions/address-suggestions-runtime.json +1 -0
- package/definitions/address-suggestions.json +582 -0
- package/definitions/address.json +578 -0
- package/definitions/ai-agents-runtime.json +1 -0
- package/definitions/ai-agents.json +1711 -0
- package/definitions/app-runtime.json +1 -0
- package/definitions/app.json +4493 -0
- package/definitions/audit-logs-runtime.json +1 -0
- package/definitions/audit-logs.json +305 -0
- package/definitions/automation-runtime.json +1 -0
- package/definitions/automation.json +5028 -0
- package/definitions/billing-runtime.json +1 -0
- package/definitions/billing.json +837 -0
- package/definitions/blueprint-manifest-runtime.json +1 -0
- package/definitions/blueprint-manifest.json +4846 -0
- package/definitions/configuration-hub-runtime.json +1 -0
- package/definitions/configuration-hub.json +611 -0
- package/definitions/consent-runtime.json +1 -0
- package/definitions/consent.json +344 -0
- package/definitions/customer-portal-runtime.json +1 -0
- package/definitions/customer-portal.json +16045 -0
- package/definitions/dashboard-runtime.json +1 -0
- package/definitions/dashboard.json +484 -0
- package/definitions/data-governance-runtime.json +1 -0
- package/definitions/data-governance.json +1126 -0
- package/definitions/deduplication-runtime.json +1 -0
- package/definitions/deduplication.json +314 -0
- package/definitions/design-runtime.json +1 -0
- package/definitions/design.json +1722 -0
- package/definitions/document-runtime.json +1 -0
- package/definitions/document.json +758 -0
- package/definitions/email-settings-runtime.json +1 -0
- package/definitions/email-settings.json +2777 -0
- package/definitions/email-template-runtime.json +1 -0
- package/definitions/email-template.json +1441 -0
- package/definitions/entity-mapping-runtime.json +1 -0
- package/definitions/entity-mapping.json +1642 -0
- package/definitions/entity-runtime.json +1 -0
- package/definitions/entity.json +10861 -0
- package/definitions/environments-runtime.json +1 -0
- package/definitions/environments.json +539 -0
- package/definitions/event-catalog-runtime.json +1 -0
- package/definitions/event-catalog.json +1051 -0
- package/definitions/file-runtime.json +1 -0
- package/definitions/file.json +2842 -0
- package/definitions/iban-runtime.json +1 -0
- package/definitions/iban.json +132 -0
- package/definitions/integration-toolkit-runtime.json +1 -0
- package/definitions/integration-toolkit.json +7998 -0
- package/definitions/journey-runtime.json +1 -0
- package/definitions/journey.json +2603 -0
- package/definitions/kanban-runtime.json +1 -0
- package/definitions/kanban.json +1505 -0
- package/definitions/message-runtime.json +1 -0
- package/definitions/message.json +2872 -0
- package/definitions/metering-runtime.json +1 -0
- package/definitions/metering.json +2321 -0
- package/definitions/notes-runtime.json +1 -0
- package/definitions/notes.json +1531 -0
- package/definitions/notification-runtime.json +1 -0
- package/definitions/notification.json +1425 -0
- package/definitions/organization-runtime.json +1 -0
- package/definitions/organization.json +1192 -0
- package/definitions/partner-directory-runtime.json +1 -0
- package/definitions/partner-directory.json +2284 -0
- package/definitions/permissions-runtime.json +1 -0
- package/definitions/permissions.json +1515 -0
- package/definitions/pricing-runtime.json +1 -0
- package/definitions/pricing-tier-runtime.json +1 -0
- package/definitions/pricing-tier.json +105 -0
- package/definitions/pricing.json +9884 -0
- package/definitions/purpose-runtime.json +1 -0
- package/definitions/purpose.json +524 -0
- package/definitions/query-runtime.json +1 -0
- package/definitions/query.json +3178 -0
- package/definitions/sandbox-runtime.json +1 -0
- package/definitions/sandbox.json +453 -0
- package/definitions/sharing-runtime.json +1 -0
- package/definitions/sharing.json +956 -0
- package/definitions/submission-runtime.json +1 -0
- package/definitions/submission.json +313 -0
- package/definitions/targeting-runtime.json +1 -0
- package/definitions/targeting.json +1474 -0
- package/definitions/template-variables-runtime.json +1 -0
- package/definitions/template-variables.json +1416 -0
- package/definitions/user-runtime.json +1 -0
- package/definitions/user.json +2460 -0
- package/definitions/validation-rules-runtime.json +1 -0
- package/definitions/validation-rules.json +1491 -0
- package/definitions/webhooks-runtime.json +1 -0
- package/definitions/webhooks.json +1634 -0
- package/definitions/workflow-definition-runtime.json +1 -0
- package/definitions/workflow-definition.json +3354 -0
- package/definitions/workflow-runtime.json +1 -0
- package/definitions/workflow.json +4272 -0
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.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 +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/bin/cli.js +1 -1
- package/dist/{chunk-DAFBUTK6.js → chunk-O2AUZKUD.js} +1 -1
- package/dist/{chunk-Z33PZNHV.cjs → chunk-OK74PNHY.cjs} +1 -1
- package/dist/entity-H6ESUH3Y.js +7 -0
- package/dist/entity-ZVDKWQSF.cjs +7 -0
- package/dist/{entity.d-B43ezu-V.d.cts → entity.d-BHR9dEon.d.cts} +843 -165
- package/dist/{entity.d-B43ezu-V.d.ts → entity.d-BHR9dEon.d.ts} +843 -165
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{js-yaml-DLCVPJ7G.js → js-yaml-UPZKYVRY.js} +15 -17
- package/docs/entity.md +202 -12
- package/package.json +1 -1
- package/dist/entity-VDUN7SYC.cjs +0 -7
- package/dist/entity-WWM2Z7BU.js +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"s":"https://configuration-hub.sls.epilot.io","o":[["listConfigTypes","get","/v1/configs/types"],["listConfigs","get","/v1/configs/{type}",[["ConfigType"],["CursorParam"],["SizeParam"],["q","q"],["updated_after","q"],["updated_before","q"],["purposes","q"],["blueprint_ids","q"],["sort","q"],["active_only","q"]]],["getConfigDependencies","get","/v1/configs/{type}/{id}/dependencies",[["ConfigType"],["ConfigId"],["CursorParam"],["SizeParam"]]],["getConfigUsedBy","get","/v1/configs/{type}/{id}/used_by",[["ConfigType"],["ConfigId"]]],["getIndex","get","/v1/configs/index"],["rebuildIndex","post","/v1/configs/index:rebuild"]],"v":"3.0.3","cp":{"ConfigType":["type","p",true],"ConfigId":["id","p",true],"CursorParam":["cursor","q"],"SizeParam":["size","q"]}}
|
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.3",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Configuration Hub API",
|
|
5
|
+
"description": "Lightweight index API for exploring epilot organization configurations.\n\nProvides a unified tree view across all config types. Returns summary metadata only —\nthe frontend calls individual epilot APIs directly (via @epilot/sdk) for full config payloads.\n\n## Source APIs per resource type\n\nEach resource type maps to a specific epilot API. The frontend should use the corresponding\n@epilot/sdk client to fetch full config details (e.g., for the side panel JSON view).\n\n| Resource Type | Source API | SDK Client |\n|---|---|---|\n| `journey` | journey.sls.epilot.io | `@epilot/sdk/journey` |\n| `automation_flow` | automation.sls.epilot.io | `@epilot/sdk/automation` |\n| `workflow_definition` | workflow-definition.sls.epilot.io | `@epilot/sdk/workflow-definition` |\n| `closing_reason` | workflow-definition.sls.epilot.io | `@epilot/sdk/workflow-definition` |\n| `flow_template` | workflow-definition.sls.epilot.io | `@epilot/sdk/workflow-definition` |\n| `schema` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `taxonomy` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `taxonomy_classification` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `emailtemplate` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `product` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `price` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `tax` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `coupon` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `file` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `document_template` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `webhook` | webhooks.sls.epilot.io | `@epilot/sdk/webhooks` |\n| `saved_view` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `dashboard` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `kanban` | kanban.sls.epilot.io | `@epilot/sdk/kanban` |\n| `role` | permissions.sls.epilot.io | `@epilot/sdk/permissions` |\n| `usergroup` | user.sls.epilot.io | `@epilot/sdk/user` |\n| `validation_rule` | entity.sls.epilot.io | `@epilot/sdk/validation-rules` |\n| `integration` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `app` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `designbuilder` | design-builder-api.sls.epilot.io | `@epilot/sdk/design` |\n| `notification_template` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `custom_variable` | entity.sls.epilot.io | `@epilot/sdk/template-variables` |\n| `environment_variable` | environments.sls.epilot.io | `@epilot/sdk/environments` |\n| `entity_mapping` | entity-mapping.sls.epilot.io | `@epilot/sdk/entity-mapping` |\n| `portal_config` | customer-portal.sls.epilot.io | `@epilot/sdk/customer-portal` |\n| `target` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `product_recommendation` | entity.sls.epilot.io | `@epilot/sdk/entity` |\n| `access_token` | access-token.sls.epilot.io | `@epilot/sdk/access-token` |\n",
|
|
6
|
+
"version": "0.2.0"
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://configuration-hub.sls.epilot.io"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"url": "https://configuration-hub.dev.sls.epilot.io",
|
|
14
|
+
"description": "Dev"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"security": [
|
|
18
|
+
{
|
|
19
|
+
"EpilotAuth": []
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"tags": [
|
|
23
|
+
{
|
|
24
|
+
"name": "Configs",
|
|
25
|
+
"description": "Configuration tree index"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"paths": {
|
|
29
|
+
"/v1/configs/types": {
|
|
30
|
+
"get": {
|
|
31
|
+
"operationId": "listConfigTypes",
|
|
32
|
+
"summary": "listConfigTypes",
|
|
33
|
+
"description": "Returns the static list of available configuration types with display metadata.\nThis is a cheap call — no fan-out to downstream APIs. Returns all known types\nwith labels and icons. The frontend should then call `listConfigs` separately\nfor each type it wants to load.\n",
|
|
34
|
+
"tags": [
|
|
35
|
+
"Configs"
|
|
36
|
+
],
|
|
37
|
+
"responses": {
|
|
38
|
+
"200": {
|
|
39
|
+
"description": "Available config types",
|
|
40
|
+
"content": {
|
|
41
|
+
"application/json": {
|
|
42
|
+
"schema": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"results": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"$ref": "#/components/schemas/ConfigTypeInfo"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"results"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"/v1/configs/{type}": {
|
|
63
|
+
"get": {
|
|
64
|
+
"operationId": "listConfigs",
|
|
65
|
+
"summary": "listConfigs",
|
|
66
|
+
"description": "List configs of a given type with pagination. Returns summary metadata only\n(not full payloads). The frontend calls this per type folder when expanding.\n\nSupports offset-based pagination via `from` and `size` parameters.\n",
|
|
67
|
+
"tags": [
|
|
68
|
+
"Configs"
|
|
69
|
+
],
|
|
70
|
+
"parameters": [
|
|
71
|
+
{
|
|
72
|
+
"$ref": "#/components/parameters/ConfigType"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"$ref": "#/components/parameters/CursorParam"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"$ref": "#/components/parameters/SizeParam"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "q",
|
|
82
|
+
"in": "query",
|
|
83
|
+
"description": "Search query to filter configs by name/title",
|
|
84
|
+
"schema": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "updated_after",
|
|
90
|
+
"in": "query",
|
|
91
|
+
"description": "Filter configs updated after this date (ISO 8601)",
|
|
92
|
+
"schema": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"format": "date-time"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "updated_before",
|
|
99
|
+
"in": "query",
|
|
100
|
+
"description": "Filter configs updated before this date (ISO 8601)",
|
|
101
|
+
"schema": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"format": "date-time"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "purposes",
|
|
108
|
+
"in": "query",
|
|
109
|
+
"description": "Filter by purpose classification IDs (comma-separated)",
|
|
110
|
+
"schema": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "blueprint_ids",
|
|
116
|
+
"in": "query",
|
|
117
|
+
"description": "Filter by installed-blueprint IDs (comma-separated). Only configs installed by one of the listed blueprints are returned.",
|
|
118
|
+
"schema": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "sort",
|
|
124
|
+
"in": "query",
|
|
125
|
+
"description": "Sort order. `updated_at` (default) sorts by most recently modified.\n`usage` sorts by the type-specific usage metric descending\n(submissions for journeys, executions for automations, entities for schemas, etc.).\n",
|
|
126
|
+
"schema": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"enum": [
|
|
129
|
+
"updated_at",
|
|
130
|
+
"usage"
|
|
131
|
+
],
|
|
132
|
+
"default": "updated_at"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "active_only",
|
|
137
|
+
"in": "query",
|
|
138
|
+
"description": "If true, filter out configs that are explicitly inactive (active=false).\nConfigs with no `active` field are always included.\n",
|
|
139
|
+
"schema": {
|
|
140
|
+
"type": "boolean"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"responses": {
|
|
145
|
+
"200": {
|
|
146
|
+
"description": "Paginated config list",
|
|
147
|
+
"content": {
|
|
148
|
+
"application/json": {
|
|
149
|
+
"schema": {
|
|
150
|
+
"$ref": "#/components/schemas/ConfigListResponse"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"400": {
|
|
156
|
+
"description": "Invalid config type",
|
|
157
|
+
"content": {
|
|
158
|
+
"application/json": {
|
|
159
|
+
"schema": {
|
|
160
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"/v1/configs/{type}/{id}/dependencies": {
|
|
169
|
+
"get": {
|
|
170
|
+
"operationId": "getConfigDependencies",
|
|
171
|
+
"summary": "getConfigDependencies",
|
|
172
|
+
"description": "Get configs that are referenced by the given config.\nUsed to render children when expanding a config node in the tree.\n\nResolves dependencies by fetching the config payload server-side and scanning\nfor references (UUIDs, source IDs, slug-based references).\n",
|
|
173
|
+
"tags": [
|
|
174
|
+
"Configs"
|
|
175
|
+
],
|
|
176
|
+
"parameters": [
|
|
177
|
+
{
|
|
178
|
+
"$ref": "#/components/parameters/ConfigType"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"$ref": "#/components/parameters/ConfigId"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"$ref": "#/components/parameters/CursorParam"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"$ref": "#/components/parameters/SizeParam"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"responses": {
|
|
191
|
+
"200": {
|
|
192
|
+
"description": "Paginated list of referenced configs",
|
|
193
|
+
"content": {
|
|
194
|
+
"application/json": {
|
|
195
|
+
"schema": {
|
|
196
|
+
"$ref": "#/components/schemas/ConfigDependenciesResponse"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"404": {
|
|
202
|
+
"description": "Config not found",
|
|
203
|
+
"content": {
|
|
204
|
+
"application/json": {
|
|
205
|
+
"schema": {
|
|
206
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"/v1/configs/{type}/{id}/used_by": {
|
|
215
|
+
"get": {
|
|
216
|
+
"operationId": "getConfigUsedBy",
|
|
217
|
+
"summary": "getConfigUsedBy",
|
|
218
|
+
"description": "Get configs that reference the given config (reverse dependencies).\nScans the indexed config items for references to this config's ID or aliases.\n",
|
|
219
|
+
"tags": [
|
|
220
|
+
"Configs"
|
|
221
|
+
],
|
|
222
|
+
"parameters": [
|
|
223
|
+
{
|
|
224
|
+
"$ref": "#/components/parameters/ConfigType"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"$ref": "#/components/parameters/ConfigId"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"responses": {
|
|
231
|
+
"200": {
|
|
232
|
+
"description": "List of configs that reference this config",
|
|
233
|
+
"content": {
|
|
234
|
+
"application/json": {
|
|
235
|
+
"schema": {
|
|
236
|
+
"$ref": "#/components/schemas/ConfigDependenciesResponse"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"/v1/configs/index": {
|
|
245
|
+
"get": {
|
|
246
|
+
"operationId": "getIndex",
|
|
247
|
+
"summary": "getIndex",
|
|
248
|
+
"description": "Return the current index build state for the caller's organization.\nClients poll this to decide whether to show a \"building\" indicator\nand when to refetch data.\n",
|
|
249
|
+
"tags": [
|
|
250
|
+
"Configs"
|
|
251
|
+
],
|
|
252
|
+
"responses": {
|
|
253
|
+
"200": {
|
|
254
|
+
"description": "Current index status",
|
|
255
|
+
"content": {
|
|
256
|
+
"application/json": {
|
|
257
|
+
"schema": {
|
|
258
|
+
"$ref": "#/components/schemas/IndexStatusResponse"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"/v1/configs/index:rebuild": {
|
|
267
|
+
"post": {
|
|
268
|
+
"operationId": "rebuildIndex",
|
|
269
|
+
"summary": "rebuildIndex",
|
|
270
|
+
"description": "Rebuild the configuration index for the caller's organization.\nFire-and-forget: invokes the async worker and returns immediately.\nA new rebuild will cancel any in-flight build (see `build_token`).\n",
|
|
271
|
+
"tags": [
|
|
272
|
+
"Configs"
|
|
273
|
+
],
|
|
274
|
+
"responses": {
|
|
275
|
+
"200": {
|
|
276
|
+
"description": "Index build status",
|
|
277
|
+
"content": {
|
|
278
|
+
"application/json": {
|
|
279
|
+
"schema": {
|
|
280
|
+
"$ref": "#/components/schemas/IndexRebuildResponse"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"components": {
|
|
290
|
+
"securitySchemes": {
|
|
291
|
+
"EpilotAuth": {
|
|
292
|
+
"type": "http",
|
|
293
|
+
"scheme": "bearer",
|
|
294
|
+
"description": "epilot JWT auth token"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"parameters": {
|
|
298
|
+
"ConfigType": {
|
|
299
|
+
"name": "type",
|
|
300
|
+
"in": "path",
|
|
301
|
+
"required": true,
|
|
302
|
+
"description": "Configuration resource type",
|
|
303
|
+
"schema": {
|
|
304
|
+
"$ref": "#/components/schemas/ResourceType"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"ConfigId": {
|
|
308
|
+
"name": "id",
|
|
309
|
+
"in": "path",
|
|
310
|
+
"required": true,
|
|
311
|
+
"description": "Configuration resource ID",
|
|
312
|
+
"schema": {
|
|
313
|
+
"type": "string"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"CursorParam": {
|
|
317
|
+
"name": "cursor",
|
|
318
|
+
"in": "query",
|
|
319
|
+
"description": "Opaque cursor for fetching the next page. Omit for the first page.",
|
|
320
|
+
"schema": {
|
|
321
|
+
"type": "string"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"SizeParam": {
|
|
325
|
+
"name": "size",
|
|
326
|
+
"in": "query",
|
|
327
|
+
"description": "Number of items per page",
|
|
328
|
+
"schema": {
|
|
329
|
+
"type": "integer",
|
|
330
|
+
"default": 25,
|
|
331
|
+
"minimum": 1,
|
|
332
|
+
"maximum": 100
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"schemas": {
|
|
337
|
+
"ResourceType": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"description": "Configuration resource type identifier.\nMatches blueprint-manifest-api V3 naming conventions.\n",
|
|
340
|
+
"enum": [
|
|
341
|
+
"journey",
|
|
342
|
+
"automation_flow",
|
|
343
|
+
"workflow_definition",
|
|
344
|
+
"closing_reason",
|
|
345
|
+
"flow_template",
|
|
346
|
+
"schema",
|
|
347
|
+
"emailtemplate",
|
|
348
|
+
"product",
|
|
349
|
+
"price",
|
|
350
|
+
"tax",
|
|
351
|
+
"coupon",
|
|
352
|
+
"file",
|
|
353
|
+
"document_template",
|
|
354
|
+
"webhook",
|
|
355
|
+
"saved_view",
|
|
356
|
+
"dashboard",
|
|
357
|
+
"kanban",
|
|
358
|
+
"role",
|
|
359
|
+
"usergroup",
|
|
360
|
+
"validation_rule",
|
|
361
|
+
"integration",
|
|
362
|
+
"app",
|
|
363
|
+
"designbuilder",
|
|
364
|
+
"notification_template",
|
|
365
|
+
"custom_variable",
|
|
366
|
+
"environment_variable",
|
|
367
|
+
"taxonomy",
|
|
368
|
+
"taxonomy_classification",
|
|
369
|
+
"entity_mapping",
|
|
370
|
+
"portal_config",
|
|
371
|
+
"target",
|
|
372
|
+
"product_recommendation",
|
|
373
|
+
"access_token"
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
"ConfigTypeInfo": {
|
|
377
|
+
"type": "object",
|
|
378
|
+
"description": "Static metadata for a config type folder in the tree.\nNo downstream API calls — just type + label + icon + source API info.\n",
|
|
379
|
+
"properties": {
|
|
380
|
+
"type": {
|
|
381
|
+
"$ref": "#/components/schemas/ResourceType"
|
|
382
|
+
},
|
|
383
|
+
"label": {
|
|
384
|
+
"type": "string",
|
|
385
|
+
"description": "Display label",
|
|
386
|
+
"example": "Journeys"
|
|
387
|
+
},
|
|
388
|
+
"icon": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"description": "Frontend icon name",
|
|
391
|
+
"example": "Route"
|
|
392
|
+
},
|
|
393
|
+
"source_api": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"description": "Base URL of the epilot API that owns this resource type",
|
|
396
|
+
"example": "https://journey.sls.epilot.io"
|
|
397
|
+
},
|
|
398
|
+
"sdk_client": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"description": "@epilot/sdk subpath for fetching full config payloads",
|
|
401
|
+
"example": "@epilot/sdk/journey"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"required": [
|
|
405
|
+
"type",
|
|
406
|
+
"label",
|
|
407
|
+
"icon",
|
|
408
|
+
"source_api",
|
|
409
|
+
"sdk_client"
|
|
410
|
+
]
|
|
411
|
+
},
|
|
412
|
+
"ConfigNode": {
|
|
413
|
+
"type": "object",
|
|
414
|
+
"description": "Summary metadata for a single configuration item in the tree",
|
|
415
|
+
"properties": {
|
|
416
|
+
"type": {
|
|
417
|
+
"$ref": "#/components/schemas/ResourceType"
|
|
418
|
+
},
|
|
419
|
+
"id": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"description": "Unique identifier"
|
|
422
|
+
},
|
|
423
|
+
"title": {
|
|
424
|
+
"type": "string",
|
|
425
|
+
"description": "Display name"
|
|
426
|
+
},
|
|
427
|
+
"updated_at": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"format": "date-time",
|
|
430
|
+
"description": "Last modified timestamp"
|
|
431
|
+
},
|
|
432
|
+
"updated_by": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"description": "User who last modified this config"
|
|
435
|
+
},
|
|
436
|
+
"tags": {
|
|
437
|
+
"type": "array",
|
|
438
|
+
"items": {
|
|
439
|
+
"type": "string"
|
|
440
|
+
},
|
|
441
|
+
"description": "Tags / labels"
|
|
442
|
+
},
|
|
443
|
+
"aliases": {
|
|
444
|
+
"type": "array",
|
|
445
|
+
"items": {
|
|
446
|
+
"type": "string"
|
|
447
|
+
},
|
|
448
|
+
"description": "Alternative identifiers (short IDs, slugs, variable keys) used in cross-references"
|
|
449
|
+
},
|
|
450
|
+
"purposes": {
|
|
451
|
+
"type": "array",
|
|
452
|
+
"items": {
|
|
453
|
+
"type": "string"
|
|
454
|
+
},
|
|
455
|
+
"description": "Business purposes"
|
|
456
|
+
},
|
|
457
|
+
"link": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"format": "uri",
|
|
460
|
+
"description": "Direct link to open this config in epilot"
|
|
461
|
+
},
|
|
462
|
+
"metadata": {
|
|
463
|
+
"type": "object",
|
|
464
|
+
"description": "Type-specific metadata (e.g., submission count for journeys)",
|
|
465
|
+
"additionalProperties": true
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"required": [
|
|
469
|
+
"type",
|
|
470
|
+
"id",
|
|
471
|
+
"title"
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
"ConfigListResponse": {
|
|
475
|
+
"type": "object",
|
|
476
|
+
"description": "Cursor-paginated list of configs for a specific type",
|
|
477
|
+
"properties": {
|
|
478
|
+
"type": {
|
|
479
|
+
"$ref": "#/components/schemas/ResourceType"
|
|
480
|
+
},
|
|
481
|
+
"label": {
|
|
482
|
+
"type": "string"
|
|
483
|
+
},
|
|
484
|
+
"icon": {
|
|
485
|
+
"type": "string"
|
|
486
|
+
},
|
|
487
|
+
"total": {
|
|
488
|
+
"type": "integer",
|
|
489
|
+
"description": "Total number of configs of this type (if known)"
|
|
490
|
+
},
|
|
491
|
+
"next_cursor": {
|
|
492
|
+
"type": "string",
|
|
493
|
+
"description": "Cursor for fetching the next page. Absent when no more pages."
|
|
494
|
+
},
|
|
495
|
+
"results": {
|
|
496
|
+
"type": "array",
|
|
497
|
+
"items": {
|
|
498
|
+
"$ref": "#/components/schemas/ConfigNode"
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"required": [
|
|
503
|
+
"type",
|
|
504
|
+
"label",
|
|
505
|
+
"icon",
|
|
506
|
+
"results"
|
|
507
|
+
]
|
|
508
|
+
},
|
|
509
|
+
"ConfigDependenciesResponse": {
|
|
510
|
+
"type": "object",
|
|
511
|
+
"description": "Cursor-paginated list of configs referenced by a given config",
|
|
512
|
+
"properties": {
|
|
513
|
+
"total": {
|
|
514
|
+
"type": "integer",
|
|
515
|
+
"description": "Total number of dependencies found (if known)"
|
|
516
|
+
},
|
|
517
|
+
"next_cursor": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"description": "Cursor for fetching the next page. Absent when no more pages."
|
|
520
|
+
},
|
|
521
|
+
"results": {
|
|
522
|
+
"type": "array",
|
|
523
|
+
"items": {
|
|
524
|
+
"$ref": "#/components/schemas/ConfigNode"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"required": [
|
|
529
|
+
"results"
|
|
530
|
+
]
|
|
531
|
+
},
|
|
532
|
+
"IndexRebuildResponse": {
|
|
533
|
+
"type": "object",
|
|
534
|
+
"description": "Result of an index rebuild operation",
|
|
535
|
+
"properties": {
|
|
536
|
+
"status": {
|
|
537
|
+
"type": "string",
|
|
538
|
+
"enum": [
|
|
539
|
+
"ready",
|
|
540
|
+
"building",
|
|
541
|
+
"failed",
|
|
542
|
+
"already_building"
|
|
543
|
+
]
|
|
544
|
+
},
|
|
545
|
+
"last_built_at": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"format": "date-time"
|
|
548
|
+
},
|
|
549
|
+
"total_items": {
|
|
550
|
+
"type": "integer"
|
|
551
|
+
},
|
|
552
|
+
"build_duration_ms": {
|
|
553
|
+
"type": "integer"
|
|
554
|
+
},
|
|
555
|
+
"failed_types": {
|
|
556
|
+
"type": "array",
|
|
557
|
+
"items": {
|
|
558
|
+
"type": "string"
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
"required": [
|
|
563
|
+
"status"
|
|
564
|
+
]
|
|
565
|
+
},
|
|
566
|
+
"IndexStatusResponse": {
|
|
567
|
+
"type": "object",
|
|
568
|
+
"description": "Current index build state",
|
|
569
|
+
"properties": {
|
|
570
|
+
"status": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"enum": [
|
|
573
|
+
"missing",
|
|
574
|
+
"building",
|
|
575
|
+
"ready",
|
|
576
|
+
"failed"
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
"last_built_at": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"format": "date-time"
|
|
582
|
+
},
|
|
583
|
+
"total_items": {
|
|
584
|
+
"type": "integer"
|
|
585
|
+
},
|
|
586
|
+
"build_duration_ms": {
|
|
587
|
+
"type": "integer"
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"required": [
|
|
591
|
+
"status"
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
"ErrorResponse": {
|
|
595
|
+
"type": "object",
|
|
596
|
+
"properties": {
|
|
597
|
+
"status": {
|
|
598
|
+
"type": "integer"
|
|
599
|
+
},
|
|
600
|
+
"error": {
|
|
601
|
+
"type": "string"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"required": [
|
|
605
|
+
"status",
|
|
606
|
+
"error"
|
|
607
|
+
]
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"s":"https://consent.sls.epilot.io","o":[["publishConsentEvent","post","/v1/consent/publish",null,1],["listConsentEvents","get","/v1/consent/{identifier}",[["identifier","p",true],["topic","q"],["limit","q"],["from","q"]]],["handleOptInWithToken","get","/v1/opt-in/{token}",[["token","p",true],["lang","q"]]]],"v":"3.0.3"}
|