chore(ui): regenerate api client

This commit is contained in:
psychedelicious 2023-03-26 13:28:02 +11:00
parent 6c1f666242
commit d86588ec76
12 changed files with 20 additions and 10 deletions

View File

@ -6,7 +6,7 @@
* Base class for all invocation outputs * Base class for all invocation outputs
*/ */
export type CollectInvocationOutput = { export type CollectInvocationOutput = {
type?: 'collect_output'; type: 'collect_output';
/** /**
* The collection of input items * The collection of input items
*/ */

View File

@ -6,6 +6,6 @@
* Base class for all invocation outputs * Base class for all invocation outputs
*/ */
export type GraphInvocationOutput = { export type GraphInvocationOutput = {
type?: 'graph_output'; type: 'graph_output';
}; };

View File

@ -8,10 +8,10 @@ import type { ImageField } from './ImageField';
* Base class for invocations that output an image * Base class for invocations that output an image
*/ */
export type ImageOutput = { export type ImageOutput = {
type?: 'image'; type: 'image';
/** /**
* The output image * The output image
*/ */
image?: ImageField; image: ImageField;
}; };

View File

@ -6,10 +6,10 @@
* Used to connect iteration outputs. Will be expanded to a specific output. * Used to connect iteration outputs. Will be expanded to a specific output.
*/ */
export type IterateInvocationOutput = { export type IterateInvocationOutput = {
type?: 'iterate_output'; type: 'iterate_output';
/** /**
* The item being iterated over * The item being iterated over
*/ */
item?: any; item: any;
}; };

View File

@ -8,10 +8,10 @@ import type { ImageField } from './ImageField';
* Base class for invocations that output a mask * Base class for invocations that output a mask
*/ */
export type MaskOutput = { export type MaskOutput = {
type?: 'mask'; type: 'mask';
/** /**
* The output mask * The output mask
*/ */
mask?: ImageField; mask: ImageField;
}; };

View File

@ -6,10 +6,10 @@
* Base class for invocations that output a prompt * Base class for invocations that output a prompt
*/ */
export type PromptOutput = { export type PromptOutput = {
type?: 'prompt'; type: 'prompt';
/** /**
* The output prompt * The output prompt
*/ */
prompt?: string; prompt: string;
}; };

View File

@ -6,6 +6,7 @@ export const $CollectInvocationOutput = {
properties: { properties: {
type: { type: {
type: 'Enum', type: 'Enum',
isRequired: true,
}, },
collection: { collection: {
type: 'array', type: 'array',

View File

@ -6,6 +6,7 @@ export const $GraphInvocationOutput = {
properties: { properties: {
type: { type: {
type: 'Enum', type: 'Enum',
isRequired: true,
}, },
}, },
} as const; } as const;

View File

@ -6,6 +6,7 @@ export const $ImageOutput = {
properties: { properties: {
type: { type: {
type: 'Enum', type: 'Enum',
isRequired: true,
}, },
image: { image: {
type: 'all-of', type: 'all-of',
@ -13,6 +14,7 @@ export const $ImageOutput = {
contains: [{ contains: [{
type: 'ImageField', type: 'ImageField',
}], }],
isRequired: true,
}, },
}, },
} as const; } as const;

View File

@ -6,11 +6,13 @@ export const $IterateInvocationOutput = {
properties: { properties: {
type: { type: {
type: 'Enum', type: 'Enum',
isRequired: true,
}, },
item: { item: {
description: `The item being iterated over`, description: `The item being iterated over`,
properties: { properties: {
}, },
isRequired: true,
}, },
}, },
} as const; } as const;

View File

@ -6,6 +6,7 @@ export const $MaskOutput = {
properties: { properties: {
type: { type: {
type: 'Enum', type: 'Enum',
isRequired: true,
}, },
mask: { mask: {
type: 'all-of', type: 'all-of',
@ -13,6 +14,7 @@ export const $MaskOutput = {
contains: [{ contains: [{
type: 'ImageField', type: 'ImageField',
}], }],
isRequired: true,
}, },
}, },
} as const; } as const;

View File

@ -6,10 +6,12 @@ export const $PromptOutput = {
properties: { properties: {
type: { type: {
type: 'Enum', type: 'Enum',
isRequired: true,
}, },
prompt: { prompt: {
type: 'string', type: 'string',
description: `The output prompt`, description: `The output prompt`,
isRequired: true,
}, },
}, },
} as const; } as const;