@epilot/entity-client 2.6.3 → 2.6.5-alpha.1

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
  }
@@ -209,7 +213,7 @@ declare namespace Components {
209
213
  download_url: string;
210
214
  alt_text?: string;
211
215
  }
212
- export type Attribute = /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Currency input */ CurrencyAttribute | /* Repeatable (add N number of fields) */ RepeatableAttribute | /* Tags */ TagsAttribute | /* Numeric input */ NumberAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* Custom input */ CustomAttribute | /* Partner Status */ PartnerStatusAttribute;
216
+ export type Attribute = /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Currency input */ CurrencyAttribute | /* Repeatable (add N number of fields) */ RepeatableAttribute | /* Tags */ TagsAttribute | /* Numeric input */ NumberAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* An attribute that is computed from the entity data */ ComputedAttribute | /* Partner Status */ PartnerStatusAttribute;
213
217
  export interface BaseAttribute {
214
218
  name: string;
215
219
  label: string;
@@ -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,12 +374,16 @@ 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
  /**
372
- * Consent Management
384
+ * An attribute that is computed from the entity data
373
385
  */
374
- export interface ConsentAttribute {
386
+ export interface ComputedAttribute {
375
387
  name: string;
376
388
  label: string;
377
389
  placeholder?: string;
@@ -428,14 +440,16 @@ declare namespace Components {
428
440
  feature_flag?: string;
429
441
  value_formatter?: string;
430
442
  preview_value_formatter?: string;
431
- type: "consent";
432
- topic: string;
433
- identifiers?: string[];
443
+ /**
444
+ * Setting to `true` disables editing the attribute on the entity builder UI
445
+ */
446
+ entity_builder_disable_edit?: boolean;
447
+ type?: "computed";
434
448
  }
435
449
  /**
436
- * Country picker
450
+ * Consent Management
437
451
  */
438
- export interface CountryAttribute {
452
+ export interface ConsentAttribute {
439
453
  name: string;
440
454
  label: string;
441
455
  placeholder?: string;
@@ -492,12 +506,18 @@ declare namespace Components {
492
506
  feature_flag?: string;
493
507
  value_formatter?: string;
494
508
  preview_value_formatter?: string;
495
- type?: "country";
509
+ /**
510
+ * Setting to `true` disables editing the attribute on the entity builder UI
511
+ */
512
+ entity_builder_disable_edit?: boolean;
513
+ type: "consent";
514
+ topic: string;
515
+ identifiers?: string[];
496
516
  }
497
517
  /**
498
- * Currency input
518
+ * Country picker
499
519
  */
500
- export interface CurrencyAttribute {
520
+ export interface CountryAttribute {
501
521
  name: string;
502
522
  label: string;
503
523
  placeholder?: string;
@@ -554,21 +574,16 @@ declare namespace Components {
554
574
  feature_flag?: string;
555
575
  value_formatter?: string;
556
576
  preview_value_formatter?: string;
557
- type: "currency";
558
577
  /**
559
- * An array of currency configurations with a country code (ISO-4217)
578
+ * Setting to `true` disables editing the attribute on the entity builder UI
560
579
  */
561
- currency: ({
562
- code: string;
563
- description: string;
564
- symbol: string;
565
- flag?: string;
566
- })[];
580
+ entity_builder_disable_edit?: boolean;
581
+ type?: "country";
567
582
  }
568
583
  /**
569
- * Custom input
584
+ * Currency input
570
585
  */
571
- export interface CustomAttribute {
586
+ export interface CurrencyAttribute {
572
587
  name: string;
573
588
  label: string;
574
589
  placeholder?: string;
@@ -625,7 +640,20 @@ declare namespace Components {
625
640
  feature_flag?: string;
626
641
  value_formatter?: string;
627
642
  preview_value_formatter?: string;
628
- type?: "custom";
643
+ /**
644
+ * Setting to `true` disables editing the attribute on the entity builder UI
645
+ */
646
+ entity_builder_disable_edit?: boolean;
647
+ type: "currency";
648
+ /**
649
+ * An array of currency configurations with a country code (ISO-4217)
650
+ */
651
+ currency: ({
652
+ code: string;
653
+ description: string;
654
+ symbol: string;
655
+ flag?: string;
656
+ })[];
629
657
  }
630
658
  /**
631
659
  * Date or Datetime picker
@@ -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
@@ -980,18 +1013,18 @@ declare namespace Components {
980
1013
  * }
981
1014
  */
982
1015
  group_settings?: {
983
- [name: string]: {
984
- expanded?: boolean;
985
- /**
986
- * Render order of the group
987
- */
988
- order?: number;
989
- info_tooltip_title?: {
990
- key?: string;
991
- default?: string;
992
- };
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;
993
1026
  };
994
- };
1027
+ }[];
995
1028
  /**
996
1029
  * Custom grid definitions for the layout
997
1030
  */
@@ -1076,6 +1109,7 @@ declare namespace Components {
1076
1109
  * contact
1077
1110
  */
1078
1111
  EntitySlug;
1112
+ version?: number;
1079
1113
  blueprint?: /* Reference to blueprint */ BlueprintEntityId /* uuid */;
1080
1114
  /**
1081
1115
  * This schema should only be active when the feature flag is enabled
@@ -1135,18 +1169,18 @@ declare namespace Components {
1135
1169
  * }
1136
1170
  */
1137
1171
  group_settings?: {
1138
- [name: string]: {
1139
- expanded?: boolean;
1140
- /**
1141
- * Render order of the group
1142
- */
1143
- order?: number;
1144
- info_tooltip_title?: {
1145
- key?: string;
1146
- default?: string;
1147
- };
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;
1148
1182
  };
1149
- };
1183
+ }[];
1150
1184
  /**
1151
1185
  * Custom grid definitions for the layout
1152
1186
  */
@@ -1355,6 +1389,10 @@ declare namespace Components {
1355
1389
  feature_flag?: string;
1356
1390
  value_formatter?: string;
1357
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;
1358
1396
  type: "image" | "file";
1359
1397
  multiple?: boolean;
1360
1398
  /**
@@ -1583,6 +1621,10 @@ declare namespace Components {
1583
1621
  feature_flag?: string;
1584
1622
  value_formatter?: string;
1585
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;
1586
1628
  type?: "internal";
1587
1629
  }
1588
1630
  /**
@@ -1645,6 +1687,10 @@ declare namespace Components {
1645
1687
  feature_flag?: string;
1646
1688
  value_formatter?: string;
1647
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;
1648
1694
  type?: "link";
1649
1695
  }
1650
1696
  /**
@@ -1707,6 +1753,10 @@ declare namespace Components {
1707
1753
  feature_flag?: string;
1708
1754
  value_formatter?: string;
1709
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;
1710
1760
  type?: "number";
1711
1761
  format?: string;
1712
1762
  }
@@ -1770,6 +1820,10 @@ declare namespace Components {
1770
1820
  feature_flag?: string;
1771
1821
  value_formatter?: string;
1772
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;
1773
1827
  type?: "ordered_list";
1774
1828
  }
1775
1829
  /**
@@ -1832,6 +1886,10 @@ declare namespace Components {
1832
1886
  feature_flag?: string;
1833
1887
  value_formatter?: string;
1834
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;
1835
1893
  type?: "partner_status";
1836
1894
  }
1837
1895
  /**
@@ -1909,6 +1967,10 @@ declare namespace Components {
1909
1967
  feature_flag?: string;
1910
1968
  value_formatter?: string;
1911
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;
1912
1974
  type?: "relation";
1913
1975
  relation_type?: "belongs_to" | "has_many";
1914
1976
  delete_mode?: "cascade";
@@ -2032,6 +2094,10 @@ declare namespace Components {
2032
2094
  feature_flag?: string;
2033
2095
  value_formatter?: string;
2034
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;
2035
2101
  repeatable?: boolean;
2036
2102
  has_primary?: boolean;
2037
2103
  relation_affinity_mode?: "weak" | "strong";
@@ -2125,6 +2191,10 @@ declare namespace Components {
2125
2191
  feature_flag?: string;
2126
2192
  value_formatter?: string;
2127
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;
2128
2198
  type?: "select" | "radio";
2129
2199
  options?: (string | {
2130
2200
  value: string;
@@ -2204,6 +2274,10 @@ declare namespace Components {
2204
2274
  feature_flag?: string;
2205
2275
  value_formatter?: string;
2206
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;
2207
2281
  type?: "tags";
2208
2282
  options?: string[];
2209
2283
  suggestions?: string[];
@@ -2268,6 +2342,10 @@ declare namespace Components {
2268
2342
  feature_flag?: string;
2269
2343
  value_formatter?: string;
2270
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;
2271
2349
  type?: "string";
2272
2350
  multiline?: boolean;
2273
2351
  }
@@ -2331,6 +2409,10 @@ declare namespace Components {
2331
2409
  feature_flag?: string;
2332
2410
  value_formatter?: string;
2333
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;
2334
2416
  type?: "relation_user";
2335
2417
  multiple?: boolean;
2336
2418
  }
@@ -2693,6 +2775,24 @@ declare namespace Paths {
2693
2775
  export type $200 = /* The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. */ Components.Schemas.EntitySchemaItem;
2694
2776
  }
2695
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
+ }
2696
2796
  namespace ListSchemas {
2697
2797
  namespace Responses {
2698
2798
  export interface $200 {
@@ -2867,6 +2967,16 @@ export interface OperationMethods {
2867
2967
  data?: any,
2868
2968
  config?: AxiosRequestConfig
2869
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>
2870
2980
  /**
2871
2981
  * getSchema - getSchema
2872
2982
  */
@@ -2877,6 +2987,8 @@ export interface OperationMethods {
2877
2987
  ): OperationResponse<Paths.GetSchema.Responses.$200>
2878
2988
  /**
2879
2989
  * putSchema - putSchema
2990
+ *
2991
+ * Create new version of the schema
2880
2992
  */
2881
2993
  'putSchema'(
2882
2994
  parameters?: Parameters<Paths.PutSchema.PathParameters> | null,
@@ -2896,6 +3008,8 @@ export interface OperationMethods {
2896
3008
  *
2897
3009
  * Search for entities. Supports ordering and pagination. Lucene query syntax supported for complex querying.
2898
3010
  *
3011
+ * Passing comma-separated `x-epilot-org-id` is supported for cross-org entity search.
3012
+ *
2899
3013
  * ## Relations
2900
3014
  *
2901
3015
  * When `hydrate=true`, relation attributes are replaced in-place with nested entity values.
@@ -3210,6 +3324,18 @@ export interface PathsDictionary {
3210
3324
  config?: AxiosRequestConfig
3211
3325
  ): OperationResponse<Paths.ListSchemas.Responses.$200>
3212
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
+ }
3213
3339
  ['/v1/entity/schemas/{slug}']: {
3214
3340
  /**
3215
3341
  * getSchema - getSchema
@@ -3221,6 +3347,8 @@ export interface PathsDictionary {
3221
3347
  ): OperationResponse<Paths.GetSchema.Responses.$200>
3222
3348
  /**
3223
3349
  * putSchema - putSchema
3350
+ *
3351
+ * Create new version of the schema
3224
3352
  */
3225
3353
  'put'(
3226
3354
  parameters?: Parameters<Paths.PutSchema.PathParameters> | null,
@@ -3242,6 +3370,8 @@ export interface PathsDictionary {
3242
3370
  *
3243
3371
  * Search for entities. Supports ordering and pagination. Lucene query syntax supported for complex querying.
3244
3372
  *
3373
+ * Passing comma-separated `x-epilot-org-id` is supported for cross-org entity search.
3374
+ *
3245
3375
  * ## Relations
3246
3376
  *
3247
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
  },
@@ -1233,7 +1284,11 @@
1233
1284
  }
1234
1285
  }
1235
1286
  }
1236
- }
1287
+ },
1288
+ "required": [
1289
+ "label",
1290
+ "id"
1291
+ ]
1237
1292
  },
1238
1293
  "example": {
1239
1294
  "Order Info": {
@@ -1399,7 +1454,7 @@
1399
1454
  "$ref": "#/components/schemas/FileAttribute"
1400
1455
  },
1401
1456
  {
1402
- "$ref": "#/components/schemas/CustomAttribute"
1457
+ "$ref": "#/components/schemas/ComputedAttribute"
1403
1458
  },
1404
1459
  {
1405
1460
  "$ref": "#/components/schemas/PartnerStatusAttribute"
@@ -1497,6 +1552,11 @@
1497
1552
  },
1498
1553
  "preview_value_formatter": {
1499
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
1500
1560
  }
1501
1561
  },
1502
1562
  "required": [
@@ -2061,19 +2121,19 @@
2061
2121
  }
2062
2122
  ]
2063
2123
  },
2064
- "CustomAttribute": {
2124
+ "ComputedAttribute": {
2065
2125
  "allOf": [
2066
2126
  {
2067
2127
  "$ref": "#/components/schemas/BaseAttribute"
2068
2128
  },
2069
2129
  {
2070
2130
  "type": "object",
2071
- "description": "Custom input",
2131
+ "description": "An attribute that is computed from the entity data",
2072
2132
  "properties": {
2073
2133
  "type": {
2074
2134
  "type": "string",
2075
2135
  "enum": [
2076
- "custom"
2136
+ "computed"
2077
2137
  ]
2078
2138
  }
2079
2139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "2.6.3",
3
+ "version": "2.6.5-alpha.1",
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",