feat: harden deployment and public api handoff
This commit is contained in:
@@ -87,6 +87,7 @@ export async function importRemoteImageAsAsset(input: {
|
||||
capability: string;
|
||||
jobId: string;
|
||||
index: number;
|
||||
tags?: string[];
|
||||
}): Promise<Asset> {
|
||||
const response = await fetch(input.url);
|
||||
if (!response.ok) {
|
||||
@@ -104,6 +105,7 @@ export async function importRemoteImageAsAsset(input: {
|
||||
source: input.source,
|
||||
capability: input.capability,
|
||||
jobId: input.jobId,
|
||||
tags: input.tags,
|
||||
metadata: {
|
||||
importedFrom: input.url
|
||||
}
|
||||
@@ -119,6 +121,7 @@ export async function importRemoteAssetAsAsset(input: {
|
||||
jobId: string;
|
||||
index: number;
|
||||
fallbackContentType?: string;
|
||||
tags?: string[];
|
||||
}): Promise<Asset> {
|
||||
const response = await fetch(input.url);
|
||||
if (!response.ok) {
|
||||
@@ -136,6 +139,7 @@ export async function importRemoteAssetAsAsset(input: {
|
||||
source: input.source,
|
||||
capability: input.capability,
|
||||
jobId: input.jobId,
|
||||
tags: input.tags,
|
||||
metadata: {
|
||||
importedFrom: input.url
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user