···11import { drizzle } from "drizzle-orm/libsql";
22-import * as schema from "@teal/db/schema";
22+import * as schema from "./schema";
33import process from "node:process";
44import path from "node:path";
55
+3
packages/db/index.ts
···11+// barrel file :) kms
22+export * from "./connect";
33+export * from "./schema";
···11import type { Database } from "@teal/db/connect";
22import { db } from "@teal/db/connect";
33-import { status } from "@teal/db/schema";
33+import { status, play } from "@teal/db/schema";
44import { CommitCreateEvent, Jetstream } from "@skyware/jetstream";
5566import {
77 Record as XyzStatusphereStatus,
88 isRecord as isStatusphereStatus,
99-} from "@teal/lexicons/generated/server/types/xyz/statusphere/status";
99+} from "@teal/lexicons/src/types/xyz/statusphere/status";
10101111import {
1212 Record as FmTealAlphaPlay,
1313 isRecord as isTealAlphaPlay,
1414-} from "@teal/lexicons/generated/server/types/fm/teal/alpha/play";
1414+} from "@teal/lexicons/src/types/fm/teal/alpha/play";
15151616class Handler {
1717 private static instance: Handler;
···310310 musicServiceBaseDomain: {
311311 type: 'string',
312312 description:
313313- 'The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com.',
313313+ "The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if not provided.",
314314 },
315315 submissionClientAgent: {
316316 type: 'string',
317317 maxLength: 256,
318318 maxGraphemes: 2560,
319319 description:
320320- 'A user-agent style string specifying the user agent. e.g. tealtracker/0.0.1b',
320320+ "A user-agent style string specifying the user agent. e.g. tealtracker/0.0.1b (Linux; Android 13; SM-A715F). Defaults to 'manual/unknown' if not provided.",
321321 },
322322 playedTime: {
323323 type: 'string',
···2727 isrc?: string
2828 /** The URL associated with this track */
2929 originUrl?: string
3030- /** The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. */
3030+ /** The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if not provided. */
3131 musicServiceBaseDomain?: string
3232- /** A user-agent style string specifying the user agent. e.g. tealtracker/0.0.1b */
3232+ /** A user-agent style string specifying the user agent. e.g. tealtracker/0.0.1b (Linux; Android 13; SM-A715F). Defaults to 'manual/unknown' if not provided. */
3333 submissionClientAgent?: string
3434 /** The unix timestamp of when the track was played */
3535 playedTime?: string