/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 49b00ac94b68 */ import * as z from "zod/v3"; export type IndexingShortcut = { /** * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. */ inputAlias: string; /** * A short, plain text blurb to help people understand the intent of the shortcut. */ description?: string | undefined; /** * destination URL for the shortcut. */ destinationUrl: string; /** * Email of the user who created this shortcut. */ createdBy: string; /** * The time the shortcut was created in epoch seconds. */ createTime?: number | undefined; /** * Email of the user who last updated this shortcut. */ updatedBy?: string | undefined; /** * The time the shortcut was updated in epoch seconds. */ updateTime?: number | undefined; /** * Whether this shortcut is unlisted or not. Unlisted shortcuts are visible to author and admins only. */ unlisted?: boolean | undefined; /** * For variable shortcuts, contains the URL template; note, `destinationUrl` contains default URL. */ urlTemplate?: string | undefined; }; /** @internal */ export type IndexingShortcut$Outbound = { inputAlias: string; description?: string | undefined; destinationUrl: string; createdBy: string; createTime?: number | undefined; updatedBy?: string | undefined; updateTime?: number | undefined; unlisted?: boolean | undefined; urlTemplate?: string | undefined; }; /** @internal */ export const IndexingShortcut$outboundSchema: z.ZodType< IndexingShortcut$Outbound, z.ZodTypeDef, IndexingShortcut > = z.object({ inputAlias: z.string(), description: z.string().optional(), destinationUrl: z.string(), createdBy: z.string(), createTime: z.number().int().optional(), updatedBy: z.string().optional(), updateTime: z.number().int().optional(), unlisted: z.boolean().optional(), urlTemplate: z.string().optional(), }); export function indexingShortcutToJSON( indexingShortcut: IndexingShortcut, ): string { return JSON.stringify( IndexingShortcut$outboundSchema.parse(indexingShortcut), ); }