@little-samo/samo-ai-sdk 0.7.6 → 0.7.8
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 +46 -46
- package/dist/dto/entities/users/user.d.ts +14 -5
- package/dist/dto/entities/users/user.js +5 -1
- package/dist/dto/entities/users/user.js.map +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +80 -21
- package/dist/dto/entities/users/user.requests.js +22 -4
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/images/image.d.ts +1 -1
- package/dist/dto/images/image.js +1 -0
- package/dist/dto/images/image.js.map +1 -1
- package/dist/dto/images/image.requests.d.ts +9 -9
- package/dist/dto/images/image.requests.js +1 -1
- package/dist/dto/images/image.requests.js.map +1 -1
- package/dist/dto/locations/location.preset.d.ts +2 -2
- package/dist/dto/locations/location.requests.d.ts +178 -163
- package/package.json +1 -1
|
@@ -79,12 +79,12 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
79
79
|
style: z.ZodOptional<z.ZodString>;
|
|
80
80
|
formality: z.ZodOptional<z.ZodString>;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
tone?: string | undefined;
|
|
83
82
|
style?: string | undefined;
|
|
83
|
+
tone?: string | undefined;
|
|
84
84
|
formality?: string | undefined;
|
|
85
85
|
}, {
|
|
86
|
-
tone?: string | undefined;
|
|
87
86
|
style?: string | undefined;
|
|
87
|
+
tone?: string | undefined;
|
|
88
88
|
formality?: string | undefined;
|
|
89
89
|
}>>;
|
|
90
90
|
personality: z.ZodOptional<z.ZodObject<{
|
|
@@ -117,8 +117,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
117
117
|
backstory?: string | undefined;
|
|
118
118
|
} | undefined;
|
|
119
119
|
speech?: {
|
|
120
|
-
tone?: string | undefined;
|
|
121
120
|
style?: string | undefined;
|
|
121
|
+
tone?: string | undefined;
|
|
122
122
|
formality?: string | undefined;
|
|
123
123
|
} | undefined;
|
|
124
124
|
personality?: {
|
|
@@ -137,8 +137,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
137
137
|
backstory?: string | undefined;
|
|
138
138
|
} | undefined;
|
|
139
139
|
speech?: {
|
|
140
|
-
tone?: string | undefined;
|
|
141
140
|
style?: string | undefined;
|
|
141
|
+
tone?: string | undefined;
|
|
142
142
|
formality?: string | undefined;
|
|
143
143
|
} | undefined;
|
|
144
144
|
personality?: {
|
|
@@ -152,14 +152,15 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
152
152
|
}>>;
|
|
153
153
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
154
154
|
}, "strict", z.ZodTypeAny, {
|
|
155
|
-
role?: string | undefined;
|
|
156
155
|
avatar?: string | undefined;
|
|
156
|
+
name?: string | undefined;
|
|
157
|
+
role?: string | undefined;
|
|
157
158
|
referenceAvatar?: string | undefined;
|
|
158
159
|
appearance?: string | undefined;
|
|
159
|
-
name?: string | undefined;
|
|
160
160
|
core?: {
|
|
161
161
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
162
162
|
} | undefined;
|
|
163
|
+
rules?: string[] | undefined;
|
|
163
164
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
164
165
|
languages?: string[] | undefined;
|
|
165
166
|
timeZone?: string | undefined;
|
|
@@ -173,8 +174,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
173
174
|
backstory?: string | undefined;
|
|
174
175
|
} | undefined;
|
|
175
176
|
speech?: {
|
|
176
|
-
tone?: string | undefined;
|
|
177
177
|
style?: string | undefined;
|
|
178
|
+
tone?: string | undefined;
|
|
178
179
|
formality?: string | undefined;
|
|
179
180
|
} | undefined;
|
|
180
181
|
personality?: {
|
|
@@ -186,16 +187,16 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
186
187
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
187
188
|
} | undefined;
|
|
188
189
|
} | undefined;
|
|
189
|
-
rules?: string[] | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
role?: string | undefined;
|
|
192
191
|
avatar?: string | undefined;
|
|
192
|
+
name?: string | undefined;
|
|
193
|
+
role?: string | undefined;
|
|
193
194
|
referenceAvatar?: string | undefined;
|
|
194
195
|
appearance?: string | undefined;
|
|
195
|
-
name?: string | undefined;
|
|
196
196
|
core?: {
|
|
197
197
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
198
198
|
} | undefined;
|
|
199
|
+
rules?: string[] | undefined;
|
|
199
200
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
200
201
|
languages?: string[] | undefined;
|
|
201
202
|
timeZone?: string | undefined;
|
|
@@ -209,8 +210,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
209
210
|
backstory?: string | undefined;
|
|
210
211
|
} | undefined;
|
|
211
212
|
speech?: {
|
|
212
|
-
tone?: string | undefined;
|
|
213
213
|
style?: string | undefined;
|
|
214
|
+
tone?: string | undefined;
|
|
214
215
|
formality?: string | undefined;
|
|
215
216
|
} | undefined;
|
|
216
217
|
personality?: {
|
|
@@ -222,19 +223,18 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
222
223
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
223
224
|
} | undefined;
|
|
224
225
|
} | undefined;
|
|
225
|
-
rules?: string[] | undefined;
|
|
226
226
|
}>;
|
|
227
227
|
}, "strip", z.ZodTypeAny, {
|
|
228
|
-
agentId: bigint;
|
|
229
228
|
config: {
|
|
230
|
-
role?: string | undefined;
|
|
231
229
|
avatar?: string | undefined;
|
|
230
|
+
name?: string | undefined;
|
|
231
|
+
role?: string | undefined;
|
|
232
232
|
referenceAvatar?: string | undefined;
|
|
233
233
|
appearance?: string | undefined;
|
|
234
|
-
name?: string | undefined;
|
|
235
234
|
core?: {
|
|
236
235
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
237
236
|
} | undefined;
|
|
237
|
+
rules?: string[] | undefined;
|
|
238
238
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
239
239
|
languages?: string[] | undefined;
|
|
240
240
|
timeZone?: string | undefined;
|
|
@@ -248,8 +248,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
248
248
|
backstory?: string | undefined;
|
|
249
249
|
} | undefined;
|
|
250
250
|
speech?: {
|
|
251
|
-
tone?: string | undefined;
|
|
252
251
|
style?: string | undefined;
|
|
252
|
+
tone?: string | undefined;
|
|
253
253
|
formality?: string | undefined;
|
|
254
254
|
} | undefined;
|
|
255
255
|
personality?: {
|
|
@@ -261,19 +261,19 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
261
261
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
262
262
|
} | undefined;
|
|
263
263
|
} | undefined;
|
|
264
|
-
rules?: string[] | undefined;
|
|
265
264
|
};
|
|
266
|
-
}, {
|
|
267
265
|
agentId: bigint;
|
|
266
|
+
}, {
|
|
268
267
|
config: {
|
|
269
|
-
role?: string | undefined;
|
|
270
268
|
avatar?: string | undefined;
|
|
269
|
+
name?: string | undefined;
|
|
270
|
+
role?: string | undefined;
|
|
271
271
|
referenceAvatar?: string | undefined;
|
|
272
272
|
appearance?: string | undefined;
|
|
273
|
-
name?: string | undefined;
|
|
274
273
|
core?: {
|
|
275
274
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
276
275
|
} | undefined;
|
|
276
|
+
rules?: string[] | undefined;
|
|
277
277
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
278
278
|
languages?: string[] | undefined;
|
|
279
279
|
timeZone?: string | undefined;
|
|
@@ -287,8 +287,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
287
287
|
backstory?: string | undefined;
|
|
288
288
|
} | undefined;
|
|
289
289
|
speech?: {
|
|
290
|
-
tone?: string | undefined;
|
|
291
290
|
style?: string | undefined;
|
|
291
|
+
tone?: string | undefined;
|
|
292
292
|
formality?: string | undefined;
|
|
293
293
|
} | undefined;
|
|
294
294
|
personality?: {
|
|
@@ -300,8 +300,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
300
300
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
301
301
|
} | undefined;
|
|
302
302
|
} | undefined;
|
|
303
|
-
rules?: string[] | undefined;
|
|
304
303
|
};
|
|
304
|
+
agentId: bigint;
|
|
305
305
|
}>;
|
|
306
306
|
export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
|
|
307
307
|
export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
@@ -327,7 +327,6 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
327
327
|
token: string;
|
|
328
328
|
}>]>;
|
|
329
329
|
}, "strip", z.ZodTypeAny, {
|
|
330
|
-
agentId: bigint;
|
|
331
330
|
credential: {
|
|
332
331
|
type: "notion";
|
|
333
332
|
token: string;
|
|
@@ -335,8 +334,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
335
334
|
type: "notion";
|
|
336
335
|
token: string;
|
|
337
336
|
};
|
|
338
|
-
}, {
|
|
339
337
|
agentId: bigint;
|
|
338
|
+
}, {
|
|
340
339
|
credential: {
|
|
341
340
|
type: "notion";
|
|
342
341
|
token: string;
|
|
@@ -344,6 +343,7 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
344
343
|
type: "notion";
|
|
345
344
|
token: string;
|
|
346
345
|
};
|
|
346
|
+
agentId: bigint;
|
|
347
347
|
}>;
|
|
348
348
|
export type AgentUpdateCredentialDto = z.infer<typeof AgentUpdateCredentialSchema>;
|
|
349
349
|
export interface AgentUpdateCredentialResponseDto {
|
|
@@ -354,11 +354,11 @@ export declare const AgentDeleteCredentialSchema: z.ZodObject<{
|
|
|
354
354
|
agentId: z.ZodBigInt;
|
|
355
355
|
credentialType: z.ZodString;
|
|
356
356
|
}, "strip", z.ZodTypeAny, {
|
|
357
|
-
agentId: bigint;
|
|
358
357
|
credentialType: string;
|
|
359
|
-
}, {
|
|
360
358
|
agentId: bigint;
|
|
359
|
+
}, {
|
|
361
360
|
credentialType: string;
|
|
361
|
+
agentId: bigint;
|
|
362
362
|
}>;
|
|
363
363
|
export type AgentDeleteCredentialDto = z.infer<typeof AgentDeleteCredentialSchema>;
|
|
364
364
|
export interface AgentDeleteCredentialResponseDto {
|
|
@@ -426,12 +426,12 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
426
426
|
style: z.ZodOptional<z.ZodString>;
|
|
427
427
|
formality: z.ZodOptional<z.ZodString>;
|
|
428
428
|
}, "strip", z.ZodTypeAny, {
|
|
429
|
-
tone?: string | undefined;
|
|
430
429
|
style?: string | undefined;
|
|
430
|
+
tone?: string | undefined;
|
|
431
431
|
formality?: string | undefined;
|
|
432
432
|
}, {
|
|
433
|
-
tone?: string | undefined;
|
|
434
433
|
style?: string | undefined;
|
|
434
|
+
tone?: string | undefined;
|
|
435
435
|
formality?: string | undefined;
|
|
436
436
|
}>>;
|
|
437
437
|
personality: z.ZodOptional<z.ZodObject<{
|
|
@@ -464,8 +464,8 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
464
464
|
backstory?: string | undefined;
|
|
465
465
|
} | undefined;
|
|
466
466
|
speech?: {
|
|
467
|
-
tone?: string | undefined;
|
|
468
467
|
style?: string | undefined;
|
|
468
|
+
tone?: string | undefined;
|
|
469
469
|
formality?: string | undefined;
|
|
470
470
|
} | undefined;
|
|
471
471
|
personality?: {
|
|
@@ -484,8 +484,8 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
484
484
|
backstory?: string | undefined;
|
|
485
485
|
} | undefined;
|
|
486
486
|
speech?: {
|
|
487
|
-
tone?: string | undefined;
|
|
488
487
|
style?: string | undefined;
|
|
488
|
+
tone?: string | undefined;
|
|
489
489
|
formality?: string | undefined;
|
|
490
490
|
} | undefined;
|
|
491
491
|
personality?: {
|
|
@@ -499,14 +499,15 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
499
499
|
}>>;
|
|
500
500
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
501
501
|
}, "strict", z.ZodTypeAny, {
|
|
502
|
-
role?: string | undefined;
|
|
503
502
|
avatar?: string | undefined;
|
|
503
|
+
name?: string | undefined;
|
|
504
|
+
role?: string | undefined;
|
|
504
505
|
referenceAvatar?: string | undefined;
|
|
505
506
|
appearance?: string | undefined;
|
|
506
|
-
name?: string | undefined;
|
|
507
507
|
core?: {
|
|
508
508
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
509
509
|
} | undefined;
|
|
510
|
+
rules?: string[] | undefined;
|
|
510
511
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
511
512
|
languages?: string[] | undefined;
|
|
512
513
|
timeZone?: string | undefined;
|
|
@@ -520,8 +521,8 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
520
521
|
backstory?: string | undefined;
|
|
521
522
|
} | undefined;
|
|
522
523
|
speech?: {
|
|
523
|
-
tone?: string | undefined;
|
|
524
524
|
style?: string | undefined;
|
|
525
|
+
tone?: string | undefined;
|
|
525
526
|
formality?: string | undefined;
|
|
526
527
|
} | undefined;
|
|
527
528
|
personality?: {
|
|
@@ -533,16 +534,16 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
533
534
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
534
535
|
} | undefined;
|
|
535
536
|
} | undefined;
|
|
536
|
-
rules?: string[] | undefined;
|
|
537
537
|
}, {
|
|
538
|
-
role?: string | undefined;
|
|
539
538
|
avatar?: string | undefined;
|
|
539
|
+
name?: string | undefined;
|
|
540
|
+
role?: string | undefined;
|
|
540
541
|
referenceAvatar?: string | undefined;
|
|
541
542
|
appearance?: string | undefined;
|
|
542
|
-
name?: string | undefined;
|
|
543
543
|
core?: {
|
|
544
544
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
545
545
|
} | undefined;
|
|
546
|
+
rules?: string[] | undefined;
|
|
546
547
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
547
548
|
languages?: string[] | undefined;
|
|
548
549
|
timeZone?: string | undefined;
|
|
@@ -556,8 +557,8 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
556
557
|
backstory?: string | undefined;
|
|
557
558
|
} | undefined;
|
|
558
559
|
speech?: {
|
|
559
|
-
tone?: string | undefined;
|
|
560
560
|
style?: string | undefined;
|
|
561
|
+
tone?: string | undefined;
|
|
561
562
|
formality?: string | undefined;
|
|
562
563
|
} | undefined;
|
|
563
564
|
personality?: {
|
|
@@ -569,18 +570,18 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
569
570
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
570
571
|
} | undefined;
|
|
571
572
|
} | undefined;
|
|
572
|
-
rules?: string[] | undefined;
|
|
573
573
|
}>;
|
|
574
574
|
}, "strip", z.ZodTypeAny, {
|
|
575
575
|
config: {
|
|
576
|
-
role?: string | undefined;
|
|
577
576
|
avatar?: string | undefined;
|
|
577
|
+
name?: string | undefined;
|
|
578
|
+
role?: string | undefined;
|
|
578
579
|
referenceAvatar?: string | undefined;
|
|
579
580
|
appearance?: string | undefined;
|
|
580
|
-
name?: string | undefined;
|
|
581
581
|
core?: {
|
|
582
582
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
583
583
|
} | undefined;
|
|
584
|
+
rules?: string[] | undefined;
|
|
584
585
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
585
586
|
languages?: string[] | undefined;
|
|
586
587
|
timeZone?: string | undefined;
|
|
@@ -594,8 +595,8 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
594
595
|
backstory?: string | undefined;
|
|
595
596
|
} | undefined;
|
|
596
597
|
speech?: {
|
|
597
|
-
tone?: string | undefined;
|
|
598
598
|
style?: string | undefined;
|
|
599
|
+
tone?: string | undefined;
|
|
599
600
|
formality?: string | undefined;
|
|
600
601
|
} | undefined;
|
|
601
602
|
personality?: {
|
|
@@ -607,18 +608,18 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
607
608
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
608
609
|
} | undefined;
|
|
609
610
|
} | undefined;
|
|
610
|
-
rules?: string[] | undefined;
|
|
611
611
|
};
|
|
612
612
|
}, {
|
|
613
613
|
config: {
|
|
614
|
-
role?: string | undefined;
|
|
615
614
|
avatar?: string | undefined;
|
|
615
|
+
name?: string | undefined;
|
|
616
|
+
role?: string | undefined;
|
|
616
617
|
referenceAvatar?: string | undefined;
|
|
617
618
|
appearance?: string | undefined;
|
|
618
|
-
name?: string | undefined;
|
|
619
619
|
core?: {
|
|
620
620
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
621
621
|
} | undefined;
|
|
622
|
+
rules?: string[] | undefined;
|
|
622
623
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
623
624
|
languages?: string[] | undefined;
|
|
624
625
|
timeZone?: string | undefined;
|
|
@@ -632,8 +633,8 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
632
633
|
backstory?: string | undefined;
|
|
633
634
|
} | undefined;
|
|
634
635
|
speech?: {
|
|
635
|
-
tone?: string | undefined;
|
|
636
636
|
style?: string | undefined;
|
|
637
|
+
tone?: string | undefined;
|
|
637
638
|
formality?: string | undefined;
|
|
638
639
|
} | undefined;
|
|
639
640
|
personality?: {
|
|
@@ -645,7 +646,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
645
646
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
646
647
|
} | undefined;
|
|
647
648
|
} | undefined;
|
|
648
|
-
rules?: string[] | undefined;
|
|
649
649
|
};
|
|
650
650
|
}>;
|
|
651
651
|
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
@@ -45,24 +45,33 @@ export declare const UserAvatarSchema: z.ZodObject<{
|
|
|
45
45
|
name: z.ZodString;
|
|
46
46
|
role: z.ZodOptional<z.ZodString>;
|
|
47
47
|
avatar: z.ZodString;
|
|
48
|
-
referenceAvatar: z.ZodString
|
|
48
|
+
referenceAvatar: z.ZodOptional<z.ZodString>;
|
|
49
|
+
examplePoses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
49
50
|
appearance: z.ZodString;
|
|
51
|
+
style: z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "webtoon2", "illustration", "anime", "korean"]>>;
|
|
52
|
+
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
50
53
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
51
54
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
name: string;
|
|
53
55
|
avatar: string;
|
|
54
|
-
|
|
56
|
+
name: string;
|
|
55
57
|
appearance: string;
|
|
58
|
+
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
56
59
|
id?: bigint | undefined;
|
|
57
60
|
role?: string | undefined;
|
|
61
|
+
referenceAvatar?: string | undefined;
|
|
62
|
+
examplePoses?: string[] | undefined;
|
|
63
|
+
isPublic?: boolean | undefined;
|
|
58
64
|
createdAt?: Date | undefined;
|
|
59
65
|
}, {
|
|
60
|
-
name: string;
|
|
61
66
|
avatar: string;
|
|
62
|
-
|
|
67
|
+
name: string;
|
|
63
68
|
appearance: string;
|
|
69
|
+
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
64
70
|
id?: bigint | undefined;
|
|
65
71
|
role?: string | undefined;
|
|
72
|
+
referenceAvatar?: string | undefined;
|
|
73
|
+
examplePoses?: string[] | undefined;
|
|
74
|
+
isPublic?: boolean | undefined;
|
|
66
75
|
createdAt?: Date | undefined;
|
|
67
76
|
}>;
|
|
68
77
|
export type UserAvatarDto = z.infer<typeof UserAvatarSchema>;
|
|
@@ -5,13 +5,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.UserApiKeyTypeSchema = exports.UserAvatarSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const images_1 = require("../../images");
|
|
8
9
|
exports.UserAvatarSchema = zod_1.default.object({
|
|
9
10
|
id: zod_1.default.coerce.bigint().optional(),
|
|
10
11
|
name: zod_1.default.string().max(64),
|
|
11
12
|
role: zod_1.default.string().max(200).optional(),
|
|
12
13
|
avatar: zod_1.default.string().max(2048),
|
|
13
|
-
referenceAvatar: zod_1.default.string().max(2048),
|
|
14
|
+
referenceAvatar: zod_1.default.string().max(2048).optional(),
|
|
15
|
+
examplePoses: zod_1.default.array(zod_1.default.string().max(2048)).optional(),
|
|
14
16
|
appearance: zod_1.default.string().max(500),
|
|
17
|
+
style: images_1.ImageStyleSchema.optional(),
|
|
18
|
+
isPublic: zod_1.default.boolean().optional(),
|
|
15
19
|
createdAt: zod_1.default.coerce.date().optional(),
|
|
16
20
|
});
|
|
17
21
|
exports.UserApiKeyTypeSchema = zod_1.default.enum(['AVATAR']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.ts"],"names":[],"mappings":";;;;;;AACA,8CAAoB;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.ts"],"names":[],"mappings":";;;;;;AACA,8CAAoB;AAEpB,yCAAgD;AAmDnC,QAAA,gBAAgB,GAAG,aAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC5B,eAAe,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IAChD,YAAY,EAAE,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC/B,KAAK,EAAE,yBAAgB,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAKU,QAAA,oBAAoB,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC"}
|
|
@@ -21,27 +21,27 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
|
21
21
|
bio: z.ZodOptional<z.ZodString>;
|
|
22
22
|
isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
avatar?: string | undefined;
|
|
25
|
+
role?: string | undefined;
|
|
26
|
+
referenceAvatar?: string | undefined;
|
|
27
|
+
appearance?: string | undefined;
|
|
24
28
|
username?: string | undefined;
|
|
25
29
|
nickname?: string | undefined;
|
|
26
30
|
birthDate?: Date | undefined;
|
|
27
31
|
profilePicture?: string | undefined;
|
|
28
|
-
role?: string | undefined;
|
|
29
32
|
avatarName?: string | undefined;
|
|
30
|
-
avatar?: string | undefined;
|
|
31
|
-
referenceAvatar?: string | undefined;
|
|
32
|
-
appearance?: string | undefined;
|
|
33
33
|
bio?: string | undefined;
|
|
34
34
|
isAllowSensitive?: boolean | undefined;
|
|
35
35
|
}, {
|
|
36
|
+
avatar?: string | undefined;
|
|
37
|
+
role?: string | undefined;
|
|
38
|
+
referenceAvatar?: string | undefined;
|
|
39
|
+
appearance?: string | undefined;
|
|
36
40
|
username?: string | undefined;
|
|
37
41
|
nickname?: string | undefined;
|
|
38
42
|
birthDate?: Date | undefined;
|
|
39
43
|
profilePicture?: string | undefined;
|
|
40
|
-
role?: string | undefined;
|
|
41
44
|
avatarName?: string | undefined;
|
|
42
|
-
avatar?: string | undefined;
|
|
43
|
-
referenceAvatar?: string | undefined;
|
|
44
|
-
appearance?: string | undefined;
|
|
45
45
|
bio?: string | undefined;
|
|
46
46
|
isAllowSensitive?: boolean | undefined;
|
|
47
47
|
}>;
|
|
@@ -80,40 +80,68 @@ export interface GetUserAvatarsResponseDto {
|
|
|
80
80
|
totalPages: number;
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
export declare const GetUserAvatarParamsSchema: z.ZodObject<{
|
|
84
|
-
id: z.ZodBigInt;
|
|
85
|
-
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
id: bigint;
|
|
87
|
-
}, {
|
|
88
|
-
id: bigint;
|
|
89
|
-
}>;
|
|
90
|
-
export type GetUserAvatarParamsDto = z.infer<typeof GetUserAvatarParamsSchema>;
|
|
91
|
-
export interface GetUserAvatarResponseDto {
|
|
92
|
-
avatar: UserAvatarDto;
|
|
93
|
-
}
|
|
94
83
|
export declare const CreateUserAvatarBodySchema: z.ZodObject<{
|
|
95
84
|
name: z.ZodString;
|
|
96
85
|
role: z.ZodOptional<z.ZodString>;
|
|
97
86
|
avatar: z.ZodString;
|
|
98
87
|
referenceAvatar: z.ZodString;
|
|
88
|
+
examplePoses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
99
89
|
appearance: z.ZodString;
|
|
90
|
+
style: z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "webtoon2", "illustration", "anime", "korean"]>>;
|
|
91
|
+
isPublic: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
100
92
|
}, "strip", z.ZodTypeAny, {
|
|
101
93
|
avatar: string;
|
|
94
|
+
name: string;
|
|
102
95
|
referenceAvatar: string;
|
|
103
96
|
appearance: string;
|
|
104
|
-
|
|
97
|
+
isPublic: boolean;
|
|
98
|
+
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
105
99
|
role?: string | undefined;
|
|
100
|
+
examplePoses?: string[] | undefined;
|
|
106
101
|
}, {
|
|
107
102
|
avatar: string;
|
|
103
|
+
name: string;
|
|
108
104
|
referenceAvatar: string;
|
|
109
105
|
appearance: string;
|
|
110
|
-
|
|
106
|
+
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
111
107
|
role?: string | undefined;
|
|
108
|
+
examplePoses?: string[] | undefined;
|
|
109
|
+
isPublic?: boolean | undefined;
|
|
112
110
|
}>;
|
|
113
111
|
export type CreateUserAvatarBodyDto = z.infer<typeof CreateUserAvatarBodySchema>;
|
|
114
112
|
export interface CreateUserAvatarResponseDto {
|
|
115
113
|
avatar: UserAvatarDto;
|
|
116
114
|
}
|
|
115
|
+
export declare const UpdateUserAvatarParamsSchema: z.ZodObject<{
|
|
116
|
+
id: z.ZodBigInt;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
id: bigint;
|
|
119
|
+
}, {
|
|
120
|
+
id: bigint;
|
|
121
|
+
}>;
|
|
122
|
+
export type UpdateUserAvatarParamsDto = z.infer<typeof UpdateUserAvatarParamsSchema>;
|
|
123
|
+
export declare const UpdateUserAvatarBodySchema: z.ZodObject<{
|
|
124
|
+
examplePoses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
125
|
+
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
examplePoses?: string[] | undefined;
|
|
128
|
+
isPublic?: boolean | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
examplePoses?: string[] | undefined;
|
|
131
|
+
isPublic?: boolean | undefined;
|
|
132
|
+
}>;
|
|
133
|
+
export type UpdateUserAvatarBodyDto = z.infer<typeof UpdateUserAvatarBodySchema>;
|
|
134
|
+
export interface UpdateUserAvatarResponseDto {
|
|
135
|
+
avatar: UserAvatarDto;
|
|
136
|
+
}
|
|
137
|
+
export declare const DeleteUserAvatarParamsSchema: z.ZodObject<{
|
|
138
|
+
id: z.ZodBigInt;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
id: bigint;
|
|
141
|
+
}, {
|
|
142
|
+
id: bigint;
|
|
143
|
+
}>;
|
|
144
|
+
export type DeleteUserAvatarParamsDto = z.infer<typeof DeleteUserAvatarParamsSchema>;
|
|
117
145
|
export declare const DeleteUserAvatarBodySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
118
146
|
export type DeleteUserAvatarBodyDto = z.infer<typeof DeleteUserAvatarBodySchema>;
|
|
119
147
|
export interface DeleteUserAvatarResponseDto {
|
|
@@ -167,6 +195,37 @@ export type GetUsersByIdsQueryDto = z.infer<typeof GetUsersByIdsQuerySchema>;
|
|
|
167
195
|
export interface GetUserPublicsByIdsResponseDto {
|
|
168
196
|
users: UserPublicDto[];
|
|
169
197
|
}
|
|
198
|
+
export declare const GetPublicAvatarsQuerySchema: z.ZodObject<{
|
|
199
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
200
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
page: number;
|
|
203
|
+
limit: number;
|
|
204
|
+
}, {
|
|
205
|
+
page?: number | undefined;
|
|
206
|
+
limit?: number | undefined;
|
|
207
|
+
}>;
|
|
208
|
+
export type GetPublicAvatarsQueryDto = z.infer<typeof GetPublicAvatarsQuerySchema>;
|
|
209
|
+
export interface GetPublicAvatarsResponseDto {
|
|
210
|
+
avatars: UserAvatarDto[];
|
|
211
|
+
meta: {
|
|
212
|
+
total: number;
|
|
213
|
+
page: number;
|
|
214
|
+
limit: number;
|
|
215
|
+
totalPages: number;
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
export declare const GetUserAvatarParamsSchema: z.ZodObject<{
|
|
219
|
+
id: z.ZodBigInt;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
id: bigint;
|
|
222
|
+
}, {
|
|
223
|
+
id: bigint;
|
|
224
|
+
}>;
|
|
225
|
+
export type GetUserAvatarParamsDto = z.infer<typeof GetUserAvatarParamsSchema>;
|
|
226
|
+
export interface GetUserAvatarResponseDto {
|
|
227
|
+
avatar: UserAvatarDto;
|
|
228
|
+
}
|
|
170
229
|
export declare const FollowUserParamsSchema: z.ZodObject<{
|
|
171
230
|
userId: z.ZodBigInt;
|
|
172
231
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCurrentUserSchema = exports.RegenerateUserApiKeyBodySchema = exports.GetUserApiKeyQuerySchema = exports.GetUserSettingsQuerySchema = exports.ReadUserNotificationParamsSchema = exports.ReadAllUserNotificationsBodySchema = exports.AcknowledgeUserNotificationsBodySchema = exports.GetUserNotificationsQuerySchema = exports.ReadNoticeParamsSchema = exports.ReadAllNoticesBodySchema = exports.AcknowledgeNoticesBodySchema = exports.GetNoticesQuerySchema = exports.SetUserReferrerBodySchema = exports.GetUserReferralQuerySchema = exports.DeleteUserCommentParamsSchema = exports.ReportUserCommentParamsSchema = exports.UpdateUserCommentReactionBodySchema = exports.UpdateUserCommentReactionParamsSchema = exports.CreateUserCommentBodySchema = exports.CreateUserCommentParamsSchema = exports.GetUserCommentRepliesQuerySchema = exports.GetUserCommentRepliesParamsSchema = exports.GetUserCommentsQuerySchema = exports.GetUserCommentsParamsSchema = exports.GetUserFollowingQuerySchema = exports.GetUserFollowingParamsSchema = exports.GetUserFollowersQuerySchema = exports.GetUserFollowersParamsSchema = exports.UnfollowUserParamsSchema = exports.FollowUserParamsSchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.CheckAttendanceBodySchema = exports.GetAttendanceQuerySchema = exports.DeleteUserAvatarBodySchema = exports.
|
|
3
|
+
exports.GetCurrentUserSchema = exports.RegenerateUserApiKeyBodySchema = exports.GetUserApiKeyQuerySchema = exports.GetUserSettingsQuerySchema = exports.ReadUserNotificationParamsSchema = exports.ReadAllUserNotificationsBodySchema = exports.AcknowledgeUserNotificationsBodySchema = exports.GetUserNotificationsQuerySchema = exports.ReadNoticeParamsSchema = exports.ReadAllNoticesBodySchema = exports.AcknowledgeNoticesBodySchema = exports.GetNoticesQuerySchema = exports.SetUserReferrerBodySchema = exports.GetUserReferralQuerySchema = exports.DeleteUserCommentParamsSchema = exports.ReportUserCommentParamsSchema = exports.UpdateUserCommentReactionBodySchema = exports.UpdateUserCommentReactionParamsSchema = exports.CreateUserCommentBodySchema = exports.CreateUserCommentParamsSchema = exports.GetUserCommentRepliesQuerySchema = exports.GetUserCommentRepliesParamsSchema = exports.GetUserCommentsQuerySchema = exports.GetUserCommentsParamsSchema = exports.GetUserFollowingQuerySchema = exports.GetUserFollowingParamsSchema = exports.GetUserFollowersQuerySchema = exports.GetUserFollowersParamsSchema = exports.UnfollowUserParamsSchema = exports.FollowUserParamsSchema = exports.GetUserAvatarParamsSchema = exports.GetPublicAvatarsQuerySchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.CheckAttendanceBodySchema = exports.GetAttendanceQuerySchema = exports.DeleteUserAvatarBodySchema = exports.DeleteUserAvatarParamsSchema = exports.UpdateUserAvatarBodySchema = exports.UpdateUserAvatarParamsSchema = exports.CreateUserAvatarBodySchema = exports.GetUserAvatarsQuerySchema = exports.DeleteCurrentUserBodySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const images_1 = require("../../images");
|
|
5
6
|
const user_1 = require("./user");
|
|
6
7
|
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
7
8
|
exports.UpdateCurrentUserBodySchema = zod_1.z.object({
|
|
@@ -29,15 +30,25 @@ exports.GetUserAvatarsQuerySchema = zod_1.z.object({
|
|
|
29
30
|
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
30
31
|
limit: zod_1.z.coerce.number().int().min(1).max(20).optional().default(20),
|
|
31
32
|
});
|
|
32
|
-
exports.GetUserAvatarParamsSchema = zod_1.z.object({
|
|
33
|
-
id: zod_1.z.coerce.bigint(),
|
|
34
|
-
});
|
|
35
33
|
exports.CreateUserAvatarBodySchema = zod_1.z.object({
|
|
36
34
|
name: zod_1.z.string().max(64),
|
|
37
35
|
role: zod_1.z.string().max(200).optional(),
|
|
38
36
|
avatar: zod_1.z.string().max(2048),
|
|
39
37
|
referenceAvatar: zod_1.z.string().max(2048),
|
|
38
|
+
examplePoses: zod_1.z.array(zod_1.z.string().max(2048)).optional(),
|
|
40
39
|
appearance: zod_1.z.string().max(500),
|
|
40
|
+
style: images_1.ImageStyleSchema.optional(),
|
|
41
|
+
isPublic: zod_1.z.boolean().optional().default(false),
|
|
42
|
+
});
|
|
43
|
+
exports.UpdateUserAvatarParamsSchema = zod_1.z.object({
|
|
44
|
+
id: zod_1.z.coerce.bigint(),
|
|
45
|
+
});
|
|
46
|
+
exports.UpdateUserAvatarBodySchema = zod_1.z.object({
|
|
47
|
+
examplePoses: zod_1.z.array(zod_1.z.string().max(2048)).optional(),
|
|
48
|
+
isPublic: zod_1.z.boolean().optional(),
|
|
49
|
+
});
|
|
50
|
+
exports.DeleteUserAvatarParamsSchema = zod_1.z.object({
|
|
51
|
+
id: zod_1.z.coerce.bigint(),
|
|
41
52
|
});
|
|
42
53
|
exports.DeleteUserAvatarBodySchema = zod_1.z.object({});
|
|
43
54
|
exports.GetAttendanceQuerySchema = zod_1.z.object({});
|
|
@@ -60,6 +71,13 @@ exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
|
60
71
|
}),
|
|
61
72
|
locationId: zod_1.z.coerce.bigint().optional(),
|
|
62
73
|
});
|
|
74
|
+
exports.GetPublicAvatarsQuerySchema = zod_1.z.object({
|
|
75
|
+
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
76
|
+
limit: zod_1.z.coerce.number().int().min(1).max(20).optional().default(20),
|
|
77
|
+
});
|
|
78
|
+
exports.GetUserAvatarParamsSchema = zod_1.z.object({
|
|
79
|
+
id: zod_1.z.coerce.bigint(),
|
|
80
|
+
});
|
|
63
81
|
exports.FollowUserParamsSchema = zod_1.z.object({
|
|
64
82
|
userId: zod_1.z.coerce.bigint(),
|
|
65
83
|
});
|