@printhive/api 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1972 @@
1
+ interface paths {
2
+ "/v1/partner-production/uploads": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ get?: never;
10
+ put?: never;
11
+ /**
12
+ * Upload an immutable partner source
13
+ * @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.
14
+ */
15
+ post: {
16
+ parameters: {
17
+ query?: {
18
+ filename?: string;
19
+ modelId?: string;
20
+ externalId?: string;
21
+ };
22
+ header?: {
23
+ "idempotency-key"?: string;
24
+ };
25
+ path?: never;
26
+ cookie?: never;
27
+ };
28
+ requestBody?: never;
29
+ responses: {
30
+ /** @description Default Response */
31
+ 200: {
32
+ headers: {
33
+ [name: string]: unknown;
34
+ };
35
+ content: {
36
+ "application/json": {
37
+ /** Format: uuid */
38
+ sourceVersionId: string;
39
+ /** Format: uuid */
40
+ modelId: string;
41
+ externalId: string | null;
42
+ sha256: string;
43
+ filename: string;
44
+ bytes: number;
45
+ /** Format: date-time */
46
+ createdAt: string;
47
+ /** @enum {string} */
48
+ status: "queued";
49
+ } | {
50
+ /** Format: uuid */
51
+ sourceVersionId: string;
52
+ /** Format: uuid */
53
+ modelId: string;
54
+ externalId: string | null;
55
+ sha256: string;
56
+ filename: string;
57
+ bytes: number;
58
+ /** Format: date-time */
59
+ createdAt: string;
60
+ /** @enum {string} */
61
+ status: "inspecting";
62
+ } | {
63
+ /** Format: uuid */
64
+ sourceVersionId: string;
65
+ /** Format: uuid */
66
+ modelId: string;
67
+ externalId: string | null;
68
+ sha256: string;
69
+ filename: string;
70
+ bytes: number;
71
+ /** Format: date-time */
72
+ createdAt: string;
73
+ /** @enum {string} */
74
+ status: "ready";
75
+ inspection: {
76
+ /** @enum {number} */
77
+ version: 1;
78
+ /** @enum {string} */
79
+ classification: "project" | "geometry_only" | "toolpath_only";
80
+ hasEmbeddedGcode: boolean;
81
+ plates: {
82
+ number: number;
83
+ objectIds: string[];
84
+ }[];
85
+ objects: {
86
+ id: string;
87
+ entry: string;
88
+ objectId: number;
89
+ name: string | null;
90
+ /** @enum {string} */
91
+ kind: "mesh" | "assembly" | "support" | "other";
92
+ materialSlots: number[];
93
+ }[];
94
+ materialSlots: {
95
+ slot: number;
96
+ material: string | null;
97
+ color: string | null;
98
+ profile: string | null;
99
+ }[];
100
+ /** @enum {string} */
101
+ materialUsage: "complete" | "requires_review";
102
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
103
+ authoringEngine?: {
104
+ /** @enum {string} */
105
+ status: "recognized";
106
+ /** @enum {string} */
107
+ family: "bambu_studio" | "orca_slicer";
108
+ release: string;
109
+ releaseLine: string;
110
+ major: number;
111
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
112
+ } | {
113
+ /** @enum {string} */
114
+ status: "unsupported_family";
115
+ application: string;
116
+ } | {
117
+ /** @enum {string} */
118
+ status: "fork";
119
+ application: string;
120
+ release: string;
121
+ } | {
122
+ /** @enum {string} */
123
+ status: "disagreeing";
124
+ values: {
125
+ application?: string;
126
+ projectSettingsVersion?: string;
127
+ sliceInfoClientVersion?: string;
128
+ };
129
+ } | {
130
+ /** @enum {string} */
131
+ status: "unparseable";
132
+ values: {
133
+ application?: string;
134
+ projectSettingsVersion?: string;
135
+ sliceInfoClientVersion?: string;
136
+ };
137
+ } | {
138
+ /** @enum {string} */
139
+ status: "missing";
140
+ };
141
+ };
142
+ } | {
143
+ /** Format: uuid */
144
+ sourceVersionId: string;
145
+ /** Format: uuid */
146
+ modelId: string;
147
+ externalId: string | null;
148
+ sha256: string;
149
+ filename: string;
150
+ bytes: number;
151
+ /** Format: date-time */
152
+ createdAt: string;
153
+ /** @enum {string} */
154
+ status: "failed";
155
+ inspection: {
156
+ /** @enum {number} */
157
+ version: 1;
158
+ /** @enum {string} */
159
+ classification: "project" | "geometry_only" | "toolpath_only";
160
+ hasEmbeddedGcode: boolean;
161
+ plates: {
162
+ number: number;
163
+ objectIds: string[];
164
+ }[];
165
+ objects: {
166
+ id: string;
167
+ entry: string;
168
+ objectId: number;
169
+ name: string | null;
170
+ /** @enum {string} */
171
+ kind: "mesh" | "assembly" | "support" | "other";
172
+ materialSlots: number[];
173
+ }[];
174
+ materialSlots: {
175
+ slot: number;
176
+ material: string | null;
177
+ color: string | null;
178
+ profile: string | null;
179
+ }[];
180
+ /** @enum {string} */
181
+ materialUsage: "complete" | "requires_review";
182
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
183
+ authoringEngine?: {
184
+ /** @enum {string} */
185
+ status: "recognized";
186
+ /** @enum {string} */
187
+ family: "bambu_studio" | "orca_slicer";
188
+ release: string;
189
+ releaseLine: string;
190
+ major: number;
191
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
192
+ } | {
193
+ /** @enum {string} */
194
+ status: "unsupported_family";
195
+ application: string;
196
+ } | {
197
+ /** @enum {string} */
198
+ status: "fork";
199
+ application: string;
200
+ release: string;
201
+ } | {
202
+ /** @enum {string} */
203
+ status: "disagreeing";
204
+ values: {
205
+ application?: string;
206
+ projectSettingsVersion?: string;
207
+ sliceInfoClientVersion?: string;
208
+ };
209
+ } | {
210
+ /** @enum {string} */
211
+ status: "unparseable";
212
+ values: {
213
+ application?: string;
214
+ projectSettingsVersion?: string;
215
+ sliceInfoClientVersion?: string;
216
+ };
217
+ } | {
218
+ /** @enum {string} */
219
+ status: "missing";
220
+ };
221
+ } | null;
222
+ error: {
223
+ /** @enum {string} */
224
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
225
+ message: string;
226
+ limit?: {
227
+ /** @enum {string} */
228
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
229
+ max: number;
230
+ observed?: number;
231
+ };
232
+ };
233
+ };
234
+ };
235
+ };
236
+ /** @description Default Response */
237
+ 202: {
238
+ headers: {
239
+ [name: string]: unknown;
240
+ };
241
+ content: {
242
+ "application/json": {
243
+ /** Format: uuid */
244
+ sourceVersionId: string;
245
+ /** Format: uuid */
246
+ modelId: string;
247
+ externalId: string | null;
248
+ sha256: string;
249
+ filename: string;
250
+ bytes: number;
251
+ /** Format: date-time */
252
+ createdAt: string;
253
+ /** @enum {string} */
254
+ status: "queued";
255
+ } | {
256
+ /** Format: uuid */
257
+ sourceVersionId: string;
258
+ /** Format: uuid */
259
+ modelId: string;
260
+ externalId: string | null;
261
+ sha256: string;
262
+ filename: string;
263
+ bytes: number;
264
+ /** Format: date-time */
265
+ createdAt: string;
266
+ /** @enum {string} */
267
+ status: "inspecting";
268
+ } | {
269
+ /** Format: uuid */
270
+ sourceVersionId: string;
271
+ /** Format: uuid */
272
+ modelId: string;
273
+ externalId: string | null;
274
+ sha256: string;
275
+ filename: string;
276
+ bytes: number;
277
+ /** Format: date-time */
278
+ createdAt: string;
279
+ /** @enum {string} */
280
+ status: "ready";
281
+ inspection: {
282
+ /** @enum {number} */
283
+ version: 1;
284
+ /** @enum {string} */
285
+ classification: "project" | "geometry_only" | "toolpath_only";
286
+ hasEmbeddedGcode: boolean;
287
+ plates: {
288
+ number: number;
289
+ objectIds: string[];
290
+ }[];
291
+ objects: {
292
+ id: string;
293
+ entry: string;
294
+ objectId: number;
295
+ name: string | null;
296
+ /** @enum {string} */
297
+ kind: "mesh" | "assembly" | "support" | "other";
298
+ materialSlots: number[];
299
+ }[];
300
+ materialSlots: {
301
+ slot: number;
302
+ material: string | null;
303
+ color: string | null;
304
+ profile: string | null;
305
+ }[];
306
+ /** @enum {string} */
307
+ materialUsage: "complete" | "requires_review";
308
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
309
+ authoringEngine?: {
310
+ /** @enum {string} */
311
+ status: "recognized";
312
+ /** @enum {string} */
313
+ family: "bambu_studio" | "orca_slicer";
314
+ release: string;
315
+ releaseLine: string;
316
+ major: number;
317
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
318
+ } | {
319
+ /** @enum {string} */
320
+ status: "unsupported_family";
321
+ application: string;
322
+ } | {
323
+ /** @enum {string} */
324
+ status: "fork";
325
+ application: string;
326
+ release: string;
327
+ } | {
328
+ /** @enum {string} */
329
+ status: "disagreeing";
330
+ values: {
331
+ application?: string;
332
+ projectSettingsVersion?: string;
333
+ sliceInfoClientVersion?: string;
334
+ };
335
+ } | {
336
+ /** @enum {string} */
337
+ status: "unparseable";
338
+ values: {
339
+ application?: string;
340
+ projectSettingsVersion?: string;
341
+ sliceInfoClientVersion?: string;
342
+ };
343
+ } | {
344
+ /** @enum {string} */
345
+ status: "missing";
346
+ };
347
+ };
348
+ } | {
349
+ /** Format: uuid */
350
+ sourceVersionId: string;
351
+ /** Format: uuid */
352
+ modelId: string;
353
+ externalId: string | null;
354
+ sha256: string;
355
+ filename: string;
356
+ bytes: number;
357
+ /** Format: date-time */
358
+ createdAt: string;
359
+ /** @enum {string} */
360
+ status: "failed";
361
+ inspection: {
362
+ /** @enum {number} */
363
+ version: 1;
364
+ /** @enum {string} */
365
+ classification: "project" | "geometry_only" | "toolpath_only";
366
+ hasEmbeddedGcode: boolean;
367
+ plates: {
368
+ number: number;
369
+ objectIds: string[];
370
+ }[];
371
+ objects: {
372
+ id: string;
373
+ entry: string;
374
+ objectId: number;
375
+ name: string | null;
376
+ /** @enum {string} */
377
+ kind: "mesh" | "assembly" | "support" | "other";
378
+ materialSlots: number[];
379
+ }[];
380
+ materialSlots: {
381
+ slot: number;
382
+ material: string | null;
383
+ color: string | null;
384
+ profile: string | null;
385
+ }[];
386
+ /** @enum {string} */
387
+ materialUsage: "complete" | "requires_review";
388
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
389
+ authoringEngine?: {
390
+ /** @enum {string} */
391
+ status: "recognized";
392
+ /** @enum {string} */
393
+ family: "bambu_studio" | "orca_slicer";
394
+ release: string;
395
+ releaseLine: string;
396
+ major: number;
397
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
398
+ } | {
399
+ /** @enum {string} */
400
+ status: "unsupported_family";
401
+ application: string;
402
+ } | {
403
+ /** @enum {string} */
404
+ status: "fork";
405
+ application: string;
406
+ release: string;
407
+ } | {
408
+ /** @enum {string} */
409
+ status: "disagreeing";
410
+ values: {
411
+ application?: string;
412
+ projectSettingsVersion?: string;
413
+ sliceInfoClientVersion?: string;
414
+ };
415
+ } | {
416
+ /** @enum {string} */
417
+ status: "unparseable";
418
+ values: {
419
+ application?: string;
420
+ projectSettingsVersion?: string;
421
+ sliceInfoClientVersion?: string;
422
+ };
423
+ } | {
424
+ /** @enum {string} */
425
+ status: "missing";
426
+ };
427
+ } | null;
428
+ error: {
429
+ /** @enum {string} */
430
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
431
+ message: string;
432
+ limit?: {
433
+ /** @enum {string} */
434
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
435
+ max: number;
436
+ observed?: number;
437
+ };
438
+ };
439
+ };
440
+ };
441
+ };
442
+ /** @description Default Response */
443
+ 400: {
444
+ headers: {
445
+ [name: string]: unknown;
446
+ };
447
+ content: {
448
+ "application/json": {
449
+ /** @enum {string} */
450
+ 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";
451
+ limit?: {
452
+ /** @enum {string} */
453
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
454
+ max: number;
455
+ observed?: number;
456
+ };
457
+ };
458
+ };
459
+ };
460
+ /** @description Default Response */
461
+ 401: {
462
+ headers: {
463
+ [name: string]: unknown;
464
+ };
465
+ content: {
466
+ "application/json": {
467
+ error?: string;
468
+ message?: string;
469
+ requestId?: string;
470
+ };
471
+ };
472
+ };
473
+ /** @description Default Response */
474
+ 403: {
475
+ headers: {
476
+ [name: string]: unknown;
477
+ };
478
+ content: {
479
+ "application/json": {
480
+ error?: string;
481
+ message?: string;
482
+ requestId?: string;
483
+ };
484
+ };
485
+ };
486
+ /** @description Default Response */
487
+ 404: {
488
+ headers: {
489
+ [name: string]: unknown;
490
+ };
491
+ content: {
492
+ "application/json": {
493
+ /** @enum {string} */
494
+ 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";
495
+ limit?: {
496
+ /** @enum {string} */
497
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
498
+ max: number;
499
+ observed?: number;
500
+ };
501
+ };
502
+ };
503
+ };
504
+ /** @description Default Response */
505
+ 408: {
506
+ headers: {
507
+ [name: string]: unknown;
508
+ };
509
+ content: {
510
+ "application/json": {
511
+ /** @enum {string} */
512
+ 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";
513
+ limit?: {
514
+ /** @enum {string} */
515
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
516
+ max: number;
517
+ observed?: number;
518
+ };
519
+ };
520
+ };
521
+ };
522
+ /** @description Default Response */
523
+ 409: {
524
+ headers: {
525
+ [name: string]: unknown;
526
+ };
527
+ content: {
528
+ "application/json": {
529
+ /** @enum {string} */
530
+ 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";
531
+ limit?: {
532
+ /** @enum {string} */
533
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
534
+ max: number;
535
+ observed?: number;
536
+ };
537
+ };
538
+ };
539
+ };
540
+ /** @description Default Response */
541
+ 411: {
542
+ headers: {
543
+ [name: string]: unknown;
544
+ };
545
+ content: {
546
+ "application/json": {
547
+ /** @enum {string} */
548
+ 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";
549
+ limit?: {
550
+ /** @enum {string} */
551
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
552
+ max: number;
553
+ observed?: number;
554
+ };
555
+ };
556
+ };
557
+ };
558
+ /** @description Default Response */
559
+ 413: {
560
+ headers: {
561
+ [name: string]: unknown;
562
+ };
563
+ content: {
564
+ "application/json": {
565
+ /** @enum {string} */
566
+ 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";
567
+ limit?: {
568
+ /** @enum {string} */
569
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
570
+ max: number;
571
+ observed?: number;
572
+ };
573
+ };
574
+ };
575
+ };
576
+ /** @description Default Response */
577
+ 415: {
578
+ headers: {
579
+ [name: string]: unknown;
580
+ };
581
+ content: {
582
+ "application/json": {
583
+ /** @enum {string} */
584
+ 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";
585
+ limit?: {
586
+ /** @enum {string} */
587
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
588
+ max: number;
589
+ observed?: number;
590
+ };
591
+ };
592
+ };
593
+ };
594
+ /** @description Default Response */
595
+ 429: {
596
+ headers: {
597
+ /** @description Seconds to wait before retrying the upload. */
598
+ "Retry-After"?: number;
599
+ [name: string]: unknown;
600
+ };
601
+ content: {
602
+ "application/json": {
603
+ /** @enum {string} */
604
+ 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";
605
+ limit?: {
606
+ /** @enum {string} */
607
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
608
+ max: number;
609
+ observed?: number;
610
+ };
611
+ };
612
+ };
613
+ };
614
+ /** @description Default Response */
615
+ 503: {
616
+ headers: {
617
+ [name: string]: unknown;
618
+ };
619
+ content: {
620
+ "application/json": {
621
+ /** @enum {string} */
622
+ 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";
623
+ limit?: {
624
+ /** @enum {string} */
625
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
626
+ max: number;
627
+ observed?: number;
628
+ };
629
+ };
630
+ };
631
+ };
632
+ };
633
+ };
634
+ delete?: never;
635
+ options?: never;
636
+ head?: never;
637
+ patch?: never;
638
+ trace?: never;
639
+ };
640
+ "/v1/partner-production/uploads/{sourceId}": {
641
+ parameters: {
642
+ query?: never;
643
+ header?: never;
644
+ path?: never;
645
+ cookie?: never;
646
+ };
647
+ /** Read a partner source version */
648
+ get: {
649
+ parameters: {
650
+ query?: never;
651
+ header?: never;
652
+ path: {
653
+ sourceId: string;
654
+ };
655
+ cookie?: never;
656
+ };
657
+ requestBody?: never;
658
+ responses: {
659
+ /** @description Default Response */
660
+ 200: {
661
+ headers: {
662
+ [name: string]: unknown;
663
+ };
664
+ content: {
665
+ "application/json": {
666
+ /** Format: uuid */
667
+ sourceVersionId: string;
668
+ /** Format: uuid */
669
+ modelId: string;
670
+ externalId: string | null;
671
+ sha256: string;
672
+ filename: string;
673
+ bytes: number;
674
+ /** Format: date-time */
675
+ createdAt: string;
676
+ /** @enum {string} */
677
+ status: "queued";
678
+ } | {
679
+ /** Format: uuid */
680
+ sourceVersionId: string;
681
+ /** Format: uuid */
682
+ modelId: string;
683
+ externalId: string | null;
684
+ sha256: string;
685
+ filename: string;
686
+ bytes: number;
687
+ /** Format: date-time */
688
+ createdAt: string;
689
+ /** @enum {string} */
690
+ status: "inspecting";
691
+ } | {
692
+ /** Format: uuid */
693
+ sourceVersionId: string;
694
+ /** Format: uuid */
695
+ modelId: string;
696
+ externalId: string | null;
697
+ sha256: string;
698
+ filename: string;
699
+ bytes: number;
700
+ /** Format: date-time */
701
+ createdAt: string;
702
+ /** @enum {string} */
703
+ status: "ready";
704
+ inspection: {
705
+ /** @enum {number} */
706
+ version: 1;
707
+ /** @enum {string} */
708
+ classification: "project" | "geometry_only" | "toolpath_only";
709
+ hasEmbeddedGcode: boolean;
710
+ plates: {
711
+ number: number;
712
+ objectIds: string[];
713
+ }[];
714
+ objects: {
715
+ id: string;
716
+ entry: string;
717
+ objectId: number;
718
+ name: string | null;
719
+ /** @enum {string} */
720
+ kind: "mesh" | "assembly" | "support" | "other";
721
+ materialSlots: number[];
722
+ }[];
723
+ materialSlots: {
724
+ slot: number;
725
+ material: string | null;
726
+ color: string | null;
727
+ profile: string | null;
728
+ }[];
729
+ /** @enum {string} */
730
+ materialUsage: "complete" | "requires_review";
731
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
732
+ authoringEngine?: {
733
+ /** @enum {string} */
734
+ status: "recognized";
735
+ /** @enum {string} */
736
+ family: "bambu_studio" | "orca_slicer";
737
+ release: string;
738
+ releaseLine: string;
739
+ major: number;
740
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
741
+ } | {
742
+ /** @enum {string} */
743
+ status: "unsupported_family";
744
+ application: string;
745
+ } | {
746
+ /** @enum {string} */
747
+ status: "fork";
748
+ application: string;
749
+ release: string;
750
+ } | {
751
+ /** @enum {string} */
752
+ status: "disagreeing";
753
+ values: {
754
+ application?: string;
755
+ projectSettingsVersion?: string;
756
+ sliceInfoClientVersion?: string;
757
+ };
758
+ } | {
759
+ /** @enum {string} */
760
+ status: "unparseable";
761
+ values: {
762
+ application?: string;
763
+ projectSettingsVersion?: string;
764
+ sliceInfoClientVersion?: string;
765
+ };
766
+ } | {
767
+ /** @enum {string} */
768
+ status: "missing";
769
+ };
770
+ };
771
+ } | {
772
+ /** Format: uuid */
773
+ sourceVersionId: string;
774
+ /** Format: uuid */
775
+ modelId: string;
776
+ externalId: string | null;
777
+ sha256: string;
778
+ filename: string;
779
+ bytes: number;
780
+ /** Format: date-time */
781
+ createdAt: string;
782
+ /** @enum {string} */
783
+ status: "failed";
784
+ inspection: {
785
+ /** @enum {number} */
786
+ version: 1;
787
+ /** @enum {string} */
788
+ classification: "project" | "geometry_only" | "toolpath_only";
789
+ hasEmbeddedGcode: boolean;
790
+ plates: {
791
+ number: number;
792
+ objectIds: string[];
793
+ }[];
794
+ objects: {
795
+ id: string;
796
+ entry: string;
797
+ objectId: number;
798
+ name: string | null;
799
+ /** @enum {string} */
800
+ kind: "mesh" | "assembly" | "support" | "other";
801
+ materialSlots: number[];
802
+ }[];
803
+ materialSlots: {
804
+ slot: number;
805
+ material: string | null;
806
+ color: string | null;
807
+ profile: string | null;
808
+ }[];
809
+ /** @enum {string} */
810
+ materialUsage: "complete" | "requires_review";
811
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
812
+ authoringEngine?: {
813
+ /** @enum {string} */
814
+ status: "recognized";
815
+ /** @enum {string} */
816
+ family: "bambu_studio" | "orca_slicer";
817
+ release: string;
818
+ releaseLine: string;
819
+ major: number;
820
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
821
+ } | {
822
+ /** @enum {string} */
823
+ status: "unsupported_family";
824
+ application: string;
825
+ } | {
826
+ /** @enum {string} */
827
+ status: "fork";
828
+ application: string;
829
+ release: string;
830
+ } | {
831
+ /** @enum {string} */
832
+ status: "disagreeing";
833
+ values: {
834
+ application?: string;
835
+ projectSettingsVersion?: string;
836
+ sliceInfoClientVersion?: string;
837
+ };
838
+ } | {
839
+ /** @enum {string} */
840
+ status: "unparseable";
841
+ values: {
842
+ application?: string;
843
+ projectSettingsVersion?: string;
844
+ sliceInfoClientVersion?: string;
845
+ };
846
+ } | {
847
+ /** @enum {string} */
848
+ status: "missing";
849
+ };
850
+ } | null;
851
+ error: {
852
+ /** @enum {string} */
853
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
854
+ message: string;
855
+ limit?: {
856
+ /** @enum {string} */
857
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
858
+ max: number;
859
+ observed?: number;
860
+ };
861
+ };
862
+ };
863
+ };
864
+ };
865
+ /** @description Default Response */
866
+ 401: {
867
+ headers: {
868
+ [name: string]: unknown;
869
+ };
870
+ content: {
871
+ "application/json": {
872
+ error?: string;
873
+ message?: string;
874
+ requestId?: string;
875
+ };
876
+ };
877
+ };
878
+ /** @description Default Response */
879
+ 403: {
880
+ headers: {
881
+ [name: string]: unknown;
882
+ };
883
+ content: {
884
+ "application/json": {
885
+ error?: string;
886
+ message?: string;
887
+ requestId?: string;
888
+ };
889
+ };
890
+ };
891
+ /** @description Default Response */
892
+ 404: {
893
+ headers: {
894
+ [name: string]: unknown;
895
+ };
896
+ content: {
897
+ "application/json": {
898
+ /** @enum {string} */
899
+ 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";
900
+ limit?: {
901
+ /** @enum {string} */
902
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
903
+ max: number;
904
+ observed?: number;
905
+ };
906
+ };
907
+ };
908
+ };
909
+ /** @description Default Response */
910
+ 503: {
911
+ headers: {
912
+ [name: string]: unknown;
913
+ };
914
+ content: {
915
+ "application/json": {
916
+ /** @enum {string} */
917
+ 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";
918
+ limit?: {
919
+ /** @enum {string} */
920
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
921
+ max: number;
922
+ observed?: number;
923
+ };
924
+ };
925
+ };
926
+ };
927
+ };
928
+ };
929
+ put?: never;
930
+ post?: never;
931
+ delete?: never;
932
+ options?: never;
933
+ head?: never;
934
+ patch?: never;
935
+ trace?: never;
936
+ };
937
+ "/v1/partner-production/models": {
938
+ parameters: {
939
+ query?: never;
940
+ header?: never;
941
+ path?: never;
942
+ cookie?: never;
943
+ };
944
+ /** Find the model bound to a partner external id */
945
+ get: {
946
+ parameters: {
947
+ query?: {
948
+ externalId?: string;
949
+ };
950
+ header?: never;
951
+ path?: never;
952
+ cookie?: never;
953
+ };
954
+ requestBody?: never;
955
+ responses: {
956
+ /** @description Default Response */
957
+ 200: {
958
+ headers: {
959
+ [name: string]: unknown;
960
+ };
961
+ content: {
962
+ "application/json": {
963
+ /** Format: uuid */
964
+ modelId: string;
965
+ externalId: string;
966
+ latestSource: {
967
+ /** Format: uuid */
968
+ sourceVersionId: string;
969
+ /** Format: uuid */
970
+ modelId: string;
971
+ externalId: string | null;
972
+ sha256: string;
973
+ filename: string;
974
+ bytes: number;
975
+ /** Format: date-time */
976
+ createdAt: string;
977
+ /** @enum {string} */
978
+ status: "queued";
979
+ } | {
980
+ /** Format: uuid */
981
+ sourceVersionId: string;
982
+ /** Format: uuid */
983
+ modelId: string;
984
+ externalId: string | null;
985
+ sha256: string;
986
+ filename: string;
987
+ bytes: number;
988
+ /** Format: date-time */
989
+ createdAt: string;
990
+ /** @enum {string} */
991
+ status: "inspecting";
992
+ } | {
993
+ /** Format: uuid */
994
+ sourceVersionId: string;
995
+ /** Format: uuid */
996
+ modelId: string;
997
+ externalId: string | null;
998
+ sha256: string;
999
+ filename: string;
1000
+ bytes: number;
1001
+ /** Format: date-time */
1002
+ createdAt: string;
1003
+ /** @enum {string} */
1004
+ status: "ready";
1005
+ inspection: {
1006
+ /** @enum {number} */
1007
+ version: 1;
1008
+ /** @enum {string} */
1009
+ classification: "project" | "geometry_only" | "toolpath_only";
1010
+ hasEmbeddedGcode: boolean;
1011
+ plates: {
1012
+ number: number;
1013
+ objectIds: string[];
1014
+ }[];
1015
+ objects: {
1016
+ id: string;
1017
+ entry: string;
1018
+ objectId: number;
1019
+ name: string | null;
1020
+ /** @enum {string} */
1021
+ kind: "mesh" | "assembly" | "support" | "other";
1022
+ materialSlots: number[];
1023
+ }[];
1024
+ materialSlots: {
1025
+ slot: number;
1026
+ material: string | null;
1027
+ color: string | null;
1028
+ profile: string | null;
1029
+ }[];
1030
+ /** @enum {string} */
1031
+ materialUsage: "complete" | "requires_review";
1032
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1033
+ authoringEngine?: {
1034
+ /** @enum {string} */
1035
+ status: "recognized";
1036
+ /** @enum {string} */
1037
+ family: "bambu_studio" | "orca_slicer";
1038
+ release: string;
1039
+ releaseLine: string;
1040
+ major: number;
1041
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1042
+ } | {
1043
+ /** @enum {string} */
1044
+ status: "unsupported_family";
1045
+ application: string;
1046
+ } | {
1047
+ /** @enum {string} */
1048
+ status: "fork";
1049
+ application: string;
1050
+ release: string;
1051
+ } | {
1052
+ /** @enum {string} */
1053
+ status: "disagreeing";
1054
+ values: {
1055
+ application?: string;
1056
+ projectSettingsVersion?: string;
1057
+ sliceInfoClientVersion?: string;
1058
+ };
1059
+ } | {
1060
+ /** @enum {string} */
1061
+ status: "unparseable";
1062
+ values: {
1063
+ application?: string;
1064
+ projectSettingsVersion?: string;
1065
+ sliceInfoClientVersion?: string;
1066
+ };
1067
+ } | {
1068
+ /** @enum {string} */
1069
+ status: "missing";
1070
+ };
1071
+ };
1072
+ } | {
1073
+ /** Format: uuid */
1074
+ sourceVersionId: string;
1075
+ /** Format: uuid */
1076
+ modelId: string;
1077
+ externalId: string | null;
1078
+ sha256: string;
1079
+ filename: string;
1080
+ bytes: number;
1081
+ /** Format: date-time */
1082
+ createdAt: string;
1083
+ /** @enum {string} */
1084
+ status: "failed";
1085
+ inspection: {
1086
+ /** @enum {number} */
1087
+ version: 1;
1088
+ /** @enum {string} */
1089
+ classification: "project" | "geometry_only" | "toolpath_only";
1090
+ hasEmbeddedGcode: boolean;
1091
+ plates: {
1092
+ number: number;
1093
+ objectIds: string[];
1094
+ }[];
1095
+ objects: {
1096
+ id: string;
1097
+ entry: string;
1098
+ objectId: number;
1099
+ name: string | null;
1100
+ /** @enum {string} */
1101
+ kind: "mesh" | "assembly" | "support" | "other";
1102
+ materialSlots: number[];
1103
+ }[];
1104
+ materialSlots: {
1105
+ slot: number;
1106
+ material: string | null;
1107
+ color: string | null;
1108
+ profile: string | null;
1109
+ }[];
1110
+ /** @enum {string} */
1111
+ materialUsage: "complete" | "requires_review";
1112
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1113
+ authoringEngine?: {
1114
+ /** @enum {string} */
1115
+ status: "recognized";
1116
+ /** @enum {string} */
1117
+ family: "bambu_studio" | "orca_slicer";
1118
+ release: string;
1119
+ releaseLine: string;
1120
+ major: number;
1121
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1122
+ } | {
1123
+ /** @enum {string} */
1124
+ status: "unsupported_family";
1125
+ application: string;
1126
+ } | {
1127
+ /** @enum {string} */
1128
+ status: "fork";
1129
+ application: string;
1130
+ release: string;
1131
+ } | {
1132
+ /** @enum {string} */
1133
+ status: "disagreeing";
1134
+ values: {
1135
+ application?: string;
1136
+ projectSettingsVersion?: string;
1137
+ sliceInfoClientVersion?: string;
1138
+ };
1139
+ } | {
1140
+ /** @enum {string} */
1141
+ status: "unparseable";
1142
+ values: {
1143
+ application?: string;
1144
+ projectSettingsVersion?: string;
1145
+ sliceInfoClientVersion?: string;
1146
+ };
1147
+ } | {
1148
+ /** @enum {string} */
1149
+ status: "missing";
1150
+ };
1151
+ } | null;
1152
+ error: {
1153
+ /** @enum {string} */
1154
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
1155
+ message: string;
1156
+ limit?: {
1157
+ /** @enum {string} */
1158
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1159
+ max: number;
1160
+ observed?: number;
1161
+ };
1162
+ };
1163
+ };
1164
+ };
1165
+ };
1166
+ };
1167
+ /** @description Default Response */
1168
+ 400: {
1169
+ headers: {
1170
+ [name: string]: unknown;
1171
+ };
1172
+ content: {
1173
+ "application/json": {
1174
+ /** @enum {string} */
1175
+ 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";
1176
+ limit?: {
1177
+ /** @enum {string} */
1178
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1179
+ max: number;
1180
+ observed?: number;
1181
+ };
1182
+ };
1183
+ };
1184
+ };
1185
+ /** @description Default Response */
1186
+ 401: {
1187
+ headers: {
1188
+ [name: string]: unknown;
1189
+ };
1190
+ content: {
1191
+ "application/json": {
1192
+ error?: string;
1193
+ message?: string;
1194
+ requestId?: string;
1195
+ };
1196
+ };
1197
+ };
1198
+ /** @description Default Response */
1199
+ 403: {
1200
+ headers: {
1201
+ [name: string]: unknown;
1202
+ };
1203
+ content: {
1204
+ "application/json": {
1205
+ error?: string;
1206
+ message?: string;
1207
+ requestId?: string;
1208
+ };
1209
+ };
1210
+ };
1211
+ /** @description Default Response */
1212
+ 404: {
1213
+ headers: {
1214
+ [name: string]: unknown;
1215
+ };
1216
+ content: {
1217
+ "application/json": {
1218
+ /** @enum {string} */
1219
+ 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";
1220
+ limit?: {
1221
+ /** @enum {string} */
1222
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1223
+ max: number;
1224
+ observed?: number;
1225
+ };
1226
+ };
1227
+ };
1228
+ };
1229
+ /** @description Default Response */
1230
+ 503: {
1231
+ headers: {
1232
+ [name: string]: unknown;
1233
+ };
1234
+ content: {
1235
+ "application/json": {
1236
+ /** @enum {string} */
1237
+ 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";
1238
+ limit?: {
1239
+ /** @enum {string} */
1240
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1241
+ max: number;
1242
+ observed?: number;
1243
+ };
1244
+ };
1245
+ };
1246
+ };
1247
+ };
1248
+ };
1249
+ put?: never;
1250
+ post?: never;
1251
+ delete?: never;
1252
+ options?: never;
1253
+ head?: never;
1254
+ patch?: never;
1255
+ trace?: never;
1256
+ };
1257
+ "/v1/partner-production/models/{modelId}/files": {
1258
+ parameters: {
1259
+ query?: never;
1260
+ header?: never;
1261
+ path?: never;
1262
+ cookie?: never;
1263
+ };
1264
+ /** List a model's partner source versions */
1265
+ get: {
1266
+ parameters: {
1267
+ query?: {
1268
+ cursor?: string;
1269
+ limit?: string;
1270
+ };
1271
+ header?: never;
1272
+ path: {
1273
+ modelId: string;
1274
+ };
1275
+ cookie?: never;
1276
+ };
1277
+ requestBody?: never;
1278
+ responses: {
1279
+ /** @description Default Response */
1280
+ 200: {
1281
+ headers: {
1282
+ [name: string]: unknown;
1283
+ };
1284
+ content: {
1285
+ "application/json": {
1286
+ sources: ({
1287
+ /** Format: uuid */
1288
+ sourceVersionId: string;
1289
+ /** Format: uuid */
1290
+ modelId: string;
1291
+ externalId: string | null;
1292
+ sha256: string;
1293
+ filename: string;
1294
+ bytes: number;
1295
+ /** Format: date-time */
1296
+ createdAt: string;
1297
+ /** @enum {string} */
1298
+ status: "queued";
1299
+ } | {
1300
+ /** Format: uuid */
1301
+ sourceVersionId: string;
1302
+ /** Format: uuid */
1303
+ modelId: string;
1304
+ externalId: string | null;
1305
+ sha256: string;
1306
+ filename: string;
1307
+ bytes: number;
1308
+ /** Format: date-time */
1309
+ createdAt: string;
1310
+ /** @enum {string} */
1311
+ status: "inspecting";
1312
+ } | {
1313
+ /** Format: uuid */
1314
+ sourceVersionId: string;
1315
+ /** Format: uuid */
1316
+ modelId: string;
1317
+ externalId: string | null;
1318
+ sha256: string;
1319
+ filename: string;
1320
+ bytes: number;
1321
+ /** Format: date-time */
1322
+ createdAt: string;
1323
+ /** @enum {string} */
1324
+ status: "ready";
1325
+ inspection: {
1326
+ /** @enum {number} */
1327
+ version: 1;
1328
+ /** @enum {string} */
1329
+ classification: "project" | "geometry_only" | "toolpath_only";
1330
+ hasEmbeddedGcode: boolean;
1331
+ plates: {
1332
+ number: number;
1333
+ objectIds: string[];
1334
+ }[];
1335
+ objects: {
1336
+ id: string;
1337
+ entry: string;
1338
+ objectId: number;
1339
+ name: string | null;
1340
+ /** @enum {string} */
1341
+ kind: "mesh" | "assembly" | "support" | "other";
1342
+ materialSlots: number[];
1343
+ }[];
1344
+ materialSlots: {
1345
+ slot: number;
1346
+ material: string | null;
1347
+ color: string | null;
1348
+ profile: string | null;
1349
+ }[];
1350
+ /** @enum {string} */
1351
+ materialUsage: "complete" | "requires_review";
1352
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1353
+ authoringEngine?: {
1354
+ /** @enum {string} */
1355
+ status: "recognized";
1356
+ /** @enum {string} */
1357
+ family: "bambu_studio" | "orca_slicer";
1358
+ release: string;
1359
+ releaseLine: string;
1360
+ major: number;
1361
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1362
+ } | {
1363
+ /** @enum {string} */
1364
+ status: "unsupported_family";
1365
+ application: string;
1366
+ } | {
1367
+ /** @enum {string} */
1368
+ status: "fork";
1369
+ application: string;
1370
+ release: string;
1371
+ } | {
1372
+ /** @enum {string} */
1373
+ status: "disagreeing";
1374
+ values: {
1375
+ application?: string;
1376
+ projectSettingsVersion?: string;
1377
+ sliceInfoClientVersion?: string;
1378
+ };
1379
+ } | {
1380
+ /** @enum {string} */
1381
+ status: "unparseable";
1382
+ values: {
1383
+ application?: string;
1384
+ projectSettingsVersion?: string;
1385
+ sliceInfoClientVersion?: string;
1386
+ };
1387
+ } | {
1388
+ /** @enum {string} */
1389
+ status: "missing";
1390
+ };
1391
+ };
1392
+ } | {
1393
+ /** Format: uuid */
1394
+ sourceVersionId: string;
1395
+ /** Format: uuid */
1396
+ modelId: string;
1397
+ externalId: string | null;
1398
+ sha256: string;
1399
+ filename: string;
1400
+ bytes: number;
1401
+ /** Format: date-time */
1402
+ createdAt: string;
1403
+ /** @enum {string} */
1404
+ status: "failed";
1405
+ inspection: {
1406
+ /** @enum {number} */
1407
+ version: 1;
1408
+ /** @enum {string} */
1409
+ classification: "project" | "geometry_only" | "toolpath_only";
1410
+ hasEmbeddedGcode: boolean;
1411
+ plates: {
1412
+ number: number;
1413
+ objectIds: string[];
1414
+ }[];
1415
+ objects: {
1416
+ id: string;
1417
+ entry: string;
1418
+ objectId: number;
1419
+ name: string | null;
1420
+ /** @enum {string} */
1421
+ kind: "mesh" | "assembly" | "support" | "other";
1422
+ materialSlots: number[];
1423
+ }[];
1424
+ materialSlots: {
1425
+ slot: number;
1426
+ material: string | null;
1427
+ color: string | null;
1428
+ profile: string | null;
1429
+ }[];
1430
+ /** @enum {string} */
1431
+ materialUsage: "complete" | "requires_review";
1432
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1433
+ authoringEngine?: {
1434
+ /** @enum {string} */
1435
+ status: "recognized";
1436
+ /** @enum {string} */
1437
+ family: "bambu_studio" | "orca_slicer";
1438
+ release: string;
1439
+ releaseLine: string;
1440
+ major: number;
1441
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1442
+ } | {
1443
+ /** @enum {string} */
1444
+ status: "unsupported_family";
1445
+ application: string;
1446
+ } | {
1447
+ /** @enum {string} */
1448
+ status: "fork";
1449
+ application: string;
1450
+ release: string;
1451
+ } | {
1452
+ /** @enum {string} */
1453
+ status: "disagreeing";
1454
+ values: {
1455
+ application?: string;
1456
+ projectSettingsVersion?: string;
1457
+ sliceInfoClientVersion?: string;
1458
+ };
1459
+ } | {
1460
+ /** @enum {string} */
1461
+ status: "unparseable";
1462
+ values: {
1463
+ application?: string;
1464
+ projectSettingsVersion?: string;
1465
+ sliceInfoClientVersion?: string;
1466
+ };
1467
+ } | {
1468
+ /** @enum {string} */
1469
+ status: "missing";
1470
+ };
1471
+ } | null;
1472
+ error: {
1473
+ /** @enum {string} */
1474
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
1475
+ message: string;
1476
+ limit?: {
1477
+ /** @enum {string} */
1478
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1479
+ max: number;
1480
+ observed?: number;
1481
+ };
1482
+ };
1483
+ })[];
1484
+ nextCursor: string | null;
1485
+ };
1486
+ };
1487
+ };
1488
+ /** @description Default Response */
1489
+ 400: {
1490
+ headers: {
1491
+ [name: string]: unknown;
1492
+ };
1493
+ content: {
1494
+ "application/json": {
1495
+ /** @enum {string} */
1496
+ 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";
1497
+ limit?: {
1498
+ /** @enum {string} */
1499
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1500
+ max: number;
1501
+ observed?: number;
1502
+ };
1503
+ };
1504
+ };
1505
+ };
1506
+ /** @description Default Response */
1507
+ 401: {
1508
+ headers: {
1509
+ [name: string]: unknown;
1510
+ };
1511
+ content: {
1512
+ "application/json": {
1513
+ error?: string;
1514
+ message?: string;
1515
+ requestId?: string;
1516
+ };
1517
+ };
1518
+ };
1519
+ /** @description Default Response */
1520
+ 403: {
1521
+ headers: {
1522
+ [name: string]: unknown;
1523
+ };
1524
+ content: {
1525
+ "application/json": {
1526
+ error?: string;
1527
+ message?: string;
1528
+ requestId?: string;
1529
+ };
1530
+ };
1531
+ };
1532
+ /** @description Default Response */
1533
+ 404: {
1534
+ headers: {
1535
+ [name: string]: unknown;
1536
+ };
1537
+ content: {
1538
+ "application/json": {
1539
+ /** @enum {string} */
1540
+ 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";
1541
+ limit?: {
1542
+ /** @enum {string} */
1543
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1544
+ max: number;
1545
+ observed?: number;
1546
+ };
1547
+ };
1548
+ };
1549
+ };
1550
+ /** @description Default Response */
1551
+ 503: {
1552
+ headers: {
1553
+ [name: string]: unknown;
1554
+ };
1555
+ content: {
1556
+ "application/json": {
1557
+ /** @enum {string} */
1558
+ 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";
1559
+ limit?: {
1560
+ /** @enum {string} */
1561
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1562
+ max: number;
1563
+ observed?: number;
1564
+ };
1565
+ };
1566
+ };
1567
+ };
1568
+ };
1569
+ };
1570
+ put?: never;
1571
+ post?: never;
1572
+ delete?: never;
1573
+ options?: never;
1574
+ head?: never;
1575
+ patch?: never;
1576
+ trace?: never;
1577
+ };
1578
+ }
1579
+
1580
+ type PrintHiveOptions = {
1581
+ apiKey: string;
1582
+ baseUrl?: string;
1583
+ fetch?: typeof globalThis.fetch;
1584
+ timeoutMs?: number;
1585
+ maxRetries?: number;
1586
+ };
1587
+
1588
+ type ApiLimit = {
1589
+ name: string;
1590
+ max: number;
1591
+ observed?: number;
1592
+ };
1593
+ type ApiErrorValue = null | string | number | boolean | ApiErrorValue[] | {
1594
+ [key: string]: ApiErrorValue;
1595
+ };
1596
+ type ApiErrorBody = {
1597
+ error: string;
1598
+ requestId?: string;
1599
+ limit?: ApiLimit;
1600
+ [key: string]: ApiErrorValue | undefined;
1601
+ };
1602
+ declare class PrintHiveApiError extends Error {
1603
+ readonly status: number;
1604
+ readonly code: string;
1605
+ readonly limit?: ApiLimit | undefined;
1606
+ readonly retryAfterMs?: number | undefined;
1607
+ readonly requestId?: string | undefined;
1608
+ readonly body?: ApiErrorBody | undefined;
1609
+ readonly name = "PrintHiveApiError";
1610
+ constructor(status: number, code: string, limit?: ApiLimit | undefined, retryAfterMs?: number | undefined, requestId?: string | undefined, body?: ApiErrorBody | undefined);
1611
+ }
1612
+ declare class PrintHiveNetworkError extends Error {
1613
+ readonly reason: "network" | "timeout" | "aborted";
1614
+ readonly name = "PrintHiveNetworkError";
1615
+ constructor(reason: "network" | "timeout" | "aborted");
1616
+ }
1617
+
1618
+ type PartnerSource = paths["/v1/partner-production/uploads/{sourceId}"]["get"]["responses"][200]["content"]["application/json"];
1619
+ type PartnerModel = paths["/v1/partner-production/models"]["get"]["responses"][200]["content"]["application/json"];
1620
+ type UploadOptions = {
1621
+ filename: string;
1622
+ externalId?: string;
1623
+ modelId?: string;
1624
+ idempotencyKey?: string;
1625
+ } & ({
1626
+ file: string | Uint8Array;
1627
+ size?: never;
1628
+ } | {
1629
+ file: ReadableStream<Uint8Array>;
1630
+ size: number;
1631
+ });
1632
+ type WaitOptions = {
1633
+ intervalMs?: number;
1634
+ timeoutMs?: number;
1635
+ signal?: AbortSignal;
1636
+ };
1637
+ declare class PrintHive {
1638
+ readonly partnerSources: {
1639
+ get: (sourceId: string, signal?: AbortSignal) => Promise<{
1640
+ sourceVersionId: string;
1641
+ modelId: string;
1642
+ externalId: string | null;
1643
+ sha256: string;
1644
+ filename: string;
1645
+ bytes: number;
1646
+ createdAt: string;
1647
+ status: "queued";
1648
+ } | {
1649
+ sourceVersionId: string;
1650
+ modelId: string;
1651
+ externalId: string | null;
1652
+ sha256: string;
1653
+ filename: string;
1654
+ bytes: number;
1655
+ createdAt: string;
1656
+ status: "inspecting";
1657
+ } | {
1658
+ sourceVersionId: string;
1659
+ modelId: string;
1660
+ externalId: string | null;
1661
+ sha256: string;
1662
+ filename: string;
1663
+ bytes: number;
1664
+ createdAt: string;
1665
+ status: "ready";
1666
+ inspection: {
1667
+ version: 1;
1668
+ classification: "project" | "geometry_only" | "toolpath_only";
1669
+ hasEmbeddedGcode: boolean;
1670
+ plates: {
1671
+ number: number;
1672
+ objectIds: string[];
1673
+ }[];
1674
+ objects: {
1675
+ id: string;
1676
+ entry: string;
1677
+ objectId: number;
1678
+ name: string | null;
1679
+ kind: "mesh" | "assembly" | "support" | "other";
1680
+ materialSlots: number[];
1681
+ }[];
1682
+ materialSlots: {
1683
+ slot: number;
1684
+ material: string | null;
1685
+ color: string | null;
1686
+ profile: string | null;
1687
+ }[];
1688
+ materialUsage: "complete" | "requires_review";
1689
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1690
+ authoringEngine?: {
1691
+ status: "recognized";
1692
+ family: "bambu_studio" | "orca_slicer";
1693
+ release: string;
1694
+ releaseLine: string;
1695
+ major: number;
1696
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1697
+ } | {
1698
+ status: "unsupported_family";
1699
+ application: string;
1700
+ } | {
1701
+ status: "fork";
1702
+ application: string;
1703
+ release: string;
1704
+ } | {
1705
+ status: "disagreeing";
1706
+ values: {
1707
+ application?: string;
1708
+ projectSettingsVersion?: string;
1709
+ sliceInfoClientVersion?: string;
1710
+ };
1711
+ } | {
1712
+ status: "unparseable";
1713
+ values: {
1714
+ application?: string;
1715
+ projectSettingsVersion?: string;
1716
+ sliceInfoClientVersion?: string;
1717
+ };
1718
+ } | {
1719
+ status: "missing";
1720
+ };
1721
+ };
1722
+ } | {
1723
+ sourceVersionId: string;
1724
+ modelId: string;
1725
+ externalId: string | null;
1726
+ sha256: string;
1727
+ filename: string;
1728
+ bytes: number;
1729
+ createdAt: string;
1730
+ status: "failed";
1731
+ inspection: {
1732
+ version: 1;
1733
+ classification: "project" | "geometry_only" | "toolpath_only";
1734
+ hasEmbeddedGcode: boolean;
1735
+ plates: {
1736
+ number: number;
1737
+ objectIds: string[];
1738
+ }[];
1739
+ objects: {
1740
+ id: string;
1741
+ entry: string;
1742
+ objectId: number;
1743
+ name: string | null;
1744
+ kind: "mesh" | "assembly" | "support" | "other";
1745
+ materialSlots: number[];
1746
+ }[];
1747
+ materialSlots: {
1748
+ slot: number;
1749
+ material: string | null;
1750
+ color: string | null;
1751
+ profile: string | null;
1752
+ }[];
1753
+ materialUsage: "complete" | "requires_review";
1754
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1755
+ authoringEngine?: {
1756
+ status: "recognized";
1757
+ family: "bambu_studio" | "orca_slicer";
1758
+ release: string;
1759
+ releaseLine: string;
1760
+ major: number;
1761
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1762
+ } | {
1763
+ status: "unsupported_family";
1764
+ application: string;
1765
+ } | {
1766
+ status: "fork";
1767
+ application: string;
1768
+ release: string;
1769
+ } | {
1770
+ status: "disagreeing";
1771
+ values: {
1772
+ application?: string;
1773
+ projectSettingsVersion?: string;
1774
+ sliceInfoClientVersion?: string;
1775
+ };
1776
+ } | {
1777
+ status: "unparseable";
1778
+ values: {
1779
+ application?: string;
1780
+ projectSettingsVersion?: string;
1781
+ sliceInfoClientVersion?: string;
1782
+ };
1783
+ } | {
1784
+ status: "missing";
1785
+ };
1786
+ } | null;
1787
+ error: {
1788
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
1789
+ message: string;
1790
+ limit?: {
1791
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1792
+ max: number;
1793
+ observed?: number;
1794
+ };
1795
+ };
1796
+ }>;
1797
+ upload(input: UploadOptions): Promise<PartnerSource & {
1798
+ idempotencyKey: string;
1799
+ }>;
1800
+ waitUntilSettled(sourceId: string, options?: WaitOptions): Promise<Extract<PartnerSource, {
1801
+ status: "ready" | "failed";
1802
+ }>>;
1803
+ };
1804
+ readonly models: {
1805
+ findByExternalId: (externalId: string) => Promise<{
1806
+ modelId: string;
1807
+ externalId: string;
1808
+ latestSource: {
1809
+ sourceVersionId: string;
1810
+ modelId: string;
1811
+ externalId: string | null;
1812
+ sha256: string;
1813
+ filename: string;
1814
+ bytes: number;
1815
+ createdAt: string;
1816
+ status: "queued";
1817
+ } | {
1818
+ sourceVersionId: string;
1819
+ modelId: string;
1820
+ externalId: string | null;
1821
+ sha256: string;
1822
+ filename: string;
1823
+ bytes: number;
1824
+ createdAt: string;
1825
+ status: "inspecting";
1826
+ } | {
1827
+ sourceVersionId: string;
1828
+ modelId: string;
1829
+ externalId: string | null;
1830
+ sha256: string;
1831
+ filename: string;
1832
+ bytes: number;
1833
+ createdAt: string;
1834
+ status: "ready";
1835
+ inspection: {
1836
+ version: 1;
1837
+ classification: "project" | "geometry_only" | "toolpath_only";
1838
+ hasEmbeddedGcode: boolean;
1839
+ plates: {
1840
+ number: number;
1841
+ objectIds: string[];
1842
+ }[];
1843
+ objects: {
1844
+ id: string;
1845
+ entry: string;
1846
+ objectId: number;
1847
+ name: string | null;
1848
+ kind: "mesh" | "assembly" | "support" | "other";
1849
+ materialSlots: number[];
1850
+ }[];
1851
+ materialSlots: {
1852
+ slot: number;
1853
+ material: string | null;
1854
+ color: string | null;
1855
+ profile: string | null;
1856
+ }[];
1857
+ materialUsage: "complete" | "requires_review";
1858
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1859
+ authoringEngine?: {
1860
+ status: "recognized";
1861
+ family: "bambu_studio" | "orca_slicer";
1862
+ release: string;
1863
+ releaseLine: string;
1864
+ major: number;
1865
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1866
+ } | {
1867
+ status: "unsupported_family";
1868
+ application: string;
1869
+ } | {
1870
+ status: "fork";
1871
+ application: string;
1872
+ release: string;
1873
+ } | {
1874
+ status: "disagreeing";
1875
+ values: {
1876
+ application?: string;
1877
+ projectSettingsVersion?: string;
1878
+ sliceInfoClientVersion?: string;
1879
+ };
1880
+ } | {
1881
+ status: "unparseable";
1882
+ values: {
1883
+ application?: string;
1884
+ projectSettingsVersion?: string;
1885
+ sliceInfoClientVersion?: string;
1886
+ };
1887
+ } | {
1888
+ status: "missing";
1889
+ };
1890
+ };
1891
+ } | {
1892
+ sourceVersionId: string;
1893
+ modelId: string;
1894
+ externalId: string | null;
1895
+ sha256: string;
1896
+ filename: string;
1897
+ bytes: number;
1898
+ createdAt: string;
1899
+ status: "failed";
1900
+ inspection: {
1901
+ version: 1;
1902
+ classification: "project" | "geometry_only" | "toolpath_only";
1903
+ hasEmbeddedGcode: boolean;
1904
+ plates: {
1905
+ number: number;
1906
+ objectIds: string[];
1907
+ }[];
1908
+ objects: {
1909
+ id: string;
1910
+ entry: string;
1911
+ objectId: number;
1912
+ name: string | null;
1913
+ kind: "mesh" | "assembly" | "support" | "other";
1914
+ materialSlots: number[];
1915
+ }[];
1916
+ materialSlots: {
1917
+ slot: number;
1918
+ material: string | null;
1919
+ color: string | null;
1920
+ profile: string | null;
1921
+ }[];
1922
+ materialUsage: "complete" | "requires_review";
1923
+ reviewReasons: ("custom_instructions" | "material_usage_unresolved" | "geometry_only" | "project_metadata_ambiguous")[];
1924
+ authoringEngine?: {
1925
+ status: "recognized";
1926
+ family: "bambu_studio" | "orca_slicer";
1927
+ release: string;
1928
+ releaseLine: string;
1929
+ major: number;
1930
+ evidence: ("application" | "projectSettingsVersion" | "sliceInfoClientVersion")[];
1931
+ } | {
1932
+ status: "unsupported_family";
1933
+ application: string;
1934
+ } | {
1935
+ status: "fork";
1936
+ application: string;
1937
+ release: string;
1938
+ } | {
1939
+ status: "disagreeing";
1940
+ values: {
1941
+ application?: string;
1942
+ projectSettingsVersion?: string;
1943
+ sliceInfoClientVersion?: string;
1944
+ };
1945
+ } | {
1946
+ status: "unparseable";
1947
+ values: {
1948
+ application?: string;
1949
+ projectSettingsVersion?: string;
1950
+ sliceInfoClientVersion?: string;
1951
+ };
1952
+ } | {
1953
+ status: "missing";
1954
+ };
1955
+ } | null;
1956
+ error: {
1957
+ code: "invalid_archive" | "unsafe_path" | "unsafe_xml" | "resource_limit" | "invalid_project" | "toolpath_only" | "processing_timeout" | "storage_object_changed" | "inspection_interrupted" | "upload_interrupted";
1958
+ message: string;
1959
+ limit?: {
1960
+ name: "uploadBytes" | "concurrentUploads" | "concurrentUploadsPerOrganization" | "uploadIdleTimeoutMs" | "uploadTimeoutMs" | "entries" | "compressionRatio" | "modelPartExpandedBytes" | "expandedBytes" | "parserBytesPerDocument" | "parserBytesPerArchive" | "xmlDepth" | "xmlElementsPerDocument" | "objects" | "plates" | "materialSlots" | "inspectionTimeoutMs" | "inspectorHeapMb";
1961
+ max: number;
1962
+ observed?: number;
1963
+ };
1964
+ };
1965
+ };
1966
+ }>;
1967
+ listSourceFiles(modelId: string): AsyncGenerator<PartnerSource>;
1968
+ };
1969
+ constructor(options: PrintHiveOptions);
1970
+ }
1971
+
1972
+ export { type ApiErrorBody, type ApiLimit, type PartnerModel, type PartnerSource, PrintHive, PrintHiveApiError, PrintHiveNetworkError, type PrintHiveOptions, type UploadOptions, type WaitOptions, type paths };