@civitai/client 0.2.0-beta.3 → 0.2.0-beta.5

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.
@@ -90,8 +90,10 @@ export type Blob = {
90
90
  blockedReason?: string | null;
91
91
  };
92
92
  export declare const BuzzClientAccount: {
93
- readonly USER: 'user';
94
- readonly GENERATION: 'generation';
93
+ readonly YELLOW: 'yellow';
94
+ readonly BLUE: 'blue';
95
+ readonly GREEN: 'green';
96
+ readonly FAKE_RED: 'fakeRed';
95
97
  };
96
98
  export type BuzzClientAccount = (typeof BuzzClientAccount)[keyof typeof BuzzClientAccount];
97
99
  export type ComfyInput = {
@@ -264,6 +266,28 @@ export type FluxDevFastImageResourceTrainingInput = ImageResourceTrainingInput &
264
266
  } & {} & {
265
267
  engine: 'flux-dev-fast';
266
268
  };
269
+ export type Gemini25FlashCreateImageGenInput = Gemini25FlashImageGenInput & {} & {
270
+ operation: 'createImage';
271
+ };
272
+ export type Gemini25FlashEditImageGenInput = Gemini25FlashImageGenInput & {
273
+ images: Array<string>;
274
+ } & {
275
+ operation: 'editImage';
276
+ };
277
+ export type Gemini25FlashImageGenInput = GeminiImageGenInput & {
278
+ operation: string;
279
+ quantity?: number;
280
+ } & {
281
+ model: '2.5-flash';
282
+ };
283
+ export type GeminiImageGenInput = ImageGenInput & {
284
+ engine: 'gemini';
285
+ } & {
286
+ model: string;
287
+ prompt: string;
288
+ } & {
289
+ engine: 'gemini';
290
+ };
267
291
  export type GoogleImageGenInput = ImageGenInput & {
268
292
  engine: 'google';
269
293
  } & {
@@ -2022,7 +2046,10 @@ export type HeadBlobResponse = HeadBlobResponses[keyof HeadBlobResponses];
2022
2046
  export type InvokeAgeClassificationStepTemplateData = {
2023
2047
  body?: AgeClassificationInput;
2024
2048
  path?: never;
2025
- query?: never;
2049
+ query?: {
2050
+ experimental?: boolean;
2051
+ allowMatureContent?: boolean;
2052
+ };
2026
2053
  url: '/v2/consumer/recipes/ageClassification';
2027
2054
  };
2028
2055
  export type InvokeAgeClassificationStepTemplateErrors = {
@@ -2048,7 +2075,10 @@ export type InvokeAgeClassificationStepTemplateResponse =
2048
2075
  export type InvokeComfyStepTemplateData = {
2049
2076
  body?: ComfyInput;
2050
2077
  path?: never;
2051
- query?: never;
2078
+ query?: {
2079
+ experimental?: boolean;
2080
+ allowMatureContent?: boolean;
2081
+ };
2052
2082
  url: '/v2/consumer/recipes/comfy';
2053
2083
  };
2054
2084
  export type InvokeComfyStepTemplateErrors = {
@@ -2074,7 +2104,10 @@ export type InvokeComfyStepTemplateResponse =
2074
2104
  export type InvokeEchoStepTemplateData = {
2075
2105
  body?: EchoInput;
2076
2106
  path?: never;
2077
- query?: never;
2107
+ query?: {
2108
+ experimental?: boolean;
2109
+ allowMatureContent?: boolean;
2110
+ };
2078
2111
  url: '/v2/consumer/recipes/echo';
2079
2112
  };
2080
2113
  export type InvokeEchoStepTemplateErrors = {
@@ -2100,7 +2133,10 @@ export type InvokeEchoStepTemplateResponse =
2100
2133
  export type InvokeImageGenStepTemplateData = {
2101
2134
  body?: ImageGenInput;
2102
2135
  path?: never;
2103
- query?: never;
2136
+ query?: {
2137
+ experimental?: boolean;
2138
+ allowMatureContent?: boolean;
2139
+ };
2104
2140
  url: '/v2/consumer/recipes/imageGen';
2105
2141
  };
2106
2142
  export type InvokeImageGenStepTemplateErrors = {
@@ -2126,7 +2162,10 @@ export type InvokeImageGenStepTemplateResponse =
2126
2162
  export type InvokeImageResourceTrainingStepTemplateData = {
2127
2163
  body?: ImageResourceTrainingInput;
2128
2164
  path?: never;
2129
- query?: never;
2165
+ query?: {
2166
+ experimental?: boolean;
2167
+ allowMatureContent?: boolean;
2168
+ };
2130
2169
  url: '/v2/consumer/recipes/imageResourceTraining';
2131
2170
  };
2132
2171
  export type InvokeImageResourceTrainingStepTemplateErrors = {
@@ -2152,7 +2191,10 @@ export type InvokeImageResourceTrainingStepTemplateResponse =
2152
2191
  export type InvokeImageUploadStepTemplateData = {
2153
2192
  body?: string;
2154
2193
  path?: never;
2155
- query?: never;
2194
+ query?: {
2195
+ experimental?: boolean;
2196
+ allowMatureContent?: boolean;
2197
+ };
2156
2198
  url: '/v2/consumer/recipes/imageUpload';
2157
2199
  };
2158
2200
  export type InvokeImageUploadStepTemplateErrors = {
@@ -2178,7 +2220,10 @@ export type InvokeImageUploadStepTemplateResponse =
2178
2220
  export type InvokeTextToImageStepTemplateData = {
2179
2221
  body?: TextToImageInput;
2180
2222
  path?: never;
2181
- query?: never;
2223
+ query?: {
2224
+ experimental?: boolean;
2225
+ allowMatureContent?: boolean;
2226
+ };
2182
2227
  url: '/v2/consumer/recipes/textToImage';
2183
2228
  };
2184
2229
  export type InvokeTextToImageStepTemplateErrors = {
@@ -2204,7 +2249,10 @@ export type InvokeTextToImageStepTemplateResponse =
2204
2249
  export type InvokeVideoEnhancementStepTemplateData = {
2205
2250
  body?: VideoEnhancementInput;
2206
2251
  path?: never;
2207
- query?: never;
2252
+ query?: {
2253
+ experimental?: boolean;
2254
+ allowMatureContent?: boolean;
2255
+ };
2208
2256
  url: '/v2/consumer/recipes/videoEnhancement';
2209
2257
  };
2210
2258
  export type InvokeVideoEnhancementStepTemplateErrors = {
@@ -2230,7 +2278,10 @@ export type InvokeVideoEnhancementStepTemplateResponse =
2230
2278
  export type InvokeVideoGenStepTemplateData = {
2231
2279
  body?: VideoGenInput;
2232
2280
  path?: never;
2233
- query?: never;
2281
+ query?: {
2282
+ experimental?: boolean;
2283
+ allowMatureContent?: boolean;
2284
+ };
2234
2285
  url: '/v2/consumer/recipes/videoGen';
2235
2286
  };
2236
2287
  export type InvokeVideoGenStepTemplateErrors = {
@@ -4,8 +4,10 @@ export const AgeClassificationPrediction = {
4
4
  FAIL: 'fail',
5
5
  };
6
6
  export const BuzzClientAccount = {
7
- USER: 'user',
8
- GENERATION: 'generation',
7
+ YELLOW: 'yellow',
8
+ BLUE: 'blue',
9
+ GREEN: 'green',
10
+ FAKE_RED: 'fakeRed',
9
11
  };
10
12
  export const ContainerFormat = {
11
13
  MP4: 'mp4',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.2.0-beta.3",
3
+ "version": "0.2.0-beta.5",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",