@sjcrh/proteinpaint-types 2.145.2 → 2.146.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.
@@ -2,7 +2,7 @@ import {
2
2
  aiProjectSelectedWSImagesResponsePayload,
3
3
  validAiProjectSelectedWSImagesRequest,
4
4
  validAiProjectSelectedWSImagesResponse
5
- } from "./chunk-NO2EZKW4.js";
5
+ } from "./chunk-75OHIZMS.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  aiProjectSelectedWSImagesResponsePayload,
@@ -65,9 +65,9 @@ var validSampleWSImagesResponse = (input) => {
65
65
  const errors = [];
66
66
  const __is = (input2) => {
67
67
  const $io0 = (input3) => Array.isArray(input3.sampleWSImages) && input3.sampleWSImages.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
68
- const $io1 = (input3) => (void 0 === input3.id || "number" === typeof input3.id) && "string" === typeof input3.filename && (void 0 === input3.annotationsAndPredictionsOverlay || "string" === typeof input3.annotationsAndPredictionsOverlay) && (void 0 === input3.predictionLayers || Array.isArray(input3.predictionLayers) && input3.predictionLayers.every((elem) => "string" === typeof elem)) && (void 0 === input3.metadata || "string" === typeof input3.metadata) && (void 0 === input3.annotations || Array.isArray(input3.annotations) && input3.annotations.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.predictions || Array.isArray(input3.predictions) && input3.predictions.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && (void 0 === input3.classes || Array.isArray(input3.classes) && input3.classes.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && true && (void 0 === input3.activePatchColor || "string" === typeof input3.activePatchColor) && (void 0 === input3.tileSize || "number" === typeof input3.tileSize);
69
- const $io2 = (input3) => Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]) && "string" === typeof input3["class"];
70
- const $io3 = (input3) => Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]) && "string" === typeof input3.type && "string" === typeof input3["class"] && "number" === typeof input3.uncertainty;
68
+ const $io1 = (input3) => (void 0 === input3.id || "number" === typeof input3.id) && "string" === typeof input3.filename && (void 0 === input3.metadata || "string" === typeof input3.metadata) && (void 0 === input3.predictionLayers || Array.isArray(input3.predictionLayers) && input3.predictionLayers.every((elem) => "string" === typeof elem)) && (void 0 === input3.annotations || Array.isArray(input3.annotations) && input3.annotations.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.predictions || Array.isArray(input3.predictions) && input3.predictions.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && (void 0 === input3.classes || Array.isArray(input3.classes) && input3.classes.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && true && (void 0 === input3.activePatchColor || "string" === typeof input3.activePatchColor) && (void 0 === input3.tileSize || "number" === typeof input3.tileSize);
69
+ const $io2 = (input3) => "string" === typeof input3["class"] && (Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]));
70
+ const $io3 = (input3) => "string" === typeof input3.type && "string" === typeof input3["class"] && "number" === typeof input3.uncertainty && (Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]));
71
71
  const $io4 = (input3) => "number" === typeof input3.id && "string" === typeof input3.key_shortcut && "string" === typeof input3.label && "string" === typeof input3.color;
72
72
  return "object" === typeof input2 && null !== input2 && $io0(input2);
73
73
  };
@@ -99,10 +99,10 @@ var validSampleWSImagesResponse = (input) => {
99
99
  path: _path2 + ".filename",
100
100
  expected: "string",
101
101
  value: input3.filename
102
- }), void 0 === input3.annotationsAndPredictionsOverlay || "string" === typeof input3.annotationsAndPredictionsOverlay || $report(_exceptionable2, {
103
- path: _path2 + ".annotationsAndPredictionsOverlay",
102
+ }), void 0 === input3.metadata || "string" === typeof input3.metadata || $report(_exceptionable2, {
103
+ path: _path2 + ".metadata",
104
104
  expected: "(string | undefined)",
105
- value: input3.annotationsAndPredictionsOverlay
105
+ value: input3.metadata
106
106
  }), void 0 === input3.predictionLayers || (Array.isArray(input3.predictionLayers) || $report(_exceptionable2, {
107
107
  path: _path2 + ".predictionLayers",
108
108
  expected: "(Array<string> | undefined)",
@@ -115,10 +115,6 @@ var validSampleWSImagesResponse = (input) => {
115
115
  path: _path2 + ".predictionLayers",
116
116
  expected: "(Array<string> | undefined)",
117
117
  value: input3.predictionLayers
118
- }), void 0 === input3.metadata || "string" === typeof input3.metadata || $report(_exceptionable2, {
119
- path: _path2 + ".metadata",
120
- expected: "(string | undefined)",
121
- value: input3.metadata
122
118
  }), void 0 === input3.annotations || (Array.isArray(input3.annotations) || $report(_exceptionable2, {
123
119
  path: _path2 + ".annotations",
124
120
  expected: "(Array<Annotation> | undefined)",
@@ -176,7 +172,11 @@ var validSampleWSImagesResponse = (input) => {
176
172
  expected: "(number | undefined)",
177
173
  value: input3.tileSize
178
174
  })].every((flag) => flag);
179
- const $vo2 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
175
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3["class"] || $report(_exceptionable2, {
176
+ path: _path2 + '["class"]',
177
+ expected: "string",
178
+ value: input3["class"]
179
+ }), (Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
180
180
  path: _path2 + ".zoomCoordinates",
181
181
  expected: "[number, number]",
182
182
  value: input3.zoomCoordinates
@@ -199,12 +199,20 @@ var validSampleWSImagesResponse = (input) => {
199
199
  path: _path2 + ".zoomCoordinates",
200
200
  expected: "[number, number]",
201
201
  value: input3.zoomCoordinates
202
+ })].every((flag) => flag);
203
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.type || $report(_exceptionable2, {
204
+ path: _path2 + ".type",
205
+ expected: "string",
206
+ value: input3.type
202
207
  }), "string" === typeof input3["class"] || $report(_exceptionable2, {
203
208
  path: _path2 + '["class"]',
204
209
  expected: "string",
205
210
  value: input3["class"]
206
- })].every((flag) => flag);
207
- const $vo3 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
211
+ }), "number" === typeof input3.uncertainty || $report(_exceptionable2, {
212
+ path: _path2 + ".uncertainty",
213
+ expected: "number",
214
+ value: input3.uncertainty
215
+ }), (Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
208
216
  path: _path2 + ".zoomCoordinates",
209
217
  expected: "[number, number]",
210
218
  value: input3.zoomCoordinates
@@ -227,18 +235,6 @@ var validSampleWSImagesResponse = (input) => {
227
235
  path: _path2 + ".zoomCoordinates",
228
236
  expected: "[number, number]",
229
237
  value: input3.zoomCoordinates
230
- }), "string" === typeof input3.type || $report(_exceptionable2, {
231
- path: _path2 + ".type",
232
- expected: "string",
233
- value: input3.type
234
- }), "string" === typeof input3["class"] || $report(_exceptionable2, {
235
- path: _path2 + '["class"]',
236
- expected: "string",
237
- value: input3["class"]
238
- }), "number" === typeof input3.uncertainty || $report(_exceptionable2, {
239
- path: _path2 + ".uncertainty",
240
- expected: "number",
241
- value: input3.uncertainty
242
238
  })].every((flag) => flag);
243
239
  const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.id || $report(_exceptionable2, {
244
240
  path: _path2 + ".id",
@@ -73,9 +73,9 @@ var validAiProjectSelectedWSImagesResponse = (input) => {
73
73
  const errors = [];
74
74
  const __is = (input2) => {
75
75
  const $io0 = (input3) => Array.isArray(input3.wsimages) && input3.wsimages.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
76
- const $io1 = (input3) => (void 0 === input3.id || "number" === typeof input3.id) && "string" === typeof input3.filename && (void 0 === input3.annotationsAndPredictionsOverlay || "string" === typeof input3.annotationsAndPredictionsOverlay) && (void 0 === input3.predictionLayers || Array.isArray(input3.predictionLayers) && input3.predictionLayers.every((elem) => "string" === typeof elem)) && (void 0 === input3.metadata || "string" === typeof input3.metadata) && (void 0 === input3.annotations || Array.isArray(input3.annotations) && input3.annotations.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.predictions || Array.isArray(input3.predictions) && input3.predictions.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && (void 0 === input3.classes || Array.isArray(input3.classes) && input3.classes.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && true && (void 0 === input3.activePatchColor || "string" === typeof input3.activePatchColor) && (void 0 === input3.tileSize || "number" === typeof input3.tileSize);
77
- const $io2 = (input3) => Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]) && "string" === typeof input3["class"];
78
- const $io3 = (input3) => Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]) && "string" === typeof input3.type && "string" === typeof input3["class"] && "number" === typeof input3.uncertainty;
76
+ const $io1 = (input3) => (void 0 === input3.id || "number" === typeof input3.id) && "string" === typeof input3.filename && (void 0 === input3.metadata || "string" === typeof input3.metadata) && (void 0 === input3.predictionLayers || Array.isArray(input3.predictionLayers) && input3.predictionLayers.every((elem) => "string" === typeof elem)) && (void 0 === input3.annotations || Array.isArray(input3.annotations) && input3.annotations.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.predictions || Array.isArray(input3.predictions) && input3.predictions.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && (void 0 === input3.classes || Array.isArray(input3.classes) && input3.classes.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && true && (void 0 === input3.activePatchColor || "string" === typeof input3.activePatchColor) && (void 0 === input3.tileSize || "number" === typeof input3.tileSize);
77
+ const $io2 = (input3) => "string" === typeof input3["class"] && (Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]));
78
+ const $io3 = (input3) => "string" === typeof input3.type && "string" === typeof input3["class"] && "number" === typeof input3.uncertainty && (Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]));
79
79
  const $io4 = (input3) => "number" === typeof input3.id && "string" === typeof input3.key_shortcut && "string" === typeof input3.label && "string" === typeof input3.color;
80
80
  return "object" === typeof input2 && null !== input2 && $io0(input2);
81
81
  };
@@ -107,10 +107,10 @@ var validAiProjectSelectedWSImagesResponse = (input) => {
107
107
  path: _path2 + ".filename",
108
108
  expected: "string",
109
109
  value: input3.filename
110
- }), void 0 === input3.annotationsAndPredictionsOverlay || "string" === typeof input3.annotationsAndPredictionsOverlay || $report(_exceptionable2, {
111
- path: _path2 + ".annotationsAndPredictionsOverlay",
110
+ }), void 0 === input3.metadata || "string" === typeof input3.metadata || $report(_exceptionable2, {
111
+ path: _path2 + ".metadata",
112
112
  expected: "(string | undefined)",
113
- value: input3.annotationsAndPredictionsOverlay
113
+ value: input3.metadata
114
114
  }), void 0 === input3.predictionLayers || (Array.isArray(input3.predictionLayers) || $report(_exceptionable2, {
115
115
  path: _path2 + ".predictionLayers",
116
116
  expected: "(Array<string> | undefined)",
@@ -123,10 +123,6 @@ var validAiProjectSelectedWSImagesResponse = (input) => {
123
123
  path: _path2 + ".predictionLayers",
124
124
  expected: "(Array<string> | undefined)",
125
125
  value: input3.predictionLayers
126
- }), void 0 === input3.metadata || "string" === typeof input3.metadata || $report(_exceptionable2, {
127
- path: _path2 + ".metadata",
128
- expected: "(string | undefined)",
129
- value: input3.metadata
130
126
  }), void 0 === input3.annotations || (Array.isArray(input3.annotations) || $report(_exceptionable2, {
131
127
  path: _path2 + ".annotations",
132
128
  expected: "(Array<Annotation> | undefined)",
@@ -184,7 +180,11 @@ var validAiProjectSelectedWSImagesResponse = (input) => {
184
180
  expected: "(number | undefined)",
185
181
  value: input3.tileSize
186
182
  })].every((flag) => flag);
187
- const $vo2 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
183
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3["class"] || $report(_exceptionable2, {
184
+ path: _path2 + '["class"]',
185
+ expected: "string",
186
+ value: input3["class"]
187
+ }), (Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
188
188
  path: _path2 + ".zoomCoordinates",
189
189
  expected: "[number, number]",
190
190
  value: input3.zoomCoordinates
@@ -207,12 +207,20 @@ var validAiProjectSelectedWSImagesResponse = (input) => {
207
207
  path: _path2 + ".zoomCoordinates",
208
208
  expected: "[number, number]",
209
209
  value: input3.zoomCoordinates
210
+ })].every((flag) => flag);
211
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.type || $report(_exceptionable2, {
212
+ path: _path2 + ".type",
213
+ expected: "string",
214
+ value: input3.type
210
215
  }), "string" === typeof input3["class"] || $report(_exceptionable2, {
211
216
  path: _path2 + '["class"]',
212
217
  expected: "string",
213
218
  value: input3["class"]
214
- })].every((flag) => flag);
215
- const $vo3 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
219
+ }), "number" === typeof input3.uncertainty || $report(_exceptionable2, {
220
+ path: _path2 + ".uncertainty",
221
+ expected: "number",
222
+ value: input3.uncertainty
223
+ }), (Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
216
224
  path: _path2 + ".zoomCoordinates",
217
225
  expected: "[number, number]",
218
226
  value: input3.zoomCoordinates
@@ -235,18 +243,6 @@ var validAiProjectSelectedWSImagesResponse = (input) => {
235
243
  path: _path2 + ".zoomCoordinates",
236
244
  expected: "[number, number]",
237
245
  value: input3.zoomCoordinates
238
- }), "string" === typeof input3.type || $report(_exceptionable2, {
239
- path: _path2 + ".type",
240
- expected: "string",
241
- value: input3.type
242
- }), "string" === typeof input3["class"] || $report(_exceptionable2, {
243
- path: _path2 + '["class"]',
244
- expected: "string",
245
- value: input3["class"]
246
- }), "number" === typeof input3.uncertainty || $report(_exceptionable2, {
247
- path: _path2 + ".uncertainty",
248
- expected: "number",
249
- value: input3.uncertainty
250
246
  })].every((flag) => flag);
251
247
  const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.id || $report(_exceptionable2, {
252
248
  path: _path2 + ".id",