@printhive/api 0.0.0-stage → 0.2.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.
@@ -0,0 +1,2728 @@
1
+ interface paths {
2
+ "/v1/printers": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ /** List organization printers and loaded filament */
10
+ get: {
11
+ parameters: {
12
+ query?: {
13
+ limit?: number;
14
+ cursor?: string;
15
+ };
16
+ header?: never;
17
+ path?: never;
18
+ cookie?: never;
19
+ };
20
+ requestBody?: never;
21
+ responses: {
22
+ /** @description Default Response */
23
+ 200: {
24
+ headers: {
25
+ [name: string]: unknown;
26
+ };
27
+ content: {
28
+ "application/json": {
29
+ printers: {
30
+ /** Format: uuid */
31
+ id: string;
32
+ name: string;
33
+ make: string;
34
+ model: string;
35
+ modelId: null | string;
36
+ family: string;
37
+ nozzleDiameter: null | number;
38
+ buildPlate: null | string;
39
+ connected: null | boolean;
40
+ readyMarked: boolean;
41
+ readiness: {
42
+ ready: boolean;
43
+ bedClear: null | boolean;
44
+ };
45
+ maintenance: boolean;
46
+ /** @enum {string} */
47
+ state: "idle" | "printing" | "paused" | "offline" | "maintenance" | "ready-marked" | "unknown";
48
+ loadedFilament: {
49
+ slot: string;
50
+ position: number;
51
+ address: {
52
+ ams_id: number;
53
+ slot_id: number;
54
+ };
55
+ /** @enum {string} */
56
+ state: "loaded" | "empty" | "unknown";
57
+ material: null | string;
58
+ color: null | string;
59
+ colorHex: null | string;
60
+ }[];
61
+ }[];
62
+ nextCursor: string | null;
63
+ };
64
+ };
65
+ };
66
+ };
67
+ };
68
+ put?: never;
69
+ post?: never;
70
+ delete?: never;
71
+ options?: never;
72
+ head?: never;
73
+ patch?: never;
74
+ trace?: never;
75
+ };
76
+ "/v1/printers/{id}": {
77
+ parameters: {
78
+ query?: never;
79
+ header?: never;
80
+ path?: never;
81
+ cookie?: never;
82
+ };
83
+ /** Read an organization printer and loaded filament */
84
+ get: {
85
+ parameters: {
86
+ query?: never;
87
+ header?: never;
88
+ path: {
89
+ id: string;
90
+ };
91
+ cookie?: never;
92
+ };
93
+ requestBody?: never;
94
+ responses: {
95
+ /** @description Default Response */
96
+ 200: {
97
+ headers: {
98
+ [name: string]: unknown;
99
+ };
100
+ content: {
101
+ "application/json": {
102
+ /** Format: uuid */
103
+ id: string;
104
+ name: string;
105
+ make: string;
106
+ model: string;
107
+ modelId: null | string;
108
+ family: string;
109
+ nozzleDiameter: null | number;
110
+ buildPlate: null | string;
111
+ connected: null | boolean;
112
+ readyMarked: boolean;
113
+ readiness: {
114
+ ready: boolean;
115
+ bedClear: null | boolean;
116
+ };
117
+ maintenance: boolean;
118
+ /** @enum {string} */
119
+ state: "idle" | "printing" | "paused" | "offline" | "maintenance" | "ready-marked" | "unknown";
120
+ loadedFilament: {
121
+ slot: string;
122
+ position: number;
123
+ address: {
124
+ ams_id: number;
125
+ slot_id: number;
126
+ };
127
+ /** @enum {string} */
128
+ state: "loaded" | "empty" | "unknown";
129
+ material: null | string;
130
+ color: null | string;
131
+ colorHex: null | string;
132
+ }[];
133
+ };
134
+ };
135
+ };
136
+ };
137
+ };
138
+ put?: never;
139
+ post?: never;
140
+ delete?: never;
141
+ options?: never;
142
+ head?: never;
143
+ patch?: never;
144
+ trace?: never;
145
+ };
146
+ "/v1/partner-production/uploads": {
147
+ parameters: {
148
+ query?: never;
149
+ header?: never;
150
+ path?: never;
151
+ cookie?: never;
152
+ };
153
+ get?: never;
154
+ put?: never;
155
+ /**
156
+ * Upload an immutable partner source
157
+ * @description Stream the raw .3mf body with Content-Length. The source exists once its bytes are stored. Optional externalId binds the source to the organization's model for that partner design id.
158
+ */
159
+ post: {
160
+ parameters: {
161
+ query?: {
162
+ filename?: string;
163
+ modelId?: string;
164
+ externalId?: string;
165
+ };
166
+ header?: {
167
+ "idempotency-key"?: string;
168
+ };
169
+ path?: never;
170
+ cookie?: never;
171
+ };
172
+ requestBody?: never;
173
+ responses: {
174
+ /** @description Default Response */
175
+ 200: {
176
+ headers: {
177
+ [name: string]: unknown;
178
+ };
179
+ content: {
180
+ "application/json": {
181
+ /** Format: uuid */
182
+ sourceVersionId: string;
183
+ /** Format: uuid */
184
+ modelId: string;
185
+ externalId: string | null;
186
+ sha256: string;
187
+ filename: string;
188
+ bytes: number;
189
+ /** Format: date-time */
190
+ createdAt: string;
191
+ /** @enum {string} */
192
+ status: "queued";
193
+ } | {
194
+ /** Format: uuid */
195
+ sourceVersionId: string;
196
+ /** Format: uuid */
197
+ modelId: string;
198
+ externalId: string | null;
199
+ sha256: string;
200
+ filename: string;
201
+ bytes: number;
202
+ /** Format: date-time */
203
+ createdAt: string;
204
+ /** @enum {string} */
205
+ status: "inspecting";
206
+ } | {
207
+ /** Format: uuid */
208
+ sourceVersionId: string;
209
+ /** Format: uuid */
210
+ modelId: string;
211
+ externalId: string | null;
212
+ sha256: string;
213
+ filename: string;
214
+ bytes: number;
215
+ /** Format: date-time */
216
+ createdAt: string;
217
+ /** @enum {string} */
218
+ status: "ready";
219
+ inspection: {
220
+ /** @enum {number} */
221
+ version: 1;
222
+ /** @enum {string} */
223
+ classification: "project" | "geometry_only" | "toolpath_only";
224
+ hasEmbeddedGcode: boolean;
225
+ plates: {
226
+ number: number;
227
+ objectIds: string[];
228
+ }[];
229
+ objects: {
230
+ id: string;
231
+ entry: string;
232
+ objectId: number;
233
+ name: string | null;
234
+ /** @enum {string} */
235
+ kind: "mesh" | "assembly" | "support" | "other";
236
+ materialSlots: number[];
237
+ }[];
238
+ materialSlots: {
239
+ slot: number;
240
+ material: string | null;
241
+ color: string | null;
242
+ profile: string | null;
243
+ }[];
244
+ /** @enum {string} */
245
+ materialUsage: "complete" | "requires_review";
246
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
247
+ authoringEngine?: {
248
+ /** @enum {string} */
249
+ status: "recognized";
250
+ /** @enum {string} */
251
+ family: "bambu_studio" | "orca_slicer";
252
+ release: string;
253
+ releaseLine: string;
254
+ major: number;
255
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
256
+ } | {
257
+ /** @enum {string} */
258
+ status: "unsupported_family";
259
+ application: string;
260
+ } | {
261
+ /** @enum {string} */
262
+ status: "fork";
263
+ application: string;
264
+ release: string;
265
+ } | {
266
+ /** @enum {string} */
267
+ status: "disagreeing";
268
+ values: {
269
+ application?: string;
270
+ projectSettingsVersion?: string;
271
+ sliceInfoClientVersion?: string;
272
+ };
273
+ } | {
274
+ /** @enum {string} */
275
+ status: "unparseable";
276
+ values: {
277
+ application?: string;
278
+ projectSettingsVersion?: string;
279
+ sliceInfoClientVersion?: string;
280
+ };
281
+ } | {
282
+ /** @enum {string} */
283
+ status: "missing";
284
+ };
285
+ printerModel?: string;
286
+ };
287
+ } | {
288
+ /** Format: uuid */
289
+ sourceVersionId: string;
290
+ /** Format: uuid */
291
+ modelId: string;
292
+ externalId: string | null;
293
+ sha256: string;
294
+ filename: string;
295
+ bytes: number;
296
+ /** Format: date-time */
297
+ createdAt: string;
298
+ /** @enum {string} */
299
+ status: "failed";
300
+ inspection: {
301
+ /** @enum {number} */
302
+ version: 1;
303
+ /** @enum {string} */
304
+ classification: "project" | "geometry_only" | "toolpath_only";
305
+ hasEmbeddedGcode: boolean;
306
+ plates: {
307
+ number: number;
308
+ objectIds: string[];
309
+ }[];
310
+ objects: {
311
+ id: string;
312
+ entry: string;
313
+ objectId: number;
314
+ name: string | null;
315
+ /** @enum {string} */
316
+ kind: "mesh" | "assembly" | "support" | "other";
317
+ materialSlots: number[];
318
+ }[];
319
+ materialSlots: {
320
+ slot: number;
321
+ material: string | null;
322
+ color: string | null;
323
+ profile: string | null;
324
+ }[];
325
+ /** @enum {string} */
326
+ materialUsage: "complete" | "requires_review";
327
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
328
+ authoringEngine?: {
329
+ /** @enum {string} */
330
+ status: "recognized";
331
+ /** @enum {string} */
332
+ family: "bambu_studio" | "orca_slicer";
333
+ release: string;
334
+ releaseLine: string;
335
+ major: number;
336
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
337
+ } | {
338
+ /** @enum {string} */
339
+ status: "unsupported_family";
340
+ application: string;
341
+ } | {
342
+ /** @enum {string} */
343
+ status: "fork";
344
+ application: string;
345
+ release: string;
346
+ } | {
347
+ /** @enum {string} */
348
+ status: "disagreeing";
349
+ values: {
350
+ application?: string;
351
+ projectSettingsVersion?: string;
352
+ sliceInfoClientVersion?: string;
353
+ };
354
+ } | {
355
+ /** @enum {string} */
356
+ status: "unparseable";
357
+ values: {
358
+ application?: string;
359
+ projectSettingsVersion?: string;
360
+ sliceInfoClientVersion?: string;
361
+ };
362
+ } | {
363
+ /** @enum {string} */
364
+ status: "missing";
365
+ };
366
+ printerModel?: string;
367
+ } | null;
368
+ error: {
369
+ /** @enum {string} */
370
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
371
+ message: string;
372
+ limit?: {
373
+ /** @enum {string} */
374
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
375
+ max: number;
376
+ observed?: number;
377
+ };
378
+ };
379
+ };
380
+ };
381
+ };
382
+ /** @description Default Response */
383
+ 202: {
384
+ headers: {
385
+ [name: string]: unknown;
386
+ };
387
+ content: {
388
+ "application/json": {
389
+ /** Format: uuid */
390
+ sourceVersionId: string;
391
+ /** Format: uuid */
392
+ modelId: string;
393
+ externalId: string | null;
394
+ sha256: string;
395
+ filename: string;
396
+ bytes: number;
397
+ /** Format: date-time */
398
+ createdAt: string;
399
+ /** @enum {string} */
400
+ status: "queued";
401
+ } | {
402
+ /** Format: uuid */
403
+ sourceVersionId: string;
404
+ /** Format: uuid */
405
+ modelId: string;
406
+ externalId: string | null;
407
+ sha256: string;
408
+ filename: string;
409
+ bytes: number;
410
+ /** Format: date-time */
411
+ createdAt: string;
412
+ /** @enum {string} */
413
+ status: "inspecting";
414
+ } | {
415
+ /** Format: uuid */
416
+ sourceVersionId: string;
417
+ /** Format: uuid */
418
+ modelId: string;
419
+ externalId: string | null;
420
+ sha256: string;
421
+ filename: string;
422
+ bytes: number;
423
+ /** Format: date-time */
424
+ createdAt: string;
425
+ /** @enum {string} */
426
+ status: "ready";
427
+ inspection: {
428
+ /** @enum {number} */
429
+ version: 1;
430
+ /** @enum {string} */
431
+ classification: "project" | "geometry_only" | "toolpath_only";
432
+ hasEmbeddedGcode: boolean;
433
+ plates: {
434
+ number: number;
435
+ objectIds: string[];
436
+ }[];
437
+ objects: {
438
+ id: string;
439
+ entry: string;
440
+ objectId: number;
441
+ name: string | null;
442
+ /** @enum {string} */
443
+ kind: "mesh" | "assembly" | "support" | "other";
444
+ materialSlots: number[];
445
+ }[];
446
+ materialSlots: {
447
+ slot: number;
448
+ material: string | null;
449
+ color: string | null;
450
+ profile: string | null;
451
+ }[];
452
+ /** @enum {string} */
453
+ materialUsage: "complete" | "requires_review";
454
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
455
+ authoringEngine?: {
456
+ /** @enum {string} */
457
+ status: "recognized";
458
+ /** @enum {string} */
459
+ family: "bambu_studio" | "orca_slicer";
460
+ release: string;
461
+ releaseLine: string;
462
+ major: number;
463
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
464
+ } | {
465
+ /** @enum {string} */
466
+ status: "unsupported_family";
467
+ application: string;
468
+ } | {
469
+ /** @enum {string} */
470
+ status: "fork";
471
+ application: string;
472
+ release: string;
473
+ } | {
474
+ /** @enum {string} */
475
+ status: "disagreeing";
476
+ values: {
477
+ application?: string;
478
+ projectSettingsVersion?: string;
479
+ sliceInfoClientVersion?: string;
480
+ };
481
+ } | {
482
+ /** @enum {string} */
483
+ status: "unparseable";
484
+ values: {
485
+ application?: string;
486
+ projectSettingsVersion?: string;
487
+ sliceInfoClientVersion?: string;
488
+ };
489
+ } | {
490
+ /** @enum {string} */
491
+ status: "missing";
492
+ };
493
+ printerModel?: string;
494
+ };
495
+ } | {
496
+ /** Format: uuid */
497
+ sourceVersionId: string;
498
+ /** Format: uuid */
499
+ modelId: string;
500
+ externalId: string | null;
501
+ sha256: string;
502
+ filename: string;
503
+ bytes: number;
504
+ /** Format: date-time */
505
+ createdAt: string;
506
+ /** @enum {string} */
507
+ status: "failed";
508
+ inspection: {
509
+ /** @enum {number} */
510
+ version: 1;
511
+ /** @enum {string} */
512
+ classification: "project" | "geometry_only" | "toolpath_only";
513
+ hasEmbeddedGcode: boolean;
514
+ plates: {
515
+ number: number;
516
+ objectIds: string[];
517
+ }[];
518
+ objects: {
519
+ id: string;
520
+ entry: string;
521
+ objectId: number;
522
+ name: string | null;
523
+ /** @enum {string} */
524
+ kind: "mesh" | "assembly" | "support" | "other";
525
+ materialSlots: number[];
526
+ }[];
527
+ materialSlots: {
528
+ slot: number;
529
+ material: string | null;
530
+ color: string | null;
531
+ profile: string | null;
532
+ }[];
533
+ /** @enum {string} */
534
+ materialUsage: "complete" | "requires_review";
535
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
536
+ authoringEngine?: {
537
+ /** @enum {string} */
538
+ status: "recognized";
539
+ /** @enum {string} */
540
+ family: "bambu_studio" | "orca_slicer";
541
+ release: string;
542
+ releaseLine: string;
543
+ major: number;
544
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
545
+ } | {
546
+ /** @enum {string} */
547
+ status: "unsupported_family";
548
+ application: string;
549
+ } | {
550
+ /** @enum {string} */
551
+ status: "fork";
552
+ application: string;
553
+ release: string;
554
+ } | {
555
+ /** @enum {string} */
556
+ status: "disagreeing";
557
+ values: {
558
+ application?: string;
559
+ projectSettingsVersion?: string;
560
+ sliceInfoClientVersion?: string;
561
+ };
562
+ } | {
563
+ /** @enum {string} */
564
+ status: "unparseable";
565
+ values: {
566
+ application?: string;
567
+ projectSettingsVersion?: string;
568
+ sliceInfoClientVersion?: string;
569
+ };
570
+ } | {
571
+ /** @enum {string} */
572
+ status: "missing";
573
+ };
574
+ printerModel?: string;
575
+ } | null;
576
+ error: {
577
+ /** @enum {string} */
578
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
579
+ message: string;
580
+ limit?: {
581
+ /** @enum {string} */
582
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
583
+ max: number;
584
+ observed?: number;
585
+ };
586
+ };
587
+ };
588
+ };
589
+ };
590
+ /** @description Default Response */
591
+ 400: {
592
+ headers: {
593
+ [name: string]: unknown;
594
+ };
595
+ content: {
596
+ "application/json": {
597
+ /** @enum {string} */
598
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
599
+ limit?: {
600
+ /** @enum {string} */
601
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
602
+ max: number;
603
+ observed?: number;
604
+ };
605
+ };
606
+ };
607
+ };
608
+ /** @description Default Response */
609
+ 401: {
610
+ headers: {
611
+ [name: string]: unknown;
612
+ };
613
+ content: {
614
+ "application/json": {
615
+ error?: string;
616
+ message?: string;
617
+ requestId?: string;
618
+ };
619
+ };
620
+ };
621
+ /** @description Default Response */
622
+ 403: {
623
+ headers: {
624
+ [name: string]: unknown;
625
+ };
626
+ content: {
627
+ "application/json": {
628
+ error?: string;
629
+ message?: string;
630
+ requestId?: string;
631
+ };
632
+ };
633
+ };
634
+ /** @description Default Response */
635
+ 404: {
636
+ headers: {
637
+ [name: string]: unknown;
638
+ };
639
+ content: {
640
+ "application/json": {
641
+ /** @enum {string} */
642
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
643
+ limit?: {
644
+ /** @enum {string} */
645
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
646
+ max: number;
647
+ observed?: number;
648
+ };
649
+ };
650
+ };
651
+ };
652
+ /** @description Default Response */
653
+ 408: {
654
+ headers: {
655
+ [name: string]: unknown;
656
+ };
657
+ content: {
658
+ "application/json": {
659
+ /** @enum {string} */
660
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
661
+ limit?: {
662
+ /** @enum {string} */
663
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
664
+ max: number;
665
+ observed?: number;
666
+ };
667
+ };
668
+ };
669
+ };
670
+ /** @description Default Response */
671
+ 409: {
672
+ headers: {
673
+ [name: string]: unknown;
674
+ };
675
+ content: {
676
+ "application/json": {
677
+ /** @enum {string} */
678
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
679
+ limit?: {
680
+ /** @enum {string} */
681
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
682
+ max: number;
683
+ observed?: number;
684
+ };
685
+ };
686
+ };
687
+ };
688
+ /** @description Default Response */
689
+ 411: {
690
+ headers: {
691
+ [name: string]: unknown;
692
+ };
693
+ content: {
694
+ "application/json": {
695
+ /** @enum {string} */
696
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
697
+ limit?: {
698
+ /** @enum {string} */
699
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
700
+ max: number;
701
+ observed?: number;
702
+ };
703
+ };
704
+ };
705
+ };
706
+ /** @description Default Response */
707
+ 413: {
708
+ headers: {
709
+ [name: string]: unknown;
710
+ };
711
+ content: {
712
+ "application/json": {
713
+ /** @enum {string} */
714
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
715
+ limit?: {
716
+ /** @enum {string} */
717
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
718
+ max: number;
719
+ observed?: number;
720
+ };
721
+ };
722
+ };
723
+ };
724
+ /** @description Default Response */
725
+ 415: {
726
+ headers: {
727
+ [name: string]: unknown;
728
+ };
729
+ content: {
730
+ "application/json": {
731
+ /** @enum {string} */
732
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
733
+ limit?: {
734
+ /** @enum {string} */
735
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
736
+ max: number;
737
+ observed?: number;
738
+ };
739
+ };
740
+ };
741
+ };
742
+ /** @description Default Response */
743
+ 429: {
744
+ headers: {
745
+ /** @description Seconds to wait before retrying the upload. */
746
+ "Retry-After"?: number;
747
+ [name: string]: unknown;
748
+ };
749
+ content: {
750
+ "application/json": {
751
+ /** @enum {string} */
752
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
753
+ limit?: {
754
+ /** @enum {string} */
755
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
756
+ max: number;
757
+ observed?: number;
758
+ };
759
+ };
760
+ };
761
+ };
762
+ /** @description Default Response */
763
+ 503: {
764
+ headers: {
765
+ [name: string]: unknown;
766
+ };
767
+ content: {
768
+ "application/json": {
769
+ /** @enum {string} */
770
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
771
+ limit?: {
772
+ /** @enum {string} */
773
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
774
+ max: number;
775
+ observed?: number;
776
+ };
777
+ };
778
+ };
779
+ };
780
+ };
781
+ };
782
+ delete?: never;
783
+ options?: never;
784
+ head?: never;
785
+ patch?: never;
786
+ trace?: never;
787
+ };
788
+ "/v1/partner-production/uploads/{sourceId}": {
789
+ parameters: {
790
+ query?: never;
791
+ header?: never;
792
+ path?: never;
793
+ cookie?: never;
794
+ };
795
+ /** Read a partner source version */
796
+ get: {
797
+ parameters: {
798
+ query?: never;
799
+ header?: never;
800
+ path: {
801
+ sourceId: string;
802
+ };
803
+ cookie?: never;
804
+ };
805
+ requestBody?: never;
806
+ responses: {
807
+ /** @description Default Response */
808
+ 200: {
809
+ headers: {
810
+ [name: string]: unknown;
811
+ };
812
+ content: {
813
+ "application/json": {
814
+ /** Format: uuid */
815
+ sourceVersionId: string;
816
+ /** Format: uuid */
817
+ modelId: string;
818
+ externalId: string | null;
819
+ sha256: string;
820
+ filename: string;
821
+ bytes: number;
822
+ /** Format: date-time */
823
+ createdAt: string;
824
+ /** @enum {string} */
825
+ status: "queued";
826
+ } | {
827
+ /** Format: uuid */
828
+ sourceVersionId: string;
829
+ /** Format: uuid */
830
+ modelId: string;
831
+ externalId: string | null;
832
+ sha256: string;
833
+ filename: string;
834
+ bytes: number;
835
+ /** Format: date-time */
836
+ createdAt: string;
837
+ /** @enum {string} */
838
+ status: "inspecting";
839
+ } | {
840
+ /** Format: uuid */
841
+ sourceVersionId: string;
842
+ /** Format: uuid */
843
+ modelId: string;
844
+ externalId: string | null;
845
+ sha256: string;
846
+ filename: string;
847
+ bytes: number;
848
+ /** Format: date-time */
849
+ createdAt: string;
850
+ /** @enum {string} */
851
+ status: "ready";
852
+ inspection: {
853
+ /** @enum {number} */
854
+ version: 1;
855
+ /** @enum {string} */
856
+ classification: "project" | "geometry_only" | "toolpath_only";
857
+ hasEmbeddedGcode: boolean;
858
+ plates: {
859
+ number: number;
860
+ objectIds: string[];
861
+ }[];
862
+ objects: {
863
+ id: string;
864
+ entry: string;
865
+ objectId: number;
866
+ name: string | null;
867
+ /** @enum {string} */
868
+ kind: "mesh" | "assembly" | "support" | "other";
869
+ materialSlots: number[];
870
+ }[];
871
+ materialSlots: {
872
+ slot: number;
873
+ material: string | null;
874
+ color: string | null;
875
+ profile: string | null;
876
+ }[];
877
+ /** @enum {string} */
878
+ materialUsage: "complete" | "requires_review";
879
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
880
+ authoringEngine?: {
881
+ /** @enum {string} */
882
+ status: "recognized";
883
+ /** @enum {string} */
884
+ family: "bambu_studio" | "orca_slicer";
885
+ release: string;
886
+ releaseLine: string;
887
+ major: number;
888
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
889
+ } | {
890
+ /** @enum {string} */
891
+ status: "unsupported_family";
892
+ application: string;
893
+ } | {
894
+ /** @enum {string} */
895
+ status: "fork";
896
+ application: string;
897
+ release: string;
898
+ } | {
899
+ /** @enum {string} */
900
+ status: "disagreeing";
901
+ values: {
902
+ application?: string;
903
+ projectSettingsVersion?: string;
904
+ sliceInfoClientVersion?: string;
905
+ };
906
+ } | {
907
+ /** @enum {string} */
908
+ status: "unparseable";
909
+ values: {
910
+ application?: string;
911
+ projectSettingsVersion?: string;
912
+ sliceInfoClientVersion?: string;
913
+ };
914
+ } | {
915
+ /** @enum {string} */
916
+ status: "missing";
917
+ };
918
+ printerModel?: string;
919
+ };
920
+ } | {
921
+ /** Format: uuid */
922
+ sourceVersionId: string;
923
+ /** Format: uuid */
924
+ modelId: string;
925
+ externalId: string | null;
926
+ sha256: string;
927
+ filename: string;
928
+ bytes: number;
929
+ /** Format: date-time */
930
+ createdAt: string;
931
+ /** @enum {string} */
932
+ status: "failed";
933
+ inspection: {
934
+ /** @enum {number} */
935
+ version: 1;
936
+ /** @enum {string} */
937
+ classification: "project" | "geometry_only" | "toolpath_only";
938
+ hasEmbeddedGcode: boolean;
939
+ plates: {
940
+ number: number;
941
+ objectIds: string[];
942
+ }[];
943
+ objects: {
944
+ id: string;
945
+ entry: string;
946
+ objectId: number;
947
+ name: string | null;
948
+ /** @enum {string} */
949
+ kind: "mesh" | "assembly" | "support" | "other";
950
+ materialSlots: number[];
951
+ }[];
952
+ materialSlots: {
953
+ slot: number;
954
+ material: string | null;
955
+ color: string | null;
956
+ profile: string | null;
957
+ }[];
958
+ /** @enum {string} */
959
+ materialUsage: "complete" | "requires_review";
960
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
961
+ authoringEngine?: {
962
+ /** @enum {string} */
963
+ status: "recognized";
964
+ /** @enum {string} */
965
+ family: "bambu_studio" | "orca_slicer";
966
+ release: string;
967
+ releaseLine: string;
968
+ major: number;
969
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
970
+ } | {
971
+ /** @enum {string} */
972
+ status: "unsupported_family";
973
+ application: string;
974
+ } | {
975
+ /** @enum {string} */
976
+ status: "fork";
977
+ application: string;
978
+ release: string;
979
+ } | {
980
+ /** @enum {string} */
981
+ status: "disagreeing";
982
+ values: {
983
+ application?: string;
984
+ projectSettingsVersion?: string;
985
+ sliceInfoClientVersion?: string;
986
+ };
987
+ } | {
988
+ /** @enum {string} */
989
+ status: "unparseable";
990
+ values: {
991
+ application?: string;
992
+ projectSettingsVersion?: string;
993
+ sliceInfoClientVersion?: string;
994
+ };
995
+ } | {
996
+ /** @enum {string} */
997
+ status: "missing";
998
+ };
999
+ printerModel?: string;
1000
+ } | null;
1001
+ error: {
1002
+ /** @enum {string} */
1003
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
1004
+ message: string;
1005
+ limit?: {
1006
+ /** @enum {string} */
1007
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1008
+ max: number;
1009
+ observed?: number;
1010
+ };
1011
+ };
1012
+ };
1013
+ };
1014
+ };
1015
+ /** @description Default Response */
1016
+ 401: {
1017
+ headers: {
1018
+ [name: string]: unknown;
1019
+ };
1020
+ content: {
1021
+ "application/json": {
1022
+ error?: string;
1023
+ message?: string;
1024
+ requestId?: string;
1025
+ };
1026
+ };
1027
+ };
1028
+ /** @description Default Response */
1029
+ 403: {
1030
+ headers: {
1031
+ [name: string]: unknown;
1032
+ };
1033
+ content: {
1034
+ "application/json": {
1035
+ error?: string;
1036
+ message?: string;
1037
+ requestId?: string;
1038
+ };
1039
+ };
1040
+ };
1041
+ /** @description Default Response */
1042
+ 404: {
1043
+ headers: {
1044
+ [name: string]: unknown;
1045
+ };
1046
+ content: {
1047
+ "application/json": {
1048
+ /** @enum {string} */
1049
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
1050
+ limit?: {
1051
+ /** @enum {string} */
1052
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1053
+ max: number;
1054
+ observed?: number;
1055
+ };
1056
+ };
1057
+ };
1058
+ };
1059
+ /** @description Default Response */
1060
+ 503: {
1061
+ headers: {
1062
+ [name: string]: unknown;
1063
+ };
1064
+ content: {
1065
+ "application/json": {
1066
+ /** @enum {string} */
1067
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
1068
+ limit?: {
1069
+ /** @enum {string} */
1070
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1071
+ max: number;
1072
+ observed?: number;
1073
+ };
1074
+ };
1075
+ };
1076
+ };
1077
+ };
1078
+ };
1079
+ put?: never;
1080
+ post?: never;
1081
+ delete?: never;
1082
+ options?: never;
1083
+ head?: never;
1084
+ patch?: never;
1085
+ trace?: never;
1086
+ };
1087
+ "/v1/partner-production/models": {
1088
+ parameters: {
1089
+ query?: never;
1090
+ header?: never;
1091
+ path?: never;
1092
+ cookie?: never;
1093
+ };
1094
+ /** Find the model bound to a partner external id */
1095
+ get: {
1096
+ parameters: {
1097
+ query?: {
1098
+ externalId?: string;
1099
+ };
1100
+ header?: never;
1101
+ path?: never;
1102
+ cookie?: never;
1103
+ };
1104
+ requestBody?: never;
1105
+ responses: {
1106
+ /** @description Default Response */
1107
+ 200: {
1108
+ headers: {
1109
+ [name: string]: unknown;
1110
+ };
1111
+ content: {
1112
+ "application/json": {
1113
+ /** Format: uuid */
1114
+ modelId: string;
1115
+ externalId: string;
1116
+ latestSource: {
1117
+ /** Format: uuid */
1118
+ sourceVersionId: string;
1119
+ /** Format: uuid */
1120
+ modelId: string;
1121
+ externalId: string | null;
1122
+ sha256: string;
1123
+ filename: string;
1124
+ bytes: number;
1125
+ /** Format: date-time */
1126
+ createdAt: string;
1127
+ /** @enum {string} */
1128
+ status: "queued";
1129
+ } | {
1130
+ /** Format: uuid */
1131
+ sourceVersionId: string;
1132
+ /** Format: uuid */
1133
+ modelId: string;
1134
+ externalId: string | null;
1135
+ sha256: string;
1136
+ filename: string;
1137
+ bytes: number;
1138
+ /** Format: date-time */
1139
+ createdAt: string;
1140
+ /** @enum {string} */
1141
+ status: "inspecting";
1142
+ } | {
1143
+ /** Format: uuid */
1144
+ sourceVersionId: string;
1145
+ /** Format: uuid */
1146
+ modelId: string;
1147
+ externalId: string | null;
1148
+ sha256: string;
1149
+ filename: string;
1150
+ bytes: number;
1151
+ /** Format: date-time */
1152
+ createdAt: string;
1153
+ /** @enum {string} */
1154
+ status: "ready";
1155
+ inspection: {
1156
+ /** @enum {number} */
1157
+ version: 1;
1158
+ /** @enum {string} */
1159
+ classification: "project" | "geometry_only" | "toolpath_only";
1160
+ hasEmbeddedGcode: boolean;
1161
+ plates: {
1162
+ number: number;
1163
+ objectIds: string[];
1164
+ }[];
1165
+ objects: {
1166
+ id: string;
1167
+ entry: string;
1168
+ objectId: number;
1169
+ name: string | null;
1170
+ /** @enum {string} */
1171
+ kind: "mesh" | "assembly" | "support" | "other";
1172
+ materialSlots: number[];
1173
+ }[];
1174
+ materialSlots: {
1175
+ slot: number;
1176
+ material: string | null;
1177
+ color: string | null;
1178
+ profile: string | null;
1179
+ }[];
1180
+ /** @enum {string} */
1181
+ materialUsage: "complete" | "requires_review";
1182
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1183
+ authoringEngine?: {
1184
+ /** @enum {string} */
1185
+ status: "recognized";
1186
+ /** @enum {string} */
1187
+ family: "bambu_studio" | "orca_slicer";
1188
+ release: string;
1189
+ releaseLine: string;
1190
+ major: number;
1191
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1192
+ } | {
1193
+ /** @enum {string} */
1194
+ status: "unsupported_family";
1195
+ application: string;
1196
+ } | {
1197
+ /** @enum {string} */
1198
+ status: "fork";
1199
+ application: string;
1200
+ release: string;
1201
+ } | {
1202
+ /** @enum {string} */
1203
+ status: "disagreeing";
1204
+ values: {
1205
+ application?: string;
1206
+ projectSettingsVersion?: string;
1207
+ sliceInfoClientVersion?: string;
1208
+ };
1209
+ } | {
1210
+ /** @enum {string} */
1211
+ status: "unparseable";
1212
+ values: {
1213
+ application?: string;
1214
+ projectSettingsVersion?: string;
1215
+ sliceInfoClientVersion?: string;
1216
+ };
1217
+ } | {
1218
+ /** @enum {string} */
1219
+ status: "missing";
1220
+ };
1221
+ printerModel?: string;
1222
+ };
1223
+ } | {
1224
+ /** Format: uuid */
1225
+ sourceVersionId: string;
1226
+ /** Format: uuid */
1227
+ modelId: string;
1228
+ externalId: string | null;
1229
+ sha256: string;
1230
+ filename: string;
1231
+ bytes: number;
1232
+ /** Format: date-time */
1233
+ createdAt: string;
1234
+ /** @enum {string} */
1235
+ status: "failed";
1236
+ inspection: {
1237
+ /** @enum {number} */
1238
+ version: 1;
1239
+ /** @enum {string} */
1240
+ classification: "project" | "geometry_only" | "toolpath_only";
1241
+ hasEmbeddedGcode: boolean;
1242
+ plates: {
1243
+ number: number;
1244
+ objectIds: string[];
1245
+ }[];
1246
+ objects: {
1247
+ id: string;
1248
+ entry: string;
1249
+ objectId: number;
1250
+ name: string | null;
1251
+ /** @enum {string} */
1252
+ kind: "mesh" | "assembly" | "support" | "other";
1253
+ materialSlots: number[];
1254
+ }[];
1255
+ materialSlots: {
1256
+ slot: number;
1257
+ material: string | null;
1258
+ color: string | null;
1259
+ profile: string | null;
1260
+ }[];
1261
+ /** @enum {string} */
1262
+ materialUsage: "complete" | "requires_review";
1263
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1264
+ authoringEngine?: {
1265
+ /** @enum {string} */
1266
+ status: "recognized";
1267
+ /** @enum {string} */
1268
+ family: "bambu_studio" | "orca_slicer";
1269
+ release: string;
1270
+ releaseLine: string;
1271
+ major: number;
1272
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1273
+ } | {
1274
+ /** @enum {string} */
1275
+ status: "unsupported_family";
1276
+ application: string;
1277
+ } | {
1278
+ /** @enum {string} */
1279
+ status: "fork";
1280
+ application: string;
1281
+ release: string;
1282
+ } | {
1283
+ /** @enum {string} */
1284
+ status: "disagreeing";
1285
+ values: {
1286
+ application?: string;
1287
+ projectSettingsVersion?: string;
1288
+ sliceInfoClientVersion?: string;
1289
+ };
1290
+ } | {
1291
+ /** @enum {string} */
1292
+ status: "unparseable";
1293
+ values: {
1294
+ application?: string;
1295
+ projectSettingsVersion?: string;
1296
+ sliceInfoClientVersion?: string;
1297
+ };
1298
+ } | {
1299
+ /** @enum {string} */
1300
+ status: "missing";
1301
+ };
1302
+ printerModel?: string;
1303
+ } | null;
1304
+ error: {
1305
+ /** @enum {string} */
1306
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
1307
+ message: string;
1308
+ limit?: {
1309
+ /** @enum {string} */
1310
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1311
+ max: number;
1312
+ observed?: number;
1313
+ };
1314
+ };
1315
+ };
1316
+ };
1317
+ };
1318
+ };
1319
+ /** @description Default Response */
1320
+ 400: {
1321
+ headers: {
1322
+ [name: string]: unknown;
1323
+ };
1324
+ content: {
1325
+ "application/json": {
1326
+ /** @enum {string} */
1327
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
1328
+ limit?: {
1329
+ /** @enum {string} */
1330
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1331
+ max: number;
1332
+ observed?: number;
1333
+ };
1334
+ };
1335
+ };
1336
+ };
1337
+ /** @description Default Response */
1338
+ 401: {
1339
+ headers: {
1340
+ [name: string]: unknown;
1341
+ };
1342
+ content: {
1343
+ "application/json": {
1344
+ error?: string;
1345
+ message?: string;
1346
+ requestId?: string;
1347
+ };
1348
+ };
1349
+ };
1350
+ /** @description Default Response */
1351
+ 403: {
1352
+ headers: {
1353
+ [name: string]: unknown;
1354
+ };
1355
+ content: {
1356
+ "application/json": {
1357
+ error?: string;
1358
+ message?: string;
1359
+ requestId?: string;
1360
+ };
1361
+ };
1362
+ };
1363
+ /** @description Default Response */
1364
+ 404: {
1365
+ headers: {
1366
+ [name: string]: unknown;
1367
+ };
1368
+ content: {
1369
+ "application/json": {
1370
+ /** @enum {string} */
1371
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
1372
+ limit?: {
1373
+ /** @enum {string} */
1374
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1375
+ max: number;
1376
+ observed?: number;
1377
+ };
1378
+ };
1379
+ };
1380
+ };
1381
+ /** @description Default Response */
1382
+ 503: {
1383
+ headers: {
1384
+ [name: string]: unknown;
1385
+ };
1386
+ content: {
1387
+ "application/json": {
1388
+ /** @enum {string} */
1389
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
1390
+ limit?: {
1391
+ /** @enum {string} */
1392
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1393
+ max: number;
1394
+ observed?: number;
1395
+ };
1396
+ };
1397
+ };
1398
+ };
1399
+ };
1400
+ };
1401
+ put?: never;
1402
+ post?: never;
1403
+ delete?: never;
1404
+ options?: never;
1405
+ head?: never;
1406
+ patch?: never;
1407
+ trace?: never;
1408
+ };
1409
+ "/v1/partner-production/models/{modelId}/files": {
1410
+ parameters: {
1411
+ query?: never;
1412
+ header?: never;
1413
+ path?: never;
1414
+ cookie?: never;
1415
+ };
1416
+ /** List a model's partner source versions */
1417
+ get: {
1418
+ parameters: {
1419
+ query?: {
1420
+ cursor?: string;
1421
+ limit?: string;
1422
+ };
1423
+ header?: never;
1424
+ path: {
1425
+ modelId: string;
1426
+ };
1427
+ cookie?: never;
1428
+ };
1429
+ requestBody?: never;
1430
+ responses: {
1431
+ /** @description Default Response */
1432
+ 200: {
1433
+ headers: {
1434
+ [name: string]: unknown;
1435
+ };
1436
+ content: {
1437
+ "application/json": {
1438
+ sources: ({
1439
+ /** Format: uuid */
1440
+ sourceVersionId: string;
1441
+ /** Format: uuid */
1442
+ modelId: string;
1443
+ externalId: string | null;
1444
+ sha256: string;
1445
+ filename: string;
1446
+ bytes: number;
1447
+ /** Format: date-time */
1448
+ createdAt: string;
1449
+ /** @enum {string} */
1450
+ status: "queued";
1451
+ } | {
1452
+ /** Format: uuid */
1453
+ sourceVersionId: string;
1454
+ /** Format: uuid */
1455
+ modelId: string;
1456
+ externalId: string | null;
1457
+ sha256: string;
1458
+ filename: string;
1459
+ bytes: number;
1460
+ /** Format: date-time */
1461
+ createdAt: string;
1462
+ /** @enum {string} */
1463
+ status: "inspecting";
1464
+ } | {
1465
+ /** Format: uuid */
1466
+ sourceVersionId: string;
1467
+ /** Format: uuid */
1468
+ modelId: string;
1469
+ externalId: string | null;
1470
+ sha256: string;
1471
+ filename: string;
1472
+ bytes: number;
1473
+ /** Format: date-time */
1474
+ createdAt: string;
1475
+ /** @enum {string} */
1476
+ status: "ready";
1477
+ inspection: {
1478
+ /** @enum {number} */
1479
+ version: 1;
1480
+ /** @enum {string} */
1481
+ classification: "project" | "geometry_only" | "toolpath_only";
1482
+ hasEmbeddedGcode: boolean;
1483
+ plates: {
1484
+ number: number;
1485
+ objectIds: string[];
1486
+ }[];
1487
+ objects: {
1488
+ id: string;
1489
+ entry: string;
1490
+ objectId: number;
1491
+ name: string | null;
1492
+ /** @enum {string} */
1493
+ kind: "mesh" | "assembly" | "support" | "other";
1494
+ materialSlots: number[];
1495
+ }[];
1496
+ materialSlots: {
1497
+ slot: number;
1498
+ material: string | null;
1499
+ color: string | null;
1500
+ profile: string | null;
1501
+ }[];
1502
+ /** @enum {string} */
1503
+ materialUsage: "complete" | "requires_review";
1504
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1505
+ authoringEngine?: {
1506
+ /** @enum {string} */
1507
+ status: "recognized";
1508
+ /** @enum {string} */
1509
+ family: "bambu_studio" | "orca_slicer";
1510
+ release: string;
1511
+ releaseLine: string;
1512
+ major: number;
1513
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1514
+ } | {
1515
+ /** @enum {string} */
1516
+ status: "unsupported_family";
1517
+ application: string;
1518
+ } | {
1519
+ /** @enum {string} */
1520
+ status: "fork";
1521
+ application: string;
1522
+ release: string;
1523
+ } | {
1524
+ /** @enum {string} */
1525
+ status: "disagreeing";
1526
+ values: {
1527
+ application?: string;
1528
+ projectSettingsVersion?: string;
1529
+ sliceInfoClientVersion?: string;
1530
+ };
1531
+ } | {
1532
+ /** @enum {string} */
1533
+ status: "unparseable";
1534
+ values: {
1535
+ application?: string;
1536
+ projectSettingsVersion?: string;
1537
+ sliceInfoClientVersion?: string;
1538
+ };
1539
+ } | {
1540
+ /** @enum {string} */
1541
+ status: "missing";
1542
+ };
1543
+ printerModel?: string;
1544
+ };
1545
+ } | {
1546
+ /** Format: uuid */
1547
+ sourceVersionId: string;
1548
+ /** Format: uuid */
1549
+ modelId: string;
1550
+ externalId: string | null;
1551
+ sha256: string;
1552
+ filename: string;
1553
+ bytes: number;
1554
+ /** Format: date-time */
1555
+ createdAt: string;
1556
+ /** @enum {string} */
1557
+ status: "failed";
1558
+ inspection: {
1559
+ /** @enum {number} */
1560
+ version: 1;
1561
+ /** @enum {string} */
1562
+ classification: "project" | "geometry_only" | "toolpath_only";
1563
+ hasEmbeddedGcode: boolean;
1564
+ plates: {
1565
+ number: number;
1566
+ objectIds: string[];
1567
+ }[];
1568
+ objects: {
1569
+ id: string;
1570
+ entry: string;
1571
+ objectId: number;
1572
+ name: string | null;
1573
+ /** @enum {string} */
1574
+ kind: "mesh" | "assembly" | "support" | "other";
1575
+ materialSlots: number[];
1576
+ }[];
1577
+ materialSlots: {
1578
+ slot: number;
1579
+ material: string | null;
1580
+ color: string | null;
1581
+ profile: string | null;
1582
+ }[];
1583
+ /** @enum {string} */
1584
+ materialUsage: "complete" | "requires_review";
1585
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1586
+ authoringEngine?: {
1587
+ /** @enum {string} */
1588
+ status: "recognized";
1589
+ /** @enum {string} */
1590
+ family: "bambu_studio" | "orca_slicer";
1591
+ release: string;
1592
+ releaseLine: string;
1593
+ major: number;
1594
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1595
+ } | {
1596
+ /** @enum {string} */
1597
+ status: "unsupported_family";
1598
+ application: string;
1599
+ } | {
1600
+ /** @enum {string} */
1601
+ status: "fork";
1602
+ application: string;
1603
+ release: string;
1604
+ } | {
1605
+ /** @enum {string} */
1606
+ status: "disagreeing";
1607
+ values: {
1608
+ application?: string;
1609
+ projectSettingsVersion?: string;
1610
+ sliceInfoClientVersion?: string;
1611
+ };
1612
+ } | {
1613
+ /** @enum {string} */
1614
+ status: "unparseable";
1615
+ values: {
1616
+ application?: string;
1617
+ projectSettingsVersion?: string;
1618
+ sliceInfoClientVersion?: string;
1619
+ };
1620
+ } | {
1621
+ /** @enum {string} */
1622
+ status: "missing";
1623
+ };
1624
+ printerModel?: string;
1625
+ } | null;
1626
+ error: {
1627
+ /** @enum {string} */
1628
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
1629
+ message: string;
1630
+ limit?: {
1631
+ /** @enum {string} */
1632
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1633
+ max: number;
1634
+ observed?: number;
1635
+ };
1636
+ };
1637
+ })[];
1638
+ nextCursor: string | null;
1639
+ };
1640
+ };
1641
+ };
1642
+ /** @description Default Response */
1643
+ 400: {
1644
+ headers: {
1645
+ [name: string]: unknown;
1646
+ };
1647
+ content: {
1648
+ "application/json": {
1649
+ /** @enum {string} */
1650
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
1651
+ limit?: {
1652
+ /** @enum {string} */
1653
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1654
+ max: number;
1655
+ observed?: number;
1656
+ };
1657
+ };
1658
+ };
1659
+ };
1660
+ /** @description Default Response */
1661
+ 401: {
1662
+ headers: {
1663
+ [name: string]: unknown;
1664
+ };
1665
+ content: {
1666
+ "application/json": {
1667
+ error?: string;
1668
+ message?: string;
1669
+ requestId?: string;
1670
+ };
1671
+ };
1672
+ };
1673
+ /** @description Default Response */
1674
+ 403: {
1675
+ headers: {
1676
+ [name: string]: unknown;
1677
+ };
1678
+ content: {
1679
+ "application/json": {
1680
+ error?: string;
1681
+ message?: string;
1682
+ requestId?: string;
1683
+ };
1684
+ };
1685
+ };
1686
+ /** @description Default Response */
1687
+ 404: {
1688
+ headers: {
1689
+ [name: string]: unknown;
1690
+ };
1691
+ content: {
1692
+ "application/json": {
1693
+ /** @enum {string} */
1694
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
1695
+ limit?: {
1696
+ /** @enum {string} */
1697
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1698
+ max: number;
1699
+ observed?: number;
1700
+ };
1701
+ };
1702
+ };
1703
+ };
1704
+ /** @description Default Response */
1705
+ 503: {
1706
+ headers: {
1707
+ [name: string]: unknown;
1708
+ };
1709
+ content: {
1710
+ "application/json": {
1711
+ /** @enum {string} */
1712
+ error: "invalid_request" | "unauthorized" | "not_found" | "idempotency_conflict" | "external_id_conflict" | "content_length_required" | "upload_too_large" | "unsupported_media_type" | "upload_capacity_reached" | "upload_stalled" | "upload_disabled" | "storage_unavailable" | "storage_object_changed" | "database_unavailable" | "partner_source_unavailable";
1713
+ limit?: {
1714
+ /** @enum {string} */
1715
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1716
+ max: number;
1717
+ observed?: number;
1718
+ };
1719
+ };
1720
+ };
1721
+ };
1722
+ };
1723
+ };
1724
+ put?: never;
1725
+ post?: never;
1726
+ delete?: never;
1727
+ options?: never;
1728
+ head?: never;
1729
+ patch?: never;
1730
+ trace?: never;
1731
+ };
1732
+ "/v1/print-jobs/create": {
1733
+ parameters: {
1734
+ query?: never;
1735
+ header?: never;
1736
+ path?: never;
1737
+ cookie?: never;
1738
+ };
1739
+ get?: never;
1740
+ put?: never;
1741
+ /** Create one print job for one plate */
1742
+ post: {
1743
+ parameters: {
1744
+ query?: never;
1745
+ header?: {
1746
+ "idempotency-key"?: string;
1747
+ };
1748
+ path?: never;
1749
+ cookie?: never;
1750
+ };
1751
+ requestBody: {
1752
+ content: {
1753
+ "application/json": {
1754
+ name: string;
1755
+ externalId?: string;
1756
+ model_file_id: string;
1757
+ organization_id?: string;
1758
+ /** @description Organization ID (optional, defaults to user's primary organization) */
1759
+ organizationId?: string;
1760
+ /** Format: uuid */
1761
+ printer_id?: string | null;
1762
+ /** @description One-based plate number in the project archive */
1763
+ plate?: number;
1764
+ /** @description Complete filament requirements for the selected plate. Cannot be combined with raw AMS mappings. Matched using Smart Queue material and color proximity rules. */
1765
+ filaments?: {
1766
+ /** @description Zero-based project filament index */
1767
+ sourceSlot: number;
1768
+ material: string;
1769
+ color: string;
1770
+ targetSlot?: {
1771
+ ams_id: number;
1772
+ slot_id: number;
1773
+ };
1774
+ }[];
1775
+ /**
1776
+ * @description Create assigned jobs waiting for filament, or reject mismatches with 422
1777
+ * @default wait
1778
+ * @enum {string}
1779
+ */
1780
+ on_filament_mismatch?: "wait" | "reject";
1781
+ /** Format: uuid */
1782
+ task_id?: string | null;
1783
+ /** @description Optional make ID to derive required materials */
1784
+ make_id?: string;
1785
+ print_options?: {
1786
+ enable_ams?: boolean;
1787
+ enable_bed_leveling?: boolean;
1788
+ start_immediately?: boolean;
1789
+ /** @description Deprecated compatibility alias for start_immediately */
1790
+ set_printer_ready?: boolean;
1791
+ auto_assign?: boolean;
1792
+ constraints?: Record<string, never>;
1793
+ } & {
1794
+ [key: string]: unknown;
1795
+ };
1796
+ };
1797
+ "multipart/form-data": {
1798
+ /** Format: binary */
1799
+ file: string;
1800
+ name?: string;
1801
+ /** @description One-based plate number in the project archive */
1802
+ plate: number;
1803
+ /** @description Complete filament requirements for the selected plate. Cannot be combined with raw AMS mappings. Matched using Smart Queue material and color proximity rules. */
1804
+ filaments: {
1805
+ /** @description Zero-based project filament index */
1806
+ sourceSlot: number;
1807
+ material: string;
1808
+ color: string;
1809
+ targetSlot?: {
1810
+ ams_id: number;
1811
+ slot_id: number;
1812
+ };
1813
+ }[];
1814
+ /** Format: uuid */
1815
+ printer_id?: string;
1816
+ /**
1817
+ * @description Create assigned jobs waiting for filament, or reject mismatches with 422
1818
+ * @default wait
1819
+ * @enum {string}
1820
+ */
1821
+ on_filament_mismatch?: "wait" | "reject";
1822
+ externalId?: string;
1823
+ /**
1824
+ * @default automatic
1825
+ * @enum {string}
1826
+ */
1827
+ release?: "automatic" | "manual";
1828
+ print_options?: {
1829
+ [key: string]: unknown;
1830
+ };
1831
+ };
1832
+ };
1833
+ };
1834
+ responses: {
1835
+ /** @description Default Response */
1836
+ 201: {
1837
+ headers: {
1838
+ [name: string]: unknown;
1839
+ };
1840
+ content: {
1841
+ "application/json": {
1842
+ job?: {
1843
+ id: number;
1844
+ name?: string;
1845
+ status?: string;
1846
+ model_file_id?: string | null;
1847
+ printer_id?: string | null;
1848
+ organization_id?: string;
1849
+ print_options?: {
1850
+ [key: string]: unknown;
1851
+ } | null;
1852
+ } & {
1853
+ [key: string]: unknown;
1854
+ };
1855
+ /** @description Detailed match results for fully eligible printers */
1856
+ eligiblePrinters?: {
1857
+ printerId?: string;
1858
+ match?: {
1859
+ score?: number;
1860
+ reasons?: string[];
1861
+ matched_at?: string;
1862
+ printer_id?: string;
1863
+ };
1864
+ }[];
1865
+ /** @description Detailed match results for partially eligible printers including missing materials */
1866
+ partiallyEligiblePrinters?: {
1867
+ printerId?: string;
1868
+ match?: {
1869
+ score?: number;
1870
+ reasons?: string[];
1871
+ matched_at?: string;
1872
+ printer_id?: string;
1873
+ missing?: {
1874
+ index?: number;
1875
+ type?: string;
1876
+ color?: string;
1877
+ explicitMaterialId?: string;
1878
+ }[];
1879
+ };
1880
+ }[];
1881
+ };
1882
+ };
1883
+ };
1884
+ /** @description Default Response */
1885
+ 202: {
1886
+ headers: {
1887
+ [name: string]: unknown;
1888
+ };
1889
+ content: {
1890
+ "application/json": {
1891
+ /** Format: uuid */
1892
+ requestId: string;
1893
+ /** @enum {string} */
1894
+ status: "preparing" | "held" | "created" | "failed" | "cancelled";
1895
+ externalId: string | null;
1896
+ createdAt: string;
1897
+ job: ({
1898
+ id: number;
1899
+ status: string;
1900
+ /** Format: uuid */
1901
+ model_file_id: string | null;
1902
+ /** Format: uuid */
1903
+ printer_id: string | null;
1904
+ print_options: {
1905
+ [key: string]: unknown;
1906
+ } | null;
1907
+ } & {
1908
+ [key: string]: unknown;
1909
+ }) | null;
1910
+ requiredActions: {
1911
+ [key: string]: unknown;
1912
+ }[];
1913
+ error: {
1914
+ [key: string]: unknown;
1915
+ } | null;
1916
+ };
1917
+ };
1918
+ };
1919
+ /** @description Default Response */
1920
+ 400: {
1921
+ headers: {
1922
+ [name: string]: unknown;
1923
+ };
1924
+ content: {
1925
+ "application/json": {
1926
+ error?: string;
1927
+ message?: string;
1928
+ };
1929
+ };
1930
+ };
1931
+ /** @description Default Response */
1932
+ 409: {
1933
+ headers: {
1934
+ [name: string]: unknown;
1935
+ };
1936
+ content: {
1937
+ "application/json": {
1938
+ error?: string;
1939
+ message?: string;
1940
+ reason?: string;
1941
+ retry_count?: number;
1942
+ max_retries?: number;
1943
+ next_eligible_at?: string | null;
1944
+ };
1945
+ };
1946
+ };
1947
+ /** @description Default Response */
1948
+ 422: {
1949
+ headers: {
1950
+ [name: string]: unknown;
1951
+ };
1952
+ content: {
1953
+ "application/json": {
1954
+ /** @enum {string} */
1955
+ error?: "filament_requirements_unsatisfied" | "printer_model_incompatible" | "hardware:nozzle_diameter_mismatch" | "target_slot_unavailable" | "insufficient_filament_routes";
1956
+ message?: string;
1957
+ filaments?: {
1958
+ sourceSlot?: number;
1959
+ /** @enum {string} */
1960
+ reason?: "missing_material" | "color_distance" | "slot_empty" | "slot_conflict";
1961
+ }[];
1962
+ };
1963
+ };
1964
+ };
1965
+ /** @description Default Response */
1966
+ 500: {
1967
+ headers: {
1968
+ [name: string]: unknown;
1969
+ };
1970
+ content: {
1971
+ "application/json": {
1972
+ error?: string;
1973
+ message?: string;
1974
+ };
1975
+ };
1976
+ };
1977
+ };
1978
+ };
1979
+ delete?: never;
1980
+ options?: never;
1981
+ head?: never;
1982
+ patch?: never;
1983
+ trace?: never;
1984
+ };
1985
+ "/v1/print-jobs/create-requests/{requestId}": {
1986
+ parameters: {
1987
+ query?: never;
1988
+ header?: never;
1989
+ path?: never;
1990
+ cookie?: never;
1991
+ };
1992
+ /** Poll one asynchronous single-plate creation request */
1993
+ get: {
1994
+ parameters: {
1995
+ query?: never;
1996
+ header?: never;
1997
+ path: {
1998
+ requestId: string;
1999
+ };
2000
+ cookie?: never;
2001
+ };
2002
+ requestBody?: never;
2003
+ responses: {
2004
+ /** @description Default Response */
2005
+ 200: {
2006
+ headers: {
2007
+ [name: string]: unknown;
2008
+ };
2009
+ content: {
2010
+ "application/json": {
2011
+ /** Format: uuid */
2012
+ requestId: string;
2013
+ /** @enum {string} */
2014
+ status: "preparing" | "held" | "created" | "failed" | "cancelled";
2015
+ externalId: string | null;
2016
+ createdAt: string;
2017
+ job: ({
2018
+ id: number;
2019
+ status: string;
2020
+ /** Format: uuid */
2021
+ model_file_id: string | null;
2022
+ /** Format: uuid */
2023
+ printer_id: string | null;
2024
+ print_options: {
2025
+ [key: string]: unknown;
2026
+ } | null;
2027
+ } & {
2028
+ [key: string]: unknown;
2029
+ }) | null;
2030
+ requiredActions: {
2031
+ [key: string]: unknown;
2032
+ }[];
2033
+ error: {
2034
+ [key: string]: unknown;
2035
+ } | null;
2036
+ };
2037
+ };
2038
+ };
2039
+ /** @description Default Response */
2040
+ 404: {
2041
+ headers: {
2042
+ [name: string]: unknown;
2043
+ };
2044
+ content: {
2045
+ "application/json": {
2046
+ error?: string;
2047
+ };
2048
+ };
2049
+ };
2050
+ };
2051
+ };
2052
+ put?: never;
2053
+ post?: never;
2054
+ delete?: never;
2055
+ options?: never;
2056
+ head?: never;
2057
+ patch?: never;
2058
+ trace?: never;
2059
+ };
2060
+ "/v1/print-jobs/create-requests/{requestId}/release": {
2061
+ parameters: {
2062
+ query?: never;
2063
+ header?: never;
2064
+ path?: never;
2065
+ cookie?: never;
2066
+ };
2067
+ get?: never;
2068
+ put?: never;
2069
+ /** Authorize admission of a manually held creation request */
2070
+ post: {
2071
+ parameters: {
2072
+ query?: never;
2073
+ header?: never;
2074
+ path: {
2075
+ requestId: string;
2076
+ };
2077
+ cookie?: never;
2078
+ };
2079
+ requestBody?: never;
2080
+ responses: {
2081
+ /** @description Default Response */
2082
+ 202: {
2083
+ headers: {
2084
+ [name: string]: unknown;
2085
+ };
2086
+ content: {
2087
+ "application/json": {
2088
+ authorized: boolean;
2089
+ };
2090
+ };
2091
+ };
2092
+ /** @description Authentication required */
2093
+ 401: {
2094
+ headers: {
2095
+ [name: string]: unknown;
2096
+ };
2097
+ content: {
2098
+ "application/json": {
2099
+ error?: string;
2100
+ message?: string;
2101
+ requestId?: string;
2102
+ code?: string;
2103
+ statusCode?: number;
2104
+ };
2105
+ };
2106
+ };
2107
+ /** @description API key requires control scope */
2108
+ 403: {
2109
+ headers: {
2110
+ [name: string]: unknown;
2111
+ };
2112
+ content: {
2113
+ "application/json": {
2114
+ error?: string;
2115
+ message?: string;
2116
+ requestId?: string;
2117
+ code?: string;
2118
+ statusCode?: number;
2119
+ };
2120
+ };
2121
+ };
2122
+ /** @description Creation request not found */
2123
+ 404: {
2124
+ headers: {
2125
+ [name: string]: unknown;
2126
+ };
2127
+ content: {
2128
+ "application/json": {
2129
+ error?: string;
2130
+ message?: string;
2131
+ requestId?: string;
2132
+ };
2133
+ };
2134
+ };
2135
+ /** @description Creation request no longer supports this action */
2136
+ 409: {
2137
+ headers: {
2138
+ [name: string]: unknown;
2139
+ };
2140
+ content: {
2141
+ "application/json": {
2142
+ error?: string;
2143
+ message?: string;
2144
+ requestId?: string;
2145
+ };
2146
+ };
2147
+ };
2148
+ };
2149
+ };
2150
+ delete?: never;
2151
+ options?: never;
2152
+ head?: never;
2153
+ patch?: never;
2154
+ trace?: never;
2155
+ };
2156
+ "/v1/print-jobs/create-requests/{requestId}/cancel": {
2157
+ parameters: {
2158
+ query?: never;
2159
+ header?: never;
2160
+ path?: never;
2161
+ cookie?: never;
2162
+ };
2163
+ get?: never;
2164
+ put?: never;
2165
+ /** Cancel a creation request before job admission */
2166
+ post: {
2167
+ parameters: {
2168
+ query?: never;
2169
+ header?: never;
2170
+ path: {
2171
+ requestId: string;
2172
+ };
2173
+ cookie?: never;
2174
+ };
2175
+ requestBody?: never;
2176
+ responses: {
2177
+ /** @description Default Response */
2178
+ 202: {
2179
+ headers: {
2180
+ [name: string]: unknown;
2181
+ };
2182
+ content: {
2183
+ "application/json": {
2184
+ cancelled: boolean;
2185
+ };
2186
+ };
2187
+ };
2188
+ /** @description Authentication required */
2189
+ 401: {
2190
+ headers: {
2191
+ [name: string]: unknown;
2192
+ };
2193
+ content: {
2194
+ "application/json": {
2195
+ error?: string;
2196
+ message?: string;
2197
+ requestId?: string;
2198
+ code?: string;
2199
+ statusCode?: number;
2200
+ };
2201
+ };
2202
+ };
2203
+ /** @description API key requires control scope */
2204
+ 403: {
2205
+ headers: {
2206
+ [name: string]: unknown;
2207
+ };
2208
+ content: {
2209
+ "application/json": {
2210
+ error?: string;
2211
+ message?: string;
2212
+ requestId?: string;
2213
+ code?: string;
2214
+ statusCode?: number;
2215
+ };
2216
+ };
2217
+ };
2218
+ /** @description Creation request not found */
2219
+ 404: {
2220
+ headers: {
2221
+ [name: string]: unknown;
2222
+ };
2223
+ content: {
2224
+ "application/json": {
2225
+ error?: string;
2226
+ message?: string;
2227
+ requestId?: string;
2228
+ };
2229
+ };
2230
+ };
2231
+ /** @description Creation request no longer supports this action */
2232
+ 409: {
2233
+ headers: {
2234
+ [name: string]: unknown;
2235
+ };
2236
+ content: {
2237
+ "application/json": {
2238
+ error?: string;
2239
+ message?: string;
2240
+ requestId?: string;
2241
+ };
2242
+ };
2243
+ };
2244
+ };
2245
+ };
2246
+ delete?: never;
2247
+ options?: never;
2248
+ head?: never;
2249
+ patch?: never;
2250
+ trace?: never;
2251
+ };
2252
+ }
2253
+
2254
+ type PrintHiveOptions = {
2255
+ apiKey: string;
2256
+ baseUrl?: string;
2257
+ fetch?: typeof globalThis.fetch;
2258
+ timeoutMs?: number;
2259
+ maxRetries?: number;
2260
+ };
2261
+ type Request<T> = {
2262
+ path: string;
2263
+ decode: (response: Response) => Promise<T>;
2264
+ query?: URLSearchParams;
2265
+ signal?: AbortSignal;
2266
+ } & ({
2267
+ method: "GET";
2268
+ } | {
2269
+ method: "POST";
2270
+ body: () => Promise<BodyInit>;
2271
+ size?: number;
2272
+ contentType?: string | null;
2273
+ idempotencyKey: string;
2274
+ replayable: boolean;
2275
+ });
2276
+ declare class Transport {
2277
+ private readonly options;
2278
+ constructor(options: PrintHiveOptions);
2279
+ request<T>(request: Request<T>): Promise<T>;
2280
+ }
2281
+
2282
+ type CreateOperation = paths["/v1/print-jobs/create"]["post"];
2283
+ type CreatedPrintJob = CreateOperation["responses"][201]["content"]["application/json"];
2284
+ type PrintJobCreateRequest = paths["/v1/print-jobs/create-requests/{requestId}"]["get"]["responses"][200]["content"]["application/json"];
2285
+ type JsonPrintJobInput = CreateOperation["requestBody"]["content"]["application/json"] & {
2286
+ idempotencyKey?: string;
2287
+ };
2288
+ type UploadedPrintJobInput = Omit<CreateOperation["requestBody"]["content"]["multipart/form-data"], "file"> & {
2289
+ file: string | Uint8Array;
2290
+ filename: string;
2291
+ idempotencyKey?: string;
2292
+ };
2293
+ declare class PrintJobCreateStoppedError extends Error {
2294
+ readonly request: PrintJobCreateRequest;
2295
+ constructor(request: PrintJobCreateRequest);
2296
+ }
2297
+ declare class PrintJobs {
2298
+ private readonly transport;
2299
+ constructor(transport: Transport);
2300
+ create(input: UploadedPrintJobInput): Promise<PrintJobCreateRequest & {
2301
+ idempotencyKey: string;
2302
+ }>;
2303
+ create(input: JsonPrintJobInput): Promise<CreatedPrintJob & {
2304
+ idempotencyKey: string;
2305
+ }>;
2306
+ getCreateRequest(requestId: string, signal?: AbortSignal): Promise<PrintJobCreateRequest>;
2307
+ waitUntilCreated(requestId: string, options?: WaitOptions): Promise<{
2308
+ requestId: string;
2309
+ status: "preparing" | "held" | "created" | "failed" | "cancelled";
2310
+ externalId: string | null;
2311
+ createdAt: string;
2312
+ job: ({
2313
+ id: number;
2314
+ status: string;
2315
+ model_file_id: string | null;
2316
+ printer_id: string | null;
2317
+ print_options: {
2318
+ [key: string]: unknown;
2319
+ } | null;
2320
+ } & {
2321
+ [key: string]: unknown;
2322
+ }) | null;
2323
+ requiredActions: {
2324
+ [key: string]: unknown;
2325
+ }[];
2326
+ error: {
2327
+ [key: string]: unknown;
2328
+ } | null;
2329
+ }>;
2330
+ }
2331
+
2332
+ type ApiLimit = {
2333
+ name: string;
2334
+ max: number;
2335
+ observed?: number;
2336
+ };
2337
+ type ApiErrorValue = null | string | number | boolean | ApiErrorValue[] | {
2338
+ [key: string]: ApiErrorValue;
2339
+ };
2340
+ type ApiErrorBody = {
2341
+ error: string;
2342
+ requestId?: string;
2343
+ limit?: ApiLimit;
2344
+ [key: string]: ApiErrorValue | undefined;
2345
+ };
2346
+ declare class PrintHiveApiError extends Error {
2347
+ readonly status: number;
2348
+ readonly code: string;
2349
+ readonly limit?: ApiLimit | undefined;
2350
+ readonly retryAfterMs?: number | undefined;
2351
+ readonly requestId?: string | undefined;
2352
+ readonly body?: ApiErrorBody | undefined;
2353
+ readonly name = "PrintHiveApiError";
2354
+ constructor(status: number, code: string, limit?: ApiLimit | undefined, retryAfterMs?: number | undefined, requestId?: string | undefined, body?: ApiErrorBody | undefined);
2355
+ }
2356
+ declare class PrintHiveNetworkError extends Error {
2357
+ readonly reason: "network" | "timeout" | "aborted";
2358
+ readonly name = "PrintHiveNetworkError";
2359
+ constructor(reason: "network" | "timeout" | "aborted");
2360
+ }
2361
+
2362
+ type PartnerSource = paths["/v1/partner-production/uploads/{sourceId}"]["get"]["responses"][200]["content"]["application/json"];
2363
+ type PartnerModel = paths["/v1/partner-production/models"]["get"]["responses"][200]["content"]["application/json"];
2364
+ type UploadOptions = {
2365
+ filename: string;
2366
+ externalId?: string;
2367
+ modelId?: string;
2368
+ idempotencyKey?: string;
2369
+ } & ({
2370
+ file: string | Uint8Array;
2371
+ size?: never;
2372
+ } | {
2373
+ file: ReadableStream<Uint8Array>;
2374
+ size: number;
2375
+ });
2376
+ type WaitOptions = {
2377
+ intervalMs?: number;
2378
+ timeoutMs?: number;
2379
+ signal?: AbortSignal;
2380
+ };
2381
+ declare class PrintHive {
2382
+ readonly partnerSources: {
2383
+ get: (sourceId: string, signal?: AbortSignal) => Promise<{
2384
+ sourceVersionId: string;
2385
+ modelId: string;
2386
+ externalId: string | null;
2387
+ sha256: string;
2388
+ filename: string;
2389
+ bytes: number;
2390
+ createdAt: string;
2391
+ status: "queued";
2392
+ } | {
2393
+ sourceVersionId: string;
2394
+ modelId: string;
2395
+ externalId: string | null;
2396
+ sha256: string;
2397
+ filename: string;
2398
+ bytes: number;
2399
+ createdAt: string;
2400
+ status: "inspecting";
2401
+ } | {
2402
+ sourceVersionId: string;
2403
+ modelId: string;
2404
+ externalId: string | null;
2405
+ sha256: string;
2406
+ filename: string;
2407
+ bytes: number;
2408
+ createdAt: string;
2409
+ status: "ready";
2410
+ inspection: {
2411
+ version: 1;
2412
+ classification: "project" | "geometry_only" | "toolpath_only";
2413
+ hasEmbeddedGcode: boolean;
2414
+ plates: {
2415
+ number: number;
2416
+ objectIds: string[];
2417
+ }[];
2418
+ objects: {
2419
+ id: string;
2420
+ entry: string;
2421
+ objectId: number;
2422
+ name: string | null;
2423
+ kind: "mesh" | "assembly" | "support" | "other";
2424
+ materialSlots: number[];
2425
+ }[];
2426
+ materialSlots: {
2427
+ slot: number;
2428
+ material: string | null;
2429
+ color: string | null;
2430
+ profile: string | null;
2431
+ }[];
2432
+ materialUsage: "complete" | "requires_review";
2433
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
2434
+ authoringEngine?: {
2435
+ status: "recognized";
2436
+ family: "bambu_studio" | "orca_slicer";
2437
+ release: string;
2438
+ releaseLine: string;
2439
+ major: number;
2440
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
2441
+ } | {
2442
+ status: "unsupported_family";
2443
+ application: string;
2444
+ } | {
2445
+ status: "fork";
2446
+ application: string;
2447
+ release: string;
2448
+ } | {
2449
+ status: "disagreeing";
2450
+ values: {
2451
+ application?: string;
2452
+ projectSettingsVersion?: string;
2453
+ sliceInfoClientVersion?: string;
2454
+ };
2455
+ } | {
2456
+ status: "unparseable";
2457
+ values: {
2458
+ application?: string;
2459
+ projectSettingsVersion?: string;
2460
+ sliceInfoClientVersion?: string;
2461
+ };
2462
+ } | {
2463
+ status: "missing";
2464
+ };
2465
+ printerModel?: string;
2466
+ };
2467
+ } | {
2468
+ sourceVersionId: string;
2469
+ modelId: string;
2470
+ externalId: string | null;
2471
+ sha256: string;
2472
+ filename: string;
2473
+ bytes: number;
2474
+ createdAt: string;
2475
+ status: "failed";
2476
+ inspection: {
2477
+ version: 1;
2478
+ classification: "project" | "geometry_only" | "toolpath_only";
2479
+ hasEmbeddedGcode: boolean;
2480
+ plates: {
2481
+ number: number;
2482
+ objectIds: string[];
2483
+ }[];
2484
+ objects: {
2485
+ id: string;
2486
+ entry: string;
2487
+ objectId: number;
2488
+ name: string | null;
2489
+ kind: "mesh" | "assembly" | "support" | "other";
2490
+ materialSlots: number[];
2491
+ }[];
2492
+ materialSlots: {
2493
+ slot: number;
2494
+ material: string | null;
2495
+ color: string | null;
2496
+ profile: string | null;
2497
+ }[];
2498
+ materialUsage: "complete" | "requires_review";
2499
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
2500
+ authoringEngine?: {
2501
+ status: "recognized";
2502
+ family: "bambu_studio" | "orca_slicer";
2503
+ release: string;
2504
+ releaseLine: string;
2505
+ major: number;
2506
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
2507
+ } | {
2508
+ status: "unsupported_family";
2509
+ application: string;
2510
+ } | {
2511
+ status: "fork";
2512
+ application: string;
2513
+ release: string;
2514
+ } | {
2515
+ status: "disagreeing";
2516
+ values: {
2517
+ application?: string;
2518
+ projectSettingsVersion?: string;
2519
+ sliceInfoClientVersion?: string;
2520
+ };
2521
+ } | {
2522
+ status: "unparseable";
2523
+ values: {
2524
+ application?: string;
2525
+ projectSettingsVersion?: string;
2526
+ sliceInfoClientVersion?: string;
2527
+ };
2528
+ } | {
2529
+ status: "missing";
2530
+ };
2531
+ printerModel?: string;
2532
+ } | null;
2533
+ error: {
2534
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
2535
+ message: string;
2536
+ limit?: {
2537
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
2538
+ max: number;
2539
+ observed?: number;
2540
+ };
2541
+ };
2542
+ }>;
2543
+ upload(input: UploadOptions): Promise<PartnerSource & {
2544
+ idempotencyKey: string;
2545
+ }>;
2546
+ waitUntilSettled(sourceId: string, options?: WaitOptions): Promise<Extract<PartnerSource, {
2547
+ status: "ready" | "failed";
2548
+ }>>;
2549
+ };
2550
+ readonly models: {
2551
+ findByExternalId: (externalId: string) => Promise<{
2552
+ modelId: string;
2553
+ externalId: string;
2554
+ latestSource: {
2555
+ sourceVersionId: string;
2556
+ modelId: string;
2557
+ externalId: string | null;
2558
+ sha256: string;
2559
+ filename: string;
2560
+ bytes: number;
2561
+ createdAt: string;
2562
+ status: "queued";
2563
+ } | {
2564
+ sourceVersionId: string;
2565
+ modelId: string;
2566
+ externalId: string | null;
2567
+ sha256: string;
2568
+ filename: string;
2569
+ bytes: number;
2570
+ createdAt: string;
2571
+ status: "inspecting";
2572
+ } | {
2573
+ sourceVersionId: string;
2574
+ modelId: string;
2575
+ externalId: string | null;
2576
+ sha256: string;
2577
+ filename: string;
2578
+ bytes: number;
2579
+ createdAt: string;
2580
+ status: "ready";
2581
+ inspection: {
2582
+ version: 1;
2583
+ classification: "project" | "geometry_only" | "toolpath_only";
2584
+ hasEmbeddedGcode: boolean;
2585
+ plates: {
2586
+ number: number;
2587
+ objectIds: string[];
2588
+ }[];
2589
+ objects: {
2590
+ id: string;
2591
+ entry: string;
2592
+ objectId: number;
2593
+ name: string | null;
2594
+ kind: "mesh" | "assembly" | "support" | "other";
2595
+ materialSlots: number[];
2596
+ }[];
2597
+ materialSlots: {
2598
+ slot: number;
2599
+ material: string | null;
2600
+ color: string | null;
2601
+ profile: string | null;
2602
+ }[];
2603
+ materialUsage: "complete" | "requires_review";
2604
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
2605
+ authoringEngine?: {
2606
+ status: "recognized";
2607
+ family: "bambu_studio" | "orca_slicer";
2608
+ release: string;
2609
+ releaseLine: string;
2610
+ major: number;
2611
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
2612
+ } | {
2613
+ status: "unsupported_family";
2614
+ application: string;
2615
+ } | {
2616
+ status: "fork";
2617
+ application: string;
2618
+ release: string;
2619
+ } | {
2620
+ status: "disagreeing";
2621
+ values: {
2622
+ application?: string;
2623
+ projectSettingsVersion?: string;
2624
+ sliceInfoClientVersion?: string;
2625
+ };
2626
+ } | {
2627
+ status: "unparseable";
2628
+ values: {
2629
+ application?: string;
2630
+ projectSettingsVersion?: string;
2631
+ sliceInfoClientVersion?: string;
2632
+ };
2633
+ } | {
2634
+ status: "missing";
2635
+ };
2636
+ printerModel?: string;
2637
+ };
2638
+ } | {
2639
+ sourceVersionId: string;
2640
+ modelId: string;
2641
+ externalId: string | null;
2642
+ sha256: string;
2643
+ filename: string;
2644
+ bytes: number;
2645
+ createdAt: string;
2646
+ status: "failed";
2647
+ inspection: {
2648
+ version: 1;
2649
+ classification: "project" | "geometry_only" | "toolpath_only";
2650
+ hasEmbeddedGcode: boolean;
2651
+ plates: {
2652
+ number: number;
2653
+ objectIds: string[];
2654
+ }[];
2655
+ objects: {
2656
+ id: string;
2657
+ entry: string;
2658
+ objectId: number;
2659
+ name: string | null;
2660
+ kind: "mesh" | "assembly" | "support" | "other";
2661
+ materialSlots: number[];
2662
+ }[];
2663
+ materialSlots: {
2664
+ slot: number;
2665
+ material: string | null;
2666
+ color: string | null;
2667
+ profile: string | null;
2668
+ }[];
2669
+ materialUsage: "complete" | "requires_review";
2670
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
2671
+ authoringEngine?: {
2672
+ status: "recognized";
2673
+ family: "bambu_studio" | "orca_slicer";
2674
+ release: string;
2675
+ releaseLine: string;
2676
+ major: number;
2677
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
2678
+ } | {
2679
+ status: "unsupported_family";
2680
+ application: string;
2681
+ } | {
2682
+ status: "fork";
2683
+ application: string;
2684
+ release: string;
2685
+ } | {
2686
+ status: "disagreeing";
2687
+ values: {
2688
+ application?: string;
2689
+ projectSettingsVersion?: string;
2690
+ sliceInfoClientVersion?: string;
2691
+ };
2692
+ } | {
2693
+ status: "unparseable";
2694
+ values: {
2695
+ application?: string;
2696
+ projectSettingsVersion?: string;
2697
+ sliceInfoClientVersion?: string;
2698
+ };
2699
+ } | {
2700
+ status: "missing";
2701
+ };
2702
+ printerModel?: string;
2703
+ } | null;
2704
+ error: {
2705
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
2706
+ message: string;
2707
+ limit?: {
2708
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
2709
+ max: number;
2710
+ observed?: number;
2711
+ };
2712
+ };
2713
+ };
2714
+ }>;
2715
+ listSourceFiles(modelId: string): AsyncGenerator<PartnerSource>;
2716
+ };
2717
+ readonly printers: {
2718
+ list: (input?: {
2719
+ limit?: number;
2720
+ cursor?: string;
2721
+ }) => Promise<unknown>;
2722
+ get: (id: string) => Promise<unknown>;
2723
+ };
2724
+ readonly printJobs: PrintJobs;
2725
+ constructor(options: PrintHiveOptions);
2726
+ }
2727
+
2728
+ export { type ApiErrorBody, type ApiLimit, type CreatedPrintJob, type JsonPrintJobInput, type PartnerModel, type PartnerSource, PrintHive, PrintHiveApiError, PrintHiveNetworkError, type PrintHiveOptions, type PrintJobCreateRequest, PrintJobCreateStoppedError, type UploadOptions, type UploadedPrintJobInput, type WaitOptions, type paths };