@taqueria/protocol 0.18.0 → 0.19.3

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 (119) hide show
  1. package/Alias.d.ts +10 -16
  2. package/Alias.d.ts.map +1 -0
  3. package/Base.d.ts +8 -10
  4. package/Base.d.ts.map +1 -0
  5. package/Base.js +1 -1
  6. package/Base.js.map +1 -1
  7. package/Base.mjs +1 -1
  8. package/Base.mjs.map +1 -1
  9. package/Command.d.ts +9 -15
  10. package/Command.d.ts.map +1 -0
  11. package/Config.d.ts +210 -216
  12. package/Config.d.ts.map +1 -0
  13. package/Config.js +18 -21
  14. package/Config.js.map +1 -1
  15. package/Config.mjs +19 -22
  16. package/Config.mjs.map +1 -1
  17. package/Contract.d.ts +10 -16
  18. package/Contract.d.ts.map +1 -0
  19. package/Crypto.d.ts +2 -3
  20. package/Crypto.d.ts.map +1 -0
  21. package/EconomicalProtocolHash.d.ts +12 -19
  22. package/EconomicalProtocolHash.d.ts.map +1 -0
  23. package/Environment.d.ts +14 -22
  24. package/Environment.d.ts.map +1 -0
  25. package/EphemeralState.d.ts +162 -169
  26. package/EphemeralState.d.ts.map +1 -0
  27. package/Faucet.d.ts +108 -114
  28. package/Faucet.d.ts.map +1 -0
  29. package/Faucet.js +32 -20
  30. package/Faucet.js.map +1 -1
  31. package/Faucet.mjs +32 -20
  32. package/Faucet.mjs.map +1 -1
  33. package/HumanReadableIdentifier.d.ts +9 -15
  34. package/HumanReadableIdentifier.d.ts.map +1 -0
  35. package/InstalledPlugin.d.ts +13 -20
  36. package/InstalledPlugin.d.ts.map +1 -0
  37. package/LoadedConfig.d.ts +217 -223
  38. package/LoadedConfig.d.ts.map +1 -0
  39. package/MetadataConfig.d.ts +13 -20
  40. package/MetadataConfig.d.ts.map +1 -0
  41. package/NetworkConfig.d.ts +121 -127
  42. package/NetworkConfig.d.ts.map +1 -0
  43. package/Operation.d.ts +67 -73
  44. package/Operation.d.ts.map +1 -0
  45. package/Option.d.ts +14 -21
  46. package/Option.d.ts.map +1 -0
  47. package/ParsedOperation.d.ts +56 -64
  48. package/ParsedOperation.d.ts.map +1 -0
  49. package/ParsedTemplate.d.ts +49 -57
  50. package/ParsedTemplate.d.ts.map +1 -0
  51. package/PersistentState.d.ts +18 -24
  52. package/PersistentState.d.ts.map +1 -0
  53. package/PluginActionName.d.ts +6 -7
  54. package/PluginActionName.d.ts.map +1 -0
  55. package/PluginDependenciesResponse.d.ts +14 -20
  56. package/PluginDependenciesResponse.d.ts.map +1 -0
  57. package/PluginInfo.d.ts +38 -45
  58. package/PluginInfo.d.ts.map +1 -0
  59. package/PluginJsonResponse.d.ts +11 -16
  60. package/PluginJsonResponse.d.ts.map +1 -0
  61. package/PluginProxyResponse.d.ts +9 -16
  62. package/PluginProxyResponse.d.ts.map +1 -0
  63. package/PluginResponseEncoding.d.ts +11 -18
  64. package/PluginResponseEncoding.d.ts.map +1 -0
  65. package/PluginSchema.d.ts +419 -427
  66. package/PluginSchema.d.ts.map +1 -0
  67. package/PositionalArg.d.ts +13 -20
  68. package/PositionalArg.d.ts.map +1 -0
  69. package/Provisioner.d.ts +16 -23
  70. package/Provisioner.d.ts.map +1 -0
  71. package/ProvisionerID.d.ts +12 -19
  72. package/ProvisionerID.d.ts.map +1 -0
  73. package/Provisions.d.ts +12 -19
  74. package/Provisions.d.ts.map +1 -0
  75. package/PublicKeyHash.d.ts +13 -20
  76. package/PublicKeyHash.d.ts.map +1 -0
  77. package/RequestArgs.d.ts +508 -517
  78. package/RequestArgs.d.ts.map +1 -0
  79. package/SHA256.d.ts +11 -15
  80. package/SHA256.d.ts.map +1 -0
  81. package/SandboxAccountConfig.d.ts +13 -20
  82. package/SandboxAccountConfig.d.ts.map +1 -0
  83. package/SandboxConfig.d.ts +13 -20
  84. package/SandboxConfig.d.ts.map +1 -0
  85. package/SanitizedAbsPath.d.ts +12 -19
  86. package/SanitizedAbsPath.d.ts.map +1 -0
  87. package/SanitizedArgs.d.ts +76 -83
  88. package/SanitizedArgs.d.ts.map +1 -0
  89. package/SanitizedPath.d.ts +9 -15
  90. package/SanitizedPath.d.ts.map +1 -0
  91. package/ScaffoldConfig.d.ts +3 -4
  92. package/ScaffoldConfig.d.ts.map +1 -0
  93. package/Settings.d.ts +13 -20
  94. package/Settings.d.ts.map +1 -0
  95. package/SingleChar.d.ts +12 -19
  96. package/SingleChar.d.ts.map +1 -0
  97. package/TaqError.d.ts +10 -13
  98. package/TaqError.d.ts.map +1 -0
  99. package/Task.d.ts +13 -20
  100. package/Task.d.ts.map +1 -0
  101. package/Template.d.ts +97 -105
  102. package/Template.d.ts.map +1 -0
  103. package/Timestamp.d.ts +13 -20
  104. package/Timestamp.d.ts.map +1 -0
  105. package/Tz.d.ts +11 -18
  106. package/Tz.d.ts.map +1 -0
  107. package/Url.d.ts +13 -20
  108. package/Url.d.ts.map +1 -0
  109. package/Verb.d.ts +12 -19
  110. package/Verb.d.ts.map +1 -0
  111. package/VersionNumber.d.ts +9 -15
  112. package/VersionNumber.d.ts.map +1 -0
  113. package/i18n.d.ts +4 -4
  114. package/i18n.d.ts.map +1 -0
  115. package/package.json +3 -3
  116. package/taqueria-protocol-types.d.ts +37 -72
  117. package/taqueria-protocol-types.d.ts.map +1 -0
  118. package/tzkt-config.d.ts +13 -20
  119. package/tzkt-config.d.ts.map +1 -0
package/Operation.d.ts CHANGED
@@ -1,12 +1,9 @@
1
- import * as fluture from 'fluture';
2
- import { TaqError } from './TaqError.js';
3
1
  import { Flatten } from '@taqueria/protocol/Base';
4
2
  import * as PersistentState from '@taqueria/protocol/PersistentState';
5
3
  import * as RequestArgs from '@taqueria/protocol/RequestArgs';
6
4
  import { z } from 'zod';
7
-
8
5
  declare type Handler = (state: PersistentState.t) => <T extends RequestArgs.t>(opts: T) => unknown;
9
- declare const rawSchema: z.ZodObject<{
6
+ export declare const rawSchema: z.ZodObject<{
10
7
  operation: z.ZodString;
11
8
  command: z.ZodString;
12
9
  description: z.ZodOptional<z.ZodString>;
@@ -134,7 +131,6 @@ declare const rawSchema: z.ZodObject<{
134
131
  }>;
135
132
  }, ...args_1: unknown[]) => (args_0: any, ...args_1: unknown[]) => unknown>;
136
133
  }, "strip", z.ZodTypeAny, {
137
- description?: string | undefined;
138
134
  options?: {
139
135
  boolean?: boolean | undefined;
140
136
  type?: "string" | "number" | "boolean" | undefined;
@@ -145,6 +141,7 @@ declare const rawSchema: z.ZodObject<{
145
141
  description: string;
146
142
  flag: string;
147
143
  }[] | undefined;
144
+ description?: string | undefined;
148
145
  positionals?: {
149
146
  type?: "string" | "number" | "boolean" | undefined;
150
147
  defaultValue?: string | number | boolean | undefined;
@@ -156,8 +153,8 @@ declare const rawSchema: z.ZodObject<{
156
153
  command: string;
157
154
  handler: Handler;
158
155
  }, {
159
- description?: string | undefined;
160
156
  options?: unknown;
157
+ description?: string | undefined;
161
158
  positionals?: {
162
159
  type?: "string" | "number" | "boolean" | undefined;
163
160
  defaultValue?: string | number | boolean | undefined;
@@ -181,7 +178,7 @@ declare const rawSchema: z.ZodObject<{
181
178
  }>;
182
179
  }, ...args_1: unknown[]) => (args_0: any, ...args_1: unknown[]) => unknown;
183
180
  }>;
184
- declare const internalSchema: z.ZodObject<{
181
+ export declare const internalSchema: z.ZodObject<{
185
182
  operation: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
186
183
  readonly __kind: any;
187
184
  }, any>, string & {
@@ -330,7 +327,7 @@ declare const internalSchema: z.ZodObject<{
330
327
  readonly __kind: any;
331
328
  };
332
329
  }> | undefined;
333
- network?: Record<string, string | Flatten<{
330
+ network?: Record<string, Flatten<{
334
331
  label: string & {
335
332
  readonly __kind: any;
336
333
  };
@@ -341,21 +338,21 @@ declare const internalSchema: z.ZodObject<{
341
338
  readonly __kind: any;
342
339
  };
343
340
  faucet: Flatten<{
341
+ email?: string | undefined;
342
+ password?: string | undefined;
343
+ amount?: string | undefined;
344
+ activation_code?: string | undefined;
345
+ mnemonic: string[];
344
346
  pkh: string & {
345
347
  readonly __kind: any;
346
348
  };
347
- mnemonic: string[];
348
- email: string;
349
- password: string;
350
- amount: string;
351
- activation_code: string;
352
349
  } & {
353
350
  readonly __kind: any;
354
351
  }>;
355
352
  } & {
356
353
  readonly __kind: any;
357
354
  }>> | undefined;
358
- sandbox?: Record<string, string | ({
355
+ sandbox?: Record<string, {
359
356
  attributes?: Record<string, string | number | boolean> | undefined;
360
357
  plugin?: (string & {
361
358
  readonly __kind: any;
@@ -385,7 +382,7 @@ declare const internalSchema: z.ZodObject<{
385
382
  };
386
383
  } & {
387
384
  readonly __kind: any;
388
- })> | undefined;
385
+ }> | undefined;
389
386
  environment?: Record<string, string | Flatten<{
390
387
  storage?: Record<string, any> | undefined;
391
388
  aliases?: Record<string, any> | undefined;
@@ -455,7 +452,7 @@ declare const internalSchema: z.ZodObject<{
455
452
  readonly __kind: any;
456
453
  };
457
454
  }> | undefined;
458
- network?: Record<string, string | Flatten<{
455
+ network?: Record<string, Flatten<{
459
456
  label: string & {
460
457
  readonly __kind: any;
461
458
  };
@@ -466,21 +463,21 @@ declare const internalSchema: z.ZodObject<{
466
463
  readonly __kind: any;
467
464
  };
468
465
  faucet: Flatten<{
466
+ email?: string | undefined;
467
+ password?: string | undefined;
468
+ amount?: string | undefined;
469
+ activation_code?: string | undefined;
470
+ mnemonic: string[];
469
471
  pkh: string & {
470
472
  readonly __kind: any;
471
473
  };
472
- mnemonic: string[];
473
- email: string;
474
- password: string;
475
- amount: string;
476
- activation_code: string;
477
474
  } & {
478
475
  readonly __kind: any;
479
476
  }>;
480
477
  } & {
481
478
  readonly __kind: any;
482
479
  }>> | undefined;
483
- sandbox?: Record<string, string | ({
480
+ sandbox?: Record<string, {
484
481
  attributes?: Record<string, string | number | boolean> | undefined;
485
482
  plugin?: (string & {
486
483
  readonly __kind: any;
@@ -510,7 +507,7 @@ declare const internalSchema: z.ZodObject<{
510
507
  };
511
508
  } & {
512
509
  readonly __kind: any;
513
- })> | undefined;
510
+ }> | undefined;
514
511
  environment?: Record<string, string | Flatten<{
515
512
  storage?: Record<string, any> | undefined;
516
513
  aliases?: Record<string, any> | undefined;
@@ -592,7 +589,7 @@ declare const internalSchema: z.ZodObject<{
592
589
  readonly __kind: any;
593
590
  };
594
591
  }> | undefined;
595
- network?: Record<string, string | Flatten<{
592
+ network?: Record<string, Flatten<{
596
593
  label: string & {
597
594
  readonly __kind: any;
598
595
  };
@@ -603,21 +600,21 @@ declare const internalSchema: z.ZodObject<{
603
600
  readonly __kind: any;
604
601
  };
605
602
  faucet: Flatten<{
603
+ email?: string | undefined;
604
+ password?: string | undefined;
605
+ amount?: string | undefined;
606
+ activation_code?: string | undefined;
607
+ mnemonic: string[];
606
608
  pkh: string & {
607
609
  readonly __kind: any;
608
610
  };
609
- mnemonic: string[];
610
- email: string;
611
- password: string;
612
- amount: string;
613
- activation_code: string;
614
611
  } & {
615
612
  readonly __kind: any;
616
613
  }>;
617
614
  } & {
618
615
  readonly __kind: any;
619
616
  }>> | undefined;
620
- sandbox?: Record<string, string | ({
617
+ sandbox?: Record<string, {
621
618
  attributes?: Record<string, string | number | boolean> | undefined;
622
619
  plugin?: (string & {
623
620
  readonly __kind: any;
@@ -647,7 +644,7 @@ declare const internalSchema: z.ZodObject<{
647
644
  };
648
645
  } & {
649
646
  readonly __kind: any;
650
- })> | undefined;
647
+ }> | undefined;
651
648
  environment?: Record<string, string | Flatten<{
652
649
  storage?: Record<string, any> | undefined;
653
650
  aliases?: Record<string, any> | undefined;
@@ -703,7 +700,6 @@ declare const internalSchema: z.ZodObject<{
703
700
  readonly __kind: any;
704
701
  }, ...args_1: unknown[]) => unknown>;
705
702
  }, "strip", z.ZodTypeAny, {
706
- description?: string | undefined;
707
703
  options?: Flatten<{
708
704
  boolean?: boolean | undefined;
709
705
  type?: "string" | "number" | "boolean" | undefined;
@@ -720,6 +716,7 @@ declare const internalSchema: z.ZodObject<{
720
716
  } & {
721
717
  readonly __kind: any;
722
718
  }>[] | undefined;
719
+ description?: string | undefined;
723
720
  positionals?: ({
724
721
  type?: "string" | "number" | "boolean" | undefined;
725
722
  defaultValue?: string | number | boolean | undefined;
@@ -739,8 +736,8 @@ declare const internalSchema: z.ZodObject<{
739
736
  };
740
737
  handler: Handler;
741
738
  }, {
742
- description?: string | undefined;
743
739
  options?: unknown;
740
+ description?: string | undefined;
744
741
  operation?: any;
745
742
  command?: any;
746
743
  positionals?: any[] | undefined;
@@ -772,7 +769,7 @@ declare const internalSchema: z.ZodObject<{
772
769
  readonly __kind: any;
773
770
  };
774
771
  }> | undefined;
775
- network?: Record<string, string | Flatten<{
772
+ network?: Record<string, Flatten<{
776
773
  label: string & {
777
774
  readonly __kind: any;
778
775
  };
@@ -783,21 +780,21 @@ declare const internalSchema: z.ZodObject<{
783
780
  readonly __kind: any;
784
781
  };
785
782
  faucet: Flatten<{
783
+ email?: string | undefined;
784
+ password?: string | undefined;
785
+ amount?: string | undefined;
786
+ activation_code?: string | undefined;
787
+ mnemonic: string[];
786
788
  pkh: string & {
787
789
  readonly __kind: any;
788
790
  };
789
- mnemonic: string[];
790
- email: string;
791
- password: string;
792
- amount: string;
793
- activation_code: string;
794
791
  } & {
795
792
  readonly __kind: any;
796
793
  }>;
797
794
  } & {
798
795
  readonly __kind: any;
799
796
  }>> | undefined;
800
- sandbox?: Record<string, string | ({
797
+ sandbox?: Record<string, {
801
798
  attributes?: Record<string, string | number | boolean> | undefined;
802
799
  plugin?: (string & {
803
800
  readonly __kind: any;
@@ -827,7 +824,7 @@ declare const internalSchema: z.ZodObject<{
827
824
  };
828
825
  } & {
829
826
  readonly __kind: any;
830
- })> | undefined;
827
+ }> | undefined;
831
828
  environment?: Record<string, string | Flatten<{
832
829
  storage?: Record<string, any> | undefined;
833
830
  aliases?: Record<string, any> | undefined;
@@ -883,11 +880,10 @@ declare const internalSchema: z.ZodObject<{
883
880
  readonly __kind: any;
884
881
  }, ...args_1: unknown[]) => unknown;
885
882
  }>;
886
- declare const generatedSchemas: {
883
+ export declare const generatedSchemas: {
887
884
  rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
888
885
  internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
889
886
  schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, Flatten<{
890
- description?: string | undefined;
891
887
  options?: Flatten<{
892
888
  boolean?: boolean | undefined;
893
889
  type?: "string" | "number" | "boolean" | undefined;
@@ -904,6 +900,7 @@ declare const generatedSchemas: {
904
900
  } & {
905
901
  readonly __kind: any;
906
902
  }>[] | undefined;
903
+ description?: string | undefined;
907
904
  positionals?: ({
908
905
  type?: "string" | "number" | "boolean" | undefined;
909
906
  defaultValue?: string | number | boolean | undefined;
@@ -925,10 +922,8 @@ declare const generatedSchemas: {
925
922
  }> & {
926
923
  readonly __kind: any;
927
924
  }, any>;
928
- };
929
- declare const factory: {
925
+ }, factory: {
930
926
  make: (input: Flatten<{
931
- description?: string | undefined;
932
927
  options?: Flatten<{
933
928
  boolean?: boolean | undefined;
934
929
  type?: "string" | "number" | "boolean" | undefined;
@@ -945,6 +940,7 @@ declare const factory: {
945
940
  } & {
946
941
  readonly __kind: any;
947
942
  }>[] | undefined;
943
+ description?: string | undefined;
948
944
  positionals?: ({
949
945
  type?: "string" | "number" | "boolean" | undefined;
950
946
  defaultValue?: string | number | boolean | undefined;
@@ -963,8 +959,7 @@ declare const factory: {
963
959
  readonly __kind: any;
964
960
  };
965
961
  handler: Handler;
966
- }>) => fluture.FutureInstance<TaqError, Flatten<{
967
- description?: string | undefined;
962
+ }>) => import("fluture").FutureInstance<import("./TaqError").TaqError, Flatten<{
968
963
  options?: Flatten<{
969
964
  boolean?: boolean | undefined;
970
965
  type?: "string" | "number" | "boolean" | undefined;
@@ -981,6 +976,7 @@ declare const factory: {
981
976
  } & {
982
977
  readonly __kind: any;
983
978
  }>[] | undefined;
979
+ description?: string | undefined;
984
980
  positionals?: ({
985
981
  type?: "string" | "number" | "boolean" | undefined;
986
982
  defaultValue?: string | number | boolean | undefined;
@@ -1002,8 +998,7 @@ declare const factory: {
1002
998
  }> & {
1003
999
  readonly __kind: any;
1004
1000
  }>;
1005
- of: (input: unknown) => fluture.FutureInstance<TaqError, Flatten<{
1006
- description?: string | undefined;
1001
+ of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, Flatten<{
1007
1002
  options?: Flatten<{
1008
1003
  boolean?: boolean | undefined;
1009
1004
  type?: "string" | "number" | "boolean" | undefined;
@@ -1020,6 +1015,7 @@ declare const factory: {
1020
1015
  } & {
1021
1016
  readonly __kind: any;
1022
1017
  }>[] | undefined;
1018
+ description?: string | undefined;
1023
1019
  positionals?: ({
1024
1020
  type?: "string" | "number" | "boolean" | undefined;
1025
1021
  defaultValue?: string | number | boolean | undefined;
@@ -1042,7 +1038,6 @@ declare const factory: {
1042
1038
  readonly __kind: any;
1043
1039
  }>;
1044
1040
  create: (input: {
1045
- description?: string | undefined;
1046
1041
  options?: {
1047
1042
  boolean?: boolean | undefined;
1048
1043
  type?: "string" | "number" | "boolean" | undefined;
@@ -1053,6 +1048,7 @@ declare const factory: {
1053
1048
  description: string;
1054
1049
  flag: string;
1055
1050
  }[] | undefined;
1051
+ description?: string | undefined;
1056
1052
  positionals?: {
1057
1053
  type?: "string" | "number" | "boolean" | undefined;
1058
1054
  defaultValue?: string | number | boolean | undefined;
@@ -1064,7 +1060,6 @@ declare const factory: {
1064
1060
  command: string;
1065
1061
  handler: Handler;
1066
1062
  } | Flatten<{
1067
- description?: string | undefined;
1068
1063
  options?: Flatten<{
1069
1064
  boolean?: boolean | undefined;
1070
1065
  type?: "string" | "number" | "boolean" | undefined;
@@ -1081,6 +1076,7 @@ declare const factory: {
1081
1076
  } & {
1082
1077
  readonly __kind: any;
1083
1078
  }>[] | undefined;
1079
+ description?: string | undefined;
1084
1080
  positionals?: ({
1085
1081
  type?: "string" | "number" | "boolean" | undefined;
1086
1082
  defaultValue?: string | number | boolean | undefined;
@@ -1100,7 +1096,6 @@ declare const factory: {
1100
1096
  };
1101
1097
  handler: Handler;
1102
1098
  }>) => Flatten<{
1103
- description?: string | undefined;
1104
1099
  options?: Flatten<{
1105
1100
  boolean?: boolean | undefined;
1106
1101
  type?: "string" | "number" | "boolean" | undefined;
@@ -1117,6 +1112,7 @@ declare const factory: {
1117
1112
  } & {
1118
1113
  readonly __kind: any;
1119
1114
  }>[] | undefined;
1115
+ description?: string | undefined;
1120
1116
  positionals?: ({
1121
1117
  type?: "string" | "number" | "boolean" | undefined;
1122
1118
  defaultValue?: string | number | boolean | undefined;
@@ -1139,7 +1135,6 @@ declare const factory: {
1139
1135
  readonly __kind: any;
1140
1136
  };
1141
1137
  from: (input: unknown) => Flatten<{
1142
- description?: string | undefined;
1143
1138
  options?: Flatten<{
1144
1139
  boolean?: boolean | undefined;
1145
1140
  type?: "string" | "number" | "boolean" | undefined;
@@ -1156,6 +1151,7 @@ declare const factory: {
1156
1151
  } & {
1157
1152
  readonly __kind: any;
1158
1153
  }>[] | undefined;
1154
+ description?: string | undefined;
1159
1155
  positionals?: ({
1160
1156
  type?: "string" | "number" | "boolean" | undefined;
1161
1157
  defaultValue?: string | number | boolean | undefined;
@@ -1178,10 +1174,9 @@ declare const factory: {
1178
1174
  readonly __kind: any;
1179
1175
  };
1180
1176
  };
1181
- declare type Operation = Flatten<z.infer<typeof generatedSchemas.schema>>;
1182
- declare type t = Operation;
1183
- declare const make: (input: Flatten<{
1184
- description?: string | undefined;
1177
+ export declare type Operation = Flatten<z.infer<typeof generatedSchemas.schema>>;
1178
+ export declare type t = Operation;
1179
+ export declare const make: (input: Flatten<{
1185
1180
  options?: Flatten<{
1186
1181
  boolean?: boolean | undefined;
1187
1182
  type?: "string" | "number" | "boolean" | undefined;
@@ -1198,6 +1193,7 @@ declare const make: (input: Flatten<{
1198
1193
  } & {
1199
1194
  readonly __kind: any;
1200
1195
  }>[] | undefined;
1196
+ description?: string | undefined;
1201
1197
  positionals?: ({
1202
1198
  type?: "string" | "number" | "boolean" | undefined;
1203
1199
  defaultValue?: string | number | boolean | undefined;
@@ -1216,8 +1212,7 @@ declare const make: (input: Flatten<{
1216
1212
  readonly __kind: any;
1217
1213
  };
1218
1214
  handler: Handler;
1219
- }>) => fluture.FutureInstance<TaqError, Flatten<{
1220
- description?: string | undefined;
1215
+ }>) => import("fluture").FutureInstance<import("./TaqError").TaqError, Flatten<{
1221
1216
  options?: Flatten<{
1222
1217
  boolean?: boolean | undefined;
1223
1218
  type?: "string" | "number" | "boolean" | undefined;
@@ -1234,6 +1229,7 @@ declare const make: (input: Flatten<{
1234
1229
  } & {
1235
1230
  readonly __kind: any;
1236
1231
  }>[] | undefined;
1232
+ description?: string | undefined;
1237
1233
  positionals?: ({
1238
1234
  type?: "string" | "number" | "boolean" | undefined;
1239
1235
  defaultValue?: string | number | boolean | undefined;
@@ -1254,9 +1250,7 @@ declare const make: (input: Flatten<{
1254
1250
  handler: Handler;
1255
1251
  }> & {
1256
1252
  readonly __kind: any;
1257
- }>;
1258
- declare const of: (input: unknown) => fluture.FutureInstance<TaqError, Flatten<{
1259
- description?: string | undefined;
1253
+ }>, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, Flatten<{
1260
1254
  options?: Flatten<{
1261
1255
  boolean?: boolean | undefined;
1262
1256
  type?: "string" | "number" | "boolean" | undefined;
@@ -1273,6 +1267,7 @@ declare const of: (input: unknown) => fluture.FutureInstance<TaqError, Flatten<{
1273
1267
  } & {
1274
1268
  readonly __kind: any;
1275
1269
  }>[] | undefined;
1270
+ description?: string | undefined;
1276
1271
  positionals?: ({
1277
1272
  type?: "string" | "number" | "boolean" | undefined;
1278
1273
  defaultValue?: string | number | boolean | undefined;
@@ -1293,9 +1288,7 @@ declare const of: (input: unknown) => fluture.FutureInstance<TaqError, Flatten<{
1293
1288
  handler: Handler;
1294
1289
  }> & {
1295
1290
  readonly __kind: any;
1296
- }>;
1297
- declare const create: (input: {
1298
- description?: string | undefined;
1291
+ }>, create: (input: {
1299
1292
  options?: {
1300
1293
  boolean?: boolean | undefined;
1301
1294
  type?: "string" | "number" | "boolean" | undefined;
@@ -1306,6 +1299,7 @@ declare const create: (input: {
1306
1299
  description: string;
1307
1300
  flag: string;
1308
1301
  }[] | undefined;
1302
+ description?: string | undefined;
1309
1303
  positionals?: {
1310
1304
  type?: "string" | "number" | "boolean" | undefined;
1311
1305
  defaultValue?: string | number | boolean | undefined;
@@ -1317,7 +1311,6 @@ declare const create: (input: {
1317
1311
  command: string;
1318
1312
  handler: Handler;
1319
1313
  } | Flatten<{
1320
- description?: string | undefined;
1321
1314
  options?: Flatten<{
1322
1315
  boolean?: boolean | undefined;
1323
1316
  type?: "string" | "number" | "boolean" | undefined;
@@ -1334,6 +1327,7 @@ declare const create: (input: {
1334
1327
  } & {
1335
1328
  readonly __kind: any;
1336
1329
  }>[] | undefined;
1330
+ description?: string | undefined;
1337
1331
  positionals?: ({
1338
1332
  type?: "string" | "number" | "boolean" | undefined;
1339
1333
  defaultValue?: string | number | boolean | undefined;
@@ -1353,7 +1347,6 @@ declare const create: (input: {
1353
1347
  };
1354
1348
  handler: Handler;
1355
1349
  }>) => Flatten<{
1356
- description?: string | undefined;
1357
1350
  options?: Flatten<{
1358
1351
  boolean?: boolean | undefined;
1359
1352
  type?: "string" | "number" | "boolean" | undefined;
@@ -1370,6 +1363,7 @@ declare const create: (input: {
1370
1363
  } & {
1371
1364
  readonly __kind: any;
1372
1365
  }>[] | undefined;
1366
+ description?: string | undefined;
1373
1367
  positionals?: ({
1374
1368
  type?: "string" | "number" | "boolean" | undefined;
1375
1369
  defaultValue?: string | number | boolean | undefined;
@@ -1391,9 +1385,8 @@ declare const create: (input: {
1391
1385
  }> & {
1392
1386
  readonly __kind: any;
1393
1387
  };
1394
- declare const schemas: {
1388
+ export declare const schemas: {
1395
1389
  schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, Flatten<{
1396
- description?: string | undefined;
1397
1390
  options?: Flatten<{
1398
1391
  boolean?: boolean | undefined;
1399
1392
  type?: "string" | "number" | "boolean" | undefined;
@@ -1410,6 +1403,7 @@ declare const schemas: {
1410
1403
  } & {
1411
1404
  readonly __kind: any;
1412
1405
  }>[] | undefined;
1406
+ description?: string | undefined;
1413
1407
  positionals?: ({
1414
1408
  type?: "string" | "number" | "boolean" | undefined;
1415
1409
  defaultValue?: string | number | boolean | undefined;
@@ -1431,7 +1425,6 @@ declare const schemas: {
1431
1425
  }> & {
1432
1426
  readonly __kind: any;
1433
1427
  }, any>, Flatten<Flatten<{
1434
- description?: string | undefined;
1435
1428
  options?: Flatten<{
1436
1429
  boolean?: boolean | undefined;
1437
1430
  type?: "string" | "number" | "boolean" | undefined;
@@ -1448,6 +1441,7 @@ declare const schemas: {
1448
1441
  } & {
1449
1442
  readonly __kind: any;
1450
1443
  }>[] | undefined;
1444
+ description?: string | undefined;
1451
1445
  positionals?: ({
1452
1446
  type?: "string" | "number" | "boolean" | undefined;
1453
1447
  defaultValue?: string | number | boolean | undefined;
@@ -1472,5 +1466,5 @@ declare const schemas: {
1472
1466
  rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
1473
1467
  internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
1474
1468
  };
1475
-
1476
- export { Operation, create, factory, generatedSchemas, internalSchema, make, of, rawSchema, schemas, t };
1469
+ export {};
1470
+ //# sourceMappingURL=Operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Operation.d.ts","sourceRoot":"","sources":["Operation.ts"],"names":[],"mappings":"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"}
package/Option.d.ts CHANGED
@@ -1,9 +1,6 @@
1
- import * as fluture from 'fluture';
2
- import { TaqError } from './TaqError.js';
3
1
  import { Flatten } from '@taqueria/protocol/Base';
4
2
  import { z } from 'zod';
5
-
6
- declare const internalSchema: z.ZodObject<{
3
+ export declare const internalSchema: z.ZodObject<{
7
4
  shortFlag: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
8
5
  readonly __kind: any;
9
6
  }, any>, string & {
@@ -43,7 +40,7 @@ declare const internalSchema: z.ZodObject<{
43
40
  required?: boolean | undefined;
44
41
  description: string;
45
42
  }>;
46
- declare const rawSchema: z.ZodObject<{
43
+ export declare const rawSchema: z.ZodObject<{
47
44
  shortFlag: z.ZodOptional<z.ZodString>;
48
45
  flag: z.ZodString;
49
46
  description: z.ZodString;
@@ -71,7 +68,7 @@ declare const rawSchema: z.ZodObject<{
71
68
  description: string;
72
69
  flag: string;
73
70
  }>;
74
- declare const generatedSchemas: {
71
+ export declare const generatedSchemas: {
75
72
  rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
76
73
  internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
77
74
  schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
@@ -90,8 +87,7 @@ declare const generatedSchemas: {
90
87
  } & {
91
88
  readonly __kind: any;
92
89
  }, any>;
93
- };
94
- declare const factory: {
90
+ }, factory: {
95
91
  make: (input: {
96
92
  boolean?: boolean | undefined;
97
93
  type?: "string" | "number" | "boolean" | undefined;
@@ -105,7 +101,7 @@ declare const factory: {
105
101
  flag: string & {
106
102
  readonly __kind: any;
107
103
  };
108
- }) => fluture.FutureInstance<TaqError, {
104
+ }) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
109
105
  boolean?: boolean | undefined;
110
106
  type?: "string" | "number" | "boolean" | undefined;
111
107
  shortFlag?: (string & {
@@ -121,7 +117,7 @@ declare const factory: {
121
117
  } & {
122
118
  readonly __kind: any;
123
119
  }>;
124
- of: (input: unknown) => fluture.FutureInstance<TaqError, {
120
+ of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
125
121
  boolean?: boolean | undefined;
126
122
  type?: "string" | "number" | "boolean" | undefined;
127
123
  shortFlag?: (string & {
@@ -192,9 +188,9 @@ declare const factory: {
192
188
  readonly __kind: any;
193
189
  };
194
190
  };
195
- declare type Option = Flatten<z.infer<typeof generatedSchemas.schema>>;
196
- declare type t = Option;
197
- declare const make: (input: {
191
+ export declare type Option = Flatten<z.infer<typeof generatedSchemas.schema>>;
192
+ export declare type t = Option;
193
+ export declare const make: (input: {
198
194
  boolean?: boolean | undefined;
199
195
  type?: "string" | "number" | "boolean" | undefined;
200
196
  shortFlag?: (string & {
@@ -207,7 +203,7 @@ declare const make: (input: {
207
203
  flag: string & {
208
204
  readonly __kind: any;
209
205
  };
210
- }) => fluture.FutureInstance<TaqError, {
206
+ }) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
211
207
  boolean?: boolean | undefined;
212
208
  type?: "string" | "number" | "boolean" | undefined;
213
209
  shortFlag?: (string & {
@@ -222,8 +218,7 @@ declare const make: (input: {
222
218
  };
223
219
  } & {
224
220
  readonly __kind: any;
225
- }>;
226
- declare const create: (input: {
221
+ }>, create: (input: {
227
222
  boolean?: boolean | undefined;
228
223
  type?: "string" | "number" | "boolean" | undefined;
229
224
  shortFlag?: (string & {
@@ -260,8 +255,7 @@ declare const create: (input: {
260
255
  };
261
256
  } & {
262
257
  readonly __kind: any;
263
- };
264
- declare const of: (input: unknown) => fluture.FutureInstance<TaqError, {
258
+ }, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
265
259
  boolean?: boolean | undefined;
266
260
  type?: "string" | "number" | "boolean" | undefined;
267
261
  shortFlag?: (string & {
@@ -277,7 +271,7 @@ declare const of: (input: unknown) => fluture.FutureInstance<TaqError, {
277
271
  } & {
278
272
  readonly __kind: any;
279
273
  }>;
280
- declare const schemas: {
274
+ export declare const schemas: {
281
275
  schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
282
276
  boolean?: boolean | undefined;
283
277
  type?: "string" | "number" | "boolean" | undefined;
@@ -312,5 +306,4 @@ declare const schemas: {
312
306
  rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
313
307
  internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
314
308
  };
315
-
316
- export { Option, create, factory, generatedSchemas, internalSchema, make, of, rawSchema, schemas, t };
309
+ //# sourceMappingURL=Option.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["Option.ts"],"names":[],"mappings":"AAAA,OAAmB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAG9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBN,CAAC;AAEtB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBD,CAAC;AAKtB,eAAO,MAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/C,CAAC;AAEH,oBAAY,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;AACtE,oBAAY,CAAC,GAAG,MAAM,CAAC;AAEvB,eAAO,MAAQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,EAAE;;;;;;;;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}