@epilot/sdk 2.3.9 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +8 -8
- package/dist/apis/configuration-hub.d.cts +2 -2
- package/dist/apis/configuration-hub.d.ts +2 -2
- package/dist/apis/configuration-hub.js +2 -2
- 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 +8 -8
- package/dist/apis/entity.d.cts +2 -2
- package/dist/apis/entity.d.ts +2 -2
- package/dist/apis/entity.js +2 -2
- 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.d.cts +2 -2
- package/dist/apis/workflow-definition.d.ts +2 -2
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.d.cts +2 -2
- package/dist/apis/workflow.d.ts +2 -2
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-OMNMMMRJ.js → chunk-DAFBUTK6.js} +6 -6
- package/dist/chunk-M6Z6ES3I.js +14 -0
- package/dist/chunk-ONOGGR6Q.js +14 -0
- package/dist/chunk-UBQCDPW6.cjs +14 -0
- package/dist/{chunk-L37V2R32.cjs → chunk-Z33PZNHV.cjs} +6 -6
- package/dist/{chunk-VFCH5IEL.cjs → chunk-ZSONBZIF.cjs} +1 -1
- package/dist/configuration-hub-A3S6ND6R.cjs +7 -0
- package/dist/configuration-hub-PMAW44U5.js +7 -0
- package/dist/{configuration-hub-runtime-TY2X2ECO.cjs → configuration-hub-runtime-I5Y67CXD.cjs} +2 -2
- package/dist/{configuration-hub-runtime-5R6Y4KF7.js → configuration-hub-runtime-L6IOERSP.js} +1 -1
- package/dist/{configuration-hub.d-DZE3wTQE.d.cts → configuration-hub.d-Cqaq2F-W.d.cts} +111 -8
- package/dist/{configuration-hub.d-DZE3wTQE.d.ts → configuration-hub.d-Cqaq2F-W.d.ts} +111 -8
- package/dist/entity-VDUN7SYC.cjs +7 -0
- package/dist/entity-WWM2Z7BU.js +7 -0
- package/dist/entity-runtime-3J5EDLXP.cjs +5 -0
- package/dist/{entity-runtime-D4DV5XRM.js → entity-runtime-LNAZILIN.js} +1 -1
- package/dist/{entity.d-ByufVI16.d.cts → entity.d-B43ezu-V.d.cts} +1336 -9
- package/dist/{entity.d-ByufVI16.d.ts → entity.d-B43ezu-V.d.ts} +1336 -9
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/workflow-3WBD74WR.js +7 -0
- package/dist/workflow-WIUZ5TOX.cjs +7 -0
- package/dist/workflow-definition-2VF7S23G.js +7 -0
- package/dist/workflow-definition-U6YXD42W.cjs +7 -0
- package/dist/{workflow-definition.d-ByCJK9_x.d.ts → workflow-definition.d-DOeb0KVV.d.cts} +37 -1
- package/dist/{workflow-definition.d-ByCJK9_x.d.cts → workflow-definition.d-DOeb0KVV.d.ts} +37 -1
- package/dist/{workflow.d-pD8ISOg-.d.ts → workflow.d-CMSKt8oN.d.cts} +22 -1
- package/dist/{workflow.d-pD8ISOg-.d.cts → workflow.d-CMSKt8oN.d.ts} +22 -1
- package/docs/configuration-hub.md +112 -15
- package/docs/entity.md +965 -39
- package/docs/workflow-definition.md +40 -8
- package/docs/workflow.md +57 -11
- package/package.json +1 -1
- package/dist/chunk-AOFZDDXN.js +0 -14
- package/dist/chunk-F7W62NKV.js +0 -14
- package/dist/chunk-QA2OYK7N.cjs +0 -14
- package/dist/configuration-hub-2F636SNK.js +0 -7
- package/dist/configuration-hub-XQGJK2JA.cjs +0 -7
- package/dist/entity-CK76MXVN.js +0 -7
- package/dist/entity-TFMH5VTZ.cjs +0 -7
- package/dist/entity-runtime-DUJTRYLQ.cjs +0 -5
- package/dist/workflow-CQOBZ25C.cjs +0 -7
- package/dist/workflow-G7VFCXY7.js +0 -7
- package/dist/workflow-definition-CVBYKAUY.cjs +0 -7
- package/dist/workflow-definition-GNAKDNG7.js +0 -7
|
@@ -68,6 +68,7 @@ const { data } = await workflowDefinitionClient.getMaxAllowedLimit(...)
|
|
|
68
68
|
- [`ManualTask`](#manualtask)
|
|
69
69
|
- [`AutomationTask`](#automationtask)
|
|
70
70
|
- [`AutomationConfig`](#automationconfig)
|
|
71
|
+
- [`AutomationInputContext`](#automationinputcontext)
|
|
71
72
|
- [`AiAgentTask`](#aiagenttask)
|
|
72
73
|
- [`AgentConfig`](#agentconfig)
|
|
73
74
|
- [`TriggerMode`](#triggermode)
|
|
@@ -437,6 +438,7 @@ const { data } = await client.createFlowTemplate(
|
|
|
437
438
|
id: 'string',
|
|
438
439
|
type: 'automation',
|
|
439
440
|
automation_id: 'string',
|
|
441
|
+
input_entity: 'thread',
|
|
440
442
|
trigger_config: [ /* ... */ ]
|
|
441
443
|
},
|
|
442
444
|
/* ... 2 more */
|
|
@@ -559,6 +561,7 @@ const { data } = await client.createFlowTemplate(
|
|
|
559
561
|
"id": "string",
|
|
560
562
|
"type": "automation",
|
|
561
563
|
"automation_id": "string",
|
|
564
|
+
"input_entity": "thread",
|
|
562
565
|
"trigger_config": []
|
|
563
566
|
}
|
|
564
567
|
],
|
|
@@ -755,6 +758,7 @@ const { data } = await client.getFlowTemplate({
|
|
|
755
758
|
"id": "string",
|
|
756
759
|
"type": "automation",
|
|
757
760
|
"automation_id": "string",
|
|
761
|
+
"input_entity": "thread",
|
|
758
762
|
"trigger_config": []
|
|
759
763
|
}
|
|
760
764
|
],
|
|
@@ -885,6 +889,7 @@ const { data } = await client.updateFlowTemplate(
|
|
|
885
889
|
id: 'string',
|
|
886
890
|
type: 'automation',
|
|
887
891
|
automation_id: 'string',
|
|
892
|
+
input_entity: 'thread',
|
|
888
893
|
trigger_config: [ /* ... */ ]
|
|
889
894
|
},
|
|
890
895
|
/* ... 2 more */
|
|
@@ -1007,6 +1012,7 @@ const { data } = await client.updateFlowTemplate(
|
|
|
1007
1012
|
"id": "string",
|
|
1008
1013
|
"type": "automation",
|
|
1009
1014
|
"automation_id": "string",
|
|
1015
|
+
"input_entity": "thread",
|
|
1010
1016
|
"trigger_config": []
|
|
1011
1017
|
}
|
|
1012
1018
|
],
|
|
@@ -1156,6 +1162,7 @@ const { data } = await client.duplicateFlowTemplate({
|
|
|
1156
1162
|
"id": "string",
|
|
1157
1163
|
"type": "automation",
|
|
1158
1164
|
"automation_id": "string",
|
|
1165
|
+
"input_entity": "thread",
|
|
1159
1166
|
"trigger_config": []
|
|
1160
1167
|
}
|
|
1161
1168
|
],
|
|
@@ -1736,6 +1743,7 @@ type FlowTemplateBase = {
|
|
|
1736
1743
|
id?: string
|
|
1737
1744
|
type: "automation"
|
|
1738
1745
|
automation_id?: string
|
|
1746
|
+
input_entity?: "thread" | "first_email" | "last_email"
|
|
1739
1747
|
trigger_config?: Array<{
|
|
1740
1748
|
type: { ... }
|
|
1741
1749
|
configuration?: { ... }
|
|
@@ -1776,6 +1784,7 @@ type FlowTemplateBase = {
|
|
|
1776
1784
|
id?: string
|
|
1777
1785
|
type: "automation"
|
|
1778
1786
|
automation_id?: string
|
|
1787
|
+
input_entity?: "thread" | "first_email" | "last_email"
|
|
1779
1788
|
trigger_config?: Array<{
|
|
1780
1789
|
type: { ... }
|
|
1781
1790
|
configuration?: { ... }
|
|
@@ -1821,8 +1830,6 @@ type FlowTemplateBase = {
|
|
|
1821
1830
|
name?: { ... }
|
|
1822
1831
|
complete_task_automatically?: { ... }
|
|
1823
1832
|
}
|
|
1824
|
-
due_date?: string
|
|
1825
|
-
due_date_config?: {
|
|
1826
1833
|
// ...
|
|
1827
1834
|
}
|
|
1828
1835
|
```
|
|
@@ -1843,6 +1850,7 @@ type FlowTemplate = {
|
|
|
1843
1850
|
id?: string
|
|
1844
1851
|
type: "automation"
|
|
1845
1852
|
automation_id?: string
|
|
1853
|
+
input_entity?: "thread" | "first_email" | "last_email"
|
|
1846
1854
|
trigger_config?: Array<{
|
|
1847
1855
|
type: { ... }
|
|
1848
1856
|
configuration?: { ... }
|
|
@@ -1883,6 +1891,7 @@ type FlowTemplate = {
|
|
|
1883
1891
|
id?: string
|
|
1884
1892
|
type: "automation"
|
|
1885
1893
|
automation_id?: string
|
|
1894
|
+
input_entity?: "thread" | "first_email" | "last_email"
|
|
1886
1895
|
trigger_config?: Array<{
|
|
1887
1896
|
type: { ... }
|
|
1888
1897
|
configuration?: { ... }
|
|
@@ -1928,8 +1937,6 @@ type FlowTemplate = {
|
|
|
1928
1937
|
name?: { ... }
|
|
1929
1938
|
complete_task_automatically?: { ... }
|
|
1930
1939
|
}
|
|
1931
|
-
due_date?: string
|
|
1932
|
-
due_date_config?: {
|
|
1933
1940
|
// ...
|
|
1934
1941
|
}
|
|
1935
1942
|
```
|
|
@@ -1957,6 +1964,7 @@ type Trigger = {
|
|
|
1957
1964
|
id?: string
|
|
1958
1965
|
type: "automation"
|
|
1959
1966
|
automation_id?: string
|
|
1967
|
+
input_entity?: "thread" | "first_email" | "last_email"
|
|
1960
1968
|
trigger_config?: Array<{
|
|
1961
1969
|
type: string
|
|
1962
1970
|
configuration?: Record<string, unknown>
|
|
@@ -1991,6 +1999,7 @@ type AutomationTrigger = {
|
|
|
1991
1999
|
id?: string
|
|
1992
2000
|
type: "automation"
|
|
1993
2001
|
automation_id?: string
|
|
2002
|
+
input_entity?: "thread" | "first_email" | "last_email"
|
|
1994
2003
|
trigger_config?: Array<{
|
|
1995
2004
|
type: string
|
|
1996
2005
|
configuration?: Record<string, unknown>
|
|
@@ -2036,6 +2045,7 @@ type CreateFlowTemplate = {
|
|
|
2036
2045
|
id?: string
|
|
2037
2046
|
type: "automation"
|
|
2038
2047
|
automation_id?: string
|
|
2048
|
+
input_entity?: "thread" | "first_email" | "last_email"
|
|
2039
2049
|
trigger_config?: Array<{
|
|
2040
2050
|
type: { ... }
|
|
2041
2051
|
configuration?: { ... }
|
|
@@ -2076,6 +2086,7 @@ type CreateFlowTemplate = {
|
|
|
2076
2086
|
id?: string
|
|
2077
2087
|
type: "automation"
|
|
2078
2088
|
automation_id?: string
|
|
2089
|
+
input_entity?: "thread" | "first_email" | "last_email"
|
|
2079
2090
|
trigger_config?: Array<{
|
|
2080
2091
|
type: { ... }
|
|
2081
2092
|
configuration?: { ... }
|
|
@@ -2121,8 +2132,6 @@ type CreateFlowTemplate = {
|
|
|
2121
2132
|
name?: { ... }
|
|
2122
2133
|
complete_task_automatically?: { ... }
|
|
2123
2134
|
}
|
|
2124
|
-
due_date?: string
|
|
2125
|
-
due_date_config?: {
|
|
2126
2135
|
// ...
|
|
2127
2136
|
}
|
|
2128
2137
|
```
|
|
@@ -2159,6 +2168,7 @@ type FlowTemplatesList = {
|
|
|
2159
2168
|
id?: { ... }
|
|
2160
2169
|
type: { ... }
|
|
2161
2170
|
automation_id?: { ... }
|
|
2171
|
+
input_entity?: { ... }
|
|
2162
2172
|
trigger_config?: { ... }
|
|
2163
2173
|
} | {
|
|
2164
2174
|
id?: { ... }
|
|
@@ -2196,6 +2206,7 @@ type FlowTemplatesList = {
|
|
|
2196
2206
|
id?: { ... }
|
|
2197
2207
|
type: { ... }
|
|
2198
2208
|
automation_id?: { ... }
|
|
2209
|
+
input_entity?: { ... }
|
|
2199
2210
|
trigger_config?: { ... }
|
|
2200
2211
|
} | {
|
|
2201
2212
|
id?: { ... }
|
|
@@ -2243,8 +2254,6 @@ type FlowTemplatesList = {
|
|
|
2243
2254
|
ecp?: { ... }
|
|
2244
2255
|
installer?: { ... }
|
|
2245
2256
|
partner?: { ... }
|
|
2246
|
-
taxonomies?: { ... }
|
|
2247
|
-
phase_id?: { ... }
|
|
2248
2257
|
// ...
|
|
2249
2258
|
}
|
|
2250
2259
|
```
|
|
@@ -2499,6 +2508,11 @@ type AutomationTask = {
|
|
|
2499
2508
|
type: { ... }
|
|
2500
2509
|
config?: { ... }
|
|
2501
2510
|
}
|
|
2511
|
+
duplicated_flow_id?: string
|
|
2512
|
+
input_context?: {
|
|
2513
|
+
source: { ... }
|
|
2514
|
+
task_id?: { ... }
|
|
2515
|
+
}
|
|
2502
2516
|
}
|
|
2503
2517
|
trigger_mode?: "manual" | "automatic"
|
|
2504
2518
|
schedule?: {
|
|
@@ -2534,6 +2548,23 @@ type AutomationConfig = {
|
|
|
2534
2548
|
type: string
|
|
2535
2549
|
config?: Record<string, unknown>
|
|
2536
2550
|
}
|
|
2551
|
+
duplicated_flow_id?: string
|
|
2552
|
+
input_context?: {
|
|
2553
|
+
source: "trigger" | "task"
|
|
2554
|
+
task_id?: string
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
```
|
|
2558
|
+
|
|
2559
|
+
### `AutomationInputContext`
|
|
2560
|
+
|
|
2561
|
+
Optional. Source of the entity fed into this automation task. If omitted, the workflow's primary entity is used.
|
|
2562
|
+
|
|
2563
|
+
|
|
2564
|
+
```ts
|
|
2565
|
+
type AutomationInputContext = {
|
|
2566
|
+
source: "trigger" | "task"
|
|
2567
|
+
task_id?: string
|
|
2537
2568
|
}
|
|
2538
2569
|
```
|
|
2539
2570
|
|
|
@@ -2756,6 +2787,7 @@ type DecisionTask = {
|
|
|
2756
2787
|
value_type?: { ... }
|
|
2757
2788
|
}>
|
|
2758
2789
|
}>
|
|
2790
|
+
allow_parallel_execution?: boolean
|
|
2759
2791
|
schedule?: {
|
|
2760
2792
|
mode: "delayed"
|
|
2761
2793
|
duration: number
|
package/docs/workflow.md
CHANGED
|
@@ -129,6 +129,7 @@ const { data } = await workflowClient.getExecutions(...)
|
|
|
129
129
|
- [`Phase`](#phase)
|
|
130
130
|
- [`Edge`](#edge)
|
|
131
131
|
- [`AutomationInfo`](#automationinfo)
|
|
132
|
+
- [`AutomationInputContext`](#automationinputcontext)
|
|
132
133
|
- [`AnalyticsInfo`](#analyticsinfo)
|
|
133
134
|
- [`ConditionId`](#conditionid)
|
|
134
135
|
- [`Condition`](#condition)
|
|
@@ -721,7 +722,11 @@ const { data } = await client.startFlowExecution(
|
|
|
721
722
|
flow_id: 'string',
|
|
722
723
|
execution_id: 'string',
|
|
723
724
|
execution_status: 'string',
|
|
724
|
-
error_reason: 'string'
|
|
725
|
+
error_reason: 'string',
|
|
726
|
+
input_context: {
|
|
727
|
+
source: 'trigger',
|
|
728
|
+
task_id: 'string'
|
|
729
|
+
}
|
|
725
730
|
}
|
|
726
731
|
},
|
|
727
732
|
contexts: [
|
|
@@ -855,7 +860,8 @@ const { data } = await client.startFlowExecution(
|
|
|
855
860
|
"flow_id": "string",
|
|
856
861
|
"execution_id": "string",
|
|
857
862
|
"execution_status": "string",
|
|
858
|
-
"error_reason": "string"
|
|
863
|
+
"error_reason": "string",
|
|
864
|
+
"input_context": {}
|
|
859
865
|
}
|
|
860
866
|
},
|
|
861
867
|
"singleClosingReasonSelection": true
|
|
@@ -997,7 +1003,8 @@ const { data } = await client.getFlowExecution({
|
|
|
997
1003
|
"flow_id": "string",
|
|
998
1004
|
"execution_id": "string",
|
|
999
1005
|
"execution_status": "string",
|
|
1000
|
-
"error_reason": "string"
|
|
1006
|
+
"error_reason": "string",
|
|
1007
|
+
"input_context": {}
|
|
1001
1008
|
}
|
|
1002
1009
|
},
|
|
1003
1010
|
"singleClosingReasonSelection": true
|
|
@@ -1175,7 +1182,8 @@ const { data } = await client.patchFlowExecution(
|
|
|
1175
1182
|
"flow_id": "string",
|
|
1176
1183
|
"execution_id": "string",
|
|
1177
1184
|
"execution_status": "string",
|
|
1178
|
-
"error_reason": "string"
|
|
1185
|
+
"error_reason": "string",
|
|
1186
|
+
"input_context": {}
|
|
1179
1187
|
}
|
|
1180
1188
|
},
|
|
1181
1189
|
"singleClosingReasonSelection": true
|
|
@@ -1285,7 +1293,11 @@ const { data } = await client.patchTask(
|
|
|
1285
1293
|
flow_id: 'string',
|
|
1286
1294
|
execution_id: 'string',
|
|
1287
1295
|
execution_status: 'string',
|
|
1288
|
-
error_reason: 'string'
|
|
1296
|
+
error_reason: 'string',
|
|
1297
|
+
input_context: {
|
|
1298
|
+
source: 'trigger',
|
|
1299
|
+
task_id: 'string'
|
|
1300
|
+
}
|
|
1289
1301
|
},
|
|
1290
1302
|
description: {
|
|
1291
1303
|
enabled: true,
|
|
@@ -1510,7 +1522,11 @@ const { data } = await client.runTaskAutomation({
|
|
|
1510
1522
|
"flow_id": "string",
|
|
1511
1523
|
"execution_id": "string",
|
|
1512
1524
|
"execution_status": "string",
|
|
1513
|
-
"error_reason": "string"
|
|
1525
|
+
"error_reason": "string",
|
|
1526
|
+
"input_context": {
|
|
1527
|
+
"source": "trigger",
|
|
1528
|
+
"task_id": "string"
|
|
1529
|
+
}
|
|
1514
1530
|
},
|
|
1515
1531
|
"automation_execution_id": "string",
|
|
1516
1532
|
"trigger_mode": "manual",
|
|
@@ -1731,7 +1747,11 @@ const { data } = await client.addTask(
|
|
|
1731
1747
|
flow_id: 'string',
|
|
1732
1748
|
execution_id: 'string',
|
|
1733
1749
|
execution_status: 'string',
|
|
1734
|
-
error_reason: 'string'
|
|
1750
|
+
error_reason: 'string',
|
|
1751
|
+
input_context: {
|
|
1752
|
+
source: 'trigger',
|
|
1753
|
+
task_id: 'string'
|
|
1754
|
+
}
|
|
1735
1755
|
},
|
|
1736
1756
|
phase_id: 'string',
|
|
1737
1757
|
task_type: 'MANUAL'
|
|
@@ -3381,6 +3401,7 @@ type StartFlowReq = {
|
|
|
3381
3401
|
execution_id?: { ... }
|
|
3382
3402
|
execution_status?: { ... }
|
|
3383
3403
|
error_reason?: { ... }
|
|
3404
|
+
input_context?: { ... }
|
|
3384
3405
|
}
|
|
3385
3406
|
}
|
|
3386
3407
|
contexts: Array<{
|
|
@@ -3570,6 +3591,10 @@ type FlowTrigger = {
|
|
|
3570
3591
|
execution_id?: string
|
|
3571
3592
|
execution_status?: string
|
|
3572
3593
|
error_reason?: string
|
|
3594
|
+
input_context?: {
|
|
3595
|
+
source: { ... }
|
|
3596
|
+
task_id?: { ... }
|
|
3597
|
+
}
|
|
3573
3598
|
}
|
|
3574
3599
|
}
|
|
3575
3600
|
```
|
|
@@ -3889,6 +3914,10 @@ type AutomationTask = {
|
|
|
3889
3914
|
execution_id?: string
|
|
3890
3915
|
execution_status?: string
|
|
3891
3916
|
error_reason?: string
|
|
3917
|
+
input_context?: {
|
|
3918
|
+
source: { ... }
|
|
3919
|
+
task_id?: { ... }
|
|
3920
|
+
}
|
|
3892
3921
|
}
|
|
3893
3922
|
automation_execution_id?: string
|
|
3894
3923
|
trigger_mode?: "manual" | "automatic"
|
|
@@ -3904,10 +3933,6 @@ type AutomationTask = {
|
|
|
3904
3933
|
direction: "before" | "after"
|
|
3905
3934
|
duration: number
|
|
3906
3935
|
unit: "minutes" | "hours" | "days" | "weeks" | "months"
|
|
3907
|
-
reference: {
|
|
3908
|
-
id: { ... }
|
|
3909
|
-
origin: { ... }
|
|
3910
|
-
schema?: { ... }
|
|
3911
3936
|
// ...
|
|
3912
3937
|
}
|
|
3913
3938
|
```
|
|
@@ -4367,6 +4392,22 @@ type AutomationInfo = {
|
|
|
4367
4392
|
execution_id?: string
|
|
4368
4393
|
execution_status?: string
|
|
4369
4394
|
error_reason?: string
|
|
4395
|
+
input_context?: {
|
|
4396
|
+
source: "trigger" | "task"
|
|
4397
|
+
task_id?: string
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
```
|
|
4401
|
+
|
|
4402
|
+
### `AutomationInputContext`
|
|
4403
|
+
|
|
4404
|
+
Optional. Source of the entity fed into this automation task. If omitted, the workflow's primary entity is used.
|
|
4405
|
+
|
|
4406
|
+
|
|
4407
|
+
```ts
|
|
4408
|
+
type AutomationInputContext = {
|
|
4409
|
+
source: "trigger" | "task"
|
|
4410
|
+
task_id?: string
|
|
4370
4411
|
}
|
|
4371
4412
|
```
|
|
4372
4413
|
|
|
@@ -4573,6 +4614,10 @@ type PatchTaskReq = {
|
|
|
4573
4614
|
execution_id?: string
|
|
4574
4615
|
execution_status?: string
|
|
4575
4616
|
error_reason?: string
|
|
4617
|
+
input_context?: {
|
|
4618
|
+
source: { ... }
|
|
4619
|
+
task_id?: { ... }
|
|
4620
|
+
}
|
|
4576
4621
|
}
|
|
4577
4622
|
description?: {
|
|
4578
4623
|
enabled?: boolean
|
|
@@ -4658,6 +4703,7 @@ type AddTaskReq = {
|
|
|
4658
4703
|
execution_id?: { ... }
|
|
4659
4704
|
execution_status?: { ... }
|
|
4660
4705
|
error_reason?: { ... }
|
|
4706
|
+
input_context?: { ... }
|
|
4661
4707
|
}
|
|
4662
4708
|
phase_id?: string
|
|
4663
4709
|
task_type?: "MANUAL" | "AUTOMATION" | "DECISION" | "AI_AGENT"
|
package/package.json
CHANGED
package/dist/chunk-AOFZDDXN.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__commonJS
|
|
3
|
-
} from "./chunk-YPSWSI3M.js";
|
|
4
|
-
|
|
5
|
-
// src/definitions/configuration-hub-runtime.json
|
|
6
|
-
var require_configuration_hub_runtime = __commonJS({
|
|
7
|
-
"src/definitions/configuration-hub-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { 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"]]], ["getConfigDependencies", "get", "/v1/configs/{type}/{id}/dependencies", [["ConfigType"], ["ConfigId"], ["CursorParam"], ["SizeParam"]]], ["rebuildIndex", "post", "/v1/index/rebuild"]], v: "3.0.3", cp: { ConfigType: ["type", "p", true], ConfigId: ["id", "p", true], CursorParam: ["cursor", "q"], SizeParam: ["size", "q"] } };
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
require_configuration_hub_runtime
|
|
14
|
-
};
|
package/dist/chunk-F7W62NKV.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__commonJS
|
|
3
|
-
} from "./chunk-YPSWSI3M.js";
|
|
4
|
-
|
|
5
|
-
// src/definitions/entity-runtime.json
|
|
6
|
-
var require_entity_runtime = __commonJS({
|
|
7
|
-
"src/definitions/entity-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://entity.sls.epilot.io", o: [["listSchemas", "get", "/v1/entity/schemas", [["unpublished", "q"], ["latest", "q"], ["exclude", "q", false, "form", false], ["include", "q", false, "form", false]]], ["listSchemasV2", "get", "/v2/entity/schemas", [["full", "q"], ["unpublished", "q"], ["latest", "q"], ["exclude", "q", false, "form", false], ["include", "q", false, "form", false]]], ["getSchema", "get", "/v1/entity/schemas/{slug}", [["EntitySlugPathParam"], ["id", "q"], ["latest", "q"]]], ["putSchema", "put", "/v1/entity/schemas/{slug}", [["EntitySlugPathParam"], ["draft", "q"]], 1], ["deleteSchema", "delete", "/v1/entity/schemas/{slug}", [["EntitySlugPathParam"]]], ["getJsonSchema", "get", "/v1/entity/schemas/{slug}/json/schema", [["EntitySlugPathParam"], ["dereference", "q"]]], ["getSchemaExample", "get", "/v1/entity/schemas/{slug}/json/example", [["EntitySlugPathParam"]]], ["getSchemaVersions", "get", "/v1/entity/schemas/{slug}/versions", [["EntitySlugPathParam"], ["versions_from", "q"], ["versions_size", "q"], ["drafts_from", "q"], ["drafts_size", "q"], ["fields", "q", false, "form", false]]], ["freezeSchema", "post", "/v1/entity/schemas/{slug}/freeze", [["EntitySlugPathParam"]], 1], ["unfreezeSchema", "post", "/v1/entity/schemas/{slug}/unfreeze", [["EntitySlugPathParam"]]], ["listAvailableCapabilities", "get", "/v1/entity/schemas/{slug}/capabilities/available", [["EntitySlugPathParam"]]], ["listSchemaBlueprints", "get", "/v1/entity/schemas/blueprints"], ["searchEntities", "post", "/v1/entity:search", null, 1], ["listEntities", "post", "/v1/entity:list", null, 1], ["queryEntityGraph", "post", "/v1/entity:graph", null, 1], ["createEntity", "post", "/v1/entity/{slug}", [["EntitySlugPathParam"], ["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["AsyncOperationQueryParam"], ["ValidateEntityQueryParam"]], 1], ["validateEntity", "post", "/v1/entity/{slug}:validate", [["EntitySlugPathPriceParam"]], 1], ["validateEntityV2", "post", "/v2/entity/{slug}:validate", [["EntitySlugPathPriceParam"]], 1], ["upsertEntity", "patch", "/v1/entity/{slug}:upsert", [["EntitySlugPathParam"], ["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["DryRunQueryParam"], ["AsyncOperationQueryParam"], ["ValidateEntityQueryParam"], ["strict", "q"]], 1], ["getEntityV2", "get", "/v2/entity/{slug}/{id}", [["EntityIdPathParam"], ["EntitySlugPathParam"], ["HydrateEntitiesQueryParam"], ["fields", "q", false, "form", false]]], ["restoreEntity", "patch", "/v1/entity/{slug}/{id}:restore", [["EntityIdPathParam"], ["EntitySlugPathParam"], ["ActivityIdQueryParam"]], 1], ["reindexEntity", "post", "/v1/entity/{slug}/{id}:reindex", [["EntityIdPathParam"], ["EntitySlugPathParam"]], 1], ["getEntity", "get", "/v1/entity/{slug}/{id}", [["EntityIdPathParam"], ["EntitySlugPathParam"], ["HydrateEntitiesQueryParam"]]], ["updateEntity", "put", "/v1/entity/{slug}/{id}", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["AsyncOperationQueryParam"], ["ValidateEntityQueryParam"]], 1], ["patchEntity", "patch", "/v1/entity/{slug}/{id}", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["DryRunQueryParam"], ["AsyncOperationQueryParam"], ["ValidateEntityQueryParam"]], 1], ["deleteEntity", "delete", "/v1/entity/{slug}/{id}", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["ActivityIdQueryParam"], ["purge", "q"]]], ["autocomplete", "get", "/v1/entity:autocomplete", [["input", "q"], ["attribute", "q", true], ["slug", "q"], ["size", "q"]]], ["wipeAllEntities", "post", "/v1/entity:wipeAllEntities", null, 1], ["createActivity", "post", "/v1/entity/activity", [["entities", "q", false, "form", false]], 1], ["getActivity", "get", "/v1/entity/activity/{id}", [["ActivityIdPathParam"], ["operations_size", "q"], ["operations_from", "q"]]], ["attachActivity", "post", "/v1/entity/activity/{id}:attach", [["ActivityIdPathParam"], ["entities", "q", false, "form", false]]], ["getEntityActivityFeed", "get", "/v1/entity/{slug}/{id}/activity", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["after", "q"], ["before", "q"], ["start_date", "q"], ["end_date", "q"], ["preset_range", "q"], ["FromPageQueryParam"], ["size", "q"], ["type", "q", false, "form", false], ["include_relations", "q"], ["exclude_activity_groups", "q"]]], ["getRelations", "get", "/v1/entity/{slug}/{id}/relations", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["HydrateEntitiesQueryParam"], ["IncludeReverseQueryParam"], ["FromPageQueryParam"], ["size", "q"], ["IncludeSchemasQueryParam"], ["ExcludeSchemasQueryParam"]]], ["addRelations", "post", "/v1/entity/{slug}/{id}/relations", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["AsyncOperationQueryParam"], ["ActivityIdQueryParam"]], 1], ["removeRelations", "delete", "/v1/entity/{slug}/{id}/relations", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["AsyncOperationQueryParam"], ["ActivityIdQueryParam"]], 1], ["getRelationsV2", "get", "/v2/entity/{slug}/{id}/relations", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["HydrateEntitiesQueryParam"], ["query", "q"], ["IncludeReverseQueryParam"], ["FromPageQueryParam"], ["size", "q"], ["fields", "q"]]], ["getRelationsV3", "get", "/v3/entity/{slug}/{id}/relations", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["HydrateEntitiesQueryParam"], ["IncludeReverseDeprecatedQueryParam"], ["FromPageQueryParam"], ["size", "q"], ["IncludeSchemasQueryParam"], ["ExcludeSchemasQueryParam"], ["EntityRelationsModeQueryParam"], ["fields", "q"], ["include_deleted", "q"]]], ["getRelatedEntitiesCount", "get", "/v2/entity/{slug}/{id}/relations/count", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["ExcludeSchemasQueryParam"]]], ["updateRelation", "put", "/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["attribute", "p", true], ["entity_id", "p", true], ["AsyncOperationQueryParam"], ["ActivityIdQueryParam"]], 1], ["deleteRelation", "delete", "/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["attribute", "p", true], ["entity_id", "p", true], ["AsyncOperationQueryParam"], ["ActivityIdQueryParam"]]], ["exportEntities", "post", "/v1/entity:export", [["job_id", "q"], ["is_template", "q"], ["language", "q"]], 1], ["importEntities", "post", "/v1/entity:import", [["job_id", "q"]], 1], ["listSavedViews", "get", "/v1/entity/views", [["slug", "q"], ["sort", "q"], ["from", "q"], ["size", "q"], ["fields", "q"]]], ["createSavedView", "post", "/v1/entity/view", null, 1], ["getSavedView", "get", "/v1/entity/view/{id}", [["SavedViewIdPathParam"]]], ["updateSavedView", "put", "/v1/entity/view/{id}", [["SavedViewIdPathParam"]], 1], ["patchSavedView", "patch", "/v1/entity/view/{id}", [["SavedViewIdPathParam"]], 1], ["deleteSavedView", "delete", "/v1/entity/view/{id}", [["SavedViewIdPathParam"]]], ["listFavoriteViewsForUser", "get", "/v1/entity/views/favorites"], ["listTaxonomies", "get", "/v1/entity/taxonomies", [["include_disabled", "q"], ["type", "q"]]], ["createTaxonomy", "post", "/v1/entity/taxonomies", null, 1], ["getTaxonomy", "get", "/v1/entity/taxonomies/{taxonomySlug}", [["TaxonomySlugPathParam"]]], ["updateTaxonomy", "put", "/v1/entity/taxonomies/{taxonomySlug}", [["TaxonomySlugPathParam"]], 1], ["deleteTaxonomy", "delete", "/v1/entity/taxonomies/{taxonomySlug}", [["TaxonomySlugPathParam"], ["permanent", "q"]]], ["updateClassificationsForTaxonomy", "post", "/v1/entity/taxonomies/{taxonomySlug}/classifications", [["TaxonomySlugPathParam"]], 1], ["createTaxonomyClassification", "post", "/v2/entity/taxonomies/classifications", null, 1], ["getTaxonomyClassification", "get", "/v2/entity/taxonomies/classifications/{classificationSlug}", [["TaxonomyClassificationSlugPathParam"]]], ["updateTaxonomyClassification", "put", "/v2/entity/taxonomies/classifications/{classificationSlug}", [["TaxonomyClassificationSlugPathParam"]], 1], ["deleteTaxonomyClassification", "delete", "/v2/entity/taxonomies/classifications/{classificationSlug}", [["TaxonomyClassificationSlugPathParam"]]], ["taxonomyAutocomplete", "get", "/v1/entity/taxonomies/{taxonomySlug}:autocomplete", [["TaxonomySlugPathParam"], ["query", "q"], ["size", "q"]]], ["taxonomiesClassificationsSearch", "post", "/v1/entity/taxonomies/classifications:search", [["taxonomySlug", "q"], ["query", "q"], ["archived", "q"], ["include_archived", "q"], ["exclude_types", "q"]], 1], ["listTaxonomyClassificationsForSchema", "get", "/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}", [["EntitySlugPathParam"], ["TaxonomySlugPathParam"], ["query", "q"], ["size", "q"]]], ["getTaxonomyBulkActionJobs", "get", "/v1/entity/taxonomies/bulk-jobs", [["status", "q"], ["size", "q"], ["created_after", "q"], ["sort_pending_first", "q"], ["scope", "q"]]], ["getTaxonomyBulkActionJobById", "get", "/v1/entity/taxonomies/bulk-jobs/{job_id}", [["job_id", "p", true]]], ["cancelBulkAction", "post", "/v1/entity/taxonomies/bulk-jobs/{job_id}/cancel", [["job_id", "p", true]]], ["bulkMoveClassifications", "post", "/v1/entity/taxonomies/classifications:move", null, 1], ["bulkMergeClassifications", "post", "/v1/entity/taxonomies/classifications:merge", null, 1], ["bulkDeleteClassifications", "post", "/v1/entity/taxonomies/classifications:delete", null, 1], ["createSchemaAttribute", "post", "/v1/entity/schemas/attributes", null, 1], ["getSchemaAttribute", "get", "/v1/entity/schemas/attributes/{composite_id}", [["composite_id", "p", true]]], ["putSchemaAttribute", "put", "/v1/entity/schemas/attributes/{composite_id}", [["composite_id", "p", true]], 1], ["deleteSchemaAttribute", "delete", "/v1/entity/schemas/attributes/{composite_id}", [["composite_id", "p", true]]], ["createSchemaCapability", "post", "/v1/entity/schemas/capabilities", null, 1], ["getSchemaCapability", "get", "/v1/entity/schemas/capabilities/{composite_id}", [["composite_id", "p", true]]], ["putSchemaCapability", "put", "/v1/entity/schemas/capabilities/{composite_id}", [["composite_id", "p", true]], 1], ["deleteSchemaCapability", "delete", "/v1/entity/schemas/capabilities/{composite_id}", [["composite_id", "p", true]]], ["createSchemaGroup", "post", "/v1/entity/schemas/group", null, 1], ["getSchemaGroup", "get", "/v1/entity/schemas/group/{composite_id}", [["composite_id", "p", true]]], ["putSchemaGroup", "put", "/v1/entity/schemas/group/{composite_id}", [["composite_id", "p", true]], 1], ["deleteSchemaGroup", "delete", "/v1/entity/schemas/group/{composite_id}", [["composite_id", "p", true]]], ["createSchemaGroupHeadline", "post", "/v1/entity/schemas/headline", null, 1], ["getSchemaGroupHeadline", "get", "/v1/entity/schemas/headline/{composite_id}", [["composite_id", "p", true]]], ["putSchemaGroupHeadline", "put", "/v1/entity/schemas/headline/{composite_id}", [["composite_id", "p", true]], 1], ["deleteSchemaGroupHeadline", "delete", "/v1/entity/schemas/headline/{composite_id}", [["composite_id", "p", true]]]], cp: { EntityIdPathParam: ["id", "p", true], EntitySlugPathParam: ["slug", "p", true], EntitySlugPathPriceParam: ["slug", "p", true], TaxonomySlugQueryParam: ["taxonomySlug", "q", true], TaxonomySlugPathParam: ["taxonomySlug", "p", true], TaxonomySlugQueryParamOptional: ["taxonomySlug", "q"], TaxonomyClassificationSlugPathParam: ["classificationSlug", "p", true], SavedViewIdPathParam: ["id", "p", true], AsyncOperationQueryParam: ["async", "q"], HydrateEntitiesQueryParam: ["hydrate", "q"], ActivityIdQueryParam: ["activity_id", "q"], ActivityIdPathParam: ["id", "p", true], FromPageQueryParam: ["from", "q"], IncludeReverseDeprecatedQueryParam: ["include_reverse", "q"], IncludeReverseQueryParam: ["include_reverse", "q"], IncludeSchemasQueryParam: ["include_schemas", "q", false, "form", false], ExcludeSchemasQueryParam: ["exclude_schemas", "q", false, "form", false], EntityRelationsModeQueryParam: ["mode", "q"], DryRunQueryParam: ["dry_run", "q"], FillActivityQueryParam: ["fill_activity", "q"], ValidateEntityQueryParam: ["validate", "q"] } };
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
require_entity_runtime
|
|
14
|
-
};
|
package/dist/chunk-QA2OYK7N.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
4
|
-
|
|
5
|
-
// src/definitions/entity-runtime.json
|
|
6
|
-
var require_entity_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
|
-
"src/definitions/entity-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://entity.sls.epilot.io", o: [["listSchemas", "get", "/v1/entity/schemas", [["unpublished", "q"], ["latest", "q"], ["exclude", "q", false, "form", false], ["include", "q", false, "form", false]]], ["listSchemasV2", "get", "/v2/entity/schemas", [["full", "q"], ["unpublished", "q"], ["latest", "q"], ["exclude", "q", false, "form", false], ["include", "q", false, "form", false]]], ["getSchema", "get", "/v1/entity/schemas/{slug}", [["EntitySlugPathParam"], ["id", "q"], ["latest", "q"]]], ["putSchema", "put", "/v1/entity/schemas/{slug}", [["EntitySlugPathParam"], ["draft", "q"]], 1], ["deleteSchema", "delete", "/v1/entity/schemas/{slug}", [["EntitySlugPathParam"]]], ["getJsonSchema", "get", "/v1/entity/schemas/{slug}/json/schema", [["EntitySlugPathParam"], ["dereference", "q"]]], ["getSchemaExample", "get", "/v1/entity/schemas/{slug}/json/example", [["EntitySlugPathParam"]]], ["getSchemaVersions", "get", "/v1/entity/schemas/{slug}/versions", [["EntitySlugPathParam"], ["versions_from", "q"], ["versions_size", "q"], ["drafts_from", "q"], ["drafts_size", "q"], ["fields", "q", false, "form", false]]], ["freezeSchema", "post", "/v1/entity/schemas/{slug}/freeze", [["EntitySlugPathParam"]], 1], ["unfreezeSchema", "post", "/v1/entity/schemas/{slug}/unfreeze", [["EntitySlugPathParam"]]], ["listAvailableCapabilities", "get", "/v1/entity/schemas/{slug}/capabilities/available", [["EntitySlugPathParam"]]], ["listSchemaBlueprints", "get", "/v1/entity/schemas/blueprints"], ["searchEntities", "post", "/v1/entity:search", null, 1], ["listEntities", "post", "/v1/entity:list", null, 1], ["queryEntityGraph", "post", "/v1/entity:graph", null, 1], ["createEntity", "post", "/v1/entity/{slug}", [["EntitySlugPathParam"], ["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["AsyncOperationQueryParam"], ["ValidateEntityQueryParam"]], 1], ["validateEntity", "post", "/v1/entity/{slug}:validate", [["EntitySlugPathPriceParam"]], 1], ["validateEntityV2", "post", "/v2/entity/{slug}:validate", [["EntitySlugPathPriceParam"]], 1], ["upsertEntity", "patch", "/v1/entity/{slug}:upsert", [["EntitySlugPathParam"], ["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["DryRunQueryParam"], ["AsyncOperationQueryParam"], ["ValidateEntityQueryParam"], ["strict", "q"]], 1], ["getEntityV2", "get", "/v2/entity/{slug}/{id}", [["EntityIdPathParam"], ["EntitySlugPathParam"], ["HydrateEntitiesQueryParam"], ["fields", "q", false, "form", false]]], ["restoreEntity", "patch", "/v1/entity/{slug}/{id}:restore", [["EntityIdPathParam"], ["EntitySlugPathParam"], ["ActivityIdQueryParam"]], 1], ["reindexEntity", "post", "/v1/entity/{slug}/{id}:reindex", [["EntityIdPathParam"], ["EntitySlugPathParam"]], 1], ["getEntity", "get", "/v1/entity/{slug}/{id}", [["EntityIdPathParam"], ["EntitySlugPathParam"], ["HydrateEntitiesQueryParam"]]], ["updateEntity", "put", "/v1/entity/{slug}/{id}", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["AsyncOperationQueryParam"], ["ValidateEntityQueryParam"]], 1], ["patchEntity", "patch", "/v1/entity/{slug}/{id}", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["DryRunQueryParam"], ["AsyncOperationQueryParam"], ["ValidateEntityQueryParam"]], 1], ["deleteEntity", "delete", "/v1/entity/{slug}/{id}", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["ActivityIdQueryParam"], ["purge", "q"]]], ["autocomplete", "get", "/v1/entity:autocomplete", [["input", "q"], ["attribute", "q", true], ["slug", "q"], ["size", "q"]]], ["wipeAllEntities", "post", "/v1/entity:wipeAllEntities", null, 1], ["createActivity", "post", "/v1/entity/activity", [["entities", "q", false, "form", false]], 1], ["getActivity", "get", "/v1/entity/activity/{id}", [["ActivityIdPathParam"], ["operations_size", "q"], ["operations_from", "q"]]], ["attachActivity", "post", "/v1/entity/activity/{id}:attach", [["ActivityIdPathParam"], ["entities", "q", false, "form", false]]], ["getEntityActivityFeed", "get", "/v1/entity/{slug}/{id}/activity", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["after", "q"], ["before", "q"], ["start_date", "q"], ["end_date", "q"], ["preset_range", "q"], ["FromPageQueryParam"], ["size", "q"], ["type", "q", false, "form", false], ["include_relations", "q"], ["exclude_activity_groups", "q"]]], ["getRelations", "get", "/v1/entity/{slug}/{id}/relations", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["HydrateEntitiesQueryParam"], ["IncludeReverseQueryParam"], ["FromPageQueryParam"], ["size", "q"], ["IncludeSchemasQueryParam"], ["ExcludeSchemasQueryParam"]]], ["addRelations", "post", "/v1/entity/{slug}/{id}/relations", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["AsyncOperationQueryParam"], ["ActivityIdQueryParam"]], 1], ["removeRelations", "delete", "/v1/entity/{slug}/{id}/relations", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["AsyncOperationQueryParam"], ["ActivityIdQueryParam"]], 1], ["getRelationsV2", "get", "/v2/entity/{slug}/{id}/relations", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["HydrateEntitiesQueryParam"], ["query", "q"], ["IncludeReverseQueryParam"], ["FromPageQueryParam"], ["size", "q"], ["fields", "q"]]], ["getRelationsV3", "get", "/v3/entity/{slug}/{id}/relations", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["HydrateEntitiesQueryParam"], ["IncludeReverseDeprecatedQueryParam"], ["FromPageQueryParam"], ["size", "q"], ["IncludeSchemasQueryParam"], ["ExcludeSchemasQueryParam"], ["EntityRelationsModeQueryParam"], ["fields", "q"], ["include_deleted", "q"]]], ["getRelatedEntitiesCount", "get", "/v2/entity/{slug}/{id}/relations/count", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["ExcludeSchemasQueryParam"]]], ["updateRelation", "put", "/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["attribute", "p", true], ["entity_id", "p", true], ["AsyncOperationQueryParam"], ["ActivityIdQueryParam"]], 1], ["deleteRelation", "delete", "/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}", [["EntitySlugPathParam"], ["EntityIdPathParam"], ["attribute", "p", true], ["entity_id", "p", true], ["AsyncOperationQueryParam"], ["ActivityIdQueryParam"]]], ["exportEntities", "post", "/v1/entity:export", [["job_id", "q"], ["is_template", "q"], ["language", "q"]], 1], ["importEntities", "post", "/v1/entity:import", [["job_id", "q"]], 1], ["listSavedViews", "get", "/v1/entity/views", [["slug", "q"], ["sort", "q"], ["from", "q"], ["size", "q"], ["fields", "q"]]], ["createSavedView", "post", "/v1/entity/view", null, 1], ["getSavedView", "get", "/v1/entity/view/{id}", [["SavedViewIdPathParam"]]], ["updateSavedView", "put", "/v1/entity/view/{id}", [["SavedViewIdPathParam"]], 1], ["patchSavedView", "patch", "/v1/entity/view/{id}", [["SavedViewIdPathParam"]], 1], ["deleteSavedView", "delete", "/v1/entity/view/{id}", [["SavedViewIdPathParam"]]], ["listFavoriteViewsForUser", "get", "/v1/entity/views/favorites"], ["listTaxonomies", "get", "/v1/entity/taxonomies", [["include_disabled", "q"], ["type", "q"]]], ["createTaxonomy", "post", "/v1/entity/taxonomies", null, 1], ["getTaxonomy", "get", "/v1/entity/taxonomies/{taxonomySlug}", [["TaxonomySlugPathParam"]]], ["updateTaxonomy", "put", "/v1/entity/taxonomies/{taxonomySlug}", [["TaxonomySlugPathParam"]], 1], ["deleteTaxonomy", "delete", "/v1/entity/taxonomies/{taxonomySlug}", [["TaxonomySlugPathParam"], ["permanent", "q"]]], ["updateClassificationsForTaxonomy", "post", "/v1/entity/taxonomies/{taxonomySlug}/classifications", [["TaxonomySlugPathParam"]], 1], ["createTaxonomyClassification", "post", "/v2/entity/taxonomies/classifications", null, 1], ["getTaxonomyClassification", "get", "/v2/entity/taxonomies/classifications/{classificationSlug}", [["TaxonomyClassificationSlugPathParam"]]], ["updateTaxonomyClassification", "put", "/v2/entity/taxonomies/classifications/{classificationSlug}", [["TaxonomyClassificationSlugPathParam"]], 1], ["deleteTaxonomyClassification", "delete", "/v2/entity/taxonomies/classifications/{classificationSlug}", [["TaxonomyClassificationSlugPathParam"]]], ["taxonomyAutocomplete", "get", "/v1/entity/taxonomies/{taxonomySlug}:autocomplete", [["TaxonomySlugPathParam"], ["query", "q"], ["size", "q"]]], ["taxonomiesClassificationsSearch", "post", "/v1/entity/taxonomies/classifications:search", [["taxonomySlug", "q"], ["query", "q"], ["archived", "q"], ["include_archived", "q"], ["exclude_types", "q"]], 1], ["listTaxonomyClassificationsForSchema", "get", "/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}", [["EntitySlugPathParam"], ["TaxonomySlugPathParam"], ["query", "q"], ["size", "q"]]], ["getTaxonomyBulkActionJobs", "get", "/v1/entity/taxonomies/bulk-jobs", [["status", "q"], ["size", "q"], ["created_after", "q"], ["sort_pending_first", "q"], ["scope", "q"]]], ["getTaxonomyBulkActionJobById", "get", "/v1/entity/taxonomies/bulk-jobs/{job_id}", [["job_id", "p", true]]], ["cancelBulkAction", "post", "/v1/entity/taxonomies/bulk-jobs/{job_id}/cancel", [["job_id", "p", true]]], ["bulkMoveClassifications", "post", "/v1/entity/taxonomies/classifications:move", null, 1], ["bulkMergeClassifications", "post", "/v1/entity/taxonomies/classifications:merge", null, 1], ["bulkDeleteClassifications", "post", "/v1/entity/taxonomies/classifications:delete", null, 1], ["createSchemaAttribute", "post", "/v1/entity/schemas/attributes", null, 1], ["getSchemaAttribute", "get", "/v1/entity/schemas/attributes/{composite_id}", [["composite_id", "p", true]]], ["putSchemaAttribute", "put", "/v1/entity/schemas/attributes/{composite_id}", [["composite_id", "p", true]], 1], ["deleteSchemaAttribute", "delete", "/v1/entity/schemas/attributes/{composite_id}", [["composite_id", "p", true]]], ["createSchemaCapability", "post", "/v1/entity/schemas/capabilities", null, 1], ["getSchemaCapability", "get", "/v1/entity/schemas/capabilities/{composite_id}", [["composite_id", "p", true]]], ["putSchemaCapability", "put", "/v1/entity/schemas/capabilities/{composite_id}", [["composite_id", "p", true]], 1], ["deleteSchemaCapability", "delete", "/v1/entity/schemas/capabilities/{composite_id}", [["composite_id", "p", true]]], ["createSchemaGroup", "post", "/v1/entity/schemas/group", null, 1], ["getSchemaGroup", "get", "/v1/entity/schemas/group/{composite_id}", [["composite_id", "p", true]]], ["putSchemaGroup", "put", "/v1/entity/schemas/group/{composite_id}", [["composite_id", "p", true]], 1], ["deleteSchemaGroup", "delete", "/v1/entity/schemas/group/{composite_id}", [["composite_id", "p", true]]], ["createSchemaGroupHeadline", "post", "/v1/entity/schemas/headline", null, 1], ["getSchemaGroupHeadline", "get", "/v1/entity/schemas/headline/{composite_id}", [["composite_id", "p", true]]], ["putSchemaGroupHeadline", "put", "/v1/entity/schemas/headline/{composite_id}", [["composite_id", "p", true]], 1], ["deleteSchemaGroupHeadline", "delete", "/v1/entity/schemas/headline/{composite_id}", [["composite_id", "p", true]]]], cp: { EntityIdPathParam: ["id", "p", true], EntitySlugPathParam: ["slug", "p", true], EntitySlugPathPriceParam: ["slug", "p", true], TaxonomySlugQueryParam: ["taxonomySlug", "q", true], TaxonomySlugPathParam: ["taxonomySlug", "p", true], TaxonomySlugQueryParamOptional: ["taxonomySlug", "q"], TaxonomyClassificationSlugPathParam: ["classificationSlug", "p", true], SavedViewIdPathParam: ["id", "p", true], AsyncOperationQueryParam: ["async", "q"], HydrateEntitiesQueryParam: ["hydrate", "q"], ActivityIdQueryParam: ["activity_id", "q"], ActivityIdPathParam: ["id", "p", true], FromPageQueryParam: ["from", "q"], IncludeReverseDeprecatedQueryParam: ["include_reverse", "q"], IncludeReverseQueryParam: ["include_reverse", "q"], IncludeSchemasQueryParam: ["include_schemas", "q", false, "form", false], ExcludeSchemasQueryParam: ["exclude_schemas", "q", false, "form", false], EntityRelationsModeQueryParam: ["mode", "q"], DryRunQueryParam: ["dry_run", "q"], FillActivityQueryParam: ["fill_activity", "q"], ValidateEntityQueryParam: ["validate", "q"] } };
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.require_entity_runtime = require_entity_runtime;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "./chunk-YPSWSI3M.js";
|
|
2
|
-
|
|
3
|
-
// src/docs/configuration-hub.json
|
|
4
|
-
var configuration_hub_default = '# Configuration Hub API\n\n- **Base URL:** `https://configuration-hub.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/configuration-hub](https://docs.epilot.io/api/configuration-hub)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.configurationHub.listConfigTypes(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/configuration-hub\'\n\nconst configurationHubClient = getClient()\nauthorize(configurationHubClient, () => \'<token>\')\nconst { data } = await configurationHubClient.listConfigTypes(...)\n```\n\n## Operations\n\n**Configs**\n- [`listConfigTypes`](#listconfigtypes)\n- [`listConfigs`](#listconfigs)\n- [`getConfigDependencies`](#getconfigdependencies)\n\n**Index**\n- [`rebuildIndex`](#rebuildindex)\n\n**Schemas**\n- [`ResourceType`](#resourcetype)\n- [`ConfigTypeInfo`](#configtypeinfo)\n- [`ConfigNode`](#confignode)\n- [`ConfigListResponse`](#configlistresponse)\n- [`ConfigDependenciesResponse`](#configdependenciesresponse)\n- [`IndexRebuildResponse`](#indexrebuildresponse)\n- [`ErrorResponse`](#errorresponse)\n\n### `listConfigTypes`\n\nReturns the static list of available configuration types with display metadata.\nThis is a cheap call \u2014 no fan-out to downstream APIs. Returns all known types\nwith labels and icons. The frontend should\n\n`GET /v1/configs/types`\n\n```ts\nconst { data } = await client.listConfigTypes()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "type": "journey",\n "label": "Journeys",\n "icon": "Route",\n "source_api": "https://journey.sls.epilot.io",\n "sdk_client": "@epilot/sdk/journey"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listConfigs`\n\nList 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\n`GET /v1/configs/{type}`\n\n```ts\nconst { data } = await client.listConfigs({\n type: \'example\',\n cursor: \'example\',\n size: 1,\n q: \'example\',\n updated_after: \'example\',\n updated_before: \'example\',\n purposes: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "journey",\n "label": "string",\n "icon": "string",\n "total": 0,\n "next_cursor": "string",\n "items": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigDependencies`\n\nGet configs that are referenced by the given config.\nUsed to render children when expanding a config node in the tree.\n\n`GET /v1/configs/{type}/{id}/dependencies`\n\n```ts\nconst { data } = await client.getConfigDependencies({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n cursor: \'example\',\n size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `rebuildIndex`\n\nRebuild the configuration index for the caller\'s organization.\nCalls all adapter APIs in parallel and stores results in DynamoDB.\nIf a build is already in progress (within 60s), returns immediately.\n\n`POST /v1/index/rebuild`\n\n```ts\nconst { data } = await client.rebuildIndex()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "ready",\n "last_built_at": "1970-01-01T00:00:00.000Z",\n "total_items": 0,\n "build_duration_ms": 0,\n "failed_types": ["string"]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ResourceType`\n\nConfiguration resource type identifier.\nMatches blueprint-manifest-api V3 naming conventions.\n\n\n```ts\ntype ResourceType = "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n```\n\n### `ConfigTypeInfo`\n\nStatic metadata for a config type folder in the tree.\nNo downstream API calls \u2014 just type + label + icon + source API info.\n\n\n```ts\ntype ConfigTypeInfo = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n label: string\n icon: string\n source_api: string\n sdk_client: string\n}\n```\n\n### `ConfigNode`\n\nSummary metadata for a single configuration item in the tree\n\n```ts\ntype ConfigNode = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n}\n```\n\n### `ConfigListResponse`\n\nCursor-paginated list of configs for a specific type\n\n```ts\ntype ConfigListResponse = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n label: string\n icon: string\n total?: number\n next_cursor?: string\n items: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n }>\n}\n```\n\n### `ConfigDependenciesResponse`\n\nCursor-paginated list of configs referenced by a given config\n\n```ts\ntype ConfigDependenciesResponse = {\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n }>\n}\n```\n\n### `IndexRebuildResponse`\n\nResult of an index rebuild operation\n\n```ts\ntype IndexRebuildResponse = {\n status: "ready" | "building" | "failed" | "already_building"\n last_built_at?: string // date-time\n total_items?: number\n build_duration_ms?: number\n failed_types?: string[]\n}\n```\n\n### `ErrorResponse`\n\n```ts\ntype ErrorResponse = {\n status: number\n error: string\n}\n```\n';
|
|
5
|
-
export {
|
|
6
|
-
configuration_hub_default as default
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
-
|
|
3
|
-
// src/docs/configuration-hub.json
|
|
4
|
-
var configuration_hub_default = '# Configuration Hub API\n\n- **Base URL:** `https://configuration-hub.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/configuration-hub](https://docs.epilot.io/api/configuration-hub)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.configurationHub.listConfigTypes(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/configuration-hub\'\n\nconst configurationHubClient = getClient()\nauthorize(configurationHubClient, () => \'<token>\')\nconst { data } = await configurationHubClient.listConfigTypes(...)\n```\n\n## Operations\n\n**Configs**\n- [`listConfigTypes`](#listconfigtypes)\n- [`listConfigs`](#listconfigs)\n- [`getConfigDependencies`](#getconfigdependencies)\n\n**Index**\n- [`rebuildIndex`](#rebuildindex)\n\n**Schemas**\n- [`ResourceType`](#resourcetype)\n- [`ConfigTypeInfo`](#configtypeinfo)\n- [`ConfigNode`](#confignode)\n- [`ConfigListResponse`](#configlistresponse)\n- [`ConfigDependenciesResponse`](#configdependenciesresponse)\n- [`IndexRebuildResponse`](#indexrebuildresponse)\n- [`ErrorResponse`](#errorresponse)\n\n### `listConfigTypes`\n\nReturns the static list of available configuration types with display metadata.\nThis is a cheap call \u2014 no fan-out to downstream APIs. Returns all known types\nwith labels and icons. The frontend should\n\n`GET /v1/configs/types`\n\n```ts\nconst { data } = await client.listConfigTypes()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "type": "journey",\n "label": "Journeys",\n "icon": "Route",\n "source_api": "https://journey.sls.epilot.io",\n "sdk_client": "@epilot/sdk/journey"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listConfigs`\n\nList 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\n`GET /v1/configs/{type}`\n\n```ts\nconst { data } = await client.listConfigs({\n type: \'example\',\n cursor: \'example\',\n size: 1,\n q: \'example\',\n updated_after: \'example\',\n updated_before: \'example\',\n purposes: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "journey",\n "label": "string",\n "icon": "string",\n "total": 0,\n "next_cursor": "string",\n "items": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigDependencies`\n\nGet configs that are referenced by the given config.\nUsed to render children when expanding a config node in the tree.\n\n`GET /v1/configs/{type}/{id}/dependencies`\n\n```ts\nconst { data } = await client.getConfigDependencies({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n cursor: \'example\',\n size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `rebuildIndex`\n\nRebuild the configuration index for the caller\'s organization.\nCalls all adapter APIs in parallel and stores results in DynamoDB.\nIf a build is already in progress (within 60s), returns immediately.\n\n`POST /v1/index/rebuild`\n\n```ts\nconst { data } = await client.rebuildIndex()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "ready",\n "last_built_at": "1970-01-01T00:00:00.000Z",\n "total_items": 0,\n "build_duration_ms": 0,\n "failed_types": ["string"]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ResourceType`\n\nConfiguration resource type identifier.\nMatches blueprint-manifest-api V3 naming conventions.\n\n\n```ts\ntype ResourceType = "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n```\n\n### `ConfigTypeInfo`\n\nStatic metadata for a config type folder in the tree.\nNo downstream API calls \u2014 just type + label + icon + source API info.\n\n\n```ts\ntype ConfigTypeInfo = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n label: string\n icon: string\n source_api: string\n sdk_client: string\n}\n```\n\n### `ConfigNode`\n\nSummary metadata for a single configuration item in the tree\n\n```ts\ntype ConfigNode = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n}\n```\n\n### `ConfigListResponse`\n\nCursor-paginated list of configs for a specific type\n\n```ts\ntype ConfigListResponse = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n label: string\n icon: string\n total?: number\n next_cursor?: string\n items: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n }>\n}\n```\n\n### `ConfigDependenciesResponse`\n\nCursor-paginated list of configs referenced by a given config\n\n```ts\ntype ConfigDependenciesResponse = {\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n purposes?: string[]\n link?: string // uri\n }>\n}\n```\n\n### `IndexRebuildResponse`\n\nResult of an index rebuild operation\n\n```ts\ntype IndexRebuildResponse = {\n status: "ready" | "building" | "failed" | "already_building"\n last_built_at?: string // date-time\n total_items?: number\n build_duration_ms?: number\n failed_types?: string[]\n}\n```\n\n### `ErrorResponse`\n\n```ts\ntype ErrorResponse = {\n status: number\n error: string\n}\n```\n';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.default = configuration_hub_default;
|