@rezamirzapour/pod-sdk 1.0.4 → 1.0.7

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.
package/dist/index.d.mts CHANGED
@@ -43,18 +43,27 @@ interface SendOtpOptions {
43
43
  interface PodUrlsConfig {
44
44
  accounts?: string;
45
45
  apiPod?: string;
46
+ apiPodSandbox?: string;
46
47
  cms?: string;
48
+ iums?: string;
49
+ notification?: string;
50
+ podreport?: string;
47
51
  podspace?: string;
48
52
  podform?: string;
49
- notification?: string;
50
- iums?: string;
53
+ sandboxCms?: string;
54
+ sandboxCmsClient?: string;
55
+ sandboxPodspace?: string;
56
+ sandboxStream?: string;
57
+ stream?: string;
51
58
  website?: string;
59
+ [key: string]: string | undefined;
52
60
  }
53
61
  interface PodSdkConfig {
54
62
  apiToken?: string;
55
63
  clientId?: string;
56
64
  clientSecret?: string;
57
65
  privateKeyPem?: string;
66
+ sandbox?: boolean;
58
67
  urls?: PodUrlsConfig;
59
68
  revalidate?: number | string;
60
69
  timeout?: number;
@@ -350,41 +359,1438 @@ declare class CustomPostService {
350
359
  createCrud<DataType>(config: CustomPostCrudConfig): CustomPostCrudService<DataType>;
351
360
  }
352
361
 
353
- interface PodspaceUploadResult {
362
+ /**
363
+ * Generic Podspace API REST Response wrapper.
364
+ */
365
+ interface PodspaceRestResponse<T = any> {
366
+ status?: number;
367
+ hasError?: boolean;
368
+ error?: string;
369
+ message?: string;
370
+ path?: string;
371
+ timestamp?: string;
372
+ result: T;
373
+ reference?: string;
374
+ errorCode?: number;
375
+ [key: string]: any;
376
+ }
377
+ /**
378
+ * Backward-compatible upload response alias.
379
+ */
380
+ type PodspaceUploadResponse = PodspaceRestResponse<SpaceFile>;
381
+ /**
382
+ * Backward-compatible upload result alias.
383
+ */
384
+ type PodspaceUploadResult = SpaceFile;
385
+ /**
386
+ * Request options for Podspace operations.
387
+ */
388
+ interface PodspaceRequestOptions {
389
+ headers?: Record<string, string>;
390
+ cache?: RequestCache;
391
+ revalidate?: number | false;
392
+ signal?: AbortSignal;
393
+ }
394
+ type CachePolicy = 'NEVER_CACHE' | 'IMMUTABLE' | 'CACHE_WITH_REVALIDATE' | 'SHORT_CACHE' | 'LONG_CACHE' | 'SHORT_CACHE_WITH_REVALIDATE' | 'LONG_CACHE_WITH_REVALIDATE';
395
+ type ThumbnailStatus = 'WAITING_FOR_THUMBNAIL' | 'FAILED' | 'WITHOUT_THUMBNAIL' | 'THUMBNAIL_EXIST' | 'THUMBNAIL_EXIST_GIF' | 'THUMBNAIL_EXIST_JPEG' | 'THUMBNAIL_EXIST_PNG';
396
+ type AccessLevel = 'VIEW' | 'CUSTOM' | 'EDIT';
397
+ type ShareType = 'PUBLIC' | 'LINK' | 'PRIVATE' | 'ORGANIZATION' | 'UNIQUE';
398
+ type ShareAccess = 'MOVE' | 'TRASH' | 'WIPE' | 'CREATE_FOLDER' | 'CREATE_FILE' | 'REPLACE' | 'MODIFY_PROPERTY' | 'DOWNLOAD' | 'COPY' | 'VIEW' | 'PRIVATE_SHARE' | 'GET_LINK' | 'PUBLIC_SHARE';
399
+ interface PodspaceUser {
400
+ username?: string;
401
+ name?: string;
402
+ ssoId?: number;
403
+ avatar?: string;
404
+ roles?: string[];
405
+ type?: 'user' | 'space' | 'business' | 'application' | 'thing' | string;
406
+ [key: string]: any;
407
+ }
408
+ interface FileVersion {
409
+ hash?: string;
410
+ version?: number;
411
+ size?: number;
412
+ created?: number;
413
+ updated?: number;
414
+ uploader?: PodspaceUser;
415
+ [key: string]: any;
416
+ }
417
+ interface SpaceFolder {
354
418
  hash: string;
355
419
  name: string;
420
+ link?: string;
421
+ type?: string;
422
+ isRemovedTemporary?: boolean;
423
+ isRemovedPermanently?: boolean;
424
+ parentHash?: string;
425
+ owner?: PodspaceUser;
426
+ uploader?: PodspaceUser;
427
+ attributes?: string[];
428
+ tags?: string[];
429
+ description?: string;
430
+ metaData?: Record<string, any>;
431
+ totalFilesCount?: number;
432
+ totalFoldersCount?: number;
433
+ filesCount?: number;
434
+ foldersCount?: number;
435
+ size?: number;
436
+ nativeMataData?: string;
437
+ zone?: string;
438
+ isPublic?: boolean;
439
+ isShared?: boolean;
440
+ isBookmarked?: boolean;
441
+ userCanTrash?: boolean;
442
+ created?: number;
443
+ updated?: number;
444
+ spaceEntities?: SpaceEntity[];
445
+ accessLevel?: AccessLevel;
446
+ [key: string]: any;
447
+ }
448
+ interface SpaceFile {
449
+ hash: string;
450
+ name: string;
451
+ link?: string;
452
+ type?: string;
453
+ extension?: string;
454
+ isRemovedTemporary?: boolean;
455
+ isRemovedPermanently?: boolean;
456
+ parentHash?: string;
457
+ owner?: PodspaceUser;
458
+ uploader?: PodspaceUser;
459
+ attributes?: string[];
460
+ tags?: string[];
461
+ description?: string;
462
+ metaData?: Record<string, any>;
463
+ breadCrumb?: SpaceFolder[];
464
+ size?: number;
465
+ nativeMataData?: string;
466
+ zone?: string;
467
+ isPublic?: boolean;
468
+ isShared?: boolean;
469
+ isBookmarked?: boolean;
470
+ userCanTrash?: boolean;
471
+ created?: number;
472
+ updated?: number;
473
+ version?: number;
474
+ versions?: FileVersion[];
475
+ thumbnail?: ThumbnailStatus;
476
+ cachePolicy?: CachePolicy;
477
+ sha256?: string;
478
+ md5?: string;
479
+ restricted?: boolean;
480
+ [key: string]: any;
481
+ }
482
+ type SpaceEntity = SpaceFile | SpaceFolder;
483
+ interface ApiPageLink {
484
+ next?: string;
485
+ previous?: string;
486
+ self?: string;
487
+ first?: string;
488
+ last?: string;
489
+ }
490
+ interface ApiPageList<T = SpaceEntity> {
491
+ entity?: SpaceEntity;
492
+ list: T[];
493
+ breadcrumb?: SpaceFolder[];
494
+ count?: number;
495
+ links?: ApiPageLink;
496
+ workspace?: any;
497
+ members?: any[];
498
+ [key: string]: any;
499
+ }
500
+ interface ApiSimplePageList<T = any> {
501
+ list: T[];
502
+ count?: number;
503
+ group?: any;
504
+ entity?: any;
505
+ user?: any;
506
+ owner?: any;
507
+ groups?: any[];
508
+ applications?: any[];
509
+ members?: any[];
510
+ [key: string]: any;
511
+ }
512
+ interface Share {
513
+ hash: string;
514
+ entity?: SpaceEntity;
515
+ entityType?: 'FILE' | 'FOLDER';
516
+ type?: ShareType;
517
+ level?: AccessLevel;
518
+ expiration?: number;
519
+ isRemoved?: boolean;
520
+ creator?: PodspaceUser;
521
+ person?: PodspaceUser;
522
+ created?: number;
523
+ updated?: number;
524
+ accessList?: ShareAccess[];
525
+ [key: string]: any;
526
+ }
527
+ interface WorkspaceMember {
528
+ user?: PodspaceUser;
529
+ accessLevel?: AccessLevel;
530
+ role?: string;
531
+ created?: number;
532
+ [key: string]: any;
533
+ }
534
+ interface Workspace {
535
+ id?: number;
536
+ ssoId?: number;
537
+ username?: string;
538
+ title?: string;
539
+ description?: string;
540
+ creator?: PodspaceUser;
541
+ members?: WorkspaceMember[];
542
+ [key: string]: any;
543
+ }
544
+ interface UserGroup {
545
+ hash: string;
546
+ name?: string;
547
+ owner?: PodspaceUser;
548
+ users?: PodspaceUser[];
549
+ files?: SpaceFile[];
550
+ isRemoved?: boolean;
551
+ created?: number;
552
+ updated?: number;
553
+ size?: number;
554
+ fileSizeLimit?: number;
555
+ folder?: SpaceFolder;
556
+ cachePolicy?: CachePolicy;
557
+ metadata?: Record<string, any>;
558
+ [key: string]: any;
559
+ }
560
+ interface UserUsageReport {
561
+ usedSize?: number;
562
+ totalSize?: number;
563
+ count?: number;
564
+ [key: string]: any;
565
+ }
566
+ interface UserPlan {
567
+ id?: number;
568
+ name?: string;
569
+ maxStorageSize?: number;
570
+ maxUploadSize?: number;
571
+ [key: string]: any;
572
+ }
573
+ interface UploadFileParams {
574
+ path?: string;
575
+ folderHash?: string;
576
+ isPublic?: boolean;
577
+ description?: string;
578
+ tags?: string[] | string;
579
+ userMetadata?: Record<string, any> | string;
580
+ uniqueName?: boolean;
581
+ zoneNames?: string[] | string;
582
+ cachePolicy?: CachePolicy;
583
+ streamable?: boolean;
584
+ relevantIdentity?: string;
585
+ relevantIdentityType?: string;
586
+ relationType?: string;
587
+ [key: string]: any;
588
+ }
589
+ interface UploadMultipleFilesParams {
590
+ path?: string;
591
+ folderHash?: string;
592
+ isPublic?: boolean;
593
+ uploadKey?: string;
594
+ description?: string;
595
+ tags?: string[] | string;
596
+ userMetadata?: Record<string, any> | string;
597
+ uniqueName?: boolean;
598
+ zoneNames?: string[] | string;
599
+ cachePolicy?: CachePolicy;
600
+ streamable?: boolean;
601
+ [key: string]: any;
602
+ }
603
+ interface UploadImageBase64Params {
604
+ filename: string;
605
+ file: string;
606
+ path?: string;
607
+ folderHash?: string;
608
+ isPublic?: boolean;
609
+ description?: string;
610
+ tags?: string[] | string;
611
+ userMetadata?: Record<string, any> | string;
612
+ uniqueName?: boolean;
613
+ zoneNames?: string[] | string;
614
+ cachePolicy?: CachePolicy;
615
+ [key: string]: any;
616
+ }
617
+ interface ReplaceFileParams {
618
+ hashType?: string;
619
+ uploadKey?: string;
620
+ }
621
+ interface DownloadFileParams {
622
+ hashType?: string;
623
+ name?: string;
624
+ extension?: string;
625
+ password?: string;
626
+ previewType?: string;
627
+ size?: number;
628
+ quality?: number;
629
+ width?: number;
630
+ height?: number;
631
+ keepRatio?: boolean;
632
+ forceConvert?: boolean;
633
+ crop?: boolean;
634
+ cropX?: number;
635
+ cropY?: number;
636
+ cropWidth?: number;
637
+ cropHeight?: number;
638
+ cachePolicy?: CachePolicy;
639
+ accessLevel?: AccessLevel;
640
+ [key: string]: any;
641
+ }
642
+ interface DownloadImageParams {
643
+ size?: number;
644
+ name?: string;
645
+ extension?: string;
646
+ quality?: number;
647
+ width?: number;
648
+ height?: number;
649
+ keepRatio?: boolean;
650
+ forceConvert?: boolean;
651
+ crop?: boolean;
652
+ cropX?: number;
653
+ cropY?: number;
654
+ cropWidth?: number;
655
+ cropHeight?: number;
656
+ password?: string;
657
+ cachePolicy?: CachePolicy;
658
+ accessLevel?: AccessLevel;
659
+ [key: string]: any;
660
+ }
661
+ interface DownloadThumbnailParams {
662
+ password?: string;
663
+ cachePolicy?: CachePolicy;
664
+ accessLevel?: AccessLevel;
665
+ }
666
+ interface DownloadZipParams {
667
+ entityHashes: string[] | string;
668
+ customName?: string;
669
+ password?: string;
670
+ }
671
+ interface GetUploadLinkParams {
356
672
  size: number;
357
- extension: string;
358
- created: number;
359
- updated: number;
360
- path: string;
361
- isPublic: boolean;
673
+ expiration: number;
674
+ destination?: string;
675
+ oneTimeUse?: boolean;
676
+ zoneNames?: string[];
677
+ fileTypeLimits?: string[];
678
+ isPublic?: boolean;
679
+ streamable?: boolean;
680
+ userGroupHash?: string;
681
+ userMetadata?: Record<string, any>;
362
682
  [key: string]: any;
363
683
  }
364
- interface PodspaceUploadResponse {
365
- hasError: boolean;
366
- message?: string;
367
- errorCode?: number;
368
- result?: PodspaceUploadResult;
684
+ interface CreateFolderParams {
685
+ name: string;
686
+ parentHash?: string;
687
+ zoneNames?: string[];
688
+ userMetadata?: Record<string, any>;
689
+ description?: string;
690
+ tags?: string[] | string;
691
+ uniqueName?: boolean;
692
+ [key: string]: any;
693
+ }
694
+ interface GetFolderChildrenParams {
695
+ start?: number;
696
+ size?: number;
697
+ order?: string;
698
+ isDesc?: boolean;
699
+ breadcrumb?: boolean;
700
+ shareHash?: string;
701
+ password?: string;
702
+ filterAttribute?: string;
703
+ filterValue?: string;
704
+ sequentialOrder?: boolean;
705
+ [key: string]: any;
706
+ }
707
+ interface SearchFilesParams {
708
+ words?: string;
709
+ title?: string;
710
+ parentHash?: string;
711
+ majorType?: string;
712
+ minorType?: string;
713
+ after?: number;
714
+ before?: number;
715
+ minSize?: number;
716
+ maxSize?: number;
717
+ breadcrumb?: boolean;
718
+ start?: number;
719
+ size?: number;
720
+ order?: string;
721
+ isDesc?: boolean;
722
+ sequentialOrder?: boolean;
723
+ [key: string]: any;
724
+ }
725
+ interface PaginationParams {
726
+ start?: number;
727
+ size?: number;
728
+ order?: string;
729
+ isDesc?: boolean;
730
+ [key: string]: any;
731
+ }
732
+ interface FinalizeResumableParams {
733
+ uploadType: string;
734
+ resumableType: string;
735
+ fileHash?: string;
736
+ usergroupHash?: string;
737
+ folderHash?: string;
738
+ userMetadata?: Record<string, any>;
739
+ description?: string;
740
+ tags?: string[] | string;
741
+ zoneName?: string;
742
+ cachePolicy?: CachePolicy;
743
+ streamable?: boolean;
744
+ isPublic?: boolean;
745
+ uniqueName?: boolean;
746
+ [key: string]: any;
747
+ }
748
+ interface CreateLinkParams {
749
+ userGroupHash?: string;
750
+ expiration?: number;
751
+ revokeAbility?: boolean;
752
+ type?: string;
753
+ accessLevel?: AccessLevel;
754
+ [key: string]: any;
755
+ }
756
+ interface UpdateLinkParams {
757
+ linkType: string;
758
+ size?: number;
759
+ destination?: string;
760
+ userGroupHash?: string;
761
+ expiration?: number;
762
+ oneTimeUse?: boolean;
763
+ fileTypeLimits?: string[];
764
+ userMetadata?: Record<string, any>;
765
+ zoneName?: string;
766
+ isPublic?: boolean;
767
+ streamable?: boolean;
768
+ [key: string]: any;
769
+ }
770
+ interface ShareEntityParams {
771
+ identityType?: string;
772
+ expiration: number;
773
+ access?: ShareAccess[] | string;
774
+ }
775
+ interface MakePublicParams {
776
+ expiration: number;
777
+ password?: string;
778
+ access?: ShareAccess[] | string;
779
+ }
780
+ interface CreateWorkspaceParams {
781
+ username: string;
782
+ title: string;
783
+ description?: string;
784
+ }
785
+ interface UpdateWorkspaceParams {
786
+ identityType?: string;
787
+ username?: string;
788
+ title?: string;
789
+ description?: string;
790
+ }
791
+ interface CreateUserGroupParams {
792
+ name: string;
793
+ folderHash?: string;
794
+ zoneNames?: string[];
795
+ fileSizeLimit?: number;
796
+ cachePolicy?: CachePolicy;
797
+ autoShare?: boolean;
798
+ allowMemberShare?: boolean;
799
+ metadata?: Record<string, any>;
800
+ [key: string]: any;
801
+ }
802
+ interface GetBookmarksParams {
803
+ start?: number;
804
+ size?: number;
805
+ order?: string;
806
+ isDesc?: boolean;
807
+ filterAttribute?: string;
808
+ filterValue?: string;
809
+ [key: string]: any;
810
+ }
811
+
812
+ interface PodspaceUploadDownloadServiceOptions {
813
+ http: NextHttp;
814
+ baseUrl: string;
815
+ revalidate?: number;
816
+ }
817
+ declare class PodspaceUploadDownloadService {
818
+ private http;
819
+ private baseUrl;
820
+ private revalidate;
821
+ constructor(options: PodspaceUploadDownloadServiceOptions);
822
+ /**
823
+ * Upload a single file via FormData to POD Podspace storage.
824
+ * Swagger: POST /api/files
825
+ */
826
+ uploadFile(formData: FormData, paramsOrPath?: string | UploadFileParams, isPublic?: boolean, options?: PodspaceRequestOptions): Promise<PodspaceUploadResponse>;
827
+ /**
828
+ * Upload multiple files simultaneously using FormData.
829
+ * Swagger: POST /api/files/multiple
830
+ */
831
+ uploadMultipleFiles(formData: FormData, params?: UploadMultipleFilesParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile[]>>;
832
+ /**
833
+ * Upload an image formatted as Base64 string.
834
+ * Swagger: POST /api/images/base64
835
+ */
836
+ uploadImageBase64(params: UploadImageBase64Params, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
837
+ /**
838
+ * Replace the content of an existing file.
839
+ * Swagger: PUT /api/files/{hash}
840
+ */
841
+ replaceFile(hash: string, formData: FormData, params?: ReplaceFileParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
842
+ /**
843
+ * Upload a file into an existing reserved link hash.
844
+ * Swagger: POST /api/files/{hash}
845
+ */
846
+ uploadByLink(hash: string, formData: FormData, params?: Record<string, any>, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
847
+ /**
848
+ * Downloads raw file data.
849
+ * Swagger: GET /api/files/{hash}
850
+ */
851
+ downloadFile(hash: string, params?: DownloadFileParams, options?: PodspaceRequestOptions): Promise<Blob>;
852
+ /**
853
+ * Downloads processed image with optional resize, crop, or format conversion.
854
+ * Swagger: GET /api/v2/images/{hash}
855
+ */
856
+ downloadImage(hash: string, params?: DownloadImageParams, options?: PodspaceRequestOptions): Promise<Blob>;
857
+ /**
858
+ * Downloads file thumbnail.
859
+ * Swagger: GET /api/files/{hash}/thumbnail
860
+ */
861
+ downloadThumbnail(hash: string, params?: DownloadThumbnailParams, options?: PodspaceRequestOptions): Promise<Blob>;
862
+ /**
863
+ * Downloads multiple files and folders compressed into a single zip file.
864
+ * Swagger: GET /api/files
865
+ */
866
+ downloadFilesAsZip(params: DownloadZipParams, options?: PodspaceRequestOptions): Promise<Blob>;
867
+ /**
868
+ * Obtains a pre-signed upload link.
869
+ * Swagger: GET /api/files/link
870
+ */
871
+ getUploadLink(params: GetUploadLinkParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<{
872
+ link: string;
873
+ hash?: string;
874
+ }>>;
875
+ /**
876
+ * Builds the direct URL to view or download a file.
877
+ */
878
+ getFileUrl(hash: string, isPublic?: boolean): string;
879
+ /**
880
+ * Builds URL to view/download an image with optional dimensions/crops.
881
+ */
882
+ getImageUrl(hash: string, params?: DownloadImageParams): string;
883
+ /**
884
+ * Builds URL for a file thumbnail.
885
+ */
886
+ getThumbnailUrl(hash: string, params?: DownloadThumbnailParams): string;
887
+ }
888
+
889
+ interface PodspaceFilesServiceOptions {
890
+ http: NextHttp;
891
+ revalidate?: number;
892
+ }
893
+ declare class PodspaceFilesService {
894
+ private http;
895
+ private revalidate;
896
+ constructor(options: PodspaceFilesServiceOptions);
897
+ /**
898
+ * Retrieves full detail of a file or folder by its hash.
899
+ * Swagger: GET /api/files/{hash}/detail
900
+ */
901
+ getFileDetail(hash: string, params?: {
902
+ password?: string;
903
+ breadcrumb?: boolean;
904
+ shareHash?: string;
905
+ nativeMetadata?: boolean;
906
+ includeSizeAndCount?: boolean;
907
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
908
+ /**
909
+ * Retrieves file details using its storage path.
910
+ * Swagger: GET /api/files/details
911
+ */
912
+ getFileDetailByPath(path: string, params?: {
913
+ parentHash?: string;
914
+ password?: string;
915
+ entityType?: string;
916
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
917
+ /**
918
+ * Checks if an entity with given name exists in the folder.
919
+ * Swagger: GET /api/files/{hash}/exist
920
+ */
921
+ checkEntityExist(hash: string, fileName: string, params?: {
922
+ uniqueName?: boolean;
923
+ type?: string;
924
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
925
+ /**
926
+ * Renames a file or folder.
927
+ * Swagger: PUT /api/files/{hash}/rename
928
+ */
929
+ renameEntity(hash: string, newName: string, uniqueName?: boolean, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity>>;
930
+ /**
931
+ * Moves a file or folder to a new destination folder.
932
+ * Swagger: PUT /api/files/{hash}/move
933
+ */
934
+ moveEntity(hash: string, destFolderHash: string, params?: {
935
+ policy?: string;
936
+ uniqueName?: boolean;
937
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity>>;
938
+ /**
939
+ * Copies a file or folder to a specified destination folder.
940
+ * Swagger: PUT /api/files/{hash}/copy
941
+ */
942
+ copyEntity(hash: string, destFolderHash: string, params?: {
943
+ policy?: string;
944
+ uniqueName?: boolean;
945
+ copyType?: string;
946
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity>>;
947
+ /**
948
+ * Moves a file or folder to the trash.
949
+ * Swagger: DELETE /api/files/{hash}
950
+ */
951
+ trashEntity(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
952
+ /**
953
+ * Updates file attributes (e.g. streamable flag).
954
+ * Swagger: PATCH /api/files/{hash}
955
+ */
956
+ updateFile(hash: string, params: {
957
+ streamable?: boolean;
958
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
959
+ /**
960
+ * Searches across user files content and folder names.
961
+ * Swagger: GET /api/files/search
962
+ */
963
+ searchFiles(params?: SearchFilesParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<ApiPageList<SpaceEntity>>>;
964
+ /**
965
+ * Retrieves list of recently accessed/uploaded files.
966
+ * Swagger: GET /api/v2/files/recent
967
+ */
968
+ getRecentFiles(params?: {
969
+ start?: number;
970
+ size?: number;
971
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile[]>>;
972
+ /**
973
+ * Retrieves versions history of a file.
974
+ * Swagger: GET /api/files/v2/{hash}/versions
975
+ */
976
+ getFileVersions(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<FileVersion[]>>;
977
+ /**
978
+ * Rolls back a file to its previous version.
979
+ * Swagger: PATCH /api/files/versions/{hash}
980
+ */
981
+ rollbackFileVersion(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
982
+ /**
983
+ * Retrieves native metadata of a file.
984
+ * Swagger: GET /api/v2/files/{hash}/native/metadata
985
+ */
986
+ getFileNativeMetadata(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
987
+ /**
988
+ * Converts supported document file to PDF.
989
+ * Swagger: GET /api/files/{hash}/convert
990
+ */
991
+ convertFileToPdf(hash: string, convertType?: string, options?: PodspaceRequestOptions): Promise<Blob>;
992
+ /**
993
+ * Retrieves breadcrumb path for a file or folder.
994
+ * Swagger: GET /api/files/{hash}/breadcrumb
995
+ */
996
+ getFileBreadcrumb(hash: string, params?: {
997
+ shareHash?: string;
998
+ password?: string;
999
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFolder[]>>;
1000
+ /**
1001
+ * Compresses multiple files and folders into a zip archive on the cloud.
1002
+ * Swagger: POST /api/files/compress
1003
+ */
1004
+ compressToZip(params: {
1005
+ name: string;
1006
+ fileHashes?: string[];
1007
+ folderHashes?: string[];
1008
+ destFolderHash?: string;
1009
+ zoneNames?: string[];
1010
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
1011
+ /**
1012
+ * Extracts a zip archive to a destination folder.
1013
+ * Swagger: PUT /api/files/{hash}/extract
1014
+ */
1015
+ extractZip(hash: string, params?: {
1016
+ destFolderHash?: string;
1017
+ zoneNames?: string[];
1018
+ uniqueName?: boolean;
1019
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1020
+ /**
1021
+ * Sets or updates the cache policy for a file.
1022
+ * Swagger: PUT /api/files/{hash}/cachePolicy
1023
+ */
1024
+ setCachePolicy(hash: string, cachePolicy: CachePolicy, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
1025
+ /**
1026
+ * Retrieves recent actions and activities done on a file or folder.
1027
+ * Swagger: GET /api/files/{hash}/activities
1028
+ */
1029
+ getFileActivities(hash: string, params?: {
1030
+ start?: number;
1031
+ size?: number;
1032
+ order?: string;
1033
+ isDesc?: boolean;
1034
+ pagination?: boolean;
1035
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1036
+ /**
1037
+ * Retrieves specific activity log by type.
1038
+ * Swagger: GET /api/files/{hash}/activities/{activity}
1039
+ */
1040
+ getSpecificActivities(hash: string, activity: string, params?: {
1041
+ start?: number;
1042
+ size?: number;
1043
+ isDesc?: boolean;
1044
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1045
+ /**
1046
+ * Retrieves count of specific activities done on file/folder.
1047
+ * Swagger: GET /api/files/{hash}/activities/{activity}/count
1048
+ */
1049
+ getActivitiesCount(hash: string, activity: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<number>>;
1050
+ }
1051
+
1052
+ interface PodspaceFoldersServiceOptions {
1053
+ http: NextHttp;
1054
+ revalidate?: number;
1055
+ }
1056
+ declare class PodspaceFoldersService {
1057
+ private http;
1058
+ private revalidate;
1059
+ constructor(options: PodspaceFoldersServiceOptions);
1060
+ /**
1061
+ * Creates a new folder.
1062
+ * Swagger: POST /api/folders
1063
+ */
1064
+ createFolder(params: CreateFolderParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFolder>>;
1065
+ /**
1066
+ * Creates nested directories inside a parent folder.
1067
+ * Swagger: POST /api/folders/{hash}/directories
1068
+ */
1069
+ createDirectories(hash: string, directories: string[] | string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFolder[]>>;
1070
+ /**
1071
+ * Retrieves subfolders and files inside a specified folder.
1072
+ * Swagger: GET /api/folders/{hash}/children
1073
+ */
1074
+ getFolderChildren(hash: string, params?: GetFolderChildrenParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<ApiPageList>>;
1075
+ /**
1076
+ * Retrieves recent folders accessed or created by user.
1077
+ * Swagger: GET /api/v2/folders/recent
1078
+ */
1079
+ getRecentFolders(params?: {
1080
+ start?: number;
1081
+ size?: number;
1082
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFolder[]>>;
1083
+ /**
1084
+ * Checks if user has enough space and permission to upload a file into the folder.
1085
+ * Swagger: GET /api/folders/{hash}/check/upload
1086
+ */
1087
+ checkFolderUploadAccess(hash: string, size: number, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1088
+ /**
1089
+ * Retrieves folder actions summary for a specific date.
1090
+ * Swagger: GET /api/folders/{folderHash}/actions
1091
+ */
1092
+ getFolderActions(folderHash: string, date: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1093
+ }
1094
+
1095
+ interface PodspaceResumableServiceOptions {
1096
+ http: NextHttp;
1097
+ }
1098
+ declare class PodspaceResumableService {
1099
+ private http;
1100
+ constructor(options: PodspaceResumableServiceOptions);
1101
+ /**
1102
+ * Initiates a resumable upload session.
1103
+ * Swagger: POST /api/files/resumable
1104
+ */
1105
+ create(headers?: Record<string, string>, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<{
1106
+ id: string;
1107
+ location?: string;
1108
+ }>>;
1109
+ /**
1110
+ * Uploads a binary chunk to a resumable upload session.
1111
+ * Swagger: PATCH /api/files/resumable/{id}
1112
+ */
1113
+ append(id: string, chunk: Blob | Buffer | Uint8Array, offset: number, options?: PodspaceRequestOptions): Promise<any>;
1114
+ /**
1115
+ * Checks current uploaded byte offset for a resumable session.
1116
+ * Swagger: HEAD /api/files/resumable/{id}
1117
+ */
1118
+ getStatus(id: string, options?: PodspaceRequestOptions): Promise<number>;
1119
+ /**
1120
+ * Finalizes resumable upload and creates the file entity in the user's storage.
1121
+ * Swagger: POST /api/files/resumable/{id}/finalize
1122
+ */
1123
+ finalizeUpload(id: string, params: FinalizeResumableParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
1124
+ }
1125
+
1126
+ interface PodspaceLinksServiceOptions {
1127
+ http: NextHttp;
1128
+ }
1129
+ declare class PodspaceLinksService {
1130
+ private http;
1131
+ constructor(options: PodspaceLinksServiceOptions);
1132
+ /**
1133
+ * Generates a download or integration public link for a file.
1134
+ * Swagger: GET /api/links/files/{hash}
1135
+ */
1136
+ createLink(hash: string, params?: CreateLinkParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<{
1137
+ link: string;
1138
+ [key: string]: any;
1139
+ }>>;
1140
+ /**
1141
+ * Retrieves list of links created by current user.
1142
+ * Swagger: GET /api/links
1143
+ */
1144
+ getUserLinks(params: {
1145
+ linkType: string;
1146
+ folderHash?: string;
1147
+ typeLimits?: string;
1148
+ oneTimeUse?: boolean;
1149
+ start?: number;
1150
+ size?: number;
1151
+ order?: string;
1152
+ isDesc?: boolean;
1153
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<ApiPageList>>;
1154
+ /**
1155
+ * Retrieves details of a specific link.
1156
+ * Swagger: GET /api/links/{link}/detail
1157
+ */
1158
+ getLinkDetail(link: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1159
+ /**
1160
+ * Updates settings and permissions of a link.
1161
+ * Swagger: PATCH /api/links/{link}
1162
+ */
1163
+ updateLink(link: string, params: UpdateLinkParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1164
+ /**
1165
+ * Revokes an existing link.
1166
+ * Swagger: DELETE /api/links/{link}
1167
+ */
1168
+ revokeLink(link: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1169
+ /**
1170
+ * Downloads a file using its public shared link.
1171
+ * Swagger: GET /api/links/{hash}
1172
+ */
1173
+ downloadFileByLink(hash: string, params?: Record<string, any>, options?: PodspaceRequestOptions): Promise<Blob>;
1174
+ }
1175
+
1176
+ interface PodspaceSharesServiceOptions {
1177
+ http: NextHttp;
1178
+ }
1179
+ declare class PodspaceSharesService {
1180
+ private http;
1181
+ constructor(options: PodspaceSharesServiceOptions);
1182
+ /**
1183
+ * Shares a file or folder with a user by their identity (username/ssoId).
1184
+ * Swagger: POST /api/files/{hash}/shares/users/{identity}
1185
+ */
1186
+ shareWithUser(hash: string, identity: string | number, params: ShareEntityParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<Share>>;
1187
+ /**
1188
+ * Removes share for a specific user identity.
1189
+ * Swagger: DELETE /api/files/{hash}/shares/users/{identity}
1190
+ */
1191
+ removeShareWithUser(hash: string, identity: string | number, identityType?: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1192
+ /**
1193
+ * Makes a file or folder public with optional password and expiration.
1194
+ * Swagger: POST /api/files/{hash}/public
1195
+ */
1196
+ makePublic(hash: string, params: MakePublicParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<Share>>;
1197
+ /**
1198
+ * Retrieves list of files and folders shared with current user.
1199
+ * Swagger: GET /api/shares
1200
+ */
1201
+ getSharedWithMe(params?: {
1202
+ start?: number;
1203
+ size?: number;
1204
+ order?: string;
1205
+ isDesc?: boolean;
1206
+ identity?: string;
1207
+ identityType?: string;
1208
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<Share[]>>;
1209
+ /**
1210
+ * Retrieves details of a share by its share hash.
1211
+ * Swagger: GET /api/shares/{shareHash}
1212
+ */
1213
+ getShareDetail(shareHash: string, password?: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<Share>>;
1214
+ /**
1215
+ * Revokes a share by its share hash.
1216
+ * Swagger: DELETE /api/shares/{shareHash}
1217
+ */
1218
+ revokeShare(shareHash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1219
+ /**
1220
+ * Retrieves shares list of a specific file or folder.
1221
+ * Swagger: GET /api/files/{hash}/shares
1222
+ */
1223
+ getFileShares(hash: string, params?: {
1224
+ person?: string;
1225
+ identityType?: string;
1226
+ start?: number;
1227
+ size?: number;
1228
+ pageList?: boolean;
1229
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<Share[]>>;
1230
+ /**
1231
+ * Sets or removes password for a share using the share hash.
1232
+ * Swagger: PUT /api/shares/{hash}/password
1233
+ */
1234
+ setSharePassword(shareHash: string, password?: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1235
+ /**
1236
+ * Sets or removes password for a share using the entity hash.
1237
+ * Swagger: PUT /api/files/{hash}/shares/password
1238
+ */
1239
+ setEntityPassword(entityHash: string, password?: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1240
+ }
1241
+
1242
+ interface PodspaceTrashServiceOptions {
1243
+ http: NextHttp;
1244
+ }
1245
+ declare class PodspaceTrashService {
1246
+ private http;
1247
+ constructor(options: PodspaceTrashServiceOptions);
1248
+ /**
1249
+ * Retrieves list of trashed files and folders.
1250
+ * Swagger: GET /api/trashes
1251
+ */
1252
+ getTrashList(params?: {
1253
+ start?: number;
1254
+ size?: number;
1255
+ order?: string;
1256
+ isDesc?: boolean;
1257
+ filterAttribute?: string;
1258
+ filterValue?: string;
1259
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity[]>>;
1260
+ /**
1261
+ * Restores a single file or folder from the trash.
1262
+ * Swagger: PUT /api/trashes/{hash}/restore
1263
+ */
1264
+ restore(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity>>;
1265
+ /**
1266
+ * Restores all entities from trash.
1267
+ * Swagger: POST /api/trashes/restore
1268
+ */
1269
+ restoreAll(options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1270
+ /**
1271
+ * Permanently deletes a single file or folder from the trash.
1272
+ * Swagger: DELETE /api/trashes/{hash}
1273
+ */
1274
+ deletePermanently(hash: string, force?: boolean, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1275
+ /**
1276
+ * Permanently empties all files and folders from the trash.
1277
+ * Swagger: DELETE /api/trashes
1278
+ */
1279
+ emptyTrash(options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1280
+ /**
1281
+ * Sets auto clean-up period for trash in days.
1282
+ * Swagger: POST /api/trashes/periods/{period}
1283
+ */
1284
+ setAutoCleanUpPeriod(period: number | string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1285
+ }
1286
+
1287
+ interface PodspaceTagsServiceOptions {
1288
+ http: NextHttp;
1289
+ }
1290
+ declare class PodspaceTagsService {
1291
+ private http;
1292
+ constructor(options: PodspaceTagsServiceOptions);
1293
+ /**
1294
+ * Adds tags to a file or folder.
1295
+ * Swagger: POST /api/tags
1296
+ */
1297
+ addTags(hash: string, tags: string[] | string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1298
+ /**
1299
+ * Deletes tags from a file or folder.
1300
+ * Swagger: DELETE /api/tags
1301
+ */
1302
+ deleteTags(hash: string, tags: string[] | string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1303
+ /**
1304
+ * Retrieves tags of a file or folder.
1305
+ * Swagger: GET /api/tags/entities/{hash}
1306
+ */
1307
+ getEntityTags(hash: string, password?: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<string[]>>;
1308
+ /**
1309
+ * Searches for existing tags with autocomplete.
1310
+ * Swagger: GET /api/tags/search/{tagName}
1311
+ */
1312
+ searchTags(tagName: string, params?: {
1313
+ start?: number;
1314
+ size?: number;
1315
+ order?: string;
1316
+ isDesc?: boolean;
1317
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<string[]>>;
1318
+ /**
1319
+ * Retrieves list of files/folders that contain a specific tag.
1320
+ * Swagger: GET /api/tags/{tagName}
1321
+ */
1322
+ getEntitiesByTag(tagName: string, params?: {
1323
+ start?: number;
1324
+ size?: number;
1325
+ order?: string;
1326
+ isDesc?: boolean;
1327
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity[]>>;
1328
+ }
1329
+
1330
+ interface PodspaceBookmarksServiceOptions {
1331
+ http: NextHttp;
1332
+ }
1333
+ declare class PodspaceBookmarksService {
1334
+ private http;
1335
+ constructor(options: PodspaceBookmarksServiceOptions);
1336
+ /**
1337
+ * Retrieves list of bookmarked files and folders.
1338
+ * Swagger: GET /api/bookmarks
1339
+ */
1340
+ getBookmarks(params?: {
1341
+ start?: number;
1342
+ size?: number;
1343
+ order?: string;
1344
+ isDesc?: boolean;
1345
+ filterAttribute?: string;
1346
+ filterValue?: string;
1347
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity[]>>;
1348
+ /**
1349
+ * Adds a file or folder to bookmarks.
1350
+ * Swagger: POST /api/bookmarks
1351
+ */
1352
+ addBookmark(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1353
+ /**
1354
+ * Removes a file or folder from bookmarks.
1355
+ * Swagger: DELETE /api/bookmarks
1356
+ */
1357
+ removeBookmark(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1358
+ }
1359
+
1360
+ interface PodspaceMetadataServiceOptions {
1361
+ http: NextHttp;
1362
+ }
1363
+ declare class PodspaceMetadataService {
1364
+ private http;
1365
+ constructor(options: PodspaceMetadataServiceOptions);
1366
+ /**
1367
+ * Retrieves metadata key-value dictionary for a file.
1368
+ * Swagger: GET /api/files/{hash}/metadata
1369
+ */
1370
+ getMetadata(hash: string, keys?: string[] | string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<Record<string, any>>>;
1371
+ /**
1372
+ * Adds or updates metadata dictionary for a file.
1373
+ * Swagger: PUT /api/files/{hash}/metadata
1374
+ */
1375
+ setMetadata(hash: string, metadata: Record<string, any>, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1376
+ /**
1377
+ * Deletes specific metadata keys from a file.
1378
+ * Swagger: DELETE /api/files/{hash}/metadata
1379
+ */
1380
+ deleteMetadata(hash: string, keys: string[] | string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1381
+ /**
1382
+ * Searches metadata across files with specified parent.
1383
+ * Swagger: POST /api/files/metadata/search
1384
+ */
1385
+ searchMetadata(queryBody: Record<string, any>, params?: {
1386
+ parentHash?: string;
1387
+ start?: number;
1388
+ size?: number;
1389
+ isDesc?: boolean;
1390
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1391
+ /**
1392
+ * Retrieves description of a file or folder.
1393
+ * Swagger: GET /api/files/description
1394
+ */
1395
+ getDescription(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<string>>;
1396
+ /**
1397
+ * Adds or updates description of a file or folder.
1398
+ * Swagger: PUT /api/files/description
1399
+ */
1400
+ setDescription(hash: string, description: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1401
+ /**
1402
+ * Deletes description of a file or folder.
1403
+ * Swagger: DELETE /api/files/description
1404
+ */
1405
+ deleteDescription(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1406
+ }
1407
+
1408
+ interface PodspaceUserGroupsServiceOptions {
1409
+ http: NextHttp;
1410
+ }
1411
+ declare class PodspaceUserGroupsService {
1412
+ private http;
1413
+ constructor(options: PodspaceUserGroupsServiceOptions);
1414
+ /**
1415
+ * Creates a new user group for team collaboration.
1416
+ * Swagger: POST /api/usergroups
1417
+ */
1418
+ createUserGroup(params: CreateUserGroupParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<UserGroup>>;
1419
+ /**
1420
+ * Retrieves user group info by hash.
1421
+ * Swagger: GET /api/usergroups/{userGroupHash}
1422
+ */
1423
+ getUserGroup(userGroupHash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<UserGroup>>;
1424
+ /**
1425
+ * Deletes a user group.
1426
+ * Swagger: DELETE /api/usergroups/{userGroupHash}
1427
+ */
1428
+ deleteUserGroup(userGroupHash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1429
+ /**
1430
+ * Retrieves list of users in a user group.
1431
+ * Swagger: GET /api/usergroups/{userGroupHash}/users
1432
+ */
1433
+ getUserGroupUsers(userGroupHash: string, params?: {
1434
+ start?: number;
1435
+ size?: number;
1436
+ isDesc?: boolean;
1437
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<PodspaceUser[]>>;
1438
+ /**
1439
+ * Adds a user to the user group.
1440
+ * Swagger: POST /api/usergroups/{userGroupHash}/users
1441
+ */
1442
+ addUserToGroup(userGroupHash: string, identity: string | number, identityType?: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1443
+ /**
1444
+ * Removes a user from the user group.
1445
+ * Swagger: DELETE /api/usergroups/{userGroupHash}/users
1446
+ */
1447
+ removeUserFromGroup(userGroupHash: string, identity: string | number, identityType?: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1448
+ /**
1449
+ * Retrieves list of files belonging to user group.
1450
+ * Swagger: GET /api/usergroups/{usergroupHash}/files
1451
+ */
1452
+ getUserGroupFiles(userGroupHash: string, params?: {
1453
+ start?: number;
1454
+ size?: number;
1455
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile[]>>;
1456
+ /**
1457
+ * Uploads a file directly into a user group.
1458
+ * Swagger: POST /api/usergroups/{userGroupHash}/files
1459
+ */
1460
+ uploadToUserGroup(userGroupHash: string, formData: FormData, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
1461
+ /**
1462
+ * Uploads an image directly into a user group.
1463
+ * Swagger: POST /api/usergroups/{userGroupHash}/images
1464
+ */
1465
+ uploadImageToUserGroup(userGroupHash: string, formData: FormData, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
1466
+ /**
1467
+ * Retrieves storage usage report for a user group.
1468
+ * Swagger: GET /api/usergroups/{userGroupHash}/usage
1469
+ */
1470
+ getUserGroupUsage(userGroupHash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1471
+ }
1472
+
1473
+ interface PodspaceWorkspacesServiceOptions {
1474
+ http: NextHttp;
1475
+ }
1476
+ declare class PodspaceWorkspacesService {
1477
+ private http;
1478
+ constructor(options: PodspaceWorkspacesServiceOptions);
1479
+ /**
1480
+ * Creates a new collaborative Workspace.
1481
+ * Swagger: POST /api/workspaces
1482
+ */
1483
+ createWorkspace(params: CreateWorkspaceParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<Workspace>>;
1484
+ /**
1485
+ * Retrieves workspace details by its identity/username.
1486
+ * Swagger: GET /api/workspaces/{identity}
1487
+ */
1488
+ getWorkspace(identity: string | number, identityType?: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<Workspace>>;
1489
+ /**
1490
+ * Updates workspace information.
1491
+ * Swagger: PATCH /api/workspaces/{identity}
1492
+ */
1493
+ updateWorkspace(identity: string | number, params?: UpdateWorkspaceParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<Workspace>>;
1494
+ /**
1495
+ * Retrieves members list of a workspace.
1496
+ * Swagger: GET /api/workspaces/{identity}/members
1497
+ */
1498
+ getWorkspaceMembers(identity: string | number, identityType?: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<WorkspaceMember[]>>;
1499
+ /**
1500
+ * Adds or updates a member's access level in a workspace.
1501
+ * Swagger: PUT /api/workspaces/{identity}/members/{userIdentity}
1502
+ */
1503
+ updateWorkspaceMember(identity: string | number, userIdentity: string | number, accessLevel: AccessLevel, params?: {
1504
+ identityType?: string;
1505
+ userIdentityType?: string;
1506
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<WorkspaceMember>>;
1507
+ /**
1508
+ * Removes a member from a workspace.
1509
+ * Swagger: DELETE /api/workspaces/{identity}/members/{userIdentity}
1510
+ */
1511
+ removeWorkspaceMember(identity: string | number, userIdentity: string | number, params?: {
1512
+ identityType?: string;
1513
+ userIdentityType?: string;
1514
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1515
+ }
1516
+
1517
+ interface PodspaceMeServiceOptions {
1518
+ http: NextHttp;
1519
+ }
1520
+ declare class PodspaceMeService {
1521
+ private http;
1522
+ constructor(options: PodspaceMeServiceOptions);
1523
+ /**
1524
+ * Retrieves profile information of current authenticated user.
1525
+ * Swagger: GET /api/me
1526
+ */
1527
+ getUser(options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<PodspaceUser>>;
1528
+ /**
1529
+ * Retrieves workspaces accessible to the user.
1530
+ * Swagger: GET /api/me/workspaces
1531
+ */
1532
+ getUserWorkspaces(params?: {
1533
+ start?: number;
1534
+ size?: number;
1535
+ isDesc?: boolean;
1536
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any[]>>;
1537
+ /**
1538
+ * Retrieves user account status on PodSpace.
1539
+ * Swagger: GET /api/me/status
1540
+ */
1541
+ getUserStatus(options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1542
+ /**
1543
+ * Retrieves user OAuth scopes.
1544
+ * Swagger: GET /api/me/scope
1545
+ */
1546
+ getUserScope(options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<string[]>>;
1547
+ /**
1548
+ * Retrieves storage usage report for current user.
1549
+ * Swagger: GET /api/me/reports/usage
1550
+ */
1551
+ getUserUsageReport(majorType?: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<UserUsageReport>>;
1552
+ /**
1553
+ * Retrieves user storage plans and quota limits.
1554
+ * Swagger: GET /api/me/plans
1555
+ */
1556
+ getUserPlans(options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<UserPlan[]>>;
1557
+ /**
1558
+ * Retrieves or creates the user's personal root folder.
1559
+ * Swagger: GET /api/me/folder
1560
+ */
1561
+ getPersonalFolder(options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFolder>>;
1562
+ /**
1563
+ * Retrieves or creates the user's dedicated chat attachments folder.
1564
+ * Swagger: GET /api/me/folders/chat
1565
+ */
1566
+ getOrCreateChatFolder(options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFolder>>;
1567
+ /**
1568
+ * Retrieves the user's avatar image binary or URL.
1569
+ * Swagger: GET /api/me/avatar
1570
+ */
1571
+ getUserAvatar(options?: PodspaceRequestOptions): Promise<Blob>;
369
1572
  }
370
1573
 
371
1574
  interface PodspaceServiceOptions {
372
1575
  baseUrl: string;
373
1576
  apiToken: string;
1577
+ revalidate?: number | string;
1578
+ http?: NextHttp;
374
1579
  }
1580
+ /**
1581
+ * Unified, enterprise PodSpace Cloud Storage Service client.
1582
+ * Implements official PodSpace Swagger API (public-apis v4.13.1).
1583
+ */
375
1584
  declare class PodspaceService {
376
1585
  private http;
377
1586
  private apiToken;
378
1587
  private baseUrl;
1588
+ private revalidate;
1589
+ /** Upload & Download sub-service */
1590
+ readonly uploadDownload: PodspaceUploadDownloadService;
1591
+ /** Files management sub-service */
1592
+ readonly files: PodspaceFilesService;
1593
+ /** Folders management sub-service */
1594
+ readonly folders: PodspaceFoldersService;
1595
+ /** Resumable upload sub-service */
1596
+ readonly resumable: PodspaceResumableService;
1597
+ /** Links & Public Access sub-service */
1598
+ readonly links: PodspaceLinksService;
1599
+ /** Shares & Permissions sub-service */
1600
+ readonly shares: PodspaceSharesService;
1601
+ /** Trash & Permanent Delete sub-service */
1602
+ readonly trash: PodspaceTrashService;
1603
+ /** Tags sub-service */
1604
+ readonly tags: PodspaceTagsService;
1605
+ /** Bookmarks sub-service */
1606
+ readonly bookmarks: PodspaceBookmarksService;
1607
+ /** Metadata & Descriptions sub-service */
1608
+ readonly metadata: PodspaceMetadataService;
1609
+ /** Team User Groups sub-service */
1610
+ readonly userGroups: PodspaceUserGroupsService;
1611
+ /** Workspaces sub-service */
1612
+ readonly workspaces: PodspaceWorkspacesService;
1613
+ /** User Account & Quota sub-service */
1614
+ readonly me: PodspaceMeService;
379
1615
  constructor(options: PodspaceServiceOptions);
380
1616
  /**
381
- * Uploads a file (via FormData) to the POD Podspace storage.
1617
+ * Uploads a single file (via FormData) to POD Podspace storage.
1618
+ * Maintains 100% backward compatibility with `uploadFile(formData, path, isPublic)`.
1619
+ * Swagger: POST /api/files
1620
+ */
1621
+ uploadFile(formData: FormData, paramsOrPath?: string | UploadFileParams, isPublic?: boolean, options?: PodspaceRequestOptions): Promise<PodspaceUploadResponse>;
1622
+ /**
1623
+ * Uploads multiple files simultaneously.
1624
+ * Swagger: POST /api/files/multiple
1625
+ */
1626
+ uploadMultipleFiles(formData: FormData, params?: UploadMultipleFilesParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile[]>>;
1627
+ /**
1628
+ * Uploads an image from a base64 string.
1629
+ * Swagger: POST /api/images/base64
1630
+ */
1631
+ uploadImageBase64(params: UploadImageBase64Params, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
1632
+ /**
1633
+ * Replaces the content of an existing file.
1634
+ * Swagger: PUT /api/files/{hash}
1635
+ */
1636
+ replaceFile(hash: string, formData: FormData, params?: ReplaceFileParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
1637
+ /**
1638
+ * Downloads raw file data.
1639
+ * Swagger: GET /api/files/{hash}
1640
+ */
1641
+ downloadFile(hash: string, params?: DownloadFileParams, options?: PodspaceRequestOptions): Promise<Blob>;
1642
+ /**
1643
+ * Downloads processed image (with resize, crop, format options).
1644
+ * Swagger: GET /api/v2/images/{hash}
382
1645
  */
383
- uploadFile(formData: FormData, path?: string, isPublic?: boolean): Promise<PodspaceUploadResponse>;
1646
+ downloadImage(hash: string, params?: DownloadImageParams, options?: PodspaceRequestOptions): Promise<Blob>;
384
1647
  /**
385
- * Builds the public or private URL to download/view a file.
1648
+ * Downloads file thumbnail.
1649
+ * Swagger: GET /api/files/{hash}/thumbnail
1650
+ */
1651
+ downloadThumbnail(hash: string, params?: DownloadThumbnailParams, options?: PodspaceRequestOptions): Promise<Blob>;
1652
+ /**
1653
+ * Downloads multiple files and folders compressed into a zip file.
1654
+ * Swagger: GET /api/files
1655
+ */
1656
+ downloadFilesAsZip(params: DownloadZipParams, options?: PodspaceRequestOptions): Promise<Blob>;
1657
+ /**
1658
+ * Obtains a pre-signed upload link.
1659
+ * Swagger: GET /api/files/link
1660
+ */
1661
+ getUploadLink(params: GetUploadLinkParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<{
1662
+ link: string;
1663
+ hash?: string;
1664
+ }>>;
1665
+ /**
1666
+ * Builds direct view or download URL for a file.
386
1667
  */
387
1668
  getFileUrl(hash: string, isPublic?: boolean): string;
1669
+ /**
1670
+ * Builds direct view URL for an image with crop/dimensions.
1671
+ */
1672
+ getImageUrl(hash: string, params?: DownloadImageParams): string;
1673
+ /**
1674
+ * Builds thumbnail URL for a file.
1675
+ */
1676
+ getThumbnailUrl(hash: string, params?: DownloadThumbnailParams): string;
1677
+ /**
1678
+ * Creates a new folder.
1679
+ * Swagger: POST /api/folders
1680
+ */
1681
+ createFolder(params: CreateFolderParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFolder>>;
1682
+ /**
1683
+ * Creates nested directories in a parent folder.
1684
+ * Swagger: POST /api/folders/{hash}/directories
1685
+ */
1686
+ createDirectories(hash: string, directories: string[] | string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFolder[]>>;
1687
+ /**
1688
+ * Retrieves subfolders and files inside a folder.
1689
+ * Swagger: GET /api/folders/{hash}/children
1690
+ */
1691
+ getFolderChildren(hash: string, params?: GetFolderChildrenParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1692
+ /**
1693
+ * Retrieves details of a file or folder.
1694
+ * Swagger: GET /api/files/{hash}/detail
1695
+ */
1696
+ getFileDetail(hash: string, params?: {
1697
+ password?: string;
1698
+ breadcrumb?: boolean;
1699
+ shareHash?: string;
1700
+ nativeMetadata?: boolean;
1701
+ includeSizeAndCount?: boolean;
1702
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
1703
+ /**
1704
+ * Retrieves file details using its storage path.
1705
+ * Swagger: GET /api/files/details
1706
+ */
1707
+ getFileDetailByPath(path: string, params?: {
1708
+ parentHash?: string;
1709
+ password?: string;
1710
+ entityType?: string;
1711
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile>>;
1712
+ /**
1713
+ * Checks if a file or folder exists.
1714
+ * Swagger: GET /api/files/{hash}/exist
1715
+ */
1716
+ checkEntityExist(hash: string, fileName: string, params?: {
1717
+ uniqueName?: boolean;
1718
+ type?: string;
1719
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1720
+ /**
1721
+ * Renames a file or folder.
1722
+ * Swagger: PUT /api/files/{hash}/rename
1723
+ */
1724
+ renameEntity(hash: string, newName: string, uniqueName?: boolean, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity>>;
1725
+ /**
1726
+ * Moves a file or folder.
1727
+ * Swagger: PUT /api/files/{hash}/move
1728
+ */
1729
+ moveEntity(hash: string, destFolderHash: string, params?: {
1730
+ policy?: string;
1731
+ uniqueName?: boolean;
1732
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity>>;
1733
+ /**
1734
+ * Copies a file or folder.
1735
+ * Swagger: PUT /api/files/{hash}/copy
1736
+ */
1737
+ copyEntity(hash: string, destFolderHash: string, params?: {
1738
+ policy?: string;
1739
+ uniqueName?: boolean;
1740
+ copyType?: string;
1741
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity>>;
1742
+ /**
1743
+ * Moves a file or folder to trash.
1744
+ * Swagger: DELETE /api/files/{hash}
1745
+ */
1746
+ trashEntity(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1747
+ /**
1748
+ * Alias for `trashEntity`.
1749
+ */
1750
+ deleteFile(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1751
+ /**
1752
+ * Searches files content and folders.
1753
+ * Swagger: GET /api/files/search
1754
+ */
1755
+ searchFiles(params?: SearchFilesParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1756
+ /**
1757
+ * Retrieves recent files.
1758
+ * Swagger: GET /api/v2/files/recent
1759
+ */
1760
+ getRecentFiles(params?: {
1761
+ start?: number;
1762
+ size?: number;
1763
+ }, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceFile[]>>;
1764
+ /**
1765
+ * Creates a download or integration public link for a file.
1766
+ * Swagger: GET /api/links/files/{hash}
1767
+ */
1768
+ createLink(hash: string, params?: Record<string, any>, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1769
+ /**
1770
+ * Shares a file or folder with another user.
1771
+ * Swagger: POST /api/files/{hash}/shares/users/{identity}
1772
+ */
1773
+ shareWithUser(hash: string, identity: string | number, params: ShareEntityParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1774
+ /**
1775
+ * Makes a file or folder publicly accessible.
1776
+ * Swagger: POST /api/files/{hash}/public
1777
+ */
1778
+ makePublic(hash: string, params: MakePublicParams, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<any>>;
1779
+ /**
1780
+ * Retrieves bookmarked entities.
1781
+ * Swagger: GET /api/bookmarks
1782
+ */
1783
+ getBookmarks(params?: Record<string, any>, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<SpaceEntity[]>>;
1784
+ /**
1785
+ * Bookmarks a file or folder.
1786
+ * Swagger: POST /api/bookmarks
1787
+ */
1788
+ addBookmark(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
1789
+ /**
1790
+ * Removes bookmark from a file or folder.
1791
+ * Swagger: DELETE /api/bookmarks
1792
+ */
1793
+ removeBookmark(hash: string, options?: PodspaceRequestOptions): Promise<PodspaceRestResponse<boolean>>;
388
1794
  }
389
1795
 
390
1796
  interface PodFormItem {
@@ -434,7 +1840,7 @@ interface SendSmsResponse {
434
1840
  }
435
1841
 
436
1842
  interface NotificationServiceOptions {
437
- baseUrl: string;
1843
+ baseUrl?: string;
438
1844
  apiToken: string;
439
1845
  }
440
1846
  declare class NotificationService {
@@ -1649,12 +3055,13 @@ interface IumsResponse<T = any> {
1649
3055
  }
1650
3056
 
1651
3057
  interface IumsServiceOptions {
1652
- baseUrl: string;
3058
+ baseUrl?: string;
1653
3059
  clientId: string;
1654
3060
  revalidate?: number | string;
1655
3061
  }
1656
3062
  declare class IumsService {
1657
3063
  private http;
3064
+ private baseUrl;
1658
3065
  private clientId;
1659
3066
  private revalidate;
1660
3067
  constructor(options: IumsServiceOptions);
@@ -1679,7 +3086,8 @@ declare class PodSdk {
1679
3086
  readonly product: CmsProductService;
1680
3087
  readonly tags: CmsTagService;
1681
3088
  readonly iums: IumsService;
1682
- constructor(config: PodSdkConfig);
3089
+ readonly urls: Required<PodUrlsConfig>;
3090
+ constructor(config?: PodSdkConfig);
1683
3091
  /**
1684
3092
  * Helper shortcut to instantiate a Generic CRUD repository for any entity type on POD CustomPost.
1685
3093
  */
@@ -1690,6 +3098,38 @@ declare class PodSdk {
1690
3098
  */
1691
3099
  declare function createPodSdk(config: PodSdkConfig): PodSdk;
1692
3100
 
3101
+ /**
3102
+ * Official POD Platform Production URLs.
3103
+ */
3104
+ declare const DEFAULT_POD_URLS: Required<PodUrlsConfig>;
3105
+ /**
3106
+ * Official POD Platform Sandbox URLs for development and testing.
3107
+ */
3108
+ declare const SANDBOX_POD_URLS: Required<PodUrlsConfig>;
3109
+ /**
3110
+ * Resolves full POD URL configuration with the following priority:
3111
+ * 1. Explicit user overrides in `config.urls`
3112
+ * 2. Next.js / Node environment variables (`process.env.NEXT_PUBLIC_*`)
3113
+ * 3. Default production / sandbox URLs
3114
+ *
3115
+ * Supported Environment Variables:
3116
+ * - `NEXT_PUBLIC_ACCOUNTS_URL`
3117
+ * - `NEXT_PUBLIC_API_POD_URL`
3118
+ * - `NEXT_PUBLIC_API_POD_SANDBOX_URL`
3119
+ * - `NEXT_PUBLIC_CMS_URL`
3120
+ * - `NEXT_PUBLIC_IUMS_URL`
3121
+ * - `NEXT_PUBLIC_NOTIFICATION_URL`
3122
+ * - `NEXT_PUBLIC_PODREPORT_URL`
3123
+ * - `NEXT_PUBLIC_PODSPACE_URL`
3124
+ * - `NEXT_PUBLIC_SANDBOX_CMS_URL`
3125
+ * - `NEXT_PUBLIC_SANDBOX_CMS_CLIENT_URL`
3126
+ * - `NEXT_PUBLIC_SANDBOX_PODSPACE_URL`
3127
+ * - `NEXT_PUBLIC_SANDBOX_STREAM_URL`
3128
+ * - `NEXT_PUBLIC_PODFORM_URL`
3129
+ * - `NEXT_PUBLIC_WEBSITE_URL`
3130
+ */
3131
+ declare function resolvePodUrls(urls?: PodUrlsConfig, sandbox?: boolean): Required<PodUrlsConfig>;
3132
+
1693
3133
  /**
1694
3134
  * Cryptographic and encoding utilities for POD Platform services.
1695
3135
  * Uses standard Web Crypto API (supported natively in Node.js 18+, Browsers, and Edge).
@@ -1697,4 +3137,4 @@ declare function createPodSdk(config: PodSdkConfig): PodSdk;
1697
3137
  declare function encodeBase64(str: string): string;
1698
3138
  declare function generatePodSignatureHeader(keyId: string, privateKeyPem?: string): Promise<string>;
1699
3139
 
1700
- export { type AddCommentParams, type AddContentParams, type AddCustomPostParams, type AddCustomPostResponse, type AddProductParams, type ArchiveParams, type ArchiveProductParams, type BatchPublishParams, type BatchPublishProductParams, type BatchUnpublishParams, type BatchUnpublishProductParams, type Business, CmsDataFormatter, type CmsMetadata, CmsProductService, type CmsProductServiceOptions, type CmsRequestOptions, CmsService, type CmsServiceOptions, CmsTagService, type CmsTagServiceOptions, type CommentItem, type ContentBody, type CreateTagCategoryParams, type CreateTagTreeItemParams, type CustomPostCrudConfig, CustomPostCrudService, type CustomPostItem, CustomPostService, type CustomPostServiceOptions, type EditContentParams, type EditProductParams, type FormattedGetContentResponse, type FormattedGetProductResponse, type FormattedProductSubject, type FormattedSubject, type GetCategoriesParams, type GetCategoryResponse, type GetCommentListParams, type GetCommentsParams, type GetContentByEntityIdParams, type GetContentParams, type GetContentResponse, type GetCustomPostParams, type GetCustomPostResponse, type GetInfOfGraduatedByGraduateDateResponse, type GetProductByEntityIdParams, type GetProductParams, type GetProductResponse, type GetReactionsParams, type GetSessionClassInCurrentDayResponse, type GetTagCategoriesResponse, type GetTagTreeParams, type GetTagTreeResponse, type HandshakeResponse, type IumsResponse, IumsService, type IumsServiceOptions, type LikeCommentParams, type LikePostParams, type MetaContent, type Metadata, NotificationService, type NotificationServiceOptions, type PodFormItem, type PodFormResponse, PodFormService, type PodFormServiceOptions, type PodResponse, PodSdk, type PodSdkConfig, type PodUrlsConfig, PodspaceService, type PodspaceServiceOptions, type PodspaceUploadResponse, type PodspaceUploadResult, type ProductBody, type ProductItem, type ProductItemWithFormatted, type Rate, type ResultItem, type ResultItemWithFormatted, type SearchTimelineByMetadataParam, type SearchTimelineParamMetaQuery, type SearchTimelineResponse, type SearchTimelineResultItem, type SendOtpOptions, type SendSmsParams, type SendSmsResponse, type SeoType, type SocialResponse, SocialService, type SocialServiceOptions, SsoService, type SsoServiceOptions, type SsoUserProfile, type Subject, type TagCategoryItem, type TagCategoryListParams, type TagTreeAncestorsParams, type TagTreeMetadata, type TagtreesType, type TimelineResponse, type TimelineSearchBody, type TokenResponse, type UpdateCustomPostParams, type UpdateTagCategoryParams, type UpdateTagTreeItemParams, type UserPostInfo, type VerifyResponse, createPodSdk, PodSdk as default, encodeBase64, generatePodSignatureHeader };
3140
+ export { type AccessLevel, type AddCommentParams, type AddContentParams, type AddCustomPostParams, type AddCustomPostResponse, type AddProductParams, type ApiPageLink, type ApiPageList, type ApiSimplePageList, type ArchiveParams, type ArchiveProductParams, type BatchPublishParams, type BatchPublishProductParams, type BatchUnpublishParams, type BatchUnpublishProductParams, type Business, type CachePolicy, CmsDataFormatter, type CmsMetadata, CmsProductService, type CmsProductServiceOptions, type CmsRequestOptions, CmsService, type CmsServiceOptions, CmsTagService, type CmsTagServiceOptions, type CommentItem, type ContentBody, type CreateFolderParams, type CreateLinkParams, type CreateTagCategoryParams, type CreateTagTreeItemParams, type CreateUserGroupParams, type CreateWorkspaceParams, type CustomPostCrudConfig, CustomPostCrudService, type CustomPostItem, CustomPostService, type CustomPostServiceOptions, DEFAULT_POD_URLS, type DownloadFileParams, type DownloadImageParams, type DownloadThumbnailParams, type DownloadZipParams, type EditContentParams, type EditProductParams, type FileVersion, type FinalizeResumableParams, type FormattedGetContentResponse, type FormattedGetProductResponse, type FormattedProductSubject, type FormattedSubject, type GetBookmarksParams, type GetCategoriesParams, type GetCategoryResponse, type GetCommentListParams, type GetCommentsParams, type GetContentByEntityIdParams, type GetContentParams, type GetContentResponse, type GetCustomPostParams, type GetCustomPostResponse, type GetFolderChildrenParams, type GetInfOfGraduatedByGraduateDateResponse, type GetProductByEntityIdParams, type GetProductParams, type GetProductResponse, type GetReactionsParams, type GetSessionClassInCurrentDayResponse, type GetTagCategoriesResponse, type GetTagTreeParams, type GetTagTreeResponse, type GetUploadLinkParams, type HandshakeResponse, type IumsResponse, IumsService, type IumsServiceOptions, type LikeCommentParams, type LikePostParams, type MakePublicParams, type MetaContent, type Metadata, NotificationService, type NotificationServiceOptions, type PaginationParams, type PodFormItem, type PodFormResponse, PodFormService, type PodFormServiceOptions, type PodResponse, PodSdk, type PodSdkConfig, type PodUrlsConfig, PodspaceBookmarksService, type PodspaceBookmarksServiceOptions, PodspaceFilesService, type PodspaceFilesServiceOptions, PodspaceFoldersService, type PodspaceFoldersServiceOptions, PodspaceLinksService, type PodspaceLinksServiceOptions, PodspaceMeService, type PodspaceMeServiceOptions, PodspaceMetadataService, type PodspaceMetadataServiceOptions, type PodspaceRequestOptions, type PodspaceRestResponse, PodspaceResumableService, type PodspaceResumableServiceOptions, PodspaceService, type PodspaceServiceOptions, PodspaceSharesService, type PodspaceSharesServiceOptions, PodspaceTagsService, type PodspaceTagsServiceOptions, PodspaceTrashService, type PodspaceTrashServiceOptions, PodspaceUploadDownloadService, type PodspaceUploadDownloadServiceOptions, type PodspaceUploadResponse, type PodspaceUploadResult, type PodspaceUser, PodspaceUserGroupsService, type PodspaceUserGroupsServiceOptions, PodspaceWorkspacesService, type PodspaceWorkspacesServiceOptions, type ProductBody, type ProductItem, type ProductItemWithFormatted, type Rate, type ReplaceFileParams, type ResultItem, type ResultItemWithFormatted, SANDBOX_POD_URLS, type SearchFilesParams, type SearchTimelineByMetadataParam, type SearchTimelineParamMetaQuery, type SearchTimelineResponse, type SearchTimelineResultItem, type SendOtpOptions, type SendSmsParams, type SendSmsResponse, type SeoType, type Share, type ShareAccess, type ShareEntityParams, type ShareType, type SocialResponse, SocialService, type SocialServiceOptions, type SpaceEntity, type SpaceFile, type SpaceFolder, SsoService, type SsoServiceOptions, type SsoUserProfile, type Subject, type TagCategoryItem, type TagCategoryListParams, type TagTreeAncestorsParams, type TagTreeMetadata, type TagtreesType, type ThumbnailStatus, type TimelineResponse, type TimelineSearchBody, type TokenResponse, type UpdateCustomPostParams, type UpdateLinkParams, type UpdateTagCategoryParams, type UpdateTagTreeItemParams, type UpdateWorkspaceParams, type UploadFileParams, type UploadImageBase64Params, type UploadMultipleFilesParams, type UserGroup, type UserPlan, type UserPostInfo, type UserUsageReport, type VerifyResponse, type Workspace, type WorkspaceMember, createPodSdk, PodSdk as default, encodeBase64, generatePodSignatureHeader, resolvePodUrls };