@little-samo/samo-ai-sdk 0.1.4-rv4 → 0.1.4-rv6
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 +24 -24
- package/dist/dto/entities/users/user.requests.d.ts +5 -0
- package/dist/dto/entities/users/user.requests.js +2 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/items/item.d.ts +5 -1
- package/dist/dto/locations/location.d.ts +7 -0
- package/dist/dto/locations/location.requests.d.ts +141 -27
- package/dist/dto/locations/location.requests.js +37 -4
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/models/entities/agents/agent.config.js +3 -3
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +17 -9
- package/dist/models/locations/location.config.js +17 -2
- package/dist/models/locations/location.config.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,16 @@ 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
215
|
config: {
|
|
216
216
|
name?: string | undefined;
|
|
217
|
+
avatar?: string | undefined;
|
|
218
|
+
appearance?: string | undefined;
|
|
217
219
|
core?: {
|
|
218
220
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
219
221
|
} | undefined;
|
|
220
|
-
appearance?: string | undefined;
|
|
221
|
-
rules?: string[] | undefined;
|
|
222
|
-
avatar?: string | undefined;
|
|
223
222
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
224
223
|
languages?: string[] | undefined;
|
|
225
224
|
timeZone?: string | undefined;
|
|
@@ -245,17 +244,17 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
245
244
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
246
245
|
} | undefined;
|
|
247
246
|
} | undefined;
|
|
247
|
+
rules?: string[] | undefined;
|
|
248
248
|
};
|
|
249
249
|
agentId: bigint;
|
|
250
250
|
}, {
|
|
251
251
|
config: {
|
|
252
252
|
name?: string | undefined;
|
|
253
|
+
avatar?: string | undefined;
|
|
254
|
+
appearance?: string | undefined;
|
|
253
255
|
core?: {
|
|
254
256
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
255
257
|
} | undefined;
|
|
256
|
-
appearance?: string | undefined;
|
|
257
|
-
rules?: string[] | undefined;
|
|
258
|
-
avatar?: string | undefined;
|
|
259
258
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
260
259
|
languages?: string[] | undefined;
|
|
261
260
|
timeZone?: string | undefined;
|
|
@@ -281,6 +280,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
281
280
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
282
281
|
} | undefined;
|
|
283
282
|
} | undefined;
|
|
283
|
+
rules?: string[] | undefined;
|
|
284
284
|
};
|
|
285
285
|
agentId: bigint;
|
|
286
286
|
}>;
|
|
@@ -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,6 +607,7 @@ 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>;
|
|
@@ -16,3 +16,8 @@ export type GetUsersByIdsQueryDto = z.infer<typeof GetUsersByIdsQuerySchema>;
|
|
|
16
16
|
export interface GetUserPublicsByIdsResponseDto {
|
|
17
17
|
users: UserPublicDto[];
|
|
18
18
|
}
|
|
19
|
+
export declare const GetCurrentUserSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
20
|
+
export type GetCurrentUserDto = z.infer<typeof GetCurrentUserSchema>;
|
|
21
|
+
export interface GetCurrentUserResponseDto {
|
|
22
|
+
user: UserPrivateDto;
|
|
23
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetUsersByIdsQuerySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
3
|
+
exports.GetCurrentUserSchema = exports.GetUsersByIdsQuerySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
6
6
|
exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
@@ -11,4 +11,5 @@ exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
|
11
11
|
message: 'userIds must contain 1-25 user IDs',
|
|
12
12
|
}),
|
|
13
13
|
});
|
|
14
|
+
exports.GetCurrentUserSchema = zod_1.z.object({});
|
|
14
15
|
//# sourceMappingURL=user.requests.js.map
|
|
@@ -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"}
|
|
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"}
|
package/dist/dto/items/item.d.ts
CHANGED
|
@@ -2,11 +2,15 @@ export interface ItemDto {
|
|
|
2
2
|
id: number;
|
|
3
3
|
itemDataId: number;
|
|
4
4
|
name: string;
|
|
5
|
-
description
|
|
5
|
+
description: string | null;
|
|
6
6
|
count: number;
|
|
7
|
+
param1: number;
|
|
8
|
+
param2: number;
|
|
7
9
|
updatedAt: Date;
|
|
8
10
|
}
|
|
9
11
|
export interface ItemUpdateDto {
|
|
10
12
|
count: number;
|
|
13
|
+
param1: number;
|
|
14
|
+
param2: number;
|
|
11
15
|
updatedAt: Date;
|
|
12
16
|
}
|
|
@@ -9,14 +9,21 @@ export interface LocationPublicDto {
|
|
|
9
9
|
platform: LocationPlatform;
|
|
10
10
|
type: LocationType;
|
|
11
11
|
environment: LocationEnvironment;
|
|
12
|
+
maxUsers: number;
|
|
12
13
|
thumbnail: string | null;
|
|
13
14
|
ownerUserId: UserId | null;
|
|
14
15
|
param1: bigint;
|
|
15
16
|
param2: bigint;
|
|
16
17
|
param3: bigint;
|
|
17
18
|
param4: bigint;
|
|
19
|
+
freeCreditBalance: number;
|
|
20
|
+
paidCreditBalance: number;
|
|
21
|
+
useLocationCreditOnly: boolean;
|
|
22
|
+
creditCostPerChat: number;
|
|
23
|
+
chatRequiresPaidCredit: boolean;
|
|
18
24
|
isPublic: boolean;
|
|
19
25
|
isPublished: boolean;
|
|
26
|
+
isAdminChat: boolean;
|
|
20
27
|
createdAt: Date;
|
|
21
28
|
updatedAt: Date;
|
|
22
29
|
}
|
|
@@ -25,6 +25,31 @@ export interface UserLocationsResponseDto {
|
|
|
25
25
|
nextCursor?: string;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
+
export declare const PublishedLocationsQuerySchema: z.ZodObject<{
|
|
29
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
30
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
limit: number;
|
|
33
|
+
page: number;
|
|
34
|
+
}, {
|
|
35
|
+
limit?: number | undefined;
|
|
36
|
+
page?: number | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export type PublishedLocationsQueryDto = z.infer<typeof PublishedLocationsQuerySchema>;
|
|
39
|
+
export interface PublishedLocationsResponseDto {
|
|
40
|
+
locations: LocationListItemDto[];
|
|
41
|
+
meta: {
|
|
42
|
+
total: number;
|
|
43
|
+
page: number;
|
|
44
|
+
limit: number;
|
|
45
|
+
totalPages: number;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export declare const TrendingLocationsQuerySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
49
|
+
export type TrendingLocationsQueryDto = z.infer<typeof TrendingLocationsQuerySchema>;
|
|
50
|
+
export interface TrendingLocationsResponseDto {
|
|
51
|
+
locations: LocationListItemDto[];
|
|
52
|
+
}
|
|
28
53
|
export declare const LocationsUnreadCountQuerySchema: z.ZodObject<{
|
|
29
54
|
locationIds: z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>;
|
|
30
55
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -92,14 +117,17 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
92
117
|
core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
|
|
93
118
|
name: z.ZodString;
|
|
94
119
|
appearance: z.ZodString;
|
|
120
|
+
images: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">>;
|
|
95
121
|
}, "strip", z.ZodTypeAny, {
|
|
96
122
|
name: string;
|
|
97
|
-
core: "web_search" | "image_generator" | "notion";
|
|
98
123
|
appearance: string;
|
|
124
|
+
core: "web_search" | "image_generator" | "notion";
|
|
125
|
+
images?: string[] | undefined;
|
|
99
126
|
}, {
|
|
100
127
|
name: string;
|
|
101
|
-
core: "web_search" | "image_generator" | "notion";
|
|
102
128
|
appearance: string;
|
|
129
|
+
core: "web_search" | "image_generator" | "notion";
|
|
130
|
+
images?: string[] | undefined;
|
|
103
131
|
}>, "many">>;
|
|
104
132
|
}, "strict", z.ZodTypeAny, {
|
|
105
133
|
name?: string | undefined;
|
|
@@ -109,9 +137,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
109
137
|
sequential?: boolean | undefined;
|
|
110
138
|
interval?: number | undefined;
|
|
111
139
|
} | undefined;
|
|
140
|
+
rules?: string[] | undefined;
|
|
112
141
|
thumbnail?: string | null | undefined;
|
|
113
142
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
114
|
-
rules?: string[] | undefined;
|
|
115
143
|
canvases?: {
|
|
116
144
|
name: string;
|
|
117
145
|
description: string;
|
|
@@ -124,8 +152,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
124
152
|
}[] | undefined;
|
|
125
153
|
gimmicks?: {
|
|
126
154
|
name: string;
|
|
127
|
-
core: "web_search" | "image_generator" | "notion";
|
|
128
155
|
appearance: string;
|
|
156
|
+
core: "web_search" | "image_generator" | "notion";
|
|
157
|
+
images?: string[] | undefined;
|
|
129
158
|
}[] | undefined;
|
|
130
159
|
}, {
|
|
131
160
|
name?: string | undefined;
|
|
@@ -135,9 +164,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
135
164
|
sequential?: boolean | undefined;
|
|
136
165
|
interval?: number | undefined;
|
|
137
166
|
} | undefined;
|
|
167
|
+
rules?: string[] | undefined;
|
|
138
168
|
thumbnail?: string | null | undefined;
|
|
139
169
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
140
|
-
rules?: string[] | undefined;
|
|
141
170
|
canvases?: {
|
|
142
171
|
name: string;
|
|
143
172
|
description: string;
|
|
@@ -150,8 +179,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
150
179
|
}[] | undefined;
|
|
151
180
|
gimmicks?: {
|
|
152
181
|
name: string;
|
|
153
|
-
core: "web_search" | "image_generator" | "notion";
|
|
154
182
|
appearance: string;
|
|
183
|
+
core: "web_search" | "image_generator" | "notion";
|
|
184
|
+
images?: string[] | undefined;
|
|
155
185
|
}[] | undefined;
|
|
156
186
|
}>;
|
|
157
187
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -164,9 +194,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
164
194
|
sequential?: boolean | undefined;
|
|
165
195
|
interval?: number | undefined;
|
|
166
196
|
} | undefined;
|
|
197
|
+
rules?: string[] | undefined;
|
|
167
198
|
thumbnail?: string | null | undefined;
|
|
168
199
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
169
|
-
rules?: string[] | undefined;
|
|
170
200
|
canvases?: {
|
|
171
201
|
name: string;
|
|
172
202
|
description: string;
|
|
@@ -179,8 +209,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
179
209
|
}[] | undefined;
|
|
180
210
|
gimmicks?: {
|
|
181
211
|
name: string;
|
|
182
|
-
core: "web_search" | "image_generator" | "notion";
|
|
183
212
|
appearance: string;
|
|
213
|
+
core: "web_search" | "image_generator" | "notion";
|
|
214
|
+
images?: string[] | undefined;
|
|
184
215
|
}[] | undefined;
|
|
185
216
|
};
|
|
186
217
|
}, {
|
|
@@ -193,9 +224,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
193
224
|
sequential?: boolean | undefined;
|
|
194
225
|
interval?: number | undefined;
|
|
195
226
|
} | undefined;
|
|
227
|
+
rules?: string[] | undefined;
|
|
196
228
|
thumbnail?: string | null | undefined;
|
|
197
229
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
198
|
-
rules?: string[] | undefined;
|
|
199
230
|
canvases?: {
|
|
200
231
|
name: string;
|
|
201
232
|
description: string;
|
|
@@ -208,8 +239,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
208
239
|
}[] | undefined;
|
|
209
240
|
gimmicks?: {
|
|
210
241
|
name: string;
|
|
211
|
-
core: "web_search" | "image_generator" | "notion";
|
|
212
242
|
appearance: string;
|
|
243
|
+
core: "web_search" | "image_generator" | "notion";
|
|
244
|
+
images?: string[] | undefined;
|
|
213
245
|
}[] | undefined;
|
|
214
246
|
};
|
|
215
247
|
}>;
|
|
@@ -345,14 +377,17 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
345
377
|
core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
|
|
346
378
|
name: z.ZodString;
|
|
347
379
|
appearance: z.ZodString;
|
|
380
|
+
images: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">>;
|
|
348
381
|
}, "strip", z.ZodTypeAny, {
|
|
349
382
|
name: string;
|
|
350
|
-
core: "web_search" | "image_generator" | "notion";
|
|
351
383
|
appearance: string;
|
|
384
|
+
core: "web_search" | "image_generator" | "notion";
|
|
385
|
+
images?: string[] | undefined;
|
|
352
386
|
}, {
|
|
353
387
|
name: string;
|
|
354
|
-
core: "web_search" | "image_generator" | "notion";
|
|
355
388
|
appearance: string;
|
|
389
|
+
core: "web_search" | "image_generator" | "notion";
|
|
390
|
+
images?: string[] | undefined;
|
|
356
391
|
}>, "many">>;
|
|
357
392
|
}, "strict", z.ZodTypeAny, {
|
|
358
393
|
name?: string | undefined;
|
|
@@ -362,9 +397,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
362
397
|
sequential?: boolean | undefined;
|
|
363
398
|
interval?: number | undefined;
|
|
364
399
|
} | undefined;
|
|
400
|
+
rules?: string[] | undefined;
|
|
365
401
|
thumbnail?: string | null | undefined;
|
|
366
402
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
367
|
-
rules?: string[] | undefined;
|
|
368
403
|
canvases?: {
|
|
369
404
|
name: string;
|
|
370
405
|
description: string;
|
|
@@ -377,8 +412,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
377
412
|
}[] | undefined;
|
|
378
413
|
gimmicks?: {
|
|
379
414
|
name: string;
|
|
380
|
-
core: "web_search" | "image_generator" | "notion";
|
|
381
415
|
appearance: string;
|
|
416
|
+
core: "web_search" | "image_generator" | "notion";
|
|
417
|
+
images?: string[] | undefined;
|
|
382
418
|
}[] | undefined;
|
|
383
419
|
}, {
|
|
384
420
|
name?: string | undefined;
|
|
@@ -388,9 +424,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
388
424
|
sequential?: boolean | undefined;
|
|
389
425
|
interval?: number | undefined;
|
|
390
426
|
} | undefined;
|
|
427
|
+
rules?: string[] | undefined;
|
|
391
428
|
thumbnail?: string | null | undefined;
|
|
392
429
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
393
|
-
rules?: string[] | undefined;
|
|
394
430
|
canvases?: {
|
|
395
431
|
name: string;
|
|
396
432
|
description: string;
|
|
@@ -403,8 +439,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
403
439
|
}[] | undefined;
|
|
404
440
|
gimmicks?: {
|
|
405
441
|
name: string;
|
|
406
|
-
core: "web_search" | "image_generator" | "notion";
|
|
407
442
|
appearance: string;
|
|
443
|
+
core: "web_search" | "image_generator" | "notion";
|
|
444
|
+
images?: string[] | undefined;
|
|
408
445
|
}[] | undefined;
|
|
409
446
|
}>;
|
|
410
447
|
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
@@ -420,9 +457,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
420
457
|
sequential?: boolean | undefined;
|
|
421
458
|
interval?: number | undefined;
|
|
422
459
|
} | undefined;
|
|
460
|
+
rules?: string[] | undefined;
|
|
423
461
|
thumbnail?: string | null | undefined;
|
|
424
462
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
425
|
-
rules?: string[] | undefined;
|
|
426
463
|
canvases?: {
|
|
427
464
|
name: string;
|
|
428
465
|
description: string;
|
|
@@ -435,8 +472,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
435
472
|
}[] | undefined;
|
|
436
473
|
gimmicks?: {
|
|
437
474
|
name: string;
|
|
438
|
-
core: "web_search" | "image_generator" | "notion";
|
|
439
475
|
appearance: string;
|
|
476
|
+
core: "web_search" | "image_generator" | "notion";
|
|
477
|
+
images?: string[] | undefined;
|
|
440
478
|
}[] | undefined;
|
|
441
479
|
};
|
|
442
480
|
platform: "API" | "MINIMO";
|
|
@@ -449,9 +487,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
449
487
|
sequential?: boolean | undefined;
|
|
450
488
|
interval?: number | undefined;
|
|
451
489
|
} | undefined;
|
|
490
|
+
rules?: string[] | undefined;
|
|
452
491
|
thumbnail?: string | null | undefined;
|
|
453
492
|
environment?: "CHAT" | "NOVEL" | undefined;
|
|
454
|
-
rules?: string[] | undefined;
|
|
455
493
|
canvases?: {
|
|
456
494
|
name: string;
|
|
457
495
|
description: string;
|
|
@@ -464,8 +502,9 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
464
502
|
}[] | undefined;
|
|
465
503
|
gimmicks?: {
|
|
466
504
|
name: string;
|
|
467
|
-
core: "web_search" | "image_generator" | "notion";
|
|
468
505
|
appearance: string;
|
|
506
|
+
core: "web_search" | "image_generator" | "notion";
|
|
507
|
+
images?: string[] | undefined;
|
|
469
508
|
}[] | undefined;
|
|
470
509
|
};
|
|
471
510
|
platform?: "API" | "MINIMO" | undefined;
|
|
@@ -567,6 +606,18 @@ export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
|
|
|
567
606
|
export interface GetLocationResponseDto {
|
|
568
607
|
location: LocationListItemDto;
|
|
569
608
|
}
|
|
609
|
+
export declare const DeleteLocationParamsSchema: z.ZodObject<{
|
|
610
|
+
locationId: z.ZodBigInt;
|
|
611
|
+
}, "strip", z.ZodTypeAny, {
|
|
612
|
+
locationId: bigint;
|
|
613
|
+
}, {
|
|
614
|
+
locationId: bigint;
|
|
615
|
+
}>;
|
|
616
|
+
export type DeleteLocationParamsDto = z.infer<typeof DeleteLocationParamsSchema>;
|
|
617
|
+
export interface DeleteLocationResponseDto {
|
|
618
|
+
success: boolean;
|
|
619
|
+
error?: string;
|
|
620
|
+
}
|
|
570
621
|
export declare const GetLocationPrivateParamsSchema: z.ZodObject<{
|
|
571
622
|
locationId: z.ZodBigInt;
|
|
572
623
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -600,28 +651,56 @@ export type UploadLocationThumbnailParamsDto = z.infer<typeof UploadLocationThum
|
|
|
600
651
|
export interface UploadLocationThumbnailResponseDto {
|
|
601
652
|
thumbnailUrl: string;
|
|
602
653
|
}
|
|
603
|
-
export declare const
|
|
654
|
+
export declare const GetLocationContentParamsSchema: z.ZodObject<{
|
|
604
655
|
locationId: z.ZodBigInt;
|
|
605
656
|
}, "strip", z.ZodTypeAny, {
|
|
606
657
|
locationId: bigint;
|
|
607
658
|
}, {
|
|
608
659
|
locationId: bigint;
|
|
609
660
|
}>;
|
|
610
|
-
export type
|
|
611
|
-
export interface
|
|
661
|
+
export type GetLocationContentParamsDto = z.infer<typeof GetLocationContentParamsSchema>;
|
|
662
|
+
export interface GetLocationContentResponseDto {
|
|
663
|
+
content: LocationContentDto;
|
|
664
|
+
}
|
|
665
|
+
export declare const DepositCreditsParamsSchema: z.ZodObject<{
|
|
666
|
+
locationId: z.ZodBigInt;
|
|
667
|
+
}, "strip", z.ZodTypeAny, {
|
|
668
|
+
locationId: bigint;
|
|
669
|
+
}, {
|
|
670
|
+
locationId: bigint;
|
|
671
|
+
}>;
|
|
672
|
+
export type DepositCreditsParamsDto = z.infer<typeof DepositCreditsParamsSchema>;
|
|
673
|
+
export declare const DepositCreditsBodySchema: z.ZodObject<{
|
|
674
|
+
amount: z.ZodNumber;
|
|
675
|
+
}, "strip", z.ZodTypeAny, {
|
|
676
|
+
amount: number;
|
|
677
|
+
}, {
|
|
678
|
+
amount: number;
|
|
679
|
+
}>;
|
|
680
|
+
export type DepositCreditsBodyDto = z.infer<typeof DepositCreditsBodySchema>;
|
|
681
|
+
export interface DepositCreditsResponseDto {
|
|
612
682
|
success: boolean;
|
|
613
683
|
error?: string;
|
|
614
684
|
}
|
|
615
|
-
export declare const
|
|
685
|
+
export declare const WithdrawCreditsParamsSchema: z.ZodObject<{
|
|
616
686
|
locationId: z.ZodBigInt;
|
|
617
687
|
}, "strip", z.ZodTypeAny, {
|
|
618
688
|
locationId: bigint;
|
|
619
689
|
}, {
|
|
620
690
|
locationId: bigint;
|
|
621
691
|
}>;
|
|
622
|
-
export type
|
|
623
|
-
export
|
|
624
|
-
|
|
692
|
+
export type WithdrawCreditsParamsDto = z.infer<typeof WithdrawCreditsParamsSchema>;
|
|
693
|
+
export declare const WithdrawCreditsBodySchema: z.ZodObject<{
|
|
694
|
+
amount: z.ZodNumber;
|
|
695
|
+
}, "strip", z.ZodTypeAny, {
|
|
696
|
+
amount: number;
|
|
697
|
+
}, {
|
|
698
|
+
amount: number;
|
|
699
|
+
}>;
|
|
700
|
+
export type WithdrawCreditsBodyDto = z.infer<typeof WithdrawCreditsBodySchema>;
|
|
701
|
+
export interface WithdrawCreditsResponseDto {
|
|
702
|
+
success: boolean;
|
|
703
|
+
error?: string;
|
|
625
704
|
}
|
|
626
705
|
export declare const CreateLocationSnapshotParamsSchema: z.ZodObject<{
|
|
627
706
|
locationId: z.ZodBigInt;
|
|
@@ -745,12 +824,24 @@ export type UpdateLocationParamsDto = z.infer<typeof UpdateLocationParamsSchema>
|
|
|
745
824
|
export declare const UpdateLocationBodySchema: z.ZodObject<{
|
|
746
825
|
visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
|
|
747
826
|
maxUsers: z.ZodOptional<z.ZodNumber>;
|
|
827
|
+
useLocationCreditOnly: z.ZodOptional<z.ZodBoolean>;
|
|
828
|
+
creditCostPerChat: z.ZodOptional<z.ZodNumber>;
|
|
829
|
+
chatRequiresPaidCredit: z.ZodOptional<z.ZodBoolean>;
|
|
830
|
+
isAdminChat: z.ZodOptional<z.ZodBoolean>;
|
|
748
831
|
}, "strip", z.ZodTypeAny, {
|
|
749
832
|
visibility?: "private" | "public" | "publish" | undefined;
|
|
750
833
|
maxUsers?: number | undefined;
|
|
834
|
+
useLocationCreditOnly?: boolean | undefined;
|
|
835
|
+
creditCostPerChat?: number | undefined;
|
|
836
|
+
chatRequiresPaidCredit?: boolean | undefined;
|
|
837
|
+
isAdminChat?: boolean | undefined;
|
|
751
838
|
}, {
|
|
752
839
|
visibility?: "private" | "public" | "publish" | undefined;
|
|
753
840
|
maxUsers?: number | undefined;
|
|
841
|
+
useLocationCreditOnly?: boolean | undefined;
|
|
842
|
+
creditCostPerChat?: number | undefined;
|
|
843
|
+
chatRequiresPaidCredit?: boolean | undefined;
|
|
844
|
+
isAdminChat?: boolean | undefined;
|
|
754
845
|
}>;
|
|
755
846
|
export type UpdateLocationBodyDto = z.infer<typeof UpdateLocationBodySchema>;
|
|
756
847
|
export interface UpdateLocationResponseDto {
|
|
@@ -931,6 +1022,23 @@ export type UnsubscribeLocationDto = z.infer<typeof UnsubscribeLocationSchema>;
|
|
|
931
1022
|
export interface UnsubscribeLocationResponseDto {
|
|
932
1023
|
unsubscribed: boolean;
|
|
933
1024
|
}
|
|
1025
|
+
export declare const BanUserFromLocationSchema: z.ZodObject<{
|
|
1026
|
+
locationId: z.ZodBigInt;
|
|
1027
|
+
userId: z.ZodBigInt;
|
|
1028
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1029
|
+
}, "strip", z.ZodTypeAny, {
|
|
1030
|
+
locationId: bigint;
|
|
1031
|
+
userId: bigint;
|
|
1032
|
+
durationMs?: number | undefined;
|
|
1033
|
+
}, {
|
|
1034
|
+
locationId: bigint;
|
|
1035
|
+
userId: bigint;
|
|
1036
|
+
durationMs?: number | undefined;
|
|
1037
|
+
}>;
|
|
1038
|
+
export type BanUserFromLocationDto = z.infer<typeof BanUserFromLocationSchema>;
|
|
1039
|
+
export interface BanUserFromLocationResponseDto {
|
|
1040
|
+
bannedUntil: Date;
|
|
1041
|
+
}
|
|
934
1042
|
export declare const GetLocationMessagesSchema: z.ZodObject<{
|
|
935
1043
|
locationId: z.ZodBigInt;
|
|
936
1044
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -951,16 +1059,22 @@ export declare const SendLocationMessageSchema: z.ZodObject<{
|
|
|
951
1059
|
message: z.ZodOptional<z.ZodString>;
|
|
952
1060
|
action: z.ZodOptional<z.ZodString>;
|
|
953
1061
|
image: z.ZodOptional<z.ZodString>;
|
|
1062
|
+
creditAmount: z.ZodOptional<z.ZodNumber>;
|
|
1063
|
+
paidCreditOnly: z.ZodOptional<z.ZodBoolean>;
|
|
954
1064
|
}, "strip", z.ZodTypeAny, {
|
|
955
1065
|
locationId: bigint;
|
|
956
1066
|
message?: string | undefined;
|
|
957
1067
|
action?: string | undefined;
|
|
958
1068
|
image?: string | undefined;
|
|
1069
|
+
creditAmount?: number | undefined;
|
|
1070
|
+
paidCreditOnly?: boolean | undefined;
|
|
959
1071
|
}, {
|
|
960
1072
|
locationId: bigint;
|
|
961
1073
|
message?: string | undefined;
|
|
962
1074
|
action?: string | undefined;
|
|
963
1075
|
image?: string | undefined;
|
|
1076
|
+
creditAmount?: number | undefined;
|
|
1077
|
+
paidCreditOnly?: boolean | undefined;
|
|
964
1078
|
}>;
|
|
965
1079
|
export type SendLocationMessageDto = z.infer<typeof SendLocationMessageSchema>;
|
|
966
1080
|
export interface SendMessageResponseDto {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = void 0;
|
|
3
|
+
exports.UnsubscribeLocationSchema = 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.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 = 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");
|
|
@@ -15,6 +15,11 @@ exports.UserLocationsQuerySchema = zod_1.z.object({
|
|
|
15
15
|
.default(10)
|
|
16
16
|
.describe('Number of locations to return'),
|
|
17
17
|
});
|
|
18
|
+
exports.PublishedLocationsQuerySchema = zod_1.z.object({
|
|
19
|
+
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
20
|
+
limit: zod_1.z.coerce.number().min(1).max(10).default(10),
|
|
21
|
+
});
|
|
22
|
+
exports.TrendingLocationsQuerySchema = zod_1.z.object({});
|
|
18
23
|
exports.LocationsUnreadCountQuerySchema = zod_1.z.object({
|
|
19
24
|
locationIds: zod_1.z
|
|
20
25
|
.string()
|
|
@@ -96,6 +101,9 @@ exports.GetAgentDmLocationQuerySchema = zod_1.z.object({
|
|
|
96
101
|
exports.GetLocationParamsSchema = zod_1.z.object({
|
|
97
102
|
locationId: zod_1.z.coerce.bigint(),
|
|
98
103
|
});
|
|
104
|
+
exports.DeleteLocationParamsSchema = zod_1.z.object({
|
|
105
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
106
|
+
});
|
|
99
107
|
exports.GetLocationPrivateParamsSchema = zod_1.z.object({
|
|
100
108
|
locationId: zod_1.z.coerce.bigint(),
|
|
101
109
|
});
|
|
@@ -105,12 +113,21 @@ exports.GetLocationCostParamsSchema = zod_1.z.object({
|
|
|
105
113
|
exports.UploadLocationThumbnailParamsSchema = zod_1.z.object({
|
|
106
114
|
locationId: zod_1.z.coerce.bigint(),
|
|
107
115
|
});
|
|
108
|
-
exports.
|
|
116
|
+
exports.GetLocationContentParamsSchema = zod_1.z.object({
|
|
109
117
|
locationId: zod_1.z.coerce.bigint(),
|
|
110
118
|
});
|
|
111
|
-
exports.
|
|
119
|
+
exports.DepositCreditsParamsSchema = zod_1.z.object({
|
|
112
120
|
locationId: zod_1.z.coerce.bigint(),
|
|
113
121
|
});
|
|
122
|
+
exports.DepositCreditsBodySchema = zod_1.z.object({
|
|
123
|
+
amount: zod_1.z.number().int().positive(),
|
|
124
|
+
});
|
|
125
|
+
exports.WithdrawCreditsParamsSchema = zod_1.z.object({
|
|
126
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
127
|
+
});
|
|
128
|
+
exports.WithdrawCreditsBodySchema = zod_1.z.object({
|
|
129
|
+
amount: zod_1.z.number().int().positive(),
|
|
130
|
+
});
|
|
114
131
|
exports.CreateLocationSnapshotParamsSchema = zod_1.z.object({
|
|
115
132
|
locationId: zod_1.z.coerce.bigint(),
|
|
116
133
|
});
|
|
@@ -158,6 +175,10 @@ exports.UpdateLocationParamsSchema = zod_1.z.object({
|
|
|
158
175
|
exports.UpdateLocationBodySchema = zod_1.z.object({
|
|
159
176
|
visibility: zod_1.z.enum(['private', 'public', 'publish']).optional(),
|
|
160
177
|
maxUsers: zod_1.z.number().int().min(1).max(99).optional(),
|
|
178
|
+
useLocationCreditOnly: zod_1.z.boolean().optional(),
|
|
179
|
+
creditCostPerChat: zod_1.z.number().int().min(0).max(1000).optional(),
|
|
180
|
+
chatRequiresPaidCredit: zod_1.z.boolean().optional(),
|
|
181
|
+
isAdminChat: zod_1.z.boolean().optional(),
|
|
161
182
|
});
|
|
162
183
|
exports.GetLocationScheduledMessagesParamsSchema = zod_1.z.object({
|
|
163
184
|
locationId: zod_1.z.coerce.bigint(),
|
|
@@ -217,6 +238,16 @@ exports.SubscribeLocationSchema = zod_1.z.object({
|
|
|
217
238
|
exports.UnsubscribeLocationSchema = zod_1.z.object({
|
|
218
239
|
locationId: zod_1.z.coerce.bigint(),
|
|
219
240
|
});
|
|
241
|
+
exports.BanUserFromLocationSchema = zod_1.z.object({
|
|
242
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
243
|
+
userId: zod_1.z.coerce.bigint(),
|
|
244
|
+
durationMs: zod_1.z
|
|
245
|
+
.number()
|
|
246
|
+
.int()
|
|
247
|
+
.min(60 * 1000)
|
|
248
|
+
.max(30 * 24 * 60 * 60 * 1000)
|
|
249
|
+
.optional(),
|
|
250
|
+
});
|
|
220
251
|
exports.GetLocationMessagesSchema = zod_1.z.object({
|
|
221
252
|
locationId: zod_1.z.coerce.bigint(),
|
|
222
253
|
cursor: zod_1.z.string().optional(),
|
|
@@ -229,6 +260,8 @@ exports.SendLocationMessageSchema = zod_1.z.object({
|
|
|
229
260
|
.string()
|
|
230
261
|
.max(4 * 1024 * 1024)
|
|
231
262
|
.optional(),
|
|
263
|
+
creditAmount: zod_1.z.number().int().positive().optional(),
|
|
264
|
+
paidCreditOnly: zod_1.z.boolean().optional(),
|
|
232
265
|
});
|
|
233
266
|
exports.SendSystemMessageSchema = zod_1.z.object({
|
|
234
267
|
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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AAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CAClE,CAAC,CAAC"}
|
|
@@ -124,10 +124,10 @@ const LlmPresetSchema = zod_1.z.union([
|
|
|
124
124
|
.describe('Gemini - Premium model with highest performance capabilities. Offers superior reasoning and complex task handling but comes with higher costs and slower processing times.'),
|
|
125
125
|
zod_1.z
|
|
126
126
|
.literal('openai-low')
|
|
127
|
-
.describe('OpenAI - Budget-friendly model designed for elementary tasks and routine operations. Efficient for basic conversational needs.'),
|
|
127
|
+
.describe('OpenAI GPT - Budget-friendly model designed for elementary tasks and routine operations. Efficient for basic conversational needs.'),
|
|
128
128
|
zod_1.z
|
|
129
129
|
.literal('openai-medium')
|
|
130
|
-
.describe('OpenAI - Versatile model delivering solid performance across diverse scenarios. Optimal balance of capability and cost-effectiveness.'),
|
|
130
|
+
.describe('OpenAI GPT - Versatile model delivering solid performance across diverse scenarios. Optimal balance of capability and cost-effectiveness.'),
|
|
131
131
|
]);
|
|
132
132
|
exports.AgentConfigSchema = zod_1.z.object({
|
|
133
133
|
name: zod_1.z.string().max(64).describe('Agent name'),
|
|
@@ -145,7 +145,7 @@ exports.AgentConfigSchema = zod_1.z.object({
|
|
|
145
145
|
appearance: zod_1.z
|
|
146
146
|
.string()
|
|
147
147
|
.max(500)
|
|
148
|
-
.describe("Internal character description used by the agent for role-playing and behavioral consistency. This field is automatically updated when avatar changes to a predefined option, but
|
|
148
|
+
.describe("Internal character description used by the agent for role-playing and behavioral consistency. This field is automatically updated when avatar changes to a predefined option, but should also be updated when using custom images to maintain character consistency. Can be manually edited independently. Helps the agent understand and embody its character during interactions, influencing communication style, decision-making patterns, and personality expression. Primarily for agent's internal reference rather than user display."),
|
|
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
|
|
@@ -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,OAAO,CAAC,sBAAsB,CAAC;aAC/B,QAAQ,CACP,4JAA4J,CAC7J;QACH,OAAC;aACE,OAAO,CAAC,iBAAiB,CAAC;aAC1B,QAAQ,CACP,+IAA+I,CAChJ;QACH,OAAC;aACE,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CACP,oIAAoI,CACrI;KACJ,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,eAAe,GAAG,OAAC;KAC7B,MAAM,CAAC;IACN,UAAU,EAAE,OAAC;SACV,MAAM,CAAC;QACN,IAAI,EAAE,OAAC;aACJ,MAAM,EAAE;aACR,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,CACP,kIAAkI,CACnI;aACA,QAAQ,EAAE;QACb,MAAM,EAAE,OAAC;aACN,MAAM,EAAE;aACR,GAAG,CAAC,EAAE,CAAC;aACP,QAAQ,CAAC,6BAA6B,CAAC;aACvC,QAAQ,EAAE;QACb,SAAS,EAAE,OAAC;aACT,MAAM,EAAE;aACR,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,CAAC,6BAA6B,CAAC;aACvC,QAAQ,EAAE;QACb,SAAS,EAAE,OAAC;aACT,MAAM,EAAE;aACR,GAAG,CAAC,IAAI,CAAC;aACT,QAAQ,CAAC,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AAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;SAClB,CAAC;aACD,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,CAAC,wDAAwD,CAAC;SAClE,QAAQ,EAAE;CACd,CAAC;KACD,QAAQ,CACP,mGAAmG,CACpG,CAAC;AAEJ,MAAM,eAAe,GAAG,OAAC,CAAC,KAAK,CAAC;IAC9B,OAAC;SACE,OAAO,CAAC,YAAY,CAAC;SACrB,QAAQ,CACP,oIAAoI,CACrI;IACH,OAAC;SACE,OAAO,CAAC,eAAe,CAAC;SACxB,QAAQ,CACP,qIAAqI,CACtI;IACH,OAAC;SACE,OAAO,CAAC,aAAa,CAAC;SACtB,QAAQ,CACP,4KAA4K,CAC7K;IACH,OAAC;SACE,OAAO,CAAC,YAAY,CAAC;SACrB,QAAQ,CACP,
|
|
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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AAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,iLAAiL,CAClL;CACJ,CAAC,CAAC"}
|
|
@@ -29,7 +29,7 @@ export declare const LocationConfigCanvasSchema: z.ZodObject<{
|
|
|
29
29
|
}>;
|
|
30
30
|
export declare const GimmickCoreDescriptions: {
|
|
31
31
|
readonly web_search: "Searches the web for up-to-date or missing information using an LLM, providing both a summary and detailed results. Execution takes approximately 30 seconds";
|
|
32
|
-
readonly image_generator: "Generates
|
|
32
|
+
readonly image_generator: "Generates an image using an LLM based on text prompts and optional reference images. Execution takes approximately 30 seconds";
|
|
33
33
|
readonly notion: "Interacts with Notion platform for content management and collaboration";
|
|
34
34
|
};
|
|
35
35
|
export type GimmickCore = keyof typeof GimmickCoreDescriptions;
|
|
@@ -38,14 +38,17 @@ export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
|
38
38
|
core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
|
|
39
39
|
name: z.ZodString;
|
|
40
40
|
appearance: z.ZodString;
|
|
41
|
+
images: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">>;
|
|
41
42
|
}, "strip", z.ZodTypeAny, {
|
|
42
43
|
name: string;
|
|
43
|
-
core: "web_search" | "image_generator" | "notion";
|
|
44
44
|
appearance: string;
|
|
45
|
+
core: "web_search" | "image_generator" | "notion";
|
|
46
|
+
images?: string[] | undefined;
|
|
45
47
|
}, {
|
|
46
48
|
name: string;
|
|
47
|
-
core: "web_search" | "image_generator" | "notion";
|
|
48
49
|
appearance: string;
|
|
50
|
+
core: "web_search" | "image_generator" | "notion";
|
|
51
|
+
images?: string[] | undefined;
|
|
49
52
|
}>;
|
|
50
53
|
export type LocationConfigGimmick = z.infer<typeof LocationConfigGimmickSchema>;
|
|
51
54
|
export declare const LocationConfigSchema: z.ZodObject<{
|
|
@@ -97,14 +100,17 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
97
100
|
core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
|
|
98
101
|
name: z.ZodString;
|
|
99
102
|
appearance: z.ZodString;
|
|
103
|
+
images: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">>;
|
|
100
104
|
}, "strip", z.ZodTypeAny, {
|
|
101
105
|
name: string;
|
|
102
|
-
core: "web_search" | "image_generator" | "notion";
|
|
103
106
|
appearance: string;
|
|
107
|
+
core: "web_search" | "image_generator" | "notion";
|
|
108
|
+
images?: string[] | undefined;
|
|
104
109
|
}, {
|
|
105
110
|
name: string;
|
|
106
|
-
core: "web_search" | "image_generator" | "notion";
|
|
107
111
|
appearance: string;
|
|
112
|
+
core: "web_search" | "image_generator" | "notion";
|
|
113
|
+
images?: string[] | undefined;
|
|
108
114
|
}>, "many">;
|
|
109
115
|
}, "strip", z.ZodTypeAny, {
|
|
110
116
|
name: string;
|
|
@@ -114,9 +120,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
114
120
|
sequential?: boolean | undefined;
|
|
115
121
|
interval?: number | undefined;
|
|
116
122
|
};
|
|
123
|
+
rules: string[];
|
|
117
124
|
thumbnail: string | null;
|
|
118
125
|
environment: "CHAT" | "NOVEL";
|
|
119
|
-
rules: string[];
|
|
120
126
|
canvases: {
|
|
121
127
|
name: string;
|
|
122
128
|
description: string;
|
|
@@ -129,8 +135,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
129
135
|
}[];
|
|
130
136
|
gimmicks: {
|
|
131
137
|
name: string;
|
|
132
|
-
core: "web_search" | "image_generator" | "notion";
|
|
133
138
|
appearance: string;
|
|
139
|
+
core: "web_search" | "image_generator" | "notion";
|
|
140
|
+
images?: string[] | undefined;
|
|
134
141
|
}[];
|
|
135
142
|
}, {
|
|
136
143
|
name: string;
|
|
@@ -140,9 +147,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
140
147
|
sequential?: boolean | undefined;
|
|
141
148
|
interval?: number | undefined;
|
|
142
149
|
};
|
|
150
|
+
rules: string[];
|
|
143
151
|
thumbnail: string | null;
|
|
144
152
|
environment: "CHAT" | "NOVEL";
|
|
145
|
-
rules: string[];
|
|
146
153
|
canvases: {
|
|
147
154
|
name: string;
|
|
148
155
|
description: string;
|
|
@@ -155,8 +162,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
155
162
|
}[];
|
|
156
163
|
gimmicks: {
|
|
157
164
|
name: string;
|
|
158
|
-
core: "web_search" | "image_generator" | "notion";
|
|
159
165
|
appearance: string;
|
|
166
|
+
core: "web_search" | "image_generator" | "notion";
|
|
167
|
+
images?: string[] | undefined;
|
|
160
168
|
}[];
|
|
161
169
|
}>;
|
|
162
170
|
export type LocationConfig = z.infer<typeof LocationConfigSchema>;
|
|
@@ -38,7 +38,7 @@ exports.LocationConfigCanvasSchema = zod_1.z.object({
|
|
|
38
38
|
.describe('Unique identifier for the canvas that agents use to reference it'),
|
|
39
39
|
description: zod_1.z
|
|
40
40
|
.string()
|
|
41
|
-
.max(
|
|
41
|
+
.max(1000)
|
|
42
42
|
.describe('Clear explanation of the canvas purpose and intended use for agents'),
|
|
43
43
|
maxLength: zod_1.z
|
|
44
44
|
.number()
|
|
@@ -48,7 +48,7 @@ exports.LocationConfigCanvasSchema = zod_1.z.object({
|
|
|
48
48
|
});
|
|
49
49
|
exports.GimmickCoreDescriptions = {
|
|
50
50
|
web_search: 'Searches the web for up-to-date or missing information using an LLM, providing both a summary and detailed results. Execution takes approximately 30 seconds',
|
|
51
|
-
image_generator: 'Generates
|
|
51
|
+
image_generator: 'Generates an image using an LLM based on text prompts and optional reference images. Execution takes approximately 30 seconds',
|
|
52
52
|
notion: 'Interacts with Notion platform for content management and collaboration',
|
|
53
53
|
};
|
|
54
54
|
exports.GimmickCoreSchema = zod_1.z.union(Object.keys(exports.GimmickCoreDescriptions).map((key) => zod_1.z.literal(key).describe(exports.GimmickCoreDescriptions[key])));
|
|
@@ -62,6 +62,21 @@ exports.LocationConfigGimmickSchema = zod_1.z.object({
|
|
|
62
62
|
.string()
|
|
63
63
|
.max(500)
|
|
64
64
|
.describe('How the gimmick appears to agents and users in the location context'),
|
|
65
|
+
images: zod_1.z
|
|
66
|
+
.array(zod_1.z.union([
|
|
67
|
+
zod_1.z
|
|
68
|
+
.string()
|
|
69
|
+
.max(2048)
|
|
70
|
+
.regex(/^https?:\/\/.+\.(png|jpe?g|webp)$/i)
|
|
71
|
+
.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.'),
|
|
72
|
+
zod_1.z
|
|
73
|
+
.string()
|
|
74
|
+
.max(32)
|
|
75
|
+
.describe('Reference message image key for API usage'),
|
|
76
|
+
]))
|
|
77
|
+
.max(4)
|
|
78
|
+
.optional()
|
|
79
|
+
.describe('Optional reference images used by image_generator gimmick for AI image generation. 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.'),
|
|
65
80
|
});
|
|
66
81
|
exports.LocationConfigSchema = zod_1.z.object({
|
|
67
82
|
name: zod_1.z.string().max(64).describe('Location name'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,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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;AAEU,QAAA,uBAAuB,GAAG;IACrC,UAAU,EACR,8JAA8J;IAChK,eAAe,EACb
|
|
1
|
+
{"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,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,CAAC,CAAC;AAIU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,GAA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