@orakl/protocol 0.1.1 → 0.2.0

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/dist/badges.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type BadgeId = "victor" | "flawless" | "sharpshooter" | "podium" | "unstoppable" | "on-a-roll" | "survivor" | "giant-slayer" | "pantheon" | "specialist" | "polymath" | "phoenix" | "strong-finish" | "master-of-none" | "faster-than-most" | "clutch" | "quick-draw" | "decisive" | "sure-handed" | "unbroken-focus" | "devotee";
1
+ export type BadgeId = "victor" | "flawless" | "sharpshooter" | "podium" | "unstoppable" | "on-a-roll" | "survivor" | "giant-slayer" | "pantheon" | "specialist" | "polymath" | "phoenix" | "strong-finish" | "master-of-none" | "faster-than-most" | "clutch" | "quick-draw" | "decisive" | "sure-handed" | "unbroken-focus" | "devotee" | "herculean" | "undaunted" | "measured" | "strong-start" | "new-heights" | "far-horizons" | "cassandra" | "lone-torch" | "ascendant" | "undisputed";
2
2
  /** Modes a badge can be awarded in. */
3
3
  export type BadgeMode = "solo" | "multiplayer";
4
4
  export interface BadgeAward {
@@ -1,7 +1,7 @@
1
1
  import { Schema } from "effect";
2
2
  /** Page-load response bodies for `src/api/routes/pages-history.ts and admin-feature-flags.ts`. */
3
3
  /** Achievement badge id (mirrors `BadgeId` in `src/lib/badges.ts`). */
4
- export declare const BadgeIdSchema: Schema.Literal<["victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee"]>;
4
+ export declare const BadgeIdSchema: Schema.Literal<["victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee", "herculean", "undaunted", "measured", "strong-start", "new-heights", "far-horizons", "cassandra", "lone-torch", "ascendant", "undisputed"]>;
5
5
  /** Rarity tier a badge award reached (mirrors `Rarity` in `src/lib/badges.ts`). */
6
6
  export declare const RaritySchema: Schema.Literal<["common", "rare", "legendary", "exotic"]>;
7
7
  /** Per-badge counts + best rarity across a player's runs (mirrors `BadgeTally`). */
@@ -89,7 +89,7 @@ declare const PlayerGamePlacementSchema: Schema.Struct<{
89
89
  final_score: typeof Schema.Number;
90
90
  rank: typeof Schema.Number;
91
91
  player_count: typeof Schema.Number;
92
- badges: Schema.mutable<Schema.Array$<Schema.Literal<["victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee"]>>>;
92
+ badges: Schema.mutable<Schema.Array$<Schema.Literal<["victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee", "herculean", "undaunted", "measured", "strong-start", "new-heights", "far-horizons", "cassandra", "lone-torch", "ascendant", "undisputed"]>>>;
93
93
  }>;
94
94
  export type PlayerGamePlacement = typeof PlayerGamePlacementSchema.Type;
95
95
  /** Body of `GET /api/pages/history`. */
@@ -164,7 +164,7 @@ export declare const HistoryPageSchema: Schema.Struct<{
164
164
  final_score: typeof Schema.Number;
165
165
  rank: typeof Schema.Number;
166
166
  player_count: typeof Schema.Number;
167
- badges: Schema.mutable<Schema.Array$<Schema.Literal<["victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee"]>>>;
167
+ badges: Schema.mutable<Schema.Array$<Schema.Literal<["victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee", "herculean", "undaunted", "measured", "strong-start", "new-heights", "far-horizons", "cassandra", "lone-torch", "ascendant", "undisputed"]>>>;
168
168
  }>>>;
169
169
  runsNextCursor: Schema.NullOr<typeof Schema.String>;
170
170
  gamesNextCursor: Schema.NullOr<typeof Schema.String>;
@@ -190,7 +190,7 @@ export declare const GameReviewPageSchema: Schema.Struct<{
190
190
  avatarSrc: typeof Schema.String;
191
191
  }>>>;
192
192
  badges: Schema.mutable<Schema.Array$<Schema.Struct<{
193
- id: Schema.Literal<["victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee"]>;
193
+ id: Schema.Literal<["victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee", "herculean", "undaunted", "measured", "strong-start", "new-heights", "far-horizons", "cassandra", "lone-torch", "ascendant", "undisputed"]>;
194
194
  rarity: Schema.Literal<["common", "rare", "legendary", "exotic"]>;
195
195
  }>>>;
196
196
  breakdown: Schema.NullOr<Schema.mutable<Schema.Array$<Schema.Struct<{
@@ -240,7 +240,7 @@ export declare const SoloReviewPageSchema: Schema.Struct<{
240
240
  categories: Schema.mutable<Schema.Array$<typeof Schema.String>>;
241
241
  }>;
242
242
  badges: Schema.mutable<Schema.Array$<Schema.Struct<{
243
- id: Schema.Literal<["victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee"]>;
243
+ id: Schema.Literal<["victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee", "herculean", "undaunted", "measured", "strong-start", "new-heights", "far-horizons", "cassandra", "lone-torch", "ascendant", "undisputed"]>;
244
244
  rarity: Schema.Literal<["common", "rare", "legendary", "exotic"]>;
245
245
  }>>>;
246
246
  categoryStats: Schema.mutable<Schema.Array$<Schema.Struct<{
@@ -3,7 +3,7 @@ import { MediaTypeSchema, StoredQuestionSourceSchema, } from "../question.schema
3
3
  import { GameAnswerRecordSchema, PlayerRoleSchema, UserPowerSchema, UserRoleSchema, } from "./common.schema.js";
4
4
  /** Page-load response bodies for `src/api/routes/pages-history.ts and admin-feature-flags.ts`. */
5
5
  /** Achievement badge id (mirrors `BadgeId` in `src/lib/badges.ts`). */
6
- export const BadgeIdSchema = Schema.Literal("victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee");
6
+ export const BadgeIdSchema = Schema.Literal("victor", "flawless", "sharpshooter", "podium", "unstoppable", "on-a-roll", "survivor", "giant-slayer", "pantheon", "specialist", "polymath", "phoenix", "strong-finish", "master-of-none", "faster-than-most", "clutch", "quick-draw", "decisive", "sure-handed", "unbroken-focus", "devotee", "herculean", "undaunted", "measured", "strong-start", "new-heights", "far-horizons", "cassandra", "lone-torch", "ascendant", "undisputed");
7
7
  /** Rarity tier a badge award reached (mirrors `Rarity` in `src/lib/badges.ts`). */
8
8
  export const RaritySchema = Schema.Literal("common", "rare", "legendary", "exotic");
9
9
  /** Per-badge counts + best rarity across a player's runs (mirrors `BadgeTally`). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orakl/protocol",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Orakl wire contract: WebSocket frames and API response schemas.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {