@epilot/sdk 2.18.7 → 2.18.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/automation.json +177 -0
- package/definitions/integration-toolkit.json +298 -15
- 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.d.cts +2 -2
- package/dist/apis/automation.d.ts +2 -2
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- 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/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/automation-UP6J7QIK.js +7 -0
- package/dist/automation-ZF5ACFVW.cjs +7 -0
- package/dist/{automation.d-DocUQr4m.d.cts → automation.d-DiWfPkLs.d.cts} +295 -3
- package/dist/{automation.d-DocUQr4m.d.ts → automation.d-DiWfPkLs.d.ts} +295 -3
- package/dist/{chunk-FMM7LLAO.js → chunk-P32T4ZYN.js} +2 -2
- package/dist/{chunk-2L5YHQFJ.cjs → chunk-X7DUVWSL.cjs} +2 -2
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/integration-toolkit-OSK5M75F.js +7 -0
- package/dist/integration-toolkit-W5IENOJW.cjs +7 -0
- package/dist/{integration-toolkit.d-CVI89-A-.d.cts → integration-toolkit.d-D5LjhCQB.d.cts} +564 -38
- package/dist/{integration-toolkit.d-CVI89-A-.d.ts → integration-toolkit.d-D5LjhCQB.d.ts} +564 -38
- package/docs/automation.md +138 -10
- package/docs/integration-toolkit.md +442 -141
- package/package.json +1 -1
- package/dist/automation-UES4YTBX.js +0 -7
- package/dist/automation-ZPPNTUOZ.cjs +0 -7
- package/dist/integration-toolkit-MT7RPOOG.js +0 -7
- package/dist/integration-toolkit-S5BHYFIW.cjs +0 -7
package/docs/automation.md
CHANGED
|
@@ -86,6 +86,10 @@ const { data } = await automationClient.searchFlows(...)
|
|
|
86
86
|
- [`AssignThreadAction`](#assignthreadaction)
|
|
87
87
|
- [`MoveThreadConfig`](#movethreadconfig)
|
|
88
88
|
- [`AssignThreadConfig`](#assignthreadconfig)
|
|
89
|
+
- [`EntityAssignee`](#entityassignee)
|
|
90
|
+
- [`AssignEntityConfig`](#assignentityconfig)
|
|
91
|
+
- [`AssignEntityActionConfig`](#assignentityactionconfig)
|
|
92
|
+
- [`AssignEntityAction`](#assignentityaction)
|
|
89
93
|
- [`SendEmailActionConfig`](#sendemailactionconfig)
|
|
90
94
|
- [`SendEmailAction`](#sendemailaction)
|
|
91
95
|
- [`ForwardEmailActionConfig`](#forwardemailactionconfig)
|
|
@@ -351,6 +355,7 @@ const { data } = await client.startExecution(
|
|
|
351
355
|
parent_task_id: 'string',
|
|
352
356
|
depth: 0
|
|
353
357
|
},
|
|
358
|
+
_automation_chain: ['string'],
|
|
354
359
|
entity_contexts: [
|
|
355
360
|
{
|
|
356
361
|
entity_id: 'string',
|
|
@@ -476,6 +481,7 @@ const { data } = await client.startExecution(
|
|
|
476
481
|
"parent_task_id": "string",
|
|
477
482
|
"depth": 0
|
|
478
483
|
},
|
|
484
|
+
"_automation_chain": ["string"],
|
|
479
485
|
"entity_contexts": [
|
|
480
486
|
{}
|
|
481
487
|
]
|
|
@@ -841,6 +847,7 @@ const { data } = await client.getExecution({
|
|
|
841
847
|
"parent_task_id": "string",
|
|
842
848
|
"depth": 0
|
|
843
849
|
},
|
|
850
|
+
"_automation_chain": ["string"],
|
|
844
851
|
"entity_contexts": [
|
|
845
852
|
{}
|
|
846
853
|
]
|
|
@@ -985,6 +992,7 @@ const { data } = await client.cancelExecution({
|
|
|
985
992
|
"parent_task_id": "string",
|
|
986
993
|
"depth": 0
|
|
987
994
|
},
|
|
995
|
+
"_automation_chain": ["string"],
|
|
988
996
|
"entity_contexts": [
|
|
989
997
|
{}
|
|
990
998
|
]
|
|
@@ -1093,6 +1101,7 @@ const { data } = await client.resumeExecutionWithToken(
|
|
|
1093
1101
|
"workflow_exec_task_id": "string",
|
|
1094
1102
|
"workflow_role": "trigger_workflow",
|
|
1095
1103
|
"_execution_chain": {},
|
|
1104
|
+
"_automation_chain": ["string"],
|
|
1096
1105
|
"entity_contexts": []
|
|
1097
1106
|
},
|
|
1098
1107
|
"loops": [
|
|
@@ -1109,6 +1118,7 @@ const { data } = await client.resumeExecutionWithToken(
|
|
|
1109
1118
|
"config": {
|
|
1110
1119
|
"mapping_config": {},
|
|
1111
1120
|
"target_schema": "string",
|
|
1121
|
+
"use_uniqueness_criteria": true,
|
|
1112
1122
|
"target_unique": ["string"],
|
|
1113
1123
|
"mapping_attributes": [],
|
|
1114
1124
|
"relation_attributes": [],
|
|
@@ -1506,6 +1516,7 @@ type AnyAction = {
|
|
|
1506
1516
|
version?: { ... }
|
|
1507
1517
|
}
|
|
1508
1518
|
target_schema: string
|
|
1519
|
+
use_uniqueness_criteria?: boolean
|
|
1509
1520
|
target_unique?: string[]
|
|
1510
1521
|
mapping_attributes?: Array<{
|
|
1511
1522
|
target?: { ... }
|
|
@@ -1596,7 +1607,6 @@ type AnyAction = {
|
|
|
1596
1607
|
wait_for_confirmation?: boolean
|
|
1597
1608
|
reply_to_sender?: boolean
|
|
1598
1609
|
reply_mode?: "reply_in_thread" | "new_email"
|
|
1599
|
-
mark_as_done?: boolean
|
|
1600
1610
|
// ...
|
|
1601
1611
|
}
|
|
1602
1612
|
```
|
|
@@ -1616,6 +1626,7 @@ type AnyActionConfig = {
|
|
|
1616
1626
|
version?: { ... }
|
|
1617
1627
|
}
|
|
1618
1628
|
target_schema: string
|
|
1629
|
+
use_uniqueness_criteria?: boolean
|
|
1619
1630
|
target_unique?: string[]
|
|
1620
1631
|
mapping_attributes?: Array<{
|
|
1621
1632
|
target?: { ... }
|
|
@@ -1703,7 +1714,6 @@ type AnyActionConfig = {
|
|
|
1703
1714
|
payload?: Record<string, unknown>
|
|
1704
1715
|
}
|
|
1705
1716
|
condition_id?: string
|
|
1706
|
-
schedule_id?: string
|
|
1707
1717
|
// ...
|
|
1708
1718
|
}
|
|
1709
1719
|
```
|
|
@@ -2053,6 +2063,7 @@ type MapEntityActionConfig = {
|
|
|
2053
2063
|
version?: { ... }
|
|
2054
2064
|
}
|
|
2055
2065
|
target_schema: string
|
|
2066
|
+
use_uniqueness_criteria?: boolean
|
|
2056
2067
|
target_unique?: string[]
|
|
2057
2068
|
mapping_attributes?: Array<{
|
|
2058
2069
|
target?: { ... }
|
|
@@ -2108,6 +2119,7 @@ type MapEntityAction = {
|
|
|
2108
2119
|
version?: { ... }
|
|
2109
2120
|
}
|
|
2110
2121
|
target_schema: string
|
|
2122
|
+
use_uniqueness_criteria?: boolean
|
|
2111
2123
|
target_unique?: string[]
|
|
2112
2124
|
mapping_attributes?: Array<{
|
|
2113
2125
|
target?: { ... }
|
|
@@ -2151,6 +2163,7 @@ type MapEntityConfig = {
|
|
|
2151
2163
|
version?: number
|
|
2152
2164
|
}
|
|
2153
2165
|
target_schema: string
|
|
2166
|
+
use_uniqueness_criteria?: boolean
|
|
2154
2167
|
target_unique?: string[]
|
|
2155
2168
|
mapping_attributes?: Array<{
|
|
2156
2169
|
target?: string
|
|
@@ -2350,6 +2363,7 @@ type AssignThreadAction = {
|
|
|
2350
2363
|
add?: string[]
|
|
2351
2364
|
assignment_type?: "direct" | "even_distribution" | "sequential"
|
|
2352
2365
|
only_available_users?: boolean
|
|
2366
|
+
hold_until_available?: boolean
|
|
2353
2367
|
match_user_skills?: boolean
|
|
2354
2368
|
required_skill_categories?: string[]
|
|
2355
2369
|
skill_match_mode?: "require_all" | "prefer"
|
|
@@ -2375,6 +2389,7 @@ type AssignThreadConfig = {
|
|
|
2375
2389
|
add?: string[]
|
|
2376
2390
|
assignment_type?: "direct" | "even_distribution" | "sequential"
|
|
2377
2391
|
only_available_users?: boolean
|
|
2392
|
+
hold_until_available?: boolean
|
|
2378
2393
|
match_user_skills?: boolean
|
|
2379
2394
|
required_skill_categories?: string[]
|
|
2380
2395
|
skill_match_mode?: "require_all" | "prefer"
|
|
@@ -2383,6 +2398,117 @@ type AssignThreadConfig = {
|
|
|
2383
2398
|
}
|
|
2384
2399
|
```
|
|
2385
2400
|
|
|
2401
|
+
### `EntityAssignee`
|
|
2402
|
+
|
|
2403
|
+
A single assignee as stored in a user-relation attribute. Written through
|
|
2404
|
+
verbatim by the assign-entity worker. Note this object encoding differs
|
|
2405
|
+
deliberately from AssignThreadConfig, which stores bare id strings —
|
|
2406
|
+
each matches what its own target accepts.
|
|
2407
|
+
|
|
2408
|
+
|
|
2409
|
+
```ts
|
|
2410
|
+
type EntityAssignee = {
|
|
2411
|
+
type: "user" | "partner_user" | "partner_organization" | "group"
|
|
2412
|
+
user_id?: string
|
|
2413
|
+
group_id?: string
|
|
2414
|
+
org_id?: string
|
|
2415
|
+
partner_id?: string
|
|
2416
|
+
display_name?: string
|
|
2417
|
+
email?: string
|
|
2418
|
+
}
|
|
2419
|
+
```
|
|
2420
|
+
|
|
2421
|
+
### `AssignEntityConfig`
|
|
2422
|
+
|
|
2423
|
+
```ts
|
|
2424
|
+
type AssignEntityConfig = {
|
|
2425
|
+
attribute?: string
|
|
2426
|
+
assignees?: Array<{
|
|
2427
|
+
type: "user" | "partner_user" | "partner_organization" | "group"
|
|
2428
|
+
user_id?: string
|
|
2429
|
+
group_id?: string
|
|
2430
|
+
org_id?: string
|
|
2431
|
+
partner_id?: string
|
|
2432
|
+
display_name?: string
|
|
2433
|
+
email?: string
|
|
2434
|
+
}>
|
|
2435
|
+
write_mode?: "replace" | "append"
|
|
2436
|
+
assignment_type?: "direct"
|
|
2437
|
+
source?: {
|
|
2438
|
+
id?: string
|
|
2439
|
+
origin?: "trigger" | "action"
|
|
2440
|
+
schema?: string
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
```
|
|
2444
|
+
|
|
2445
|
+
### `AssignEntityActionConfig`
|
|
2446
|
+
|
|
2447
|
+
```ts
|
|
2448
|
+
type AssignEntityActionConfig = {
|
|
2449
|
+
id?: string
|
|
2450
|
+
flow_action_id?: string
|
|
2451
|
+
name?: string
|
|
2452
|
+
type?: "assign-entity"
|
|
2453
|
+
config?: {
|
|
2454
|
+
attribute?: string
|
|
2455
|
+
assignees?: Array<{
|
|
2456
|
+
type: { ... }
|
|
2457
|
+
user_id?: { ... }
|
|
2458
|
+
group_id?: { ... }
|
|
2459
|
+
org_id?: { ... }
|
|
2460
|
+
partner_id?: { ... }
|
|
2461
|
+
display_name?: { ... }
|
|
2462
|
+
email?: { ... }
|
|
2463
|
+
}>
|
|
2464
|
+
write_mode?: "replace" | "append"
|
|
2465
|
+
assignment_type?: "direct"
|
|
2466
|
+
source?: {
|
|
2467
|
+
id?: { ... }
|
|
2468
|
+
origin?: { ... }
|
|
2469
|
+
schema?: { ... }
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
allow_failure?: boolean
|
|
2473
|
+
created_automatically?: boolean
|
|
2474
|
+
is_bulk_action?: boolean
|
|
2475
|
+
reason?: {
|
|
2476
|
+
message?: string
|
|
2477
|
+
payload?: Record<string, unknown>
|
|
2478
|
+
}
|
|
2479
|
+
condition_id?: string
|
|
2480
|
+
schedule_id?: string
|
|
2481
|
+
loop_id?: string
|
|
2482
|
+
}
|
|
2483
|
+
```
|
|
2484
|
+
|
|
2485
|
+
### `AssignEntityAction`
|
|
2486
|
+
|
|
2487
|
+
```ts
|
|
2488
|
+
type AssignEntityAction = {
|
|
2489
|
+
type?: "assign-entity"
|
|
2490
|
+
config?: {
|
|
2491
|
+
attribute?: string
|
|
2492
|
+
assignees?: Array<{
|
|
2493
|
+
type: { ... }
|
|
2494
|
+
user_id?: { ... }
|
|
2495
|
+
group_id?: { ... }
|
|
2496
|
+
org_id?: { ... }
|
|
2497
|
+
partner_id?: { ... }
|
|
2498
|
+
display_name?: { ... }
|
|
2499
|
+
email?: { ... }
|
|
2500
|
+
}>
|
|
2501
|
+
write_mode?: "replace" | "append"
|
|
2502
|
+
assignment_type?: "direct"
|
|
2503
|
+
source?: {
|
|
2504
|
+
id?: { ... }
|
|
2505
|
+
origin?: { ... }
|
|
2506
|
+
schema?: { ... }
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
```
|
|
2511
|
+
|
|
2386
2512
|
### `SendEmailActionConfig`
|
|
2387
2513
|
|
|
2388
2514
|
```ts
|
|
@@ -3185,6 +3311,7 @@ type AutomationExecution = {
|
|
|
3185
3311
|
config?: {
|
|
3186
3312
|
mapping_config?: { ... }
|
|
3187
3313
|
target_schema: { ... }
|
|
3314
|
+
use_uniqueness_criteria?: { ... }
|
|
3188
3315
|
target_unique?: { ... }
|
|
3189
3316
|
mapping_attributes?: { ... }
|
|
3190
3317
|
relation_attributes?: { ... }
|
|
@@ -3228,7 +3355,6 @@ type AutomationExecution = {
|
|
|
3228
3355
|
}
|
|
3229
3356
|
} | {
|
|
3230
3357
|
type?: "create-document"
|
|
3231
|
-
config?: {
|
|
3232
3358
|
// ...
|
|
3233
3359
|
}
|
|
3234
3360
|
```
|
|
@@ -3254,6 +3380,7 @@ type WorkflowExecutionContext = {
|
|
|
3254
3380
|
parent_task_id?: string
|
|
3255
3381
|
depth?: number
|
|
3256
3382
|
}
|
|
3383
|
+
_automation_chain?: string[]
|
|
3257
3384
|
entity_contexts?: Array<{
|
|
3258
3385
|
entity_id?: string
|
|
3259
3386
|
entity_schema?: string
|
|
@@ -3474,8 +3601,8 @@ type GetExecutionsResp = {
|
|
|
3474
3601
|
} | {
|
|
3475
3602
|
type?: { ... }
|
|
3476
3603
|
config?: { ... }
|
|
3477
|
-
}
|
|
3478
|
-
|
|
3604
|
+
} | {
|
|
3605
|
+
type?: { ... }
|
|
3479
3606
|
// ...
|
|
3480
3607
|
}
|
|
3481
3608
|
```
|
|
@@ -3592,8 +3719,8 @@ type SearchExecutionsResp = {
|
|
|
3592
3719
|
} | {
|
|
3593
3720
|
type?: { ... }
|
|
3594
3721
|
config?: { ... }
|
|
3595
|
-
}
|
|
3596
|
-
|
|
3722
|
+
} | {
|
|
3723
|
+
type?: { ... }
|
|
3597
3724
|
// ...
|
|
3598
3725
|
}
|
|
3599
3726
|
```
|
|
@@ -3613,6 +3740,7 @@ type StartExecutionRequest = {
|
|
|
3613
3740
|
parent_task_id?: { ... }
|
|
3614
3741
|
depth?: { ... }
|
|
3615
3742
|
}
|
|
3743
|
+
_automation_chain?: string[]
|
|
3616
3744
|
entity_contexts?: Array<{
|
|
3617
3745
|
entity_id?: { ... }
|
|
3618
3746
|
entity_schema?: { ... }
|
|
@@ -4542,9 +4670,9 @@ type ResumeResp = {
|
|
|
4542
4670
|
} | {
|
|
4543
4671
|
type?: { ... }
|
|
4544
4672
|
config?: { ... }
|
|
4545
|
-
}
|
|
4546
|
-
|
|
4547
|
-
|
|
4673
|
+
} | {
|
|
4674
|
+
type?: { ... }
|
|
4675
|
+
config?: { ... }
|
|
4548
4676
|
// ...
|
|
4549
4677
|
}
|
|
4550
4678
|
```
|