@ms-cloudpack/api-server 0.13.3 → 0.13.4

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.
@@ -11,6 +11,7 @@ declare const ZodEnsurePackageBundledInput: z.ZodObject<{
11
11
  outputPath: z.ZodOptional<z.ZodString>;
12
12
  bundlerType: z.ZodOptional<z.ZodString>;
13
13
  disableSourceMaps: z.ZodOptional<z.ZodBoolean>;
14
+ enqueueDependencies: z.ZodOptional<z.ZodBoolean>;
14
15
  shouldRerun: z.ZodOptional<z.ZodBoolean>;
15
16
  shouldWatch: z.ZodOptional<z.ZodBoolean>;
16
17
  shouldForce: z.ZodOptional<z.ZodBoolean>;
@@ -20,6 +21,7 @@ declare const ZodEnsurePackageBundledInput: z.ZodObject<{
20
21
  outputPath?: string | undefined;
21
22
  bundlerType?: string | undefined;
22
23
  disableSourceMaps?: boolean | undefined;
24
+ enqueueDependencies?: boolean | undefined;
23
25
  shouldRerun?: boolean | undefined;
24
26
  shouldWatch?: boolean | undefined;
25
27
  shouldForce?: boolean | undefined;
@@ -29,15 +31,18 @@ declare const ZodEnsurePackageBundledInput: z.ZodObject<{
29
31
  outputPath?: string | undefined;
30
32
  bundlerType?: string | undefined;
31
33
  disableSourceMaps?: boolean | undefined;
34
+ enqueueDependencies?: boolean | undefined;
32
35
  shouldRerun?: boolean | undefined;
33
36
  shouldWatch?: boolean | undefined;
34
37
  shouldForce?: boolean | undefined;
35
38
  }>;
36
39
  type ZodEnsurePackageBundledInput = z.infer<typeof ZodEnsurePackageBundledInput>;
37
- declare const ZodEnsurePackageBundledOutput: z.ZodObject<{
40
+ declare const ZodEnsurePackageBundledOutputResult: z.ZodObject<{
41
+ name: z.ZodString;
42
+ version: z.ZodString;
38
43
  bundlerName: z.ZodOptional<z.ZodString>;
39
44
  inputPath: z.ZodOptional<z.ZodString>;
40
- outputPath: z.ZodOptional<z.ZodString>;
45
+ outputPath: z.ZodString;
41
46
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
42
47
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
48
  hash: z.ZodOptional<z.ZodString>;
@@ -220,10 +225,14 @@ declare const ZodEnsurePackageBundledOutput: z.ZodObject<{
220
225
  }>, "many">>;
221
226
  rawInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
222
227
  rawOutput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
228
+ isExternal: z.ZodBoolean;
223
229
  }, "strip", z.ZodTypeAny, {
230
+ name: string;
231
+ outputPath: string;
232
+ version: string;
233
+ isExternal: boolean;
224
234
  bundlerName?: string | undefined;
225
235
  inputPath?: string | undefined;
226
- outputPath?: string | undefined;
227
236
  entries?: Record<string, string> | undefined;
228
237
  dependencies?: string[] | undefined;
229
238
  hash?: string | undefined;
@@ -271,9 +280,12 @@ declare const ZodEnsurePackageBundledOutput: z.ZodObject<{
271
280
  rawInput?: Record<string, unknown> | undefined;
272
281
  rawOutput?: Record<string, unknown> | undefined;
273
282
  }, {
283
+ name: string;
284
+ outputPath: string;
285
+ version: string;
286
+ isExternal: boolean;
274
287
  bundlerName?: string | undefined;
275
288
  inputPath?: string | undefined;
276
- outputPath?: string | undefined;
277
289
  entries?: Record<string, string> | undefined;
278
290
  dependencies?: string[] | undefined;
279
291
  hash?: string | undefined;
@@ -321,184 +333,1117 @@ declare const ZodEnsurePackageBundledOutput: z.ZodObject<{
321
333
  rawInput?: Record<string, unknown> | undefined;
322
334
  rawOutput?: Record<string, unknown> | undefined;
323
335
  }>;
324
- type ZodEnsurePackageBundledOutput = z.infer<typeof ZodEnsurePackageBundledOutput>;
325
- type EnsurePackageBundledContext = {
326
- bus: DataBus;
327
- taskRunner: TaskRunner;
328
- session: Session;
329
- watcher: Watcher;
330
- packages: PackageDefinitionsCache;
331
- reporter: TaskReporter;
332
- };
333
- /**
334
- * Checks if the package is bundled or needs bundling, and returns the result. For internal packages,
335
- * we also notify the watcher to monitor for code changes.
336
- */
337
- export declare function ensurePackageBundled({ input, ctx, }: {
338
- input: ZodEnsurePackageBundledInput;
339
- ctx: EnsurePackageBundledContext;
340
- }): Promise<ZodEnsurePackageBundledOutput>;
341
- export declare namespace ensurePackageBundled {
342
- var procedure: import("@trpc/server").BuildProcedure<"mutation", {
343
- _config: import("@trpc/server").RootConfig<{
344
- ctx: {
345
- session: Session;
346
- bus: DataBus;
347
- rootSpan: import("@opentelemetry/api").Span | undefined;
348
- reporter: TaskReporter;
349
- watcher: {
350
- watch({ path, watchPaths, }: {
351
- path: string;
352
- watchPaths?: string[] | undefined;
353
- }, onPackageChanged: () => void): () => Promise<void>;
354
- unwatchAll(): Promise<void>;
355
- };
356
- packages: PackageDefinitionsCache;
357
- taskRunner: TaskRunner;
358
- dispose(): Promise<void>;
359
- };
360
- meta: object;
361
- errorShape: import("@trpc/server").DefaultErrorShape;
362
- transformer: import("@trpc/server").DefaultDataTransformer;
363
- }>;
364
- _meta: object;
365
- _ctx_out: {
366
- session: Session;
367
- bus: DataBus;
368
- rootSpan: import("@opentelemetry/api").Span | undefined;
369
- reporter: TaskReporter;
370
- watcher: {
371
- watch({ path, watchPaths, }: {
372
- path: string;
373
- watchPaths?: string[] | undefined;
374
- }, onPackageChanged: () => void): () => Promise<void>;
375
- unwatchAll(): Promise<void>;
376
- };
377
- packages: PackageDefinitionsCache;
378
- taskRunner: TaskRunner;
379
- dispose(): Promise<void>;
380
- };
381
- _input_in: {
382
- name: string;
383
- version: string;
384
- outputPath?: string | undefined;
385
- bundlerType?: string | undefined;
386
- disableSourceMaps?: boolean | undefined;
387
- shouldRerun?: boolean | undefined;
388
- shouldWatch?: boolean | undefined;
389
- shouldForce?: boolean | undefined;
390
- };
391
- _input_out: {
392
- name: string;
393
- version: string;
394
- outputPath?: string | undefined;
395
- bundlerType?: string | undefined;
396
- disableSourceMaps?: boolean | undefined;
397
- shouldRerun?: boolean | undefined;
398
- shouldWatch?: boolean | undefined;
399
- shouldForce?: boolean | undefined;
400
- };
401
- _output_in: {
402
- bundlerName?: string | undefined;
403
- inputPath?: string | undefined;
404
- outputPath?: string | undefined;
405
- entries?: Record<string, string> | undefined;
406
- dependencies?: string[] | undefined;
407
- hash?: string | undefined;
408
- outputFiles?: {
409
- outputPath: string;
410
- entryPoint?: string | undefined;
411
- exports?: string[] | undefined;
336
+ export type ZodEnsurePackageBundledOutputResult = z.infer<typeof ZodEnsurePackageBundledOutputResult>;
337
+ declare const ZodEnsurePackageBundledOutput: z.ZodObject<{
338
+ result: z.ZodObject<{
339
+ name: z.ZodString;
340
+ version: z.ZodString;
341
+ bundlerName: z.ZodOptional<z.ZodString>;
342
+ inputPath: z.ZodOptional<z.ZodString>;
343
+ outputPath: z.ZodString;
344
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
345
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
346
+ hash: z.ZodOptional<z.ZodString>;
347
+ outputFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
348
+ outputPath: z.ZodString;
349
+ entryPoint: z.ZodOptional<z.ZodString>;
350
+ exports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ outputPath: string;
353
+ entryPoint?: string | undefined;
354
+ exports?: string[] | undefined;
355
+ }, {
356
+ outputPath: string;
357
+ entryPoint?: string | undefined;
358
+ exports?: string[] | undefined;
359
+ }>, "many">>;
360
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
361
+ pluginName: z.ZodOptional<z.ZodString>;
362
+ type: z.ZodOptional<z.ZodString>;
363
+ text: z.ZodString;
364
+ location: z.ZodOptional<z.ZodObject<{
365
+ file: z.ZodString;
366
+ line: z.ZodNumber;
367
+ column: z.ZodNumber;
368
+ }, "strip", z.ZodTypeAny, {
369
+ line: number;
370
+ column: number;
371
+ file: string;
372
+ }, {
373
+ line: number;
374
+ column: number;
375
+ file: string;
376
+ }>>;
377
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
378
+ text: z.ZodOptional<z.ZodString>;
379
+ location: z.ZodOptional<z.ZodObject<{
380
+ file: z.ZodString;
381
+ line: z.ZodNumber;
382
+ column: z.ZodNumber;
383
+ }, "strip", z.ZodTypeAny, {
384
+ line: number;
385
+ column: number;
386
+ file: string;
387
+ }, {
388
+ line: number;
389
+ column: number;
390
+ file: string;
391
+ }>>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ text?: string | undefined;
394
+ location?: {
395
+ line: number;
396
+ column: number;
397
+ file: string;
398
+ } | undefined;
399
+ }, {
400
+ text?: string | undefined;
401
+ location?: {
402
+ line: number;
403
+ column: number;
404
+ file: string;
405
+ } | undefined;
406
+ }>, "many">>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ text: string;
409
+ pluginName?: string | undefined;
410
+ type?: string | undefined;
411
+ location?: {
412
+ line: number;
413
+ column: number;
414
+ file: string;
415
+ } | undefined;
416
+ notes?: {
417
+ text?: string | undefined;
418
+ location?: {
419
+ line: number;
420
+ column: number;
421
+ file: string;
422
+ } | undefined;
412
423
  }[] | undefined;
413
- errors?: {
414
- text: string;
415
- pluginName?: string | undefined;
416
- type?: string | undefined;
424
+ }, {
425
+ text: string;
426
+ pluginName?: string | undefined;
427
+ type?: string | undefined;
428
+ location?: {
429
+ line: number;
430
+ column: number;
431
+ file: string;
432
+ } | undefined;
433
+ notes?: {
434
+ text?: string | undefined;
417
435
  location?: {
418
436
  line: number;
419
437
  column: number;
420
438
  file: string;
421
439
  } | undefined;
422
- notes?: {
423
- text?: string | undefined;
424
- location?: {
425
- line: number;
426
- column: number;
427
- file: string;
428
- } | undefined;
429
- }[] | undefined;
430
440
  }[] | undefined;
431
- warnings?: {
432
- text: string;
433
- pluginName?: string | undefined;
434
- type?: string | undefined;
441
+ }>, "many">>;
442
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
+ pluginName: z.ZodOptional<z.ZodString>;
444
+ type: z.ZodOptional<z.ZodString>;
445
+ text: z.ZodString;
446
+ location: z.ZodOptional<z.ZodObject<{
447
+ file: z.ZodString;
448
+ line: z.ZodNumber;
449
+ column: z.ZodNumber;
450
+ }, "strip", z.ZodTypeAny, {
451
+ line: number;
452
+ column: number;
453
+ file: string;
454
+ }, {
455
+ line: number;
456
+ column: number;
457
+ file: string;
458
+ }>>;
459
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
460
+ text: z.ZodOptional<z.ZodString>;
461
+ location: z.ZodOptional<z.ZodObject<{
462
+ file: z.ZodString;
463
+ line: z.ZodNumber;
464
+ column: z.ZodNumber;
465
+ }, "strip", z.ZodTypeAny, {
466
+ line: number;
467
+ column: number;
468
+ file: string;
469
+ }, {
470
+ line: number;
471
+ column: number;
472
+ file: string;
473
+ }>>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ text?: string | undefined;
476
+ location?: {
477
+ line: number;
478
+ column: number;
479
+ file: string;
480
+ } | undefined;
481
+ }, {
482
+ text?: string | undefined;
483
+ location?: {
484
+ line: number;
485
+ column: number;
486
+ file: string;
487
+ } | undefined;
488
+ }>, "many">>;
489
+ }, "strip", z.ZodTypeAny, {
490
+ text: string;
491
+ pluginName?: string | undefined;
492
+ type?: string | undefined;
493
+ location?: {
494
+ line: number;
495
+ column: number;
496
+ file: string;
497
+ } | undefined;
498
+ notes?: {
499
+ text?: string | undefined;
435
500
  location?: {
436
501
  line: number;
437
502
  column: number;
438
503
  file: string;
439
504
  } | undefined;
440
- notes?: {
441
- text?: string | undefined;
442
- location?: {
443
- line: number;
444
- column: number;
445
- file: string;
446
- } | undefined;
447
- }[] | undefined;
448
505
  }[] | undefined;
449
- rawInput?: Record<string, unknown> | undefined;
450
- rawOutput?: Record<string, unknown> | undefined;
451
- };
452
- _output_out: {
453
- bundlerName?: string | undefined;
454
- inputPath?: string | undefined;
455
- outputPath?: string | undefined;
456
- entries?: Record<string, string> | undefined;
457
- dependencies?: string[] | undefined;
458
- hash?: string | undefined;
459
- outputFiles?: {
460
- outputPath: string;
461
- entryPoint?: string | undefined;
462
- exports?: string[] | undefined;
506
+ }, {
507
+ text: string;
508
+ pluginName?: string | undefined;
509
+ type?: string | undefined;
510
+ location?: {
511
+ line: number;
512
+ column: number;
513
+ file: string;
514
+ } | undefined;
515
+ notes?: {
516
+ text?: string | undefined;
517
+ location?: {
518
+ line: number;
519
+ column: number;
520
+ file: string;
521
+ } | undefined;
463
522
  }[] | undefined;
464
- errors?: {
465
- text: string;
466
- pluginName?: string | undefined;
467
- type?: string | undefined;
523
+ }>, "many">>;
524
+ rawInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
525
+ rawOutput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
526
+ isExternal: z.ZodBoolean;
527
+ }, "strip", z.ZodTypeAny, {
528
+ name: string;
529
+ outputPath: string;
530
+ version: string;
531
+ isExternal: boolean;
532
+ bundlerName?: string | undefined;
533
+ inputPath?: string | undefined;
534
+ entries?: Record<string, string> | undefined;
535
+ dependencies?: string[] | undefined;
536
+ hash?: string | undefined;
537
+ outputFiles?: {
538
+ outputPath: string;
539
+ entryPoint?: string | undefined;
540
+ exports?: string[] | undefined;
541
+ }[] | undefined;
542
+ errors?: {
543
+ text: string;
544
+ pluginName?: string | undefined;
545
+ type?: string | undefined;
546
+ location?: {
547
+ line: number;
548
+ column: number;
549
+ file: string;
550
+ } | undefined;
551
+ notes?: {
552
+ text?: string | undefined;
553
+ location?: {
554
+ line: number;
555
+ column: number;
556
+ file: string;
557
+ } | undefined;
558
+ }[] | undefined;
559
+ }[] | undefined;
560
+ warnings?: {
561
+ text: string;
562
+ pluginName?: string | undefined;
563
+ type?: string | undefined;
564
+ location?: {
565
+ line: number;
566
+ column: number;
567
+ file: string;
568
+ } | undefined;
569
+ notes?: {
570
+ text?: string | undefined;
468
571
  location?: {
469
572
  line: number;
470
573
  column: number;
471
574
  file: string;
472
575
  } | undefined;
473
- notes?: {
474
- text?: string | undefined;
475
- location?: {
476
- line: number;
477
- column: number;
478
- file: string;
479
- } | undefined;
480
- }[] | undefined;
481
576
  }[] | undefined;
482
- warnings?: {
483
- text: string;
484
- pluginName?: string | undefined;
485
- type?: string | undefined;
577
+ }[] | undefined;
578
+ rawInput?: Record<string, unknown> | undefined;
579
+ rawOutput?: Record<string, unknown> | undefined;
580
+ }, {
581
+ name: string;
582
+ outputPath: string;
583
+ version: string;
584
+ isExternal: boolean;
585
+ bundlerName?: string | undefined;
586
+ inputPath?: string | undefined;
587
+ entries?: Record<string, string> | undefined;
588
+ dependencies?: string[] | undefined;
589
+ hash?: string | undefined;
590
+ outputFiles?: {
591
+ outputPath: string;
592
+ entryPoint?: string | undefined;
593
+ exports?: string[] | undefined;
594
+ }[] | undefined;
595
+ errors?: {
596
+ text: string;
597
+ pluginName?: string | undefined;
598
+ type?: string | undefined;
599
+ location?: {
600
+ line: number;
601
+ column: number;
602
+ file: string;
603
+ } | undefined;
604
+ notes?: {
605
+ text?: string | undefined;
486
606
  location?: {
487
607
  line: number;
488
608
  column: number;
489
609
  file: string;
490
610
  } | undefined;
491
- notes?: {
492
- text?: string | undefined;
493
- location?: {
494
- line: number;
495
- column: number;
496
- file: string;
497
- } | undefined;
498
- }[] | undefined;
499
611
  }[] | undefined;
500
- rawInput?: Record<string, unknown> | undefined;
501
- rawOutput?: Record<string, unknown> | undefined;
612
+ }[] | undefined;
613
+ warnings?: {
614
+ text: string;
615
+ pluginName?: string | undefined;
616
+ type?: string | undefined;
617
+ location?: {
618
+ line: number;
619
+ column: number;
620
+ file: string;
621
+ } | undefined;
622
+ notes?: {
623
+ text?: string | undefined;
624
+ location?: {
625
+ line: number;
626
+ column: number;
627
+ file: string;
628
+ } | undefined;
629
+ }[] | undefined;
630
+ }[] | undefined;
631
+ rawInput?: Record<string, unknown> | undefined;
632
+ rawOutput?: Record<string, unknown> | undefined;
633
+ }>;
634
+ dependencies: z.ZodPromise<z.ZodArray<z.ZodObject<{
635
+ name: z.ZodString;
636
+ version: z.ZodString;
637
+ bundlerName: z.ZodOptional<z.ZodString>;
638
+ inputPath: z.ZodOptional<z.ZodString>;
639
+ outputPath: z.ZodString;
640
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
641
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
642
+ hash: z.ZodOptional<z.ZodString>;
643
+ outputFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
644
+ outputPath: z.ZodString;
645
+ entryPoint: z.ZodOptional<z.ZodString>;
646
+ exports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ outputPath: string;
649
+ entryPoint?: string | undefined;
650
+ exports?: string[] | undefined;
651
+ }, {
652
+ outputPath: string;
653
+ entryPoint?: string | undefined;
654
+ exports?: string[] | undefined;
655
+ }>, "many">>;
656
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
657
+ pluginName: z.ZodOptional<z.ZodString>;
658
+ type: z.ZodOptional<z.ZodString>;
659
+ text: z.ZodString;
660
+ location: z.ZodOptional<z.ZodObject<{
661
+ file: z.ZodString;
662
+ line: z.ZodNumber;
663
+ column: z.ZodNumber;
664
+ }, "strip", z.ZodTypeAny, {
665
+ line: number;
666
+ column: number;
667
+ file: string;
668
+ }, {
669
+ line: number;
670
+ column: number;
671
+ file: string;
672
+ }>>;
673
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
674
+ text: z.ZodOptional<z.ZodString>;
675
+ location: z.ZodOptional<z.ZodObject<{
676
+ file: z.ZodString;
677
+ line: z.ZodNumber;
678
+ column: z.ZodNumber;
679
+ }, "strip", z.ZodTypeAny, {
680
+ line: number;
681
+ column: number;
682
+ file: string;
683
+ }, {
684
+ line: number;
685
+ column: number;
686
+ file: string;
687
+ }>>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ text?: string | undefined;
690
+ location?: {
691
+ line: number;
692
+ column: number;
693
+ file: string;
694
+ } | undefined;
695
+ }, {
696
+ text?: string | undefined;
697
+ location?: {
698
+ line: number;
699
+ column: number;
700
+ file: string;
701
+ } | undefined;
702
+ }>, "many">>;
703
+ }, "strip", z.ZodTypeAny, {
704
+ text: string;
705
+ pluginName?: string | undefined;
706
+ type?: string | undefined;
707
+ location?: {
708
+ line: number;
709
+ column: number;
710
+ file: string;
711
+ } | undefined;
712
+ notes?: {
713
+ text?: string | undefined;
714
+ location?: {
715
+ line: number;
716
+ column: number;
717
+ file: string;
718
+ } | undefined;
719
+ }[] | undefined;
720
+ }, {
721
+ text: string;
722
+ pluginName?: string | undefined;
723
+ type?: string | undefined;
724
+ location?: {
725
+ line: number;
726
+ column: number;
727
+ file: string;
728
+ } | undefined;
729
+ notes?: {
730
+ text?: string | undefined;
731
+ location?: {
732
+ line: number;
733
+ column: number;
734
+ file: string;
735
+ } | undefined;
736
+ }[] | undefined;
737
+ }>, "many">>;
738
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
739
+ pluginName: z.ZodOptional<z.ZodString>;
740
+ type: z.ZodOptional<z.ZodString>;
741
+ text: z.ZodString;
742
+ location: z.ZodOptional<z.ZodObject<{
743
+ file: z.ZodString;
744
+ line: z.ZodNumber;
745
+ column: z.ZodNumber;
746
+ }, "strip", z.ZodTypeAny, {
747
+ line: number;
748
+ column: number;
749
+ file: string;
750
+ }, {
751
+ line: number;
752
+ column: number;
753
+ file: string;
754
+ }>>;
755
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
756
+ text: z.ZodOptional<z.ZodString>;
757
+ location: z.ZodOptional<z.ZodObject<{
758
+ file: z.ZodString;
759
+ line: z.ZodNumber;
760
+ column: z.ZodNumber;
761
+ }, "strip", z.ZodTypeAny, {
762
+ line: number;
763
+ column: number;
764
+ file: string;
765
+ }, {
766
+ line: number;
767
+ column: number;
768
+ file: string;
769
+ }>>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ text?: string | undefined;
772
+ location?: {
773
+ line: number;
774
+ column: number;
775
+ file: string;
776
+ } | undefined;
777
+ }, {
778
+ text?: string | undefined;
779
+ location?: {
780
+ line: number;
781
+ column: number;
782
+ file: string;
783
+ } | undefined;
784
+ }>, "many">>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ text: string;
787
+ pluginName?: string | undefined;
788
+ type?: string | undefined;
789
+ location?: {
790
+ line: number;
791
+ column: number;
792
+ file: string;
793
+ } | undefined;
794
+ notes?: {
795
+ text?: string | undefined;
796
+ location?: {
797
+ line: number;
798
+ column: number;
799
+ file: string;
800
+ } | undefined;
801
+ }[] | undefined;
802
+ }, {
803
+ text: string;
804
+ pluginName?: string | undefined;
805
+ type?: string | undefined;
806
+ location?: {
807
+ line: number;
808
+ column: number;
809
+ file: string;
810
+ } | undefined;
811
+ notes?: {
812
+ text?: string | undefined;
813
+ location?: {
814
+ line: number;
815
+ column: number;
816
+ file: string;
817
+ } | undefined;
818
+ }[] | undefined;
819
+ }>, "many">>;
820
+ rawInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
821
+ rawOutput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
822
+ isExternal: z.ZodBoolean;
823
+ }, "strip", z.ZodTypeAny, {
824
+ name: string;
825
+ outputPath: string;
826
+ version: string;
827
+ isExternal: boolean;
828
+ bundlerName?: string | undefined;
829
+ inputPath?: string | undefined;
830
+ entries?: Record<string, string> | undefined;
831
+ dependencies?: string[] | undefined;
832
+ hash?: string | undefined;
833
+ outputFiles?: {
834
+ outputPath: string;
835
+ entryPoint?: string | undefined;
836
+ exports?: string[] | undefined;
837
+ }[] | undefined;
838
+ errors?: {
839
+ text: string;
840
+ pluginName?: string | undefined;
841
+ type?: string | undefined;
842
+ location?: {
843
+ line: number;
844
+ column: number;
845
+ file: string;
846
+ } | undefined;
847
+ notes?: {
848
+ text?: string | undefined;
849
+ location?: {
850
+ line: number;
851
+ column: number;
852
+ file: string;
853
+ } | undefined;
854
+ }[] | undefined;
855
+ }[] | undefined;
856
+ warnings?: {
857
+ text: string;
858
+ pluginName?: string | undefined;
859
+ type?: string | undefined;
860
+ location?: {
861
+ line: number;
862
+ column: number;
863
+ file: string;
864
+ } | undefined;
865
+ notes?: {
866
+ text?: string | undefined;
867
+ location?: {
868
+ line: number;
869
+ column: number;
870
+ file: string;
871
+ } | undefined;
872
+ }[] | undefined;
873
+ }[] | undefined;
874
+ rawInput?: Record<string, unknown> | undefined;
875
+ rawOutput?: Record<string, unknown> | undefined;
876
+ }, {
877
+ name: string;
878
+ outputPath: string;
879
+ version: string;
880
+ isExternal: boolean;
881
+ bundlerName?: string | undefined;
882
+ inputPath?: string | undefined;
883
+ entries?: Record<string, string> | undefined;
884
+ dependencies?: string[] | undefined;
885
+ hash?: string | undefined;
886
+ outputFiles?: {
887
+ outputPath: string;
888
+ entryPoint?: string | undefined;
889
+ exports?: string[] | undefined;
890
+ }[] | undefined;
891
+ errors?: {
892
+ text: string;
893
+ pluginName?: string | undefined;
894
+ type?: string | undefined;
895
+ location?: {
896
+ line: number;
897
+ column: number;
898
+ file: string;
899
+ } | undefined;
900
+ notes?: {
901
+ text?: string | undefined;
902
+ location?: {
903
+ line: number;
904
+ column: number;
905
+ file: string;
906
+ } | undefined;
907
+ }[] | undefined;
908
+ }[] | undefined;
909
+ warnings?: {
910
+ text: string;
911
+ pluginName?: string | undefined;
912
+ type?: string | undefined;
913
+ location?: {
914
+ line: number;
915
+ column: number;
916
+ file: string;
917
+ } | undefined;
918
+ notes?: {
919
+ text?: string | undefined;
920
+ location?: {
921
+ line: number;
922
+ column: number;
923
+ file: string;
924
+ } | undefined;
925
+ }[] | undefined;
926
+ }[] | undefined;
927
+ rawInput?: Record<string, unknown> | undefined;
928
+ rawOutput?: Record<string, unknown> | undefined;
929
+ }>, "many">>;
930
+ }, "strip", z.ZodTypeAny, {
931
+ dependencies: Promise<{
932
+ name: string;
933
+ outputPath: string;
934
+ version: string;
935
+ isExternal: boolean;
936
+ bundlerName?: string | undefined;
937
+ inputPath?: string | undefined;
938
+ entries?: Record<string, string> | undefined;
939
+ dependencies?: string[] | undefined;
940
+ hash?: string | undefined;
941
+ outputFiles?: {
942
+ outputPath: string;
943
+ entryPoint?: string | undefined;
944
+ exports?: string[] | undefined;
945
+ }[] | undefined;
946
+ errors?: {
947
+ text: string;
948
+ pluginName?: string | undefined;
949
+ type?: string | undefined;
950
+ location?: {
951
+ line: number;
952
+ column: number;
953
+ file: string;
954
+ } | undefined;
955
+ notes?: {
956
+ text?: string | undefined;
957
+ location?: {
958
+ line: number;
959
+ column: number;
960
+ file: string;
961
+ } | undefined;
962
+ }[] | undefined;
963
+ }[] | undefined;
964
+ warnings?: {
965
+ text: string;
966
+ pluginName?: string | undefined;
967
+ type?: string | undefined;
968
+ location?: {
969
+ line: number;
970
+ column: number;
971
+ file: string;
972
+ } | undefined;
973
+ notes?: {
974
+ text?: string | undefined;
975
+ location?: {
976
+ line: number;
977
+ column: number;
978
+ file: string;
979
+ } | undefined;
980
+ }[] | undefined;
981
+ }[] | undefined;
982
+ rawInput?: Record<string, unknown> | undefined;
983
+ rawOutput?: Record<string, unknown> | undefined;
984
+ }[]>;
985
+ result: {
986
+ name: string;
987
+ outputPath: string;
988
+ version: string;
989
+ isExternal: boolean;
990
+ bundlerName?: string | undefined;
991
+ inputPath?: string | undefined;
992
+ entries?: Record<string, string> | undefined;
993
+ dependencies?: string[] | undefined;
994
+ hash?: string | undefined;
995
+ outputFiles?: {
996
+ outputPath: string;
997
+ entryPoint?: string | undefined;
998
+ exports?: string[] | undefined;
999
+ }[] | undefined;
1000
+ errors?: {
1001
+ text: string;
1002
+ pluginName?: string | undefined;
1003
+ type?: string | undefined;
1004
+ location?: {
1005
+ line: number;
1006
+ column: number;
1007
+ file: string;
1008
+ } | undefined;
1009
+ notes?: {
1010
+ text?: string | undefined;
1011
+ location?: {
1012
+ line: number;
1013
+ column: number;
1014
+ file: string;
1015
+ } | undefined;
1016
+ }[] | undefined;
1017
+ }[] | undefined;
1018
+ warnings?: {
1019
+ text: string;
1020
+ pluginName?: string | undefined;
1021
+ type?: string | undefined;
1022
+ location?: {
1023
+ line: number;
1024
+ column: number;
1025
+ file: string;
1026
+ } | undefined;
1027
+ notes?: {
1028
+ text?: string | undefined;
1029
+ location?: {
1030
+ line: number;
1031
+ column: number;
1032
+ file: string;
1033
+ } | undefined;
1034
+ }[] | undefined;
1035
+ }[] | undefined;
1036
+ rawInput?: Record<string, unknown> | undefined;
1037
+ rawOutput?: Record<string, unknown> | undefined;
1038
+ };
1039
+ }, {
1040
+ dependencies: Promise<{
1041
+ name: string;
1042
+ outputPath: string;
1043
+ version: string;
1044
+ isExternal: boolean;
1045
+ bundlerName?: string | undefined;
1046
+ inputPath?: string | undefined;
1047
+ entries?: Record<string, string> | undefined;
1048
+ dependencies?: string[] | undefined;
1049
+ hash?: string | undefined;
1050
+ outputFiles?: {
1051
+ outputPath: string;
1052
+ entryPoint?: string | undefined;
1053
+ exports?: string[] | undefined;
1054
+ }[] | undefined;
1055
+ errors?: {
1056
+ text: string;
1057
+ pluginName?: string | undefined;
1058
+ type?: string | undefined;
1059
+ location?: {
1060
+ line: number;
1061
+ column: number;
1062
+ file: string;
1063
+ } | undefined;
1064
+ notes?: {
1065
+ text?: string | undefined;
1066
+ location?: {
1067
+ line: number;
1068
+ column: number;
1069
+ file: string;
1070
+ } | undefined;
1071
+ }[] | undefined;
1072
+ }[] | undefined;
1073
+ warnings?: {
1074
+ text: string;
1075
+ pluginName?: string | undefined;
1076
+ type?: string | undefined;
1077
+ location?: {
1078
+ line: number;
1079
+ column: number;
1080
+ file: string;
1081
+ } | undefined;
1082
+ notes?: {
1083
+ text?: string | undefined;
1084
+ location?: {
1085
+ line: number;
1086
+ column: number;
1087
+ file: string;
1088
+ } | undefined;
1089
+ }[] | undefined;
1090
+ }[] | undefined;
1091
+ rawInput?: Record<string, unknown> | undefined;
1092
+ rawOutput?: Record<string, unknown> | undefined;
1093
+ }[]>;
1094
+ result: {
1095
+ name: string;
1096
+ outputPath: string;
1097
+ version: string;
1098
+ isExternal: boolean;
1099
+ bundlerName?: string | undefined;
1100
+ inputPath?: string | undefined;
1101
+ entries?: Record<string, string> | undefined;
1102
+ dependencies?: string[] | undefined;
1103
+ hash?: string | undefined;
1104
+ outputFiles?: {
1105
+ outputPath: string;
1106
+ entryPoint?: string | undefined;
1107
+ exports?: string[] | undefined;
1108
+ }[] | undefined;
1109
+ errors?: {
1110
+ text: string;
1111
+ pluginName?: string | undefined;
1112
+ type?: string | undefined;
1113
+ location?: {
1114
+ line: number;
1115
+ column: number;
1116
+ file: string;
1117
+ } | undefined;
1118
+ notes?: {
1119
+ text?: string | undefined;
1120
+ location?: {
1121
+ line: number;
1122
+ column: number;
1123
+ file: string;
1124
+ } | undefined;
1125
+ }[] | undefined;
1126
+ }[] | undefined;
1127
+ warnings?: {
1128
+ text: string;
1129
+ pluginName?: string | undefined;
1130
+ type?: string | undefined;
1131
+ location?: {
1132
+ line: number;
1133
+ column: number;
1134
+ file: string;
1135
+ } | undefined;
1136
+ notes?: {
1137
+ text?: string | undefined;
1138
+ location?: {
1139
+ line: number;
1140
+ column: number;
1141
+ file: string;
1142
+ } | undefined;
1143
+ }[] | undefined;
1144
+ }[] | undefined;
1145
+ rawInput?: Record<string, unknown> | undefined;
1146
+ rawOutput?: Record<string, unknown> | undefined;
1147
+ };
1148
+ }>;
1149
+ type ZodEnsurePackageBundledOutput = z.infer<typeof ZodEnsurePackageBundledOutput>;
1150
+ type EnsurePackageBundledContext = {
1151
+ bus: DataBus;
1152
+ taskRunner: TaskRunner;
1153
+ session: Session;
1154
+ watcher: Watcher;
1155
+ packages: PackageDefinitionsCache;
1156
+ reporter: TaskReporter;
1157
+ };
1158
+ /**
1159
+ * Checks if the package is bundled or needs bundling, and returns the result. For internal packages,
1160
+ * we also notify the watcher to monitor for code changes.
1161
+ */
1162
+ export declare function ensurePackageBundled({ input, ctx, }: {
1163
+ input: ZodEnsurePackageBundledInput;
1164
+ ctx: EnsurePackageBundledContext;
1165
+ }): Promise<ZodEnsurePackageBundledOutput>;
1166
+ export declare namespace ensurePackageBundled {
1167
+ var procedure: import("@trpc/server").BuildProcedure<"mutation", {
1168
+ _config: import("@trpc/server").RootConfig<{
1169
+ ctx: {
1170
+ session: Session;
1171
+ bus: DataBus;
1172
+ rootSpan: import("@opentelemetry/api").Span | undefined;
1173
+ reporter: TaskReporter;
1174
+ watcher: {
1175
+ watch({ path, watchPaths, }: {
1176
+ path: string;
1177
+ watchPaths?: string[] | undefined;
1178
+ }, onPackageChanged: () => void): () => Promise<void>;
1179
+ unwatchAll(): Promise<void>;
1180
+ };
1181
+ packages: PackageDefinitionsCache;
1182
+ taskRunner: TaskRunner;
1183
+ dispose(): Promise<void>;
1184
+ };
1185
+ meta: object;
1186
+ errorShape: import("@trpc/server").DefaultErrorShape;
1187
+ transformer: import("@trpc/server").DefaultDataTransformer;
1188
+ }>;
1189
+ _meta: object;
1190
+ _ctx_out: {
1191
+ session: Session;
1192
+ bus: DataBus;
1193
+ rootSpan: import("@opentelemetry/api").Span | undefined;
1194
+ reporter: TaskReporter;
1195
+ watcher: {
1196
+ watch({ path, watchPaths, }: {
1197
+ path: string;
1198
+ watchPaths?: string[] | undefined;
1199
+ }, onPackageChanged: () => void): () => Promise<void>;
1200
+ unwatchAll(): Promise<void>;
1201
+ };
1202
+ packages: PackageDefinitionsCache;
1203
+ taskRunner: TaskRunner;
1204
+ dispose(): Promise<void>;
1205
+ };
1206
+ _input_in: {
1207
+ name: string;
1208
+ version: string;
1209
+ outputPath?: string | undefined;
1210
+ bundlerType?: string | undefined;
1211
+ disableSourceMaps?: boolean | undefined;
1212
+ enqueueDependencies?: boolean | undefined;
1213
+ shouldRerun?: boolean | undefined;
1214
+ shouldWatch?: boolean | undefined;
1215
+ shouldForce?: boolean | undefined;
1216
+ };
1217
+ _input_out: {
1218
+ name: string;
1219
+ version: string;
1220
+ outputPath?: string | undefined;
1221
+ bundlerType?: string | undefined;
1222
+ disableSourceMaps?: boolean | undefined;
1223
+ enqueueDependencies?: boolean | undefined;
1224
+ shouldRerun?: boolean | undefined;
1225
+ shouldWatch?: boolean | undefined;
1226
+ shouldForce?: boolean | undefined;
1227
+ };
1228
+ _output_in: {
1229
+ dependencies: Promise<{
1230
+ name: string;
1231
+ outputPath: string;
1232
+ version: string;
1233
+ isExternal: boolean;
1234
+ bundlerName?: string | undefined;
1235
+ inputPath?: string | undefined;
1236
+ entries?: Record<string, string> | undefined;
1237
+ dependencies?: string[] | undefined;
1238
+ hash?: string | undefined;
1239
+ outputFiles?: {
1240
+ outputPath: string;
1241
+ entryPoint?: string | undefined;
1242
+ exports?: string[] | undefined;
1243
+ }[] | undefined;
1244
+ errors?: {
1245
+ text: string;
1246
+ pluginName?: string | undefined;
1247
+ type?: string | undefined;
1248
+ location?: {
1249
+ line: number;
1250
+ column: number;
1251
+ file: string;
1252
+ } | undefined;
1253
+ notes?: {
1254
+ text?: string | undefined;
1255
+ location?: {
1256
+ line: number;
1257
+ column: number;
1258
+ file: string;
1259
+ } | undefined;
1260
+ }[] | undefined;
1261
+ }[] | undefined;
1262
+ warnings?: {
1263
+ text: string;
1264
+ pluginName?: string | undefined;
1265
+ type?: string | undefined;
1266
+ location?: {
1267
+ line: number;
1268
+ column: number;
1269
+ file: string;
1270
+ } | undefined;
1271
+ notes?: {
1272
+ text?: string | undefined;
1273
+ location?: {
1274
+ line: number;
1275
+ column: number;
1276
+ file: string;
1277
+ } | undefined;
1278
+ }[] | undefined;
1279
+ }[] | undefined;
1280
+ rawInput?: Record<string, unknown> | undefined;
1281
+ rawOutput?: Record<string, unknown> | undefined;
1282
+ }[]>;
1283
+ result: {
1284
+ name: string;
1285
+ outputPath: string;
1286
+ version: string;
1287
+ isExternal: boolean;
1288
+ bundlerName?: string | undefined;
1289
+ inputPath?: string | undefined;
1290
+ entries?: Record<string, string> | undefined;
1291
+ dependencies?: string[] | undefined;
1292
+ hash?: string | undefined;
1293
+ outputFiles?: {
1294
+ outputPath: string;
1295
+ entryPoint?: string | undefined;
1296
+ exports?: string[] | undefined;
1297
+ }[] | undefined;
1298
+ errors?: {
1299
+ text: string;
1300
+ pluginName?: string | undefined;
1301
+ type?: string | undefined;
1302
+ location?: {
1303
+ line: number;
1304
+ column: number;
1305
+ file: string;
1306
+ } | undefined;
1307
+ notes?: {
1308
+ text?: string | undefined;
1309
+ location?: {
1310
+ line: number;
1311
+ column: number;
1312
+ file: string;
1313
+ } | undefined;
1314
+ }[] | undefined;
1315
+ }[] | undefined;
1316
+ warnings?: {
1317
+ text: string;
1318
+ pluginName?: string | undefined;
1319
+ type?: string | undefined;
1320
+ location?: {
1321
+ line: number;
1322
+ column: number;
1323
+ file: string;
1324
+ } | undefined;
1325
+ notes?: {
1326
+ text?: string | undefined;
1327
+ location?: {
1328
+ line: number;
1329
+ column: number;
1330
+ file: string;
1331
+ } | undefined;
1332
+ }[] | undefined;
1333
+ }[] | undefined;
1334
+ rawInput?: Record<string, unknown> | undefined;
1335
+ rawOutput?: Record<string, unknown> | undefined;
1336
+ };
1337
+ };
1338
+ _output_out: {
1339
+ dependencies: Promise<{
1340
+ name: string;
1341
+ outputPath: string;
1342
+ version: string;
1343
+ isExternal: boolean;
1344
+ bundlerName?: string | undefined;
1345
+ inputPath?: string | undefined;
1346
+ entries?: Record<string, string> | undefined;
1347
+ dependencies?: string[] | undefined;
1348
+ hash?: string | undefined;
1349
+ outputFiles?: {
1350
+ outputPath: string;
1351
+ entryPoint?: string | undefined;
1352
+ exports?: string[] | undefined;
1353
+ }[] | undefined;
1354
+ errors?: {
1355
+ text: string;
1356
+ pluginName?: string | undefined;
1357
+ type?: string | undefined;
1358
+ location?: {
1359
+ line: number;
1360
+ column: number;
1361
+ file: string;
1362
+ } | undefined;
1363
+ notes?: {
1364
+ text?: string | undefined;
1365
+ location?: {
1366
+ line: number;
1367
+ column: number;
1368
+ file: string;
1369
+ } | undefined;
1370
+ }[] | undefined;
1371
+ }[] | undefined;
1372
+ warnings?: {
1373
+ text: string;
1374
+ pluginName?: string | undefined;
1375
+ type?: string | undefined;
1376
+ location?: {
1377
+ line: number;
1378
+ column: number;
1379
+ file: string;
1380
+ } | undefined;
1381
+ notes?: {
1382
+ text?: string | undefined;
1383
+ location?: {
1384
+ line: number;
1385
+ column: number;
1386
+ file: string;
1387
+ } | undefined;
1388
+ }[] | undefined;
1389
+ }[] | undefined;
1390
+ rawInput?: Record<string, unknown> | undefined;
1391
+ rawOutput?: Record<string, unknown> | undefined;
1392
+ }[]>;
1393
+ result: {
1394
+ name: string;
1395
+ outputPath: string;
1396
+ version: string;
1397
+ isExternal: boolean;
1398
+ bundlerName?: string | undefined;
1399
+ inputPath?: string | undefined;
1400
+ entries?: Record<string, string> | undefined;
1401
+ dependencies?: string[] | undefined;
1402
+ hash?: string | undefined;
1403
+ outputFiles?: {
1404
+ outputPath: string;
1405
+ entryPoint?: string | undefined;
1406
+ exports?: string[] | undefined;
1407
+ }[] | undefined;
1408
+ errors?: {
1409
+ text: string;
1410
+ pluginName?: string | undefined;
1411
+ type?: string | undefined;
1412
+ location?: {
1413
+ line: number;
1414
+ column: number;
1415
+ file: string;
1416
+ } | undefined;
1417
+ notes?: {
1418
+ text?: string | undefined;
1419
+ location?: {
1420
+ line: number;
1421
+ column: number;
1422
+ file: string;
1423
+ } | undefined;
1424
+ }[] | undefined;
1425
+ }[] | undefined;
1426
+ warnings?: {
1427
+ text: string;
1428
+ pluginName?: string | undefined;
1429
+ type?: string | undefined;
1430
+ location?: {
1431
+ line: number;
1432
+ column: number;
1433
+ file: string;
1434
+ } | undefined;
1435
+ notes?: {
1436
+ text?: string | undefined;
1437
+ location?: {
1438
+ line: number;
1439
+ column: number;
1440
+ file: string;
1441
+ } | undefined;
1442
+ }[] | undefined;
1443
+ }[] | undefined;
1444
+ rawInput?: Record<string, unknown> | undefined;
1445
+ rawOutput?: Record<string, unknown> | undefined;
1446
+ };
502
1447
  };
503
1448
  }, unknown>;
504
1449
  }