@purpleschool/gptbot-tools 0.2.30-stage → 0.2.31-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.
- package/build/music/models/index.js +2 -0
- package/build/music/models/music-config-with-vendors.schema.js +10 -0
- package/build/music/models/music-model-with-vendor.schema.js +8 -0
- package/build/music/queries/get-music-config-with-vendors.query.js +10 -0
- package/build/music/queries/index.js +1 -0
- package/build/music/routes/music.amqp.routes.js +1 -0
- package/build/stt/models/index.js +2 -0
- package/build/stt/models/stt-config-with-vendors.schema.js +10 -0
- package/build/stt/models/stt-model-with-vendor.schema.js +8 -0
- package/build/stt/queries/get-stt-config-with-vendors.query.js +10 -0
- package/build/stt/queries/index.js +1 -0
- package/build/stt/routes/stt.amqp.routes.js +1 -0
- package/build/tts/models/index.js +2 -0
- package/build/tts/models/tts-config-with-vendors.schema.js +10 -0
- package/build/tts/models/tts-model-with-vendor.schema.js +8 -0
- package/build/tts/queries/get-tts-config-with-vendors.query.js +10 -0
- package/build/tts/queries/index.js +1 -0
- package/build/tts/routes/tts.amqp.routes.js +1 -0
- package/music/models/index.ts +2 -0
- package/music/models/music-config-with-vendors.schema.ts +10 -0
- package/music/models/music-model-with-vendor.schema.ts +8 -0
- package/music/queries/get-music-config-with-vendors.query.ts +11 -0
- package/music/queries/index.ts +1 -0
- package/music/routes/music.amqp.routes.ts +1 -0
- package/package.json +1 -1
- package/stt/models/index.ts +2 -0
- package/stt/models/stt-config-with-vendors.schema.ts +10 -0
- package/stt/models/stt-model-with-vendor.schema.ts +8 -0
- package/stt/queries/get-stt-config-with-vendors.query.ts +11 -0
- package/stt/queries/index.ts +1 -0
- package/stt/routes/stt.amqp.routes.ts +1 -0
- package/tts/models/index.ts +2 -0
- package/tts/models/tts-config-with-vendors.schema.ts +10 -0
- package/tts/models/tts-model-with-vendor.schema.ts +8 -0
- package/tts/queries/get-tts-config-with-vendors.query.ts +11 -0
- package/tts/queries/index.ts +1 -0
- package/tts/routes/tts.amqp.routes.ts +1 -0
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./music-config.schema"), exports);
|
|
18
|
+
__exportStar(require("./music-config-with-vendors.schema"), exports);
|
|
18
19
|
__exportStar(require("./music-job.schema"), exports);
|
|
19
20
|
__exportStar(require("./music-model.schema"), exports);
|
|
21
|
+
__exportStar(require("./music-model-with-vendor.schema"), exports);
|
|
20
22
|
__exportStar(require("./music-track.schema"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MusicConfigWithVendorsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ai_vendor_1 = require("../../ai-vendor");
|
|
6
|
+
const music_model_with_vendor_schema_1 = require("./music-model-with-vendor.schema");
|
|
7
|
+
exports.MusicConfigWithVendorsSchema = zod_1.z.object({
|
|
8
|
+
vendors: zod_1.z.array(ai_vendor_1.AiVendorSchema),
|
|
9
|
+
models: zod_1.z.array(music_model_with_vendor_schema_1.MusicModelWithVendorSchema),
|
|
10
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MusicModelWithVendorSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const music_model_schema_1 = require("./music-model.schema");
|
|
6
|
+
exports.MusicModelWithVendorSchema = music_model_schema_1.MusicModelSchema.extend({
|
|
7
|
+
vendorId: zod_1.z.string().uuid(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMusicConfigWithVendorsQuery = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
var GetMusicConfigWithVendorsQuery;
|
|
7
|
+
(function (GetMusicConfigWithVendorsQuery) {
|
|
8
|
+
GetMusicConfigWithVendorsQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
9
|
+
GetMusicConfigWithVendorsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.MusicConfigWithVendorsSchema);
|
|
10
|
+
})(GetMusicConfigWithVendorsQuery || (exports.GetMusicConfigWithVendorsQuery = GetMusicConfigWithVendorsQuery = {}));
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./find-music-job-by-id.query"), exports);
|
|
18
18
|
__exportStar(require("./find-music-jobs.query"), exports);
|
|
19
19
|
__exportStar(require("./get-music-config.query"), exports);
|
|
20
|
+
__exportStar(require("./get-music-config-with-vendors.query"), exports);
|
|
@@ -7,6 +7,7 @@ exports.MUSIC_AMQP_ROUTES = {
|
|
|
7
7
|
GENERATE_LYRICS: 'tools.music.generate-lyrics.rpc',
|
|
8
8
|
CONVERT_TO_WAV: 'tools.music.convert-to-wav.rpc',
|
|
9
9
|
CONFIG: 'tools.music.config.rpc',
|
|
10
|
+
CONFIG_WITH_VENDORS: 'tools.music.config-with-vendors.rpc',
|
|
10
11
|
GET_JOB: 'tools.music.jobs.get.rpc',
|
|
11
12
|
LIST_JOBS: 'tools.music.jobs.list.rpc',
|
|
12
13
|
SET_REACTION: 'tools.music.jobs.set-reaction.rpc',
|
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./stt-config.schema"), exports);
|
|
18
|
+
__exportStar(require("./stt-config-with-vendors.schema"), exports);
|
|
18
19
|
__exportStar(require("./stt-job.schema"), exports);
|
|
19
20
|
__exportStar(require("./stt-model.schema"), exports);
|
|
21
|
+
__exportStar(require("./stt-model-with-vendor.schema"), exports);
|
|
20
22
|
__exportStar(require("./stt-response.schema"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STTConfigWithVendorsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ai_vendor_1 = require("../../ai-vendor");
|
|
6
|
+
const stt_model_with_vendor_schema_1 = require("./stt-model-with-vendor.schema");
|
|
7
|
+
exports.STTConfigWithVendorsSchema = zod_1.z.object({
|
|
8
|
+
vendors: zod_1.z.array(ai_vendor_1.AiVendorSchema),
|
|
9
|
+
models: zod_1.z.array(stt_model_with_vendor_schema_1.STTModelWithVendorSchema),
|
|
10
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STTModelWithVendorSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const stt_model_schema_1 = require("./stt-model.schema");
|
|
6
|
+
exports.STTModelWithVendorSchema = stt_model_schema_1.STTModelSchema.extend({
|
|
7
|
+
vendorId: zod_1.z.string().uuid(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSTTConfigWithVendorsQuery = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
var GetSTTConfigWithVendorsQuery;
|
|
7
|
+
(function (GetSTTConfigWithVendorsQuery) {
|
|
8
|
+
GetSTTConfigWithVendorsQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
9
|
+
GetSTTConfigWithVendorsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.STTConfigWithVendorsSchema);
|
|
10
|
+
})(GetSTTConfigWithVendorsQuery || (exports.GetSTTConfigWithVendorsQuery = GetSTTConfigWithVendorsQuery = {}));
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./find-stt-job-by-uuid.query"), exports);
|
|
18
18
|
__exportStar(require("./find-stt-jobs.query"), exports);
|
|
19
19
|
__exportStar(require("./get-stt-config.query"), exports);
|
|
20
|
+
__exportStar(require("./get-stt-config-with-vendors.query"), exports);
|
|
@@ -5,6 +5,7 @@ exports.STT_AMQP_ROUTES = {
|
|
|
5
5
|
EXECUTE: 'tools.stt.execute.rpc',
|
|
6
6
|
GET_PRICE: 'tools.stt.get-price.rpc',
|
|
7
7
|
CONFIG: 'tools.stt.config.rpc',
|
|
8
|
+
CONFIG_WITH_VENDORS: 'tools.stt.config-with-vendors.rpc',
|
|
8
9
|
GET_JOB: 'tools.stt.jobs.get.rpc',
|
|
9
10
|
LIST_JOBS: 'tools.stt.jobs.list.rpc',
|
|
10
11
|
SET_REACTION: 'tools.stt.jobs.set_reaction.rpc',
|
|
@@ -15,5 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./tts-config.schema"), exports);
|
|
18
|
+
__exportStar(require("./tts-config-with-vendors.schema"), exports);
|
|
18
19
|
__exportStar(require("./tts-job.schema"), exports);
|
|
19
20
|
__exportStar(require("./tts-model.schema"), exports);
|
|
21
|
+
__exportStar(require("./tts-model-with-vendor.schema"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TTSConfigWithVendorsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ai_vendor_1 = require("../../ai-vendor");
|
|
6
|
+
const tts_model_with_vendor_schema_1 = require("./tts-model-with-vendor.schema");
|
|
7
|
+
exports.TTSConfigWithVendorsSchema = zod_1.z.object({
|
|
8
|
+
vendors: zod_1.z.array(ai_vendor_1.AiVendorSchema),
|
|
9
|
+
models: zod_1.z.array(tts_model_with_vendor_schema_1.TTSModelWithVendorSchema),
|
|
10
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TTSModelWithVendorSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const tts_model_schema_1 = require("./tts-model.schema");
|
|
6
|
+
exports.TTSModelWithVendorSchema = tts_model_schema_1.TTSModelSchema.extend({
|
|
7
|
+
vendorId: zod_1.z.string().uuid(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTTSConfigWithVendorsQuery = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
var GetTTSConfigWithVendorsQuery;
|
|
7
|
+
(function (GetTTSConfigWithVendorsQuery) {
|
|
8
|
+
GetTTSConfigWithVendorsQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
9
|
+
GetTTSConfigWithVendorsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.TTSConfigWithVendorsSchema);
|
|
10
|
+
})(GetTTSConfigWithVendorsQuery || (exports.GetTTSConfigWithVendorsQuery = GetTTSConfigWithVendorsQuery = {}));
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./find-tts-job-by-id.query"), exports);
|
|
18
18
|
__exportStar(require("./find-tts-jobs.query"), exports);
|
|
19
19
|
__exportStar(require("./get-tts-config.query"), exports);
|
|
20
|
+
__exportStar(require("./get-tts-config-with-vendors.query"), exports);
|
|
@@ -5,6 +5,7 @@ exports.TTS_AMQP_ROUTES = {
|
|
|
5
5
|
EXECUTE: 'tools.tts.execute.rpc',
|
|
6
6
|
GET_PRICE: 'tools.tts.get-price.rpc',
|
|
7
7
|
CONFIG: 'tools.tts.config.rpc',
|
|
8
|
+
CONFIG_WITH_VENDORS: 'tools.tts.config-with-vendors.rpc',
|
|
8
9
|
GET_JOB: 'tools.tts.jobs.get.rpc',
|
|
9
10
|
LIST_JOBS: 'tools.tts.jobs.list.rpc',
|
|
10
11
|
SET_REACTION: 'tools.tts.jobs.set-reaction.rpc',
|
package/music/models/index.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AiVendorSchema } from '../../ai-vendor';
|
|
3
|
+
import { MusicModelWithVendorSchema } from './music-model-with-vendor.schema';
|
|
4
|
+
|
|
5
|
+
export const MusicConfigWithVendorsSchema = z.object({
|
|
6
|
+
vendors: z.array(AiVendorSchema),
|
|
7
|
+
models: z.array(MusicModelWithVendorSchema),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export type MusicConfigWithVendors = z.infer<typeof MusicConfigWithVendorsSchema>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { MusicModelSchema } from './music-model.schema';
|
|
3
|
+
|
|
4
|
+
export const MusicModelWithVendorSchema = MusicModelSchema.extend({
|
|
5
|
+
vendorId: z.string().uuid(),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export type MusicModelWithVendor = z.infer<typeof MusicModelWithVendorSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ICommandResponseSchema, LocaleRequestSchema } from '../../common';
|
|
3
|
+
import { MusicConfigWithVendorsSchema } from '../models';
|
|
4
|
+
|
|
5
|
+
export namespace GetMusicConfigWithVendorsQuery {
|
|
6
|
+
export const RequestSchema = LocaleRequestSchema;
|
|
7
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
8
|
+
|
|
9
|
+
export const ResponseSchema = ICommandResponseSchema(MusicConfigWithVendorsSchema);
|
|
10
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
11
|
+
}
|
package/music/queries/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export const MUSIC_AMQP_ROUTES = {
|
|
|
4
4
|
GENERATE_LYRICS: 'tools.music.generate-lyrics.rpc',
|
|
5
5
|
CONVERT_TO_WAV: 'tools.music.convert-to-wav.rpc',
|
|
6
6
|
CONFIG: 'tools.music.config.rpc',
|
|
7
|
+
CONFIG_WITH_VENDORS: 'tools.music.config-with-vendors.rpc',
|
|
7
8
|
GET_JOB: 'tools.music.jobs.get.rpc',
|
|
8
9
|
LIST_JOBS: 'tools.music.jobs.list.rpc',
|
|
9
10
|
SET_REACTION: 'tools.music.jobs.set-reaction.rpc',
|
package/package.json
CHANGED
package/stt/models/index.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AiVendorSchema } from '../../ai-vendor';
|
|
3
|
+
import { STTModelWithVendorSchema } from './stt-model-with-vendor.schema';
|
|
4
|
+
|
|
5
|
+
export const STTConfigWithVendorsSchema = z.object({
|
|
6
|
+
vendors: z.array(AiVendorSchema),
|
|
7
|
+
models: z.array(STTModelWithVendorSchema),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export type STTConfigWithVendors = z.infer<typeof STTConfigWithVendorsSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ICommandResponseSchema, LocaleRequestSchema } from '../../common';
|
|
3
|
+
import { STTConfigWithVendorsSchema } from '../models';
|
|
4
|
+
|
|
5
|
+
export namespace GetSTTConfigWithVendorsQuery {
|
|
6
|
+
export const RequestSchema = LocaleRequestSchema;
|
|
7
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
8
|
+
|
|
9
|
+
export const ResponseSchema = ICommandResponseSchema(STTConfigWithVendorsSchema);
|
|
10
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
11
|
+
}
|
package/stt/queries/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export const STT_AMQP_ROUTES = {
|
|
|
2
2
|
EXECUTE: 'tools.stt.execute.rpc',
|
|
3
3
|
GET_PRICE: 'tools.stt.get-price.rpc',
|
|
4
4
|
CONFIG: 'tools.stt.config.rpc',
|
|
5
|
+
CONFIG_WITH_VENDORS: 'tools.stt.config-with-vendors.rpc',
|
|
5
6
|
GET_JOB: 'tools.stt.jobs.get.rpc',
|
|
6
7
|
LIST_JOBS: 'tools.stt.jobs.list.rpc',
|
|
7
8
|
SET_REACTION: 'tools.stt.jobs.set_reaction.rpc',
|
package/tts/models/index.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AiVendorSchema } from '../../ai-vendor';
|
|
3
|
+
import { TTSModelWithVendorSchema } from './tts-model-with-vendor.schema';
|
|
4
|
+
|
|
5
|
+
export const TTSConfigWithVendorsSchema = z.object({
|
|
6
|
+
vendors: z.array(AiVendorSchema),
|
|
7
|
+
models: z.array(TTSModelWithVendorSchema),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export type TTSConfigWithVendors = z.infer<typeof TTSConfigWithVendorsSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ICommandResponseSchema, LocaleRequestSchema } from '../../common';
|
|
3
|
+
import { TTSConfigWithVendorsSchema } from '../models';
|
|
4
|
+
|
|
5
|
+
export namespace GetTTSConfigWithVendorsQuery {
|
|
6
|
+
export const RequestSchema = LocaleRequestSchema;
|
|
7
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
8
|
+
|
|
9
|
+
export const ResponseSchema = ICommandResponseSchema(TTSConfigWithVendorsSchema);
|
|
10
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
11
|
+
}
|
package/tts/queries/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export const TTS_AMQP_ROUTES = {
|
|
|
2
2
|
EXECUTE: 'tools.tts.execute.rpc',
|
|
3
3
|
GET_PRICE: 'tools.tts.get-price.rpc',
|
|
4
4
|
CONFIG: 'tools.tts.config.rpc',
|
|
5
|
+
CONFIG_WITH_VENDORS: 'tools.tts.config-with-vendors.rpc',
|
|
5
6
|
GET_JOB: 'tools.tts.jobs.get.rpc',
|
|
6
7
|
LIST_JOBS: 'tools.tts.jobs.list.rpc',
|
|
7
8
|
SET_REACTION: 'tools.tts.jobs.set-reaction.rpc',
|