@little-samo/samo-ai-sdk 0.2.0-rv5 → 0.2.1-rv1

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.
@@ -7,11 +7,11 @@ export declare const AgentsPaginationQuerySchema: z.ZodObject<{
7
7
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8
8
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- page: number;
11
10
  limit: number;
11
+ page: number;
12
12
  }, {
13
- page?: number | undefined;
14
13
  limit?: number | undefined;
14
+ page?: number | undefined;
15
15
  }>;
16
16
  export type AgentsPaginationQueryDto = z.infer<typeof AgentsPaginationQuerySchema>;
17
17
  export interface AgentsPaginatedResponseDto {
@@ -146,11 +146,12 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
146
146
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
147
147
  }, "strict", z.ZodTypeAny, {
148
148
  name?: string | undefined;
149
- avatar?: string | undefined;
150
- appearance?: string | undefined;
151
149
  core?: {
152
150
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
153
151
  } | undefined;
152
+ rules?: string[] | undefined;
153
+ appearance?: string | undefined;
154
+ avatar?: string | undefined;
154
155
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
155
156
  languages?: string[] | undefined;
156
157
  timeZone?: string | undefined;
@@ -176,14 +177,14 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
176
177
  mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
177
178
  } | undefined;
178
179
  } | undefined;
179
- rules?: string[] | undefined;
180
180
  }, {
181
181
  name?: string | undefined;
182
- avatar?: string | undefined;
183
- appearance?: string | undefined;
184
182
  core?: {
185
183
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
186
184
  } | undefined;
185
+ rules?: string[] | undefined;
186
+ appearance?: string | undefined;
187
+ avatar?: string | undefined;
187
188
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
188
189
  languages?: string[] | undefined;
189
190
  timeZone?: string | undefined;
@@ -209,17 +210,16 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
209
210
  mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
210
211
  } | undefined;
211
212
  } | undefined;
212
- rules?: string[] | undefined;
213
213
  }>;
214
214
  }, "strip", z.ZodTypeAny, {
215
- agentId: bigint;
216
215
  config: {
217
216
  name?: string | undefined;
218
- avatar?: string | undefined;
219
- appearance?: string | undefined;
220
217
  core?: {
221
218
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
222
219
  } | undefined;
220
+ rules?: string[] | undefined;
221
+ appearance?: string | undefined;
222
+ avatar?: string | undefined;
223
223
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
224
224
  languages?: string[] | undefined;
225
225
  timeZone?: string | undefined;
@@ -245,17 +245,17 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
245
245
  mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
246
246
  } | undefined;
247
247
  } | undefined;
248
- rules?: string[] | undefined;
249
248
  };
250
- }, {
251
249
  agentId: bigint;
250
+ }, {
252
251
  config: {
253
252
  name?: string | undefined;
254
- avatar?: string | undefined;
255
- appearance?: string | undefined;
256
253
  core?: {
257
254
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
258
255
  } | undefined;
256
+ rules?: string[] | undefined;
257
+ appearance?: string | undefined;
258
+ avatar?: string | undefined;
259
259
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
260
260
  languages?: string[] | undefined;
261
261
  timeZone?: string | undefined;
@@ -281,8 +281,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
281
281
  mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
282
282
  } | undefined;
283
283
  } | undefined;
284
- rules?: string[] | undefined;
285
284
  };
285
+ agentId: bigint;
286
286
  }>;
287
287
  export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
288
288
  export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
@@ -308,7 +308,6 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
308
308
  token: string;
309
309
  }>]>;
310
310
  }, "strip", z.ZodTypeAny, {
311
- agentId: bigint;
312
311
  credential: {
313
312
  type: "notion";
314
313
  token: string;
@@ -316,8 +315,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
316
315
  type: "notion";
317
316
  token: string;
318
317
  };
319
- }, {
320
318
  agentId: bigint;
319
+ }, {
321
320
  credential: {
322
321
  type: "notion";
323
322
  token: string;
@@ -325,6 +324,7 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
325
324
  type: "notion";
326
325
  token: string;
327
326
  };
327
+ agentId: bigint;
328
328
  }>;
329
329
  export type AgentUpdateCredentialDto = z.infer<typeof AgentUpdateCredentialSchema>;
330
330
  export interface AgentUpdateCredentialResponseDto {
@@ -335,11 +335,11 @@ export declare const AgentDeleteCredentialSchema: z.ZodObject<{
335
335
  agentId: z.ZodBigInt;
336
336
  credentialType: z.ZodString;
337
337
  }, "strip", z.ZodTypeAny, {
338
- agentId: bigint;
339
338
  credentialType: string;
340
- }, {
341
339
  agentId: bigint;
340
+ }, {
342
341
  credentialType: string;
342
+ agentId: bigint;
343
343
  }>;
344
344
  export type AgentDeleteCredentialDto = z.infer<typeof AgentDeleteCredentialSchema>;
345
345
  export interface AgentDeleteCredentialResponseDto {
@@ -350,11 +350,11 @@ export declare const AgentPresetsPaginationQuerySchema: z.ZodObject<{
350
350
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
351
351
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
352
352
  }, "strip", z.ZodTypeAny, {
353
- page: number;
354
353
  limit: number;
354
+ page: number;
355
355
  }, {
356
- page?: number | undefined;
357
356
  limit?: number | undefined;
357
+ page?: number | undefined;
358
358
  }>;
359
359
  export type AgentPresetsPaginationQueryDto = z.infer<typeof AgentPresetsPaginationQuerySchema>;
360
360
  export interface AgentPresetsPaginatedResponseDto {
@@ -474,11 +474,12 @@ export declare const CreateAgentSchema: z.ZodObject<{
474
474
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
475
475
  }, "strict", z.ZodTypeAny, {
476
476
  name?: string | undefined;
477
- avatar?: string | undefined;
478
- appearance?: string | undefined;
479
477
  core?: {
480
478
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
481
479
  } | undefined;
480
+ rules?: string[] | undefined;
481
+ appearance?: string | undefined;
482
+ avatar?: string | undefined;
482
483
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
483
484
  languages?: string[] | undefined;
484
485
  timeZone?: string | undefined;
@@ -504,14 +505,14 @@ export declare const CreateAgentSchema: z.ZodObject<{
504
505
  mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
505
506
  } | undefined;
506
507
  } | undefined;
507
- rules?: string[] | undefined;
508
508
  }, {
509
509
  name?: string | undefined;
510
- avatar?: string | undefined;
511
- appearance?: string | undefined;
512
510
  core?: {
513
511
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
514
512
  } | undefined;
513
+ rules?: string[] | undefined;
514
+ appearance?: string | undefined;
515
+ avatar?: string | undefined;
515
516
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
516
517
  languages?: string[] | undefined;
517
518
  timeZone?: string | undefined;
@@ -537,16 +538,16 @@ export declare const CreateAgentSchema: z.ZodObject<{
537
538
  mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
538
539
  } | undefined;
539
540
  } | undefined;
540
- rules?: string[] | undefined;
541
541
  }>;
542
542
  }, "strip", z.ZodTypeAny, {
543
543
  config: {
544
544
  name?: string | undefined;
545
- avatar?: string | undefined;
546
- appearance?: string | undefined;
547
545
  core?: {
548
546
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
549
547
  } | undefined;
548
+ rules?: string[] | undefined;
549
+ appearance?: string | undefined;
550
+ avatar?: string | undefined;
550
551
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
551
552
  languages?: string[] | undefined;
552
553
  timeZone?: string | undefined;
@@ -572,16 +573,16 @@ export declare const CreateAgentSchema: z.ZodObject<{
572
573
  mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
573
574
  } | undefined;
574
575
  } | undefined;
575
- rules?: string[] | undefined;
576
576
  };
577
577
  }, {
578
578
  config: {
579
579
  name?: string | undefined;
580
- avatar?: string | undefined;
581
- appearance?: string | undefined;
582
580
  core?: {
583
581
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
584
582
  } | undefined;
583
+ rules?: string[] | undefined;
584
+ appearance?: string | undefined;
585
+ avatar?: string | undefined;
585
586
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
586
587
  languages?: string[] | undefined;
587
588
  timeZone?: string | undefined;
@@ -607,7 +608,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
607
608
  mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
608
609
  } | undefined;
609
610
  } | undefined;
610
- rules?: string[] | undefined;
611
611
  };
612
612
  }>;
613
613
  export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
@@ -13,15 +13,15 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
13
13
  isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  appearance?: string | undefined;
16
+ birthDate?: Date | undefined;
16
17
  username?: string | undefined;
17
18
  nickname?: string | undefined;
18
- birthDate?: Date | undefined;
19
19
  isAllowSensitive?: boolean | undefined;
20
20
  }, {
21
21
  appearance?: string | undefined;
22
+ birthDate?: Date | undefined;
22
23
  username?: string | undefined;
23
24
  nickname?: string | undefined;
24
- birthDate?: Date | undefined;
25
25
  isAllowSensitive?: boolean | undefined;
26
26
  }>;
27
27
  export type UpdateCurrentUserBodyDto = z.infer<typeof UpdateCurrentUserBodySchema>;
@@ -1,24 +1,63 @@
1
1
  import { UserId } from '@little-samo/samo-ai';
2
+ import z from 'zod';
2
3
  import type { AgentCostDto, AgentPublicDto, GimmickCostDto, GimmickPublicDto } from '../entities';
4
+ export declare const LocationPresetMessageSchema: z.ZodObject<{
5
+ entityType: z.ZodNativeEnum<{
6
+ readonly System: "system";
7
+ readonly Agent: "agent";
8
+ readonly User: "user";
9
+ readonly Gimmick: "gimmick";
10
+ }>;
11
+ entityId: z.ZodBigInt;
12
+ message: z.ZodOptional<z.ZodString>;
13
+ image: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ entityType: "system" | "agent" | "user" | "gimmick";
16
+ entityId: bigint;
17
+ message?: string | undefined;
18
+ image?: string | undefined;
19
+ }, {
20
+ entityType: "system" | "agent" | "user" | "gimmick";
21
+ entityId: bigint;
22
+ message?: string | undefined;
23
+ image?: string | undefined;
24
+ }>;
25
+ export type LocationPresetMessageDto = z.infer<typeof LocationPresetMessageSchema>;
26
+ export declare const LocationPresetCanvasSchema: z.ZodObject<{
27
+ name: z.ZodString;
28
+ text: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ name: string;
31
+ text: string;
32
+ }, {
33
+ name: string;
34
+ text: string;
35
+ }>;
36
+ export type LocationPresetCanvasDto = z.infer<typeof LocationPresetCanvasSchema>;
3
37
  export interface LocationPresetDto {
4
38
  id: bigint;
5
39
  name: string;
6
40
  presetDescription: string;
41
+ presetShortDescription: string;
7
42
  thumbnail: string | null;
8
43
  ownerUserId: UserId | null;
9
44
  agents: AgentPublicDto[];
10
45
  agentCosts: AgentCostDto[];
11
46
  gimmicks: GimmickPublicDto[];
12
47
  gimmickCosts: GimmickCostDto[];
48
+ canvases: LocationPresetCanvasDto[];
49
+ messages: LocationPresetMessageDto[];
13
50
  isPublished: boolean;
14
51
  publishedAt: Date | null;
15
52
  hashtags: string[];
16
- locationCount: number;
17
- totalUsedCredit: number;
18
- totalMessageCount: number;
19
53
  isPublic: boolean;
20
54
  isAllowImport: boolean;
21
55
  isSensitive: boolean;
22
56
  createdAt: Date;
23
57
  updatedAt: Date;
24
58
  }
59
+ export interface LocationPresetDetailDto extends LocationPresetDto {
60
+ locationCount: number;
61
+ totalUsedCredit: number;
62
+ totalMessageCount: number;
63
+ }
@@ -1,3 +1,22 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LocationPresetCanvasSchema = exports.LocationPresetMessageSchema = void 0;
7
+ const samo_ai_1 = require("@little-samo/samo-ai");
8
+ const zod_1 = __importDefault(require("zod"));
9
+ exports.LocationPresetMessageSchema = zod_1.default.object({
10
+ entityType: zod_1.default.nativeEnum(samo_ai_1.EntityType),
11
+ entityId: zod_1.default.coerce.bigint(),
12
+ message: zod_1.default.string().max(800).optional(),
13
+ image: zod_1.default
14
+ .string()
15
+ .max(4 * 1024 * 1024)
16
+ .optional(),
17
+ });
18
+ exports.LocationPresetCanvasSchema = zod_1.default.object({
19
+ name: zod_1.default.string().max(32),
20
+ text: zod_1.default.string().max(5000),
21
+ });
3
22
  //# sourceMappingURL=location.preset.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"location.preset.js","sourceRoot":"","sources":["../../../src/dto/locations/location.preset.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"location.preset.js","sourceRoot":"","sources":["../../../src/dto/locations/location.preset.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0D;AAC1D,8CAAoB;AASP,QAAA,2BAA2B,GAAG,aAAC,CAAC,MAAM,CAAC;IAClD,UAAU,EAAE,aAAC,CAAC,UAAU,CAAC,oBAAU,CAAC;IACpC,QAAQ,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC3B,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,aAAC;SACL,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;SACpB,QAAQ,EAAE;CACd,CAAC,CAAC;AAMU,QAAA,0BAA0B,GAAG,aAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;CAC3B,CAAC,CAAC"}