Skip to main content
Glama

Model Context Protocol Server

downloadassetop.ts3.66 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { ApiError, ApiError$zodSchema } from "./apierror.js"; import { ResourceType, ResourceType$zodSchema } from "./resourcetype.js"; import { StorageType, StorageType$zodSchema } from "./storagetype.js"; export type DownloadAssetGlobals = { cloud_name?: string | undefined }; export const DownloadAssetGlobals$zodSchema: z.ZodType< DownloadAssetGlobals, z.ZodTypeDef, unknown > = z.object({ cloud_name: z.string().describe("The cloud name of your product environment.") .optional(), }); export type DownloadAssetRequest = { resource_type: ResourceType; public_id: string; format?: string | undefined; type?: StorageType | undefined; expires_at?: number | undefined; attachment?: boolean | undefined; target_filename?: string | undefined; transformation?: string | undefined; api_key?: string | undefined; signature?: string | undefined; timestamp?: number | undefined; }; export const DownloadAssetRequest$zodSchema: z.ZodType< DownloadAssetRequest, z.ZodTypeDef, unknown > = z.object({ api_key: z.string().describe( "The API key to use for the request. This is automatically computed by the Cloudinary's SDKs.", ).optional(), attachment: z.boolean().default(false).describe( "Whether to force download as an attachment.", ), expires_at: z.number().int().describe( "Unix timestamp indicating when the download URL should expire.", ).optional(), format: z.string().describe( "The format to convert the asset to before downloading.", ).optional(), public_id: z.string().describe("The public ID of the asset."), resource_type: ResourceType$zodSchema, signature: z.string().describe( "(Required for signed REST API calls) Used to authenticate the request and based on the parameters you use in the request. When using the Cloudinary SDKs for signed requests, the signature is automatically generated and added to the request. If you manually generate your own signed POST request, you need to manually generate the signature parameter and add it to the request together with the api_key and timestamp parameters.\n" + "", ).optional(), target_filename: z.string().describe( "The desired filename for the downloaded file.", ).optional(), timestamp: z.number().int().describe( "The timestamp to use for the request in unix time. This is automatically computed by the Cloudinary's SDKs.", ).optional(), transformation: z.string().describe( "A transformation to apply to the asset before downloading.", ).optional(), type: StorageType$zodSchema.optional(), }); export type DownloadAssetResponse = { ContentType: string; StatusCode: number; RawResponse: Response; twoHundredImageWildcardBytes?: Uint8Array | string | undefined; twoHundredVideoWildcardBytes?: Uint8Array | string | undefined; twoHundredApplicationOctetStreamBytes?: Uint8Array | string | undefined; api_error?: ApiError | undefined; }; export const DownloadAssetResponse$zodSchema: z.ZodType< DownloadAssetResponse, z.ZodTypeDef, unknown > = z.object({ ContentType: z.string(), RawResponse: z.instanceof(Response), StatusCode: z.number().int(), api_error: ApiError$zodSchema.optional(), twoHundredApplicationOctetStreamBytes: z.string().base64().describe( "Asset downloaded successfully", ).optional(), twoHundredImageWildcardBytes: z.string().base64().describe( "Asset downloaded successfully", ).optional(), twoHundredVideoWildcardBytes: z.string().base64().describe( "Asset downloaded successfully", ).optional(), });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kanwardeep007/random-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server