@tscircuit/fake-snippets 0.0.45 → 0.0.46

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,1845 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const errorSchema: z.ZodObject<{
4
+ error_code: z.ZodString;
5
+ message: z.ZodString;
6
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7
+ error_code: z.ZodString;
8
+ message: z.ZodString;
9
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10
+ error_code: z.ZodString;
11
+ message: z.ZodString;
12
+ }, z.ZodTypeAny, "passthrough">>;
13
+ declare const errorResponseSchema: z.ZodObject<{
14
+ error: z.ZodObject<{
15
+ error_code: z.ZodString;
16
+ message: z.ZodString;
17
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
18
+ error_code: z.ZodString;
19
+ message: z.ZodString;
20
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
21
+ error_code: z.ZodString;
22
+ message: z.ZodString;
23
+ }, z.ZodTypeAny, "passthrough">>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ error: {
26
+ error_code: string;
27
+ message: string;
28
+ } & {
29
+ [k: string]: unknown;
30
+ };
31
+ }, {
32
+ error: {
33
+ error_code: string;
34
+ message: string;
35
+ } & {
36
+ [k: string]: unknown;
37
+ };
38
+ }>;
39
+ declare const snippetSchema: z.ZodObject<{
40
+ snippet_id: z.ZodString;
41
+ package_release_id: z.ZodString;
42
+ name: z.ZodString;
43
+ unscoped_name: z.ZodString;
44
+ owner_name: z.ZodString;
45
+ is_starred: z.ZodDefault<z.ZodBoolean>;
46
+ code: z.ZodString;
47
+ dts: z.ZodOptional<z.ZodString>;
48
+ compiled_js: z.ZodNullable<z.ZodOptional<z.ZodString>>;
49
+ circuit_json: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
50
+ manual_edits_json_content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
51
+ created_at: z.ZodString;
52
+ updated_at: z.ZodString;
53
+ snippet_type: z.ZodEnum<["board", "package", "model", "footprint"]>;
54
+ description: z.ZodOptional<z.ZodString>;
55
+ version: z.ZodDefault<z.ZodString>;
56
+ star_count: z.ZodDefault<z.ZodNumber>;
57
+ is_private: z.ZodDefault<z.ZodBoolean>;
58
+ is_public: z.ZodDefault<z.ZodBoolean>;
59
+ is_unlisted: z.ZodDefault<z.ZodBoolean>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ code: string;
62
+ snippet_id: string;
63
+ package_release_id: string;
64
+ name: string;
65
+ unscoped_name: string;
66
+ owner_name: string;
67
+ is_starred: boolean;
68
+ created_at: string;
69
+ updated_at: string;
70
+ snippet_type: "board" | "package" | "model" | "footprint";
71
+ version: string;
72
+ star_count: number;
73
+ is_private: boolean;
74
+ is_public: boolean;
75
+ is_unlisted: boolean;
76
+ dts?: string | undefined;
77
+ compiled_js?: string | null | undefined;
78
+ circuit_json?: Record<string, any>[] | null | undefined;
79
+ manual_edits_json_content?: string | null | undefined;
80
+ description?: string | undefined;
81
+ }, {
82
+ code: string;
83
+ snippet_id: string;
84
+ package_release_id: string;
85
+ name: string;
86
+ unscoped_name: string;
87
+ owner_name: string;
88
+ created_at: string;
89
+ updated_at: string;
90
+ snippet_type: "board" | "package" | "model" | "footprint";
91
+ is_starred?: boolean | undefined;
92
+ dts?: string | undefined;
93
+ compiled_js?: string | null | undefined;
94
+ circuit_json?: Record<string, any>[] | null | undefined;
95
+ manual_edits_json_content?: string | null | undefined;
96
+ description?: string | undefined;
97
+ version?: string | undefined;
98
+ star_count?: number | undefined;
99
+ is_private?: boolean | undefined;
100
+ is_public?: boolean | undefined;
101
+ is_unlisted?: boolean | undefined;
102
+ }>;
103
+ type Snippet = z.infer<typeof snippetSchema>;
104
+ declare const sessionSchema: z.ZodObject<{
105
+ session_id: z.ZodString;
106
+ account_id: z.ZodString;
107
+ expires_at: z.ZodString;
108
+ is_cli_session: z.ZodBoolean;
109
+ }, "strip", z.ZodTypeAny, {
110
+ session_id: string;
111
+ account_id: string;
112
+ expires_at: string;
113
+ is_cli_session: boolean;
114
+ }, {
115
+ session_id: string;
116
+ account_id: string;
117
+ expires_at: string;
118
+ is_cli_session: boolean;
119
+ }>;
120
+ type Session = z.infer<typeof sessionSchema>;
121
+ declare const loginPageSchema: z.ZodObject<{
122
+ login_page_id: z.ZodString;
123
+ login_page_auth_token: z.ZodString;
124
+ was_login_successful: z.ZodBoolean;
125
+ has_been_used_to_create_session: z.ZodBoolean;
126
+ created_at: z.ZodString;
127
+ expires_at: z.ZodString;
128
+ }, "strip", z.ZodTypeAny, {
129
+ created_at: string;
130
+ expires_at: string;
131
+ login_page_id: string;
132
+ login_page_auth_token: string;
133
+ was_login_successful: boolean;
134
+ has_been_used_to_create_session: boolean;
135
+ }, {
136
+ created_at: string;
137
+ expires_at: string;
138
+ login_page_id: string;
139
+ login_page_auth_token: string;
140
+ was_login_successful: boolean;
141
+ has_been_used_to_create_session: boolean;
142
+ }>;
143
+ type LoginPage = z.infer<typeof loginPageSchema>;
144
+ declare const shippingInfoSchema: z.ZodObject<{
145
+ firstName: z.ZodString;
146
+ lastName: z.ZodString;
147
+ companyName: z.ZodOptional<z.ZodString>;
148
+ address: z.ZodString;
149
+ apartment: z.ZodOptional<z.ZodString>;
150
+ city: z.ZodString;
151
+ state: z.ZodString;
152
+ zipCode: z.ZodString;
153
+ country: z.ZodString;
154
+ phone: z.ZodString;
155
+ }, "strip", z.ZodTypeAny, {
156
+ firstName: string;
157
+ lastName: string;
158
+ address: string;
159
+ city: string;
160
+ state: string;
161
+ zipCode: string;
162
+ country: string;
163
+ phone: string;
164
+ companyName?: string | undefined;
165
+ apartment?: string | undefined;
166
+ }, {
167
+ firstName: string;
168
+ lastName: string;
169
+ address: string;
170
+ city: string;
171
+ state: string;
172
+ zipCode: string;
173
+ country: string;
174
+ phone: string;
175
+ companyName?: string | undefined;
176
+ apartment?: string | undefined;
177
+ }>;
178
+ declare const accountSchema: z.ZodObject<{
179
+ account_id: z.ZodString;
180
+ github_username: z.ZodString;
181
+ shippingInfo: z.ZodOptional<z.ZodObject<{
182
+ firstName: z.ZodString;
183
+ lastName: z.ZodString;
184
+ companyName: z.ZodOptional<z.ZodString>;
185
+ address: z.ZodString;
186
+ apartment: z.ZodOptional<z.ZodString>;
187
+ city: z.ZodString;
188
+ state: z.ZodString;
189
+ zipCode: z.ZodString;
190
+ country: z.ZodString;
191
+ phone: z.ZodString;
192
+ }, "strip", z.ZodTypeAny, {
193
+ firstName: string;
194
+ lastName: string;
195
+ address: string;
196
+ city: string;
197
+ state: string;
198
+ zipCode: string;
199
+ country: string;
200
+ phone: string;
201
+ companyName?: string | undefined;
202
+ apartment?: string | undefined;
203
+ }, {
204
+ firstName: string;
205
+ lastName: string;
206
+ address: string;
207
+ city: string;
208
+ state: string;
209
+ zipCode: string;
210
+ country: string;
211
+ phone: string;
212
+ companyName?: string | undefined;
213
+ apartment?: string | undefined;
214
+ }>>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ account_id: string;
217
+ github_username: string;
218
+ shippingInfo?: {
219
+ firstName: string;
220
+ lastName: string;
221
+ address: string;
222
+ city: string;
223
+ state: string;
224
+ zipCode: string;
225
+ country: string;
226
+ phone: string;
227
+ companyName?: string | undefined;
228
+ apartment?: string | undefined;
229
+ } | undefined;
230
+ }, {
231
+ account_id: string;
232
+ github_username: string;
233
+ shippingInfo?: {
234
+ firstName: string;
235
+ lastName: string;
236
+ address: string;
237
+ city: string;
238
+ state: string;
239
+ zipCode: string;
240
+ country: string;
241
+ phone: string;
242
+ companyName?: string | undefined;
243
+ apartment?: string | undefined;
244
+ } | undefined;
245
+ }>;
246
+ type Account = z.infer<typeof accountSchema>;
247
+ declare const orderSchema: z.ZodObject<{
248
+ order_id: z.ZodString;
249
+ account_id: z.ZodNullable<z.ZodString>;
250
+ is_running: z.ZodBoolean;
251
+ is_started: z.ZodBoolean;
252
+ is_finished: z.ZodBoolean;
253
+ error: z.ZodNullable<z.ZodObject<{
254
+ error_code: z.ZodString;
255
+ message: z.ZodString;
256
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
257
+ error_code: z.ZodString;
258
+ message: z.ZodString;
259
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
260
+ error_code: z.ZodString;
261
+ message: z.ZodString;
262
+ }, z.ZodTypeAny, "passthrough">>>;
263
+ has_error: z.ZodBoolean;
264
+ created_at: z.ZodString;
265
+ started_at: z.ZodNullable<z.ZodString>;
266
+ completed_at: z.ZodNullable<z.ZodString>;
267
+ circuit_json: z.ZodAny;
268
+ }, "strip", z.ZodTypeAny, {
269
+ error: z.objectOutputType<{
270
+ error_code: z.ZodString;
271
+ message: z.ZodString;
272
+ }, z.ZodTypeAny, "passthrough"> | null;
273
+ created_at: string;
274
+ account_id: string | null;
275
+ order_id: string;
276
+ is_running: boolean;
277
+ is_started: boolean;
278
+ is_finished: boolean;
279
+ has_error: boolean;
280
+ started_at: string | null;
281
+ completed_at: string | null;
282
+ circuit_json?: any;
283
+ }, {
284
+ error: z.objectInputType<{
285
+ error_code: z.ZodString;
286
+ message: z.ZodString;
287
+ }, z.ZodTypeAny, "passthrough"> | null;
288
+ created_at: string;
289
+ account_id: string | null;
290
+ order_id: string;
291
+ is_running: boolean;
292
+ is_started: boolean;
293
+ is_finished: boolean;
294
+ has_error: boolean;
295
+ started_at: string | null;
296
+ completed_at: string | null;
297
+ circuit_json?: any;
298
+ }>;
299
+ type Order = z.infer<typeof orderSchema>;
300
+ declare const orderFileSchema: z.ZodObject<{
301
+ order_file_id: z.ZodString;
302
+ order_id: z.ZodString;
303
+ is_gerbers_zip: z.ZodBoolean;
304
+ content_type: z.ZodString;
305
+ for_provider: z.ZodNullable<z.ZodString>;
306
+ uploaded_at: z.ZodString;
307
+ content_text: z.ZodNullable<z.ZodString>;
308
+ content_bytes: z.ZodNullable<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ order_id: string;
311
+ order_file_id: string;
312
+ is_gerbers_zip: boolean;
313
+ content_type: string;
314
+ for_provider: string | null;
315
+ uploaded_at: string;
316
+ content_text: string | null;
317
+ content_bytes: Uint8Array<ArrayBuffer> | null;
318
+ }, {
319
+ order_id: string;
320
+ order_file_id: string;
321
+ is_gerbers_zip: boolean;
322
+ content_type: string;
323
+ for_provider: string | null;
324
+ uploaded_at: string;
325
+ content_text: string | null;
326
+ content_bytes: Uint8Array<ArrayBuffer> | null;
327
+ }>;
328
+ type OrderFile = z.infer<typeof orderFileSchema>;
329
+ declare const shippingOptionSchema: z.ZodObject<{
330
+ carrier: z.ZodString;
331
+ service: z.ZodString;
332
+ cost: z.ZodNumber;
333
+ }, "strip", z.ZodTypeAny, {
334
+ carrier: string;
335
+ service: string;
336
+ cost: number;
337
+ }, {
338
+ carrier: string;
339
+ service: string;
340
+ cost: number;
341
+ }>;
342
+ type ShippingOption = z.infer<typeof shippingOptionSchema>;
343
+ declare const quotedComponentSchema: z.ZodObject<{
344
+ manufacturer_part_number: z.ZodNullable<z.ZodString>;
345
+ supplier_part_number: z.ZodNullable<z.ZodString>;
346
+ quantity: z.ZodDefault<z.ZodNumber>;
347
+ unit_price: z.ZodDefault<z.ZodNumber>;
348
+ total_price: z.ZodDefault<z.ZodNumber>;
349
+ available: z.ZodDefault<z.ZodBoolean>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ manufacturer_part_number: string | null;
352
+ supplier_part_number: string | null;
353
+ quantity: number;
354
+ unit_price: number;
355
+ total_price: number;
356
+ available: boolean;
357
+ }, {
358
+ manufacturer_part_number: string | null;
359
+ supplier_part_number: string | null;
360
+ quantity?: number | undefined;
361
+ unit_price?: number | undefined;
362
+ total_price?: number | undefined;
363
+ available?: boolean | undefined;
364
+ }>;
365
+ type QuotedComponent = z.infer<typeof quotedComponentSchema>;
366
+ declare const orderQuoteSchema: z.ZodObject<{
367
+ order_quote_id: z.ZodString;
368
+ account_id: z.ZodNullable<z.ZodString>;
369
+ package_release_id: z.ZodNullable<z.ZodString>;
370
+ is_completed: z.ZodDefault<z.ZodBoolean>;
371
+ is_processing: z.ZodDefault<z.ZodBoolean>;
372
+ vendor_name: z.ZodString;
373
+ error: z.ZodNullable<z.ZodObject<{
374
+ error_code: z.ZodString;
375
+ message: z.ZodString;
376
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
377
+ error_code: z.ZodString;
378
+ message: z.ZodString;
379
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
380
+ error_code: z.ZodString;
381
+ message: z.ZodString;
382
+ }, z.ZodTypeAny, "passthrough">>>;
383
+ has_error: z.ZodDefault<z.ZodBoolean>;
384
+ created_at: z.ZodString;
385
+ updated_at: z.ZodString;
386
+ completed_at: z.ZodNullable<z.ZodString>;
387
+ quoted_components: z.ZodNullable<z.ZodArray<z.ZodObject<{
388
+ manufacturer_part_number: z.ZodNullable<z.ZodString>;
389
+ supplier_part_number: z.ZodNullable<z.ZodString>;
390
+ quantity: z.ZodDefault<z.ZodNumber>;
391
+ unit_price: z.ZodDefault<z.ZodNumber>;
392
+ total_price: z.ZodDefault<z.ZodNumber>;
393
+ available: z.ZodDefault<z.ZodBoolean>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ manufacturer_part_number: string | null;
396
+ supplier_part_number: string | null;
397
+ quantity: number;
398
+ unit_price: number;
399
+ total_price: number;
400
+ available: boolean;
401
+ }, {
402
+ manufacturer_part_number: string | null;
403
+ supplier_part_number: string | null;
404
+ quantity?: number | undefined;
405
+ unit_price?: number | undefined;
406
+ total_price?: number | undefined;
407
+ available?: boolean | undefined;
408
+ }>, "many">>;
409
+ bare_pcb_cost: z.ZodDefault<z.ZodNumber>;
410
+ shipping_options: z.ZodArray<z.ZodObject<{
411
+ carrier: z.ZodString;
412
+ service: z.ZodString;
413
+ cost: z.ZodNumber;
414
+ }, "strip", z.ZodTypeAny, {
415
+ carrier: string;
416
+ service: string;
417
+ cost: number;
418
+ }, {
419
+ carrier: string;
420
+ service: string;
421
+ cost: number;
422
+ }>, "many">;
423
+ total_cost: z.ZodDefault<z.ZodNumber>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ error: z.objectOutputType<{
426
+ error_code: z.ZodString;
427
+ message: z.ZodString;
428
+ }, z.ZodTypeAny, "passthrough"> | null;
429
+ package_release_id: string | null;
430
+ created_at: string;
431
+ updated_at: string;
432
+ account_id: string | null;
433
+ has_error: boolean;
434
+ completed_at: string | null;
435
+ order_quote_id: string;
436
+ is_completed: boolean;
437
+ is_processing: boolean;
438
+ vendor_name: string;
439
+ quoted_components: {
440
+ manufacturer_part_number: string | null;
441
+ supplier_part_number: string | null;
442
+ quantity: number;
443
+ unit_price: number;
444
+ total_price: number;
445
+ available: boolean;
446
+ }[] | null;
447
+ bare_pcb_cost: number;
448
+ shipping_options: {
449
+ carrier: string;
450
+ service: string;
451
+ cost: number;
452
+ }[];
453
+ total_cost: number;
454
+ }, {
455
+ error: z.objectInputType<{
456
+ error_code: z.ZodString;
457
+ message: z.ZodString;
458
+ }, z.ZodTypeAny, "passthrough"> | null;
459
+ package_release_id: string | null;
460
+ created_at: string;
461
+ updated_at: string;
462
+ account_id: string | null;
463
+ completed_at: string | null;
464
+ order_quote_id: string;
465
+ vendor_name: string;
466
+ quoted_components: {
467
+ manufacturer_part_number: string | null;
468
+ supplier_part_number: string | null;
469
+ quantity?: number | undefined;
470
+ unit_price?: number | undefined;
471
+ total_price?: number | undefined;
472
+ available?: boolean | undefined;
473
+ }[] | null;
474
+ shipping_options: {
475
+ carrier: string;
476
+ service: string;
477
+ cost: number;
478
+ }[];
479
+ has_error?: boolean | undefined;
480
+ is_completed?: boolean | undefined;
481
+ is_processing?: boolean | undefined;
482
+ bare_pcb_cost?: number | undefined;
483
+ total_cost?: number | undefined;
484
+ }>;
485
+ type OrderQuote = z.infer<typeof orderQuoteSchema>;
486
+ declare const accountSnippetSchema: z.ZodObject<{
487
+ account_id: z.ZodString;
488
+ snippet_id: z.ZodString;
489
+ has_starred: z.ZodBoolean;
490
+ created_at: z.ZodString;
491
+ updated_at: z.ZodString;
492
+ }, "strip", z.ZodTypeAny, {
493
+ snippet_id: string;
494
+ created_at: string;
495
+ updated_at: string;
496
+ account_id: string;
497
+ has_starred: boolean;
498
+ }, {
499
+ snippet_id: string;
500
+ created_at: string;
501
+ updated_at: string;
502
+ account_id: string;
503
+ has_starred: boolean;
504
+ }>;
505
+ type AccountSnippet = z.infer<typeof accountSnippetSchema>;
506
+ declare const accountPackageSchema: z.ZodObject<{
507
+ account_package_id: z.ZodString;
508
+ account_id: z.ZodString;
509
+ package_id: z.ZodString;
510
+ is_starred: z.ZodBoolean;
511
+ created_at: z.ZodString;
512
+ updated_at: z.ZodString;
513
+ }, "strip", z.ZodTypeAny, {
514
+ is_starred: boolean;
515
+ created_at: string;
516
+ updated_at: string;
517
+ account_id: string;
518
+ account_package_id: string;
519
+ package_id: string;
520
+ }, {
521
+ is_starred: boolean;
522
+ created_at: string;
523
+ updated_at: string;
524
+ account_id: string;
525
+ account_package_id: string;
526
+ package_id: string;
527
+ }>;
528
+ type AccountPackage = z.infer<typeof accountPackageSchema>;
529
+ declare const packageReleaseSchema: z.ZodObject<{
530
+ package_release_id: z.ZodString;
531
+ package_id: z.ZodString;
532
+ version: z.ZodNullable<z.ZodString>;
533
+ is_locked: z.ZodBoolean;
534
+ is_latest: z.ZodBoolean;
535
+ created_at: z.ZodString;
536
+ commit_sha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
537
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ package_release_id: string;
540
+ created_at: string;
541
+ version: string | null;
542
+ package_id: string;
543
+ is_locked: boolean;
544
+ is_latest: boolean;
545
+ commit_sha?: string | null | undefined;
546
+ license?: string | null | undefined;
547
+ }, {
548
+ package_release_id: string;
549
+ created_at: string;
550
+ version: string | null;
551
+ package_id: string;
552
+ is_locked: boolean;
553
+ is_latest: boolean;
554
+ commit_sha?: string | null | undefined;
555
+ license?: string | null | undefined;
556
+ }>;
557
+ type PackageRelease = z.infer<typeof packageReleaseSchema>;
558
+ declare const packageFileSchema: z.ZodObject<{
559
+ package_file_id: z.ZodString;
560
+ package_release_id: z.ZodString;
561
+ file_path: z.ZodString;
562
+ content_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
+ created_at: z.ZodString;
564
+ content_mimetype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
565
+ is_release_tarball: z.ZodOptional<z.ZodBoolean>;
566
+ npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
567
+ }, "strip", z.ZodTypeAny, {
568
+ package_release_id: string;
569
+ created_at: string;
570
+ package_file_id: string;
571
+ file_path: string;
572
+ content_text?: string | null | undefined;
573
+ content_mimetype?: string | null | undefined;
574
+ is_release_tarball?: boolean | undefined;
575
+ npm_pack_output?: any;
576
+ }, {
577
+ package_release_id: string;
578
+ created_at: string;
579
+ package_file_id: string;
580
+ file_path: string;
581
+ content_text?: string | null | undefined;
582
+ content_mimetype?: string | null | undefined;
583
+ is_release_tarball?: boolean | undefined;
584
+ npm_pack_output?: any;
585
+ }>;
586
+ type PackageFile = z.infer<typeof packageFileSchema>;
587
+ declare const packageSchema: z.ZodObject<{
588
+ package_id: z.ZodString;
589
+ creator_account_id: z.ZodString;
590
+ owner_org_id: z.ZodString;
591
+ owner_github_username: z.ZodNullable<z.ZodString>;
592
+ name: z.ZodString;
593
+ unscoped_name: z.ZodString;
594
+ description: z.ZodNullable<z.ZodString>;
595
+ created_at: z.ZodString;
596
+ updated_at: z.ZodString;
597
+ is_snippet: z.ZodDefault<z.ZodBoolean>;
598
+ is_board: z.ZodDefault<z.ZodBoolean>;
599
+ is_package: z.ZodDefault<z.ZodBoolean>;
600
+ is_model: z.ZodDefault<z.ZodBoolean>;
601
+ is_footprint: z.ZodDefault<z.ZodBoolean>;
602
+ is_private: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
603
+ is_public: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
604
+ is_unlisted: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
605
+ is_source_from_github: z.ZodDefault<z.ZodBoolean>;
606
+ snippet_type: z.ZodOptional<z.ZodEnum<["board", "package", "model", "footprint"]>>;
607
+ latest_package_release_id: z.ZodNullable<z.ZodString>;
608
+ latest_version: z.ZodNullable<z.ZodString>;
609
+ license: z.ZodNullable<z.ZodString>;
610
+ website: z.ZodDefault<z.ZodNullable<z.ZodString>>;
611
+ star_count: z.ZodDefault<z.ZodNumber>;
612
+ ai_description: z.ZodNullable<z.ZodString>;
613
+ latest_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
614
+ ai_usage_instructions: z.ZodNullable<z.ZodString>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ name: string;
617
+ unscoped_name: string;
618
+ created_at: string;
619
+ updated_at: string;
620
+ description: string | null;
621
+ star_count: number;
622
+ is_private: boolean | null;
623
+ is_public: boolean | null;
624
+ is_unlisted: boolean | null;
625
+ package_id: string;
626
+ license: string | null;
627
+ creator_account_id: string;
628
+ owner_org_id: string;
629
+ owner_github_username: string | null;
630
+ is_snippet: boolean;
631
+ is_board: boolean;
632
+ is_package: boolean;
633
+ is_model: boolean;
634
+ is_footprint: boolean;
635
+ is_source_from_github: boolean;
636
+ latest_package_release_id: string | null;
637
+ latest_version: string | null;
638
+ website: string | null;
639
+ ai_description: string | null;
640
+ ai_usage_instructions: string | null;
641
+ snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
642
+ latest_license?: string | null | undefined;
643
+ }, {
644
+ name: string;
645
+ unscoped_name: string;
646
+ created_at: string;
647
+ updated_at: string;
648
+ description: string | null;
649
+ package_id: string;
650
+ license: string | null;
651
+ creator_account_id: string;
652
+ owner_org_id: string;
653
+ owner_github_username: string | null;
654
+ latest_package_release_id: string | null;
655
+ latest_version: string | null;
656
+ ai_description: string | null;
657
+ ai_usage_instructions: string | null;
658
+ snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
659
+ star_count?: number | undefined;
660
+ is_private?: boolean | null | undefined;
661
+ is_public?: boolean | null | undefined;
662
+ is_unlisted?: boolean | null | undefined;
663
+ is_snippet?: boolean | undefined;
664
+ is_board?: boolean | undefined;
665
+ is_package?: boolean | undefined;
666
+ is_model?: boolean | undefined;
667
+ is_footprint?: boolean | undefined;
668
+ is_source_from_github?: boolean | undefined;
669
+ website?: string | null | undefined;
670
+ latest_license?: string | null | undefined;
671
+ }>;
672
+ type Package = z.infer<typeof packageSchema>;
673
+ declare const jlcpcbOrderStateSchema: z.ZodObject<{
674
+ jlcpcb_order_state_id: z.ZodString;
675
+ order_id: z.ZodString;
676
+ are_gerbers_uploaded: z.ZodDefault<z.ZodBoolean>;
677
+ is_gerber_analyzed: z.ZodDefault<z.ZodBoolean>;
678
+ are_initial_costs_calculated: z.ZodDefault<z.ZodBoolean>;
679
+ is_pcb_added_to_cart: z.ZodDefault<z.ZodBoolean>;
680
+ is_bom_uploaded: z.ZodDefault<z.ZodBoolean>;
681
+ is_pnp_uploaded: z.ZodDefault<z.ZodBoolean>;
682
+ is_bom_pnp_analyzed: z.ZodDefault<z.ZodBoolean>;
683
+ is_bom_parsing_complete: z.ZodDefault<z.ZodBoolean>;
684
+ are_components_available: z.ZodDefault<z.ZodBoolean>;
685
+ is_patch_map_generated: z.ZodDefault<z.ZodBoolean>;
686
+ is_json_merge_file_created: z.ZodDefault<z.ZodBoolean>;
687
+ is_dfm_result_generated: z.ZodDefault<z.ZodBoolean>;
688
+ are_files_downloaded: z.ZodDefault<z.ZodBoolean>;
689
+ are_product_categories_fetched: z.ZodDefault<z.ZodBoolean>;
690
+ are_final_costs_calculated: z.ZodDefault<z.ZodBoolean>;
691
+ is_json_merge_file_updated: z.ZodDefault<z.ZodBoolean>;
692
+ is_added_to_cart: z.ZodDefault<z.ZodBoolean>;
693
+ uploaded_gerber_metadata: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
694
+ gerber_analysis: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
695
+ created_at: z.ZodString;
696
+ are_gerbers_generated: z.ZodDefault<z.ZodBoolean>;
697
+ current_step: z.ZodDefault<z.ZodNullable<z.ZodString>>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ created_at: string;
700
+ order_id: string;
701
+ jlcpcb_order_state_id: string;
702
+ are_gerbers_uploaded: boolean;
703
+ is_gerber_analyzed: boolean;
704
+ are_initial_costs_calculated: boolean;
705
+ is_pcb_added_to_cart: boolean;
706
+ is_bom_uploaded: boolean;
707
+ is_pnp_uploaded: boolean;
708
+ is_bom_pnp_analyzed: boolean;
709
+ is_bom_parsing_complete: boolean;
710
+ are_components_available: boolean;
711
+ is_patch_map_generated: boolean;
712
+ is_json_merge_file_created: boolean;
713
+ is_dfm_result_generated: boolean;
714
+ are_files_downloaded: boolean;
715
+ are_product_categories_fetched: boolean;
716
+ are_final_costs_calculated: boolean;
717
+ is_json_merge_file_updated: boolean;
718
+ is_added_to_cart: boolean;
719
+ are_gerbers_generated: boolean;
720
+ current_step: string | null;
721
+ uploaded_gerber_metadata?: any;
722
+ gerber_analysis?: any;
723
+ }, {
724
+ created_at: string;
725
+ order_id: string;
726
+ jlcpcb_order_state_id: string;
727
+ are_gerbers_uploaded?: boolean | undefined;
728
+ is_gerber_analyzed?: boolean | undefined;
729
+ are_initial_costs_calculated?: boolean | undefined;
730
+ is_pcb_added_to_cart?: boolean | undefined;
731
+ is_bom_uploaded?: boolean | undefined;
732
+ is_pnp_uploaded?: boolean | undefined;
733
+ is_bom_pnp_analyzed?: boolean | undefined;
734
+ is_bom_parsing_complete?: boolean | undefined;
735
+ are_components_available?: boolean | undefined;
736
+ is_patch_map_generated?: boolean | undefined;
737
+ is_json_merge_file_created?: boolean | undefined;
738
+ is_dfm_result_generated?: boolean | undefined;
739
+ are_files_downloaded?: boolean | undefined;
740
+ are_product_categories_fetched?: boolean | undefined;
741
+ are_final_costs_calculated?: boolean | undefined;
742
+ is_json_merge_file_updated?: boolean | undefined;
743
+ is_added_to_cart?: boolean | undefined;
744
+ uploaded_gerber_metadata?: any;
745
+ gerber_analysis?: any;
746
+ are_gerbers_generated?: boolean | undefined;
747
+ current_step?: string | null | undefined;
748
+ }>;
749
+ type JlcpcbOrderState = z.infer<typeof jlcpcbOrderStateSchema>;
750
+ declare const jlcpcbOrderStepRunSchema: z.ZodObject<{
751
+ jlcpcb_order_step_run_id: z.ZodString;
752
+ is_running: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
753
+ step_function_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
754
+ jlcpcb_order_state_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
755
+ error_message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
756
+ created_at: z.ZodString;
757
+ }, "strip", z.ZodTypeAny, {
758
+ created_at: string;
759
+ is_running: boolean | null;
760
+ jlcpcb_order_state_id: string | null;
761
+ jlcpcb_order_step_run_id: string;
762
+ step_function_name: string | null;
763
+ error_message: string | null;
764
+ }, {
765
+ created_at: string;
766
+ jlcpcb_order_step_run_id: string;
767
+ is_running?: boolean | null | undefined;
768
+ jlcpcb_order_state_id?: string | null | undefined;
769
+ step_function_name?: string | null | undefined;
770
+ error_message?: string | null | undefined;
771
+ }>;
772
+ type JlcpcbOrderStepRun = z.infer<typeof jlcpcbOrderStepRunSchema>;
773
+ declare const databaseSchema: z.ZodObject<{
774
+ idCounter: z.ZodDefault<z.ZodNumber>;
775
+ snippets: z.ZodDefault<z.ZodArray<z.ZodObject<{
776
+ snippet_id: z.ZodString;
777
+ package_release_id: z.ZodString;
778
+ name: z.ZodString;
779
+ unscoped_name: z.ZodString;
780
+ owner_name: z.ZodString;
781
+ is_starred: z.ZodDefault<z.ZodBoolean>;
782
+ code: z.ZodString;
783
+ dts: z.ZodOptional<z.ZodString>;
784
+ compiled_js: z.ZodNullable<z.ZodOptional<z.ZodString>>;
785
+ circuit_json: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
786
+ manual_edits_json_content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
787
+ created_at: z.ZodString;
788
+ updated_at: z.ZodString;
789
+ snippet_type: z.ZodEnum<["board", "package", "model", "footprint"]>;
790
+ description: z.ZodOptional<z.ZodString>;
791
+ version: z.ZodDefault<z.ZodString>;
792
+ star_count: z.ZodDefault<z.ZodNumber>;
793
+ is_private: z.ZodDefault<z.ZodBoolean>;
794
+ is_public: z.ZodDefault<z.ZodBoolean>;
795
+ is_unlisted: z.ZodDefault<z.ZodBoolean>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ code: string;
798
+ snippet_id: string;
799
+ package_release_id: string;
800
+ name: string;
801
+ unscoped_name: string;
802
+ owner_name: string;
803
+ is_starred: boolean;
804
+ created_at: string;
805
+ updated_at: string;
806
+ snippet_type: "board" | "package" | "model" | "footprint";
807
+ version: string;
808
+ star_count: number;
809
+ is_private: boolean;
810
+ is_public: boolean;
811
+ is_unlisted: boolean;
812
+ dts?: string | undefined;
813
+ compiled_js?: string | null | undefined;
814
+ circuit_json?: Record<string, any>[] | null | undefined;
815
+ manual_edits_json_content?: string | null | undefined;
816
+ description?: string | undefined;
817
+ }, {
818
+ code: string;
819
+ snippet_id: string;
820
+ package_release_id: string;
821
+ name: string;
822
+ unscoped_name: string;
823
+ owner_name: string;
824
+ created_at: string;
825
+ updated_at: string;
826
+ snippet_type: "board" | "package" | "model" | "footprint";
827
+ is_starred?: boolean | undefined;
828
+ dts?: string | undefined;
829
+ compiled_js?: string | null | undefined;
830
+ circuit_json?: Record<string, any>[] | null | undefined;
831
+ manual_edits_json_content?: string | null | undefined;
832
+ description?: string | undefined;
833
+ version?: string | undefined;
834
+ star_count?: number | undefined;
835
+ is_private?: boolean | undefined;
836
+ is_public?: boolean | undefined;
837
+ is_unlisted?: boolean | undefined;
838
+ }>, "many">>;
839
+ packageReleases: z.ZodDefault<z.ZodArray<z.ZodObject<{
840
+ package_release_id: z.ZodString;
841
+ package_id: z.ZodString;
842
+ version: z.ZodNullable<z.ZodString>;
843
+ is_locked: z.ZodBoolean;
844
+ is_latest: z.ZodBoolean;
845
+ created_at: z.ZodString;
846
+ commit_sha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
847
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ package_release_id: string;
850
+ created_at: string;
851
+ version: string | null;
852
+ package_id: string;
853
+ is_locked: boolean;
854
+ is_latest: boolean;
855
+ commit_sha?: string | null | undefined;
856
+ license?: string | null | undefined;
857
+ }, {
858
+ package_release_id: string;
859
+ created_at: string;
860
+ version: string | null;
861
+ package_id: string;
862
+ is_locked: boolean;
863
+ is_latest: boolean;
864
+ commit_sha?: string | null | undefined;
865
+ license?: string | null | undefined;
866
+ }>, "many">>;
867
+ packageFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
868
+ package_file_id: z.ZodString;
869
+ package_release_id: z.ZodString;
870
+ file_path: z.ZodString;
871
+ content_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
872
+ created_at: z.ZodString;
873
+ content_mimetype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
874
+ is_release_tarball: z.ZodOptional<z.ZodBoolean>;
875
+ npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ package_release_id: string;
878
+ created_at: string;
879
+ package_file_id: string;
880
+ file_path: string;
881
+ content_text?: string | null | undefined;
882
+ content_mimetype?: string | null | undefined;
883
+ is_release_tarball?: boolean | undefined;
884
+ npm_pack_output?: any;
885
+ }, {
886
+ package_release_id: string;
887
+ created_at: string;
888
+ package_file_id: string;
889
+ file_path: string;
890
+ content_text?: string | null | undefined;
891
+ content_mimetype?: string | null | undefined;
892
+ is_release_tarball?: boolean | undefined;
893
+ npm_pack_output?: any;
894
+ }>, "many">>;
895
+ sessions: z.ZodDefault<z.ZodArray<z.ZodObject<{
896
+ session_id: z.ZodString;
897
+ account_id: z.ZodString;
898
+ expires_at: z.ZodString;
899
+ is_cli_session: z.ZodBoolean;
900
+ }, "strip", z.ZodTypeAny, {
901
+ session_id: string;
902
+ account_id: string;
903
+ expires_at: string;
904
+ is_cli_session: boolean;
905
+ }, {
906
+ session_id: string;
907
+ account_id: string;
908
+ expires_at: string;
909
+ is_cli_session: boolean;
910
+ }>, "many">>;
911
+ loginPages: z.ZodDefault<z.ZodArray<z.ZodObject<{
912
+ login_page_id: z.ZodString;
913
+ login_page_auth_token: z.ZodString;
914
+ was_login_successful: z.ZodBoolean;
915
+ has_been_used_to_create_session: z.ZodBoolean;
916
+ created_at: z.ZodString;
917
+ expires_at: z.ZodString;
918
+ }, "strip", z.ZodTypeAny, {
919
+ created_at: string;
920
+ expires_at: string;
921
+ login_page_id: string;
922
+ login_page_auth_token: string;
923
+ was_login_successful: boolean;
924
+ has_been_used_to_create_session: boolean;
925
+ }, {
926
+ created_at: string;
927
+ expires_at: string;
928
+ login_page_id: string;
929
+ login_page_auth_token: string;
930
+ was_login_successful: boolean;
931
+ has_been_used_to_create_session: boolean;
932
+ }>, "many">>;
933
+ accounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
934
+ account_id: z.ZodString;
935
+ github_username: z.ZodString;
936
+ shippingInfo: z.ZodOptional<z.ZodObject<{
937
+ firstName: z.ZodString;
938
+ lastName: z.ZodString;
939
+ companyName: z.ZodOptional<z.ZodString>;
940
+ address: z.ZodString;
941
+ apartment: z.ZodOptional<z.ZodString>;
942
+ city: z.ZodString;
943
+ state: z.ZodString;
944
+ zipCode: z.ZodString;
945
+ country: z.ZodString;
946
+ phone: z.ZodString;
947
+ }, "strip", z.ZodTypeAny, {
948
+ firstName: string;
949
+ lastName: string;
950
+ address: string;
951
+ city: string;
952
+ state: string;
953
+ zipCode: string;
954
+ country: string;
955
+ phone: string;
956
+ companyName?: string | undefined;
957
+ apartment?: string | undefined;
958
+ }, {
959
+ firstName: string;
960
+ lastName: string;
961
+ address: string;
962
+ city: string;
963
+ state: string;
964
+ zipCode: string;
965
+ country: string;
966
+ phone: string;
967
+ companyName?: string | undefined;
968
+ apartment?: string | undefined;
969
+ }>>;
970
+ }, "strip", z.ZodTypeAny, {
971
+ account_id: string;
972
+ github_username: string;
973
+ shippingInfo?: {
974
+ firstName: string;
975
+ lastName: string;
976
+ address: string;
977
+ city: string;
978
+ state: string;
979
+ zipCode: string;
980
+ country: string;
981
+ phone: string;
982
+ companyName?: string | undefined;
983
+ apartment?: string | undefined;
984
+ } | undefined;
985
+ }, {
986
+ account_id: string;
987
+ github_username: string;
988
+ shippingInfo?: {
989
+ firstName: string;
990
+ lastName: string;
991
+ address: string;
992
+ city: string;
993
+ state: string;
994
+ zipCode: string;
995
+ country: string;
996
+ phone: string;
997
+ companyName?: string | undefined;
998
+ apartment?: string | undefined;
999
+ } | undefined;
1000
+ }>, "many">>;
1001
+ packages: z.ZodDefault<z.ZodArray<z.ZodObject<{
1002
+ package_id: z.ZodString;
1003
+ creator_account_id: z.ZodString;
1004
+ owner_org_id: z.ZodString;
1005
+ owner_github_username: z.ZodNullable<z.ZodString>;
1006
+ name: z.ZodString;
1007
+ unscoped_name: z.ZodString;
1008
+ description: z.ZodNullable<z.ZodString>;
1009
+ created_at: z.ZodString;
1010
+ updated_at: z.ZodString;
1011
+ is_snippet: z.ZodDefault<z.ZodBoolean>;
1012
+ is_board: z.ZodDefault<z.ZodBoolean>;
1013
+ is_package: z.ZodDefault<z.ZodBoolean>;
1014
+ is_model: z.ZodDefault<z.ZodBoolean>;
1015
+ is_footprint: z.ZodDefault<z.ZodBoolean>;
1016
+ is_private: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1017
+ is_public: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1018
+ is_unlisted: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1019
+ is_source_from_github: z.ZodDefault<z.ZodBoolean>;
1020
+ snippet_type: z.ZodOptional<z.ZodEnum<["board", "package", "model", "footprint"]>>;
1021
+ latest_package_release_id: z.ZodNullable<z.ZodString>;
1022
+ latest_version: z.ZodNullable<z.ZodString>;
1023
+ license: z.ZodNullable<z.ZodString>;
1024
+ website: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1025
+ star_count: z.ZodDefault<z.ZodNumber>;
1026
+ ai_description: z.ZodNullable<z.ZodString>;
1027
+ latest_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1028
+ ai_usage_instructions: z.ZodNullable<z.ZodString>;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ name: string;
1031
+ unscoped_name: string;
1032
+ created_at: string;
1033
+ updated_at: string;
1034
+ description: string | null;
1035
+ star_count: number;
1036
+ is_private: boolean | null;
1037
+ is_public: boolean | null;
1038
+ is_unlisted: boolean | null;
1039
+ package_id: string;
1040
+ license: string | null;
1041
+ creator_account_id: string;
1042
+ owner_org_id: string;
1043
+ owner_github_username: string | null;
1044
+ is_snippet: boolean;
1045
+ is_board: boolean;
1046
+ is_package: boolean;
1047
+ is_model: boolean;
1048
+ is_footprint: boolean;
1049
+ is_source_from_github: boolean;
1050
+ latest_package_release_id: string | null;
1051
+ latest_version: string | null;
1052
+ website: string | null;
1053
+ ai_description: string | null;
1054
+ ai_usage_instructions: string | null;
1055
+ snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
1056
+ latest_license?: string | null | undefined;
1057
+ }, {
1058
+ name: string;
1059
+ unscoped_name: string;
1060
+ created_at: string;
1061
+ updated_at: string;
1062
+ description: string | null;
1063
+ package_id: string;
1064
+ license: string | null;
1065
+ creator_account_id: string;
1066
+ owner_org_id: string;
1067
+ owner_github_username: string | null;
1068
+ latest_package_release_id: string | null;
1069
+ latest_version: string | null;
1070
+ ai_description: string | null;
1071
+ ai_usage_instructions: string | null;
1072
+ snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
1073
+ star_count?: number | undefined;
1074
+ is_private?: boolean | null | undefined;
1075
+ is_public?: boolean | null | undefined;
1076
+ is_unlisted?: boolean | null | undefined;
1077
+ is_snippet?: boolean | undefined;
1078
+ is_board?: boolean | undefined;
1079
+ is_package?: boolean | undefined;
1080
+ is_model?: boolean | undefined;
1081
+ is_footprint?: boolean | undefined;
1082
+ is_source_from_github?: boolean | undefined;
1083
+ website?: string | null | undefined;
1084
+ latest_license?: string | null | undefined;
1085
+ }>, "many">>;
1086
+ orders: z.ZodDefault<z.ZodArray<z.ZodObject<{
1087
+ order_id: z.ZodString;
1088
+ account_id: z.ZodNullable<z.ZodString>;
1089
+ is_running: z.ZodBoolean;
1090
+ is_started: z.ZodBoolean;
1091
+ is_finished: z.ZodBoolean;
1092
+ error: z.ZodNullable<z.ZodObject<{
1093
+ error_code: z.ZodString;
1094
+ message: z.ZodString;
1095
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1096
+ error_code: z.ZodString;
1097
+ message: z.ZodString;
1098
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1099
+ error_code: z.ZodString;
1100
+ message: z.ZodString;
1101
+ }, z.ZodTypeAny, "passthrough">>>;
1102
+ has_error: z.ZodBoolean;
1103
+ created_at: z.ZodString;
1104
+ started_at: z.ZodNullable<z.ZodString>;
1105
+ completed_at: z.ZodNullable<z.ZodString>;
1106
+ circuit_json: z.ZodAny;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ error: z.objectOutputType<{
1109
+ error_code: z.ZodString;
1110
+ message: z.ZodString;
1111
+ }, z.ZodTypeAny, "passthrough"> | null;
1112
+ created_at: string;
1113
+ account_id: string | null;
1114
+ order_id: string;
1115
+ is_running: boolean;
1116
+ is_started: boolean;
1117
+ is_finished: boolean;
1118
+ has_error: boolean;
1119
+ started_at: string | null;
1120
+ completed_at: string | null;
1121
+ circuit_json?: any;
1122
+ }, {
1123
+ error: z.objectInputType<{
1124
+ error_code: z.ZodString;
1125
+ message: z.ZodString;
1126
+ }, z.ZodTypeAny, "passthrough"> | null;
1127
+ created_at: string;
1128
+ account_id: string | null;
1129
+ order_id: string;
1130
+ is_running: boolean;
1131
+ is_started: boolean;
1132
+ is_finished: boolean;
1133
+ has_error: boolean;
1134
+ started_at: string | null;
1135
+ completed_at: string | null;
1136
+ circuit_json?: any;
1137
+ }>, "many">>;
1138
+ orderFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
1139
+ order_file_id: z.ZodString;
1140
+ order_id: z.ZodString;
1141
+ is_gerbers_zip: z.ZodBoolean;
1142
+ content_type: z.ZodString;
1143
+ for_provider: z.ZodNullable<z.ZodString>;
1144
+ uploaded_at: z.ZodString;
1145
+ content_text: z.ZodNullable<z.ZodString>;
1146
+ content_bytes: z.ZodNullable<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>>;
1147
+ }, "strip", z.ZodTypeAny, {
1148
+ order_id: string;
1149
+ order_file_id: string;
1150
+ is_gerbers_zip: boolean;
1151
+ content_type: string;
1152
+ for_provider: string | null;
1153
+ uploaded_at: string;
1154
+ content_text: string | null;
1155
+ content_bytes: Uint8Array<ArrayBuffer> | null;
1156
+ }, {
1157
+ order_id: string;
1158
+ order_file_id: string;
1159
+ is_gerbers_zip: boolean;
1160
+ content_type: string;
1161
+ for_provider: string | null;
1162
+ uploaded_at: string;
1163
+ content_text: string | null;
1164
+ content_bytes: Uint8Array<ArrayBuffer> | null;
1165
+ }>, "many">>;
1166
+ accountSnippets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1167
+ account_id: z.ZodString;
1168
+ snippet_id: z.ZodString;
1169
+ has_starred: z.ZodBoolean;
1170
+ created_at: z.ZodString;
1171
+ updated_at: z.ZodString;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ snippet_id: string;
1174
+ created_at: string;
1175
+ updated_at: string;
1176
+ account_id: string;
1177
+ has_starred: boolean;
1178
+ }, {
1179
+ snippet_id: string;
1180
+ created_at: string;
1181
+ updated_at: string;
1182
+ account_id: string;
1183
+ has_starred: boolean;
1184
+ }>, "many">>;
1185
+ accountPackages: z.ZodDefault<z.ZodArray<z.ZodObject<{
1186
+ account_package_id: z.ZodString;
1187
+ account_id: z.ZodString;
1188
+ package_id: z.ZodString;
1189
+ is_starred: z.ZodBoolean;
1190
+ created_at: z.ZodString;
1191
+ updated_at: z.ZodString;
1192
+ }, "strip", z.ZodTypeAny, {
1193
+ is_starred: boolean;
1194
+ created_at: string;
1195
+ updated_at: string;
1196
+ account_id: string;
1197
+ account_package_id: string;
1198
+ package_id: string;
1199
+ }, {
1200
+ is_starred: boolean;
1201
+ created_at: string;
1202
+ updated_at: string;
1203
+ account_id: string;
1204
+ account_package_id: string;
1205
+ package_id: string;
1206
+ }>, "many">>;
1207
+ jlcpcbOrderState: z.ZodDefault<z.ZodArray<z.ZodObject<{
1208
+ jlcpcb_order_state_id: z.ZodString;
1209
+ order_id: z.ZodString;
1210
+ are_gerbers_uploaded: z.ZodDefault<z.ZodBoolean>;
1211
+ is_gerber_analyzed: z.ZodDefault<z.ZodBoolean>;
1212
+ are_initial_costs_calculated: z.ZodDefault<z.ZodBoolean>;
1213
+ is_pcb_added_to_cart: z.ZodDefault<z.ZodBoolean>;
1214
+ is_bom_uploaded: z.ZodDefault<z.ZodBoolean>;
1215
+ is_pnp_uploaded: z.ZodDefault<z.ZodBoolean>;
1216
+ is_bom_pnp_analyzed: z.ZodDefault<z.ZodBoolean>;
1217
+ is_bom_parsing_complete: z.ZodDefault<z.ZodBoolean>;
1218
+ are_components_available: z.ZodDefault<z.ZodBoolean>;
1219
+ is_patch_map_generated: z.ZodDefault<z.ZodBoolean>;
1220
+ is_json_merge_file_created: z.ZodDefault<z.ZodBoolean>;
1221
+ is_dfm_result_generated: z.ZodDefault<z.ZodBoolean>;
1222
+ are_files_downloaded: z.ZodDefault<z.ZodBoolean>;
1223
+ are_product_categories_fetched: z.ZodDefault<z.ZodBoolean>;
1224
+ are_final_costs_calculated: z.ZodDefault<z.ZodBoolean>;
1225
+ is_json_merge_file_updated: z.ZodDefault<z.ZodBoolean>;
1226
+ is_added_to_cart: z.ZodDefault<z.ZodBoolean>;
1227
+ uploaded_gerber_metadata: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
1228
+ gerber_analysis: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
1229
+ created_at: z.ZodString;
1230
+ are_gerbers_generated: z.ZodDefault<z.ZodBoolean>;
1231
+ current_step: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ created_at: string;
1234
+ order_id: string;
1235
+ jlcpcb_order_state_id: string;
1236
+ are_gerbers_uploaded: boolean;
1237
+ is_gerber_analyzed: boolean;
1238
+ are_initial_costs_calculated: boolean;
1239
+ is_pcb_added_to_cart: boolean;
1240
+ is_bom_uploaded: boolean;
1241
+ is_pnp_uploaded: boolean;
1242
+ is_bom_pnp_analyzed: boolean;
1243
+ is_bom_parsing_complete: boolean;
1244
+ are_components_available: boolean;
1245
+ is_patch_map_generated: boolean;
1246
+ is_json_merge_file_created: boolean;
1247
+ is_dfm_result_generated: boolean;
1248
+ are_files_downloaded: boolean;
1249
+ are_product_categories_fetched: boolean;
1250
+ are_final_costs_calculated: boolean;
1251
+ is_json_merge_file_updated: boolean;
1252
+ is_added_to_cart: boolean;
1253
+ are_gerbers_generated: boolean;
1254
+ current_step: string | null;
1255
+ uploaded_gerber_metadata?: any;
1256
+ gerber_analysis?: any;
1257
+ }, {
1258
+ created_at: string;
1259
+ order_id: string;
1260
+ jlcpcb_order_state_id: string;
1261
+ are_gerbers_uploaded?: boolean | undefined;
1262
+ is_gerber_analyzed?: boolean | undefined;
1263
+ are_initial_costs_calculated?: boolean | undefined;
1264
+ is_pcb_added_to_cart?: boolean | undefined;
1265
+ is_bom_uploaded?: boolean | undefined;
1266
+ is_pnp_uploaded?: boolean | undefined;
1267
+ is_bom_pnp_analyzed?: boolean | undefined;
1268
+ is_bom_parsing_complete?: boolean | undefined;
1269
+ are_components_available?: boolean | undefined;
1270
+ is_patch_map_generated?: boolean | undefined;
1271
+ is_json_merge_file_created?: boolean | undefined;
1272
+ is_dfm_result_generated?: boolean | undefined;
1273
+ are_files_downloaded?: boolean | undefined;
1274
+ are_product_categories_fetched?: boolean | undefined;
1275
+ are_final_costs_calculated?: boolean | undefined;
1276
+ is_json_merge_file_updated?: boolean | undefined;
1277
+ is_added_to_cart?: boolean | undefined;
1278
+ uploaded_gerber_metadata?: any;
1279
+ gerber_analysis?: any;
1280
+ are_gerbers_generated?: boolean | undefined;
1281
+ current_step?: string | null | undefined;
1282
+ }>, "many">>;
1283
+ jlcpcbOrderStepRuns: z.ZodDefault<z.ZodArray<z.ZodObject<{
1284
+ jlcpcb_order_step_run_id: z.ZodString;
1285
+ is_running: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1286
+ step_function_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1287
+ jlcpcb_order_state_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1288
+ error_message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1289
+ created_at: z.ZodString;
1290
+ }, "strip", z.ZodTypeAny, {
1291
+ created_at: string;
1292
+ is_running: boolean | null;
1293
+ jlcpcb_order_state_id: string | null;
1294
+ jlcpcb_order_step_run_id: string;
1295
+ step_function_name: string | null;
1296
+ error_message: string | null;
1297
+ }, {
1298
+ created_at: string;
1299
+ jlcpcb_order_step_run_id: string;
1300
+ is_running?: boolean | null | undefined;
1301
+ jlcpcb_order_state_id?: string | null | undefined;
1302
+ step_function_name?: string | null | undefined;
1303
+ error_message?: string | null | undefined;
1304
+ }>, "many">>;
1305
+ orderQuotes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1306
+ order_quote_id: z.ZodString;
1307
+ account_id: z.ZodNullable<z.ZodString>;
1308
+ package_release_id: z.ZodNullable<z.ZodString>;
1309
+ is_completed: z.ZodDefault<z.ZodBoolean>;
1310
+ is_processing: z.ZodDefault<z.ZodBoolean>;
1311
+ vendor_name: z.ZodString;
1312
+ error: z.ZodNullable<z.ZodObject<{
1313
+ error_code: z.ZodString;
1314
+ message: z.ZodString;
1315
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1316
+ error_code: z.ZodString;
1317
+ message: z.ZodString;
1318
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1319
+ error_code: z.ZodString;
1320
+ message: z.ZodString;
1321
+ }, z.ZodTypeAny, "passthrough">>>;
1322
+ has_error: z.ZodDefault<z.ZodBoolean>;
1323
+ created_at: z.ZodString;
1324
+ updated_at: z.ZodString;
1325
+ completed_at: z.ZodNullable<z.ZodString>;
1326
+ quoted_components: z.ZodNullable<z.ZodArray<z.ZodObject<{
1327
+ manufacturer_part_number: z.ZodNullable<z.ZodString>;
1328
+ supplier_part_number: z.ZodNullable<z.ZodString>;
1329
+ quantity: z.ZodDefault<z.ZodNumber>;
1330
+ unit_price: z.ZodDefault<z.ZodNumber>;
1331
+ total_price: z.ZodDefault<z.ZodNumber>;
1332
+ available: z.ZodDefault<z.ZodBoolean>;
1333
+ }, "strip", z.ZodTypeAny, {
1334
+ manufacturer_part_number: string | null;
1335
+ supplier_part_number: string | null;
1336
+ quantity: number;
1337
+ unit_price: number;
1338
+ total_price: number;
1339
+ available: boolean;
1340
+ }, {
1341
+ manufacturer_part_number: string | null;
1342
+ supplier_part_number: string | null;
1343
+ quantity?: number | undefined;
1344
+ unit_price?: number | undefined;
1345
+ total_price?: number | undefined;
1346
+ available?: boolean | undefined;
1347
+ }>, "many">>;
1348
+ bare_pcb_cost: z.ZodDefault<z.ZodNumber>;
1349
+ shipping_options: z.ZodArray<z.ZodObject<{
1350
+ carrier: z.ZodString;
1351
+ service: z.ZodString;
1352
+ cost: z.ZodNumber;
1353
+ }, "strip", z.ZodTypeAny, {
1354
+ carrier: string;
1355
+ service: string;
1356
+ cost: number;
1357
+ }, {
1358
+ carrier: string;
1359
+ service: string;
1360
+ cost: number;
1361
+ }>, "many">;
1362
+ total_cost: z.ZodDefault<z.ZodNumber>;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ error: z.objectOutputType<{
1365
+ error_code: z.ZodString;
1366
+ message: z.ZodString;
1367
+ }, z.ZodTypeAny, "passthrough"> | null;
1368
+ package_release_id: string | null;
1369
+ created_at: string;
1370
+ updated_at: string;
1371
+ account_id: string | null;
1372
+ has_error: boolean;
1373
+ completed_at: string | null;
1374
+ order_quote_id: string;
1375
+ is_completed: boolean;
1376
+ is_processing: boolean;
1377
+ vendor_name: string;
1378
+ quoted_components: {
1379
+ manufacturer_part_number: string | null;
1380
+ supplier_part_number: string | null;
1381
+ quantity: number;
1382
+ unit_price: number;
1383
+ total_price: number;
1384
+ available: boolean;
1385
+ }[] | null;
1386
+ bare_pcb_cost: number;
1387
+ shipping_options: {
1388
+ carrier: string;
1389
+ service: string;
1390
+ cost: number;
1391
+ }[];
1392
+ total_cost: number;
1393
+ }, {
1394
+ error: z.objectInputType<{
1395
+ error_code: z.ZodString;
1396
+ message: z.ZodString;
1397
+ }, z.ZodTypeAny, "passthrough"> | null;
1398
+ package_release_id: string | null;
1399
+ created_at: string;
1400
+ updated_at: string;
1401
+ account_id: string | null;
1402
+ completed_at: string | null;
1403
+ order_quote_id: string;
1404
+ vendor_name: string;
1405
+ quoted_components: {
1406
+ manufacturer_part_number: string | null;
1407
+ supplier_part_number: string | null;
1408
+ quantity?: number | undefined;
1409
+ unit_price?: number | undefined;
1410
+ total_price?: number | undefined;
1411
+ available?: boolean | undefined;
1412
+ }[] | null;
1413
+ shipping_options: {
1414
+ carrier: string;
1415
+ service: string;
1416
+ cost: number;
1417
+ }[];
1418
+ has_error?: boolean | undefined;
1419
+ is_completed?: boolean | undefined;
1420
+ is_processing?: boolean | undefined;
1421
+ bare_pcb_cost?: number | undefined;
1422
+ total_cost?: number | undefined;
1423
+ }>, "many">>;
1424
+ }, "strip", z.ZodTypeAny, {
1425
+ idCounter: number;
1426
+ snippets: {
1427
+ code: string;
1428
+ snippet_id: string;
1429
+ package_release_id: string;
1430
+ name: string;
1431
+ unscoped_name: string;
1432
+ owner_name: string;
1433
+ is_starred: boolean;
1434
+ created_at: string;
1435
+ updated_at: string;
1436
+ snippet_type: "board" | "package" | "model" | "footprint";
1437
+ version: string;
1438
+ star_count: number;
1439
+ is_private: boolean;
1440
+ is_public: boolean;
1441
+ is_unlisted: boolean;
1442
+ dts?: string | undefined;
1443
+ compiled_js?: string | null | undefined;
1444
+ circuit_json?: Record<string, any>[] | null | undefined;
1445
+ manual_edits_json_content?: string | null | undefined;
1446
+ description?: string | undefined;
1447
+ }[];
1448
+ packageReleases: {
1449
+ package_release_id: string;
1450
+ created_at: string;
1451
+ version: string | null;
1452
+ package_id: string;
1453
+ is_locked: boolean;
1454
+ is_latest: boolean;
1455
+ commit_sha?: string | null | undefined;
1456
+ license?: string | null | undefined;
1457
+ }[];
1458
+ packageFiles: {
1459
+ package_release_id: string;
1460
+ created_at: string;
1461
+ package_file_id: string;
1462
+ file_path: string;
1463
+ content_text?: string | null | undefined;
1464
+ content_mimetype?: string | null | undefined;
1465
+ is_release_tarball?: boolean | undefined;
1466
+ npm_pack_output?: any;
1467
+ }[];
1468
+ sessions: {
1469
+ session_id: string;
1470
+ account_id: string;
1471
+ expires_at: string;
1472
+ is_cli_session: boolean;
1473
+ }[];
1474
+ loginPages: {
1475
+ created_at: string;
1476
+ expires_at: string;
1477
+ login_page_id: string;
1478
+ login_page_auth_token: string;
1479
+ was_login_successful: boolean;
1480
+ has_been_used_to_create_session: boolean;
1481
+ }[];
1482
+ accounts: {
1483
+ account_id: string;
1484
+ github_username: string;
1485
+ shippingInfo?: {
1486
+ firstName: string;
1487
+ lastName: string;
1488
+ address: string;
1489
+ city: string;
1490
+ state: string;
1491
+ zipCode: string;
1492
+ country: string;
1493
+ phone: string;
1494
+ companyName?: string | undefined;
1495
+ apartment?: string | undefined;
1496
+ } | undefined;
1497
+ }[];
1498
+ packages: {
1499
+ name: string;
1500
+ unscoped_name: string;
1501
+ created_at: string;
1502
+ updated_at: string;
1503
+ description: string | null;
1504
+ star_count: number;
1505
+ is_private: boolean | null;
1506
+ is_public: boolean | null;
1507
+ is_unlisted: boolean | null;
1508
+ package_id: string;
1509
+ license: string | null;
1510
+ creator_account_id: string;
1511
+ owner_org_id: string;
1512
+ owner_github_username: string | null;
1513
+ is_snippet: boolean;
1514
+ is_board: boolean;
1515
+ is_package: boolean;
1516
+ is_model: boolean;
1517
+ is_footprint: boolean;
1518
+ is_source_from_github: boolean;
1519
+ latest_package_release_id: string | null;
1520
+ latest_version: string | null;
1521
+ website: string | null;
1522
+ ai_description: string | null;
1523
+ ai_usage_instructions: string | null;
1524
+ snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
1525
+ latest_license?: string | null | undefined;
1526
+ }[];
1527
+ orders: {
1528
+ error: z.objectOutputType<{
1529
+ error_code: z.ZodString;
1530
+ message: z.ZodString;
1531
+ }, z.ZodTypeAny, "passthrough"> | null;
1532
+ created_at: string;
1533
+ account_id: string | null;
1534
+ order_id: string;
1535
+ is_running: boolean;
1536
+ is_started: boolean;
1537
+ is_finished: boolean;
1538
+ has_error: boolean;
1539
+ started_at: string | null;
1540
+ completed_at: string | null;
1541
+ circuit_json?: any;
1542
+ }[];
1543
+ orderFiles: {
1544
+ order_id: string;
1545
+ order_file_id: string;
1546
+ is_gerbers_zip: boolean;
1547
+ content_type: string;
1548
+ for_provider: string | null;
1549
+ uploaded_at: string;
1550
+ content_text: string | null;
1551
+ content_bytes: Uint8Array<ArrayBuffer> | null;
1552
+ }[];
1553
+ accountSnippets: {
1554
+ snippet_id: string;
1555
+ created_at: string;
1556
+ updated_at: string;
1557
+ account_id: string;
1558
+ has_starred: boolean;
1559
+ }[];
1560
+ accountPackages: {
1561
+ is_starred: boolean;
1562
+ created_at: string;
1563
+ updated_at: string;
1564
+ account_id: string;
1565
+ account_package_id: string;
1566
+ package_id: string;
1567
+ }[];
1568
+ jlcpcbOrderState: {
1569
+ created_at: string;
1570
+ order_id: string;
1571
+ jlcpcb_order_state_id: string;
1572
+ are_gerbers_uploaded: boolean;
1573
+ is_gerber_analyzed: boolean;
1574
+ are_initial_costs_calculated: boolean;
1575
+ is_pcb_added_to_cart: boolean;
1576
+ is_bom_uploaded: boolean;
1577
+ is_pnp_uploaded: boolean;
1578
+ is_bom_pnp_analyzed: boolean;
1579
+ is_bom_parsing_complete: boolean;
1580
+ are_components_available: boolean;
1581
+ is_patch_map_generated: boolean;
1582
+ is_json_merge_file_created: boolean;
1583
+ is_dfm_result_generated: boolean;
1584
+ are_files_downloaded: boolean;
1585
+ are_product_categories_fetched: boolean;
1586
+ are_final_costs_calculated: boolean;
1587
+ is_json_merge_file_updated: boolean;
1588
+ is_added_to_cart: boolean;
1589
+ are_gerbers_generated: boolean;
1590
+ current_step: string | null;
1591
+ uploaded_gerber_metadata?: any;
1592
+ gerber_analysis?: any;
1593
+ }[];
1594
+ jlcpcbOrderStepRuns: {
1595
+ created_at: string;
1596
+ is_running: boolean | null;
1597
+ jlcpcb_order_state_id: string | null;
1598
+ jlcpcb_order_step_run_id: string;
1599
+ step_function_name: string | null;
1600
+ error_message: string | null;
1601
+ }[];
1602
+ orderQuotes: {
1603
+ error: z.objectOutputType<{
1604
+ error_code: z.ZodString;
1605
+ message: z.ZodString;
1606
+ }, z.ZodTypeAny, "passthrough"> | null;
1607
+ package_release_id: string | null;
1608
+ created_at: string;
1609
+ updated_at: string;
1610
+ account_id: string | null;
1611
+ has_error: boolean;
1612
+ completed_at: string | null;
1613
+ order_quote_id: string;
1614
+ is_completed: boolean;
1615
+ is_processing: boolean;
1616
+ vendor_name: string;
1617
+ quoted_components: {
1618
+ manufacturer_part_number: string | null;
1619
+ supplier_part_number: string | null;
1620
+ quantity: number;
1621
+ unit_price: number;
1622
+ total_price: number;
1623
+ available: boolean;
1624
+ }[] | null;
1625
+ bare_pcb_cost: number;
1626
+ shipping_options: {
1627
+ carrier: string;
1628
+ service: string;
1629
+ cost: number;
1630
+ }[];
1631
+ total_cost: number;
1632
+ }[];
1633
+ }, {
1634
+ idCounter?: number | undefined;
1635
+ snippets?: {
1636
+ code: string;
1637
+ snippet_id: string;
1638
+ package_release_id: string;
1639
+ name: string;
1640
+ unscoped_name: string;
1641
+ owner_name: string;
1642
+ created_at: string;
1643
+ updated_at: string;
1644
+ snippet_type: "board" | "package" | "model" | "footprint";
1645
+ is_starred?: boolean | undefined;
1646
+ dts?: string | undefined;
1647
+ compiled_js?: string | null | undefined;
1648
+ circuit_json?: Record<string, any>[] | null | undefined;
1649
+ manual_edits_json_content?: string | null | undefined;
1650
+ description?: string | undefined;
1651
+ version?: string | undefined;
1652
+ star_count?: number | undefined;
1653
+ is_private?: boolean | undefined;
1654
+ is_public?: boolean | undefined;
1655
+ is_unlisted?: boolean | undefined;
1656
+ }[] | undefined;
1657
+ packageReleases?: {
1658
+ package_release_id: string;
1659
+ created_at: string;
1660
+ version: string | null;
1661
+ package_id: string;
1662
+ is_locked: boolean;
1663
+ is_latest: boolean;
1664
+ commit_sha?: string | null | undefined;
1665
+ license?: string | null | undefined;
1666
+ }[] | undefined;
1667
+ packageFiles?: {
1668
+ package_release_id: string;
1669
+ created_at: string;
1670
+ package_file_id: string;
1671
+ file_path: string;
1672
+ content_text?: string | null | undefined;
1673
+ content_mimetype?: string | null | undefined;
1674
+ is_release_tarball?: boolean | undefined;
1675
+ npm_pack_output?: any;
1676
+ }[] | undefined;
1677
+ sessions?: {
1678
+ session_id: string;
1679
+ account_id: string;
1680
+ expires_at: string;
1681
+ is_cli_session: boolean;
1682
+ }[] | undefined;
1683
+ loginPages?: {
1684
+ created_at: string;
1685
+ expires_at: string;
1686
+ login_page_id: string;
1687
+ login_page_auth_token: string;
1688
+ was_login_successful: boolean;
1689
+ has_been_used_to_create_session: boolean;
1690
+ }[] | undefined;
1691
+ accounts?: {
1692
+ account_id: string;
1693
+ github_username: string;
1694
+ shippingInfo?: {
1695
+ firstName: string;
1696
+ lastName: string;
1697
+ address: string;
1698
+ city: string;
1699
+ state: string;
1700
+ zipCode: string;
1701
+ country: string;
1702
+ phone: string;
1703
+ companyName?: string | undefined;
1704
+ apartment?: string | undefined;
1705
+ } | undefined;
1706
+ }[] | undefined;
1707
+ packages?: {
1708
+ name: string;
1709
+ unscoped_name: string;
1710
+ created_at: string;
1711
+ updated_at: string;
1712
+ description: string | null;
1713
+ package_id: string;
1714
+ license: string | null;
1715
+ creator_account_id: string;
1716
+ owner_org_id: string;
1717
+ owner_github_username: string | null;
1718
+ latest_package_release_id: string | null;
1719
+ latest_version: string | null;
1720
+ ai_description: string | null;
1721
+ ai_usage_instructions: string | null;
1722
+ snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
1723
+ star_count?: number | undefined;
1724
+ is_private?: boolean | null | undefined;
1725
+ is_public?: boolean | null | undefined;
1726
+ is_unlisted?: boolean | null | undefined;
1727
+ is_snippet?: boolean | undefined;
1728
+ is_board?: boolean | undefined;
1729
+ is_package?: boolean | undefined;
1730
+ is_model?: boolean | undefined;
1731
+ is_footprint?: boolean | undefined;
1732
+ is_source_from_github?: boolean | undefined;
1733
+ website?: string | null | undefined;
1734
+ latest_license?: string | null | undefined;
1735
+ }[] | undefined;
1736
+ orders?: {
1737
+ error: z.objectInputType<{
1738
+ error_code: z.ZodString;
1739
+ message: z.ZodString;
1740
+ }, z.ZodTypeAny, "passthrough"> | null;
1741
+ created_at: string;
1742
+ account_id: string | null;
1743
+ order_id: string;
1744
+ is_running: boolean;
1745
+ is_started: boolean;
1746
+ is_finished: boolean;
1747
+ has_error: boolean;
1748
+ started_at: string | null;
1749
+ completed_at: string | null;
1750
+ circuit_json?: any;
1751
+ }[] | undefined;
1752
+ orderFiles?: {
1753
+ order_id: string;
1754
+ order_file_id: string;
1755
+ is_gerbers_zip: boolean;
1756
+ content_type: string;
1757
+ for_provider: string | null;
1758
+ uploaded_at: string;
1759
+ content_text: string | null;
1760
+ content_bytes: Uint8Array<ArrayBuffer> | null;
1761
+ }[] | undefined;
1762
+ accountSnippets?: {
1763
+ snippet_id: string;
1764
+ created_at: string;
1765
+ updated_at: string;
1766
+ account_id: string;
1767
+ has_starred: boolean;
1768
+ }[] | undefined;
1769
+ accountPackages?: {
1770
+ is_starred: boolean;
1771
+ created_at: string;
1772
+ updated_at: string;
1773
+ account_id: string;
1774
+ account_package_id: string;
1775
+ package_id: string;
1776
+ }[] | undefined;
1777
+ jlcpcbOrderState?: {
1778
+ created_at: string;
1779
+ order_id: string;
1780
+ jlcpcb_order_state_id: string;
1781
+ are_gerbers_uploaded?: boolean | undefined;
1782
+ is_gerber_analyzed?: boolean | undefined;
1783
+ are_initial_costs_calculated?: boolean | undefined;
1784
+ is_pcb_added_to_cart?: boolean | undefined;
1785
+ is_bom_uploaded?: boolean | undefined;
1786
+ is_pnp_uploaded?: boolean | undefined;
1787
+ is_bom_pnp_analyzed?: boolean | undefined;
1788
+ is_bom_parsing_complete?: boolean | undefined;
1789
+ are_components_available?: boolean | undefined;
1790
+ is_patch_map_generated?: boolean | undefined;
1791
+ is_json_merge_file_created?: boolean | undefined;
1792
+ is_dfm_result_generated?: boolean | undefined;
1793
+ are_files_downloaded?: boolean | undefined;
1794
+ are_product_categories_fetched?: boolean | undefined;
1795
+ are_final_costs_calculated?: boolean | undefined;
1796
+ is_json_merge_file_updated?: boolean | undefined;
1797
+ is_added_to_cart?: boolean | undefined;
1798
+ uploaded_gerber_metadata?: any;
1799
+ gerber_analysis?: any;
1800
+ are_gerbers_generated?: boolean | undefined;
1801
+ current_step?: string | null | undefined;
1802
+ }[] | undefined;
1803
+ jlcpcbOrderStepRuns?: {
1804
+ created_at: string;
1805
+ jlcpcb_order_step_run_id: string;
1806
+ is_running?: boolean | null | undefined;
1807
+ jlcpcb_order_state_id?: string | null | undefined;
1808
+ step_function_name?: string | null | undefined;
1809
+ error_message?: string | null | undefined;
1810
+ }[] | undefined;
1811
+ orderQuotes?: {
1812
+ error: z.objectInputType<{
1813
+ error_code: z.ZodString;
1814
+ message: z.ZodString;
1815
+ }, z.ZodTypeAny, "passthrough"> | null;
1816
+ package_release_id: string | null;
1817
+ created_at: string;
1818
+ updated_at: string;
1819
+ account_id: string | null;
1820
+ completed_at: string | null;
1821
+ order_quote_id: string;
1822
+ vendor_name: string;
1823
+ quoted_components: {
1824
+ manufacturer_part_number: string | null;
1825
+ supplier_part_number: string | null;
1826
+ quantity?: number | undefined;
1827
+ unit_price?: number | undefined;
1828
+ total_price?: number | undefined;
1829
+ available?: boolean | undefined;
1830
+ }[] | null;
1831
+ shipping_options: {
1832
+ carrier: string;
1833
+ service: string;
1834
+ cost: number;
1835
+ }[];
1836
+ has_error?: boolean | undefined;
1837
+ is_completed?: boolean | undefined;
1838
+ is_processing?: boolean | undefined;
1839
+ bare_pcb_cost?: number | undefined;
1840
+ total_cost?: number | undefined;
1841
+ }[] | undefined;
1842
+ }>;
1843
+ type DatabaseSchema = z.infer<typeof databaseSchema>;
1844
+
1845
+ export { type Account, type AccountPackage, type AccountSnippet, type DatabaseSchema, type JlcpcbOrderState, type JlcpcbOrderStepRun, type LoginPage, type Order, type OrderFile, type OrderQuote, type Package, type PackageFile, type PackageRelease, type QuotedComponent, type Session, type ShippingOption, type Snippet, accountPackageSchema, accountSchema, accountSnippetSchema, databaseSchema, errorResponseSchema, errorSchema, jlcpcbOrderStateSchema, jlcpcbOrderStepRunSchema, loginPageSchema, orderFileSchema, orderQuoteSchema, orderSchema, packageFileSchema, packageReleaseSchema, packageSchema, quotedComponentSchema, sessionSchema, shippingInfoSchema, snippetSchema };