@little-samo/samo-ai-sdk 0.7.2 → 0.7.4
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.
- package/dist/dto/entities/agents/agent.requests.d.ts +26 -26
- package/dist/dto/entities/users/user.d.ts +6 -0
- package/dist/dto/entities/users/user.js +2 -0
- package/dist/dto/entities/users/user.js.map +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +75 -90
- package/dist/dto/entities/users/user.requests.js +20 -11
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/images/image.d.ts +3 -0
- package/dist/dto/images/image.js +12 -0
- package/dist/dto/images/image.js.map +1 -0
- package/dist/dto/images/image.requests.d.ts +14 -0
- package/dist/dto/images/image.requests.js +9 -9
- package/dist/dto/images/image.requests.js.map +1 -1
- package/dist/dto/images/index.d.ts +1 -0
- package/dist/dto/images/index.js +1 -0
- package/dist/dto/images/index.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +158 -148
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageStyleSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ImageStyleSchema = zod_1.z.enum([
|
|
6
|
+
'realistic',
|
|
7
|
+
'webtoon',
|
|
8
|
+
'webtoon2',
|
|
9
|
+
'illustration',
|
|
10
|
+
'anime',
|
|
11
|
+
]);
|
|
12
|
+
//# sourceMappingURL=image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/dto/images/image.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IACrC,WAAW;IACX,SAAS;IACT,UAAU;IACV,cAAc;IACd,OAAO;CACR,CAAC,CAAC"}
|
|
@@ -37,3 +37,17 @@ export type GenerateThumbnailImageBodyDto = z.infer<typeof GenerateThumbnailImag
|
|
|
37
37
|
export interface GenerateThumbnailImageResponseDto {
|
|
38
38
|
imageUrl: string;
|
|
39
39
|
}
|
|
40
|
+
export declare const GetSceneImageQuerySchema: z.ZodObject<{
|
|
41
|
+
avatar: z.ZodBigInt;
|
|
42
|
+
scene: z.ZodString;
|
|
43
|
+
style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "webtoon2", "illustration", "anime"]>>>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
avatar: bigint;
|
|
46
|
+
style: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime";
|
|
47
|
+
scene: string;
|
|
48
|
+
}, {
|
|
49
|
+
avatar: bigint;
|
|
50
|
+
scene: string;
|
|
51
|
+
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
export type GetSceneImageQueryDto = z.infer<typeof GetSceneImageQuerySchema>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenerateThumbnailImageBodySchema = exports.GenerateAvatarImageBodySchema = void 0;
|
|
3
|
+
exports.GetSceneImageQuerySchema = exports.GenerateThumbnailImageBodySchema = exports.GenerateAvatarImageBodySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const image_1 = require("./image");
|
|
5
6
|
exports.GenerateAvatarImageBodySchema = zod_1.z.object({
|
|
6
7
|
type: zod_1.z.enum(['avatar', 'reference']).optional().default('avatar'),
|
|
7
|
-
style:
|
|
8
|
-
.enum(['realistic', 'webtoon', 'webtoon2', 'illustration', 'anime'])
|
|
9
|
-
.optional()
|
|
10
|
-
.default('webtoon'),
|
|
8
|
+
style: image_1.ImageStyleSchema.optional().default('webtoon'),
|
|
11
9
|
image: zod_1.z.string().max(2048).optional(),
|
|
12
10
|
prompt: zod_1.z.string().max(500).optional(),
|
|
13
11
|
});
|
|
14
12
|
exports.GenerateThumbnailImageBodySchema = zod_1.z.object({
|
|
15
|
-
style:
|
|
16
|
-
.enum(['realistic', 'webtoon', 'webtoon2', 'illustration', 'anime'])
|
|
17
|
-
.optional()
|
|
18
|
-
.default('webtoon'),
|
|
13
|
+
style: image_1.ImageStyleSchema.optional().default('webtoon'),
|
|
19
14
|
image: zod_1.z.string().max(2048).optional(),
|
|
20
15
|
prompt: zod_1.z.string().max(500).optional(),
|
|
21
16
|
});
|
|
17
|
+
exports.GetSceneImageQuerySchema = zod_1.z.object({
|
|
18
|
+
avatar: zod_1.z.coerce.bigint(),
|
|
19
|
+
scene: zod_1.z.string().max(1000),
|
|
20
|
+
style: image_1.ImageStyleSchema.optional().default('webtoon'),
|
|
21
|
+
});
|
|
22
22
|
//# sourceMappingURL=image.requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.requests.js","sourceRoot":"","sources":["../../../src/dto/images/image.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"image.requests.js","sourceRoot":"","sources":["../../../src/dto/images/image.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,mCAA2C;AAO9B,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,wBAAgB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC;IACrD,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,wBAAgB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC;IACrD,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;AAWU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC3B,KAAK,EAAE,wBAAgB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC;CACtD,CAAC,CAAC"}
|
package/dist/dto/images/index.js
CHANGED
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./image.requests"), exports);
|
|
18
|
+
__exportStar(require("./image"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/images/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/images/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,0CAAwB"}
|