@purpleschool/gptbot 0.15.63 → 0.15.64

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 (36) hide show
  1. package/build/commands/community/create-community-post.command.d.ts +4 -0
  2. package/build/commands/community/get-all-community-posts-by-criteria.command.d.ts +4 -0
  3. package/build/commands/community/get-community-post-by-uuid.command.d.ts +4 -0
  4. package/build/commands/community/get-my-community-posts-by-criteria.command.d.ts +4 -0
  5. package/build/commands/community/get-my-favorite-community-posts.command.d.ts +4 -0
  6. package/build/commands/community/get-my-likes-community-posts.command.d.ts +4 -0
  7. package/build/commands/community/set-like-community-post.command.d.ts +4 -0
  8. package/build/commands/tools/music/add-track-to-music-playlist.command.d.ts +90 -23
  9. package/build/commands/tools/music/add-track-to-music-playlist.command.js +1 -1
  10. package/build/commands/tools/music/create-music-playlist.command.d.ts +89 -22
  11. package/build/commands/tools/music/edit-music.command.d.ts +6 -0
  12. package/build/commands/tools/music/find-music-job-by-uuid.command.d.ts +6 -0
  13. package/build/commands/tools/music/find-music-jobs.command.d.ts +6 -0
  14. package/build/commands/tools/music/find-music-playlists.command.d.ts +98 -22
  15. package/build/commands/tools/music/find-music-playlists.command.js +8 -0
  16. package/build/commands/tools/music/generate-music.command.d.ts +6 -0
  17. package/build/commands/tools/music/remove-track-from-music-playlist.command.d.ts +90 -23
  18. package/build/commands/tools/music/remove-track-from-music-playlist.command.js +1 -1
  19. package/build/commands/tools/music/retry-music-job.command.d.ts +6 -0
  20. package/build/commands/tools/music/set-reaction-to-music-job.command.d.ts +6 -0
  21. package/build/commands/tools/music/update-music-job-favorite.command.d.ts +6 -0
  22. package/build/commands/tools/music/update-music-job-title.command.d.ts +6 -0
  23. package/build/commands/tools/music/update-music-playlist.command.d.ts +89 -22
  24. package/build/constants/tool-music/enums/music-action-type.enum.d.ts +0 -2
  25. package/build/constants/tool-music/enums/music-action-type.enum.js +0 -2
  26. package/build/constants/tool-music/enums/music-audio-action-type.enum.d.ts +0 -2
  27. package/build/constants/tool-music/enums/music-audio-action-type.enum.js +0 -2
  28. package/build/constants/tool-music/enums/music-generation-action-type.enum.d.ts +2 -1
  29. package/build/constants/tool-music/enums/music-generation-action-type.enum.js +1 -0
  30. package/build/models/community/community-post-media-data.schema.d.ts +8 -0
  31. package/build/models/community/community-post.schema.d.ts +12 -0
  32. package/build/models/tools/music/music-job.schema.d.ts +10 -0
  33. package/build/models/tools/music/music-job.schema.js +20 -19
  34. package/build/models/tools/music/music-playlist.schema.d.ts +89 -22
  35. package/build/models/tools/music/music-playlist.schema.js +3 -3
  36. package/package.json +1 -1
@@ -2,32 +2,99 @@ import { z } from 'zod';
2
2
  export declare const MusicPlaylistSchema: z.ZodObject<{
3
3
  uuid: z.ZodString;
4
4
  title: z.ZodString;
5
- tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
6
  uuid: z.ZodString;
7
- title: z.ZodString;
8
- audioId: z.ZodString;
9
- audioUrl: z.ZodString;
10
- audioFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11
- uuid: z.ZodString;
12
- originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- mimeType: z.ZodString;
14
- url: z.ZodString;
15
- duration: z.ZodNullable<z.ZodNumber>;
16
- }, z.core.$strip>>>;
17
- coverUrl: z.ZodString;
18
- prompt: z.ZodNullable<z.ZodString>;
19
- fullLyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- tags: z.ZodString;
21
- duration: z.ZodNumber;
22
- isPublished: z.ZodOptional<z.ZodBoolean>;
23
- postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- waveformPeaks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
25
- genJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- editorJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
8
+ error: z.ZodNullable<z.ZodString>;
9
+ isFavorite: z.ZodBoolean;
27
10
  createdAt: z.ZodDate;
28
11
  updatedAt: z.ZodDate;
12
+ actionType: z.ZodUnion<readonly [z.ZodEnum<typeof import("../../..").MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof import("../../..").MUSIC_AUDIO_ACTION_TYPE>]>;
13
+ lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ title: z.ZodString;
15
+ prompt: z.ZodString;
16
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
17
+ tracks: z.ZodArray<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ title: z.ZodString;
20
+ audioId: z.ZodString;
21
+ audioUrl: z.ZodString;
22
+ audioFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23
+ uuid: z.ZodString;
24
+ originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ mimeType: z.ZodString;
26
+ url: z.ZodString;
27
+ duration: z.ZodNullable<z.ZodNumber>;
28
+ }, z.core.$strip>>>;
29
+ coverUrl: z.ZodString;
30
+ prompt: z.ZodNullable<z.ZodString>;
31
+ fullLyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ tags: z.ZodString;
33
+ duration: z.ZodNumber;
34
+ isPublished: z.ZodOptional<z.ZodBoolean>;
35
+ postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ waveformPeaks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
37
+ genJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ editorJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ createdAt: z.ZodDate;
40
+ updatedAt: z.ZodDate;
41
+ }, z.core.$strip>>;
42
+ params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
43
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.SIMPLE>;
44
+ prompt: z.ZodString;
45
+ style: z.ZodString;
46
+ vocalGender: z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL>;
49
+ prompt: z.ZodString;
50
+ style: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM>;
53
+ prompt: z.ZodString;
54
+ style: z.ZodString;
55
+ vocalGender: z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
58
+ style: z.ZodString;
59
+ }, z.core.$strip>], "mode">, z.ZodObject<{
60
+ prompt: z.ZodString;
61
+ style: z.ZodOptional<z.ZodString>;
62
+ structure: z.ZodEnum<typeof import("../../..").MUSIC_LYRICS_STRUCTURE>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ audioId: z.ZodString;
65
+ style: z.ZodString;
66
+ prompt: z.ZodOptional<z.ZodString>;
67
+ title: z.ZodOptional<z.ZodString>;
68
+ negativeTags: z.ZodOptional<z.ZodString>;
69
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
70
+ instrumental: z.ZodOptional<z.ZodBoolean>;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ audioId: z.ZodString;
73
+ continueAt: z.ZodNumber;
74
+ prompt: z.ZodString;
75
+ style: z.ZodOptional<z.ZodString>;
76
+ title: z.ZodOptional<z.ZodString>;
77
+ negativeTags: z.ZodOptional<z.ZodString>;
78
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
79
+ instrumental: z.ZodOptional<z.ZodBoolean>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ audioId: z.ZodString;
82
+ style: z.ZodString;
83
+ title: z.ZodOptional<z.ZodString>;
84
+ negativeTags: z.ZodOptional<z.ZodString>;
85
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ audioId: z.ZodString;
88
+ prompt: z.ZodString;
89
+ style: z.ZodString;
90
+ title: z.ZodOptional<z.ZodString>;
91
+ negativeTags: z.ZodOptional<z.ZodString>;
92
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
93
+ }, z.core.$strip>]>;
94
+ externalId: z.ZodNullable<z.ZodString>;
95
+ modelId: z.ZodString;
29
96
  }, z.core.$strip>>>;
30
- trackCount: z.ZodNumber;
97
+ jobCount: z.ZodNumber;
31
98
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
99
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
100
  createdAt: z.ZodDate;
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MusicPlaylistSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const music_track_schema_1 = require("./music-track.schema");
5
+ const music_job_schema_1 = require("./music-job.schema");
6
6
  exports.MusicPlaylistSchema = zod_1.z.object({
7
7
  uuid: zod_1.z.string().uuid(),
8
8
  title: zod_1.z.string(),
9
- tracks: zod_1.z.array(music_track_schema_1.MusicTrackSchema).optional(),
10
- trackCount: zod_1.z.number(),
9
+ jobs: zod_1.z.array(music_job_schema_1.MusicJobSchema).optional(),
10
+ jobCount: zod_1.z.number(),
11
11
  userId: zod_1.z.string().uuid().nullable().optional(),
12
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
13
  createdAt: zod_1.z.date(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.15.63",
3
+ "version": "0.15.64",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",