@purpleschool/gptbot-tools 0.2.69 → 0.2.72

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 (67) hide show
  1. package/build/music/commands/add-track-to-music-playlist.command.d.ts +199 -41
  2. package/build/music/commands/add-track-to-music-playlist.command.js +1 -1
  3. package/build/music/commands/create-music-playlist.command.d.ts +198 -40
  4. package/build/music/commands/edit-music.command.d.ts +12 -0
  5. package/build/music/commands/generate-music.command.d.ts +18 -2
  6. package/build/music/commands/generate-music.command.js +1 -1
  7. package/build/music/commands/get-music-price.command.d.ts +2 -0
  8. package/build/music/commands/get-music-price.command.js +2 -0
  9. package/build/music/commands/remove-track-from-music-playlist.command.d.ts +199 -41
  10. package/build/music/commands/remove-track-from-music-playlist.command.js +1 -1
  11. package/build/music/commands/retry-music-job.command.d.ts +12 -0
  12. package/build/music/commands/set-reaction-to-music-job.command.d.ts +12 -0
  13. package/build/music/commands/update-music-job-favorite.command.d.ts +12 -0
  14. package/build/music/commands/update-music-job-title.command.d.ts +12 -0
  15. package/build/music/commands/update-music-playlist.command.d.ts +198 -40
  16. package/build/music/commands/update-published-status-music-jobs.command.d.ts +12 -0
  17. package/build/music/enums/music-action-type.enum.d.ts +0 -2
  18. package/build/music/enums/music-action-type.enum.js +0 -2
  19. package/build/music/enums/music-audio-action-type.enum.d.ts +0 -2
  20. package/build/music/enums/music-audio-action-type.enum.js +0 -2
  21. package/build/music/models/music-job.schema.d.ts +10 -0
  22. package/build/music/models/music-job.schema.js +14 -15
  23. package/build/music/models/music-playlist.schema.d.ts +99 -20
  24. package/build/music/models/music-playlist.schema.js +3 -3
  25. package/build/music/queries/find-music-job-by-id.query.d.ts +12 -0
  26. package/build/music/queries/find-music-jobs.query.d.ts +12 -0
  27. package/build/music/queries/find-music-playlists.query.d.ts +227 -56
  28. package/build/music/queries/find-music-playlists.query.js +9 -1
  29. package/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
  30. package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
  31. package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
  32. package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
  33. package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
  34. package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
  35. package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
  36. package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
  37. package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
  38. package/build/spell-corrector/constants/index.d.ts +1 -0
  39. package/build/spell-corrector/constants/index.js +17 -0
  40. package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
  41. package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
  42. package/build/spell-corrector/enums/index.d.ts +1 -0
  43. package/build/spell-corrector/enums/index.js +17 -0
  44. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
  45. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
  46. package/build/spell-corrector/index.d.ts +2 -0
  47. package/build/spell-corrector/index.js +2 -0
  48. package/build/spell-corrector/models/index.d.ts +2 -0
  49. package/build/spell-corrector/models/index.js +2 -0
  50. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
  51. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
  52. package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
  53. package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
  54. package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
  55. package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
  56. package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
  57. package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
  58. package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
  59. package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
  60. package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
  61. package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
  62. package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
  63. package/build/tools/models/global-tools-config.schema.d.ts +5 -0
  64. package/build/tools/models/tools-with-configs.schema.d.ts +10 -0
  65. package/build/tools/queries/get-global-tools-config.query.d.ts +10 -0
  66. package/build/tools/queries/get-tools-with-configs.query.d.ts +10 -0
  67. package/package.json +1 -1
@@ -17,11 +17,39 @@ export declare namespace FindSpellCorrectorJobsQuery {
17
17
  data: z.ZodOptional<z.ZodType<{
18
18
  data: {
19
19
  uuid: string;
20
+ requestId: string | null;
21
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
22
+ sourceDocument: {
23
+ uuid: string;
24
+ url: string;
25
+ name: string;
26
+ mimeType: string;
27
+ type: string;
28
+ size: number;
29
+ extension: string;
30
+ } | null;
31
+ statistics: {
32
+ total: number;
33
+ spelling: number;
34
+ punctuation: number;
35
+ } | null;
36
+ outputDocument: {
37
+ uuid: string;
38
+ url: string;
39
+ name: string;
40
+ mimeType: string;
41
+ type: string;
42
+ size: number;
43
+ extension: string;
44
+ } | null;
20
45
  userId: string | null;
21
46
  unregisteredUserId: string | null;
22
47
  userInput: string;
23
48
  aiOutput: string | null;
24
49
  aiTokenUsage: number | null;
50
+ wordsChanged: number | null;
51
+ lettersChanged: number | null;
52
+ editOperations: number | null;
25
53
  price: number;
26
54
  status: JOB_STATUS;
27
55
  title: string;
@@ -40,11 +68,39 @@ export declare namespace FindSpellCorrectorJobsQuery {
40
68
  }, unknown, z.core.$ZodTypeInternals<{
41
69
  data: {
42
70
  uuid: string;
71
+ requestId: string | null;
72
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
73
+ sourceDocument: {
74
+ uuid: string;
75
+ url: string;
76
+ name: string;
77
+ mimeType: string;
78
+ type: string;
79
+ size: number;
80
+ extension: string;
81
+ } | null;
82
+ statistics: {
83
+ total: number;
84
+ spelling: number;
85
+ punctuation: number;
86
+ } | null;
87
+ outputDocument: {
88
+ uuid: string;
89
+ url: string;
90
+ name: string;
91
+ mimeType: string;
92
+ type: string;
93
+ size: number;
94
+ extension: string;
95
+ } | null;
43
96
  userId: string | null;
44
97
  unregisteredUserId: string | null;
45
98
  userInput: string;
46
99
  aiOutput: string | null;
47
100
  aiTokenUsage: number | null;
101
+ wordsChanged: number | null;
102
+ lettersChanged: number | null;
103
+ editOperations: number | null;
48
104
  price: number;
49
105
  status: JOB_STATUS;
50
106
  title: string;
@@ -23,6 +23,10 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
23
23
  };
24
24
  };
25
25
  price: number;
26
+ inputPrice: number | null;
27
+ outputPrice: number | null;
28
+ freeMaxPromptLength: number | null;
29
+ maxPromptLength: number | null;
26
30
  aiModel: string;
27
31
  status: import("../..").TOOL_MODEL_STATUS;
28
32
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -31,6 +35,7 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
31
35
  updatedAt: Date;
32
36
  }[];
33
37
  maxSymbols: number;
38
+ freeMaxSymbols: number;
34
39
  }, unknown, z.core.$ZodTypeInternals<{
35
40
  models: {
36
41
  uuid: string;
@@ -48,6 +53,10 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
48
53
  };
49
54
  };
50
55
  price: number;
56
+ inputPrice: number | null;
57
+ outputPrice: number | null;
58
+ freeMaxPromptLength: number | null;
59
+ maxPromptLength: number | null;
51
60
  aiModel: string;
52
61
  status: import("../..").TOOL_MODEL_STATUS;
53
62
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -56,6 +65,7 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
56
65
  updatedAt: Date;
57
66
  }[];
58
67
  maxSymbols: number;
68
+ freeMaxSymbols: number;
59
69
  }, unknown>>>;
60
70
  code: z.ZodOptional<z.ZodString>;
61
71
  message: z.ZodOptional<z.ZodString>;
@@ -813,6 +813,10 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
813
813
  }, z.core.$strip>;
814
814
  }, z.core.$strip>;
815
815
  price: z.ZodNumber;
816
+ inputPrice: z.ZodNullable<z.ZodNumber>;
817
+ outputPrice: z.ZodNullable<z.ZodNumber>;
818
+ freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
819
+ maxPromptLength: z.ZodNullable<z.ZodNumber>;
816
820
  aiModel: z.ZodString;
817
821
  status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
818
822
  reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
@@ -821,6 +825,7 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
821
825
  updatedAt: z.ZodDate;
822
826
  }, z.core.$strip>>;
823
827
  maxSymbols: z.ZodNumber;
828
+ freeMaxSymbols: z.ZodNumber;
824
829
  }, z.core.$strip>;
825
830
  DIAGRAMS: z.ZodObject<{
826
831
  models: z.ZodArray<z.ZodObject<{
@@ -981,6 +981,10 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
981
981
  }, z.core.$strip>;
982
982
  }, z.core.$strip>;
983
983
  price: z.ZodNumber;
984
+ inputPrice: z.ZodNullable<z.ZodNumber>;
985
+ outputPrice: z.ZodNullable<z.ZodNumber>;
986
+ freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
987
+ maxPromptLength: z.ZodNullable<z.ZodNumber>;
984
988
  aiModel: z.ZodString;
985
989
  status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
986
990
  reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
@@ -989,6 +993,7 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
989
993
  updatedAt: z.ZodDate;
990
994
  }, z.core.$strip>>;
991
995
  maxSymbols: z.ZodNumber;
996
+ freeMaxSymbols: z.ZodNumber;
992
997
  }, z.core.$strip>;
993
998
  }, z.core.$strip>, z.ZodObject<{
994
999
  uuid: z.ZodString;
@@ -2186,6 +2191,10 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
2186
2191
  }, z.core.$strip>;
2187
2192
  }, z.core.$strip>;
2188
2193
  price: z.ZodNumber;
2194
+ inputPrice: z.ZodNullable<z.ZodNumber>;
2195
+ outputPrice: z.ZodNullable<z.ZodNumber>;
2196
+ freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
2197
+ maxPromptLength: z.ZodNullable<z.ZodNumber>;
2189
2198
  aiModel: z.ZodString;
2190
2199
  status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
2191
2200
  reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
@@ -2194,6 +2203,7 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
2194
2203
  updatedAt: z.ZodDate;
2195
2204
  }, z.core.$strip>>;
2196
2205
  maxSymbols: z.ZodNumber;
2206
+ freeMaxSymbols: z.ZodNumber;
2197
2207
  }, z.core.$strip>;
2198
2208
  }, z.core.$strip>, z.ZodObject<{
2199
2209
  uuid: z.ZodString;
@@ -820,6 +820,10 @@ export declare namespace GetGlobalToolsConfigQuery {
820
820
  };
821
821
  };
822
822
  price: number;
823
+ inputPrice: number | null;
824
+ outputPrice: number | null;
825
+ freeMaxPromptLength: number | null;
826
+ maxPromptLength: number | null;
823
827
  aiModel: string;
824
828
  status: import("../..").TOOL_MODEL_STATUS;
825
829
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -828,6 +832,7 @@ export declare namespace GetGlobalToolsConfigQuery {
828
832
  updatedAt: Date;
829
833
  }[];
830
834
  maxSymbols: number;
835
+ freeMaxSymbols: number;
831
836
  };
832
837
  DIAGRAMS: {
833
838
  models: {
@@ -1808,6 +1813,10 @@ export declare namespace GetGlobalToolsConfigQuery {
1808
1813
  };
1809
1814
  };
1810
1815
  price: number;
1816
+ inputPrice: number | null;
1817
+ outputPrice: number | null;
1818
+ freeMaxPromptLength: number | null;
1819
+ maxPromptLength: number | null;
1811
1820
  aiModel: string;
1812
1821
  status: import("../..").TOOL_MODEL_STATUS;
1813
1822
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -1816,6 +1825,7 @@ export declare namespace GetGlobalToolsConfigQuery {
1816
1825
  updatedAt: Date;
1817
1826
  }[];
1818
1827
  maxSymbols: number;
1828
+ freeMaxSymbols: number;
1819
1829
  };
1820
1830
  DIAGRAMS: {
1821
1831
  models: {
@@ -987,6 +987,10 @@ export declare namespace GetToolsWithConfigsQuery {
987
987
  };
988
988
  };
989
989
  price: number;
990
+ inputPrice: number | null;
991
+ outputPrice: number | null;
992
+ freeMaxPromptLength: number | null;
993
+ maxPromptLength: number | null;
990
994
  aiModel: string;
991
995
  status: import("../..").TOOL_MODEL_STATUS;
992
996
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -995,6 +999,7 @@ export declare namespace GetToolsWithConfigsQuery {
995
999
  updatedAt: Date;
996
1000
  }[];
997
1001
  maxSymbols: number;
1002
+ freeMaxSymbols: number;
998
1003
  };
999
1004
  } | {
1000
1005
  uuid: string;
@@ -2190,6 +2195,10 @@ export declare namespace GetToolsWithConfigsQuery {
2190
2195
  };
2191
2196
  };
2192
2197
  price: number;
2198
+ inputPrice: number | null;
2199
+ outputPrice: number | null;
2200
+ freeMaxPromptLength: number | null;
2201
+ maxPromptLength: number | null;
2193
2202
  aiModel: string;
2194
2203
  status: import("../..").TOOL_MODEL_STATUS;
2195
2204
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -2198,6 +2207,7 @@ export declare namespace GetToolsWithConfigsQuery {
2198
2207
  updatedAt: Date;
2199
2208
  }[];
2200
2209
  maxSymbols: number;
2210
+ freeMaxSymbols: number;
2201
2211
  };
2202
2212
  } | {
2203
2213
  uuid: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.69",
3
+ "version": "0.2.72",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [