@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
@@ -396,6 +396,11 @@ type BucketGetAllOptions = RequestOptions & PaginationOptions & {
396
396
  };
397
397
  interface BucketGetByIdOptions extends BaseOptions {
398
398
  }
399
+ /**
400
+ * Options for getting a single bucket by name
401
+ */
402
+ interface BucketGetByNameOptions extends FolderScopedOptions {
403
+ }
399
404
  /**
400
405
  * Maps header names to their values
401
406
  *
@@ -498,6 +503,45 @@ interface BlobItem {
498
503
  */
499
504
  lastModified: string | null;
500
505
  }
506
+ /**
507
+ * Represents a file or directory entry in a bucket
508
+ */
509
+ interface BucketFile {
510
+ /**
511
+ * Full path to the file or directory
512
+ */
513
+ path: string;
514
+ /**
515
+ * Content type of the file (empty for directories)
516
+ */
517
+ contentType: string;
518
+ /**
519
+ * Size of the file in bytes
520
+ */
521
+ size: number;
522
+ /**
523
+ * Whether the entry is a directory
524
+ */
525
+ isDirectory: boolean;
526
+ /**
527
+ * Identifier of the file, when available
528
+ */
529
+ id: string | null;
530
+ }
531
+ /**
532
+ * Options for listing files in a bucket directory
533
+ */
534
+ type BucketGetFilesOptions = RequestOptions & PaginationOptions & FolderScopedOptions & {
535
+ /**
536
+ * Regex pattern to filter file names (e.g., '.*\\.pdf$')
537
+ */
538
+ fileNameRegex?: string;
539
+ };
540
+ /**
541
+ * Options for deleting a file from a bucket
542
+ */
543
+ interface BucketDeleteFileOptions extends FolderScopedOptions {
544
+ }
501
545
  /**
502
546
  * Options for uploading files to a bucket
503
547
  */
@@ -606,6 +650,26 @@ interface BucketServiceModel {
606
650
  * ```
607
651
  */
608
652
  getById(bucketId: number, folderId: number, options?: BucketGetByIdOptions): Promise<BucketGetResponse>;
653
+ /**
654
+ * Retrieves a single orchestrator storage bucket by name.
655
+ *
656
+ * @param name - Bucket name to search for
657
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`) and optional query parameters (`expand`, `select`)
658
+ * @returns Promise resolving to a single bucket
659
+ * {@link BucketGetResponse}
660
+ * @example
661
+ * ```typescript
662
+ * // By folder ID
663
+ * await buckets.getByName('MyBucket', { folderId: <folderId> });
664
+ *
665
+ * // By folder key (GUID)
666
+ * await buckets.getByName('MyBucket', { folderKey: '<folderKey>' });
667
+ *
668
+ * // By folder path
669
+ * await buckets.getByName('MyBucket', { folderPath: '<folderPath>' });
670
+ * ```
671
+ */
672
+ getByName(name: string, options?: BucketGetByNameOptions): Promise<BucketGetResponse>;
609
673
  /**
610
674
  * Gets metadata for files in a bucket with optional filtering and pagination
611
675
  *
@@ -683,6 +747,64 @@ interface BucketServiceModel {
683
747
  * ```
684
748
  */
685
749
  uploadFile(options: BucketUploadFileOptions): Promise<BucketUploadResponse>;
750
+ /**
751
+ * Deletes a file from a bucket
752
+ *
753
+ * @param bucketId - The ID of the bucket
754
+ * @param path - The full path to the file to delete
755
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`)
756
+ * @returns Promise resolving when the file is deleted
757
+ * @example
758
+ * ```typescript
759
+ * // Delete a file from a bucket
760
+ * await buckets.deleteFile(<bucketId>, '/folder/file.pdf', { folderId: <folderId> });
761
+ * ```
762
+ */
763
+ deleteFile(bucketId: number, path: string, options?: BucketDeleteFileOptions): Promise<void>;
764
+ /**
765
+ * Lists all files in a bucket.
766
+ *
767
+ * Returns a flat, recursive listing of all files in the bucket. Supports regex filtering
768
+ * and filter / orderby / select / expand. {@link BucketFile} entries include
769
+ * `isDirectory` so callers can distinguish folders from files.
770
+ *
771
+ * The method returns either:
772
+ * - A NonPaginatedResponse with items array (when no pagination parameters are provided)
773
+ * - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
774
+ *
775
+ * @param bucketId - The ID of the bucket
776
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`) and optional parameters for regex filtering, query options, and pagination
777
+ * {@link BucketGetFilesOptions}
778
+ * @returns Promise resolving to either an array of files NonPaginatedResponse<BucketFile> or a PaginatedResponse<BucketFile> when pagination options are used.
779
+ * {@link BucketFile}
780
+ * @example
781
+ * ```typescript
782
+ * // List all files in the bucket
783
+ * const files = await buckets.getFiles(<bucketId>, { folderId: <folderId> });
784
+ *
785
+ * // Filter by regex pattern
786
+ * const pdfs = await buckets.getFiles(<bucketId>, {
787
+ * folderId: <folderId>,
788
+ * fileNameRegex: '.*\\.pdf$'
789
+ * });
790
+ *
791
+ * // First page with pagination
792
+ * const page1 = await buckets.getFiles(<bucketId>, { folderId: <folderId>, pageSize: 10 });
793
+ *
794
+ * // Navigate using cursor
795
+ * if (page1.hasNextPage) {
796
+ * const page2 = await buckets.getFiles(<bucketId>, { folderId: <folderId>, cursor: page1.nextCursor });
797
+ * }
798
+ *
799
+ * // Jump to specific page
800
+ * const page5 = await buckets.getFiles(<bucketId>, {
801
+ * folderId: <folderId>,
802
+ * jumpToPage: 5,
803
+ * pageSize: 10
804
+ * });
805
+ * ```
806
+ */
807
+ getFiles<T extends BucketGetFilesOptions = BucketGetFilesOptions>(bucketId: number, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<BucketFile> : NonPaginatedResponse<BucketFile>>;
686
808
  }
687
809
 
688
810
  declare class BucketService extends FolderScopedService implements BucketServiceModel {
@@ -704,6 +826,30 @@ declare class BucketService extends FolderScopedService implements BucketService
704
826
  * ```
705
827
  */
706
828
  getById(id: number, folderId: number, options?: BucketGetByIdOptions): Promise<BucketGetResponse>;
829
+ /**
830
+ * Retrieves a single orchestrator storage bucket by name.
831
+ *
832
+ * @param name - Bucket name to search for
833
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`) and optional query parameters (`expand`, `select`)
834
+ * @returns Promise resolving to a single bucket
835
+ * {@link BucketGetResponse}
836
+ * @example
837
+ * ```typescript
838
+ * import { Buckets } from '@uipath/uipath-typescript/buckets';
839
+ *
840
+ * const buckets = new Buckets(sdk);
841
+ *
842
+ * // By folder ID
843
+ * await buckets.getByName('MyBucket', { folderId: <folderId> });
844
+ *
845
+ * // By folder key (GUID)
846
+ * await buckets.getByName('MyBucket', { folderKey: '<folderKey>' });
847
+ *
848
+ * // By folder path
849
+ * await buckets.getByName('MyBucket', { folderPath: '<folderPath>' });
850
+ * ```
851
+ */
852
+ getByName(name: string, options?: BucketGetByNameOptions): Promise<BucketGetResponse>;
707
853
  /**
708
854
  * Gets all buckets across folders with optional filtering and folder scoping
709
855
  *
@@ -855,6 +1001,72 @@ declare class BucketService extends FolderScopedService implements BucketService
855
1001
  * @returns Promise resolving to blob file access information
856
1002
  */
857
1003
  private _getUri;
1004
+ /**
1005
+ * Lists all files in a bucket.
1006
+ *
1007
+ * Returns a flat, recursive listing of all files in the bucket. Supports regex filtering
1008
+ * and filter / orderby / select / expand. {@link BucketFile} entries include
1009
+ * `isDirectory` so callers can distinguish folders from files.
1010
+ *
1011
+ * The method returns either:
1012
+ * - A NonPaginatedResponse with items array (when no pagination parameters are provided)
1013
+ * - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
1014
+ *
1015
+ * @param bucketId - The ID of the bucket
1016
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`) and optional parameters for regex filtering, query options, and pagination
1017
+ * @returns Promise resolving to either an array of files NonPaginatedResponse<BucketFile> or a PaginatedResponse<BucketFile> when pagination options are used.
1018
+ *
1019
+ * @example
1020
+ * ```typescript
1021
+ * import { Buckets } from '@uipath/uipath-typescript/buckets';
1022
+ *
1023
+ * const buckets = new Buckets(sdk);
1024
+ *
1025
+ * // List all files in the bucket
1026
+ * const files = await buckets.getFiles(<bucketId>, { folderId: <folderId> });
1027
+ *
1028
+ * // Filter by regex pattern
1029
+ * const pdfs = await buckets.getFiles(<bucketId>, {
1030
+ * folderId: <folderId>,
1031
+ * fileNameRegex: '.*\\.pdf$'
1032
+ * });
1033
+ *
1034
+ * // First page with pagination
1035
+ * const page1 = await buckets.getFiles(<bucketId>, { folderId: <folderId>, pageSize: 10 });
1036
+ *
1037
+ * // Navigate using cursor
1038
+ * if (page1.hasNextPage) {
1039
+ * const page2 = await buckets.getFiles(<bucketId>, { folderId: <folderId>, cursor: page1.nextCursor });
1040
+ * }
1041
+ *
1042
+ * // Jump to specific page
1043
+ * const page5 = await buckets.getFiles(<bucketId>, {
1044
+ * folderId: <folderId>,
1045
+ * jumpToPage: 5,
1046
+ * pageSize: 10
1047
+ * });
1048
+ * ```
1049
+ */
1050
+ getFiles<T extends BucketGetFilesOptions = BucketGetFilesOptions>(bucketId: number, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<BucketFile> : NonPaginatedResponse<BucketFile>>;
1051
+ /**
1052
+ * Deletes a file from a bucket
1053
+ *
1054
+ * @param bucketId - The ID of the bucket
1055
+ * @param path - The full path to the file to delete
1056
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`)
1057
+ * @returns Promise resolving when the file is deleted
1058
+ *
1059
+ * @example
1060
+ * ```typescript
1061
+ * import { Buckets } from '@uipath/uipath-typescript/buckets';
1062
+ *
1063
+ * const buckets = new Buckets(sdk);
1064
+ *
1065
+ * // Delete a file from a bucket
1066
+ * await buckets.deleteFile(<bucketId>, '/folder/file.pdf', { folderId: <folderId> });
1067
+ * ```
1068
+ */
1069
+ deleteFile(bucketId: number, path: string, options?: BucketDeleteFileOptions): Promise<void>;
858
1070
  /**
859
1071
  * Gets a direct upload URL for a file in the bucket
860
1072
  *
@@ -865,4 +1077,4 @@ declare class BucketService extends FolderScopedService implements BucketService
865
1077
  }
866
1078
 
867
1079
  export { BucketOptions, BucketService, BucketService as Buckets };
868
- export type { BlobItem, BucketGetAllOptions, BucketGetByIdOptions, BucketGetFileMetaDataOptions, BucketGetFileMetaDataResponse, BucketGetFileMetaDataWithPaginationOptions, BucketGetReadUriOptions, BucketGetResponse, BucketGetUriOptions, BucketGetUriResponse, BucketServiceModel, BucketUploadFileOptions, BucketUploadResponse, ResponseDictionary };
1080
+ export type { BlobItem, BucketDeleteFileOptions, BucketFile, BucketGetAllOptions, BucketGetByIdOptions, BucketGetByNameOptions, BucketGetFileMetaDataOptions, BucketGetFileMetaDataResponse, BucketGetFileMetaDataWithPaginationOptions, BucketGetFilesOptions, BucketGetReadUriOptions, BucketGetResponse, BucketGetUriOptions, BucketGetUriResponse, BucketServiceModel, BucketUploadFileOptions, BucketUploadResponse, ResponseDictionary };