@arken/seer-protocol 0.1.1 → 0.1.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/.rush/temp/shrinkwrap-deps.json +537 -56
- package/area/area.models.ts +15 -0
- package/area/area.router.ts +74 -0
- package/area/area.schema.ts +22 -0
- package/area/area.types.ts +26 -0
- package/area/index.ts +5 -0
- package/asset/asset.models.ts +59 -0
- package/asset/asset.router.ts +55 -0
- package/asset/asset.schema.ts +27 -0
- package/asset/asset.types.ts +22 -0
- package/asset/index.ts +5 -0
- package/chain/chain.models.ts +50 -0
- package/chain/chain.router.ts +104 -0
- package/chain/chain.schema.ts +52 -0
- package/chain/chain.types.ts +24 -0
- package/chain/index.ts +5 -0
- package/character/character.models.ts +174 -0
- package/character/character.router.ts +314 -0
- package/character/character.schema.ts +147 -0
- package/character/character.types.ts +64 -0
- package/character/index.ts +5 -0
- package/chat/chat.models.ts +43 -0
- package/chat/chat.router.ts +67 -0
- package/chat/chat.schema.ts +36 -0
- package/chat/chat.types.ts +20 -0
- package/chat/index.ts +5 -0
- package/collection/collection.models.ts +76 -0
- package/collection/collection.router.ts +91 -0
- package/collection/collection.schema.ts +90 -0
- package/collection/collection.types.ts +36 -0
- package/collection/index.ts +5 -0
- package/core/core.models.ts +1380 -0
- package/core/core.router.ts +1781 -0
- package/core/core.schema.ts +847 -0
- package/core/core.types.ts +340 -0
- package/core/index.ts +5 -0
- package/evolution/evolution.models.ts +1 -1
- package/evolution/evolution.router.ts +8 -8
- package/evolution/evolution.schema.ts +1 -1
- package/evolution/evolution.types.ts +1 -1
- package/game/game.models.ts +53 -0
- package/game/game.router.ts +110 -0
- package/game/game.schema.ts +23 -0
- package/game/game.types.ts +28 -0
- package/game/index.ts +5 -0
- package/index.ts +39 -2
- package/infinite/infinite.models.ts +1 -1
- package/infinite/infinite.router.ts +8 -8
- package/infinite/infinite.schema.ts +1 -1
- package/infinite/infinite.types.ts +1 -1
- package/interface/index.ts +5 -0
- package/interface/interface.canonicalize.ts +279 -0
- package/interface/interface.models.ts +40 -0
- package/interface/interface.router.ts +175 -0
- package/interface/interface.schema.ts +59 -0
- package/interface/interface.types.ts +25 -0
- package/isles/isles.models.ts +1 -1
- package/isles/isles.router.ts +8 -8
- package/isles/isles.schema.ts +1 -1
- package/isles/isles.types.ts +1 -1
- package/item/index.ts +5 -0
- package/item/item.models.ts +124 -0
- package/item/item.router.ts +103 -0
- package/item/item.schema.ts +120 -0
- package/item/item.types.ts +74 -0
- package/job/index.ts +5 -0
- package/job/job.models.ts +14 -0
- package/job/job.router.ts +44 -0
- package/job/job.schema.ts +9 -0
- package/job/job.types.ts +23 -0
- package/market/index.ts +5 -0
- package/market/market.models.ts +113 -0
- package/market/market.router.ts +73 -0
- package/market/market.schema.ts +140 -0
- package/market/market.types.ts +56 -0
- package/oasis/oasis.models.ts +1 -1
- package/oasis/oasis.router.ts +2 -2
- package/oasis/oasis.schema.ts +1 -1
- package/oasis/oasis.types.ts +1 -1
- package/package.json +10 -3
- package/product/index.ts +5 -0
- package/product/product.models.ts +166 -0
- package/product/product.router.ts +93 -0
- package/product/product.schema.ts +149 -0
- package/product/product.types.ts +33 -0
- package/profile/index.ts +5 -0
- package/profile/profile.models.ts +214 -0
- package/profile/profile.router.ts +72 -0
- package/profile/profile.schema.ts +156 -0
- package/profile/profile.types.ts +22 -0
- package/raffle/index.ts +5 -0
- package/raffle/raffle.models.ts +44 -0
- package/raffle/raffle.router.ts +90 -0
- package/raffle/raffle.schema.ts +32 -0
- package/raffle/raffle.types.ts +30 -0
- package/router.ts +23 -29
- package/schema.ts +321 -0
- package/skill/index.ts +5 -0
- package/skill/skill.models.ts +16 -0
- package/skill/skill.router.ts +201 -0
- package/skill/skill.schema.ts +40 -0
- package/skill/skill.types.ts +33 -0
- package/trek/trek.models.ts +1 -1
- package/trek/trek.router.ts +1 -1
- package/trek/trek.schema.ts +1 -1
- package/trek/trek.types.ts +1 -1
- package/types.ts +172 -5
- package/video/index.ts +5 -0
- package/video/video.models.ts +25 -0
- package/video/video.router.ts +143 -0
- package/video/video.schema.ts +46 -0
- package/video/video.types.ts +33 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z, ObjectId, Entity } from '../../schema';
|
|
2
|
+
|
|
3
|
+
export const Video = Entity.merge(
|
|
4
|
+
z.object({
|
|
5
|
+
youtubeId: z.string().min(1),
|
|
6
|
+
url: z.string().url(),
|
|
7
|
+
title: z.string().min(1),
|
|
8
|
+
description: z.string().optional(),
|
|
9
|
+
duration: z.number().min(0).optional(),
|
|
10
|
+
// publishedAt: z.date().optional(),
|
|
11
|
+
})
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
export const VideoParticipant = Entity.merge(
|
|
15
|
+
z.object({
|
|
16
|
+
videoId: ObjectId, // Reference to the associated Video
|
|
17
|
+
profileId: ObjectId.optional(), // Reference to a participant profile
|
|
18
|
+
role: z.enum(['Host', 'Contributor', 'Guest']).optional(),
|
|
19
|
+
})
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
export const VideoDialogue = Entity.merge(
|
|
23
|
+
z.object({
|
|
24
|
+
videoId: ObjectId, // Reference to the associated Video
|
|
25
|
+
participantId: ObjectId, // Reference to the VideoParticipant
|
|
26
|
+
text: z.string().min(1),
|
|
27
|
+
timestamp: z.string().regex(/^\d{2}:\d{2}:\d{2}$/), // Format HH:MM:SS
|
|
28
|
+
})
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
export const VideoTranscript = Entity.merge(
|
|
32
|
+
z.object({
|
|
33
|
+
videoId: ObjectId, // Reference to the associated Video
|
|
34
|
+
transcript: z.array(VideoDialogue), // Array of dialogues
|
|
35
|
+
summary: z.string().optional(),
|
|
36
|
+
})
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
export const VideoScene = Entity.merge(
|
|
40
|
+
z.object({
|
|
41
|
+
videoId: ObjectId, // Reference to the associated Video
|
|
42
|
+
startTime: z.string().regex(/^\d{2}:\d{2}:\d{2}$/), // Format HH:MM:SS
|
|
43
|
+
endTime: z.string().regex(/^\d{2}:\d{2}:\d{2}$/), // Format HH:MM:SS
|
|
44
|
+
description: z.string().optional(),
|
|
45
|
+
})
|
|
46
|
+
);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import * as schema from './video.schema';
|
|
3
|
+
import { Document, Model } from '../../util/mongo';
|
|
4
|
+
import type { RouterContext } from '../../types';
|
|
5
|
+
import type { inferRouterInputs, inferRouterOutputs } from '@trpc/server';
|
|
6
|
+
import type { Router } from './video.router';
|
|
7
|
+
|
|
8
|
+
export type * from './video.router';
|
|
9
|
+
export type * from './video.service';
|
|
10
|
+
export type { RouterContext };
|
|
11
|
+
|
|
12
|
+
export type Video = z.infer<typeof schema.Video>;
|
|
13
|
+
export type VideoParticipant = z.infer<typeof schema.VideoParticipant>;
|
|
14
|
+
export type VideoDialogue = z.infer<typeof schema.VideoDialogue>;
|
|
15
|
+
export type VideoTranscript = z.infer<typeof schema.VideoTranscript>;
|
|
16
|
+
export type VideoScene = z.infer<typeof schema.VideoScene>;
|
|
17
|
+
|
|
18
|
+
export type VideoDocument = Video & Document;
|
|
19
|
+
export type VideoParticipantDocument = VideoParticipant & Document;
|
|
20
|
+
export type VideoDialogueDocument = VideoDialogue & Document;
|
|
21
|
+
export type VideoTranscriptDocument = VideoTranscript & Document;
|
|
22
|
+
export type VideoSceneDocument = VideoScene & Document;
|
|
23
|
+
|
|
24
|
+
export type Mappings = {
|
|
25
|
+
Video: Model<VideoDocument>;
|
|
26
|
+
VideoParticipant: Model<VideoParticipantDocument>;
|
|
27
|
+
VideoDialogue: Model<VideoDialogueDocument>;
|
|
28
|
+
VideoTranscript: Model<VideoTranscriptDocument>;
|
|
29
|
+
VideoScene: Model<VideoSceneDocument>;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type RouterInput = inferRouterInputs<Router>;
|
|
33
|
+
export type RouterOutput = inferRouterOutputs<Router>;
|