@little-samo/samo-ai-sdk 0.1.5 → 0.2.0-rv2
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.d.ts +1 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +45 -34
- package/dist/dto/entities/agents/agent.requests.js +4 -1
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/entities/users/user.d.ts +1 -0
- package/dist/dto/entities/users/user.events.d.ts +7 -2
- package/dist/dto/entities/users/user.events.js +1 -0
- package/dist/dto/entities/users/user.events.js.map +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +12 -0
- package/dist/dto/entities/users/user.requests.js +4 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/index.d.ts +1 -0
- package/dist/dto/index.js +1 -0
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/items/item.events.d.ts +2 -1
- package/dist/dto/items/item.events.js.map +1 -1
- package/dist/dto/locations/location.d.ts +4 -0
- package/dist/dto/locations/location.requests.d.ts +64 -42
- package/dist/dto/locations/location.requests.js +11 -5
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/rankings/index.d.ts +1 -0
- package/dist/dto/rankings/index.js +18 -0
- package/dist/dto/rankings/index.js.map +1 -0
- package/dist/dto/rankings/ranking.d.ts +13 -0
- package/dist/dto/rankings/ranking.js +3 -0
- package/dist/dto/rankings/ranking.js.map +1 -0
- package/dist/models/entities/agents/agent.config.js +2 -2
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.js +7 -7
- package/dist/models/locations/location.config.js.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
-
limit: number;
|
|
11
10
|
page: number;
|
|
11
|
+
limit: number;
|
|
12
12
|
}, {
|
|
13
|
-
limit?: number | undefined;
|
|
14
13
|
page?: number | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
export type AgentsPaginationQueryDto = z.infer<typeof AgentsPaginationQuerySchema>;
|
|
17
17
|
export interface AgentsPaginatedResponseDto {
|
|
@@ -146,12 +146,11 @@ 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;
|
|
149
151
|
core?: {
|
|
150
152
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
151
153
|
} | undefined;
|
|
152
|
-
appearance?: string | undefined;
|
|
153
|
-
rules?: string[] | undefined;
|
|
154
|
-
avatar?: string | undefined;
|
|
155
154
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
156
155
|
languages?: string[] | undefined;
|
|
157
156
|
timeZone?: string | undefined;
|
|
@@ -177,14 +176,14 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
177
176
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
178
177
|
} | undefined;
|
|
179
178
|
} | undefined;
|
|
179
|
+
rules?: string[] | undefined;
|
|
180
180
|
}, {
|
|
181
181
|
name?: string | undefined;
|
|
182
|
+
avatar?: string | undefined;
|
|
183
|
+
appearance?: string | undefined;
|
|
182
184
|
core?: {
|
|
183
185
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
184
186
|
} | undefined;
|
|
185
|
-
appearance?: string | undefined;
|
|
186
|
-
rules?: string[] | undefined;
|
|
187
|
-
avatar?: string | undefined;
|
|
188
187
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
189
188
|
languages?: string[] | undefined;
|
|
190
189
|
timeZone?: string | undefined;
|
|
@@ -210,16 +209,17 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
210
209
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
211
210
|
} | undefined;
|
|
212
211
|
} | undefined;
|
|
212
|
+
rules?: string[] | undefined;
|
|
213
213
|
}>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
agentId: bigint;
|
|
215
216
|
config: {
|
|
216
217
|
name?: string | undefined;
|
|
218
|
+
avatar?: string | undefined;
|
|
219
|
+
appearance?: string | undefined;
|
|
217
220
|
core?: {
|
|
218
221
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
219
222
|
} | undefined;
|
|
220
|
-
appearance?: string | undefined;
|
|
221
|
-
rules?: 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;
|
|
248
249
|
};
|
|
249
|
-
agentId: bigint;
|
|
250
250
|
}, {
|
|
251
|
+
agentId: bigint;
|
|
251
252
|
config: {
|
|
252
253
|
name?: string | undefined;
|
|
254
|
+
avatar?: string | undefined;
|
|
255
|
+
appearance?: string | undefined;
|
|
253
256
|
core?: {
|
|
254
257
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
255
258
|
} | undefined;
|
|
256
|
-
appearance?: string | undefined;
|
|
257
|
-
rules?: 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;
|
|
284
285
|
};
|
|
285
|
-
agentId: bigint;
|
|
286
286
|
}>;
|
|
287
287
|
export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
|
|
288
288
|
export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
@@ -308,6 +308,7 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
308
308
|
token: string;
|
|
309
309
|
}>]>;
|
|
310
310
|
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
agentId: bigint;
|
|
311
312
|
credential: {
|
|
312
313
|
type: "notion";
|
|
313
314
|
token: string;
|
|
@@ -315,8 +316,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
315
316
|
type: "notion";
|
|
316
317
|
token: string;
|
|
317
318
|
};
|
|
318
|
-
agentId: bigint;
|
|
319
319
|
}, {
|
|
320
|
+
agentId: bigint;
|
|
320
321
|
credential: {
|
|
321
322
|
type: "notion";
|
|
322
323
|
token: string;
|
|
@@ -324,7 +325,6 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
324
325
|
type: "notion";
|
|
325
326
|
token: string;
|
|
326
327
|
};
|
|
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
|
-
credentialType: string;
|
|
339
338
|
agentId: bigint;
|
|
340
|
-
}, {
|
|
341
339
|
credentialType: string;
|
|
340
|
+
}, {
|
|
342
341
|
agentId: bigint;
|
|
342
|
+
credentialType: string;
|
|
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
|
-
limit: number;
|
|
354
353
|
page: number;
|
|
354
|
+
limit: number;
|
|
355
355
|
}, {
|
|
356
|
-
limit?: number | undefined;
|
|
357
356
|
page?: number | undefined;
|
|
357
|
+
limit?: number | undefined;
|
|
358
358
|
}>;
|
|
359
359
|
export type AgentPresetsPaginationQueryDto = z.infer<typeof AgentPresetsPaginationQuerySchema>;
|
|
360
360
|
export interface AgentPresetsPaginatedResponseDto {
|
|
@@ -474,12 +474,11 @@ 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;
|
|
477
479
|
core?: {
|
|
478
480
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
479
481
|
} | undefined;
|
|
480
|
-
appearance?: string | undefined;
|
|
481
|
-
rules?: string[] | undefined;
|
|
482
|
-
avatar?: string | undefined;
|
|
483
482
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
484
483
|
languages?: string[] | undefined;
|
|
485
484
|
timeZone?: string | undefined;
|
|
@@ -505,14 +504,14 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
505
504
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
506
505
|
} | undefined;
|
|
507
506
|
} | undefined;
|
|
507
|
+
rules?: string[] | undefined;
|
|
508
508
|
}, {
|
|
509
509
|
name?: string | undefined;
|
|
510
|
+
avatar?: string | undefined;
|
|
511
|
+
appearance?: string | undefined;
|
|
510
512
|
core?: {
|
|
511
513
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
512
514
|
} | undefined;
|
|
513
|
-
appearance?: string | undefined;
|
|
514
|
-
rules?: string[] | undefined;
|
|
515
|
-
avatar?: string | undefined;
|
|
516
515
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
517
516
|
languages?: string[] | undefined;
|
|
518
517
|
timeZone?: string | undefined;
|
|
@@ -538,16 +537,16 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
538
537
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
539
538
|
} | undefined;
|
|
540
539
|
} | 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;
|
|
545
547
|
core?: {
|
|
546
548
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
547
549
|
} | undefined;
|
|
548
|
-
appearance?: string | undefined;
|
|
549
|
-
rules?: string[] | undefined;
|
|
550
|
-
avatar?: string | undefined;
|
|
551
550
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
552
551
|
languages?: string[] | undefined;
|
|
553
552
|
timeZone?: string | undefined;
|
|
@@ -573,16 +572,16 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
573
572
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
574
573
|
} | undefined;
|
|
575
574
|
} | 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;
|
|
580
582
|
core?: {
|
|
581
583
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
582
584
|
} | undefined;
|
|
583
|
-
appearance?: string | undefined;
|
|
584
|
-
rules?: string[] | undefined;
|
|
585
|
-
avatar?: string | undefined;
|
|
586
585
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
587
586
|
languages?: string[] | undefined;
|
|
588
587
|
timeZone?: string | undefined;
|
|
@@ -608,12 +607,24 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
608
607
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
609
608
|
} | undefined;
|
|
610
609
|
} | undefined;
|
|
610
|
+
rules?: string[] | undefined;
|
|
611
611
|
};
|
|
612
612
|
}>;
|
|
613
613
|
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
614
614
|
export interface CreateAgentResponseDto {
|
|
615
615
|
agent: AgentPrivateDto;
|
|
616
616
|
}
|
|
617
|
+
export declare const CopyAgentSchema: z.ZodObject<{
|
|
618
|
+
agentId: z.ZodBigInt;
|
|
619
|
+
}, "strip", z.ZodTypeAny, {
|
|
620
|
+
agentId: bigint;
|
|
621
|
+
}, {
|
|
622
|
+
agentId: bigint;
|
|
623
|
+
}>;
|
|
624
|
+
export type CopyAgentDto = z.infer<typeof CopyAgentSchema>;
|
|
625
|
+
export interface CopyAgentResponseDto {
|
|
626
|
+
agent: AgentPrivateDto;
|
|
627
|
+
}
|
|
617
628
|
export declare const CreateAgentFromPresetSchema: z.ZodObject<{
|
|
618
629
|
presetId: z.ZodBigInt;
|
|
619
630
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteAgentParamsSchema = exports.UploadAgentAvatarParamsSchema = exports.GetAgentCostParamsSchema = exports.GetAgentLocationsParamsSchema = exports.GetHelperAgentSchema = exports.CreateAgentFromPresetSchema = exports.CreateAgentSchema = exports.AgentPresetsPaginationQuerySchema = exports.AgentDeleteCredentialSchema = exports.AgentUpdateCredentialSchema = exports.AgentUpdateConfigSchema = exports.GetAgentsByIdsQuerySchema = exports.AgentsPaginationQuerySchema = void 0;
|
|
3
|
+
exports.DeleteAgentParamsSchema = exports.UploadAgentAvatarParamsSchema = exports.GetAgentCostParamsSchema = exports.GetAgentLocationsParamsSchema = exports.GetHelperAgentSchema = exports.CreateAgentFromPresetSchema = exports.CopyAgentSchema = exports.CreateAgentSchema = exports.AgentPresetsPaginationQuerySchema = exports.AgentDeleteCredentialSchema = exports.AgentUpdateCredentialSchema = exports.AgentUpdateConfigSchema = exports.GetAgentsByIdsQuerySchema = exports.AgentsPaginationQuerySchema = void 0;
|
|
4
4
|
const models_1 = require("@little-samo/samo-ai-sdk/models");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.AgentsPaginationQuerySchema = zod_1.z.object({
|
|
@@ -49,6 +49,9 @@ exports.CreateAgentSchema = zod_1.z.object({
|
|
|
49
49
|
.strict()
|
|
50
50
|
.describe('Agent configuration settings (e.g., name, avatar, character, etc.)'),
|
|
51
51
|
});
|
|
52
|
+
exports.CopyAgentSchema = zod_1.z.object({
|
|
53
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
54
|
+
});
|
|
52
55
|
exports.CreateAgentFromPresetSchema = zod_1.z.object({
|
|
53
56
|
presetId: zod_1.z.coerce.bigint(),
|
|
54
57
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/agents/agent.requests.ts"],"names":[],"mappings":";;;AACA,4DAIyC;AACzC,6BAAwB;AAUX,QAAA,2BAA2B,GAAG,OA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AAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAWU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AASU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAWU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
import { UserId } from '@little-samo/samo-ai';
|
|
1
2
|
import { ItemEventDto } from '../../items';
|
|
2
3
|
export declare const UserEventType: {
|
|
3
4
|
readonly ItemEvent: "ItemEvent";
|
|
5
|
+
readonly UserUpdated: "UserUpdated";
|
|
4
6
|
};
|
|
5
7
|
export type UserEventType = (typeof UserEventType)[keyof typeof UserEventType];
|
|
6
8
|
export interface UserEventDtoBase {
|
|
7
|
-
userId:
|
|
9
|
+
userId: UserId;
|
|
8
10
|
type: UserEventType;
|
|
9
11
|
}
|
|
10
12
|
export interface UserItemEventDto extends UserEventDtoBase {
|
|
11
13
|
type: typeof UserEventType.ItemEvent;
|
|
12
14
|
itemEvent: ItemEventDto;
|
|
13
15
|
}
|
|
14
|
-
export
|
|
16
|
+
export interface UserUpdatedEventDto extends UserEventDtoBase {
|
|
17
|
+
type: typeof UserEventType.UserUpdated;
|
|
18
|
+
}
|
|
19
|
+
export type UserEventDto = UserItemEventDto | UserUpdatedEventDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.events.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.events.ts"],"names":[],"mappings":";;;
|
|
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"}
|
|
@@ -5,6 +5,18 @@ export type GetCurrentUserQueryDto = z.infer<typeof GetCurrentUserQuerySchema>;
|
|
|
5
5
|
export interface GetCurrentUserResponseDto {
|
|
6
6
|
user: UserPrivateDto;
|
|
7
7
|
}
|
|
8
|
+
export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
9
|
+
isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
isAllowSensitive?: boolean | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
isAllowSensitive?: boolean | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type UpdateCurrentUserBodyDto = z.infer<typeof UpdateCurrentUserBodySchema>;
|
|
16
|
+
export interface UpdateCurrentUserResponseDto {
|
|
17
|
+
success: boolean;
|
|
18
|
+
error?: string;
|
|
19
|
+
}
|
|
8
20
|
export declare const GetUsersByIdsQuerySchema: z.ZodObject<{
|
|
9
21
|
userIds: z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>;
|
|
10
22
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCurrentUserSchema = exports.GetUsersByIdsQuerySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
3
|
+
exports.GetCurrentUserSchema = exports.GetUsersByIdsQuerySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
6
|
+
exports.UpdateCurrentUserBodySchema = zod_1.z.object({
|
|
7
|
+
isAllowSensitive: zod_1.z.boolean().optional(),
|
|
8
|
+
});
|
|
6
9
|
exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
7
10
|
userIds: zod_1.z
|
|
8
11
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AASX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AASzC,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACjE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACnD,OAAO,EAAE,oCAAoC;KAC9C,CAAC;CACL,CAAC,CAAC;AAaU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AASX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AASzC,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAYU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACjE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACnD,OAAO,EAAE,oCAAoC;KAC9C,CAAC;CACL,CAAC,CAAC;AAaU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
package/dist/dto/index.d.ts
CHANGED
package/dist/dto/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./entities"), exports);
|
|
18
18
|
__exportStar(require("./items"), exports);
|
|
19
19
|
__exportStar(require("./locations"), exports);
|
|
20
|
+
__exportStar(require("./rankings"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
package/dist/dto/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ItemId } from '@little-samo/samo-ai';
|
|
1
2
|
import { ItemDto, ItemUpdateDto } from './item';
|
|
2
3
|
export declare const ItemEventType: {
|
|
3
4
|
readonly Created: "Created";
|
|
@@ -5,7 +6,7 @@ export declare const ItemEventType: {
|
|
|
5
6
|
};
|
|
6
7
|
export type ItemEventType = (typeof ItemEventType)[keyof typeof ItemEventType];
|
|
7
8
|
export interface ItemEventDtoBase {
|
|
8
|
-
itemId:
|
|
9
|
+
itemId: ItemId;
|
|
9
10
|
type: ItemEventType;
|
|
10
11
|
}
|
|
11
12
|
export interface ItemCreatedEventDto extends ItemEventDtoBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.events.js","sourceRoot":"","sources":["../../../src/dto/items/item.events.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"item.events.js","sourceRoot":"","sources":["../../../src/dto/items/item.events.ts"],"names":[],"mappings":";;;AAIa,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC"}
|
|
@@ -22,11 +22,15 @@ export interface LocationPublicDto {
|
|
|
22
22
|
param4: bigint;
|
|
23
23
|
freeCreditBalance: number;
|
|
24
24
|
paidCreditBalance: number;
|
|
25
|
+
totalUsedCredit: number;
|
|
26
|
+
lastChargedCredit: number;
|
|
25
27
|
useLocationCreditOnly: boolean;
|
|
26
28
|
creditCostPerChat: number;
|
|
27
29
|
chatRequiresPaidCredit: boolean;
|
|
28
30
|
isPublic: boolean;
|
|
29
31
|
isAdminChat: boolean;
|
|
32
|
+
isSensitive: boolean;
|
|
33
|
+
isAllowCopy: boolean;
|
|
30
34
|
createdAt: Date;
|
|
31
35
|
updatedAt: Date;
|
|
32
36
|
}
|
|
@@ -2,6 +2,7 @@ import { DayOfWeek } from '@little-samo/samo-ai/common';
|
|
|
2
2
|
import { LocationId } from '@little-samo/samo-ai/models';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { LocationConfig } from '../../models/locations/location.config';
|
|
5
|
+
import { AgentPrivateDto } from '../entities/agents/agent';
|
|
5
6
|
import { LocationContentDto, LocationCostDto, LocationListItemDto, LocationPrivateDto } from './location';
|
|
6
7
|
import { LocationMessageDto } from './location.message';
|
|
7
8
|
import { LocationPresetDto } from './location.preset';
|
|
@@ -14,8 +15,8 @@ export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
|
14
15
|
limit: number;
|
|
15
16
|
cursor?: string | undefined;
|
|
16
17
|
}, {
|
|
17
|
-
cursor?: string | undefined;
|
|
18
18
|
limit?: number | undefined;
|
|
19
|
+
cursor?: string | undefined;
|
|
19
20
|
}>;
|
|
20
21
|
export type UserLocationsQueryDto = z.infer<typeof UserLocationsQuerySchema>;
|
|
21
22
|
export interface UserLocationsResponseDto {
|
|
@@ -29,11 +30,11 @@ export declare const PublishedLocationsQuerySchema: z.ZodObject<{
|
|
|
29
30
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
30
31
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
31
32
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
limit: number;
|
|
33
33
|
page: number;
|
|
34
|
+
limit: number;
|
|
34
35
|
}, {
|
|
35
|
-
limit?: number | undefined;
|
|
36
36
|
page?: number | undefined;
|
|
37
|
+
limit?: number | undefined;
|
|
37
38
|
}>;
|
|
38
39
|
export type PublishedLocationsQueryDto = z.infer<typeof PublishedLocationsQuerySchema>;
|
|
39
40
|
export interface PublishedLocationsResponseDto {
|
|
@@ -114,7 +115,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
114
115
|
maxLength: number;
|
|
115
116
|
}>, "many">>;
|
|
116
117
|
gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
117
|
-
core: z.ZodUnion<[z.ZodLiteral<"
|
|
118
|
+
core: z.ZodUnion<[z.ZodLiteral<"notion" | "web_search" | "image_generator">, z.ZodLiteral<"notion" | "web_search" | "image_generator">, ...z.ZodLiteral<"notion" | "web_search" | "image_generator">[]]>;
|
|
118
119
|
name: z.ZodString;
|
|
119
120
|
appearance: z.ZodString;
|
|
120
121
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -129,16 +130,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
129
130
|
}>, "many">>;
|
|
130
131
|
}, "strip", z.ZodTypeAny, {
|
|
131
132
|
name: string;
|
|
132
|
-
core: "web_search" | "image_generator" | "notion";
|
|
133
133
|
appearance: string;
|
|
134
|
+
core: "notion" | "web_search" | "image_generator";
|
|
134
135
|
images?: {
|
|
135
136
|
description: string;
|
|
136
137
|
url: string;
|
|
137
138
|
}[] | undefined;
|
|
138
139
|
}, {
|
|
139
140
|
name: string;
|
|
140
|
-
core: "web_search" | "image_generator" | "notion";
|
|
141
141
|
appearance: string;
|
|
142
|
+
core: "notion" | "web_search" | "image_generator";
|
|
142
143
|
images?: {
|
|
143
144
|
description: string;
|
|
144
145
|
url: string;
|
|
@@ -152,9 +153,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
152
153
|
sequential?: boolean | undefined;
|
|
153
154
|
interval?: number | undefined;
|
|
154
155
|
} | undefined;
|
|
156
|
+
rules?: string[] | undefined;
|
|
155
157
|
thumbnail?: string | null | undefined;
|
|
156
158
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
157
|
-
rules?: string[] | undefined;
|
|
158
159
|
canvases?: {
|
|
159
160
|
name: string;
|
|
160
161
|
description: string;
|
|
@@ -167,8 +168,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
167
168
|
}[] | undefined;
|
|
168
169
|
gimmicks?: {
|
|
169
170
|
name: string;
|
|
170
|
-
core: "web_search" | "image_generator" | "notion";
|
|
171
171
|
appearance: string;
|
|
172
|
+
core: "notion" | "web_search" | "image_generator";
|
|
172
173
|
images?: {
|
|
173
174
|
description: string;
|
|
174
175
|
url: string;
|
|
@@ -182,9 +183,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
182
183
|
sequential?: boolean | undefined;
|
|
183
184
|
interval?: number | undefined;
|
|
184
185
|
} | undefined;
|
|
186
|
+
rules?: string[] | undefined;
|
|
185
187
|
thumbnail?: string | null | undefined;
|
|
186
188
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
187
|
-
rules?: string[] | undefined;
|
|
188
189
|
canvases?: {
|
|
189
190
|
name: string;
|
|
190
191
|
description: string;
|
|
@@ -197,8 +198,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
197
198
|
}[] | undefined;
|
|
198
199
|
gimmicks?: {
|
|
199
200
|
name: string;
|
|
200
|
-
core: "web_search" | "image_generator" | "notion";
|
|
201
201
|
appearance: string;
|
|
202
|
+
core: "notion" | "web_search" | "image_generator";
|
|
202
203
|
images?: {
|
|
203
204
|
description: string;
|
|
204
205
|
url: string;
|
|
@@ -206,7 +207,6 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
206
207
|
}[] | undefined;
|
|
207
208
|
}>;
|
|
208
209
|
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
locationId: bigint;
|
|
210
210
|
config: {
|
|
211
211
|
name?: string | undefined;
|
|
212
212
|
description?: string | undefined;
|
|
@@ -215,9 +215,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
215
215
|
sequential?: boolean | undefined;
|
|
216
216
|
interval?: number | undefined;
|
|
217
217
|
} | undefined;
|
|
218
|
+
rules?: string[] | undefined;
|
|
218
219
|
thumbnail?: string | null | undefined;
|
|
219
220
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
220
|
-
rules?: string[] | undefined;
|
|
221
221
|
canvases?: {
|
|
222
222
|
name: string;
|
|
223
223
|
description: string;
|
|
@@ -230,16 +230,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
230
230
|
}[] | undefined;
|
|
231
231
|
gimmicks?: {
|
|
232
232
|
name: string;
|
|
233
|
-
core: "web_search" | "image_generator" | "notion";
|
|
234
233
|
appearance: string;
|
|
234
|
+
core: "notion" | "web_search" | "image_generator";
|
|
235
235
|
images?: {
|
|
236
236
|
description: string;
|
|
237
237
|
url: string;
|
|
238
238
|
}[] | undefined;
|
|
239
239
|
}[] | undefined;
|
|
240
240
|
};
|
|
241
|
-
}, {
|
|
242
241
|
locationId: bigint;
|
|
242
|
+
}, {
|
|
243
243
|
config: {
|
|
244
244
|
name?: string | undefined;
|
|
245
245
|
description?: string | undefined;
|
|
@@ -248,9 +248,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
248
248
|
sequential?: boolean | undefined;
|
|
249
249
|
interval?: number | undefined;
|
|
250
250
|
} | undefined;
|
|
251
|
+
rules?: string[] | undefined;
|
|
251
252
|
thumbnail?: string | null | undefined;
|
|
252
253
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
253
|
-
rules?: string[] | undefined;
|
|
254
254
|
canvases?: {
|
|
255
255
|
name: string;
|
|
256
256
|
description: string;
|
|
@@ -263,14 +263,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
263
263
|
}[] | undefined;
|
|
264
264
|
gimmicks?: {
|
|
265
265
|
name: string;
|
|
266
|
-
core: "web_search" | "image_generator" | "notion";
|
|
267
266
|
appearance: string;
|
|
267
|
+
core: "notion" | "web_search" | "image_generator";
|
|
268
268
|
images?: {
|
|
269
269
|
description: string;
|
|
270
270
|
url: string;
|
|
271
271
|
}[] | undefined;
|
|
272
272
|
}[] | undefined;
|
|
273
273
|
};
|
|
274
|
+
locationId: bigint;
|
|
274
275
|
}>;
|
|
275
276
|
export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
|
|
276
277
|
export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
|
|
@@ -296,7 +297,6 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
|
296
297
|
token: string;
|
|
297
298
|
}>]>;
|
|
298
299
|
}, "strip", z.ZodTypeAny, {
|
|
299
|
-
locationId: bigint;
|
|
300
300
|
credential: {
|
|
301
301
|
type: "notion";
|
|
302
302
|
token: string;
|
|
@@ -304,8 +304,8 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
|
304
304
|
type: "notion";
|
|
305
305
|
token: string;
|
|
306
306
|
};
|
|
307
|
-
}, {
|
|
308
307
|
locationId: bigint;
|
|
308
|
+
}, {
|
|
309
309
|
credential: {
|
|
310
310
|
type: "notion";
|
|
311
311
|
token: string;
|
|
@@ -313,6 +313,7 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
|
313
313
|
type: "notion";
|
|
314
314
|
token: string;
|
|
315
315
|
};
|
|
316
|
+
locationId: bigint;
|
|
316
317
|
}>;
|
|
317
318
|
export type LocationUpdateCredentialDto = z.infer<typeof LocationUpdateCredentialSchema>;
|
|
318
319
|
export interface LocationUpdateCredentialResponseDto {
|
|
@@ -323,11 +324,11 @@ export declare const LocationDeleteCredentialSchema: z.ZodObject<{
|
|
|
323
324
|
locationId: z.ZodBigInt;
|
|
324
325
|
credentialType: z.ZodString;
|
|
325
326
|
}, "strip", z.ZodTypeAny, {
|
|
326
|
-
locationId: bigint;
|
|
327
327
|
credentialType: string;
|
|
328
|
-
}, {
|
|
329
328
|
locationId: bigint;
|
|
329
|
+
}, {
|
|
330
330
|
credentialType: string;
|
|
331
|
+
locationId: bigint;
|
|
331
332
|
}>;
|
|
332
333
|
export type LocationDeleteCredentialDto = z.infer<typeof LocationDeleteCredentialSchema>;
|
|
333
334
|
export interface LocationDeleteCredentialResponseDto {
|
|
@@ -338,11 +339,11 @@ export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
338
339
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
339
340
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
340
341
|
}, "strip", z.ZodTypeAny, {
|
|
341
|
-
limit: number;
|
|
342
342
|
page: number;
|
|
343
|
+
limit: number;
|
|
343
344
|
}, {
|
|
344
|
-
limit?: number | undefined;
|
|
345
345
|
page?: number | undefined;
|
|
346
|
+
limit?: number | undefined;
|
|
346
347
|
}>;
|
|
347
348
|
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
348
349
|
export interface LocationPresetsPaginatedResponseDto {
|
|
@@ -401,7 +402,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
401
402
|
maxLength: number;
|
|
402
403
|
}>, "many">>;
|
|
403
404
|
gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
404
|
-
core: z.ZodUnion<[z.ZodLiteral<"
|
|
405
|
+
core: z.ZodUnion<[z.ZodLiteral<"notion" | "web_search" | "image_generator">, z.ZodLiteral<"notion" | "web_search" | "image_generator">, ...z.ZodLiteral<"notion" | "web_search" | "image_generator">[]]>;
|
|
405
406
|
name: z.ZodString;
|
|
406
407
|
appearance: z.ZodString;
|
|
407
408
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -416,16 +417,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
416
417
|
}>, "many">>;
|
|
417
418
|
}, "strip", z.ZodTypeAny, {
|
|
418
419
|
name: string;
|
|
419
|
-
core: "web_search" | "image_generator" | "notion";
|
|
420
420
|
appearance: string;
|
|
421
|
+
core: "notion" | "web_search" | "image_generator";
|
|
421
422
|
images?: {
|
|
422
423
|
description: string;
|
|
423
424
|
url: string;
|
|
424
425
|
}[] | undefined;
|
|
425
426
|
}, {
|
|
426
427
|
name: string;
|
|
427
|
-
core: "web_search" | "image_generator" | "notion";
|
|
428
428
|
appearance: string;
|
|
429
|
+
core: "notion" | "web_search" | "image_generator";
|
|
429
430
|
images?: {
|
|
430
431
|
description: string;
|
|
431
432
|
url: string;
|
|
@@ -439,9 +440,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
439
440
|
sequential?: boolean | undefined;
|
|
440
441
|
interval?: number | undefined;
|
|
441
442
|
} | undefined;
|
|
443
|
+
rules?: string[] | undefined;
|
|
442
444
|
thumbnail?: string | null | undefined;
|
|
443
445
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
444
|
-
rules?: string[] | undefined;
|
|
445
446
|
canvases?: {
|
|
446
447
|
name: string;
|
|
447
448
|
description: string;
|
|
@@ -454,8 +455,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
454
455
|
}[] | undefined;
|
|
455
456
|
gimmicks?: {
|
|
456
457
|
name: string;
|
|
457
|
-
core: "web_search" | "image_generator" | "notion";
|
|
458
458
|
appearance: string;
|
|
459
|
+
core: "notion" | "web_search" | "image_generator";
|
|
459
460
|
images?: {
|
|
460
461
|
description: string;
|
|
461
462
|
url: string;
|
|
@@ -469,9 +470,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
469
470
|
sequential?: boolean | undefined;
|
|
470
471
|
interval?: number | undefined;
|
|
471
472
|
} | undefined;
|
|
473
|
+
rules?: string[] | undefined;
|
|
472
474
|
thumbnail?: string | null | undefined;
|
|
473
475
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
474
|
-
rules?: string[] | undefined;
|
|
475
476
|
canvases?: {
|
|
476
477
|
name: string;
|
|
477
478
|
description: string;
|
|
@@ -484,8 +485,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
484
485
|
}[] | undefined;
|
|
485
486
|
gimmicks?: {
|
|
486
487
|
name: string;
|
|
487
|
-
core: "web_search" | "image_generator" | "notion";
|
|
488
488
|
appearance: string;
|
|
489
|
+
core: "notion" | "web_search" | "image_generator";
|
|
489
490
|
images?: {
|
|
490
491
|
description: string;
|
|
491
492
|
url: string;
|
|
@@ -505,9 +506,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
505
506
|
sequential?: boolean | undefined;
|
|
506
507
|
interval?: number | undefined;
|
|
507
508
|
} | undefined;
|
|
509
|
+
rules?: string[] | undefined;
|
|
508
510
|
thumbnail?: string | null | undefined;
|
|
509
511
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
510
|
-
rules?: string[] | undefined;
|
|
511
512
|
canvases?: {
|
|
512
513
|
name: string;
|
|
513
514
|
description: string;
|
|
@@ -520,8 +521,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
520
521
|
}[] | undefined;
|
|
521
522
|
gimmicks?: {
|
|
522
523
|
name: string;
|
|
523
|
-
core: "web_search" | "image_generator" | "notion";
|
|
524
524
|
appearance: string;
|
|
525
|
+
core: "notion" | "web_search" | "image_generator";
|
|
525
526
|
images?: {
|
|
526
527
|
description: string;
|
|
527
528
|
url: string;
|
|
@@ -538,9 +539,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
538
539
|
sequential?: boolean | undefined;
|
|
539
540
|
interval?: number | undefined;
|
|
540
541
|
} | undefined;
|
|
542
|
+
rules?: string[] | undefined;
|
|
541
543
|
thumbnail?: string | null | undefined;
|
|
542
544
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
543
|
-
rules?: string[] | undefined;
|
|
544
545
|
canvases?: {
|
|
545
546
|
name: string;
|
|
546
547
|
description: string;
|
|
@@ -553,8 +554,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
553
554
|
}[] | undefined;
|
|
554
555
|
gimmicks?: {
|
|
555
556
|
name: string;
|
|
556
|
-
core: "web_search" | "image_generator" | "notion";
|
|
557
557
|
appearance: string;
|
|
558
|
+
core: "notion" | "web_search" | "image_generator";
|
|
558
559
|
images?: {
|
|
559
560
|
description: string;
|
|
560
561
|
url: string;
|
|
@@ -567,6 +568,21 @@ export type CreateLocationDto = z.infer<typeof CreateLocationSchema>;
|
|
|
567
568
|
export interface CreateLocationResponseDto {
|
|
568
569
|
location: LocationPrivateDto;
|
|
569
570
|
}
|
|
571
|
+
export declare const CopyLocationSchema: z.ZodObject<{
|
|
572
|
+
locationId: z.ZodBigInt;
|
|
573
|
+
copyAgents: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
574
|
+
}, "strip", z.ZodTypeAny, {
|
|
575
|
+
locationId: bigint;
|
|
576
|
+
copyAgents: boolean;
|
|
577
|
+
}, {
|
|
578
|
+
locationId: bigint;
|
|
579
|
+
copyAgents?: boolean | undefined;
|
|
580
|
+
}>;
|
|
581
|
+
export type CopyLocationDto = z.infer<typeof CopyLocationSchema>;
|
|
582
|
+
export interface CopyLocationResponseDto {
|
|
583
|
+
location: LocationPrivateDto;
|
|
584
|
+
agents: AgentPrivateDto[];
|
|
585
|
+
}
|
|
570
586
|
export declare const CreateLocationFromPresetSchema: z.ZodObject<{
|
|
571
587
|
presetId: z.ZodBigInt;
|
|
572
588
|
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
@@ -574,8 +590,8 @@ export declare const CreateLocationFromPresetSchema: z.ZodObject<{
|
|
|
574
590
|
readonly MINIMO: "MINIMO";
|
|
575
591
|
}>>>;
|
|
576
592
|
}, "strip", z.ZodTypeAny, {
|
|
577
|
-
platform: "API" | "MINIMO";
|
|
578
593
|
presetId: bigint;
|
|
594
|
+
platform: "API" | "MINIMO";
|
|
579
595
|
}, {
|
|
580
596
|
presetId: bigint;
|
|
581
597
|
platform?: "API" | "MINIMO" | undefined;
|
|
@@ -605,8 +621,8 @@ export declare const GetAgentHelperLocationQuerySchema: z.ZodObject<{
|
|
|
605
621
|
readonly MINIMO: "MINIMO";
|
|
606
622
|
}>>>;
|
|
607
623
|
}, "strip", z.ZodTypeAny, {
|
|
608
|
-
platform: "API" | "MINIMO";
|
|
609
624
|
agentId: bigint;
|
|
625
|
+
platform: "API" | "MINIMO";
|
|
610
626
|
}, {
|
|
611
627
|
agentId: bigint;
|
|
612
628
|
platform?: "API" | "MINIMO" | undefined;
|
|
@@ -639,8 +655,8 @@ export declare const GetAgentDmLocationQuerySchema: z.ZodObject<{
|
|
|
639
655
|
readonly MINIMO: "MINIMO";
|
|
640
656
|
}>>>;
|
|
641
657
|
}, "strip", z.ZodTypeAny, {
|
|
642
|
-
platform: "API" | "MINIMO";
|
|
643
658
|
agentId: bigint;
|
|
659
|
+
platform: "API" | "MINIMO";
|
|
644
660
|
}, {
|
|
645
661
|
agentId: bigint;
|
|
646
662
|
platform?: "API" | "MINIMO" | undefined;
|
|
@@ -829,11 +845,11 @@ export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
|
|
|
829
845
|
locationId: z.ZodBigInt;
|
|
830
846
|
agentId: z.ZodBigInt;
|
|
831
847
|
}, "strip", z.ZodTypeAny, {
|
|
832
|
-
locationId: bigint;
|
|
833
848
|
agentId: bigint;
|
|
834
|
-
}, {
|
|
835
849
|
locationId: bigint;
|
|
850
|
+
}, {
|
|
836
851
|
agentId: bigint;
|
|
852
|
+
locationId: bigint;
|
|
837
853
|
}>;
|
|
838
854
|
export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
|
|
839
855
|
export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
|
|
@@ -860,11 +876,11 @@ export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
|
|
|
860
876
|
locationId: z.ZodBigInt;
|
|
861
877
|
agentId: z.ZodBigInt;
|
|
862
878
|
}, "strip", z.ZodTypeAny, {
|
|
863
|
-
locationId: bigint;
|
|
864
879
|
agentId: bigint;
|
|
865
|
-
}, {
|
|
866
880
|
locationId: bigint;
|
|
881
|
+
}, {
|
|
867
882
|
agentId: bigint;
|
|
883
|
+
locationId: bigint;
|
|
868
884
|
}>;
|
|
869
885
|
export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
|
|
870
886
|
export declare const UpdateLocationParamsSchema: z.ZodObject<{
|
|
@@ -883,6 +899,8 @@ export declare const UpdateLocationBodySchema: z.ZodObject<{
|
|
|
883
899
|
creditCostPerChat: z.ZodOptional<z.ZodNumber>;
|
|
884
900
|
chatRequiresPaidCredit: z.ZodOptional<z.ZodBoolean>;
|
|
885
901
|
isAdminChat: z.ZodOptional<z.ZodBoolean>;
|
|
902
|
+
isSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
903
|
+
isAllowCopy: z.ZodOptional<z.ZodBoolean>;
|
|
886
904
|
}, "strip", z.ZodTypeAny, {
|
|
887
905
|
visibility?: "private" | "public" | "publish" | undefined;
|
|
888
906
|
maxUsers?: number | undefined;
|
|
@@ -891,6 +909,8 @@ export declare const UpdateLocationBodySchema: z.ZodObject<{
|
|
|
891
909
|
creditCostPerChat?: number | undefined;
|
|
892
910
|
chatRequiresPaidCredit?: boolean | undefined;
|
|
893
911
|
isAdminChat?: boolean | undefined;
|
|
912
|
+
isSensitive?: boolean | undefined;
|
|
913
|
+
isAllowCopy?: boolean | undefined;
|
|
894
914
|
}, {
|
|
895
915
|
visibility?: "private" | "public" | "publish" | undefined;
|
|
896
916
|
maxUsers?: number | undefined;
|
|
@@ -899,6 +919,8 @@ export declare const UpdateLocationBodySchema: z.ZodObject<{
|
|
|
899
919
|
creditCostPerChat?: number | undefined;
|
|
900
920
|
chatRequiresPaidCredit?: boolean | undefined;
|
|
901
921
|
isAdminChat?: boolean | undefined;
|
|
922
|
+
isSensitive?: boolean | undefined;
|
|
923
|
+
isAllowCopy?: boolean | undefined;
|
|
902
924
|
}>;
|
|
903
925
|
export type UpdateLocationBodyDto = z.infer<typeof UpdateLocationBodySchema>;
|
|
904
926
|
export interface UpdateLocationResponseDto {
|
|
@@ -1187,12 +1209,12 @@ export declare const UpdateLocationAgentIsActiveSchema: z.ZodObject<{
|
|
|
1187
1209
|
agentId: z.ZodBigInt;
|
|
1188
1210
|
isActive: z.ZodBoolean;
|
|
1189
1211
|
}, "strip", z.ZodTypeAny, {
|
|
1190
|
-
locationId: bigint;
|
|
1191
1212
|
agentId: bigint;
|
|
1213
|
+
locationId: bigint;
|
|
1192
1214
|
isActive: boolean;
|
|
1193
1215
|
}, {
|
|
1194
|
-
locationId: bigint;
|
|
1195
1216
|
agentId: bigint;
|
|
1217
|
+
locationId: bigint;
|
|
1196
1218
|
isActive: boolean;
|
|
1197
1219
|
}>;
|
|
1198
1220
|
export type UpdateLocationAgentIsActiveDto = z.infer<typeof UpdateLocationAgentIsActiveSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = exports.UpdateLocationAgentIsActiveSchema = exports.UpdateLocationRenderingSchema = exports.UpdateLocationImageSchema = exports.SendSystemMessageSchema = exports.SendLocationMessageSchema = exports.GetLocationMessagesSchema = exports.BanUserFromLocationSchema = void 0;
|
|
3
|
+
exports.SubscribeLocationSchema = exports.LeaveLocationSchema = exports.JoinLocationSchema = exports.DeleteLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = exports.UpdateLocationBodySchema = exports.UpdateLocationParamsSchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationSnapshotParamsSchema = exports.CreateLocationSnapshotBodySchema = exports.CreateLocationSnapshotParamsSchema = exports.WithdrawCreditsBodySchema = exports.WithdrawCreditsParamsSchema = exports.DepositCreditsBodySchema = exports.DepositCreditsParamsSchema = exports.GetLocationContentParamsSchema = exports.UploadLocationThumbnailParamsSchema = exports.GetLocationCostParamsSchema = exports.GetLocationPrivateParamsSchema = exports.DeleteLocationParamsSchema = exports.GetLocationParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.GetHelperLocationQuerySchema = exports.CreateLocationFromPresetSchema = exports.CopyLocationSchema = exports.CreateLocationSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationDeleteCredentialSchema = exports.LocationUpdateCredentialSchema = exports.LocationUpdateConfigSchema = exports.LocationsUnreadCountQuerySchema = exports.TrendingLocationsQuerySchema = exports.PublishedLocationsQuerySchema = exports.UserLocationsQuerySchema = void 0;
|
|
4
|
+
exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = exports.UpdateLocationAgentIsActiveSchema = exports.UpdateLocationRenderingSchema = exports.UpdateLocationImageSchema = exports.SendSystemMessageSchema = exports.SendLocationMessageSchema = exports.GetLocationMessagesSchema = exports.BanUserFromLocationSchema = exports.UnsubscribeLocationSchema = void 0;
|
|
5
5
|
const common_1 = require("@little-samo/samo-ai/common");
|
|
6
6
|
const models_1 = require("@little-samo/samo-ai-sdk/models");
|
|
7
7
|
const zod_1 = require("zod");
|
|
@@ -64,6 +64,10 @@ exports.CreateLocationSchema = zod_1.z.object({
|
|
|
64
64
|
.optional()
|
|
65
65
|
.default(models_1.LocationPlatform.API),
|
|
66
66
|
});
|
|
67
|
+
exports.CopyLocationSchema = zod_1.z.object({
|
|
68
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
69
|
+
copyAgents: zod_1.z.boolean().optional().default(false),
|
|
70
|
+
});
|
|
67
71
|
exports.CreateLocationFromPresetSchema = zod_1.z.object({
|
|
68
72
|
presetId: zod_1.z.coerce.bigint(),
|
|
69
73
|
platform: zod_1.z
|
|
@@ -180,6 +184,8 @@ exports.UpdateLocationBodySchema = zod_1.z.object({
|
|
|
180
184
|
creditCostPerChat: zod_1.z.number().int().min(0).max(1000).optional(),
|
|
181
185
|
chatRequiresPaidCredit: zod_1.z.boolean().optional(),
|
|
182
186
|
isAdminChat: zod_1.z.boolean().optional(),
|
|
187
|
+
isSensitive: zod_1.z.boolean().optional(),
|
|
188
|
+
isAllowCopy: zod_1.z.boolean().optional(),
|
|
183
189
|
});
|
|
184
190
|
exports.GetLocationScheduledMessagesParamsSchema = zod_1.z.object({
|
|
185
191
|
locationId: zod_1.z.coerce.bigint(),
|
|
@@ -271,12 +277,12 @@ exports.SendSystemMessageSchema = zod_1.z.object({
|
|
|
271
277
|
});
|
|
272
278
|
exports.UpdateLocationImageSchema = zod_1.z.object({
|
|
273
279
|
locationId: zod_1.z.coerce.bigint(),
|
|
274
|
-
image: zod_1.z.string(),
|
|
275
|
-
index: zod_1.z.number().int().min(0).optional(),
|
|
280
|
+
image: zod_1.z.string().max(4 * 1024 * 1024),
|
|
281
|
+
index: zod_1.z.number().int().min(0).max(2).optional(),
|
|
276
282
|
});
|
|
277
283
|
exports.UpdateLocationRenderingSchema = zod_1.z.object({
|
|
278
284
|
locationId: zod_1.z.coerce.bigint(),
|
|
279
|
-
rendering: zod_1.z.string().nullable(),
|
|
285
|
+
rendering: zod_1.z.string().max(5000).nullable(),
|
|
280
286
|
});
|
|
281
287
|
exports.UpdateLocationAgentIsActiveSchema = zod_1.z.object({
|
|
282
288
|
locationId: zod_1.z.coerce.bigint(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;;AAAA,wDAAwD;AAExD,4DAAmE;AACnE,6BAAwB;AAExB,4EAGgD;AAkBnC,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACzE,KAAK,EAAE,OAAC,CAAC,MAAM;SACZ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,+BAA+B,CAAC;CAC7C,CAAC,CAAC;AAaU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,OAAC,CAAC,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
1
|
+
export * from './ranking';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ranking"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/rankings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AgentId, LocationId, UserId } from '@little-samo/samo-ai';
|
|
2
|
+
export interface RankingEntity {
|
|
3
|
+
locationId?: LocationId;
|
|
4
|
+
agentId?: AgentId;
|
|
5
|
+
userId?: UserId;
|
|
6
|
+
}
|
|
7
|
+
export interface RankingDto {
|
|
8
|
+
type: number;
|
|
9
|
+
date: Date;
|
|
10
|
+
rank: number;
|
|
11
|
+
entity: RankingEntity;
|
|
12
|
+
score: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ranking.js","sourceRoot":"","sources":["../../../src/dto/rankings/ranking.ts"],"names":[],"mappings":""}
|
|
@@ -137,7 +137,7 @@ exports.AgentConfigSchema = zod_1.z.object({
|
|
|
137
137
|
zod_1.z
|
|
138
138
|
.string()
|
|
139
139
|
.max(2048)
|
|
140
|
-
.regex(/^https
|
|
140
|
+
.regex(/^https?:\/\/.+/)
|
|
141
141
|
.describe('Custom avatar URL (http/https URL pointing to png, jpeg, jpg, webp files under 3MB). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
|
|
142
142
|
zod_1.z.string().max(32).describe('Location message image key for API usage'),
|
|
143
143
|
])
|
|
@@ -149,7 +149,7 @@ exports.AgentConfigSchema = zod_1.z.object({
|
|
|
149
149
|
core: exports.AgentConfigCoreSchema.describe('Fundamental behavior pattern that determines how the agent decides when to take actions'),
|
|
150
150
|
llmPreset: LlmPresetSchema.describe('AI model selection that balances cost, performance, and capabilities. Higher tiers provide better reasoning but cost more per interaction.'),
|
|
151
151
|
languages: zod_1.z
|
|
152
|
-
.array(zod_1.z.string())
|
|
152
|
+
.array(zod_1.z.string().max(32))
|
|
153
153
|
.max(4)
|
|
154
154
|
.describe('Communication language settings for the agent (max 4). Examples: ["English"] = English only, ["ALL", "English"] = English-based but can adapt to other languages, ["Spanish", "French"] = specific languages only.'),
|
|
155
155
|
timeZone: zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.config.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/agent.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAA2B;IACxD,IAAI,EAAE,8IAA8I;IACpJ,IAAI,EAAE,6KAA6K;IACnL,MAAM,EAAE,0LAA0L;IAClM,IAAI,EAAE,+LAA+L;IACrM,MAAM,EAAE,8KAA8K;CACvL,CAAC;AAEW,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC;aACE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,CAAC,CACH;SACA,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,0IAA0I,CAC3I;IAEH,SAAS,EAAE,uBAAe;IAE1B,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,iLAAiL,CAClL;CACJ,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LocationConfigSchema = exports.LocationConfigGimmickSchema = exports.LocationConfigGimmickImageSchema = exports.LocationConfigCanvasSchema = exports.LocationConfigCoreSchema = exports.LocationEnvironmentSchema = void 0;
|
|
4
|
-
const dto_1 = require("@little-samo/samo-ai-sdk/dto");
|
|
5
4
|
const zod_1 = require("zod");
|
|
5
|
+
const gimmicks_1 = require("../../dto/entities/gimmicks");
|
|
6
6
|
const location_constants_1 = require("./location.constants");
|
|
7
7
|
exports.LocationEnvironmentSchema = zod_1.z.union([
|
|
8
8
|
zod_1.z
|
|
@@ -52,7 +52,7 @@ exports.LocationConfigGimmickImageSchema = zod_1.z.object({
|
|
|
52
52
|
zod_1.z
|
|
53
53
|
.string()
|
|
54
54
|
.max(2048)
|
|
55
|
-
.regex(/^https
|
|
55
|
+
.regex(/^https?:\/\/.+/)
|
|
56
56
|
.describe('Reference image URL (http/https URL pointing to png, jpeg, jpg, webp files under 3MB). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
|
|
57
57
|
zod_1.z.string().max(32).describe('Reference message image key for API usage'),
|
|
58
58
|
]),
|
|
@@ -62,7 +62,7 @@ exports.LocationConfigGimmickImageSchema = zod_1.z.object({
|
|
|
62
62
|
.describe('Description of the image used by the gimmick for AI image generation.'),
|
|
63
63
|
});
|
|
64
64
|
exports.LocationConfigGimmickSchema = zod_1.z.object({
|
|
65
|
-
core:
|
|
65
|
+
core: gimmicks_1.GimmickCoreSchema.describe('Core gimmick behavior that determines how the gimmick is executed'),
|
|
66
66
|
name: zod_1.z
|
|
67
67
|
.string()
|
|
68
68
|
.max(64)
|
|
@@ -73,9 +73,9 @@ exports.LocationConfigGimmickSchema = zod_1.z.object({
|
|
|
73
73
|
.describe('How the gimmick appears to agents and users in the location context'),
|
|
74
74
|
images: zod_1.z
|
|
75
75
|
.array(exports.LocationConfigGimmickImageSchema)
|
|
76
|
-
.max(
|
|
76
|
+
.max(6)
|
|
77
77
|
.optional()
|
|
78
|
-
.describe('Optional reference images used by image_generator gimmick
|
|
78
|
+
.describe('Optional reference images used by image_generator gimmick to maintain visual consistency in AI image generation. These can include character appearance references, art style samples, scene compositions, or background settings. Supports HTTP/HTTPS URLs for png, jpeg, jpg, webp images and message image keys for API usage. When provided, images will be replaced by CDN URLs when processed.'),
|
|
79
79
|
});
|
|
80
80
|
exports.LocationConfigSchema = zod_1.z.object({
|
|
81
81
|
name: zod_1.z.string().max(64).describe('Location name'),
|
|
@@ -84,7 +84,7 @@ exports.LocationConfigSchema = zod_1.z.object({
|
|
|
84
84
|
zod_1.z
|
|
85
85
|
.string()
|
|
86
86
|
.max(2048)
|
|
87
|
-
.regex(/^https
|
|
87
|
+
.regex(/^https?:\/\/.+/)
|
|
88
88
|
.describe('Location thumbnail URL (http/https URL pointing to png, jpeg, jpg, webp files under 3MB). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
|
|
89
89
|
zod_1.z.string().max(32).describe('Location message image key for API usage'),
|
|
90
90
|
])
|
|
@@ -94,7 +94,7 @@ exports.LocationConfigSchema = zod_1.z.object({
|
|
|
94
94
|
core: exports.LocationConfigCoreSchema.describe('Core behavior configuration that determines how agents are executed in this location. Use default values unless specifically needed.'),
|
|
95
95
|
description: zod_1.z
|
|
96
96
|
.string()
|
|
97
|
-
.max(
|
|
97
|
+
.max(1000)
|
|
98
98
|
.describe('Description of the location that provides context to agents about where they are'),
|
|
99
99
|
rules: zod_1.z
|
|
100
100
|
.array(zod_1.z.string().max(200))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,0DAAgE;AAEhE,6DAA2D;AAE9C,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,KAAK,CAAC;SAClC,QAAQ,CAAC,sDAAsD,CAAC;CACpE,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;QACrE,OAAC;aACE,OAAO,CAAC,gBAAgB,CAAC;aACzB,QAAQ,CAAC,6CAA6C,CAAC;QAC1D,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;QACvE,OAAC;aACE,OAAO,CAAC,mBAAmB,CAAC;aAC5B,QAAQ,CAAC,2DAA2D,CAAC;KACzE,CAAC;IACF,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAC5E,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;SACnB,QAAQ,EAAE;SACV,QAAQ,CACP,uFAAuF,CACxF;CACJ,CAA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,OAAC;SACR,KAAK,CAAC,mCAA2B,CAAC;SAClC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,uGAAuG,CACxG;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@little-samo/samo-ai-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-rv2",
|
|
4
4
|
"description": "SamoAI SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@eslint/eslintrc": "^3.1.0",
|
|
64
64
|
"@eslint/js": "^9.13.0",
|
|
65
|
-
"@little-samo/samo-ai": "^0.
|
|
65
|
+
"@little-samo/samo-ai": "^0.2.0",
|
|
66
66
|
"@types/lodash": "^4",
|
|
67
67
|
"@types/node": "^20.3.1",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"zod": "^3.24.1"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@little-samo/samo-ai": "^0.
|
|
87
|
+
"@little-samo/samo-ai": "^0.2.0",
|
|
88
88
|
"class-transformer": "^0.5.1",
|
|
89
89
|
"class-validator": "^0.14.2",
|
|
90
90
|
"zod": "^3.24.1"
|