@uipath/uipath-typescript 1.3.8 → 1.3.10

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 (41) hide show
  1. package/dist/assets/index.cjs +44 -276
  2. package/dist/assets/index.mjs +44 -276
  3. package/dist/attachments/index.cjs +42 -273
  4. package/dist/attachments/index.mjs +42 -273
  5. package/dist/buckets/index.cjs +195 -276
  6. package/dist/buckets/index.d.ts +213 -1
  7. package/dist/buckets/index.mjs +195 -276
  8. package/dist/cases/index.cjs +427 -343
  9. package/dist/cases/index.d.ts +534 -2
  10. package/dist/cases/index.mjs +428 -344
  11. package/dist/conversational-agent/index.cjs +90 -287
  12. package/dist/conversational-agent/index.d.ts +62 -12
  13. package/dist/conversational-agent/index.mjs +90 -288
  14. package/dist/core/index.cjs +39 -289
  15. package/dist/core/index.d.ts +9 -98
  16. package/dist/core/index.mjs +40 -275
  17. package/dist/document-understanding/index.cjs +18 -1
  18. package/dist/document-understanding/index.d.ts +636 -610
  19. package/dist/document-understanding/index.mjs +18 -1
  20. package/dist/entities/index.cjs +251 -277
  21. package/dist/entities/index.d.ts +305 -2
  22. package/dist/entities/index.mjs +251 -277
  23. package/dist/feedback/index.cjs +42 -274
  24. package/dist/feedback/index.mjs +42 -274
  25. package/dist/index.cjs +998 -351
  26. package/dist/index.d.ts +2159 -762
  27. package/dist/index.mjs +998 -337
  28. package/dist/index.umd.js +1208 -237
  29. package/dist/jobs/index.cjs +44 -276
  30. package/dist/jobs/index.mjs +44 -276
  31. package/dist/maestro-processes/index.cjs +1761 -1717
  32. package/dist/maestro-processes/index.d.ts +430 -2
  33. package/dist/maestro-processes/index.mjs +1762 -1718
  34. package/dist/processes/index.cjs +72 -305
  35. package/dist/processes/index.d.ts +76 -26
  36. package/dist/processes/index.mjs +72 -305
  37. package/dist/queues/index.cjs +44 -276
  38. package/dist/queues/index.mjs +44 -276
  39. package/dist/tasks/index.cjs +44 -276
  40. package/dist/tasks/index.mjs +44 -276
  41. package/package.json +8 -10
@@ -2305,6 +2305,8 @@ declare class EntityService extends BaseService implements EntityServiceModel {
2305
2305
  * Only exposes essential fields to SDK users
2306
2306
  */
2307
2307
  interface ChoiceSetGetAllResponse {
2308
+ /** UUID of the choice set */
2309
+ id: string;
2308
2310
  /** Name identifier of the choice set */
2309
2311
  name: string;
2310
2312
  /** Human-readable display name of the choice set*/
@@ -2349,6 +2351,46 @@ interface ChoiceSetGetResponse {
2349
2351
  * Options for getting choice set values by choice set ID
2350
2352
  */
2351
2353
  type ChoiceSetGetByIdOptions = PaginationOptions;
2354
+ /**
2355
+ * Options for creating a new choice set
2356
+ */
2357
+ interface ChoiceSetCreateOptions {
2358
+ /** Human-readable display name */
2359
+ displayName?: string;
2360
+ /** Optional choice set description */
2361
+ description?: string;
2362
+ /** UUID of the folder to place the choice set in (defaults to the tenant-level folder) */
2363
+ folderKey?: string;
2364
+ }
2365
+ /**
2366
+ * Options for updating an existing choice set's metadata
2367
+ */
2368
+ interface ChoiceSetUpdateOptions {
2369
+ /** New display name for the choice set */
2370
+ displayName?: string;
2371
+ /** New description for the choice set */
2372
+ description?: string;
2373
+ }
2374
+ /**
2375
+ * Optional fields when inserting a single value into a choice set.
2376
+ *
2377
+ * The required `name` identifier is passed as a positional argument to
2378
+ * `insertValueById`.
2379
+ */
2380
+ interface ChoiceSetValueInsertOptions {
2381
+ /** Human-readable display name */
2382
+ displayName?: string;
2383
+ }
2384
+ /**
2385
+ * Response returned after inserting a choice-set value — the full value object.
2386
+ */
2387
+ interface ChoiceSetValueInsertResponse extends ChoiceSetGetResponse {
2388
+ }
2389
+ /**
2390
+ * Response returned after updating a choice-set value — the full value object.
2391
+ */
2392
+ interface ChoiceSetValueUpdateResponse extends ChoiceSetGetResponse {
2393
+ }
2352
2394
 
2353
2395
  /**
2354
2396
  * Service for managing UiPath Data Fabric Choice Sets
@@ -2431,6 +2473,134 @@ interface ChoiceSetServiceModel {
2431
2473
  * ```
2432
2474
  */
2433
2475
  getById<T extends ChoiceSetGetByIdOptions = ChoiceSetGetByIdOptions>(choiceSetId: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ChoiceSetGetResponse> : NonPaginatedResponse<ChoiceSetGetResponse>>;
2476
+ /**
2477
+ * Creates a new Data Fabric choice set
2478
+ *
2479
+ * @param name - Choice set name. Must start with a
2480
+ * letter, may contain only letters, numbers, and underscores, length
2481
+ * 3–100 characters (e.g., `"expenseTypes"`).
2482
+ * @param options - Optional choice-set-level settings ({@link ChoiceSetCreateOptions})
2483
+ * @returns Promise resolving to the UUID of the created choice set
2484
+ *
2485
+ * @example
2486
+ * ```typescript
2487
+ * // Minimal create
2488
+ * const expenseTypesId = await choicesets.create("expense_types");
2489
+ *
2490
+ * // With display name and description
2491
+ * const priorityLevelsId = await choicesets.create("priority_levels", {
2492
+ * displayName: "Priority Levels",
2493
+ * description: "Ticket priority categories",
2494
+ * });
2495
+ * ```
2496
+ * @internal
2497
+ */
2498
+ create(name: string, options?: ChoiceSetCreateOptions): Promise<string>;
2499
+ /**
2500
+ * Updates an existing choice set's metadata (display name and/or description).
2501
+ *
2502
+ * **At least one of `displayName` or `description` must be provided** —
2503
+ * the call throws `ValidationError` if both are omitted.
2504
+ *
2505
+ * @param choiceSetId - UUID of the choice set to update
2506
+ * @param options - Metadata fields to change ({@link ChoiceSetUpdateOptions})
2507
+ * @returns Promise resolving when the update is complete
2508
+ *
2509
+ * @example
2510
+ * ```typescript
2511
+ * // First, get the choice set ID using getAll()
2512
+ * const allChoiceSets = await choicesets.getAll();
2513
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2514
+ *
2515
+ * await choicesets.updateById(expenseTypes.id, {
2516
+ * displayName: "Expense Categories",
2517
+ * description: "Updated description",
2518
+ * });
2519
+ * ```
2520
+ * @internal
2521
+ */
2522
+ updateById(choiceSetId: string, options: ChoiceSetUpdateOptions): Promise<void>;
2523
+ /**
2524
+ * Deletes a Data Fabric choice set and all its values.
2525
+ *
2526
+ * @param choiceSetId - UUID of the choice set to delete
2527
+ * @returns Promise resolving when the choice set is deleted
2528
+ *
2529
+ * @example
2530
+ * ```typescript
2531
+ * // First, get the choice set ID using getAll()
2532
+ * const allChoiceSets = await choicesets.getAll();
2533
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2534
+ *
2535
+ * await choicesets.deleteById(expenseTypes.id);
2536
+ * ```
2537
+ * @internal
2538
+ */
2539
+ deleteById(choiceSetId: string): Promise<void>;
2540
+ /**
2541
+ * Inserts a single value into a choice set.
2542
+ *
2543
+ * @param choiceSetId - UUID of the parent choice set
2544
+ * @param name - Identifier name of the new value (e.g., `"TRAVEL"`)
2545
+ * @param options - Optional fields ({@link ChoiceSetValueInsertOptions})
2546
+ * @returns Promise resolving to the inserted value ({@link ChoiceSetValueInsertResponse})
2547
+ *
2548
+ * @example
2549
+ * ```typescript
2550
+ * // First, get the choice set ID using getAll()
2551
+ * const allChoiceSets = await choicesets.getAll();
2552
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2553
+ *
2554
+ * const inserted = await choicesets.insertValueById(expenseTypes.id, 'TRAVEL', {
2555
+ * displayName: 'Travel',
2556
+ * });
2557
+ * console.log(inserted.id);
2558
+ * ```
2559
+ * @internal
2560
+ */
2561
+ insertValueById(choiceSetId: string, name: string, options?: ChoiceSetValueInsertOptions): Promise<ChoiceSetValueInsertResponse>;
2562
+ /**
2563
+ * Updates an existing choice-set value's display name.
2564
+ *
2565
+ * Only `displayName` is mutable; the value's `name` (identifier) is fixed at
2566
+ * insert time and cannot be changed.
2567
+ *
2568
+ * @param choiceSetId - UUID of the parent choice set
2569
+ * @param valueId - UUID of the value to update
2570
+ * @param displayName - New human-readable display name for the value
2571
+ * @returns Promise resolving to the updated value ({@link ChoiceSetValueUpdateResponse})
2572
+ *
2573
+ * @example
2574
+ * ```typescript
2575
+ * // Get the choice set ID from getAll() and the value ID from getById()
2576
+ * const allChoiceSets = await choicesets.getAll();
2577
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2578
+ * const values = await choicesets.getById(expenseTypes.id);
2579
+ * const travel = values.items.find(v => v.name === 'TRAVEL');
2580
+ *
2581
+ * await choicesets.updateValueById(expenseTypes.id, travel.id, 'Business Travel');
2582
+ * ```
2583
+ * @internal
2584
+ */
2585
+ updateValueById(choiceSetId: string, valueId: string, displayName: string): Promise<ChoiceSetValueUpdateResponse>;
2586
+ /**
2587
+ * Deletes one or more values from a choice set.
2588
+ *
2589
+ * @param choiceSetId - UUID of the parent choice set
2590
+ * @param valueIds - Array of value UUIDs to delete
2591
+ * @returns Promise resolving when the values are deleted
2592
+ *
2593
+ * @example
2594
+ * ```typescript
2595
+ * // Get the value IDs from getById()
2596
+ * const values = await choicesets.getById('<choiceSetId>');
2597
+ * const idsToDelete = values.items.slice(0, 2).map(v => v.id);
2598
+ *
2599
+ * await choicesets.deleteValuesById('<choiceSetId>', idsToDelete);
2600
+ * ```
2601
+ * @internal
2602
+ */
2603
+ deleteValuesById(choiceSetId: string, valueIds: string[]): Promise<void>;
2434
2604
  }
2435
2605
 
2436
2606
  declare class ChoiceSetService extends BaseService implements ChoiceSetServiceModel {
@@ -2469,7 +2639,7 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2469
2639
  *
2470
2640
  * @example
2471
2641
  * ```typescript
2472
- * import { ChoiceSets } from '@uipath/uipath-typescript/choicesets';
2642
+ * import { ChoiceSets } from '@uipath/uipath-typescript/entities';
2473
2643
  *
2474
2644
  * const choiceSets = new ChoiceSets(sdk);
2475
2645
  *
@@ -2496,7 +2666,140 @@ declare class ChoiceSetService extends BaseService implements ChoiceSetServiceMo
2496
2666
  * ```
2497
2667
  */
2498
2668
  getById<T extends ChoiceSetGetByIdOptions = ChoiceSetGetByIdOptions>(choiceSetId: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ChoiceSetGetResponse> : NonPaginatedResponse<ChoiceSetGetResponse>>;
2669
+ /**
2670
+ * Creates a new Data Fabric choice set
2671
+ *
2672
+ * @param name - Choice set name. Must start with a
2673
+ * letter, may contain only letters, numbers, and underscores, length
2674
+ * 3–100 characters (e.g., `"expenseTypes"`).
2675
+ * @param options - Optional choice-set-level settings ({@link ChoiceSetCreateOptions})
2676
+ * @returns Promise resolving to the UUID of the created choice set
2677
+ *
2678
+ * @example
2679
+ * ```typescript
2680
+ * import { ChoiceSets } from '@uipath/uipath-typescript/entities';
2681
+ *
2682
+ * const choicesets = new ChoiceSets(sdk);
2683
+ *
2684
+ * // Minimal create
2685
+ * const expenseTypesId = await choicesets.create("expense_types");
2686
+ *
2687
+ * // With display name and description
2688
+ * const priorityLevelsId = await choicesets.create("priority_levels", {
2689
+ * displayName: "Priority Levels",
2690
+ * description: "Ticket priority categories",
2691
+ * });
2692
+ * ```
2693
+ * @internal
2694
+ */
2695
+ create(name: string, options?: ChoiceSetCreateOptions): Promise<string>;
2696
+ /**
2697
+ * Updates an existing choice set's metadata (display name and/or description).
2698
+ *
2699
+ * **At least one of `displayName` or `description` must be provided** —
2700
+ * the call throws `ValidationError` if both are omitted.
2701
+ *
2702
+ * @param choiceSetId - UUID of the choice set to update
2703
+ * @param options - Metadata fields to change ({@link ChoiceSetUpdateOptions})
2704
+ * @returns Promise resolving when the update is complete
2705
+ *
2706
+ * @example
2707
+ * ```typescript
2708
+ * // First, get the choice set ID using getAll()
2709
+ * const allChoiceSets = await choicesets.getAll();
2710
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2711
+ *
2712
+ * await choicesets.updateById(expenseTypes.id, {
2713
+ * displayName: "Expense Categories",
2714
+ * description: "Updated description",
2715
+ * });
2716
+ * ```
2717
+ * @internal
2718
+ */
2719
+ updateById(choiceSetId: string, options: ChoiceSetUpdateOptions): Promise<void>;
2720
+ /**
2721
+ * Deletes a Data Fabric choice set and all its values.
2722
+ *
2723
+ * @param choiceSetId - UUID of the choice set to delete
2724
+ * @returns Promise resolving when the choice set is deleted
2725
+ *
2726
+ * @example
2727
+ * ```typescript
2728
+ * // First, get the choice set ID using getAll()
2729
+ * const allChoiceSets = await choicesets.getAll();
2730
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2731
+ *
2732
+ * await choicesets.deleteById(expenseTypes.id);
2733
+ * ```
2734
+ * @internal
2735
+ */
2736
+ deleteById(choiceSetId: string): Promise<void>;
2737
+ /**
2738
+ * Inserts a single value into a choice set.
2739
+ *
2740
+ * @param choiceSetId - UUID of the parent choice set
2741
+ * @param name - Identifier name of the new value (e.g., `"TRAVEL"`)
2742
+ * @param options - Optional fields ({@link ChoiceSetValueInsertOptions})
2743
+ * @returns Promise resolving to the inserted value ({@link ChoiceSetValueInsertResponse})
2744
+ *
2745
+ * @example
2746
+ * ```typescript
2747
+ * // First, get the choice set ID using getAll()
2748
+ * const allChoiceSets = await choicesets.getAll();
2749
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2750
+ *
2751
+ * const inserted = await choicesets.insertValueById(expenseTypes.id, 'TRAVEL', {
2752
+ * displayName: 'Travel',
2753
+ * });
2754
+ * console.log(inserted.id);
2755
+ * ```
2756
+ * @internal
2757
+ */
2758
+ insertValueById(choiceSetId: string, name: string, options?: ChoiceSetValueInsertOptions): Promise<ChoiceSetValueInsertResponse>;
2759
+ /**
2760
+ * Updates an existing choice-set value's display name.
2761
+ *
2762
+ * Only `displayName` is mutable; the value's `name` (identifier) is fixed at
2763
+ * insert time and cannot be changed.
2764
+ *
2765
+ * @param choiceSetId - UUID of the parent choice set
2766
+ * @param valueId - UUID of the value to update
2767
+ * @param displayName - New human-readable display name for the value
2768
+ * @returns Promise resolving to the updated value ({@link ChoiceSetValueUpdateResponse})
2769
+ *
2770
+ * @example
2771
+ * ```typescript
2772
+ * // Get the choice set ID from getAll() and the value ID from getById()
2773
+ * const allChoiceSets = await choicesets.getAll();
2774
+ * const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
2775
+ * const values = await choicesets.getById(expenseTypes.id);
2776
+ * const travel = values.items.find(v => v.name === 'TRAVEL');
2777
+ *
2778
+ * await choicesets.updateValueById(expenseTypes.id, travel.id, 'Business Travel');
2779
+ * ```
2780
+ * @internal
2781
+ */
2782
+ updateValueById(choiceSetId: string, valueId: string, displayName: string): Promise<ChoiceSetValueUpdateResponse>;
2783
+ /**
2784
+ * Deletes one or more values from a choice set.
2785
+ *
2786
+ * @param choiceSetId - UUID of the parent choice set
2787
+ * @param valueIds - Array of value UUIDs to delete
2788
+ * @returns Promise resolving when the values are deleted
2789
+ *
2790
+ * @example
2791
+ * ```typescript
2792
+ * // Get the value IDs from getById()
2793
+ * const values = await choicesets.getById('<choiceSetId>');
2794
+ * const idsToDelete = values.items.slice(0, 2).map(v => v.id);
2795
+ *
2796
+ * await choicesets.deleteValuesById('<choiceSetId>', idsToDelete);
2797
+ * ```
2798
+ * @internal
2799
+ */
2800
+ deleteValuesById(choiceSetId: string, valueIds: string[]): Promise<void>;
2801
+ private resolveChoiceSetName;
2499
2802
  }
2500
2803
 
2501
2804
  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 };
2805
+ 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 };