@purpleschool/gptbot-tools 0.2.69 → 0.2.72-stage2

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 (228) hide show
  1. package/build/ai-proxy/routes/ai-proxy.routes.d.ts +1 -0
  2. package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
  3. package/build/index.d.ts +3 -0
  4. package/build/index.js +3 -0
  5. package/build/music/commands/add-track-to-music-playlist.command.d.ts +199 -41
  6. package/build/music/commands/add-track-to-music-playlist.command.js +1 -1
  7. package/build/music/commands/create-music-playlist.command.d.ts +198 -40
  8. package/build/music/commands/edit-music.command.d.ts +12 -0
  9. package/build/music/commands/generate-music.command.d.ts +18 -2
  10. package/build/music/commands/generate-music.command.js +1 -1
  11. package/build/music/commands/get-music-price.command.d.ts +2 -0
  12. package/build/music/commands/get-music-price.command.js +2 -0
  13. package/build/music/commands/remove-track-from-music-playlist.command.d.ts +199 -41
  14. package/build/music/commands/remove-track-from-music-playlist.command.js +1 -1
  15. package/build/music/commands/retry-music-job.command.d.ts +12 -0
  16. package/build/music/commands/set-reaction-to-music-job.command.d.ts +12 -0
  17. package/build/music/commands/update-music-job-favorite.command.d.ts +12 -0
  18. package/build/music/commands/update-music-job-title.command.d.ts +12 -0
  19. package/build/music/commands/update-music-playlist.command.d.ts +198 -40
  20. package/build/music/commands/update-published-status-music-jobs.command.d.ts +12 -0
  21. package/build/music/enums/music-action-type.enum.d.ts +0 -2
  22. package/build/music/enums/music-action-type.enum.js +0 -2
  23. package/build/music/enums/music-audio-action-type.enum.d.ts +0 -2
  24. package/build/music/enums/music-audio-action-type.enum.js +0 -2
  25. package/build/music/models/music-job.schema.d.ts +10 -0
  26. package/build/music/models/music-job.schema.js +14 -15
  27. package/build/music/models/music-playlist.schema.d.ts +99 -20
  28. package/build/music/models/music-playlist.schema.js +3 -3
  29. package/build/music/queries/find-music-job-by-id.query.d.ts +12 -0
  30. package/build/music/queries/find-music-jobs.query.d.ts +12 -0
  31. package/build/music/queries/find-music-playlists.query.d.ts +227 -56
  32. package/build/music/queries/find-music-playlists.query.js +9 -1
  33. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
  34. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
  35. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
  36. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
  37. package/build/photo-sessions/commands/admin/index.d.ts +3 -0
  38. package/build/photo-sessions/commands/admin/index.js +19 -0
  39. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
  40. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
  41. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
  42. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
  43. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
  44. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
  45. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +74 -0
  46. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +28 -0
  47. package/build/photo-sessions/commands/index.d.ts +10 -0
  48. package/build/photo-sessions/commands/index.js +26 -0
  49. package/build/photo-sessions/commands/photo-sessions.command.d.ts +272 -0
  50. package/build/photo-sessions/commands/photo-sessions.command.js +37 -0
  51. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +179 -0
  52. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +17 -0
  53. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +181 -0
  54. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
  55. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +179 -0
  56. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
  57. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +217 -0
  58. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
  59. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +184 -0
  60. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
  61. package/build/photo-sessions/enums/index.d.ts +3 -0
  62. package/build/photo-sessions/enums/index.js +19 -0
  63. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +6 -0
  64. package/build/photo-sessions/enums/photo-session-group-status.enum.js +10 -0
  65. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  66. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  67. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  68. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  69. package/build/photo-sessions/index.d.ts +5 -0
  70. package/build/photo-sessions/index.js +21 -0
  71. package/build/photo-sessions/models/index.d.ts +5 -0
  72. package/build/photo-sessions/models/index.js +21 -0
  73. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  74. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  75. package/build/photo-sessions/models/photo-session-group.schema.d.ts +113 -0
  76. package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
  77. package/build/photo-sessions/models/photo-session-job.schema.d.ts +159 -0
  78. package/build/photo-sessions/models/photo-session-job.schema.js +55 -0
  79. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  80. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  81. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  82. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  83. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  84. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  85. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  86. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  87. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +216 -0
  88. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
  89. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +235 -0
  90. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
  91. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  92. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  93. package/build/photo-sessions/queries/index.d.ts +5 -0
  94. package/build/photo-sessions/queries/index.js +21 -0
  95. package/build/photo-sessions/routes/index.d.ts +2 -0
  96. package/build/photo-sessions/routes/index.js +18 -0
  97. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  98. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  99. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  100. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  101. package/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
  102. package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
  103. package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
  104. package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
  105. package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
  106. package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
  107. package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
  108. package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
  109. package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
  110. package/build/spell-corrector/constants/index.d.ts +1 -0
  111. package/build/spell-corrector/constants/index.js +17 -0
  112. package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
  113. package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
  114. package/build/spell-corrector/enums/index.d.ts +1 -0
  115. package/build/spell-corrector/enums/index.js +17 -0
  116. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
  117. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
  118. package/build/spell-corrector/index.d.ts +2 -0
  119. package/build/spell-corrector/index.js +2 -0
  120. package/build/spell-corrector/models/index.d.ts +2 -0
  121. package/build/spell-corrector/models/index.js +2 -0
  122. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
  123. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
  124. package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
  125. package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
  126. package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
  127. package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
  128. package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
  129. package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
  130. package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
  131. package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
  132. package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
  133. package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
  134. package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
  135. package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
  136. package/build/tools/enums/tool-content-type.enum.js +1 -0
  137. package/build/tools/enums/tool-type.enum.d.ts +1 -0
  138. package/build/tools/enums/tool-type.enum.js +1 -0
  139. package/build/tools/events/tool-job-complete.event.d.ts +1 -0
  140. package/build/tools/events/tool-job-failed.event.d.ts +1 -0
  141. package/build/tools/models/global-tools-config.schema.d.ts +81 -0
  142. package/build/tools/models/global-tools-config.schema.js +2 -0
  143. package/build/tools/models/tool-job.schema.d.ts +1 -0
  144. package/build/tools/models/tool-job.schema.js +1 -0
  145. package/build/tools/models/tools-with-configs.schema.d.ts +32 -0
  146. package/build/tools/queries/get-global-tools-config.query.d.ts +162 -0
  147. package/build/tools/queries/get-tools-with-configs.query.d.ts +32 -0
  148. package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
  149. package/build/tts/commands/create-voice-clone.command.js +21 -0
  150. package/build/tts/commands/create-voice-design.command.d.ts +40 -0
  151. package/build/tts/commands/create-voice-design.command.js +20 -0
  152. package/build/tts/commands/delete-voice.command.d.ts +17 -0
  153. package/build/tts/commands/delete-voice.command.js +14 -0
  154. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  155. package/build/tts/commands/download-tts-job.command.js +19 -0
  156. package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
  157. package/build/tts/commands/improve-tts-text.command.js +16 -0
  158. package/build/tts/commands/index.d.ts +7 -0
  159. package/build/tts/commands/index.js +7 -0
  160. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  161. package/build/tts/commands/retry-tts-job.command.js +2 -0
  162. package/build/tts/commands/select-voice-design.command.d.ts +77 -0
  163. package/build/tts/commands/select-voice-design.command.js +17 -0
  164. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  165. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  166. package/build/tts/commands/tts.command.d.ts +35 -3
  167. package/build/tts/commands/tts.command.js +4 -1
  168. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  169. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  170. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  171. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  172. package/build/tts/commands/update-voice.command.d.ts +78 -0
  173. package/build/tts/commands/update-voice.command.js +18 -0
  174. package/build/tts/enums/index.d.ts +7 -0
  175. package/build/tts/enums/index.js +7 -0
  176. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  177. package/build/tts/enums/tts-download-format.enum.js +9 -0
  178. package/build/tts/enums/voice-category.enum.d.ts +19 -0
  179. package/build/tts/enums/voice-category.enum.js +23 -0
  180. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  181. package/build/tts/enums/voice-gender.enum.js +8 -0
  182. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  183. package/build/tts/enums/voice-source.enum.js +9 -0
  184. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  185. package/build/tts/enums/voice-status.enum.js +9 -0
  186. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  187. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  188. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  189. package/build/tts/enums/voice-tag.enum.js +24 -0
  190. package/build/tts/models/index.d.ts +7 -0
  191. package/build/tts/models/index.js +7 -0
  192. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  193. package/build/tts/models/tts-config.schema.d.ts +11 -0
  194. package/build/tts/models/tts-config.schema.js +5 -0
  195. package/build/tts/models/tts-job.schema.d.ts +34 -2
  196. package/build/tts/models/tts-job.schema.js +22 -2
  197. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  198. package/build/tts/models/tts-model.schema.d.ts +1 -0
  199. package/build/tts/models/tts-model.schema.js +1 -0
  200. package/build/tts/models/voice-category.schema.d.ts +7 -0
  201. package/build/tts/models/voice-category.schema.js +9 -0
  202. package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
  203. package/build/tts/models/voice-design-draft.schema.js +13 -0
  204. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  205. package/build/tts/models/voice-design-sample.schema.js +8 -0
  206. package/build/tts/models/voice-gender.schema.d.ts +7 -0
  207. package/build/tts/models/voice-gender.schema.js +9 -0
  208. package/build/tts/models/voice-source.schema.d.ts +7 -0
  209. package/build/tts/models/voice-source.schema.js +9 -0
  210. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  211. package/build/tts/models/voice-tag.schema.js +11 -0
  212. package/build/tts/models/voice.schema.d.ts +34 -0
  213. package/build/tts/models/voice.schema.js +30 -0
  214. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  215. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  216. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  217. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  218. package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
  219. package/build/tts/queries/find-voice-by-id.query.js +17 -0
  220. package/build/tts/queries/find-voices.query.d.ts +122 -0
  221. package/build/tts/queries/find-voices.query.js +25 -0
  222. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  223. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  224. package/build/tts/queries/index.d.ts +2 -0
  225. package/build/tts/queries/index.js +2 -0
  226. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  227. package/build/tts/routes/tts.amqp.routes.js +9 -0
  228. package/package.json +1 -1
@@ -3,77 +3,248 @@ export declare namespace FindMusicPlaylistsQuery {
3
3
  const RequestSchema: z.ZodObject<{
4
4
  userId: z.ZodOptional<z.ZodString>;
5
5
  unregisteredUserId: z.ZodOptional<z.ZodString>;
6
+ title: z.ZodOptional<z.ZodString>;
7
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
8
+ offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
6
9
  }, z.core.$strip>;
7
10
  type Request = z.infer<typeof RequestSchema>;
8
11
  const ResponseSchema: z.ZodObject<{
9
12
  isSuccess: z.ZodBoolean;
10
13
  data: z.ZodOptional<z.ZodType<{
11
- uuid: string;
12
- title: string;
13
- tracks?: {
14
+ data: {
14
15
  uuid: string;
15
16
  title: string;
16
- audioId: string;
17
- audioUrl: string;
18
- audioFile?: {
17
+ jobs?: {
19
18
  uuid: string;
20
- url: string;
21
- mimeType: string;
22
- duration: number | null;
23
- originalName?: string | null | undefined;
24
- } | null | undefined;
25
- coverUrl: string;
26
- prompt: string | null;
27
- fullLyrics?: string | null | undefined;
28
- tags: string;
29
- duration: number;
30
- waveformPeaks: number[];
31
- isPublished?: boolean | undefined;
32
- postId?: string | null | undefined;
33
- genJobId?: string | null | undefined;
34
- editorJobId?: string | null | undefined;
19
+ prompt: string;
20
+ reaction: import("../..").USER_REACTION | null;
21
+ dislikeReason: string | null;
22
+ externalId: string | null;
23
+ title: string;
24
+ status: import("../..").JOB_STATUS;
25
+ error: string | null;
26
+ modelId: string;
27
+ price: number;
28
+ params: {
29
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE;
30
+ prompt: string;
31
+ style: string;
32
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
33
+ } | {
34
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL;
35
+ prompt: string;
36
+ style: string;
37
+ } | {
38
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM;
39
+ prompt: string;
40
+ style: string;
41
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
42
+ } | {
43
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
44
+ style: string;
45
+ } | {
46
+ prompt: string;
47
+ style?: string | undefined;
48
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
49
+ } | {
50
+ audioId: string;
51
+ uploadUrl: string;
52
+ style: string;
53
+ prompt?: string | undefined;
54
+ title?: string | undefined;
55
+ negativeTags?: string | undefined;
56
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
57
+ instrumental?: boolean | undefined;
58
+ } | {
59
+ audioId: string;
60
+ uploadUrl: string;
61
+ continueAt: number;
62
+ prompt: string;
63
+ style?: string | undefined;
64
+ title?: string | undefined;
65
+ negativeTags?: string | undefined;
66
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
67
+ instrumental?: boolean | undefined;
68
+ } | {
69
+ audioId: string;
70
+ uploadUrl: string;
71
+ style: string;
72
+ title?: string | undefined;
73
+ negativeTags?: string | undefined;
74
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
75
+ } | {
76
+ audioId: string;
77
+ uploadUrl: string;
78
+ prompt: string;
79
+ style: string;
80
+ title?: string | undefined;
81
+ negativeTags?: string | undefined;
82
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
83
+ };
84
+ tracks: {
85
+ uuid: string;
86
+ title: string;
87
+ audioId: string;
88
+ audioUrl: string;
89
+ audioFile?: {
90
+ uuid: string;
91
+ url: string;
92
+ mimeType: string;
93
+ duration: number | null;
94
+ originalName?: string | null | undefined;
95
+ } | null | undefined;
96
+ coverUrl: string;
97
+ prompt: string | null;
98
+ fullLyrics?: string | null | undefined;
99
+ tags: string;
100
+ duration: number;
101
+ waveformPeaks: number[];
102
+ isPublished?: boolean | undefined;
103
+ postId?: string | null | undefined;
104
+ genJobId?: string | null | undefined;
105
+ editorJobId?: string | null | undefined;
106
+ createdAt: Date;
107
+ updatedAt: Date;
108
+ }[];
109
+ attempts: any[];
110
+ userId?: string | null | undefined;
111
+ unregisteredUserId?: string | null | undefined;
112
+ isDeleted: boolean;
113
+ isFavorite: boolean;
114
+ tokenReservationId?: string | null | undefined;
115
+ createdAt: Date;
116
+ completedAt?: Date | null | undefined;
117
+ updatedAt: Date;
118
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
119
+ lyrics?: string | null | undefined;
120
+ }[] | undefined;
121
+ jobCount: number;
122
+ userId?: string | null | undefined;
123
+ unregisteredUserId?: string | null | undefined;
35
124
  createdAt: Date;
36
125
  updatedAt: Date;
37
- }[] | undefined;
38
- trackCount: number;
39
- userId?: string | null | undefined;
40
- unregisteredUserId?: string | null | undefined;
41
- createdAt: Date;
42
- updatedAt: Date;
43
- }[], unknown, z.core.$ZodTypeInternals<{
44
- uuid: string;
45
- title: string;
46
- tracks?: {
126
+ }[];
127
+ page: number;
128
+ totalPages: number;
129
+ total: number;
130
+ }, unknown, z.core.$ZodTypeInternals<{
131
+ data: {
47
132
  uuid: string;
48
133
  title: string;
49
- audioId: string;
50
- audioUrl: string;
51
- audioFile?: {
134
+ jobs?: {
52
135
  uuid: string;
53
- url: string;
54
- mimeType: string;
55
- duration: number | null;
56
- originalName?: string | null | undefined;
57
- } | null | undefined;
58
- coverUrl: string;
59
- prompt: string | null;
60
- fullLyrics?: string | null | undefined;
61
- tags: string;
62
- duration: number;
63
- waveformPeaks: number[];
64
- isPublished?: boolean | undefined;
65
- postId?: string | null | undefined;
66
- genJobId?: string | null | undefined;
67
- editorJobId?: string | null | undefined;
136
+ prompt: string;
137
+ reaction: import("../..").USER_REACTION | null;
138
+ dislikeReason: string | null;
139
+ externalId: string | null;
140
+ title: string;
141
+ status: import("../..").JOB_STATUS;
142
+ error: string | null;
143
+ modelId: string;
144
+ price: number;
145
+ params: {
146
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE;
147
+ prompt: string;
148
+ style: string;
149
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
150
+ } | {
151
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL;
152
+ prompt: string;
153
+ style: string;
154
+ } | {
155
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM;
156
+ prompt: string;
157
+ style: string;
158
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
159
+ } | {
160
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
161
+ style: string;
162
+ } | {
163
+ prompt: string;
164
+ style?: string | undefined;
165
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
166
+ } | {
167
+ audioId: string;
168
+ uploadUrl: string;
169
+ style: string;
170
+ prompt?: string | undefined;
171
+ title?: string | undefined;
172
+ negativeTags?: string | undefined;
173
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
174
+ instrumental?: boolean | undefined;
175
+ } | {
176
+ audioId: string;
177
+ uploadUrl: string;
178
+ continueAt: number;
179
+ prompt: string;
180
+ style?: string | undefined;
181
+ title?: string | undefined;
182
+ negativeTags?: string | undefined;
183
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
184
+ instrumental?: boolean | undefined;
185
+ } | {
186
+ audioId: string;
187
+ uploadUrl: string;
188
+ style: string;
189
+ title?: string | undefined;
190
+ negativeTags?: string | undefined;
191
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
192
+ } | {
193
+ audioId: string;
194
+ uploadUrl: string;
195
+ prompt: string;
196
+ style: string;
197
+ title?: string | undefined;
198
+ negativeTags?: string | undefined;
199
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
200
+ };
201
+ tracks: {
202
+ uuid: string;
203
+ title: string;
204
+ audioId: string;
205
+ audioUrl: string;
206
+ audioFile?: {
207
+ uuid: string;
208
+ url: string;
209
+ mimeType: string;
210
+ duration: number | null;
211
+ originalName?: string | null | undefined;
212
+ } | null | undefined;
213
+ coverUrl: string;
214
+ prompt: string | null;
215
+ fullLyrics?: string | null | undefined;
216
+ tags: string;
217
+ duration: number;
218
+ waveformPeaks: number[];
219
+ isPublished?: boolean | undefined;
220
+ postId?: string | null | undefined;
221
+ genJobId?: string | null | undefined;
222
+ editorJobId?: string | null | undefined;
223
+ createdAt: Date;
224
+ updatedAt: Date;
225
+ }[];
226
+ attempts: any[];
227
+ userId?: string | null | undefined;
228
+ unregisteredUserId?: string | null | undefined;
229
+ isDeleted: boolean;
230
+ isFavorite: boolean;
231
+ tokenReservationId?: string | null | undefined;
232
+ createdAt: Date;
233
+ completedAt?: Date | null | undefined;
234
+ updatedAt: Date;
235
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
236
+ lyrics?: string | null | undefined;
237
+ }[] | undefined;
238
+ jobCount: number;
239
+ userId?: string | null | undefined;
240
+ unregisteredUserId?: string | null | undefined;
68
241
  createdAt: Date;
69
242
  updatedAt: Date;
70
- }[] | undefined;
71
- trackCount: number;
72
- userId?: string | null | undefined;
73
- unregisteredUserId?: string | null | undefined;
74
- createdAt: Date;
75
- updatedAt: Date;
76
- }[], unknown>>>;
243
+ }[];
244
+ page: number;
245
+ totalPages: number;
246
+ total: number;
247
+ }, unknown>>>;
77
248
  code: z.ZodOptional<z.ZodString>;
78
249
  message: z.ZodOptional<z.ZodString>;
79
250
  }, z.core.$strip>;
@@ -10,6 +10,9 @@ var FindMusicPlaylistsQuery;
10
10
  .object({
11
11
  userId: zod_1.z.string().uuid().optional(),
12
12
  unregisteredUserId: zod_1.z.string().uuid().optional(),
13
+ title: zod_1.z.string().optional(),
14
+ limit: zod_1.z.coerce.number().min(1).optional(),
15
+ offset: zod_1.z.coerce.number().min(0).default(0).optional(),
13
16
  })
14
17
  .refine((data) => {
15
18
  return Boolean(data.userId) !== Boolean(data.unregisteredUserId);
@@ -17,5 +20,10 @@ var FindMusicPlaylistsQuery;
17
20
  message: 'At least userId or unregisteredUserId must be present',
18
21
  path: ['userId', 'unregisteredUserId'],
19
22
  });
20
- FindMusicPlaylistsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.array(music_playlist_schema_1.MusicPlaylistSchema));
23
+ FindMusicPlaylistsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
24
+ data: zod_1.z.array(music_playlist_schema_1.MusicPlaylistSchema),
25
+ page: zod_1.z.number(),
26
+ totalPages: zod_1.z.number(),
27
+ total: zod_1.z.number(),
28
+ }));
21
29
  })(FindMusicPlaylistsQuery || (exports.FindMusicPlaylistsQuery = FindMusicPlaylistsQuery = {}));
@@ -0,0 +1,58 @@
1
+ import { z } from 'zod';
2
+ export declare const CreatePhotoSessionStyleReferenceSchema: z.ZodObject<{
3
+ photoUrl: z.ZodString;
4
+ description: z.ZodOptional<z.ZodString>;
5
+ order: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ export declare namespace CreatePhotoSessionStyleCommand {
8
+ const RequestSchema: z.ZodObject<{
9
+ code: z.ZodString;
10
+ title: z.ZodString;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ references: z.ZodArray<z.ZodObject<{
13
+ photoUrl: z.ZodString;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ order: z.ZodNumber;
16
+ }, z.core.$strip>>;
17
+ }, z.core.$strip>;
18
+ type Request = z.infer<typeof RequestSchema>;
19
+ const ResponseSchema: z.ZodObject<{
20
+ isSuccess: z.ZodBoolean;
21
+ data: z.ZodOptional<z.ZodType<{
22
+ uuid: string;
23
+ code: string;
24
+ title: string;
25
+ description?: string | null | undefined;
26
+ references: {
27
+ uuid: string;
28
+ styleId: string;
29
+ photoUrl: string;
30
+ description?: string | null | undefined;
31
+ order: number;
32
+ createdAt: Date;
33
+ updatedAt: Date;
34
+ }[];
35
+ createdAt: Date;
36
+ updatedAt: Date;
37
+ }, unknown, z.core.$ZodTypeInternals<{
38
+ uuid: string;
39
+ code: string;
40
+ title: string;
41
+ description?: string | null | undefined;
42
+ references: {
43
+ uuid: string;
44
+ styleId: string;
45
+ photoUrl: string;
46
+ description?: string | null | undefined;
47
+ order: number;
48
+ createdAt: Date;
49
+ updatedAt: Date;
50
+ }[];
51
+ createdAt: Date;
52
+ updatedAt: Date;
53
+ }, unknown>>>;
54
+ code: z.ZodOptional<z.ZodString>;
55
+ message: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strip>;
57
+ type Response = z.infer<typeof ResponseSchema>;
58
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePhotoSessionStyleCommand = exports.CreatePhotoSessionStyleReferenceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../../common/models/command-response.schema");
6
+ const models_1 = require("../../models");
7
+ exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
8
+ photoUrl: zod_1.z.string(),
9
+ description: zod_1.z.string().optional(),
10
+ order: zod_1.z.number().int().min(0).max(5),
11
+ });
12
+ var CreatePhotoSessionStyleCommand;
13
+ (function (CreatePhotoSessionStyleCommand) {
14
+ CreatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
15
+ code: zod_1.z.string(),
16
+ title: zod_1.z.string(),
17
+ description: zod_1.z.string().optional(),
18
+ references: zod_1.z.array(exports.CreatePhotoSessionStyleReferenceSchema).max(6),
19
+ });
20
+ CreatePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
21
+ })(CreatePhotoSessionStyleCommand || (exports.CreatePhotoSessionStyleCommand = CreatePhotoSessionStyleCommand = {}));
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeletePhotoSessionStyleCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Request = z.infer<typeof RequestSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ isSuccess: z.ZodBoolean;
9
+ data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
10
+ code: z.ZodOptional<z.ZodString>;
11
+ message: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ type Response = z.infer<typeof ResponseSchema>;
14
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePhotoSessionStyleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../../common/models/command-response.schema");
6
+ var DeletePhotoSessionStyleCommand;
7
+ (function (DeletePhotoSessionStyleCommand) {
8
+ DeletePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ DeletePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
12
+ })(DeletePhotoSessionStyleCommand || (exports.DeletePhotoSessionStyleCommand = DeletePhotoSessionStyleCommand = {}));
@@ -0,0 +1,3 @@
1
+ export * from './create-photo-session-style.command';
2
+ export * from './update-photo-session-style.command';
3
+ export * from './delete-photo-session-style.command';
@@ -0,0 +1,19 @@
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("./create-photo-session-style.command"), exports);
18
+ __exportStar(require("./update-photo-session-style.command"), exports);
19
+ __exportStar(require("./delete-photo-session-style.command"), exports);
@@ -0,0 +1,54 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdatePhotoSessionStyleCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ code: z.ZodOptional<z.ZodString>;
6
+ title: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
+ photoUrl: z.ZodString;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ order: z.ZodNumber;
12
+ }, z.core.$strip>>>;
13
+ }, z.core.$strip>;
14
+ type Request = z.infer<typeof RequestSchema>;
15
+ const ResponseSchema: z.ZodObject<{
16
+ isSuccess: z.ZodBoolean;
17
+ data: z.ZodOptional<z.ZodType<{
18
+ uuid: string;
19
+ code: string;
20
+ title: string;
21
+ description?: string | null | undefined;
22
+ references: {
23
+ uuid: string;
24
+ styleId: string;
25
+ photoUrl: string;
26
+ description?: string | null | undefined;
27
+ order: number;
28
+ createdAt: Date;
29
+ updatedAt: Date;
30
+ }[];
31
+ createdAt: Date;
32
+ updatedAt: Date;
33
+ }, unknown, z.core.$ZodTypeInternals<{
34
+ uuid: string;
35
+ code: string;
36
+ title: string;
37
+ description?: string | null | undefined;
38
+ references: {
39
+ uuid: string;
40
+ styleId: string;
41
+ photoUrl: string;
42
+ description?: string | null | undefined;
43
+ order: number;
44
+ createdAt: Date;
45
+ updatedAt: Date;
46
+ }[];
47
+ createdAt: Date;
48
+ updatedAt: Date;
49
+ }, unknown>>>;
50
+ code: z.ZodOptional<z.ZodString>;
51
+ message: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>;
53
+ type Response = z.infer<typeof ResponseSchema>;
54
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePhotoSessionStyleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../../common/models/command-response.schema");
6
+ const models_1 = require("../../models");
7
+ const create_photo_session_style_command_1 = require("./create-photo-session-style.command");
8
+ var UpdatePhotoSessionStyleCommand;
9
+ (function (UpdatePhotoSessionStyleCommand) {
10
+ UpdatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
11
+ uuid: zod_1.z.string().uuid(),
12
+ code: zod_1.z.string().optional(),
13
+ title: zod_1.z.string().optional(),
14
+ description: zod_1.z.string().nullable().optional(),
15
+ references: zod_1.z.array(create_photo_session_style_command_1.CreatePhotoSessionStyleReferenceSchema).max(6).optional(),
16
+ });
17
+ UpdatePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
18
+ })(UpdatePhotoSessionStyleCommand || (exports.UpdatePhotoSessionStyleCommand = UpdatePhotoSessionStyleCommand = {}));
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ export declare namespace DeleteAllPhotoSessionsJobsCommand {
4
+ const RequestSchema: z.ZodObject<{
5
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ scope: z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>;
8
+ }, z.core.$strip>;
9
+ type Request = z.infer<typeof RequestSchema>;
10
+ const ResponseSchema: z.ZodObject<{
11
+ isSuccess: z.ZodBoolean;
12
+ data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
13
+ code: z.ZodOptional<z.ZodString>;
14
+ message: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ type Response = z.infer<typeof ResponseSchema>;
17
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAllPhotoSessionsJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
7
+ var DeleteAllPhotoSessionsJobsCommand;
8
+ (function (DeleteAllPhotoSessionsJobsCommand) {
9
+ DeleteAllPhotoSessionsJobsCommand.RequestSchema = zod_1.z
10
+ .object({
11
+ userId: zod_1.z.string().uuid().nullable().optional(),
12
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional(),
14
+ })
15
+ .refine((data) => Boolean(data.userId) !== Boolean(data.unregisteredUserId), {
16
+ message: 'Exactly one owner identity is required',
17
+ });
18
+ DeleteAllPhotoSessionsJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
19
+ })(DeleteAllPhotoSessionsJobsCommand || (exports.DeleteAllPhotoSessionsJobsCommand = DeleteAllPhotoSessionsJobsCommand = {}));
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeletePhotoSessionsJobByUuidCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ uuid: z.ZodString;
7
+ }, z.core.$strip>;
8
+ type Request = z.infer<typeof RequestSchema>;
9
+ const ResponseSchema: z.ZodObject<{
10
+ isSuccess: z.ZodBoolean;
11
+ data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
12
+ code: z.ZodOptional<z.ZodString>;
13
+ message: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ type Response = z.infer<typeof ResponseSchema>;
16
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePhotoSessionsJobByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ var DeletePhotoSessionsJobByUuidCommand;
7
+ (function (DeletePhotoSessionsJobByUuidCommand) {
8
+ DeletePhotoSessionsJobByUuidCommand.RequestSchema = zod_1.z.object({
9
+ userId: zod_1.z.string().uuid().nullable().optional(),
10
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
11
+ uuid: zod_1.z.string(),
12
+ });
13
+ DeletePhotoSessionsJobByUuidCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
14
+ })(DeletePhotoSessionsJobByUuidCommand || (exports.DeletePhotoSessionsJobByUuidCommand = DeletePhotoSessionsJobByUuidCommand = {}));