import * as z from 'zod'; import { type RawUserId, type UserId } from '../../schemas/satellite'; import { type AssetAccessToken, type AssetEncoding, type AssetKey, type Blob, type FullPath, type HeaderFields } from '../../schemas/storage'; import { type Memory } from './collections'; import { type CollectionParams, type ListStoreParams } from './params'; /** * @see GetAssetStoreParams */ export declare const GetAssetStoreParamsSchema: z.ZodObject<{ collection: z.ZodString; caller: z.ZodUnion<[z.ZodCustom, Uint8Array>, z.ZodPipe, z.ZodTransform>]>; full_path: z.ZodString; }, z.core.$strict>; /** * Represents the base parameters required to access the storage and modify an asset. */ export type GetAssetStoreParams = CollectionParams & { /** * The caller who initiate the document operation. */ caller: RawUserId | UserId; /** * The full_path identifying the asset within the collection. */ full_path: FullPath; }; /** * @see CountCollectionAssetsStoreParams */ export declare const CountCollectionAssetsStoreParamsSchema: z.ZodObject<{ collection: z.ZodString; }, z.core.$strict>; /** * The parameters required to count documents from the storage. */ export type CountCollectionAssetsStoreParams = CollectionParams; /** * @see CountAssetsStoreParams */ export declare const CountAssetsStoreParamsSchema: z.ZodObject<{ collection: z.ZodString; caller: z.ZodUnion<[z.ZodCustom, Uint8Array>, z.ZodPipe, z.ZodTransform>]>; params: z.ZodObject<{ matcher: z.ZodOptional; description: z.ZodOptional; created_at: z.ZodOptional, z.ZodObject<{ greater_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ less_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>; }, z.core.$strip>]>>; updated_at: z.ZodOptional, z.ZodObject<{ greater_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ less_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>; }, z.core.$strip>]>>; }, z.core.$strict>>; paginate: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strict>>; order: z.ZodOptional; }, z.core.$strict>>; owner: z.ZodOptional, Uint8Array>>; }, z.core.$strict>; }, z.core.$strict>; /** * The parameters required to count documents from the storage. */ export type CountAssetsStoreParams = ListStoreParams; /** * @see SetAssetHandlerParams */ export declare const SetAssetHandlerParamsSchema: z.ZodObject<{ key: z.ZodObject<{ name: z.ZodString; full_path: z.ZodString; token: z.ZodOptional; collection: z.ZodString; owner: z.ZodCustom, Uint8Array>; description: z.ZodOptional; }, z.core.$strict>; content: z.ZodCustom, Uint8Array>; headers: z.ZodArray>; }, z.core.$strict>; /** * The parameters required to set (or update) an asset. */ export interface SetAssetHandlerParams { /** * The key identifying the asset. */ key: AssetKey; /** * The binary content of the asset. */ content: Blob; /** * Associated HTTP headers. */ headers: HeaderFields; } /** * @see DeleteAssetsStoreParams */ export declare const DeleteAssetsStoreParamsSchema: z.ZodObject<{ collection: z.ZodString; }, z.core.$strict>; /** * The parameters required to delete the assets from a collection of the storage. */ export type DeleteAssetsStoreParams = CollectionParams; /** * @see DeleteFilteredAssetsParams */ export declare const DeleteFilteredAssetsStoreParamsSchema: z.ZodObject<{ collection: z.ZodString; caller: z.ZodUnion<[z.ZodCustom, Uint8Array>, z.ZodPipe, z.ZodTransform>]>; params: z.ZodObject<{ matcher: z.ZodOptional; description: z.ZodOptional; created_at: z.ZodOptional, z.ZodObject<{ greater_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ less_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>; }, z.core.$strip>]>>; updated_at: z.ZodOptional, z.ZodObject<{ greater_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ less_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>; }, z.core.$strip>]>>; }, z.core.$strict>>; paginate: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strict>>; order: z.ZodOptional; }, z.core.$strict>>; owner: z.ZodOptional, Uint8Array>>; }, z.core.$strict>; }, z.core.$strict>; /** * The parameters required to delete assets from the storage. */ export type DeleteFilteredAssetsStoreParams = ListStoreParams; /** * @see DeleteAssetStoreParams */ export declare const DeleteAssetStoreParamsSchema: z.ZodObject<{ collection: z.ZodString; caller: z.ZodUnion<[z.ZodCustom, Uint8Array>, z.ZodPipe, z.ZodTransform>]>; full_path: z.ZodString; }, z.core.$strict>; /** * Represents the parameters required to delete an asset. */ export type DeleteAssetStoreParams = GetAssetStoreParams; /** * @see SetAssetTokenStoreParams */ export declare const SetAssetTokenStoreParamsSchema: z.ZodObject<{ collection: z.ZodString; caller: z.ZodUnion<[z.ZodCustom, Uint8Array>, z.ZodPipe, z.ZodTransform>]>; full_path: z.ZodString; token: z.ZodOptional; }, z.core.$strict>; /** * Represents the parameters required to delete an asset. */ export type SetAssetTokenStoreParams = GetAssetStoreParams & { /** * The token to apply to the asset. * Setting `undefined` removes the protection and makes the asset public. */ token: AssetAccessToken; }; /** * @see ListAssetsStoreParams */ export declare const ListAssetsStoreParamsSchema: z.ZodObject<{ collection: z.ZodString; caller: z.ZodUnion<[z.ZodCustom, Uint8Array>, z.ZodPipe, z.ZodTransform>]>; params: z.ZodObject<{ matcher: z.ZodOptional; description: z.ZodOptional; created_at: z.ZodOptional, z.ZodObject<{ greater_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ less_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>; }, z.core.$strip>]>>; updated_at: z.ZodOptional, z.ZodObject<{ greater_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ less_than: z.ZodBigInt; }, z.core.$strip>, z.ZodObject<{ between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>; }, z.core.$strip>]>>; }, z.core.$strict>>; paginate: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strict>>; order: z.ZodOptional; }, z.core.$strict>>; owner: z.ZodOptional, Uint8Array>>; }, z.core.$strict>; }, z.core.$strict>; /** * The parameters required to list documents from the datastore. */ export type ListAssetsStoreParams = ListStoreParams; /** * @see GetContentChunksStoreParams */ export declare const GetContentChunksStoreParamsSchema: z.ZodObject<{ encoding: z.ZodObject<{ modified: z.ZodBigInt; content_chunks: z.ZodArray, Uint8Array>>; total_length: z.ZodBigInt; sha256: z.ZodCustom, Uint8Array>; }, z.core.$strip>; chunk_index: z.ZodBigInt; memory: z.ZodEnum<{ heap: "heap"; stable: "stable"; }>; }, z.core.$strict>; /** * The parameters required to retrieve a specific chunk from an asset. */ export interface GetContentChunksStoreParams { /** * The encoding of the chunks. */ encoding: AssetEncoding; /** * The index of the chunk to retrieve. */ chunk_index: bigint; /** * The memory type to retrieve the chunk from. */ memory: Memory; }