@pluto-khronos/types 3.12.0 → 3.13.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/index.d.ts CHANGED
@@ -10,4 +10,5 @@ export * as notifications from './schemas/notifications';
10
10
  export * from './schemas/shared';
11
11
  export * from './schemas/sports';
12
12
  export * from './schemas/props';
13
+ export * from './schemas/notices';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAA;AACtB,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,OAAO,KAAK,aAAa,MAAM,yBAAyB,CAAA;AACxD,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAA;AACtB,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,OAAO,KAAK,aAAa,MAAM,yBAAyB,CAAA;AACxD,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA"}
package/dist/index.js CHANGED
@@ -50,4 +50,5 @@ exports.notifications = __importStar(require("./schemas/notifications"));
50
50
  __exportStar(require("./schemas/shared"), exports);
51
51
  __exportStar(require("./schemas/sports"), exports);
52
52
  __exportStar(require("./schemas/props"), exports);
53
+ __exportStar(require("./schemas/notices"), exports);
53
54
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,yCAAsB;AACtB,oDAAiC;AACjC,qDAAkC;AAClC,mDAAgC;AAChC,qDAAkC;AAClC,mDAAgC;AAChC,8DAA2C;AAC3C,iEAA8C;AAC9C,yEAAwD;AACxD,mDAAgC;AAChC,mDAAgC;AAChC,kDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,yCAAsB;AACtB,oDAAiC;AACjC,qDAAkC;AAClC,mDAAgC;AAChC,qDAAkC;AAClC,mDAAgC;AAChC,8DAA2C;AAC3C,iEAA8C;AAC9C,yEAAwD;AACxD,mDAAgC;AAChC,mDAAgC;AAChC,kDAA+B;AAC/B,oDAAiC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @group Notices
3
+ * Shared vocabulary for Khronos notices shown by Pluto
4
+ */
5
+ import { z } from 'zod';
6
+ /**
7
+ * Pluto top-level slash commands a maintenance notice may pause. Khronos
8
+ * rejects any other name, and Pluto gates exactly these commands plus the
9
+ * buttons and modals that place what they open.
10
+ * @group Notices
11
+ */
12
+ export declare const PAUSABLE_COMMANDS: readonly ["balance", "bet", "cancelbet", "dailyclaim", "doubledown", "leaderboard", "mybets", "odds", "parlay", "prediction", "register"];
13
+ /** @group Notices */
14
+ export type PausableCommand = (typeof PAUSABLE_COMMANDS)[number];
15
+ /** @group Notices */
16
+ export declare const pausableCommandSchema: z.ZodEnum<{
17
+ balance: "balance";
18
+ bet: "bet";
19
+ cancelbet: "cancelbet";
20
+ dailyclaim: "dailyclaim";
21
+ doubledown: "doubledown";
22
+ leaderboard: "leaderboard";
23
+ mybets: "mybets";
24
+ odds: "odds";
25
+ parlay: "parlay";
26
+ prediction: "prediction";
27
+ register: "register";
28
+ }>;
29
+ //# sourceMappingURL=notices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notices.d.ts","sourceRoot":"","sources":["../../src/schemas/notices.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,2IAYpB,CAAC;AAEX,qBAAqB;AACrB,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,qBAAqB;AACrB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAA4B,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pausableCommandSchema = exports.PAUSABLE_COMMANDS = void 0;
4
+ /**
5
+ * @group Notices
6
+ * Shared vocabulary for Khronos notices shown by Pluto
7
+ */
8
+ const zod_1 = require("zod");
9
+ /**
10
+ * Pluto top-level slash commands a maintenance notice may pause. Khronos
11
+ * rejects any other name, and Pluto gates exactly these commands plus the
12
+ * buttons and modals that place what they open.
13
+ * @group Notices
14
+ */
15
+ exports.PAUSABLE_COMMANDS = [
16
+ 'balance',
17
+ 'bet',
18
+ 'cancelbet',
19
+ 'dailyclaim',
20
+ 'doubledown',
21
+ 'leaderboard',
22
+ 'mybets',
23
+ 'odds',
24
+ 'parlay',
25
+ 'prediction',
26
+ 'register',
27
+ ];
28
+ /** @group Notices */
29
+ exports.pausableCommandSchema = zod_1.z.enum(exports.PAUSABLE_COMMANDS);
30
+ //# sourceMappingURL=notices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notices.js","sourceRoot":"","sources":["../../src/schemas/notices.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,6BAAwB;AAExB;;;;;GAKG;AACU,QAAA,iBAAiB,GAAG;IAChC,SAAS;IACT,KAAK;IACL,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,UAAU;CACD,CAAC;AAKX,qBAAqB;AACR,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC,yBAAiB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluto-khronos/types",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "description": "Shared TypeScript types & Zod schemas for the Khronos ↔ Pluto contract. Published from the Khronos monorepo.",
5
5
  "license": "MIT",
6
6
  "author": "fenix <fenixcoding@gmail.com>",
@@ -38,6 +38,7 @@
38
38
  "discord.js": "^14.0.0"
39
39
  },
40
40
  "devDependencies": {
41
+ "fast-check": "^4.10.2",
41
42
  "typescript": "6.0.3"
42
43
  }
43
44
  }