import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; import { SharedLinkTarget, SharedLinkTarget$Outbound } from "./sharedlinktarget.js"; /** * The scope of the shared link. */ export declare const Scope: { readonly Public: "public"; readonly Company: "company"; }; /** * The scope of the shared link. */ export type Scope = ClosedEnum; export type SharedLink = { /** * The URL that can be used to view the file. */ url?: string | null | undefined; /** * The URL that can be used to download the file. */ downloadUrl?: string | null | undefined; target?: SharedLinkTarget | undefined; /** * The scope of the shared link. */ scope?: Scope | null | undefined; /** * Indicated if the shared link is password protected. */ passwordProtected?: boolean | null | undefined; expiresAt?: Date | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; export type SharedLinkInput = { /** * The URL that can be used to download the file. */ downloadUrl?: string | null | undefined; /** * The ID of the file or folder to link. */ targetId: string | null; /** * The scope of the shared link. */ scope?: Scope | null | undefined; /** * Optional password for the shared link. */ password?: string | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; /** @internal */ export declare const Scope$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Scope$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Scope$ { /** @deprecated use `Scope$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Public: "public"; readonly Company: "company"; }>; /** @deprecated use `Scope$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Public: "public"; readonly Company: "company"; }>; } /** @internal */ export declare const SharedLink$inboundSchema: z.ZodType; /** @internal */ export type SharedLink$Outbound = { url?: string | null | undefined; download_url?: string | null | undefined; target?: SharedLinkTarget$Outbound | undefined; scope?: string | null | undefined; password_protected?: boolean | null | undefined; expires_at?: string | null | undefined; updated_at?: string | null | undefined; created_at?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const SharedLink$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SharedLink$ { /** @deprecated use `SharedLink$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SharedLink$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SharedLink$Outbound` instead. */ type Outbound = SharedLink$Outbound; } export declare function sharedLinkToJSON(sharedLink: SharedLink): string; export declare function sharedLinkFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SharedLinkInput$inboundSchema: z.ZodType; /** @internal */ export type SharedLinkInput$Outbound = { download_url?: string | null | undefined; target_id: string | null; scope?: string | null | undefined; password?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const SharedLinkInput$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SharedLinkInput$ { /** @deprecated use `SharedLinkInput$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SharedLinkInput$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SharedLinkInput$Outbound` instead. */ type Outbound = SharedLinkInput$Outbound; } export declare function sharedLinkInputToJSON(sharedLinkInput: SharedLinkInput): string; export declare function sharedLinkInputFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=sharedlink.d.ts.map