@epilot/entity-client 2.6.2 → 2.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.d.ts CHANGED
@@ -197,6 +197,10 @@ declare namespace Components {
197
197
  feature_flag?: string;
198
198
  value_formatter?: string;
199
199
  preview_value_formatter?: string;
200
+ /**
201
+ * Setting to `true` disables editing the attribute on the entity builder UI
202
+ */
203
+ entity_builder_disable_edit?: boolean;
200
204
  type?: "relation_address";
201
205
  has_primary?: boolean;
202
206
  }
@@ -267,6 +271,10 @@ declare namespace Components {
267
271
  feature_flag?: string;
268
272
  value_formatter?: string;
269
273
  preview_value_formatter?: string;
274
+ /**
275
+ * Setting to `true` disables editing the attribute on the entity builder UI
276
+ */
277
+ entity_builder_disable_edit?: boolean;
270
278
  }
271
279
  /**
272
280
  * example:
@@ -366,6 +374,10 @@ declare namespace Components {
366
374
  feature_flag?: string;
367
375
  value_formatter?: string;
368
376
  preview_value_formatter?: string;
377
+ /**
378
+ * Setting to `true` disables editing the attribute on the entity builder UI
379
+ */
380
+ entity_builder_disable_edit?: boolean;
369
381
  type?: "boolean";
370
382
  }
371
383
  /**
@@ -428,6 +440,10 @@ declare namespace Components {
428
440
  feature_flag?: string;
429
441
  value_formatter?: string;
430
442
  preview_value_formatter?: string;
443
+ /**
444
+ * Setting to `true` disables editing the attribute on the entity builder UI
445
+ */
446
+ entity_builder_disable_edit?: boolean;
431
447
  type: "consent";
432
448
  topic: string;
433
449
  identifiers?: string[];
@@ -492,6 +508,10 @@ declare namespace Components {
492
508
  feature_flag?: string;
493
509
  value_formatter?: string;
494
510
  preview_value_formatter?: string;
511
+ /**
512
+ * Setting to `true` disables editing the attribute on the entity builder UI
513
+ */
514
+ entity_builder_disable_edit?: boolean;
495
515
  type?: "country";
496
516
  }
497
517
  /**
@@ -554,6 +574,10 @@ declare namespace Components {
554
574
  feature_flag?: string;
555
575
  value_formatter?: string;
556
576
  preview_value_formatter?: string;
577
+ /**
578
+ * Setting to `true` disables editing the attribute on the entity builder UI
579
+ */
580
+ entity_builder_disable_edit?: boolean;
557
581
  type: "currency";
558
582
  /**
559
583
  * An array of currency configurations with a country code (ISO-4217)
@@ -625,6 +649,10 @@ declare namespace Components {
625
649
  feature_flag?: string;
626
650
  value_formatter?: string;
627
651
  preview_value_formatter?: string;
652
+ /**
653
+ * Setting to `true` disables editing the attribute on the entity builder UI
654
+ */
655
+ entity_builder_disable_edit?: boolean;
628
656
  type?: "custom";
629
657
  }
630
658
  /**
@@ -687,6 +715,10 @@ declare namespace Components {
687
715
  feature_flag?: string;
688
716
  value_formatter?: string;
689
717
  preview_value_formatter?: string;
718
+ /**
719
+ * Setting to `true` disables editing the attribute on the entity builder UI
720
+ */
721
+ entity_builder_disable_edit?: boolean;
690
722
  type?: "date" | "datetime";
691
723
  }
692
724
  export interface Entity {
@@ -921,6 +953,7 @@ declare namespace Components {
921
953
  * contact
922
954
  */
923
955
  EntitySlug;
956
+ version?: number;
924
957
  blueprint?: /* Reference to blueprint */ BlueprintEntityId /* uuid */;
925
958
  /**
926
959
  * This schema should only be active when the feature flag is enabled
@@ -971,19 +1004,27 @@ declare namespace Components {
971
1004
  * "expanded": true
972
1005
  * },
973
1006
  * "Contact Details": {
974
- * "expanded": false
1007
+ * "expanded": false,
1008
+ * "info_tooltip_title": {
1009
+ * "key": "partner.partner_information_group_tooltip",
1010
+ * "default": "These informations are provided by the partner company and cannot be edited."
1011
+ * }
975
1012
  * }
976
1013
  * }
977
1014
  */
978
1015
  group_settings?: {
979
- [name: string]: {
980
- expanded?: boolean;
981
- /**
982
- * Render order of the group
983
- */
984
- order?: number;
1016
+ label: string;
1017
+ id: string;
1018
+ expanded?: boolean;
1019
+ /**
1020
+ * Render order of the group
1021
+ */
1022
+ order?: number;
1023
+ info_tooltip_title?: {
1024
+ key?: string;
1025
+ default?: string;
985
1026
  };
986
- };
1027
+ }[];
987
1028
  /**
988
1029
  * Custom grid definitions for the layout
989
1030
  */
@@ -1068,6 +1109,7 @@ declare namespace Components {
1068
1109
  * contact
1069
1110
  */
1070
1111
  EntitySlug;
1112
+ version?: number;
1071
1113
  blueprint?: /* Reference to blueprint */ BlueprintEntityId /* uuid */;
1072
1114
  /**
1073
1115
  * This schema should only be active when the feature flag is enabled
@@ -1118,19 +1160,27 @@ declare namespace Components {
1118
1160
  * "expanded": true
1119
1161
  * },
1120
1162
  * "Contact Details": {
1121
- * "expanded": false
1163
+ * "expanded": false,
1164
+ * "info_tooltip_title": {
1165
+ * "key": "partner.partner_information_group_tooltip",
1166
+ * "default": "These informations are provided by the partner company and cannot be edited."
1167
+ * }
1122
1168
  * }
1123
1169
  * }
1124
1170
  */
1125
1171
  group_settings?: {
1126
- [name: string]: {
1127
- expanded?: boolean;
1128
- /**
1129
- * Render order of the group
1130
- */
1131
- order?: number;
1172
+ label: string;
1173
+ id: string;
1174
+ expanded?: boolean;
1175
+ /**
1176
+ * Render order of the group
1177
+ */
1178
+ order?: number;
1179
+ info_tooltip_title?: {
1180
+ key?: string;
1181
+ default?: string;
1132
1182
  };
1133
- };
1183
+ }[];
1134
1184
  /**
1135
1185
  * Custom grid definitions for the layout
1136
1186
  */
@@ -1339,6 +1389,10 @@ declare namespace Components {
1339
1389
  feature_flag?: string;
1340
1390
  value_formatter?: string;
1341
1391
  preview_value_formatter?: string;
1392
+ /**
1393
+ * Setting to `true` disables editing the attribute on the entity builder UI
1394
+ */
1395
+ entity_builder_disable_edit?: boolean;
1342
1396
  type: "image" | "file";
1343
1397
  multiple?: boolean;
1344
1398
  /**
@@ -1567,6 +1621,10 @@ declare namespace Components {
1567
1621
  feature_flag?: string;
1568
1622
  value_formatter?: string;
1569
1623
  preview_value_formatter?: string;
1624
+ /**
1625
+ * Setting to `true` disables editing the attribute on the entity builder UI
1626
+ */
1627
+ entity_builder_disable_edit?: boolean;
1570
1628
  type?: "internal";
1571
1629
  }
1572
1630
  /**
@@ -1629,6 +1687,10 @@ declare namespace Components {
1629
1687
  feature_flag?: string;
1630
1688
  value_formatter?: string;
1631
1689
  preview_value_formatter?: string;
1690
+ /**
1691
+ * Setting to `true` disables editing the attribute on the entity builder UI
1692
+ */
1693
+ entity_builder_disable_edit?: boolean;
1632
1694
  type?: "link";
1633
1695
  }
1634
1696
  /**
@@ -1691,6 +1753,10 @@ declare namespace Components {
1691
1753
  feature_flag?: string;
1692
1754
  value_formatter?: string;
1693
1755
  preview_value_formatter?: string;
1756
+ /**
1757
+ * Setting to `true` disables editing the attribute on the entity builder UI
1758
+ */
1759
+ entity_builder_disable_edit?: boolean;
1694
1760
  type?: "number";
1695
1761
  format?: string;
1696
1762
  }
@@ -1754,6 +1820,10 @@ declare namespace Components {
1754
1820
  feature_flag?: string;
1755
1821
  value_formatter?: string;
1756
1822
  preview_value_formatter?: string;
1823
+ /**
1824
+ * Setting to `true` disables editing the attribute on the entity builder UI
1825
+ */
1826
+ entity_builder_disable_edit?: boolean;
1757
1827
  type?: "ordered_list";
1758
1828
  }
1759
1829
  /**
@@ -1816,6 +1886,10 @@ declare namespace Components {
1816
1886
  feature_flag?: string;
1817
1887
  value_formatter?: string;
1818
1888
  preview_value_formatter?: string;
1889
+ /**
1890
+ * Setting to `true` disables editing the attribute on the entity builder UI
1891
+ */
1892
+ entity_builder_disable_edit?: boolean;
1819
1893
  type?: "partner_status";
1820
1894
  }
1821
1895
  /**
@@ -1893,6 +1967,10 @@ declare namespace Components {
1893
1967
  feature_flag?: string;
1894
1968
  value_formatter?: string;
1895
1969
  preview_value_formatter?: string;
1970
+ /**
1971
+ * Setting to `true` disables editing the attribute on the entity builder UI
1972
+ */
1973
+ entity_builder_disable_edit?: boolean;
1896
1974
  type?: "relation";
1897
1975
  relation_type?: "belongs_to" | "has_many";
1898
1976
  delete_mode?: "cascade";
@@ -2016,6 +2094,10 @@ declare namespace Components {
2016
2094
  feature_flag?: string;
2017
2095
  value_formatter?: string;
2018
2096
  preview_value_formatter?: string;
2097
+ /**
2098
+ * Setting to `true` disables editing the attribute on the entity builder UI
2099
+ */
2100
+ entity_builder_disable_edit?: boolean;
2019
2101
  repeatable?: boolean;
2020
2102
  has_primary?: boolean;
2021
2103
  relation_affinity_mode?: "weak" | "strong";
@@ -2109,6 +2191,10 @@ declare namespace Components {
2109
2191
  feature_flag?: string;
2110
2192
  value_formatter?: string;
2111
2193
  preview_value_formatter?: string;
2194
+ /**
2195
+ * Setting to `true` disables editing the attribute on the entity builder UI
2196
+ */
2197
+ entity_builder_disable_edit?: boolean;
2112
2198
  type?: "select" | "radio";
2113
2199
  options?: (string | {
2114
2200
  value: string;
@@ -2188,6 +2274,10 @@ declare namespace Components {
2188
2274
  feature_flag?: string;
2189
2275
  value_formatter?: string;
2190
2276
  preview_value_formatter?: string;
2277
+ /**
2278
+ * Setting to `true` disables editing the attribute on the entity builder UI
2279
+ */
2280
+ entity_builder_disable_edit?: boolean;
2191
2281
  type?: "tags";
2192
2282
  options?: string[];
2193
2283
  suggestions?: string[];
@@ -2252,6 +2342,10 @@ declare namespace Components {
2252
2342
  feature_flag?: string;
2253
2343
  value_formatter?: string;
2254
2344
  preview_value_formatter?: string;
2345
+ /**
2346
+ * Setting to `true` disables editing the attribute on the entity builder UI
2347
+ */
2348
+ entity_builder_disable_edit?: boolean;
2255
2349
  type?: "string";
2256
2350
  multiline?: boolean;
2257
2351
  }
@@ -2315,6 +2409,10 @@ declare namespace Components {
2315
2409
  feature_flag?: string;
2316
2410
  value_formatter?: string;
2317
2411
  preview_value_formatter?: string;
2412
+ /**
2413
+ * Setting to `true` disables editing the attribute on the entity builder UI
2414
+ */
2415
+ entity_builder_disable_edit?: boolean;
2318
2416
  type?: "relation_user";
2319
2417
  multiple?: boolean;
2320
2418
  }
@@ -2677,6 +2775,24 @@ declare namespace Paths {
2677
2775
  export type $200 = /* The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. */ Components.Schemas.EntitySchemaItem;
2678
2776
  }
2679
2777
  }
2778
+ namespace GetSchemaVersions {
2779
+ namespace Parameters {
2780
+ export type Slug = /**
2781
+ * URL-friendly identifier for the entity schema
2782
+ * example:
2783
+ * contact
2784
+ */
2785
+ Components.Schemas.EntitySlug;
2786
+ }
2787
+ export interface PathParameters {
2788
+ slug: Parameters.Slug;
2789
+ }
2790
+ namespace Responses {
2791
+ export interface $200 {
2792
+ results?: /* The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. */ Components.Schemas.EntitySchemaItem[];
2793
+ }
2794
+ }
2795
+ }
2680
2796
  namespace ListSchemas {
2681
2797
  namespace Responses {
2682
2798
  export interface $200 {
@@ -2851,6 +2967,16 @@ export interface OperationMethods {
2851
2967
  data?: any,
2852
2968
  config?: AxiosRequestConfig
2853
2969
  ): OperationResponse<Paths.ListSchemas.Responses.$200>
2970
+ /**
2971
+ * getSchemaVersions - getSchemaVersions
2972
+ *
2973
+ * Get all versions of this schema
2974
+ */
2975
+ 'getSchemaVersions'(
2976
+ parameters?: Parameters<Paths.GetSchemaVersions.PathParameters> | null,
2977
+ data?: any,
2978
+ config?: AxiosRequestConfig
2979
+ ): OperationResponse<Paths.GetSchemaVersions.Responses.$200>
2854
2980
  /**
2855
2981
  * getSchema - getSchema
2856
2982
  */
@@ -2861,6 +2987,8 @@ export interface OperationMethods {
2861
2987
  ): OperationResponse<Paths.GetSchema.Responses.$200>
2862
2988
  /**
2863
2989
  * putSchema - putSchema
2990
+ *
2991
+ * Create new version of the schema
2864
2992
  */
2865
2993
  'putSchema'(
2866
2994
  parameters?: Parameters<Paths.PutSchema.PathParameters> | null,
@@ -2880,6 +3008,8 @@ export interface OperationMethods {
2880
3008
  *
2881
3009
  * Search for entities. Supports ordering and pagination. Lucene query syntax supported for complex querying.
2882
3010
  *
3011
+ * Passing comma-separated `x-epilot-org-id` is supported for cross-org entity search.
3012
+ *
2883
3013
  * ## Relations
2884
3014
  *
2885
3015
  * When `hydrate=true`, relation attributes are replaced in-place with nested entity values.
@@ -3194,6 +3324,18 @@ export interface PathsDictionary {
3194
3324
  config?: AxiosRequestConfig
3195
3325
  ): OperationResponse<Paths.ListSchemas.Responses.$200>
3196
3326
  }
3327
+ ['/v1/entity/schemas/{slug}/versions']: {
3328
+ /**
3329
+ * getSchemaVersions - getSchemaVersions
3330
+ *
3331
+ * Get all versions of this schema
3332
+ */
3333
+ 'get'(
3334
+ parameters?: Parameters<Paths.GetSchemaVersions.PathParameters> | null,
3335
+ data?: any,
3336
+ config?: AxiosRequestConfig
3337
+ ): OperationResponse<Paths.GetSchemaVersions.Responses.$200>
3338
+ }
3197
3339
  ['/v1/entity/schemas/{slug}']: {
3198
3340
  /**
3199
3341
  * getSchema - getSchema
@@ -3205,6 +3347,8 @@ export interface PathsDictionary {
3205
3347
  ): OperationResponse<Paths.GetSchema.Responses.$200>
3206
3348
  /**
3207
3349
  * putSchema - putSchema
3350
+ *
3351
+ * Create new version of the schema
3208
3352
  */
3209
3353
  'put'(
3210
3354
  parameters?: Parameters<Paths.PutSchema.PathParameters> | null,
@@ -3226,6 +3370,8 @@ export interface PathsDictionary {
3226
3370
  *
3227
3371
  * Search for entities. Supports ordering and pagination. Lucene query syntax supported for complex querying.
3228
3372
  *
3373
+ * Passing comma-separated `x-epilot-org-id` is supported for cross-org entity search.
3374
+ *
3229
3375
  * ## Relations
3230
3376
  *
3231
3377
  * When `hydrate=true`, relation attributes are replaced in-place with nested entity values.
package/dist/openapi.json CHANGED
@@ -57,6 +57,46 @@
57
57
  }
58
58
  }
59
59
  },
60
+ "/v1/entity/schemas/{slug}/versions": {
61
+ "get": {
62
+ "operationId": "getSchemaVersions",
63
+ "summary": "getSchemaVersions",
64
+ "description": "Get all versions of this schema",
65
+ "tags": [
66
+ "Schemas"
67
+ ],
68
+ "parameters": [
69
+ {
70
+ "in": "path",
71
+ "name": "slug",
72
+ "required": true,
73
+ "schema": {
74
+ "$ref": "#/components/schemas/EntitySlug"
75
+ }
76
+ }
77
+ ],
78
+ "responses": {
79
+ "200": {
80
+ "description": "Success",
81
+ "content": {
82
+ "application/json": {
83
+ "schema": {
84
+ "type": "object",
85
+ "properties": {
86
+ "results": {
87
+ "type": "array",
88
+ "items": {
89
+ "$ref": "#/components/schemas/EntitySchemaItem"
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ },
60
100
  "/v1/entity/schemas/{slug}": {
61
101
  "get": {
62
102
  "operationId": "getSchema",
@@ -90,6 +130,7 @@
90
130
  "put": {
91
131
  "operationId": "putSchema",
92
132
  "summary": "putSchema",
133
+ "description": "Create new version of the schema",
93
134
  "tags": [
94
135
  "Schemas"
95
136
  ],
@@ -152,7 +193,7 @@
152
193
  "post": {
153
194
  "operationId": "searchEntities",
154
195
  "summary": "searchEntities",
155
- "description": "Search for entities. Supports ordering and pagination. Lucene query syntax supported for complex querying.\n\n## Relations\n\nWhen `hydrate=true`, relation attributes are replaced in-place with nested entity values.\n\nExample:\n```json\n{\n \"_id\": \"123\",\n \"name\": \"parent\",\n \"_tags\": [\"parent\"],\n \"contacts\": {\n \"$relation\": [\n { \"entity_id\": \"456\", \"_tags\": [\"primary\"] },\n { \"entity_id\": \"789\", \"_tags\": [\"secondary\"] },\n ]\n }\n}\n```\n\nBecomes:\n```json\n{\n \"_id\": \"123\",\n \"name\": \"parent\",\n \"_tags\": [\"parent\"],\n \"contacts\": [\n {\n \"$relation\": { \"entity_id\": \"456\", \"_tags\": [\"primary\"] },\n \"_id\": \"456\",\n \"name\": \"child 1\",\n \"_tags\": [\"child\"]\n },\n {\n \"$relation\": { \"entity_id\": \"789\", \"_tags\": [\"secondary\"] },\n \"_id\": \"789\",\n \"name\": \"child 2\",\n \"_tags\": [\"child\"]\n }\n ]\n}\n```\n",
196
+ "description": "Search for entities. Supports ordering and pagination. Lucene query syntax supported for complex querying.\n\nPassing comma-separated `x-epilot-org-id` is supported for cross-org entity search.\n\n## Relations\n\nWhen `hydrate=true`, relation attributes are replaced in-place with nested entity values.\n\nExample:\n```json\n{\n \"_id\": \"123\",\n \"name\": \"parent\",\n \"_tags\": [\"parent\"],\n \"contacts\": {\n \"$relation\": [\n { \"entity_id\": \"456\", \"_tags\": [\"primary\"] },\n { \"entity_id\": \"789\", \"_tags\": [\"secondary\"] },\n ]\n }\n}\n```\n\nBecomes:\n```json\n{\n \"_id\": \"123\",\n \"name\": \"parent\",\n \"_tags\": [\"parent\"],\n \"contacts\": [\n {\n \"$relation\": { \"entity_id\": \"456\", \"_tags\": [\"primary\"] },\n \"_id\": \"456\",\n \"name\": \"child 1\",\n \"_tags\": [\"child\"]\n },\n {\n \"$relation\": { \"entity_id\": \"789\", \"_tags\": [\"secondary\"] },\n \"_id\": \"789\",\n \"name\": \"child 2\",\n \"_tags\": [\"child\"]\n }\n ]\n}\n```\n",
156
197
  "tags": [
157
198
  "Entities"
158
199
  ],
@@ -1141,6 +1182,10 @@
1141
1182
  "slug": {
1142
1183
  "$ref": "#/components/schemas/EntitySlug"
1143
1184
  },
1185
+ "version": {
1186
+ "type": "integer",
1187
+ "minimum": 1
1188
+ },
1144
1189
  "blueprint": {
1145
1190
  "$ref": "#/components/schemas/BlueprintEntityId"
1146
1191
  },
@@ -1209,11 +1254,17 @@
1209
1254
  }
1210
1255
  },
1211
1256
  "group_settings": {
1212
- "type": "object",
1257
+ "type": "array",
1213
1258
  "description": "A dictionary of Group Titles and associated settings if present.",
1214
- "additionalProperties": {
1259
+ "items": {
1215
1260
  "type": "object",
1216
1261
  "properties": {
1262
+ "label": {
1263
+ "type": "string"
1264
+ },
1265
+ "id": {
1266
+ "type": "string"
1267
+ },
1217
1268
  "expanded": {
1218
1269
  "type": "boolean"
1219
1270
  },
@@ -1221,15 +1272,34 @@
1221
1272
  "description": "Render order of the group",
1222
1273
  "type": "integer",
1223
1274
  "default": 0
1275
+ },
1276
+ "info_tooltip_title": {
1277
+ "type": "object",
1278
+ "properties": {
1279
+ "key": {
1280
+ "type": "string"
1281
+ },
1282
+ "default": {
1283
+ "type": "string"
1284
+ }
1285
+ }
1224
1286
  }
1225
- }
1287
+ },
1288
+ "required": [
1289
+ "label",
1290
+ "id"
1291
+ ]
1226
1292
  },
1227
1293
  "example": {
1228
1294
  "Order Info": {
1229
1295
  "expanded": true
1230
1296
  },
1231
1297
  "Contact Details": {
1232
- "expanded": false
1298
+ "expanded": false,
1299
+ "info_tooltip_title": {
1300
+ "key": "partner.partner_information_group_tooltip",
1301
+ "default": "These informations are provided by the partner company and cannot be edited."
1302
+ }
1233
1303
  }
1234
1304
  }
1235
1305
  },
@@ -1482,6 +1552,11 @@
1482
1552
  },
1483
1553
  "preview_value_formatter": {
1484
1554
  "type": "string"
1555
+ },
1556
+ "entity_builder_disable_edit": {
1557
+ "description": "Setting to `true` disables editing the attribute on the entity builder UI",
1558
+ "type": "boolean",
1559
+ "default": false
1485
1560
  }
1486
1561
  },
1487
1562
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "description": "JavaScript client library for the epilot Core Entity API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",