@epilot/sdk 2.19.11 → 2.19.12

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 (125) hide show
  1. package/definitions/entity-mapping.json +189 -2
  2. package/dist/apis/access-token.cjs +6 -6
  3. package/dist/apis/access-token.js +1 -1
  4. package/dist/apis/address-suggestions.cjs +6 -6
  5. package/dist/apis/address-suggestions.js +1 -1
  6. package/dist/apis/address.cjs +6 -6
  7. package/dist/apis/address.js +1 -1
  8. package/dist/apis/ai-agents.cjs +6 -6
  9. package/dist/apis/ai-agents.js +1 -1
  10. package/dist/apis/app.cjs +6 -6
  11. package/dist/apis/app.js +1 -1
  12. package/dist/apis/audit-logs.cjs +6 -6
  13. package/dist/apis/audit-logs.js +1 -1
  14. package/dist/apis/automation.cjs +6 -6
  15. package/dist/apis/automation.js +1 -1
  16. package/dist/apis/billing.cjs +6 -6
  17. package/dist/apis/billing.js +1 -1
  18. package/dist/apis/blueprint-manifest.cjs +6 -6
  19. package/dist/apis/blueprint-manifest.js +1 -1
  20. package/dist/apis/calendar.cjs +6 -6
  21. package/dist/apis/calendar.js +1 -1
  22. package/dist/apis/configuration-hub.cjs +6 -6
  23. package/dist/apis/configuration-hub.js +1 -1
  24. package/dist/apis/consent.cjs +6 -6
  25. package/dist/apis/consent.js +1 -1
  26. package/dist/apis/customer-portal.cjs +6 -6
  27. package/dist/apis/customer-portal.js +1 -1
  28. package/dist/apis/dashboard.cjs +6 -6
  29. package/dist/apis/dashboard.js +1 -1
  30. package/dist/apis/data-governance.cjs +6 -6
  31. package/dist/apis/data-governance.js +1 -1
  32. package/dist/apis/deduplication.cjs +6 -6
  33. package/dist/apis/deduplication.js +1 -1
  34. package/dist/apis/design.cjs +6 -6
  35. package/dist/apis/design.js +1 -1
  36. package/dist/apis/document.cjs +6 -6
  37. package/dist/apis/document.js +1 -1
  38. package/dist/apis/email-settings.cjs +6 -6
  39. package/dist/apis/email-settings.js +1 -1
  40. package/dist/apis/email-template.cjs +6 -6
  41. package/dist/apis/email-template.js +1 -1
  42. package/dist/apis/entity-mapping.cjs +6 -6
  43. package/dist/apis/entity-mapping.d.cts +2 -2
  44. package/dist/apis/entity-mapping.d.ts +2 -2
  45. package/dist/apis/entity-mapping.js +1 -1
  46. package/dist/apis/entity.cjs +14 -6
  47. package/dist/apis/entity.d.cts +8 -1
  48. package/dist/apis/entity.d.ts +8 -1
  49. package/dist/apis/entity.js +9 -1
  50. package/dist/apis/environments.cjs +6 -6
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/integration-toolkit.cjs +6 -6
  59. package/dist/apis/integration-toolkit.js +1 -1
  60. package/dist/apis/journey.cjs +6 -6
  61. package/dist/apis/journey.js +1 -1
  62. package/dist/apis/kanban.cjs +6 -6
  63. package/dist/apis/kanban.js +1 -1
  64. package/dist/apis/message.cjs +6 -6
  65. package/dist/apis/message.js +1 -1
  66. package/dist/apis/metering.cjs +6 -6
  67. package/dist/apis/metering.js +1 -1
  68. package/dist/apis/notes.cjs +6 -6
  69. package/dist/apis/notes.js +1 -1
  70. package/dist/apis/notification.cjs +6 -6
  71. package/dist/apis/notification.js +1 -1
  72. package/dist/apis/organization.cjs +6 -6
  73. package/dist/apis/organization.js +1 -1
  74. package/dist/apis/partner-directory.cjs +6 -6
  75. package/dist/apis/partner-directory.js +1 -1
  76. package/dist/apis/permissions.cjs +6 -6
  77. package/dist/apis/permissions.js +1 -1
  78. package/dist/apis/pricing-tier.cjs +6 -6
  79. package/dist/apis/pricing-tier.js +1 -1
  80. package/dist/apis/pricing.cjs +33 -6
  81. package/dist/apis/pricing.d.cts +32 -1
  82. package/dist/apis/pricing.d.ts +32 -1
  83. package/dist/apis/pricing.js +28 -1
  84. package/dist/apis/purpose.cjs +6 -6
  85. package/dist/apis/purpose.js +1 -1
  86. package/dist/apis/query.cjs +6 -6
  87. package/dist/apis/query.js +1 -1
  88. package/dist/apis/sandbox.cjs +6 -6
  89. package/dist/apis/sandbox.js +1 -1
  90. package/dist/apis/sharing.cjs +6 -6
  91. package/dist/apis/sharing.js +1 -1
  92. package/dist/apis/snapshot.cjs +6 -6
  93. package/dist/apis/snapshot.js +1 -1
  94. package/dist/apis/submission.cjs +6 -6
  95. package/dist/apis/submission.js +1 -1
  96. package/dist/apis/target.cjs +6 -6
  97. package/dist/apis/target.js +1 -1
  98. package/dist/apis/targeting.cjs +6 -6
  99. package/dist/apis/targeting.js +1 -1
  100. package/dist/apis/template-variables.cjs +6 -6
  101. package/dist/apis/template-variables.js +1 -1
  102. package/dist/apis/user.cjs +6 -6
  103. package/dist/apis/user.js +1 -1
  104. package/dist/apis/validation-rules.cjs +6 -6
  105. package/dist/apis/validation-rules.js +1 -1
  106. package/dist/apis/webhooks.cjs +6 -6
  107. package/dist/apis/webhooks.js +1 -1
  108. package/dist/apis/workflow-definition.cjs +6 -6
  109. package/dist/apis/workflow-definition.js +1 -1
  110. package/dist/apis/workflow.cjs +6 -6
  111. package/dist/apis/workflow.js +1 -1
  112. package/dist/{chunk-5VKNAAXI.cjs → chunk-2AZIGIR2.cjs} +1 -1
  113. package/dist/{chunk-M2O7H6A2.js → chunk-X3SRAHIZ.js} +1 -1
  114. package/dist/entity-mapping-D67LJE74.js +7 -0
  115. package/dist/entity-mapping-WFPSOXRK.cjs +7 -0
  116. package/dist/{entity-mapping.d-DKSW3sfy.d.ts → entity-mapping.d-CQv75o8M.d.cts} +196 -3
  117. package/dist/{entity-mapping.d-DKSW3sfy.d.cts → entity-mapping.d-CQv75o8M.d.ts} +196 -3
  118. package/dist/index.cjs +8 -8
  119. package/dist/index.d.cts +1 -1
  120. package/dist/index.d.ts +1 -1
  121. package/dist/index.js +1 -1
  122. package/docs/entity-mapping.md +354 -852
  123. package/package.json +1 -1
  124. package/dist/entity-mapping-7J3IAGKQ.js +0 -7
  125. package/dist/entity-mapping-ZNMFCUKK.cjs +0 -7
@@ -63,6 +63,12 @@ const { data } = await entityMappingClient.storeConfig(...)
63
63
  - [`MapCondition`](#mapcondition)
64
64
  - [`ConditionNode`](#conditionnode)
65
65
  - [`RelationAttribute`](#relationattribute)
66
+ - [`GraphContextEntry`](#graphcontextentry)
67
+ - [`GraphSeed`](#graphseed)
68
+ - [`GraphDefinition`](#graphdefinition)
69
+ - [`GraphNode`](#graphnode)
70
+ - [`GraphNodeFilter`](#graphnodefilter)
71
+ - [`GraphEdge`](#graphedge)
66
72
  - [`MappingAttributeV2`](#mappingattributev2)
67
73
  - [`AttributeOrigin`](#attributeorigin)
68
74
  - [`OperationNode`](#operationnode)
@@ -106,66 +112,15 @@ const { data } = await client.storeConfig(
106
112
  allow_failure: true,
107
113
  target_schema: 'string',
108
114
  target_unique: ['string'],
109
- loop_config: {
110
- source_path: 'string',
111
- length: 'the length of the array'
112
- },
115
+ use_uniqueness_criteria: false,
116
+ loop_config: { /* ... */ },
113
117
  conditionMode: 'oneOf',
114
- conditions: [
115
- {
116
- _exists: {
117
- source: 'string',
118
- value: 'string'
119
- },
120
- _equals: {
121
- source: 'string',
122
- value: 'string'
123
- },
124
- _not_exists: {
125
- source: 'string',
126
- value: 'string'
127
- },
128
- _any_of: {
129
- source: 'string',
130
- value: 'string'
131
- }
132
- }
133
- ],
134
- mapping_attributes: [
135
- {
136
- target: '_tags',
137
- operation: {
138
- _append: ['new', 'tags'],
139
- _uniq: true
140
- }
141
- },
142
- {
143
- mode: 'copy_if_exists',
144
- target: 'string',
145
- value: {}
146
- }
147
- ],
148
- relation_attributes: [
149
- {
150
- target: 'string',
151
- target_tags: ['string'],
152
- target_tags_include_source: false,
153
- override_with_source_filter: false,
154
- source_filter: {
155
- limit: 0,
156
- schema: 'string',
157
- attribute: 'string',
158
- relation_tag: 'string',
159
- tag: 'string',
160
- self: false
161
- },
162
- related_to: {},
163
- mode: 'append',
164
- origin: 'system_recommendation'
165
- }
166
- ],
118
+ conditions: [ /* ... */ ],
119
+ mapping_attributes: [ /* ... */ ],
120
+ relation_attributes: [ /* ... */ ],
167
121
  linkback_relation_attribute: 'mapped_entities',
168
- linkback_relation_tags: ['string']
122
+ linkback_relation_tags: ['string'],
123
+ graph_context: [ /* ... */ ]
169
124
  }
170
125
  ],
171
126
  created_at: '1970-01-01T00:00:00.000Z',
@@ -205,66 +160,15 @@ const { data } = await client.storeConfig(
205
160
  "allow_failure": true,
206
161
  "target_schema": "string",
207
162
  "target_unique": ["string"],
208
- "loop_config": {
209
- "source_path": "string",
210
- "length": "the length of the array"
211
- },
163
+ "use_uniqueness_criteria": false,
164
+ "loop_config": {},
212
165
  "conditionMode": "oneOf",
213
- "conditions": [
214
- {
215
- "_exists": {
216
- "source": "string",
217
- "value": "string"
218
- },
219
- "_equals": {
220
- "source": "string",
221
- "value": "string"
222
- },
223
- "_not_exists": {
224
- "source": "string",
225
- "value": "string"
226
- },
227
- "_any_of": {
228
- "source": "string",
229
- "value": "string"
230
- }
231
- }
232
- ],
233
- "mapping_attributes": [
234
- {
235
- "target": "_tags",
236
- "operation": {
237
- "_append": ["new", "tags"],
238
- "_uniq": true
239
- }
240
- },
241
- {
242
- "mode": "copy_if_exists",
243
- "target": "string",
244
- "value": {}
245
- }
246
- ],
247
- "relation_attributes": [
248
- {
249
- "target": "string",
250
- "target_tags": ["string"],
251
- "target_tags_include_source": false,
252
- "override_with_source_filter": false,
253
- "source_filter": {
254
- "limit": 0,
255
- "schema": "string",
256
- "attribute": "string",
257
- "relation_tag": "string",
258
- "tag": "string",
259
- "self": false
260
- },
261
- "related_to": {},
262
- "mode": "append",
263
- "origin": "system_recommendation"
264
- }
265
- ],
166
+ "conditions": [],
167
+ "mapping_attributes": [],
168
+ "relation_attributes": [],
266
169
  "linkback_relation_attribute": "mapped_entities",
267
- "linkback_relation_tags": ["string"]
170
+ "linkback_relation_tags": ["string"],
171
+ "graph_context": []
268
172
  }
269
173
  ],
270
174
  "created_at": "1970-01-01T00:00:00.000Z",
@@ -319,66 +223,15 @@ const { data } = await client.getConfig({
319
223
  "allow_failure": true,
320
224
  "target_schema": "string",
321
225
  "target_unique": ["string"],
322
- "loop_config": {
323
- "source_path": "string",
324
- "length": "the length of the array"
325
- },
226
+ "use_uniqueness_criteria": false,
227
+ "loop_config": {},
326
228
  "conditionMode": "oneOf",
327
- "conditions": [
328
- {
329
- "_exists": {
330
- "source": "string",
331
- "value": "string"
332
- },
333
- "_equals": {
334
- "source": "string",
335
- "value": "string"
336
- },
337
- "_not_exists": {
338
- "source": "string",
339
- "value": "string"
340
- },
341
- "_any_of": {
342
- "source": "string",
343
- "value": "string"
344
- }
345
- }
346
- ],
347
- "mapping_attributes": [
348
- {
349
- "target": "_tags",
350
- "operation": {
351
- "_append": ["new", "tags"],
352
- "_uniq": true
353
- }
354
- },
355
- {
356
- "mode": "copy_if_exists",
357
- "target": "string",
358
- "value": {}
359
- }
360
- ],
361
- "relation_attributes": [
362
- {
363
- "target": "string",
364
- "target_tags": ["string"],
365
- "target_tags_include_source": false,
366
- "override_with_source_filter": false,
367
- "source_filter": {
368
- "limit": 0,
369
- "schema": "string",
370
- "attribute": "string",
371
- "relation_tag": "string",
372
- "tag": "string",
373
- "self": false
374
- },
375
- "related_to": {},
376
- "mode": "append",
377
- "origin": "system_recommendation"
378
- }
379
- ],
229
+ "conditions": [],
230
+ "mapping_attributes": [],
231
+ "relation_attributes": [],
380
232
  "linkback_relation_attribute": "mapped_entities",
381
- "linkback_relation_tags": ["string"]
233
+ "linkback_relation_tags": ["string"],
234
+ "graph_context": []
382
235
  }
383
236
  ],
384
237
  "created_at": "1970-01-01T00:00:00.000Z",
@@ -433,66 +286,15 @@ const { data } = await client.deleteConfig({
433
286
  "allow_failure": true,
434
287
  "target_schema": "string",
435
288
  "target_unique": ["string"],
436
- "loop_config": {
437
- "source_path": "string",
438
- "length": "the length of the array"
439
- },
289
+ "use_uniqueness_criteria": false,
290
+ "loop_config": {},
440
291
  "conditionMode": "oneOf",
441
- "conditions": [
442
- {
443
- "_exists": {
444
- "source": "string",
445
- "value": "string"
446
- },
447
- "_equals": {
448
- "source": "string",
449
- "value": "string"
450
- },
451
- "_not_exists": {
452
- "source": "string",
453
- "value": "string"
454
- },
455
- "_any_of": {
456
- "source": "string",
457
- "value": "string"
458
- }
459
- }
460
- ],
461
- "mapping_attributes": [
462
- {
463
- "target": "_tags",
464
- "operation": {
465
- "_append": ["new", "tags"],
466
- "_uniq": true
467
- }
468
- },
469
- {
470
- "mode": "copy_if_exists",
471
- "target": "string",
472
- "value": {}
473
- }
474
- ],
475
- "relation_attributes": [
476
- {
477
- "target": "string",
478
- "target_tags": ["string"],
479
- "target_tags_include_source": false,
480
- "override_with_source_filter": false,
481
- "source_filter": {
482
- "limit": 0,
483
- "schema": "string",
484
- "attribute": "string",
485
- "relation_tag": "string",
486
- "tag": "string",
487
- "self": false
488
- },
489
- "related_to": {},
490
- "mode": "append",
491
- "origin": "system_recommendation"
492
- }
493
- ],
292
+ "conditions": [],
293
+ "mapping_attributes": [],
294
+ "relation_attributes": [],
494
295
  "linkback_relation_attribute": "mapped_entities",
495
- "linkback_relation_tags": ["string"]
296
+ "linkback_relation_tags": ["string"],
297
+ "graph_context": []
496
298
  }
497
299
  ],
498
300
  "created_at": "1970-01-01T00:00:00.000Z",
@@ -536,93 +338,12 @@ const { data } = await client.getAllVersions({
536
338
  "configs": [
537
339
  {
538
340
  "id": "string",
539
- "source": {
540
- "type": "journey",
541
- "config": {
542
- "journey_id": "string"
543
- }
544
- },
545
- "targets": [
546
- {
547
- "id": "string",
548
- "name": "string",
549
- "allow_failure": true,
550
- "target_schema": "string",
551
- "target_unique": ["string"],
552
- "loop_config": {
553
- "source_path": "string",
554
- "length": "the length of the array"
555
- },
556
- "conditionMode": "oneOf",
557
- "conditions": [
558
- {
559
- "_exists": {
560
- "source": "string",
561
- "value": "string"
562
- },
563
- "_equals": {
564
- "source": "string",
565
- "value": "string"
566
- },
567
- "_not_exists": {
568
- "source": "string",
569
- "value": "string"
570
- },
571
- "_any_of": {
572
- "source": "string",
573
- "value": "string"
574
- }
575
- }
576
- ],
577
- "mapping_attributes": [
578
- {
579
- "target": "_tags",
580
- "operation": {
581
- "_append": ["new", "tags"],
582
- "_uniq": true
583
- }
584
- },
585
- {
586
- "mode": "copy_if_exists",
587
- "target": "string",
588
- "value": {}
589
- }
590
- ],
591
- "relation_attributes": [
592
- {
593
- "target": "string",
594
- "target_tags": ["string"],
595
- "target_tags_include_source": false,
596
- "override_with_source_filter": false,
597
- "source_filter": {
598
- "limit": 0,
599
- "schema": "string",
600
- "attribute": "string",
601
- "relation_tag": "string",
602
- "tag": "string",
603
- "self": false
604
- },
605
- "related_to": {},
606
- "mode": "append",
607
- "origin": "system_recommendation"
608
- }
609
- ],
610
- "linkback_relation_attribute": "mapped_entities",
611
- "linkback_relation_tags": ["string"]
612
- }
613
- ],
341
+ "source": {},
342
+ "targets": [],
614
343
  "created_at": "1970-01-01T00:00:00.000Z",
615
344
  "updated_at": "1970-01-01T00:00:00.000Z",
616
- "created_by": {
617
- "type": "user",
618
- "org_id": "string",
619
- "user_id": "string"
620
- },
621
- "last_updated_by": {
622
- "type": "user",
623
- "org_id": "string",
624
- "user_id": "string"
625
- },
345
+ "created_by": {},
346
+ "last_updated_by": {},
626
347
  "org_id": "66",
627
348
  "version": 2
628
349
  }
@@ -660,66 +381,15 @@ const { data } = await client.storeNewVersion(
660
381
  allow_failure: true,
661
382
  target_schema: 'string',
662
383
  target_unique: ['string'],
663
- loop_config: {
664
- source_path: 'string',
665
- length: 'the length of the array'
666
- },
384
+ use_uniqueness_criteria: false,
385
+ loop_config: { /* ... */ },
667
386
  conditionMode: 'oneOf',
668
- conditions: [
669
- {
670
- _exists: {
671
- source: 'string',
672
- value: 'string'
673
- },
674
- _equals: {
675
- source: 'string',
676
- value: 'string'
677
- },
678
- _not_exists: {
679
- source: 'string',
680
- value: 'string'
681
- },
682
- _any_of: {
683
- source: 'string',
684
- value: 'string'
685
- }
686
- }
687
- ],
688
- mapping_attributes: [
689
- {
690
- target: '_tags',
691
- operation: {
692
- _append: ['new', 'tags'],
693
- _uniq: true
694
- }
695
- },
696
- {
697
- mode: 'copy_if_exists',
698
- target: 'string',
699
- value: {}
700
- }
701
- ],
702
- relation_attributes: [
703
- {
704
- target: 'string',
705
- target_tags: ['string'],
706
- target_tags_include_source: false,
707
- override_with_source_filter: false,
708
- source_filter: {
709
- limit: 0,
710
- schema: 'string',
711
- attribute: 'string',
712
- relation_tag: 'string',
713
- tag: 'string',
714
- self: false
715
- },
716
- related_to: {},
717
- mode: 'append',
718
- origin: 'system_recommendation'
719
- }
720
- ],
387
+ conditions: [ /* ... */ ],
388
+ mapping_attributes: [ /* ... */ ],
389
+ relation_attributes: [ /* ... */ ],
721
390
  linkback_relation_attribute: 'mapped_entities',
722
- linkback_relation_tags: ['string']
391
+ linkback_relation_tags: ['string'],
392
+ graph_context: [ /* ... */ ]
723
393
  }
724
394
  ],
725
395
  created_at: '1970-01-01T00:00:00.000Z',
@@ -759,66 +429,15 @@ const { data } = await client.storeNewVersion(
759
429
  "allow_failure": true,
760
430
  "target_schema": "string",
761
431
  "target_unique": ["string"],
762
- "loop_config": {
763
- "source_path": "string",
764
- "length": "the length of the array"
765
- },
432
+ "use_uniqueness_criteria": false,
433
+ "loop_config": {},
766
434
  "conditionMode": "oneOf",
767
- "conditions": [
768
- {
769
- "_exists": {
770
- "source": "string",
771
- "value": "string"
772
- },
773
- "_equals": {
774
- "source": "string",
775
- "value": "string"
776
- },
777
- "_not_exists": {
778
- "source": "string",
779
- "value": "string"
780
- },
781
- "_any_of": {
782
- "source": "string",
783
- "value": "string"
784
- }
785
- }
786
- ],
787
- "mapping_attributes": [
788
- {
789
- "target": "_tags",
790
- "operation": {
791
- "_append": ["new", "tags"],
792
- "_uniq": true
793
- }
794
- },
795
- {
796
- "mode": "copy_if_exists",
797
- "target": "string",
798
- "value": {}
799
- }
800
- ],
801
- "relation_attributes": [
802
- {
803
- "target": "string",
804
- "target_tags": ["string"],
805
- "target_tags_include_source": false,
806
- "override_with_source_filter": false,
807
- "source_filter": {
808
- "limit": 0,
809
- "schema": "string",
810
- "attribute": "string",
811
- "relation_tag": "string",
812
- "tag": "string",
813
- "self": false
814
- },
815
- "related_to": {},
816
- "mode": "append",
817
- "origin": "system_recommendation"
818
- }
819
- ],
435
+ "conditions": [],
436
+ "mapping_attributes": [],
437
+ "relation_attributes": [],
820
438
  "linkback_relation_attribute": "mapped_entities",
821
- "linkback_relation_tags": ["string"]
439
+ "linkback_relation_tags": ["string"],
440
+ "graph_context": []
822
441
  }
823
442
  ],
824
443
  "created_at": "1970-01-01T00:00:00.000Z",
@@ -874,66 +493,15 @@ const { data } = await client.getConfigVersion({
874
493
  "allow_failure": true,
875
494
  "target_schema": "string",
876
495
  "target_unique": ["string"],
877
- "loop_config": {
878
- "source_path": "string",
879
- "length": "the length of the array"
880
- },
496
+ "use_uniqueness_criteria": false,
497
+ "loop_config": {},
881
498
  "conditionMode": "oneOf",
882
- "conditions": [
883
- {
884
- "_exists": {
885
- "source": "string",
886
- "value": "string"
887
- },
888
- "_equals": {
889
- "source": "string",
890
- "value": "string"
891
- },
892
- "_not_exists": {
893
- "source": "string",
894
- "value": "string"
895
- },
896
- "_any_of": {
897
- "source": "string",
898
- "value": "string"
899
- }
900
- }
901
- ],
902
- "mapping_attributes": [
903
- {
904
- "target": "_tags",
905
- "operation": {
906
- "_append": ["new", "tags"],
907
- "_uniq": true
908
- }
909
- },
910
- {
911
- "mode": "copy_if_exists",
912
- "target": "string",
913
- "value": {}
914
- }
915
- ],
916
- "relation_attributes": [
917
- {
918
- "target": "string",
919
- "target_tags": ["string"],
920
- "target_tags_include_source": false,
921
- "override_with_source_filter": false,
922
- "source_filter": {
923
- "limit": 0,
924
- "schema": "string",
925
- "attribute": "string",
926
- "relation_tag": "string",
927
- "tag": "string",
928
- "self": false
929
- },
930
- "related_to": {},
931
- "mode": "append",
932
- "origin": "system_recommendation"
933
- }
934
- ],
499
+ "conditions": [],
500
+ "mapping_attributes": [],
501
+ "relation_attributes": [],
935
502
  "linkback_relation_attribute": "mapped_entities",
936
- "linkback_relation_tags": ["string"]
503
+ "linkback_relation_tags": ["string"],
504
+ "graph_context": []
937
505
  }
938
506
  ],
939
507
  "created_at": "1970-01-01T00:00:00.000Z",
@@ -973,6 +541,10 @@ const { data } = await client.executeMapping(
973
541
  entity_id: 'string',
974
542
  entity_schema: 'submission'
975
543
  },
544
+ loop_ref: {
545
+ entity_id: 'string',
546
+ entity_schema: 'submission'
547
+ },
976
548
  targets: [
977
549
  {
978
550
  id: 'string',
@@ -980,66 +552,15 @@ const { data } = await client.executeMapping(
980
552
  allow_failure: true,
981
553
  target_schema: 'string',
982
554
  target_unique: ['string'],
983
- loop_config: {
984
- source_path: 'string',
985
- length: 'the length of the array'
986
- },
555
+ use_uniqueness_criteria: false,
556
+ loop_config: { /* ... */ },
987
557
  conditionMode: 'oneOf',
988
- conditions: [
989
- {
990
- _exists: {
991
- source: 'string',
992
- value: 'string'
993
- },
994
- _equals: {
995
- source: 'string',
996
- value: 'string'
997
- },
998
- _not_exists: {
999
- source: 'string',
1000
- value: 'string'
1001
- },
1002
- _any_of: {
1003
- source: 'string',
1004
- value: 'string'
1005
- }
1006
- }
1007
- ],
1008
- mapping_attributes: [
1009
- {
1010
- target: '_tags',
1011
- operation: {
1012
- _append: ['new', 'tags'],
1013
- _uniq: true
1014
- }
1015
- },
1016
- {
1017
- mode: 'copy_if_exists',
1018
- target: 'string',
1019
- value: {}
1020
- }
1021
- ],
1022
- relation_attributes: [
1023
- {
1024
- target: 'string',
1025
- target_tags: ['string'],
1026
- target_tags_include_source: false,
1027
- override_with_source_filter: false,
1028
- source_filter: {
1029
- limit: 0,
1030
- schema: 'string',
1031
- attribute: 'string',
1032
- relation_tag: 'string',
1033
- tag: 'string',
1034
- self: false
1035
- },
1036
- related_to: {},
1037
- mode: 'append',
1038
- origin: 'system_recommendation'
1039
- }
1040
- ],
558
+ conditions: [ /* ... */ ],
559
+ mapping_attributes: [ /* ... */ ],
560
+ relation_attributes: [ /* ... */ ],
1041
561
  linkback_relation_attribute: 'mapped_entities',
1042
- linkback_relation_tags: ['string']
562
+ linkback_relation_tags: ['string'],
563
+ graph_context: [ /* ... */ ]
1043
564
  }
1044
565
  ]
1045
566
  },
@@ -1065,77 +586,8 @@ const { data } = await client.executeMapping(
1065
586
  ],
1066
587
  "failures": [
1067
588
  {
1068
- "target": {
1069
- "id": "string",
1070
- "name": "string",
1071
- "allow_failure": true,
1072
- "target_schema": "string",
1073
- "target_unique": ["string"],
1074
- "loop_config": {
1075
- "source_path": "string",
1076
- "length": "the length of the array"
1077
- },
1078
- "conditionMode": "oneOf",
1079
- "conditions": [
1080
- {
1081
- "_exists": {
1082
- "source": "string",
1083
- "value": "string"
1084
- },
1085
- "_equals": {
1086
- "source": "string",
1087
- "value": "string"
1088
- },
1089
- "_not_exists": {
1090
- "source": "string",
1091
- "value": "string"
1092
- },
1093
- "_any_of": {
1094
- "source": "string",
1095
- "value": "string"
1096
- }
1097
- }
1098
- ],
1099
- "mapping_attributes": [
1100
- {
1101
- "target": "_tags",
1102
- "operation": {
1103
- "_append": ["new", "tags"],
1104
- "_uniq": true
1105
- }
1106
- },
1107
- {
1108
- "mode": "copy_if_exists",
1109
- "target": "string",
1110
- "value": {}
1111
- }
1112
- ],
1113
- "relation_attributes": [
1114
- {
1115
- "target": "string",
1116
- "target_tags": ["string"],
1117
- "target_tags_include_source": false,
1118
- "override_with_source_filter": false,
1119
- "source_filter": {
1120
- "limit": 0,
1121
- "schema": "string",
1122
- "attribute": "string",
1123
- "relation_tag": "string",
1124
- "tag": "string",
1125
- "self": false
1126
- },
1127
- "related_to": {},
1128
- "mode": "append",
1129
- "origin": "system_recommendation"
1130
- }
1131
- ],
1132
- "linkback_relation_attribute": "mapped_entities",
1133
- "linkback_relation_tags": ["string"]
1134
- },
1135
- "error": {
1136
- "isSilent": true,
1137
- "message": "string"
1138
- }
589
+ "target": {},
590
+ "error": {}
1139
591
  }
1140
592
  ],
1141
593
  "warnings": [
@@ -1191,66 +643,15 @@ const { data } = await client.searchConfigs(
1191
643
  "allow_failure": true,
1192
644
  "target_schema": "string",
1193
645
  "target_unique": ["string"],
1194
- "loop_config": {
1195
- "source_path": "string",
1196
- "length": "the length of the array"
1197
- },
646
+ "use_uniqueness_criteria": false,
647
+ "loop_config": {},
1198
648
  "conditionMode": "oneOf",
1199
- "conditions": [
1200
- {
1201
- "_exists": {
1202
- "source": "string",
1203
- "value": "string"
1204
- },
1205
- "_equals": {
1206
- "source": "string",
1207
- "value": "string"
1208
- },
1209
- "_not_exists": {
1210
- "source": "string",
1211
- "value": "string"
1212
- },
1213
- "_any_of": {
1214
- "source": "string",
1215
- "value": "string"
1216
- }
1217
- }
1218
- ],
1219
- "mapping_attributes": [
1220
- {
1221
- "target": "_tags",
1222
- "operation": {
1223
- "_append": ["new", "tags"],
1224
- "_uniq": true
1225
- }
1226
- },
1227
- {
1228
- "mode": "copy_if_exists",
1229
- "target": "string",
1230
- "value": {}
1231
- }
1232
- ],
1233
- "relation_attributes": [
1234
- {
1235
- "target": "string",
1236
- "target_tags": ["string"],
1237
- "target_tags_include_source": false,
1238
- "override_with_source_filter": false,
1239
- "source_filter": {
1240
- "limit": 0,
1241
- "schema": "string",
1242
- "attribute": "string",
1243
- "relation_tag": "string",
1244
- "tag": "string",
1245
- "self": false
1246
- },
1247
- "related_to": {},
1248
- "mode": "append",
1249
- "origin": "system_recommendation"
1250
- }
1251
- ],
649
+ "conditions": [],
650
+ "mapping_attributes": [],
651
+ "relation_attributes": [],
1252
652
  "linkback_relation_attribute": "mapped_entities",
1253
- "linkback_relation_tags": ["string"]
653
+ "linkback_relation_tags": ["string"],
654
+ "graph_context": []
1254
655
  }
1255
656
  ],
1256
657
  "created_at": "1970-01-01T00:00:00.000Z",
@@ -1324,6 +725,7 @@ const { data } = await client.executeRelations(
1324
725
  target: 'string',
1325
726
  target_tags: ['string'],
1326
727
  target_tags_include_source: false,
728
+ target_entity_tags: ['string'],
1327
729
  override_with_source_filter: false,
1328
730
  source_filter: {
1329
731
  limit: 0,
@@ -1404,66 +806,15 @@ const { data } = await client.getMappingConfig({
1404
806
  "allow_failure": true,
1405
807
  "target_schema": "string",
1406
808
  "target_unique": ["string"],
1407
- "loop_config": {
1408
- "source_path": "string",
1409
- "length": "the length of the array"
1410
- },
809
+ "use_uniqueness_criteria": false,
810
+ "loop_config": {},
1411
811
  "conditionMode": "oneOf",
1412
- "conditions": [
1413
- {
1414
- "_exists": {
1415
- "source": "string",
1416
- "value": "string"
1417
- },
1418
- "_equals": {
1419
- "source": "string",
1420
- "value": "string"
1421
- },
1422
- "_not_exists": {
1423
- "source": "string",
1424
- "value": "string"
1425
- },
1426
- "_any_of": {
1427
- "source": "string",
1428
- "value": "string"
1429
- }
1430
- }
1431
- ],
1432
- "mapping_attributes": [
1433
- {
1434
- "target": "_tags",
1435
- "operation": {
1436
- "_append": ["new", "tags"],
1437
- "_uniq": true
1438
- }
1439
- },
1440
- {
1441
- "mode": "copy_if_exists",
1442
- "target": "string",
1443
- "value": {}
1444
- }
1445
- ],
1446
- "relation_attributes": [
1447
- {
1448
- "target": "string",
1449
- "target_tags": ["string"],
1450
- "target_tags_include_source": false,
1451
- "override_with_source_filter": false,
1452
- "source_filter": {
1453
- "limit": 0,
1454
- "schema": "string",
1455
- "attribute": "string",
1456
- "relation_tag": "string",
1457
- "tag": "string",
1458
- "self": false
1459
- },
1460
- "related_to": {},
1461
- "mode": "append",
1462
- "origin": "system_recommendation"
1463
- }
1464
- ],
812
+ "conditions": [],
813
+ "mapping_attributes": [],
814
+ "relation_attributes": [],
1465
815
  "linkback_relation_attribute": "mapped_entities",
1466
- "linkback_relation_tags": ["string"]
816
+ "linkback_relation_tags": ["string"],
817
+ "graph_context": []
1467
818
  }
1468
819
  ],
1469
820
  "created_at": "1970-01-01T00:00:00.000Z",
@@ -1513,66 +864,15 @@ const { data } = await client.putMappingConfig(
1513
864
  allow_failure: true,
1514
865
  target_schema: 'string',
1515
866
  target_unique: ['string'],
1516
- loop_config: {
1517
- source_path: 'string',
1518
- length: 'the length of the array'
1519
- },
867
+ use_uniqueness_criteria: false,
868
+ loop_config: { /* ... */ },
1520
869
  conditionMode: 'oneOf',
1521
- conditions: [
1522
- {
1523
- _exists: {
1524
- source: 'string',
1525
- value: 'string'
1526
- },
1527
- _equals: {
1528
- source: 'string',
1529
- value: 'string'
1530
- },
1531
- _not_exists: {
1532
- source: 'string',
1533
- value: 'string'
1534
- },
1535
- _any_of: {
1536
- source: 'string',
1537
- value: 'string'
1538
- }
1539
- }
1540
- ],
1541
- mapping_attributes: [
1542
- {
1543
- target: '_tags',
1544
- operation: {
1545
- _append: ['new', 'tags'],
1546
- _uniq: true
1547
- }
1548
- },
1549
- {
1550
- mode: 'copy_if_exists',
1551
- target: 'string',
1552
- value: {}
1553
- }
1554
- ],
1555
- relation_attributes: [
1556
- {
1557
- target: 'string',
1558
- target_tags: ['string'],
1559
- target_tags_include_source: false,
1560
- override_with_source_filter: false,
1561
- source_filter: {
1562
- limit: 0,
1563
- schema: 'string',
1564
- attribute: 'string',
1565
- relation_tag: 'string',
1566
- tag: 'string',
1567
- self: false
1568
- },
1569
- related_to: {},
1570
- mode: 'append',
1571
- origin: 'system_recommendation'
1572
- }
1573
- ],
870
+ conditions: [ /* ... */ ],
871
+ mapping_attributes: [ /* ... */ ],
872
+ relation_attributes: [ /* ... */ ],
1574
873
  linkback_relation_attribute: 'mapped_entities',
1575
- linkback_relation_tags: ['string']
874
+ linkback_relation_tags: ['string'],
875
+ graph_context: [ /* ... */ ]
1576
876
  }
1577
877
  ],
1578
878
  created_at: '1970-01-01T00:00:00.000Z',
@@ -1612,66 +912,15 @@ const { data } = await client.putMappingConfig(
1612
912
  "allow_failure": true,
1613
913
  "target_schema": "string",
1614
914
  "target_unique": ["string"],
1615
- "loop_config": {
1616
- "source_path": "string",
1617
- "length": "the length of the array"
1618
- },
915
+ "use_uniqueness_criteria": false,
916
+ "loop_config": {},
1619
917
  "conditionMode": "oneOf",
1620
- "conditions": [
1621
- {
1622
- "_exists": {
1623
- "source": "string",
1624
- "value": "string"
1625
- },
1626
- "_equals": {
1627
- "source": "string",
1628
- "value": "string"
1629
- },
1630
- "_not_exists": {
1631
- "source": "string",
1632
- "value": "string"
1633
- },
1634
- "_any_of": {
1635
- "source": "string",
1636
- "value": "string"
1637
- }
1638
- }
1639
- ],
1640
- "mapping_attributes": [
1641
- {
1642
- "target": "_tags",
1643
- "operation": {
1644
- "_append": ["new", "tags"],
1645
- "_uniq": true
1646
- }
1647
- },
1648
- {
1649
- "mode": "copy_if_exists",
1650
- "target": "string",
1651
- "value": {}
1652
- }
1653
- ],
1654
- "relation_attributes": [
1655
- {
1656
- "target": "string",
1657
- "target_tags": ["string"],
1658
- "target_tags_include_source": false,
1659
- "override_with_source_filter": false,
1660
- "source_filter": {
1661
- "limit": 0,
1662
- "schema": "string",
1663
- "attribute": "string",
1664
- "relation_tag": "string",
1665
- "tag": "string",
1666
- "self": false
1667
- },
1668
- "related_to": {},
1669
- "mode": "append",
1670
- "origin": "system_recommendation"
1671
- }
1672
- ],
918
+ "conditions": [],
919
+ "mapping_attributes": [],
920
+ "relation_attributes": [],
1673
921
  "linkback_relation_attribute": "mapped_entities",
1674
- "linkback_relation_tags": ["string"]
922
+ "linkback_relation_tags": ["string"],
923
+ "graph_context": []
1675
924
  }
1676
925
  ],
1677
926
  "created_at": "1970-01-01T00:00:00.000Z",
@@ -1729,6 +978,7 @@ type MappingConfigsResp = {
1729
978
  allow_failure?: { ... }
1730
979
  target_schema: { ... }
1731
980
  target_unique?: { ... }
981
+ use_uniqueness_criteria?: { ... }
1732
982
  loop_config?: { ... }
1733
983
  conditionMode?: { ... }
1734
984
  conditions?: { ... }
@@ -1736,6 +986,7 @@ type MappingConfigsResp = {
1736
986
  relation_attributes?: { ... }
1737
987
  linkback_relation_attribute?: { ... }
1738
988
  linkback_relation_tags?: { ... }
989
+ graph_context?: { ... }
1739
990
  }>
1740
991
  created_at?: string // date-time
1741
992
  updated_at?: string // date-time
@@ -1775,6 +1026,7 @@ type MappingConfigs = Array<{
1775
1026
  allow_failure?: boolean
1776
1027
  target_schema: string
1777
1028
  target_unique?: string[]
1029
+ use_uniqueness_criteria?: boolean
1778
1030
  loop_config?: {
1779
1031
  source_path?: { ... }
1780
1032
  length?: { ... }
@@ -1809,6 +1061,7 @@ type MappingConfigs = Array<{
1809
1061
  target: { ... }
1810
1062
  target_tags?: { ... }
1811
1063
  target_tags_include_source?: { ... }
1064
+ target_entity_tags?: { ... }
1812
1065
  override_with_source_filter?: { ... }
1813
1066
  source_filter?: { ... }
1814
1067
  related_to?: { ... }
@@ -1817,6 +1070,10 @@ type MappingConfigs = Array<{
1817
1070
  }>
1818
1071
  linkback_relation_attribute?: string
1819
1072
  linkback_relation_tags?: string[]
1073
+ graph_context?: Array<{
1074
+ seed: { ... }
1075
+ graph: { ... }
1076
+ }>
1820
1077
  }>
1821
1078
  created_at?: string // date-time
1822
1079
  updated_at?: string // date-time
@@ -1855,6 +1112,7 @@ type MappingConfig = {
1855
1112
  allow_failure?: boolean
1856
1113
  target_schema: string
1857
1114
  target_unique?: string[]
1115
+ use_uniqueness_criteria?: boolean
1858
1116
  loop_config?: {
1859
1117
  source_path?: { ... }
1860
1118
  length?: { ... }
@@ -1889,6 +1147,7 @@ type MappingConfig = {
1889
1147
  target: { ... }
1890
1148
  target_tags?: { ... }
1891
1149
  target_tags_include_source?: { ... }
1150
+ target_entity_tags?: { ... }
1892
1151
  override_with_source_filter?: { ... }
1893
1152
  source_filter?: { ... }
1894
1153
  related_to?: { ... }
@@ -1897,6 +1156,10 @@ type MappingConfig = {
1897
1156
  }>
1898
1157
  linkback_relation_attribute?: string
1899
1158
  linkback_relation_tags?: string[]
1159
+ graph_context?: Array<{
1160
+ seed: { ... }
1161
+ graph: { ... }
1162
+ }>
1900
1163
  }>
1901
1164
  created_at?: string // date-time
1902
1165
  updated_at?: string // date-time
@@ -1935,6 +1198,7 @@ type MappingConfigV2 = {
1935
1198
  allow_failure?: boolean
1936
1199
  target_schema: string
1937
1200
  target_unique?: string[]
1201
+ use_uniqueness_criteria?: boolean
1938
1202
  loop_config?: {
1939
1203
  source_path?: { ... }
1940
1204
  length?: { ... }
@@ -1969,6 +1233,7 @@ type MappingConfigV2 = {
1969
1233
  target: { ... }
1970
1234
  target_tags?: { ... }
1971
1235
  target_tags_include_source?: { ... }
1236
+ target_entity_tags?: { ... }
1972
1237
  override_with_source_filter?: { ... }
1973
1238
  source_filter?: { ... }
1974
1239
  related_to?: { ... }
@@ -1977,6 +1242,10 @@ type MappingConfigV2 = {
1977
1242
  }>
1978
1243
  linkback_relation_attribute?: string
1979
1244
  linkback_relation_tags?: string[]
1245
+ graph_context?: Array<{
1246
+ seed: { ... }
1247
+ graph: { ... }
1248
+ }>
1980
1249
  }>
1981
1250
  created_at?: string // date-time
1982
1251
  updated_at?: string // date-time
@@ -2015,6 +1284,7 @@ type MappingConfigCommonFields = {
2015
1284
  allow_failure?: boolean
2016
1285
  target_schema: string
2017
1286
  target_unique?: string[]
1287
+ use_uniqueness_criteria?: boolean
2018
1288
  loop_config?: {
2019
1289
  source_path?: { ... }
2020
1290
  length?: { ... }
@@ -2049,6 +1319,7 @@ type MappingConfigCommonFields = {
2049
1319
  target: { ... }
2050
1320
  target_tags?: { ... }
2051
1321
  target_tags_include_source?: { ... }
1322
+ target_entity_tags?: { ... }
2052
1323
  override_with_source_filter?: { ... }
2053
1324
  source_filter?: { ... }
2054
1325
  related_to?: { ... }
@@ -2057,6 +1328,10 @@ type MappingConfigCommonFields = {
2057
1328
  }>
2058
1329
  linkback_relation_attribute?: string
2059
1330
  linkback_relation_tags?: string[]
1331
+ graph_context?: Array<{
1332
+ seed: { ... }
1333
+ graph: { ... }
1334
+ }>
2060
1335
  }>
2061
1336
  created_at?: string // date-time
2062
1337
  updated_at?: string // date-time
@@ -2102,6 +1377,7 @@ type ExecuteRelationsReq = {
2102
1377
  target: { ... }
2103
1378
  target_tags?: { ... }
2104
1379
  target_tags_include_source?: { ... }
1380
+ target_entity_tags?: { ... }
2105
1381
  override_with_source_filter?: { ... }
2106
1382
  source_filter?: { ... }
2107
1383
  related_to?: { ... }
@@ -2163,12 +1439,17 @@ type ExecuteMappingReq = {
2163
1439
  entity_id: string
2164
1440
  entity_schema?: string
2165
1441
  }
1442
+ loop_ref?: {
1443
+ entity_id: string
1444
+ entity_schema?: string
1445
+ }
2166
1446
  targets: Array<{
2167
1447
  id?: string
2168
1448
  name?: string
2169
1449
  allow_failure?: boolean
2170
1450
  target_schema: string
2171
1451
  target_unique?: string[]
1452
+ use_uniqueness_criteria?: boolean
2172
1453
  loop_config?: {
2173
1454
  source_path?: { ... }
2174
1455
  length?: { ... }
@@ -2203,6 +1484,7 @@ type ExecuteMappingReq = {
2203
1484
  target: { ... }
2204
1485
  target_tags?: { ... }
2205
1486
  target_tags_include_source?: { ... }
1487
+ target_entity_tags?: { ... }
2206
1488
  override_with_source_filter?: { ... }
2207
1489
  source_filter?: { ... }
2208
1490
  related_to?: { ... }
@@ -2211,6 +1493,10 @@ type ExecuteMappingReq = {
2211
1493
  }>
2212
1494
  linkback_relation_attribute?: string
2213
1495
  linkback_relation_tags?: string[]
1496
+ graph_context?: Array<{
1497
+ seed: { ... }
1498
+ graph: { ... }
1499
+ }>
2214
1500
  }>
2215
1501
  }
2216
1502
  ```
@@ -2236,6 +1522,7 @@ type ExecuteMappingResp = {
2236
1522
  allow_failure?: { ... }
2237
1523
  target_schema: { ... }
2238
1524
  target_unique?: { ... }
1525
+ use_uniqueness_criteria?: { ... }
2239
1526
  loop_config?: { ... }
2240
1527
  conditionMode?: { ... }
2241
1528
  conditions?: { ... }
@@ -2243,6 +1530,7 @@ type ExecuteMappingResp = {
2243
1530
  relation_attributes?: { ... }
2244
1531
  linkback_relation_attribute?: { ... }
2245
1532
  linkback_relation_tags?: { ... }
1533
+ graph_context?: { ... }
2246
1534
  }
2247
1535
  error?: {
2248
1536
  isSilent?: { ... }
@@ -2267,6 +1555,7 @@ type MappingFailure = {
2267
1555
  allow_failure?: boolean
2268
1556
  target_schema: string
2269
1557
  target_unique?: string[]
1558
+ use_uniqueness_criteria?: boolean
2270
1559
  loop_config?: {
2271
1560
  source_path?: { ... }
2272
1561
  length?: { ... }
@@ -2301,6 +1590,7 @@ type MappingFailure = {
2301
1590
  target: { ... }
2302
1591
  target_tags?: { ... }
2303
1592
  target_tags_include_source?: { ... }
1593
+ target_entity_tags?: { ... }
2304
1594
  override_with_source_filter?: { ... }
2305
1595
  source_filter?: { ... }
2306
1596
  related_to?: { ... }
@@ -2309,6 +1599,10 @@ type MappingFailure = {
2309
1599
  }>
2310
1600
  linkback_relation_attribute?: string
2311
1601
  linkback_relation_tags?: string[]
1602
+ graph_context?: Array<{
1603
+ seed: { ... }
1604
+ graph: { ... }
1605
+ }>
2312
1606
  }
2313
1607
  error?: {
2314
1608
  isSilent?: boolean
@@ -2390,6 +1684,7 @@ type TargetConfig = {
2390
1684
  allow_failure?: boolean
2391
1685
  target_schema: string
2392
1686
  target_unique?: string[]
1687
+ use_uniqueness_criteria?: boolean
2393
1688
  loop_config?: {
2394
1689
  source_path?: string
2395
1690
  length?: number
@@ -2424,6 +1719,9 @@ type TargetConfig = {
2424
1719
  _copy?: { ... }
2425
1720
  _template?: { ... }
2426
1721
  _random?: { ... }
1722
+ _each?: { ... }
1723
+ _as?: { ... }
1724
+ _map?: { ... }
2427
1725
  } | string | boolean | number | Record<string, unknown> | unknown[]
2428
1726
  origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"
2429
1727
  } | {
@@ -2445,6 +1743,7 @@ type TargetConfig = {
2445
1743
  target: string
2446
1744
  target_tags?: string[]
2447
1745
  target_tags_include_source?: boolean
1746
+ target_entity_tags?: string[]
2448
1747
  override_with_source_filter?: boolean
2449
1748
  source_filter?: {
2450
1749
  limit?: { ... }
@@ -2460,6 +1759,16 @@ type TargetConfig = {
2460
1759
  }>
2461
1760
  linkback_relation_attribute?: string
2462
1761
  linkback_relation_tags?: string[]
1762
+ graph_context?: Array<{
1763
+ seed: {
1764
+ entity_id: { ... }
1765
+ node_id: { ... }
1766
+ }
1767
+ graph: {
1768
+ nodes: { ... }
1769
+ edges: { ... }
1770
+ }
1771
+ }>
2463
1772
  }
2464
1773
  ```
2465
1774
 
@@ -2502,6 +1811,7 @@ type RelationAttribute = {
2502
1811
  target: string
2503
1812
  target_tags?: string[]
2504
1813
  target_tags_include_source?: boolean
1814
+ target_entity_tags?: string[]
2505
1815
  override_with_source_filter?: boolean
2506
1816
  source_filter?: {
2507
1817
  limit?: number
@@ -2517,6 +1827,108 @@ type RelationAttribute = {
2517
1827
  }
2518
1828
  ```
2519
1829
 
1830
+ ### `GraphContextEntry`
1831
+
1832
+ One multi-hop graph lookup against entity-api's `POST /v1/entity:graph`, resolved during
1833
+ graph_context enrichment (before mapping_attributes are evaluated). Every node in `graph.nodes`
1834
+ is merged into sourceContext under its own `id`, so listing several nodes here costs one
1835
+ entity-api call, not one p
1836
+
1837
+ ```ts
1838
+ type GraphContextEntry = {
1839
+ seed: {
1840
+ entity_id: string
1841
+ node_id: string
1842
+ }
1843
+ graph: {
1844
+ nodes: Array<{
1845
+ id: { ... }
1846
+ schema: { ... }
1847
+ cardinality?: { ... }
1848
+ fields?: { ... }
1849
+ filter?: { ... }
1850
+ }>
1851
+ edges: Array<{
1852
+ from: { ... }
1853
+ to: { ... }
1854
+ }>
1855
+ }
1856
+ }
1857
+ ```
1858
+
1859
+ ### `GraphSeed`
1860
+
1861
+ Mirrors entity-api's GraphSeed (see entity-api openapi.yml) - the entity the graph traversal starts from.
1862
+
1863
+ ```ts
1864
+ type GraphSeed = {
1865
+ entity_id: string
1866
+ node_id: string
1867
+ }
1868
+ ```
1869
+
1870
+ ### `GraphDefinition`
1871
+
1872
+ Mirrors entity-api's GraphDefinition (see entity-api openapi.yml) - the shape of the graph to traverse.
1873
+
1874
+ ```ts
1875
+ type GraphDefinition = {
1876
+ nodes: Array<{
1877
+ id: string
1878
+ schema: string
1879
+ cardinality?: "one" | "many"
1880
+ fields?: string[]
1881
+ filter?: Array<{
1882
+ attribute: { ... }
1883
+ value: { ... }
1884
+ }>
1885
+ }>
1886
+ edges: Array<{
1887
+ from: string
1888
+ to: string
1889
+ }>
1890
+ }
1891
+ ```
1892
+
1893
+ ### `GraphNode`
1894
+
1895
+ Mirrors entity-api's GraphNode (see entity-api openapi.yml).
1896
+
1897
+ ```ts
1898
+ type GraphNode = {
1899
+ id: string
1900
+ schema: string
1901
+ cardinality?: "one" | "many"
1902
+ fields?: string[]
1903
+ filter?: Array<{
1904
+ attribute: string
1905
+ value: string | number | boolean
1906
+ }>
1907
+ }
1908
+ ```
1909
+
1910
+ ### `GraphNodeFilter`
1911
+
1912
+ Mirrors entity-api's GraphNodeFilter (see entity-api openapi.yml).
1913
+
1914
+ ```ts
1915
+ type GraphNodeFilter = {
1916
+ attribute: string
1917
+ value: string | number | boolean
1918
+ }
1919
+ ```
1920
+
1921
+ ### `GraphEdge`
1922
+
1923
+ Mirrors entity-api's GraphEdge (see entity-api openapi.yml).
1924
+
1925
+ ```ts
1926
+ type GraphEdge = {
1927
+ from: string
1928
+ to: string
1929
+ }
1930
+ ```
1931
+
2520
1932
  ### `MappingAttributeV2`
2521
1933
 
2522
1934
  ```ts
@@ -2537,6 +1949,21 @@ type MappingAttributeV2 = {
2537
1949
  min?: { ... }
2538
1950
  max?: { ... }
2539
1951
  }
1952
+ _each?: string
1953
+ _as?: string
1954
+ _map?: {
1955
+ _set?: { ... }
1956
+ _append?: { ... }
1957
+ _prepend?: { ... }
1958
+ _uniq?: { ... }
1959
+ _retain_old_values?: { ... }
1960
+ _copy?: { ... }
1961
+ _template?: { ... }
1962
+ _random?: { ... }
1963
+ _each?: { ... }
1964
+ _as?: { ... }
1965
+ _map?: { ... }
1966
+ } | string | boolean | number | Record<string, unknown> | unknown[]
2540
1967
  } | string | boolean | number | Record<string, unknown> | unknown[]
2541
1968
  origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"
2542
1969
  }
@@ -2570,6 +1997,39 @@ type OperationNode = {
2570
1997
  min?: number
2571
1998
  max?: number
2572
1999
  }
2000
+ _each?: string
2001
+ _as?: string
2002
+ _map?: {
2003
+ _set?: string | boolean | number | Record<string, unknown> | unknown[]
2004
+ _append?: unknown
2005
+ _prepend?: unknown
2006
+ _uniq?: boolean | string[]
2007
+ _retain_old_values?: boolean
2008
+ _copy?: string
2009
+ _template?: string
2010
+ _random?: {
2011
+ type: { ... }
2012
+ } | {
2013
+ type: { ... }
2014
+ min?: { ... }
2015
+ max?: { ... }
2016
+ }
2017
+ _each?: string
2018
+ _as?: string
2019
+ _map?: {
2020
+ _set?: { ... }
2021
+ _append?: { ... }
2022
+ _prepend?: { ... }
2023
+ _uniq?: { ... }
2024
+ _retain_old_values?: { ... }
2025
+ _copy?: { ... }
2026
+ _template?: { ... }
2027
+ _random?: { ... }
2028
+ _each?: { ... }
2029
+ _as?: { ... }
2030
+ _map?: { ... }
2031
+ } | string | boolean | number | Record<string, unknown> | unknown[]
2032
+ } | string | boolean | number | Record<string, unknown> | unknown[]
2573
2033
  } | string | boolean | number | Record<string, unknown> | unknown[]
2574
2034
  ```
2575
2035
 
@@ -2591,6 +2051,39 @@ type OperationObjectNode = {
2591
2051
  min?: number
2592
2052
  max?: number
2593
2053
  }
2054
+ _each?: string
2055
+ _as?: string
2056
+ _map?: {
2057
+ _set?: string | boolean | number | Record<string, unknown> | unknown[]
2058
+ _append?: unknown
2059
+ _prepend?: unknown
2060
+ _uniq?: boolean | string[]
2061
+ _retain_old_values?: boolean
2062
+ _copy?: string
2063
+ _template?: string
2064
+ _random?: {
2065
+ type: { ... }
2066
+ } | {
2067
+ type: { ... }
2068
+ min?: { ... }
2069
+ max?: { ... }
2070
+ }
2071
+ _each?: string
2072
+ _as?: string
2073
+ _map?: {
2074
+ _set?: { ... }
2075
+ _append?: { ... }
2076
+ _prepend?: { ... }
2077
+ _uniq?: { ... }
2078
+ _retain_old_values?: { ... }
2079
+ _copy?: { ... }
2080
+ _template?: { ... }
2081
+ _random?: { ... }
2082
+ _each?: { ... }
2083
+ _as?: { ... }
2084
+ _map?: { ... }
2085
+ } | string | boolean | number | Record<string, unknown> | unknown[]
2086
+ } | string | boolean | number | Record<string, unknown> | unknown[]
2594
2087
  }
2595
2088
  ```
2596
2089
 
@@ -2707,6 +2200,7 @@ type MappingHistoryResp = {
2707
2200
  allow_failure?: { ... }
2708
2201
  target_schema: { ... }
2709
2202
  target_unique?: { ... }
2203
+ use_uniqueness_criteria?: { ... }
2710
2204
  loop_config?: { ... }
2711
2205
  conditionMode?: { ... }
2712
2206
  conditions?: { ... }
@@ -2714,6 +2208,7 @@ type MappingHistoryResp = {
2714
2208
  relation_attributes?: { ... }
2715
2209
  linkback_relation_attribute?: { ... }
2716
2210
  linkback_relation_tags?: { ... }
2211
+ graph_context?: { ... }
2717
2212
  }>
2718
2213
  }>
2719
2214
  }
@@ -2751,6 +2246,7 @@ type MappingHistoryEntry = {
2751
2246
  allow_failure?: boolean
2752
2247
  target_schema: string
2753
2248
  target_unique?: string[]
2249
+ use_uniqueness_criteria?: boolean
2754
2250
  loop_config?: {
2755
2251
  source_path?: { ... }
2756
2252
  length?: { ... }
@@ -2785,6 +2281,7 @@ type MappingHistoryEntry = {
2785
2281
  target: { ... }
2786
2282
  target_tags?: { ... }
2787
2283
  target_tags_include_source?: { ... }
2284
+ target_entity_tags?: { ... }
2788
2285
  override_with_source_filter?: { ... }
2789
2286
  source_filter?: { ... }
2790
2287
  related_to?: { ... }
@@ -2793,6 +2290,10 @@ type MappingHistoryEntry = {
2793
2290
  }>
2794
2291
  linkback_relation_attribute?: string
2795
2292
  linkback_relation_tags?: string[]
2293
+ graph_context?: Array<{
2294
+ seed: { ... }
2295
+ graph: { ... }
2296
+ }>
2796
2297
  }>
2797
2298
  }
2798
2299
  ```
@@ -2816,6 +2317,7 @@ type MappingSource = {
2816
2317
  target: string
2817
2318
  target_tags?: string[]
2818
2319
  target_tags_include_source?: boolean
2320
+ target_entity_tags?: string[]
2819
2321
  override_with_source_filter?: boolean
2820
2322
  source_filter?: {
2821
2323
  limit?: { ... }