Skip to content

MediaUploadIntentApi — @gj-kit/expo-media

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

import { MediaUploadIntentApi } from '@gj-kit/expo-media/core';
/**
* Presign-only backend seam.
*
* Some products deliberately attach the uploaded object in a later domain
* transaction (for example, after creating a record). They must not pretend
* that a registration endpoint exists just to use the local streaming path.
* `MediaUploadApi` extends this narrower contract for the usual
* presign → PUT → complete flow.
*/
interface MediaUploadIntentApi<TCollectionId extends string = string> {
createUploadIntent(input: MediaUploadIntentRequest<TCollectionId>): Promise<MediaUploadIntent>;
}

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: ./core
  • Source: GitHub