@little-samo/samo-ai-sdk 0.5.4 → 0.6.0

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.
@@ -1,20 +1,39 @@
1
1
  import { z } from 'zod';
2
2
  export declare const GenerateAvatarImageBodySchema: z.ZodObject<{
3
- style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "cartoon", "anime"]>>>;
3
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["avatar", "reference"]>>>;
4
+ style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "illustration", "anime"]>>>;
4
5
  image: z.ZodOptional<z.ZodString>;
5
6
  prompt: z.ZodOptional<z.ZodString>;
6
7
  }, "strip", z.ZodTypeAny, {
7
- style: "realistic" | "webtoon" | "cartoon" | "anime";
8
+ style: "realistic" | "webtoon" | "illustration" | "anime";
9
+ type: "avatar" | "reference";
8
10
  image?: string | undefined;
9
11
  prompt?: string | undefined;
10
12
  }, {
11
- style?: "realistic" | "webtoon" | "cartoon" | "anime" | undefined;
13
+ style?: "realistic" | "webtoon" | "illustration" | "anime" | undefined;
14
+ type?: "avatar" | "reference" | undefined;
12
15
  image?: string | undefined;
13
16
  prompt?: string | undefined;
14
17
  }>;
15
18
  export type GenerateAvatarImageBodyDto = z.infer<typeof GenerateAvatarImageBodySchema>;
16
19
  export interface GenerateAvatarImageResponseDto {
17
- avatarUrl: string;
18
- referenceAvatarUrl: string;
19
20
  prompt: string;
21
+ imageUrl: string;
22
+ }
23
+ export declare const GenerateThumbnailImageBodySchema: z.ZodObject<{
24
+ style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "illustration", "anime"]>>>;
25
+ image: z.ZodOptional<z.ZodString>;
26
+ prompt: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ style: "realistic" | "webtoon" | "illustration" | "anime";
29
+ image?: string | undefined;
30
+ prompt?: string | undefined;
31
+ }, {
32
+ style?: "realistic" | "webtoon" | "illustration" | "anime" | undefined;
33
+ image?: string | undefined;
34
+ prompt?: string | undefined;
35
+ }>;
36
+ export type GenerateThumbnailImageBodyDto = z.infer<typeof GenerateThumbnailImageBodySchema>;
37
+ export interface GenerateThumbnailImageResponseDto {
38
+ imageUrl: string;
20
39
  }
@@ -1,10 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GenerateAvatarImageBodySchema = void 0;
3
+ exports.GenerateThumbnailImageBodySchema = exports.GenerateAvatarImageBodySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.GenerateAvatarImageBodySchema = zod_1.z.object({
6
+ type: zod_1.z.enum(['avatar', 'reference']).optional().default('avatar'),
6
7
  style: zod_1.z
7
- .enum(['realistic', 'webtoon', 'cartoon', 'anime'])
8
+ .enum(['realistic', 'webtoon', 'illustration', 'anime'])
9
+ .optional()
10
+ .default('webtoon'),
11
+ image: zod_1.z.string().max(2048).optional(),
12
+ prompt: zod_1.z.string().max(500).optional(),
13
+ });
14
+ exports.GenerateThumbnailImageBodySchema = zod_1.z.object({
15
+ style: zod_1.z
16
+ .enum(['realistic', 'webtoon', 'illustration', 'anime'])
8
17
  .optional()
9
18
  .default('webtoon'),
10
19
  image: zod_1.z.string().max(2048).optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"image.requests.js","sourceRoot":"","sources":["../../../src/dto/images/image.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAOX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,OAAC;SACL,IAAI,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;SAClD,QAAQ,EAAE;SACV,OAAO,CAAC,SAAS,CAAC;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
1
+ {"version":3,"file":"image.requests.js","sourceRoot":"","sources":["../../../src/dto/images/image.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAOX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;IAClE,KAAK,EAAE,OAAC;SACL,IAAI,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;SACvD,QAAQ,EAAE;SACV,OAAO,CAAC,SAAS,CAAC;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAYU,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,KAAK,EAAE,OAAC;SACL,IAAI,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;SACvD,QAAQ,EAAE;SACV,OAAO,CAAC,SAAS,CAAC;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
@@ -15,13 +15,13 @@ export declare const LocationPresetMessageSchema: z.ZodObject<{
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  entityType: "system" | "agent" | "user" | "gimmick";
17
17
  entityId: bigint;
18
- message?: string | undefined;
19
18
  image?: string | undefined;
19
+ message?: string | undefined;
20
20
  }, {
21
21
  entityType: "system" | "agent" | "user" | "gimmick";
22
22
  entityId: bigint;
23
- message?: string | undefined;
24
23
  image?: string | undefined;
24
+ message?: string | undefined;
25
25
  }>;
26
26
  export type LocationPresetMessageDto = z.infer<typeof LocationPresetMessageSchema>;
27
27
  export declare const LocationPresetCanvasSchema: z.ZodObject<{
@@ -65,6 +65,7 @@ export interface LocationPresetDto {
65
65
  presetDescription: string;
66
66
  presetShortDescription: string;
67
67
  thumbnail: string | null;
68
+ thumbnails: string[];
68
69
  ownerUserId: UserId | null;
69
70
  sourceLocationId: LocationId | null;
70
71
  agents: AgentPublicDto[];