@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.
Files changed (112) hide show
  1. package/.rush/temp/shrinkwrap-deps.json +537 -56
  2. package/area/area.models.ts +15 -0
  3. package/area/area.router.ts +74 -0
  4. package/area/area.schema.ts +22 -0
  5. package/area/area.types.ts +26 -0
  6. package/area/index.ts +5 -0
  7. package/asset/asset.models.ts +59 -0
  8. package/asset/asset.router.ts +55 -0
  9. package/asset/asset.schema.ts +27 -0
  10. package/asset/asset.types.ts +22 -0
  11. package/asset/index.ts +5 -0
  12. package/chain/chain.models.ts +50 -0
  13. package/chain/chain.router.ts +104 -0
  14. package/chain/chain.schema.ts +52 -0
  15. package/chain/chain.types.ts +24 -0
  16. package/chain/index.ts +5 -0
  17. package/character/character.models.ts +174 -0
  18. package/character/character.router.ts +314 -0
  19. package/character/character.schema.ts +147 -0
  20. package/character/character.types.ts +64 -0
  21. package/character/index.ts +5 -0
  22. package/chat/chat.models.ts +43 -0
  23. package/chat/chat.router.ts +67 -0
  24. package/chat/chat.schema.ts +36 -0
  25. package/chat/chat.types.ts +20 -0
  26. package/chat/index.ts +5 -0
  27. package/collection/collection.models.ts +76 -0
  28. package/collection/collection.router.ts +91 -0
  29. package/collection/collection.schema.ts +90 -0
  30. package/collection/collection.types.ts +36 -0
  31. package/collection/index.ts +5 -0
  32. package/core/core.models.ts +1380 -0
  33. package/core/core.router.ts +1781 -0
  34. package/core/core.schema.ts +847 -0
  35. package/core/core.types.ts +340 -0
  36. package/core/index.ts +5 -0
  37. package/evolution/evolution.models.ts +1 -1
  38. package/evolution/evolution.router.ts +8 -8
  39. package/evolution/evolution.schema.ts +1 -1
  40. package/evolution/evolution.types.ts +1 -1
  41. package/game/game.models.ts +53 -0
  42. package/game/game.router.ts +110 -0
  43. package/game/game.schema.ts +23 -0
  44. package/game/game.types.ts +28 -0
  45. package/game/index.ts +5 -0
  46. package/index.ts +39 -2
  47. package/infinite/infinite.models.ts +1 -1
  48. package/infinite/infinite.router.ts +8 -8
  49. package/infinite/infinite.schema.ts +1 -1
  50. package/infinite/infinite.types.ts +1 -1
  51. package/interface/index.ts +5 -0
  52. package/interface/interface.canonicalize.ts +279 -0
  53. package/interface/interface.models.ts +40 -0
  54. package/interface/interface.router.ts +175 -0
  55. package/interface/interface.schema.ts +59 -0
  56. package/interface/interface.types.ts +25 -0
  57. package/isles/isles.models.ts +1 -1
  58. package/isles/isles.router.ts +8 -8
  59. package/isles/isles.schema.ts +1 -1
  60. package/isles/isles.types.ts +1 -1
  61. package/item/index.ts +5 -0
  62. package/item/item.models.ts +124 -0
  63. package/item/item.router.ts +103 -0
  64. package/item/item.schema.ts +120 -0
  65. package/item/item.types.ts +74 -0
  66. package/job/index.ts +5 -0
  67. package/job/job.models.ts +14 -0
  68. package/job/job.router.ts +44 -0
  69. package/job/job.schema.ts +9 -0
  70. package/job/job.types.ts +23 -0
  71. package/market/index.ts +5 -0
  72. package/market/market.models.ts +113 -0
  73. package/market/market.router.ts +73 -0
  74. package/market/market.schema.ts +140 -0
  75. package/market/market.types.ts +56 -0
  76. package/oasis/oasis.models.ts +1 -1
  77. package/oasis/oasis.router.ts +2 -2
  78. package/oasis/oasis.schema.ts +1 -1
  79. package/oasis/oasis.types.ts +1 -1
  80. package/package.json +10 -3
  81. package/product/index.ts +5 -0
  82. package/product/product.models.ts +166 -0
  83. package/product/product.router.ts +93 -0
  84. package/product/product.schema.ts +149 -0
  85. package/product/product.types.ts +33 -0
  86. package/profile/index.ts +5 -0
  87. package/profile/profile.models.ts +214 -0
  88. package/profile/profile.router.ts +72 -0
  89. package/profile/profile.schema.ts +156 -0
  90. package/profile/profile.types.ts +22 -0
  91. package/raffle/index.ts +5 -0
  92. package/raffle/raffle.models.ts +44 -0
  93. package/raffle/raffle.router.ts +90 -0
  94. package/raffle/raffle.schema.ts +32 -0
  95. package/raffle/raffle.types.ts +30 -0
  96. package/router.ts +23 -29
  97. package/schema.ts +321 -0
  98. package/skill/index.ts +5 -0
  99. package/skill/skill.models.ts +16 -0
  100. package/skill/skill.router.ts +201 -0
  101. package/skill/skill.schema.ts +40 -0
  102. package/skill/skill.types.ts +33 -0
  103. package/trek/trek.models.ts +1 -1
  104. package/trek/trek.router.ts +1 -1
  105. package/trek/trek.schema.ts +1 -1
  106. package/trek/trek.types.ts +1 -1
  107. package/types.ts +172 -5
  108. package/video/index.ts +5 -0
  109. package/video/video.models.ts +25 -0
  110. package/video/video.router.ts +143 -0
  111. package/video/video.schema.ts +46 -0
  112. 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>;