@conduit-client/model 3.8.0 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/types/v1/index.d.ts +1 -0
  2. package/dist/types/v1/parser/__tests__/test-utils.d.ts +37 -5
  3. package/dist/types/v1/parser/amf/endpoints/amf-operation.d.ts +1 -4042
  4. package/dist/types/v1/parser/swagger/SwaggerAPI.d.ts +50 -0
  5. package/dist/types/v1/parser/swagger/__tests__/parser.spec.d.ts +1 -0
  6. package/dist/types/v1/parser/swagger/__tests__/source-position-map.spec.d.ts +1 -0
  7. package/dist/types/v1/parser/swagger/__tests__/swagger-api-service.spec.d.ts +1 -0
  8. package/dist/types/v1/parser/swagger/__tests__/swagger-extensions.spec.d.ts +1 -0
  9. package/dist/types/v1/parser/swagger/__tests__/swagger-types.spec.d.ts +1 -0
  10. package/dist/types/v1/parser/swagger/__tests__/swagger-utils.spec.d.ts +1 -0
  11. package/dist/types/v1/parser/swagger/__tests__/validation.spec.d.ts +1 -0
  12. package/dist/types/v1/parser/swagger/__tests__/version.spec.d.ts +1 -0
  13. package/dist/types/v1/parser/swagger/endpoints/swagger-endpoint.d.ts +30 -0
  14. package/dist/types/v1/parser/swagger/endpoints/swagger-operation.d.ts +69 -0
  15. package/dist/types/v1/parser/swagger/index.d.ts +4 -0
  16. package/dist/types/v1/parser/swagger/parser.d.ts +19 -0
  17. package/dist/types/v1/parser/swagger/source-position-map.d.ts +71 -0
  18. package/dist/types/v1/parser/swagger/swagger-api-service.d.ts +8 -0
  19. package/dist/types/v1/parser/swagger/swagger-extensions.d.ts +8 -0
  20. package/dist/types/v1/parser/swagger/swagger-utils.d.ts +37 -0
  21. package/dist/types/v1/parser/swagger/types/SwaggerAllOfType.d.ts +22 -0
  22. package/dist/types/v1/parser/swagger/types/SwaggerAnyType.d.ts +7 -0
  23. package/dist/types/v1/parser/swagger/types/SwaggerArrayType.d.ts +9 -0
  24. package/dist/types/v1/parser/swagger/types/SwaggerBaseType.d.ts +24 -0
  25. package/dist/types/v1/parser/swagger/types/SwaggerDiscriminatedObjectType.d.ts +26 -0
  26. package/dist/types/v1/parser/swagger/types/SwaggerEnumType.d.ts +13 -0
  27. package/dist/types/v1/parser/swagger/types/SwaggerNilType.d.ts +7 -0
  28. package/dist/types/v1/parser/swagger/types/SwaggerNotType.d.ts +13 -0
  29. package/dist/types/v1/parser/swagger/types/SwaggerObjectType.d.ts +13 -0
  30. package/dist/types/v1/parser/swagger/types/SwaggerOneOfType.d.ts +16 -0
  31. package/dist/types/v1/parser/swagger/types/SwaggerRefType.d.ts +12 -0
  32. package/dist/types/v1/parser/swagger/types/SwaggerScalarTypes.d.ts +46 -0
  33. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerAnyType.spec.d.ts +1 -0
  34. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerArrayType.spec.d.ts +1 -0
  35. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerBaseType.spec.d.ts +1 -0
  36. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerDiscriminatedObjectType.spec.d.ts +1 -0
  37. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerEnumType.spec.d.ts +1 -0
  38. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerNilType.spec.d.ts +1 -0
  39. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerNotType.spec.d.ts +1 -0
  40. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerObjectType.spec.d.ts +1 -0
  41. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerOneOfType.spec.d.ts +1 -0
  42. package/dist/types/v1/parser/swagger/types/__tests__/SwaggerScalarType.spec.d.ts +1 -0
  43. package/dist/types/v1/parser/swagger/types/factory.d.ts +22 -0
  44. package/dist/types/v1/parser/swagger/types/index.d.ts +21 -0
  45. package/dist/types/v1/parser/swagger/validation.d.ts +11 -0
  46. package/dist/types/v1/parser/swagger/version.d.ts +6 -0
  47. package/dist/types/v1/parser/zod-schemas.d.ts +4206 -0
  48. package/dist/v1/index.js +8023 -111
  49. package/dist/v1/index.js.map +1 -1
  50. package/package.json +5 -3
  51. /package/dist/types/v1/parser/{amf/__tests__/amf-extensions-services.spec.d.ts → __tests__/extensions-services.spec.d.ts} +0 -0
  52. /package/dist/types/v1/parser/{amf/endpoints/__tests__/amf-endpoint.spec.d.ts → __tests__/parser-endpoint.spec.d.ts} +0 -0
  53. /package/dist/types/v1/parser/{amf/endpoints/__tests__/amf-operation.spec.d.ts → __tests__/parser-operation.spec.d.ts} +0 -0
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { CacheStrategy } from '../api';
3
+ import { HttpMethod } from '../api/endpoint';
3
4
  export declare const rootExtensionSchema: z.ZodObject<{
4
5
  onestore: z.ZodObject<{
5
6
  version: z.ZodEffects<z.ZodString, import("@conduit-client/utils").Version, string>;
@@ -443,3 +444,4208 @@ export declare const baseExtensionsSchema: z.ZodObject<{
443
444
  namespace?: string | undefined;
444
445
  };
445
446
  }>;
447
+ export declare const endpointSchema: z.ZodObject<{
448
+ onestore: z.ZodOptional<z.ZodDiscriminatedUnion<"endpoint-type", [z.ZodObject<{
449
+ 'endpoint-type': z.ZodLiteral<"http">;
450
+ }, "strict", z.ZodTypeAny, {
451
+ 'endpoint-type': "http";
452
+ }, {
453
+ 'endpoint-type': "http";
454
+ }>, z.ZodObject<{
455
+ 'endpoint-type': z.ZodLiteral<"aura">;
456
+ config: z.ZodObject<{
457
+ aura: z.ZodObject<{
458
+ controller: z.ZodString;
459
+ }, "strip", z.ZodTypeAny, {
460
+ controller: string;
461
+ }, {
462
+ controller: string;
463
+ }>;
464
+ }, "strip", z.ZodTypeAny, {
465
+ aura: {
466
+ controller: string;
467
+ };
468
+ }, {
469
+ aura: {
470
+ controller: string;
471
+ };
472
+ }>;
473
+ 'network-preference': z.ZodDefault<z.ZodEnum<["aura", "http"]>>;
474
+ }, "strict", z.ZodTypeAny, {
475
+ config: {
476
+ aura: {
477
+ controller: string;
478
+ };
479
+ };
480
+ 'endpoint-type': "aura";
481
+ 'network-preference': "aura" | "http";
482
+ }, {
483
+ config: {
484
+ aura: {
485
+ controller: string;
486
+ };
487
+ };
488
+ 'endpoint-type': "aura";
489
+ 'network-preference'?: "aura" | "http" | undefined;
490
+ }>]>>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ onestore?: {
493
+ 'endpoint-type': "http";
494
+ } | {
495
+ config: {
496
+ aura: {
497
+ controller: string;
498
+ };
499
+ };
500
+ 'endpoint-type': "aura";
501
+ 'network-preference': "aura" | "http";
502
+ } | undefined;
503
+ }, {
504
+ onestore?: {
505
+ 'endpoint-type': "http";
506
+ } | {
507
+ config: {
508
+ aura: {
509
+ controller: string;
510
+ };
511
+ };
512
+ 'endpoint-type': "aura";
513
+ 'network-preference'?: "aura" | "http" | undefined;
514
+ } | undefined;
515
+ }>;
516
+ export declare const partialOperationSchema: z.ZodObject<{
517
+ onestore: z.ZodOptional<z.ZodObject<{
518
+ config: z.ZodOptional<z.ZodObject<{
519
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
520
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
521
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
522
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
523
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
524
+ }, z.ZodTypeAny, "passthrough">>>;
525
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
526
+ config: z.ZodOptional<z.ZodObject<{
527
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
528
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
529
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
530
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
531
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
532
+ }, z.ZodTypeAny, "passthrough">>>;
533
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
534
+ config: z.ZodOptional<z.ZodObject<{
535
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
536
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
537
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
538
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
539
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
540
+ }, z.ZodTypeAny, "passthrough">>>;
541
+ }, z.ZodTypeAny, "passthrough">>>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ onestore?: z.objectOutputType<{
544
+ config: z.ZodOptional<z.ZodObject<{
545
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
546
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
547
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
548
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
549
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
550
+ }, z.ZodTypeAny, "passthrough">>>;
551
+ }, z.ZodTypeAny, "passthrough"> | undefined;
552
+ }, {
553
+ onestore?: z.objectInputType<{
554
+ config: z.ZodOptional<z.ZodObject<{
555
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
556
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
557
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
558
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
559
+ 'operation-type': z.ZodOptional<z.ZodEnum<["query", "mutation", "graphql"]>>;
560
+ }, z.ZodTypeAny, "passthrough">>>;
561
+ }, z.ZodTypeAny, "passthrough"> | undefined;
562
+ }>;
563
+ export declare const cacheInvalidationEntrySchema: z.ZodObject<{
564
+ ref: z.ZodString;
565
+ key: z.ZodRecord<z.ZodString, z.ZodString>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ ref: string;
568
+ key: Record<string, string>;
569
+ }, {
570
+ ref: string;
571
+ key: Record<string, string>;
572
+ }>;
573
+ export declare const cacheInvalidationSchema: z.ZodObject<{
574
+ onestore: z.ZodObject<{
575
+ invalidate: z.ZodArray<z.ZodObject<{
576
+ ref: z.ZodString;
577
+ key: z.ZodRecord<z.ZodString, z.ZodString>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ ref: string;
580
+ key: Record<string, string>;
581
+ }, {
582
+ ref: string;
583
+ key: Record<string, string>;
584
+ }>, "many">;
585
+ }, "strip", z.ZodTypeAny, {
586
+ invalidate: {
587
+ ref: string;
588
+ key: Record<string, string>;
589
+ }[];
590
+ }, {
591
+ invalidate: {
592
+ ref: string;
593
+ key: Record<string, string>;
594
+ }[];
595
+ }>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ onestore: {
598
+ invalidate: {
599
+ ref: string;
600
+ key: Record<string, string>;
601
+ }[];
602
+ };
603
+ }, {
604
+ onestore: {
605
+ invalidate: {
606
+ ref: string;
607
+ key: Record<string, string>;
608
+ }[];
609
+ };
610
+ }>;
611
+ export declare class OperationSchemaBuilder {
612
+ private method;
613
+ private operationId;
614
+ private operationCacheStrategyType;
615
+ constructor(method: HttpMethod, operationId: string | undefined, operationCacheStrategyType: Pick<CacheStrategy, 'type'>);
616
+ buildOperationSchema(): z.ZodObject<{
617
+ onestore: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
618
+ config: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
619
+ 'operation-type': z.ZodDefault<z.ZodEnum<["query", "mutation", "graphql"]>>;
620
+ schema: z.ZodDefault<z.ZodEnum<["flattened", "default"]>>;
621
+ bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
622
+ type: z.ZodDefault<z.ZodEnum<["wire", "imperative", "imperative-legacy", "mutation"]>>;
623
+ identifier: z.ZodDefault<z.ZodString>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
626
+ identifier: string;
627
+ }, {
628
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
629
+ identifier?: string | undefined;
630
+ }>, "many">>;
631
+ exposeRefresh: z.ZodDefault<z.ZodBoolean>;
632
+ 'body-param': z.ZodOptional<z.ZodString>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ bindings: {
635
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
636
+ identifier: string;
637
+ }[];
638
+ 'operation-type': "mutation" | "query" | "graphql";
639
+ schema: "default" | "flattened";
640
+ exposeRefresh: boolean;
641
+ 'body-param'?: string | undefined;
642
+ }, {
643
+ bindings?: {
644
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
645
+ identifier?: string | undefined;
646
+ }[] | undefined;
647
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
648
+ schema?: "default" | "flattened" | undefined;
649
+ exposeRefresh?: boolean | undefined;
650
+ 'body-param'?: string | undefined;
651
+ }>>, {
652
+ bindings: {
653
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
654
+ identifier: string;
655
+ }[];
656
+ 'operation-type': "mutation" | "query" | "graphql";
657
+ schema: "default" | "flattened";
658
+ exposeRefresh: boolean;
659
+ 'body-param'?: string | undefined;
660
+ }, {
661
+ bindings?: {
662
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
663
+ identifier?: string | undefined;
664
+ }[] | undefined;
665
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
666
+ schema?: "default" | "flattened" | undefined;
667
+ exposeRefresh?: boolean | undefined;
668
+ 'body-param'?: string | undefined;
669
+ } | undefined>, {
670
+ bindings: {
671
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
672
+ identifier: string;
673
+ }[];
674
+ 'operation-type': "mutation" | "query" | "graphql";
675
+ schema: "default" | "flattened";
676
+ exposeRefresh: boolean;
677
+ 'body-param'?: string | undefined;
678
+ }, {
679
+ bindings?: {
680
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
681
+ identifier?: string | undefined;
682
+ }[] | undefined;
683
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
684
+ schema?: "default" | "flattened" | undefined;
685
+ exposeRefresh?: boolean | undefined;
686
+ 'body-param'?: string | undefined;
687
+ } | undefined>, {
688
+ bindings: {
689
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
690
+ identifier: string;
691
+ }[];
692
+ 'operation-type': "mutation" | "query" | "graphql";
693
+ schema: "default" | "flattened";
694
+ exposeRefresh: boolean;
695
+ 'body-param'?: string | undefined;
696
+ }, {
697
+ bindings?: {
698
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
699
+ identifier?: string | undefined;
700
+ }[] | undefined;
701
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
702
+ schema?: "default" | "flattened" | undefined;
703
+ exposeRefresh?: boolean | undefined;
704
+ 'body-param'?: string | undefined;
705
+ } | undefined>, {
706
+ bindings: {
707
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
708
+ identifier: string;
709
+ }[];
710
+ 'operation-type': "mutation" | "query" | "graphql";
711
+ schema: "default" | "flattened";
712
+ exposeRefresh: boolean;
713
+ 'body-param'?: string | undefined;
714
+ }, {
715
+ bindings?: {
716
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
717
+ identifier?: string | undefined;
718
+ }[] | undefined;
719
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
720
+ schema?: "default" | "flattened" | undefined;
721
+ exposeRefresh?: boolean | undefined;
722
+ 'body-param'?: string | undefined;
723
+ } | undefined>, {
724
+ bindings: {
725
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
726
+ identifier: string;
727
+ }[];
728
+ 'operation-type': "mutation" | "query" | "graphql";
729
+ schema: "default" | "flattened";
730
+ exposeRefresh: boolean;
731
+ 'body-param'?: string | undefined;
732
+ }, {
733
+ bindings?: {
734
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
735
+ identifier?: string | undefined;
736
+ }[] | undefined;
737
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
738
+ schema?: "default" | "flattened" | undefined;
739
+ exposeRefresh?: boolean | undefined;
740
+ 'body-param'?: string | undefined;
741
+ } | undefined>, {
742
+ bindings: {
743
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
744
+ identifier: string;
745
+ }[];
746
+ 'operation-type': "mutation" | "query" | "graphql";
747
+ schema: "default" | "flattened";
748
+ exposeRefresh: boolean;
749
+ 'body-param'?: string | undefined;
750
+ }, {
751
+ bindings?: {
752
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
753
+ identifier?: string | undefined;
754
+ }[] | undefined;
755
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
756
+ schema?: "default" | "flattened" | undefined;
757
+ exposeRefresh?: boolean | undefined;
758
+ 'body-param'?: string | undefined;
759
+ } | undefined>, {
760
+ bindings: {
761
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
762
+ identifier: string;
763
+ }[];
764
+ 'operation-type': "mutation" | "query" | "graphql";
765
+ schema: "default" | "flattened";
766
+ exposeRefresh: boolean;
767
+ 'body-param'?: string | undefined;
768
+ }, {
769
+ bindings?: {
770
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
771
+ identifier?: string | undefined;
772
+ }[] | undefined;
773
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
774
+ schema?: "default" | "flattened" | undefined;
775
+ exposeRefresh?: boolean | undefined;
776
+ 'body-param'?: string | undefined;
777
+ } | undefined>, {
778
+ bindings: {
779
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
780
+ identifier: string;
781
+ }[];
782
+ 'operation-type': "mutation" | "query" | "graphql";
783
+ schema: "default" | "flattened";
784
+ exposeRefresh: boolean;
785
+ 'body-param'?: string | undefined;
786
+ }, {
787
+ bindings?: {
788
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
789
+ identifier?: string | undefined;
790
+ }[] | undefined;
791
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
792
+ schema?: "default" | "flattened" | undefined;
793
+ exposeRefresh?: boolean | undefined;
794
+ 'body-param'?: string | undefined;
795
+ } | undefined>;
796
+ 'cache-strategy': z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
797
+ type: z.ZodLiteral<"none">;
798
+ }, "strict", z.ZodTypeAny, {
799
+ type: "none";
800
+ }, {
801
+ type: "none";
802
+ }>, z.ZodObject<{
803
+ type: z.ZodLiteral<"resource">;
804
+ config: z.ZodObject<{
805
+ 'max-age': z.ZodNumber;
806
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
807
+ }, "strict", z.ZodTypeAny, {
808
+ 'max-age': number;
809
+ 'stale-while-revalidate'?: number | undefined;
810
+ }, {
811
+ 'max-age': number;
812
+ 'stale-while-revalidate'?: number | undefined;
813
+ }>;
814
+ }, "strict", z.ZodTypeAny, {
815
+ type: "resource";
816
+ config: {
817
+ 'max-age': number;
818
+ 'stale-while-revalidate'?: number | undefined;
819
+ };
820
+ }, {
821
+ type: "resource";
822
+ config: {
823
+ 'max-age': number;
824
+ 'stale-while-revalidate'?: number | undefined;
825
+ };
826
+ }>, z.ZodObject<{
827
+ type: z.ZodLiteral<"normalized">;
828
+ 'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
829
+ type: z.ZodLiteral<"max-age">;
830
+ 'max-age': z.ZodNumber;
831
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
832
+ }, "strict", z.ZodTypeAny, {
833
+ 'max-age': number;
834
+ type: "max-age";
835
+ 'stale-while-revalidate'?: number | undefined;
836
+ }, {
837
+ 'max-age': number;
838
+ type: "max-age";
839
+ 'stale-while-revalidate'?: number | undefined;
840
+ }>, z.ZodObject<{
841
+ type: z.ZodLiteral<"no-cache">;
842
+ }, "strip", z.ZodTypeAny, {
843
+ type: "no-cache";
844
+ }, {
845
+ type: "no-cache";
846
+ }>]>>;
847
+ key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
848
+ }, "strict", z.ZodTypeAny, {
849
+ type: "normalized";
850
+ key?: Record<string, string> | undefined;
851
+ 'cache-control'?: {
852
+ 'max-age': number;
853
+ type: "max-age";
854
+ 'stale-while-revalidate'?: number | undefined;
855
+ } | {
856
+ type: "no-cache";
857
+ } | undefined;
858
+ }, {
859
+ type: "normalized";
860
+ key?: Record<string, string> | undefined;
861
+ 'cache-control'?: {
862
+ 'max-age': number;
863
+ type: "max-age";
864
+ 'stale-while-revalidate'?: number | undefined;
865
+ } | {
866
+ type: "no-cache";
867
+ } | undefined;
868
+ }>]>, {
869
+ type: "none";
870
+ } | {
871
+ type: "resource";
872
+ config: {
873
+ 'max-age': number;
874
+ 'stale-while-revalidate'?: number | undefined;
875
+ };
876
+ } | {
877
+ type: "normalized";
878
+ key?: Record<string, string> | undefined;
879
+ 'cache-control'?: {
880
+ 'max-age': number;
881
+ type: "max-age";
882
+ 'stale-while-revalidate'?: number | undefined;
883
+ } | {
884
+ type: "no-cache";
885
+ } | undefined;
886
+ }, unknown>;
887
+ 'error-strategy': z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
888
+ type: z.ZodLiteral<"stringified">;
889
+ }, "strict", z.ZodTypeAny, {
890
+ type: "stringified";
891
+ }, {
892
+ type: "stringified";
893
+ }>, z.ZodObject<{
894
+ type: z.ZodLiteral<"fetchResponse">;
895
+ }, "strict", z.ZodTypeAny, {
896
+ type: "fetchResponse";
897
+ }, {
898
+ type: "fetchResponse";
899
+ }>]>>;
900
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
901
+ ref: z.ZodString;
902
+ }, "strict", z.ZodTypeAny, {
903
+ ref: string;
904
+ }, {
905
+ ref: string;
906
+ }>, z.ZodEffects<z.ZodObject<{
907
+ version: z.ZodString;
908
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
909
+ optional: z.ZodOptional<z.ZodBoolean>;
910
+ }, "strict", z.ZodTypeAny, {
911
+ version: string;
912
+ tags?: Record<string, string> | undefined;
913
+ optional?: boolean | undefined;
914
+ }, {
915
+ version: string;
916
+ tags?: Record<string, string> | undefined;
917
+ optional?: boolean | undefined;
918
+ }>, {
919
+ version: string;
920
+ tags?: Record<string, string> | undefined;
921
+ optional?: boolean | undefined;
922
+ }, {
923
+ version: string;
924
+ tags?: Record<string, string> | undefined;
925
+ optional?: boolean | undefined;
926
+ }>]>>>;
927
+ }, "strict", z.ZodTypeAny, {
928
+ config: {
929
+ bindings: {
930
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
931
+ identifier: string;
932
+ }[];
933
+ 'operation-type': "mutation" | "query" | "graphql";
934
+ schema: "default" | "flattened";
935
+ exposeRefresh: boolean;
936
+ 'body-param'?: string | undefined;
937
+ };
938
+ 'cache-strategy': {
939
+ type: "none";
940
+ } | {
941
+ type: "resource";
942
+ config: {
943
+ 'max-age': number;
944
+ 'stale-while-revalidate'?: number | undefined;
945
+ };
946
+ } | {
947
+ type: "normalized";
948
+ key?: Record<string, string> | undefined;
949
+ 'cache-control'?: {
950
+ 'max-age': number;
951
+ type: "max-age";
952
+ 'stale-while-revalidate'?: number | undefined;
953
+ } | {
954
+ type: "no-cache";
955
+ } | undefined;
956
+ };
957
+ 'error-strategy': {
958
+ type: "stringified";
959
+ } | {
960
+ type: "fetchResponse";
961
+ };
962
+ services?: Record<string, {
963
+ ref: string;
964
+ } | {
965
+ version: string;
966
+ tags?: Record<string, string> | undefined;
967
+ optional?: boolean | undefined;
968
+ }> | undefined;
969
+ }, {
970
+ services?: Record<string, {
971
+ ref: string;
972
+ } | {
973
+ version: string;
974
+ tags?: Record<string, string> | undefined;
975
+ optional?: boolean | undefined;
976
+ }> | undefined;
977
+ config?: {
978
+ bindings?: {
979
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
980
+ identifier?: string | undefined;
981
+ }[] | undefined;
982
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
983
+ schema?: "default" | "flattened" | undefined;
984
+ exposeRefresh?: boolean | undefined;
985
+ 'body-param'?: string | undefined;
986
+ } | undefined;
987
+ 'cache-strategy'?: unknown;
988
+ 'error-strategy'?: {
989
+ type: "stringified";
990
+ } | {
991
+ type: "fetchResponse";
992
+ } | undefined;
993
+ }>>, {
994
+ config: {
995
+ bindings: {
996
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
997
+ identifier: string;
998
+ }[];
999
+ 'operation-type': "mutation" | "query" | "graphql";
1000
+ schema: "default" | "flattened";
1001
+ exposeRefresh: boolean;
1002
+ 'body-param'?: string | undefined;
1003
+ };
1004
+ 'cache-strategy': {
1005
+ type: "none";
1006
+ } | {
1007
+ type: "resource";
1008
+ config: {
1009
+ 'max-age': number;
1010
+ 'stale-while-revalidate'?: number | undefined;
1011
+ };
1012
+ } | {
1013
+ type: "normalized";
1014
+ key?: Record<string, string> | undefined;
1015
+ 'cache-control'?: {
1016
+ 'max-age': number;
1017
+ type: "max-age";
1018
+ 'stale-while-revalidate'?: number | undefined;
1019
+ } | {
1020
+ type: "no-cache";
1021
+ } | undefined;
1022
+ };
1023
+ 'error-strategy': {
1024
+ type: "stringified";
1025
+ } | {
1026
+ type: "fetchResponse";
1027
+ };
1028
+ services?: Record<string, {
1029
+ ref: string;
1030
+ } | {
1031
+ version: string;
1032
+ tags?: Record<string, string> | undefined;
1033
+ optional?: boolean | undefined;
1034
+ }> | undefined;
1035
+ }, {
1036
+ services?: Record<string, {
1037
+ ref: string;
1038
+ } | {
1039
+ version: string;
1040
+ tags?: Record<string, string> | undefined;
1041
+ optional?: boolean | undefined;
1042
+ }> | undefined;
1043
+ config?: {
1044
+ bindings?: {
1045
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1046
+ identifier?: string | undefined;
1047
+ }[] | undefined;
1048
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1049
+ schema?: "default" | "flattened" | undefined;
1050
+ exposeRefresh?: boolean | undefined;
1051
+ 'body-param'?: string | undefined;
1052
+ } | undefined;
1053
+ 'cache-strategy'?: unknown;
1054
+ 'error-strategy'?: {
1055
+ type: "stringified";
1056
+ } | {
1057
+ type: "fetchResponse";
1058
+ } | undefined;
1059
+ } | undefined>, {
1060
+ config: {
1061
+ bindings: {
1062
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1063
+ identifier: string;
1064
+ }[];
1065
+ 'operation-type': "mutation" | "query" | "graphql";
1066
+ schema: "default" | "flattened";
1067
+ exposeRefresh: boolean;
1068
+ 'body-param'?: string | undefined;
1069
+ };
1070
+ 'cache-strategy': {
1071
+ type: "none";
1072
+ } | {
1073
+ type: "resource";
1074
+ config: {
1075
+ 'max-age': number;
1076
+ 'stale-while-revalidate'?: number | undefined;
1077
+ };
1078
+ } | {
1079
+ type: "normalized";
1080
+ key?: Record<string, string> | undefined;
1081
+ 'cache-control'?: {
1082
+ 'max-age': number;
1083
+ type: "max-age";
1084
+ 'stale-while-revalidate'?: number | undefined;
1085
+ } | {
1086
+ type: "no-cache";
1087
+ } | undefined;
1088
+ };
1089
+ 'error-strategy': {
1090
+ type: "stringified";
1091
+ } | {
1092
+ type: "fetchResponse";
1093
+ };
1094
+ services?: Record<string, {
1095
+ ref: string;
1096
+ } | {
1097
+ version: string;
1098
+ tags?: Record<string, string> | undefined;
1099
+ optional?: boolean | undefined;
1100
+ }> | undefined;
1101
+ }, {
1102
+ services?: Record<string, {
1103
+ ref: string;
1104
+ } | {
1105
+ version: string;
1106
+ tags?: Record<string, string> | undefined;
1107
+ optional?: boolean | undefined;
1108
+ }> | undefined;
1109
+ config?: {
1110
+ bindings?: {
1111
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1112
+ identifier?: string | undefined;
1113
+ }[] | undefined;
1114
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1115
+ schema?: "default" | "flattened" | undefined;
1116
+ exposeRefresh?: boolean | undefined;
1117
+ 'body-param'?: string | undefined;
1118
+ } | undefined;
1119
+ 'cache-strategy'?: unknown;
1120
+ 'error-strategy'?: {
1121
+ type: "stringified";
1122
+ } | {
1123
+ type: "fetchResponse";
1124
+ } | undefined;
1125
+ } | undefined>, {
1126
+ config: {
1127
+ bindings: {
1128
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1129
+ identifier: string;
1130
+ }[];
1131
+ 'operation-type': "mutation" | "query" | "graphql";
1132
+ schema: "default" | "flattened";
1133
+ exposeRefresh: boolean;
1134
+ 'body-param'?: string | undefined;
1135
+ };
1136
+ 'cache-strategy': {
1137
+ type: "none";
1138
+ } | {
1139
+ type: "resource";
1140
+ config: {
1141
+ 'max-age': number;
1142
+ 'stale-while-revalidate'?: number | undefined;
1143
+ };
1144
+ } | {
1145
+ type: "normalized";
1146
+ key?: Record<string, string> | undefined;
1147
+ 'cache-control'?: {
1148
+ 'max-age': number;
1149
+ type: "max-age";
1150
+ 'stale-while-revalidate'?: number | undefined;
1151
+ } | {
1152
+ type: "no-cache";
1153
+ } | undefined;
1154
+ };
1155
+ 'error-strategy': {
1156
+ type: "stringified";
1157
+ } | {
1158
+ type: "fetchResponse";
1159
+ };
1160
+ services?: Record<string, {
1161
+ ref: string;
1162
+ } | {
1163
+ version: string;
1164
+ tags?: Record<string, string> | undefined;
1165
+ optional?: boolean | undefined;
1166
+ }> | undefined;
1167
+ }, {
1168
+ services?: Record<string, {
1169
+ ref: string;
1170
+ } | {
1171
+ version: string;
1172
+ tags?: Record<string, string> | undefined;
1173
+ optional?: boolean | undefined;
1174
+ }> | undefined;
1175
+ config?: {
1176
+ bindings?: {
1177
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1178
+ identifier?: string | undefined;
1179
+ }[] | undefined;
1180
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1181
+ schema?: "default" | "flattened" | undefined;
1182
+ exposeRefresh?: boolean | undefined;
1183
+ 'body-param'?: string | undefined;
1184
+ } | undefined;
1185
+ 'cache-strategy'?: unknown;
1186
+ 'error-strategy'?: {
1187
+ type: "stringified";
1188
+ } | {
1189
+ type: "fetchResponse";
1190
+ } | undefined;
1191
+ } | undefined>, {
1192
+ config: {
1193
+ bindings: {
1194
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1195
+ identifier: string;
1196
+ }[];
1197
+ 'operation-type': "mutation" | "query" | "graphql";
1198
+ schema: "default" | "flattened";
1199
+ exposeRefresh: boolean;
1200
+ 'body-param'?: string | undefined;
1201
+ };
1202
+ 'cache-strategy': {
1203
+ type: "none";
1204
+ } | {
1205
+ type: "resource";
1206
+ config: {
1207
+ 'max-age': number;
1208
+ 'stale-while-revalidate'?: number | undefined;
1209
+ };
1210
+ } | {
1211
+ type: "normalized";
1212
+ key?: Record<string, string> | undefined;
1213
+ 'cache-control'?: {
1214
+ 'max-age': number;
1215
+ type: "max-age";
1216
+ 'stale-while-revalidate'?: number | undefined;
1217
+ } | {
1218
+ type: "no-cache";
1219
+ } | undefined;
1220
+ };
1221
+ 'error-strategy': {
1222
+ type: "stringified";
1223
+ } | {
1224
+ type: "fetchResponse";
1225
+ };
1226
+ services?: Record<string, {
1227
+ ref: string;
1228
+ } | {
1229
+ version: string;
1230
+ tags?: Record<string, string> | undefined;
1231
+ optional?: boolean | undefined;
1232
+ }> | undefined;
1233
+ }, {
1234
+ services?: Record<string, {
1235
+ ref: string;
1236
+ } | {
1237
+ version: string;
1238
+ tags?: Record<string, string> | undefined;
1239
+ optional?: boolean | undefined;
1240
+ }> | undefined;
1241
+ config?: {
1242
+ bindings?: {
1243
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1244
+ identifier?: string | undefined;
1245
+ }[] | undefined;
1246
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1247
+ schema?: "default" | "flattened" | undefined;
1248
+ exposeRefresh?: boolean | undefined;
1249
+ 'body-param'?: string | undefined;
1250
+ } | undefined;
1251
+ 'cache-strategy'?: unknown;
1252
+ 'error-strategy'?: {
1253
+ type: "stringified";
1254
+ } | {
1255
+ type: "fetchResponse";
1256
+ } | undefined;
1257
+ } | undefined>;
1258
+ }, "strip", z.ZodTypeAny, {
1259
+ onestore: {
1260
+ config: {
1261
+ bindings: {
1262
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1263
+ identifier: string;
1264
+ }[];
1265
+ 'operation-type': "mutation" | "query" | "graphql";
1266
+ schema: "default" | "flattened";
1267
+ exposeRefresh: boolean;
1268
+ 'body-param'?: string | undefined;
1269
+ };
1270
+ 'cache-strategy': {
1271
+ type: "none";
1272
+ } | {
1273
+ type: "resource";
1274
+ config: {
1275
+ 'max-age': number;
1276
+ 'stale-while-revalidate'?: number | undefined;
1277
+ };
1278
+ } | {
1279
+ type: "normalized";
1280
+ key?: Record<string, string> | undefined;
1281
+ 'cache-control'?: {
1282
+ 'max-age': number;
1283
+ type: "max-age";
1284
+ 'stale-while-revalidate'?: number | undefined;
1285
+ } | {
1286
+ type: "no-cache";
1287
+ } | undefined;
1288
+ };
1289
+ 'error-strategy': {
1290
+ type: "stringified";
1291
+ } | {
1292
+ type: "fetchResponse";
1293
+ };
1294
+ services?: Record<string, {
1295
+ ref: string;
1296
+ } | {
1297
+ version: string;
1298
+ tags?: Record<string, string> | undefined;
1299
+ optional?: boolean | undefined;
1300
+ }> | undefined;
1301
+ };
1302
+ }, {
1303
+ onestore?: {
1304
+ services?: Record<string, {
1305
+ ref: string;
1306
+ } | {
1307
+ version: string;
1308
+ tags?: Record<string, string> | undefined;
1309
+ optional?: boolean | undefined;
1310
+ }> | undefined;
1311
+ config?: {
1312
+ bindings?: {
1313
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1314
+ identifier?: string | undefined;
1315
+ }[] | undefined;
1316
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1317
+ schema?: "default" | "flattened" | undefined;
1318
+ exposeRefresh?: boolean | undefined;
1319
+ 'body-param'?: string | undefined;
1320
+ } | undefined;
1321
+ 'cache-strategy'?: unknown;
1322
+ 'error-strategy'?: {
1323
+ type: "stringified";
1324
+ } | {
1325
+ type: "fetchResponse";
1326
+ } | undefined;
1327
+ } | undefined;
1328
+ }>;
1329
+ buildHttpOperationSchema(): z.ZodEffects<z.ZodObject<{
1330
+ onestore: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
1331
+ config: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
1332
+ 'operation-type': z.ZodDefault<z.ZodEnum<["query", "mutation", "graphql"]>>;
1333
+ schema: z.ZodDefault<z.ZodEnum<["flattened", "default"]>>;
1334
+ bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
1335
+ type: z.ZodDefault<z.ZodEnum<["wire", "imperative", "imperative-legacy", "mutation"]>>;
1336
+ identifier: z.ZodDefault<z.ZodString>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1339
+ identifier: string;
1340
+ }, {
1341
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1342
+ identifier?: string | undefined;
1343
+ }>, "many">>;
1344
+ exposeRefresh: z.ZodDefault<z.ZodBoolean>;
1345
+ 'body-param': z.ZodOptional<z.ZodString>;
1346
+ }, "strip", z.ZodTypeAny, {
1347
+ bindings: {
1348
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1349
+ identifier: string;
1350
+ }[];
1351
+ 'operation-type': "mutation" | "query" | "graphql";
1352
+ schema: "default" | "flattened";
1353
+ exposeRefresh: boolean;
1354
+ 'body-param'?: string | undefined;
1355
+ }, {
1356
+ bindings?: {
1357
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1358
+ identifier?: string | undefined;
1359
+ }[] | undefined;
1360
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1361
+ schema?: "default" | "flattened" | undefined;
1362
+ exposeRefresh?: boolean | undefined;
1363
+ 'body-param'?: string | undefined;
1364
+ }>>, {
1365
+ bindings: {
1366
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1367
+ identifier: string;
1368
+ }[];
1369
+ 'operation-type': "mutation" | "query" | "graphql";
1370
+ schema: "default" | "flattened";
1371
+ exposeRefresh: boolean;
1372
+ 'body-param'?: string | undefined;
1373
+ }, {
1374
+ bindings?: {
1375
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1376
+ identifier?: string | undefined;
1377
+ }[] | undefined;
1378
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1379
+ schema?: "default" | "flattened" | undefined;
1380
+ exposeRefresh?: boolean | undefined;
1381
+ 'body-param'?: string | undefined;
1382
+ } | undefined>, {
1383
+ bindings: {
1384
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1385
+ identifier: string;
1386
+ }[];
1387
+ 'operation-type': "mutation" | "query" | "graphql";
1388
+ schema: "default" | "flattened";
1389
+ exposeRefresh: boolean;
1390
+ 'body-param'?: string | undefined;
1391
+ }, {
1392
+ bindings?: {
1393
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1394
+ identifier?: string | undefined;
1395
+ }[] | undefined;
1396
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1397
+ schema?: "default" | "flattened" | undefined;
1398
+ exposeRefresh?: boolean | undefined;
1399
+ 'body-param'?: string | undefined;
1400
+ } | undefined>, {
1401
+ bindings: {
1402
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1403
+ identifier: string;
1404
+ }[];
1405
+ 'operation-type': "mutation" | "query" | "graphql";
1406
+ schema: "default" | "flattened";
1407
+ exposeRefresh: boolean;
1408
+ 'body-param'?: string | undefined;
1409
+ }, {
1410
+ bindings?: {
1411
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1412
+ identifier?: string | undefined;
1413
+ }[] | undefined;
1414
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1415
+ schema?: "default" | "flattened" | undefined;
1416
+ exposeRefresh?: boolean | undefined;
1417
+ 'body-param'?: string | undefined;
1418
+ } | undefined>, {
1419
+ bindings: {
1420
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1421
+ identifier: string;
1422
+ }[];
1423
+ 'operation-type': "mutation" | "query" | "graphql";
1424
+ schema: "default" | "flattened";
1425
+ exposeRefresh: boolean;
1426
+ 'body-param'?: string | undefined;
1427
+ }, {
1428
+ bindings?: {
1429
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1430
+ identifier?: string | undefined;
1431
+ }[] | undefined;
1432
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1433
+ schema?: "default" | "flattened" | undefined;
1434
+ exposeRefresh?: boolean | undefined;
1435
+ 'body-param'?: string | undefined;
1436
+ } | undefined>, {
1437
+ bindings: {
1438
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1439
+ identifier: string;
1440
+ }[];
1441
+ 'operation-type': "mutation" | "query" | "graphql";
1442
+ schema: "default" | "flattened";
1443
+ exposeRefresh: boolean;
1444
+ 'body-param'?: string | undefined;
1445
+ }, {
1446
+ bindings?: {
1447
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1448
+ identifier?: string | undefined;
1449
+ }[] | undefined;
1450
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1451
+ schema?: "default" | "flattened" | undefined;
1452
+ exposeRefresh?: boolean | undefined;
1453
+ 'body-param'?: string | undefined;
1454
+ } | undefined>, {
1455
+ bindings: {
1456
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1457
+ identifier: string;
1458
+ }[];
1459
+ 'operation-type': "mutation" | "query" | "graphql";
1460
+ schema: "default" | "flattened";
1461
+ exposeRefresh: boolean;
1462
+ 'body-param'?: string | undefined;
1463
+ }, {
1464
+ bindings?: {
1465
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1466
+ identifier?: string | undefined;
1467
+ }[] | undefined;
1468
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1469
+ schema?: "default" | "flattened" | undefined;
1470
+ exposeRefresh?: boolean | undefined;
1471
+ 'body-param'?: string | undefined;
1472
+ } | undefined>, {
1473
+ bindings: {
1474
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1475
+ identifier: string;
1476
+ }[];
1477
+ 'operation-type': "mutation" | "query" | "graphql";
1478
+ schema: "default" | "flattened";
1479
+ exposeRefresh: boolean;
1480
+ 'body-param'?: string | undefined;
1481
+ }, {
1482
+ bindings?: {
1483
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1484
+ identifier?: string | undefined;
1485
+ }[] | undefined;
1486
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1487
+ schema?: "default" | "flattened" | undefined;
1488
+ exposeRefresh?: boolean | undefined;
1489
+ 'body-param'?: string | undefined;
1490
+ } | undefined>, {
1491
+ bindings: {
1492
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1493
+ identifier: string;
1494
+ }[];
1495
+ 'operation-type': "mutation" | "query" | "graphql";
1496
+ schema: "default" | "flattened";
1497
+ exposeRefresh: boolean;
1498
+ 'body-param'?: string | undefined;
1499
+ }, {
1500
+ bindings?: {
1501
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1502
+ identifier?: string | undefined;
1503
+ }[] | undefined;
1504
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1505
+ schema?: "default" | "flattened" | undefined;
1506
+ exposeRefresh?: boolean | undefined;
1507
+ 'body-param'?: string | undefined;
1508
+ } | undefined>;
1509
+ 'cache-strategy': z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1510
+ type: z.ZodLiteral<"none">;
1511
+ }, "strict", z.ZodTypeAny, {
1512
+ type: "none";
1513
+ }, {
1514
+ type: "none";
1515
+ }>, z.ZodObject<{
1516
+ type: z.ZodLiteral<"resource">;
1517
+ config: z.ZodObject<{
1518
+ 'max-age': z.ZodNumber;
1519
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
1520
+ }, "strict", z.ZodTypeAny, {
1521
+ 'max-age': number;
1522
+ 'stale-while-revalidate'?: number | undefined;
1523
+ }, {
1524
+ 'max-age': number;
1525
+ 'stale-while-revalidate'?: number | undefined;
1526
+ }>;
1527
+ }, "strict", z.ZodTypeAny, {
1528
+ type: "resource";
1529
+ config: {
1530
+ 'max-age': number;
1531
+ 'stale-while-revalidate'?: number | undefined;
1532
+ };
1533
+ }, {
1534
+ type: "resource";
1535
+ config: {
1536
+ 'max-age': number;
1537
+ 'stale-while-revalidate'?: number | undefined;
1538
+ };
1539
+ }>, z.ZodObject<{
1540
+ type: z.ZodLiteral<"normalized">;
1541
+ 'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1542
+ type: z.ZodLiteral<"max-age">;
1543
+ 'max-age': z.ZodNumber;
1544
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
1545
+ }, "strict", z.ZodTypeAny, {
1546
+ 'max-age': number;
1547
+ type: "max-age";
1548
+ 'stale-while-revalidate'?: number | undefined;
1549
+ }, {
1550
+ 'max-age': number;
1551
+ type: "max-age";
1552
+ 'stale-while-revalidate'?: number | undefined;
1553
+ }>, z.ZodObject<{
1554
+ type: z.ZodLiteral<"no-cache">;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ type: "no-cache";
1557
+ }, {
1558
+ type: "no-cache";
1559
+ }>]>>;
1560
+ key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
1561
+ }, "strict", z.ZodTypeAny, {
1562
+ type: "normalized";
1563
+ key?: Record<string, string> | undefined;
1564
+ 'cache-control'?: {
1565
+ 'max-age': number;
1566
+ type: "max-age";
1567
+ 'stale-while-revalidate'?: number | undefined;
1568
+ } | {
1569
+ type: "no-cache";
1570
+ } | undefined;
1571
+ }, {
1572
+ type: "normalized";
1573
+ key?: Record<string, string> | undefined;
1574
+ 'cache-control'?: {
1575
+ 'max-age': number;
1576
+ type: "max-age";
1577
+ 'stale-while-revalidate'?: number | undefined;
1578
+ } | {
1579
+ type: "no-cache";
1580
+ } | undefined;
1581
+ }>]>, {
1582
+ type: "none";
1583
+ } | {
1584
+ type: "resource";
1585
+ config: {
1586
+ 'max-age': number;
1587
+ 'stale-while-revalidate'?: number | undefined;
1588
+ };
1589
+ } | {
1590
+ type: "normalized";
1591
+ key?: Record<string, string> | undefined;
1592
+ 'cache-control'?: {
1593
+ 'max-age': number;
1594
+ type: "max-age";
1595
+ 'stale-while-revalidate'?: number | undefined;
1596
+ } | {
1597
+ type: "no-cache";
1598
+ } | undefined;
1599
+ }, unknown>;
1600
+ 'error-strategy': z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1601
+ type: z.ZodLiteral<"stringified">;
1602
+ }, "strict", z.ZodTypeAny, {
1603
+ type: "stringified";
1604
+ }, {
1605
+ type: "stringified";
1606
+ }>, z.ZodObject<{
1607
+ type: z.ZodLiteral<"fetchResponse">;
1608
+ }, "strict", z.ZodTypeAny, {
1609
+ type: "fetchResponse";
1610
+ }, {
1611
+ type: "fetchResponse";
1612
+ }>]>>;
1613
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1614
+ ref: z.ZodString;
1615
+ }, "strict", z.ZodTypeAny, {
1616
+ ref: string;
1617
+ }, {
1618
+ ref: string;
1619
+ }>, z.ZodEffects<z.ZodObject<{
1620
+ version: z.ZodString;
1621
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1622
+ optional: z.ZodOptional<z.ZodBoolean>;
1623
+ }, "strict", z.ZodTypeAny, {
1624
+ version: string;
1625
+ tags?: Record<string, string> | undefined;
1626
+ optional?: boolean | undefined;
1627
+ }, {
1628
+ version: string;
1629
+ tags?: Record<string, string> | undefined;
1630
+ optional?: boolean | undefined;
1631
+ }>, {
1632
+ version: string;
1633
+ tags?: Record<string, string> | undefined;
1634
+ optional?: boolean | undefined;
1635
+ }, {
1636
+ version: string;
1637
+ tags?: Record<string, string> | undefined;
1638
+ optional?: boolean | undefined;
1639
+ }>]>>>;
1640
+ }, "strict", z.ZodTypeAny, {
1641
+ config: {
1642
+ bindings: {
1643
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1644
+ identifier: string;
1645
+ }[];
1646
+ 'operation-type': "mutation" | "query" | "graphql";
1647
+ schema: "default" | "flattened";
1648
+ exposeRefresh: boolean;
1649
+ 'body-param'?: string | undefined;
1650
+ };
1651
+ 'cache-strategy': {
1652
+ type: "none";
1653
+ } | {
1654
+ type: "resource";
1655
+ config: {
1656
+ 'max-age': number;
1657
+ 'stale-while-revalidate'?: number | undefined;
1658
+ };
1659
+ } | {
1660
+ type: "normalized";
1661
+ key?: Record<string, string> | undefined;
1662
+ 'cache-control'?: {
1663
+ 'max-age': number;
1664
+ type: "max-age";
1665
+ 'stale-while-revalidate'?: number | undefined;
1666
+ } | {
1667
+ type: "no-cache";
1668
+ } | undefined;
1669
+ };
1670
+ 'error-strategy': {
1671
+ type: "stringified";
1672
+ } | {
1673
+ type: "fetchResponse";
1674
+ };
1675
+ services?: Record<string, {
1676
+ ref: string;
1677
+ } | {
1678
+ version: string;
1679
+ tags?: Record<string, string> | undefined;
1680
+ optional?: boolean | undefined;
1681
+ }> | undefined;
1682
+ }, {
1683
+ services?: Record<string, {
1684
+ ref: string;
1685
+ } | {
1686
+ version: string;
1687
+ tags?: Record<string, string> | undefined;
1688
+ optional?: boolean | undefined;
1689
+ }> | undefined;
1690
+ config?: {
1691
+ bindings?: {
1692
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1693
+ identifier?: string | undefined;
1694
+ }[] | undefined;
1695
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1696
+ schema?: "default" | "flattened" | undefined;
1697
+ exposeRefresh?: boolean | undefined;
1698
+ 'body-param'?: string | undefined;
1699
+ } | undefined;
1700
+ 'cache-strategy'?: unknown;
1701
+ 'error-strategy'?: {
1702
+ type: "stringified";
1703
+ } | {
1704
+ type: "fetchResponse";
1705
+ } | undefined;
1706
+ }>>, {
1707
+ config: {
1708
+ bindings: {
1709
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1710
+ identifier: string;
1711
+ }[];
1712
+ 'operation-type': "mutation" | "query" | "graphql";
1713
+ schema: "default" | "flattened";
1714
+ exposeRefresh: boolean;
1715
+ 'body-param'?: string | undefined;
1716
+ };
1717
+ 'cache-strategy': {
1718
+ type: "none";
1719
+ } | {
1720
+ type: "resource";
1721
+ config: {
1722
+ 'max-age': number;
1723
+ 'stale-while-revalidate'?: number | undefined;
1724
+ };
1725
+ } | {
1726
+ type: "normalized";
1727
+ key?: Record<string, string> | undefined;
1728
+ 'cache-control'?: {
1729
+ 'max-age': number;
1730
+ type: "max-age";
1731
+ 'stale-while-revalidate'?: number | undefined;
1732
+ } | {
1733
+ type: "no-cache";
1734
+ } | undefined;
1735
+ };
1736
+ 'error-strategy': {
1737
+ type: "stringified";
1738
+ } | {
1739
+ type: "fetchResponse";
1740
+ };
1741
+ services?: Record<string, {
1742
+ ref: string;
1743
+ } | {
1744
+ version: string;
1745
+ tags?: Record<string, string> | undefined;
1746
+ optional?: boolean | undefined;
1747
+ }> | undefined;
1748
+ }, {
1749
+ services?: Record<string, {
1750
+ ref: string;
1751
+ } | {
1752
+ version: string;
1753
+ tags?: Record<string, string> | undefined;
1754
+ optional?: boolean | undefined;
1755
+ }> | undefined;
1756
+ config?: {
1757
+ bindings?: {
1758
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1759
+ identifier?: string | undefined;
1760
+ }[] | undefined;
1761
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1762
+ schema?: "default" | "flattened" | undefined;
1763
+ exposeRefresh?: boolean | undefined;
1764
+ 'body-param'?: string | undefined;
1765
+ } | undefined;
1766
+ 'cache-strategy'?: unknown;
1767
+ 'error-strategy'?: {
1768
+ type: "stringified";
1769
+ } | {
1770
+ type: "fetchResponse";
1771
+ } | undefined;
1772
+ } | undefined>, {
1773
+ config: {
1774
+ bindings: {
1775
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1776
+ identifier: string;
1777
+ }[];
1778
+ 'operation-type': "mutation" | "query" | "graphql";
1779
+ schema: "default" | "flattened";
1780
+ exposeRefresh: boolean;
1781
+ 'body-param'?: string | undefined;
1782
+ };
1783
+ 'cache-strategy': {
1784
+ type: "none";
1785
+ } | {
1786
+ type: "resource";
1787
+ config: {
1788
+ 'max-age': number;
1789
+ 'stale-while-revalidate'?: number | undefined;
1790
+ };
1791
+ } | {
1792
+ type: "normalized";
1793
+ key?: Record<string, string> | undefined;
1794
+ 'cache-control'?: {
1795
+ 'max-age': number;
1796
+ type: "max-age";
1797
+ 'stale-while-revalidate'?: number | undefined;
1798
+ } | {
1799
+ type: "no-cache";
1800
+ } | undefined;
1801
+ };
1802
+ 'error-strategy': {
1803
+ type: "stringified";
1804
+ } | {
1805
+ type: "fetchResponse";
1806
+ };
1807
+ services?: Record<string, {
1808
+ ref: string;
1809
+ } | {
1810
+ version: string;
1811
+ tags?: Record<string, string> | undefined;
1812
+ optional?: boolean | undefined;
1813
+ }> | undefined;
1814
+ }, {
1815
+ services?: Record<string, {
1816
+ ref: string;
1817
+ } | {
1818
+ version: string;
1819
+ tags?: Record<string, string> | undefined;
1820
+ optional?: boolean | undefined;
1821
+ }> | undefined;
1822
+ config?: {
1823
+ bindings?: {
1824
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1825
+ identifier?: string | undefined;
1826
+ }[] | undefined;
1827
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1828
+ schema?: "default" | "flattened" | undefined;
1829
+ exposeRefresh?: boolean | undefined;
1830
+ 'body-param'?: string | undefined;
1831
+ } | undefined;
1832
+ 'cache-strategy'?: unknown;
1833
+ 'error-strategy'?: {
1834
+ type: "stringified";
1835
+ } | {
1836
+ type: "fetchResponse";
1837
+ } | undefined;
1838
+ } | undefined>, {
1839
+ config: {
1840
+ bindings: {
1841
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1842
+ identifier: string;
1843
+ }[];
1844
+ 'operation-type': "mutation" | "query" | "graphql";
1845
+ schema: "default" | "flattened";
1846
+ exposeRefresh: boolean;
1847
+ 'body-param'?: string | undefined;
1848
+ };
1849
+ 'cache-strategy': {
1850
+ type: "none";
1851
+ } | {
1852
+ type: "resource";
1853
+ config: {
1854
+ 'max-age': number;
1855
+ 'stale-while-revalidate'?: number | undefined;
1856
+ };
1857
+ } | {
1858
+ type: "normalized";
1859
+ key?: Record<string, string> | undefined;
1860
+ 'cache-control'?: {
1861
+ 'max-age': number;
1862
+ type: "max-age";
1863
+ 'stale-while-revalidate'?: number | undefined;
1864
+ } | {
1865
+ type: "no-cache";
1866
+ } | undefined;
1867
+ };
1868
+ 'error-strategy': {
1869
+ type: "stringified";
1870
+ } | {
1871
+ type: "fetchResponse";
1872
+ };
1873
+ services?: Record<string, {
1874
+ ref: string;
1875
+ } | {
1876
+ version: string;
1877
+ tags?: Record<string, string> | undefined;
1878
+ optional?: boolean | undefined;
1879
+ }> | undefined;
1880
+ }, {
1881
+ services?: Record<string, {
1882
+ ref: string;
1883
+ } | {
1884
+ version: string;
1885
+ tags?: Record<string, string> | undefined;
1886
+ optional?: boolean | undefined;
1887
+ }> | undefined;
1888
+ config?: {
1889
+ bindings?: {
1890
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1891
+ identifier?: string | undefined;
1892
+ }[] | undefined;
1893
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1894
+ schema?: "default" | "flattened" | undefined;
1895
+ exposeRefresh?: boolean | undefined;
1896
+ 'body-param'?: string | undefined;
1897
+ } | undefined;
1898
+ 'cache-strategy'?: unknown;
1899
+ 'error-strategy'?: {
1900
+ type: "stringified";
1901
+ } | {
1902
+ type: "fetchResponse";
1903
+ } | undefined;
1904
+ } | undefined>, {
1905
+ config: {
1906
+ bindings: {
1907
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1908
+ identifier: string;
1909
+ }[];
1910
+ 'operation-type': "mutation" | "query" | "graphql";
1911
+ schema: "default" | "flattened";
1912
+ exposeRefresh: boolean;
1913
+ 'body-param'?: string | undefined;
1914
+ };
1915
+ 'cache-strategy': {
1916
+ type: "none";
1917
+ } | {
1918
+ type: "resource";
1919
+ config: {
1920
+ 'max-age': number;
1921
+ 'stale-while-revalidate'?: number | undefined;
1922
+ };
1923
+ } | {
1924
+ type: "normalized";
1925
+ key?: Record<string, string> | undefined;
1926
+ 'cache-control'?: {
1927
+ 'max-age': number;
1928
+ type: "max-age";
1929
+ 'stale-while-revalidate'?: number | undefined;
1930
+ } | {
1931
+ type: "no-cache";
1932
+ } | undefined;
1933
+ };
1934
+ 'error-strategy': {
1935
+ type: "stringified";
1936
+ } | {
1937
+ type: "fetchResponse";
1938
+ };
1939
+ services?: Record<string, {
1940
+ ref: string;
1941
+ } | {
1942
+ version: string;
1943
+ tags?: Record<string, string> | undefined;
1944
+ optional?: boolean | undefined;
1945
+ }> | undefined;
1946
+ }, {
1947
+ services?: Record<string, {
1948
+ ref: string;
1949
+ } | {
1950
+ version: string;
1951
+ tags?: Record<string, string> | undefined;
1952
+ optional?: boolean | undefined;
1953
+ }> | undefined;
1954
+ config?: {
1955
+ bindings?: {
1956
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
1957
+ identifier?: string | undefined;
1958
+ }[] | undefined;
1959
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
1960
+ schema?: "default" | "flattened" | undefined;
1961
+ exposeRefresh?: boolean | undefined;
1962
+ 'body-param'?: string | undefined;
1963
+ } | undefined;
1964
+ 'cache-strategy'?: unknown;
1965
+ 'error-strategy'?: {
1966
+ type: "stringified";
1967
+ } | {
1968
+ type: "fetchResponse";
1969
+ } | undefined;
1970
+ } | undefined>;
1971
+ }, "strip", z.ZodTypeAny, {
1972
+ onestore: {
1973
+ config: {
1974
+ bindings: {
1975
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
1976
+ identifier: string;
1977
+ }[];
1978
+ 'operation-type': "mutation" | "query" | "graphql";
1979
+ schema: "default" | "flattened";
1980
+ exposeRefresh: boolean;
1981
+ 'body-param'?: string | undefined;
1982
+ };
1983
+ 'cache-strategy': {
1984
+ type: "none";
1985
+ } | {
1986
+ type: "resource";
1987
+ config: {
1988
+ 'max-age': number;
1989
+ 'stale-while-revalidate'?: number | undefined;
1990
+ };
1991
+ } | {
1992
+ type: "normalized";
1993
+ key?: Record<string, string> | undefined;
1994
+ 'cache-control'?: {
1995
+ 'max-age': number;
1996
+ type: "max-age";
1997
+ 'stale-while-revalidate'?: number | undefined;
1998
+ } | {
1999
+ type: "no-cache";
2000
+ } | undefined;
2001
+ };
2002
+ 'error-strategy': {
2003
+ type: "stringified";
2004
+ } | {
2005
+ type: "fetchResponse";
2006
+ };
2007
+ services?: Record<string, {
2008
+ ref: string;
2009
+ } | {
2010
+ version: string;
2011
+ tags?: Record<string, string> | undefined;
2012
+ optional?: boolean | undefined;
2013
+ }> | undefined;
2014
+ };
2015
+ }, {
2016
+ onestore?: {
2017
+ services?: Record<string, {
2018
+ ref: string;
2019
+ } | {
2020
+ version: string;
2021
+ tags?: Record<string, string> | undefined;
2022
+ optional?: boolean | undefined;
2023
+ }> | undefined;
2024
+ config?: {
2025
+ bindings?: {
2026
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2027
+ identifier?: string | undefined;
2028
+ }[] | undefined;
2029
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2030
+ schema?: "default" | "flattened" | undefined;
2031
+ exposeRefresh?: boolean | undefined;
2032
+ 'body-param'?: string | undefined;
2033
+ } | undefined;
2034
+ 'cache-strategy'?: unknown;
2035
+ 'error-strategy'?: {
2036
+ type: "stringified";
2037
+ } | {
2038
+ type: "fetchResponse";
2039
+ } | undefined;
2040
+ } | undefined;
2041
+ }>, {
2042
+ onestore: {
2043
+ config: {
2044
+ 'body-param': string;
2045
+ bindings: {
2046
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2047
+ identifier: string;
2048
+ }[];
2049
+ 'operation-type': "mutation" | "query" | "graphql";
2050
+ schema: "default" | "flattened";
2051
+ exposeRefresh: boolean;
2052
+ };
2053
+ };
2054
+ }, {
2055
+ onestore?: {
2056
+ services?: Record<string, {
2057
+ ref: string;
2058
+ } | {
2059
+ version: string;
2060
+ tags?: Record<string, string> | undefined;
2061
+ optional?: boolean | undefined;
2062
+ }> | undefined;
2063
+ config?: {
2064
+ bindings?: {
2065
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2066
+ identifier?: string | undefined;
2067
+ }[] | undefined;
2068
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2069
+ schema?: "default" | "flattened" | undefined;
2070
+ exposeRefresh?: boolean | undefined;
2071
+ 'body-param'?: string | undefined;
2072
+ } | undefined;
2073
+ 'cache-strategy'?: unknown;
2074
+ 'error-strategy'?: {
2075
+ type: "stringified";
2076
+ } | {
2077
+ type: "fetchResponse";
2078
+ } | undefined;
2079
+ } | undefined;
2080
+ }>;
2081
+ buildAuraOperationSchema(): z.ZodIntersection<z.ZodObject<{
2082
+ onestore: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
2083
+ config: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
2084
+ 'operation-type': z.ZodDefault<z.ZodEnum<["query", "mutation", "graphql"]>>;
2085
+ schema: z.ZodDefault<z.ZodEnum<["flattened", "default"]>>;
2086
+ bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
2087
+ type: z.ZodDefault<z.ZodEnum<["wire", "imperative", "imperative-legacy", "mutation"]>>;
2088
+ identifier: z.ZodDefault<z.ZodString>;
2089
+ }, "strip", z.ZodTypeAny, {
2090
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2091
+ identifier: string;
2092
+ }, {
2093
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2094
+ identifier?: string | undefined;
2095
+ }>, "many">>;
2096
+ exposeRefresh: z.ZodDefault<z.ZodBoolean>;
2097
+ 'body-param': z.ZodOptional<z.ZodString>;
2098
+ }, "strip", z.ZodTypeAny, {
2099
+ bindings: {
2100
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2101
+ identifier: string;
2102
+ }[];
2103
+ 'operation-type': "mutation" | "query" | "graphql";
2104
+ schema: "default" | "flattened";
2105
+ exposeRefresh: boolean;
2106
+ 'body-param'?: string | undefined;
2107
+ }, {
2108
+ bindings?: {
2109
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2110
+ identifier?: string | undefined;
2111
+ }[] | undefined;
2112
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2113
+ schema?: "default" | "flattened" | undefined;
2114
+ exposeRefresh?: boolean | undefined;
2115
+ 'body-param'?: string | undefined;
2116
+ }>>, {
2117
+ bindings: {
2118
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2119
+ identifier: string;
2120
+ }[];
2121
+ 'operation-type': "mutation" | "query" | "graphql";
2122
+ schema: "default" | "flattened";
2123
+ exposeRefresh: boolean;
2124
+ 'body-param'?: string | undefined;
2125
+ }, {
2126
+ bindings?: {
2127
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2128
+ identifier?: string | undefined;
2129
+ }[] | undefined;
2130
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2131
+ schema?: "default" | "flattened" | undefined;
2132
+ exposeRefresh?: boolean | undefined;
2133
+ 'body-param'?: string | undefined;
2134
+ } | undefined>, {
2135
+ bindings: {
2136
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2137
+ identifier: string;
2138
+ }[];
2139
+ 'operation-type': "mutation" | "query" | "graphql";
2140
+ schema: "default" | "flattened";
2141
+ exposeRefresh: boolean;
2142
+ 'body-param'?: string | undefined;
2143
+ }, {
2144
+ bindings?: {
2145
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2146
+ identifier?: string | undefined;
2147
+ }[] | undefined;
2148
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2149
+ schema?: "default" | "flattened" | undefined;
2150
+ exposeRefresh?: boolean | undefined;
2151
+ 'body-param'?: string | undefined;
2152
+ } | undefined>, {
2153
+ bindings: {
2154
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2155
+ identifier: string;
2156
+ }[];
2157
+ 'operation-type': "mutation" | "query" | "graphql";
2158
+ schema: "default" | "flattened";
2159
+ exposeRefresh: boolean;
2160
+ 'body-param'?: string | undefined;
2161
+ }, {
2162
+ bindings?: {
2163
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2164
+ identifier?: string | undefined;
2165
+ }[] | undefined;
2166
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2167
+ schema?: "default" | "flattened" | undefined;
2168
+ exposeRefresh?: boolean | undefined;
2169
+ 'body-param'?: string | undefined;
2170
+ } | undefined>, {
2171
+ bindings: {
2172
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2173
+ identifier: string;
2174
+ }[];
2175
+ 'operation-type': "mutation" | "query" | "graphql";
2176
+ schema: "default" | "flattened";
2177
+ exposeRefresh: boolean;
2178
+ 'body-param'?: string | undefined;
2179
+ }, {
2180
+ bindings?: {
2181
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2182
+ identifier?: string | undefined;
2183
+ }[] | undefined;
2184
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2185
+ schema?: "default" | "flattened" | undefined;
2186
+ exposeRefresh?: boolean | undefined;
2187
+ 'body-param'?: string | undefined;
2188
+ } | undefined>, {
2189
+ bindings: {
2190
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2191
+ identifier: string;
2192
+ }[];
2193
+ 'operation-type': "mutation" | "query" | "graphql";
2194
+ schema: "default" | "flattened";
2195
+ exposeRefresh: boolean;
2196
+ 'body-param'?: string | undefined;
2197
+ }, {
2198
+ bindings?: {
2199
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2200
+ identifier?: string | undefined;
2201
+ }[] | undefined;
2202
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2203
+ schema?: "default" | "flattened" | undefined;
2204
+ exposeRefresh?: boolean | undefined;
2205
+ 'body-param'?: string | undefined;
2206
+ } | undefined>, {
2207
+ bindings: {
2208
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2209
+ identifier: string;
2210
+ }[];
2211
+ 'operation-type': "mutation" | "query" | "graphql";
2212
+ schema: "default" | "flattened";
2213
+ exposeRefresh: boolean;
2214
+ 'body-param'?: string | undefined;
2215
+ }, {
2216
+ bindings?: {
2217
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2218
+ identifier?: string | undefined;
2219
+ }[] | undefined;
2220
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2221
+ schema?: "default" | "flattened" | undefined;
2222
+ exposeRefresh?: boolean | undefined;
2223
+ 'body-param'?: string | undefined;
2224
+ } | undefined>, {
2225
+ bindings: {
2226
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2227
+ identifier: string;
2228
+ }[];
2229
+ 'operation-type': "mutation" | "query" | "graphql";
2230
+ schema: "default" | "flattened";
2231
+ exposeRefresh: boolean;
2232
+ 'body-param'?: string | undefined;
2233
+ }, {
2234
+ bindings?: {
2235
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2236
+ identifier?: string | undefined;
2237
+ }[] | undefined;
2238
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2239
+ schema?: "default" | "flattened" | undefined;
2240
+ exposeRefresh?: boolean | undefined;
2241
+ 'body-param'?: string | undefined;
2242
+ } | undefined>, {
2243
+ bindings: {
2244
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2245
+ identifier: string;
2246
+ }[];
2247
+ 'operation-type': "mutation" | "query" | "graphql";
2248
+ schema: "default" | "flattened";
2249
+ exposeRefresh: boolean;
2250
+ 'body-param'?: string | undefined;
2251
+ }, {
2252
+ bindings?: {
2253
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2254
+ identifier?: string | undefined;
2255
+ }[] | undefined;
2256
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2257
+ schema?: "default" | "flattened" | undefined;
2258
+ exposeRefresh?: boolean | undefined;
2259
+ 'body-param'?: string | undefined;
2260
+ } | undefined>;
2261
+ 'cache-strategy': z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2262
+ type: z.ZodLiteral<"none">;
2263
+ }, "strict", z.ZodTypeAny, {
2264
+ type: "none";
2265
+ }, {
2266
+ type: "none";
2267
+ }>, z.ZodObject<{
2268
+ type: z.ZodLiteral<"resource">;
2269
+ config: z.ZodObject<{
2270
+ 'max-age': z.ZodNumber;
2271
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
2272
+ }, "strict", z.ZodTypeAny, {
2273
+ 'max-age': number;
2274
+ 'stale-while-revalidate'?: number | undefined;
2275
+ }, {
2276
+ 'max-age': number;
2277
+ 'stale-while-revalidate'?: number | undefined;
2278
+ }>;
2279
+ }, "strict", z.ZodTypeAny, {
2280
+ type: "resource";
2281
+ config: {
2282
+ 'max-age': number;
2283
+ 'stale-while-revalidate'?: number | undefined;
2284
+ };
2285
+ }, {
2286
+ type: "resource";
2287
+ config: {
2288
+ 'max-age': number;
2289
+ 'stale-while-revalidate'?: number | undefined;
2290
+ };
2291
+ }>, z.ZodObject<{
2292
+ type: z.ZodLiteral<"normalized">;
2293
+ 'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2294
+ type: z.ZodLiteral<"max-age">;
2295
+ 'max-age': z.ZodNumber;
2296
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
2297
+ }, "strict", z.ZodTypeAny, {
2298
+ 'max-age': number;
2299
+ type: "max-age";
2300
+ 'stale-while-revalidate'?: number | undefined;
2301
+ }, {
2302
+ 'max-age': number;
2303
+ type: "max-age";
2304
+ 'stale-while-revalidate'?: number | undefined;
2305
+ }>, z.ZodObject<{
2306
+ type: z.ZodLiteral<"no-cache">;
2307
+ }, "strip", z.ZodTypeAny, {
2308
+ type: "no-cache";
2309
+ }, {
2310
+ type: "no-cache";
2311
+ }>]>>;
2312
+ key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
2313
+ }, "strict", z.ZodTypeAny, {
2314
+ type: "normalized";
2315
+ key?: Record<string, string> | undefined;
2316
+ 'cache-control'?: {
2317
+ 'max-age': number;
2318
+ type: "max-age";
2319
+ 'stale-while-revalidate'?: number | undefined;
2320
+ } | {
2321
+ type: "no-cache";
2322
+ } | undefined;
2323
+ }, {
2324
+ type: "normalized";
2325
+ key?: Record<string, string> | undefined;
2326
+ 'cache-control'?: {
2327
+ 'max-age': number;
2328
+ type: "max-age";
2329
+ 'stale-while-revalidate'?: number | undefined;
2330
+ } | {
2331
+ type: "no-cache";
2332
+ } | undefined;
2333
+ }>]>, {
2334
+ type: "none";
2335
+ } | {
2336
+ type: "resource";
2337
+ config: {
2338
+ 'max-age': number;
2339
+ 'stale-while-revalidate'?: number | undefined;
2340
+ };
2341
+ } | {
2342
+ type: "normalized";
2343
+ key?: Record<string, string> | undefined;
2344
+ 'cache-control'?: {
2345
+ 'max-age': number;
2346
+ type: "max-age";
2347
+ 'stale-while-revalidate'?: number | undefined;
2348
+ } | {
2349
+ type: "no-cache";
2350
+ } | undefined;
2351
+ }, unknown>;
2352
+ 'error-strategy': z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2353
+ type: z.ZodLiteral<"stringified">;
2354
+ }, "strict", z.ZodTypeAny, {
2355
+ type: "stringified";
2356
+ }, {
2357
+ type: "stringified";
2358
+ }>, z.ZodObject<{
2359
+ type: z.ZodLiteral<"fetchResponse">;
2360
+ }, "strict", z.ZodTypeAny, {
2361
+ type: "fetchResponse";
2362
+ }, {
2363
+ type: "fetchResponse";
2364
+ }>]>>;
2365
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2366
+ ref: z.ZodString;
2367
+ }, "strict", z.ZodTypeAny, {
2368
+ ref: string;
2369
+ }, {
2370
+ ref: string;
2371
+ }>, z.ZodEffects<z.ZodObject<{
2372
+ version: z.ZodString;
2373
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2374
+ optional: z.ZodOptional<z.ZodBoolean>;
2375
+ }, "strict", z.ZodTypeAny, {
2376
+ version: string;
2377
+ tags?: Record<string, string> | undefined;
2378
+ optional?: boolean | undefined;
2379
+ }, {
2380
+ version: string;
2381
+ tags?: Record<string, string> | undefined;
2382
+ optional?: boolean | undefined;
2383
+ }>, {
2384
+ version: string;
2385
+ tags?: Record<string, string> | undefined;
2386
+ optional?: boolean | undefined;
2387
+ }, {
2388
+ version: string;
2389
+ tags?: Record<string, string> | undefined;
2390
+ optional?: boolean | undefined;
2391
+ }>]>>>;
2392
+ }, "strict", z.ZodTypeAny, {
2393
+ config: {
2394
+ bindings: {
2395
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2396
+ identifier: string;
2397
+ }[];
2398
+ 'operation-type': "mutation" | "query" | "graphql";
2399
+ schema: "default" | "flattened";
2400
+ exposeRefresh: boolean;
2401
+ 'body-param'?: string | undefined;
2402
+ };
2403
+ 'cache-strategy': {
2404
+ type: "none";
2405
+ } | {
2406
+ type: "resource";
2407
+ config: {
2408
+ 'max-age': number;
2409
+ 'stale-while-revalidate'?: number | undefined;
2410
+ };
2411
+ } | {
2412
+ type: "normalized";
2413
+ key?: Record<string, string> | undefined;
2414
+ 'cache-control'?: {
2415
+ 'max-age': number;
2416
+ type: "max-age";
2417
+ 'stale-while-revalidate'?: number | undefined;
2418
+ } | {
2419
+ type: "no-cache";
2420
+ } | undefined;
2421
+ };
2422
+ 'error-strategy': {
2423
+ type: "stringified";
2424
+ } | {
2425
+ type: "fetchResponse";
2426
+ };
2427
+ services?: Record<string, {
2428
+ ref: string;
2429
+ } | {
2430
+ version: string;
2431
+ tags?: Record<string, string> | undefined;
2432
+ optional?: boolean | undefined;
2433
+ }> | undefined;
2434
+ }, {
2435
+ services?: Record<string, {
2436
+ ref: string;
2437
+ } | {
2438
+ version: string;
2439
+ tags?: Record<string, string> | undefined;
2440
+ optional?: boolean | undefined;
2441
+ }> | undefined;
2442
+ config?: {
2443
+ bindings?: {
2444
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2445
+ identifier?: string | undefined;
2446
+ }[] | undefined;
2447
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2448
+ schema?: "default" | "flattened" | undefined;
2449
+ exposeRefresh?: boolean | undefined;
2450
+ 'body-param'?: string | undefined;
2451
+ } | undefined;
2452
+ 'cache-strategy'?: unknown;
2453
+ 'error-strategy'?: {
2454
+ type: "stringified";
2455
+ } | {
2456
+ type: "fetchResponse";
2457
+ } | undefined;
2458
+ }>>, {
2459
+ config: {
2460
+ bindings: {
2461
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2462
+ identifier: string;
2463
+ }[];
2464
+ 'operation-type': "mutation" | "query" | "graphql";
2465
+ schema: "default" | "flattened";
2466
+ exposeRefresh: boolean;
2467
+ 'body-param'?: string | undefined;
2468
+ };
2469
+ 'cache-strategy': {
2470
+ type: "none";
2471
+ } | {
2472
+ type: "resource";
2473
+ config: {
2474
+ 'max-age': number;
2475
+ 'stale-while-revalidate'?: number | undefined;
2476
+ };
2477
+ } | {
2478
+ type: "normalized";
2479
+ key?: Record<string, string> | undefined;
2480
+ 'cache-control'?: {
2481
+ 'max-age': number;
2482
+ type: "max-age";
2483
+ 'stale-while-revalidate'?: number | undefined;
2484
+ } | {
2485
+ type: "no-cache";
2486
+ } | undefined;
2487
+ };
2488
+ 'error-strategy': {
2489
+ type: "stringified";
2490
+ } | {
2491
+ type: "fetchResponse";
2492
+ };
2493
+ services?: Record<string, {
2494
+ ref: string;
2495
+ } | {
2496
+ version: string;
2497
+ tags?: Record<string, string> | undefined;
2498
+ optional?: boolean | undefined;
2499
+ }> | undefined;
2500
+ }, {
2501
+ services?: Record<string, {
2502
+ ref: string;
2503
+ } | {
2504
+ version: string;
2505
+ tags?: Record<string, string> | undefined;
2506
+ optional?: boolean | undefined;
2507
+ }> | undefined;
2508
+ config?: {
2509
+ bindings?: {
2510
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2511
+ identifier?: string | undefined;
2512
+ }[] | undefined;
2513
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2514
+ schema?: "default" | "flattened" | undefined;
2515
+ exposeRefresh?: boolean | undefined;
2516
+ 'body-param'?: string | undefined;
2517
+ } | undefined;
2518
+ 'cache-strategy'?: unknown;
2519
+ 'error-strategy'?: {
2520
+ type: "stringified";
2521
+ } | {
2522
+ type: "fetchResponse";
2523
+ } | undefined;
2524
+ } | undefined>, {
2525
+ config: {
2526
+ bindings: {
2527
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2528
+ identifier: string;
2529
+ }[];
2530
+ 'operation-type': "mutation" | "query" | "graphql";
2531
+ schema: "default" | "flattened";
2532
+ exposeRefresh: boolean;
2533
+ 'body-param'?: string | undefined;
2534
+ };
2535
+ 'cache-strategy': {
2536
+ type: "none";
2537
+ } | {
2538
+ type: "resource";
2539
+ config: {
2540
+ 'max-age': number;
2541
+ 'stale-while-revalidate'?: number | undefined;
2542
+ };
2543
+ } | {
2544
+ type: "normalized";
2545
+ key?: Record<string, string> | undefined;
2546
+ 'cache-control'?: {
2547
+ 'max-age': number;
2548
+ type: "max-age";
2549
+ 'stale-while-revalidate'?: number | undefined;
2550
+ } | {
2551
+ type: "no-cache";
2552
+ } | undefined;
2553
+ };
2554
+ 'error-strategy': {
2555
+ type: "stringified";
2556
+ } | {
2557
+ type: "fetchResponse";
2558
+ };
2559
+ services?: Record<string, {
2560
+ ref: string;
2561
+ } | {
2562
+ version: string;
2563
+ tags?: Record<string, string> | undefined;
2564
+ optional?: boolean | undefined;
2565
+ }> | undefined;
2566
+ }, {
2567
+ services?: Record<string, {
2568
+ ref: string;
2569
+ } | {
2570
+ version: string;
2571
+ tags?: Record<string, string> | undefined;
2572
+ optional?: boolean | undefined;
2573
+ }> | undefined;
2574
+ config?: {
2575
+ bindings?: {
2576
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2577
+ identifier?: string | undefined;
2578
+ }[] | undefined;
2579
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2580
+ schema?: "default" | "flattened" | undefined;
2581
+ exposeRefresh?: boolean | undefined;
2582
+ 'body-param'?: string | undefined;
2583
+ } | undefined;
2584
+ 'cache-strategy'?: unknown;
2585
+ 'error-strategy'?: {
2586
+ type: "stringified";
2587
+ } | {
2588
+ type: "fetchResponse";
2589
+ } | undefined;
2590
+ } | undefined>, {
2591
+ config: {
2592
+ bindings: {
2593
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2594
+ identifier: string;
2595
+ }[];
2596
+ 'operation-type': "mutation" | "query" | "graphql";
2597
+ schema: "default" | "flattened";
2598
+ exposeRefresh: boolean;
2599
+ 'body-param'?: string | undefined;
2600
+ };
2601
+ 'cache-strategy': {
2602
+ type: "none";
2603
+ } | {
2604
+ type: "resource";
2605
+ config: {
2606
+ 'max-age': number;
2607
+ 'stale-while-revalidate'?: number | undefined;
2608
+ };
2609
+ } | {
2610
+ type: "normalized";
2611
+ key?: Record<string, string> | undefined;
2612
+ 'cache-control'?: {
2613
+ 'max-age': number;
2614
+ type: "max-age";
2615
+ 'stale-while-revalidate'?: number | undefined;
2616
+ } | {
2617
+ type: "no-cache";
2618
+ } | undefined;
2619
+ };
2620
+ 'error-strategy': {
2621
+ type: "stringified";
2622
+ } | {
2623
+ type: "fetchResponse";
2624
+ };
2625
+ services?: Record<string, {
2626
+ ref: string;
2627
+ } | {
2628
+ version: string;
2629
+ tags?: Record<string, string> | undefined;
2630
+ optional?: boolean | undefined;
2631
+ }> | undefined;
2632
+ }, {
2633
+ services?: Record<string, {
2634
+ ref: string;
2635
+ } | {
2636
+ version: string;
2637
+ tags?: Record<string, string> | undefined;
2638
+ optional?: boolean | undefined;
2639
+ }> | undefined;
2640
+ config?: {
2641
+ bindings?: {
2642
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2643
+ identifier?: string | undefined;
2644
+ }[] | undefined;
2645
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2646
+ schema?: "default" | "flattened" | undefined;
2647
+ exposeRefresh?: boolean | undefined;
2648
+ 'body-param'?: string | undefined;
2649
+ } | undefined;
2650
+ 'cache-strategy'?: unknown;
2651
+ 'error-strategy'?: {
2652
+ type: "stringified";
2653
+ } | {
2654
+ type: "fetchResponse";
2655
+ } | undefined;
2656
+ } | undefined>, {
2657
+ config: {
2658
+ bindings: {
2659
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2660
+ identifier: string;
2661
+ }[];
2662
+ 'operation-type': "mutation" | "query" | "graphql";
2663
+ schema: "default" | "flattened";
2664
+ exposeRefresh: boolean;
2665
+ 'body-param'?: string | undefined;
2666
+ };
2667
+ 'cache-strategy': {
2668
+ type: "none";
2669
+ } | {
2670
+ type: "resource";
2671
+ config: {
2672
+ 'max-age': number;
2673
+ 'stale-while-revalidate'?: number | undefined;
2674
+ };
2675
+ } | {
2676
+ type: "normalized";
2677
+ key?: Record<string, string> | undefined;
2678
+ 'cache-control'?: {
2679
+ 'max-age': number;
2680
+ type: "max-age";
2681
+ 'stale-while-revalidate'?: number | undefined;
2682
+ } | {
2683
+ type: "no-cache";
2684
+ } | undefined;
2685
+ };
2686
+ 'error-strategy': {
2687
+ type: "stringified";
2688
+ } | {
2689
+ type: "fetchResponse";
2690
+ };
2691
+ services?: Record<string, {
2692
+ ref: string;
2693
+ } | {
2694
+ version: string;
2695
+ tags?: Record<string, string> | undefined;
2696
+ optional?: boolean | undefined;
2697
+ }> | undefined;
2698
+ }, {
2699
+ services?: Record<string, {
2700
+ ref: string;
2701
+ } | {
2702
+ version: string;
2703
+ tags?: Record<string, string> | undefined;
2704
+ optional?: boolean | undefined;
2705
+ }> | undefined;
2706
+ config?: {
2707
+ bindings?: {
2708
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2709
+ identifier?: string | undefined;
2710
+ }[] | undefined;
2711
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2712
+ schema?: "default" | "flattened" | undefined;
2713
+ exposeRefresh?: boolean | undefined;
2714
+ 'body-param'?: string | undefined;
2715
+ } | undefined;
2716
+ 'cache-strategy'?: unknown;
2717
+ 'error-strategy'?: {
2718
+ type: "stringified";
2719
+ } | {
2720
+ type: "fetchResponse";
2721
+ } | undefined;
2722
+ } | undefined>;
2723
+ }, "strip", z.ZodTypeAny, {
2724
+ onestore: {
2725
+ config: {
2726
+ bindings: {
2727
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2728
+ identifier: string;
2729
+ }[];
2730
+ 'operation-type': "mutation" | "query" | "graphql";
2731
+ schema: "default" | "flattened";
2732
+ exposeRefresh: boolean;
2733
+ 'body-param'?: string | undefined;
2734
+ };
2735
+ 'cache-strategy': {
2736
+ type: "none";
2737
+ } | {
2738
+ type: "resource";
2739
+ config: {
2740
+ 'max-age': number;
2741
+ 'stale-while-revalidate'?: number | undefined;
2742
+ };
2743
+ } | {
2744
+ type: "normalized";
2745
+ key?: Record<string, string> | undefined;
2746
+ 'cache-control'?: {
2747
+ 'max-age': number;
2748
+ type: "max-age";
2749
+ 'stale-while-revalidate'?: number | undefined;
2750
+ } | {
2751
+ type: "no-cache";
2752
+ } | undefined;
2753
+ };
2754
+ 'error-strategy': {
2755
+ type: "stringified";
2756
+ } | {
2757
+ type: "fetchResponse";
2758
+ };
2759
+ services?: Record<string, {
2760
+ ref: string;
2761
+ } | {
2762
+ version: string;
2763
+ tags?: Record<string, string> | undefined;
2764
+ optional?: boolean | undefined;
2765
+ }> | undefined;
2766
+ };
2767
+ }, {
2768
+ onestore?: {
2769
+ services?: Record<string, {
2770
+ ref: string;
2771
+ } | {
2772
+ version: string;
2773
+ tags?: Record<string, string> | undefined;
2774
+ optional?: boolean | undefined;
2775
+ }> | undefined;
2776
+ config?: {
2777
+ bindings?: {
2778
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2779
+ identifier?: string | undefined;
2780
+ }[] | undefined;
2781
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2782
+ schema?: "default" | "flattened" | undefined;
2783
+ exposeRefresh?: boolean | undefined;
2784
+ 'body-param'?: string | undefined;
2785
+ } | undefined;
2786
+ 'cache-strategy'?: unknown;
2787
+ 'error-strategy'?: {
2788
+ type: "stringified";
2789
+ } | {
2790
+ type: "fetchResponse";
2791
+ } | undefined;
2792
+ } | undefined;
2793
+ }>, z.ZodObject<{
2794
+ onestore: z.ZodObject<{
2795
+ config: z.ZodObject<{
2796
+ aura: z.ZodObject<{
2797
+ method: z.ZodString;
2798
+ }, "strip", z.ZodTypeAny, {
2799
+ method: string;
2800
+ }, {
2801
+ method: string;
2802
+ }>;
2803
+ }, "strip", z.ZodTypeAny, {
2804
+ aura: {
2805
+ method: string;
2806
+ };
2807
+ }, {
2808
+ aura: {
2809
+ method: string;
2810
+ };
2811
+ }>;
2812
+ }, "strip", z.ZodTypeAny, {
2813
+ config: {
2814
+ aura: {
2815
+ method: string;
2816
+ };
2817
+ };
2818
+ }, {
2819
+ config: {
2820
+ aura: {
2821
+ method: string;
2822
+ };
2823
+ };
2824
+ }>;
2825
+ }, "strip", z.ZodTypeAny, {
2826
+ onestore: {
2827
+ config: {
2828
+ aura: {
2829
+ method: string;
2830
+ };
2831
+ };
2832
+ };
2833
+ }, {
2834
+ onestore: {
2835
+ config: {
2836
+ aura: {
2837
+ method: string;
2838
+ };
2839
+ };
2840
+ };
2841
+ }>>;
2842
+ buildAuraOperationWithBodySchema(): z.ZodEffects<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
2843
+ onestore: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
2844
+ config: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
2845
+ 'operation-type': z.ZodDefault<z.ZodEnum<["query", "mutation", "graphql"]>>;
2846
+ schema: z.ZodDefault<z.ZodEnum<["flattened", "default"]>>;
2847
+ bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
2848
+ type: z.ZodDefault<z.ZodEnum<["wire", "imperative", "imperative-legacy", "mutation"]>>;
2849
+ identifier: z.ZodDefault<z.ZodString>;
2850
+ }, "strip", z.ZodTypeAny, {
2851
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2852
+ identifier: string;
2853
+ }, {
2854
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2855
+ identifier?: string | undefined;
2856
+ }>, "many">>;
2857
+ exposeRefresh: z.ZodDefault<z.ZodBoolean>;
2858
+ 'body-param': z.ZodOptional<z.ZodString>;
2859
+ }, "strip", z.ZodTypeAny, {
2860
+ bindings: {
2861
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2862
+ identifier: string;
2863
+ }[];
2864
+ 'operation-type': "mutation" | "query" | "graphql";
2865
+ schema: "default" | "flattened";
2866
+ exposeRefresh: boolean;
2867
+ 'body-param'?: string | undefined;
2868
+ }, {
2869
+ bindings?: {
2870
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2871
+ identifier?: string | undefined;
2872
+ }[] | undefined;
2873
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2874
+ schema?: "default" | "flattened" | undefined;
2875
+ exposeRefresh?: boolean | undefined;
2876
+ 'body-param'?: string | undefined;
2877
+ }>>, {
2878
+ bindings: {
2879
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2880
+ identifier: string;
2881
+ }[];
2882
+ 'operation-type': "mutation" | "query" | "graphql";
2883
+ schema: "default" | "flattened";
2884
+ exposeRefresh: boolean;
2885
+ 'body-param'?: string | undefined;
2886
+ }, {
2887
+ bindings?: {
2888
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2889
+ identifier?: string | undefined;
2890
+ }[] | undefined;
2891
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2892
+ schema?: "default" | "flattened" | undefined;
2893
+ exposeRefresh?: boolean | undefined;
2894
+ 'body-param'?: string | undefined;
2895
+ } | undefined>, {
2896
+ bindings: {
2897
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2898
+ identifier: string;
2899
+ }[];
2900
+ 'operation-type': "mutation" | "query" | "graphql";
2901
+ schema: "default" | "flattened";
2902
+ exposeRefresh: boolean;
2903
+ 'body-param'?: string | undefined;
2904
+ }, {
2905
+ bindings?: {
2906
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2907
+ identifier?: string | undefined;
2908
+ }[] | undefined;
2909
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2910
+ schema?: "default" | "flattened" | undefined;
2911
+ exposeRefresh?: boolean | undefined;
2912
+ 'body-param'?: string | undefined;
2913
+ } | undefined>, {
2914
+ bindings: {
2915
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2916
+ identifier: string;
2917
+ }[];
2918
+ 'operation-type': "mutation" | "query" | "graphql";
2919
+ schema: "default" | "flattened";
2920
+ exposeRefresh: boolean;
2921
+ 'body-param'?: string | undefined;
2922
+ }, {
2923
+ bindings?: {
2924
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2925
+ identifier?: string | undefined;
2926
+ }[] | undefined;
2927
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2928
+ schema?: "default" | "flattened" | undefined;
2929
+ exposeRefresh?: boolean | undefined;
2930
+ 'body-param'?: string | undefined;
2931
+ } | undefined>, {
2932
+ bindings: {
2933
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2934
+ identifier: string;
2935
+ }[];
2936
+ 'operation-type': "mutation" | "query" | "graphql";
2937
+ schema: "default" | "flattened";
2938
+ exposeRefresh: boolean;
2939
+ 'body-param'?: string | undefined;
2940
+ }, {
2941
+ bindings?: {
2942
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2943
+ identifier?: string | undefined;
2944
+ }[] | undefined;
2945
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2946
+ schema?: "default" | "flattened" | undefined;
2947
+ exposeRefresh?: boolean | undefined;
2948
+ 'body-param'?: string | undefined;
2949
+ } | undefined>, {
2950
+ bindings: {
2951
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2952
+ identifier: string;
2953
+ }[];
2954
+ 'operation-type': "mutation" | "query" | "graphql";
2955
+ schema: "default" | "flattened";
2956
+ exposeRefresh: boolean;
2957
+ 'body-param'?: string | undefined;
2958
+ }, {
2959
+ bindings?: {
2960
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2961
+ identifier?: string | undefined;
2962
+ }[] | undefined;
2963
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2964
+ schema?: "default" | "flattened" | undefined;
2965
+ exposeRefresh?: boolean | undefined;
2966
+ 'body-param'?: string | undefined;
2967
+ } | undefined>, {
2968
+ bindings: {
2969
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2970
+ identifier: string;
2971
+ }[];
2972
+ 'operation-type': "mutation" | "query" | "graphql";
2973
+ schema: "default" | "flattened";
2974
+ exposeRefresh: boolean;
2975
+ 'body-param'?: string | undefined;
2976
+ }, {
2977
+ bindings?: {
2978
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2979
+ identifier?: string | undefined;
2980
+ }[] | undefined;
2981
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
2982
+ schema?: "default" | "flattened" | undefined;
2983
+ exposeRefresh?: boolean | undefined;
2984
+ 'body-param'?: string | undefined;
2985
+ } | undefined>, {
2986
+ bindings: {
2987
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
2988
+ identifier: string;
2989
+ }[];
2990
+ 'operation-type': "mutation" | "query" | "graphql";
2991
+ schema: "default" | "flattened";
2992
+ exposeRefresh: boolean;
2993
+ 'body-param'?: string | undefined;
2994
+ }, {
2995
+ bindings?: {
2996
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
2997
+ identifier?: string | undefined;
2998
+ }[] | undefined;
2999
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3000
+ schema?: "default" | "flattened" | undefined;
3001
+ exposeRefresh?: boolean | undefined;
3002
+ 'body-param'?: string | undefined;
3003
+ } | undefined>, {
3004
+ bindings: {
3005
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3006
+ identifier: string;
3007
+ }[];
3008
+ 'operation-type': "mutation" | "query" | "graphql";
3009
+ schema: "default" | "flattened";
3010
+ exposeRefresh: boolean;
3011
+ 'body-param'?: string | undefined;
3012
+ }, {
3013
+ bindings?: {
3014
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3015
+ identifier?: string | undefined;
3016
+ }[] | undefined;
3017
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3018
+ schema?: "default" | "flattened" | undefined;
3019
+ exposeRefresh?: boolean | undefined;
3020
+ 'body-param'?: string | undefined;
3021
+ } | undefined>;
3022
+ 'cache-strategy': z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3023
+ type: z.ZodLiteral<"none">;
3024
+ }, "strict", z.ZodTypeAny, {
3025
+ type: "none";
3026
+ }, {
3027
+ type: "none";
3028
+ }>, z.ZodObject<{
3029
+ type: z.ZodLiteral<"resource">;
3030
+ config: z.ZodObject<{
3031
+ 'max-age': z.ZodNumber;
3032
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
3033
+ }, "strict", z.ZodTypeAny, {
3034
+ 'max-age': number;
3035
+ 'stale-while-revalidate'?: number | undefined;
3036
+ }, {
3037
+ 'max-age': number;
3038
+ 'stale-while-revalidate'?: number | undefined;
3039
+ }>;
3040
+ }, "strict", z.ZodTypeAny, {
3041
+ type: "resource";
3042
+ config: {
3043
+ 'max-age': number;
3044
+ 'stale-while-revalidate'?: number | undefined;
3045
+ };
3046
+ }, {
3047
+ type: "resource";
3048
+ config: {
3049
+ 'max-age': number;
3050
+ 'stale-while-revalidate'?: number | undefined;
3051
+ };
3052
+ }>, z.ZodObject<{
3053
+ type: z.ZodLiteral<"normalized">;
3054
+ 'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3055
+ type: z.ZodLiteral<"max-age">;
3056
+ 'max-age': z.ZodNumber;
3057
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
3058
+ }, "strict", z.ZodTypeAny, {
3059
+ 'max-age': number;
3060
+ type: "max-age";
3061
+ 'stale-while-revalidate'?: number | undefined;
3062
+ }, {
3063
+ 'max-age': number;
3064
+ type: "max-age";
3065
+ 'stale-while-revalidate'?: number | undefined;
3066
+ }>, z.ZodObject<{
3067
+ type: z.ZodLiteral<"no-cache">;
3068
+ }, "strip", z.ZodTypeAny, {
3069
+ type: "no-cache";
3070
+ }, {
3071
+ type: "no-cache";
3072
+ }>]>>;
3073
+ key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
3074
+ }, "strict", z.ZodTypeAny, {
3075
+ type: "normalized";
3076
+ key?: Record<string, string> | undefined;
3077
+ 'cache-control'?: {
3078
+ 'max-age': number;
3079
+ type: "max-age";
3080
+ 'stale-while-revalidate'?: number | undefined;
3081
+ } | {
3082
+ type: "no-cache";
3083
+ } | undefined;
3084
+ }, {
3085
+ type: "normalized";
3086
+ key?: Record<string, string> | undefined;
3087
+ 'cache-control'?: {
3088
+ 'max-age': number;
3089
+ type: "max-age";
3090
+ 'stale-while-revalidate'?: number | undefined;
3091
+ } | {
3092
+ type: "no-cache";
3093
+ } | undefined;
3094
+ }>]>, {
3095
+ type: "none";
3096
+ } | {
3097
+ type: "resource";
3098
+ config: {
3099
+ 'max-age': number;
3100
+ 'stale-while-revalidate'?: number | undefined;
3101
+ };
3102
+ } | {
3103
+ type: "normalized";
3104
+ key?: Record<string, string> | undefined;
3105
+ 'cache-control'?: {
3106
+ 'max-age': number;
3107
+ type: "max-age";
3108
+ 'stale-while-revalidate'?: number | undefined;
3109
+ } | {
3110
+ type: "no-cache";
3111
+ } | undefined;
3112
+ }, unknown>;
3113
+ 'error-strategy': z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3114
+ type: z.ZodLiteral<"stringified">;
3115
+ }, "strict", z.ZodTypeAny, {
3116
+ type: "stringified";
3117
+ }, {
3118
+ type: "stringified";
3119
+ }>, z.ZodObject<{
3120
+ type: z.ZodLiteral<"fetchResponse">;
3121
+ }, "strict", z.ZodTypeAny, {
3122
+ type: "fetchResponse";
3123
+ }, {
3124
+ type: "fetchResponse";
3125
+ }>]>>;
3126
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
3127
+ ref: z.ZodString;
3128
+ }, "strict", z.ZodTypeAny, {
3129
+ ref: string;
3130
+ }, {
3131
+ ref: string;
3132
+ }>, z.ZodEffects<z.ZodObject<{
3133
+ version: z.ZodString;
3134
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3135
+ optional: z.ZodOptional<z.ZodBoolean>;
3136
+ }, "strict", z.ZodTypeAny, {
3137
+ version: string;
3138
+ tags?: Record<string, string> | undefined;
3139
+ optional?: boolean | undefined;
3140
+ }, {
3141
+ version: string;
3142
+ tags?: Record<string, string> | undefined;
3143
+ optional?: boolean | undefined;
3144
+ }>, {
3145
+ version: string;
3146
+ tags?: Record<string, string> | undefined;
3147
+ optional?: boolean | undefined;
3148
+ }, {
3149
+ version: string;
3150
+ tags?: Record<string, string> | undefined;
3151
+ optional?: boolean | undefined;
3152
+ }>]>>>;
3153
+ }, "strict", z.ZodTypeAny, {
3154
+ config: {
3155
+ bindings: {
3156
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3157
+ identifier: string;
3158
+ }[];
3159
+ 'operation-type': "mutation" | "query" | "graphql";
3160
+ schema: "default" | "flattened";
3161
+ exposeRefresh: boolean;
3162
+ 'body-param'?: string | undefined;
3163
+ };
3164
+ 'cache-strategy': {
3165
+ type: "none";
3166
+ } | {
3167
+ type: "resource";
3168
+ config: {
3169
+ 'max-age': number;
3170
+ 'stale-while-revalidate'?: number | undefined;
3171
+ };
3172
+ } | {
3173
+ type: "normalized";
3174
+ key?: Record<string, string> | undefined;
3175
+ 'cache-control'?: {
3176
+ 'max-age': number;
3177
+ type: "max-age";
3178
+ 'stale-while-revalidate'?: number | undefined;
3179
+ } | {
3180
+ type: "no-cache";
3181
+ } | undefined;
3182
+ };
3183
+ 'error-strategy': {
3184
+ type: "stringified";
3185
+ } | {
3186
+ type: "fetchResponse";
3187
+ };
3188
+ services?: Record<string, {
3189
+ ref: string;
3190
+ } | {
3191
+ version: string;
3192
+ tags?: Record<string, string> | undefined;
3193
+ optional?: boolean | undefined;
3194
+ }> | undefined;
3195
+ }, {
3196
+ services?: Record<string, {
3197
+ ref: string;
3198
+ } | {
3199
+ version: string;
3200
+ tags?: Record<string, string> | undefined;
3201
+ optional?: boolean | undefined;
3202
+ }> | undefined;
3203
+ config?: {
3204
+ bindings?: {
3205
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3206
+ identifier?: string | undefined;
3207
+ }[] | undefined;
3208
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3209
+ schema?: "default" | "flattened" | undefined;
3210
+ exposeRefresh?: boolean | undefined;
3211
+ 'body-param'?: string | undefined;
3212
+ } | undefined;
3213
+ 'cache-strategy'?: unknown;
3214
+ 'error-strategy'?: {
3215
+ type: "stringified";
3216
+ } | {
3217
+ type: "fetchResponse";
3218
+ } | undefined;
3219
+ }>>, {
3220
+ config: {
3221
+ bindings: {
3222
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3223
+ identifier: string;
3224
+ }[];
3225
+ 'operation-type': "mutation" | "query" | "graphql";
3226
+ schema: "default" | "flattened";
3227
+ exposeRefresh: boolean;
3228
+ 'body-param'?: string | undefined;
3229
+ };
3230
+ 'cache-strategy': {
3231
+ type: "none";
3232
+ } | {
3233
+ type: "resource";
3234
+ config: {
3235
+ 'max-age': number;
3236
+ 'stale-while-revalidate'?: number | undefined;
3237
+ };
3238
+ } | {
3239
+ type: "normalized";
3240
+ key?: Record<string, string> | undefined;
3241
+ 'cache-control'?: {
3242
+ 'max-age': number;
3243
+ type: "max-age";
3244
+ 'stale-while-revalidate'?: number | undefined;
3245
+ } | {
3246
+ type: "no-cache";
3247
+ } | undefined;
3248
+ };
3249
+ 'error-strategy': {
3250
+ type: "stringified";
3251
+ } | {
3252
+ type: "fetchResponse";
3253
+ };
3254
+ services?: Record<string, {
3255
+ ref: string;
3256
+ } | {
3257
+ version: string;
3258
+ tags?: Record<string, string> | undefined;
3259
+ optional?: boolean | undefined;
3260
+ }> | undefined;
3261
+ }, {
3262
+ services?: Record<string, {
3263
+ ref: string;
3264
+ } | {
3265
+ version: string;
3266
+ tags?: Record<string, string> | undefined;
3267
+ optional?: boolean | undefined;
3268
+ }> | undefined;
3269
+ config?: {
3270
+ bindings?: {
3271
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3272
+ identifier?: string | undefined;
3273
+ }[] | undefined;
3274
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3275
+ schema?: "default" | "flattened" | undefined;
3276
+ exposeRefresh?: boolean | undefined;
3277
+ 'body-param'?: string | undefined;
3278
+ } | undefined;
3279
+ 'cache-strategy'?: unknown;
3280
+ 'error-strategy'?: {
3281
+ type: "stringified";
3282
+ } | {
3283
+ type: "fetchResponse";
3284
+ } | undefined;
3285
+ } | undefined>, {
3286
+ config: {
3287
+ bindings: {
3288
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3289
+ identifier: string;
3290
+ }[];
3291
+ 'operation-type': "mutation" | "query" | "graphql";
3292
+ schema: "default" | "flattened";
3293
+ exposeRefresh: boolean;
3294
+ 'body-param'?: string | undefined;
3295
+ };
3296
+ 'cache-strategy': {
3297
+ type: "none";
3298
+ } | {
3299
+ type: "resource";
3300
+ config: {
3301
+ 'max-age': number;
3302
+ 'stale-while-revalidate'?: number | undefined;
3303
+ };
3304
+ } | {
3305
+ type: "normalized";
3306
+ key?: Record<string, string> | undefined;
3307
+ 'cache-control'?: {
3308
+ 'max-age': number;
3309
+ type: "max-age";
3310
+ 'stale-while-revalidate'?: number | undefined;
3311
+ } | {
3312
+ type: "no-cache";
3313
+ } | undefined;
3314
+ };
3315
+ 'error-strategy': {
3316
+ type: "stringified";
3317
+ } | {
3318
+ type: "fetchResponse";
3319
+ };
3320
+ services?: Record<string, {
3321
+ ref: string;
3322
+ } | {
3323
+ version: string;
3324
+ tags?: Record<string, string> | undefined;
3325
+ optional?: boolean | undefined;
3326
+ }> | undefined;
3327
+ }, {
3328
+ services?: Record<string, {
3329
+ ref: string;
3330
+ } | {
3331
+ version: string;
3332
+ tags?: Record<string, string> | undefined;
3333
+ optional?: boolean | undefined;
3334
+ }> | undefined;
3335
+ config?: {
3336
+ bindings?: {
3337
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3338
+ identifier?: string | undefined;
3339
+ }[] | undefined;
3340
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3341
+ schema?: "default" | "flattened" | undefined;
3342
+ exposeRefresh?: boolean | undefined;
3343
+ 'body-param'?: string | undefined;
3344
+ } | undefined;
3345
+ 'cache-strategy'?: unknown;
3346
+ 'error-strategy'?: {
3347
+ type: "stringified";
3348
+ } | {
3349
+ type: "fetchResponse";
3350
+ } | undefined;
3351
+ } | undefined>, {
3352
+ config: {
3353
+ bindings: {
3354
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3355
+ identifier: string;
3356
+ }[];
3357
+ 'operation-type': "mutation" | "query" | "graphql";
3358
+ schema: "default" | "flattened";
3359
+ exposeRefresh: boolean;
3360
+ 'body-param'?: string | undefined;
3361
+ };
3362
+ 'cache-strategy': {
3363
+ type: "none";
3364
+ } | {
3365
+ type: "resource";
3366
+ config: {
3367
+ 'max-age': number;
3368
+ 'stale-while-revalidate'?: number | undefined;
3369
+ };
3370
+ } | {
3371
+ type: "normalized";
3372
+ key?: Record<string, string> | undefined;
3373
+ 'cache-control'?: {
3374
+ 'max-age': number;
3375
+ type: "max-age";
3376
+ 'stale-while-revalidate'?: number | undefined;
3377
+ } | {
3378
+ type: "no-cache";
3379
+ } | undefined;
3380
+ };
3381
+ 'error-strategy': {
3382
+ type: "stringified";
3383
+ } | {
3384
+ type: "fetchResponse";
3385
+ };
3386
+ services?: Record<string, {
3387
+ ref: string;
3388
+ } | {
3389
+ version: string;
3390
+ tags?: Record<string, string> | undefined;
3391
+ optional?: boolean | undefined;
3392
+ }> | undefined;
3393
+ }, {
3394
+ services?: Record<string, {
3395
+ ref: string;
3396
+ } | {
3397
+ version: string;
3398
+ tags?: Record<string, string> | undefined;
3399
+ optional?: boolean | undefined;
3400
+ }> | undefined;
3401
+ config?: {
3402
+ bindings?: {
3403
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3404
+ identifier?: string | undefined;
3405
+ }[] | undefined;
3406
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3407
+ schema?: "default" | "flattened" | undefined;
3408
+ exposeRefresh?: boolean | undefined;
3409
+ 'body-param'?: string | undefined;
3410
+ } | undefined;
3411
+ 'cache-strategy'?: unknown;
3412
+ 'error-strategy'?: {
3413
+ type: "stringified";
3414
+ } | {
3415
+ type: "fetchResponse";
3416
+ } | undefined;
3417
+ } | undefined>, {
3418
+ config: {
3419
+ bindings: {
3420
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3421
+ identifier: string;
3422
+ }[];
3423
+ 'operation-type': "mutation" | "query" | "graphql";
3424
+ schema: "default" | "flattened";
3425
+ exposeRefresh: boolean;
3426
+ 'body-param'?: string | undefined;
3427
+ };
3428
+ 'cache-strategy': {
3429
+ type: "none";
3430
+ } | {
3431
+ type: "resource";
3432
+ config: {
3433
+ 'max-age': number;
3434
+ 'stale-while-revalidate'?: number | undefined;
3435
+ };
3436
+ } | {
3437
+ type: "normalized";
3438
+ key?: Record<string, string> | undefined;
3439
+ 'cache-control'?: {
3440
+ 'max-age': number;
3441
+ type: "max-age";
3442
+ 'stale-while-revalidate'?: number | undefined;
3443
+ } | {
3444
+ type: "no-cache";
3445
+ } | undefined;
3446
+ };
3447
+ 'error-strategy': {
3448
+ type: "stringified";
3449
+ } | {
3450
+ type: "fetchResponse";
3451
+ };
3452
+ services?: Record<string, {
3453
+ ref: string;
3454
+ } | {
3455
+ version: string;
3456
+ tags?: Record<string, string> | undefined;
3457
+ optional?: boolean | undefined;
3458
+ }> | undefined;
3459
+ }, {
3460
+ services?: Record<string, {
3461
+ ref: string;
3462
+ } | {
3463
+ version: string;
3464
+ tags?: Record<string, string> | undefined;
3465
+ optional?: boolean | undefined;
3466
+ }> | undefined;
3467
+ config?: {
3468
+ bindings?: {
3469
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3470
+ identifier?: string | undefined;
3471
+ }[] | undefined;
3472
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3473
+ schema?: "default" | "flattened" | undefined;
3474
+ exposeRefresh?: boolean | undefined;
3475
+ 'body-param'?: string | undefined;
3476
+ } | undefined;
3477
+ 'cache-strategy'?: unknown;
3478
+ 'error-strategy'?: {
3479
+ type: "stringified";
3480
+ } | {
3481
+ type: "fetchResponse";
3482
+ } | undefined;
3483
+ } | undefined>;
3484
+ }, "strip", z.ZodTypeAny, {
3485
+ onestore: {
3486
+ config: {
3487
+ bindings: {
3488
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3489
+ identifier: string;
3490
+ }[];
3491
+ 'operation-type': "mutation" | "query" | "graphql";
3492
+ schema: "default" | "flattened";
3493
+ exposeRefresh: boolean;
3494
+ 'body-param'?: string | undefined;
3495
+ };
3496
+ 'cache-strategy': {
3497
+ type: "none";
3498
+ } | {
3499
+ type: "resource";
3500
+ config: {
3501
+ 'max-age': number;
3502
+ 'stale-while-revalidate'?: number | undefined;
3503
+ };
3504
+ } | {
3505
+ type: "normalized";
3506
+ key?: Record<string, string> | undefined;
3507
+ 'cache-control'?: {
3508
+ 'max-age': number;
3509
+ type: "max-age";
3510
+ 'stale-while-revalidate'?: number | undefined;
3511
+ } | {
3512
+ type: "no-cache";
3513
+ } | undefined;
3514
+ };
3515
+ 'error-strategy': {
3516
+ type: "stringified";
3517
+ } | {
3518
+ type: "fetchResponse";
3519
+ };
3520
+ services?: Record<string, {
3521
+ ref: string;
3522
+ } | {
3523
+ version: string;
3524
+ tags?: Record<string, string> | undefined;
3525
+ optional?: boolean | undefined;
3526
+ }> | undefined;
3527
+ };
3528
+ }, {
3529
+ onestore?: {
3530
+ services?: Record<string, {
3531
+ ref: string;
3532
+ } | {
3533
+ version: string;
3534
+ tags?: Record<string, string> | undefined;
3535
+ optional?: boolean | undefined;
3536
+ }> | undefined;
3537
+ config?: {
3538
+ bindings?: {
3539
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3540
+ identifier?: string | undefined;
3541
+ }[] | undefined;
3542
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3543
+ schema?: "default" | "flattened" | undefined;
3544
+ exposeRefresh?: boolean | undefined;
3545
+ 'body-param'?: string | undefined;
3546
+ } | undefined;
3547
+ 'cache-strategy'?: unknown;
3548
+ 'error-strategy'?: {
3549
+ type: "stringified";
3550
+ } | {
3551
+ type: "fetchResponse";
3552
+ } | undefined;
3553
+ } | undefined;
3554
+ }>, z.ZodObject<{
3555
+ onestore: z.ZodObject<{
3556
+ config: z.ZodObject<{
3557
+ aura: z.ZodObject<{
3558
+ method: z.ZodString;
3559
+ }, "strip", z.ZodTypeAny, {
3560
+ method: string;
3561
+ }, {
3562
+ method: string;
3563
+ }>;
3564
+ }, "strip", z.ZodTypeAny, {
3565
+ aura: {
3566
+ method: string;
3567
+ };
3568
+ }, {
3569
+ aura: {
3570
+ method: string;
3571
+ };
3572
+ }>;
3573
+ }, "strip", z.ZodTypeAny, {
3574
+ config: {
3575
+ aura: {
3576
+ method: string;
3577
+ };
3578
+ };
3579
+ }, {
3580
+ config: {
3581
+ aura: {
3582
+ method: string;
3583
+ };
3584
+ };
3585
+ }>;
3586
+ }, "strip", z.ZodTypeAny, {
3587
+ onestore: {
3588
+ config: {
3589
+ aura: {
3590
+ method: string;
3591
+ };
3592
+ };
3593
+ };
3594
+ }, {
3595
+ onestore: {
3596
+ config: {
3597
+ aura: {
3598
+ method: string;
3599
+ };
3600
+ };
3601
+ };
3602
+ }>>, z.ZodObject<{
3603
+ onestore: z.ZodObject<{
3604
+ config: z.ZodObject<{
3605
+ aura: z.ZodObject<{
3606
+ 'body-param': z.ZodOptional<z.ZodString>;
3607
+ }, "strip", z.ZodTypeAny, {
3608
+ 'body-param'?: string | undefined;
3609
+ }, {
3610
+ 'body-param'?: string | undefined;
3611
+ }>;
3612
+ }, "strip", z.ZodTypeAny, {
3613
+ aura: {
3614
+ 'body-param'?: string | undefined;
3615
+ };
3616
+ }, {
3617
+ aura: {
3618
+ 'body-param'?: string | undefined;
3619
+ };
3620
+ }>;
3621
+ }, "strip", z.ZodTypeAny, {
3622
+ config: {
3623
+ aura: {
3624
+ 'body-param'?: string | undefined;
3625
+ };
3626
+ };
3627
+ }, {
3628
+ config: {
3629
+ aura: {
3630
+ 'body-param'?: string | undefined;
3631
+ };
3632
+ };
3633
+ }>;
3634
+ }, "strip", z.ZodTypeAny, {
3635
+ onestore: {
3636
+ config: {
3637
+ aura: {
3638
+ 'body-param'?: string | undefined;
3639
+ };
3640
+ };
3641
+ };
3642
+ }, {
3643
+ onestore: {
3644
+ config: {
3645
+ aura: {
3646
+ 'body-param'?: string | undefined;
3647
+ };
3648
+ };
3649
+ };
3650
+ }>>, ({
3651
+ onestore: {
3652
+ config: {
3653
+ bindings: {
3654
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3655
+ identifier: string;
3656
+ }[];
3657
+ 'operation-type': "mutation" | "query" | "graphql";
3658
+ schema: "default" | "flattened";
3659
+ exposeRefresh: boolean;
3660
+ 'body-param'?: string | undefined;
3661
+ };
3662
+ 'cache-strategy': {
3663
+ type: "none";
3664
+ } | {
3665
+ type: "resource";
3666
+ config: {
3667
+ 'max-age': number;
3668
+ 'stale-while-revalidate'?: number | undefined;
3669
+ };
3670
+ } | {
3671
+ type: "normalized";
3672
+ key?: Record<string, string> | undefined;
3673
+ 'cache-control'?: {
3674
+ 'max-age': number;
3675
+ type: "max-age";
3676
+ 'stale-while-revalidate'?: number | undefined;
3677
+ } | {
3678
+ type: "no-cache";
3679
+ } | undefined;
3680
+ };
3681
+ 'error-strategy': {
3682
+ type: "stringified";
3683
+ } | {
3684
+ type: "fetchResponse";
3685
+ };
3686
+ services?: Record<string, {
3687
+ ref: string;
3688
+ } | {
3689
+ version: string;
3690
+ tags?: Record<string, string> | undefined;
3691
+ optional?: boolean | undefined;
3692
+ }> | undefined;
3693
+ };
3694
+ } & {
3695
+ onestore: {
3696
+ config: {
3697
+ aura: {
3698
+ method: string;
3699
+ };
3700
+ };
3701
+ };
3702
+ } & {
3703
+ onestore: {
3704
+ config: {
3705
+ aura: {
3706
+ 'body-param'?: string | undefined;
3707
+ };
3708
+ };
3709
+ };
3710
+ }) | {
3711
+ onestore: {
3712
+ config: {
3713
+ 'body-param': string | undefined;
3714
+ aura: {
3715
+ 'body-param': string | undefined;
3716
+ method: string;
3717
+ };
3718
+ bindings: {
3719
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3720
+ identifier: string;
3721
+ }[];
3722
+ 'operation-type': "mutation" | "query" | "graphql";
3723
+ schema: "default" | "flattened";
3724
+ exposeRefresh: boolean;
3725
+ };
3726
+ };
3727
+ }, {
3728
+ onestore?: {
3729
+ services?: Record<string, {
3730
+ ref: string;
3731
+ } | {
3732
+ version: string;
3733
+ tags?: Record<string, string> | undefined;
3734
+ optional?: boolean | undefined;
3735
+ }> | undefined;
3736
+ config?: {
3737
+ bindings?: {
3738
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3739
+ identifier?: string | undefined;
3740
+ }[] | undefined;
3741
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3742
+ schema?: "default" | "flattened" | undefined;
3743
+ exposeRefresh?: boolean | undefined;
3744
+ 'body-param'?: string | undefined;
3745
+ } | undefined;
3746
+ 'cache-strategy'?: unknown;
3747
+ 'error-strategy'?: {
3748
+ type: "stringified";
3749
+ } | {
3750
+ type: "fetchResponse";
3751
+ } | undefined;
3752
+ } | undefined;
3753
+ } & {
3754
+ onestore: {
3755
+ config: {
3756
+ aura: {
3757
+ method: string;
3758
+ };
3759
+ };
3760
+ };
3761
+ } & {
3762
+ onestore: {
3763
+ config: {
3764
+ aura: {
3765
+ 'body-param'?: string | undefined;
3766
+ };
3767
+ };
3768
+ };
3769
+ }>;
3770
+ buildGraphQLOperationSchema(): z.ZodIntersection<z.ZodObject<{
3771
+ onestore: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
3772
+ config: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
3773
+ 'operation-type': z.ZodDefault<z.ZodEnum<["query", "mutation", "graphql"]>>;
3774
+ schema: z.ZodDefault<z.ZodEnum<["flattened", "default"]>>;
3775
+ bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
3776
+ type: z.ZodDefault<z.ZodEnum<["wire", "imperative", "imperative-legacy", "mutation"]>>;
3777
+ identifier: z.ZodDefault<z.ZodString>;
3778
+ }, "strip", z.ZodTypeAny, {
3779
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3780
+ identifier: string;
3781
+ }, {
3782
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3783
+ identifier?: string | undefined;
3784
+ }>, "many">>;
3785
+ exposeRefresh: z.ZodDefault<z.ZodBoolean>;
3786
+ 'body-param': z.ZodOptional<z.ZodString>;
3787
+ }, "strip", z.ZodTypeAny, {
3788
+ bindings: {
3789
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3790
+ identifier: string;
3791
+ }[];
3792
+ 'operation-type': "mutation" | "query" | "graphql";
3793
+ schema: "default" | "flattened";
3794
+ exposeRefresh: boolean;
3795
+ 'body-param'?: string | undefined;
3796
+ }, {
3797
+ bindings?: {
3798
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3799
+ identifier?: string | undefined;
3800
+ }[] | undefined;
3801
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3802
+ schema?: "default" | "flattened" | undefined;
3803
+ exposeRefresh?: boolean | undefined;
3804
+ 'body-param'?: string | undefined;
3805
+ }>>, {
3806
+ bindings: {
3807
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3808
+ identifier: string;
3809
+ }[];
3810
+ 'operation-type': "mutation" | "query" | "graphql";
3811
+ schema: "default" | "flattened";
3812
+ exposeRefresh: boolean;
3813
+ 'body-param'?: string | undefined;
3814
+ }, {
3815
+ bindings?: {
3816
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3817
+ identifier?: string | undefined;
3818
+ }[] | undefined;
3819
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3820
+ schema?: "default" | "flattened" | undefined;
3821
+ exposeRefresh?: boolean | undefined;
3822
+ 'body-param'?: string | undefined;
3823
+ } | undefined>, {
3824
+ bindings: {
3825
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3826
+ identifier: string;
3827
+ }[];
3828
+ 'operation-type': "mutation" | "query" | "graphql";
3829
+ schema: "default" | "flattened";
3830
+ exposeRefresh: boolean;
3831
+ 'body-param'?: string | undefined;
3832
+ }, {
3833
+ bindings?: {
3834
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3835
+ identifier?: string | undefined;
3836
+ }[] | undefined;
3837
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3838
+ schema?: "default" | "flattened" | undefined;
3839
+ exposeRefresh?: boolean | undefined;
3840
+ 'body-param'?: string | undefined;
3841
+ } | undefined>, {
3842
+ bindings: {
3843
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3844
+ identifier: string;
3845
+ }[];
3846
+ 'operation-type': "mutation" | "query" | "graphql";
3847
+ schema: "default" | "flattened";
3848
+ exposeRefresh: boolean;
3849
+ 'body-param'?: string | undefined;
3850
+ }, {
3851
+ bindings?: {
3852
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3853
+ identifier?: string | undefined;
3854
+ }[] | undefined;
3855
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3856
+ schema?: "default" | "flattened" | undefined;
3857
+ exposeRefresh?: boolean | undefined;
3858
+ 'body-param'?: string | undefined;
3859
+ } | undefined>, {
3860
+ bindings: {
3861
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3862
+ identifier: string;
3863
+ }[];
3864
+ 'operation-type': "mutation" | "query" | "graphql";
3865
+ schema: "default" | "flattened";
3866
+ exposeRefresh: boolean;
3867
+ 'body-param'?: string | undefined;
3868
+ }, {
3869
+ bindings?: {
3870
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3871
+ identifier?: string | undefined;
3872
+ }[] | undefined;
3873
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3874
+ schema?: "default" | "flattened" | undefined;
3875
+ exposeRefresh?: boolean | undefined;
3876
+ 'body-param'?: string | undefined;
3877
+ } | undefined>, {
3878
+ bindings: {
3879
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3880
+ identifier: string;
3881
+ }[];
3882
+ 'operation-type': "mutation" | "query" | "graphql";
3883
+ schema: "default" | "flattened";
3884
+ exposeRefresh: boolean;
3885
+ 'body-param'?: string | undefined;
3886
+ }, {
3887
+ bindings?: {
3888
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3889
+ identifier?: string | undefined;
3890
+ }[] | undefined;
3891
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3892
+ schema?: "default" | "flattened" | undefined;
3893
+ exposeRefresh?: boolean | undefined;
3894
+ 'body-param'?: string | undefined;
3895
+ } | undefined>, {
3896
+ bindings: {
3897
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3898
+ identifier: string;
3899
+ }[];
3900
+ 'operation-type': "mutation" | "query" | "graphql";
3901
+ schema: "default" | "flattened";
3902
+ exposeRefresh: boolean;
3903
+ 'body-param'?: string | undefined;
3904
+ }, {
3905
+ bindings?: {
3906
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3907
+ identifier?: string | undefined;
3908
+ }[] | undefined;
3909
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3910
+ schema?: "default" | "flattened" | undefined;
3911
+ exposeRefresh?: boolean | undefined;
3912
+ 'body-param'?: string | undefined;
3913
+ } | undefined>, {
3914
+ bindings: {
3915
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3916
+ identifier: string;
3917
+ }[];
3918
+ 'operation-type': "mutation" | "query" | "graphql";
3919
+ schema: "default" | "flattened";
3920
+ exposeRefresh: boolean;
3921
+ 'body-param'?: string | undefined;
3922
+ }, {
3923
+ bindings?: {
3924
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3925
+ identifier?: string | undefined;
3926
+ }[] | undefined;
3927
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3928
+ schema?: "default" | "flattened" | undefined;
3929
+ exposeRefresh?: boolean | undefined;
3930
+ 'body-param'?: string | undefined;
3931
+ } | undefined>, {
3932
+ bindings: {
3933
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
3934
+ identifier: string;
3935
+ }[];
3936
+ 'operation-type': "mutation" | "query" | "graphql";
3937
+ schema: "default" | "flattened";
3938
+ exposeRefresh: boolean;
3939
+ 'body-param'?: string | undefined;
3940
+ }, {
3941
+ bindings?: {
3942
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
3943
+ identifier?: string | undefined;
3944
+ }[] | undefined;
3945
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
3946
+ schema?: "default" | "flattened" | undefined;
3947
+ exposeRefresh?: boolean | undefined;
3948
+ 'body-param'?: string | undefined;
3949
+ } | undefined>;
3950
+ 'cache-strategy': z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3951
+ type: z.ZodLiteral<"none">;
3952
+ }, "strict", z.ZodTypeAny, {
3953
+ type: "none";
3954
+ }, {
3955
+ type: "none";
3956
+ }>, z.ZodObject<{
3957
+ type: z.ZodLiteral<"resource">;
3958
+ config: z.ZodObject<{
3959
+ 'max-age': z.ZodNumber;
3960
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
3961
+ }, "strict", z.ZodTypeAny, {
3962
+ 'max-age': number;
3963
+ 'stale-while-revalidate'?: number | undefined;
3964
+ }, {
3965
+ 'max-age': number;
3966
+ 'stale-while-revalidate'?: number | undefined;
3967
+ }>;
3968
+ }, "strict", z.ZodTypeAny, {
3969
+ type: "resource";
3970
+ config: {
3971
+ 'max-age': number;
3972
+ 'stale-while-revalidate'?: number | undefined;
3973
+ };
3974
+ }, {
3975
+ type: "resource";
3976
+ config: {
3977
+ 'max-age': number;
3978
+ 'stale-while-revalidate'?: number | undefined;
3979
+ };
3980
+ }>, z.ZodObject<{
3981
+ type: z.ZodLiteral<"normalized">;
3982
+ 'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3983
+ type: z.ZodLiteral<"max-age">;
3984
+ 'max-age': z.ZodNumber;
3985
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
3986
+ }, "strict", z.ZodTypeAny, {
3987
+ 'max-age': number;
3988
+ type: "max-age";
3989
+ 'stale-while-revalidate'?: number | undefined;
3990
+ }, {
3991
+ 'max-age': number;
3992
+ type: "max-age";
3993
+ 'stale-while-revalidate'?: number | undefined;
3994
+ }>, z.ZodObject<{
3995
+ type: z.ZodLiteral<"no-cache">;
3996
+ }, "strip", z.ZodTypeAny, {
3997
+ type: "no-cache";
3998
+ }, {
3999
+ type: "no-cache";
4000
+ }>]>>;
4001
+ key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
4002
+ }, "strict", z.ZodTypeAny, {
4003
+ type: "normalized";
4004
+ key?: Record<string, string> | undefined;
4005
+ 'cache-control'?: {
4006
+ 'max-age': number;
4007
+ type: "max-age";
4008
+ 'stale-while-revalidate'?: number | undefined;
4009
+ } | {
4010
+ type: "no-cache";
4011
+ } | undefined;
4012
+ }, {
4013
+ type: "normalized";
4014
+ key?: Record<string, string> | undefined;
4015
+ 'cache-control'?: {
4016
+ 'max-age': number;
4017
+ type: "max-age";
4018
+ 'stale-while-revalidate'?: number | undefined;
4019
+ } | {
4020
+ type: "no-cache";
4021
+ } | undefined;
4022
+ }>]>, {
4023
+ type: "none";
4024
+ } | {
4025
+ type: "resource";
4026
+ config: {
4027
+ 'max-age': number;
4028
+ 'stale-while-revalidate'?: number | undefined;
4029
+ };
4030
+ } | {
4031
+ type: "normalized";
4032
+ key?: Record<string, string> | undefined;
4033
+ 'cache-control'?: {
4034
+ 'max-age': number;
4035
+ type: "max-age";
4036
+ 'stale-while-revalidate'?: number | undefined;
4037
+ } | {
4038
+ type: "no-cache";
4039
+ } | undefined;
4040
+ }, unknown>;
4041
+ 'error-strategy': z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4042
+ type: z.ZodLiteral<"stringified">;
4043
+ }, "strict", z.ZodTypeAny, {
4044
+ type: "stringified";
4045
+ }, {
4046
+ type: "stringified";
4047
+ }>, z.ZodObject<{
4048
+ type: z.ZodLiteral<"fetchResponse">;
4049
+ }, "strict", z.ZodTypeAny, {
4050
+ type: "fetchResponse";
4051
+ }, {
4052
+ type: "fetchResponse";
4053
+ }>]>>;
4054
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
4055
+ ref: z.ZodString;
4056
+ }, "strict", z.ZodTypeAny, {
4057
+ ref: string;
4058
+ }, {
4059
+ ref: string;
4060
+ }>, z.ZodEffects<z.ZodObject<{
4061
+ version: z.ZodString;
4062
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4063
+ optional: z.ZodOptional<z.ZodBoolean>;
4064
+ }, "strict", z.ZodTypeAny, {
4065
+ version: string;
4066
+ tags?: Record<string, string> | undefined;
4067
+ optional?: boolean | undefined;
4068
+ }, {
4069
+ version: string;
4070
+ tags?: Record<string, string> | undefined;
4071
+ optional?: boolean | undefined;
4072
+ }>, {
4073
+ version: string;
4074
+ tags?: Record<string, string> | undefined;
4075
+ optional?: boolean | undefined;
4076
+ }, {
4077
+ version: string;
4078
+ tags?: Record<string, string> | undefined;
4079
+ optional?: boolean | undefined;
4080
+ }>]>>>;
4081
+ }, "strict", z.ZodTypeAny, {
4082
+ config: {
4083
+ bindings: {
4084
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
4085
+ identifier: string;
4086
+ }[];
4087
+ 'operation-type': "mutation" | "query" | "graphql";
4088
+ schema: "default" | "flattened";
4089
+ exposeRefresh: boolean;
4090
+ 'body-param'?: string | undefined;
4091
+ };
4092
+ 'cache-strategy': {
4093
+ type: "none";
4094
+ } | {
4095
+ type: "resource";
4096
+ config: {
4097
+ 'max-age': number;
4098
+ 'stale-while-revalidate'?: number | undefined;
4099
+ };
4100
+ } | {
4101
+ type: "normalized";
4102
+ key?: Record<string, string> | undefined;
4103
+ 'cache-control'?: {
4104
+ 'max-age': number;
4105
+ type: "max-age";
4106
+ 'stale-while-revalidate'?: number | undefined;
4107
+ } | {
4108
+ type: "no-cache";
4109
+ } | undefined;
4110
+ };
4111
+ 'error-strategy': {
4112
+ type: "stringified";
4113
+ } | {
4114
+ type: "fetchResponse";
4115
+ };
4116
+ services?: Record<string, {
4117
+ ref: string;
4118
+ } | {
4119
+ version: string;
4120
+ tags?: Record<string, string> | undefined;
4121
+ optional?: boolean | undefined;
4122
+ }> | undefined;
4123
+ }, {
4124
+ services?: Record<string, {
4125
+ ref: string;
4126
+ } | {
4127
+ version: string;
4128
+ tags?: Record<string, string> | undefined;
4129
+ optional?: boolean | undefined;
4130
+ }> | undefined;
4131
+ config?: {
4132
+ bindings?: {
4133
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
4134
+ identifier?: string | undefined;
4135
+ }[] | undefined;
4136
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
4137
+ schema?: "default" | "flattened" | undefined;
4138
+ exposeRefresh?: boolean | undefined;
4139
+ 'body-param'?: string | undefined;
4140
+ } | undefined;
4141
+ 'cache-strategy'?: unknown;
4142
+ 'error-strategy'?: {
4143
+ type: "stringified";
4144
+ } | {
4145
+ type: "fetchResponse";
4146
+ } | undefined;
4147
+ }>>, {
4148
+ config: {
4149
+ bindings: {
4150
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
4151
+ identifier: string;
4152
+ }[];
4153
+ 'operation-type': "mutation" | "query" | "graphql";
4154
+ schema: "default" | "flattened";
4155
+ exposeRefresh: boolean;
4156
+ 'body-param'?: string | undefined;
4157
+ };
4158
+ 'cache-strategy': {
4159
+ type: "none";
4160
+ } | {
4161
+ type: "resource";
4162
+ config: {
4163
+ 'max-age': number;
4164
+ 'stale-while-revalidate'?: number | undefined;
4165
+ };
4166
+ } | {
4167
+ type: "normalized";
4168
+ key?: Record<string, string> | undefined;
4169
+ 'cache-control'?: {
4170
+ 'max-age': number;
4171
+ type: "max-age";
4172
+ 'stale-while-revalidate'?: number | undefined;
4173
+ } | {
4174
+ type: "no-cache";
4175
+ } | undefined;
4176
+ };
4177
+ 'error-strategy': {
4178
+ type: "stringified";
4179
+ } | {
4180
+ type: "fetchResponse";
4181
+ };
4182
+ services?: Record<string, {
4183
+ ref: string;
4184
+ } | {
4185
+ version: string;
4186
+ tags?: Record<string, string> | undefined;
4187
+ optional?: boolean | undefined;
4188
+ }> | undefined;
4189
+ }, {
4190
+ services?: Record<string, {
4191
+ ref: string;
4192
+ } | {
4193
+ version: string;
4194
+ tags?: Record<string, string> | undefined;
4195
+ optional?: boolean | undefined;
4196
+ }> | undefined;
4197
+ config?: {
4198
+ bindings?: {
4199
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
4200
+ identifier?: string | undefined;
4201
+ }[] | undefined;
4202
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
4203
+ schema?: "default" | "flattened" | undefined;
4204
+ exposeRefresh?: boolean | undefined;
4205
+ 'body-param'?: string | undefined;
4206
+ } | undefined;
4207
+ 'cache-strategy'?: unknown;
4208
+ 'error-strategy'?: {
4209
+ type: "stringified";
4210
+ } | {
4211
+ type: "fetchResponse";
4212
+ } | undefined;
4213
+ } | undefined>, {
4214
+ config: {
4215
+ bindings: {
4216
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
4217
+ identifier: string;
4218
+ }[];
4219
+ 'operation-type': "mutation" | "query" | "graphql";
4220
+ schema: "default" | "flattened";
4221
+ exposeRefresh: boolean;
4222
+ 'body-param'?: string | undefined;
4223
+ };
4224
+ 'cache-strategy': {
4225
+ type: "none";
4226
+ } | {
4227
+ type: "resource";
4228
+ config: {
4229
+ 'max-age': number;
4230
+ 'stale-while-revalidate'?: number | undefined;
4231
+ };
4232
+ } | {
4233
+ type: "normalized";
4234
+ key?: Record<string, string> | undefined;
4235
+ 'cache-control'?: {
4236
+ 'max-age': number;
4237
+ type: "max-age";
4238
+ 'stale-while-revalidate'?: number | undefined;
4239
+ } | {
4240
+ type: "no-cache";
4241
+ } | undefined;
4242
+ };
4243
+ 'error-strategy': {
4244
+ type: "stringified";
4245
+ } | {
4246
+ type: "fetchResponse";
4247
+ };
4248
+ services?: Record<string, {
4249
+ ref: string;
4250
+ } | {
4251
+ version: string;
4252
+ tags?: Record<string, string> | undefined;
4253
+ optional?: boolean | undefined;
4254
+ }> | undefined;
4255
+ }, {
4256
+ services?: Record<string, {
4257
+ ref: string;
4258
+ } | {
4259
+ version: string;
4260
+ tags?: Record<string, string> | undefined;
4261
+ optional?: boolean | undefined;
4262
+ }> | undefined;
4263
+ config?: {
4264
+ bindings?: {
4265
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
4266
+ identifier?: string | undefined;
4267
+ }[] | undefined;
4268
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
4269
+ schema?: "default" | "flattened" | undefined;
4270
+ exposeRefresh?: boolean | undefined;
4271
+ 'body-param'?: string | undefined;
4272
+ } | undefined;
4273
+ 'cache-strategy'?: unknown;
4274
+ 'error-strategy'?: {
4275
+ type: "stringified";
4276
+ } | {
4277
+ type: "fetchResponse";
4278
+ } | undefined;
4279
+ } | undefined>, {
4280
+ config: {
4281
+ bindings: {
4282
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
4283
+ identifier: string;
4284
+ }[];
4285
+ 'operation-type': "mutation" | "query" | "graphql";
4286
+ schema: "default" | "flattened";
4287
+ exposeRefresh: boolean;
4288
+ 'body-param'?: string | undefined;
4289
+ };
4290
+ 'cache-strategy': {
4291
+ type: "none";
4292
+ } | {
4293
+ type: "resource";
4294
+ config: {
4295
+ 'max-age': number;
4296
+ 'stale-while-revalidate'?: number | undefined;
4297
+ };
4298
+ } | {
4299
+ type: "normalized";
4300
+ key?: Record<string, string> | undefined;
4301
+ 'cache-control'?: {
4302
+ 'max-age': number;
4303
+ type: "max-age";
4304
+ 'stale-while-revalidate'?: number | undefined;
4305
+ } | {
4306
+ type: "no-cache";
4307
+ } | undefined;
4308
+ };
4309
+ 'error-strategy': {
4310
+ type: "stringified";
4311
+ } | {
4312
+ type: "fetchResponse";
4313
+ };
4314
+ services?: Record<string, {
4315
+ ref: string;
4316
+ } | {
4317
+ version: string;
4318
+ tags?: Record<string, string> | undefined;
4319
+ optional?: boolean | undefined;
4320
+ }> | undefined;
4321
+ }, {
4322
+ services?: Record<string, {
4323
+ ref: string;
4324
+ } | {
4325
+ version: string;
4326
+ tags?: Record<string, string> | undefined;
4327
+ optional?: boolean | undefined;
4328
+ }> | undefined;
4329
+ config?: {
4330
+ bindings?: {
4331
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
4332
+ identifier?: string | undefined;
4333
+ }[] | undefined;
4334
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
4335
+ schema?: "default" | "flattened" | undefined;
4336
+ exposeRefresh?: boolean | undefined;
4337
+ 'body-param'?: string | undefined;
4338
+ } | undefined;
4339
+ 'cache-strategy'?: unknown;
4340
+ 'error-strategy'?: {
4341
+ type: "stringified";
4342
+ } | {
4343
+ type: "fetchResponse";
4344
+ } | undefined;
4345
+ } | undefined>, {
4346
+ config: {
4347
+ bindings: {
4348
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
4349
+ identifier: string;
4350
+ }[];
4351
+ 'operation-type': "mutation" | "query" | "graphql";
4352
+ schema: "default" | "flattened";
4353
+ exposeRefresh: boolean;
4354
+ 'body-param'?: string | undefined;
4355
+ };
4356
+ 'cache-strategy': {
4357
+ type: "none";
4358
+ } | {
4359
+ type: "resource";
4360
+ config: {
4361
+ 'max-age': number;
4362
+ 'stale-while-revalidate'?: number | undefined;
4363
+ };
4364
+ } | {
4365
+ type: "normalized";
4366
+ key?: Record<string, string> | undefined;
4367
+ 'cache-control'?: {
4368
+ 'max-age': number;
4369
+ type: "max-age";
4370
+ 'stale-while-revalidate'?: number | undefined;
4371
+ } | {
4372
+ type: "no-cache";
4373
+ } | undefined;
4374
+ };
4375
+ 'error-strategy': {
4376
+ type: "stringified";
4377
+ } | {
4378
+ type: "fetchResponse";
4379
+ };
4380
+ services?: Record<string, {
4381
+ ref: string;
4382
+ } | {
4383
+ version: string;
4384
+ tags?: Record<string, string> | undefined;
4385
+ optional?: boolean | undefined;
4386
+ }> | undefined;
4387
+ }, {
4388
+ services?: Record<string, {
4389
+ ref: string;
4390
+ } | {
4391
+ version: string;
4392
+ tags?: Record<string, string> | undefined;
4393
+ optional?: boolean | undefined;
4394
+ }> | undefined;
4395
+ config?: {
4396
+ bindings?: {
4397
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
4398
+ identifier?: string | undefined;
4399
+ }[] | undefined;
4400
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
4401
+ schema?: "default" | "flattened" | undefined;
4402
+ exposeRefresh?: boolean | undefined;
4403
+ 'body-param'?: string | undefined;
4404
+ } | undefined;
4405
+ 'cache-strategy'?: unknown;
4406
+ 'error-strategy'?: {
4407
+ type: "stringified";
4408
+ } | {
4409
+ type: "fetchResponse";
4410
+ } | undefined;
4411
+ } | undefined>;
4412
+ }, "strip", z.ZodTypeAny, {
4413
+ onestore: {
4414
+ config: {
4415
+ bindings: {
4416
+ type: "wire" | "imperative" | "imperative-legacy" | "mutation";
4417
+ identifier: string;
4418
+ }[];
4419
+ 'operation-type': "mutation" | "query" | "graphql";
4420
+ schema: "default" | "flattened";
4421
+ exposeRefresh: boolean;
4422
+ 'body-param'?: string | undefined;
4423
+ };
4424
+ 'cache-strategy': {
4425
+ type: "none";
4426
+ } | {
4427
+ type: "resource";
4428
+ config: {
4429
+ 'max-age': number;
4430
+ 'stale-while-revalidate'?: number | undefined;
4431
+ };
4432
+ } | {
4433
+ type: "normalized";
4434
+ key?: Record<string, string> | undefined;
4435
+ 'cache-control'?: {
4436
+ 'max-age': number;
4437
+ type: "max-age";
4438
+ 'stale-while-revalidate'?: number | undefined;
4439
+ } | {
4440
+ type: "no-cache";
4441
+ } | undefined;
4442
+ };
4443
+ 'error-strategy': {
4444
+ type: "stringified";
4445
+ } | {
4446
+ type: "fetchResponse";
4447
+ };
4448
+ services?: Record<string, {
4449
+ ref: string;
4450
+ } | {
4451
+ version: string;
4452
+ tags?: Record<string, string> | undefined;
4453
+ optional?: boolean | undefined;
4454
+ }> | undefined;
4455
+ };
4456
+ }, {
4457
+ onestore?: {
4458
+ services?: Record<string, {
4459
+ ref: string;
4460
+ } | {
4461
+ version: string;
4462
+ tags?: Record<string, string> | undefined;
4463
+ optional?: boolean | undefined;
4464
+ }> | undefined;
4465
+ config?: {
4466
+ bindings?: {
4467
+ type?: "wire" | "imperative" | "imperative-legacy" | "mutation" | undefined;
4468
+ identifier?: string | undefined;
4469
+ }[] | undefined;
4470
+ 'operation-type'?: "mutation" | "query" | "graphql" | undefined;
4471
+ schema?: "default" | "flattened" | undefined;
4472
+ exposeRefresh?: boolean | undefined;
4473
+ 'body-param'?: string | undefined;
4474
+ } | undefined;
4475
+ 'cache-strategy'?: unknown;
4476
+ 'error-strategy'?: {
4477
+ type: "stringified";
4478
+ } | {
4479
+ type: "fetchResponse";
4480
+ } | undefined;
4481
+ } | undefined;
4482
+ }>, z.ZodObject<{
4483
+ onestore: z.ZodObject<{
4484
+ config: z.ZodObject<{
4485
+ graphql: z.ZodObject<{
4486
+ schema: z.ZodString;
4487
+ 'type-metadata': z.ZodDefault<z.ZodArray<z.ZodObject<{
4488
+ typename: z.ZodString;
4489
+ 'cache-control': z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4490
+ type: z.ZodLiteral<"max-age">;
4491
+ 'max-age': z.ZodNumber;
4492
+ 'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
4493
+ }, "strict", z.ZodTypeAny, {
4494
+ 'max-age': number;
4495
+ type: "max-age";
4496
+ 'stale-while-revalidate'?: number | undefined;
4497
+ }, {
4498
+ 'max-age': number;
4499
+ type: "max-age";
4500
+ 'stale-while-revalidate'?: number | undefined;
4501
+ }>, z.ZodObject<{
4502
+ type: z.ZodLiteral<"no-cache">;
4503
+ }, "strip", z.ZodTypeAny, {
4504
+ type: "no-cache";
4505
+ }, {
4506
+ type: "no-cache";
4507
+ }>]>;
4508
+ }, "strip", z.ZodTypeAny, {
4509
+ 'cache-control': {
4510
+ 'max-age': number;
4511
+ type: "max-age";
4512
+ 'stale-while-revalidate'?: number | undefined;
4513
+ } | {
4514
+ type: "no-cache";
4515
+ };
4516
+ typename: string;
4517
+ }, {
4518
+ 'cache-control': {
4519
+ 'max-age': number;
4520
+ type: "max-age";
4521
+ 'stale-while-revalidate'?: number | undefined;
4522
+ } | {
4523
+ type: "no-cache";
4524
+ };
4525
+ typename: string;
4526
+ }>, "many">>;
4527
+ }, "strip", z.ZodTypeAny, {
4528
+ schema: string;
4529
+ 'type-metadata': {
4530
+ 'cache-control': {
4531
+ 'max-age': number;
4532
+ type: "max-age";
4533
+ 'stale-while-revalidate'?: number | undefined;
4534
+ } | {
4535
+ type: "no-cache";
4536
+ };
4537
+ typename: string;
4538
+ }[];
4539
+ }, {
4540
+ schema: string;
4541
+ 'type-metadata'?: {
4542
+ 'cache-control': {
4543
+ 'max-age': number;
4544
+ type: "max-age";
4545
+ 'stale-while-revalidate'?: number | undefined;
4546
+ } | {
4547
+ type: "no-cache";
4548
+ };
4549
+ typename: string;
4550
+ }[] | undefined;
4551
+ }>;
4552
+ }, "strip", z.ZodTypeAny, {
4553
+ graphql: {
4554
+ schema: string;
4555
+ 'type-metadata': {
4556
+ 'cache-control': {
4557
+ 'max-age': number;
4558
+ type: "max-age";
4559
+ 'stale-while-revalidate'?: number | undefined;
4560
+ } | {
4561
+ type: "no-cache";
4562
+ };
4563
+ typename: string;
4564
+ }[];
4565
+ };
4566
+ }, {
4567
+ graphql: {
4568
+ schema: string;
4569
+ 'type-metadata'?: {
4570
+ 'cache-control': {
4571
+ 'max-age': number;
4572
+ type: "max-age";
4573
+ 'stale-while-revalidate'?: number | undefined;
4574
+ } | {
4575
+ type: "no-cache";
4576
+ };
4577
+ typename: string;
4578
+ }[] | undefined;
4579
+ };
4580
+ }>;
4581
+ }, "strip", z.ZodTypeAny, {
4582
+ config: {
4583
+ graphql: {
4584
+ schema: string;
4585
+ 'type-metadata': {
4586
+ 'cache-control': {
4587
+ 'max-age': number;
4588
+ type: "max-age";
4589
+ 'stale-while-revalidate'?: number | undefined;
4590
+ } | {
4591
+ type: "no-cache";
4592
+ };
4593
+ typename: string;
4594
+ }[];
4595
+ };
4596
+ };
4597
+ }, {
4598
+ config: {
4599
+ graphql: {
4600
+ schema: string;
4601
+ 'type-metadata'?: {
4602
+ 'cache-control': {
4603
+ 'max-age': number;
4604
+ type: "max-age";
4605
+ 'stale-while-revalidate'?: number | undefined;
4606
+ } | {
4607
+ type: "no-cache";
4608
+ };
4609
+ typename: string;
4610
+ }[] | undefined;
4611
+ };
4612
+ };
4613
+ }>;
4614
+ }, "strip", z.ZodTypeAny, {
4615
+ onestore: {
4616
+ config: {
4617
+ graphql: {
4618
+ schema: string;
4619
+ 'type-metadata': {
4620
+ 'cache-control': {
4621
+ 'max-age': number;
4622
+ type: "max-age";
4623
+ 'stale-while-revalidate'?: number | undefined;
4624
+ } | {
4625
+ type: "no-cache";
4626
+ };
4627
+ typename: string;
4628
+ }[];
4629
+ };
4630
+ };
4631
+ };
4632
+ }, {
4633
+ onestore: {
4634
+ config: {
4635
+ graphql: {
4636
+ schema: string;
4637
+ 'type-metadata'?: {
4638
+ 'cache-control': {
4639
+ 'max-age': number;
4640
+ type: "max-age";
4641
+ 'stale-while-revalidate'?: number | undefined;
4642
+ } | {
4643
+ type: "no-cache";
4644
+ };
4645
+ typename: string;
4646
+ }[] | undefined;
4647
+ };
4648
+ };
4649
+ };
4650
+ }>>;
4651
+ }