From d86588ec76c4f42143a13911e74ec1d569c2c016 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sun, 26 Mar 2023 13:28:02 +1100 Subject: [PATCH] chore(ui): regenerate api client --- .../web/src/services/api/models/CollectInvocationOutput.ts | 2 +- .../web/src/services/api/models/GraphInvocationOutput.ts | 2 +- invokeai/frontend/web/src/services/api/models/ImageOutput.ts | 4 ++-- .../web/src/services/api/models/IterateInvocationOutput.ts | 4 ++-- invokeai/frontend/web/src/services/api/models/MaskOutput.ts | 4 ++-- invokeai/frontend/web/src/services/api/models/PromptOutput.ts | 4 ++-- .../web/src/services/api/schemas/$CollectInvocationOutput.ts | 1 + .../web/src/services/api/schemas/$GraphInvocationOutput.ts | 1 + .../frontend/web/src/services/api/schemas/$ImageOutput.ts | 2 ++ .../web/src/services/api/schemas/$IterateInvocationOutput.ts | 2 ++ invokeai/frontend/web/src/services/api/schemas/$MaskOutput.ts | 2 ++ .../frontend/web/src/services/api/schemas/$PromptOutput.ts | 2 ++ 12 files changed, 20 insertions(+), 10 deletions(-) diff --git a/invokeai/frontend/web/src/services/api/models/CollectInvocationOutput.ts b/invokeai/frontend/web/src/services/api/models/CollectInvocationOutput.ts index df769248fb..a5976242ea 100644 --- a/invokeai/frontend/web/src/services/api/models/CollectInvocationOutput.ts +++ b/invokeai/frontend/web/src/services/api/models/CollectInvocationOutput.ts @@ -6,7 +6,7 @@ * Base class for all invocation outputs */ export type CollectInvocationOutput = { - type?: 'collect_output'; + type: 'collect_output'; /** * The collection of input items */ diff --git a/invokeai/frontend/web/src/services/api/models/GraphInvocationOutput.ts b/invokeai/frontend/web/src/services/api/models/GraphInvocationOutput.ts index 4be8e7eba6..af0aae3edb 100644 --- a/invokeai/frontend/web/src/services/api/models/GraphInvocationOutput.ts +++ b/invokeai/frontend/web/src/services/api/models/GraphInvocationOutput.ts @@ -6,6 +6,6 @@ * Base class for all invocation outputs */ export type GraphInvocationOutput = { - type?: 'graph_output'; + type: 'graph_output'; }; diff --git a/invokeai/frontend/web/src/services/api/models/ImageOutput.ts b/invokeai/frontend/web/src/services/api/models/ImageOutput.ts index f8ecd105d5..00eb392b69 100644 --- a/invokeai/frontend/web/src/services/api/models/ImageOutput.ts +++ b/invokeai/frontend/web/src/services/api/models/ImageOutput.ts @@ -8,10 +8,10 @@ import type { ImageField } from './ImageField'; * Base class for invocations that output an image */ export type ImageOutput = { - type?: 'image'; + type: 'image'; /** * The output image */ - image?: ImageField; + image: ImageField; }; diff --git a/invokeai/frontend/web/src/services/api/models/IterateInvocationOutput.ts b/invokeai/frontend/web/src/services/api/models/IterateInvocationOutput.ts index 0aca6dda72..ce8d9f8c4b 100644 --- a/invokeai/frontend/web/src/services/api/models/IterateInvocationOutput.ts +++ b/invokeai/frontend/web/src/services/api/models/IterateInvocationOutput.ts @@ -6,10 +6,10 @@ * Used to connect iteration outputs. Will be expanded to a specific output. */ export type IterateInvocationOutput = { - type?: 'iterate_output'; + type: 'iterate_output'; /** * The item being iterated over */ - item?: any; + item: any; }; diff --git a/invokeai/frontend/web/src/services/api/models/MaskOutput.ts b/invokeai/frontend/web/src/services/api/models/MaskOutput.ts index ac5b197a74..645fb8d1cb 100644 --- a/invokeai/frontend/web/src/services/api/models/MaskOutput.ts +++ b/invokeai/frontend/web/src/services/api/models/MaskOutput.ts @@ -8,10 +8,10 @@ import type { ImageField } from './ImageField'; * Base class for invocations that output a mask */ export type MaskOutput = { - type?: 'mask'; + type: 'mask'; /** * The output mask */ - mask?: ImageField; + mask: ImageField; }; diff --git a/invokeai/frontend/web/src/services/api/models/PromptOutput.ts b/invokeai/frontend/web/src/services/api/models/PromptOutput.ts index 658dcb6a3a..5bca3f3037 100644 --- a/invokeai/frontend/web/src/services/api/models/PromptOutput.ts +++ b/invokeai/frontend/web/src/services/api/models/PromptOutput.ts @@ -6,10 +6,10 @@ * Base class for invocations that output a prompt */ export type PromptOutput = { - type?: 'prompt'; + type: 'prompt'; /** * The output prompt */ - prompt?: string; + prompt: string; }; diff --git a/invokeai/frontend/web/src/services/api/schemas/$CollectInvocationOutput.ts b/invokeai/frontend/web/src/services/api/schemas/$CollectInvocationOutput.ts index f7025f8520..598ad94eff 100644 --- a/invokeai/frontend/web/src/services/api/schemas/$CollectInvocationOutput.ts +++ b/invokeai/frontend/web/src/services/api/schemas/$CollectInvocationOutput.ts @@ -6,6 +6,7 @@ export const $CollectInvocationOutput = { properties: { type: { type: 'Enum', + isRequired: true, }, collection: { type: 'array', diff --git a/invokeai/frontend/web/src/services/api/schemas/$GraphInvocationOutput.ts b/invokeai/frontend/web/src/services/api/schemas/$GraphInvocationOutput.ts index cf6ba353c1..c411e65a85 100644 --- a/invokeai/frontend/web/src/services/api/schemas/$GraphInvocationOutput.ts +++ b/invokeai/frontend/web/src/services/api/schemas/$GraphInvocationOutput.ts @@ -6,6 +6,7 @@ export const $GraphInvocationOutput = { properties: { type: { type: 'Enum', + isRequired: true, }, }, } as const; diff --git a/invokeai/frontend/web/src/services/api/schemas/$ImageOutput.ts b/invokeai/frontend/web/src/services/api/schemas/$ImageOutput.ts index fe347d2afe..f9cad7772a 100644 --- a/invokeai/frontend/web/src/services/api/schemas/$ImageOutput.ts +++ b/invokeai/frontend/web/src/services/api/schemas/$ImageOutput.ts @@ -6,6 +6,7 @@ export const $ImageOutput = { properties: { type: { type: 'Enum', + isRequired: true, }, image: { type: 'all-of', @@ -13,6 +14,7 @@ export const $ImageOutput = { contains: [{ type: 'ImageField', }], + isRequired: true, }, }, } as const; diff --git a/invokeai/frontend/web/src/services/api/schemas/$IterateInvocationOutput.ts b/invokeai/frontend/web/src/services/api/schemas/$IterateInvocationOutput.ts index 82512b40fe..826e92346d 100644 --- a/invokeai/frontend/web/src/services/api/schemas/$IterateInvocationOutput.ts +++ b/invokeai/frontend/web/src/services/api/schemas/$IterateInvocationOutput.ts @@ -6,11 +6,13 @@ export const $IterateInvocationOutput = { properties: { type: { type: 'Enum', + isRequired: true, }, item: { description: `The item being iterated over`, properties: { }, + isRequired: true, }, }, } as const; diff --git a/invokeai/frontend/web/src/services/api/schemas/$MaskOutput.ts b/invokeai/frontend/web/src/services/api/schemas/$MaskOutput.ts index c742908d41..cc9d107ab5 100644 --- a/invokeai/frontend/web/src/services/api/schemas/$MaskOutput.ts +++ b/invokeai/frontend/web/src/services/api/schemas/$MaskOutput.ts @@ -6,6 +6,7 @@ export const $MaskOutput = { properties: { type: { type: 'Enum', + isRequired: true, }, mask: { type: 'all-of', @@ -13,6 +14,7 @@ export const $MaskOutput = { contains: [{ type: 'ImageField', }], + isRequired: true, }, }, } as const; diff --git a/invokeai/frontend/web/src/services/api/schemas/$PromptOutput.ts b/invokeai/frontend/web/src/services/api/schemas/$PromptOutput.ts index bdf5ad3a46..29b800452f 100644 --- a/invokeai/frontend/web/src/services/api/schemas/$PromptOutput.ts +++ b/invokeai/frontend/web/src/services/api/schemas/$PromptOutput.ts @@ -6,10 +6,12 @@ export const $PromptOutput = { properties: { type: { type: 'Enum', + isRequired: true, }, prompt: { type: 'string', description: `The output prompt`, + isRequired: true, }, }, } as const;