@epilot/sdk 2.3.8 → 2.3.10

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.
Files changed (146) hide show
  1. package/definitions/configuration-hub-runtime.json +1 -1
  2. package/definitions/configuration-hub.json +220 -8
  3. package/definitions/workflow-definition.json +52 -0
  4. package/definitions/workflow.json +24 -0
  5. package/dist/apis/access-token.cjs +6 -6
  6. package/dist/apis/access-token.js +1 -1
  7. package/dist/apis/address-suggestions.cjs +6 -6
  8. package/dist/apis/address-suggestions.js +1 -1
  9. package/dist/apis/address.cjs +6 -6
  10. package/dist/apis/address.js +1 -1
  11. package/dist/apis/ai-agents.cjs +6 -6
  12. package/dist/apis/ai-agents.js +1 -1
  13. package/dist/apis/app.cjs +6 -6
  14. package/dist/apis/app.js +1 -1
  15. package/dist/apis/audit-logs.cjs +6 -6
  16. package/dist/apis/audit-logs.js +1 -1
  17. package/dist/apis/automation.cjs +6 -6
  18. package/dist/apis/automation.js +1 -1
  19. package/dist/apis/billing.cjs +6 -6
  20. package/dist/apis/billing.js +1 -1
  21. package/dist/apis/blueprint-manifest.cjs +6 -6
  22. package/dist/apis/blueprint-manifest.js +1 -1
  23. package/dist/apis/configuration-hub.cjs +8 -8
  24. package/dist/apis/configuration-hub.d.cts +2 -2
  25. package/dist/apis/configuration-hub.d.ts +2 -2
  26. package/dist/apis/configuration-hub.js +2 -2
  27. package/dist/apis/consent.cjs +6 -6
  28. package/dist/apis/consent.js +1 -1
  29. package/dist/apis/customer-portal.cjs +6 -6
  30. package/dist/apis/customer-portal.js +1 -1
  31. package/dist/apis/dashboard.cjs +6 -6
  32. package/dist/apis/dashboard.js +1 -1
  33. package/dist/apis/data-governance.cjs +6 -6
  34. package/dist/apis/data-governance.js +1 -1
  35. package/dist/apis/deduplication.cjs +6 -6
  36. package/dist/apis/deduplication.js +1 -1
  37. package/dist/apis/design.cjs +6 -6
  38. package/dist/apis/design.js +1 -1
  39. package/dist/apis/document.cjs +6 -6
  40. package/dist/apis/document.js +1 -1
  41. package/dist/apis/email-settings.cjs +6 -6
  42. package/dist/apis/email-settings.js +1 -1
  43. package/dist/apis/email-template.cjs +6 -6
  44. package/dist/apis/email-template.js +1 -1
  45. package/dist/apis/entity-mapping.cjs +6 -6
  46. package/dist/apis/entity-mapping.js +1 -1
  47. package/dist/apis/entity.cjs +6 -6
  48. package/dist/apis/entity.js +1 -1
  49. package/dist/apis/environments.cjs +6 -6
  50. package/dist/apis/environments.js +1 -1
  51. package/dist/apis/event-catalog.cjs +6 -6
  52. package/dist/apis/event-catalog.js +1 -1
  53. package/dist/apis/file.cjs +6 -6
  54. package/dist/apis/file.js +1 -1
  55. package/dist/apis/iban.cjs +6 -6
  56. package/dist/apis/iban.js +1 -1
  57. package/dist/apis/integration-toolkit.cjs +6 -6
  58. package/dist/apis/integration-toolkit.js +1 -1
  59. package/dist/apis/journey.cjs +6 -6
  60. package/dist/apis/journey.js +1 -1
  61. package/dist/apis/kanban.cjs +6 -6
  62. package/dist/apis/kanban.js +1 -1
  63. package/dist/apis/message.cjs +6 -6
  64. package/dist/apis/message.js +1 -1
  65. package/dist/apis/metering.cjs +6 -6
  66. package/dist/apis/metering.js +1 -1
  67. package/dist/apis/notes.cjs +6 -6
  68. package/dist/apis/notes.js +1 -1
  69. package/dist/apis/notification.cjs +6 -6
  70. package/dist/apis/notification.js +1 -1
  71. package/dist/apis/organization.cjs +6 -6
  72. package/dist/apis/organization.js +1 -1
  73. package/dist/apis/partner-directory.cjs +6 -6
  74. package/dist/apis/partner-directory.js +1 -1
  75. package/dist/apis/permissions.cjs +6 -6
  76. package/dist/apis/permissions.js +1 -1
  77. package/dist/apis/pricing-tier.cjs +6 -6
  78. package/dist/apis/pricing-tier.js +1 -1
  79. package/dist/apis/pricing.cjs +6 -6
  80. package/dist/apis/pricing.js +1 -1
  81. package/dist/apis/purpose.cjs +6 -6
  82. package/dist/apis/purpose.js +1 -1
  83. package/dist/apis/query.cjs +6 -6
  84. package/dist/apis/query.js +1 -1
  85. package/dist/apis/sandbox.cjs +6 -6
  86. package/dist/apis/sandbox.js +1 -1
  87. package/dist/apis/sharing.cjs +6 -6
  88. package/dist/apis/sharing.js +1 -1
  89. package/dist/apis/submission.cjs +6 -6
  90. package/dist/apis/submission.js +1 -1
  91. package/dist/apis/target.cjs +6 -6
  92. package/dist/apis/target.js +1 -1
  93. package/dist/apis/targeting.cjs +6 -6
  94. package/dist/apis/targeting.js +1 -1
  95. package/dist/apis/template-variables.cjs +6 -6
  96. package/dist/apis/template-variables.js +1 -1
  97. package/dist/apis/user.cjs +6 -6
  98. package/dist/apis/user.js +1 -1
  99. package/dist/apis/validation-rules.cjs +6 -6
  100. package/dist/apis/validation-rules.js +1 -1
  101. package/dist/apis/webhooks.cjs +6 -6
  102. package/dist/apis/webhooks.js +1 -1
  103. package/dist/apis/workflow-definition.cjs +6 -6
  104. package/dist/apis/workflow-definition.d.cts +2 -2
  105. package/dist/apis/workflow-definition.d.ts +2 -2
  106. package/dist/apis/workflow-definition.js +1 -1
  107. package/dist/apis/workflow.cjs +6 -6
  108. package/dist/apis/workflow.d.cts +2 -2
  109. package/dist/apis/workflow.d.ts +2 -2
  110. package/dist/apis/workflow.js +1 -1
  111. package/dist/{chunk-6DZXWV2A.cjs → chunk-MDLNRFJV.cjs} +4 -4
  112. package/dist/chunk-ONOGGR6Q.js +14 -0
  113. package/dist/{chunk-7TFVO6SP.js → chunk-W7YCS4FU.js} +4 -4
  114. package/dist/chunk-ZSONBZIF.cjs +14 -0
  115. package/dist/configuration-hub-A3S6ND6R.cjs +7 -0
  116. package/dist/configuration-hub-PMAW44U5.js +7 -0
  117. package/dist/{configuration-hub-runtime-B7KKIHHY.cjs → configuration-hub-runtime-I5Y67CXD.cjs} +2 -2
  118. package/dist/{configuration-hub-runtime-TEDEKI7E.js → configuration-hub-runtime-L6IOERSP.js} +1 -1
  119. package/dist/configuration-hub.d-Cqaq2F-W.d.cts +478 -0
  120. package/dist/configuration-hub.d-Cqaq2F-W.d.ts +478 -0
  121. package/dist/index.cjs +10 -10
  122. package/dist/index.d.cts +3 -3
  123. package/dist/index.d.ts +3 -3
  124. package/dist/index.js +2 -2
  125. package/dist/workflow-3WBD74WR.js +7 -0
  126. package/dist/workflow-WIUZ5TOX.cjs +7 -0
  127. package/dist/workflow-definition-2VF7S23G.js +7 -0
  128. package/dist/workflow-definition-U6YXD42W.cjs +7 -0
  129. package/dist/{workflow-definition.d-ByCJK9_x.d.ts → workflow-definition.d-DOeb0KVV.d.cts} +37 -1
  130. package/dist/{workflow-definition.d-ByCJK9_x.d.cts → workflow-definition.d-DOeb0KVV.d.ts} +37 -1
  131. package/dist/{workflow.d-pD8ISOg-.d.ts → workflow.d-CMSKt8oN.d.cts} +22 -1
  132. package/dist/{workflow.d-pD8ISOg-.d.cts → workflow.d-CMSKt8oN.d.ts} +22 -1
  133. package/docs/configuration-hub.md +159 -11
  134. package/docs/workflow-definition.md +40 -8
  135. package/docs/workflow.md +57 -11
  136. package/package.json +1 -1
  137. package/dist/chunk-4JAOFRYX.js +0 -14
  138. package/dist/chunk-Q7OKRNUG.cjs +0 -14
  139. package/dist/configuration-hub-LKSRCGYT.cjs +0 -7
  140. package/dist/configuration-hub-TZ2ULWV4.js +0 -7
  141. package/dist/configuration-hub.d-CqvhcMOn.d.cts +0 -166
  142. package/dist/configuration-hub.d-CqvhcMOn.d.ts +0 -166
  143. package/dist/workflow-CQOBZ25C.cjs +0 -7
  144. package/dist/workflow-G7VFCXY7.js +0 -7
  145. package/dist/workflow-definition-CVBYKAUY.cjs +0 -7
  146. package/dist/workflow-definition-GNAKDNG7.js +0 -7
@@ -1 +1 @@
1
- {"s":"https://configuration-hub.dev.sls.epilot.io","o":[["listConfigTypes","get","/v1/configs/types"],["listConfigs","get","/v1/configs/{type}",[["ConfigType"],["CursorParam"],["SizeParam"]]],["getConfigDependencies","get","/v1/configs/{type}/{id}/dependencies",[["ConfigType"],["ConfigId"],["CursorParam"],["SizeParam"]]]],"v":"3.0.3","cp":{"ConfigType":["type","p",true],"ConfigId":["id","p",true],"CursorParam":["cursor","q"],"SizeParam":["size","q"]}}
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"]}}
@@ -2,17 +2,16 @@
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
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",
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
6
  "version": "0.2.0"
7
7
  },
8
8
  "servers": [
9
9
  {
10
- "url": "https://configuration-hub.dev.sls.epilot.io",
11
- "description": "Dev"
10
+ "url": "https://configuration-hub.sls.epilot.io"
12
11
  },
13
12
  {
14
- "url": "https://configuration-hub.sls.epilot.io",
15
- "description": "Production"
13
+ "url": "https://configuration-hub.dev.sls.epilot.io",
14
+ "description": "Dev"
16
15
  }
17
16
  ],
18
17
  "security": [
@@ -77,6 +76,69 @@
77
76
  },
78
77
  {
79
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
+ }
80
142
  }
81
143
  ],
82
144
  "responses": {
@@ -148,6 +210,80 @@
148
210
  }
149
211
  }
150
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
+ }
151
287
  }
152
288
  },
153
289
  "components": {
@@ -214,6 +350,7 @@
214
350
  "tax",
215
351
  "coupon",
216
352
  "file",
353
+ "document_template",
217
354
  "webhook",
218
355
  "saved_view",
219
356
  "dashboard",
@@ -232,7 +369,8 @@
232
369
  "entity_mapping",
233
370
  "portal_config",
234
371
  "target",
235
- "product_recommendation"
372
+ "product_recommendation",
373
+ "access_token"
236
374
  ]
237
375
  },
238
376
  "ConfigTypeInfo": {
@@ -302,6 +440,13 @@
302
440
  },
303
441
  "description": "Tags / labels"
304
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
+ },
305
450
  "purposes": {
306
451
  "type": "array",
307
452
  "items": {
@@ -313,6 +458,11 @@
313
458
  "type": "string",
314
459
  "format": "uri",
315
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
316
466
  }
317
467
  },
318
468
  "required": [
@@ -342,7 +492,7 @@
342
492
  "type": "string",
343
493
  "description": "Cursor for fetching the next page. Absent when no more pages."
344
494
  },
345
- "items": {
495
+ "results": {
346
496
  "type": "array",
347
497
  "items": {
348
498
  "$ref": "#/components/schemas/ConfigNode"
@@ -353,7 +503,7 @@
353
503
  "type",
354
504
  "label",
355
505
  "icon",
356
- "items"
506
+ "results"
357
507
  ]
358
508
  },
359
509
  "ConfigDependenciesResponse": {
@@ -379,6 +529,68 @@
379
529
  "results"
380
530
  ]
381
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
+ },
382
594
  "ErrorResponse": {
383
595
  "type": "object",
384
596
  "properties": {
@@ -638,6 +638,16 @@
638
638
  }
639
639
  }
640
640
  },
641
+ "409": {
642
+ "description": "Conflict - the workflow was modified by another user since it was last loaded",
643
+ "content": {
644
+ "application/json": {
645
+ "schema": {
646
+ "$ref": "#/components/schemas/ErrorResp"
647
+ }
648
+ }
649
+ }
650
+ },
641
651
  "500": {
642
652
  "description": "Other errors",
643
653
  "content": {
@@ -1795,6 +1805,15 @@
1795
1805
  "type": "string",
1796
1806
  "description": "Id of the automation config that triggers this workflow"
1797
1807
  },
1808
+ "input_entity": {
1809
+ "type": "string",
1810
+ "enum": [
1811
+ "thread",
1812
+ "first_email",
1813
+ "last_email"
1814
+ ],
1815
+ "description": "For email thread triggers, specifies which entity from the triggered email thread to use as the primary input for automation and decision tasks. Defaults to `thread` when not specified.\n"
1816
+ },
1798
1817
  "trigger_config": {
1799
1818
  "type": "array",
1800
1819
  "items": {
@@ -2036,6 +2055,34 @@
2036
2055
  },
2037
2056
  "additionalProperties": true,
2038
2057
  "description": "Transient field. The full automation action configuration following the automation API action schema. Processed by the backend during create/update and stripped before storage. When present without a flow_id, a new automation flow is created. When present with a flow_id, the existing automation flow is updated.\n"
2058
+ },
2059
+ "duplicated_flow_id": {
2060
+ "type": "string",
2061
+ "description": "Transient field. When present, the backend clones the automation flow referenced by this ID and assigns the new flow_id to the task. Used when duplicating an automation task to give it an independent automation. Stripped before storage.\n"
2062
+ },
2063
+ "input_context": {
2064
+ "$ref": "#/components/schemas/AutomationInputContext"
2065
+ }
2066
+ }
2067
+ },
2068
+ "AutomationInputContext": {
2069
+ "type": "object",
2070
+ "description": "Optional. Source of the entity fed into this automation task. If omitted, the workflow's primary entity is used.\n",
2071
+ "required": [
2072
+ "source"
2073
+ ],
2074
+ "properties": {
2075
+ "source": {
2076
+ "type": "string",
2077
+ "enum": [
2078
+ "trigger",
2079
+ "task"
2080
+ ],
2081
+ "description": "`trigger` = workflow's primary (trigger) entity. `task` = entity produced by an upstream task in the graph.\n"
2082
+ },
2083
+ "task_id": {
2084
+ "type": "string",
2085
+ "description": "Required when source is `task`. The id of the upstream task whose output entity should feed this task."
2039
2086
  }
2040
2087
  }
2041
2088
  },
@@ -2196,6 +2243,11 @@
2196
2243
  "$ref": "#/components/schemas/Condition"
2197
2244
  }
2198
2245
  },
2246
+ "allow_parallel_execution": {
2247
+ "type": "boolean",
2248
+ "description": "When true, all branches with met conditions execute in parallel. When false, only the first branch with a met condition is executed. Defaults to true for backwards compatibility.",
2249
+ "default": true
2250
+ },
2199
2251
  "schedule": {
2200
2252
  "anyOf": [
2201
2253
  {
@@ -3764,12 +3764,36 @@
3764
3764
  },
3765
3765
  "error_reason": {
3766
3766
  "type": "string"
3767
+ },
3768
+ "input_context": {
3769
+ "$ref": "#/components/schemas/AutomationInputContext"
3767
3770
  }
3768
3771
  },
3769
3772
  "required": [
3770
3773
  "flow_id"
3771
3774
  ]
3772
3775
  },
3776
+ "AutomationInputContext": {
3777
+ "type": "object",
3778
+ "description": "Optional. Source of the entity fed into this automation task. If omitted, the workflow's primary entity is used.\n",
3779
+ "required": [
3780
+ "source"
3781
+ ],
3782
+ "properties": {
3783
+ "source": {
3784
+ "type": "string",
3785
+ "enum": [
3786
+ "trigger",
3787
+ "task"
3788
+ ],
3789
+ "description": "`trigger` = workflow's primary (trigger) entity. `task` = entity produced by an upstream task in the graph.\n"
3790
+ },
3791
+ "task_id": {
3792
+ "type": "string",
3793
+ "description": "Required when source is `task`. The id of the upstream task whose output entity should feed this task."
3794
+ }
3795
+ }
3796
+ },
3773
3797
  "AnalyticsInfo": {
3774
3798
  "type": "object",
3775
3799
  "properties": {
@@ -6,25 +6,25 @@ var _chunkOXJOO2YFcjs = require('../chunk-OXJOO2YF.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk6DZXWV2Acjs = require('../chunk-6DZXWV2A.cjs');
9
+ var _chunkMDLNRFJVcjs = require('../chunk-MDLNRFJV.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/access-token.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkOXJOO2YFcjs.require_access_token_runtime.call(void 0, );
15
- return _chunk6DZXWV2Acjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkMDLNRFJVcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunk6DZXWV2Acjs.createApiClient.call(void 0, { definition: def, apiName: "accessToken" });
21
+ _instance = _chunkMDLNRFJVcjs.createApiClient.call(void 0, { definition: def, apiName: "accessToken" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunk6DZXWV2Acjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkMDLNRFJVcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunk6DZXWV2Acjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "accessToken" }),
27
+ createClient: () => _chunkMDLNRFJVcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "accessToken" }),
28
28
  apiName: "accessToken"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var accessToken = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.accessToken = accessToken; exports.authorize = _chunk6DZXWV2Acjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
38
+ exports.accessToken = accessToken; exports.authorize = _chunkMDLNRFJVcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-7TFVO6SP.js";
9
+ } from "../chunk-W7YCS4FU.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/access-token.ts
@@ -6,25 +6,25 @@ var _chunkLKRBFBFNcjs = require('../chunk-LKRBFBFN.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk6DZXWV2Acjs = require('../chunk-6DZXWV2A.cjs');
9
+ var _chunkMDLNRFJVcjs = require('../chunk-MDLNRFJV.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/address-suggestions.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkLKRBFBFNcjs.require_address_suggestions_runtime.call(void 0, );
15
- return _chunk6DZXWV2Acjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkMDLNRFJVcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunk6DZXWV2Acjs.createApiClient.call(void 0, { definition: def, apiName: "addressSuggestions" });
21
+ _instance = _chunkMDLNRFJVcjs.createApiClient.call(void 0, { definition: def, apiName: "addressSuggestions" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunk6DZXWV2Acjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkMDLNRFJVcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunk6DZXWV2Acjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "addressSuggestions" }),
27
+ createClient: () => _chunkMDLNRFJVcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "addressSuggestions" }),
28
28
  apiName: "addressSuggestions"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var addressSuggestions = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.addressSuggestions = addressSuggestions; exports.authorize = _chunk6DZXWV2Acjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
38
+ exports.addressSuggestions = addressSuggestions; exports.authorize = _chunkMDLNRFJVcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-7TFVO6SP.js";
9
+ } from "../chunk-W7YCS4FU.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/address-suggestions.ts
@@ -6,25 +6,25 @@ var _chunkT67ZXTVGcjs = require('../chunk-T67ZXTVG.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk6DZXWV2Acjs = require('../chunk-6DZXWV2A.cjs');
9
+ var _chunkMDLNRFJVcjs = require('../chunk-MDLNRFJV.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/address.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkT67ZXTVGcjs.require_address_runtime.call(void 0, );
15
- return _chunk6DZXWV2Acjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkMDLNRFJVcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunk6DZXWV2Acjs.createApiClient.call(void 0, { definition: def, apiName: "address" });
21
+ _instance = _chunkMDLNRFJVcjs.createApiClient.call(void 0, { definition: def, apiName: "address" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunk6DZXWV2Acjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkMDLNRFJVcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunk6DZXWV2Acjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "address" }),
27
+ createClient: () => _chunkMDLNRFJVcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "address" }),
28
28
  apiName: "address"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var address = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.address = address; exports.authorize = _chunk6DZXWV2Acjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
38
+ exports.address = address; exports.authorize = _chunkMDLNRFJVcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-7TFVO6SP.js";
9
+ } from "../chunk-W7YCS4FU.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/address.ts
@@ -6,25 +6,25 @@ var _chunkFARDEGPHcjs = require('../chunk-FARDEGPH.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk6DZXWV2Acjs = require('../chunk-6DZXWV2A.cjs');
9
+ var _chunkMDLNRFJVcjs = require('../chunk-MDLNRFJV.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/ai-agents.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkFARDEGPHcjs.require_ai_agents_runtime.call(void 0, );
15
- return _chunk6DZXWV2Acjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkMDLNRFJVcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunk6DZXWV2Acjs.createApiClient.call(void 0, { definition: def, apiName: "aiAgents" });
21
+ _instance = _chunkMDLNRFJVcjs.createApiClient.call(void 0, { definition: def, apiName: "aiAgents" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunk6DZXWV2Acjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkMDLNRFJVcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunk6DZXWV2Acjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "aiAgents" }),
27
+ createClient: () => _chunkMDLNRFJVcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "aiAgents" }),
28
28
  apiName: "aiAgents"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var aiAgents = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.aiAgents = aiAgents; exports.authorize = _chunk6DZXWV2Acjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
38
+ exports.aiAgents = aiAgents; exports.authorize = _chunkMDLNRFJVcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-7TFVO6SP.js";
9
+ } from "../chunk-W7YCS4FU.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/ai-agents.ts
package/dist/apis/app.cjs CHANGED
@@ -6,25 +6,25 @@ var _chunkL66IX6GXcjs = require('../chunk-L66IX6GX.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk6DZXWV2Acjs = require('../chunk-6DZXWV2A.cjs');
9
+ var _chunkMDLNRFJVcjs = require('../chunk-MDLNRFJV.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/app.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkL66IX6GXcjs.require_app_runtime.call(void 0, );
15
- return _chunk6DZXWV2Acjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkMDLNRFJVcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunk6DZXWV2Acjs.createApiClient.call(void 0, { definition: def, apiName: "app" });
21
+ _instance = _chunkMDLNRFJVcjs.createApiClient.call(void 0, { definition: def, apiName: "app" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunk6DZXWV2Acjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkMDLNRFJVcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunk6DZXWV2Acjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "app" }),
27
+ createClient: () => _chunkMDLNRFJVcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "app" }),
28
28
  apiName: "app"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var app = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.app = app; exports.authorize = _chunk6DZXWV2Acjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
38
+ exports.app = app; exports.authorize = _chunkMDLNRFJVcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
package/dist/apis/app.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-7TFVO6SP.js";
9
+ } from "../chunk-W7YCS4FU.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/app.ts