@semiont/core 0.5.29 → 0.5.30

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/openapi.js CHANGED
@@ -17539,12 +17539,40 @@ var require_openapi_validators = __commonJS({
17539
17539
  }
17540
17540
  }
17541
17541
  }
17542
+ if (data.clientId !== void 0) {
17543
+ let data3 = data.clientId;
17544
+ if (typeof data3 !== "string") {
17545
+ let dataType2 = typeof data3;
17546
+ let coerced2 = void 0;
17547
+ if (!(coerced2 !== void 0)) {
17548
+ if (dataType2 == "number" || dataType2 == "boolean") {
17549
+ coerced2 = "" + data3;
17550
+ } else if (data3 === null) {
17551
+ coerced2 = "";
17552
+ } else {
17553
+ const err6 = { instancePath: instancePath + "/clientId", schemaPath: "#/properties/clientId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17554
+ if (vErrors === null) {
17555
+ vErrors = [err6];
17556
+ } else {
17557
+ vErrors.push(err6);
17558
+ }
17559
+ errors++;
17560
+ }
17561
+ }
17562
+ if (coerced2 !== void 0) {
17563
+ data3 = coerced2;
17564
+ if (data !== void 0) {
17565
+ data["clientId"] = coerced2;
17566
+ }
17567
+ }
17568
+ }
17569
+ }
17542
17570
  } else {
17543
- const err6 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
17571
+ const err7 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
17544
17572
  if (vErrors === null) {
17545
- vErrors = [err6];
17573
+ vErrors = [err7];
17546
17574
  } else {
17547
- vErrors.push(err6);
17575
+ vErrors.push(err7);
17548
17576
  }
17549
17577
  errors++;
17550
17578
  }
@@ -17556,13 +17584,22 @@ var require_openapi_validators = __commonJS({
17556
17584
  let vErrors = null;
17557
17585
  let errors = 0;
17558
17586
  if (data && typeof data == "object" && !Array.isArray(data)) {
17587
+ if (data.clientId === void 0) {
17588
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "clientId" }, message: "must have required property 'clientId'" };
17589
+ if (vErrors === null) {
17590
+ vErrors = [err0];
17591
+ } else {
17592
+ vErrors.push(err0);
17593
+ }
17594
+ errors++;
17595
+ }
17559
17596
  for (const key0 in data) {
17560
- if (!(key0 === "global" || key0 === "pendingReplies" || key0 === "scoped")) {
17561
- const err0 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
17597
+ if (!(key0 === "global" || key0 === "pendingReplies" || key0 === "scoped" || key0 === "clientId")) {
17598
+ const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
17562
17599
  if (vErrors === null) {
17563
- vErrors = [err0];
17600
+ vErrors = [err1];
17564
17601
  } else {
17565
- vErrors.push(err0);
17602
+ vErrors.push(err1);
17566
17603
  }
17567
17604
  errors++;
17568
17605
  }
@@ -17582,11 +17619,11 @@ var require_openapi_validators = __commonJS({
17582
17619
  } else if (data1 === null) {
17583
17620
  coerced0 = "";
17584
17621
  } else {
17585
- const err1 = { instancePath: instancePath + "/global/" + i0, schemaPath: "#/properties/global/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17622
+ const err2 = { instancePath: instancePath + "/global/" + i0, schemaPath: "#/properties/global/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17586
17623
  if (vErrors === null) {
17587
- vErrors = [err1];
17624
+ vErrors = [err2];
17588
17625
  } else {
17589
- vErrors.push(err1);
17626
+ vErrors.push(err2);
17590
17627
  }
17591
17628
  errors++;
17592
17629
  }
@@ -17600,11 +17637,11 @@ var require_openapi_validators = __commonJS({
17600
17637
  }
17601
17638
  }
17602
17639
  } else {
17603
- const err2 = { instancePath: instancePath + "/global", schemaPath: "#/properties/global/type", keyword: "type", params: { type: "array" }, message: "must be array" };
17640
+ const err3 = { instancePath: instancePath + "/global", schemaPath: "#/properties/global/type", keyword: "type", params: { type: "array" }, message: "must be array" };
17604
17641
  if (vErrors === null) {
17605
- vErrors = [err2];
17642
+ vErrors = [err3];
17606
17643
  } else {
17607
- vErrors.push(err2);
17644
+ vErrors.push(err3);
17608
17645
  }
17609
17646
  errors++;
17610
17647
  }
@@ -17613,11 +17650,11 @@ var require_openapi_validators = __commonJS({
17613
17650
  let data2 = data.pendingReplies;
17614
17651
  if (Array.isArray(data2)) {
17615
17652
  if (data2.length > 256) {
17616
- const err3 = { instancePath: instancePath + "/pendingReplies", schemaPath: "#/properties/pendingReplies/maxItems", keyword: "maxItems", params: { limit: 256 }, message: "must NOT have more than 256 items" };
17653
+ const err4 = { instancePath: instancePath + "/pendingReplies", schemaPath: "#/properties/pendingReplies/maxItems", keyword: "maxItems", params: { limit: 256 }, message: "must NOT have more than 256 items" };
17617
17654
  if (vErrors === null) {
17618
- vErrors = [err3];
17655
+ vErrors = [err4];
17619
17656
  } else {
17620
- vErrors.push(err3);
17657
+ vErrors.push(err4);
17621
17658
  }
17622
17659
  errors++;
17623
17660
  }
@@ -17633,11 +17670,11 @@ var require_openapi_validators = __commonJS({
17633
17670
  } else if (data3 === null) {
17634
17671
  coerced1 = "";
17635
17672
  } else {
17636
- const err4 = { instancePath: instancePath + "/pendingReplies/" + i1, schemaPath: "#/properties/pendingReplies/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17673
+ const err5 = { instancePath: instancePath + "/pendingReplies/" + i1, schemaPath: "#/properties/pendingReplies/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17637
17674
  if (vErrors === null) {
17638
- vErrors = [err4];
17675
+ vErrors = [err5];
17639
17676
  } else {
17640
- vErrors.push(err4);
17677
+ vErrors.push(err5);
17641
17678
  }
17642
17679
  errors++;
17643
17680
  }
@@ -17651,11 +17688,11 @@ var require_openapi_validators = __commonJS({
17651
17688
  }
17652
17689
  }
17653
17690
  } else {
17654
- const err5 = { instancePath: instancePath + "/pendingReplies", schemaPath: "#/properties/pendingReplies/type", keyword: "type", params: { type: "array" }, message: "must be array" };
17691
+ const err6 = { instancePath: instancePath + "/pendingReplies", schemaPath: "#/properties/pendingReplies/type", keyword: "type", params: { type: "array" }, message: "must be array" };
17655
17692
  if (vErrors === null) {
17656
- vErrors = [err5];
17693
+ vErrors = [err6];
17657
17694
  } else {
17658
- vErrors.push(err5);
17695
+ vErrors.push(err6);
17659
17696
  }
17660
17697
  errors++;
17661
17698
  }
@@ -17668,30 +17705,30 @@ var require_openapi_validators = __commonJS({
17668
17705
  let data5 = data4[i2];
17669
17706
  if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
17670
17707
  if (data5.scope === void 0) {
17671
- const err6 = { instancePath: instancePath + "/scoped/" + i2, schemaPath: "#/properties/scoped/items/required", keyword: "required", params: { missingProperty: "scope" }, message: "must have required property 'scope'" };
17708
+ const err7 = { instancePath: instancePath + "/scoped/" + i2, schemaPath: "#/properties/scoped/items/required", keyword: "required", params: { missingProperty: "scope" }, message: "must have required property 'scope'" };
17672
17709
  if (vErrors === null) {
17673
- vErrors = [err6];
17710
+ vErrors = [err7];
17674
17711
  } else {
17675
- vErrors.push(err6);
17712
+ vErrors.push(err7);
17676
17713
  }
17677
17714
  errors++;
17678
17715
  }
17679
17716
  if (data5.channels === void 0) {
17680
- const err7 = { instancePath: instancePath + "/scoped/" + i2, schemaPath: "#/properties/scoped/items/required", keyword: "required", params: { missingProperty: "channels" }, message: "must have required property 'channels'" };
17717
+ const err8 = { instancePath: instancePath + "/scoped/" + i2, schemaPath: "#/properties/scoped/items/required", keyword: "required", params: { missingProperty: "channels" }, message: "must have required property 'channels'" };
17681
17718
  if (vErrors === null) {
17682
- vErrors = [err7];
17719
+ vErrors = [err8];
17683
17720
  } else {
17684
- vErrors.push(err7);
17721
+ vErrors.push(err8);
17685
17722
  }
17686
17723
  errors++;
17687
17724
  }
17688
17725
  for (const key1 in data5) {
17689
17726
  if (!(key1 === "scope" || key1 === "channels" || key1 === "lastEventId")) {
17690
- const err8 = { instancePath: instancePath + "/scoped/" + i2, schemaPath: "#/properties/scoped/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
17727
+ const err9 = { instancePath: instancePath + "/scoped/" + i2, schemaPath: "#/properties/scoped/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
17691
17728
  if (vErrors === null) {
17692
- vErrors = [err8];
17729
+ vErrors = [err9];
17693
17730
  } else {
17694
- vErrors.push(err8);
17731
+ vErrors.push(err9);
17695
17732
  }
17696
17733
  errors++;
17697
17734
  }
@@ -17707,11 +17744,11 @@ var require_openapi_validators = __commonJS({
17707
17744
  } else if (data6 === null) {
17708
17745
  coerced2 = "";
17709
17746
  } else {
17710
- const err9 = { instancePath: instancePath + "/scoped/" + i2 + "/scope", schemaPath: "#/properties/scoped/items/properties/scope/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17747
+ const err10 = { instancePath: instancePath + "/scoped/" + i2 + "/scope", schemaPath: "#/properties/scoped/items/properties/scope/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17711
17748
  if (vErrors === null) {
17712
- vErrors = [err9];
17749
+ vErrors = [err10];
17713
17750
  } else {
17714
- vErrors.push(err9);
17751
+ vErrors.push(err10);
17715
17752
  }
17716
17753
  errors++;
17717
17754
  }
@@ -17739,11 +17776,11 @@ var require_openapi_validators = __commonJS({
17739
17776
  } else if (data8 === null) {
17740
17777
  coerced3 = "";
17741
17778
  } else {
17742
- const err10 = { instancePath: instancePath + "/scoped/" + i2 + "/channels/" + i3, schemaPath: "#/properties/scoped/items/properties/channels/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17779
+ const err11 = { instancePath: instancePath + "/scoped/" + i2 + "/channels/" + i3, schemaPath: "#/properties/scoped/items/properties/channels/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17743
17780
  if (vErrors === null) {
17744
- vErrors = [err10];
17781
+ vErrors = [err11];
17745
17782
  } else {
17746
- vErrors.push(err10);
17783
+ vErrors.push(err11);
17747
17784
  }
17748
17785
  errors++;
17749
17786
  }
@@ -17757,11 +17794,11 @@ var require_openapi_validators = __commonJS({
17757
17794
  }
17758
17795
  }
17759
17796
  } else {
17760
- const err11 = { instancePath: instancePath + "/scoped/" + i2 + "/channels", schemaPath: "#/properties/scoped/items/properties/channels/type", keyword: "type", params: { type: "array" }, message: "must be array" };
17797
+ const err12 = { instancePath: instancePath + "/scoped/" + i2 + "/channels", schemaPath: "#/properties/scoped/items/properties/channels/type", keyword: "type", params: { type: "array" }, message: "must be array" };
17761
17798
  if (vErrors === null) {
17762
- vErrors = [err11];
17799
+ vErrors = [err12];
17763
17800
  } else {
17764
- vErrors.push(err11);
17801
+ vErrors.push(err12);
17765
17802
  }
17766
17803
  errors++;
17767
17804
  }
@@ -17777,11 +17814,11 @@ var require_openapi_validators = __commonJS({
17777
17814
  } else if (data9 === null) {
17778
17815
  coerced4 = "";
17779
17816
  } else {
17780
- const err12 = { instancePath: instancePath + "/scoped/" + i2 + "/lastEventId", schemaPath: "#/properties/scoped/items/properties/lastEventId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17817
+ const err13 = { instancePath: instancePath + "/scoped/" + i2 + "/lastEventId", schemaPath: "#/properties/scoped/items/properties/lastEventId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17781
17818
  if (vErrors === null) {
17782
- vErrors = [err12];
17819
+ vErrors = [err13];
17783
17820
  } else {
17784
- vErrors.push(err12);
17821
+ vErrors.push(err13);
17785
17822
  }
17786
17823
  errors++;
17787
17824
  }
@@ -17795,31 +17832,59 @@ var require_openapi_validators = __commonJS({
17795
17832
  }
17796
17833
  }
17797
17834
  } else {
17798
- const err13 = { instancePath: instancePath + "/scoped/" + i2, schemaPath: "#/properties/scoped/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
17835
+ const err14 = { instancePath: instancePath + "/scoped/" + i2, schemaPath: "#/properties/scoped/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
17799
17836
  if (vErrors === null) {
17800
- vErrors = [err13];
17837
+ vErrors = [err14];
17801
17838
  } else {
17802
- vErrors.push(err13);
17839
+ vErrors.push(err14);
17803
17840
  }
17804
17841
  errors++;
17805
17842
  }
17806
17843
  }
17807
17844
  } else {
17808
- const err14 = { instancePath: instancePath + "/scoped", schemaPath: "#/properties/scoped/type", keyword: "type", params: { type: "array" }, message: "must be array" };
17845
+ const err15 = { instancePath: instancePath + "/scoped", schemaPath: "#/properties/scoped/type", keyword: "type", params: { type: "array" }, message: "must be array" };
17809
17846
  if (vErrors === null) {
17810
- vErrors = [err14];
17847
+ vErrors = [err15];
17811
17848
  } else {
17812
- vErrors.push(err14);
17849
+ vErrors.push(err15);
17813
17850
  }
17814
17851
  errors++;
17815
17852
  }
17816
17853
  }
17854
+ if (data.clientId !== void 0) {
17855
+ let data10 = data.clientId;
17856
+ if (typeof data10 !== "string") {
17857
+ let dataType5 = typeof data10;
17858
+ let coerced5 = void 0;
17859
+ if (!(coerced5 !== void 0)) {
17860
+ if (dataType5 == "number" || dataType5 == "boolean") {
17861
+ coerced5 = "" + data10;
17862
+ } else if (data10 === null) {
17863
+ coerced5 = "";
17864
+ } else {
17865
+ const err16 = { instancePath: instancePath + "/clientId", schemaPath: "#/properties/clientId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
17866
+ if (vErrors === null) {
17867
+ vErrors = [err16];
17868
+ } else {
17869
+ vErrors.push(err16);
17870
+ }
17871
+ errors++;
17872
+ }
17873
+ }
17874
+ if (coerced5 !== void 0) {
17875
+ data10 = coerced5;
17876
+ if (data !== void 0) {
17877
+ data["clientId"] = coerced5;
17878
+ }
17879
+ }
17880
+ }
17881
+ }
17817
17882
  } else {
17818
- const err15 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
17883
+ const err17 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
17819
17884
  if (vErrors === null) {
17820
- vErrors = [err15];
17885
+ vErrors = [err17];
17821
17886
  } else {
17822
- vErrors.push(err15);
17887
+ vErrors.push(err17);
17823
17888
  }
17824
17889
  errors++;
17825
17890
  }
@@ -24057,8 +24122,17 @@ var require_openapi_validators = __commonJS({
24057
24122
  let vErrors = null;
24058
24123
  let errors = 0;
24059
24124
  if (data && typeof data == "object" && !Array.isArray(data)) {
24060
- if (data.message !== void 0) {
24061
- let data0 = data.message;
24125
+ if (data.correlationId === void 0) {
24126
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "correlationId" }, message: "must have required property 'correlationId'" };
24127
+ if (vErrors === null) {
24128
+ vErrors = [err0];
24129
+ } else {
24130
+ vErrors.push(err0);
24131
+ }
24132
+ errors++;
24133
+ }
24134
+ if (data.correlationId !== void 0) {
24135
+ let data0 = data.correlationId;
24062
24136
  if (typeof data0 !== "string") {
24063
24137
  let dataType0 = typeof data0;
24064
24138
  let coerced0 = void 0;
@@ -24068,11 +24142,11 @@ var require_openapi_validators = __commonJS({
24068
24142
  } else if (data0 === null) {
24069
24143
  coerced0 = "";
24070
24144
  } else {
24071
- const err0 = { instancePath: instancePath + "/message", schemaPath: "#/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" };
24145
+ const err1 = { instancePath: instancePath + "/correlationId", schemaPath: "#/properties/correlationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
24072
24146
  if (vErrors === null) {
24073
- vErrors = [err0];
24147
+ vErrors = [err1];
24074
24148
  } else {
24075
- vErrors.push(err0);
24149
+ vErrors.push(err1);
24076
24150
  }
24077
24151
  errors++;
24078
24152
  }
@@ -24080,25 +24154,27 @@ var require_openapi_validators = __commonJS({
24080
24154
  if (coerced0 !== void 0) {
24081
24155
  data0 = coerced0;
24082
24156
  if (data !== void 0) {
24083
- data["message"] = coerced0;
24157
+ data["correlationId"] = coerced0;
24084
24158
  }
24085
24159
  }
24086
24160
  }
24087
24161
  }
24088
- if (data.percentage !== void 0) {
24089
- let data1 = data.percentage;
24090
- if (!(typeof data1 == "number" && isFinite(data1))) {
24162
+ if (data.message !== void 0) {
24163
+ let data1 = data.message;
24164
+ if (typeof data1 !== "string") {
24091
24165
  let dataType1 = typeof data1;
24092
24166
  let coerced1 = void 0;
24093
24167
  if (!(coerced1 !== void 0)) {
24094
- if (dataType1 == "boolean" || data1 === null || dataType1 == "string" && data1 && data1 == +data1) {
24095
- coerced1 = +data1;
24168
+ if (dataType1 == "number" || dataType1 == "boolean") {
24169
+ coerced1 = "" + data1;
24170
+ } else if (data1 === null) {
24171
+ coerced1 = "";
24096
24172
  } else {
24097
- const err1 = { instancePath: instancePath + "/percentage", schemaPath: "#/properties/percentage/type", keyword: "type", params: { type: "number" }, message: "must be number" };
24173
+ const err2 = { instancePath: instancePath + "/message", schemaPath: "#/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" };
24098
24174
  if (vErrors === null) {
24099
- vErrors = [err1];
24175
+ vErrors = [err2];
24100
24176
  } else {
24101
- vErrors.push(err1);
24177
+ vErrors.push(err2);
24102
24178
  }
24103
24179
  errors++;
24104
24180
  }
@@ -24106,37 +24182,63 @@ var require_openapi_validators = __commonJS({
24106
24182
  if (coerced1 !== void 0) {
24107
24183
  data1 = coerced1;
24108
24184
  if (data !== void 0) {
24109
- data["percentage"] = coerced1;
24185
+ data["message"] = coerced1;
24186
+ }
24187
+ }
24188
+ }
24189
+ }
24190
+ if (data.percentage !== void 0) {
24191
+ let data2 = data.percentage;
24192
+ if (!(typeof data2 == "number" && isFinite(data2))) {
24193
+ let dataType2 = typeof data2;
24194
+ let coerced2 = void 0;
24195
+ if (!(coerced2 !== void 0)) {
24196
+ if (dataType2 == "boolean" || data2 === null || dataType2 == "string" && data2 && data2 == +data2) {
24197
+ coerced2 = +data2;
24198
+ } else {
24199
+ const err3 = { instancePath: instancePath + "/percentage", schemaPath: "#/properties/percentage/type", keyword: "type", params: { type: "number" }, message: "must be number" };
24200
+ if (vErrors === null) {
24201
+ vErrors = [err3];
24202
+ } else {
24203
+ vErrors.push(err3);
24204
+ }
24205
+ errors++;
24206
+ }
24207
+ }
24208
+ if (coerced2 !== void 0) {
24209
+ data2 = coerced2;
24210
+ if (data !== void 0) {
24211
+ data["percentage"] = coerced2;
24110
24212
  }
24111
24213
  }
24112
24214
  }
24113
- if (typeof data1 == "number" && isFinite(data1)) {
24114
- if (data1 > 100 || isNaN(data1)) {
24115
- const err2 = { instancePath: instancePath + "/percentage", schemaPath: "#/properties/percentage/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" };
24215
+ if (typeof data2 == "number" && isFinite(data2)) {
24216
+ if (data2 > 100 || isNaN(data2)) {
24217
+ const err4 = { instancePath: instancePath + "/percentage", schemaPath: "#/properties/percentage/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" };
24116
24218
  if (vErrors === null) {
24117
- vErrors = [err2];
24219
+ vErrors = [err4];
24118
24220
  } else {
24119
- vErrors.push(err2);
24221
+ vErrors.push(err4);
24120
24222
  }
24121
24223
  errors++;
24122
24224
  }
24123
- if (data1 < 0 || isNaN(data1)) {
24124
- const err3 = { instancePath: instancePath + "/percentage", schemaPath: "#/properties/percentage/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
24225
+ if (data2 < 0 || isNaN(data2)) {
24226
+ const err5 = { instancePath: instancePath + "/percentage", schemaPath: "#/properties/percentage/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
24125
24227
  if (vErrors === null) {
24126
- vErrors = [err3];
24228
+ vErrors = [err5];
24127
24229
  } else {
24128
- vErrors.push(err3);
24230
+ vErrors.push(err5);
24129
24231
  }
24130
24232
  errors++;
24131
24233
  }
24132
24234
  }
24133
24235
  }
24134
24236
  } else {
24135
- const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
24237
+ const err6 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
24136
24238
  if (vErrors === null) {
24137
- vErrors = [err4];
24239
+ vErrors = [err6];
24138
24240
  } else {
24139
- vErrors.push(err4);
24241
+ vErrors.push(err6);
24140
24242
  }
24141
24243
  errors++;
24142
24244
  }
@@ -26206,14 +26308,13 @@ var require_openapi_validators = __commonJS({
26206
26308
  validate213.errors = vErrors;
26207
26309
  return errors === 0;
26208
26310
  }
26209
- exports.JobCancelRequest = validate214;
26210
- var schema176 = { "properties": { "jobType": { "enum": ["annotation", "generation"] } }};
26311
+ exports.JobCancelCommand = validate214;
26211
26312
  function validate214(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
26212
26313
  let vErrors = null;
26213
26314
  let errors = 0;
26214
26315
  if (data && typeof data == "object" && !Array.isArray(data)) {
26215
- if (data.jobType === void 0) {
26216
- const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "jobType" }, message: "must have required property 'jobType'" };
26316
+ if (data.resourceId === void 0) {
26317
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "resourceId" }, message: "must have required property 'resourceId'" };
26217
26318
  if (vErrors === null) {
26218
26319
  vErrors = [err0];
26219
26320
  } else {
@@ -26221,8 +26322,26 @@ var require_openapi_validators = __commonJS({
26221
26322
  }
26222
26323
  errors++;
26223
26324
  }
26224
- if (data.correlationId !== void 0) {
26225
- let data0 = data.correlationId;
26325
+ if (data.jobId === void 0) {
26326
+ const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "jobId" }, message: "must have required property 'jobId'" };
26327
+ if (vErrors === null) {
26328
+ vErrors = [err1];
26329
+ } else {
26330
+ vErrors.push(err1);
26331
+ }
26332
+ errors++;
26333
+ }
26334
+ if (data.jobType === void 0) {
26335
+ const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "jobType" }, message: "must have required property 'jobType'" };
26336
+ if (vErrors === null) {
26337
+ vErrors = [err2];
26338
+ } else {
26339
+ vErrors.push(err2);
26340
+ }
26341
+ errors++;
26342
+ }
26343
+ if (data._userId !== void 0) {
26344
+ let data0 = data._userId;
26226
26345
  if (typeof data0 !== "string") {
26227
26346
  let dataType0 = typeof data0;
26228
26347
  let coerced0 = void 0;
@@ -26232,11 +26351,11 @@ var require_openapi_validators = __commonJS({
26232
26351
  } else if (data0 === null) {
26233
26352
  coerced0 = "";
26234
26353
  } else {
26235
- const err1 = { instancePath: instancePath + "/correlationId", schemaPath: "#/properties/correlationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26354
+ const err3 = { instancePath: instancePath + "/_userId", schemaPath: "#/properties/_userId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26236
26355
  if (vErrors === null) {
26237
- vErrors = [err1];
26356
+ vErrors = [err3];
26238
26357
  } else {
26239
- vErrors.push(err1);
26358
+ vErrors.push(err3);
26240
26359
  }
26241
26360
  errors++;
26242
26361
  }
@@ -26244,13 +26363,13 @@ var require_openapi_validators = __commonJS({
26244
26363
  if (coerced0 !== void 0) {
26245
26364
  data0 = coerced0;
26246
26365
  if (data !== void 0) {
26247
- data["correlationId"] = coerced0;
26366
+ data["_userId"] = coerced0;
26248
26367
  }
26249
26368
  }
26250
26369
  }
26251
26370
  }
26252
- if (data.jobType !== void 0) {
26253
- let data1 = data.jobType;
26371
+ if (data.resourceId !== void 0) {
26372
+ let data1 = data.resourceId;
26254
26373
  if (typeof data1 !== "string") {
26255
26374
  let dataType1 = typeof data1;
26256
26375
  let coerced1 = void 0;
@@ -26260,11 +26379,11 @@ var require_openapi_validators = __commonJS({
26260
26379
  } else if (data1 === null) {
26261
26380
  coerced1 = "";
26262
26381
  } else {
26263
- const err2 = { instancePath: instancePath + "/jobType", schemaPath: "#/properties/jobType/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26382
+ const err4 = { instancePath: instancePath + "/resourceId", schemaPath: "#/properties/resourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26264
26383
  if (vErrors === null) {
26265
- vErrors = [err2];
26384
+ vErrors = [err4];
26266
26385
  } else {
26267
- vErrors.push(err2);
26386
+ vErrors.push(err4);
26268
26387
  }
26269
26388
  errors++;
26270
26389
  }
@@ -26272,55 +26391,164 @@ var require_openapi_validators = __commonJS({
26272
26391
  if (coerced1 !== void 0) {
26273
26392
  data1 = coerced1;
26274
26393
  if (data !== void 0) {
26275
- data["jobType"] = coerced1;
26394
+ data["resourceId"] = coerced1;
26276
26395
  }
26277
26396
  }
26278
26397
  }
26279
- if (!(data1 === "annotation" || data1 === "generation")) {
26280
- const err3 = { instancePath: instancePath + "/jobType", schemaPath: "#/properties/jobType/enum", keyword: "enum", params: { allowedValues: schema176.properties.jobType.enum }, message: "must be equal to one of the allowed values" };
26281
- if (vErrors === null) {
26282
- vErrors = [err3];
26283
- } else {
26284
- vErrors.push(err3);
26285
- }
26286
- errors++;
26287
- }
26288
- }
26289
- } else {
26290
- const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26291
- if (vErrors === null) {
26292
- vErrors = [err4];
26293
- } else {
26294
- vErrors.push(err4);
26295
26398
  }
26296
- errors++;
26297
- }
26298
- validate214.errors = vErrors;
26299
- return errors === 0;
26300
- }
26301
- exports.JobClaimCommand = validate215;
26302
- function validate215(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
26303
- let vErrors = null;
26304
- let errors = 0;
26305
- if (data && typeof data == "object" && !Array.isArray(data)) {
26306
- if (data.correlationId === void 0) {
26307
- const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "correlationId" }, message: "must have required property 'correlationId'" };
26308
- if (vErrors === null) {
26309
- vErrors = [err0];
26310
- } else {
26311
- vErrors.push(err0);
26399
+ if (data.jobId !== void 0) {
26400
+ let data2 = data.jobId;
26401
+ if (typeof data2 !== "string") {
26402
+ let dataType2 = typeof data2;
26403
+ let coerced2 = void 0;
26404
+ if (!(coerced2 !== void 0)) {
26405
+ if (dataType2 == "number" || dataType2 == "boolean") {
26406
+ coerced2 = "" + data2;
26407
+ } else if (data2 === null) {
26408
+ coerced2 = "";
26409
+ } else {
26410
+ const err5 = { instancePath: instancePath + "/jobId", schemaPath: "#/properties/jobId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26411
+ if (vErrors === null) {
26412
+ vErrors = [err5];
26413
+ } else {
26414
+ vErrors.push(err5);
26415
+ }
26416
+ errors++;
26417
+ }
26418
+ }
26419
+ if (coerced2 !== void 0) {
26420
+ data2 = coerced2;
26421
+ if (data !== void 0) {
26422
+ data["jobId"] = coerced2;
26423
+ }
26424
+ }
26312
26425
  }
26313
- errors++;
26314
26426
  }
26315
- if (data.jobId === void 0) {
26316
- const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "jobId" }, message: "must have required property 'jobId'" };
26317
- if (vErrors === null) {
26318
- vErrors = [err1];
26427
+ if (data.jobType !== void 0) {
26428
+ let data3 = data.jobType;
26429
+ if (typeof data3 !== "string") {
26430
+ let dataType3 = typeof data3;
26431
+ let coerced3 = void 0;
26432
+ if (!(coerced3 !== void 0)) {
26433
+ if (dataType3 == "number" || dataType3 == "boolean") {
26434
+ coerced3 = "" + data3;
26435
+ } else if (data3 === null) {
26436
+ coerced3 = "";
26437
+ } else {
26438
+ const err6 = { instancePath: instancePath + "/jobType", schemaPath: "#/components/schemas/JobType/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26439
+ if (vErrors === null) {
26440
+ vErrors = [err6];
26441
+ } else {
26442
+ vErrors.push(err6);
26443
+ }
26444
+ errors++;
26445
+ }
26446
+ }
26447
+ if (coerced3 !== void 0) {
26448
+ data3 = coerced3;
26449
+ if (data !== void 0) {
26450
+ data["jobType"] = coerced3;
26451
+ }
26452
+ }
26453
+ }
26454
+ if (!(data3 === "reference-annotation" || data3 === "generation" || data3 === "highlight-annotation" || data3 === "assessment-annotation" || data3 === "comment-annotation" || data3 === "tag-annotation")) {
26455
+ const err7 = { instancePath: instancePath + "/jobType", schemaPath: "#/components/schemas/JobType/enum", keyword: "enum", params: { allowedValues: schema62.enum }, message: "must be equal to one of the allowed values" };
26456
+ if (vErrors === null) {
26457
+ vErrors = [err7];
26458
+ } else {
26459
+ vErrors.push(err7);
26460
+ }
26461
+ errors++;
26462
+ }
26463
+ }
26464
+ if (data.annotationId !== void 0) {
26465
+ let data4 = data.annotationId;
26466
+ if (typeof data4 !== "string") {
26467
+ let dataType4 = typeof data4;
26468
+ let coerced4 = void 0;
26469
+ if (!(coerced4 !== void 0)) {
26470
+ if (dataType4 == "number" || dataType4 == "boolean") {
26471
+ coerced4 = "" + data4;
26472
+ } else if (data4 === null) {
26473
+ coerced4 = "";
26474
+ } else {
26475
+ const err8 = { instancePath: instancePath + "/annotationId", schemaPath: "#/properties/annotationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26476
+ if (vErrors === null) {
26477
+ vErrors = [err8];
26478
+ } else {
26479
+ vErrors.push(err8);
26480
+ }
26481
+ errors++;
26482
+ }
26483
+ }
26484
+ if (coerced4 !== void 0) {
26485
+ data4 = coerced4;
26486
+ if (data !== void 0) {
26487
+ data["annotationId"] = coerced4;
26488
+ }
26489
+ }
26490
+ }
26491
+ }
26492
+ if (data.completedUnits !== void 0) {
26493
+ let data5 = data.completedUnits;
26494
+ if (Array.isArray(data5)) {
26495
+ const len0 = data5.length;
26496
+ for (let i0 = 0; i0 < len0; i0++) {
26497
+ let data6 = data5[i0];
26498
+ if (typeof data6 !== "string") {
26499
+ let dataType5 = typeof data6;
26500
+ let coerced5 = void 0;
26501
+ if (!(coerced5 !== void 0)) {
26502
+ if (dataType5 == "number" || dataType5 == "boolean") {
26503
+ coerced5 = "" + data6;
26504
+ } else if (data6 === null) {
26505
+ coerced5 = "";
26506
+ } else {
26507
+ const err9 = { instancePath: instancePath + "/completedUnits/" + i0, schemaPath: "#/properties/completedUnits/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26508
+ if (vErrors === null) {
26509
+ vErrors = [err9];
26510
+ } else {
26511
+ vErrors.push(err9);
26512
+ }
26513
+ errors++;
26514
+ }
26515
+ }
26516
+ if (coerced5 !== void 0) {
26517
+ data6 = coerced5;
26518
+ if (data5 !== void 0) {
26519
+ data5[i0] = coerced5;
26520
+ }
26521
+ }
26522
+ }
26523
+ }
26319
26524
  } else {
26320
- vErrors.push(err1);
26525
+ const err10 = { instancePath: instancePath + "/completedUnits", schemaPath: "#/properties/completedUnits/type", keyword: "type", params: { type: "array" }, message: "must be array" };
26526
+ if (vErrors === null) {
26527
+ vErrors = [err10];
26528
+ } else {
26529
+ vErrors.push(err10);
26530
+ }
26531
+ errors++;
26321
26532
  }
26322
- errors++;
26323
26533
  }
26534
+ } else {
26535
+ const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26536
+ if (vErrors === null) {
26537
+ vErrors = [err11];
26538
+ } else {
26539
+ vErrors.push(err11);
26540
+ }
26541
+ errors++;
26542
+ }
26543
+ validate214.errors = vErrors;
26544
+ return errors === 0;
26545
+ }
26546
+ exports.JobCancelRequest = validate215;
26547
+ var schema178 = { "properties": { "jobType": { "enum": ["annotation", "generation"]} } };
26548
+ function validate215(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
26549
+ let vErrors = null;
26550
+ let errors = 0;
26551
+ if (data && typeof data == "object" && !Array.isArray(data)) {
26324
26552
  if (data.correlationId !== void 0) {
26325
26553
  let data0 = data.correlationId;
26326
26554
  if (typeof data0 !== "string") {
@@ -26332,11 +26560,11 @@ var require_openapi_validators = __commonJS({
26332
26560
  } else if (data0 === null) {
26333
26561
  coerced0 = "";
26334
26562
  } else {
26335
- const err2 = { instancePath: instancePath + "/correlationId", schemaPath: "#/properties/correlationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26563
+ const err0 = { instancePath: instancePath + "/correlationId", schemaPath: "#/properties/correlationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26336
26564
  if (vErrors === null) {
26337
- vErrors = [err2];
26565
+ vErrors = [err0];
26338
26566
  } else {
26339
- vErrors.push(err2);
26567
+ vErrors.push(err0);
26340
26568
  }
26341
26569
  errors++;
26342
26570
  }
@@ -26360,11 +26588,11 @@ var require_openapi_validators = __commonJS({
26360
26588
  } else if (data1 === null) {
26361
26589
  coerced1 = "";
26362
26590
  } else {
26363
- const err3 = { instancePath: instancePath + "/jobId", schemaPath: "#/properties/jobId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26591
+ const err1 = { instancePath: instancePath + "/jobId", schemaPath: "#/properties/jobId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26364
26592
  if (vErrors === null) {
26365
- vErrors = [err3];
26593
+ vErrors = [err1];
26366
26594
  } else {
26367
- vErrors.push(err3);
26595
+ vErrors.push(err1);
26368
26596
  }
26369
26597
  errors++;
26370
26598
  }
@@ -26377,6 +26605,43 @@ var require_openapi_validators = __commonJS({
26377
26605
  }
26378
26606
  }
26379
26607
  }
26608
+ if (data.jobType !== void 0) {
26609
+ let data2 = data.jobType;
26610
+ if (typeof data2 !== "string") {
26611
+ let dataType2 = typeof data2;
26612
+ let coerced2 = void 0;
26613
+ if (!(coerced2 !== void 0)) {
26614
+ if (dataType2 == "number" || dataType2 == "boolean") {
26615
+ coerced2 = "" + data2;
26616
+ } else if (data2 === null) {
26617
+ coerced2 = "";
26618
+ } else {
26619
+ const err2 = { instancePath: instancePath + "/jobType", schemaPath: "#/properties/jobType/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26620
+ if (vErrors === null) {
26621
+ vErrors = [err2];
26622
+ } else {
26623
+ vErrors.push(err2);
26624
+ }
26625
+ errors++;
26626
+ }
26627
+ }
26628
+ if (coerced2 !== void 0) {
26629
+ data2 = coerced2;
26630
+ if (data !== void 0) {
26631
+ data["jobType"] = coerced2;
26632
+ }
26633
+ }
26634
+ }
26635
+ if (!(data2 === "annotation" || data2 === "generation")) {
26636
+ const err3 = { instancePath: instancePath + "/jobType", schemaPath: "#/properties/jobType/enum", keyword: "enum", params: { allowedValues: schema178.properties.jobType.enum }, message: "must be equal to one of the allowed values" };
26637
+ if (vErrors === null) {
26638
+ vErrors = [err3];
26639
+ } else {
26640
+ vErrors.push(err3);
26641
+ }
26642
+ errors++;
26643
+ }
26644
+ }
26380
26645
  } else {
26381
26646
  const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26382
26647
  if (vErrors === null) {
@@ -26389,14 +26654,13 @@ var require_openapi_validators = __commonJS({
26389
26654
  validate215.errors = vErrors;
26390
26655
  return errors === 0;
26391
26656
  }
26392
- exports.JobCommentAnnotationResult = validate216;
26393
- var schema178 = { "properties": { "kind": { "enum": ["comment-annotation"]}}};
26657
+ exports.JobCheckpointCommand = validate216;
26394
26658
  function validate216(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
26395
26659
  let vErrors = null;
26396
26660
  let errors = 0;
26397
26661
  if (data && typeof data == "object" && !Array.isArray(data)) {
26398
- if (data.kind === void 0) {
26399
- const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
26662
+ if (data.jobId === void 0) {
26663
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "jobId" }, message: "must have required property 'jobId'" };
26400
26664
  if (vErrors === null) {
26401
26665
  vErrors = [err0];
26402
26666
  } else {
@@ -26404,8 +26668,8 @@ var require_openapi_validators = __commonJS({
26404
26668
  }
26405
26669
  errors++;
26406
26670
  }
26407
- if (data.commentsFound === void 0) {
26408
- const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "commentsFound" }, message: "must have required property 'commentsFound'" };
26671
+ if (data.completedUnits === void 0) {
26672
+ const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "completedUnits" }, message: "must have required property 'completedUnits'" };
26409
26673
  if (vErrors === null) {
26410
26674
  vErrors = [err1];
26411
26675
  } else {
@@ -26413,17 +26677,8 @@ var require_openapi_validators = __commonJS({
26413
26677
  }
26414
26678
  errors++;
26415
26679
  }
26416
- if (data.commentsCreated === void 0) {
26417
- const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "commentsCreated" }, message: "must have required property 'commentsCreated'" };
26418
- if (vErrors === null) {
26419
- vErrors = [err2];
26420
- } else {
26421
- vErrors.push(err2);
26422
- }
26423
- errors++;
26424
- }
26425
- if (data.kind !== void 0) {
26426
- let data0 = data.kind;
26680
+ if (data._userId !== void 0) {
26681
+ let data0 = data._userId;
26427
26682
  if (typeof data0 !== "string") {
26428
26683
  let dataType0 = typeof data0;
26429
26684
  let coerced0 = void 0;
@@ -26433,11 +26688,11 @@ var require_openapi_validators = __commonJS({
26433
26688
  } else if (data0 === null) {
26434
26689
  coerced0 = "";
26435
26690
  } else {
26436
- const err3 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26691
+ const err2 = { instancePath: instancePath + "/_userId", schemaPath: "#/properties/_userId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26437
26692
  if (vErrors === null) {
26438
- vErrors = [err3];
26693
+ vErrors = [err2];
26439
26694
  } else {
26440
- vErrors.push(err3);
26695
+ vErrors.push(err2);
26441
26696
  }
26442
26697
  errors++;
26443
26698
  }
@@ -26445,32 +26700,266 @@ var require_openapi_validators = __commonJS({
26445
26700
  if (coerced0 !== void 0) {
26446
26701
  data0 = coerced0;
26447
26702
  if (data !== void 0) {
26448
- data["kind"] = coerced0;
26703
+ data["_userId"] = coerced0;
26449
26704
  }
26450
26705
  }
26451
26706
  }
26452
- if (!(data0 === "comment-annotation")) {
26453
- const err4 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema178.properties.kind.enum }, message: "must be equal to one of the allowed values" };
26454
- if (vErrors === null) {
26455
- vErrors = [err4];
26456
- } else {
26457
- vErrors.push(err4);
26458
- }
26459
- errors++;
26460
- }
26461
26707
  }
26462
- if (data.commentsFound !== void 0) {
26463
- let data1 = data.commentsFound;
26464
- if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
26708
+ if (data.jobId !== void 0) {
26709
+ let data1 = data.jobId;
26710
+ if (typeof data1 !== "string") {
26465
26711
  let dataType1 = typeof data1;
26466
26712
  let coerced1 = void 0;
26467
26713
  if (!(coerced1 !== void 0)) {
26468
- if (dataType1 === "boolean" || data1 === null || dataType1 === "string" && data1 && data1 == +data1 && !(data1 % 1)) {
26469
- coerced1 = +data1;
26714
+ if (dataType1 == "number" || dataType1 == "boolean") {
26715
+ coerced1 = "" + data1;
26716
+ } else if (data1 === null) {
26717
+ coerced1 = "";
26470
26718
  } else {
26471
- const err5 = { instancePath: instancePath + "/commentsFound", schemaPath: "#/properties/commentsFound/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
26719
+ const err3 = { instancePath: instancePath + "/jobId", schemaPath: "#/properties/jobId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26472
26720
  if (vErrors === null) {
26473
- vErrors = [err5];
26721
+ vErrors = [err3];
26722
+ } else {
26723
+ vErrors.push(err3);
26724
+ }
26725
+ errors++;
26726
+ }
26727
+ }
26728
+ if (coerced1 !== void 0) {
26729
+ data1 = coerced1;
26730
+ if (data !== void 0) {
26731
+ data["jobId"] = coerced1;
26732
+ }
26733
+ }
26734
+ }
26735
+ }
26736
+ if (data.completedUnits !== void 0) {
26737
+ let data2 = data.completedUnits;
26738
+ if (Array.isArray(data2)) {
26739
+ const len0 = data2.length;
26740
+ for (let i0 = 0; i0 < len0; i0++) {
26741
+ let data3 = data2[i0];
26742
+ if (typeof data3 !== "string") {
26743
+ let dataType2 = typeof data3;
26744
+ let coerced2 = void 0;
26745
+ if (!(coerced2 !== void 0)) {
26746
+ if (dataType2 == "number" || dataType2 == "boolean") {
26747
+ coerced2 = "" + data3;
26748
+ } else if (data3 === null) {
26749
+ coerced2 = "";
26750
+ } else {
26751
+ const err4 = { instancePath: instancePath + "/completedUnits/" + i0, schemaPath: "#/properties/completedUnits/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26752
+ if (vErrors === null) {
26753
+ vErrors = [err4];
26754
+ } else {
26755
+ vErrors.push(err4);
26756
+ }
26757
+ errors++;
26758
+ }
26759
+ }
26760
+ if (coerced2 !== void 0) {
26761
+ data3 = coerced2;
26762
+ if (data2 !== void 0) {
26763
+ data2[i0] = coerced2;
26764
+ }
26765
+ }
26766
+ }
26767
+ }
26768
+ } else {
26769
+ const err5 = { instancePath: instancePath + "/completedUnits", schemaPath: "#/properties/completedUnits/type", keyword: "type", params: { type: "array" }, message: "must be array" };
26770
+ if (vErrors === null) {
26771
+ vErrors = [err5];
26772
+ } else {
26773
+ vErrors.push(err5);
26774
+ }
26775
+ errors++;
26776
+ }
26777
+ }
26778
+ } else {
26779
+ const err6 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26780
+ if (vErrors === null) {
26781
+ vErrors = [err6];
26782
+ } else {
26783
+ vErrors.push(err6);
26784
+ }
26785
+ errors++;
26786
+ }
26787
+ validate216.errors = vErrors;
26788
+ return errors === 0;
26789
+ }
26790
+ exports.JobClaimCommand = validate217;
26791
+ function validate217(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
26792
+ let vErrors = null;
26793
+ let errors = 0;
26794
+ if (data && typeof data == "object" && !Array.isArray(data)) {
26795
+ if (data.correlationId === void 0) {
26796
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "correlationId" }, message: "must have required property 'correlationId'" };
26797
+ if (vErrors === null) {
26798
+ vErrors = [err0];
26799
+ } else {
26800
+ vErrors.push(err0);
26801
+ }
26802
+ errors++;
26803
+ }
26804
+ if (data.jobId === void 0) {
26805
+ const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "jobId" }, message: "must have required property 'jobId'" };
26806
+ if (vErrors === null) {
26807
+ vErrors = [err1];
26808
+ } else {
26809
+ vErrors.push(err1);
26810
+ }
26811
+ errors++;
26812
+ }
26813
+ if (data.correlationId !== void 0) {
26814
+ let data0 = data.correlationId;
26815
+ if (typeof data0 !== "string") {
26816
+ let dataType0 = typeof data0;
26817
+ let coerced0 = void 0;
26818
+ if (!(coerced0 !== void 0)) {
26819
+ if (dataType0 == "number" || dataType0 == "boolean") {
26820
+ coerced0 = "" + data0;
26821
+ } else if (data0 === null) {
26822
+ coerced0 = "";
26823
+ } else {
26824
+ const err2 = { instancePath: instancePath + "/correlationId", schemaPath: "#/properties/correlationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26825
+ if (vErrors === null) {
26826
+ vErrors = [err2];
26827
+ } else {
26828
+ vErrors.push(err2);
26829
+ }
26830
+ errors++;
26831
+ }
26832
+ }
26833
+ if (coerced0 !== void 0) {
26834
+ data0 = coerced0;
26835
+ if (data !== void 0) {
26836
+ data["correlationId"] = coerced0;
26837
+ }
26838
+ }
26839
+ }
26840
+ }
26841
+ if (data.jobId !== void 0) {
26842
+ let data1 = data.jobId;
26843
+ if (typeof data1 !== "string") {
26844
+ let dataType1 = typeof data1;
26845
+ let coerced1 = void 0;
26846
+ if (!(coerced1 !== void 0)) {
26847
+ if (dataType1 == "number" || dataType1 == "boolean") {
26848
+ coerced1 = "" + data1;
26849
+ } else if (data1 === null) {
26850
+ coerced1 = "";
26851
+ } else {
26852
+ const err3 = { instancePath: instancePath + "/jobId", schemaPath: "#/properties/jobId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26853
+ if (vErrors === null) {
26854
+ vErrors = [err3];
26855
+ } else {
26856
+ vErrors.push(err3);
26857
+ }
26858
+ errors++;
26859
+ }
26860
+ }
26861
+ if (coerced1 !== void 0) {
26862
+ data1 = coerced1;
26863
+ if (data !== void 0) {
26864
+ data["jobId"] = coerced1;
26865
+ }
26866
+ }
26867
+ }
26868
+ }
26869
+ } else {
26870
+ const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26871
+ if (vErrors === null) {
26872
+ vErrors = [err4];
26873
+ } else {
26874
+ vErrors.push(err4);
26875
+ }
26876
+ errors++;
26877
+ }
26878
+ validate217.errors = vErrors;
26879
+ return errors === 0;
26880
+ }
26881
+ exports.JobCommentAnnotationResult = validate218;
26882
+ var schema181 = { "properties": { "kind": { "enum": ["comment-annotation"]}}};
26883
+ function validate218(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
26884
+ let vErrors = null;
26885
+ let errors = 0;
26886
+ if (data && typeof data == "object" && !Array.isArray(data)) {
26887
+ if (data.kind === void 0) {
26888
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
26889
+ if (vErrors === null) {
26890
+ vErrors = [err0];
26891
+ } else {
26892
+ vErrors.push(err0);
26893
+ }
26894
+ errors++;
26895
+ }
26896
+ if (data.commentsFound === void 0) {
26897
+ const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "commentsFound" }, message: "must have required property 'commentsFound'" };
26898
+ if (vErrors === null) {
26899
+ vErrors = [err1];
26900
+ } else {
26901
+ vErrors.push(err1);
26902
+ }
26903
+ errors++;
26904
+ }
26905
+ if (data.commentsCreated === void 0) {
26906
+ const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "commentsCreated" }, message: "must have required property 'commentsCreated'" };
26907
+ if (vErrors === null) {
26908
+ vErrors = [err2];
26909
+ } else {
26910
+ vErrors.push(err2);
26911
+ }
26912
+ errors++;
26913
+ }
26914
+ if (data.kind !== void 0) {
26915
+ let data0 = data.kind;
26916
+ if (typeof data0 !== "string") {
26917
+ let dataType0 = typeof data0;
26918
+ let coerced0 = void 0;
26919
+ if (!(coerced0 !== void 0)) {
26920
+ if (dataType0 == "number" || dataType0 == "boolean") {
26921
+ coerced0 = "" + data0;
26922
+ } else if (data0 === null) {
26923
+ coerced0 = "";
26924
+ } else {
26925
+ const err3 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26926
+ if (vErrors === null) {
26927
+ vErrors = [err3];
26928
+ } else {
26929
+ vErrors.push(err3);
26930
+ }
26931
+ errors++;
26932
+ }
26933
+ }
26934
+ if (coerced0 !== void 0) {
26935
+ data0 = coerced0;
26936
+ if (data !== void 0) {
26937
+ data["kind"] = coerced0;
26938
+ }
26939
+ }
26940
+ }
26941
+ if (!(data0 === "comment-annotation")) {
26942
+ const err4 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema181.properties.kind.enum }, message: "must be equal to one of the allowed values" };
26943
+ if (vErrors === null) {
26944
+ vErrors = [err4];
26945
+ } else {
26946
+ vErrors.push(err4);
26947
+ }
26948
+ errors++;
26949
+ }
26950
+ }
26951
+ if (data.commentsFound !== void 0) {
26952
+ let data1 = data.commentsFound;
26953
+ if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
26954
+ let dataType1 = typeof data1;
26955
+ let coerced1 = void 0;
26956
+ if (!(coerced1 !== void 0)) {
26957
+ if (dataType1 === "boolean" || data1 === null || dataType1 === "string" && data1 && data1 == +data1 && !(data1 % 1)) {
26958
+ coerced1 = +data1;
26959
+ } else {
26960
+ const err5 = { instancePath: instancePath + "/commentsFound", schemaPath: "#/properties/commentsFound/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
26961
+ if (vErrors === null) {
26962
+ vErrors = [err5];
26474
26963
  } else {
26475
26964
  vErrors.push(err5);
26476
26965
  }
@@ -26520,16 +27009,16 @@ var require_openapi_validators = __commonJS({
26520
27009
  }
26521
27010
  errors++;
26522
27011
  }
26523
- validate216.errors = vErrors;
27012
+ validate218.errors = vErrors;
26524
27013
  return errors === 0;
26525
27014
  }
26526
- exports.JobCompleteCommand = validate217;
26527
- var schema182 = { "properties": { "kind": { "enum": ["generation"]}}};
26528
- var schema183 = { "properties": { "kind": { "enum": ["reference-annotation"]}}};
26529
- var schema184 = { "properties": { "kind": { "enum": ["highlight-annotation"]}}};
26530
- var schema187 = { "properties": { "kind": { "enum": ["tag-annotation"]}}};
26531
- var schema188 = { "properties": { "kind": { "enum": ["declined"]}, "declined": { "enum": [true]}, "reason": { "enum": ["no-text-layer", "encrypted", "corrupt", "too-large", "empty"]} }};
26532
- function validate218(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
27015
+ exports.JobCompleteCommand = validate219;
27016
+ var schema185 = { "properties": { "kind": { "enum": ["generation"]}}};
27017
+ var schema186 = { "properties": { "kind": { "enum": ["reference-annotation"]}}};
27018
+ var schema187 = { "properties": { "kind": { "enum": ["highlight-annotation"]}}};
27019
+ var schema190 = { "properties": { "kind": { "enum": ["tag-annotation"]}}};
27020
+ var schema191 = { "properties": { "kind": { "enum": ["declined"]}, "declined": { "enum": [true]}, "reason": { "enum": ["no-text-layer", "encrypted", "corrupt", "too-large", "empty"]} }};
27021
+ function validate220(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
26533
27022
  let vErrors = null;
26534
27023
  let errors = 0;
26535
27024
  const _errs0 = errors;
@@ -26601,7 +27090,7 @@ var require_openapi_validators = __commonJS({
26601
27090
  }
26602
27091
  }
26603
27092
  if (!(data0 === "generation")) {
26604
- const err5 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobGenerationResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema182.properties.kind.enum }, message: "must be equal to one of the allowed values" };
27093
+ const err5 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobGenerationResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema185.properties.kind.enum }, message: "must be equal to one of the allowed values" };
26605
27094
  if (vErrors === null) {
26606
27095
  vErrors = [err5];
26607
27096
  } else {
@@ -26773,7 +27262,7 @@ var require_openapi_validators = __commonJS({
26773
27262
  }
26774
27263
  }
26775
27264
  if (!(data4 === "reference-annotation")) {
26776
- const err15 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobReferenceAnnotationResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema183.properties.kind.enum }, message: "must be equal to one of the allowed values" };
27265
+ const err15 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobReferenceAnnotationResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema186.properties.kind.enum }, message: "must be equal to one of the allowed values" };
26777
27266
  if (vErrors === null) {
26778
27267
  vErrors = [err15];
26779
27268
  } else {
@@ -26935,7 +27424,7 @@ var require_openapi_validators = __commonJS({
26935
27424
  }
26936
27425
  }
26937
27426
  if (!(data8 === "highlight-annotation")) {
26938
- const err24 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobHighlightAnnotationResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema184.properties.kind.enum }, message: "must be equal to one of the allowed values" };
27427
+ const err24 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobHighlightAnnotationResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema187.properties.kind.enum }, message: "must be equal to one of the allowed values" };
26939
27428
  if (vErrors === null) {
26940
27429
  vErrors = [err24];
26941
27430
  } else {
@@ -27207,7 +27696,7 @@ var require_openapi_validators = __commonJS({
27207
27696
  }
27208
27697
  }
27209
27698
  if (!(data14 === "comment-annotation")) {
27210
- const err40 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobCommentAnnotationResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema178.properties.kind.enum }, message: "must be equal to one of the allowed values" };
27699
+ const err40 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobCommentAnnotationResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema181.properties.kind.enum }, message: "must be equal to one of the allowed values" };
27211
27700
  if (vErrors === null) {
27212
27701
  vErrors = [err40];
27213
27702
  } else {
@@ -27352,7 +27841,7 @@ var require_openapi_validators = __commonJS({
27352
27841
  }
27353
27842
  }
27354
27843
  if (!(data17 === "tag-annotation")) {
27355
- const err49 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobTagAnnotationResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema187.properties.kind.enum }, message: "must be equal to one of the allowed values" };
27844
+ const err49 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobTagAnnotationResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema190.properties.kind.enum }, message: "must be equal to one of the allowed values" };
27356
27845
  if (vErrors === null) {
27357
27846
  vErrors = [err49];
27358
27847
  } else {
@@ -27527,7 +28016,7 @@ var require_openapi_validators = __commonJS({
27527
28016
  }
27528
28017
  }
27529
28018
  if (!(data22 === "declined")) {
27530
- const err59 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobDeclinedResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema188.properties.kind.enum }, message: "must be equal to one of the allowed values" };
28019
+ const err59 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobDeclinedResult/properties/kind/enum", keyword: "enum", params: { allowedValues: schema191.properties.kind.enum }, message: "must be equal to one of the allowed values" };
27531
28020
  if (vErrors === null) {
27532
28021
  vErrors = [err59];
27533
28022
  } else {
@@ -27563,7 +28052,7 @@ var require_openapi_validators = __commonJS({
27563
28052
  }
27564
28053
  }
27565
28054
  if (!(data23 === true)) {
27566
- const err61 = { instancePath: instancePath + "/declined", schemaPath: "#/components/schemas/JobDeclinedResult/properties/declined/enum", keyword: "enum", params: { allowedValues: schema188.properties.declined.enum }, message: "must be equal to one of the allowed values" };
28055
+ const err61 = { instancePath: instancePath + "/declined", schemaPath: "#/components/schemas/JobDeclinedResult/properties/declined/enum", keyword: "enum", params: { allowedValues: schema191.properties.declined.enum }, message: "must be equal to one of the allowed values" };
27567
28056
  if (vErrors === null) {
27568
28057
  vErrors = [err61];
27569
28058
  } else {
@@ -27600,7 +28089,7 @@ var require_openapi_validators = __commonJS({
27600
28089
  }
27601
28090
  }
27602
28091
  if (!(data24 === "no-text-layer" || data24 === "encrypted" || data24 === "corrupt" || data24 === "too-large" || data24 === "empty")) {
27603
- const err63 = { instancePath: instancePath + "/reason", schemaPath: "#/components/schemas/JobDeclinedResult/properties/reason/enum", keyword: "enum", params: { allowedValues: schema188.properties.reason.enum }, message: "must be equal to one of the allowed values" };
28092
+ const err63 = { instancePath: instancePath + "/reason", schemaPath: "#/components/schemas/JobDeclinedResult/properties/reason/enum", keyword: "enum", params: { allowedValues: schema191.properties.reason.enum }, message: "must be equal to one of the allowed values" };
27604
28093
  if (vErrors === null) {
27605
28094
  vErrors = [err63];
27606
28095
  } else {
@@ -27651,10 +28140,10 @@ var require_openapi_validators = __commonJS({
27651
28140
  }
27652
28141
  }
27653
28142
  }
27654
- validate218.errors = vErrors;
28143
+ validate220.errors = vErrors;
27655
28144
  return errors === 0;
27656
28145
  }
27657
- function validate217(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28146
+ function validate219(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
27658
28147
  let vErrors = null;
27659
28148
  let errors = 0;
27660
28149
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -27835,8 +28324,8 @@ var require_openapi_validators = __commonJS({
27835
28324
  }
27836
28325
  }
27837
28326
  if (data.result !== void 0) {
27838
- if (!validate218(data.result, { instancePath: instancePath + "/result", parentData: data, parentDataProperty: "result", rootData })) {
27839
- vErrors = vErrors === null ? validate218.errors : vErrors.concat(validate218.errors);
28327
+ if (!validate220(data.result, { instancePath: instancePath + "/result", parentData: data, parentDataProperty: "result", rootData })) {
28328
+ vErrors = vErrors === null ? validate220.errors : vErrors.concat(validate220.errors);
27840
28329
  errors = vErrors.length;
27841
28330
  }
27842
28331
  }
@@ -27849,11 +28338,11 @@ var require_openapi_validators = __commonJS({
27849
28338
  }
27850
28339
  errors++;
27851
28340
  }
27852
- validate217.errors = vErrors;
28341
+ validate219.errors = vErrors;
27853
28342
  return errors === 0;
27854
28343
  }
27855
- exports.JobCompletedPayload = validate220;
27856
- function validate220(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28344
+ exports.JobCompletedPayload = validate222;
28345
+ function validate222(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
27857
28346
  let vErrors = null;
27858
28347
  let errors = 0;
27859
28348
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -28097,11 +28586,11 @@ var require_openapi_validators = __commonJS({
28097
28586
  }
28098
28587
  errors++;
28099
28588
  }
28100
- validate220.errors = vErrors;
28589
+ validate222.errors = vErrors;
28101
28590
  return errors === 0;
28102
28591
  }
28103
- exports.JobCreateCommand = validate221;
28104
- function validate221(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28592
+ exports.JobCreateCommand = validate223;
28593
+ function validate223(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28105
28594
  let vErrors = null;
28106
28595
  let errors = 0;
28107
28596
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -28274,11 +28763,11 @@ var require_openapi_validators = __commonJS({
28274
28763
  }
28275
28764
  errors++;
28276
28765
  }
28277
- validate221.errors = vErrors;
28766
+ validate223.errors = vErrors;
28278
28767
  return errors === 0;
28279
28768
  }
28280
- exports.JobCreatedResult = validate222;
28281
- function validate222(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28769
+ exports.JobCreatedResult = validate224;
28770
+ function validate224(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28282
28771
  let vErrors = null;
28283
28772
  let errors = 0;
28284
28773
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -28387,11 +28876,11 @@ var require_openapi_validators = __commonJS({
28387
28876
  }
28388
28877
  errors++;
28389
28878
  }
28390
- validate222.errors = vErrors;
28879
+ validate224.errors = vErrors;
28391
28880
  return errors === 0;
28392
28881
  }
28393
- exports.JobDeclinedResult = validate223;
28394
- function validate223(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28882
+ exports.JobDeclinedResult = validate225;
28883
+ function validate225(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28395
28884
  let vErrors = null;
28396
28885
  let errors = 0;
28397
28886
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -28450,7 +28939,7 @@ var require_openapi_validators = __commonJS({
28450
28939
  }
28451
28940
  }
28452
28941
  if (!(data0 === "declined")) {
28453
- const err4 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema188.properties.kind.enum }, message: "must be equal to one of the allowed values" };
28942
+ const err4 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema191.properties.kind.enum }, message: "must be equal to one of the allowed values" };
28454
28943
  if (vErrors === null) {
28455
28944
  vErrors = [err4];
28456
28945
  } else {
@@ -28486,7 +28975,7 @@ var require_openapi_validators = __commonJS({
28486
28975
  }
28487
28976
  }
28488
28977
  if (!(data1 === true)) {
28489
- const err6 = { instancePath: instancePath + "/declined", schemaPath: "#/properties/declined/enum", keyword: "enum", params: { allowedValues: schema188.properties.declined.enum }, message: "must be equal to one of the allowed values" };
28978
+ const err6 = { instancePath: instancePath + "/declined", schemaPath: "#/properties/declined/enum", keyword: "enum", params: { allowedValues: schema191.properties.declined.enum }, message: "must be equal to one of the allowed values" };
28490
28979
  if (vErrors === null) {
28491
28980
  vErrors = [err6];
28492
28981
  } else {
@@ -28523,7 +29012,7 @@ var require_openapi_validators = __commonJS({
28523
29012
  }
28524
29013
  }
28525
29014
  if (!(data2 === "no-text-layer" || data2 === "encrypted" || data2 === "corrupt" || data2 === "too-large" || data2 === "empty")) {
28526
- const err8 = { instancePath: instancePath + "/reason", schemaPath: "#/properties/reason/enum", keyword: "enum", params: { allowedValues: schema188.properties.reason.enum }, message: "must be equal to one of the allowed values" };
29015
+ const err8 = { instancePath: instancePath + "/reason", schemaPath: "#/properties/reason/enum", keyword: "enum", params: { allowedValues: schema191.properties.reason.enum }, message: "must be equal to one of the allowed values" };
28527
29016
  if (vErrors === null) {
28528
29017
  vErrors = [err8];
28529
29018
  } else {
@@ -28541,11 +29030,12 @@ var require_openapi_validators = __commonJS({
28541
29030
  }
28542
29031
  errors++;
28543
29032
  }
28544
- validate223.errors = vErrors;
29033
+ validate225.errors = vErrors;
28545
29034
  return errors === 0;
28546
29035
  }
28547
- exports.JobFailCommand = validate224;
28548
- function validate224(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
29036
+ exports.JobFailCommand = validate226;
29037
+ var schema198 = { "properties": { "failureClass": { "enum": ["transient", "deterministic"]}}};
29038
+ function validate226(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28549
29039
  let vErrors = null;
28550
29040
  let errors = 0;
28551
29041
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -28762,20 +29252,126 @@ var require_openapi_validators = __commonJS({
28762
29252
  }
28763
29253
  }
28764
29254
  }
29255
+ if (data.completedUnits !== void 0) {
29256
+ let data6 = data.completedUnits;
29257
+ if (Array.isArray(data6)) {
29258
+ const len0 = data6.length;
29259
+ for (let i0 = 0; i0 < len0; i0++) {
29260
+ let data7 = data6[i0];
29261
+ if (typeof data7 !== "string") {
29262
+ let dataType6 = typeof data7;
29263
+ let coerced6 = void 0;
29264
+ if (!(coerced6 !== void 0)) {
29265
+ if (dataType6 == "number" || dataType6 == "boolean") {
29266
+ coerced6 = "" + data7;
29267
+ } else if (data7 === null) {
29268
+ coerced6 = "";
29269
+ } else {
29270
+ const err11 = { instancePath: instancePath + "/completedUnits/" + i0, schemaPath: "#/properties/completedUnits/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
29271
+ if (vErrors === null) {
29272
+ vErrors = [err11];
29273
+ } else {
29274
+ vErrors.push(err11);
29275
+ }
29276
+ errors++;
29277
+ }
29278
+ }
29279
+ if (coerced6 !== void 0) {
29280
+ data7 = coerced6;
29281
+ if (data6 !== void 0) {
29282
+ data6[i0] = coerced6;
29283
+ }
29284
+ }
29285
+ }
29286
+ }
29287
+ } else {
29288
+ const err12 = { instancePath: instancePath + "/completedUnits", schemaPath: "#/properties/completedUnits/type", keyword: "type", params: { type: "array" }, message: "must be array" };
29289
+ if (vErrors === null) {
29290
+ vErrors = [err12];
29291
+ } else {
29292
+ vErrors.push(err12);
29293
+ }
29294
+ errors++;
29295
+ }
29296
+ }
29297
+ if (data.failureClass !== void 0) {
29298
+ let data8 = data.failureClass;
29299
+ if (typeof data8 !== "string") {
29300
+ let dataType7 = typeof data8;
29301
+ let coerced7 = void 0;
29302
+ if (!(coerced7 !== void 0)) {
29303
+ if (dataType7 == "number" || dataType7 == "boolean") {
29304
+ coerced7 = "" + data8;
29305
+ } else if (data8 === null) {
29306
+ coerced7 = "";
29307
+ } else {
29308
+ const err13 = { instancePath: instancePath + "/failureClass", schemaPath: "#/properties/failureClass/type", keyword: "type", params: { type: "string" }, message: "must be string" };
29309
+ if (vErrors === null) {
29310
+ vErrors = [err13];
29311
+ } else {
29312
+ vErrors.push(err13);
29313
+ }
29314
+ errors++;
29315
+ }
29316
+ }
29317
+ if (coerced7 !== void 0) {
29318
+ data8 = coerced7;
29319
+ if (data !== void 0) {
29320
+ data["failureClass"] = coerced7;
29321
+ }
29322
+ }
29323
+ }
29324
+ if (!(data8 === "transient" || data8 === "deterministic")) {
29325
+ const err14 = { instancePath: instancePath + "/failureClass", schemaPath: "#/properties/failureClass/enum", keyword: "enum", params: { allowedValues: schema198.properties.failureClass.enum }, message: "must be equal to one of the allowed values" };
29326
+ if (vErrors === null) {
29327
+ vErrors = [err14];
29328
+ } else {
29329
+ vErrors.push(err14);
29330
+ }
29331
+ errors++;
29332
+ }
29333
+ }
29334
+ if (data.willRetry !== void 0) {
29335
+ let data9 = data.willRetry;
29336
+ if (typeof data9 !== "boolean") {
29337
+ let coerced8 = void 0;
29338
+ if (!(coerced8 !== void 0)) {
29339
+ if (data9 === "false" || data9 === 0 || data9 === null) {
29340
+ coerced8 = false;
29341
+ } else if (data9 === "true" || data9 === 1) {
29342
+ coerced8 = true;
29343
+ } else {
29344
+ const err15 = { instancePath: instancePath + "/willRetry", schemaPath: "#/properties/willRetry/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
29345
+ if (vErrors === null) {
29346
+ vErrors = [err15];
29347
+ } else {
29348
+ vErrors.push(err15);
29349
+ }
29350
+ errors++;
29351
+ }
29352
+ }
29353
+ if (coerced8 !== void 0) {
29354
+ data9 = coerced8;
29355
+ if (data !== void 0) {
29356
+ data["willRetry"] = coerced8;
29357
+ }
29358
+ }
29359
+ }
29360
+ }
28765
29361
  } else {
28766
- const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
29362
+ const err16 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
28767
29363
  if (vErrors === null) {
28768
- vErrors = [err11];
29364
+ vErrors = [err16];
28769
29365
  } else {
28770
- vErrors.push(err11);
29366
+ vErrors.push(err16);
28771
29367
  }
28772
29368
  errors++;
28773
29369
  }
28774
- validate224.errors = vErrors;
29370
+ validate226.errors = vErrors;
28775
29371
  return errors === 0;
28776
29372
  }
28777
- exports.JobFailedPayload = validate225;
28778
- function validate225(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
29373
+ exports.JobFailedPayload = validate227;
29374
+ function validate227(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28779
29375
  let vErrors = null;
28780
29376
  let errors = 0;
28781
29377
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -28964,11 +29560,11 @@ var require_openapi_validators = __commonJS({
28964
29560
  }
28965
29561
  errors++;
28966
29562
  }
28967
- validate225.errors = vErrors;
29563
+ validate227.errors = vErrors;
28968
29564
  return errors === 0;
28969
29565
  }
28970
- exports.JobGenerationResult = validate226;
28971
- function validate226(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
29566
+ exports.JobGenerationResult = validate228;
29567
+ function validate228(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
28972
29568
  let vErrors = null;
28973
29569
  let errors = 0;
28974
29570
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -29036,7 +29632,7 @@ var require_openapi_validators = __commonJS({
29036
29632
  }
29037
29633
  }
29038
29634
  if (!(data0 === "generation")) {
29039
- const err5 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema182.properties.kind.enum }, message: "must be equal to one of the allowed values" };
29635
+ const err5 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema185.properties.kind.enum }, message: "must be equal to one of the allowed values" };
29040
29636
  if (vErrors === null) {
29041
29637
  vErrors = [err5];
29042
29638
  } else {
@@ -29137,11 +29733,11 @@ var require_openapi_validators = __commonJS({
29137
29733
  }
29138
29734
  errors++;
29139
29735
  }
29140
- validate226.errors = vErrors;
29736
+ validate228.errors = vErrors;
29141
29737
  return errors === 0;
29142
29738
  }
29143
- exports.JobHighlightAnnotationResult = validate227;
29144
- function validate227(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
29739
+ exports.JobHighlightAnnotationResult = validate229;
29740
+ function validate229(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
29145
29741
  let vErrors = null;
29146
29742
  let errors = 0;
29147
29743
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -29200,7 +29796,7 @@ var require_openapi_validators = __commonJS({
29200
29796
  }
29201
29797
  }
29202
29798
  if (!(data0 === "highlight-annotation")) {
29203
- const err4 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema184.properties.kind.enum }, message: "must be equal to one of the allowed values" };
29799
+ const err4 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema187.properties.kind.enum }, message: "must be equal to one of the allowed values" };
29204
29800
  if (vErrors === null) {
29205
29801
  vErrors = [err4];
29206
29802
  } else {
@@ -29270,22 +29866,22 @@ var require_openapi_validators = __commonJS({
29270
29866
  }
29271
29867
  errors++;
29272
29868
  }
29273
- validate227.errors = vErrors;
29869
+ validate229.errors = vErrors;
29274
29870
  return errors === 0;
29275
29871
  }
29276
- exports.JobProgress = validate228;
29277
- var schema201 = { "properties": { "current": { "properties": { "kind": { "enum": ["entity-type", "category"]}}}, "requestParams": { "items": { "properties": { "label": { "enum": ["entity-types", "instructions", "tone", "density"]}}} } }};
29278
- var schema203 = { "properties": { "code": { "enum": ["loading"] } }};
29279
- var schema204 = { "properties": { "code": { "enum": ["analyzing"] } }};
29280
- var schema205 = { "properties": { "code": { "enum": ["analyzing-tags"] } }};
29281
- var schema206 = { "properties": { "code": { "enum": ["generating-resource"] } }};
29282
- var schema207 = { "properties": { "code": { "enum": ["creating-resource"] } }};
29283
- var schema208 = { "properties": { "code": { "enum": ["complete-generated"] }}};
29284
- var schema209 = { "properties": { "code": { "enum": ["detecting-entities"] }}};
29285
- var schema210 = { "properties": { "code": { "enum": ["creating-annotations"] }}};
29286
- var schema211 = { "properties": { "code": { "enum": ["creating-tag-annotations"] }}};
29287
- var schema212 = { "properties": { "code": { "enum": ["complete-created"] }, "kind": { "enum": ["highlight", "comment", "assessment", "reference", "tag"]} }};
29288
- function validate229(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
29872
+ exports.JobProgress = validate230;
29873
+ var schema204 = { "properties": { "current": { "properties": { "kind": { "enum": ["entity-type", "category"]}}}, "requestParams": { "items": { "properties": { "label": { "enum": ["entity-types", "instructions", "tone", "density"]}}} } }};
29874
+ var schema206 = { "properties": { "code": { "enum": ["loading"] } }};
29875
+ var schema207 = { "properties": { "code": { "enum": ["analyzing"] } }};
29876
+ var schema208 = { "properties": { "code": { "enum": ["analyzing-tags"] } }};
29877
+ var schema209 = { "properties": { "code": { "enum": ["generating-resource"] } }};
29878
+ var schema210 = { "properties": { "code": { "enum": ["creating-resource"] } }};
29879
+ var schema211 = { "properties": { "code": { "enum": ["complete-generated"] }}};
29880
+ var schema212 = { "properties": { "code": { "enum": ["detecting-entities"] }}};
29881
+ var schema213 = { "properties": { "code": { "enum": ["creating-annotations"] }}};
29882
+ var schema214 = { "properties": { "code": { "enum": ["creating-tag-annotations"] }}};
29883
+ var schema215 = { "properties": { "code": { "enum": ["complete-created"] }, "kind": { "enum": ["highlight", "comment", "assessment", "reference", "tag"]} }};
29884
+ function validate231(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
29289
29885
  let vErrors = null;
29290
29886
  let errors = 0;
29291
29887
  const _errs0 = errors;
@@ -29330,7 +29926,7 @@ var require_openapi_validators = __commonJS({
29330
29926
  }
29331
29927
  }
29332
29928
  if (!(data0 === "loading")) {
29333
- const err2 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressLoading/properties/code/enum", keyword: "enum", params: { allowedValues: schema203.properties.code.enum }, message: "must be equal to one of the allowed values" };
29929
+ const err2 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressLoading/properties/code/enum", keyword: "enum", params: { allowedValues: schema206.properties.code.enum }, message: "must be equal to one of the allowed values" };
29334
29930
  if (vErrors === null) {
29335
29931
  vErrors = [err2];
29336
29932
  } else {
@@ -29392,7 +29988,7 @@ var require_openapi_validators = __commonJS({
29392
29988
  }
29393
29989
  }
29394
29990
  if (!(data1 === "analyzing")) {
29395
- const err6 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressAnalyzing/properties/code/enum", keyword: "enum", params: { allowedValues: schema204.properties.code.enum }, message: "must be equal to one of the allowed values" };
29991
+ const err6 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressAnalyzing/properties/code/enum", keyword: "enum", params: { allowedValues: schema207.properties.code.enum }, message: "must be equal to one of the allowed values" };
29396
29992
  if (vErrors === null) {
29397
29993
  vErrors = [err6];
29398
29994
  } else {
@@ -29458,7 +30054,7 @@ var require_openapi_validators = __commonJS({
29458
30054
  }
29459
30055
  }
29460
30056
  if (!(data2 === "analyzing-tags")) {
29461
- const err10 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressAnalyzingTags/properties/code/enum", keyword: "enum", params: { allowedValues: schema205.properties.code.enum }, message: "must be equal to one of the allowed values" };
30057
+ const err10 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressAnalyzingTags/properties/code/enum", keyword: "enum", params: { allowedValues: schema208.properties.code.enum }, message: "must be equal to one of the allowed values" };
29462
30058
  if (vErrors === null) {
29463
30059
  vErrors = [err10];
29464
30060
  } else {
@@ -29524,7 +30120,7 @@ var require_openapi_validators = __commonJS({
29524
30120
  }
29525
30121
  }
29526
30122
  if (!(data3 === "generating-resource")) {
29527
- const err14 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressGeneratingResource/properties/code/enum", keyword: "enum", params: { allowedValues: schema206.properties.code.enum }, message: "must be equal to one of the allowed values" };
30123
+ const err14 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressGeneratingResource/properties/code/enum", keyword: "enum", params: { allowedValues: schema209.properties.code.enum }, message: "must be equal to one of the allowed values" };
29528
30124
  if (vErrors === null) {
29529
30125
  vErrors = [err14];
29530
30126
  } else {
@@ -29590,7 +30186,7 @@ var require_openapi_validators = __commonJS({
29590
30186
  }
29591
30187
  }
29592
30188
  if (!(data4 === "creating-resource")) {
29593
- const err18 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressCreatingResource/properties/code/enum", keyword: "enum", params: { allowedValues: schema207.properties.code.enum }, message: "must be equal to one of the allowed values" };
30189
+ const err18 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressCreatingResource/properties/code/enum", keyword: "enum", params: { allowedValues: schema210.properties.code.enum }, message: "must be equal to one of the allowed values" };
29594
30190
  if (vErrors === null) {
29595
30191
  vErrors = [err18];
29596
30192
  } else {
@@ -29665,7 +30261,7 @@ var require_openapi_validators = __commonJS({
29665
30261
  }
29666
30262
  }
29667
30263
  if (!(data5 === "complete-generated")) {
29668
- const err23 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressCompleteGenerated/properties/code/enum", keyword: "enum", params: { allowedValues: schema208.properties.code.enum }, message: "must be equal to one of the allowed values" };
30264
+ const err23 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressCompleteGenerated/properties/code/enum", keyword: "enum", params: { allowedValues: schema211.properties.code.enum }, message: "must be equal to one of the allowed values" };
29669
30265
  if (vErrors === null) {
29670
30266
  vErrors = [err23];
29671
30267
  } else {
@@ -29767,7 +30363,7 @@ var require_openapi_validators = __commonJS({
29767
30363
  }
29768
30364
  }
29769
30365
  if (!(data7 === "detecting-entities")) {
29770
- const err29 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressDetectingEntities/properties/code/enum", keyword: "enum", params: { allowedValues: schema209.properties.code.enum }, message: "must be equal to one of the allowed values" };
30366
+ const err29 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressDetectingEntities/properties/code/enum", keyword: "enum", params: { allowedValues: schema212.properties.code.enum }, message: "must be equal to one of the allowed values" };
29771
30367
  if (vErrors === null) {
29772
30368
  vErrors = [err29];
29773
30369
  } else {
@@ -29870,7 +30466,7 @@ var require_openapi_validators = __commonJS({
29870
30466
  }
29871
30467
  }
29872
30468
  if (!(data9 === "creating-annotations")) {
29873
- const err35 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressCreatingAnnotations/properties/code/enum", keyword: "enum", params: { allowedValues: schema210.properties.code.enum }, message: "must be equal to one of the allowed values" };
30469
+ const err35 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressCreatingAnnotations/properties/code/enum", keyword: "enum", params: { allowedValues: schema213.properties.code.enum }, message: "must be equal to one of the allowed values" };
29874
30470
  if (vErrors === null) {
29875
30471
  vErrors = [err35];
29876
30472
  } else {
@@ -29971,7 +30567,7 @@ var require_openapi_validators = __commonJS({
29971
30567
  }
29972
30568
  }
29973
30569
  if (!(data11 === "creating-tag-annotations")) {
29974
- const err41 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressCreatingTagAnnotations/properties/code/enum", keyword: "enum", params: { allowedValues: schema211.properties.code.enum }, message: "must be equal to one of the allowed values" };
30570
+ const err41 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressCreatingTagAnnotations/properties/code/enum", keyword: "enum", params: { allowedValues: schema214.properties.code.enum }, message: "must be equal to one of the allowed values" };
29975
30571
  if (vErrors === null) {
29976
30572
  vErrors = [err41];
29977
30573
  } else {
@@ -30081,7 +30677,7 @@ var require_openapi_validators = __commonJS({
30081
30677
  }
30082
30678
  }
30083
30679
  if (!(data13 === "complete-created")) {
30084
- const err48 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressCompleteCreated/properties/code/enum", keyword: "enum", params: { allowedValues: schema212.properties.code.enum }, message: "must be equal to one of the allowed values" };
30680
+ const err48 = { instancePath: instancePath + "/code", schemaPath: "#/components/schemas/JobProgressCompleteCreated/properties/code/enum", keyword: "enum", params: { allowedValues: schema215.properties.code.enum }, message: "must be equal to one of the allowed values" };
30085
30681
  if (vErrors === null) {
30086
30682
  vErrors = [err48];
30087
30683
  } else {
@@ -30144,7 +30740,7 @@ var require_openapi_validators = __commonJS({
30144
30740
  }
30145
30741
  }
30146
30742
  if (!(data15 === "highlight" || data15 === "comment" || data15 === "assessment" || data15 === "reference" || data15 === "tag")) {
30147
- const err51 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobProgressCompleteCreated/properties/kind/enum", keyword: "enum", params: { allowedValues: schema212.properties.kind.enum }, message: "must be equal to one of the allowed values" };
30743
+ const err51 = { instancePath: instancePath + "/kind", schemaPath: "#/components/schemas/JobProgressCompleteCreated/properties/kind/enum", keyword: "enum", params: { allowedValues: schema215.properties.kind.enum }, message: "must be equal to one of the allowed values" };
30148
30744
  if (vErrors === null) {
30149
30745
  vErrors = [err51];
30150
30746
  } else {
@@ -30198,10 +30794,10 @@ var require_openapi_validators = __commonJS({
30198
30794
  }
30199
30795
  }
30200
30796
  }
30201
- validate229.errors = vErrors;
30797
+ validate231.errors = vErrors;
30202
30798
  return errors === 0;
30203
30799
  }
30204
- function validate228(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
30800
+ function validate230(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
30205
30801
  let vErrors = null;
30206
30802
  let errors = 0;
30207
30803
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -30241,8 +30837,8 @@ var require_openapi_validators = __commonJS({
30241
30837
  }
30242
30838
  }
30243
30839
  if (data.message !== void 0) {
30244
- if (!validate229(data.message, { instancePath: instancePath + "/message", parentData: data, parentDataProperty: "message", rootData })) {
30245
- vErrors = vErrors === null ? validate229.errors : vErrors.concat(validate229.errors);
30840
+ if (!validate231(data.message, { instancePath: instancePath + "/message", parentData: data, parentDataProperty: "message", rootData })) {
30841
+ vErrors = vErrors === null ? validate231.errors : vErrors.concat(validate231.errors);
30246
30842
  errors = vErrors.length;
30247
30843
  }
30248
30844
  }
@@ -30323,7 +30919,7 @@ var require_openapi_validators = __commonJS({
30323
30919
  }
30324
30920
  }
30325
30921
  if (!(data4 === "entity-type" || data4 === "category")) {
30326
- const err6 = { instancePath: instancePath + "/current/kind", schemaPath: "#/properties/current/properties/kind/enum", keyword: "enum", params: { allowedValues: schema201.properties.current.properties.kind.enum }, message: "must be equal to one of the allowed values" };
30922
+ const err6 = { instancePath: instancePath + "/current/kind", schemaPath: "#/properties/current/properties/kind/enum", keyword: "enum", params: { allowedValues: schema204.properties.current.properties.kind.enum }, message: "must be equal to one of the allowed values" };
30327
30923
  if (vErrors === null) {
30328
30924
  vErrors = [err6];
30329
30925
  } else {
@@ -30553,150 +31149,176 @@ var require_openapi_validators = __commonJS({
30553
31149
  }
30554
31150
  }
30555
31151
  }
31152
+ if (data11.persistedCount !== void 0) {
31153
+ let data14 = data11.persistedCount;
31154
+ if (!(typeof data14 == "number" && (!(data14 % 1) && !isNaN(data14)) && isFinite(data14))) {
31155
+ let dataType10 = typeof data14;
31156
+ let coerced10 = void 0;
31157
+ if (!(coerced10 !== void 0)) {
31158
+ if (dataType10 === "boolean" || data14 === null || dataType10 === "string" && data14 && data14 == +data14 && !(data14 % 1)) {
31159
+ coerced10 = +data14;
31160
+ } else {
31161
+ const err17 = { instancePath: instancePath + "/completedItems/" + i0 + "/persistedCount", schemaPath: "#/properties/completedItems/items/properties/persistedCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
31162
+ if (vErrors === null) {
31163
+ vErrors = [err17];
31164
+ } else {
31165
+ vErrors.push(err17);
31166
+ }
31167
+ errors++;
31168
+ }
31169
+ }
31170
+ if (coerced10 !== void 0) {
31171
+ data14 = coerced10;
31172
+ if (data11 !== void 0) {
31173
+ data11["persistedCount"] = coerced10;
31174
+ }
31175
+ }
31176
+ }
31177
+ }
30556
31178
  } else {
30557
- const err17 = { instancePath: instancePath + "/completedItems/" + i0, schemaPath: "#/properties/completedItems/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
31179
+ const err18 = { instancePath: instancePath + "/completedItems/" + i0, schemaPath: "#/properties/completedItems/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
30558
31180
  if (vErrors === null) {
30559
- vErrors = [err17];
31181
+ vErrors = [err18];
30560
31182
  } else {
30561
- vErrors.push(err17);
31183
+ vErrors.push(err18);
30562
31184
  }
30563
31185
  errors++;
30564
31186
  }
30565
31187
  }
30566
31188
  } else {
30567
- const err18 = { instancePath: instancePath + "/completedItems", schemaPath: "#/properties/completedItems/type", keyword: "type", params: { type: "array" }, message: "must be array" };
31189
+ const err19 = { instancePath: instancePath + "/completedItems", schemaPath: "#/properties/completedItems/type", keyword: "type", params: { type: "array" }, message: "must be array" };
30568
31190
  if (vErrors === null) {
30569
- vErrors = [err18];
31191
+ vErrors = [err19];
30570
31192
  } else {
30571
- vErrors.push(err18);
31193
+ vErrors.push(err19);
30572
31194
  }
30573
31195
  errors++;
30574
31196
  }
30575
31197
  }
30576
31198
  if (data.requestParams !== void 0) {
30577
- let data14 = data.requestParams;
30578
- if (Array.isArray(data14)) {
30579
- const len1 = data14.length;
31199
+ let data15 = data.requestParams;
31200
+ if (Array.isArray(data15)) {
31201
+ const len1 = data15.length;
30580
31202
  for (let i1 = 0; i1 < len1; i1++) {
30581
- let data15 = data14[i1];
30582
- if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
30583
- if (data15.label === void 0) {
30584
- const err19 = { instancePath: instancePath + "/requestParams/" + i1, schemaPath: "#/properties/requestParams/items/required", keyword: "required", params: { missingProperty: "label" }, message: "must have required property 'label'" };
31203
+ let data16 = data15[i1];
31204
+ if (data16 && typeof data16 == "object" && !Array.isArray(data16)) {
31205
+ if (data16.label === void 0) {
31206
+ const err20 = { instancePath: instancePath + "/requestParams/" + i1, schemaPath: "#/properties/requestParams/items/required", keyword: "required", params: { missingProperty: "label" }, message: "must have required property 'label'" };
30585
31207
  if (vErrors === null) {
30586
- vErrors = [err19];
31208
+ vErrors = [err20];
30587
31209
  } else {
30588
- vErrors.push(err19);
31210
+ vErrors.push(err20);
30589
31211
  }
30590
31212
  errors++;
30591
31213
  }
30592
- if (data15.value === void 0) {
30593
- const err20 = { instancePath: instancePath + "/requestParams/" + i1, schemaPath: "#/properties/requestParams/items/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
31214
+ if (data16.value === void 0) {
31215
+ const err21 = { instancePath: instancePath + "/requestParams/" + i1, schemaPath: "#/properties/requestParams/items/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
30594
31216
  if (vErrors === null) {
30595
- vErrors = [err20];
31217
+ vErrors = [err21];
30596
31218
  } else {
30597
- vErrors.push(err20);
31219
+ vErrors.push(err21);
30598
31220
  }
30599
31221
  errors++;
30600
31222
  }
30601
- if (data15.label !== void 0) {
30602
- let data16 = data15.label;
30603
- if (typeof data16 !== "string") {
30604
- let dataType10 = typeof data16;
30605
- let coerced10 = void 0;
30606
- if (!(coerced10 !== void 0)) {
30607
- if (dataType10 == "number" || dataType10 == "boolean") {
30608
- coerced10 = "" + data16;
30609
- } else if (data16 === null) {
30610
- coerced10 = "";
31223
+ if (data16.label !== void 0) {
31224
+ let data17 = data16.label;
31225
+ if (typeof data17 !== "string") {
31226
+ let dataType11 = typeof data17;
31227
+ let coerced11 = void 0;
31228
+ if (!(coerced11 !== void 0)) {
31229
+ if (dataType11 == "number" || dataType11 == "boolean") {
31230
+ coerced11 = "" + data17;
31231
+ } else if (data17 === null) {
31232
+ coerced11 = "";
30611
31233
  } else {
30612
- const err21 = { instancePath: instancePath + "/requestParams/" + i1 + "/label", schemaPath: "#/properties/requestParams/items/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
31234
+ const err22 = { instancePath: instancePath + "/requestParams/" + i1 + "/label", schemaPath: "#/properties/requestParams/items/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
30613
31235
  if (vErrors === null) {
30614
- vErrors = [err21];
31236
+ vErrors = [err22];
30615
31237
  } else {
30616
- vErrors.push(err21);
31238
+ vErrors.push(err22);
30617
31239
  }
30618
31240
  errors++;
30619
31241
  }
30620
31242
  }
30621
- if (coerced10 !== void 0) {
30622
- data16 = coerced10;
30623
- if (data15 !== void 0) {
30624
- data15["label"] = coerced10;
31243
+ if (coerced11 !== void 0) {
31244
+ data17 = coerced11;
31245
+ if (data16 !== void 0) {
31246
+ data16["label"] = coerced11;
30625
31247
  }
30626
31248
  }
30627
31249
  }
30628
- if (!(data16 === "entity-types" || data16 === "instructions" || data16 === "tone" || data16 === "density")) {
30629
- const err22 = { instancePath: instancePath + "/requestParams/" + i1 + "/label", schemaPath: "#/properties/requestParams/items/properties/label/enum", keyword: "enum", params: { allowedValues: schema201.properties.requestParams.items.properties.label.enum }, message: "must be equal to one of the allowed values" };
31250
+ if (!(data17 === "entity-types" || data17 === "instructions" || data17 === "tone" || data17 === "density")) {
31251
+ const err23 = { instancePath: instancePath + "/requestParams/" + i1 + "/label", schemaPath: "#/properties/requestParams/items/properties/label/enum", keyword: "enum", params: { allowedValues: schema204.properties.requestParams.items.properties.label.enum }, message: "must be equal to one of the allowed values" };
30630
31252
  if (vErrors === null) {
30631
- vErrors = [err22];
31253
+ vErrors = [err23];
30632
31254
  } else {
30633
- vErrors.push(err22);
31255
+ vErrors.push(err23);
30634
31256
  }
30635
31257
  errors++;
30636
31258
  }
30637
31259
  }
30638
- if (data15.value !== void 0) {
30639
- let data17 = data15.value;
30640
- if (typeof data17 !== "string") {
30641
- let dataType11 = typeof data17;
30642
- let coerced11 = void 0;
30643
- if (!(coerced11 !== void 0)) {
30644
- if (dataType11 == "number" || dataType11 == "boolean") {
30645
- coerced11 = "" + data17;
30646
- } else if (data17 === null) {
30647
- coerced11 = "";
31260
+ if (data16.value !== void 0) {
31261
+ let data18 = data16.value;
31262
+ if (typeof data18 !== "string") {
31263
+ let dataType12 = typeof data18;
31264
+ let coerced12 = void 0;
31265
+ if (!(coerced12 !== void 0)) {
31266
+ if (dataType12 == "number" || dataType12 == "boolean") {
31267
+ coerced12 = "" + data18;
31268
+ } else if (data18 === null) {
31269
+ coerced12 = "";
30648
31270
  } else {
30649
- const err23 = { instancePath: instancePath + "/requestParams/" + i1 + "/value", schemaPath: "#/properties/requestParams/items/properties/value/type", keyword: "type", params: { type: "string" }, message: "must be string" };
31271
+ const err24 = { instancePath: instancePath + "/requestParams/" + i1 + "/value", schemaPath: "#/properties/requestParams/items/properties/value/type", keyword: "type", params: { type: "string" }, message: "must be string" };
30650
31272
  if (vErrors === null) {
30651
- vErrors = [err23];
31273
+ vErrors = [err24];
30652
31274
  } else {
30653
- vErrors.push(err23);
31275
+ vErrors.push(err24);
30654
31276
  }
30655
31277
  errors++;
30656
31278
  }
30657
31279
  }
30658
- if (coerced11 !== void 0) {
30659
- data17 = coerced11;
30660
- if (data15 !== void 0) {
30661
- data15["value"] = coerced11;
31280
+ if (coerced12 !== void 0) {
31281
+ data18 = coerced12;
31282
+ if (data16 !== void 0) {
31283
+ data16["value"] = coerced12;
30662
31284
  }
30663
31285
  }
30664
31286
  }
30665
31287
  }
30666
31288
  } else {
30667
- const err24 = { instancePath: instancePath + "/requestParams/" + i1, schemaPath: "#/properties/requestParams/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
31289
+ const err25 = { instancePath: instancePath + "/requestParams/" + i1, schemaPath: "#/properties/requestParams/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
30668
31290
  if (vErrors === null) {
30669
- vErrors = [err24];
31291
+ vErrors = [err25];
30670
31292
  } else {
30671
- vErrors.push(err24);
31293
+ vErrors.push(err25);
30672
31294
  }
30673
31295
  errors++;
30674
31296
  }
30675
31297
  }
30676
31298
  } else {
30677
- const err25 = { instancePath: instancePath + "/requestParams", schemaPath: "#/properties/requestParams/type", keyword: "type", params: { type: "array" }, message: "must be array" };
31299
+ const err26 = { instancePath: instancePath + "/requestParams", schemaPath: "#/properties/requestParams/type", keyword: "type", params: { type: "array" }, message: "must be array" };
30678
31300
  if (vErrors === null) {
30679
- vErrors = [err25];
31301
+ vErrors = [err26];
30680
31302
  } else {
30681
- vErrors.push(err25);
31303
+ vErrors.push(err26);
30682
31304
  }
30683
31305
  errors++;
30684
31306
  }
30685
31307
  }
30686
31308
  } else {
30687
- const err26 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
31309
+ const err27 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
30688
31310
  if (vErrors === null) {
30689
- vErrors = [err26];
31311
+ vErrors = [err27];
30690
31312
  } else {
30691
- vErrors.push(err26);
31313
+ vErrors.push(err27);
30692
31314
  }
30693
31315
  errors++;
30694
31316
  }
30695
- validate228.errors = vErrors;
31317
+ validate230.errors = vErrors;
30696
31318
  return errors === 0;
30697
31319
  }
30698
- exports.JobProgressAnalyzing = validate231;
30699
- function validate231(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31320
+ exports.JobProgressAnalyzing = validate233;
31321
+ function validate233(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
30700
31322
  let vErrors = null;
30701
31323
  let errors = 0;
30702
31324
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -30737,7 +31359,7 @@ var require_openapi_validators = __commonJS({
30737
31359
  }
30738
31360
  }
30739
31361
  if (!(data0 === "analyzing")) {
30740
- const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema204.properties.code.enum }, message: "must be equal to one of the allowed values" };
31362
+ const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema207.properties.code.enum }, message: "must be equal to one of the allowed values" };
30741
31363
  if (vErrors === null) {
30742
31364
  vErrors = [err2];
30743
31365
  } else {
@@ -30755,11 +31377,11 @@ var require_openapi_validators = __commonJS({
30755
31377
  }
30756
31378
  errors++;
30757
31379
  }
30758
- validate231.errors = vErrors;
31380
+ validate233.errors = vErrors;
30759
31381
  return errors === 0;
30760
31382
  }
30761
- exports.JobProgressAnalyzingTags = validate232;
30762
- function validate232(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31383
+ exports.JobProgressAnalyzingTags = validate234;
31384
+ function validate234(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
30763
31385
  let vErrors = null;
30764
31386
  let errors = 0;
30765
31387
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -30800,7 +31422,7 @@ var require_openapi_validators = __commonJS({
30800
31422
  }
30801
31423
  }
30802
31424
  if (!(data0 === "analyzing-tags")) {
30803
- const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema205.properties.code.enum }, message: "must be equal to one of the allowed values" };
31425
+ const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema208.properties.code.enum }, message: "must be equal to one of the allowed values" };
30804
31426
  if (vErrors === null) {
30805
31427
  vErrors = [err2];
30806
31428
  } else {
@@ -30818,11 +31440,11 @@ var require_openapi_validators = __commonJS({
30818
31440
  }
30819
31441
  errors++;
30820
31442
  }
30821
- validate232.errors = vErrors;
31443
+ validate234.errors = vErrors;
30822
31444
  return errors === 0;
30823
31445
  }
30824
- exports.JobProgressCompleteCreated = validate233;
30825
- function validate233(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31446
+ exports.JobProgressCompleteCreated = validate235;
31447
+ function validate235(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
30826
31448
  let vErrors = null;
30827
31449
  let errors = 0;
30828
31450
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -30881,7 +31503,7 @@ var require_openapi_validators = __commonJS({
30881
31503
  }
30882
31504
  }
30883
31505
  if (!(data0 === "complete-created")) {
30884
- const err4 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema212.properties.code.enum }, message: "must be equal to one of the allowed values" };
31506
+ const err4 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema215.properties.code.enum }, message: "must be equal to one of the allowed values" };
30885
31507
  if (vErrors === null) {
30886
31508
  vErrors = [err4];
30887
31509
  } else {
@@ -30944,7 +31566,7 @@ var require_openapi_validators = __commonJS({
30944
31566
  }
30945
31567
  }
30946
31568
  if (!(data2 === "highlight" || data2 === "comment" || data2 === "assessment" || data2 === "reference" || data2 === "tag")) {
30947
- const err7 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema212.properties.kind.enum }, message: "must be equal to one of the allowed values" };
31569
+ const err7 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema215.properties.kind.enum }, message: "must be equal to one of the allowed values" };
30948
31570
  if (vErrors === null) {
30949
31571
  vErrors = [err7];
30950
31572
  } else {
@@ -30962,11 +31584,11 @@ var require_openapi_validators = __commonJS({
30962
31584
  }
30963
31585
  errors++;
30964
31586
  }
30965
- validate233.errors = vErrors;
31587
+ validate235.errors = vErrors;
30966
31588
  return errors === 0;
30967
31589
  }
30968
- exports.JobProgressCompleteGenerated = validate234;
30969
- function validate234(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31590
+ exports.JobProgressCompleteGenerated = validate236;
31591
+ function validate236(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
30970
31592
  let vErrors = null;
30971
31593
  let errors = 0;
30972
31594
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -31016,7 +31638,7 @@ var require_openapi_validators = __commonJS({
31016
31638
  }
31017
31639
  }
31018
31640
  if (!(data0 === "complete-generated")) {
31019
- const err3 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema208.properties.code.enum }, message: "must be equal to one of the allowed values" };
31641
+ const err3 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema211.properties.code.enum }, message: "must be equal to one of the allowed values" };
31020
31642
  if (vErrors === null) {
31021
31643
  vErrors = [err3];
31022
31644
  } else {
@@ -31061,11 +31683,11 @@ var require_openapi_validators = __commonJS({
31061
31683
  }
31062
31684
  errors++;
31063
31685
  }
31064
- validate234.errors = vErrors;
31686
+ validate236.errors = vErrors;
31065
31687
  return errors === 0;
31066
31688
  }
31067
- exports.JobProgressCreatingAnnotations = validate235;
31068
- function validate235(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31689
+ exports.JobProgressCreatingAnnotations = validate237;
31690
+ function validate237(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31069
31691
  let vErrors = null;
31070
31692
  let errors = 0;
31071
31693
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -31115,7 +31737,7 @@ var require_openapi_validators = __commonJS({
31115
31737
  }
31116
31738
  }
31117
31739
  if (!(data0 === "creating-annotations")) {
31118
- const err3 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema210.properties.code.enum }, message: "must be equal to one of the allowed values" };
31740
+ const err3 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema213.properties.code.enum }, message: "must be equal to one of the allowed values" };
31119
31741
  if (vErrors === null) {
31120
31742
  vErrors = [err3];
31121
31743
  } else {
@@ -31159,11 +31781,11 @@ var require_openapi_validators = __commonJS({
31159
31781
  }
31160
31782
  errors++;
31161
31783
  }
31162
- validate235.errors = vErrors;
31784
+ validate237.errors = vErrors;
31163
31785
  return errors === 0;
31164
31786
  }
31165
- exports.JobProgressCreatingResource = validate236;
31166
- function validate236(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31787
+ exports.JobProgressCreatingResource = validate238;
31788
+ function validate238(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31167
31789
  let vErrors = null;
31168
31790
  let errors = 0;
31169
31791
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -31204,7 +31826,7 @@ var require_openapi_validators = __commonJS({
31204
31826
  }
31205
31827
  }
31206
31828
  if (!(data0 === "creating-resource")) {
31207
- const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema207.properties.code.enum }, message: "must be equal to one of the allowed values" };
31829
+ const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema210.properties.code.enum }, message: "must be equal to one of the allowed values" };
31208
31830
  if (vErrors === null) {
31209
31831
  vErrors = [err2];
31210
31832
  } else {
@@ -31222,11 +31844,11 @@ var require_openapi_validators = __commonJS({
31222
31844
  }
31223
31845
  errors++;
31224
31846
  }
31225
- validate236.errors = vErrors;
31847
+ validate238.errors = vErrors;
31226
31848
  return errors === 0;
31227
31849
  }
31228
- exports.JobProgressCreatingTagAnnotations = validate237;
31229
- function validate237(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31850
+ exports.JobProgressCreatingTagAnnotations = validate239;
31851
+ function validate239(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31230
31852
  let vErrors = null;
31231
31853
  let errors = 0;
31232
31854
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -31276,7 +31898,7 @@ var require_openapi_validators = __commonJS({
31276
31898
  }
31277
31899
  }
31278
31900
  if (!(data0 === "creating-tag-annotations")) {
31279
- const err3 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema211.properties.code.enum }, message: "must be equal to one of the allowed values" };
31901
+ const err3 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema214.properties.code.enum }, message: "must be equal to one of the allowed values" };
31280
31902
  if (vErrors === null) {
31281
31903
  vErrors = [err3];
31282
31904
  } else {
@@ -31320,11 +31942,11 @@ var require_openapi_validators = __commonJS({
31320
31942
  }
31321
31943
  errors++;
31322
31944
  }
31323
- validate237.errors = vErrors;
31945
+ validate239.errors = vErrors;
31324
31946
  return errors === 0;
31325
31947
  }
31326
- exports.JobProgressDetectingEntities = validate238;
31327
- function validate238(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31948
+ exports.JobProgressDetectingEntities = validate240;
31949
+ function validate240(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31328
31950
  let vErrors = null;
31329
31951
  let errors = 0;
31330
31952
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -31374,7 +31996,7 @@ var require_openapi_validators = __commonJS({
31374
31996
  }
31375
31997
  }
31376
31998
  if (!(data0 === "detecting-entities")) {
31377
- const err3 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema209.properties.code.enum }, message: "must be equal to one of the allowed values" };
31999
+ const err3 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema212.properties.code.enum }, message: "must be equal to one of the allowed values" };
31378
32000
  if (vErrors === null) {
31379
32001
  vErrors = [err3];
31380
32002
  } else {
@@ -31420,11 +32042,11 @@ var require_openapi_validators = __commonJS({
31420
32042
  }
31421
32043
  errors++;
31422
32044
  }
31423
- validate238.errors = vErrors;
32045
+ validate240.errors = vErrors;
31424
32046
  return errors === 0;
31425
32047
  }
31426
- exports.JobProgressGeneratingResource = validate239;
31427
- function validate239(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32048
+ exports.JobProgressGeneratingResource = validate241;
32049
+ function validate241(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31428
32050
  let vErrors = null;
31429
32051
  let errors = 0;
31430
32052
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -31465,7 +32087,7 @@ var require_openapi_validators = __commonJS({
31465
32087
  }
31466
32088
  }
31467
32089
  if (!(data0 === "generating-resource")) {
31468
- const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema206.properties.code.enum }, message: "must be equal to one of the allowed values" };
32090
+ const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema209.properties.code.enum }, message: "must be equal to one of the allowed values" };
31469
32091
  if (vErrors === null) {
31470
32092
  vErrors = [err2];
31471
32093
  } else {
@@ -31483,11 +32105,11 @@ var require_openapi_validators = __commonJS({
31483
32105
  }
31484
32106
  errors++;
31485
32107
  }
31486
- validate239.errors = vErrors;
32108
+ validate241.errors = vErrors;
31487
32109
  return errors === 0;
31488
32110
  }
31489
- exports.JobProgressLoading = validate240;
31490
- function validate240(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32111
+ exports.JobProgressLoading = validate242;
32112
+ function validate242(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31491
32113
  let vErrors = null;
31492
32114
  let errors = 0;
31493
32115
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -31528,7 +32150,7 @@ var require_openapi_validators = __commonJS({
31528
32150
  }
31529
32151
  }
31530
32152
  if (!(data0 === "loading")) {
31531
- const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema203.properties.code.enum }, message: "must be equal to one of the allowed values" };
32153
+ const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema206.properties.code.enum }, message: "must be equal to one of the allowed values" };
31532
32154
  if (vErrors === null) {
31533
32155
  vErrors = [err2];
31534
32156
  } else {
@@ -31546,12 +32168,12 @@ var require_openapi_validators = __commonJS({
31546
32168
  }
31547
32169
  errors++;
31548
32170
  }
31549
- validate240.errors = vErrors;
32171
+ validate242.errors = vErrors;
31550
32172
  return errors === 0;
31551
32173
  }
31552
- exports.JobProgressMessage = validate229;
31553
- exports.JobQueuedEvent = validate241;
31554
- function validate241(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32174
+ exports.JobProgressMessage = validate231;
32175
+ exports.JobQueuedEvent = validate243;
32176
+ function validate243(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31555
32177
  let vErrors = null;
31556
32178
  let errors = 0;
31557
32179
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -31712,11 +32334,11 @@ var require_openapi_validators = __commonJS({
31712
32334
  }
31713
32335
  errors++;
31714
32336
  }
31715
- validate241.errors = vErrors;
32337
+ validate243.errors = vErrors;
31716
32338
  return errors === 0;
31717
32339
  }
31718
- exports.JobReferenceAnnotationResult = validate242;
31719
- function validate242(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32340
+ exports.JobReferenceAnnotationResult = validate244;
32341
+ function validate244(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31720
32342
  let vErrors = null;
31721
32343
  let errors = 0;
31722
32344
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -31784,7 +32406,7 @@ var require_openapi_validators = __commonJS({
31784
32406
  }
31785
32407
  }
31786
32408
  if (!(data0 === "reference-annotation")) {
31787
- const err5 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema183.properties.kind.enum }, message: "must be equal to one of the allowed values" };
32409
+ const err5 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema186.properties.kind.enum }, message: "must be equal to one of the allowed values" };
31788
32410
  if (vErrors === null) {
31789
32411
  vErrors = [err5];
31790
32412
  } else {
@@ -31880,11 +32502,11 @@ var require_openapi_validators = __commonJS({
31880
32502
  }
31881
32503
  errors++;
31882
32504
  }
31883
- validate242.errors = vErrors;
32505
+ validate244.errors = vErrors;
31884
32506
  return errors === 0;
31885
32507
  }
31886
- exports.JobReportProgressCommand = validate243;
31887
- function validate243(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32508
+ exports.JobReportProgressCommand = validate245;
32509
+ function validate245(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
31888
32510
  let vErrors = null;
31889
32511
  let errors = 0;
31890
32512
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -32100,8 +32722,8 @@ var require_openapi_validators = __commonJS({
32100
32722
  }
32101
32723
  }
32102
32724
  if (data.progress !== void 0) {
32103
- if (!validate228(data.progress, { instancePath: instancePath + "/progress", parentData: data, parentDataProperty: "progress", rootData })) {
32104
- vErrors = vErrors === null ? validate228.errors : vErrors.concat(validate228.errors);
32725
+ if (!validate230(data.progress, { instancePath: instancePath + "/progress", parentData: data, parentDataProperty: "progress", rootData })) {
32726
+ vErrors = vErrors === null ? validate230.errors : vErrors.concat(validate230.errors);
32105
32727
  errors = vErrors.length;
32106
32728
  }
32107
32729
  }
@@ -32114,12 +32736,12 @@ var require_openapi_validators = __commonJS({
32114
32736
  }
32115
32737
  errors++;
32116
32738
  }
32117
- validate243.errors = vErrors;
32739
+ validate245.errors = vErrors;
32118
32740
  return errors === 0;
32119
32741
  }
32120
- exports.JobResult = validate218;
32121
- exports.JobStartCommand = validate245;
32122
- function validate245(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32742
+ exports.JobResult = validate220;
32743
+ exports.JobStartCommand = validate247;
32744
+ function validate247(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32123
32745
  let vErrors = null;
32124
32746
  let errors = 0;
32125
32747
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -32308,11 +32930,11 @@ var require_openapi_validators = __commonJS({
32308
32930
  }
32309
32931
  errors++;
32310
32932
  }
32311
- validate245.errors = vErrors;
32933
+ validate247.errors = vErrors;
32312
32934
  return errors === 0;
32313
32935
  }
32314
- exports.JobStartedPayload = validate246;
32315
- function validate246(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32936
+ exports.JobStartedPayload = validate248;
32937
+ function validate248(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32316
32938
  let vErrors = null;
32317
32939
  let errors = 0;
32318
32940
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -32462,11 +33084,11 @@ var require_openapi_validators = __commonJS({
32462
33084
  }
32463
33085
  errors++;
32464
33086
  }
32465
- validate246.errors = vErrors;
33087
+ validate248.errors = vErrors;
32466
33088
  return errors === 0;
32467
33089
  }
32468
- exports.JobStatusRequest = validate247;
32469
- function validate247(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33090
+ exports.JobStatusRequest = validate249;
33091
+ function validate249(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32470
33092
  let vErrors = null;
32471
33093
  let errors = 0;
32472
33094
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -32553,12 +33175,12 @@ var require_openapi_validators = __commonJS({
32553
33175
  }
32554
33176
  errors++;
32555
33177
  }
32556
- validate247.errors = vErrors;
33178
+ validate249.errors = vErrors;
32557
33179
  return errors === 0;
32558
33180
  }
32559
- exports.JobStatusResponse = validate248;
32560
- var schema232 = { "properties": { "status": { "enum": ["pending", "running", "complete", "failed", "cancelled"] }}};
32561
- function validate248(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33181
+ exports.JobStatusResponse = validate250;
33182
+ var schema235 = { "properties": { "status": { "enum": ["pending", "running", "complete", "failed", "cancelled"] }}};
33183
+ function validate250(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32562
33184
  let vErrors = null;
32563
33185
  let errors = 0;
32564
33186
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -32700,7 +33322,7 @@ var require_openapi_validators = __commonJS({
32700
33322
  }
32701
33323
  }
32702
33324
  if (!(data2 === "pending" || data2 === "running" || data2 === "complete" || data2 === "failed" || data2 === "cancelled")) {
32703
- const err9 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: schema232.properties.status.enum }, message: "must be equal to one of the allowed values" };
33325
+ const err9 = { instancePath: instancePath + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: schema235.properties.status.enum }, message: "must be equal to one of the allowed values" };
32704
33326
  if (vErrors === null) {
32705
33327
  vErrors = [err9];
32706
33328
  } else {
@@ -32850,8 +33472,8 @@ var require_openapi_validators = __commonJS({
32850
33472
  }
32851
33473
  }
32852
33474
  if (data.result !== void 0) {
32853
- if (!validate218(data.result, { instancePath: instancePath + "/result", parentData: data, parentDataProperty: "result", rootData })) {
32854
- vErrors = vErrors === null ? validate218.errors : vErrors.concat(validate218.errors);
33475
+ if (!validate220(data.result, { instancePath: instancePath + "/result", parentData: data, parentDataProperty: "result", rootData })) {
33476
+ vErrors = vErrors === null ? validate220.errors : vErrors.concat(validate220.errors);
32855
33477
  errors = vErrors.length;
32856
33478
  }
32857
33479
  }
@@ -32864,11 +33486,11 @@ var require_openapi_validators = __commonJS({
32864
33486
  }
32865
33487
  errors++;
32866
33488
  }
32867
- validate248.errors = vErrors;
33489
+ validate250.errors = vErrors;
32868
33490
  return errors === 0;
32869
33491
  }
32870
- exports.JobStatusResult = validate250;
32871
- function validate250(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33492
+ exports.JobStatusResult = validate252;
33493
+ function validate252(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32872
33494
  let vErrors = null;
32873
33495
  let errors = 0;
32874
33496
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -32919,8 +33541,8 @@ var require_openapi_validators = __commonJS({
32919
33541
  }
32920
33542
  }
32921
33543
  if (data.response !== void 0) {
32922
- if (!validate248(data.response, { instancePath: instancePath + "/response", parentData: data, parentDataProperty: "response", rootData })) {
32923
- vErrors = vErrors === null ? validate248.errors : vErrors.concat(validate248.errors);
33544
+ if (!validate250(data.response, { instancePath: instancePath + "/response", parentData: data, parentDataProperty: "response", rootData })) {
33545
+ vErrors = vErrors === null ? validate250.errors : vErrors.concat(validate250.errors);
32924
33546
  errors = vErrors.length;
32925
33547
  }
32926
33548
  }
@@ -32933,11 +33555,11 @@ var require_openapi_validators = __commonJS({
32933
33555
  }
32934
33556
  errors++;
32935
33557
  }
32936
- validate250.errors = vErrors;
33558
+ validate252.errors = vErrors;
32937
33559
  return errors === 0;
32938
33560
  }
32939
- exports.JobTagAnnotationResult = validate252;
32940
- function validate252(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33561
+ exports.JobTagAnnotationResult = validate254;
33562
+ function validate254(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
32941
33563
  let vErrors = null;
32942
33564
  let errors = 0;
32943
33565
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -33005,7 +33627,7 @@ var require_openapi_validators = __commonJS({
33005
33627
  }
33006
33628
  }
33007
33629
  if (!(data0 === "tag-annotation")) {
33008
- const err5 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema187.properties.kind.enum }, message: "must be equal to one of the allowed values" };
33630
+ const err5 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema190.properties.kind.enum }, message: "must be equal to one of the allowed values" };
33009
33631
  if (vErrors === null) {
33010
33632
  vErrors = [err5];
33011
33633
  } else {
@@ -33114,11 +33736,11 @@ var require_openapi_validators = __commonJS({
33114
33736
  }
33115
33737
  errors++;
33116
33738
  }
33117
- validate252.errors = vErrors;
33739
+ validate254.errors = vErrors;
33118
33740
  return errors === 0;
33119
33741
  }
33120
- exports.JobType = validate253;
33121
- function validate253(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33742
+ exports.JobType = validate255;
33743
+ function validate255(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33122
33744
  let vErrors = null;
33123
33745
  let errors = 0;
33124
33746
  if (typeof data !== "string") {
@@ -33155,13 +33777,13 @@ var require_openapi_validators = __commonJS({
33155
33777
  }
33156
33778
  errors++;
33157
33779
  }
33158
- validate253.errors = vErrors;
33780
+ validate255.errors = vErrors;
33159
33781
  return errors === 0;
33160
33782
  }
33161
33783
  exports.KnowledgeGraph = validate190;
33162
33784
  exports.ListResourcesResponse = validate139;
33163
- exports.MarkArchiveCommand = validate254;
33164
- function validate254(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33785
+ exports.MarkArchiveCommand = validate256;
33786
+ function validate256(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33165
33787
  let vErrors = null;
33166
33788
  let errors = 0;
33167
33789
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -33349,12 +33971,12 @@ var require_openapi_validators = __commonJS({
33349
33971
  }
33350
33972
  errors++;
33351
33973
  }
33352
- validate254.errors = vErrors;
33974
+ validate256.errors = vErrors;
33353
33975
  return errors === 0;
33354
33976
  }
33355
- exports.MarkAssistRequestEvent = validate255;
33356
- var schema238 = { "properties": { "options": { "properties": { "tone": { "enum": ["scholarly", "explanatory", "conversational", "technical", "analytical", "critical", "balanced", "constructive"] }} } }};
33357
- function validate255(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33977
+ exports.MarkAssistRequestEvent = validate257;
33978
+ var schema241 = { "properties": { "options": { "properties": { "tone": { "enum": ["scholarly", "explanatory", "conversational", "technical", "analytical", "critical", "balanced", "constructive"] }} } }};
33979
+ function validate257(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33358
33980
  let vErrors = null;
33359
33981
  let errors = 0;
33360
33982
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -33500,7 +34122,7 @@ var require_openapi_validators = __commonJS({
33500
34122
  }
33501
34123
  }
33502
34124
  if (!(data4 === "scholarly" || data4 === "explanatory" || data4 === "conversational" || data4 === "technical" || data4 === "analytical" || data4 === "critical" || data4 === "balanced" || data4 === "constructive")) {
33503
- const err7 = { instancePath: instancePath + "/options/tone", schemaPath: "#/properties/options/properties/tone/enum", keyword: "enum", params: { allowedValues: schema238.properties.options.properties.tone.enum }, message: "must be equal to one of the allowed values" };
34125
+ const err7 = { instancePath: instancePath + "/options/tone", schemaPath: "#/properties/options/properties/tone/enum", keyword: "enum", params: { allowedValues: schema241.properties.options.properties.tone.enum }, message: "must be equal to one of the allowed values" };
33504
34126
  if (vErrors === null) {
33505
34127
  vErrors = [err7];
33506
34128
  } else {
@@ -33643,89 +34265,399 @@ var require_openapi_validators = __commonJS({
33643
34265
  } else if (data10 === null) {
33644
34266
  coerced8 = "";
33645
34267
  } else {
33646
- const err13 = { instancePath: instancePath + "/options/schemaId", schemaPath: "#/properties/options/properties/schemaId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
34268
+ const err13 = { instancePath: instancePath + "/options/schemaId", schemaPath: "#/properties/options/properties/schemaId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
34269
+ if (vErrors === null) {
34270
+ vErrors = [err13];
34271
+ } else {
34272
+ vErrors.push(err13);
34273
+ }
34274
+ errors++;
34275
+ }
34276
+ }
34277
+ if (coerced8 !== void 0) {
34278
+ data10 = coerced8;
34279
+ if (data2 !== void 0) {
34280
+ data2["schemaId"] = coerced8;
34281
+ }
34282
+ }
34283
+ }
34284
+ }
34285
+ if (data2.categories !== void 0) {
34286
+ let data11 = data2.categories;
34287
+ if (Array.isArray(data11)) {
34288
+ const len1 = data11.length;
34289
+ for (let i1 = 0; i1 < len1; i1++) {
34290
+ let data12 = data11[i1];
34291
+ if (typeof data12 !== "string") {
34292
+ let dataType9 = typeof data12;
34293
+ let coerced9 = void 0;
34294
+ if (!(coerced9 !== void 0)) {
34295
+ if (dataType9 == "number" || dataType9 == "boolean") {
34296
+ coerced9 = "" + data12;
34297
+ } else if (data12 === null) {
34298
+ coerced9 = "";
34299
+ } else {
34300
+ const err14 = { instancePath: instancePath + "/options/categories/" + i1, schemaPath: "#/properties/options/properties/categories/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
34301
+ if (vErrors === null) {
34302
+ vErrors = [err14];
34303
+ } else {
34304
+ vErrors.push(err14);
34305
+ }
34306
+ errors++;
34307
+ }
34308
+ }
34309
+ if (coerced9 !== void 0) {
34310
+ data12 = coerced9;
34311
+ if (data11 !== void 0) {
34312
+ data11[i1] = coerced9;
34313
+ }
34314
+ }
34315
+ }
34316
+ }
34317
+ } else {
34318
+ const err15 = { instancePath: instancePath + "/options/categories", schemaPath: "#/properties/options/properties/categories/type", keyword: "type", params: { type: "array" }, message: "must be array" };
34319
+ if (vErrors === null) {
34320
+ vErrors = [err15];
34321
+ } else {
34322
+ vErrors.push(err15);
34323
+ }
34324
+ errors++;
34325
+ }
34326
+ }
34327
+ } else {
34328
+ const err16 = { instancePath: instancePath + "/options", schemaPath: "#/properties/options/type", keyword: "type", params: { type: "object" }, message: "must be object" };
34329
+ if (vErrors === null) {
34330
+ vErrors = [err16];
34331
+ } else {
34332
+ vErrors.push(err16);
34333
+ }
34334
+ errors++;
34335
+ }
34336
+ }
34337
+ } else {
34338
+ const err17 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
34339
+ if (vErrors === null) {
34340
+ vErrors = [err17];
34341
+ } else {
34342
+ vErrors.push(err17);
34343
+ }
34344
+ errors++;
34345
+ }
34346
+ validate257.errors = vErrors;
34347
+ return errors === 0;
34348
+ }
34349
+ exports.MarkCommitCommand = validate258;
34350
+ function validate258(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
34351
+ let vErrors = null;
34352
+ let errors = 0;
34353
+ if (data && typeof data == "object" && !Array.isArray(data)) {
34354
+ if (data.correlationId === void 0) {
34355
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "correlationId" }, message: "must have required property 'correlationId'" };
34356
+ if (vErrors === null) {
34357
+ vErrors = [err0];
34358
+ } else {
34359
+ vErrors.push(err0);
34360
+ }
34361
+ errors++;
34362
+ }
34363
+ if (data.resourceId === void 0) {
34364
+ const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "resourceId" }, message: "must have required property 'resourceId'" };
34365
+ if (vErrors === null) {
34366
+ vErrors = [err1];
34367
+ } else {
34368
+ vErrors.push(err1);
34369
+ }
34370
+ errors++;
34371
+ }
34372
+ if (data.annotations === void 0) {
34373
+ const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "annotations" }, message: "must have required property 'annotations'" };
34374
+ if (vErrors === null) {
34375
+ vErrors = [err2];
34376
+ } else {
34377
+ vErrors.push(err2);
34378
+ }
34379
+ errors++;
34380
+ }
34381
+ if (data._userId !== void 0) {
34382
+ let data0 = data._userId;
34383
+ if (typeof data0 !== "string") {
34384
+ let dataType0 = typeof data0;
34385
+ let coerced0 = void 0;
34386
+ if (!(coerced0 !== void 0)) {
34387
+ if (dataType0 == "number" || dataType0 == "boolean") {
34388
+ coerced0 = "" + data0;
34389
+ } else if (data0 === null) {
34390
+ coerced0 = "";
34391
+ } else {
34392
+ const err3 = { instancePath: instancePath + "/_userId", schemaPath: "#/properties/_userId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
34393
+ if (vErrors === null) {
34394
+ vErrors = [err3];
34395
+ } else {
34396
+ vErrors.push(err3);
34397
+ }
34398
+ errors++;
34399
+ }
34400
+ }
34401
+ if (coerced0 !== void 0) {
34402
+ data0 = coerced0;
34403
+ if (data !== void 0) {
34404
+ data["_userId"] = coerced0;
34405
+ }
34406
+ }
34407
+ }
34408
+ }
34409
+ if (data.correlationId !== void 0) {
34410
+ let data1 = data.correlationId;
34411
+ if (typeof data1 !== "string") {
34412
+ let dataType1 = typeof data1;
34413
+ let coerced1 = void 0;
34414
+ if (!(coerced1 !== void 0)) {
34415
+ if (dataType1 == "number" || dataType1 == "boolean") {
34416
+ coerced1 = "" + data1;
34417
+ } else if (data1 === null) {
34418
+ coerced1 = "";
34419
+ } else {
34420
+ const err4 = { instancePath: instancePath + "/correlationId", schemaPath: "#/properties/correlationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
34421
+ if (vErrors === null) {
34422
+ vErrors = [err4];
34423
+ } else {
34424
+ vErrors.push(err4);
34425
+ }
34426
+ errors++;
34427
+ }
34428
+ }
34429
+ if (coerced1 !== void 0) {
34430
+ data1 = coerced1;
34431
+ if (data !== void 0) {
34432
+ data["correlationId"] = coerced1;
34433
+ }
34434
+ }
34435
+ }
34436
+ }
34437
+ if (data.resourceId !== void 0) {
34438
+ let data2 = data.resourceId;
34439
+ if (typeof data2 !== "string") {
34440
+ let dataType2 = typeof data2;
34441
+ let coerced2 = void 0;
34442
+ if (!(coerced2 !== void 0)) {
34443
+ if (dataType2 == "number" || dataType2 == "boolean") {
34444
+ coerced2 = "" + data2;
34445
+ } else if (data2 === null) {
34446
+ coerced2 = "";
34447
+ } else {
34448
+ const err5 = { instancePath: instancePath + "/resourceId", schemaPath: "#/properties/resourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
34449
+ if (vErrors === null) {
34450
+ vErrors = [err5];
34451
+ } else {
34452
+ vErrors.push(err5);
34453
+ }
34454
+ errors++;
34455
+ }
34456
+ }
34457
+ if (coerced2 !== void 0) {
34458
+ data2 = coerced2;
34459
+ if (data !== void 0) {
34460
+ data["resourceId"] = coerced2;
34461
+ }
34462
+ }
34463
+ }
34464
+ }
34465
+ if (data.annotations !== void 0) {
34466
+ let data3 = data.annotations;
34467
+ if (Array.isArray(data3)) {
34468
+ const len0 = data3.length;
34469
+ for (let i0 = 0; i0 < len0; i0++) {
34470
+ if (!validate19(data3[i0], { instancePath: instancePath + "/annotations/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
34471
+ vErrors = vErrors === null ? validate19.errors : vErrors.concat(validate19.errors);
34472
+ errors = vErrors.length;
34473
+ }
34474
+ }
34475
+ } else {
34476
+ const err6 = { instancePath: instancePath + "/annotations", schemaPath: "#/properties/annotations/type", keyword: "type", params: { type: "array" }, message: "must be array" };
34477
+ if (vErrors === null) {
34478
+ vErrors = [err6];
34479
+ } else {
34480
+ vErrors.push(err6);
34481
+ }
34482
+ errors++;
34483
+ }
34484
+ }
34485
+ } else {
34486
+ const err7 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
34487
+ if (vErrors === null) {
34488
+ vErrors = [err7];
34489
+ } else {
34490
+ vErrors.push(err7);
34491
+ }
34492
+ errors++;
34493
+ }
34494
+ validate258.errors = vErrors;
34495
+ return errors === 0;
34496
+ }
34497
+ exports.MarkCommitOk = validate260;
34498
+ function validate260(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
34499
+ let vErrors = null;
34500
+ let errors = 0;
34501
+ if (data && typeof data == "object" && !Array.isArray(data)) {
34502
+ if (data.correlationId === void 0) {
34503
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "correlationId" }, message: "must have required property 'correlationId'" };
34504
+ if (vErrors === null) {
34505
+ vErrors = [err0];
34506
+ } else {
34507
+ vErrors.push(err0);
34508
+ }
34509
+ errors++;
34510
+ }
34511
+ if (data.response === void 0) {
34512
+ const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "response" }, message: "must have required property 'response'" };
34513
+ if (vErrors === null) {
34514
+ vErrors = [err1];
34515
+ } else {
34516
+ vErrors.push(err1);
34517
+ }
34518
+ errors++;
34519
+ }
34520
+ if (data.correlationId !== void 0) {
34521
+ let data0 = data.correlationId;
34522
+ if (typeof data0 !== "string") {
34523
+ let dataType0 = typeof data0;
34524
+ let coerced0 = void 0;
34525
+ if (!(coerced0 !== void 0)) {
34526
+ if (dataType0 == "number" || dataType0 == "boolean") {
34527
+ coerced0 = "" + data0;
34528
+ } else if (data0 === null) {
34529
+ coerced0 = "";
34530
+ } else {
34531
+ const err2 = { instancePath: instancePath + "/correlationId", schemaPath: "#/properties/correlationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
34532
+ if (vErrors === null) {
34533
+ vErrors = [err2];
34534
+ } else {
34535
+ vErrors.push(err2);
34536
+ }
34537
+ errors++;
34538
+ }
34539
+ }
34540
+ if (coerced0 !== void 0) {
34541
+ data0 = coerced0;
34542
+ if (data !== void 0) {
34543
+ data["correlationId"] = coerced0;
34544
+ }
34545
+ }
34546
+ }
34547
+ }
34548
+ if (data.response !== void 0) {
34549
+ let data1 = data.response;
34550
+ if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
34551
+ if (data1.persisted === void 0) {
34552
+ const err3 = { instancePath: instancePath + "/response", schemaPath: "#/properties/response/required", keyword: "required", params: { missingProperty: "persisted" }, message: "must have required property 'persisted'" };
34553
+ if (vErrors === null) {
34554
+ vErrors = [err3];
34555
+ } else {
34556
+ vErrors.push(err3);
34557
+ }
34558
+ errors++;
34559
+ }
34560
+ if (data1.annotationIds === void 0) {
34561
+ const err4 = { instancePath: instancePath + "/response", schemaPath: "#/properties/response/required", keyword: "required", params: { missingProperty: "annotationIds" }, message: "must have required property 'annotationIds'" };
34562
+ if (vErrors === null) {
34563
+ vErrors = [err4];
34564
+ } else {
34565
+ vErrors.push(err4);
34566
+ }
34567
+ errors++;
34568
+ }
34569
+ if (data1.persisted !== void 0) {
34570
+ let data2 = data1.persisted;
34571
+ if (!(typeof data2 == "number" && (!(data2 % 1) && !isNaN(data2)) && isFinite(data2))) {
34572
+ let dataType1 = typeof data2;
34573
+ let coerced1 = void 0;
34574
+ if (!(coerced1 !== void 0)) {
34575
+ if (dataType1 === "boolean" || data2 === null || dataType1 === "string" && data2 && data2 == +data2 && !(data2 % 1)) {
34576
+ coerced1 = +data2;
34577
+ } else {
34578
+ const err5 = { instancePath: instancePath + "/response/persisted", schemaPath: "#/properties/response/properties/persisted/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
33647
34579
  if (vErrors === null) {
33648
- vErrors = [err13];
34580
+ vErrors = [err5];
33649
34581
  } else {
33650
- vErrors.push(err13);
34582
+ vErrors.push(err5);
33651
34583
  }
33652
34584
  errors++;
33653
34585
  }
33654
34586
  }
33655
- if (coerced8 !== void 0) {
33656
- data10 = coerced8;
33657
- if (data2 !== void 0) {
33658
- data2["schemaId"] = coerced8;
34587
+ if (coerced1 !== void 0) {
34588
+ data2 = coerced1;
34589
+ if (data1 !== void 0) {
34590
+ data1["persisted"] = coerced1;
33659
34591
  }
33660
34592
  }
33661
34593
  }
33662
34594
  }
33663
- if (data2.categories !== void 0) {
33664
- let data11 = data2.categories;
33665
- if (Array.isArray(data11)) {
33666
- const len1 = data11.length;
33667
- for (let i1 = 0; i1 < len1; i1++) {
33668
- let data12 = data11[i1];
33669
- if (typeof data12 !== "string") {
33670
- let dataType9 = typeof data12;
33671
- let coerced9 = void 0;
33672
- if (!(coerced9 !== void 0)) {
33673
- if (dataType9 == "number" || dataType9 == "boolean") {
33674
- coerced9 = "" + data12;
33675
- } else if (data12 === null) {
33676
- coerced9 = "";
34595
+ if (data1.annotationIds !== void 0) {
34596
+ let data3 = data1.annotationIds;
34597
+ if (Array.isArray(data3)) {
34598
+ const len0 = data3.length;
34599
+ for (let i0 = 0; i0 < len0; i0++) {
34600
+ let data4 = data3[i0];
34601
+ if (typeof data4 !== "string") {
34602
+ let dataType2 = typeof data4;
34603
+ let coerced2 = void 0;
34604
+ if (!(coerced2 !== void 0)) {
34605
+ if (dataType2 == "number" || dataType2 == "boolean") {
34606
+ coerced2 = "" + data4;
34607
+ } else if (data4 === null) {
34608
+ coerced2 = "";
33677
34609
  } else {
33678
- const err14 = { instancePath: instancePath + "/options/categories/" + i1, schemaPath: "#/properties/options/properties/categories/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
34610
+ const err6 = { instancePath: instancePath + "/response/annotationIds/" + i0, schemaPath: "#/properties/response/properties/annotationIds/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
33679
34611
  if (vErrors === null) {
33680
- vErrors = [err14];
34612
+ vErrors = [err6];
33681
34613
  } else {
33682
- vErrors.push(err14);
34614
+ vErrors.push(err6);
33683
34615
  }
33684
34616
  errors++;
33685
34617
  }
33686
34618
  }
33687
- if (coerced9 !== void 0) {
33688
- data12 = coerced9;
33689
- if (data11 !== void 0) {
33690
- data11[i1] = coerced9;
34619
+ if (coerced2 !== void 0) {
34620
+ data4 = coerced2;
34621
+ if (data3 !== void 0) {
34622
+ data3[i0] = coerced2;
33691
34623
  }
33692
34624
  }
33693
34625
  }
33694
34626
  }
33695
34627
  } else {
33696
- const err15 = { instancePath: instancePath + "/options/categories", schemaPath: "#/properties/options/properties/categories/type", keyword: "type", params: { type: "array" }, message: "must be array" };
34628
+ const err7 = { instancePath: instancePath + "/response/annotationIds", schemaPath: "#/properties/response/properties/annotationIds/type", keyword: "type", params: { type: "array" }, message: "must be array" };
33697
34629
  if (vErrors === null) {
33698
- vErrors = [err15];
34630
+ vErrors = [err7];
33699
34631
  } else {
33700
- vErrors.push(err15);
34632
+ vErrors.push(err7);
33701
34633
  }
33702
34634
  errors++;
33703
34635
  }
33704
34636
  }
33705
34637
  } else {
33706
- const err16 = { instancePath: instancePath + "/options", schemaPath: "#/properties/options/type", keyword: "type", params: { type: "object" }, message: "must be object" };
34638
+ const err8 = { instancePath: instancePath + "/response", schemaPath: "#/properties/response/type", keyword: "type", params: { type: "object" }, message: "must be object" };
33707
34639
  if (vErrors === null) {
33708
- vErrors = [err16];
34640
+ vErrors = [err8];
33709
34641
  } else {
33710
- vErrors.push(err16);
34642
+ vErrors.push(err8);
33711
34643
  }
33712
34644
  errors++;
33713
34645
  }
33714
34646
  }
33715
34647
  } else {
33716
- const err17 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
34648
+ const err9 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
33717
34649
  if (vErrors === null) {
33718
- vErrors = [err17];
34650
+ vErrors = [err9];
33719
34651
  } else {
33720
- vErrors.push(err17);
34652
+ vErrors.push(err9);
33721
34653
  }
33722
34654
  errors++;
33723
34655
  }
33724
- validate255.errors = vErrors;
34656
+ validate260.errors = vErrors;
33725
34657
  return errors === 0;
33726
34658
  }
33727
- exports.MarkCreateCommand = validate256;
33728
- function validate256(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
34659
+ exports.MarkCreateCommand = validate261;
34660
+ function validate261(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33729
34661
  let vErrors = null;
33730
34662
  let errors = 0;
33731
34663
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -33846,11 +34778,11 @@ var require_openapi_validators = __commonJS({
33846
34778
  }
33847
34779
  errors++;
33848
34780
  }
33849
- validate256.errors = vErrors;
34781
+ validate261.errors = vErrors;
33850
34782
  return errors === 0;
33851
34783
  }
33852
- exports.MarkCreateOk = validate258;
33853
- function validate258(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
34784
+ exports.MarkCreateOk = validate263;
34785
+ function validate263(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33854
34786
  let vErrors = null;
33855
34787
  let errors = 0;
33856
34788
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -33950,11 +34882,11 @@ var require_openapi_validators = __commonJS({
33950
34882
  }
33951
34883
  errors++;
33952
34884
  }
33953
- validate258.errors = vErrors;
34885
+ validate263.errors = vErrors;
33954
34886
  return errors === 0;
33955
34887
  }
33956
- exports.MarkCreateRequest = validate259;
33957
- function validate259(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
34888
+ exports.MarkCreateRequest = validate264;
34889
+ function validate264(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
33958
34890
  let vErrors = null;
33959
34891
  let errors = 0;
33960
34892
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -34056,11 +34988,11 @@ var require_openapi_validators = __commonJS({
34056
34988
  }
34057
34989
  errors++;
34058
34990
  }
34059
- validate259.errors = vErrors;
34991
+ validate264.errors = vErrors;
34060
34992
  return errors === 0;
34061
34993
  }
34062
- exports.MarkDeleteCommand = validate261;
34063
- function validate261(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
34994
+ exports.MarkDeleteCommand = validate266;
34995
+ function validate266(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
34064
34996
  let vErrors = null;
34065
34997
  let errors = 0;
34066
34998
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -34194,11 +35126,11 @@ var require_openapi_validators = __commonJS({
34194
35126
  }
34195
35127
  errors++;
34196
35128
  }
34197
- validate261.errors = vErrors;
35129
+ validate266.errors = vErrors;
34198
35130
  return errors === 0;
34199
35131
  }
34200
- exports.MarkDeleteOk = validate262;
34201
- function validate262(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
35132
+ exports.MarkDeleteOk = validate267;
35133
+ function validate267(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
34202
35134
  let vErrors = null;
34203
35135
  let errors = 0;
34204
35136
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -34298,11 +35230,11 @@ var require_openapi_validators = __commonJS({
34298
35230
  }
34299
35231
  errors++;
34300
35232
  }
34301
- validate262.errors = vErrors;
35233
+ validate267.errors = vErrors;
34302
35234
  return errors === 0;
34303
35235
  }
34304
- exports.MarkRequestedEvent = validate263;
34305
- function validate263(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
35236
+ exports.MarkRequestedEvent = validate268;
35237
+ function validate268(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
34306
35238
  let vErrors = null;
34307
35239
  let errors = 0;
34308
35240
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -35533,11 +36465,11 @@ var require_openapi_validators = __commonJS({
35533
36465
  }
35534
36466
  errors++;
35535
36467
  }
35536
- validate263.errors = vErrors;
36468
+ validate268.errors = vErrors;
35537
36469
  return errors === 0;
35538
36470
  }
35539
- exports.MarkSubmitEvent = validate264;
35540
- function validate264(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
36471
+ exports.MarkSubmitEvent = validate269;
36472
+ function validate269(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
35541
36473
  let vErrors = null;
35542
36474
  let errors = 0;
35543
36475
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -36839,11 +37771,11 @@ var require_openapi_validators = __commonJS({
36839
37771
  }
36840
37772
  errors++;
36841
37773
  }
36842
- validate264.errors = vErrors;
37774
+ validate269.errors = vErrors;
36843
37775
  return errors === 0;
36844
37776
  }
36845
- exports.MarkUnarchiveCommand = validate267;
36846
- function validate267(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
37777
+ exports.MarkUnarchiveCommand = validate272;
37778
+ function validate272(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
36847
37779
  let vErrors = null;
36848
37780
  let errors = 0;
36849
37781
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -36977,11 +37909,11 @@ var require_openapi_validators = __commonJS({
36977
37909
  }
36978
37910
  errors++;
36979
37911
  }
36980
- validate267.errors = vErrors;
37912
+ validate272.errors = vErrors;
36981
37913
  return errors === 0;
36982
37914
  }
36983
- exports.MarkUpdateBodyCommand = validate268;
36984
- function validate268(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
37915
+ exports.MarkUpdateBodyCommand = validate273;
37916
+ function validate273(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
36985
37917
  let vErrors = null;
36986
37918
  let errors = 0;
36987
37919
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -37211,11 +38143,11 @@ var require_openapi_validators = __commonJS({
37211
38143
  }
37212
38144
  errors++;
37213
38145
  }
37214
- validate268.errors = vErrors;
38146
+ validate273.errors = vErrors;
37215
38147
  return errors === 0;
37216
38148
  }
37217
- exports.MarkUpdateEntityTypesCommand = validate272;
37218
- function validate272(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38149
+ exports.MarkUpdateEntityTypesCommand = validate277;
38150
+ function validate277(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
37219
38151
  let vErrors = null;
37220
38152
  let errors = 0;
37221
38153
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -37423,11 +38355,11 @@ var require_openapi_validators = __commonJS({
37423
38355
  }
37424
38356
  errors++;
37425
38357
  }
37426
- validate272.errors = vErrors;
38358
+ validate277.errors = vErrors;
37427
38359
  return errors === 0;
37428
38360
  }
37429
- exports.MatchSearchFailed = validate273;
37430
- function validate273(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38361
+ exports.MatchSearchFailed = validate278;
38362
+ function validate278(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
37431
38363
  let vErrors = null;
37432
38364
  let errors = 0;
37433
38365
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -37551,11 +38483,11 @@ var require_openapi_validators = __commonJS({
37551
38483
  }
37552
38484
  errors++;
37553
38485
  }
37554
- validate273.errors = vErrors;
38486
+ validate278.errors = vErrors;
37555
38487
  return errors === 0;
37556
38488
  }
37557
- exports.MatchSearchRequest = validate274;
37558
- function validate274(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38489
+ exports.MatchSearchRequest = validate279;
38490
+ function validate279(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
37559
38491
  let vErrors = null;
37560
38492
  let errors = 0;
37561
38493
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -37747,11 +38679,11 @@ var require_openapi_validators = __commonJS({
37747
38679
  }
37748
38680
  errors++;
37749
38681
  }
37750
- validate274.errors = vErrors;
38682
+ validate279.errors = vErrors;
37751
38683
  return errors === 0;
37752
38684
  }
37753
- exports.MatchSearchResult = validate276;
37754
- function validate277(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38685
+ exports.MatchSearchResult = validate281;
38686
+ function validate282(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
37755
38687
  let vErrors = null;
37756
38688
  let errors = 0;
37757
38689
  if (!validate53(data, { instancePath, parentData, parentDataProperty, rootData })) {
@@ -37822,10 +38754,10 @@ var require_openapi_validators = __commonJS({
37822
38754
  }
37823
38755
  errors++;
37824
38756
  }
37825
- validate277.errors = vErrors;
38757
+ validate282.errors = vErrors;
37826
38758
  return errors === 0;
37827
38759
  }
37828
- function validate276(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38760
+ function validate281(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
37829
38761
  let vErrors = null;
37830
38762
  let errors = 0;
37831
38763
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -37917,8 +38849,8 @@ var require_openapi_validators = __commonJS({
37917
38849
  if (Array.isArray(data2)) {
37918
38850
  const len0 = data2.length;
37919
38851
  for (let i0 = 0; i0 < len0; i0++) {
37920
- if (!validate277(data2[i0], { instancePath: instancePath + "/response/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
37921
- vErrors = vErrors === null ? validate277.errors : vErrors.concat(validate277.errors);
38852
+ if (!validate282(data2[i0], { instancePath: instancePath + "/response/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
38853
+ vErrors = vErrors === null ? validate282.errors : vErrors.concat(validate282.errors);
37922
38854
  errors = vErrors.length;
37923
38855
  }
37924
38856
  }
@@ -37941,11 +38873,11 @@ var require_openapi_validators = __commonJS({
37941
38873
  }
37942
38874
  errors++;
37943
38875
  }
37944
- validate276.errors = vErrors;
38876
+ validate281.errors = vErrors;
37945
38877
  return errors === 0;
37946
38878
  }
37947
- exports.MediaTokenRequest = validate280;
37948
- function validate280(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38879
+ exports.MediaTokenRequest = validate285;
38880
+ function validate285(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
37949
38881
  let vErrors = null;
37950
38882
  let errors = 0;
37951
38883
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -37995,11 +38927,11 @@ var require_openapi_validators = __commonJS({
37995
38927
  }
37996
38928
  errors++;
37997
38929
  }
37998
- validate280.errors = vErrors;
38930
+ validate285.errors = vErrors;
37999
38931
  return errors === 0;
38000
38932
  }
38001
- exports.MediaTokenResponse = validate281;
38002
- function validate281(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38933
+ exports.MediaTokenResponse = validate286;
38934
+ function validate286(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38003
38935
  let vErrors = null;
38004
38936
  let errors = 0;
38005
38937
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -38049,11 +38981,11 @@ var require_openapi_validators = __commonJS({
38049
38981
  }
38050
38982
  errors++;
38051
38983
  }
38052
- validate281.errors = vErrors;
38984
+ validate286.errors = vErrors;
38053
38985
  return errors === 0;
38054
38986
  }
38055
- exports.Motivation = validate282;
38056
- function validate282(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38987
+ exports.Motivation = validate287;
38988
+ function validate287(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38057
38989
  let vErrors = null;
38058
38990
  let errors = 0;
38059
38991
  if (typeof data !== "string") {
@@ -38090,11 +39022,11 @@ var require_openapi_validators = __commonJS({
38090
39022
  }
38091
39023
  errors++;
38092
39024
  }
38093
- validate282.errors = vErrors;
39025
+ validate287.errors = vErrors;
38094
39026
  return errors === 0;
38095
39027
  }
38096
- exports.OAuthConfigResponse = validate283;
38097
- function validate283(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
39028
+ exports.OAuthConfigResponse = validate288;
39029
+ function validate288(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38098
39030
  let vErrors = null;
38099
39031
  let errors = 0;
38100
39032
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -38304,12 +39236,12 @@ var require_openapi_validators = __commonJS({
38304
39236
  }
38305
39237
  errors++;
38306
39238
  }
38307
- validate283.errors = vErrors;
39239
+ validate288.errors = vErrors;
38308
39240
  return errors === 0;
38309
39241
  }
38310
- exports.PasswordAuthRequest = validate284;
39242
+ exports.PasswordAuthRequest = validate289;
38311
39243
  var formats74 = /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;
38312
- function validate284(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
39244
+ function validate289(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38313
39245
  let vErrors = null;
38314
39246
  let errors = 0;
38315
39247
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -38418,11 +39350,11 @@ var require_openapi_validators = __commonJS({
38418
39350
  }
38419
39351
  errors++;
38420
39352
  }
38421
- validate284.errors = vErrors;
39353
+ validate289.errors = vErrors;
38422
39354
  return errors === 0;
38423
39355
  }
38424
- exports.PdfTextItem = validate285;
38425
- function validate285(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
39356
+ exports.PdfTextItem = validate290;
39357
+ function validate290(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38426
39358
  let vErrors = null;
38427
39359
  let errors = 0;
38428
39360
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -38680,11 +39612,11 @@ var require_openapi_validators = __commonJS({
38680
39612
  }
38681
39613
  errors++;
38682
39614
  }
38683
- validate285.errors = vErrors;
39615
+ validate290.errors = vErrors;
38684
39616
  return errors === 0;
38685
39617
  }
38686
- exports.Representation = validate286;
38687
- function validate286(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
39618
+ exports.Representation = validate291;
39619
+ function validate291(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
38688
39620
  let vErrors = null;
38689
39621
  let errors = 0;
38690
39622
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -39459,11 +40391,11 @@ var require_openapi_validators = __commonJS({
39459
40391
  }
39460
40392
  errors++;
39461
40393
  }
39462
- validate286.errors = vErrors;
40394
+ validate291.errors = vErrors;
39463
40395
  return errors === 0;
39464
40396
  }
39465
- exports.RepresentationAddedPayload = validate287;
39466
- function validate287(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
40397
+ exports.RepresentationAddedPayload = validate292;
40398
+ function validate292(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
39467
40399
  let vErrors = null;
39468
40400
  let errors = 0;
39469
40401
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -40260,11 +41192,11 @@ var require_openapi_validators = __commonJS({
40260
41192
  }
40261
41193
  errors++;
40262
41194
  }
40263
- validate287.errors = vErrors;
41195
+ validate292.errors = vErrors;
40264
41196
  return errors === 0;
40265
41197
  }
40266
- exports.RepresentationRemovedPayload = validate288;
40267
- function validate288(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41198
+ exports.RepresentationRemovedPayload = validate293;
41199
+ function validate293(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
40268
41200
  let vErrors = null;
40269
41201
  let errors = 0;
40270
41202
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -40314,11 +41246,11 @@ var require_openapi_validators = __commonJS({
40314
41246
  }
40315
41247
  errors++;
40316
41248
  }
40317
- validate288.errors = vErrors;
41249
+ validate293.errors = vErrors;
40318
41250
  return errors === 0;
40319
41251
  }
40320
- exports.ResourceArchivedPayload = validate289;
40321
- function validate289(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41252
+ exports.ResourceArchivedPayload = validate294;
41253
+ function validate294(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
40322
41254
  let vErrors = null;
40323
41255
  let errors = 0;
40324
41256
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -40359,11 +41291,11 @@ var require_openapi_validators = __commonJS({
40359
41291
  }
40360
41292
  errors++;
40361
41293
  }
40362
- validate289.errors = vErrors;
41294
+ validate294.errors = vErrors;
40363
41295
  return errors === 0;
40364
41296
  }
40365
- exports.ResourceClonedPayload = validate290;
40366
- function validate290(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41297
+ exports.ResourceClonedPayload = validate295;
41298
+ function validate295(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
40367
41299
  let vErrors = null;
40368
41300
  let errors = 0;
40369
41301
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -40648,11 +41580,11 @@ var require_openapi_validators = __commonJS({
40648
41580
  }
40649
41581
  errors++;
40650
41582
  }
40651
- validate290.errors = vErrors;
41583
+ validate295.errors = vErrors;
40652
41584
  return errors === 0;
40653
41585
  }
40654
- exports.ResourceCreatedPayload = validate291;
40655
- function validate291(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41586
+ exports.ResourceCreatedPayload = validate296;
41587
+ function validate296(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
40656
41588
  let vErrors = null;
40657
41589
  let errors = 0;
40658
41590
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -41104,12 +42036,12 @@ var require_openapi_validators = __commonJS({
41104
42036
  }
41105
42037
  errors++;
41106
42038
  }
41107
- validate291.errors = vErrors;
42039
+ validate296.errors = vErrors;
41108
42040
  return errors === 0;
41109
42041
  }
41110
42042
  exports.ResourceDescriptor = validate53;
41111
- exports.ResourceMovedPayload = validate294;
41112
- function validate294(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42043
+ exports.ResourceMovedPayload = validate299;
42044
+ function validate299(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41113
42045
  let vErrors = null;
41114
42046
  let errors = 0;
41115
42047
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -41196,11 +42128,11 @@ var require_openapi_validators = __commonJS({
41196
42128
  }
41197
42129
  errors++;
41198
42130
  }
41199
- validate294.errors = vErrors;
42131
+ validate299.errors = vErrors;
41200
42132
  return errors === 0;
41201
42133
  }
41202
- exports.ResourceUnarchivedPayload = validate295;
41203
- function validate295(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42134
+ exports.ResourceUnarchivedPayload = validate300;
42135
+ function validate300(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41204
42136
  let vErrors = null;
41205
42137
  let errors = 0;
41206
42138
  if (!(data && typeof data == "object" && !Array.isArray(data))) {
@@ -41212,11 +42144,11 @@ var require_openapi_validators = __commonJS({
41212
42144
  }
41213
42145
  errors++;
41214
42146
  }
41215
- validate295.errors = vErrors;
42147
+ validate300.errors = vErrors;
41216
42148
  return errors === 0;
41217
42149
  }
41218
- exports.ResourceUpdatedPayload = validate296;
41219
- function validate296(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42150
+ exports.ResourceUpdatedPayload = validate301;
42151
+ function validate301(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41220
42152
  let vErrors = null;
41221
42153
  let errors = 0;
41222
42154
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -41292,12 +42224,12 @@ var require_openapi_validators = __commonJS({
41292
42224
  }
41293
42225
  errors++;
41294
42226
  }
41295
- validate296.errors = vErrors;
42227
+ validate301.errors = vErrors;
41296
42228
  return errors === 0;
41297
42229
  }
41298
- exports.ScoredResource = validate277;
41299
- exports.SelectionData = validate297;
41300
- function validate297(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42230
+ exports.ScoredResource = validate282;
42231
+ exports.SelectionData = validate302;
42232
+ function validate302(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41301
42233
  let vErrors = null;
41302
42234
  let errors = 0;
41303
42235
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -41557,11 +42489,11 @@ var require_openapi_validators = __commonJS({
41557
42489
  }
41558
42490
  errors++;
41559
42491
  }
41560
- validate297.errors = vErrors;
42492
+ validate302.errors = vErrors;
41561
42493
  return errors === 0;
41562
42494
  }
41563
- exports.SemanticMatch = validate298;
41564
- function validate298(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42495
+ exports.SemanticMatch = validate303;
42496
+ function validate303(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41565
42497
  let vErrors = null;
41566
42498
  let errors = 0;
41567
42499
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -41817,11 +42749,11 @@ var require_openapi_validators = __commonJS({
41817
42749
  }
41818
42750
  errors++;
41819
42751
  }
41820
- validate298.errors = vErrors;
42752
+ validate303.errors = vErrors;
41821
42753
  return errors === 0;
41822
42754
  }
41823
- exports.SessionJoinedEvent = validate299;
41824
- function validate299(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42755
+ exports.SessionJoinedEvent = validate304;
42756
+ function validate304(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41825
42757
  let vErrors = null;
41826
42758
  let errors = 0;
41827
42759
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -41908,11 +42840,11 @@ var require_openapi_validators = __commonJS({
41908
42840
  }
41909
42841
  errors++;
41910
42842
  }
41911
- validate299.errors = vErrors;
42843
+ validate304.errors = vErrors;
41912
42844
  return errors === 0;
41913
42845
  }
41914
- exports.SessionLeftEvent = validate300;
41915
- function validate300(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42846
+ exports.SessionLeftEvent = validate305;
42847
+ function validate305(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
41916
42848
  let vErrors = null;
41917
42849
  let errors = 0;
41918
42850
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -41999,11 +42931,11 @@ var require_openapi_validators = __commonJS({
41999
42931
  }
42000
42932
  errors++;
42001
42933
  }
42002
- validate300.errors = vErrors;
42934
+ validate305.errors = vErrors;
42003
42935
  return errors === 0;
42004
42936
  }
42005
- exports.SettingsHoverDelayChangedEvent = validate301;
42006
- function validate301(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42937
+ exports.SettingsHoverDelayChangedEvent = validate306;
42938
+ function validate306(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42007
42939
  let vErrors = null;
42008
42940
  let errors = 0;
42009
42941
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -42051,11 +42983,11 @@ var require_openapi_validators = __commonJS({
42051
42983
  }
42052
42984
  errors++;
42053
42985
  }
42054
- validate301.errors = vErrors;
42986
+ validate306.errors = vErrors;
42055
42987
  return errors === 0;
42056
42988
  }
42057
- exports.SettingsLocaleChangedEvent = validate302;
42058
- function validate302(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42989
+ exports.SettingsLocaleChangedEvent = validate307;
42990
+ function validate307(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42059
42991
  let vErrors = null;
42060
42992
  let errors = 0;
42061
42993
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -42105,12 +43037,12 @@ var require_openapi_validators = __commonJS({
42105
43037
  }
42106
43038
  errors++;
42107
43039
  }
42108
- validate302.errors = vErrors;
43040
+ validate307.errors = vErrors;
42109
43041
  return errors === 0;
42110
43042
  }
42111
- exports.SettingsThemeChangedEvent = validate303;
42112
- var schema296 = { "properties": { "theme": { "enum": ["light", "dark", "system"] } }};
42113
- function validate303(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43043
+ exports.SettingsThemeChangedEvent = validate308;
43044
+ var schema301 = { "properties": { "theme": { "enum": ["light", "dark", "system"] } }};
43045
+ function validate308(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42114
43046
  let vErrors = null;
42115
43047
  let errors = 0;
42116
43048
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -42151,7 +43083,7 @@ var require_openapi_validators = __commonJS({
42151
43083
  }
42152
43084
  }
42153
43085
  if (!(data0 === "light" || data0 === "dark" || data0 === "system")) {
42154
- const err2 = { instancePath: instancePath + "/theme", schemaPath: "#/properties/theme/enum", keyword: "enum", params: { allowedValues: schema296.properties.theme.enum }, message: "must be equal to one of the allowed values" };
43086
+ const err2 = { instancePath: instancePath + "/theme", schemaPath: "#/properties/theme/enum", keyword: "enum", params: { allowedValues: schema301.properties.theme.enum }, message: "must be equal to one of the allowed values" };
42155
43087
  if (vErrors === null) {
42156
43088
  vErrors = [err2];
42157
43089
  } else {
@@ -42169,11 +43101,11 @@ var require_openapi_validators = __commonJS({
42169
43101
  }
42170
43102
  errors++;
42171
43103
  }
42172
- validate303.errors = vErrors;
43104
+ validate308.errors = vErrors;
42173
43105
  return errors === 0;
42174
43106
  }
42175
- exports.SmeltRebuildAnchorsCommand = validate304;
42176
- function validate304(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43107
+ exports.SmeltRebuildAnchorsCommand = validate309;
43108
+ function validate309(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42177
43109
  let vErrors = null;
42178
43110
  let errors = 0;
42179
43111
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -42270,12 +43202,12 @@ var require_openapi_validators = __commonJS({
42270
43202
  }
42271
43203
  errors++;
42272
43204
  }
42273
- validate304.errors = vErrors;
43205
+ validate309.errors = vErrors;
42274
43206
  return errors === 0;
42275
43207
  }
42276
43208
  exports.SpecificResource = validate25;
42277
- exports.StatusResponse = validate305;
42278
- function validate305(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43209
+ exports.StatusResponse = validate310;
43210
+ function validate310(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42279
43211
  let vErrors = null;
42280
43212
  let errors = 0;
42281
43213
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -42653,12 +43585,12 @@ var require_openapi_validators = __commonJS({
42653
43585
  }
42654
43586
  errors++;
42655
43587
  }
42656
- validate305.errors = vErrors;
43588
+ validate310.errors = vErrors;
42657
43589
  return errors === 0;
42658
43590
  }
42659
43591
  exports.StoredEventResponse = validate90;
42660
- exports.SupportedMediaType = validate306;
42661
- function validate306(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43592
+ exports.SupportedMediaType = validate311;
43593
+ function validate311(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42662
43594
  let vErrors = null;
42663
43595
  let errors = 0;
42664
43596
  if (typeof data !== "string") {
@@ -42695,11 +43627,11 @@ var require_openapi_validators = __commonJS({
42695
43627
  }
42696
43628
  errors++;
42697
43629
  }
42698
- validate306.errors = vErrors;
43630
+ validate311.errors = vErrors;
42699
43631
  return errors === 0;
42700
43632
  }
42701
- exports.SvgSelector = validate307;
42702
- function validate307(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43633
+ exports.SvgSelector = validate312;
43634
+ function validate312(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42703
43635
  let vErrors = null;
42704
43636
  let errors = 0;
42705
43637
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -42795,11 +43727,11 @@ var require_openapi_validators = __commonJS({
42795
43727
  }
42796
43728
  errors++;
42797
43729
  }
42798
- validate307.errors = vErrors;
43730
+ validate312.errors = vErrors;
42799
43731
  return errors === 0;
42800
43732
  }
42801
- exports.TagCategory = validate308;
42802
- function validate308(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43733
+ exports.TagCategory = validate313;
43734
+ function validate313(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42803
43735
  let vErrors = null;
42804
43736
  let errors = 0;
42805
43737
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -42937,12 +43869,12 @@ var require_openapi_validators = __commonJS({
42937
43869
  }
42938
43870
  errors++;
42939
43871
  }
42940
- validate308.errors = vErrors;
43872
+ validate313.errors = vErrors;
42941
43873
  return errors === 0;
42942
43874
  }
42943
43875
  exports.TagSchema = validate146;
42944
- exports.TagSchemaAddedPayload = validate309;
42945
- function validate309(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43876
+ exports.TagSchemaAddedPayload = validate314;
43877
+ function validate314(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42946
43878
  let vErrors = null;
42947
43879
  let errors = 0;
42948
43880
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -42970,11 +43902,11 @@ var require_openapi_validators = __commonJS({
42970
43902
  }
42971
43903
  errors++;
42972
43904
  }
42973
- validate309.errors = vErrors;
43905
+ validate314.errors = vErrors;
42974
43906
  return errors === 0;
42975
43907
  }
42976
- exports.TextPositionSelector = validate311;
42977
- function validate311(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43908
+ exports.TextPositionSelector = validate316;
43909
+ function validate316(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
42978
43910
  let vErrors = null;
42979
43911
  let errors = 0;
42980
43912
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -43103,11 +44035,11 @@ var require_openapi_validators = __commonJS({
43103
44035
  }
43104
44036
  errors++;
43105
44037
  }
43106
- validate311.errors = vErrors;
44038
+ validate316.errors = vErrors;
43107
44039
  return errors === 0;
43108
44040
  }
43109
- exports.TextQuoteSelector = validate312;
43110
- function validate312(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
44041
+ exports.TextQuoteSelector = validate317;
44042
+ function validate317(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43111
44043
  let vErrors = null;
43112
44044
  let errors = 0;
43113
44045
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -43259,12 +44191,12 @@ var require_openapi_validators = __commonJS({
43259
44191
  }
43260
44192
  errors++;
43261
44193
  }
43262
- validate312.errors = vErrors;
44194
+ validate317.errors = vErrors;
43263
44195
  return errors === 0;
43264
44196
  }
43265
44197
  exports.TextualBody = validate23;
43266
- exports.TokenRefreshRequest = validate313;
43267
- function validate313(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
44198
+ exports.TokenRefreshRequest = validate318;
44199
+ function validate318(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43268
44200
  let vErrors = null;
43269
44201
  let errors = 0;
43270
44202
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -43314,11 +44246,11 @@ var require_openapi_validators = __commonJS({
43314
44246
  }
43315
44247
  errors++;
43316
44248
  }
43317
- validate313.errors = vErrors;
44249
+ validate318.errors = vErrors;
43318
44250
  return errors === 0;
43319
44251
  }
43320
- exports.TokenRefreshResponse = validate314;
43321
- function validate314(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
44252
+ exports.TokenRefreshResponse = validate319;
44253
+ function validate319(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43322
44254
  let vErrors = null;
43323
44255
  let errors = 0;
43324
44256
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -43368,11 +44300,11 @@ var require_openapi_validators = __commonJS({
43368
44300
  }
43369
44301
  errors++;
43370
44302
  }
43371
- validate314.errors = vErrors;
44303
+ validate319.errors = vErrors;
43372
44304
  return errors === 0;
43373
44305
  }
43374
- exports.UpdateAnnotationBodyRequest = validate315;
43375
- function validate315(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
44306
+ exports.UpdateAnnotationBodyRequest = validate320;
44307
+ function validate320(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43376
44308
  let vErrors = null;
43377
44309
  let errors = 0;
43378
44310
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -43518,11 +44450,11 @@ var require_openapi_validators = __commonJS({
43518
44450
  }
43519
44451
  errors++;
43520
44452
  }
43521
- validate315.errors = vErrors;
44453
+ validate320.errors = vErrors;
43522
44454
  return errors === 0;
43523
44455
  }
43524
- exports.UpdateUserRequest = validate319;
43525
- function validate319(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
44456
+ exports.UpdateUserRequest = validate324;
44457
+ function validate324(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43526
44458
  let vErrors = null;
43527
44459
  let errors = 0;
43528
44460
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -43617,12 +44549,12 @@ var require_openapi_validators = __commonJS({
43617
44549
  }
43618
44550
  errors++;
43619
44551
  }
43620
- validate319.errors = vErrors;
44552
+ validate324.errors = vErrors;
43621
44553
  return errors === 0;
43622
44554
  }
43623
- exports.UpdateUserResponse = validate320;
43624
- var schema309 = { "properties": { "user": { "properties": { "name": { "type": ["string", "null"] }, "image": { "type": ["string", "null"] }, "lastLogin": { "type": ["string", "null"] }}} }};
43625
- function validate320(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
44555
+ exports.UpdateUserResponse = validate325;
44556
+ var schema314 = { "properties": { "user": { "properties": { "name": { "type": ["string", "null"] }, "image": { "type": ["string", "null"] }, "lastLogin": { "type": ["string", "null"] }}} }};
44557
+ function validate325(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
43626
44558
  let vErrors = null;
43627
44559
  let errors = 0;
43628
44560
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -43815,7 +44747,7 @@ var require_openapi_validators = __commonJS({
43815
44747
  } else if (data4 === "" || data4 === 0 || data4 === false) {
43816
44748
  coerced3 = null;
43817
44749
  } else {
43818
- const err13 = { instancePath: instancePath + "/user/name", schemaPath: "#/properties/user/properties/name/type", keyword: "type", params: { type: schema309.properties.user.properties.name.type }, message: "must be string,null" };
44750
+ const err13 = { instancePath: instancePath + "/user/name", schemaPath: "#/properties/user/properties/name/type", keyword: "type", params: { type: schema314.properties.user.properties.name.type }, message: "must be string,null" };
43819
44751
  if (vErrors === null) {
43820
44752
  vErrors = [err13];
43821
44753
  } else {
@@ -43845,7 +44777,7 @@ var require_openapi_validators = __commonJS({
43845
44777
  } else if (data5 === "" || data5 === 0 || data5 === false) {
43846
44778
  coerced4 = null;
43847
44779
  } else {
43848
- const err14 = { instancePath: instancePath + "/user/image", schemaPath: "#/properties/user/properties/image/type", keyword: "type", params: { type: schema309.properties.user.properties.image.type }, message: "must be string,null" };
44780
+ const err14 = { instancePath: instancePath + "/user/image", schemaPath: "#/properties/user/properties/image/type", keyword: "type", params: { type: schema314.properties.user.properties.image.type }, message: "must be string,null" };
43849
44781
  if (vErrors === null) {
43850
44782
  vErrors = [err14];
43851
44783
  } else {
@@ -43985,7 +44917,7 @@ var require_openapi_validators = __commonJS({
43985
44917
  } else if (data10 === "" || data10 === 0 || data10 === false) {
43986
44918
  coerced9 = null;
43987
44919
  } else {
43988
- const err19 = { instancePath: instancePath + "/user/lastLogin", schemaPath: "#/properties/user/properties/lastLogin/type", keyword: "type", params: { type: schema309.properties.user.properties.lastLogin.type }, message: "must be string,null" };
44920
+ const err19 = { instancePath: instancePath + "/user/lastLogin", schemaPath: "#/properties/user/properties/lastLogin/type", keyword: "type", params: { type: schema314.properties.user.properties.lastLogin.type }, message: "must be string,null" };
43989
44921
  if (vErrors === null) {
43990
44922
  vErrors = [err19];
43991
44923
  } else {
@@ -44077,12 +45009,12 @@ var require_openapi_validators = __commonJS({
44077
45009
  }
44078
45010
  errors++;
44079
45011
  }
44080
- validate320.errors = vErrors;
45012
+ validate325.errors = vErrors;
44081
45013
  return errors === 0;
44082
45014
  }
44083
- exports.UserResponse = validate321;
44084
- var schema310 = { "properties": { "name": { "type": ["string", "null"] }, "image": { "type": ["string", "null"] }, "termsAcceptedAt": { "type": ["string", "null"] }, "lastLogin": { "type": ["string", "null"] }}};
44085
- function validate321(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
45015
+ exports.UserResponse = validate326;
45016
+ var schema315 = { "properties": { "name": { "type": ["string", "null"] }, "image": { "type": ["string", "null"] }, "termsAcceptedAt": { "type": ["string", "null"] }, "lastLogin": { "type": ["string", "null"] }}};
45017
+ function validate326(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
44086
45018
  let vErrors = null;
44087
45019
  let errors = 0;
44088
45020
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -44272,7 +45204,7 @@ var require_openapi_validators = __commonJS({
44272
45204
  } else if (data2 === "" || data2 === 0 || data2 === false) {
44273
45205
  coerced2 = null;
44274
45206
  } else {
44275
- const err15 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: schema310.properties.name.type }, message: "must be string,null" };
45207
+ const err15 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: schema315.properties.name.type }, message: "must be string,null" };
44276
45208
  if (vErrors === null) {
44277
45209
  vErrors = [err15];
44278
45210
  } else {
@@ -44302,7 +45234,7 @@ var require_openapi_validators = __commonJS({
44302
45234
  } else if (data3 === "" || data3 === 0 || data3 === false) {
44303
45235
  coerced3 = null;
44304
45236
  } else {
44305
- const err16 = { instancePath: instancePath + "/image", schemaPath: "#/properties/image/type", keyword: "type", params: { type: schema310.properties.image.type }, message: "must be string,null" };
45237
+ const err16 = { instancePath: instancePath + "/image", schemaPath: "#/properties/image/type", keyword: "type", params: { type: schema315.properties.image.type }, message: "must be string,null" };
44306
45238
  if (vErrors === null) {
44307
45239
  vErrors = [err16];
44308
45240
  } else {
@@ -44469,7 +45401,7 @@ var require_openapi_validators = __commonJS({
44469
45401
  } else if (data9 === "" || data9 === 0 || data9 === false) {
44470
45402
  coerced9 = null;
44471
45403
  } else {
44472
- const err22 = { instancePath: instancePath + "/termsAcceptedAt", schemaPath: "#/properties/termsAcceptedAt/type", keyword: "type", params: { type: schema310.properties.termsAcceptedAt.type }, message: "must be string,null" };
45404
+ const err22 = { instancePath: instancePath + "/termsAcceptedAt", schemaPath: "#/properties/termsAcceptedAt/type", keyword: "type", params: { type: schema315.properties.termsAcceptedAt.type }, message: "must be string,null" };
44473
45405
  if (vErrors === null) {
44474
45406
  vErrors = [err22];
44475
45407
  } else {
@@ -44499,7 +45431,7 @@ var require_openapi_validators = __commonJS({
44499
45431
  } else if (data10 === "" || data10 === 0 || data10 === false) {
44500
45432
  coerced10 = null;
44501
45433
  } else {
44502
- const err23 = { instancePath: instancePath + "/lastLogin", schemaPath: "#/properties/lastLogin/type", keyword: "type", params: { type: schema310.properties.lastLogin.type }, message: "must be string,null" };
45434
+ const err23 = { instancePath: instancePath + "/lastLogin", schemaPath: "#/properties/lastLogin/type", keyword: "type", params: { type: schema315.properties.lastLogin.type }, message: "must be string,null" };
44503
45435
  if (vErrors === null) {
44504
45436
  vErrors = [err23];
44505
45437
  } else {
@@ -44581,11 +45513,11 @@ var require_openapi_validators = __commonJS({
44581
45513
  }
44582
45514
  errors++;
44583
45515
  }
44584
- validate321.errors = vErrors;
45516
+ validate326.errors = vErrors;
44585
45517
  return errors === 0;
44586
45518
  }
44587
- exports.WeaveRebuildCommand = validate322;
44588
- function validate322(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
45519
+ exports.WeaveRebuildCommand = validate327;
45520
+ function validate327(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
44589
45521
  let vErrors = null;
44590
45522
  let errors = 0;
44591
45523
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -44682,11 +45614,11 @@ var require_openapi_validators = __commonJS({
44682
45614
  }
44683
45615
  errors++;
44684
45616
  }
44685
- validate322.errors = vErrors;
45617
+ validate327.errors = vErrors;
44686
45618
  return errors === 0;
44687
45619
  }
44688
- exports.YieldCloneCreateCommand = validate323;
44689
- function validate323(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
45620
+ exports.YieldCloneCreateCommand = validate328;
45621
+ function validate328(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
44690
45622
  let vErrors = null;
44691
45623
  let errors = 0;
44692
45624
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -45011,11 +45943,11 @@ var require_openapi_validators = __commonJS({
45011
45943
  }
45012
45944
  errors++;
45013
45945
  }
45014
- validate323.errors = vErrors;
45946
+ validate328.errors = vErrors;
45015
45947
  return errors === 0;
45016
45948
  }
45017
- exports.YieldCloneCreated = validate324;
45018
- function validate324(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
45949
+ exports.YieldCloneCreated = validate329;
45950
+ function validate329(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
45019
45951
  let vErrors = null;
45020
45952
  let errors = 0;
45021
45953
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -45124,11 +46056,11 @@ var require_openapi_validators = __commonJS({
45124
46056
  }
45125
46057
  errors++;
45126
46058
  }
45127
- validate324.errors = vErrors;
46059
+ validate329.errors = vErrors;
45128
46060
  return errors === 0;
45129
46061
  }
45130
- exports.YieldClonePersistCommand = validate325;
45131
- function validate325(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
46062
+ exports.YieldClonePersistCommand = validate330;
46063
+ function validate330(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
45132
46064
  let vErrors = null;
45133
46065
  let errors = 0;
45134
46066
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -45523,11 +46455,11 @@ var require_openapi_validators = __commonJS({
45523
46455
  }
45524
46456
  errors++;
45525
46457
  }
45526
- validate325.errors = vErrors;
46458
+ validate330.errors = vErrors;
45527
46459
  return errors === 0;
45528
46460
  }
45529
- exports.YieldClonePersistOk = validate326;
45530
- function validate326(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
46461
+ exports.YieldClonePersistOk = validate331;
46462
+ function validate331(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
45531
46463
  let vErrors = null;
45532
46464
  let errors = 0;
45533
46465
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -45627,11 +46559,11 @@ var require_openapi_validators = __commonJS({
45627
46559
  }
45628
46560
  errors++;
45629
46561
  }
45630
- validate326.errors = vErrors;
46562
+ validate331.errors = vErrors;
45631
46563
  return errors === 0;
45632
46564
  }
45633
- exports.YieldCloneResourceRequest = validate327;
45634
- function validate327(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
46565
+ exports.YieldCloneResourceRequest = validate332;
46566
+ function validate332(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
45635
46567
  let vErrors = null;
45636
46568
  let errors = 0;
45637
46569
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -45718,11 +46650,11 @@ var require_openapi_validators = __commonJS({
45718
46650
  }
45719
46651
  errors++;
45720
46652
  }
45721
- validate327.errors = vErrors;
46653
+ validate332.errors = vErrors;
45722
46654
  return errors === 0;
45723
46655
  }
45724
- exports.YieldCloneTokenRequest = validate328;
45725
- function validate328(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
46656
+ exports.YieldCloneTokenRequest = validate333;
46657
+ function validate333(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
45726
46658
  let vErrors = null;
45727
46659
  let errors = 0;
45728
46660
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -45809,11 +46741,11 @@ var require_openapi_validators = __commonJS({
45809
46741
  }
45810
46742
  errors++;
45811
46743
  }
45812
- validate328.errors = vErrors;
46744
+ validate333.errors = vErrors;
45813
46745
  return errors === 0;
45814
46746
  }
45815
- exports.YieldCreateCommand = validate329;
45816
- function validate329(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
46747
+ exports.YieldCreateCommand = validate334;
46748
+ function validate334(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
45817
46749
  let vErrors = null;
45818
46750
  let errors = 0;
45819
46751
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -46348,11 +47280,11 @@ var require_openapi_validators = __commonJS({
46348
47280
  }
46349
47281
  errors++;
46350
47282
  }
46351
- validate329.errors = vErrors;
47283
+ validate334.errors = vErrors;
46352
47284
  return errors === 0;
46353
47285
  }
46354
- exports.YieldCreateOk = validate332;
46355
- function validate332(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
47286
+ exports.YieldCreateOk = validate337;
47287
+ function validate337(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
46356
47288
  let vErrors = null;
46357
47289
  let errors = 0;
46358
47290
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -46452,11 +47384,11 @@ var require_openapi_validators = __commonJS({
46452
47384
  }
46453
47385
  errors++;
46454
47386
  }
46455
- validate332.errors = vErrors;
47387
+ validate337.errors = vErrors;
46456
47388
  return errors === 0;
46457
47389
  }
46458
- exports.YieldMvCommand = validate333;
46459
- function validate333(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
47390
+ exports.YieldMvCommand = validate338;
47391
+ function validate338(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
46460
47392
  let vErrors = null;
46461
47393
  let errors = 0;
46462
47394
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -46598,11 +47530,11 @@ var require_openapi_validators = __commonJS({
46598
47530
  }
46599
47531
  errors++;
46600
47532
  }
46601
- validate333.errors = vErrors;
47533
+ validate338.errors = vErrors;
46602
47534
  return errors === 0;
46603
47535
  }
46604
- exports.YieldUpdateCommand = validate334;
46605
- function validate334(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
47536
+ exports.YieldUpdateCommand = validate339;
47537
+ function validate339(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
46606
47538
  let vErrors = null;
46607
47539
  let errors = 0;
46608
47540
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -46844,11 +47776,11 @@ var require_openapi_validators = __commonJS({
46844
47776
  }
46845
47777
  errors++;
46846
47778
  }
46847
- validate334.errors = vErrors;
47779
+ validate339.errors = vErrors;
46848
47780
  return errors === 0;
46849
47781
  }
46850
- exports.YieldUpdateOk = validate335;
46851
- function validate335(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
47782
+ exports.YieldUpdateOk = validate340;
47783
+ function validate340(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
46852
47784
  let vErrors = null;
46853
47785
  let errors = 0;
46854
47786
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -46948,7 +47880,7 @@ var require_openapi_validators = __commonJS({
46948
47880
  }
46949
47881
  errors++;
46950
47882
  }
46951
- validate335.errors = vErrors;
47883
+ validate340.errors = vErrors;
46952
47884
  return errors === 0;
46953
47885
  }
46954
47886
  }