@epilot/sdk 2.20.72 → 2.20.74
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/entity-runtime.json +1 -1
- package/definitions/entity.json +1491 -44
- 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/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/chat.cjs +6 -6
- package/dist/apis/chat.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 +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/external-values.cjs +6 -6
- package/dist/apis/external-values.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/identity.cjs +6 -6
- package/dist/apis/identity.d.cts +2 -2
- package/dist/apis/identity.d.ts +2 -2
- package/dist/apis/identity.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/phone-integration.cjs +6 -6
- package/dist/apis/phone-integration.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/chunk-3JBENXET.cjs +14 -0
- package/dist/{chunk-5QSR7CYT.cjs → chunk-5PG5IEQ7.cjs} +2 -2
- package/dist/chunk-K77ESMSG.js +14 -0
- package/dist/{chunk-B42G3PU6.js → chunk-WG7OKIQ3.js} +2 -2
- package/dist/entity-GZC53ATN.cjs +7 -0
- package/dist/entity-T26ZCCI6.js +7 -0
- package/dist/entity-runtime-L3EGYXRI.cjs +5 -0
- package/dist/{entity-runtime-JRSXJKRV.js → entity-runtime-YZPCXKZW.js} +1 -1
- package/dist/{entity.d-BwsBk0Po.d.cts → entity.d-DlI8zhXF.d.cts} +1369 -75
- package/dist/{entity.d-BwsBk0Po.d.ts → entity.d-DlI8zhXF.d.ts} +1369 -75
- package/dist/{identity.d-BBL0NI_O.d.cts → identity.d-CieYn1WL.d.cts} +143 -17
- package/dist/{identity.d-BBL0NI_O.d.ts → identity.d-CieYn1WL.d.ts} +143 -17
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/entity.md +586 -3
- package/package.json +1 -1
- package/dist/chunk-KXNPNC4J.js +0 -14
- package/dist/chunk-XT2XPHUH.cjs +0 -14
- package/dist/entity-AQTIV5LR.js +0 -7
- package/dist/entity-TJAYHTIU.cjs +0 -7
- package/dist/entity-runtime-DYQQGB4F.cjs +0 -5
package/docs/entity.md
CHANGED
|
@@ -30,6 +30,7 @@ const { data } = await entityClient.listSchemas(...)
|
|
|
30
30
|
- [`getSchema`](#getschema)
|
|
31
31
|
- [`putSchema`](#putschema)
|
|
32
32
|
- [`deleteSchema`](#deleteschema)
|
|
33
|
+
- [`getSchemaHead`](#getschemahead)
|
|
33
34
|
- [`getJsonSchema`](#getjsonschema)
|
|
34
35
|
- [`getSchemaExample`](#getschemaexample)
|
|
35
36
|
- [`getSchemaVersions`](#getschemaversions)
|
|
@@ -70,6 +71,7 @@ const { data } = await entityClient.listSchemas(...)
|
|
|
70
71
|
- [`deleteEntity`](#deleteentity)
|
|
71
72
|
- [`autocomplete`](#autocomplete)
|
|
72
73
|
- [`wipeAllEntities`](#wipeallentities)
|
|
74
|
+
- [`listWipeJobs`](#listwipejobs)
|
|
73
75
|
- [`applyChangeset`](#applychangeset)
|
|
74
76
|
- [`dismissChangeset`](#dismisschangeset)
|
|
75
77
|
- [`listChangesets`](#listchangesets)
|
|
@@ -80,6 +82,9 @@ const { data } = await entityClient.listSchemas(...)
|
|
|
80
82
|
- [`attachActivity`](#attachactivity)
|
|
81
83
|
- [`getEntityActivityFeed`](#getentityactivityfeed)
|
|
82
84
|
|
|
85
|
+
**AI**
|
|
86
|
+
- [`getEntitySummary`](#getentitysummary)
|
|
87
|
+
|
|
83
88
|
**Relations**
|
|
84
89
|
- [`getRelations`](#getrelations)
|
|
85
90
|
- [`addRelations`](#addrelations)
|
|
@@ -93,7 +98,10 @@ const { data } = await entityClient.listSchemas(...)
|
|
|
93
98
|
**Import-Export**
|
|
94
99
|
- [`exportEntities`](#exportentities)
|
|
95
100
|
- [`importEntities`](#importentities)
|
|
101
|
+
- [`getLatestEntityImport`](#getlatestentityimport)
|
|
102
|
+
- [`getEntityImportHistory`](#getentityimporthistory)
|
|
96
103
|
- [`abortEntityImport`](#abortentityimport)
|
|
104
|
+
- [`discardEntityImport`](#discardentityimport)
|
|
97
105
|
|
|
98
106
|
**Saved Views**
|
|
99
107
|
- [`listSavedViews`](#listsavedviews)
|
|
@@ -130,6 +138,10 @@ const { data } = await entityClient.listSchemas(...)
|
|
|
130
138
|
- [`IsTemplate`](#istemplate)
|
|
131
139
|
- [`SchemaId`](#schemaid)
|
|
132
140
|
- [`EntitySchema`](#entityschema)
|
|
141
|
+
- [`SchemaHead`](#schemahead)
|
|
142
|
+
- [`WipeJob`](#wipejob)
|
|
143
|
+
- [`WipeJobConflictError`](#wipejobconflicterror)
|
|
144
|
+
- [`SchemaVersionConflictError`](#schemaversionconflicterror)
|
|
133
145
|
- [`EntitySchemaItem`](#entityschemaitem)
|
|
134
146
|
- [`GenerateEntityTableAIFiltersRequest`](#generateentitytableaifiltersrequest)
|
|
135
147
|
- [`GenerateEntityTableAIFiltersResponse`](#generateentitytableaifiltersresponse)
|
|
@@ -226,6 +238,11 @@ const { data } = await entityClient.listSchemas(...)
|
|
|
226
238
|
- [`EntitySearchOptions`](#entitysearchoptions)
|
|
227
239
|
- [`FieldsParam`](#fieldsparam)
|
|
228
240
|
- [`EntityImportParams`](#entityimportparams)
|
|
241
|
+
- [`ImportRowOutcomeCounts`](#importrowoutcomecounts)
|
|
242
|
+
- [`ImportJobSummary`](#importjobsummary)
|
|
243
|
+
- [`ImportIssue`](#importissue)
|
|
244
|
+
- [`ImportFailureCode`](#importfailurecode)
|
|
245
|
+
- [`ImportProgress`](#importprogress)
|
|
229
246
|
- [`GraphQueryRequest`](#graphqueryrequest)
|
|
230
247
|
- [`GraphSeed`](#graphseed)
|
|
231
248
|
- [`GraphDefinition`](#graphdefinition)
|
|
@@ -243,6 +260,7 @@ const { data } = await entityClient.listSchemas(...)
|
|
|
243
260
|
- [`EntityOperationSourceContext`](#entityoperationsourcecontext)
|
|
244
261
|
- [`BaseActivityItem`](#baseactivityitem)
|
|
245
262
|
- [`ActivityItem`](#activityitem)
|
|
263
|
+
- [`EntitySummary`](#entitysummary)
|
|
246
264
|
- [`BlueprintEntityId`](#blueprintentityid)
|
|
247
265
|
- [`ListSavedViewsResults`](#listsavedviewsresults)
|
|
248
266
|
- [`SavedViewId`](#savedviewid)
|
|
@@ -316,6 +334,7 @@ const { data } = await client.listSchemas({
|
|
|
316
334
|
"category": "customer_relations",
|
|
317
335
|
"published": false,
|
|
318
336
|
"draft": false,
|
|
337
|
+
"require_change_comment": false,
|
|
319
338
|
"icon": "person",
|
|
320
339
|
"title_template": "{{first_name}} {{last_name}}",
|
|
321
340
|
"ui_config": {},
|
|
@@ -383,6 +402,7 @@ const { data } = await client.listSchemasV2({
|
|
|
383
402
|
"category": "customer_relations",
|
|
384
403
|
"published": false,
|
|
385
404
|
"draft": false,
|
|
405
|
+
"require_change_comment": false,
|
|
386
406
|
"icon": "person",
|
|
387
407
|
"title_template": "{{first_name}} {{last_name}}",
|
|
388
408
|
"ui_config": {},
|
|
@@ -448,6 +468,7 @@ const { data } = await client.getSchema({
|
|
|
448
468
|
"category": "customer_relations",
|
|
449
469
|
"published": false,
|
|
450
470
|
"draft": false,
|
|
471
|
+
"require_change_comment": false,
|
|
451
472
|
"icon": "person",
|
|
452
473
|
"title_template": "{{first_name}} {{last_name}}",
|
|
453
474
|
"ui_config": {
|
|
@@ -599,6 +620,8 @@ const { data } = await client.putSchema(
|
|
|
599
620
|
{
|
|
600
621
|
slug: 'example',
|
|
601
622
|
draft: true,
|
|
623
|
+
base_version: 1,
|
|
624
|
+
base_updated_at: 'example',
|
|
602
625
|
},
|
|
603
626
|
{
|
|
604
627
|
slug: 'contact',
|
|
@@ -613,6 +636,7 @@ const { data } = await client.putSchema(
|
|
|
613
636
|
category: 'customer_relations',
|
|
614
637
|
published: false,
|
|
615
638
|
draft: false,
|
|
639
|
+
require_change_comment: false,
|
|
616
640
|
icon: 'person',
|
|
617
641
|
title_template: '{{first_name}} {{last_name}}',
|
|
618
642
|
ui_config: {
|
|
@@ -779,6 +803,7 @@ const { data } = await client.putSchema(
|
|
|
779
803
|
"category": "customer_relations",
|
|
780
804
|
"published": false,
|
|
781
805
|
"draft": false,
|
|
806
|
+
"require_change_comment": false,
|
|
782
807
|
"icon": "person",
|
|
783
808
|
"title_template": "{{first_name}} {{last_name}}",
|
|
784
809
|
"ui_config": {
|
|
@@ -933,6 +958,36 @@ const { data } = await client.deleteSchema({
|
|
|
933
958
|
|
|
934
959
|
---
|
|
935
960
|
|
|
961
|
+
### `getSchemaHead`
|
|
962
|
+
|
|
963
|
+
Lightweight lookup of the schema version saves currently land on top of. Meant for editors
|
|
964
|
+
to detect that someone else saved while they were editing, without fetching the schema.
|
|
965
|
+
|
|
966
|
+
`GET /v1/entity/schemas/{slug}/head`
|
|
967
|
+
|
|
968
|
+
```ts
|
|
969
|
+
const { data } = await client.getSchemaHead({
|
|
970
|
+
slug: 'example',
|
|
971
|
+
})
|
|
972
|
+
```
|
|
973
|
+
|
|
974
|
+
<details>
|
|
975
|
+
<summary>Response</summary>
|
|
976
|
+
|
|
977
|
+
```json
|
|
978
|
+
{
|
|
979
|
+
"slug": "contact",
|
|
980
|
+
"id": "string",
|
|
981
|
+
"version": 0,
|
|
982
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
983
|
+
"created_by": "string"
|
|
984
|
+
}
|
|
985
|
+
```
|
|
986
|
+
|
|
987
|
+
</details>
|
|
988
|
+
|
|
989
|
+
---
|
|
990
|
+
|
|
936
991
|
### `getJsonSchema`
|
|
937
992
|
|
|
938
993
|
Get formal JSON schema definition draft 2020-12 for the given epilot schema
|
|
@@ -1128,6 +1183,7 @@ const { data } = await client.getSchemaVersions({
|
|
|
1128
1183
|
"category": "customer_relations",
|
|
1129
1184
|
"published": false,
|
|
1130
1185
|
"draft": false,
|
|
1186
|
+
"require_change_comment": false,
|
|
1131
1187
|
"icon": "person",
|
|
1132
1188
|
"title_template": "{{first_name}} {{last_name}}",
|
|
1133
1189
|
"ui_config": {},
|
|
@@ -1165,6 +1221,7 @@ const { data } = await client.getSchemaVersions({
|
|
|
1165
1221
|
"category": "customer_relations",
|
|
1166
1222
|
"published": false,
|
|
1167
1223
|
"draft": false,
|
|
1224
|
+
"require_change_comment": false,
|
|
1168
1225
|
"icon": "person",
|
|
1169
1226
|
"title_template": "{{first_name}} {{last_name}}",
|
|
1170
1227
|
"ui_config": {},
|
|
@@ -1270,6 +1327,7 @@ const { data } = await client.listSchemaBlueprints()
|
|
|
1270
1327
|
"category": "customer_relations",
|
|
1271
1328
|
"published": false,
|
|
1272
1329
|
"draft": false,
|
|
1330
|
+
"require_change_comment": false,
|
|
1273
1331
|
"icon": "person",
|
|
1274
1332
|
"title_template": "{{first_name}} {{last_name}}",
|
|
1275
1333
|
"ui_config": {},
|
|
@@ -2249,6 +2307,86 @@ const { data } = await client.wipeAllEntities(
|
|
|
2249
2307
|
)
|
|
2250
2308
|
```
|
|
2251
2309
|
|
|
2310
|
+
<details>
|
|
2311
|
+
<summary>Response</summary>
|
|
2312
|
+
|
|
2313
|
+
```json
|
|
2314
|
+
{
|
|
2315
|
+
"id": "string",
|
|
2316
|
+
"schemas": ["contact"],
|
|
2317
|
+
"status": "running",
|
|
2318
|
+
"current_step": "SANITY_CHECK",
|
|
2319
|
+
"created_at": "1970-01-01T00:00:00.000Z",
|
|
2320
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
2321
|
+
"finished_at": "1970-01-01T00:00:00.000Z",
|
|
2322
|
+
"created_by": {
|
|
2323
|
+
"user_id": "string",
|
|
2324
|
+
"email": "string",
|
|
2325
|
+
"display_name": "string"
|
|
2326
|
+
},
|
|
2327
|
+
"entity_totals": {},
|
|
2328
|
+
"total_entities": 0,
|
|
2329
|
+
"progress": {
|
|
2330
|
+
"indices_deleted": 0,
|
|
2331
|
+
"entities_deleted": 0,
|
|
2332
|
+
"relations_deleted": 0,
|
|
2333
|
+
"activities_deleted": 0
|
|
2334
|
+
},
|
|
2335
|
+
"error": "string"
|
|
2336
|
+
}
|
|
2337
|
+
```
|
|
2338
|
+
|
|
2339
|
+
</details>
|
|
2340
|
+
|
|
2341
|
+
---
|
|
2342
|
+
|
|
2343
|
+
### `listWipeJobs`
|
|
2344
|
+
|
|
2345
|
+
Lists the most recent wipe jobs of the organization, newest first.
|
|
2346
|
+
|
|
2347
|
+
`GET /v1/entity:wipeJobs`
|
|
2348
|
+
|
|
2349
|
+
```ts
|
|
2350
|
+
const { data } = await client.listWipeJobs({
|
|
2351
|
+
limit: 1,
|
|
2352
|
+
})
|
|
2353
|
+
```
|
|
2354
|
+
|
|
2355
|
+
<details>
|
|
2356
|
+
<summary>Response</summary>
|
|
2357
|
+
|
|
2358
|
+
```json
|
|
2359
|
+
{
|
|
2360
|
+
"results": [
|
|
2361
|
+
{
|
|
2362
|
+
"id": "string",
|
|
2363
|
+
"schemas": ["contact"],
|
|
2364
|
+
"status": "running",
|
|
2365
|
+
"current_step": "SANITY_CHECK",
|
|
2366
|
+
"created_at": "1970-01-01T00:00:00.000Z",
|
|
2367
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
2368
|
+
"finished_at": "1970-01-01T00:00:00.000Z",
|
|
2369
|
+
"created_by": {
|
|
2370
|
+
"user_id": "string",
|
|
2371
|
+
"email": "string",
|
|
2372
|
+
"display_name": "string"
|
|
2373
|
+
},
|
|
2374
|
+
"entity_totals": {},
|
|
2375
|
+
"total_entities": 0,
|
|
2376
|
+
"progress": {
|
|
2377
|
+
"indices_deleted": 0,
|
|
2378
|
+
"entities_deleted": 0,
|
|
2379
|
+
"relations_deleted": 0,
|
|
2380
|
+
"activities_deleted": 0
|
|
2381
|
+
},
|
|
2382
|
+
"error": "string"
|
|
2383
|
+
}
|
|
2384
|
+
]
|
|
2385
|
+
}
|
|
2386
|
+
```
|
|
2387
|
+
|
|
2388
|
+
</details>
|
|
2389
|
+
|
|
2252
2390
|
---
|
|
2253
2391
|
|
|
2254
2392
|
### `createActivity`
|
|
@@ -2610,6 +2748,36 @@ const { data } = await client.getEntityActivityFeed({
|
|
|
2610
2748
|
|
|
2611
2749
|
---
|
|
2612
2750
|
|
|
2751
|
+
### `getEntitySummary`
|
|
2752
|
+
|
|
2753
|
+
Get the latest AI generated summary of an entity. Summaries are generated by the
|
|
2754
|
+
ai-agents-api `skill:entity-summary` and stored here when the execution completes.
|
|
2755
|
+
|
|
2756
|
+
`GET /v1/entity/{slug}/{id}/summary`
|
|
2757
|
+
|
|
2758
|
+
```ts
|
|
2759
|
+
const { data } = await client.getEntitySummary({
|
|
2760
|
+
slug: 'example',
|
|
2761
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
2762
|
+
})
|
|
2763
|
+
```
|
|
2764
|
+
|
|
2765
|
+
<details>
|
|
2766
|
+
<summary>Response</summary>
|
|
2767
|
+
|
|
2768
|
+
```json
|
|
2769
|
+
{
|
|
2770
|
+
"summary": "string",
|
|
2771
|
+
"variant": "short",
|
|
2772
|
+
"execution_id": "7b4cfc0f-1d5e-4f3a-9b4a-2c7d1f9e8a10",
|
|
2773
|
+
"created_at": "1970-01-01T00:00:00.000Z"
|
|
2774
|
+
}
|
|
2775
|
+
```
|
|
2776
|
+
|
|
2777
|
+
</details>
|
|
2778
|
+
|
|
2779
|
+
---
|
|
2780
|
+
|
|
2613
2781
|
### `getRelations`
|
|
2614
2782
|
|
|
2615
2783
|
Returns 1st level direct relations for an entity.
|
|
@@ -3016,11 +3184,188 @@ const { data } = await client.importEntities(
|
|
|
3016
3184
|
bucket: 'my-bucket',
|
|
3017
3185
|
key: 'imports/my-import.json'
|
|
3018
3186
|
},
|
|
3019
|
-
schema: 'contact'
|
|
3187
|
+
schema: 'contact',
|
|
3188
|
+
unique_key: ['email'],
|
|
3189
|
+
dry_run: false,
|
|
3190
|
+
dry_run_job_id: 'string',
|
|
3191
|
+
trigger_automations: false
|
|
3020
3192
|
},
|
|
3021
3193
|
)
|
|
3022
3194
|
```
|
|
3023
3195
|
|
|
3196
|
+
<details>
|
|
3197
|
+
<summary>Response</summary>
|
|
3198
|
+
|
|
3199
|
+
```json
|
|
3200
|
+
{
|
|
3201
|
+
"jobPollId": "string",
|
|
3202
|
+
"trigger_automations": true,
|
|
3203
|
+
"started_by": "string",
|
|
3204
|
+
"status": "PROCESSING",
|
|
3205
|
+
"total": 0,
|
|
3206
|
+
"importedEntitiesCount": 0,
|
|
3207
|
+
"failedEntitiesCount": 0,
|
|
3208
|
+
"importedEntitiesUrl": "string",
|
|
3209
|
+
"failedEntitiesUrl": "string",
|
|
3210
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
3211
|
+
"failure_reason": "string",
|
|
3212
|
+
"failure_code": "invalid_csv_bad_headers",
|
|
3213
|
+
"abortable": true,
|
|
3214
|
+
"dry_run": true,
|
|
3215
|
+
"unique_key": ["string"],
|
|
3216
|
+
"outcome_counts": {
|
|
3217
|
+
"error": 0,
|
|
3218
|
+
"skipped_empty_key": 0,
|
|
3219
|
+
"skipped_duplicate_in_file": 0,
|
|
3220
|
+
"skipped_id_not_found": 0,
|
|
3221
|
+
"skipped_ambiguous": 0,
|
|
3222
|
+
"create": 0,
|
|
3223
|
+
"unchanged": 0,
|
|
3224
|
+
"update": 0
|
|
3225
|
+
},
|
|
3226
|
+
"report_url": "string",
|
|
3227
|
+
"S3Reference": {
|
|
3228
|
+
"bucket": "string",
|
|
3229
|
+
"key": "string"
|
|
3230
|
+
},
|
|
3231
|
+
"issues": [
|
|
3232
|
+
{
|
|
3233
|
+
"severity": "blocking",
|
|
3234
|
+
"reason": "string",
|
|
3235
|
+
"column": "string",
|
|
3236
|
+
"count": 0,
|
|
3237
|
+
"example_rows": [0]
|
|
3238
|
+
}
|
|
3239
|
+
],
|
|
3240
|
+
"phase": "scanning",
|
|
3241
|
+
"heartbeat_at": "1970-01-01T00:00:00.000Z",
|
|
3242
|
+
"started_at": "1970-01-01T00:00:00.000Z",
|
|
3243
|
+
"finished_at": "1970-01-01T00:00:00.000Z"
|
|
3244
|
+
}
|
|
3245
|
+
```
|
|
3246
|
+
|
|
3247
|
+
</details>
|
|
3248
|
+
|
|
3249
|
+
---
|
|
3250
|
+
|
|
3251
|
+
### `getLatestEntityImport`
|
|
3252
|
+
|
|
3253
|
+
Get the latest import job of a schema
|
|
3254
|
+
|
|
3255
|
+
`GET /v1/entity:import:latest`
|
|
3256
|
+
|
|
3257
|
+
```ts
|
|
3258
|
+
const { data } = await client.getLatestEntityImport({
|
|
3259
|
+
schema: 'example',
|
|
3260
|
+
})
|
|
3261
|
+
```
|
|
3262
|
+
|
|
3263
|
+
<details>
|
|
3264
|
+
<summary>Response</summary>
|
|
3265
|
+
|
|
3266
|
+
```json
|
|
3267
|
+
{
|
|
3268
|
+
"jobPollId": "string",
|
|
3269
|
+
"trigger_automations": true,
|
|
3270
|
+
"started_by": "string",
|
|
3271
|
+
"status": "PROCESSING",
|
|
3272
|
+
"total": 0,
|
|
3273
|
+
"importedEntitiesCount": 0,
|
|
3274
|
+
"failedEntitiesCount": 0,
|
|
3275
|
+
"importedEntitiesUrl": "string",
|
|
3276
|
+
"failedEntitiesUrl": "string",
|
|
3277
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
3278
|
+
"failure_reason": "string",
|
|
3279
|
+
"failure_code": "invalid_csv_bad_headers",
|
|
3280
|
+
"abortable": true,
|
|
3281
|
+
"dry_run": true,
|
|
3282
|
+
"unique_key": ["string"],
|
|
3283
|
+
"outcome_counts": {
|
|
3284
|
+
"error": 0,
|
|
3285
|
+
"skipped_empty_key": 0,
|
|
3286
|
+
"skipped_duplicate_in_file": 0,
|
|
3287
|
+
"skipped_id_not_found": 0,
|
|
3288
|
+
"skipped_ambiguous": 0,
|
|
3289
|
+
"create": 0,
|
|
3290
|
+
"unchanged": 0,
|
|
3291
|
+
"update": 0
|
|
3292
|
+
},
|
|
3293
|
+
"report_url": "string",
|
|
3294
|
+
"S3Reference": {
|
|
3295
|
+
"bucket": "string",
|
|
3296
|
+
"key": "string"
|
|
3297
|
+
},
|
|
3298
|
+
"issues": [
|
|
3299
|
+
{
|
|
3300
|
+
"severity": "blocking",
|
|
3301
|
+
"reason": "string",
|
|
3302
|
+
"column": "string",
|
|
3303
|
+
"count": 0,
|
|
3304
|
+
"example_rows": [0]
|
|
3305
|
+
}
|
|
3306
|
+
],
|
|
3307
|
+
"phase": "scanning",
|
|
3308
|
+
"heartbeat_at": "1970-01-01T00:00:00.000Z",
|
|
3309
|
+
"started_at": "1970-01-01T00:00:00.000Z",
|
|
3310
|
+
"finished_at": "1970-01-01T00:00:00.000Z"
|
|
3311
|
+
}
|
|
3312
|
+
```
|
|
3313
|
+
|
|
3314
|
+
</details>
|
|
3315
|
+
|
|
3316
|
+
---
|
|
3317
|
+
|
|
3318
|
+
### `getEntityImportHistory`
|
|
3319
|
+
|
|
3320
|
+
List the import jobs of a schema
|
|
3321
|
+
|
|
3322
|
+
`GET /v1/entity:importHistory`
|
|
3323
|
+
|
|
3324
|
+
```ts
|
|
3325
|
+
const { data } = await client.getEntityImportHistory({
|
|
3326
|
+
schema: 'example',
|
|
3327
|
+
limit: 1,
|
|
3328
|
+
})
|
|
3329
|
+
```
|
|
3330
|
+
|
|
3331
|
+
<details>
|
|
3332
|
+
<summary>Response</summary>
|
|
3333
|
+
|
|
3334
|
+
```json
|
|
3335
|
+
{
|
|
3336
|
+
"jobs": [
|
|
3337
|
+
{
|
|
3338
|
+
"job_id": "string",
|
|
3339
|
+
"schema": "string",
|
|
3340
|
+
"status": "PROCESSING",
|
|
3341
|
+
"dry_run": true,
|
|
3342
|
+
"trigger_automations": true,
|
|
3343
|
+
"started_by": "string",
|
|
3344
|
+
"started_at": "1970-01-01T00:00:00.000Z",
|
|
3345
|
+
"finished_at": "1970-01-01T00:00:00.000Z",
|
|
3346
|
+
"file_name": "string",
|
|
3347
|
+
"total": 0,
|
|
3348
|
+
"importedEntitiesCount": 0,
|
|
3349
|
+
"failedEntitiesCount": 0,
|
|
3350
|
+
"outcome_counts": {
|
|
3351
|
+
"error": 0,
|
|
3352
|
+
"skipped_empty_key": 0,
|
|
3353
|
+
"skipped_duplicate_in_file": 0,
|
|
3354
|
+
"skipped_id_not_found": 0,
|
|
3355
|
+
"skipped_ambiguous": 0,
|
|
3356
|
+
"create": 0,
|
|
3357
|
+
"unchanged": 0,
|
|
3358
|
+
"update": 0
|
|
3359
|
+
},
|
|
3360
|
+
"failure_code": "invalid_csv_bad_headers",
|
|
3361
|
+
"unique_key": ["string"]
|
|
3362
|
+
}
|
|
3363
|
+
]
|
|
3364
|
+
}
|
|
3365
|
+
```
|
|
3366
|
+
|
|
3367
|
+
</details>
|
|
3368
|
+
|
|
3024
3369
|
---
|
|
3025
3370
|
|
|
3026
3371
|
### `abortEntityImport`
|
|
@@ -3038,6 +3383,33 @@ const { data } = await client.abortEntityImport({
|
|
|
3038
3383
|
|
|
3039
3384
|
---
|
|
3040
3385
|
|
|
3386
|
+
### `discardEntityImport`
|
|
3387
|
+
|
|
3388
|
+
Discard a finished dry run
|
|
3389
|
+
|
|
3390
|
+
`POST /v1/entity:discardImport`
|
|
3391
|
+
|
|
3392
|
+
```ts
|
|
3393
|
+
const { data } = await client.discardEntityImport({
|
|
3394
|
+
job_id: 'example',
|
|
3395
|
+
schema: 'example',
|
|
3396
|
+
})
|
|
3397
|
+
```
|
|
3398
|
+
|
|
3399
|
+
<details>
|
|
3400
|
+
<summary>Response</summary>
|
|
3401
|
+
|
|
3402
|
+
```json
|
|
3403
|
+
{
|
|
3404
|
+
"status": "string",
|
|
3405
|
+
"jobPollId": "string"
|
|
3406
|
+
}
|
|
3407
|
+
```
|
|
3408
|
+
|
|
3409
|
+
</details>
|
|
3410
|
+
|
|
3411
|
+
---
|
|
3412
|
+
|
|
3041
3413
|
### `listSavedViews`
|
|
3042
3414
|
|
|
3043
3415
|
Get the Saved Views based on the schema
|
|
@@ -6093,6 +6465,7 @@ type EntitySchema = {
|
|
|
6093
6465
|
category?: string
|
|
6094
6466
|
published?: boolean
|
|
6095
6467
|
draft?: boolean
|
|
6468
|
+
require_change_comment?: boolean
|
|
6096
6469
|
icon?: string
|
|
6097
6470
|
title_template?: string
|
|
6098
6471
|
ui_config?: {
|
|
@@ -6179,11 +6552,77 @@ type EntitySchema = {
|
|
|
6179
6552
|
readonly?: { ... }
|
|
6180
6553
|
deprecated?: { ... }
|
|
6181
6554
|
overridable_attribute?: { ... }
|
|
6182
|
-
default_value?: { ... }
|
|
6183
6555
|
// ...
|
|
6184
6556
|
}
|
|
6185
6557
|
```
|
|
6186
6558
|
|
|
6559
|
+
### `SchemaHead`
|
|
6560
|
+
|
|
6561
|
+
```ts
|
|
6562
|
+
type SchemaHead = {
|
|
6563
|
+
slug: string
|
|
6564
|
+
id?: string
|
|
6565
|
+
version: number
|
|
6566
|
+
updated_at?: string // date-time
|
|
6567
|
+
created_by?: string
|
|
6568
|
+
}
|
|
6569
|
+
```
|
|
6570
|
+
|
|
6571
|
+
### `WipeJob`
|
|
6572
|
+
|
|
6573
|
+
A request to wipe entity data of an organization, and its progress
|
|
6574
|
+
|
|
6575
|
+
```ts
|
|
6576
|
+
type WipeJob = {
|
|
6577
|
+
id: string
|
|
6578
|
+
schemas: string[]
|
|
6579
|
+
status: "running" | "succeeded" | "failed"
|
|
6580
|
+
current_step: "SANITY_CHECK" | "DELETE_ELASTIC_INDICES" | "DELETE_DYNAMODB_ENTITIES" | "DELETE_DYNAMODB_RELATIONS" | "DELETE_DYNAMODB_ACTIVITIES" | "DELETE_CLICKHOUSE_ENTITIES" | "DELETE_CLICKHOUSE_ENTITY_OPERATIONS" | "DELETE_S3_FILES" | "SUCCESS" | "FAIL"
|
|
6581
|
+
created_at: string // date-time
|
|
6582
|
+
updated_at: string // date-time
|
|
6583
|
+
finished_at?: string // date-time
|
|
6584
|
+
created_by?: {
|
|
6585
|
+
user_id?: string
|
|
6586
|
+
email?: string
|
|
6587
|
+
display_name?: string
|
|
6588
|
+
}
|
|
6589
|
+
entity_totals: Record<string, number>
|
|
6590
|
+
total_entities: number
|
|
6591
|
+
progress: {
|
|
6592
|
+
indices_deleted?: number
|
|
6593
|
+
entities_deleted?: number
|
|
6594
|
+
relations_deleted?: number
|
|
6595
|
+
activities_deleted?: number
|
|
6596
|
+
}
|
|
6597
|
+
error?: string
|
|
6598
|
+
}
|
|
6599
|
+
```
|
|
6600
|
+
|
|
6601
|
+
### `WipeJobConflictError`
|
|
6602
|
+
|
|
6603
|
+
```ts
|
|
6604
|
+
type WipeJobConflictError = {
|
|
6605
|
+
status?: number
|
|
6606
|
+
error?: string
|
|
6607
|
+
message: string
|
|
6608
|
+
conflicting_schemas: string[]
|
|
6609
|
+
}
|
|
6610
|
+
```
|
|
6611
|
+
|
|
6612
|
+
### `SchemaVersionConflictError`
|
|
6613
|
+
|
|
6614
|
+
```ts
|
|
6615
|
+
type SchemaVersionConflictError = {
|
|
6616
|
+
status?: number
|
|
6617
|
+
error?: string
|
|
6618
|
+
message?: string
|
|
6619
|
+
base_version?: number
|
|
6620
|
+
current_version?: number
|
|
6621
|
+
current_updated_at?: string // date-time
|
|
6622
|
+
current_created_by?: string
|
|
6623
|
+
}
|
|
6624
|
+
```
|
|
6625
|
+
|
|
6187
6626
|
### `EntitySchemaItem`
|
|
6188
6627
|
|
|
6189
6628
|
```ts
|
|
@@ -6211,6 +6650,7 @@ type EntitySchemaItem = {
|
|
|
6211
6650
|
category?: string
|
|
6212
6651
|
published?: boolean
|
|
6213
6652
|
draft?: boolean
|
|
6653
|
+
require_change_comment?: boolean
|
|
6214
6654
|
icon?: string
|
|
6215
6655
|
title_template?: string
|
|
6216
6656
|
ui_config?: {
|
|
@@ -6286,7 +6726,6 @@ type EntitySchemaItem = {
|
|
|
6286
6726
|
name: string
|
|
6287
6727
|
title?: string
|
|
6288
6728
|
attributes?: Array<{
|
|
6289
|
-
id?: { ... }
|
|
6290
6729
|
// ...
|
|
6291
6730
|
}
|
|
6292
6731
|
```
|
|
@@ -10309,6 +10748,137 @@ type EntityImportParams = {
|
|
|
10309
10748
|
key: string
|
|
10310
10749
|
}
|
|
10311
10750
|
schema: string
|
|
10751
|
+
unique_key?: string[]
|
|
10752
|
+
dry_run?: boolean
|
|
10753
|
+
dry_run_job_id?: string
|
|
10754
|
+
trigger_automations?: boolean
|
|
10755
|
+
}
|
|
10756
|
+
```
|
|
10757
|
+
|
|
10758
|
+
### `ImportRowOutcomeCounts`
|
|
10759
|
+
|
|
10760
|
+
Number of rows per outcome, in the order the outcomes are evaluated.
|
|
10761
|
+
|
|
10762
|
+
```ts
|
|
10763
|
+
type ImportRowOutcomeCounts = {
|
|
10764
|
+
error?: number
|
|
10765
|
+
skipped_empty_key?: number
|
|
10766
|
+
skipped_duplicate_in_file?: number
|
|
10767
|
+
skipped_id_not_found?: number
|
|
10768
|
+
skipped_ambiguous?: number
|
|
10769
|
+
create?: number
|
|
10770
|
+
unchanged?: number
|
|
10771
|
+
update?: number
|
|
10772
|
+
}
|
|
10773
|
+
```
|
|
10774
|
+
|
|
10775
|
+
### `ImportJobSummary`
|
|
10776
|
+
|
|
10777
|
+
One import job (import or dry run) in the import history of a schema.
|
|
10778
|
+
|
|
10779
|
+
```ts
|
|
10780
|
+
type ImportJobSummary = {
|
|
10781
|
+
job_id: string
|
|
10782
|
+
schema: string
|
|
10783
|
+
status: "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED"
|
|
10784
|
+
dry_run: boolean
|
|
10785
|
+
trigger_automations?: boolean
|
|
10786
|
+
started_by?: string
|
|
10787
|
+
started_at: string // date-time
|
|
10788
|
+
finished_at?: string // date-time
|
|
10789
|
+
file_name?: string
|
|
10790
|
+
total?: number
|
|
10791
|
+
importedEntitiesCount?: number
|
|
10792
|
+
failedEntitiesCount?: number
|
|
10793
|
+
outcome_counts?: {
|
|
10794
|
+
error?: number
|
|
10795
|
+
skipped_empty_key?: number
|
|
10796
|
+
skipped_duplicate_in_file?: number
|
|
10797
|
+
skipped_id_not_found?: number
|
|
10798
|
+
skipped_ambiguous?: number
|
|
10799
|
+
create?: number
|
|
10800
|
+
unchanged?: number
|
|
10801
|
+
update?: number
|
|
10802
|
+
}
|
|
10803
|
+
failure_code?: "invalid_csv_bad_headers" | "dry_run_required" | "dry_run_mismatch" | "dry_run_expired" | "import_file_changed" | "prescan_missing" | "import_too_large" | "token_expired" | "max_duration_exceeded" | "no_progress" | "internal_error"
|
|
10804
|
+
unique_key?: string[]
|
|
10805
|
+
}
|
|
10806
|
+
```
|
|
10807
|
+
|
|
10808
|
+
### `ImportIssue`
|
|
10809
|
+
|
|
10810
|
+
Rows of an import job that share one reason not to be written.
|
|
10811
|
+
|
|
10812
|
+
```ts
|
|
10813
|
+
type ImportIssue = {
|
|
10814
|
+
severity: "blocking" | "warning"
|
|
10815
|
+
reason: string
|
|
10816
|
+
column?: string
|
|
10817
|
+
count: number
|
|
10818
|
+
example_rows: number[]
|
|
10819
|
+
}
|
|
10820
|
+
```
|
|
10821
|
+
|
|
10822
|
+
### `ImportFailureCode`
|
|
10823
|
+
|
|
10824
|
+
Machine readable reason of a failed job. `failure_reason` holds the human text.
|
|
10825
|
+
- `invalid_csv_bad_headers`: the file has neither a `_schema` nor an `_id` column
|
|
10826
|
+
- `dry_run_required`, `dry_run_mismatch`, `dry_run_expired`: the dry-run rule rejected the commit before any row
|
|
10827
|
+
- `import_file_changed`:
|
|
10828
|
+
|
|
10829
|
+
```ts
|
|
10830
|
+
type ImportFailureCode = "invalid_csv_bad_headers" | "dry_run_required" | "dry_run_mismatch" | "dry_run_expired" | "import_file_changed" | "prescan_missing" | "import_too_large" | "token_expired" | "max_duration_exceeded" | "no_progress" | "internal_error"
|
|
10831
|
+
```
|
|
10832
|
+
|
|
10833
|
+
### `ImportProgress`
|
|
10834
|
+
|
|
10835
|
+
Progress of an import job. The fields `dry_run`, `unique_key`, `outcome_counts`, `report_url`,
|
|
10836
|
+
`S3Reference` and `started_by` are only set for jobs started with `unique_key`, `dry_run` or `dry_run_job_id`. For those,
|
|
10837
|
+
`importedEntitiesCount` is `create` plus `update` and `failedEntitiesCount` counts
|
|
10838
|
+
|
|
10839
|
+
```ts
|
|
10840
|
+
type ImportProgress = {
|
|
10841
|
+
jobPollId?: string
|
|
10842
|
+
trigger_automations?: boolean
|
|
10843
|
+
started_by?: string
|
|
10844
|
+
status?: "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED"
|
|
10845
|
+
total?: number
|
|
10846
|
+
importedEntitiesCount?: number
|
|
10847
|
+
failedEntitiesCount?: number
|
|
10848
|
+
importedEntitiesUrl?: string
|
|
10849
|
+
failedEntitiesUrl?: string
|
|
10850
|
+
updated_at?: string // date-time
|
|
10851
|
+
failure_reason?: string
|
|
10852
|
+
failure_code?: "invalid_csv_bad_headers" | "dry_run_required" | "dry_run_mismatch" | "dry_run_expired" | "import_file_changed" | "prescan_missing" | "import_too_large" | "token_expired" | "max_duration_exceeded" | "no_progress" | "internal_error"
|
|
10853
|
+
abortable?: boolean
|
|
10854
|
+
dry_run?: boolean
|
|
10855
|
+
unique_key?: string[]
|
|
10856
|
+
outcome_counts?: {
|
|
10857
|
+
error?: number
|
|
10858
|
+
skipped_empty_key?: number
|
|
10859
|
+
skipped_duplicate_in_file?: number
|
|
10860
|
+
skipped_id_not_found?: number
|
|
10861
|
+
skipped_ambiguous?: number
|
|
10862
|
+
create?: number
|
|
10863
|
+
unchanged?: number
|
|
10864
|
+
update?: number
|
|
10865
|
+
}
|
|
10866
|
+
report_url?: string
|
|
10867
|
+
S3Reference?: {
|
|
10868
|
+
bucket?: string
|
|
10869
|
+
key?: string
|
|
10870
|
+
}
|
|
10871
|
+
issues?: Array<{
|
|
10872
|
+
severity: "blocking" | "warning"
|
|
10873
|
+
reason: string
|
|
10874
|
+
column?: string
|
|
10875
|
+
count: number
|
|
10876
|
+
example_rows: number[]
|
|
10877
|
+
}>
|
|
10878
|
+
phase?: "scanning" | "dry_run" | "importing" | "finalizing" | "done"
|
|
10879
|
+
heartbeat_at?: string // date-time
|
|
10880
|
+
started_at?: string // date-time
|
|
10881
|
+
finished_at?: string // date-time
|
|
10312
10882
|
}
|
|
10313
10883
|
```
|
|
10314
10884
|
|
|
@@ -10783,6 +11353,19 @@ type ActivityItem = {
|
|
|
10783
11353
|
}
|
|
10784
11354
|
```
|
|
10785
11355
|
|
|
11356
|
+
### `EntitySummary`
|
|
11357
|
+
|
|
11358
|
+
Latest AI generated summary of an entity
|
|
11359
|
+
|
|
11360
|
+
```ts
|
|
11361
|
+
type EntitySummary = {
|
|
11362
|
+
summary: string
|
|
11363
|
+
variant: "short" | "detailed" | "action_points"
|
|
11364
|
+
execution_id: string
|
|
11365
|
+
created_at: string // date-time
|
|
11366
|
+
}
|
|
11367
|
+
```
|
|
11368
|
+
|
|
10786
11369
|
### `BlueprintEntityId`
|
|
10787
11370
|
|
|
10788
11371
|
Reference to blueprint
|