@uipath/uipath-typescript 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) 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/entities/index.cjs +253 -69
  21. package/dist/entities/index.d.ts +343 -116
  22. package/dist/entities/index.mjs +253 -69
  23. package/dist/feedback/index.cjs +16 -9
  24. package/dist/feedback/index.mjs +16 -9
  25. package/dist/governance/index.cjs +16 -9
  26. package/dist/governance/index.mjs +16 -9
  27. package/dist/index.cjs +529 -193
  28. package/dist/index.d.ts +2141 -750
  29. package/dist/index.mjs +529 -194
  30. package/dist/index.umd.js +529 -193
  31. package/dist/jobs/index.cjs +16 -9
  32. package/dist/jobs/index.mjs +16 -9
  33. package/dist/maestro-processes/index.cjs +16 -9
  34. package/dist/maestro-processes/index.mjs +16 -9
  35. package/dist/orchestrator-du-module/index.cjs +1788 -0
  36. package/dist/orchestrator-du-module/index.d.ts +757 -0
  37. package/dist/orchestrator-du-module/index.mjs +1785 -0
  38. package/dist/processes/index.cjs +16 -9
  39. package/dist/processes/index.mjs +16 -9
  40. package/dist/queues/index.cjs +16 -9
  41. package/dist/queues/index.mjs +16 -9
  42. package/dist/tasks/index.cjs +79 -13
  43. package/dist/tasks/index.d.ts +109 -4
  44. package/dist/tasks/index.mjs +80 -14
  45. package/dist/traces/index.cjs +303 -9
  46. package/dist/traces/index.d.ts +482 -2
  47. package/dist/traces/index.mjs +302 -10
  48. package/package.json +11 -1
@@ -439,10 +439,6 @@ interface BucketGetUriOptions extends BaseOptions {
439
439
  * The ID of the bucket
440
440
  */
441
441
  bucketId: number;
442
- /**
443
- * The ID of the folder
444
- */
445
- folderId: number;
446
442
  /**
447
443
  * The full path to the BlobFile
448
444
  */
@@ -453,9 +449,23 @@ interface BucketGetUriOptions extends BaseOptions {
453
449
  expiryInMinutes?: number;
454
450
  }
455
451
  /**
456
- * Request options for getting a read URI for a file in a bucket
452
+ * Optional parameters for the preferred `getReadUri(bucketId, path, options?)` form.
453
+ * Contains folder scoping (`folderId` / `folderKey` / `folderPath`),
454
+ * `expiryInMinutes`, and standard query options (`expand`, `select`).
455
+ */
456
+ interface BucketGetReadUriRequestOptions extends BaseOptions, FolderScopedOptions {
457
+ /**
458
+ * URL expiration time in minutes (0 for default)
459
+ */
460
+ expiryInMinutes?: number;
461
+ }
462
+ /**
463
+ * @deprecated Use the positional form: `getReadUri(bucketId, path, options?)`.
464
+ * See {@link BucketGetReadUriRequestOptions} for the supported options.
465
+ *
466
+ * Request options for getting a read URI for a file in a bucket.
457
467
  */
458
- interface BucketGetReadUriOptions extends BucketGetUriOptions {
468
+ interface BucketGetReadUriOptions extends BucketGetUriOptions, FolderScopedOptions {
459
469
  }
460
470
  /**
461
471
  * Request options for getting files in a bucket
@@ -469,7 +479,7 @@ interface BucketGetFileMetaDataOptions {
469
479
  /**
470
480
  * Request options for getting files in a bucket with pagination support
471
481
  */
472
- type BucketGetFileMetaDataWithPaginationOptions = BucketGetFileMetaDataOptions & PaginationOptions;
482
+ type BucketGetFileMetaDataWithPaginationOptions = BucketGetFileMetaDataOptions & PaginationOptions & FolderScopedOptions;
473
483
  /**
474
484
  * Response from the GetFiles API
475
485
  */
@@ -544,17 +554,23 @@ type BucketGetFilesOptions = RequestOptions & PaginationOptions & FolderScopedOp
544
554
  interface BucketDeleteFileOptions extends FolderScopedOptions {
545
555
  }
546
556
  /**
547
- * Options for uploading files to a bucket
557
+ * Optional parameters for the preferred
558
+ * `uploadFile(bucketId, path, content, options?)` form. Contains folder
559
+ * scoping (`folderId` / `folderKey` / `folderPath`).
560
+ */
561
+ interface BucketUploadFileRequestOptions extends FolderScopedOptions {
562
+ }
563
+ /**
564
+ * @deprecated Use the positional form: `uploadFile(bucketId, path, content, options?)`.
565
+ * See {@link BucketUploadFileRequestOptions} for the supported options.
566
+ *
567
+ * Options for uploading files to a bucket.
548
568
  */
549
- interface BucketUploadFileOptions {
569
+ interface BucketUploadFileOptions extends FolderScopedOptions {
550
570
  /**
551
571
  * The ID of the bucket to upload to
552
572
  */
553
573
  bucketId: number;
554
- /**
555
- * The folder/organization unit ID for context
556
- */
557
- folderId: number;
558
574
  /**
559
575
  * Path where the file should be stored in the bucket
560
576
  */
@@ -672,81 +688,128 @@ interface BucketServiceModel {
672
688
  */
673
689
  getByName(name: string, options?: BucketGetByNameOptions): Promise<BucketGetResponse>;
674
690
  /**
675
- * Gets metadata for files in a bucket with optional filtering and pagination
691
+ * Gets metadata for files in a bucket with optional filtering and pagination.
692
+ *
693
+ * Folder context can be supplied as `folderId`, `folderKey`, or `folderPath`
694
+ * inside the options.
676
695
  *
677
696
  * The method returns either:
678
697
  * - A NonPaginatedResponse with items array (when no pagination parameters are provided)
679
698
  * - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
680
699
  *
681
700
  * @param bucketId - The ID of the bucket to get file metadata from
682
- * @param folderId - Required folder ID for organization unit context
683
- * @param options - Optional parameters for filtering, pagination and access URL generation
701
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`) and optional parameters for filtering and pagination
684
702
  * @returns Promise resolving to either an array of files metadata NonPaginatedResponse<BlobItem> or a PaginatedResponse<BlobItem> when pagination options are used.
685
703
  * {@link BlobItem}
686
704
  * @example
687
705
  * ```typescript
688
- * // Get metadata for all files in a bucket
689
- * const fileMetadata = await buckets.getFileMetaData(<bucketId>, <folderId>);
706
+ * // By folder ID
707
+ * const fileMetadata = await buckets.getFileMetaData(<bucketId>, { folderId: <folderId> });
690
708
  *
691
- * // Get file metadata with a specific prefix
692
- * const prefixMetadata = await buckets.getFileMetaData(<bucketId>, <folderId>, {
693
- * prefix: '/folder1'
694
- * });
709
+ * // By folder key (GUID)
710
+ * await buckets.getFileMetaData(<bucketId>, { folderKey: '5f6dadf1-3677-49dc-8aca-c2999dd4b3ba' });
711
+ *
712
+ * // By folder path
713
+ * await buckets.getFileMetaData(<bucketId>, { folderPath: 'Shared/Finance' });
714
+ *
715
+ * // Filter by prefix
716
+ * await buckets.getFileMetaData(<bucketId>, { folderId: <folderId>, prefix: '/folder1' });
695
717
  *
696
718
  * // First page with pagination
697
- * const page1 = await buckets.getFileMetaData(<bucketId>, <folderId>, { pageSize: 10 });
719
+ * const page1 = await buckets.getFileMetaData(<bucketId>, { folderId: <folderId>, pageSize: 10 });
698
720
  *
699
721
  * // Navigate using cursor
700
722
  * if (page1.hasNextPage) {
701
- * const page2 = await buckets.getFileMetaData(<bucketId>, <folderId>, { cursor: page1.nextCursor });
723
+ * const page2 = await buckets.getFileMetaData(<bucketId>, { folderId: <folderId>, cursor: page1.nextCursor });
702
724
  * }
703
725
  * ```
704
726
  */
727
+ getFileMetaData<T extends BucketGetFileMetaDataWithPaginationOptions = BucketGetFileMetaDataWithPaginationOptions>(bucketId: number, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<BlobItem> : NonPaginatedResponse<BlobItem>>;
728
+ /**
729
+ * Gets metadata for files in a bucket — positional `folderId` form.
730
+ *
731
+ * @deprecated Use the options-object form: `getFileMetaData(bucketId, { folderId })`. See {@link BucketGetFileMetaDataWithPaginationOptions} for the supported options.
732
+ *
733
+ * @param bucketId - The ID of the bucket to get file metadata from
734
+ * @param folderId - Required folder ID (numeric)
735
+ * @param options - Optional parameters for filtering and pagination
736
+ * @returns Promise resolving to either an array of files metadata NonPaginatedResponse<BlobItem> or a PaginatedResponse<BlobItem> when pagination options are used.
737
+ * {@link BlobItem}
738
+ */
705
739
  getFileMetaData<T extends BucketGetFileMetaDataWithPaginationOptions = BucketGetFileMetaDataWithPaginationOptions>(bucketId: number, folderId: number, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<BlobItem> : NonPaginatedResponse<BlobItem>>;
706
740
  /**
707
- * Gets a direct download URL for a file in the bucket
741
+ * Gets a direct download URL for a file in the bucket.
742
+ *
743
+ * Folder context can be supplied as `folderId`, `folderKey`, or `folderPath`
744
+ * in the options.
708
745
  *
709
- * @param options - Contains bucketId, folderId, file path and optional expiry time
746
+ * @param bucketId - The ID of the bucket
747
+ * @param path - The full path to the file
748
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`) and optional `expiryInMinutes`
710
749
  * @returns Promise resolving to blob file access information
711
750
  * {@link BucketGetUriResponse}
712
751
  * @example
713
752
  * ```typescript
714
- * // Get download URL for a file
715
- * const fileAccess = await buckets.getReadUri({
716
- * bucketId: <bucketId>,
717
- * folderId: <folderId>,
718
- * path: '/folder/file.pdf'
719
- * });
753
+ * // By folder ID
754
+ * await buckets.getReadUri(<bucketId>, '/folder/file.pdf', { folderId: <folderId> });
755
+ *
756
+ * // By folder key (GUID)
757
+ * await buckets.getReadUri(<bucketId>, '/folder/file.pdf', { folderKey: '5f6dadf1-3677-49dc-8aca-c2999dd4b3ba' });
758
+ *
759
+ * // By folder path
760
+ * await buckets.getReadUri(<bucketId>, '/folder/file.pdf', { folderPath: 'Shared/Finance' });
720
761
  * ```
721
762
  */
763
+ getReadUri(bucketId: number, path: string, options?: BucketGetReadUriRequestOptions): Promise<BucketGetUriResponse>;
764
+ /**
765
+ * Gets a direct download URL for a file in the bucket — options-only form.
766
+ *
767
+ * @deprecated Use the positional form: `getReadUri(bucketId, path, options?)`. See {@link BucketGetReadUriRequestOptions} for the supported options.
768
+ *
769
+ * @param options - Contains bucketId, folder scoping (`folderId` / `folderKey` / `folderPath`), file path and optional expiry time
770
+ * @returns Promise resolving to blob file access information
771
+ * {@link BucketGetUriResponse}
772
+ */
722
773
  getReadUri(options: BucketGetReadUriOptions): Promise<BucketGetUriResponse>;
723
774
  /**
724
- * Uploads a file to a bucket
775
+ * Uploads a file to a bucket.
725
776
  *
726
- * @param options - Options for file upload including bucket ID, folder ID, path, content, and optional parameters
777
+ * Folder context can be supplied as `folderId`, `folderKey`, or `folderPath`
778
+ * in the options.
779
+ *
780
+ * @param bucketId - The ID of the bucket to upload to
781
+ * @param path - Path where the file should be stored in the bucket
782
+ * @param content - File content to upload
783
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`)
727
784
  * @returns Promise resolving bucket upload response
728
785
  * {@link BucketUploadResponse}
729
786
  * @example
730
787
  * ```typescript
731
- * // Upload a file from browser
788
+ * // By folder ID
732
789
  * const file = new File(['file content'], 'example.txt');
733
- * const result = await buckets.uploadFile({
734
- * bucketId: <bucketId>,
735
- * folderId: <folderId>,
736
- * path: '/folder/example.txt',
737
- * content: file
738
- * });
790
+ * await buckets.uploadFile(<bucketId>, '/folder/example.txt', file, { folderId: <folderId> });
791
+ *
792
+ * // By folder key (GUID)
793
+ * await buckets.uploadFile(<bucketId>, '/folder/example.txt', file, { folderKey: '5f6dadf1-3677-49dc-8aca-c2999dd4b3ba' });
794
+ *
795
+ * // By folder path
796
+ * await buckets.uploadFile(<bucketId>, '/folder/example.txt', file, { folderPath: 'Shared/Finance' });
739
797
  *
740
798
  * // In Node env with Uint8Array or Buffer
741
799
  * const content = new TextEncoder().encode('file content');
742
- * const result = await buckets.uploadFile({
743
- * bucketId: <bucketId>,
744
- * folderId: <folderId>,
745
- * path: '/folder/example.txt',
746
- * content,
747
- * });
800
+ * await buckets.uploadFile(<bucketId>, '/folder/example.txt', content, { folderId: <folderId> });
748
801
  * ```
749
802
  */
803
+ uploadFile(bucketId: number, path: string, content: Blob | Uint8Array<ArrayBuffer> | File, options?: BucketUploadFileRequestOptions): Promise<BucketUploadResponse>;
804
+ /**
805
+ * Uploads a file to a bucket — options-only form.
806
+ *
807
+ * @deprecated Use the positional form: `uploadFile(bucketId, path, content, options?)`. See {@link BucketUploadFileRequestOptions} for the supported options.
808
+ *
809
+ * @param options - Options for file upload including bucket ID, folder scoping (`folderId` / `folderKey` / `folderPath`), path, and content
810
+ * @returns Promise resolving bucket upload response
811
+ * {@link BucketUploadResponse}
812
+ */
750
813
  uploadFile(options: BucketUploadFileOptions): Promise<BucketUploadResponse>;
751
814
  /**
752
815
  * Deletes a file from a bucket
@@ -897,16 +960,19 @@ declare class BucketService extends FolderScopedService implements BucketService
897
960
  */
898
961
  getAll<T extends BucketGetAllOptions = BucketGetAllOptions>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<BucketGetResponse> : NonPaginatedResponse<BucketGetResponse>>;
899
962
  /**
900
- * Gets metadata for files in a bucket with optional filtering and pagination
963
+ * Gets metadata for files in a bucket with optional filtering and pagination.
964
+ *
965
+ * Folder context can be supplied as `folderId`, `folderKey`, or `folderPath`
966
+ * inside the options.
901
967
  *
902
968
  * The method returns either:
903
969
  * - A NonPaginatedResponse with items array (when no pagination parameters are provided)
904
970
  * - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
905
971
  *
906
972
  * @param bucketId - The ID of the bucket to get file metadata from
907
- * @param folderId - Required folder ID for organization unit context
908
- * @param options - Optional parameters for filtering, pagination and access URL generation
973
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`) and optional parameters for filtering and pagination
909
974
  * @returns Promise resolving to the list of file metadata in the bucket or paginated result
975
+ * {@link BlobItem}
910
976
  *
911
977
  * @example
912
978
  * ```typescript
@@ -914,29 +980,52 @@ declare class BucketService extends FolderScopedService implements BucketService
914
980
  *
915
981
  * const buckets = new Buckets(sdk);
916
982
  *
917
- * // Get metadata for all files in a bucket
918
- * const fileMetadata = await buckets.getFileMetaData(123, 456);
983
+ * // By folder ID
984
+ * const fileMetadata = await buckets.getFileMetaData(<bucketId>, { folderId: <folderId> });
919
985
  *
920
- * // Get file metadata with a specific prefix
921
- * const fileMetadata = await buckets.getFileMetaData(123, 456, {
922
- * prefix: '/folder1'
923
- * });
986
+ * // By folder key (GUID)
987
+ * await buckets.getFileMetaData(<bucketId>, { folderKey: '5f6dadf1-3677-49dc-8aca-c2999dd4b3ba' });
988
+ *
989
+ * // By folder path
990
+ * await buckets.getFileMetaData(<bucketId>, { folderPath: 'Shared/Finance' });
991
+ *
992
+ * // Filter by prefix
993
+ * await buckets.getFileMetaData(<bucketId>, { folderId: <folderId>, prefix: '/folder1' });
924
994
  *
925
995
  * // First page with pagination
926
- * const page1 = await buckets.getFileMetaData(123, 456, { pageSize: 10 });
996
+ * const page1 = await buckets.getFileMetaData(<bucketId>, { folderId: <folderId>, pageSize: 10 });
927
997
  *
928
998
  * // Navigate using cursor
929
999
  * if (page1.hasNextPage) {
930
- * const page2 = await buckets.getFileMetaData(123, 456, { cursor: page1.nextCursor });
1000
+ * const page2 = await buckets.getFileMetaData(<bucketId>, { folderId: <folderId>, cursor: page1.nextCursor });
931
1001
  * }
932
1002
  * ```
933
1003
  */
1004
+ getFileMetaData<T extends BucketGetFileMetaDataWithPaginationOptions = BucketGetFileMetaDataWithPaginationOptions>(bucketId: number, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<BlobItem> : NonPaginatedResponse<BlobItem>>;
1005
+ /**
1006
+ * Gets metadata for files in a bucket — positional `folderId` form.
1007
+ *
1008
+ * @deprecated Use the options-object form: `getFileMetaData(bucketId, { folderId })`. See {@link BucketGetFileMetaDataWithPaginationOptions} for the supported options.
1009
+ *
1010
+ * @param bucketId - The ID of the bucket to get file metadata from
1011
+ * @param folderId - Required folder ID (numeric)
1012
+ * @param options - Optional parameters for filtering and pagination
1013
+ * @returns Promise resolving to the list of file metadata in the bucket or paginated result
1014
+ * {@link BlobItem}
1015
+ */
934
1016
  getFileMetaData<T extends BucketGetFileMetaDataWithPaginationOptions = BucketGetFileMetaDataWithPaginationOptions>(bucketId: number, folderId: number, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<BlobItem> : NonPaginatedResponse<BlobItem>>;
935
1017
  /**
936
- * Uploads a file to a bucket
1018
+ * Uploads a file to a bucket.
1019
+ *
1020
+ * Folder context can be supplied as `folderId`, `folderKey`, or `folderPath`
1021
+ * in the options.
937
1022
  *
938
- * @param options - Options for file upload including bucket ID, folder ID, path, content, and optional parameters
1023
+ * @param bucketId - The ID of the bucket to upload to
1024
+ * @param path - Path where the file should be stored in the bucket
1025
+ * @param content - File content to upload
1026
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`)
939
1027
  * @returns Promise resolving to a response with success status and HTTP status code
1028
+ * {@link BucketUploadResponse}
940
1029
  *
941
1030
  * @example
942
1031
  * ```typescript
@@ -944,31 +1033,43 @@ declare class BucketService extends FolderScopedService implements BucketService
944
1033
  *
945
1034
  * const buckets = new Buckets(sdk);
946
1035
  *
947
- * // Upload a file from browser
1036
+ * // By folder ID
948
1037
  * const file = new File(['file content'], 'example.txt');
949
- * const result = await buckets.uploadFile({
950
- * bucketId: 123,
951
- * folderId: 456,
952
- * path: '/folder/example.txt',
953
- * content: file
954
- * });
1038
+ * await buckets.uploadFile(<bucketId>, '/folder/example.txt', file, { folderId: <folderId> });
1039
+ *
1040
+ * // By folder key (GUID)
1041
+ * await buckets.uploadFile(<bucketId>, '/folder/example.txt', file, { folderKey: '5f6dadf1-3677-49dc-8aca-c2999dd4b3ba' });
1042
+ *
1043
+ * // By folder path
1044
+ * await buckets.uploadFile(<bucketId>, '/folder/example.txt', file, { folderPath: 'Shared/Finance' });
955
1045
  *
956
1046
  * // In Node env with Buffer
957
1047
  * const buffer = Buffer.from('file content');
958
- * const result = await buckets.uploadFile({
959
- * bucketId: 123,
960
- * folderId: 456,
961
- * path: '/folder/example.txt',
962
- * content: buffer
963
- * });
1048
+ * await buckets.uploadFile(<bucketId>, '/folder/example.txt', buffer, { folderId: <folderId> });
964
1049
  * ```
965
1050
  */
1051
+ uploadFile(bucketId: number, path: string, content: Blob | Uint8Array<ArrayBuffer> | File, options?: BucketUploadFileRequestOptions): Promise<BucketUploadResponse>;
1052
+ /**
1053
+ * Uploads a file to a bucket — options-only form.
1054
+ *
1055
+ * @deprecated Use the positional form: `uploadFile(bucketId, path, content, options?)`. See {@link BucketUploadFileRequestOptions} for the supported options.
1056
+ *
1057
+ * @param options - Options for file upload including bucket ID, folder scoping (`folderId` / `folderKey` / `folderPath`), path, and content
1058
+ * @returns Promise resolving to a response with success status and HTTP status code
1059
+ * {@link BucketUploadResponse}
1060
+ */
966
1061
  uploadFile(options: BucketUploadFileOptions): Promise<BucketUploadResponse>;
967
1062
  /**
968
- * Gets a direct download URL for a file in the bucket
1063
+ * Gets a direct download URL for a file in the bucket.
1064
+ *
1065
+ * Folder context can be supplied as `folderId`, `folderKey`, or `folderPath`
1066
+ * inside the options.
969
1067
  *
970
- * @param options - Contains bucketId, folderId, file path and optional expiry time
1068
+ * @param bucketId - The ID of the bucket
1069
+ * @param path - The full path to the file
1070
+ * @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`) and optional `expiryInMinutes`
971
1071
  * @returns Promise resolving to blob file access information
1072
+ * {@link BucketGetUriResponse}
972
1073
  *
973
1074
  * @example
974
1075
  * ```typescript
@@ -976,14 +1077,26 @@ declare class BucketService extends FolderScopedService implements BucketService
976
1077
  *
977
1078
  * const buckets = new Buckets(sdk);
978
1079
  *
979
- * // Get download URL for a file
980
- * const fileAccess = await buckets.getReadUri({
981
- * bucketId: 123,
982
- * folderId: 456,
983
- * path: '/folder/file.pdf'
984
- * });
1080
+ * // By folder ID
1081
+ * await buckets.getReadUri(<bucketId>, '/folder/file.pdf', { folderId: <folderId> });
1082
+ *
1083
+ * // By folder key (GUID)
1084
+ * await buckets.getReadUri(<bucketId>, '/folder/file.pdf', { folderKey: '5f6dadf1-3677-49dc-8aca-c2999dd4b3ba' });
1085
+ *
1086
+ * // By folder path
1087
+ * await buckets.getReadUri(<bucketId>, '/folder/file.pdf', { folderPath: 'Shared/Finance' });
985
1088
  * ```
986
1089
  */
1090
+ getReadUri(bucketId: number, path: string, options?: BucketGetReadUriRequestOptions): Promise<BucketGetUriResponse>;
1091
+ /**
1092
+ * Gets a direct download URL for a file in the bucket — options-only form.
1093
+ *
1094
+ * @deprecated Use the positional form: `getReadUri(bucketId, path, options?)`. See {@link BucketGetReadUriRequestOptions} for the supported options.
1095
+ *
1096
+ * @param options - Contains bucketId, folder scoping (`folderId` / `folderKey` / `folderPath`), file path and optional expiry time
1097
+ * @returns Promise resolving to blob file access information
1098
+ * {@link BucketGetUriResponse}
1099
+ */
987
1100
  getReadUri(options: BucketGetReadUriOptions): Promise<BucketGetUriResponse>;
988
1101
  /**
989
1102
  * Uploads content to the provided URI
@@ -996,8 +1109,8 @@ declare class BucketService extends FolderScopedService implements BucketService
996
1109
  * Private method to handle common URI request logic
997
1110
  * @param endpoint - The API endpoint to call
998
1111
  * @param bucketId - The bucket ID
999
- * @param folderId - The folder ID
1000
1112
  * @param path - The file path
1113
+ * @param headers - Pre-built folder-context headers (built via `resolveFolderHeaders`)
1001
1114
  * @param queryOptions - Additional query parameters
1002
1115
  * @returns Promise resolving to blob file access information
1003
1116
  */
@@ -1071,11 +1184,11 @@ declare class BucketService extends FolderScopedService implements BucketService
1071
1184
  /**
1072
1185
  * Gets a direct upload URL for a file in the bucket
1073
1186
  *
1074
- * @param options - Contains bucketId, folderId, file path, optional expiry time
1187
+ * @param options - Contains bucketId, file path, optional expiry time, and pre-built folder-context headers
1075
1188
  * @returns Promise resolving to blob file access information
1076
1189
  */
1077
1190
  private _getWriteUri;
1078
1191
  }
1079
1192
 
1080
1193
  export { BucketOptions, BucketService, BucketService as Buckets };
1081
- export type { BlobItem, BucketDeleteFileOptions, BucketFile, BucketGetAllOptions, BucketGetByIdOptions, BucketGetByNameOptions, BucketGetFileMetaDataOptions, BucketGetFileMetaDataResponse, BucketGetFileMetaDataWithPaginationOptions, BucketGetFilesOptions, BucketGetReadUriOptions, BucketGetResponse, BucketGetUriOptions, BucketGetUriResponse, BucketServiceModel, BucketUploadFileOptions, BucketUploadResponse, ResponseDictionary };
1194
+ export type { BlobItem, BucketDeleteFileOptions, BucketFile, BucketGetAllOptions, BucketGetByIdOptions, BucketGetByNameOptions, BucketGetFileMetaDataOptions, BucketGetFileMetaDataResponse, BucketGetFileMetaDataWithPaginationOptions, BucketGetFilesOptions, BucketGetReadUriOptions, BucketGetReadUriRequestOptions, BucketGetResponse, BucketGetUriOptions, BucketGetUriResponse, BucketServiceModel, BucketUploadFileOptions, BucketUploadFileRequestOptions, BucketUploadResponse, ResponseDictionary };