@uipath/uipath-typescript 1.3.9 → 1.3.11

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 (39) hide show
  1. package/dist/assets/index.cjs +19 -6
  2. package/dist/assets/index.mjs +19 -6
  3. package/dist/attachments/index.cjs +19 -6
  4. package/dist/attachments/index.mjs +19 -6
  5. package/dist/buckets/index.cjs +141 -6
  6. package/dist/buckets/index.d.ts +164 -1
  7. package/dist/buckets/index.mjs +141 -6
  8. package/dist/cases/index.cjs +70 -6
  9. package/dist/cases/index.d.ts +91 -1
  10. package/dist/cases/index.mjs +70 -6
  11. package/dist/conversational-agent/index.cjs +19 -6
  12. package/dist/conversational-agent/index.mjs +19 -6
  13. package/dist/core/index.cjs +1 -1
  14. package/dist/core/index.mjs +1 -1
  15. package/dist/entities/index.cjs +239 -34
  16. package/dist/entities/index.d.ts +311 -12
  17. package/dist/entities/index.mjs +239 -34
  18. package/dist/feedback/index.cjs +19 -6
  19. package/dist/feedback/index.mjs +19 -6
  20. package/dist/index.cjs +490 -64
  21. package/dist/index.d.ts +714 -36
  22. package/dist/index.mjs +490 -64
  23. package/dist/index.umd.js +491 -65
  24. package/dist/jobs/index.cjs +19 -6
  25. package/dist/jobs/index.mjs +19 -6
  26. package/dist/maestro-processes/index.cjs +70 -6
  27. package/dist/maestro-processes/index.d.ts +91 -1
  28. package/dist/maestro-processes/index.mjs +70 -6
  29. package/dist/processes/index.cjs +47 -35
  30. package/dist/processes/index.d.ts +76 -26
  31. package/dist/processes/index.mjs +47 -35
  32. package/dist/queues/index.cjs +19 -6
  33. package/dist/queues/index.mjs +19 -6
  34. package/dist/tasks/index.cjs +19 -6
  35. package/dist/tasks/index.mjs +19 -6
  36. package/dist/traces/index.cjs +1902 -0
  37. package/dist/traces/index.d.ts +565 -0
  38. package/dist/traces/index.mjs +1900 -0
  39. package/package.json +12 -2
@@ -549,6 +549,8 @@ interface EntityFieldBase {
549
549
  isRbacEnabled?: boolean;
550
550
  /** Whether the field value is encrypted at rest (default: false) */
551
551
  isEncrypted?: boolean;
552
+ /** Whether the field is hidden from the UI (default: false) */
553
+ isHiddenField?: boolean;
552
554
  /** Default value for the field */
553
555
  defaultValue?: string;
554
556
  /** Maximum character length for STRING fields (default: 200, range: 1–4000) and MULTILINE_TEXT fields (default: 200, range: 1–10000). */
@@ -573,10 +575,10 @@ interface EntityCreateFieldOptions extends EntityFieldBase {
573
575
  type?: EntityFieldDataType;
574
576
  /** Choice set ID for choice-set fields */
575
577
  choiceSetId?: string;
576
- /** Name of the referenced entity for relationship fields */
577
- referenceEntityName?: string;
578
- /** Name of the field in the referenced entity */
579
- referenceFieldName?: string;
578
+ /** UUID of the referenced entity (required when `type` is `RELATIONSHIP` or `FILE`) */
579
+ referenceEntityId?: string;
580
+ /** UUID of the referenced field on the target entity (required when `type` is `RELATIONSHIP` or `FILE`) */
581
+ referenceFieldId?: string;
580
582
  }
581
583
  /**
582
584
  * Options for creating a new Data Fabric entity
@@ -806,10 +808,6 @@ interface FieldMetaData {
806
808
  referenceType?: ReferenceType;
807
809
  choiceSetId?: string;
808
810
  defaultValue?: string;
809
- /** Name of the referenced entity (used on write payloads for relationship fields) */
810
- referenceEntityName?: string;
811
- /** Name of the field in the referenced entity (used on write payloads for relationship fields) */
812
- referenceFieldName?: string;
813
811
  }
814
812
  /**
815
813
  * External object details
@@ -2296,8 +2294,6 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2296
2294
  * override the defaults where the type accepts overrides.
2297
2295
  */
2298
2296
  private buildSqlTypeConstraints;
2299
- private static readonly RESERVED_FIELD_NAMES;
2300
- private validateName;
2301
2297
  }
2302
2298
 
2303
2299
  /**
@@ -2305,6 +2301,8 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2305
2301
  * Only exposes essential fields to SDK users
2306
2302
  */
2307
2303
  interface ChoiceSetGetAllResponse {
2304
+ /** UUID of the choice set */
2305
+ id: string;
2308
2306
  /** Name identifier of the choice set */
2309
2307
  name: string;
2310
2308
  /** Human-readable display name of the choice set*/
@@ -2349,6 +2347,46 @@ interface ChoiceSetGetResponse {
2349
2347
  * Options for getting choice set values by choice set ID
2350
2348
  */
2351
2349
  type ChoiceSetGetByIdOptions = PaginationOptions;
2350
+ /**
2351
+ * Options for creating a new choice set
2352
+ */
2353
+ interface ChoiceSetCreateOptions {
2354
+ /** Human-readable display name */
2355
+ displayName?: string;
2356
+ /** Optional choice set description */
2357
+ description?: string;
2358
+ /** UUID of the folder to place the choice set in (defaults to the tenant-level folder) */
2359
+ folderKey?: string;
2360
+ }
2361
+ /**
2362
+ * Options for updating an existing choice set's metadata
2363
+ */
2364
+ interface ChoiceSetUpdateOptions {
2365
+ /** New display name for the choice set */
2366
+ displayName?: string;
2367
+ /** New description for the choice set */
2368
+ description?: string;
2369
+ }
2370
+ /**
2371
+ * Optional fields when inserting a single value into a choice set.
2372
+ *
2373
+ * The required `name` identifier is passed as a positional argument to
2374
+ * `insertValueById`.
2375
+ */
2376
+ interface ChoiceSetValueInsertOptions {
2377
+ /** Human-readable display name */
2378
+ displayName?: string;
2379
+ }
2380
+ /**
2381
+ * Response returned after inserting a choice-set value — the full value object.
2382
+ */
2383
+ interface ChoiceSetValueInsertResponse extends ChoiceSetGetResponse {
2384
+ }
2385
+ /**
2386
+ * Response returned after updating a choice-set value — the full value object.
2387
+ */
2388
+ interface ChoiceSetValueUpdateResponse extends ChoiceSetGetResponse {
2389
+ }
2352
2390
 
2353
2391
  /**
2354
2392
  * Service for managing UiPath Data Fabric Choice Sets
@@ -2431,6 +2469,134 @@ interface ChoiceSetServiceModel {
2431
2469
  * ```
2432
2470
  */
2433
2471
  getById<T extends ChoiceSetGetByIdOptions = ChoiceSetGetByIdOptions>(choiceSetId: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ChoiceSetGetResponse> : NonPaginatedResponse<ChoiceSetGetResponse>>;
2472
+ /**
2473
+ * Creates a new Data Fabric choice set
2474
+ *
2475
+ * @param name - Choice set name. Must start with a
2476
+ * letter, may contain only letters, numbers, and underscores, length
2477
+ * 3–100 characters (e.g., `"expenseTypes"`).
2478
+ * @param options - Optional choice-set-level settings ({@link ChoiceSetCreateOptions})
2479
+ * @returns Promise resolving to the UUID of the created choice set
2480
+ *
2481
+ * @example
2482
+ * ```typescript
2483
+ * // Minimal create
2484
+ * const expenseTypesId = await choicesets.create("expense_types");
2485
+ *
2486
+ * // With display name and description
2487
+ * const priorityLevelsId = await choicesets.create("priority_levels", {
2488
+ * displayName: "Priority Levels",
2489
+ * description: "Ticket priority categories",
2490
+ * });
2491
+ * ```
2492
+ * @internal
2493
+ */
2494
+ create(name: string, options?: ChoiceSetCreateOptions): Promise<string>;
2495
+ /**
2496
+ * Updates an existing choice set's metadata (display name and/or description).
2497
+ *
2498
+ * **At least one of `displayName` or `description` must be provided** —
2499
+ * the call throws `ValidationError` if both are omitted.
2500
+ *
2501
+ * @param choiceSetId - UUID of the choice set to update
2502
+ * @param options - Metadata fields to change ({@link ChoiceSetUpdateOptions})
2503
+ * @returns Promise resolving when the update is complete
2504
+ *
2505
+ * @example
2506
+ * ```typescript
2507
+ * // First, get the choice set ID using getAll()
2508
+ * const allChoiceSets = await choicesets.getAll();
2509
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2510
+ *
2511
+ * await choicesets.updateById(expenseTypes.id, {
2512
+ * displayName: "Expense Categories",
2513
+ * description: "Updated description",
2514
+ * });
2515
+ * ```
2516
+ * @internal
2517
+ */
2518
+ updateById(choiceSetId: string, options: ChoiceSetUpdateOptions): Promise<void>;
2519
+ /**
2520
+ * Deletes a Data Fabric choice set and all its values.
2521
+ *
2522
+ * @param choiceSetId - UUID of the choice set to delete
2523
+ * @returns Promise resolving when the choice set is deleted
2524
+ *
2525
+ * @example
2526
+ * ```typescript
2527
+ * // First, get the choice set ID using getAll()
2528
+ * const allChoiceSets = await choicesets.getAll();
2529
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2530
+ *
2531
+ * await choicesets.deleteById(expenseTypes.id);
2532
+ * ```
2533
+ * @internal
2534
+ */
2535
+ deleteById(choiceSetId: string): Promise<void>;
2536
+ /**
2537
+ * Inserts a single value into a choice set.
2538
+ *
2539
+ * @param choiceSetId - UUID of the parent choice set
2540
+ * @param name - Identifier name of the new value (e.g., `"TRAVEL"`)
2541
+ * @param options - Optional fields ({@link ChoiceSetValueInsertOptions})
2542
+ * @returns Promise resolving to the inserted value ({@link ChoiceSetValueInsertResponse})
2543
+ *
2544
+ * @example
2545
+ * ```typescript
2546
+ * // First, get the choice set ID using getAll()
2547
+ * const allChoiceSets = await choicesets.getAll();
2548
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2549
+ *
2550
+ * const inserted = await choicesets.insertValueById(expenseTypes.id, 'TRAVEL', {
2551
+ * displayName: 'Travel',
2552
+ * });
2553
+ * console.log(inserted.id);
2554
+ * ```
2555
+ * @internal
2556
+ */
2557
+ insertValueById(choiceSetId: string, name: string, options?: ChoiceSetValueInsertOptions): Promise<ChoiceSetValueInsertResponse>;
2558
+ /**
2559
+ * Updates an existing choice-set value's display name.
2560
+ *
2561
+ * Only `displayName` is mutable; the value's `name` (identifier) is fixed at
2562
+ * insert time and cannot be changed.
2563
+ *
2564
+ * @param choiceSetId - UUID of the parent choice set
2565
+ * @param valueId - UUID of the value to update
2566
+ * @param displayName - New human-readable display name for the value
2567
+ * @returns Promise resolving to the updated value ({@link ChoiceSetValueUpdateResponse})
2568
+ *
2569
+ * @example
2570
+ * ```typescript
2571
+ * // Get the choice set ID from getAll() and the value ID from getById()
2572
+ * const allChoiceSets = await choicesets.getAll();
2573
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2574
+ * const values = await choicesets.getById(expenseTypes.id);
2575
+ * const travel = values.items.find(v => v.name === 'TRAVEL');
2576
+ *
2577
+ * await choicesets.updateValueById(expenseTypes.id, travel.id, 'Business Travel');
2578
+ * ```
2579
+ * @internal
2580
+ */
2581
+ updateValueById(choiceSetId: string, valueId: string, displayName: string): Promise<ChoiceSetValueUpdateResponse>;
2582
+ /**
2583
+ * Deletes one or more values from a choice set.
2584
+ *
2585
+ * @param choiceSetId - UUID of the parent choice set
2586
+ * @param valueIds - Array of value UUIDs to delete
2587
+ * @returns Promise resolving when the values are deleted
2588
+ *
2589
+ * @example
2590
+ * ```typescript
2591
+ * // Get the value IDs from getById()
2592
+ * const values = await choicesets.getById('<choiceSetId>');
2593
+ * const idsToDelete = values.items.slice(0, 2).map(v => v.id);
2594
+ *
2595
+ * await choicesets.deleteValuesById('<choiceSetId>', idsToDelete);
2596
+ * ```
2597
+ * @internal
2598
+ */
2599
+ deleteValuesById(choiceSetId: string, valueIds: string[]): Promise<void>;
2434
2600
  }
2435
2601
 
2436
2602
  declare class ChoiceSetService extends BaseService implements ChoiceSetServiceModel {
@@ -2469,7 +2635,7 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2469
2635
  *
2470
2636
  * @example
2471
2637
  * ```typescript
2472
- * import { ChoiceSets } from '@uipath/uipath-typescript/choicesets';
2638
+ * import { ChoiceSets } from '@uipath/uipath-typescript/entities';
2473
2639
  *
2474
2640
  * const choiceSets = new ChoiceSets(sdk);
2475
2641
  *
@@ -2496,7 +2662,140 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2496
2662
  * ```
2497
2663
  */
2498
2664
  getById<T extends ChoiceSetGetByIdOptions = ChoiceSetGetByIdOptions>(choiceSetId: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ChoiceSetGetResponse> : NonPaginatedResponse<ChoiceSetGetResponse>>;
2665
+ /**
2666
+ * Creates a new Data Fabric choice set
2667
+ *
2668
+ * @param name - Choice set name. Must start with a
2669
+ * letter, may contain only letters, numbers, and underscores, length
2670
+ * 3–100 characters (e.g., `"expenseTypes"`).
2671
+ * @param options - Optional choice-set-level settings ({@link ChoiceSetCreateOptions})
2672
+ * @returns Promise resolving to the UUID of the created choice set
2673
+ *
2674
+ * @example
2675
+ * ```typescript
2676
+ * import { ChoiceSets } from '@uipath/uipath-typescript/entities';
2677
+ *
2678
+ * const choicesets = new ChoiceSets(sdk);
2679
+ *
2680
+ * // Minimal create
2681
+ * const expenseTypesId = await choicesets.create("expense_types");
2682
+ *
2683
+ * // With display name and description
2684
+ * const priorityLevelsId = await choicesets.create("priority_levels", {
2685
+ * displayName: "Priority Levels",
2686
+ * description: "Ticket priority categories",
2687
+ * });
2688
+ * ```
2689
+ * @internal
2690
+ */
2691
+ create(name: string, options?: ChoiceSetCreateOptions): Promise<string>;
2692
+ /**
2693
+ * Updates an existing choice set's metadata (display name and/or description).
2694
+ *
2695
+ * **At least one of `displayName` or `description` must be provided** —
2696
+ * the call throws `ValidationError` if both are omitted.
2697
+ *
2698
+ * @param choiceSetId - UUID of the choice set to update
2699
+ * @param options - Metadata fields to change ({@link ChoiceSetUpdateOptions})
2700
+ * @returns Promise resolving when the update is complete
2701
+ *
2702
+ * @example
2703
+ * ```typescript
2704
+ * // First, get the choice set ID using getAll()
2705
+ * const allChoiceSets = await choicesets.getAll();
2706
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2707
+ *
2708
+ * await choicesets.updateById(expenseTypes.id, {
2709
+ * displayName: "Expense Categories",
2710
+ * description: "Updated description",
2711
+ * });
2712
+ * ```
2713
+ * @internal
2714
+ */
2715
+ updateById(choiceSetId: string, options: ChoiceSetUpdateOptions): Promise<void>;
2716
+ /**
2717
+ * Deletes a Data Fabric choice set and all its values.
2718
+ *
2719
+ * @param choiceSetId - UUID of the choice set to delete
2720
+ * @returns Promise resolving when the choice set is deleted
2721
+ *
2722
+ * @example
2723
+ * ```typescript
2724
+ * // First, get the choice set ID using getAll()
2725
+ * const allChoiceSets = await choicesets.getAll();
2726
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2727
+ *
2728
+ * await choicesets.deleteById(expenseTypes.id);
2729
+ * ```
2730
+ * @internal
2731
+ */
2732
+ deleteById(choiceSetId: string): Promise<void>;
2733
+ /**
2734
+ * Inserts a single value into a choice set.
2735
+ *
2736
+ * @param choiceSetId - UUID of the parent choice set
2737
+ * @param name - Identifier name of the new value (e.g., `"TRAVEL"`)
2738
+ * @param options - Optional fields ({@link ChoiceSetValueInsertOptions})
2739
+ * @returns Promise resolving to the inserted value ({@link ChoiceSetValueInsertResponse})
2740
+ *
2741
+ * @example
2742
+ * ```typescript
2743
+ * // First, get the choice set ID using getAll()
2744
+ * const allChoiceSets = await choicesets.getAll();
2745
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2746
+ *
2747
+ * const inserted = await choicesets.insertValueById(expenseTypes.id, 'TRAVEL', {
2748
+ * displayName: 'Travel',
2749
+ * });
2750
+ * console.log(inserted.id);
2751
+ * ```
2752
+ * @internal
2753
+ */
2754
+ insertValueById(choiceSetId: string, name: string, options?: ChoiceSetValueInsertOptions): Promise<ChoiceSetValueInsertResponse>;
2755
+ /**
2756
+ * Updates an existing choice-set value's display name.
2757
+ *
2758
+ * Only `displayName` is mutable; the value's `name` (identifier) is fixed at
2759
+ * insert time and cannot be changed.
2760
+ *
2761
+ * @param choiceSetId - UUID of the parent choice set
2762
+ * @param valueId - UUID of the value to update
2763
+ * @param displayName - New human-readable display name for the value
2764
+ * @returns Promise resolving to the updated value ({@link ChoiceSetValueUpdateResponse})
2765
+ *
2766
+ * @example
2767
+ * ```typescript
2768
+ * // Get the choice set ID from getAll() and the value ID from getById()
2769
+ * const allChoiceSets = await choicesets.getAll();
2770
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2771
+ * const values = await choicesets.getById(expenseTypes.id);
2772
+ * const travel = values.items.find(v => v.name === 'TRAVEL');
2773
+ *
2774
+ * await choicesets.updateValueById(expenseTypes.id, travel.id, 'Business Travel');
2775
+ * ```
2776
+ * @internal
2777
+ */
2778
+ updateValueById(choiceSetId: string, valueId: string, displayName: string): Promise<ChoiceSetValueUpdateResponse>;
2779
+ /**
2780
+ * Deletes one or more values from a choice set.
2781
+ *
2782
+ * @param choiceSetId - UUID of the parent choice set
2783
+ * @param valueIds - Array of value UUIDs to delete
2784
+ * @returns Promise resolving when the values are deleted
2785
+ *
2786
+ * @example
2787
+ * ```typescript
2788
+ * // Get the value IDs from getById()
2789
+ * const values = await choicesets.getById('<choiceSetId>');
2790
+ * const idsToDelete = values.items.slice(0, 2).map(v => v.id);
2791
+ *
2792
+ * await choicesets.deleteValuesById('<choiceSetId>', idsToDelete);
2793
+ * ```
2794
+ * @internal
2795
+ */
2796
+ deleteValuesById(choiceSetId: string, valueIds: string[]): Promise<void>;
2797
+ private resolveChoiceSetName;
2499
2798
  }
2500
2799
 
2501
2800
  export { ChoiceSetService, ChoiceSetService as ChoiceSets, DataDirectionType, EntityService as Entities, EntityAggregateFunction, EntityFieldDataType, EntityService, EntityType, FieldDisplayType, JoinType, LogicalOperator, QueryFilterOperator, ReferenceType, createEntityWithMethods };
2502
- export type { ChoiceSetGetAllResponse, ChoiceSetGetByIdOptions, ChoiceSetGetResponse, ChoiceSetServiceModel, EntityAggregate, EntityBatchInsertOptions, EntityBatchInsertResponse, EntityCreateFieldOptions, EntityCreateOptions, EntityDeleteAttachmentResponse, EntityDeleteOptions, EntityDeleteRecordsOptions, EntityDeleteResponse, EntityFieldBase, EntityFieldUpdateOptions, EntityFileType, EntityGetAllRecordsOptions, EntityGetRecordByIdOptions, EntityGetRecordsByIdOptions, EntityGetResponse, 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 };
2801
+ export type { ChoiceSetCreateOptions, ChoiceSetGetAllResponse, ChoiceSetGetByIdOptions, ChoiceSetGetResponse, ChoiceSetServiceModel, ChoiceSetUpdateOptions, ChoiceSetValueInsertOptions, ChoiceSetValueInsertResponse, ChoiceSetValueUpdateResponse, EntityAggregate, EntityBatchInsertOptions, EntityBatchInsertResponse, EntityCreateFieldOptions, EntityCreateOptions, EntityDeleteAttachmentResponse, EntityDeleteOptions, EntityDeleteRecordsOptions, EntityDeleteResponse, EntityFieldBase, EntityFieldUpdateOptions, EntityFileType, EntityGetAllRecordsOptions, EntityGetRecordByIdOptions, EntityGetRecordsByIdOptions, EntityGetResponse, 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 };