Manta Developers
GitHub
Menu

@manta-eu/client/shared/workspace-artifacts

Reference for @manta-eu/client/shared/workspace-artifacts as it is on main.

Type Aliases

WorkspaceArtifact

WorkspaceArtifact = z.infer<typeof workspaceArtifactSchema>

Variables

publishWorkspaceFileInputSchema

const publishWorkspaceFileInputSchema: ZodObject<{ path: ZodString; }, $strict>


workspaceArtifactIdSchema

const workspaceArtifactIdSchema: ZodUUID


workspaceArtifactMaxByteSize

const workspaceArtifactMaxByteSize: 1500000 = 1_500_000


workspaceArtifactSchema

const workspaceArtifactSchema: ZodObject<{ artifactId: ZodUUID; byteSize: ZodNumber; filename: ZodString; mediaType: ZodString; type: ZodLiteral<"workspace-artifact">; url: ZodString; }, $strict>

Functions

buildWorkspaceArtifactUrl()

buildWorkspaceArtifactUrl(input): string

Parameters

input
artifactId

string

conversationId

string

Returns

string


isWorkspaceArtifactInlineMediaType()

isWorkspaceArtifactInlineMediaType(mediaType): boolean

Parameters

mediaType

string

Returns

boolean