@hostr/upload 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/client.d.ts +4 -0
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -96,6 +96,10 @@ export declare function createUploadSession(opts: {
|
|
|
96
96
|
autoComplete?: boolean;
|
|
97
97
|
audio?: UploadAudioOptions;
|
|
98
98
|
captions?: UploadCaptionsOptions;
|
|
99
|
+
/** Your labels for the asset — up to 20 string values (who uploaded it,
|
|
100
|
+
* its title, your record id). Every event about the asset carries them
|
|
101
|
+
* as `data.metadata`. Strings only: send numeric ids as strings. */
|
|
102
|
+
metadata?: Record<string, string>;
|
|
99
103
|
}, fetchFn?: typeof fetch): Promise<UploadSession>;
|
|
100
104
|
export declare function mintUploadToken(opts: {
|
|
101
105
|
endpoint: string;
|