minio.d.ts 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import type { LEGAL_HOLD_STATUS, RETENTION_MODES, RETENTION_VALIDITY_UNITS } from "./helpers.js";
  2. import { TypedClient } from "./internal/client.js";
  3. import { CopyConditions } from "./internal/copy-conditions.js";
  4. import { PostPolicy } from "./internal/post-policy.js";
  5. export * from "./errors.js";
  6. export * from "./helpers.js";
  7. export * from "./notification.js";
  8. export { CopyConditions, PostPolicy };
  9. export { IamAwsProvider } from "./IamAwsProvider.js";
  10. export type { MakeBucketOpt } from "./internal/client.js";
  11. export type { ClientOptions, NoResultCallback, RemoveOptions } from "./internal/client.js";
  12. export type { Region } from "./internal/s3-endpoints.js";
  13. export type { BucketItem, BucketItemCopy, BucketItemFromList, BucketItemStat, BucketItemWithMetadata, BucketStream, EmptyObject, ExistingObjectReplication, GetObjectLegalHoldOptions, IncompleteUploadedBucketItem, InputSerialization, IsoDate, ItemBucketMetadata, ItemBucketMetadataList, LegalHoldStatus, LifecycleConfig, LifecycleRule, MetadataItem, ObjectLockInfo, OutputSerialization, PostPolicyResult, PutObjectLegalHoldOptions, ReplicaModifications, ReplicationConfig, ReplicationConfigOpts, ReplicationRule, ReplicationRuleAnd, ReplicationRuleDestination, ReplicationRuleFilter, ReplicationRuleStatus, Retention, RetentionOptions, ScanRange, SelectOptions, SelectProgress, SourceSelectionCriteria, Tag } from "./internal/type.js";
  14. /**
  15. * @deprecated keep for backward compatible, use `RETENTION_MODES` instead
  16. */
  17. export type Mode = RETENTION_MODES;
  18. /**
  19. * @deprecated keep for backward compatible
  20. */
  21. export type LockUnit = RETENTION_VALIDITY_UNITS;
  22. export type VersioningConfig = Record<string | number | symbol, unknown>;
  23. export type TagList = Record<string, string>;
  24. export interface LockConfig {
  25. mode: RETENTION_MODES;
  26. unit: RETENTION_VALIDITY_UNITS;
  27. validity: number;
  28. }
  29. export interface LegalHoldOptions {
  30. versionId: string;
  31. status: LEGAL_HOLD_STATUS;
  32. }
  33. export interface SourceObjectStats {
  34. size: number;
  35. metaData: string;
  36. lastModicied: Date;
  37. versionId: string;
  38. etag: string;
  39. }
  40. export declare class Client extends TypedClient {}