Skip to content

MediaUploadIntentRequest — @gj-kit/expo-media

A public type from @gj-kit/expo-media. The signature below is taken directly from the 0.6.1 release declaration.

import { MediaUploadIntentRequest } from '@gj-kit/expo-media';
type MediaUploadIntentRequest<TCollectionId extends string = string> = {
readonly fileName: string;
/** ⚠ 전신은 `string`이었다. 닫힌 8종 유니언으로 좁혀 서버 zod와 클라이언트가 어긋나지 않게 한다. */
readonly contentType: MediaContentType;
readonly sizeBytes: number;
/**
* 업로드를 시작하기 전에 백엔드가 권한·용량을 확인해야 하는 경우의 불투명 그룹 id.
* 완료 단계의 `collectionId`와 같은 값이며, 킷은 해석하거나 생성하지 않고 그대로 전달한다.
* 선택적 필드라 기존 presign-only 소비자는 변경 없이 동작한다.
*/
readonly collectionId?: TCollectionId | undefined;
};

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: .
  • Source: GitHub