import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Default is "1". Set to "0" to allow access without a password. */ export declare const RequirePasswordEnum: { readonly Zero: "0"; readonly One: "1"; }; /** * Default is "1". Set to "0" to allow access without a password. */ export type RequirePasswordEnum = ClosedEnum; export type RequirePassword = RequirePasswordEnum | boolean; /** * Default is "0". Set to "1" to allow the user to share the folder with others. */ export declare const CanShareEnum: { readonly Zero: "0"; readonly One: "1"; }; /** * Default is "0". Set to "1" to allow the user to share the folder with others. */ export type CanShareEnum = ClosedEnum; export type CanShare = CanShareEnum | boolean; /** * Default is "0". Set to "1" to allow the user to download files from the folder. */ export declare const CanDownloadEnum: { readonly Zero: "0"; readonly One: "1"; }; /** * Default is "0". Set to "1" to allow the user to download files from the folder. */ export type CanDownloadEnum = ClosedEnum; export type CanDownload = CanDownloadEnum | boolean; /** * Default is "0". Set to "1" to allow the user to upload files to the folder. */ export declare const CanUploadEnum: { readonly Zero: "0"; readonly One: "1"; }; /** * Default is "0". Set to "1" to allow the user to upload files to the folder. */ export type CanUploadEnum = ClosedEnum; export type CanUpload = CanUploadEnum | boolean; /** * Deprecated! Email notifications are always sent now. * * @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible. */ export declare const SendEmailNotification: { readonly Zero: "0"; readonly One: "1"; }; /** * Deprecated! Email notifications are always sent now. * * @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible. */ export type SendEmailNotification = ClosedEnum; export type PostFoldersFolderIdSharingsSharingRequest = { /** * The email address of the person with whom you want to share the folder. */ with: string; requirePassword?: RequirePasswordEnum | boolean | undefined; canShare?: CanShareEnum | boolean | undefined; canDownload?: CanDownloadEnum | boolean | undefined; canUpload?: CanUploadEnum | boolean | undefined; /** * Deprecated! Email notifications are always sent now. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ sendEmailNotification?: SendEmailNotification | undefined; }; export type PostFoldersFolderIdSharingsRequestBody = { sharing: PostFoldersFolderIdSharingsSharingRequest; }; export type PostFoldersFolderIdSharingsRequest = { /** * Hashed ID of the folder to be shared */ folderId: string; requestBody: PostFoldersFolderIdSharingsRequestBody; }; export type PostFoldersFolderIdSharingsShare = { id: number; name: string; type: string; email: string; }; export type PostFoldersFolderIdSharingsFolder = { id: number; name: string; }; /** * A sharing is an object that links either a contact or a contact group to a folder, including information about the contacts' permissions to that folder. * * @remarks */ export type SharingResponse = { id: number; isAdmin: boolean; canShare: boolean; canDownload: boolean; canUpload: boolean; share: PostFoldersFolderIdSharingsShare; folder: PostFoldersFolderIdSharingsFolder; /** * A cursor for stable pagination based on current `sort_by` order. You can pass this to `cursor[before]` or `cursor[after]` as a parameter to fetch the records before or after this record in the same sort order. This is only populated if records were fetched with `cursor[enabled]`, or `cursor[before]` or `cursor[after]`. */ cursor?: string | null | undefined; }; /** * The response includes a link for the user to access the folder. */ export type PostFoldersFolderIdSharingsResponseBody = { folder?: string | undefined; /** * A sharing is an object that links either a contact or a contact group to a folder, including information about the contacts' permissions to that folder. * * @remarks */ sharing?: SharingResponse | undefined; }; export type PostFoldersFolderIdSharingsResponse = { headers: { [k: string]: Array; }; result: PostFoldersFolderIdSharingsResponseBody; }; /** @internal */ export declare const RequirePasswordEnum$outboundSchema: z.ZodNativeEnum; /** @internal */ export type RequirePassword$Outbound = string | boolean; /** @internal */ export declare const RequirePassword$outboundSchema: z.ZodType; export declare function requirePasswordToJSON(requirePassword: RequirePassword): string; /** @internal */ export declare const CanShareEnum$outboundSchema: z.ZodNativeEnum; /** @internal */ export type CanShare$Outbound = string | boolean; /** @internal */ export declare const CanShare$outboundSchema: z.ZodType; export declare function canShareToJSON(canShare: CanShare): string; /** @internal */ export declare const CanDownloadEnum$outboundSchema: z.ZodNativeEnum; /** @internal */ export type CanDownload$Outbound = string | boolean; /** @internal */ export declare const CanDownload$outboundSchema: z.ZodType; export declare function canDownloadToJSON(canDownload: CanDownload): string; /** @internal */ export declare const CanUploadEnum$outboundSchema: z.ZodNativeEnum; /** @internal */ export type CanUpload$Outbound = string | boolean; /** @internal */ export declare const CanUpload$outboundSchema: z.ZodType; export declare function canUploadToJSON(canUpload: CanUpload): string; /** @internal */ export declare const SendEmailNotification$outboundSchema: z.ZodNativeEnum; /** @internal */ export type PostFoldersFolderIdSharingsSharingRequest$Outbound = { with: string; requirePassword?: string | boolean | undefined; canShare?: string | boolean | undefined; canDownload?: string | boolean | undefined; canUpload?: string | boolean | undefined; sendEmailNotification?: string | undefined; }; /** @internal */ export declare const PostFoldersFolderIdSharingsSharingRequest$outboundSchema: z.ZodType; export declare function postFoldersFolderIdSharingsSharingRequestToJSON(postFoldersFolderIdSharingsSharingRequest: PostFoldersFolderIdSharingsSharingRequest): string; /** @internal */ export type PostFoldersFolderIdSharingsRequestBody$Outbound = { sharing: PostFoldersFolderIdSharingsSharingRequest$Outbound; }; /** @internal */ export declare const PostFoldersFolderIdSharingsRequestBody$outboundSchema: z.ZodType; export declare function postFoldersFolderIdSharingsRequestBodyToJSON(postFoldersFolderIdSharingsRequestBody: PostFoldersFolderIdSharingsRequestBody): string; /** @internal */ export type PostFoldersFolderIdSharingsRequest$Outbound = { folderId: string; RequestBody: PostFoldersFolderIdSharingsRequestBody$Outbound; }; /** @internal */ export declare const PostFoldersFolderIdSharingsRequest$outboundSchema: z.ZodType; export declare function postFoldersFolderIdSharingsRequestToJSON(postFoldersFolderIdSharingsRequest: PostFoldersFolderIdSharingsRequest): string; /** @internal */ export declare const PostFoldersFolderIdSharingsShare$inboundSchema: z.ZodType; export declare function postFoldersFolderIdSharingsShareFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostFoldersFolderIdSharingsFolder$inboundSchema: z.ZodType; export declare function postFoldersFolderIdSharingsFolderFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SharingResponse$inboundSchema: z.ZodType; export declare function sharingResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostFoldersFolderIdSharingsResponseBody$inboundSchema: z.ZodType; export declare function postFoldersFolderIdSharingsResponseBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostFoldersFolderIdSharingsResponse$inboundSchema: z.ZodType; export declare function postFoldersFolderIdSharingsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postfoldersfolderidsharings.d.ts.map