@little-samo/samo-ai-sdk 0.6.4 → 0.6.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.
@@ -28,6 +28,9 @@ export interface UserPrivateDto extends UserPublicDto {
28
28
  isAllowSensitive: boolean;
29
29
  exp: number;
30
30
  nextExp: number;
31
+ prevLevelUpBonusCredit: number;
32
+ missionObjectiveBonusExp: number;
33
+ missionBonusExp: number;
31
34
  }
32
35
  export declare const UserAvatarSchema: z.ZodObject<{
33
36
  name: z.ZodString;
@@ -3,6 +3,7 @@ import { ItemEventDto } from '../../items';
3
3
  export declare const UserEventType: {
4
4
  readonly ItemEvent: "ItemEvent";
5
5
  readonly UserUpdated: "UserUpdated";
6
+ readonly UserLevelExpUpdated: "UserLevelExpUpdated";
6
7
  };
7
8
  export type UserEventType = (typeof UserEventType)[keyof typeof UserEventType];
8
9
  export interface UserEventDtoBase {
@@ -16,4 +17,14 @@ export interface UserItemEventDto extends UserEventDtoBase {
16
17
  export interface UserUpdatedEventDto extends UserEventDtoBase {
17
18
  type: typeof UserEventType.UserUpdated;
18
19
  }
19
- export type UserEventDto = UserItemEventDto | UserUpdatedEventDto;
20
+ export interface UserLevelExpUpdatedEventDto extends UserEventDtoBase {
21
+ type: typeof UserEventType.UserLevelExpUpdated;
22
+ reason: 'UNKNOWN' | 'CREDIT_SPENT_AT_LOCATION' | 'MISSION_OBJECTIVE_COMPLETE' | 'MISSION_COMPLETE';
23
+ level: number;
24
+ prevLevel: number;
25
+ exp: number;
26
+ prevExp: number;
27
+ nextExp: number;
28
+ bonusCredit: number;
29
+ }
30
+ export type UserEventDto = UserItemEventDto | UserUpdatedEventDto | UserLevelExpUpdatedEventDto;
@@ -4,5 +4,6 @@ exports.UserEventType = void 0;
4
4
  exports.UserEventType = {
5
5
  ItemEvent: 'ItemEvent',
6
6
  UserUpdated: 'UserUpdated',
7
+ UserLevelExpUpdated: 'UserLevelExpUpdated',
7
8
  };
8
9
  //# sourceMappingURL=user.events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.events.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.events.ts"],"names":[],"mappings":";;;AAIa,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;CAClB,CAAC"}
1
+ {"version":3,"file":"user.events.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.events.ts"],"names":[],"mappings":";;;AAIa,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,mBAAmB,EAAE,qBAAqB;CAClC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.ts"],"names":[],"mappings":";;;;;;AACA,8CAAoB;AAsCP,QAAA,gBAAgB,GAAG,aAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC5B,eAAe,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IACrC,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;CAChC,CAAC,CAAC"}
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.ts"],"names":[],"mappings":";;;;;;AACA,8CAAoB;AAyCP,QAAA,gBAAgB,GAAG,aAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC5B,eAAe,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IACrC,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;CAChC,CAAC,CAAC"}
@@ -76,8 +76,8 @@ export declare const UpdateUserAvatarBodySchema: z.ZodEffects<z.ZodObject<{
76
76
  appearance: string;
77
77
  role?: string | undefined;
78
78
  } | null | undefined;
79
- locationId?: bigint | undefined;
80
79
  index?: number | undefined;
80
+ locationId?: bigint | undefined;
81
81
  }, {
82
82
  avatar?: {
83
83
  name: string;
@@ -86,8 +86,8 @@ export declare const UpdateUserAvatarBodySchema: z.ZodEffects<z.ZodObject<{
86
86
  appearance: string;
87
87
  role?: string | undefined;
88
88
  } | null | undefined;
89
- locationId?: bigint | undefined;
90
89
  index?: number | undefined;
90
+ locationId?: bigint | undefined;
91
91
  }>, {
92
92
  avatar?: {
93
93
  name: string;
@@ -96,8 +96,8 @@ export declare const UpdateUserAvatarBodySchema: z.ZodEffects<z.ZodObject<{
96
96
  appearance: string;
97
97
  role?: string | undefined;
98
98
  } | null | undefined;
99
- locationId?: bigint | undefined;
100
99
  index?: number | undefined;
100
+ locationId?: bigint | undefined;
101
101
  }, {
102
102
  avatar?: {
103
103
  name: string;
@@ -106,8 +106,8 @@ export declare const UpdateUserAvatarBodySchema: z.ZodEffects<z.ZodObject<{
106
106
  appearance: string;
107
107
  role?: string | undefined;
108
108
  } | null | undefined;
109
- locationId?: bigint | undefined;
110
109
  index?: number | undefined;
110
+ locationId?: bigint | undefined;
111
111
  }>;
112
112
  export type UpdateUserAvatarBodyDto = z.infer<typeof UpdateUserAvatarBodySchema>;
113
113
  export interface UpdateUserAvatarResponseDto {
@@ -1,17 +1,17 @@
1
1
  import { z } from 'zod';
2
2
  export declare const GenerateAvatarImageBodySchema: z.ZodObject<{
3
3
  type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["avatar", "reference"]>>>;
4
- style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "illustration", "anime"]>>>;
4
+ style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "webtoon2", "illustration", "anime"]>>>;
5
5
  image: z.ZodOptional<z.ZodString>;
6
6
  prompt: z.ZodOptional<z.ZodString>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- style: "realistic" | "webtoon" | "illustration" | "anime";
9
8
  type: "avatar" | "reference";
9
+ style: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime";
10
10
  image?: string | undefined;
11
11
  prompt?: string | undefined;
12
12
  }, {
13
- style?: "realistic" | "webtoon" | "illustration" | "anime" | undefined;
14
13
  type?: "avatar" | "reference" | undefined;
14
+ style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | undefined;
15
15
  image?: string | undefined;
16
16
  prompt?: string | undefined;
17
17
  }>;
@@ -21,15 +21,15 @@ export interface GenerateAvatarImageResponseDto {
21
21
  imageUrl: string;
22
22
  }
23
23
  export declare const GenerateThumbnailImageBodySchema: z.ZodObject<{
24
- style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "illustration", "anime"]>>>;
24
+ style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "webtoon2", "illustration", "anime"]>>>;
25
25
  image: z.ZodOptional<z.ZodString>;
26
26
  prompt: z.ZodOptional<z.ZodString>;
27
27
  }, "strip", z.ZodTypeAny, {
28
- style: "realistic" | "webtoon" | "illustration" | "anime";
28
+ style: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime";
29
29
  image?: string | undefined;
30
30
  prompt?: string | undefined;
31
31
  }, {
32
- style?: "realistic" | "webtoon" | "illustration" | "anime" | undefined;
32
+ style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | undefined;
33
33
  image?: string | undefined;
34
34
  prompt?: string | undefined;
35
35
  }>;
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
5
5
  exports.GenerateAvatarImageBodySchema = zod_1.z.object({
6
6
  type: zod_1.z.enum(['avatar', 'reference']).optional().default('avatar'),
7
7
  style: zod_1.z
8
- .enum(['realistic', 'webtoon', 'illustration', 'anime'])
8
+ .enum(['realistic', 'webtoon', 'webtoon2', 'illustration', 'anime'])
9
9
  .optional()
10
10
  .default('webtoon'),
11
11
  image: zod_1.z.string().max(2048).optional(),
@@ -13,7 +13,7 @@ exports.GenerateAvatarImageBodySchema = zod_1.z.object({
13
13
  });
14
14
  exports.GenerateThumbnailImageBodySchema = zod_1.z.object({
15
15
  style: zod_1.z
16
- .enum(['realistic', 'webtoon', 'illustration', 'anime'])
16
+ .enum(['realistic', 'webtoon', 'webtoon2', 'illustration', 'anime'])
17
17
  .optional()
18
18
  .default('webtoon'),
19
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,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,QA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SACnE,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@little-samo/samo-ai-sdk",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "SamoAI SDK",
5
5
  "license": "MIT",
6
6
  "repository": {