@uipath/uipath-typescript 1.4.0 → 1.4.2

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 (51) hide show
  1. package/dist/agent-memory/index.cjs +16 -9
  2. package/dist/agent-memory/index.mjs +16 -9
  3. package/dist/agents/index.cjs +278 -9
  4. package/dist/agents/index.d.ts +465 -6
  5. package/dist/agents/index.mjs +279 -10
  6. package/dist/assets/index.cjs +16 -9
  7. package/dist/assets/index.mjs +16 -9
  8. package/dist/attachments/index.cjs +16 -9
  9. package/dist/attachments/index.mjs +16 -9
  10. package/dist/buckets/index.cjs +114 -124
  11. package/dist/buckets/index.d.ts +197 -84
  12. package/dist/buckets/index.mjs +114 -124
  13. package/dist/cases/index.cjs +79 -13
  14. package/dist/cases/index.d.ts +30 -3
  15. package/dist/cases/index.mjs +79 -13
  16. package/dist/conversational-agent/index.cjs +16 -9
  17. package/dist/conversational-agent/index.mjs +16 -9
  18. package/dist/core/index.cjs +35 -6
  19. package/dist/core/index.mjs +35 -6
  20. package/dist/document-understanding/index.cjs +84 -84
  21. package/dist/document-understanding/index.d.ts +2 -1
  22. package/dist/document-understanding/index.mjs +1 -1
  23. package/dist/entities/index.cjs +253 -69
  24. package/dist/entities/index.d.ts +343 -116
  25. package/dist/entities/index.mjs +253 -69
  26. package/dist/feedback/index.cjs +16 -9
  27. package/dist/feedback/index.mjs +16 -9
  28. package/dist/governance/index.cjs +16 -9
  29. package/dist/governance/index.mjs +16 -9
  30. package/dist/index.cjs +529 -193
  31. package/dist/index.d.ts +2141 -750
  32. package/dist/index.mjs +529 -194
  33. package/dist/index.umd.js +529 -193
  34. package/dist/jobs/index.cjs +16 -9
  35. package/dist/jobs/index.mjs +16 -9
  36. package/dist/maestro-processes/index.cjs +16 -9
  37. package/dist/maestro-processes/index.mjs +16 -9
  38. package/dist/orchestrator-du-module/index.cjs +1788 -0
  39. package/dist/orchestrator-du-module/index.d.ts +757 -0
  40. package/dist/orchestrator-du-module/index.mjs +1785 -0
  41. package/dist/processes/index.cjs +16 -9
  42. package/dist/processes/index.mjs +16 -9
  43. package/dist/queues/index.cjs +16 -9
  44. package/dist/queues/index.mjs +16 -9
  45. package/dist/tasks/index.cjs +79 -13
  46. package/dist/tasks/index.d.ts +109 -4
  47. package/dist/tasks/index.mjs +80 -14
  48. package/dist/traces/index.cjs +303 -9
  49. package/dist/traces/index.d.ts +482 -2
  50. package/dist/traces/index.mjs +302 -10
  51. package/package.json +11 -1
@@ -300,6 +300,24 @@ declare class BaseService {
300
300
  private determineHasMorePages;
301
301
  }
302
302
 
303
+ /**
304
+ * Shared types for the Data Fabric domain — used by both Entities and ChoiceSets.
305
+ * Lives here (not in either service's `*.types.ts`) to avoid cross-domain coupling
306
+ * between sibling services.
307
+ */
308
+ /**
309
+ * Common shape for every folder-scoped Data Fabric operation.
310
+ * Forwarded on the wire as the `X-UIPATH-FolderKey` header.
311
+ */
312
+ interface EntityFolderScopedOptions {
313
+ /**
314
+ * Key identifying the folder the entity belongs to. Omit for tenant-level entities.
315
+ *
316
+ * @experimental Folder-scoped Data Fabric is in preview — the contract may change.
317
+ */
318
+ folderKey?: string;
319
+ }
320
+
303
321
  /**
304
322
  * Entity field data type names (SQL-level types returned by the API)
305
323
  */
@@ -416,14 +434,8 @@ interface EntityDeleteOptions extends EntityFolderScopedOptions {
416
434
  */
417
435
  interface EntityDeleteRecordsOptions extends EntityDeleteOptions {
418
436
  }
419
- /**
420
- * Options for {@link EntityServiceModel.deleteRecordById}
421
- */
422
437
  interface EntityDeleteRecordByIdOptions extends EntityFolderScopedOptions {
423
438
  }
424
- /**
425
- * Options for {@link EntityServiceModel.importRecordsById}
426
- */
427
439
  interface EntityImportRecordsByIdOptions extends EntityFolderScopedOptions {
428
440
  }
429
441
  /**
@@ -590,23 +602,25 @@ interface EntityCreateFieldOptions extends EntityFieldBase {
590
602
  referenceEntityId?: string;
591
603
  /** UUID of the referenced field on the target entity (required when `type` is `RELATIONSHIP` or `FILE`) */
592
604
  referenceFieldId?: string;
605
+ /**
606
+ * Folder key of the reference target when it lives outside the source's folder. Pass `'00000000-0000-0000-0000-000000000000'` for tenant-level system targets.
607
+ *
608
+ * @experimental Folder-scoped Data Fabric is in preview — the contract may change.
609
+ */
610
+ referenceFolderKey?: string;
593
611
  }
594
- /**
595
- * Common shape for every folder-scoped Data Fabric entity operation.
596
- * Forwarded on the wire as the `X-UIPATH-FolderKey` header.
597
- */
598
- interface EntityFolderScopedOptions {
599
- /** Key identifying the folder the entity belongs to. Omit for tenant-level entities. */
600
- folderKey?: string;
612
+ interface EntityGetAllOptions extends EntityFolderScopedOptions {
613
+ /**
614
+ * When `true`, returns tenant-level and folder-level entities together.
615
+ * Omit (or `false`, the default) to return only tenant-level entities.
616
+ * Ignored when `folderKey` is provided — `folderKey` is preferred over `includeFolderEntities` when both are set.
617
+ *
618
+ * @experimental Folder-scoped Data Fabric is in preview — the contract may change.
619
+ */
620
+ includeFolderEntities?: boolean;
601
621
  }
602
- /**
603
- * Options for {@link EntityServiceModel.getById}
604
- */
605
622
  interface EntityGetByIdOptions extends EntityFolderScopedOptions {
606
623
  }
607
- /**
608
- * Options for {@link EntityServiceModel.deleteById}
609
- */
610
624
  interface EntityDeleteByIdOptions extends EntityFolderScopedOptions {
611
625
  }
612
626
  /**
@@ -951,23 +965,35 @@ interface RawEntityGetResponse {
951
965
  */
952
966
  interface EntityServiceModel {
953
967
  /**
954
- * Gets all entities in the system
968
+ * Gets entities in the tenant.
955
969
  *
956
- * @returns Promise resolving to either an array of entities NonPaginatedResponse<EntityGetResponse> or a PaginatedResponse<EntityGetResponse> when pagination options are used.
970
+ * Three call modes:
971
+ * - `getAll()` — default. Returns only tenant-level entities.
972
+ * - `getAll({ folderKey: "<uuid>" })` — preferred for folder-scoped data. Returns only entities in that folder.
973
+ * - `getAll({ includeFolderEntities: true })` — returns tenant-level **and** folder-level entities together. `folderKey` is preferred over `includeFolderEntities` when both are set.
974
+ *
975
+ * @param options - Optional {@link EntityGetAllOptions} (`folderKey` to list a single folder's entities — preferred when scoping to a folder; `includeFolderEntities: true` to list tenant + folder entities together) The `folderKey` property is **experimental**.
976
+ * @returns Promise resolving to an array of entity metadata
957
977
  * {@link EntityGetResponse}
958
978
  * @example
959
979
  * ```typescript
960
- * // Get all entities
961
- * const allEntities = await entities.getAll();
980
+ * // Tenant-only (default)
981
+ * const tenantEntities = await entities.getAll();
982
+ *
983
+ * // A single folder's entities (preferred when targeting a specific folder)
984
+ * const folderEntities = await entities.getAll({ folderKey: "<folderKey>" });
985
+ *
986
+ * // Tenant + folder entities together
987
+ * const allEntities = await entities.getAll({ includeFolderEntities: true });
962
988
  *
963
989
  * // Iterate through entities
964
- * allEntities.forEach(entity => {
990
+ * tenantEntities.forEach(entity => {
965
991
  * console.log(`Entity: ${entity.displayName} (${entity.name})`);
966
992
  * console.log(`Type: ${entity.entityType}`);
967
993
  * });
968
994
  *
969
995
  * // Find a specific entity by name
970
- * const customerEntity = allEntities.find(e => e.name === 'Customer');
996
+ * const customerEntity = tenantEntities.find(e => e.name === 'Customer');
971
997
  *
972
998
  * // Use entity methods directly
973
999
  * if (customerEntity) {
@@ -985,12 +1011,12 @@ interface EntityServiceModel {
985
1011
  * }
986
1012
  * ```
987
1013
  */
988
- getAll(): Promise<EntityGetResponse[]>;
1014
+ getAll(options?: EntityGetAllOptions): Promise<EntityGetResponse[]>;
989
1015
  /**
990
1016
  * Gets entity metadata by entity ID with attached operation methods
991
1017
  *
992
1018
  * @param id - UUID of the entity
993
- * @param options - Optional {@link EntityGetByIdOptions} (e.g. `folderKey` for folder-scoped entities)
1019
+ * @param options - Optional {@link EntityGetByIdOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
994
1020
  * @returns Promise resolving to entity metadata with operation methods
995
1021
  * {@link EntityGetResponse}
996
1022
  * @example
@@ -1030,7 +1056,7 @@ interface EntityServiceModel {
1030
1056
  * Gets entity records by entity ID
1031
1057
  *
1032
1058
  * @param entityId - UUID of the entity
1033
- * @param options - Query options
1059
+ * @param options - Query options The `folderKey` property is **experimental**.
1034
1060
  * @returns Promise resolving to either an array of entity records NonPaginatedResponse<EntityRecord> or a PaginatedResponse<EntityRecord> when pagination options are used.
1035
1061
  * {@link EntityRecord}
1036
1062
  * @example
@@ -1054,6 +1080,9 @@ interface EntityServiceModel {
1054
1080
  * cursor: paginatedResponse.nextCursor,
1055
1081
  * expansionLevel: 1
1056
1082
  * });
1083
+ *
1084
+ * // Folder-scoped entity: pass the entity's folder key
1085
+ * const records = await entities.getAllRecords("<entityId>", { folderKey: "<folderKey>" });
1057
1086
  * ```
1058
1087
  */
1059
1088
  getAllRecords<T extends EntityGetAllRecordsOptions = EntityGetAllRecordsOptions>(entityId: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<EntityRecord> : NonPaginatedResponse<EntityRecord>>;
@@ -1067,7 +1096,7 @@ interface EntityServiceModel {
1067
1096
  *
1068
1097
  * @param entityId - UUID of the entity
1069
1098
  * @param recordId - UUID of the record
1070
- * @param options - Query options
1099
+ * @param options - Query options The `folderKey` property is **experimental**.
1071
1100
  * @returns Promise resolving to a single entity record
1072
1101
  * {@link EntityRecord}
1073
1102
  * @example
@@ -1083,6 +1112,11 @@ interface EntityServiceModel {
1083
1112
  * const record = await entities.getRecordById(<entityId>, recordId, {
1084
1113
  * expansionLevel: 1
1085
1114
  * });
1115
+ *
1116
+ * // Folder-scoped entity: pass the entity's folder key
1117
+ * const record = await entities.getRecordById(<entityId>, recordId, {
1118
+ * folderKey: "<folderKey>"
1119
+ * });
1086
1120
  * ```
1087
1121
  */
1088
1122
  getRecordById(entityId: string, recordId: string, options?: EntityGetRecordByIdOptions): Promise<EntityRecord>;
@@ -1094,7 +1128,7 @@ interface EntityServiceModel {
1094
1128
  *
1095
1129
  * @param id - UUID of the entity
1096
1130
  * @param data - Record to insert
1097
- * @param options - Insert options
1131
+ * @param options - Insert options The `folderKey` property is **experimental**.
1098
1132
  * @returns Promise resolving to the inserted record with generated record ID
1099
1133
  * {@link EntityInsertResponse}
1100
1134
  * @example
@@ -1106,6 +1140,11 @@ interface EntityServiceModel {
1106
1140
  * const result = await entities.insertRecordById(<entityId>, { name: "John", age: 30 }, {
1107
1141
  * expansionLevel: 1
1108
1142
  * });
1143
+ *
1144
+ * // Folder-scoped entity: pass the entity's folder key
1145
+ * await entities.insertRecordById(<entityId>, { name: "John", age: 30 }, {
1146
+ * folderKey: "<folderKey>"
1147
+ * });
1109
1148
  * ```
1110
1149
  */
1111
1150
  insertRecordById(id: string, data: Record<string, any>, options?: EntityInsertRecordOptions): Promise<EntityInsertResponse>;
@@ -1122,7 +1161,7 @@ interface EntityServiceModel {
1122
1161
  *
1123
1162
  * @param id - UUID of the entity
1124
1163
  * @param data - Array of records to insert
1125
- * @param options - Insert options
1164
+ * @param options - Insert options The `folderKey` property is **experimental**.
1126
1165
  * @returns Promise resolving to insert response
1127
1166
  * {@link EntityBatchInsertResponse}
1128
1167
  * @example
@@ -1141,6 +1180,12 @@ interface EntityServiceModel {
1141
1180
  * expansionLevel: 1,
1142
1181
  * failOnFirst: true
1143
1182
  * });
1183
+ *
1184
+ * // Folder-scoped entity: pass the entity's folder key
1185
+ * await entities.insertRecordsById(<entityId>, [
1186
+ * { name: "John", age: 30 },
1187
+ * { name: "Jane", age: 25 }
1188
+ * ], { folderKey: "<folderKey>" });
1144
1189
  * ```
1145
1190
  */
1146
1191
  insertRecordsById(id: string, data: Record<string, any>[], options?: EntityInsertRecordsOptions): Promise<EntityBatchInsertResponse>;
@@ -1158,7 +1203,7 @@ interface EntityServiceModel {
1158
1203
  * @param entityId - UUID of the entity
1159
1204
  * @param recordId - UUID of the record to update
1160
1205
  * @param data - Key-value pairs of fields to update
1161
- * @param options - Update options
1206
+ * @param options - Update options The `folderKey` property is **experimental**.
1162
1207
  * @returns Promise resolving to the updated record
1163
1208
  * {@link EntityUpdateRecordResponse}
1164
1209
  * @example
@@ -1170,6 +1215,11 @@ interface EntityServiceModel {
1170
1215
  * const result = await entities.updateRecordById(<entityId>, <recordId>, { name: "John Updated", age: 31 }, {
1171
1216
  * expansionLevel: 1
1172
1217
  * });
1218
+ *
1219
+ * // Folder-scoped entity: pass the entity's folder key
1220
+ * await entities.updateRecordById(<entityId>, <recordId>, { name: "John Updated" }, {
1221
+ * folderKey: "<folderKey>"
1222
+ * });
1173
1223
  * ```
1174
1224
  */
1175
1225
  updateRecordById(entityId: string, recordId: string, data: Record<string, any>, options?: EntityUpdateRecordOptions): Promise<EntityUpdateRecordResponse>;
@@ -1180,7 +1230,7 @@ interface EntityServiceModel {
1180
1230
  *
1181
1231
  * @param id - UUID of the entity
1182
1232
  * @param data - Array of records to update. Each record MUST contain the record id.
1183
- * @param options - Update options
1233
+ * @param options - Update options The `folderKey` property is **experimental**.
1184
1234
  * @returns Promise resolving to update response
1185
1235
  * {@link EntityUpdateResponse}
1186
1236
  * @example
@@ -1199,6 +1249,11 @@ interface EntityServiceModel {
1199
1249
  * expansionLevel: 1,
1200
1250
  * failOnFirst: true
1201
1251
  * });
1252
+ *
1253
+ * // Folder-scoped entity: pass the entity's folder key
1254
+ * await entities.updateRecordsById(<entityId>, [
1255
+ * { Id: "123", name: "John Updated" }
1256
+ * ], { folderKey: "<folderKey>" });
1202
1257
  * ```
1203
1258
  */
1204
1259
  updateRecordsById(id: string, data: EntityRecord[], options?: EntityUpdateRecordsOptions): Promise<EntityUpdateResponse>;
@@ -1209,7 +1264,7 @@ interface EntityServiceModel {
1209
1264
  *
1210
1265
  * @param id - UUID of the entity
1211
1266
  * @param recordIds - Array of record UUIDs to delete
1212
- * @param options - Delete options
1267
+ * @param options - Delete options The `folderKey` property is **experimental**.
1213
1268
  * @returns Promise resolving to delete response
1214
1269
  * {@link EntityDeleteResponse}
1215
1270
  * @example
@@ -1218,6 +1273,11 @@ interface EntityServiceModel {
1218
1273
  * const result = await entities.deleteRecordsById(<entityId>, [
1219
1274
  * <recordId-1>, <recordId-2>
1220
1275
  * ]);
1276
+ *
1277
+ * // Folder-scoped entity: pass the entity's folder key
1278
+ * await entities.deleteRecordsById(<entityId>, [
1279
+ * <recordId-1>, <recordId-2>
1280
+ * ], { folderKey: "<folderKey>" });
1221
1281
  * ```
1222
1282
  */
1223
1283
  deleteRecordsById(id: string, recordIds: string[], options?: EntityDeleteRecordsOptions): Promise<EntityDeleteResponse>;
@@ -1229,7 +1289,7 @@ interface EntityServiceModel {
1229
1289
  *
1230
1290
  * @param entityId - UUID of the entity
1231
1291
  * @param recordId - UUID of the record to delete
1232
- * @param options - Optional {@link EntityDeleteRecordByIdOptions} (e.g. `folderKey` for folder-scoped entities)
1292
+ * @param options - Optional {@link EntityDeleteRecordByIdOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
1233
1293
  * @returns Promise resolving to void on success
1234
1294
  * @example
1235
1295
  * ```typescript
@@ -1248,7 +1308,7 @@ interface EntityServiceModel {
1248
1308
  * Queries entity records with filters, sorting, aggregates, and SDK-managed pagination
1249
1309
  *
1250
1310
  * @param id - UUID of the entity
1251
- * @param options - Query options including filterGroup, selectedFields, sortOptions, aggregates, groupBy, and pagination
1311
+ * @param options - Query options including filterGroup, selectedFields, sortOptions, aggregates, groupBy, and pagination The `folderKey` property is **experimental**.
1252
1312
  * @returns Promise resolving to {@link NonPaginatedResponse} without pagination options,
1253
1313
  * or {@link PaginatedResponse} when `pageSize`, `cursor`, or `jumpToPage` are provided
1254
1314
  * @example
@@ -1282,6 +1342,12 @@ interface EntityServiceModel {
1282
1342
  * ],
1283
1343
  * });
1284
1344
  *
1345
+ * // Folder-scoped entity: pass the entity's folder key
1346
+ * await entities.queryRecordsById(<id>, {
1347
+ * filterGroup: { queryFilters: [{ fieldName: "status", operator: QueryFilterOperator.Equals, value: "active" }] },
1348
+ * folderKey: "<folderKey>",
1349
+ * });
1350
+ *
1285
1351
  * // Aggregate: total sum and average across all records (no grouping)
1286
1352
  * await entities.queryRecordsById(<id>, {
1287
1353
  * aggregates: [
@@ -1297,7 +1363,7 @@ interface EntityServiceModel {
1297
1363
  *
1298
1364
  * @param id - UUID of the entity
1299
1365
  * @param file - CSV file to import as a Blob or File or Uint8Array
1300
- * @param options - Optional {@link EntityImportRecordsByIdOptions} (e.g. `folderKey` for folder-scoped entities)
1366
+ * @param options - Optional {@link EntityImportRecordsByIdOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
1301
1367
  * @returns Promise resolving to {@link EntityImportRecordsResponse} with record counts
1302
1368
  * @example
1303
1369
  * ```typescript
@@ -1317,7 +1383,7 @@ interface EntityServiceModel {
1317
1383
  * @param entityId - UUID of the entity
1318
1384
  * @param recordId - UUID of the record containing the attachment
1319
1385
  * @param fieldName - Name of the File-type field containing the attachment
1320
- * @param options - Optional {@link EntityDownloadAttachmentOptions} (e.g. `folderKey` for folder-scoped entities)
1386
+ * @param options - Optional {@link EntityDownloadAttachmentOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
1321
1387
  * @returns Promise resolving to Blob containing the file content
1322
1388
  * @example
1323
1389
  * ```typescript
@@ -1374,7 +1440,7 @@ interface EntityServiceModel {
1374
1440
  * @param recordId - UUID of the record to upload the attachment to
1375
1441
  * @param fieldName - Name of the File-type field
1376
1442
  * @param file - File to upload (Blob, File, or Uint8Array)
1377
- * @param options - Optional {@link EntityUploadAttachmentOptions} (e.g. `expansionLevel`, `folderKey` for folder-scoped entities)
1443
+ * @param options - Optional {@link EntityUploadAttachmentOptions} (e.g. `expansionLevel`, `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
1378
1444
  * @returns Promise resolving to {@link EntityUploadAttachmentResponse}
1379
1445
  * @example
1380
1446
  * ```typescript
@@ -1411,7 +1477,7 @@ interface EntityServiceModel {
1411
1477
  * @param entityId - UUID of the entity
1412
1478
  * @param recordId - UUID of the record containing the attachment
1413
1479
  * @param fieldName - Name of the File-type field containing the attachment
1414
- * @param options - Optional {@link EntityDeleteAttachmentOptions} (e.g. `folderKey` for folder-scoped entities)
1480
+ * @param options - Optional {@link EntityDeleteAttachmentOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
1415
1481
  * @returns Promise resolving to {@link EntityDeleteAttachmentResponse}
1416
1482
  * @example
1417
1483
  * ```typescript
@@ -1442,7 +1508,7 @@ interface EntityServiceModel {
1442
1508
  * @param name - Entity name — must start with a letter, letters/numbers/underscores only
1443
1509
  * (e.g., `"productCatalog"`).
1444
1510
  * @param fields - Array of field definitions
1445
- * @param options - Optional entity-level settings ({@link EntityCreateOptions})
1511
+ * @param options - Optional entity-level settings ({@link EntityCreateOptions}) The `folderKey` property is **experimental**.
1446
1512
  * @returns Promise resolving to the ID of the created entity
1447
1513
  * @example
1448
1514
  * ```typescript
@@ -1461,6 +1527,24 @@ interface EntityServiceModel {
1461
1527
  * { fieldName: "price", type: EntityFieldDataType.DECIMAL, decimalPrecision: 4, maxValue: 999999, minValue: 0 },
1462
1528
  * { fieldName: "quantity", type: EntityFieldDataType.INTEGER, maxValue: 10000, minValue: 1, defaultValue: "0" },
1463
1529
  * ]);
1530
+ *
1531
+ * // Cross-folder references — link a folder-scoped entity to entities and
1532
+ * // system choice sets that live in another folder or at the tenant level.
1533
+ * await entities.create("orderLine", [
1534
+ * {
1535
+ * fieldName: "order",
1536
+ * type: EntityFieldDataType.RELATIONSHIP,
1537
+ * referenceEntityId: "<orderEntityId>",
1538
+ * referenceFieldId: "<orderEntityPkId>",
1539
+ * referenceFolderKey: "<otherFolderKey>", // target lives in a different folder
1540
+ * },
1541
+ * {
1542
+ * fieldName: "userType",
1543
+ * type: EntityFieldDataType.CHOICE_SET_SINGLE,
1544
+ * choiceSetId: "<systemUserTypeChoiceSetId>", // tenant-level system choice set
1545
+ * // referenceFolderKey omitted → SDK looks up the target at tenant scope
1546
+ * },
1547
+ * ], { folderKey: "<sourceFolderKey>" });
1464
1548
  * ```
1465
1549
  * @internal
1466
1550
  */
@@ -1469,7 +1553,7 @@ interface EntityServiceModel {
1469
1553
  * Deletes a Data Fabric entity and all its records
1470
1554
  *
1471
1555
  * @param id - UUID of the entity to delete
1472
- * @param options - Optional {@link EntityDeleteByIdOptions} (e.g. `folderKey` for folder-scoped entities)
1556
+ * @param options - Optional {@link EntityDeleteByIdOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
1473
1557
  * @returns Promise resolving when the entity is deleted
1474
1558
  * @example
1475
1559
  * ```typescript
@@ -1489,7 +1573,7 @@ interface EntityServiceModel {
1489
1573
  * only when the corresponding fields are provided.
1490
1574
  *
1491
1575
  * @param id - UUID of the entity to update
1492
- * @param options - Changes to apply ({@link EntityUpdateByIdOptions})
1576
+ * @param options - Changes to apply ({@link EntityUpdateByIdOptions}) The `folderKey` property is **experimental**.
1493
1577
  * @returns Promise resolving when the update is complete
1494
1578
  *
1495
1579
  * @example
@@ -1607,7 +1691,7 @@ interface EntityMethods {
1607
1691
  /**
1608
1692
  * Get all records from this entity
1609
1693
  *
1610
- * @param options - Query options
1694
+ * @param options - Query options The `folderKey` property is **experimental**.
1611
1695
  * @returns Promise resolving to query response
1612
1696
  */
1613
1697
  getAllRecords<T extends EntityGetAllRecordsOptions = EntityGetAllRecordsOptions>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<EntityRecord> : NonPaginatedResponse<EntityRecord>>;
@@ -1624,7 +1708,7 @@ interface EntityMethods {
1624
1708
  *
1625
1709
  * @param recordId - UUID of the record containing the attachment
1626
1710
  * @param fieldName - Name of the File-type field containing the attachment
1627
- * @param options - Optional {@link EntityDownloadAttachmentOptions} (e.g. folderKey)
1711
+ * @param options - Optional {@link EntityDownloadAttachmentOptions} (e.g. folderKey) The `folderKey` property is **experimental**.
1628
1712
  * @returns Promise resolving to Blob containing the file content
1629
1713
  */
1630
1714
  downloadAttachment(recordId: string, fieldName: string, options?: EntityDownloadAttachmentOptions): Promise<Blob>;
@@ -1634,7 +1718,7 @@ interface EntityMethods {
1634
1718
  * @param recordId - UUID of the record to upload the attachment to
1635
1719
  * @param fieldName - Name of the File-type field
1636
1720
  * @param file - File to upload (Blob, File, or Uint8Array)
1637
- * @param options - Optional {@link EntityUploadAttachmentOptions} (e.g. expansionLevel, folderKey)
1721
+ * @param options - Optional {@link EntityUploadAttachmentOptions} (e.g. expansionLevel, folderKey) The `folderKey` property is **experimental**.
1638
1722
  * @returns Promise resolving to {@link EntityUploadAttachmentResponse}
1639
1723
  */
1640
1724
  uploadAttachment(recordId: string, fieldName: string, file: EntityFileType, options?: EntityUploadAttachmentOptions): Promise<EntityUploadAttachmentResponse>;
@@ -1643,7 +1727,7 @@ interface EntityMethods {
1643
1727
  *
1644
1728
  * @param recordId - UUID of the record containing the attachment
1645
1729
  * @param fieldName - Name of the File-type field containing the attachment
1646
- * @param options - Optional {@link EntityDeleteAttachmentOptions} (e.g. folderKey)
1730
+ * @param options - Optional {@link EntityDeleteAttachmentOptions} (e.g. folderKey) The `folderKey` property is **experimental**.
1647
1731
  * @returns Promise resolving to {@link EntityDeleteAttachmentResponse}
1648
1732
  */
1649
1733
  deleteAttachment(recordId: string, fieldName: string, options?: EntityDeleteAttachmentOptions): Promise<EntityDeleteAttachmentResponse>;
@@ -1783,7 +1867,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1783
1867
  * Gets entity metadata by entity ID with attached operation methods
1784
1868
  *
1785
1869
  * @param id - UUID of the entity
1786
- * @param options - Optional {@link EntityGetByIdOptions} (e.g. `folderKey` for folder-scoped entities)
1870
+ * @param options - Optional {@link EntityGetByIdOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
1787
1871
  * @returns Promise resolving to entity metadata with schema information and operation methods
1788
1872
  *
1789
1873
  * @example
@@ -1814,7 +1898,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1814
1898
  * Gets entity records by entity ID
1815
1899
  *
1816
1900
  * @param entityId - UUID of the entity
1817
- * @param options - Query options including expansionLevel and pagination options
1901
+ * @param options - Query options including expansionLevel and pagination options The `folderKey` property is **experimental**.
1818
1902
  * @returns Promise resolving to an array of entity records or paginated response
1819
1903
  *
1820
1904
  * @example
@@ -1842,6 +1926,9 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1842
1926
  * cursor: paginatedResponse.nextCursor,
1843
1927
  * expansionLevel: 1
1844
1928
  * });
1929
+ *
1930
+ * // Folder-scoped entity: pass the entity's folder key
1931
+ * const records = await entities.getAllRecords("<entityId>", { folderKey: "<folderKey>" });
1845
1932
  * ```
1846
1933
  */
1847
1934
  getAllRecords<T extends EntityGetAllRecordsOptions = EntityGetAllRecordsOptions>(entityId: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<EntityRecord> : NonPaginatedResponse<EntityRecord>>;
@@ -1850,7 +1937,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1850
1937
  *
1851
1938
  * @param entityId - UUID of the entity
1852
1939
  * @param recordId - UUID of the record
1853
- * @param options - Query options including expansionLevel
1940
+ * @param options - Query options including `expansionLevel` and `folderKey` The `folderKey` property is **experimental**.
1854
1941
  * @returns Promise resolving to the entity record
1855
1942
  *
1856
1943
  * @example
@@ -1862,6 +1949,11 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1862
1949
  * const record = await sdk.entities.getRecordById(<entityId>, <recordId>, {
1863
1950
  * expansionLevel: 1
1864
1951
  * });
1952
+ *
1953
+ * // Folder-scoped entity: pass the entity's folder key
1954
+ * const record = await sdk.entities.getRecordById(<entityId>, <recordId>, {
1955
+ * folderKey: "<folderKey>"
1956
+ * });
1865
1957
  * ```
1866
1958
  */
1867
1959
  getRecordById(entityId: string, recordId: string, options?: EntityGetRecordByIdOptions): Promise<EntityRecord>;
@@ -1870,7 +1962,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1870
1962
  *
1871
1963
  * @param entityId - UUID of the entity
1872
1964
  * @param data - Record to insert
1873
- * @param options - Insert options
1965
+ * @param options - Insert options The `folderKey` property is **experimental**.
1874
1966
  * @returns Promise resolving to the inserted record with generated record ID
1875
1967
  *
1876
1968
  * @example
@@ -1886,6 +1978,11 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1886
1978
  * const result = await entities.insertRecordById("<entityId>", { name: "John", age: 30 }, {
1887
1979
  * expansionLevel: 1
1888
1980
  * });
1981
+ *
1982
+ * // Folder-scoped entity: pass the entity's folder key
1983
+ * await entities.insertRecordById("<entityId>", { name: "John", age: 30 }, {
1984
+ * folderKey: "<folderKey>"
1985
+ * });
1889
1986
  * ```
1890
1987
  */
1891
1988
  insertRecordById(id: string, data: Record<string, any>, options?: EntityInsertRecordOptions): Promise<EntityInsertResponse>;
@@ -1894,7 +1991,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1894
1991
  *
1895
1992
  * @param entityId - UUID of the entity
1896
1993
  * @param data - Array of records to insert
1897
- * @param options - Insert options
1994
+ * @param options - Insert options The `folderKey` property is **experimental**.
1898
1995
  * @returns Promise resolving to insert response
1899
1996
  *
1900
1997
  * @example
@@ -1917,6 +2014,12 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1917
2014
  * expansionLevel: 1,
1918
2015
  * failOnFirst: true
1919
2016
  * });
2017
+ *
2018
+ * // Folder-scoped entity: pass the entity's folder key
2019
+ * await entities.insertRecordsById("<entityId>", [
2020
+ * { name: "John", age: 30 },
2021
+ * { name: "Jane", age: 25 }
2022
+ * ], { folderKey: "<folderKey>" });
1920
2023
  * ```
1921
2024
  */
1922
2025
  insertRecordsById(id: string, data: Record<string, any>[], options?: EntityInsertRecordsOptions): Promise<EntityBatchInsertResponse>;
@@ -1926,7 +2029,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1926
2029
  * @param entityId - UUID of the entity
1927
2030
  * @param recordId - UUID of the record to update
1928
2031
  * @param data - Key-value pairs of fields to update
1929
- * @param options - Update options
2032
+ * @param options - Update options The `folderKey` property is **experimental**.
1930
2033
  * @returns Promise resolving to the updated record
1931
2034
  *
1932
2035
  * @example
@@ -1942,6 +2045,11 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1942
2045
  * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 }, {
1943
2046
  * expansionLevel: 1
1944
2047
  * });
2048
+ *
2049
+ * // Folder-scoped entity: pass the entity's folder key
2050
+ * await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated" }, {
2051
+ * folderKey: "<folderKey>"
2052
+ * });
1945
2053
  * ```
1946
2054
  */
1947
2055
  updateRecordById(entityId: string, recordId: string, data: Record<string, any>, options?: EntityUpdateRecordOptions): Promise<EntityUpdateRecordResponse>;
@@ -1951,7 +2059,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1951
2059
  * @param entityId - UUID of the entity
1952
2060
  * @param data - Array of records to update. Each record MUST contain the record Id,
1953
2061
  * otherwise the update will fail.
1954
- * @param options - Update options
2062
+ * @param options - Update options The `folderKey` property is **experimental**.
1955
2063
  * @returns Promise resolving to update response
1956
2064
  *
1957
2065
  * @example
@@ -1974,6 +2082,11 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1974
2082
  * expansionLevel: 1,
1975
2083
  * failOnFirst: true
1976
2084
  * });
2085
+ *
2086
+ * // Folder-scoped entity: pass the entity's folder key
2087
+ * await entities.updateRecordsById("<entityId>", [
2088
+ * { Id: "123", name: "John Updated" }
2089
+ * ], { folderKey: "<folderKey>" });
1977
2090
  * ```
1978
2091
  */
1979
2092
  updateRecordsById(id: string, data: EntityRecord[], options?: EntityUpdateRecordsOptions): Promise<EntityUpdateResponse>;
@@ -1984,7 +2097,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1984
2097
  *
1985
2098
  * @param entityId - UUID of the entity
1986
2099
  * @param recordIds - Array of record UUIDs to delete
1987
- * @param options - Delete options
2100
+ * @param options - Delete options The `folderKey` property is **experimental**.
1988
2101
  * @returns Promise resolving to delete response
1989
2102
  *
1990
2103
  * @example
@@ -1997,6 +2110,11 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1997
2110
  * const result = await entities.deleteRecordsById("<entityId>", [
1998
2111
  * "<recordId-1>", "<recordId-2>"
1999
2112
  * ]);
2113
+ *
2114
+ * // Folder-scoped entity: pass the entity's folder key
2115
+ * await entities.deleteRecordsById("<entityId>", [
2116
+ * "<recordId-1>", "<recordId-2>"
2117
+ * ], { folderKey: "<folderKey>" });
2000
2118
  * ```
2001
2119
  */
2002
2120
  deleteRecordsById(id: string, recordIds: string[], options?: EntityDeleteRecordsOptions): Promise<EntityDeleteResponse>;
@@ -2008,7 +2126,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2008
2126
  *
2009
2127
  * @param entityId - UUID of the entity
2010
2128
  * @param recordId - UUID of the record to delete
2011
- * @param options - Optional {@link EntityDeleteRecordByIdOptions} (e.g. `folderKey` for folder-scoped entities)
2129
+ * @param options - Optional {@link EntityDeleteRecordByIdOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
2012
2130
  * @returns Promise resolving to void on success
2013
2131
  * @example
2014
2132
  * ```typescript
@@ -2024,8 +2142,14 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2024
2142
  */
2025
2143
  deleteRecordById(entityId: string, recordId: string, options?: EntityDeleteRecordByIdOptions): Promise<void>;
2026
2144
  /**
2027
- * Gets all entities in the system
2145
+ * Gets entities in the tenant.
2146
+ *
2147
+ * Three call modes:
2148
+ * - `getAll()` — default. Returns only tenant-level entities.
2149
+ * - `getAll({ folderKey: "<uuid>" })` — preferred for folder-scoped data. Returns only entities in that folder.
2150
+ * - `getAll({ includeFolderEntities: true })` — returns tenant-level **and** folder-level entities together. `folderKey` is preferred over `includeFolderEntities` when both are set.
2028
2151
  *
2152
+ * @param options - Optional {@link EntityGetAllOptions} (`folderKey` to list a single folder's entities — preferred when scoping to a folder; `includeFolderEntities: true` to list tenant + folder entities together) The `folderKey` property is **experimental**.
2029
2153
  * @returns Promise resolving to an array of entity metadata
2030
2154
  *
2031
2155
  * @example
@@ -2034,19 +2158,25 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2034
2158
  *
2035
2159
  * const entities = new Entities(sdk);
2036
2160
  *
2037
- * // Get all entities
2038
- * const allEntities = await entities.getAll();
2161
+ * // Tenant-only (default)
2162
+ * const tenantEntities = await entities.getAll();
2163
+ *
2164
+ * // A single folder's entities (preferred when targeting a specific folder)
2165
+ * const folderEntities = await entities.getAll({ folderKey: "<folderKey>" });
2166
+ *
2167
+ * // Tenant + folder entities together
2168
+ * const allEntities = await entities.getAll({ includeFolderEntities: true });
2039
2169
  *
2040
2170
  * // Call operations on an entity
2041
- * const records = await allEntities[0].getAllRecords();
2171
+ * const records = await tenantEntities[0].getAllRecords();
2042
2172
  * ```
2043
2173
  */
2044
- getAll(): Promise<EntityGetResponse[]>;
2174
+ getAll(options?: EntityGetAllOptions): Promise<EntityGetResponse[]>;
2045
2175
  /**
2046
2176
  * Queries entity records with filters, sorting, aggregates, and pagination
2047
2177
  *
2048
2178
  * @param id - UUID of the entity
2049
- * @param options - Query options including filterGroup, selectedFields, sortOptions, aggregates, groupBy, and pagination
2179
+ * @param options - Query options including filterGroup, selectedFields, sortOptions, aggregates, groupBy, and pagination The `folderKey` property is **experimental**.
2050
2180
  * @returns Promise resolving to {@link NonPaginatedResponse} without pagination options,
2051
2181
  * or {@link PaginatedResponse} when `pageSize`, `cursor`, or `jumpToPage` are provided
2052
2182
  *
@@ -2093,6 +2223,12 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2093
2223
  * { function: EntityAggregateFunction.Avg, field: "amount", alias: "avgAmount" },
2094
2224
  * ],
2095
2225
  * });
2226
+ *
2227
+ * // Folder-scoped entity: pass the entity's folder key
2228
+ * await entities.queryRecordsById("<entityId>", {
2229
+ * filterGroup: { queryFilters: [{ fieldName: "status", operator: QueryFilterOperator.Equals, value: "active" }] },
2230
+ * folderKey: "<folderKey>",
2231
+ * });
2096
2232
  * ```
2097
2233
  */
2098
2234
  queryRecordsById<T extends EntityQueryRecordsOptions = EntityQueryRecordsOptions>(id: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<EntityRecord> : NonPaginatedResponse<EntityRecord>>;
@@ -2101,7 +2237,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2101
2237
  *
2102
2238
  * @param id - UUID of the entity
2103
2239
  * @param file - CSV file to import (Blob, File, or Uint8Array)
2104
- * @param options - Optional {@link EntityImportRecordsByIdOptions} (e.g. `folderKey` for folder-scoped entities)
2240
+ * @param options - Optional {@link EntityImportRecordsByIdOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
2105
2241
  * @returns Promise resolving to import result with record counts
2106
2242
  *
2107
2243
  * @example
@@ -2134,7 +2270,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2134
2270
  * @param entityId - UUID of the entity
2135
2271
  * @param recordId - UUID of the record containing the attachment
2136
2272
  * @param fieldName - Name of the File-type field containing the attachment
2137
- * @param options - Optional {@link EntityDownloadAttachmentOptions} (e.g. `folderKey` for folder-scoped entities)
2273
+ * @param options - Optional {@link EntityDownloadAttachmentOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
2138
2274
  * @returns Promise resolving to Blob containing the file content
2139
2275
  *
2140
2276
  * @example
@@ -2166,7 +2302,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2166
2302
  * @param recordId - UUID of the record to upload the attachment to
2167
2303
  * @param fieldName - Name of the File-type field
2168
2304
  * @param file - File to upload (Blob, File, or Uint8Array)
2169
- * @param options - Optional {@link EntityUploadAttachmentOptions} (e.g. `expansionLevel`, `folderKey` for folder-scoped entities)
2305
+ * @param options - Optional {@link EntityUploadAttachmentOptions} (e.g. `expansionLevel`, `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
2170
2306
  * @returns Promise resolving to {@link EntityUploadAttachmentResponse}
2171
2307
  *
2172
2308
  * @example
@@ -2197,7 +2333,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2197
2333
  * @param entityId - UUID of the entity
2198
2334
  * @param recordId - UUID of the record containing the attachment
2199
2335
  * @param fieldName - Name of the File-type field containing the attachment
2200
- * @param options - Optional {@link EntityDeleteAttachmentOptions} (e.g. `folderKey` for folder-scoped entities)
2336
+ * @param options - Optional {@link EntityDeleteAttachmentOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
2201
2337
  * @returns Promise resolving to {@link EntityDeleteAttachmentResponse}
2202
2338
  *
2203
2339
  * @example
@@ -2243,7 +2379,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2243
2379
  * @param name - Entity name — must start with a letter and contain
2244
2380
  * only letters, numbers, and underscores (e.g., `"productCatalog"`).
2245
2381
  * @param fields - Array of field definitions
2246
- * @param options - Optional entity-level settings ({@link EntityCreateOptions})
2382
+ * @param options - Optional entity-level settings ({@link EntityCreateOptions}) The `folderKey` property is **experimental**.
2247
2383
  * @returns Promise resolving to the ID of the created entity
2248
2384
  *
2249
2385
  * @example
@@ -2259,6 +2395,24 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2259
2395
  * { fieldName: "price", type: EntityFieldDataType.DECIMAL, decimalPrecision: 4, maxValue: 999999, minValue: 0 },
2260
2396
  * { fieldName: "quantity", type: EntityFieldDataType.INTEGER, maxValue: 10000, minValue: 1, defaultValue: "0" },
2261
2397
  * ]);
2398
+ *
2399
+ * // Cross-folder references — link a folder-scoped entity to entities and
2400
+ * // system choice sets that live in another folder or at the tenant level.
2401
+ * await entities.create("orderLine", [
2402
+ * {
2403
+ * fieldName: "order",
2404
+ * type: EntityFieldDataType.RELATIONSHIP,
2405
+ * referenceEntityId: "<orderEntityId>",
2406
+ * referenceFieldId: "<orderEntityPkId>",
2407
+ * referenceFolderKey: "<otherFolderKey>", // target lives in a different folder
2408
+ * },
2409
+ * {
2410
+ * fieldName: "userType",
2411
+ * type: EntityFieldDataType.CHOICE_SET_SINGLE,
2412
+ * choiceSetId: "<systemUserTypeChoiceSetId>", // tenant-level system choice set
2413
+ * // referenceFolderKey omitted → SDK looks up the target at tenant scope
2414
+ * },
2415
+ * ], { folderKey: "<sourceFolderKey>" });
2262
2416
  * ```
2263
2417
  * @internal
2264
2418
  */
@@ -2267,7 +2421,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2267
2421
  * Deletes a Data Fabric entity and all its records
2268
2422
  *
2269
2423
  * @param id - UUID of the entity to delete
2270
- * @param options - Optional {@link EntityDeleteByIdOptions} (e.g. `folderKey` for folder-scoped entities)
2424
+ * @param options - Optional {@link EntityDeleteByIdOptions} (e.g. `folderKey` for folder-scoped entities) The `folderKey` property is **experimental**.
2271
2425
  * @returns Promise resolving when the entity is deleted
2272
2426
  *
2273
2427
  * @example
@@ -2292,7 +2446,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2292
2446
  * overwrite each other's changes.
2293
2447
  *
2294
2448
  * @param id - UUID of the entity to update
2295
- * @param options - Changes to apply ({@link EntityUpdateByIdOptions})
2449
+ * @param options - Changes to apply ({@link EntityUpdateByIdOptions}) The `folderKey` property is **experimental**.
2296
2450
  * @returns Promise resolving when the update is complete
2297
2451
  *
2298
2452
  * @example
@@ -2375,6 +2529,8 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2375
2529
  * @private
2376
2530
  */
2377
2531
  private mapExternalFields;
2532
+ private buildFieldsWithReferenceMeta;
2533
+ private buildReferenceMeta;
2378
2534
  /** Converts a user-facing EntityCreateFieldOptions to the raw API field payload */
2379
2535
  private buildSchemaFieldPayload;
2380
2536
  /**
@@ -2448,40 +2604,54 @@ interface ChoiceSetGetResponse {
2448
2604
  /** User ID of the record owner */
2449
2605
  recordOwner?: string;
2450
2606
  }
2607
+ interface ChoiceSetGetAllOptions extends EntityFolderScopedOptions {
2608
+ /**
2609
+ * When `true`, also returns folder-level choice sets alongside tenant ones.
2610
+ * Omit (or `false`, the default) to return only tenant-level choice sets.
2611
+ * Ignored when `folderKey` is provided — `folderKey` is preferred over `includeFolderChoiceSets` when both are set.
2612
+ *
2613
+ * @experimental Folder-scoped Data Fabric is in preview — the contract may change.
2614
+ */
2615
+ includeFolderChoiceSets?: boolean;
2616
+ }
2451
2617
  /**
2452
2618
  * Options for getting choice set values by choice set ID
2453
2619
  */
2454
- type ChoiceSetGetByIdOptions = PaginationOptions;
2620
+ type ChoiceSetGetByIdOptions = PaginationOptions & EntityFolderScopedOptions;
2455
2621
  /**
2456
2622
  * Options for creating a new choice set
2457
2623
  */
2458
- interface ChoiceSetCreateOptions {
2624
+ interface ChoiceSetCreateOptions extends EntityFolderScopedOptions {
2459
2625
  /** Human-readable display name */
2460
2626
  displayName?: string;
2461
2627
  /** Optional choice set description */
2462
2628
  description?: string;
2463
- /** UUID of the folder to place the choice set in (defaults to the tenant-level folder) */
2464
- folderKey?: string;
2465
2629
  }
2466
2630
  /**
2467
2631
  * Options for updating an existing choice set's metadata
2468
2632
  */
2469
- interface ChoiceSetUpdateOptions {
2633
+ interface ChoiceSetUpdateOptions extends EntityFolderScopedOptions {
2470
2634
  /** New display name for the choice set */
2471
2635
  displayName?: string;
2472
2636
  /** New description for the choice set */
2473
2637
  description?: string;
2474
2638
  }
2639
+ interface ChoiceSetDeleteByIdOptions extends EntityFolderScopedOptions {
2640
+ }
2475
2641
  /**
2476
2642
  * Optional fields when inserting a single value into a choice set.
2477
2643
  *
2478
2644
  * The required `name` identifier is passed as a positional argument to
2479
2645
  * `insertValueById`.
2480
2646
  */
2481
- interface ChoiceSetValueInsertOptions {
2647
+ interface ChoiceSetValueInsertOptions extends EntityFolderScopedOptions {
2482
2648
  /** Human-readable display name */
2483
2649
  displayName?: string;
2484
2650
  }
2651
+ interface ChoiceSetValueUpdateOptions extends EntityFolderScopedOptions {
2652
+ }
2653
+ interface ChoiceSetValueDeleteOptions extends EntityFolderScopedOptions {
2654
+ }
2485
2655
  /**
2486
2656
  * Response returned after inserting a choice-set value — the full value object.
2487
2657
  */
@@ -2511,33 +2681,32 @@ interface ChoiceSetValueUpdateResponse extends ChoiceSetGetResponse {
2511
2681
  */
2512
2682
  interface ChoiceSetServiceModel {
2513
2683
  /**
2514
- * Gets all choice sets in the org
2684
+ * Gets choice sets in the tenant.
2685
+ *
2686
+ * Three call modes:
2687
+ * - `getAll()` — default. Returns only tenant-level choice sets.
2688
+ * - `getAll({ folderKey: "<uuid>" })` — preferred for folder-scoped data. Returns only choice sets in that folder.
2689
+ * - `getAll({ includeFolderChoiceSets: true })` — returns tenant-level **and** folder-level choice sets together. `folderKey` is preferred over `includeFolderChoiceSets` when both are set.
2515
2690
  *
2691
+ * @param options - Optional {@link ChoiceSetGetAllOptions} (`folderKey` to list a single folder's choice sets — preferred when scoping to a folder; `includeFolderChoiceSets: true` to list tenant + folder choice sets together) The `folderKey` property is **experimental**.
2516
2692
  * @returns Promise resolving to an array of choice set metadata
2517
2693
  * {@link ChoiceSetGetAllResponse}
2518
2694
  * @example
2519
2695
  * ```typescript
2520
- * // Get all choice sets
2521
- * const allChoiceSets = await choicesets.getAll();
2696
+ * // Tenant-only (default)
2697
+ * const tenantChoiceSets = await choicesets.getAll();
2522
2698
  *
2523
- * // Iterate through choice sets
2524
- * allChoiceSets.forEach(choiceSet => {
2525
- * console.log(`ChoiceSet: ${choiceSet.displayName} (${choiceSet.name})`);
2526
- * console.log(`Description: ${choiceSet.description}`);
2527
- * console.log(`Created by: ${choiceSet.createdBy}`);
2528
- * });
2699
+ * // A single folder's choice sets (preferred when targeting a specific folder)
2700
+ * const folderChoiceSets = await choicesets.getAll({ folderKey: "<folderKey>" });
2529
2701
  *
2530
- * // Find a specific choice set by name
2531
- * const expenseTypes = allChoiceSets.find(cs => cs.name === 'ExpenseTypes');
2702
+ * // Tenant + folder choice sets together
2703
+ * const allChoiceSets = await choicesets.getAll({ includeFolderChoiceSets: true });
2532
2704
  *
2533
- * // Check choice set details
2534
- * if (expenseTypes) {
2535
- * console.log(`Last updated: ${expenseTypes.updatedTime}`);
2536
- * console.log(`Updated by: ${expenseTypes.updatedBy}`);
2537
- * }
2705
+ * // Find a specific choice set by name
2706
+ * const expenseTypes = tenantChoiceSets.find(cs => cs.name === 'ExpenseTypes');
2538
2707
  * ```
2539
2708
  */
2540
- getAll(): Promise<ChoiceSetGetAllResponse[]>;
2709
+ getAll(options?: ChoiceSetGetAllOptions): Promise<ChoiceSetGetAllResponse[]>;
2541
2710
  /**
2542
2711
  * Gets choice set values by choice set ID with optional pagination
2543
2712
  *
@@ -2546,7 +2715,7 @@ interface ChoiceSetServiceModel {
2546
2715
  * - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
2547
2716
  *
2548
2717
  * @param choiceSetId - UUID of the choice set
2549
- * @param options - Pagination options
2718
+ * @param options - Pagination options and optional `folderKey` (omit for tenant-level choice sets) The `folderKey` property is **experimental**.
2550
2719
  * @returns Promise resolving to choice set values or paginated result
2551
2720
  * {@link ChoiceSetGetResponse}
2552
2721
  * @example
@@ -2571,6 +2740,9 @@ interface ChoiceSetServiceModel {
2571
2740
  * if (page1.hasNextPage) {
2572
2741
  * const page2 = await choicesets.getById(choiceSetId, { cursor: page1.nextCursor });
2573
2742
  * }
2743
+ *
2744
+ * // Folder-scoped choice set
2745
+ * const folderValues = await choicesets.getById(choiceSetId, { folderKey: "<folderKey>" });
2574
2746
  * ```
2575
2747
  */
2576
2748
  getById<T extends ChoiceSetGetByIdOptions = ChoiceSetGetByIdOptions>(choiceSetId: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ChoiceSetGetResponse> : NonPaginatedResponse<ChoiceSetGetResponse>>;
@@ -2580,7 +2752,7 @@ interface ChoiceSetServiceModel {
2580
2752
  * @param name - Choice set name. Must start with a
2581
2753
  * letter, may contain only letters, numbers, and underscores, length
2582
2754
  * 3–100 characters (e.g., `"expenseTypes"`).
2583
- * @param options - Optional choice-set-level settings ({@link ChoiceSetCreateOptions})
2755
+ * @param options - Optional choice-set-level settings ({@link ChoiceSetCreateOptions}) The `folderKey` property is **experimental**.
2584
2756
  * @returns Promise resolving to the UUID of the created choice set
2585
2757
  *
2586
2758
  * @example
@@ -2604,7 +2776,7 @@ interface ChoiceSetServiceModel {
2604
2776
  * the call throws `ValidationError` if both are omitted.
2605
2777
  *
2606
2778
  * @param choiceSetId - UUID of the choice set to update
2607
- * @param options - Metadata fields to change ({@link ChoiceSetUpdateOptions})
2779
+ * @param options - Metadata fields to change ({@link ChoiceSetUpdateOptions}) The `folderKey` property is **experimental**.
2608
2780
  * @returns Promise resolving when the update is complete
2609
2781
  *
2610
2782
  * @example
@@ -2625,6 +2797,7 @@ interface ChoiceSetServiceModel {
2625
2797
  * Deletes a Data Fabric choice set and all its values.
2626
2798
  *
2627
2799
  * @param choiceSetId - UUID of the choice set to delete
2800
+ * @param options - Optional {@link ChoiceSetDeleteByIdOptions} — pass `folderKey` for folder-scoped choice sets; omit for tenant-level The `folderKey` property is **experimental**.
2628
2801
  * @returns Promise resolving when the choice set is deleted
2629
2802
  *
2630
2803
  * @example
@@ -2634,16 +2807,19 @@ interface ChoiceSetServiceModel {
2634
2807
  * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2635
2808
  *
2636
2809
  * await choicesets.deleteById(expenseTypes.id);
2810
+ *
2811
+ * // Folder-scoped choice set
2812
+ * await choicesets.deleteById(expenseTypes.id, { folderKey: "<folderKey>" });
2637
2813
  * ```
2638
2814
  * @internal
2639
2815
  */
2640
- deleteById(choiceSetId: string): Promise<void>;
2816
+ deleteById(choiceSetId: string, options?: ChoiceSetDeleteByIdOptions): Promise<void>;
2641
2817
  /**
2642
2818
  * Inserts a single value into a choice set.
2643
2819
  *
2644
2820
  * @param choiceSetId - UUID of the parent choice set
2645
2821
  * @param name - Identifier name of the new value (e.g., `"TRAVEL"`)
2646
- * @param options - Optional fields ({@link ChoiceSetValueInsertOptions})
2822
+ * @param options - Optional fields ({@link ChoiceSetValueInsertOptions}) The `folderKey` property is **experimental**.
2647
2823
  * @returns Promise resolving to the inserted value ({@link ChoiceSetValueInsertResponse})
2648
2824
  *
2649
2825
  * @example
@@ -2656,6 +2832,12 @@ interface ChoiceSetServiceModel {
2656
2832
  * displayName: 'Travel',
2657
2833
  * });
2658
2834
  * console.log(inserted.id);
2835
+ *
2836
+ * // Folder-scoped choice set: folderKey is required on the wire
2837
+ * await choicesets.insertValueById(expenseTypes.id, 'TRAVEL', {
2838
+ * displayName: 'Travel',
2839
+ * folderKey: "<folderKey>",
2840
+ * });
2659
2841
  * ```
2660
2842
  * @internal
2661
2843
  */
@@ -2669,6 +2851,7 @@ interface ChoiceSetServiceModel {
2669
2851
  * @param choiceSetId - UUID of the parent choice set
2670
2852
  * @param valueId - UUID of the value to update
2671
2853
  * @param displayName - New human-readable display name for the value
2854
+ * @param options - Optional {@link ChoiceSetValueUpdateOptions} — pass `folderKey` for folder-scoped choice sets; omit for tenant-level. The `folderKey` property is **experimental**.
2672
2855
  * @returns Promise resolving to the updated value ({@link ChoiceSetValueUpdateResponse})
2673
2856
  *
2674
2857
  * @example
@@ -2680,15 +2863,21 @@ interface ChoiceSetServiceModel {
2680
2863
  * const travel = values.items.find(v => v.name === 'TRAVEL');
2681
2864
  *
2682
2865
  * await choicesets.updateValueById(expenseTypes.id, travel.id, 'Business Travel');
2866
+ *
2867
+ * // Folder-scoped choice set: folderKey is required on the wire
2868
+ * await choicesets.updateValueById(expenseTypes.id, travel.id, 'Business Travel', {
2869
+ * folderKey: "<folderKey>",
2870
+ * });
2683
2871
  * ```
2684
2872
  * @internal
2685
2873
  */
2686
- updateValueById(choiceSetId: string, valueId: string, displayName: string): Promise<ChoiceSetValueUpdateResponse>;
2874
+ updateValueById(choiceSetId: string, valueId: string, displayName: string, options?: ChoiceSetValueUpdateOptions): Promise<ChoiceSetValueUpdateResponse>;
2687
2875
  /**
2688
2876
  * Deletes one or more values from a choice set.
2689
2877
  *
2690
2878
  * @param choiceSetId - UUID of the parent choice set
2691
2879
  * @param valueIds - Array of value UUIDs to delete
2880
+ * @param options - Optional {@link ChoiceSetValueDeleteOptions} — pass `folderKey` for folder-scoped choice sets; omit for tenant-level The `folderKey` property is **experimental**.
2692
2881
  * @returns Promise resolving when the values are deleted
2693
2882
  *
2694
2883
  * @example
@@ -2698,16 +2887,25 @@ interface ChoiceSetServiceModel {
2698
2887
  * const idsToDelete = values.items.slice(0, 2).map(v => v.id);
2699
2888
  *
2700
2889
  * await choicesets.deleteValuesById('<choiceSetId>', idsToDelete);
2890
+ *
2891
+ * // Folder-scoped choice set
2892
+ * await choicesets.deleteValuesById('<choiceSetId>', idsToDelete, { folderKey: "<folderKey>" });
2701
2893
  * ```
2702
2894
  * @internal
2703
2895
  */
2704
- deleteValuesById(choiceSetId: string, valueIds: string[]): Promise<void>;
2896
+ deleteValuesById(choiceSetId: string, valueIds: string[], options?: ChoiceSetValueDeleteOptions): Promise<void>;
2705
2897
  }
2706
2898
 
2707
2899
  declare class ChoiceSetService extends BaseService implements ChoiceSetServiceModel {
2708
2900
  /**
2709
- * Gets all choice sets in the system
2901
+ * Gets choice sets in the tenant.
2902
+ *
2903
+ * Three call modes:
2904
+ * - `getAll()` — default. Returns only tenant-level choice sets.
2905
+ * - `getAll({ folderKey: "<uuid>" })` — preferred for folder-scoped data. Returns only choice sets in that folder.
2906
+ * - `getAll({ includeFolderChoiceSets: true })` — returns tenant-level **and** folder-level choice sets together. `folderKey` is preferred over `includeFolderChoiceSets` when both are set.
2710
2907
  *
2908
+ * @param options - Optional {@link ChoiceSetGetAllOptions} (`folderKey` to list a single folder's choice sets — preferred when scoping to a folder; `includeFolderChoiceSets: true` to list tenant + folder choice sets together) The `folderKey` property is **experimental**.
2711
2909
  * @returns Promise resolving to an array of choice set metadata
2712
2910
  *
2713
2911
  * @example
@@ -2716,17 +2914,23 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2716
2914
  *
2717
2915
  * const choiceSets = new ChoiceSets(sdk);
2718
2916
  *
2719
- * // Get all choice sets
2720
- * const allChoiceSets = await choiceSets.getAll();
2917
+ * // Tenant-only (default)
2918
+ * const tenantChoiceSets = await choiceSets.getAll();
2721
2919
  *
2722
- * // Iterate through choice sets
2723
- * allChoiceSets.forEach(choiceSet => {
2724
- * console.log(`ChoiceSet: ${choiceSet.displayName} (${choiceSet.name})`);
2725
- * console.log(`Description: ${choiceSet.description}`);
2726
- * });
2920
+ * // A single folder's choice sets (preferred when targeting a specific folder)
2921
+ * const folderChoiceSets = await choiceSets.getAll({ folderKey: "<folderKey>" });
2922
+ *
2923
+ * // Tenant + folder choice sets together
2924
+ * const allChoiceSets = await choiceSets.getAll({ includeFolderChoiceSets: true });
2727
2925
  * ```
2728
2926
  */
2729
- getAll(): Promise<ChoiceSetGetAllResponse[]>;
2927
+ getAll(options?: ChoiceSetGetAllOptions): Promise<ChoiceSetGetAllResponse[]>;
2928
+ /**
2929
+ * Internal helper that performs the choice-set fetch. Kept separate from the
2930
+ * public `getAll()` so that internal callers (e.g. `resolveChoiceSetName`)
2931
+ * can reuse it without triggering double `@track` telemetry.
2932
+ */
2933
+ private fetchAllChoiceSets;
2730
2934
  /**
2731
2935
  * Gets choice set values by choice set ID with optional pagination
2732
2936
  *
@@ -2735,7 +2939,7 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2735
2939
  * - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
2736
2940
  *
2737
2941
  * @param choiceSetId - UUID of the choice set
2738
- * @param options - Pagination options
2942
+ * @param options - Pagination options and optional `folderKey` for folder-scoped choice sets The `folderKey` property is **experimental**.
2739
2943
  * @returns Promise resolving to choice set values or paginated result
2740
2944
  *
2741
2945
  * @example
@@ -2764,6 +2968,9 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2764
2968
  * if (page1.hasNextPage) {
2765
2969
  * const page2 = await choiceSets.getById(choiceSetId, { cursor: page1.nextCursor });
2766
2970
  * }
2971
+ *
2972
+ * // Folder-scoped choice set
2973
+ * const folderValues = await choiceSets.getById(choiceSetId, { folderKey: "<folderKey>" });
2767
2974
  * ```
2768
2975
  */
2769
2976
  getById<T extends ChoiceSetGetByIdOptions = ChoiceSetGetByIdOptions>(choiceSetId: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ChoiceSetGetResponse> : NonPaginatedResponse<ChoiceSetGetResponse>>;
@@ -2773,7 +2980,7 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2773
2980
  * @param name - Choice set name. Must start with a
2774
2981
  * letter, may contain only letters, numbers, and underscores, length
2775
2982
  * 3–100 characters (e.g., `"expenseTypes"`).
2776
- * @param options - Optional choice-set-level settings ({@link ChoiceSetCreateOptions})
2983
+ * @param options - Optional choice-set-level settings ({@link ChoiceSetCreateOptions}) The `folderKey` property is **experimental**.
2777
2984
  * @returns Promise resolving to the UUID of the created choice set
2778
2985
  *
2779
2986
  * @example
@@ -2801,7 +3008,7 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2801
3008
  * the call throws `ValidationError` if both are omitted.
2802
3009
  *
2803
3010
  * @param choiceSetId - UUID of the choice set to update
2804
- * @param options - Metadata fields to change ({@link ChoiceSetUpdateOptions})
3011
+ * @param options - Metadata fields to change ({@link ChoiceSetUpdateOptions}) The `folderKey` property is **experimental**.
2805
3012
  * @returns Promise resolving when the update is complete
2806
3013
  *
2807
3014
  * @example
@@ -2822,6 +3029,7 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2822
3029
  * Deletes a Data Fabric choice set and all its values.
2823
3030
  *
2824
3031
  * @param choiceSetId - UUID of the choice set to delete
3032
+ * @param options - Optional {@link ChoiceSetDeleteByIdOptions} (e.g. `folderKey` for folder-scoped choice sets) The `folderKey` property is **experimental**.
2825
3033
  * @returns Promise resolving when the choice set is deleted
2826
3034
  *
2827
3035
  * @example
@@ -2831,16 +3039,19 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2831
3039
  * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2832
3040
  *
2833
3041
  * await choicesets.deleteById(expenseTypes.id);
3042
+ *
3043
+ * // Folder-scoped choice set
3044
+ * await choicesets.deleteById(expenseTypes.id, { folderKey: "<folderKey>" });
2834
3045
  * ```
2835
3046
  * @internal
2836
3047
  */
2837
- deleteById(choiceSetId: string): Promise<void>;
3048
+ deleteById(choiceSetId: string, options?: ChoiceSetDeleteByIdOptions): Promise<void>;
2838
3049
  /**
2839
3050
  * Inserts a single value into a choice set.
2840
3051
  *
2841
3052
  * @param choiceSetId - UUID of the parent choice set
2842
3053
  * @param name - Identifier name of the new value (e.g., `"TRAVEL"`)
2843
- * @param options - Optional fields ({@link ChoiceSetValueInsertOptions})
3054
+ * @param options - Optional fields ({@link ChoiceSetValueInsertOptions}) The `folderKey` property is **experimental**.
2844
3055
  * @returns Promise resolving to the inserted value ({@link ChoiceSetValueInsertResponse})
2845
3056
  *
2846
3057
  * @example
@@ -2853,6 +3064,12 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2853
3064
  * displayName: 'Travel',
2854
3065
  * });
2855
3066
  * console.log(inserted.id);
3067
+ *
3068
+ * // Folder-scoped choice set: folderKey is required on the wire
3069
+ * await choicesets.insertValueById(expenseTypes.id, 'TRAVEL', {
3070
+ * displayName: 'Travel',
3071
+ * folderKey: "<folderKey>",
3072
+ * });
2856
3073
  * ```
2857
3074
  * @internal
2858
3075
  */
@@ -2866,6 +3083,7 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2866
3083
  * @param choiceSetId - UUID of the parent choice set
2867
3084
  * @param valueId - UUID of the value to update
2868
3085
  * @param displayName - New human-readable display name for the value
3086
+ * @param options - Optional {@link ChoiceSetValueUpdateOptions} — pass `folderKey` for folder-scoped choice sets; omit for tenant-level. The `folderKey` property is **experimental**.
2869
3087
  * @returns Promise resolving to the updated value ({@link ChoiceSetValueUpdateResponse})
2870
3088
  *
2871
3089
  * @example
@@ -2877,15 +3095,21 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2877
3095
  * const travel = values.items.find(v => v.name === 'TRAVEL');
2878
3096
  *
2879
3097
  * await choicesets.updateValueById(expenseTypes.id, travel.id, 'Business Travel');
3098
+ *
3099
+ * // Folder-scoped choice set: folderKey is required on the wire
3100
+ * await choicesets.updateValueById(expenseTypes.id, travel.id, 'Business Travel', {
3101
+ * folderKey: "<folderKey>",
3102
+ * });
2880
3103
  * ```
2881
3104
  * @internal
2882
3105
  */
2883
- updateValueById(choiceSetId: string, valueId: string, displayName: string): Promise<ChoiceSetValueUpdateResponse>;
3106
+ updateValueById(choiceSetId: string, valueId: string, displayName: string, options?: ChoiceSetValueUpdateOptions): Promise<ChoiceSetValueUpdateResponse>;
2884
3107
  /**
2885
3108
  * Deletes one or more values from a choice set.
2886
3109
  *
2887
3110
  * @param choiceSetId - UUID of the parent choice set
2888
3111
  * @param valueIds - Array of value UUIDs to delete
3112
+ * @param options - Optional {@link ChoiceSetValueDeleteOptions} (e.g. `folderKey` for folder-scoped choice sets) The `folderKey` property is **experimental**.
2889
3113
  * @returns Promise resolving when the values are deleted
2890
3114
  *
2891
3115
  * @example
@@ -2895,12 +3119,15 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2895
3119
  * const idsToDelete = values.items.slice(0, 2).map(v => v.id);
2896
3120
  *
2897
3121
  * await choicesets.deleteValuesById('<choiceSetId>', idsToDelete);
3122
+ *
3123
+ * // Folder-scoped choice set
3124
+ * await choicesets.deleteValuesById('<choiceSetId>', idsToDelete, { folderKey: "<folderKey>" });
2898
3125
  * ```
2899
3126
  * @internal
2900
3127
  */
2901
- deleteValuesById(choiceSetId: string, valueIds: string[]): Promise<void>;
3128
+ deleteValuesById(choiceSetId: string, valueIds: string[], options?: ChoiceSetValueDeleteOptions): Promise<void>;
2902
3129
  private resolveChoiceSetName;
2903
3130
  }
2904
3131
 
2905
3132
  export { ChoiceSetService, ChoiceSetService as ChoiceSets, DataDirectionType, EntityService as Entities, EntityAggregateFunction, EntityFieldDataType, EntityService, EntityType, FieldDisplayType, JoinType, LogicalOperator, QueryFilterOperator, ReferenceType, createEntityWithMethods };
2906
- export type { ChoiceSetCreateOptions, ChoiceSetGetAllResponse, ChoiceSetGetByIdOptions, ChoiceSetGetResponse, ChoiceSetServiceModel, ChoiceSetUpdateOptions, ChoiceSetValueInsertOptions, ChoiceSetValueInsertResponse, ChoiceSetValueUpdateResponse, EntityAggregate, EntityBatchInsertOptions, EntityBatchInsertResponse, EntityCreateFieldOptions, EntityCreateOptions, EntityDeleteAttachmentOptions, EntityDeleteAttachmentResponse, EntityDeleteByIdOptions, EntityDeleteOptions, EntityDeleteRecordByIdOptions, EntityDeleteRecordsOptions, EntityDeleteResponse, EntityDownloadAttachmentOptions, EntityFieldBase, EntityFieldUpdateOptions, EntityFileType, EntityFolderScopedOptions, EntityGetAllRecordsOptions, EntityGetByIdOptions, EntityGetRecordByIdOptions, EntityGetRecordsByIdOptions, EntityGetResponse, EntityImportRecordsByIdOptions, EntityImportRecordsResponse, EntityInsertOptions, EntityInsertRecordOptions, EntityInsertRecordsOptions, EntityInsertResponse, EntityMethods, EntityOperationOptions, EntityOperationResponse, EntityQueryFilter, EntityQueryFilterGroup, EntityQueryRecordsOptions, EntityQueryRecordsResponse, EntityQuerySortOption, EntityRecord, EntityRemoveFieldOptions, EntityServiceModel, EntityUpdateByIdOptions, EntityUpdateOptions, EntityUpdateRecordOptions, EntityUpdateRecordResponse, EntityUpdateRecordsOptions, EntityUpdateResponse, EntityUploadAttachmentOptions, EntityUploadAttachmentResponse, ExternalConnection, ExternalField, ExternalFieldMapping, ExternalObject, ExternalSourceFields, FailureRecord, Field, FieldDataType, FieldMetaData, RawEntityGetResponse, SourceJoinCriteria, SqlType };
3133
+ export type { ChoiceSetCreateOptions, ChoiceSetDeleteByIdOptions, ChoiceSetGetAllOptions, ChoiceSetGetAllResponse, ChoiceSetGetByIdOptions, ChoiceSetGetResponse, ChoiceSetServiceModel, ChoiceSetUpdateOptions, ChoiceSetValueDeleteOptions, ChoiceSetValueInsertOptions, ChoiceSetValueInsertResponse, ChoiceSetValueUpdateOptions, ChoiceSetValueUpdateResponse, EntityAggregate, EntityBatchInsertOptions, EntityBatchInsertResponse, EntityCreateFieldOptions, EntityCreateOptions, EntityDeleteAttachmentOptions, EntityDeleteAttachmentResponse, EntityDeleteByIdOptions, EntityDeleteOptions, EntityDeleteRecordByIdOptions, EntityDeleteRecordsOptions, EntityDeleteResponse, EntityDownloadAttachmentOptions, EntityFieldBase, EntityFieldUpdateOptions, EntityFileType, EntityFolderScopedOptions, EntityGetAllOptions, EntityGetAllRecordsOptions, EntityGetByIdOptions, EntityGetRecordByIdOptions, EntityGetRecordsByIdOptions, EntityGetResponse, EntityImportRecordsByIdOptions, EntityImportRecordsResponse, EntityInsertOptions, EntityInsertRecordOptions, EntityInsertRecordsOptions, EntityInsertResponse, EntityMethods, EntityOperationOptions, EntityOperationResponse, EntityQueryFilter, EntityQueryFilterGroup, EntityQueryRecordsOptions, EntityQueryRecordsResponse, EntityQuerySortOption, EntityRecord, EntityRemoveFieldOptions, EntityServiceModel, EntityUpdateByIdOptions, EntityUpdateOptions, EntityUpdateRecordOptions, EntityUpdateRecordResponse, EntityUpdateRecordsOptions, EntityUpdateResponse, EntityUploadAttachmentOptions, EntityUploadAttachmentResponse, ExternalConnection, ExternalField, ExternalFieldMapping, ExternalObject, ExternalSourceFields, FailureRecord, Field, FieldDataType, FieldMetaData, RawEntityGetResponse, SourceJoinCriteria, SqlType };