@purpleschool/gptbot-tools 0.4.13 → 0.4.14-stage-2

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.
Files changed (73) hide show
  1. package/build/greetings/commands/greeting-settlement.command.d.ts +28 -0
  2. package/build/greetings/commands/greeting-settlement.command.js +18 -0
  3. package/build/greetings/commands/index.d.ts +1 -0
  4. package/build/greetings/commands/index.js +17 -0
  5. package/build/greetings/enums/greeting-kind.enum.d.ts +6 -0
  6. package/build/greetings/enums/greeting-kind.enum.js +10 -0
  7. package/build/greetings/enums/greeting-status.enum.d.ts +6 -0
  8. package/build/greetings/enums/greeting-status.enum.js +10 -0
  9. package/build/greetings/enums/index.d.ts +2 -0
  10. package/build/greetings/enums/index.js +18 -0
  11. package/build/greetings/index.d.ts +6 -0
  12. package/build/greetings/index.js +22 -0
  13. package/build/greetings/models/greeting-config.schema.d.ts +80 -0
  14. package/build/greetings/models/greeting-config.schema.js +35 -0
  15. package/build/greetings/models/greeting-input.schema.d.ts +64 -0
  16. package/build/greetings/models/greeting-input.schema.js +26 -0
  17. package/build/greetings/models/greeting-job.schema.d.ts +103 -0
  18. package/build/greetings/models/greeting-job.schema.js +24 -0
  19. package/build/greetings/models/greeting-owner.schema.d.ts +6 -0
  20. package/build/greetings/models/greeting-owner.schema.js +12 -0
  21. package/build/greetings/models/greeting-price-data.schema.d.ts +20 -0
  22. package/build/greetings/models/greeting-price-data.schema.js +21 -0
  23. package/build/greetings/models/greeting-result.schema.d.ts +35 -0
  24. package/build/greetings/models/greeting-result.schema.js +19 -0
  25. package/build/greetings/models/index.d.ts +6 -0
  26. package/build/greetings/models/index.js +22 -0
  27. package/build/greetings/requests/greeting-execute.schema.d.ts +67 -0
  28. package/build/greetings/requests/greeting-execute.schema.js +11 -0
  29. package/build/greetings/requests/greeting-favorite-request.schema.d.ts +9 -0
  30. package/build/greetings/requests/greeting-favorite-request.schema.js +8 -0
  31. package/build/greetings/requests/greeting-identity-request.schema.d.ts +13 -0
  32. package/build/greetings/requests/greeting-identity-request.schema.js +10 -0
  33. package/build/greetings/requests/greeting-internal-execute.schema.d.ts +151 -0
  34. package/build/greetings/requests/greeting-internal-execute.schema.js +9 -0
  35. package/build/greetings/requests/greeting-internal-price-request.schema.d.ts +69 -0
  36. package/build/greetings/requests/greeting-internal-price-request.schema.js +10 -0
  37. package/build/greetings/requests/greeting-job-request.schema.d.ts +8 -0
  38. package/build/greetings/requests/greeting-job-request.schema.js +9 -0
  39. package/build/greetings/requests/greeting-list-request.schema.d.ts +16 -0
  40. package/build/greetings/requests/greeting-list-request.schema.js +13 -0
  41. package/build/greetings/requests/greeting-operation-request.schema.d.ts +8 -0
  42. package/build/greetings/requests/greeting-operation-request.schema.js +9 -0
  43. package/build/greetings/requests/greeting-price-request.schema.d.ts +64 -0
  44. package/build/greetings/requests/greeting-price-request.schema.js +6 -0
  45. package/build/greetings/requests/greeting-reaction-request.schema.d.ts +10 -0
  46. package/build/greetings/requests/greeting-reaction-request.schema.js +9 -0
  47. package/build/greetings/requests/greeting-retry.schema.d.ts +7 -0
  48. package/build/greetings/requests/greeting-retry.schema.js +10 -0
  49. package/build/greetings/requests/greeting-title-request.schema.d.ts +9 -0
  50. package/build/greetings/requests/greeting-title-request.schema.js +8 -0
  51. package/build/greetings/requests/index.d.ts +12 -0
  52. package/build/greetings/requests/index.js +28 -0
  53. package/build/greetings/responses/greeting.responses.d.ts +627 -0
  54. package/build/greetings/responses/greeting.responses.js +15 -0
  55. package/build/greetings/responses/index.d.ts +1 -0
  56. package/build/greetings/responses/index.js +17 -0
  57. package/build/greetings/routes/greetings.amqp.routes.d.ts +14 -0
  58. package/build/greetings/routes/greetings.amqp.routes.js +17 -0
  59. package/build/greetings/routes/index.d.ts +1 -0
  60. package/build/greetings/routes/index.js +17 -0
  61. package/build/index.d.ts +3 -0
  62. package/build/index.js +3 -0
  63. package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
  64. package/build/tools/enums/tool-content-type.enum.js +1 -0
  65. package/build/tools/enums/tool-type.enum.d.ts +1 -0
  66. package/build/tools/enums/tool-type.enum.js +1 -0
  67. package/build/tools/models/global-tools-config.schema.d.ts +49 -0
  68. package/build/tools/models/global-tools-config.schema.js +2 -0
  69. package/build/tools/models/tools-with-configs.schema.d.ts +122 -0
  70. package/build/tools/models/tools-with-configs.schema.js +5 -0
  71. package/build/tools/queries/get-global-tools-config.query.d.ts +88 -0
  72. package/build/tools/queries/get-tools-with-configs.query.d.ts +112 -0
  73. package/package.json +1 -1
@@ -0,0 +1,627 @@
1
+ import { z } from 'zod';
2
+ export declare const GreetingJobResponseSchema: z.ZodObject<{
3
+ isSuccess: z.ZodBoolean;
4
+ data: z.ZodOptional<z.ZodType<{
5
+ uuid: string;
6
+ isFavorite: boolean;
7
+ title?: string | null | undefined;
8
+ reaction?: import("../..").USER_REACTION | null | undefined;
9
+ kind: import("..").GREETING_KIND;
10
+ modelId: string;
11
+ input: {
12
+ modelId: string;
13
+ prompt: string;
14
+ locale: "en" | "es" | "ru";
15
+ kind: import("..").GREETING_KIND.TEXT;
16
+ settings: {
17
+ lengthId: string;
18
+ formatId: string;
19
+ };
20
+ } | {
21
+ modelId: string;
22
+ prompt: string;
23
+ locale: "en" | "es" | "ru";
24
+ kind: import("..").GREETING_KIND.SONG;
25
+ settings: {
26
+ styleId?: string | undefined;
27
+ customStyle?: string | undefined;
28
+ voice: "f" | "m";
29
+ };
30
+ } | {
31
+ modelId: string;
32
+ prompt: string;
33
+ locale: "en" | "es" | "ru";
34
+ kind: import("..").GREETING_KIND.VIDEO;
35
+ settings: {
36
+ styleId?: string | undefined;
37
+ customStyle?: string | undefined;
38
+ imageUrls?: string[] | undefined;
39
+ duration: number;
40
+ };
41
+ } | {
42
+ modelId: string;
43
+ prompt: string;
44
+ locale: "en" | "es" | "ru";
45
+ kind: import("..").GREETING_KIND.IMAGE;
46
+ settings: {
47
+ styleId?: string | undefined;
48
+ customStyle?: string | undefined;
49
+ imageUrls?: string[] | undefined;
50
+ aspectRatio: string;
51
+ };
52
+ };
53
+ status: import("..").GREETING_STATUS;
54
+ currentAttemptId: string;
55
+ price: number;
56
+ result: {
57
+ kind: import("..").GREETING_KIND.TEXT;
58
+ text: string;
59
+ } | {
60
+ kind: import("..").GREETING_KIND.SONG;
61
+ tracks: {
62
+ id: string;
63
+ title: string;
64
+ audioUrl: string;
65
+ imageUrl?: string | undefined;
66
+ duration?: number | undefined;
67
+ lyrics?: string | undefined;
68
+ }[];
69
+ } | {
70
+ kind: import("..").GREETING_KIND.VIDEO;
71
+ video: {
72
+ url: string;
73
+ };
74
+ } | {
75
+ kind: import("..").GREETING_KIND.IMAGE;
76
+ image: {
77
+ url: string;
78
+ };
79
+ } | null;
80
+ error: string | null;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ }, unknown, z.core.$ZodTypeInternals<{
84
+ uuid: string;
85
+ isFavorite: boolean;
86
+ title?: string | null | undefined;
87
+ reaction?: import("../..").USER_REACTION | null | undefined;
88
+ kind: import("..").GREETING_KIND;
89
+ modelId: string;
90
+ input: {
91
+ modelId: string;
92
+ prompt: string;
93
+ locale: "en" | "es" | "ru";
94
+ kind: import("..").GREETING_KIND.TEXT;
95
+ settings: {
96
+ lengthId: string;
97
+ formatId: string;
98
+ };
99
+ } | {
100
+ modelId: string;
101
+ prompt: string;
102
+ locale: "en" | "es" | "ru";
103
+ kind: import("..").GREETING_KIND.SONG;
104
+ settings: {
105
+ styleId?: string | undefined;
106
+ customStyle?: string | undefined;
107
+ voice: "f" | "m";
108
+ };
109
+ } | {
110
+ modelId: string;
111
+ prompt: string;
112
+ locale: "en" | "es" | "ru";
113
+ kind: import("..").GREETING_KIND.VIDEO;
114
+ settings: {
115
+ styleId?: string | undefined;
116
+ customStyle?: string | undefined;
117
+ imageUrls?: string[] | undefined;
118
+ duration: number;
119
+ };
120
+ } | {
121
+ modelId: string;
122
+ prompt: string;
123
+ locale: "en" | "es" | "ru";
124
+ kind: import("..").GREETING_KIND.IMAGE;
125
+ settings: {
126
+ styleId?: string | undefined;
127
+ customStyle?: string | undefined;
128
+ imageUrls?: string[] | undefined;
129
+ aspectRatio: string;
130
+ };
131
+ };
132
+ status: import("..").GREETING_STATUS;
133
+ currentAttemptId: string;
134
+ price: number;
135
+ result: {
136
+ kind: import("..").GREETING_KIND.TEXT;
137
+ text: string;
138
+ } | {
139
+ kind: import("..").GREETING_KIND.SONG;
140
+ tracks: {
141
+ id: string;
142
+ title: string;
143
+ audioUrl: string;
144
+ imageUrl?: string | undefined;
145
+ duration?: number | undefined;
146
+ lyrics?: string | undefined;
147
+ }[];
148
+ } | {
149
+ kind: import("..").GREETING_KIND.VIDEO;
150
+ video: {
151
+ url: string;
152
+ };
153
+ } | {
154
+ kind: import("..").GREETING_KIND.IMAGE;
155
+ image: {
156
+ url: string;
157
+ };
158
+ } | null;
159
+ error: string | null;
160
+ createdAt: string;
161
+ updatedAt: string;
162
+ }, unknown>>>;
163
+ code: z.ZodOptional<z.ZodString>;
164
+ message: z.ZodOptional<z.ZodString>;
165
+ }, z.core.$strip>;
166
+ export declare const GreetingConfigResponseSchema: z.ZodObject<{
167
+ isSuccess: z.ZodBoolean;
168
+ data: z.ZodOptional<z.ZodType<{
169
+ models: {
170
+ uuid: string;
171
+ title: string;
172
+ description?: string | undefined;
173
+ kind: import("..").GREETING_KIND;
174
+ order: number;
175
+ sourceModelId: string;
176
+ sourceModelType: "IMAGE" | "SONG" | "TEXT" | "VIDEO";
177
+ durations: number[];
178
+ aspectRatios: string[];
179
+ defaultDuration: number | null;
180
+ defaultAspectRatio: string | null;
181
+ supportsReference: boolean;
182
+ maxAttachedImages: number;
183
+ maxPromptLength: number;
184
+ maxProviderPromptLength?: number | undefined;
185
+ }[];
186
+ textLengths: {
187
+ uuid: string;
188
+ title: string;
189
+ order: number;
190
+ }[];
191
+ textFormats: {
192
+ uuid: string;
193
+ title: string;
194
+ order: number;
195
+ }[];
196
+ musicStyles: {
197
+ uuid: string;
198
+ title: string;
199
+ order: number;
200
+ }[];
201
+ videoStyles: {
202
+ uuid: string;
203
+ title: string;
204
+ order: number;
205
+ }[];
206
+ imageStyles: {
207
+ uuid: string;
208
+ title: string;
209
+ order: number;
210
+ }[];
211
+ }, unknown, z.core.$ZodTypeInternals<{
212
+ models: {
213
+ uuid: string;
214
+ title: string;
215
+ description?: string | undefined;
216
+ kind: import("..").GREETING_KIND;
217
+ order: number;
218
+ sourceModelId: string;
219
+ sourceModelType: "IMAGE" | "SONG" | "TEXT" | "VIDEO";
220
+ durations: number[];
221
+ aspectRatios: string[];
222
+ defaultDuration: number | null;
223
+ defaultAspectRatio: string | null;
224
+ supportsReference: boolean;
225
+ maxAttachedImages: number;
226
+ maxPromptLength: number;
227
+ maxProviderPromptLength?: number | undefined;
228
+ }[];
229
+ textLengths: {
230
+ uuid: string;
231
+ title: string;
232
+ order: number;
233
+ }[];
234
+ textFormats: {
235
+ uuid: string;
236
+ title: string;
237
+ order: number;
238
+ }[];
239
+ musicStyles: {
240
+ uuid: string;
241
+ title: string;
242
+ order: number;
243
+ }[];
244
+ videoStyles: {
245
+ uuid: string;
246
+ title: string;
247
+ order: number;
248
+ }[];
249
+ imageStyles: {
250
+ uuid: string;
251
+ title: string;
252
+ order: number;
253
+ }[];
254
+ }, unknown>>>;
255
+ code: z.ZodOptional<z.ZodString>;
256
+ message: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>;
258
+ export declare const GreetingPriceDataResponseSchema: z.ZodObject<{
259
+ isSuccess: z.ZodBoolean;
260
+ data: z.ZodOptional<z.ZodType<{
261
+ kind: import("..").GREETING_KIND.TEXT;
262
+ modelPricing: {
263
+ inputPrice: number;
264
+ outputPrice: number;
265
+ };
266
+ effectivePromptLength: number;
267
+ calculationSnapshot: string;
268
+ } | {
269
+ kind: import("..").GREETING_KIND.SONG | import("..").GREETING_KIND.VIDEO | import("..").GREETING_KIND.IMAGE;
270
+ price: number;
271
+ calculationSnapshot: string;
272
+ }, unknown, z.core.$ZodTypeInternals<{
273
+ kind: import("..").GREETING_KIND.TEXT;
274
+ modelPricing: {
275
+ inputPrice: number;
276
+ outputPrice: number;
277
+ };
278
+ effectivePromptLength: number;
279
+ calculationSnapshot: string;
280
+ } | {
281
+ kind: import("..").GREETING_KIND.SONG | import("..").GREETING_KIND.VIDEO | import("..").GREETING_KIND.IMAGE;
282
+ price: number;
283
+ calculationSnapshot: string;
284
+ }, unknown>>>;
285
+ code: z.ZodOptional<z.ZodString>;
286
+ message: z.ZodOptional<z.ZodString>;
287
+ }, z.core.$strip>;
288
+ export declare const GreetingListResponseSchema: z.ZodObject<{
289
+ isSuccess: z.ZodBoolean;
290
+ data: z.ZodOptional<z.ZodType<{
291
+ items: {
292
+ uuid: string;
293
+ isFavorite: boolean;
294
+ title?: string | null | undefined;
295
+ reaction?: import("../..").USER_REACTION | null | undefined;
296
+ kind: import("..").GREETING_KIND;
297
+ modelId: string;
298
+ input: {
299
+ modelId: string;
300
+ prompt: string;
301
+ locale: "en" | "es" | "ru";
302
+ kind: import("..").GREETING_KIND.TEXT;
303
+ settings: {
304
+ lengthId: string;
305
+ formatId: string;
306
+ };
307
+ } | {
308
+ modelId: string;
309
+ prompt: string;
310
+ locale: "en" | "es" | "ru";
311
+ kind: import("..").GREETING_KIND.SONG;
312
+ settings: {
313
+ styleId?: string | undefined;
314
+ customStyle?: string | undefined;
315
+ voice: "f" | "m";
316
+ };
317
+ } | {
318
+ modelId: string;
319
+ prompt: string;
320
+ locale: "en" | "es" | "ru";
321
+ kind: import("..").GREETING_KIND.VIDEO;
322
+ settings: {
323
+ styleId?: string | undefined;
324
+ customStyle?: string | undefined;
325
+ imageUrls?: string[] | undefined;
326
+ duration: number;
327
+ };
328
+ } | {
329
+ modelId: string;
330
+ prompt: string;
331
+ locale: "en" | "es" | "ru";
332
+ kind: import("..").GREETING_KIND.IMAGE;
333
+ settings: {
334
+ styleId?: string | undefined;
335
+ customStyle?: string | undefined;
336
+ imageUrls?: string[] | undefined;
337
+ aspectRatio: string;
338
+ };
339
+ };
340
+ status: import("..").GREETING_STATUS;
341
+ currentAttemptId: string;
342
+ price: number;
343
+ result: {
344
+ kind: import("..").GREETING_KIND.TEXT;
345
+ text: string;
346
+ } | {
347
+ kind: import("..").GREETING_KIND.SONG;
348
+ tracks: {
349
+ id: string;
350
+ title: string;
351
+ audioUrl: string;
352
+ imageUrl?: string | undefined;
353
+ duration?: number | undefined;
354
+ lyrics?: string | undefined;
355
+ }[];
356
+ } | {
357
+ kind: import("..").GREETING_KIND.VIDEO;
358
+ video: {
359
+ url: string;
360
+ };
361
+ } | {
362
+ kind: import("..").GREETING_KIND.IMAGE;
363
+ image: {
364
+ url: string;
365
+ };
366
+ } | null;
367
+ error: string | null;
368
+ createdAt: string;
369
+ updatedAt: string;
370
+ }[];
371
+ nextCursor: string | null;
372
+ }, unknown, z.core.$ZodTypeInternals<{
373
+ items: {
374
+ uuid: string;
375
+ isFavorite: boolean;
376
+ title?: string | null | undefined;
377
+ reaction?: import("../..").USER_REACTION | null | undefined;
378
+ kind: import("..").GREETING_KIND;
379
+ modelId: string;
380
+ input: {
381
+ modelId: string;
382
+ prompt: string;
383
+ locale: "en" | "es" | "ru";
384
+ kind: import("..").GREETING_KIND.TEXT;
385
+ settings: {
386
+ lengthId: string;
387
+ formatId: string;
388
+ };
389
+ } | {
390
+ modelId: string;
391
+ prompt: string;
392
+ locale: "en" | "es" | "ru";
393
+ kind: import("..").GREETING_KIND.SONG;
394
+ settings: {
395
+ styleId?: string | undefined;
396
+ customStyle?: string | undefined;
397
+ voice: "f" | "m";
398
+ };
399
+ } | {
400
+ modelId: string;
401
+ prompt: string;
402
+ locale: "en" | "es" | "ru";
403
+ kind: import("..").GREETING_KIND.VIDEO;
404
+ settings: {
405
+ styleId?: string | undefined;
406
+ customStyle?: string | undefined;
407
+ imageUrls?: string[] | undefined;
408
+ duration: number;
409
+ };
410
+ } | {
411
+ modelId: string;
412
+ prompt: string;
413
+ locale: "en" | "es" | "ru";
414
+ kind: import("..").GREETING_KIND.IMAGE;
415
+ settings: {
416
+ styleId?: string | undefined;
417
+ customStyle?: string | undefined;
418
+ imageUrls?: string[] | undefined;
419
+ aspectRatio: string;
420
+ };
421
+ };
422
+ status: import("..").GREETING_STATUS;
423
+ currentAttemptId: string;
424
+ price: number;
425
+ result: {
426
+ kind: import("..").GREETING_KIND.TEXT;
427
+ text: string;
428
+ } | {
429
+ kind: import("..").GREETING_KIND.SONG;
430
+ tracks: {
431
+ id: string;
432
+ title: string;
433
+ audioUrl: string;
434
+ imageUrl?: string | undefined;
435
+ duration?: number | undefined;
436
+ lyrics?: string | undefined;
437
+ }[];
438
+ } | {
439
+ kind: import("..").GREETING_KIND.VIDEO;
440
+ video: {
441
+ url: string;
442
+ };
443
+ } | {
444
+ kind: import("..").GREETING_KIND.IMAGE;
445
+ image: {
446
+ url: string;
447
+ };
448
+ } | null;
449
+ error: string | null;
450
+ createdAt: string;
451
+ updatedAt: string;
452
+ }[];
453
+ nextCursor: string | null;
454
+ }, unknown>>>;
455
+ code: z.ZodOptional<z.ZodString>;
456
+ message: z.ZodOptional<z.ZodString>;
457
+ }, z.core.$strip>;
458
+ export declare const GreetingOperationResponseSchema: z.ZodObject<{
459
+ isSuccess: z.ZodBoolean;
460
+ data: z.ZodOptional<z.ZodType<{
461
+ uuid: string;
462
+ isFavorite: boolean;
463
+ title?: string | null | undefined;
464
+ reaction?: import("../..").USER_REACTION | null | undefined;
465
+ kind: import("..").GREETING_KIND;
466
+ modelId: string;
467
+ input: {
468
+ modelId: string;
469
+ prompt: string;
470
+ locale: "en" | "es" | "ru";
471
+ kind: import("..").GREETING_KIND.TEXT;
472
+ settings: {
473
+ lengthId: string;
474
+ formatId: string;
475
+ };
476
+ } | {
477
+ modelId: string;
478
+ prompt: string;
479
+ locale: "en" | "es" | "ru";
480
+ kind: import("..").GREETING_KIND.SONG;
481
+ settings: {
482
+ styleId?: string | undefined;
483
+ customStyle?: string | undefined;
484
+ voice: "f" | "m";
485
+ };
486
+ } | {
487
+ modelId: string;
488
+ prompt: string;
489
+ locale: "en" | "es" | "ru";
490
+ kind: import("..").GREETING_KIND.VIDEO;
491
+ settings: {
492
+ styleId?: string | undefined;
493
+ customStyle?: string | undefined;
494
+ imageUrls?: string[] | undefined;
495
+ duration: number;
496
+ };
497
+ } | {
498
+ modelId: string;
499
+ prompt: string;
500
+ locale: "en" | "es" | "ru";
501
+ kind: import("..").GREETING_KIND.IMAGE;
502
+ settings: {
503
+ styleId?: string | undefined;
504
+ customStyle?: string | undefined;
505
+ imageUrls?: string[] | undefined;
506
+ aspectRatio: string;
507
+ };
508
+ };
509
+ status: import("..").GREETING_STATUS;
510
+ currentAttemptId: string;
511
+ price: number;
512
+ result: {
513
+ kind: import("..").GREETING_KIND.TEXT;
514
+ text: string;
515
+ } | {
516
+ kind: import("..").GREETING_KIND.SONG;
517
+ tracks: {
518
+ id: string;
519
+ title: string;
520
+ audioUrl: string;
521
+ imageUrl?: string | undefined;
522
+ duration?: number | undefined;
523
+ lyrics?: string | undefined;
524
+ }[];
525
+ } | {
526
+ kind: import("..").GREETING_KIND.VIDEO;
527
+ video: {
528
+ url: string;
529
+ };
530
+ } | {
531
+ kind: import("..").GREETING_KIND.IMAGE;
532
+ image: {
533
+ url: string;
534
+ };
535
+ } | null;
536
+ error: string | null;
537
+ createdAt: string;
538
+ updatedAt: string;
539
+ } | null, unknown, z.core.$ZodTypeInternals<{
540
+ uuid: string;
541
+ isFavorite: boolean;
542
+ title?: string | null | undefined;
543
+ reaction?: import("../..").USER_REACTION | null | undefined;
544
+ kind: import("..").GREETING_KIND;
545
+ modelId: string;
546
+ input: {
547
+ modelId: string;
548
+ prompt: string;
549
+ locale: "en" | "es" | "ru";
550
+ kind: import("..").GREETING_KIND.TEXT;
551
+ settings: {
552
+ lengthId: string;
553
+ formatId: string;
554
+ };
555
+ } | {
556
+ modelId: string;
557
+ prompt: string;
558
+ locale: "en" | "es" | "ru";
559
+ kind: import("..").GREETING_KIND.SONG;
560
+ settings: {
561
+ styleId?: string | undefined;
562
+ customStyle?: string | undefined;
563
+ voice: "f" | "m";
564
+ };
565
+ } | {
566
+ modelId: string;
567
+ prompt: string;
568
+ locale: "en" | "es" | "ru";
569
+ kind: import("..").GREETING_KIND.VIDEO;
570
+ settings: {
571
+ styleId?: string | undefined;
572
+ customStyle?: string | undefined;
573
+ imageUrls?: string[] | undefined;
574
+ duration: number;
575
+ };
576
+ } | {
577
+ modelId: string;
578
+ prompt: string;
579
+ locale: "en" | "es" | "ru";
580
+ kind: import("..").GREETING_KIND.IMAGE;
581
+ settings: {
582
+ styleId?: string | undefined;
583
+ customStyle?: string | undefined;
584
+ imageUrls?: string[] | undefined;
585
+ aspectRatio: string;
586
+ };
587
+ };
588
+ status: import("..").GREETING_STATUS;
589
+ currentAttemptId: string;
590
+ price: number;
591
+ result: {
592
+ kind: import("..").GREETING_KIND.TEXT;
593
+ text: string;
594
+ } | {
595
+ kind: import("..").GREETING_KIND.SONG;
596
+ tracks: {
597
+ id: string;
598
+ title: string;
599
+ audioUrl: string;
600
+ imageUrl?: string | undefined;
601
+ duration?: number | undefined;
602
+ lyrics?: string | undefined;
603
+ }[];
604
+ } | {
605
+ kind: import("..").GREETING_KIND.VIDEO;
606
+ video: {
607
+ url: string;
608
+ };
609
+ } | {
610
+ kind: import("..").GREETING_KIND.IMAGE;
611
+ image: {
612
+ url: string;
613
+ };
614
+ } | null;
615
+ error: string | null;
616
+ createdAt: string;
617
+ updatedAt: string;
618
+ } | null, unknown>>>;
619
+ code: z.ZodOptional<z.ZodString>;
620
+ message: z.ZodOptional<z.ZodString>;
621
+ }, z.core.$strip>;
622
+ export declare const GreetingDeleteResponseSchema: z.ZodObject<{
623
+ isSuccess: z.ZodBoolean;
624
+ data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
625
+ code: z.ZodOptional<z.ZodString>;
626
+ message: z.ZodOptional<z.ZodString>;
627
+ }, z.core.$strip>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GreetingDeleteResponseSchema = exports.GreetingOperationResponseSchema = exports.GreetingListResponseSchema = exports.GreetingPriceDataResponseSchema = exports.GreetingConfigResponseSchema = exports.GreetingJobResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const models_1 = require("../models");
7
+ exports.GreetingJobResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.GreetingJobSchema);
8
+ exports.GreetingConfigResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.GreetingConfigSchema);
9
+ exports.GreetingPriceDataResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.GreetingPriceDataSchema);
10
+ exports.GreetingListResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.object({
11
+ items: zod_1.z.array(models_1.GreetingJobSchema),
12
+ nextCursor: zod_1.z.string().nullable(),
13
+ }));
14
+ exports.GreetingOperationResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.GreetingJobSchema.nullable());
15
+ exports.GreetingDeleteResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.boolean());
@@ -0,0 +1 @@
1
+ export * from './greeting.responses';
@@ -0,0 +1,17 @@
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("./greeting.responses"), exports);
@@ -0,0 +1,14 @@
1
+ export declare const GREETINGS_AMQP_ROUTES: {
2
+ readonly CONFIG: 'tools.greetings.config.rpc';
3
+ readonly GET_PRICE: 'tools.greetings.get-price-calculation-data.rpc';
4
+ readonly EXECUTE: 'tools.greetings.execute.rpc';
5
+ readonly GET_JOB: 'tools.greetings.jobs.get.rpc';
6
+ readonly LIST_JOBS: 'tools.greetings.jobs.list.rpc';
7
+ readonly RETRY: 'tools.greetings.jobs.retry.rpc';
8
+ readonly SOFT_DELETE: 'tools.greetings.jobs.soft-delete.rpc';
9
+ readonly SET_FAVORITE: 'tools.greetings.jobs.set-favorite.rpc';
10
+ readonly SET_TITLE: 'tools.greetings.jobs.set-title.rpc';
11
+ readonly SET_REACTION: 'tools.greetings.jobs.set-reaction.rpc';
12
+ readonly GET_OPERATION: 'tools.greetings.operations.get.rpc';
13
+ readonly SETTLE_ATTEMPT: 'tools.greetings.attempts.settle.rpc';
14
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GREETINGS_AMQP_ROUTES = void 0;
4
+ exports.GREETINGS_AMQP_ROUTES = {
5
+ CONFIG: 'tools.greetings.config.rpc',
6
+ GET_PRICE: 'tools.greetings.get-price-calculation-data.rpc',
7
+ EXECUTE: 'tools.greetings.execute.rpc',
8
+ GET_JOB: 'tools.greetings.jobs.get.rpc',
9
+ LIST_JOBS: 'tools.greetings.jobs.list.rpc',
10
+ RETRY: 'tools.greetings.jobs.retry.rpc',
11
+ SOFT_DELETE: 'tools.greetings.jobs.soft-delete.rpc',
12
+ SET_FAVORITE: 'tools.greetings.jobs.set-favorite.rpc',
13
+ SET_TITLE: 'tools.greetings.jobs.set-title.rpc',
14
+ SET_REACTION: 'tools.greetings.jobs.set-reaction.rpc',
15
+ GET_OPERATION: 'tools.greetings.operations.get.rpc',
16
+ SETTLE_ATTEMPT: 'tools.greetings.attempts.settle.rpc',
17
+ };
@@ -0,0 +1 @@
1
+ export * from './greetings.amqp.routes';