@sjcrh/proteinpaint-types 2.111.0 → 2.112.1-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.
@@ -74,15 +74,29 @@ var validDERequest = (input) => {
74
74
  var validDEResponse = (input) => {
75
75
  const errors = [];
76
76
  const __is = (input2) => {
77
- const $io0 = (input3) => "string" === typeof input3.data && "number" === typeof input3.sample_size1 && "number" === typeof input3.sample_size2 && "string" === typeof input3.method && true && true;
77
+ const $io0 = (input3) => Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && "number" === typeof input3.sample_size1 && "number" === typeof input3.sample_size2 && "string" === typeof input3.method && (void 0 === input3.images || Array.isArray(input3.images) && input3.images.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)));
78
+ const $io1 = (input3) => "number" === typeof input3.adjusted_p_value && "number" === typeof input3.original_p_value && "number" === typeof input3.fold_change && "string" === typeof input3.gene_name && "string" === typeof input3.gene_symbol;
79
+ const $io2 = (input3) => "string" === typeof input3.src && "number" === typeof input3.size && "string" === typeof input3.key;
78
80
  return "object" === typeof input2 && null !== input2 && $io0(input2);
79
81
  };
80
82
  if (false === __is(input)) {
81
83
  const $report = import_typia.createValidate.report(errors);
82
84
  ((input2, _path, _exceptionable = true) => {
83
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.data || $report(_exceptionable2, {
85
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.data) || $report(_exceptionable2, {
84
86
  path: _path2 + ".data",
85
- expected: "string",
87
+ expected: "Array<DataEntry>",
88
+ value: input3.data
89
+ })) && input3.data.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
90
+ path: _path2 + ".data[" + _index1 + "]",
91
+ expected: "DataEntry",
92
+ value: elem
93
+ })) && $vo1(elem, _path2 + ".data[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
94
+ path: _path2 + ".data[" + _index1 + "]",
95
+ expected: "DataEntry",
96
+ value: elem
97
+ })).every((flag) => flag) || $report(_exceptionable2, {
98
+ path: _path2 + ".data",
99
+ expected: "Array<DataEntry>",
86
100
  value: input3.data
87
101
  }), "number" === typeof input3.sample_size1 || $report(_exceptionable2, {
88
102
  path: _path2 + ".sample_size1",
@@ -96,7 +110,57 @@ var validDEResponse = (input) => {
96
110
  path: _path2 + ".method",
97
111
  expected: "string",
98
112
  value: input3.method
99
- }), true, true].every((flag) => flag);
113
+ }), void 0 === input3.images || (Array.isArray(input3.images) || $report(_exceptionable2, {
114
+ path: _path2 + ".images",
115
+ expected: "(Array<DEImage> | undefined)",
116
+ value: input3.images
117
+ })) && input3.images.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
118
+ path: _path2 + ".images[" + _index2 + "]",
119
+ expected: "DEImage",
120
+ value: elem
121
+ })) && $vo2(elem, _path2 + ".images[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
122
+ path: _path2 + ".images[" + _index2 + "]",
123
+ expected: "DEImage",
124
+ value: elem
125
+ })).every((flag) => flag) || $report(_exceptionable2, {
126
+ path: _path2 + ".images",
127
+ expected: "(Array<DEImage> | undefined)",
128
+ value: input3.images
129
+ })].every((flag) => flag);
130
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.adjusted_p_value || $report(_exceptionable2, {
131
+ path: _path2 + ".adjusted_p_value",
132
+ expected: "number",
133
+ value: input3.adjusted_p_value
134
+ }), "number" === typeof input3.original_p_value || $report(_exceptionable2, {
135
+ path: _path2 + ".original_p_value",
136
+ expected: "number",
137
+ value: input3.original_p_value
138
+ }), "number" === typeof input3.fold_change || $report(_exceptionable2, {
139
+ path: _path2 + ".fold_change",
140
+ expected: "number",
141
+ value: input3.fold_change
142
+ }), "string" === typeof input3.gene_name || $report(_exceptionable2, {
143
+ path: _path2 + ".gene_name",
144
+ expected: "string",
145
+ value: input3.gene_name
146
+ }), "string" === typeof input3.gene_symbol || $report(_exceptionable2, {
147
+ path: _path2 + ".gene_symbol",
148
+ expected: "string",
149
+ value: input3.gene_symbol
150
+ })].every((flag) => flag);
151
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.src || $report(_exceptionable2, {
152
+ path: _path2 + ".src",
153
+ expected: "string",
154
+ value: input3.src
155
+ }), "number" === typeof input3.size || $report(_exceptionable2, {
156
+ path: _path2 + ".size",
157
+ expected: "number",
158
+ value: input3.size
159
+ }), "string" === typeof input3.key || $report(_exceptionable2, {
160
+ path: _path2 + ".key",
161
+ expected: "string",
162
+ value: input3.key
163
+ })].every((flag) => flag);
100
164
  return ("object" === typeof input2 && null !== input2 || $report(true, {
101
165
  path: _path + "",
102
166
  expected: "DEResponse",
@@ -64,7 +64,7 @@ var validWSImagesRequest = (input) => {
64
64
  var validWSImagesResponse = (input) => {
65
65
  const errors = [];
66
66
  const __is = (input2) => {
67
- const $io0 = (input3) => (void 0 === input3.wsiSessionId || "string" === typeof input3.wsiSessionId) && (void 0 === input3.browserImageInstanceId || "string" === typeof input3.browserImageInstanceId) && (Array.isArray(input3.slide_dimensions) && input3.slide_dimensions.every((elem) => "number" === typeof elem)) && "string" === typeof input3.status;
67
+ const $io0 = (input3) => (void 0 === input3.wsiSessionId || "string" === typeof input3.wsiSessionId) && (Array.isArray(input3.slide_dimensions) && input3.slide_dimensions.every((elem) => "number" === typeof elem)) && "string" === typeof input3.status && (void 0 === input3.error || "string" === typeof input3.error);
68
68
  return "object" === typeof input2 && null !== input2 && $io0(input2);
69
69
  };
70
70
  if (false === __is(input)) {
@@ -74,10 +74,6 @@ var validWSImagesResponse = (input) => {
74
74
  path: _path2 + ".wsiSessionId",
75
75
  expected: "(string | undefined)",
76
76
  value: input3.wsiSessionId
77
- }), void 0 === input3.browserImageInstanceId || "string" === typeof input3.browserImageInstanceId || $report(_exceptionable2, {
78
- path: _path2 + ".browserImageInstanceId",
79
- expected: "(string | undefined)",
80
- value: input3.browserImageInstanceId
81
77
  }), (Array.isArray(input3.slide_dimensions) || $report(_exceptionable2, {
82
78
  path: _path2 + ".slide_dimensions",
83
79
  expected: "Array<number>",
@@ -94,6 +90,10 @@ var validWSImagesResponse = (input) => {
94
90
  path: _path2 + ".status",
95
91
  expected: "string",
96
92
  value: input3.status
93
+ }), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
94
+ path: _path2 + ".error",
95
+ expected: "(string | undefined)",
96
+ value: input3.error
97
97
  })].every((flag) => flag);
98
98
  return ("object" === typeof input2 && null !== input2 || $report(true, {
99
99
  path: _path + "",
@@ -1,9 +1,86 @@
1
1
  import {
2
- clearWSImagesSessionsPayload,
3
- validClearWSImagesSessionsRequest,
4
- validClearWSImagesSessionsResponse
5
- } from "./chunk-QNBBWHEY.js";
6
- import "./chunk-CNSSF43V.js";
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-CNSSF43V.js";
5
+
6
+ // dist/clearwsisession.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/clearwsisessions.ts
10
+ var clearWSImagesSessionsPayload = {
11
+ request: {
12
+ typeId: "ClearWSImagesSessionsRequest"
13
+ },
14
+ response: {
15
+ typeId: "ClearWSImagesSessionsResponse"
16
+ }
17
+ // examples: []
18
+ };
19
+
20
+ // dist/clearwsisession.ts
21
+ var validClearWSImagesSessionsRequest = (input) => {
22
+ const errors = [];
23
+ const __is = (input2) => {
24
+ const $io0 = (input3) => Array.isArray(input3.sessions);
25
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
26
+ };
27
+ if (false === __is(input)) {
28
+ const $report = import_typia.createValidate.report(errors);
29
+ ((input2, _path, _exceptionable = true) => {
30
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [Array.isArray(input3.sessions) || $report(_exceptionable2, {
31
+ path: _path2 + ".sessions",
32
+ expected: "Array<any>",
33
+ value: input3.sessions
34
+ })].every((flag) => flag);
35
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
36
+ path: _path + "",
37
+ expected: "ClearWSImagesSessionsRequest",
38
+ value: input2
39
+ })) && $vo0(input2, _path + "", true) || $report(true, {
40
+ path: _path + "",
41
+ expected: "ClearWSImagesSessionsRequest",
42
+ value: input2
43
+ });
44
+ })(input, "$input", true);
45
+ }
46
+ const success = 0 === errors.length;
47
+ return {
48
+ success,
49
+ errors,
50
+ data: success ? input : void 0
51
+ };
52
+ };
53
+ var validClearWSImagesSessionsResponse = (input) => {
54
+ const errors = [];
55
+ const __is = (input2) => {
56
+ return "object" === typeof input2 && null !== input2 && "string" === typeof input2.message;
57
+ };
58
+ if (false === __is(input)) {
59
+ const $report = import_typia.createValidate.report(errors);
60
+ ((input2, _path, _exceptionable = true) => {
61
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.message || $report(_exceptionable2, {
62
+ path: _path2 + ".message",
63
+ expected: "string",
64
+ value: input3.message
65
+ })].every((flag) => flag);
66
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
67
+ path: _path + "",
68
+ expected: "ClearWSImagesSessionsResponse",
69
+ value: input2
70
+ })) && $vo0(input2, _path + "", true) || $report(true, {
71
+ path: _path + "",
72
+ expected: "ClearWSImagesSessionsResponse",
73
+ value: input2
74
+ });
75
+ })(input, "$input", true);
76
+ }
77
+ const success = 0 === errors.length;
78
+ return {
79
+ success,
80
+ errors,
81
+ data: success ? input : void 0
82
+ };
83
+ };
7
84
  export {
8
85
  clearWSImagesSessionsPayload,
9
86
  validClearWSImagesSessionsRequest,
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  validWSImagesRequest,
33
33
  validWSImagesResponse,
34
34
  wsImagesPayload
35
- } from "./chunk-HR6GSKDC.js";
35
+ } from "./chunk-UZH5HOBP.js";
36
36
  import {
37
37
  numericCategoriesPayload,
38
38
  validNumericCategoriesRequest,
@@ -82,7 +82,7 @@ import {
82
82
  diffExpPayload,
83
83
  validDERequest,
84
84
  validDEResponse
85
- } from "./chunk-2OBKIEPJ.js";
85
+ } from "./chunk-3QALQGW4.js";
86
86
  import {
87
87
  boxplotPayload,
88
88
  validBoxPlotRequest,
@@ -203,11 +203,6 @@ import {
203
203
  validBurdenRequest,
204
204
  validBurdenResponse
205
205
  } from "./chunk-ZVTZJRGS.js";
206
- import {
207
- clearWSImagesSessionsPayload,
208
- validClearWSImagesSessionsRequest,
209
- validClearWSImagesSessionsResponse
210
- } from "./chunk-QNBBWHEY.js";
211
206
  import {
212
207
  CorrelationVolcanoPayload,
213
208
  validCorrelationVolcanoRequest,
@@ -236,7 +231,6 @@ export {
236
231
  brainImagingPayload,
237
232
  brainImagingSamplesPayload,
238
233
  burdenPayload,
239
- clearWSImagesSessionsPayload,
240
234
  datasetPayload,
241
235
  descrStatsPayload,
242
236
  diffExpPayload,
@@ -284,8 +278,6 @@ export {
284
278
  validBurdenResponse,
285
279
  validCategoriesRequest,
286
280
  validCategoriesResponse,
287
- validClearWSImagesSessionsRequest,
288
- validClearWSImagesSessionsResponse,
289
281
  validCorrelationVolcanoRequest,
290
282
  validCorrelationVolcanoResponse,
291
283
  validDERequest,
package/dist/termdb.DE.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  diffExpPayload,
3
3
  validDERequest,
4
4
  validDEResponse
5
- } from "./chunk-2OBKIEPJ.js";
5
+ } from "./chunk-3QALQGW4.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  diffExpPayload,
package/dist/wsimages.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  validWSImagesRequest,
3
3
  validWSImagesResponse,
4
4
  wsImagesPayload
5
- } from "./chunk-HR6GSKDC.js";
5
+ } from "./chunk-UZH5HOBP.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  validWSImagesRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.111.0",
3
+ "version": "2.112.1-0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/dataset.ts CHANGED
@@ -243,7 +243,6 @@ type Population = {
243
243
  }
244
244
 
245
245
  /** primarily for prebuilding germline genetic association for survivorship portal
246
- accessible to client via termdb.js?for=mds3queryDetails
247
246
  part of state of genomeBrowser plot
248
247
  allowing for user modification
249
248
  */
@@ -334,7 +333,12 @@ so that it can work for a termdb-less ds, e.g. clinvar, where termdbConfig canno
334
333
  }
335
334
  allowSNPs?: boolean
336
335
  vcfid4skewerName?: boolean
336
+ /** config on computing variant data and show as a custom mds3 tk */
337
337
  details?: SnvindelComputeDetails
338
+ /** set to true to show mds3 tk by default when the ds have other genome browser track types besides this snvindel tk
339
+ if ds has only snvindel tk, then the tk will always be shown and no need to set this
340
+ */
341
+ shown?: boolean
338
342
  }
339
343
 
340
344
  type SvFusion = {
@@ -452,44 +456,50 @@ type TopMutatedGenes = {
452
456
  arguments?: GeneArgumentEntry[]
453
457
  }
454
458
 
455
- type TklstEntry = {
456
- /** Determines the column to add the track via the assay names
457
- * shown at the top of the facet table.*/
458
- assay?: string
459
- /** track type (e.g. bigwig, bedj, etc.) */
460
- type: string
461
- /** Human readable name */
462
- name: string
463
- /** Corresponding sample id in the data file */
464
- sampleID?: string
465
- /** data file path */
466
- file: string
467
- /** The key for the second tier of the facet table*/
468
- level1?: string
469
- /** The key for the third tier of the facet table*/
470
- level2?: string
471
- /** Whether the track is shown by default */
472
- defaultShown?: boolean
473
- /** Track height */
474
- stackheight?: number
475
- /** Space added to the height of the track */
476
- stackspace?: number
477
- /** padding-top for the track */
478
- toppad?: number
479
- /** padding-bottom for the track */
480
- bottompad?: number
481
- /** Specifically for bedj tracks. if true, will render all items in a
482
- * single row and do not stack them */
483
- onerow?: number | boolean
484
- }
485
-
486
- type TrackLstEntry = {
487
- /** creates a facet table if true. */
488
- isfacet: boolean
489
- /** name shown for the facet table button from Tracks button*/
490
- name: string
491
- /** tk objs to show on click of the facet table */
492
- tklst: TklstEntry[]
459
+ /** setup for a set of genome browser tracks and/or facet tables, that can be selected for genomebrowser display
460
+ */
461
+ type TrackLst = {
462
+ /** path to legacy json file containing a long array of 1 or more facets
463
+
464
+ [
465
+ {
466
+ "isfacet": true,
467
+ "name": "PEDDEP Prepilot",
468
+ "tracks": [
469
+ {
470
+ name:str // required. used as *identifer* for a track
471
+ sample:str // required. should match with a sample in db!
472
+ assay:str // required. free string not controlled in dictionary yet. if missing the track won't appear in facet table
473
+ type:str // properties inherent for each custom track
474
+ file:str
475
+ },
476
+ ... more tk
477
+ ]
478
+ },
479
+ { ... 2nd facet table }
480
+ ]
481
+
482
+ */
483
+ jsonFile: string
484
+
485
+ /*
486
+ alternative format that's easier to maintain than a giant json file
487
+ facetFiles:[
488
+ {
489
+ // name of this facet table
490
+ name: str
491
+ // a tabular file with columns "tkname/assay/sample/path/json"; last column json provides any customization for a track
492
+ // e.g. "Track 1 \t h3k4me3 \t sample1 \t path/to/file.bw \t {"scale":{..}}"
493
+ tabFile: string
494
+ }
495
+ ]
496
+ */
497
+
498
+ /** list of track names to show by default, should be found in json file
499
+ in json content above, allow a name to be shared by multiple tracks!
500
+ in such case, all tracks identified by given name will show/hide altogether
501
+ */
502
+ activeTracks: string[]
493
503
  }
494
504
 
495
505
  type CnvSegment = {
@@ -712,6 +722,7 @@ type SCImages = {
712
722
  label: string
713
723
  }
714
724
 
725
+ /** genome browser LD track */
715
726
  type LdQuery = {
716
727
  /** each track obj defines a ld track */
717
728
  tracks: {
@@ -719,8 +730,6 @@ type LdQuery = {
719
730
  name: string
720
731
  /** relative path of ld .gz file */
721
732
  file: string
722
- /** dynamically added full path */
723
- file0?: string
724
733
  /** dynamically added */
725
734
  nochr?: boolean
726
735
  /** if to show by default */
@@ -779,6 +788,9 @@ type Mds3Queries = {
779
788
  snvindel?: SnvIndelQuery
780
789
  svfusion?: SvFusion
781
790
  cnv?: CnvSegment
791
+ trackLst?: TrackLst
792
+ ld?: LdQuery
793
+ defaultCoord?: string
782
794
  singleSampleMutation?: SingleSampleMutationQuery
783
795
  NIdata?: NIdataQuery
784
796
  geneExpression?: GeneExpressionQuery
@@ -793,15 +805,12 @@ type Mds3Queries = {
793
805
  src: 'native' | 'gdc'
794
806
  file: string
795
807
  }
796
- trackLst?: TrackLstEntry[]
797
808
  singleCell?: SingleCellQuery
798
809
  geneCnv?: {
799
810
  bygene?: {
800
811
  gdcapi: true
801
812
  }
802
813
  }
803
- defaultCoord?: string
804
- ld?: LdQuery
805
814
  singleSampleGenomeQuantification?: SingleSampleGenomeQuantification
806
815
  singleSampleGbtk?: SingleSampleGbtk
807
816
  /** depreciated. replaced by WSImages */
@@ -50,17 +50,33 @@ export type ExpressionInput = {
50
50
 
51
51
  export type DEResponse = {
52
52
  /** Array containing objects of each gene containing foldchange, gene name, gene symbol, original pvalue, adjusted pvalue */
53
- data: string
53
+ data: DataEntry[]
54
54
  /** Effective sample size for group 1 */
55
55
  sample_size1: number
56
56
  /** Effective sample size for group 2 */
57
57
  sample_size2: number
58
58
  /** Method of DE used wilcoxon/edgeR */
59
59
  method: string
60
- /** Image name from edgeR describing the quality of the fitting from QL pipeline, this is only generated for edgeR not for wilcoxon method */
61
- ql_image?: any
62
- /** Image name from edgeR showing the MDS plot of samples from both groups, this is only generated for edgeR not for wilcoxon method */
63
- mds_image?: any
60
+ /** QL: Image describing the quality of the fitting from QL pipeline, this is only generated for edgeR not for wilcoxon method */
61
+ /** MDS: Image showing the MDS plot of samples from both groups, this is only generated for edgeR not for wilcoxon method */
62
+ images?: DEImage[]
63
+ }
64
+
65
+ export type DataEntry = {
66
+ adjusted_p_value: number
67
+ original_p_value: number
68
+ fold_change: number
69
+ gene_name: string
70
+ gene_symbol: string
71
+ }
72
+
73
+ export type DEImage = {
74
+ /** Image source */
75
+ src: string
76
+ /** File size */
77
+ size: number
78
+ /** Image identifier */
79
+ key: string
64
80
  }
65
81
 
66
82
  export const diffExpPayload: RoutePayload = {
@@ -10,11 +10,9 @@ export type WSImagesRequest = {
10
10
  export type WSImagesResponse = {
11
11
  // TileServer image session id
12
12
  wsiSessionId?: string
13
- // Identifier for the image instance displayed in the browser
14
- // In case the same image is displayed in multiple browser windows, a new id is generated
15
- browserImageInstanceId?: string
16
13
  slide_dimensions: number[]
17
14
  status: string
15
+ error?: string
18
16
  }
19
17
 
20
18
  export const wsImagesPayload: RoutePayload = {
@@ -1,89 +0,0 @@
1
- import {
2
- __toESM,
3
- require_lib
4
- } from "./chunk-CNSSF43V.js";
5
-
6
- // dist/clearwsisession.ts
7
- var import_typia = __toESM(require_lib(), 1);
8
-
9
- // src/routes/clearwsisessions.ts
10
- var clearWSImagesSessionsPayload = {
11
- request: {
12
- typeId: "ClearWSImagesSessionsRequest"
13
- },
14
- response: {
15
- typeId: "ClearWSImagesSessionsResponse"
16
- }
17
- // examples: []
18
- };
19
-
20
- // dist/clearwsisession.ts
21
- var validClearWSImagesSessionsRequest = (input) => {
22
- const errors = [];
23
- const __is = (input2) => {
24
- const $io0 = (input3) => Array.isArray(input3.sessions);
25
- return "object" === typeof input2 && null !== input2 && $io0(input2);
26
- };
27
- if (false === __is(input)) {
28
- const $report = import_typia.createValidate.report(errors);
29
- ((input2, _path, _exceptionable = true) => {
30
- const $vo0 = (input3, _path2, _exceptionable2 = true) => [Array.isArray(input3.sessions) || $report(_exceptionable2, {
31
- path: _path2 + ".sessions",
32
- expected: "Array<any>",
33
- value: input3.sessions
34
- })].every((flag) => flag);
35
- return ("object" === typeof input2 && null !== input2 || $report(true, {
36
- path: _path + "",
37
- expected: "ClearWSImagesSessionsRequest",
38
- value: input2
39
- })) && $vo0(input2, _path + "", true) || $report(true, {
40
- path: _path + "",
41
- expected: "ClearWSImagesSessionsRequest",
42
- value: input2
43
- });
44
- })(input, "$input", true);
45
- }
46
- const success = 0 === errors.length;
47
- return {
48
- success,
49
- errors,
50
- data: success ? input : void 0
51
- };
52
- };
53
- var validClearWSImagesSessionsResponse = (input) => {
54
- const errors = [];
55
- const __is = (input2) => {
56
- return "object" === typeof input2 && null !== input2 && "string" === typeof input2.message;
57
- };
58
- if (false === __is(input)) {
59
- const $report = import_typia.createValidate.report(errors);
60
- ((input2, _path, _exceptionable = true) => {
61
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.message || $report(_exceptionable2, {
62
- path: _path2 + ".message",
63
- expected: "string",
64
- value: input3.message
65
- })].every((flag) => flag);
66
- return ("object" === typeof input2 && null !== input2 || $report(true, {
67
- path: _path + "",
68
- expected: "ClearWSImagesSessionsResponse",
69
- value: input2
70
- })) && $vo0(input2, _path + "", true) || $report(true, {
71
- path: _path + "",
72
- expected: "ClearWSImagesSessionsResponse",
73
- value: input2
74
- });
75
- })(input, "$input", true);
76
- }
77
- const success = 0 === errors.length;
78
- return {
79
- success,
80
- errors,
81
- data: success ? input : void 0
82
- };
83
- };
84
-
85
- export {
86
- clearWSImagesSessionsPayload,
87
- validClearWSImagesSessionsRequest,
88
- validClearWSImagesSessionsResponse
89
- };