@taqueria/protocol 0.27.17-rc → 0.28.1
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.
- package/Alias.js +427 -6
- package/Alias.js.map +1 -1
- package/Base.js +25 -6
- package/Base.js.map +1 -1
- package/Command.js +427 -6
- package/Command.js.map +1 -1
- package/Config.js +427 -6
- package/Config.js.map +1 -1
- package/ConfigArtifactsDir.js +0 -2
- package/ConfigArtifactsDir.js.map +1 -1
- package/ConfigContractsDir.js +427 -6
- package/ConfigContractsDir.js.map +1 -1
- package/ConfigEnvironmentFileV2.js +427 -6
- package/ConfigEnvironmentFileV2.js.map +1 -1
- package/ConfigFileV2.js +427 -6
- package/ConfigFileV2.js.map +1 -1
- package/Contract.js +427 -6
- package/Contract.js.map +1 -1
- package/EconomicalProtocolHash.js +427 -6
- package/EconomicalProtocolHash.js.map +1 -1
- package/Environment.js +427 -6
- package/Environment.js.map +1 -1
- package/EphemeralState.js +102 -29
- package/EphemeralState.js.map +1 -1
- package/Faucet.js +427 -6
- package/Faucet.js.map +1 -1
- package/HumanReadableIdentifier.js +427 -6
- package/HumanReadableIdentifier.js.map +1 -1
- package/InstalledPlugin.js +427 -6
- package/InstalledPlugin.js.map +1 -1
- package/LoadedConfig.js +427 -6
- package/LoadedConfig.js.map +1 -1
- package/MetadataConfig.js +427 -6
- package/MetadataConfig.js.map +1 -1
- package/NetworkAccountConfig.js +427 -6
- package/NetworkAccountConfig.js.map +1 -1
- package/NetworkConfig.js +427 -6
- package/NetworkConfig.js.map +1 -1
- package/NonEmptyString.js +427 -6
- package/NonEmptyString.js.map +1 -1
- package/Operation.js +427 -6
- package/Operation.js.map +1 -1
- package/Option.js +427 -6
- package/Option.js.map +1 -1
- package/ParsedOperation.js +427 -6
- package/ParsedOperation.js.map +1 -1
- package/ParsedPluginInfo.js +552 -27
- package/ParsedPluginInfo.js.map +1 -1
- package/ParsedTemplate.js +427 -6
- package/ParsedTemplate.js.map +1 -1
- package/PersistentState.js +505 -50
- package/PersistentState.js.map +1 -1
- package/PluginActionName.js +427 -6
- package/PluginActionName.js.map +1 -1
- package/PluginDependenciesResponse.js +427 -6
- package/PluginDependenciesResponse.js.map +1 -1
- package/PluginInfo.js +505 -44
- package/PluginInfo.js.map +1 -1
- package/PluginJsonResponse.js +427 -6
- package/PluginJsonResponse.js.map +1 -1
- package/PluginProxyResponse.js +427 -6
- package/PluginProxyResponse.js.map +1 -1
- package/PluginResponseEncoding.js +427 -6
- package/PluginResponseEncoding.js.map +1 -1
- package/PluginSchema.js +577 -36
- package/PluginSchema.js.map +1 -1
- package/PositionalArg.js +427 -6
- package/PositionalArg.js.map +1 -1
- package/Provisioner.js +427 -6
- package/Provisioner.js.map +1 -1
- package/ProvisionerID.js +427 -6
- package/ProvisionerID.js.map +1 -1
- package/Provisions.js +427 -6
- package/Provisions.js.map +1 -1
- package/ProxyTaskArgs.js +427 -6
- package/ProxyTaskArgs.js.map +1 -1
- package/ProxyTemplateArgs.js +427 -6
- package/ProxyTemplateArgs.js.map +1 -1
- package/PublicKeyHash.js +427 -6
- package/PublicKeyHash.js.map +1 -1
- package/RequestArgs.js +427 -6
- package/RequestArgs.js.map +1 -1
- package/SHA256.js +88 -9
- package/SHA256.js.map +1 -1
- package/SandboxAccountConfig.js +427 -6
- package/SandboxAccountConfig.js.map +1 -1
- package/SandboxConfig.js +427 -6
- package/SandboxConfig.js.map +1 -1
- package/SanitizedAbsPath.js +77 -6
- package/SanitizedAbsPath.js.map +1 -1
- package/SanitizedArgs.js +514 -63
- package/SanitizedArgs.js.map +1 -1
- package/SanitizedPath.js +427 -6
- package/SanitizedPath.js.map +1 -1
- package/ScaffoldConfig.js +427 -6
- package/ScaffoldConfig.js.map +1 -1
- package/Settings.js +427 -6
- package/Settings.js.map +1 -1
- package/SingleChar.js +427 -6
- package/SingleChar.js.map +1 -1
- package/Task.js +427 -6
- package/Task.js.map +1 -1
- package/Template.js +425 -10
- package/Template.js.map +1 -1
- package/Timestamp.js +427 -6
- package/Timestamp.js.map +1 -1
- package/Tz.js +427 -6
- package/Tz.js.map +1 -1
- package/Url.js +427 -6
- package/Url.js.map +1 -1
- package/Verb.js +427 -6
- package/Verb.js.map +1 -1
- package/VersionNumber.js +427 -6
- package/VersionNumber.js.map +1 -1
- package/helpers.js.map +1 -1
- package/index.js +3485 -110
- package/index.js.map +1 -1
- package/out/types/Alias.js +385 -13
- package/out/types/Alias.js.map +1 -1
- package/out/types/BuildNumber.js +385 -13
- package/out/types/BuildNumber.js.map +1 -1
- package/out/types/Command.js +385 -13
- package/out/types/Command.js.map +1 -1
- package/out/types/Config.js +385 -13
- package/out/types/Config.js.map +1 -1
- package/out/types/ConfigAccount.js +385 -13
- package/out/types/ConfigAccount.js.map +1 -1
- package/out/types/ConfigArtifactsDir.js +385 -13
- package/out/types/ConfigArtifactsDir.js.map +1 -1
- package/out/types/ConfigContractsDir.js +385 -13
- package/out/types/ConfigContractsDir.js.map +1 -1
- package/out/types/ConfigEnvironmentFileV2.d.ts +4 -4
- package/out/types/ConfigEnvironmentFileV2.js +385 -13
- package/out/types/ConfigEnvironmentFileV2.js.map +1 -1
- package/out/types/ConfigFileV1.js +385 -13
- package/out/types/ConfigFileV1.js.map +1 -1
- package/out/types/ConfigFileV2.d.ts +4 -4
- package/out/types/ConfigFileV2.js +385 -13
- package/out/types/ConfigFileV2.js.map +1 -1
- package/out/types/Contract.js +385 -13
- package/out/types/Contract.js.map +1 -1
- package/out/types/CurrencyAmountV2.js +385 -13
- package/out/types/CurrencyAmountV2.js.map +1 -1
- package/out/types/EconomicalProtocolHash.js +385 -13
- package/out/types/EconomicalProtocolHash.js.map +1 -1
- package/out/types/Environment.js +385 -13
- package/out/types/Environment.js.map +1 -1
- package/out/types/EphemeralState.js +385 -13
- package/out/types/EphemeralState.js.map +1 -1
- package/out/types/Faucet.js +385 -13
- package/out/types/Faucet.js.map +1 -1
- package/out/types/HumanReadableIdentifier.js +385 -13
- package/out/types/HumanReadableIdentifier.js.map +1 -1
- package/out/types/InstalledPlugin.js +385 -13
- package/out/types/InstalledPlugin.js.map +1 -1
- package/out/types/LoadedConfig.js +385 -13
- package/out/types/LoadedConfig.js.map +1 -1
- package/out/types/MetadataConfig.js +385 -13
- package/out/types/MetadataConfig.js.map +1 -1
- package/out/types/NetworkAccountConfig.js +385 -13
- package/out/types/NetworkAccountConfig.js.map +1 -1
- package/out/types/NetworkConfig.js +385 -13
- package/out/types/NetworkConfig.js.map +1 -1
- package/out/types/NonEmptyString.js +385 -13
- package/out/types/NonEmptyString.js.map +1 -1
- package/out/types/Operation.js +385 -13
- package/out/types/Operation.js.map +1 -1
- package/out/types/Option.js +385 -13
- package/out/types/Option.js.map +1 -1
- package/out/types/ParsedConfig.js +385 -13
- package/out/types/ParsedConfig.js.map +1 -1
- package/out/types/ParsedOperation.js +385 -13
- package/out/types/ParsedOperation.js.map +1 -1
- package/out/types/ParsedTemplate.js +385 -13
- package/out/types/ParsedTemplate.js.map +1 -1
- package/out/types/PersistedOperation.js +385 -13
- package/out/types/PersistedOperation.js.map +1 -1
- package/out/types/PersistedTask.js +385 -13
- package/out/types/PersistedTask.js.map +1 -1
- package/out/types/PersistentState.js +385 -13
- package/out/types/PersistentState.js.map +1 -1
- package/out/types/PluginActionName.js +385 -13
- package/out/types/PluginActionName.js.map +1 -1
- package/out/types/PluginDependenciesResponse.js +385 -13
- package/out/types/PluginDependenciesResponse.js.map +1 -1
- package/out/types/PluginInfo.js +385 -13
- package/out/types/PluginInfo.js.map +1 -1
- package/out/types/PluginJsonResponse.js +385 -13
- package/out/types/PluginJsonResponse.js.map +1 -1
- package/out/types/PluginProxyResponse.js +385 -13
- package/out/types/PluginProxyResponse.js.map +1 -1
- package/out/types/PluginResponseEncoding.js +385 -13
- package/out/types/PluginResponseEncoding.js.map +1 -1
- package/out/types/PluginSchema.js +385 -13
- package/out/types/PluginSchema.js.map +1 -1
- package/out/types/PositionalArg.js +385 -13
- package/out/types/PositionalArg.js.map +1 -1
- package/out/types/Provisioner.js +385 -13
- package/out/types/Provisioner.js.map +1 -1
- package/out/types/ProvisionerID.js +385 -13
- package/out/types/ProvisionerID.js.map +1 -1
- package/out/types/Provisions.js +385 -13
- package/out/types/Provisions.js.map +1 -1
- package/out/types/ProxyTaskArgs.js +385 -13
- package/out/types/ProxyTaskArgs.js.map +1 -1
- package/out/types/ProxyTemplateArgs.js +385 -13
- package/out/types/ProxyTemplateArgs.js.map +1 -1
- package/out/types/PublicKeyHash.js +385 -13
- package/out/types/PublicKeyHash.js.map +1 -1
- package/out/types/RequestArgs.js +385 -13
- package/out/types/RequestArgs.js.map +1 -1
- package/out/types/RuntimeDependency.js +385 -13
- package/out/types/RuntimeDependency.js.map +1 -1
- package/out/types/RuntimeDependencyReport.js +385 -13
- package/out/types/RuntimeDependencyReport.js.map +1 -1
- package/out/types/SHA256.js +385 -13
- package/out/types/SHA256.js.map +1 -1
- package/out/types/SandboxAccount.d.js +19 -0
- package/out/types/SandboxAccount.d.js.map +1 -0
- package/out/types/SandboxAccount.d.ts +43 -0
- package/out/types/SandboxAccount.d.ts.map +1 -0
- package/out/types/SandboxAccount.js +442 -0
- package/out/types/SandboxAccount.js.map +1 -0
- package/out/types/SandboxAccountConfig.js +385 -13
- package/out/types/SandboxAccountConfig.js.map +1 -1
- package/out/types/SandboxAccounts.d.ts +4 -4
- package/out/types/SandboxAccounts.js +385 -13
- package/out/types/SandboxAccounts.js.map +1 -1
- package/out/types/SandboxConfig.js +385 -13
- package/out/types/SandboxConfig.js.map +1 -1
- package/out/types/SanitizedAbsPath.js +385 -13
- package/out/types/SanitizedAbsPath.js.map +1 -1
- package/out/types/SanitizedArgs.js +385 -13
- package/out/types/SanitizedArgs.js.map +1 -1
- package/out/types/SanitizedPath.js +385 -13
- package/out/types/SanitizedPath.js.map +1 -1
- package/out/types/ScaffoldConfig.js +385 -13
- package/out/types/ScaffoldConfig.js.map +1 -1
- package/out/types/Settings.js +385 -13
- package/out/types/Settings.js.map +1 -1
- package/out/types/SingleChar.js +385 -13
- package/out/types/SingleChar.js.map +1 -1
- package/out/types/Task.js +385 -13
- package/out/types/Task.js.map +1 -1
- package/out/types/Template.js +385 -13
- package/out/types/Template.js.map +1 -1
- package/out/types/Timestamp.js +385 -13
- package/out/types/Timestamp.js.map +1 -1
- package/out/types/Tz.js +385 -13
- package/out/types/Tz.js.map +1 -1
- package/out/types/TzKtConfig.js +385 -13
- package/out/types/TzKtConfig.js.map +1 -1
- package/out/types/Url.js +385 -13
- package/out/types/Url.js.map +1 -1
- package/out/types/Verb.js +385 -13
- package/out/types/Verb.js.map +1 -1
- package/out/types/VersionNumber.js +385 -13
- package/out/types/VersionNumber.js.map +1 -1
- package/out/types-strict.d.js.map +1 -1
- package/out/types-strict.d.ts +6 -3
- package/out/types-strict.d.ts.map +1 -1
- package/out/types-strict.js.map +1 -1
- package/out/types-zod.d.js.map +1 -1
- package/out/types-zod.d.ts +10 -3
- package/out/types-zod.d.ts.map +1 -1
- package/out/types-zod.js +5 -5
- package/out/types-zod.js.map +1 -1
- package/package.json +2 -1
- package/taqueria-protocol-types.js +2601 -76
- package/taqueria-protocol-types.js.map +1 -1
- package/tsup.config.d.ts.map +1 -1
- package/types-config-files.js.map +1 -1
- package/types.d.ts +3 -2
- package/types.d.ts.map +1 -1
- package/types.js.map +1 -1
- package/tzkt-config.js +79 -14
- package/tzkt-config.js.map +1 -1
package/ParsedPluginInfo.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,54 +15,581 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
-
mod
|
|
23
|
-
));
|
|
24
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
19
|
|
|
26
20
|
// ParsedPluginInfo.ts
|
|
27
21
|
var ParsedPluginInfo_exports = {};
|
|
28
22
|
__export(ParsedPluginInfo_exports, {
|
|
29
|
-
create: () =>
|
|
30
|
-
factory: () =>
|
|
23
|
+
create: () => create3,
|
|
24
|
+
factory: () => factory2,
|
|
31
25
|
generatedSchemas: () => generatedSchemas,
|
|
32
|
-
make: () =>
|
|
33
|
-
of: () =>
|
|
34
|
-
rawSchema: () =>
|
|
35
|
-
schemas: () =>
|
|
26
|
+
make: () => make2,
|
|
27
|
+
of: () => of2,
|
|
28
|
+
rawSchema: () => rawSchema7,
|
|
29
|
+
schemas: () => schemas7
|
|
36
30
|
});
|
|
37
31
|
module.exports = __toCommonJS(ParsedPluginInfo_exports);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var
|
|
32
|
+
|
|
33
|
+
// TaqError.ts
|
|
34
|
+
var import_fluture = require("fluture");
|
|
35
|
+
var toFutureParseErr = (previous, msg, context) => (0, import_fluture.reject)(toParseErr(previous, msg, context)).pipe((0, import_fluture.map)((val) => val));
|
|
36
|
+
var toParseErr = (previous, msg, context) => create({
|
|
37
|
+
kind: "E_PARSE",
|
|
38
|
+
msg,
|
|
39
|
+
context,
|
|
40
|
+
previous
|
|
41
|
+
});
|
|
42
|
+
var toParseUnknownErr = (previous, msg, context) => create({
|
|
43
|
+
kind: "E_PARSE_UNKNOWN",
|
|
44
|
+
msg,
|
|
45
|
+
context,
|
|
46
|
+
previous
|
|
47
|
+
});
|
|
48
|
+
var toFutureParseUnknownErr = (previous, msg, context) => (0, import_fluture.reject)(toParseUnknownErr(previous, msg, context)).pipe((0, import_fluture.map)((val) => val));
|
|
49
|
+
var create = (err) => err;
|
|
50
|
+
|
|
51
|
+
// Base.ts
|
|
52
|
+
var import_fluture2 = require("fluture");
|
|
41
53
|
var import_zod = require("zod");
|
|
42
|
-
var
|
|
43
|
-
|
|
54
|
+
var createSchema = (params) => {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
const { rawSchema: rawSchema8, isStringLike } = params;
|
|
57
|
+
const internalSchema3 = (_a = params.internalSchema) != null ? _a : params.rawSchema;
|
|
58
|
+
const noop = (val) => val;
|
|
59
|
+
const transformer = (_b = params.transformer) != null ? _b : noop;
|
|
60
|
+
const schema = isStringLike ? internalSchema3.transform(
|
|
61
|
+
(val) => transformer(val)
|
|
62
|
+
) : internalSchema3.transform(
|
|
63
|
+
(val) => transformer(val)
|
|
64
|
+
);
|
|
65
|
+
return {
|
|
66
|
+
rawSchema: rawSchema8,
|
|
67
|
+
internalSchema: internalSchema3,
|
|
68
|
+
schema
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
var createType = (params) => {
|
|
72
|
+
const schemas8 = createSchema(params);
|
|
73
|
+
const { parseErrMsg, unknownErrMsg } = params;
|
|
74
|
+
const internalOf = (input) => {
|
|
75
|
+
try {
|
|
76
|
+
return (0, import_fluture2.resolve)(schemas8.schema.parse(input));
|
|
77
|
+
} catch (previous) {
|
|
78
|
+
const parseMsg = typeof parseErrMsg === "string" ? parseErrMsg : parseErrMsg(input, previous);
|
|
79
|
+
const unknownMsg = typeof unknownErrMsg === "string" ? unknownErrMsg : unknownErrMsg(input);
|
|
80
|
+
if (previous instanceof import_zod.ZodError) {
|
|
81
|
+
return toFutureParseErr(previous, parseMsg, input);
|
|
82
|
+
}
|
|
83
|
+
return toFutureParseUnknownErr(previous, unknownMsg, input);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const of3 = internalOf;
|
|
87
|
+
const make3 = (input) => internalOf(input);
|
|
88
|
+
const create4 = (input) => schemas8.schema.parse(input);
|
|
89
|
+
const from = (input) => schemas8.schema.parse(input);
|
|
90
|
+
const factory3 = {
|
|
91
|
+
make: make3,
|
|
92
|
+
of: of3,
|
|
93
|
+
create: create4,
|
|
94
|
+
from
|
|
95
|
+
};
|
|
96
|
+
return {
|
|
97
|
+
schemas: schemas8,
|
|
98
|
+
factory: factory3
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
var Base_default = createType;
|
|
102
|
+
|
|
103
|
+
// out/types/ParsedOperation.ts
|
|
104
|
+
var import_fluture3 = require("fluture");
|
|
105
|
+
var import_zod3 = require("zod");
|
|
106
|
+
|
|
107
|
+
// out/types-zod.ts
|
|
108
|
+
var import_zod2 = require("zod");
|
|
109
|
+
var nonEmptyStringSchema = import_zod2.z.string().min(1);
|
|
110
|
+
var singleCharSchema = nonEmptyStringSchema.regex(/^[A-Za-z]$/);
|
|
111
|
+
var verbSchema = nonEmptyStringSchema.regex(/^[A-Za-z\-\ ]+/);
|
|
112
|
+
var aliasSchema = import_zod2.z.union([verbSchema, singleCharSchema]);
|
|
113
|
+
var humanReadableIdentifierSchema = nonEmptyStringSchema.regex(
|
|
114
|
+
/^[A-Za-z]+[A-Za-z0-9-_ ]*$/
|
|
115
|
+
);
|
|
116
|
+
var sanitizedAbsPathSchema = nonEmptyStringSchema;
|
|
117
|
+
var sanitizedPathSchema = nonEmptyStringSchema;
|
|
118
|
+
var settingsSchema = import_zod2.z.object({
|
|
119
|
+
consent: import_zod2.z.union([
|
|
120
|
+
import_zod2.z.literal("opt_in"),
|
|
121
|
+
import_zod2.z.literal("opt_out"),
|
|
122
|
+
import_zod2.z.literal("unspecified")
|
|
123
|
+
])
|
|
124
|
+
});
|
|
125
|
+
var timestampSchema = import_zod2.z.number().min(1651846877);
|
|
126
|
+
var tzSchema = nonEmptyStringSchema.min(1).regex(/^\d([\d_]+\d)?$/);
|
|
127
|
+
var versionNumberSchema = nonEmptyStringSchema.min(1).regex(/^\d+\.\d+(\.\d+)*$/);
|
|
128
|
+
var urlSchema = nonEmptyStringSchema.url();
|
|
129
|
+
var commandSchema = nonEmptyStringSchema;
|
|
130
|
+
var optionSchema = import_zod2.z.object({
|
|
131
|
+
shortFlag: singleCharSchema.optional(),
|
|
132
|
+
flag: verbSchema,
|
|
133
|
+
description: nonEmptyStringSchema,
|
|
134
|
+
defaultValue: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number(), import_zod2.z.boolean()]).optional(),
|
|
135
|
+
type: import_zod2.z.union([import_zod2.z.literal("string"), import_zod2.z.literal("number"), import_zod2.z.literal("boolean")]).optional(),
|
|
136
|
+
required: import_zod2.z.boolean().optional(),
|
|
137
|
+
boolean: import_zod2.z.boolean().optional(),
|
|
138
|
+
choices: import_zod2.z.array(nonEmptyStringSchema).optional()
|
|
139
|
+
});
|
|
140
|
+
var positionalArgSchema = import_zod2.z.object({
|
|
141
|
+
placeholder: humanReadableIdentifierSchema,
|
|
142
|
+
description: nonEmptyStringSchema,
|
|
143
|
+
defaultValue: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number(), import_zod2.z.boolean()]).optional(),
|
|
144
|
+
type: import_zod2.z.union([import_zod2.z.literal("string"), import_zod2.z.literal("number"), import_zod2.z.literal("boolean")]).optional(),
|
|
145
|
+
required: import_zod2.z.boolean().optional()
|
|
146
|
+
});
|
|
147
|
+
var installedPluginSchema = import_zod2.z.object({
|
|
148
|
+
type: import_zod2.z.union([import_zod2.z.literal("npm"), import_zod2.z.literal("binary"), import_zod2.z.literal("deno")]),
|
|
149
|
+
name: nonEmptyStringSchema
|
|
150
|
+
});
|
|
151
|
+
var runtimeDependencySchema = import_zod2.z.object({
|
|
152
|
+
name: humanReadableIdentifierSchema,
|
|
153
|
+
path: import_zod2.z.string(),
|
|
154
|
+
version: import_zod2.z.string(),
|
|
155
|
+
kind: import_zod2.z.union([import_zod2.z.literal("required"), import_zod2.z.literal("optional")])
|
|
156
|
+
});
|
|
157
|
+
var runtimeDependencyReportSchema = runtimeDependencySchema.extend(
|
|
158
|
+
{
|
|
159
|
+
met: import_zod2.z.boolean()
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
var pluginDependenciesResponseSchema = import_zod2.z.object({
|
|
163
|
+
report: import_zod2.z.array(runtimeDependencyReportSchema)
|
|
164
|
+
});
|
|
165
|
+
var pluginJsonResponseSchema = import_zod2.z.union([
|
|
166
|
+
import_zod2.z.object({
|
|
167
|
+
data: import_zod2.z.unknown().optional(),
|
|
168
|
+
render: import_zod2.z.union([import_zod2.z.literal("none"), import_zod2.z.literal("table"), import_zod2.z.literal("string")]).default("none")
|
|
169
|
+
}),
|
|
170
|
+
import_zod2.z.void()
|
|
171
|
+
]);
|
|
172
|
+
var pluginProxyResponseSchema = import_zod2.z.union([
|
|
173
|
+
import_zod2.z.void(),
|
|
174
|
+
pluginJsonResponseSchema
|
|
175
|
+
]);
|
|
176
|
+
var pluginResponseEncodingSchema = import_zod2.z.union([import_zod2.z.literal("none"), import_zod2.z.literal("json"), import_zod2.z.literal("application/json")]).default("none");
|
|
177
|
+
var buildNumberSchema = import_zod2.z.number();
|
|
178
|
+
var sanitizedArgsSchema = import_zod2.z.object({
|
|
179
|
+
_: import_zod2.z.array(import_zod2.z.string()),
|
|
180
|
+
projectDir: sanitizedPathSchema,
|
|
181
|
+
maxConcurrency: import_zod2.z.number(),
|
|
182
|
+
debug: import_zod2.z.boolean(),
|
|
183
|
+
disableState: import_zod2.z.boolean(),
|
|
184
|
+
logPluginRequests: import_zod2.z.boolean(),
|
|
185
|
+
fromVsCode: import_zod2.z.boolean(),
|
|
186
|
+
version: import_zod2.z.boolean(),
|
|
187
|
+
build: import_zod2.z.boolean(),
|
|
188
|
+
help: import_zod2.z.boolean(),
|
|
189
|
+
yes: import_zod2.z.boolean(),
|
|
190
|
+
plugin: nonEmptyStringSchema.optional(),
|
|
191
|
+
env: nonEmptyStringSchema,
|
|
192
|
+
quickstart: nonEmptyStringSchema,
|
|
193
|
+
setBuild: import_zod2.z.union([nonEmptyStringSchema, buildNumberSchema]),
|
|
194
|
+
setVersion: nonEmptyStringSchema
|
|
195
|
+
}).passthrough();
|
|
196
|
+
var pluginActionNameSchema = import_zod2.z.union([
|
|
197
|
+
import_zod2.z.literal("proxy"),
|
|
198
|
+
import_zod2.z.literal("pluginInfo"),
|
|
199
|
+
import_zod2.z.literal("checkRuntimeDependencies"),
|
|
200
|
+
import_zod2.z.literal("installRuntimeDependencies"),
|
|
201
|
+
import_zod2.z.literal("proxyTemplate")
|
|
202
|
+
]);
|
|
203
|
+
var economicalProtocolHashSchema = import_zod2.z.string();
|
|
204
|
+
var publicKeyHashSchema = import_zod2.z.string().regex(/^tz\d[A-Za-z0-9]{33}$/);
|
|
205
|
+
var sha256Schema = import_zod2.z.string().regex(/^[A-Fa-f0-9]{64}$/);
|
|
206
|
+
var contractSchema = import_zod2.z.object({
|
|
207
|
+
sourceFile: nonEmptyStringSchema,
|
|
208
|
+
hash: sha256Schema
|
|
209
|
+
});
|
|
210
|
+
var faucetSchema = import_zod2.z.object({
|
|
211
|
+
pkh: publicKeyHashSchema,
|
|
212
|
+
mnemonic: import_zod2.z.array(import_zod2.z.string()),
|
|
213
|
+
email: import_zod2.z.string().email(),
|
|
214
|
+
password: import_zod2.z.string(),
|
|
215
|
+
amount: import_zod2.z.string().regex(/^\d+$/),
|
|
216
|
+
activation_code: import_zod2.z.string()
|
|
217
|
+
});
|
|
218
|
+
var tzKtConfigPostgresqlPortSchema = import_zod2.z.number().default(5432);
|
|
219
|
+
var tzKtConfigApiPortSchema = import_zod2.z.number().default(5e3);
|
|
220
|
+
var tzKtConfigSchema = import_zod2.z.object({
|
|
221
|
+
disableAutostartWithSandbox: import_zod2.z.boolean().optional(),
|
|
222
|
+
postgresqlPort: tzKtConfigPostgresqlPortSchema.optional(),
|
|
223
|
+
apiPort: tzKtConfigApiPortSchema.optional()
|
|
224
|
+
});
|
|
225
|
+
var persistedTaskSchema = import_zod2.z.object({
|
|
226
|
+
task: verbSchema,
|
|
227
|
+
plugin: nonEmptyStringSchema,
|
|
228
|
+
time: timestampSchema,
|
|
229
|
+
output: import_zod2.z.unknown().optional()
|
|
230
|
+
});
|
|
231
|
+
var persistedOperationSchema = import_zod2.z.object({
|
|
232
|
+
hash: sha256Schema,
|
|
233
|
+
time: timestampSchema,
|
|
234
|
+
output: import_zod2.z.unknown().optional()
|
|
235
|
+
});
|
|
236
|
+
var provisionerIDSchema = import_zod2.z.string().min(1).regex(
|
|
237
|
+
/^[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+$/
|
|
238
|
+
);
|
|
239
|
+
var provisionerSchema = import_zod2.z.object({
|
|
240
|
+
id: provisionerIDSchema,
|
|
241
|
+
plugin: nonEmptyStringSchema,
|
|
242
|
+
operation: import_zod2.z.union([nonEmptyStringSchema, import_zod2.z.literal("custom")]),
|
|
243
|
+
command: import_zod2.z.string().optional(),
|
|
244
|
+
label: import_zod2.z.string().optional(),
|
|
245
|
+
depends_on: import_zod2.z.array(provisionerIDSchema).optional()
|
|
246
|
+
});
|
|
247
|
+
var provisionsSchema = import_zod2.z.array(provisionerSchema);
|
|
248
|
+
var environmentSchema = import_zod2.z.object({
|
|
249
|
+
networks: import_zod2.z.array(nonEmptyStringSchema),
|
|
250
|
+
sandboxes: import_zod2.z.array(nonEmptyStringSchema),
|
|
251
|
+
storage: import_zod2.z.record(nonEmptyStringSchema).optional(),
|
|
252
|
+
aliases: import_zod2.z.record(import_zod2.z.record(nonEmptyStringSchema)).optional()
|
|
253
|
+
});
|
|
254
|
+
var environmentNameSchema = nonEmptyStringSchema.min(
|
|
255
|
+
1,
|
|
256
|
+
"Default environment must reference the name of an existing environment."
|
|
257
|
+
);
|
|
258
|
+
var humanLanguageSchema = import_zod2.z.union([import_zod2.z.literal("en"), import_zod2.z.literal("fr")]).default("en");
|
|
259
|
+
var configContractsDirSchema = import_zod2.z.string().min(1).default("contracts");
|
|
260
|
+
var configArtifactsDirSchema = import_zod2.z.string().min(1).default("artifacts");
|
|
261
|
+
var currencyAmountV2Schema = import_zod2.z.object({
|
|
262
|
+
amount: import_zod2.z.string(),
|
|
263
|
+
units: import_zod2.z.string()
|
|
264
|
+
});
|
|
265
|
+
var versionV2Schema = import_zod2.z.string().regex(/^v2$/);
|
|
266
|
+
var sandboxAccountSchema = import_zod2.z.object({
|
|
267
|
+
type: import_zod2.z.string().optional()
|
|
268
|
+
}).passthrough();
|
|
269
|
+
var sandboxAccountsSchema = import_zod2.z.record(sandboxAccountSchema);
|
|
270
|
+
var configEnvironmentFileV2Schema = import_zod2.z.object({
|
|
271
|
+
type: import_zod2.z.string().optional(),
|
|
272
|
+
accounts: sandboxAccountsSchema.optional(),
|
|
273
|
+
accountDefault: import_zod2.z.any().optional(),
|
|
274
|
+
contracts: import_zod2.z.record(
|
|
275
|
+
import_zod2.z.object({
|
|
276
|
+
address: import_zod2.z.string().optional()
|
|
277
|
+
})
|
|
278
|
+
).optional()
|
|
279
|
+
}).passthrough();
|
|
280
|
+
var metadataConfigSchema = import_zod2.z.object({
|
|
281
|
+
name: import_zod2.z.string().optional(),
|
|
282
|
+
projectDescription: import_zod2.z.string().optional(),
|
|
283
|
+
authors: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
284
|
+
license: import_zod2.z.string().optional(),
|
|
285
|
+
homepage: import_zod2.z.string().optional()
|
|
286
|
+
});
|
|
287
|
+
var networkAccountConfigSchema = import_zod2.z.object({
|
|
288
|
+
publicKey: nonEmptyStringSchema.optional(),
|
|
289
|
+
publicKeyHash: publicKeyHashSchema.optional(),
|
|
290
|
+
privateKey: nonEmptyStringSchema.optional(),
|
|
291
|
+
mnemonic: nonEmptyStringSchema.optional()
|
|
292
|
+
});
|
|
293
|
+
var sandboxAccountConfigSchema = import_zod2.z.object({
|
|
294
|
+
encryptedKey: nonEmptyStringSchema,
|
|
295
|
+
publicKeyHash: publicKeyHashSchema,
|
|
296
|
+
secretKey: nonEmptyStringSchema
|
|
297
|
+
});
|
|
298
|
+
var sandboxConfigSchema = import_zod2.z.object({
|
|
299
|
+
label: nonEmptyStringSchema,
|
|
300
|
+
rpcUrl: urlSchema,
|
|
301
|
+
protocol: economicalProtocolHashSchema.optional(),
|
|
302
|
+
plugin: verbSchema.optional(),
|
|
303
|
+
accounts: import_zod2.z.record(import_zod2.z.union([sandboxAccountConfigSchema, nonEmptyStringSchema])).optional(),
|
|
304
|
+
tzkt: tzKtConfigSchema.optional(),
|
|
305
|
+
annotations: import_zod2.z.record(import_zod2.z.unknown()).optional()
|
|
306
|
+
});
|
|
307
|
+
var scaffoldConfigSchema = import_zod2.z.object({
|
|
308
|
+
postInit: import_zod2.z.string().optional()
|
|
309
|
+
});
|
|
310
|
+
var taskSchema = import_zod2.z.object({
|
|
311
|
+
task: verbSchema,
|
|
312
|
+
command: commandSchema,
|
|
313
|
+
aliases: import_zod2.z.array(aliasSchema).optional(),
|
|
314
|
+
description: nonEmptyStringSchema.min(3).optional(),
|
|
315
|
+
example: nonEmptyStringSchema.optional(),
|
|
316
|
+
hidden: import_zod2.z.boolean().optional(),
|
|
317
|
+
encoding: pluginResponseEncodingSchema.optional(),
|
|
318
|
+
handler: import_zod2.z.union([import_zod2.z.literal("proxy"), nonEmptyStringSchema]),
|
|
319
|
+
options: import_zod2.z.array(optionSchema).optional(),
|
|
320
|
+
positionals: import_zod2.z.array(positionalArgSchema).optional()
|
|
321
|
+
});
|
|
322
|
+
var persistentStateSchema = import_zod2.z.object({
|
|
323
|
+
operations: import_zod2.z.record(persistedOperationSchema),
|
|
324
|
+
tasks: import_zod2.z.record(persistedTaskSchema)
|
|
325
|
+
});
|
|
326
|
+
var configAccountSchema = import_zod2.z.object({
|
|
327
|
+
balance: currencyAmountV2Schema
|
|
328
|
+
});
|
|
329
|
+
var configFileV2Schema = import_zod2.z.object({
|
|
330
|
+
version: versionV2Schema,
|
|
331
|
+
language: humanLanguageSchema.optional(),
|
|
332
|
+
metadata: metadataConfigSchema.optional(),
|
|
333
|
+
artifactsDir: configArtifactsDirSchema.optional(),
|
|
334
|
+
contractsDir: configContractsDirSchema.optional(),
|
|
335
|
+
accounts: import_zod2.z.record(configAccountSchema).optional(),
|
|
336
|
+
contracts: import_zod2.z.record(contractSchema).optional(),
|
|
337
|
+
environmentDefault: environmentNameSchema.optional(),
|
|
338
|
+
environments: import_zod2.z.record(configEnvironmentFileV2Schema).optional(),
|
|
339
|
+
plugins: import_zod2.z.array(installedPluginSchema).optional()
|
|
340
|
+
});
|
|
341
|
+
var networkConfigSchema = import_zod2.z.object({
|
|
342
|
+
label: humanReadableIdentifierSchema,
|
|
343
|
+
rpcUrl: urlSchema,
|
|
344
|
+
accounts: import_zod2.z.record(networkAccountConfigSchema).optional(),
|
|
345
|
+
faucet: faucetSchema.optional()
|
|
346
|
+
});
|
|
347
|
+
var pluginSchemaBaseSchema = import_zod2.z.object({
|
|
348
|
+
name: nonEmptyStringSchema,
|
|
349
|
+
version: versionNumberSchema,
|
|
350
|
+
schema: versionNumberSchema,
|
|
351
|
+
alias: aliasSchema,
|
|
352
|
+
tasks: import_zod2.z.array(taskSchema).optional()
|
|
353
|
+
});
|
|
354
|
+
var configSchema = import_zod2.z.object({
|
|
355
|
+
language: humanLanguageSchema.optional(),
|
|
356
|
+
metadata: metadataConfigSchema.optional(),
|
|
357
|
+
artifactsDir: configArtifactsDirSchema.optional(),
|
|
358
|
+
contractsDir: configContractsDirSchema.optional(),
|
|
359
|
+
contracts: import_zod2.z.record(contractSchema).optional(),
|
|
360
|
+
plugins: import_zod2.z.array(installedPluginSchema).optional(),
|
|
361
|
+
accounts: import_zod2.z.record(tzSchema).optional(),
|
|
362
|
+
environment: import_zod2.z.record(import_zod2.z.union([environmentSchema, environmentNameSchema])),
|
|
363
|
+
network: import_zod2.z.record(networkConfigSchema).optional(),
|
|
364
|
+
sandbox: import_zod2.z.record(sandboxConfigSchema).optional()
|
|
365
|
+
});
|
|
366
|
+
var configFileV1Schema = import_zod2.z.object({
|
|
367
|
+
language: humanLanguageSchema.optional(),
|
|
368
|
+
plugins: import_zod2.z.array(installedPluginSchema).optional(),
|
|
369
|
+
contractsDir: configContractsDirSchema.optional(),
|
|
370
|
+
artifactsDir: configArtifactsDirSchema.optional(),
|
|
371
|
+
network: import_zod2.z.record(networkConfigSchema).optional(),
|
|
372
|
+
sandbox: import_zod2.z.record(sandboxConfigSchema).optional(),
|
|
373
|
+
environment: import_zod2.z.record(import_zod2.z.union([environmentSchema, environmentNameSchema])).optional(),
|
|
374
|
+
accounts: import_zod2.z.record(tzSchema).optional(),
|
|
375
|
+
contracts: import_zod2.z.record(contractSchema).optional(),
|
|
376
|
+
metadata: metadataConfigSchema.optional()
|
|
377
|
+
});
|
|
378
|
+
var loadedConfigSchema = configSchema.extend(
|
|
379
|
+
{
|
|
380
|
+
projectDir: sanitizedAbsPathSchema,
|
|
381
|
+
configFile: sanitizedAbsPathSchema,
|
|
382
|
+
hash: sha256Schema
|
|
383
|
+
}
|
|
384
|
+
);
|
|
385
|
+
var parsedConfigSchema = configSchema.omit({ sandbox: true }).extend(
|
|
386
|
+
{
|
|
387
|
+
sandbox: import_zod2.z.record(import_zod2.z.union([sandboxConfigSchema, nonEmptyStringSchema]))
|
|
388
|
+
}
|
|
389
|
+
);
|
|
390
|
+
var requestArgsSchema = sanitizedArgsSchema.omit({ quickstart: true }).extend(
|
|
391
|
+
{
|
|
392
|
+
taqRun: pluginActionNameSchema,
|
|
393
|
+
config: loadedConfigSchema
|
|
394
|
+
}
|
|
395
|
+
).passthrough();
|
|
396
|
+
var proxyTaskArgsSchema = requestArgsSchema.extend(
|
|
397
|
+
{
|
|
398
|
+
task: nonEmptyStringSchema
|
|
399
|
+
}
|
|
400
|
+
).passthrough();
|
|
401
|
+
var proxyTemplateArgsSchema = requestArgsSchema.extend(
|
|
402
|
+
{
|
|
403
|
+
template: nonEmptyStringSchema
|
|
404
|
+
}
|
|
405
|
+
).passthrough();
|
|
406
|
+
var operationSchema = import_zod2.z.object({
|
|
407
|
+
operation: verbSchema,
|
|
408
|
+
command: commandSchema,
|
|
409
|
+
description: nonEmptyStringSchema.optional(),
|
|
410
|
+
positionals: import_zod2.z.array(positionalArgSchema).optional(),
|
|
411
|
+
options: import_zod2.z.array(optionSchema).optional(),
|
|
412
|
+
handler: import_zod2.z.function().args(persistentStateSchema).returns(import_zod2.z.function().args(requestArgsSchema).returns(import_zod2.z.void())).optional()
|
|
413
|
+
});
|
|
414
|
+
var parsedOperationSchema = operationSchema.omit({ handler: true });
|
|
415
|
+
var templateHandlerSchema = import_zod2.z.union([
|
|
416
|
+
nonEmptyStringSchema,
|
|
417
|
+
import_zod2.z.function().args(requestArgsSchema).returns(
|
|
418
|
+
import_zod2.z.union([pluginJsonResponseSchema, import_zod2.z.promise(pluginJsonResponseSchema)])
|
|
419
|
+
),
|
|
420
|
+
import_zod2.z.promise(import_zod2.z.void())
|
|
421
|
+
]);
|
|
422
|
+
var templateSchema = import_zod2.z.object({
|
|
423
|
+
template: verbSchema,
|
|
424
|
+
command: commandSchema,
|
|
425
|
+
description: nonEmptyStringSchema,
|
|
426
|
+
hidden: import_zod2.z.boolean().optional(),
|
|
427
|
+
options: import_zod2.z.array(optionSchema).optional(),
|
|
428
|
+
positionals: import_zod2.z.array(positionalArgSchema).optional(),
|
|
429
|
+
handler: templateHandlerSchema,
|
|
430
|
+
encoding: pluginResponseEncodingSchema.optional()
|
|
431
|
+
});
|
|
432
|
+
var parsedTemplateSchema = templateSchema.omit({ handler: true }).extend(
|
|
433
|
+
{
|
|
434
|
+
handler: import_zod2.z.string()
|
|
435
|
+
}
|
|
436
|
+
);
|
|
437
|
+
var pluginInfoSchema = pluginSchemaBaseSchema.extend(
|
|
438
|
+
{
|
|
439
|
+
operations: import_zod2.z.array(parsedOperationSchema).optional(),
|
|
440
|
+
templates: import_zod2.z.array(parsedTemplateSchema).optional()
|
|
441
|
+
}
|
|
442
|
+
);
|
|
443
|
+
var pluginSchemaSchema = pluginSchemaBaseSchema.extend(
|
|
444
|
+
{
|
|
445
|
+
operations: import_zod2.z.array(operationSchema).optional(),
|
|
446
|
+
templates: import_zod2.z.array(templateSchema).optional(),
|
|
447
|
+
proxy: import_zod2.z.function().args(requestArgsSchema).returns(import_zod2.z.promise(pluginProxyResponseSchema)).optional(),
|
|
448
|
+
checkRuntimeDependencies: import_zod2.z.function().args(requestArgsSchema).returns(import_zod2.z.promise(pluginDependenciesResponseSchema)).optional(),
|
|
449
|
+
installRuntimeDependencies: import_zod2.z.function().args(requestArgsSchema).returns(import_zod2.z.promise(pluginDependenciesResponseSchema)).optional()
|
|
450
|
+
}
|
|
451
|
+
);
|
|
452
|
+
var ephemeralStateSchema = import_zod2.z.object({
|
|
453
|
+
build: import_zod2.z.string(),
|
|
454
|
+
configHash: import_zod2.z.string(),
|
|
455
|
+
tasks: import_zod2.z.record(installedPluginSchema.and(taskSchema)),
|
|
456
|
+
operations: import_zod2.z.record(installedPluginSchema.and(parsedOperationSchema)),
|
|
457
|
+
templates: import_zod2.z.record(installedPluginSchema.and(parsedTemplateSchema)),
|
|
458
|
+
plugins: import_zod2.z.array(pluginInfoSchema)
|
|
459
|
+
});
|
|
460
|
+
|
|
461
|
+
// out/types/ParsedOperation.ts
|
|
462
|
+
var schemas = {
|
|
463
|
+
rawSchema: parsedOperationSchema,
|
|
464
|
+
schema: parsedOperationSchema.transform((val) => val)
|
|
465
|
+
};
|
|
466
|
+
var rawSchema = schemas.rawSchema;
|
|
467
|
+
|
|
468
|
+
// out/types/Alias.ts
|
|
469
|
+
var import_fluture4 = require("fluture");
|
|
470
|
+
var import_zod4 = require("zod");
|
|
471
|
+
var schemas2 = {
|
|
472
|
+
rawSchema: aliasSchema,
|
|
473
|
+
schema: aliasSchema.transform((val) => val)
|
|
474
|
+
};
|
|
475
|
+
var rawSchema2 = schemas2.rawSchema;
|
|
476
|
+
|
|
477
|
+
// out/types/ParsedTemplate.ts
|
|
478
|
+
var import_fluture5 = require("fluture");
|
|
479
|
+
var import_zod5 = require("zod");
|
|
480
|
+
var schemas3 = {
|
|
481
|
+
rawSchema: parsedTemplateSchema,
|
|
482
|
+
schema: parsedTemplateSchema.transform((val) => val)
|
|
483
|
+
};
|
|
484
|
+
var rawSchema3 = schemas3.rawSchema;
|
|
485
|
+
|
|
486
|
+
// out/types/Task.ts
|
|
487
|
+
var import_fluture6 = require("fluture");
|
|
488
|
+
var import_zod6 = require("zod");
|
|
489
|
+
var schemas4 = {
|
|
490
|
+
rawSchema: taskSchema,
|
|
491
|
+
schema: taskSchema.transform((val) => val)
|
|
492
|
+
};
|
|
493
|
+
var rawSchema4 = schemas4.rawSchema;
|
|
494
|
+
|
|
495
|
+
// out/types/VersionNumber.ts
|
|
496
|
+
var import_fluture7 = require("fluture");
|
|
497
|
+
var import_zod7 = require("zod");
|
|
498
|
+
var schemas5 = {
|
|
499
|
+
rawSchema: versionNumberSchema,
|
|
500
|
+
schema: versionNumberSchema.transform((val) => val)
|
|
501
|
+
};
|
|
502
|
+
var rawSchema5 = schemas5.rawSchema;
|
|
503
|
+
|
|
504
|
+
// PluginInfo.ts
|
|
505
|
+
var import_zod8 = require("zod");
|
|
506
|
+
var rawSchema6 = import_zod8.z.object({
|
|
507
|
+
name: import_zod8.z.string({ description: "Plugin Name" }).min(1),
|
|
508
|
+
version: rawSchema5.describe("Plugin Version #"),
|
|
509
|
+
schema: rawSchema5.describe("Plugin Schema Version #"),
|
|
510
|
+
alias: rawSchema2.describe("Plugin Alias"),
|
|
511
|
+
tasks: import_zod8.z.preprocess(
|
|
44
512
|
(val) => val != null ? val : [],
|
|
45
|
-
|
|
46
|
-
|
|
513
|
+
import_zod8.z.array(
|
|
514
|
+
schemas4.schema.describe("Plugin Task"),
|
|
515
|
+
{ description: "Plugin Tasks" }
|
|
516
|
+
)
|
|
517
|
+
).optional(),
|
|
518
|
+
operations: import_zod8.z.preprocess(
|
|
519
|
+
(val) => val != null ? val : [],
|
|
520
|
+
import_zod8.z.array(
|
|
521
|
+
schemas.schema.describe("Plugin Operation"),
|
|
522
|
+
{ description: "Plugin Operations" }
|
|
523
|
+
)
|
|
524
|
+
).optional(),
|
|
525
|
+
templates: import_zod8.z.preprocess(
|
|
526
|
+
(val) => val != null ? val : [],
|
|
527
|
+
import_zod8.z.array(
|
|
528
|
+
schemas3.schema.describe("Plugin Template")
|
|
529
|
+
)
|
|
530
|
+
).optional()
|
|
531
|
+
});
|
|
532
|
+
var internalSchema = rawSchema6.extend({
|
|
533
|
+
version: schemas5.schema.describe("Plugin Version #"),
|
|
534
|
+
schema: schemas5.schema.describe("Plugin Schema Version #"),
|
|
535
|
+
alias: schemas2.schema.describe("Plugin Alias"),
|
|
536
|
+
tasks: import_zod8.z.preprocess(
|
|
537
|
+
(val) => val != null ? val : [],
|
|
538
|
+
import_zod8.z.array(
|
|
539
|
+
schemas4.schema.describe("Plugin Task"),
|
|
540
|
+
{ description: "Plugin Tasks" }
|
|
541
|
+
)
|
|
542
|
+
).optional(),
|
|
543
|
+
operations: import_zod8.z.preprocess(
|
|
544
|
+
(val) => val != null ? val : [],
|
|
545
|
+
import_zod8.z.array(
|
|
546
|
+
schemas.schema.describe("Plugin Operation"),
|
|
547
|
+
{ description: "Plugin Operations" }
|
|
548
|
+
)
|
|
549
|
+
).optional(),
|
|
550
|
+
templates: import_zod8.z.preprocess(
|
|
551
|
+
(val) => val != null ? val : [],
|
|
552
|
+
import_zod8.z.array(
|
|
553
|
+
schemas3.schema.describe("Plugin Template")
|
|
554
|
+
)
|
|
555
|
+
).optional()
|
|
556
|
+
}).describe("Plugin Schema");
|
|
557
|
+
var { schemas: schemas6, factory } = Base_default({
|
|
558
|
+
rawSchema: rawSchema6,
|
|
559
|
+
internalSchema,
|
|
560
|
+
parseErrMsg: "The schema returned from the plugin is invalid",
|
|
561
|
+
unknownErrMsg: "Something went wrong parsing the schema from a plugin"
|
|
562
|
+
});
|
|
563
|
+
var { create: create2, of, make } = factory;
|
|
564
|
+
|
|
565
|
+
// ParsedPluginInfo.ts
|
|
566
|
+
var import_zod9 = require("zod");
|
|
567
|
+
var internalSchema2 = internalSchema.extend({
|
|
568
|
+
operations: import_zod9.z.preprocess(
|
|
569
|
+
(val) => val != null ? val : [],
|
|
570
|
+
import_zod9.z.array(
|
|
571
|
+
schemas.schema,
|
|
47
572
|
{ description: "ParsedOperations" }
|
|
48
573
|
).optional()
|
|
49
574
|
)
|
|
50
575
|
}).describe("ParsedPluginInfo");
|
|
51
|
-
var
|
|
52
|
-
operations:
|
|
576
|
+
var rawSchema7 = internalSchema.extend({
|
|
577
|
+
operations: import_zod9.z.preprocess(
|
|
53
578
|
(val) => val != null ? val : [],
|
|
54
|
-
|
|
55
|
-
|
|
579
|
+
import_zod9.z.array(
|
|
580
|
+
rawSchema,
|
|
56
581
|
{ description: "ParsedOperation" }
|
|
57
582
|
)
|
|
58
583
|
).optional()
|
|
59
584
|
}).describe("ParsedPluginInfo");
|
|
60
|
-
var { schemas: generatedSchemas, factory } = (
|
|
61
|
-
rawSchema:
|
|
585
|
+
var { schemas: generatedSchemas, factory: factory2 } = Base_default({
|
|
586
|
+
rawSchema: rawSchema7,
|
|
62
587
|
internalSchema: internalSchema2,
|
|
63
588
|
parseErrMsg: (value) => `The following plugin info gave us trouble when parsing the following plugin information: ${value}`,
|
|
64
589
|
unknownErrMsg: "Something went wrong trying to parse the plugin information"
|
|
65
590
|
});
|
|
66
|
-
var { create, of, make } =
|
|
67
|
-
var
|
|
591
|
+
var { create: create3, of: of2, make: make2 } = factory2;
|
|
592
|
+
var schemas7 = {
|
|
68
593
|
...generatedSchemas,
|
|
69
594
|
schema: generatedSchemas.schema.transform((val) => val)
|
|
70
595
|
};
|