@bitbybit-dev/cad-cloud-sdk 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -469,6 +469,341 @@ export declare const schemaBundle: {
469
469
  readonly required: readonly ["outputs"];
470
470
  readonly additionalProperties: false;
471
471
  };
472
+ readonly NestingInspectBody: {
473
+ readonly type: "object";
474
+ readonly properties: {
475
+ readonly stepFileIds: {
476
+ readonly minItems: 1;
477
+ readonly maxItems: 50;
478
+ readonly type: "array";
479
+ readonly items: {
480
+ readonly type: "string";
481
+ readonly minLength: 1;
482
+ };
483
+ };
484
+ readonly fileUnit: {
485
+ readonly $ref: "#/$defs/LengthUnit";
486
+ };
487
+ readonly options: {
488
+ readonly $ref: "#/$defs/NestingInspectOptions";
489
+ };
490
+ };
491
+ readonly required: readonly ["stepFileIds"];
492
+ readonly additionalProperties: false;
493
+ };
494
+ readonly NestingInspectOptions: {
495
+ readonly type: "object";
496
+ readonly properties: {
497
+ readonly sheets: {
498
+ readonly maxItems: 100;
499
+ readonly type: "array";
500
+ readonly items: {
501
+ readonly anyOf: readonly [{
502
+ readonly $ref: "#/$defs/NestingStrip";
503
+ }, {
504
+ readonly $ref: "#/$defs/NestingSheet";
505
+ }];
506
+ };
507
+ };
508
+ readonly parts: {
509
+ readonly maxItems: 5000;
510
+ readonly type: "array";
511
+ readonly items: {
512
+ readonly anyOf: readonly [{
513
+ readonly $ref: "#/$defs/NestingPartOptions";
514
+ }, {
515
+ readonly type: "null";
516
+ }];
517
+ };
518
+ };
519
+ readonly spacing: {
520
+ readonly type: "number";
521
+ readonly minimum: 0;
522
+ readonly maximum: 1000000000;
523
+ };
524
+ readonly margin: {
525
+ readonly type: "number";
526
+ readonly minimum: 0;
527
+ readonly maximum: 1000000000;
528
+ };
529
+ readonly timeBudgetSeconds: {
530
+ readonly type: "number";
531
+ readonly minimum: 0.001;
532
+ readonly maximum: 120;
533
+ };
534
+ readonly tolerance: {
535
+ readonly type: "number";
536
+ readonly minimum: 1e-9;
537
+ readonly maximum: 1000000000;
538
+ };
539
+ readonly evaluationBudget: {
540
+ readonly type: "integer";
541
+ readonly minimum: 0;
542
+ readonly maximum: 1000000000000;
543
+ };
544
+ readonly seed: {
545
+ readonly type: "integer";
546
+ readonly minimum: 0;
547
+ readonly maximum: 9007199254740991;
548
+ };
549
+ readonly sheetGap: {
550
+ readonly type: "number";
551
+ readonly minimum: 0;
552
+ readonly maximum: 1000000000;
553
+ };
554
+ };
555
+ readonly additionalProperties: false;
556
+ };
557
+ readonly NestingNestBody: {
558
+ readonly type: "object";
559
+ readonly properties: {
560
+ readonly stepFileIds: {
561
+ readonly minItems: 1;
562
+ readonly maxItems: 50;
563
+ readonly type: "array";
564
+ readonly items: {
565
+ readonly type: "string";
566
+ readonly minLength: 1;
567
+ };
568
+ };
569
+ readonly fileUnit: {
570
+ readonly $ref: "#/$defs/LengthUnit";
571
+ };
572
+ readonly options: {
573
+ readonly $ref: "#/$defs/NestingOptions";
574
+ };
575
+ readonly outputs: {
576
+ readonly $ref: "#/$defs/NestingOutputOptions";
577
+ };
578
+ };
579
+ readonly required: readonly ["stepFileIds", "options"];
580
+ readonly additionalProperties: false;
581
+ };
582
+ readonly NestingOptions: {
583
+ readonly type: "object";
584
+ readonly properties: {
585
+ readonly sheets: {
586
+ readonly minItems: 1;
587
+ readonly maxItems: 100;
588
+ readonly type: "array";
589
+ readonly items: {
590
+ readonly anyOf: readonly [{
591
+ readonly $ref: "#/$defs/NestingStrip";
592
+ }, {
593
+ readonly $ref: "#/$defs/NestingSheet";
594
+ }];
595
+ };
596
+ };
597
+ readonly parts: {
598
+ readonly maxItems: 5000;
599
+ readonly type: "array";
600
+ readonly items: {
601
+ readonly anyOf: readonly [{
602
+ readonly $ref: "#/$defs/NestingPartOptions";
603
+ }, {
604
+ readonly type: "null";
605
+ }];
606
+ };
607
+ };
608
+ readonly spacing: {
609
+ readonly type: "number";
610
+ readonly minimum: 0;
611
+ readonly maximum: 1000000000;
612
+ };
613
+ readonly margin: {
614
+ readonly type: "number";
615
+ readonly minimum: 0;
616
+ readonly maximum: 1000000000;
617
+ };
618
+ readonly timeBudgetSeconds: {
619
+ readonly type: "number";
620
+ readonly minimum: 0.001;
621
+ readonly maximum: 120;
622
+ };
623
+ readonly tolerance: {
624
+ readonly type: "number";
625
+ readonly minimum: 1e-9;
626
+ readonly maximum: 1000000000;
627
+ };
628
+ readonly evaluationBudget: {
629
+ readonly type: "integer";
630
+ readonly minimum: 0;
631
+ readonly maximum: 1000000000000;
632
+ };
633
+ readonly seed: {
634
+ readonly type: "integer";
635
+ readonly minimum: 0;
636
+ readonly maximum: 9007199254740991;
637
+ };
638
+ readonly sheetGap: {
639
+ readonly type: "number";
640
+ readonly minimum: 0;
641
+ readonly maximum: 1000000000;
642
+ };
643
+ };
644
+ readonly required: readonly ["sheets"];
645
+ readonly additionalProperties: false;
646
+ };
647
+ readonly NestingOutputFormat: {
648
+ readonly type: "string";
649
+ readonly enum: readonly ["step", "stpz", "decomposed-mesh", "gltf", "dxf", "svg", "outlines"];
650
+ };
651
+ readonly NestingOutputOptions: {
652
+ readonly type: "object";
653
+ readonly properties: {
654
+ readonly formats: {
655
+ readonly minItems: 1;
656
+ readonly type: "array";
657
+ readonly items: {
658
+ readonly $ref: "#/$defs/NestingOutputFormat";
659
+ };
660
+ };
661
+ readonly meshPrecision: {
662
+ readonly $ref: "#/$defs/MeshPrecision";
663
+ };
664
+ readonly gltfMeshPrecision: {
665
+ readonly $ref: "#/$defs/MeshPrecision";
666
+ };
667
+ readonly adjustYtoZ: {
668
+ readonly type: "boolean";
669
+ };
670
+ };
671
+ readonly required: readonly ["formats"];
672
+ readonly additionalProperties: false;
673
+ };
674
+ readonly NestingPartOptions: {
675
+ readonly type: "object";
676
+ readonly properties: {
677
+ readonly quantity: {
678
+ readonly type: "integer";
679
+ readonly minimum: 0;
680
+ readonly maximum: 100000;
681
+ };
682
+ readonly rotations: {
683
+ readonly $ref: "#/$defs/NestingRotations";
684
+ };
685
+ readonly allowFlip: {
686
+ readonly type: "boolean";
687
+ };
688
+ readonly priority: {
689
+ readonly type: "integer";
690
+ readonly minimum: -1000000;
691
+ readonly maximum: 1000000;
692
+ };
693
+ readonly xDirection: {
694
+ readonly type: "array";
695
+ readonly prefixItems: readonly [{
696
+ readonly type: "number";
697
+ }, {
698
+ readonly type: "number";
699
+ }, {
700
+ readonly type: "number";
701
+ }];
702
+ };
703
+ };
704
+ readonly additionalProperties: false;
705
+ };
706
+ readonly NestingRotations: {
707
+ readonly oneOf: readonly [{
708
+ readonly type: "object";
709
+ readonly properties: {
710
+ readonly mode: {
711
+ readonly type: "string";
712
+ readonly const: "fixed";
713
+ };
714
+ readonly angles: {
715
+ readonly minItems: 1;
716
+ readonly maxItems: 720;
717
+ readonly type: "array";
718
+ readonly items: {
719
+ readonly type: "number";
720
+ readonly minimum: -36000;
721
+ readonly maximum: 36000;
722
+ };
723
+ };
724
+ };
725
+ readonly required: readonly ["mode", "angles"];
726
+ readonly additionalProperties: false;
727
+ }, {
728
+ readonly type: "object";
729
+ readonly properties: {
730
+ readonly mode: {
731
+ readonly type: "string";
732
+ readonly const: "step";
733
+ };
734
+ readonly step: {
735
+ readonly type: "number";
736
+ readonly minimum: 0.5;
737
+ readonly maximum: 360;
738
+ };
739
+ };
740
+ readonly required: readonly ["mode", "step"];
741
+ readonly additionalProperties: false;
742
+ }, {
743
+ readonly type: "object";
744
+ readonly properties: {
745
+ readonly mode: {
746
+ readonly type: "string";
747
+ readonly const: "free";
748
+ };
749
+ };
750
+ readonly required: readonly ["mode"];
751
+ readonly additionalProperties: false;
752
+ }];
753
+ readonly type: "object";
754
+ };
755
+ readonly NestingSheet: {
756
+ readonly type: "object";
757
+ readonly properties: {
758
+ readonly width: {
759
+ readonly type: "number";
760
+ readonly exclusiveMinimum: 0;
761
+ readonly maximum: 1000000000;
762
+ };
763
+ readonly height: {
764
+ readonly type: "number";
765
+ readonly exclusiveMinimum: 0;
766
+ readonly maximum: 1000000000;
767
+ };
768
+ readonly quantity: {
769
+ readonly type: "integer";
770
+ readonly minimum: 0;
771
+ readonly maximum: 100000;
772
+ };
773
+ readonly cost: {
774
+ readonly type: "number";
775
+ readonly minimum: 0;
776
+ readonly maximum: 1000000000000;
777
+ };
778
+ readonly strip: {
779
+ readonly type: "boolean";
780
+ readonly const: false;
781
+ };
782
+ };
783
+ readonly required: readonly ["width", "height"];
784
+ readonly additionalProperties: false;
785
+ };
786
+ readonly NestingStrip: {
787
+ readonly type: "object";
788
+ readonly properties: {
789
+ readonly strip: {
790
+ readonly type: "boolean";
791
+ readonly const: true;
792
+ };
793
+ readonly height: {
794
+ readonly type: "number";
795
+ readonly exclusiveMinimum: 0;
796
+ readonly maximum: 1000000000;
797
+ };
798
+ readonly cost: {
799
+ readonly type: "number";
800
+ readonly minimum: 0;
801
+ readonly maximum: 1000000000000;
802
+ };
803
+ };
804
+ readonly required: readonly ["strip", "height"];
805
+ readonly additionalProperties: false;
806
+ };
472
807
  readonly OutputFormat: {
473
808
  readonly type: "string";
474
809
  readonly enum: readonly ["step", "stpz", "decomposed-mesh", "gltf"];
@@ -778,6 +1113,61 @@ export declare const schemaBundle: {
778
1113
  readonly required: readonly ["stepFileId"];
779
1114
  readonly additionalProperties: false;
780
1115
  };
1116
+ readonly UnfoldAndNestBody: {
1117
+ readonly type: "object";
1118
+ readonly properties: {
1119
+ readonly stepFileId: {
1120
+ readonly type: "string";
1121
+ readonly minLength: 1;
1122
+ };
1123
+ readonly fileUnit: {
1124
+ readonly $ref: "#/$defs/LengthUnit";
1125
+ };
1126
+ readonly kFactor: {
1127
+ readonly default: 0.5;
1128
+ readonly type: "number";
1129
+ readonly minimum: 0;
1130
+ readonly maximum: 1;
1131
+ };
1132
+ readonly thicknessOverride: {
1133
+ readonly default: 0;
1134
+ readonly type: "number";
1135
+ readonly minimum: 0;
1136
+ };
1137
+ readonly nesting: {
1138
+ readonly $ref: "#/$defs/UnfoldNestingOptions";
1139
+ };
1140
+ readonly outputs: {
1141
+ readonly $ref: "#/$defs/UnfoldAndNestOutputOptions";
1142
+ };
1143
+ };
1144
+ readonly required: readonly ["stepFileId"];
1145
+ readonly additionalProperties: false;
1146
+ };
1147
+ readonly UnfoldAndNestOutputOptions: {
1148
+ readonly type: "object";
1149
+ readonly properties: {
1150
+ readonly formats: {
1151
+ readonly minItems: 1;
1152
+ readonly type: "array";
1153
+ readonly items: {
1154
+ readonly type: "string";
1155
+ readonly enum: readonly ["step", "stpz", "decomposed-mesh", "gltf", "dxf", "svg", "outlines", "flat-meshes"];
1156
+ };
1157
+ };
1158
+ readonly meshPrecision: {
1159
+ readonly $ref: "#/$defs/MeshPrecision";
1160
+ };
1161
+ readonly gltfMeshPrecision: {
1162
+ readonly $ref: "#/$defs/MeshPrecision";
1163
+ };
1164
+ readonly adjustYtoZ: {
1165
+ readonly type: "boolean";
1166
+ };
1167
+ };
1168
+ readonly required: readonly ["formats"];
1169
+ readonly additionalProperties: false;
1170
+ };
781
1171
  readonly UnfoldFaceReportBody: {
782
1172
  readonly type: "object";
783
1173
  readonly properties: {
@@ -785,6 +1175,9 @@ export declare const schemaBundle: {
785
1175
  readonly type: "string";
786
1176
  readonly minLength: 1;
787
1177
  };
1178
+ readonly fileUnit: {
1179
+ readonly $ref: "#/$defs/LengthUnit";
1180
+ };
788
1181
  readonly faceIndex: {
789
1182
  readonly default: 0;
790
1183
  readonly type: "integer";
@@ -802,6 +1195,9 @@ export declare const schemaBundle: {
802
1195
  readonly type: "string";
803
1196
  readonly minLength: 1;
804
1197
  };
1198
+ readonly fileUnit: {
1199
+ readonly $ref: "#/$defs/LengthUnit";
1200
+ };
805
1201
  readonly faceIndex: {
806
1202
  readonly default: 0;
807
1203
  readonly type: "integer";
@@ -815,6 +1211,70 @@ export declare const schemaBundle: {
815
1211
  readonly required: readonly ["stepFileId"];
816
1212
  readonly additionalProperties: false;
817
1213
  };
1214
+ readonly UnfoldNestingOptions: {
1215
+ readonly type: "object";
1216
+ readonly properties: {
1217
+ readonly sheets: {
1218
+ readonly minItems: 1;
1219
+ readonly maxItems: 100;
1220
+ readonly type: "array";
1221
+ readonly items: {
1222
+ readonly anyOf: readonly [{
1223
+ readonly $ref: "#/$defs/NestingStrip";
1224
+ }, {
1225
+ readonly $ref: "#/$defs/NestingSheet";
1226
+ }];
1227
+ };
1228
+ };
1229
+ readonly quantity: {
1230
+ readonly type: "integer";
1231
+ readonly minimum: 1;
1232
+ readonly maximum: 100000;
1233
+ };
1234
+ readonly rotations: {
1235
+ readonly $ref: "#/$defs/NestingRotations";
1236
+ };
1237
+ readonly allowFlip: {
1238
+ readonly type: "boolean";
1239
+ };
1240
+ readonly spacing: {
1241
+ readonly type: "number";
1242
+ readonly minimum: 0;
1243
+ readonly maximum: 1000000000;
1244
+ };
1245
+ readonly margin: {
1246
+ readonly type: "number";
1247
+ readonly minimum: 0;
1248
+ readonly maximum: 1000000000;
1249
+ };
1250
+ readonly timeBudgetSeconds: {
1251
+ readonly type: "number";
1252
+ readonly minimum: 0.001;
1253
+ readonly maximum: 120;
1254
+ };
1255
+ readonly tolerance: {
1256
+ readonly type: "number";
1257
+ readonly minimum: 1e-9;
1258
+ readonly maximum: 1000000000;
1259
+ };
1260
+ readonly evaluationBudget: {
1261
+ readonly type: "integer";
1262
+ readonly minimum: 0;
1263
+ readonly maximum: 1000000000000;
1264
+ };
1265
+ readonly seed: {
1266
+ readonly type: "integer";
1267
+ readonly minimum: 0;
1268
+ readonly maximum: 9007199254740991;
1269
+ };
1270
+ readonly sheetGap: {
1271
+ readonly type: "number";
1272
+ readonly minimum: 0;
1273
+ readonly maximum: 1000000000;
1274
+ };
1275
+ };
1276
+ readonly additionalProperties: false;
1277
+ };
818
1278
  readonly UnfoldSolidBody: {
819
1279
  readonly type: "object";
820
1280
  readonly properties: {
@@ -822,6 +1282,9 @@ export declare const schemaBundle: {
822
1282
  readonly type: "string";
823
1283
  readonly minLength: 1;
824
1284
  };
1285
+ readonly fileUnit: {
1286
+ readonly $ref: "#/$defs/LengthUnit";
1287
+ };
825
1288
  readonly kFactor: {
826
1289
  readonly default: 0.5;
827
1290
  readonly type: "number";
@@ -847,6 +1310,9 @@ export declare const schemaBundle: {
847
1310
  readonly type: "string";
848
1311
  readonly minLength: 1;
849
1312
  };
1313
+ readonly fileUnit: {
1314
+ readonly $ref: "#/$defs/LengthUnit";
1315
+ };
850
1316
  readonly kFactor: {
851
1317
  readonly default: 0.5;
852
1318
  readonly type: "number";
@@ -869,6 +1335,9 @@ export declare const schemaBundle: {
869
1335
  readonly type: "string";
870
1336
  readonly minLength: 1;
871
1337
  };
1338
+ readonly fileUnit: {
1339
+ readonly $ref: "#/$defs/LengthUnit";
1340
+ };
872
1341
  readonly kFactor: {
873
1342
  readonly default: 0.5;
874
1343
  readonly type: "number";
@@ -1 +1 @@
1
- {"version":3,"file":"request-schemas.d.ts","sourceRoot":"","sources":["../../src/validation/request-schemas.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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