@sjcrh/proteinpaint-types 2.164.0 → 2.164.1

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.
@@ -2207,15 +2207,15 @@ var validChatRequest = (input) => {
2207
2207
  var validChatResponse = (input) => {
2208
2208
  const errors = [];
2209
2209
  const __is = (input2) => {
2210
- const $io0 = (input3) => ("html" === input3.type || "plot" === input3.type) && (void 0 === input3.html || "string" === typeof input3.html) && true;
2210
+ const $io0 = (input3) => ("html" === input3.type || "plot" === input3.type || "json" === input3.type) && (void 0 === input3.html || "string" === typeof input3.html) && true;
2211
2211
  return "object" === typeof input2 && null !== input2 && $io0(input2);
2212
2212
  };
2213
2213
  if (false === __is(input)) {
2214
2214
  const $report = import_typia.createValidate.report(errors);
2215
2215
  ((input2, _path, _exceptionable = true) => {
2216
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["html" === input3.type || "plot" === input3.type || $report(_exceptionable2, {
2216
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["html" === input3.type || "plot" === input3.type || "json" === input3.type || $report(_exceptionable2, {
2217
2217
  path: _path2 + ".type",
2218
- expected: '("html" | "plot")',
2218
+ expected: '("html" | "json" | "plot")',
2219
2219
  value: input3.type
2220
2220
  }), void 0 === input3.html || "string" === typeof input3.html || $report(_exceptionable2, {
2221
2221
  path: _path2 + ".html",
package/dist/index.js CHANGED
@@ -142,7 +142,7 @@ import {
142
142
  ChatPayload,
143
143
  validChatRequest,
144
144
  validChatResponse
145
- } from "./chunk-OAETETAO.js";
145
+ } from "./chunk-TR2MSSP3.js";
146
146
  import {
147
147
  termdbClusterPayload,
148
148
  validTermdbClusterRequest,
@@ -2,7 +2,7 @@ import {
2
2
  ChatPayload,
3
3
  validChatRequest,
4
4
  validChatResponse
5
- } from "./chunk-OAETETAO.js";
5
+ } from "./chunk-TR2MSSP3.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  ChatPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.164.0",
3
+ "version": "2.164.1",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
@@ -40,7 +40,7 @@ export type plot = {
40
40
  }
41
41
 
42
42
  export type ChatResponse = {
43
- type: 'html' | 'plot'
43
+ type: 'html' | 'plot' | 'json'
44
44
  /** when type=html, this value is set meaning server returns a chat response */
45
45
  html?: string
46
46
  /** when type=plot. value is json */
package/src/terms/q.ts CHANGED
@@ -22,7 +22,7 @@ export type CategoricalBaseQ = MinBaseQ & {
22
22
  mode?: 'discrete' | 'binary'
23
23
  }
24
24
 
25
- export type RawValuesQ = MinBaseQ & { type?: 'values'; mode?: 'binary' }
25
+ export type RawValuesQ = MinBaseQ & { type?: 'values'; mode?: 'binary' | 'discrete' }
26
26
 
27
27
  export type RawPredefinedGroupsetQ = MinBaseQ & {
28
28
  type: 'predefined-groupset'