@taqueria/protocol 0.56.15 → 0.57.8
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.d.js +455 -0
- package/Alias.d.js.map +1 -0
- package/Alias.js +53 -53
- package/Alias.js.map +1 -1
- package/Base.d.js +27 -0
- package/Base.d.js.map +1 -0
- package/Base.d.ts +6 -6
- package/Base.d.ts.map +1 -1
- package/Base.js.map +1 -1
- package/Command.d.js +455 -0
- package/Command.d.js.map +1 -0
- package/Command.js +53 -53
- package/Command.js.map +1 -1
- package/Config.d.js +455 -0
- package/Config.d.js.map +1 -0
- package/Config.d.ts +0 -1
- package/Config.js +53 -53
- package/Config.js.map +1 -1
- package/ConfigArtifactsDir.d.js +19 -0
- package/ConfigArtifactsDir.d.js.map +1 -0
- package/ConfigArtifactsDir.js.map +1 -1
- package/ConfigContractsDir.d.js +455 -0
- package/ConfigContractsDir.d.js.map +1 -0
- package/ConfigContractsDir.js +53 -53
- package/ConfigContractsDir.js.map +1 -1
- package/ConfigEnvironmentFileV2.d.js +455 -0
- package/ConfigEnvironmentFileV2.d.js.map +1 -0
- package/ConfigEnvironmentFileV2.d.ts +0 -1
- package/ConfigEnvironmentFileV2.js +53 -53
- package/ConfigEnvironmentFileV2.js.map +1 -1
- package/ConfigFileV2.d.js +455 -0
- package/ConfigFileV2.d.js.map +1 -0
- package/ConfigFileV2.d.ts +0 -1
- package/ConfigFileV2.js +53 -53
- package/ConfigFileV2.js.map +1 -1
- package/Contract.d.js +455 -0
- package/Contract.d.js.map +1 -0
- package/Contract.js +53 -53
- package/Contract.js.map +1 -1
- package/Crypto.d.js +19 -0
- package/Crypto.d.js.map +1 -0
- package/EconomicalProtocolHash.d.js +455 -0
- package/EconomicalProtocolHash.d.js.map +1 -0
- package/EconomicalProtocolHash.js +53 -53
- package/EconomicalProtocolHash.js.map +1 -1
- package/Environment.d.js +455 -0
- package/Environment.d.js.map +1 -0
- package/Environment.d.ts +0 -1
- package/Environment.js +53 -53
- package/Environment.js.map +1 -1
- package/EphemeralState.d.js +19 -0
- package/EphemeralState.d.js.map +1 -0
- package/EphemeralState.d.ts +1602 -646
- package/EphemeralState.d.ts.map +1 -1
- package/EphemeralState.js +3251 -108
- package/EphemeralState.js.map +1 -1
- package/Faucet.d.js +455 -0
- package/Faucet.d.js.map +1 -0
- package/Faucet.js +53 -53
- package/Faucet.js.map +1 -1
- package/HumanReadableIdentifier.d.js +455 -0
- package/HumanReadableIdentifier.d.js.map +1 -0
- package/HumanReadableIdentifier.js +53 -53
- package/HumanReadableIdentifier.js.map +1 -1
- package/InstalledPlugin.d.js +455 -0
- package/InstalledPlugin.d.js.map +1 -0
- package/InstalledPlugin.js +53 -53
- package/InstalledPlugin.js.map +1 -1
- package/LoadedConfig.d.js +455 -0
- package/LoadedConfig.d.js.map +1 -0
- package/LoadedConfig.js +53 -53
- package/LoadedConfig.js.map +1 -1
- package/MetadataConfig.d.js +455 -0
- package/MetadataConfig.d.js.map +1 -0
- package/MetadataConfig.js +53 -53
- package/MetadataConfig.js.map +1 -1
- package/NetworkAccountConfig.d.js +455 -0
- package/NetworkAccountConfig.d.js.map +1 -0
- package/NetworkAccountConfig.js +53 -53
- package/NetworkAccountConfig.js.map +1 -1
- package/NetworkConfig.d.js +455 -0
- package/NetworkConfig.d.js.map +1 -0
- package/NetworkConfig.js +53 -53
- package/NetworkConfig.js.map +1 -1
- package/NonEmptyString.d.js +455 -0
- package/NonEmptyString.d.js.map +1 -0
- package/NonEmptyString.js +53 -53
- package/NonEmptyString.js.map +1 -1
- package/Operation.d.js +455 -0
- package/Operation.d.js.map +1 -0
- package/Operation.js +53 -53
- package/Operation.js.map +1 -1
- package/Option.d.js +455 -0
- package/Option.d.js.map +1 -0
- package/Option.js +53 -53
- package/Option.js.map +1 -1
- package/ParsedOperation.d.js +455 -0
- package/ParsedOperation.d.js.map +1 -0
- package/ParsedOperation.js +53 -53
- package/ParsedOperation.js.map +1 -1
- package/ParsedPluginInfo.d.js +19 -0
- package/ParsedPluginInfo.d.js.map +1 -0
- package/ParsedPluginInfo.d.ts +5477 -717
- package/ParsedPluginInfo.d.ts.map +1 -1
- package/ParsedPluginInfo.js +53 -53
- package/ParsedPluginInfo.js.map +1 -1
- package/ParsedTemplate.d.js +455 -0
- package/ParsedTemplate.d.js.map +1 -0
- package/ParsedTemplate.js +53 -53
- package/ParsedTemplate.js.map +1 -1
- package/PersistentState.d.js +19 -0
- package/PersistentState.d.js.map +1 -0
- package/PersistentState.d.ts +47 -332
- package/PersistentState.d.ts.map +1 -1
- package/PersistentState.js +53 -53
- package/PersistentState.js.map +1 -1
- package/PluginActionName.d.js +455 -0
- package/PluginActionName.d.js.map +1 -0
- package/PluginActionName.js +53 -53
- package/PluginActionName.js.map +1 -1
- package/PluginDependenciesResponse.d.js +455 -0
- package/PluginDependenciesResponse.d.js.map +1 -0
- package/PluginDependenciesResponse.js +53 -53
- package/PluginDependenciesResponse.js.map +1 -1
- package/PluginInfo.d.js +19 -0
- package/PluginInfo.d.js.map +1 -0
- package/PluginInfo.d.ts +5925 -1223
- package/PluginInfo.d.ts.map +1 -1
- package/PluginInfo.js +53 -53
- package/PluginInfo.js.map +1 -1
- package/PluginJsonResponse.d.js +455 -0
- package/PluginJsonResponse.d.js.map +1 -0
- package/PluginJsonResponse.js +53 -53
- package/PluginJsonResponse.js.map +1 -1
- package/PluginProxyResponse.d.js +455 -0
- package/PluginProxyResponse.d.js.map +1 -0
- package/PluginProxyResponse.js +53 -53
- package/PluginProxyResponse.js.map +1 -1
- package/PluginResponseEncoding.d.js +455 -0
- package/PluginResponseEncoding.d.js.map +1 -0
- package/PluginResponseEncoding.js +53 -53
- package/PluginResponseEncoding.js.map +1 -1
- package/PluginSchema.d.js +19 -0
- package/PluginSchema.d.js.map +1 -0
- package/PluginSchema.d.ts +27517 -11308
- package/PluginSchema.d.ts.map +1 -1
- package/PluginSchema.js +53 -53
- package/PluginSchema.js.map +1 -1
- package/PositionalArg.d.js +455 -0
- package/PositionalArg.d.js.map +1 -0
- package/PositionalArg.js +53 -53
- package/PositionalArg.js.map +1 -1
- package/Provisioner.d.js +455 -0
- package/Provisioner.d.js.map +1 -0
- package/Provisioner.js +53 -53
- package/Provisioner.js.map +1 -1
- package/ProvisionerID.d.js +455 -0
- package/ProvisionerID.d.js.map +1 -0
- package/ProvisionerID.js +53 -53
- package/ProvisionerID.js.map +1 -1
- package/Provisions.d.js +455 -0
- package/Provisions.d.js.map +1 -0
- package/Provisions.js +53 -53
- package/Provisions.js.map +1 -1
- package/ProxyTaskArgs.d.js +455 -0
- package/ProxyTaskArgs.d.js.map +1 -0
- package/ProxyTaskArgs.js +53 -53
- package/ProxyTaskArgs.js.map +1 -1
- package/ProxyTemplateArgs.d.js +455 -0
- package/ProxyTemplateArgs.d.js.map +1 -0
- package/ProxyTemplateArgs.js +53 -53
- package/ProxyTemplateArgs.js.map +1 -1
- package/PublicKeyHash.d.js +455 -0
- package/PublicKeyHash.d.js.map +1 -0
- package/PublicKeyHash.js +53 -53
- package/PublicKeyHash.js.map +1 -1
- package/RequestArgs.d.js +455 -0
- package/RequestArgs.d.js.map +1 -0
- package/RequestArgs.js +53 -53
- package/RequestArgs.js.map +1 -1
- package/SHA256.d.js +19 -0
- package/SHA256.d.js.map +1 -0
- package/SHA256.d.ts +7 -7
- package/SHA256.d.ts.map +1 -1
- package/SHA256.js.map +1 -1
- package/SandboxAccountConfig.d.js +455 -0
- package/SandboxAccountConfig.d.js.map +1 -0
- package/SandboxAccountConfig.js +53 -53
- package/SandboxAccountConfig.js.map +1 -1
- package/SandboxConfig.d.js +455 -0
- package/SandboxConfig.d.js.map +1 -0
- package/SandboxConfig.js +53 -53
- package/SandboxConfig.js.map +1 -1
- package/SanitizedAbsPath.d.js +19 -0
- package/SanitizedAbsPath.d.js.map +1 -0
- package/SanitizedAbsPath.d.ts +10 -10
- package/SanitizedAbsPath.d.ts.map +1 -1
- package/SanitizedAbsPath.js.map +1 -1
- package/SanitizedArgs.d.js +19 -0
- package/SanitizedArgs.d.js.map +1 -0
- package/SanitizedArgs.d.ts +410 -358
- package/SanitizedArgs.d.ts.map +1 -1
- package/SanitizedArgs.js +53 -53
- package/SanitizedArgs.js.map +1 -1
- package/SanitizedPath.d.js +455 -0
- package/SanitizedPath.d.js.map +1 -0
- package/SanitizedPath.js +53 -53
- package/SanitizedPath.js.map +1 -1
- package/ScaffoldConfig.d.js +455 -0
- package/ScaffoldConfig.d.js.map +1 -0
- package/ScaffoldConfig.js +53 -53
- package/ScaffoldConfig.js.map +1 -1
- package/Settings.d.js +455 -0
- package/Settings.d.js.map +1 -0
- package/Settings.d.ts +1 -0
- package/Settings.d.ts.map +1 -1
- package/Settings.js +53 -53
- package/Settings.js.map +1 -1
- package/SingleChar.d.js +455 -0
- package/SingleChar.d.js.map +1 -0
- package/SingleChar.js +53 -53
- package/SingleChar.js.map +1 -1
- package/TaqError.d.js +19 -0
- package/TaqError.d.js.map +1 -0
- package/TaqError.d.ts +0 -1
- package/TaqError.d.ts.map +1 -1
- package/Task.d.js +455 -0
- package/Task.d.js.map +1 -0
- package/Task.js +53 -53
- package/Task.js.map +1 -1
- package/Template.d.js +455 -0
- package/Template.d.js.map +1 -0
- package/Template.js +53 -53
- package/Template.js.map +1 -1
- package/Timestamp.d.js +455 -0
- package/Timestamp.d.js.map +1 -0
- package/Timestamp.js +53 -53
- package/Timestamp.js.map +1 -1
- package/Tz.d.js +455 -0
- package/Tz.d.js.map +1 -0
- package/Tz.js +53 -53
- package/Tz.js.map +1 -1
- package/Url.d.js +455 -0
- package/Url.d.js.map +1 -0
- package/Url.js +53 -53
- package/Url.js.map +1 -1
- package/Verb.d.js +455 -0
- package/Verb.d.js.map +1 -0
- package/Verb.js +53 -53
- package/Verb.js.map +1 -1
- package/VersionNumber.d.js +455 -0
- package/VersionNumber.d.js.map +1 -0
- package/VersionNumber.js +53 -53
- package/VersionNumber.js.map +1 -1
- package/helpers.d.js +19 -0
- package/helpers.d.js.map +1 -0
- package/helpers.js.map +1 -1
- package/i18n.d.js +27 -0
- package/i18n.d.js.map +1 -0
- package/i18n.d.ts.map +1 -1
- package/index.d.js +3531 -0
- package/index.d.js.map +1 -0
- package/index.js +79 -80
- package/index.js.map +1 -1
- package/out/types/Alias.d.ts +1 -1
- package/out/types/Alias.d.ts.map +1 -1
- package/out/types/Alias.js +53 -53
- package/out/types/Alias.js.map +1 -1
- package/out/types/BuildNumber.d.ts +1 -1
- package/out/types/BuildNumber.d.ts.map +1 -1
- package/out/types/BuildNumber.js +53 -53
- package/out/types/BuildNumber.js.map +1 -1
- package/out/types/Command.d.ts +1 -1
- package/out/types/Command.d.ts.map +1 -1
- package/out/types/Command.js +53 -53
- package/out/types/Command.js.map +1 -1
- package/out/types/Config.d.ts +154 -155
- package/out/types/Config.d.ts.map +1 -1
- package/out/types/Config.js +53 -53
- package/out/types/Config.js.map +1 -1
- package/out/types/ConfigAccount.d.ts +1 -1
- package/out/types/ConfigAccount.d.ts.map +1 -1
- package/out/types/ConfigAccount.js +53 -53
- package/out/types/ConfigAccount.js.map +1 -1
- package/out/types/ConfigArtifactsDir.d.ts +1 -1
- package/out/types/ConfigArtifactsDir.d.ts.map +1 -1
- package/out/types/ConfigArtifactsDir.js +53 -53
- package/out/types/ConfigArtifactsDir.js.map +1 -1
- package/out/types/ConfigContractsDir.d.ts +1 -1
- package/out/types/ConfigContractsDir.d.ts.map +1 -1
- package/out/types/ConfigContractsDir.js +53 -53
- package/out/types/ConfigContractsDir.js.map +1 -1
- package/out/types/ConfigEnvironmentFileV2.d.ts +1 -2
- package/out/types/ConfigEnvironmentFileV2.d.ts.map +1 -1
- package/out/types/ConfigEnvironmentFileV2.js +53 -53
- package/out/types/ConfigEnvironmentFileV2.js.map +1 -1
- package/out/types/ConfigFileV1.d.ts +275 -275
- package/out/types/ConfigFileV1.d.ts.map +1 -1
- package/out/types/ConfigFileV1.js +53 -53
- package/out/types/ConfigFileV1.js.map +1 -1
- package/out/types/ConfigFileV2.d.ts +73 -74
- package/out/types/ConfigFileV2.d.ts.map +1 -1
- package/out/types/ConfigFileV2.js +53 -53
- package/out/types/ConfigFileV2.js.map +1 -1
- package/out/types/Contract.d.ts +1 -1
- package/out/types/Contract.d.ts.map +1 -1
- package/out/types/Contract.js +53 -53
- package/out/types/Contract.js.map +1 -1
- package/out/types/CurrencyAmountV2.d.ts +1 -1
- package/out/types/CurrencyAmountV2.d.ts.map +1 -1
- package/out/types/CurrencyAmountV2.js +53 -53
- package/out/types/CurrencyAmountV2.js.map +1 -1
- package/out/types/EconomicalProtocolHash.d.ts +1 -1
- package/out/types/EconomicalProtocolHash.d.ts.map +1 -1
- package/out/types/EconomicalProtocolHash.js +53 -53
- package/out/types/EconomicalProtocolHash.js.map +1 -1
- package/out/types/Environment.d.ts +10 -11
- package/out/types/Environment.d.ts.map +1 -1
- package/out/types/Environment.js +53 -53
- package/out/types/Environment.js.map +1 -1
- package/out/types/EphemeralState.d.ts +16933 -7937
- package/out/types/EphemeralState.d.ts.map +1 -1
- package/out/types/EphemeralState.js +53 -53
- package/out/types/EphemeralState.js.map +1 -1
- package/out/types/Faucet.d.ts +1 -1
- package/out/types/Faucet.d.ts.map +1 -1
- package/out/types/Faucet.js +53 -53
- package/out/types/Faucet.js.map +1 -1
- package/out/types/HumanReadableIdentifier.d.ts +1 -1
- package/out/types/HumanReadableIdentifier.d.ts.map +1 -1
- package/out/types/HumanReadableIdentifier.js +53 -53
- package/out/types/HumanReadableIdentifier.js.map +1 -1
- package/out/types/InstalledPlugin.d.ts +1 -1
- package/out/types/InstalledPlugin.d.ts.map +1 -1
- package/out/types/InstalledPlugin.js +53 -53
- package/out/types/InstalledPlugin.js.map +1 -1
- package/out/types/LoadedConfig.d.ts +328 -324
- package/out/types/LoadedConfig.d.ts.map +1 -1
- package/out/types/LoadedConfig.js +53 -53
- package/out/types/LoadedConfig.js.map +1 -1
- package/out/types/MetadataConfig.d.ts +1 -1
- package/out/types/MetadataConfig.d.ts.map +1 -1
- package/out/types/MetadataConfig.js +53 -53
- package/out/types/MetadataConfig.js.map +1 -1
- package/out/types/NetworkAccountConfig.d.ts +10 -10
- package/out/types/NetworkAccountConfig.d.ts.map +1 -1
- package/out/types/NetworkAccountConfig.js +53 -53
- package/out/types/NetworkAccountConfig.js.map +1 -1
- package/out/types/NetworkConfig.d.ts +18 -18
- package/out/types/NetworkConfig.d.ts.map +1 -1
- package/out/types/NetworkConfig.js +53 -53
- package/out/types/NetworkConfig.js.map +1 -1
- package/out/types/NonEmptyString.d.ts +1 -1
- package/out/types/NonEmptyString.d.ts.map +1 -1
- package/out/types/NonEmptyString.js +53 -53
- package/out/types/NonEmptyString.js.map +1 -1
- package/out/types/Operation.d.ts +2034 -1971
- package/out/types/Operation.d.ts.map +1 -1
- package/out/types/Operation.js +53 -53
- package/out/types/Operation.js.map +1 -1
- package/out/types/Option.d.ts +28 -28
- package/out/types/Option.d.ts.map +1 -1
- package/out/types/Option.js +53 -53
- package/out/types/Option.js.map +1 -1
- package/out/types/ParsedConfig.d.ts +332 -68
- package/out/types/ParsedConfig.d.ts.map +1 -1
- package/out/types/ParsedConfig.js +53 -53
- package/out/types/ParsedConfig.js.map +1 -1
- package/out/types/ParsedOperation.d.ts +1124 -1088
- package/out/types/ParsedOperation.d.ts.map +1 -1
- package/out/types/ParsedOperation.js +53 -53
- package/out/types/ParsedOperation.js.map +1 -1
- package/out/types/ParsedTemplate.d.ts +4622 -162
- package/out/types/ParsedTemplate.d.ts.map +1 -1
- package/out/types/ParsedTemplate.js +53 -53
- package/out/types/ParsedTemplate.js.map +1 -1
- package/out/types/PersistedOperation.d.ts +1 -1
- package/out/types/PersistedOperation.d.ts.map +1 -1
- package/out/types/PersistedOperation.js +53 -53
- package/out/types/PersistedOperation.js.map +1 -1
- package/out/types/PersistedTask.d.ts +1 -1
- package/out/types/PersistedTask.d.ts.map +1 -1
- package/out/types/PersistedTask.js +53 -53
- package/out/types/PersistedTask.js.map +1 -1
- package/out/types/PersistentState.d.ts +1 -1
- package/out/types/PersistentState.d.ts.map +1 -1
- package/out/types/PersistentState.js +53 -53
- package/out/types/PersistentState.js.map +1 -1
- package/out/types/PluginActionName.d.ts +1 -1
- package/out/types/PluginActionName.d.ts.map +1 -1
- package/out/types/PluginActionName.js +53 -53
- package/out/types/PluginActionName.js.map +1 -1
- package/out/types/PluginDependenciesResponse.d.ts +21 -17
- package/out/types/PluginDependenciesResponse.d.ts.map +1 -1
- package/out/types/PluginDependenciesResponse.js +53 -53
- package/out/types/PluginDependenciesResponse.js.map +1 -1
- package/out/types/PluginInfo.d.ts +7813 -3313
- package/out/types/PluginInfo.d.ts.map +1 -1
- package/out/types/PluginInfo.js +53 -53
- package/out/types/PluginInfo.js.map +1 -1
- package/out/types/PluginJsonResponse.d.ts +5 -5
- package/out/types/PluginJsonResponse.d.ts.map +1 -1
- package/out/types/PluginJsonResponse.js +53 -53
- package/out/types/PluginJsonResponse.js.map +1 -1
- package/out/types/PluginProxyResponse.d.ts +5 -5
- package/out/types/PluginProxyResponse.d.ts.map +1 -1
- package/out/types/PluginProxyResponse.js +53 -53
- package/out/types/PluginProxyResponse.js.map +1 -1
- package/out/types/PluginResponseEncoding.d.ts +1 -1
- package/out/types/PluginResponseEncoding.d.ts.map +1 -1
- package/out/types/PluginResponseEncoding.js +53 -53
- package/out/types/PluginResponseEncoding.js.map +1 -1
- package/out/types/PluginSchema.d.ts +18909 -24722
- package/out/types/PluginSchema.d.ts.map +1 -1
- package/out/types/PluginSchema.js +53 -53
- package/out/types/PluginSchema.js.map +1 -1
- package/out/types/PositionalArg.d.ts +19 -19
- package/out/types/PositionalArg.d.ts.map +1 -1
- package/out/types/PositionalArg.js +53 -53
- package/out/types/PositionalArg.js.map +1 -1
- package/out/types/Provisioner.d.ts +1 -1
- package/out/types/Provisioner.d.ts.map +1 -1
- package/out/types/Provisioner.js +53 -53
- package/out/types/Provisioner.js.map +1 -1
- package/out/types/ProvisionerID.d.ts +1 -1
- package/out/types/ProvisionerID.d.ts.map +1 -1
- package/out/types/ProvisionerID.js +53 -53
- package/out/types/ProvisionerID.js.map +1 -1
- package/out/types/Provisions.d.ts +1 -1
- package/out/types/Provisions.d.ts.map +1 -1
- package/out/types/Provisions.js +53 -53
- package/out/types/Provisions.js.map +1 -1
- package/out/types/ProxyTaskArgs.d.ts +1181 -1129
- package/out/types/ProxyTaskArgs.d.ts.map +1 -1
- package/out/types/ProxyTaskArgs.js +53 -53
- package/out/types/ProxyTaskArgs.js.map +1 -1
- package/out/types/ProxyTemplateArgs.d.ts +1181 -1129
- package/out/types/ProxyTemplateArgs.d.ts.map +1 -1
- package/out/types/ProxyTemplateArgs.js +53 -53
- package/out/types/ProxyTemplateArgs.js.map +1 -1
- package/out/types/PublicKeyHash.d.ts +1 -1
- package/out/types/PublicKeyHash.d.ts.map +1 -1
- package/out/types/PublicKeyHash.js +53 -53
- package/out/types/PublicKeyHash.js.map +1 -1
- package/out/types/RequestArgs.d.ts +1168 -1129
- package/out/types/RequestArgs.d.ts.map +1 -1
- package/out/types/RequestArgs.js +53 -53
- package/out/types/RequestArgs.js.map +1 -1
- package/out/types/RuntimeDependency.d.ts +1 -1
- package/out/types/RuntimeDependency.d.ts.map +1 -1
- package/out/types/RuntimeDependency.js +53 -53
- package/out/types/RuntimeDependency.js.map +1 -1
- package/out/types/RuntimeDependencyReport.d.ts +21 -17
- package/out/types/RuntimeDependencyReport.d.ts.map +1 -1
- package/out/types/RuntimeDependencyReport.js +53 -53
- package/out/types/RuntimeDependencyReport.js.map +1 -1
- package/out/types/SHA256.d.ts +1 -1
- package/out/types/SHA256.d.ts.map +1 -1
- package/out/types/SHA256.js +53 -53
- package/out/types/SHA256.js.map +1 -1
- package/out/types/SandboxAccount.d.ts +1 -1
- package/out/types/SandboxAccount.d.ts.map +1 -1
- package/out/types/SandboxAccount.js +53 -53
- package/out/types/SandboxAccount.js.map +1 -1
- package/out/types/SandboxAccountConfig.d.ts +1 -1
- package/out/types/SandboxAccountConfig.d.ts.map +1 -1
- package/out/types/SandboxAccountConfig.js +53 -53
- package/out/types/SandboxAccountConfig.js.map +1 -1
- package/out/types/SandboxAccounts.d.ts +1 -1
- package/out/types/SandboxAccounts.d.ts.map +1 -1
- package/out/types/SandboxAccounts.js +53 -53
- package/out/types/SandboxAccounts.js.map +1 -1
- package/out/types/SandboxConfig.d.ts +10 -10
- package/out/types/SandboxConfig.d.ts.map +1 -1
- package/out/types/SandboxConfig.js +53 -53
- package/out/types/SandboxConfig.js.map +1 -1
- package/out/types/SanitizedAbsPath.d.ts +1 -1
- package/out/types/SanitizedAbsPath.d.ts.map +1 -1
- package/out/types/SanitizedAbsPath.js +53 -53
- package/out/types/SanitizedAbsPath.js.map +1 -1
- package/out/types/SanitizedArgs.d.ts +1 -1
- package/out/types/SanitizedArgs.d.ts.map +1 -1
- package/out/types/SanitizedArgs.js +53 -53
- package/out/types/SanitizedArgs.js.map +1 -1
- package/out/types/SanitizedPath.d.ts +1 -1
- package/out/types/SanitizedPath.d.ts.map +1 -1
- package/out/types/SanitizedPath.js +53 -53
- package/out/types/SanitizedPath.js.map +1 -1
- package/out/types/ScaffoldConfig.d.ts +1 -1
- package/out/types/ScaffoldConfig.d.ts.map +1 -1
- package/out/types/ScaffoldConfig.js +53 -53
- package/out/types/ScaffoldConfig.js.map +1 -1
- package/out/types/Settings.d.ts +1 -1
- package/out/types/Settings.d.ts.map +1 -1
- package/out/types/Settings.js +53 -53
- package/out/types/Settings.js.map +1 -1
- package/out/types/SingleChar.d.ts +1 -1
- package/out/types/SingleChar.d.ts.map +1 -1
- package/out/types/SingleChar.js +53 -53
- package/out/types/SingleChar.js.map +1 -1
- package/out/types/Task.d.ts +167 -167
- package/out/types/Task.d.ts.map +1 -1
- package/out/types/Task.js +53 -53
- package/out/types/Task.js.map +1 -1
- package/out/types/Template.d.ts +2532 -5745
- package/out/types/Template.d.ts.map +1 -1
- package/out/types/Template.js +53 -53
- package/out/types/Template.js.map +1 -1
- package/out/types/Timestamp.d.ts +1 -1
- package/out/types/Timestamp.d.ts.map +1 -1
- package/out/types/Timestamp.js +53 -53
- package/out/types/Timestamp.js.map +1 -1
- package/out/types/Tz.d.ts +1 -1
- package/out/types/Tz.d.ts.map +1 -1
- package/out/types/Tz.js +53 -53
- package/out/types/Tz.js.map +1 -1
- package/out/types/TzKtConfig.d.ts +1 -1
- package/out/types/TzKtConfig.d.ts.map +1 -1
- package/out/types/TzKtConfig.js +53 -53
- package/out/types/TzKtConfig.js.map +1 -1
- package/out/types/Url.d.ts +1 -1
- package/out/types/Url.d.ts.map +1 -1
- package/out/types/Url.js +53 -53
- package/out/types/Url.js.map +1 -1
- package/out/types/Verb.d.ts +1 -1
- package/out/types/Verb.d.ts.map +1 -1
- package/out/types/Verb.js +53 -53
- package/out/types/Verb.js.map +1 -1
- package/out/types/VersionNumber.d.ts +1 -1
- package/out/types/VersionNumber.d.ts.map +1 -1
- package/out/types/VersionNumber.js +53 -53
- package/out/types/VersionNumber.js.map +1 -1
- package/out/types-strict.d.ts +0 -1
- package/out/types-zod.d.js.map +1 -1
- package/out/types-zod.d.ts +15769 -13234
- package/out/types-zod.d.ts.map +1 -1
- package/out/types-zod.js +53 -53
- package/out/types-zod.js.map +1 -1
- package/package.json +338 -335
- package/scripts/exports.sh +0 -0
- package/taqueria-protocol-types.d.js +3523 -0
- package/taqueria-protocol-types.d.js.map +1 -0
- package/taqueria-protocol-types.js +2212 -1335
- package/taqueria-protocol-types.js.map +1 -1
- package/tsconfig.tsbuildinfo +1 -0
- package/tsup.config.d.js +27 -0
- package/tsup.config.d.js.map +1 -0
- package/tsup.config.d.ts.map +1 -1
- package/tsup.config.js +104 -0
- package/tsup.config.js.map +1 -0
- package/types-config-files.d.js +19 -0
- package/types-config-files.d.js.map +1 -0
- package/types-config-files.d.ts +1 -2
- package/types-config-files.d.ts.map +1 -1
- package/types-config-files.js +2 -4
- package/types-config-files.js.map +1 -1
- package/types.d.js +19 -0
- package/types.d.js.map +1 -0
- package/types.d.ts +0 -1
- package/tzkt-config.d.js +19 -0
- package/tzkt-config.d.js.map +1 -0
- package/tzkt-config.d.ts +10 -10
- package/tzkt-config.d.ts.map +1 -1
- package/tzkt-config.js.map +1 -1
- package/scripts/build-types.d.ts +0 -2
- package/scripts/build-types.d.ts.map +0 -1
- package/scripts/post-ts-to-zod.d.ts +0 -2
- package/scripts/post-ts-to-zod.d.ts.map +0 -1
|
@@ -0,0 +1,3523 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from46, except, desc) => {
|
|
13
|
+
if (from46 && typeof from46 === "object" || typeof from46 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from46))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from46[key], enumerable: !(desc = __getOwnPropDesc(from46, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// taqueria-protocol-types.d.ts
|
|
31
|
+
var taqueria_protocol_types_d_exports = {};
|
|
32
|
+
__export(taqueria_protocol_types_d_exports, {
|
|
33
|
+
Alias: () => Alias_exports,
|
|
34
|
+
Config: () => Config_exports,
|
|
35
|
+
EconomicalProtocolHash: () => EconomicalProtocolHash_exports,
|
|
36
|
+
Environment: () => Environment_exports,
|
|
37
|
+
EphemeralState: () => EphemeralState_exports,
|
|
38
|
+
HumanReadableIdentifier: () => HumanReadableIdentifier_exports,
|
|
39
|
+
InstalledPlugin: () => InstalledPlugin_exports,
|
|
40
|
+
LoadedConfig: () => LoadedConfig_exports,
|
|
41
|
+
MetadataConfig: () => MetadataConfig_exports,
|
|
42
|
+
NetworkConfig: () => NetworkConfig_exports,
|
|
43
|
+
Operation: () => Operation_exports,
|
|
44
|
+
Option: () => Option_exports,
|
|
45
|
+
ParsedOperation: () => ParsedOperation_exports,
|
|
46
|
+
ParsedTemplate: () => ParsedTemplate_exports,
|
|
47
|
+
PersistentState: () => PersistentState_exports,
|
|
48
|
+
PluginActionName: () => PluginActionName_exports,
|
|
49
|
+
PluginInfo: () => PluginInfo_exports,
|
|
50
|
+
PluginJsonResponse: () => PluginJsonResponse_exports,
|
|
51
|
+
PluginResponseEncoding: () => PluginResponseEncoding_exports,
|
|
52
|
+
PluginSchema: () => PluginSchema_exports,
|
|
53
|
+
PositionalArg: () => PositionalArg_exports,
|
|
54
|
+
RequestArgs: () => RequestArgs_exports,
|
|
55
|
+
SHA256: () => SHA256_exports,
|
|
56
|
+
SandboxAccountConfig: () => SandboxAccountConfig_exports,
|
|
57
|
+
SandboxConfig: () => SandboxConfig_exports,
|
|
58
|
+
SanitizedAbsPath: () => SanitizedAbsPath_exports,
|
|
59
|
+
SanitizedArgs: () => SanitizedArgs_exports,
|
|
60
|
+
SanitizedPath: () => SanitizedPath_exports,
|
|
61
|
+
ScaffoldConfig: () => ScaffoldConfig_exports,
|
|
62
|
+
TaqError: () => TaqError_exports,
|
|
63
|
+
Task: () => Task_exports,
|
|
64
|
+
Template: () => Template_exports,
|
|
65
|
+
Url: () => Url_exports,
|
|
66
|
+
Verb: () => Verb_exports,
|
|
67
|
+
VersionNumber: () => VersionNumber_exports,
|
|
68
|
+
i18n: () => i18n_exports
|
|
69
|
+
});
|
|
70
|
+
module.exports = __toCommonJS(taqueria_protocol_types_d_exports);
|
|
71
|
+
|
|
72
|
+
// Alias.ts
|
|
73
|
+
var Alias_exports = {};
|
|
74
|
+
__export(Alias_exports, {
|
|
75
|
+
create: () => create2,
|
|
76
|
+
from: () => from,
|
|
77
|
+
internalSchema: () => internalSchema,
|
|
78
|
+
make: () => make,
|
|
79
|
+
of: () => of,
|
|
80
|
+
rawSchema: () => rawSchema,
|
|
81
|
+
schemas: () => schemas
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
// TaqError.ts
|
|
85
|
+
var TaqError_exports = {};
|
|
86
|
+
__export(TaqError_exports, {
|
|
87
|
+
E_TaqError: () => E_TaqError,
|
|
88
|
+
create: () => create,
|
|
89
|
+
toFutureParseErr: () => toFutureParseErr,
|
|
90
|
+
toFutureParseUnknownErr: () => toFutureParseUnknownErr,
|
|
91
|
+
toParseErr: () => toParseErr,
|
|
92
|
+
toParseUnknownErr: () => toParseUnknownErr
|
|
93
|
+
});
|
|
94
|
+
var import_fluture = require("fluture");
|
|
95
|
+
var E_TaqError = class extends Error {
|
|
96
|
+
constructor(taqErr) {
|
|
97
|
+
super(taqErr.msg);
|
|
98
|
+
this.context = taqErr.context;
|
|
99
|
+
this.kind = taqErr.kind;
|
|
100
|
+
this.name = this.kind;
|
|
101
|
+
this.previous = taqErr.previous;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var toFutureParseErr = (previous, msg, context) => (0, import_fluture.reject)(toParseErr(previous, msg, context)).pipe((0, import_fluture.map)((val) => val));
|
|
105
|
+
var toParseErr = (previous, msg, context) => create({
|
|
106
|
+
kind: "E_PARSE",
|
|
107
|
+
msg,
|
|
108
|
+
context,
|
|
109
|
+
previous
|
|
110
|
+
});
|
|
111
|
+
var toParseUnknownErr = (previous, msg, context) => create({
|
|
112
|
+
kind: "E_PARSE_UNKNOWN",
|
|
113
|
+
msg,
|
|
114
|
+
context,
|
|
115
|
+
previous
|
|
116
|
+
});
|
|
117
|
+
var toFutureParseUnknownErr = (previous, msg, context) => (0, import_fluture.reject)(toParseUnknownErr(previous, msg, context)).pipe((0, import_fluture.map)((val) => val));
|
|
118
|
+
var create = (err) => err;
|
|
119
|
+
|
|
120
|
+
// out/types/Alias.ts
|
|
121
|
+
var import_fluture2 = require("fluture");
|
|
122
|
+
var import_zod2 = require("zod");
|
|
123
|
+
|
|
124
|
+
// out/types-zod.ts
|
|
125
|
+
var import_zod = require("zod");
|
|
126
|
+
var nonEmptyStringSchema = import_zod.z.string().min(1);
|
|
127
|
+
var singleCharSchema = nonEmptyStringSchema.regex(/^[A-Za-z]$/);
|
|
128
|
+
var verbSchema = nonEmptyStringSchema.regex(/^[A-Za-z\-\ ]+/);
|
|
129
|
+
var aliasSchema = import_zod.z.union([verbSchema, singleCharSchema]);
|
|
130
|
+
var humanReadableIdentifierSchema = nonEmptyStringSchema.regex(
|
|
131
|
+
/^[A-Za-z]+[A-Za-z0-9-_ ]*$/
|
|
132
|
+
);
|
|
133
|
+
var sanitizedAbsPathSchema = nonEmptyStringSchema;
|
|
134
|
+
var sanitizedPathSchema = nonEmptyStringSchema;
|
|
135
|
+
var settingsSchema = import_zod.z.object({
|
|
136
|
+
consent: import_zod.z.union([
|
|
137
|
+
import_zod.z.literal("opt_in"),
|
|
138
|
+
import_zod.z.literal("opt_out"),
|
|
139
|
+
import_zod.z.literal("unspecified")
|
|
140
|
+
])
|
|
141
|
+
});
|
|
142
|
+
var timestampSchema = import_zod.z.number().min(1651846877);
|
|
143
|
+
var tzSchema = nonEmptyStringSchema.min(1).regex(/^\d([\d_]+\d)?$/);
|
|
144
|
+
var versionNumberSchema = nonEmptyStringSchema.min(1).regex(/^\d+\.\d+(\.\d+)*$/);
|
|
145
|
+
var urlSchema = nonEmptyStringSchema.url();
|
|
146
|
+
var commandSchema = nonEmptyStringSchema.regex(
|
|
147
|
+
/^([A-Za-z-_ ]+ ?)((\[.+\] ?)|(\<.+\>) ?)*$/
|
|
148
|
+
);
|
|
149
|
+
var optionSchema = import_zod.z.object({
|
|
150
|
+
shortFlag: singleCharSchema.optional(),
|
|
151
|
+
flag: verbSchema,
|
|
152
|
+
description: nonEmptyStringSchema,
|
|
153
|
+
defaultValue: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.boolean()]).optional(),
|
|
154
|
+
type: import_zod.z.union([
|
|
155
|
+
import_zod.z.literal("string"),
|
|
156
|
+
import_zod.z.literal("number"),
|
|
157
|
+
import_zod.z.literal("boolean"),
|
|
158
|
+
import_zod.z.literal("count")
|
|
159
|
+
]).optional(),
|
|
160
|
+
required: import_zod.z.boolean().optional(),
|
|
161
|
+
boolean: import_zod.z.boolean().optional(),
|
|
162
|
+
choices: import_zod.z.array(nonEmptyStringSchema).optional()
|
|
163
|
+
});
|
|
164
|
+
var positionalArgSchema = import_zod.z.object({
|
|
165
|
+
placeholder: humanReadableIdentifierSchema,
|
|
166
|
+
description: nonEmptyStringSchema,
|
|
167
|
+
defaultValue: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.boolean()]).optional(),
|
|
168
|
+
type: import_zod.z.union([import_zod.z.literal("string"), import_zod.z.literal("number"), import_zod.z.literal("boolean")]).optional(),
|
|
169
|
+
required: import_zod.z.boolean().optional()
|
|
170
|
+
});
|
|
171
|
+
var installedPluginSchema = import_zod.z.object({
|
|
172
|
+
type: import_zod.z.union([import_zod.z.literal("npm"), import_zod.z.literal("binary"), import_zod.z.literal("deno")]),
|
|
173
|
+
name: nonEmptyStringSchema
|
|
174
|
+
});
|
|
175
|
+
var pluginResponseEncodingSchema = import_zod.z.union([import_zod.z.literal("none"), import_zod.z.literal("json"), import_zod.z.literal("application/json")]).default("none");
|
|
176
|
+
var taskSchema = import_zod.z.object({
|
|
177
|
+
task: verbSchema,
|
|
178
|
+
command: commandSchema,
|
|
179
|
+
aliases: import_zod.z.array(aliasSchema).optional(),
|
|
180
|
+
description: nonEmptyStringSchema.min(3).optional(),
|
|
181
|
+
example: nonEmptyStringSchema.optional(),
|
|
182
|
+
hidden: import_zod.z.boolean().optional(),
|
|
183
|
+
encoding: pluginResponseEncodingSchema.optional(),
|
|
184
|
+
handler: import_zod.z.union([import_zod.z.literal("proxy"), nonEmptyStringSchema]),
|
|
185
|
+
options: import_zod.z.array(optionSchema).optional(),
|
|
186
|
+
positionals: import_zod.z.array(positionalArgSchema).optional()
|
|
187
|
+
});
|
|
188
|
+
var pluginSchemaBaseSchema = import_zod.z.object({
|
|
189
|
+
name: nonEmptyStringSchema,
|
|
190
|
+
version: versionNumberSchema,
|
|
191
|
+
schema: versionNumberSchema,
|
|
192
|
+
alias: aliasSchema,
|
|
193
|
+
tasks: import_zod.z.array(taskSchema).optional(),
|
|
194
|
+
postInstall: import_zod.z.string().optional()
|
|
195
|
+
});
|
|
196
|
+
var runtimeDependencySchema = import_zod.z.object({
|
|
197
|
+
name: humanReadableIdentifierSchema,
|
|
198
|
+
path: import_zod.z.string(),
|
|
199
|
+
version: import_zod.z.string(),
|
|
200
|
+
kind: import_zod.z.union([import_zod.z.literal("required"), import_zod.z.literal("optional")])
|
|
201
|
+
});
|
|
202
|
+
var runtimeDependencyReportSchema = runtimeDependencySchema.extend(
|
|
203
|
+
{
|
|
204
|
+
met: import_zod.z.boolean()
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
var pluginDependenciesResponseSchema = import_zod.z.object({
|
|
208
|
+
report: import_zod.z.array(runtimeDependencyReportSchema)
|
|
209
|
+
});
|
|
210
|
+
var pluginJsonResponseSchema = import_zod.z.union([
|
|
211
|
+
import_zod.z.object({
|
|
212
|
+
data: import_zod.z.unknown().optional(),
|
|
213
|
+
messages: import_zod.z.object({
|
|
214
|
+
header: import_zod.z.string().optional(),
|
|
215
|
+
footer: import_zod.z.string().optional()
|
|
216
|
+
}).optional(),
|
|
217
|
+
render: import_zod.z.union([import_zod.z.literal("none"), import_zod.z.literal("table"), import_zod.z.literal("string")]).default("none")
|
|
218
|
+
}),
|
|
219
|
+
import_zod.z.void()
|
|
220
|
+
]);
|
|
221
|
+
var pluginProxyResponseSchema = import_zod.z.union([
|
|
222
|
+
import_zod.z.void(),
|
|
223
|
+
pluginJsonResponseSchema
|
|
224
|
+
]);
|
|
225
|
+
var buildNumberSchema = import_zod.z.number();
|
|
226
|
+
var sanitizedArgsSchema = import_zod.z.object({
|
|
227
|
+
_: import_zod.z.array(import_zod.z.string()),
|
|
228
|
+
projectDir: sanitizedPathSchema,
|
|
229
|
+
maxConcurrency: import_zod.z.number(),
|
|
230
|
+
debug: import_zod.z.boolean(),
|
|
231
|
+
disableState: import_zod.z.boolean(),
|
|
232
|
+
logPluginRequests: import_zod.z.boolean(),
|
|
233
|
+
fromVsCode: import_zod.z.boolean(),
|
|
234
|
+
version: import_zod.z.boolean(),
|
|
235
|
+
build: import_zod.z.boolean(),
|
|
236
|
+
help: import_zod.z.boolean(),
|
|
237
|
+
yes: import_zod.z.boolean(),
|
|
238
|
+
plugin: nonEmptyStringSchema.optional(),
|
|
239
|
+
env: nonEmptyStringSchema,
|
|
240
|
+
quickstart: nonEmptyStringSchema,
|
|
241
|
+
setBuild: import_zod.z.union([nonEmptyStringSchema, buildNumberSchema]),
|
|
242
|
+
setVersion: nonEmptyStringSchema
|
|
243
|
+
}).passthrough();
|
|
244
|
+
var pluginActionNameSchema = import_zod.z.union([
|
|
245
|
+
import_zod.z.literal("proxy"),
|
|
246
|
+
import_zod.z.literal("pluginInfo"),
|
|
247
|
+
import_zod.z.literal("checkRuntimeDependencies"),
|
|
248
|
+
import_zod.z.literal("installRuntimeDependencies"),
|
|
249
|
+
import_zod.z.literal("runPostInstall"),
|
|
250
|
+
import_zod.z.literal("proxyTemplate")
|
|
251
|
+
]);
|
|
252
|
+
var economicalProtocolHashSchema = import_zod.z.string();
|
|
253
|
+
var publicKeyHashSchema = import_zod.z.string().regex(/^tz\d[A-Za-z0-9]{33}$/);
|
|
254
|
+
var sha256Schema = import_zod.z.string().regex(/^[A-Fa-f0-9]{64}$/);
|
|
255
|
+
var contractSchema = import_zod.z.object({
|
|
256
|
+
sourceFile: nonEmptyStringSchema,
|
|
257
|
+
hash: sha256Schema
|
|
258
|
+
});
|
|
259
|
+
var faucetSchema = import_zod.z.object({
|
|
260
|
+
pkh: publicKeyHashSchema,
|
|
261
|
+
mnemonic: import_zod.z.array(import_zod.z.string()),
|
|
262
|
+
email: import_zod.z.string().email(),
|
|
263
|
+
password: import_zod.z.string(),
|
|
264
|
+
amount: import_zod.z.string().regex(/^\d+$/),
|
|
265
|
+
activation_code: import_zod.z.string()
|
|
266
|
+
});
|
|
267
|
+
var tzKtConfigPostgresqlPortSchema = import_zod.z.number().default(5432);
|
|
268
|
+
var tzKtConfigApiPortSchema = import_zod.z.number().default(5e3);
|
|
269
|
+
var tzKtConfigSchema = import_zod.z.object({
|
|
270
|
+
disableAutostartWithSandbox: import_zod.z.boolean().optional(),
|
|
271
|
+
postgresqlPort: tzKtConfigPostgresqlPortSchema.optional(),
|
|
272
|
+
apiPort: tzKtConfigApiPortSchema.optional()
|
|
273
|
+
});
|
|
274
|
+
var persistedOperationSchema = import_zod.z.object({
|
|
275
|
+
hash: sha256Schema,
|
|
276
|
+
time: timestampSchema,
|
|
277
|
+
output: import_zod.z.unknown().optional()
|
|
278
|
+
});
|
|
279
|
+
var persistedTaskSchema = import_zod.z.object({
|
|
280
|
+
task: verbSchema,
|
|
281
|
+
plugin: nonEmptyStringSchema,
|
|
282
|
+
time: timestampSchema,
|
|
283
|
+
output: import_zod.z.unknown().optional()
|
|
284
|
+
});
|
|
285
|
+
var provisionerIDSchema = import_zod.z.string().min(1).regex(
|
|
286
|
+
/^[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+$/
|
|
287
|
+
);
|
|
288
|
+
var provisionerSchema = import_zod.z.object({
|
|
289
|
+
id: provisionerIDSchema,
|
|
290
|
+
plugin: nonEmptyStringSchema,
|
|
291
|
+
operation: import_zod.z.union([nonEmptyStringSchema, import_zod.z.literal("custom")]),
|
|
292
|
+
command: import_zod.z.string().optional(),
|
|
293
|
+
label: import_zod.z.string().optional(),
|
|
294
|
+
depends_on: import_zod.z.array(provisionerIDSchema).optional()
|
|
295
|
+
});
|
|
296
|
+
var provisionsSchema = import_zod.z.array(provisionerSchema);
|
|
297
|
+
var environmentSchema = import_zod.z.object({
|
|
298
|
+
networks: import_zod.z.array(nonEmptyStringSchema),
|
|
299
|
+
sandboxes: import_zod.z.array(nonEmptyStringSchema),
|
|
300
|
+
storage: import_zod.z.record(nonEmptyStringSchema).optional(),
|
|
301
|
+
aliases: import_zod.z.record(import_zod.z.record(nonEmptyStringSchema)).optional()
|
|
302
|
+
});
|
|
303
|
+
var environmentNameSchema = nonEmptyStringSchema.min(
|
|
304
|
+
1,
|
|
305
|
+
"Default environment must reference the name of an existing environment."
|
|
306
|
+
);
|
|
307
|
+
var humanLanguageSchema = import_zod.z.union([import_zod.z.literal("en"), import_zod.z.literal("fr")]).default("en");
|
|
308
|
+
var configContractsDirSchema = import_zod.z.string().min(1).default("contracts");
|
|
309
|
+
var configArtifactsDirSchema = import_zod.z.string().min(1).default("artifacts");
|
|
310
|
+
var currencyAmountV2Schema = import_zod.z.object({
|
|
311
|
+
amount: import_zod.z.string(),
|
|
312
|
+
units: import_zod.z.string()
|
|
313
|
+
});
|
|
314
|
+
var metadataConfigSchema = import_zod.z.object({
|
|
315
|
+
name: import_zod.z.string().optional(),
|
|
316
|
+
projectDescription: import_zod.z.string().optional(),
|
|
317
|
+
authors: import_zod.z.array(import_zod.z.string()).optional(),
|
|
318
|
+
license: import_zod.z.string().optional(),
|
|
319
|
+
homepage: import_zod.z.string().optional()
|
|
320
|
+
});
|
|
321
|
+
var versionV2Schema = import_zod.z.string().regex(/^v2$/);
|
|
322
|
+
var configAccountSchema = import_zod.z.object({
|
|
323
|
+
balance: currencyAmountV2Schema
|
|
324
|
+
});
|
|
325
|
+
var sandboxAccountSchema = import_zod.z.object({
|
|
326
|
+
type: import_zod.z.string().optional()
|
|
327
|
+
}).passthrough();
|
|
328
|
+
var sandboxAccountsSchema = import_zod.z.record(sandboxAccountSchema);
|
|
329
|
+
var configEnvironmentFileV2Schema = import_zod.z.object({
|
|
330
|
+
type: import_zod.z.string().optional(),
|
|
331
|
+
accounts: sandboxAccountsSchema.optional(),
|
|
332
|
+
accountDefault: import_zod.z.any().optional(),
|
|
333
|
+
contracts: import_zod.z.record(
|
|
334
|
+
import_zod.z.object({
|
|
335
|
+
address: import_zod.z.string().optional()
|
|
336
|
+
})
|
|
337
|
+
).optional()
|
|
338
|
+
}).passthrough();
|
|
339
|
+
var networkAccountConfigSchema = import_zod.z.object({
|
|
340
|
+
publicKey: nonEmptyStringSchema.optional(),
|
|
341
|
+
publicKeyHash: publicKeyHashSchema.optional(),
|
|
342
|
+
privateKey: nonEmptyStringSchema.optional(),
|
|
343
|
+
mnemonic: nonEmptyStringSchema.optional()
|
|
344
|
+
});
|
|
345
|
+
var sandboxAccountConfigSchema = import_zod.z.object({
|
|
346
|
+
encryptedKey: nonEmptyStringSchema,
|
|
347
|
+
publicKeyHash: publicKeyHashSchema,
|
|
348
|
+
secretKey: nonEmptyStringSchema
|
|
349
|
+
});
|
|
350
|
+
var sandboxConfigSchema = import_zod.z.object({
|
|
351
|
+
label: nonEmptyStringSchema,
|
|
352
|
+
rpcUrl: urlSchema,
|
|
353
|
+
protocol: economicalProtocolHashSchema.optional(),
|
|
354
|
+
plugin: verbSchema.optional(),
|
|
355
|
+
accounts: import_zod.z.record(import_zod.z.union([sandboxAccountConfigSchema, nonEmptyStringSchema])).optional(),
|
|
356
|
+
tzkt: tzKtConfigSchema.optional(),
|
|
357
|
+
annotations: import_zod.z.record(import_zod.z.unknown()).optional()
|
|
358
|
+
});
|
|
359
|
+
var scaffoldConfigSchema = import_zod.z.object({
|
|
360
|
+
postInit: import_zod.z.string().optional()
|
|
361
|
+
});
|
|
362
|
+
var persistentStateSchema = import_zod.z.object({
|
|
363
|
+
operations: import_zod.z.record(persistedOperationSchema),
|
|
364
|
+
tasks: import_zod.z.record(persistedTaskSchema)
|
|
365
|
+
});
|
|
366
|
+
var networkConfigSchema = import_zod.z.object({
|
|
367
|
+
label: humanReadableIdentifierSchema,
|
|
368
|
+
rpcUrl: urlSchema,
|
|
369
|
+
accounts: import_zod.z.record(networkAccountConfigSchema).optional(),
|
|
370
|
+
faucet: faucetSchema.optional()
|
|
371
|
+
});
|
|
372
|
+
var configFileV1Schema = import_zod.z.object({
|
|
373
|
+
language: humanLanguageSchema.optional(),
|
|
374
|
+
plugins: import_zod.z.array(installedPluginSchema).optional(),
|
|
375
|
+
contractsDir: configContractsDirSchema.optional(),
|
|
376
|
+
artifactsDir: configArtifactsDirSchema.optional(),
|
|
377
|
+
network: import_zod.z.record(networkConfigSchema).optional(),
|
|
378
|
+
sandbox: import_zod.z.record(sandboxConfigSchema).optional(),
|
|
379
|
+
environment: import_zod.z.record(import_zod.z.union([environmentSchema, environmentNameSchema])).optional(),
|
|
380
|
+
accounts: import_zod.z.record(tzSchema).optional(),
|
|
381
|
+
contracts: import_zod.z.record(contractSchema).optional(),
|
|
382
|
+
metadata: metadataConfigSchema.optional()
|
|
383
|
+
});
|
|
384
|
+
var configFileV2Schema = import_zod.z.object({
|
|
385
|
+
version: versionV2Schema,
|
|
386
|
+
language: humanLanguageSchema.optional(),
|
|
387
|
+
metadata: metadataConfigSchema.optional(),
|
|
388
|
+
artifactsDir: configArtifactsDirSchema.optional(),
|
|
389
|
+
contractsDir: configContractsDirSchema.optional(),
|
|
390
|
+
accounts: import_zod.z.record(configAccountSchema).optional(),
|
|
391
|
+
contracts: import_zod.z.record(contractSchema).optional(),
|
|
392
|
+
environmentDefault: environmentNameSchema.optional(),
|
|
393
|
+
environments: import_zod.z.record(configEnvironmentFileV2Schema).optional(),
|
|
394
|
+
plugins: import_zod.z.array(installedPluginSchema).optional()
|
|
395
|
+
});
|
|
396
|
+
var configSchema = import_zod.z.object({
|
|
397
|
+
language: humanLanguageSchema.optional(),
|
|
398
|
+
metadata: metadataConfigSchema.optional(),
|
|
399
|
+
artifactsDir: configArtifactsDirSchema.optional(),
|
|
400
|
+
contractsDir: configContractsDirSchema.optional(),
|
|
401
|
+
contracts: import_zod.z.record(contractSchema).optional(),
|
|
402
|
+
plugins: import_zod.z.array(installedPluginSchema).optional(),
|
|
403
|
+
accounts: import_zod.z.record(tzSchema).optional(),
|
|
404
|
+
environment: import_zod.z.record(import_zod.z.union([environmentSchema, environmentNameSchema])),
|
|
405
|
+
network: import_zod.z.record(networkConfigSchema).optional(),
|
|
406
|
+
sandbox: import_zod.z.record(sandboxConfigSchema).optional()
|
|
407
|
+
});
|
|
408
|
+
var parsedConfigSchema = configSchema.omit({ sandbox: true }).extend(
|
|
409
|
+
{
|
|
410
|
+
sandbox: import_zod.z.record(import_zod.z.union([sandboxConfigSchema, nonEmptyStringSchema]))
|
|
411
|
+
}
|
|
412
|
+
);
|
|
413
|
+
var loadedConfigSchema = configSchema.extend(
|
|
414
|
+
{
|
|
415
|
+
projectDir: sanitizedAbsPathSchema,
|
|
416
|
+
configFile: sanitizedAbsPathSchema,
|
|
417
|
+
hash: sha256Schema
|
|
418
|
+
}
|
|
419
|
+
);
|
|
420
|
+
var requestArgsSchema = sanitizedArgsSchema.omit({ quickstart: true }).extend(
|
|
421
|
+
{
|
|
422
|
+
taqRun: pluginActionNameSchema,
|
|
423
|
+
config: loadedConfigSchema
|
|
424
|
+
}
|
|
425
|
+
).passthrough();
|
|
426
|
+
var proxyTemplateArgsSchema = requestArgsSchema.extend(
|
|
427
|
+
{
|
|
428
|
+
template: nonEmptyStringSchema
|
|
429
|
+
}
|
|
430
|
+
).passthrough();
|
|
431
|
+
var operationSchema = import_zod.z.object({
|
|
432
|
+
operation: verbSchema,
|
|
433
|
+
command: commandSchema,
|
|
434
|
+
description: nonEmptyStringSchema.optional(),
|
|
435
|
+
positionals: import_zod.z.array(positionalArgSchema).optional(),
|
|
436
|
+
options: import_zod.z.array(optionSchema).optional(),
|
|
437
|
+
handler: import_zod.z.function().args(persistentStateSchema).returns(import_zod.z.function().args(requestArgsSchema).returns(import_zod.z.void())).optional()
|
|
438
|
+
});
|
|
439
|
+
var parsedOperationSchema = operationSchema.omit({ handler: true });
|
|
440
|
+
var templateHandlerSchema = import_zod.z.union([
|
|
441
|
+
nonEmptyStringSchema,
|
|
442
|
+
import_zod.z.function().args(requestArgsSchema).returns(
|
|
443
|
+
import_zod.z.union([pluginJsonResponseSchema, import_zod.z.promise(pluginJsonResponseSchema)])
|
|
444
|
+
),
|
|
445
|
+
import_zod.z.promise(import_zod.z.void())
|
|
446
|
+
]);
|
|
447
|
+
var templateSchema = import_zod.z.object({
|
|
448
|
+
template: verbSchema,
|
|
449
|
+
command: commandSchema,
|
|
450
|
+
description: nonEmptyStringSchema,
|
|
451
|
+
hidden: import_zod.z.boolean().optional(),
|
|
452
|
+
options: import_zod.z.array(optionSchema).optional(),
|
|
453
|
+
positionals: import_zod.z.array(positionalArgSchema).optional(),
|
|
454
|
+
handler: templateHandlerSchema,
|
|
455
|
+
encoding: pluginResponseEncodingSchema.optional()
|
|
456
|
+
});
|
|
457
|
+
var parsedTemplateSchema = templateSchema.omit({ handler: true }).extend(
|
|
458
|
+
{
|
|
459
|
+
handler: import_zod.z.string()
|
|
460
|
+
}
|
|
461
|
+
);
|
|
462
|
+
var pluginSchemaSchema = pluginSchemaBaseSchema.extend(
|
|
463
|
+
{
|
|
464
|
+
operations: import_zod.z.array(operationSchema).optional(),
|
|
465
|
+
templates: import_zod.z.array(templateSchema).optional(),
|
|
466
|
+
proxy: import_zod.z.function().args(requestArgsSchema).returns(import_zod.z.promise(pluginProxyResponseSchema)).optional(),
|
|
467
|
+
checkRuntimeDependencies: import_zod.z.function().args(requestArgsSchema).returns(import_zod.z.promise(pluginDependenciesResponseSchema)).optional(),
|
|
468
|
+
installRuntimeDependencies: import_zod.z.function().args(requestArgsSchema).returns(import_zod.z.promise(pluginDependenciesResponseSchema)).optional()
|
|
469
|
+
}
|
|
470
|
+
);
|
|
471
|
+
var proxyTaskArgsSchema = requestArgsSchema.extend(
|
|
472
|
+
{
|
|
473
|
+
task: nonEmptyStringSchema
|
|
474
|
+
}
|
|
475
|
+
).passthrough();
|
|
476
|
+
var pluginInfoSchema = pluginSchemaBaseSchema.extend(
|
|
477
|
+
{
|
|
478
|
+
operations: import_zod.z.array(parsedOperationSchema).optional(),
|
|
479
|
+
templates: import_zod.z.array(parsedTemplateSchema).optional()
|
|
480
|
+
}
|
|
481
|
+
);
|
|
482
|
+
var ephemeralStateSchema = import_zod.z.object({
|
|
483
|
+
build: import_zod.z.string(),
|
|
484
|
+
configHash: import_zod.z.string(),
|
|
485
|
+
tasks: import_zod.z.record(installedPluginSchema.and(taskSchema)),
|
|
486
|
+
operations: import_zod.z.record(installedPluginSchema.and(parsedOperationSchema)),
|
|
487
|
+
templates: import_zod.z.record(installedPluginSchema.and(parsedTemplateSchema)),
|
|
488
|
+
plugins: import_zod.z.array(pluginInfoSchema)
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
// out/types/Alias.ts
|
|
492
|
+
var from = (input) => {
|
|
493
|
+
try {
|
|
494
|
+
return aliasSchema.parse(input);
|
|
495
|
+
} catch (previous) {
|
|
496
|
+
if (previous instanceof import_zod2.ZodError) {
|
|
497
|
+
const msgs = previous.errors.reduce(
|
|
498
|
+
(retval, issue) => {
|
|
499
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
500
|
+
const msg = path2 + ": " + issue.message;
|
|
501
|
+
return [...retval, msg];
|
|
502
|
+
},
|
|
503
|
+
["Alias is invalid:"]
|
|
504
|
+
);
|
|
505
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
506
|
+
throw toParseErr(previous, validationErr);
|
|
507
|
+
}
|
|
508
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Alias.");
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
var create2 = (input) => from(input);
|
|
512
|
+
var of = (input) => {
|
|
513
|
+
try {
|
|
514
|
+
return (0, import_fluture2.resolve)(from(input));
|
|
515
|
+
} catch (err) {
|
|
516
|
+
return (0, import_fluture2.reject)(err);
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
var make = (input) => of(input);
|
|
520
|
+
var schemas = {
|
|
521
|
+
rawSchema: aliasSchema,
|
|
522
|
+
schema: aliasSchema.transform((val) => val)
|
|
523
|
+
};
|
|
524
|
+
var rawSchema = schemas.rawSchema;
|
|
525
|
+
var internalSchema = aliasSchema;
|
|
526
|
+
|
|
527
|
+
// Config.ts
|
|
528
|
+
var Config_exports = {};
|
|
529
|
+
__export(Config_exports, {
|
|
530
|
+
create: () => create3,
|
|
531
|
+
from: () => from2,
|
|
532
|
+
internalSchema: () => internalSchema2,
|
|
533
|
+
make: () => make2,
|
|
534
|
+
of: () => of2,
|
|
535
|
+
rawSchema: () => rawSchema2,
|
|
536
|
+
schemas: () => schemas2
|
|
537
|
+
});
|
|
538
|
+
|
|
539
|
+
// out/types/Config.ts
|
|
540
|
+
var import_fluture3 = require("fluture");
|
|
541
|
+
var import_zod3 = require("zod");
|
|
542
|
+
var from2 = (input) => {
|
|
543
|
+
try {
|
|
544
|
+
return configSchema.parse(input);
|
|
545
|
+
} catch (previous) {
|
|
546
|
+
if (previous instanceof import_zod3.ZodError) {
|
|
547
|
+
const msgs = previous.errors.reduce(
|
|
548
|
+
(retval, issue) => {
|
|
549
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
550
|
+
const msg = path2 + ": " + issue.message;
|
|
551
|
+
return [...retval, msg];
|
|
552
|
+
},
|
|
553
|
+
["Your .taq/config.json is invalid:"]
|
|
554
|
+
);
|
|
555
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
556
|
+
throw toParseErr(previous, validationErr);
|
|
557
|
+
}
|
|
558
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Config.");
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
var create3 = (input) => from2(input);
|
|
562
|
+
var of2 = (input) => {
|
|
563
|
+
try {
|
|
564
|
+
return (0, import_fluture3.resolve)(from2(input));
|
|
565
|
+
} catch (err) {
|
|
566
|
+
return (0, import_fluture3.reject)(err);
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
var make2 = (input) => of2(input);
|
|
570
|
+
var schemas2 = {
|
|
571
|
+
rawSchema: configSchema,
|
|
572
|
+
schema: configSchema.transform((val) => val)
|
|
573
|
+
};
|
|
574
|
+
var rawSchema2 = schemas2.rawSchema;
|
|
575
|
+
var internalSchema2 = configSchema;
|
|
576
|
+
|
|
577
|
+
// EconomicalProtocolHash.ts
|
|
578
|
+
var EconomicalProtocolHash_exports = {};
|
|
579
|
+
__export(EconomicalProtocolHash_exports, {
|
|
580
|
+
create: () => create4,
|
|
581
|
+
from: () => from3,
|
|
582
|
+
internalSchema: () => internalSchema3,
|
|
583
|
+
make: () => make3,
|
|
584
|
+
of: () => of3,
|
|
585
|
+
rawSchema: () => rawSchema3,
|
|
586
|
+
schemas: () => schemas3
|
|
587
|
+
});
|
|
588
|
+
|
|
589
|
+
// out/types/EconomicalProtocolHash.ts
|
|
590
|
+
var import_fluture4 = require("fluture");
|
|
591
|
+
var import_zod4 = require("zod");
|
|
592
|
+
var from3 = (input) => {
|
|
593
|
+
try {
|
|
594
|
+
return economicalProtocolHashSchema.parse(input);
|
|
595
|
+
} catch (previous) {
|
|
596
|
+
if (previous instanceof import_zod4.ZodError) {
|
|
597
|
+
const msgs = previous.errors.reduce(
|
|
598
|
+
(retval, issue) => {
|
|
599
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
600
|
+
const msg = path2 + ": " + issue.message;
|
|
601
|
+
return [...retval, msg];
|
|
602
|
+
},
|
|
603
|
+
["EconomicalProtocolHash is invalid:"]
|
|
604
|
+
);
|
|
605
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
606
|
+
throw toParseErr(previous, validationErr);
|
|
607
|
+
}
|
|
608
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a EconomicalProtocolHash.");
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
var create4 = (input) => from3(input);
|
|
612
|
+
var of3 = (input) => {
|
|
613
|
+
try {
|
|
614
|
+
return (0, import_fluture4.resolve)(from3(input));
|
|
615
|
+
} catch (err) {
|
|
616
|
+
return (0, import_fluture4.reject)(err);
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
var make3 = (input) => of3(input);
|
|
620
|
+
var schemas3 = {
|
|
621
|
+
rawSchema: economicalProtocolHashSchema,
|
|
622
|
+
schema: economicalProtocolHashSchema.transform((val) => val)
|
|
623
|
+
};
|
|
624
|
+
var rawSchema3 = schemas3.rawSchema;
|
|
625
|
+
var internalSchema3 = economicalProtocolHashSchema;
|
|
626
|
+
|
|
627
|
+
// Environment.ts
|
|
628
|
+
var Environment_exports = {};
|
|
629
|
+
__export(Environment_exports, {
|
|
630
|
+
create: () => create5,
|
|
631
|
+
from: () => from4,
|
|
632
|
+
internalSchema: () => internalSchema4,
|
|
633
|
+
make: () => make4,
|
|
634
|
+
of: () => of4,
|
|
635
|
+
rawSchema: () => rawSchema4,
|
|
636
|
+
schemas: () => schemas4
|
|
637
|
+
});
|
|
638
|
+
|
|
639
|
+
// out/types/Environment.ts
|
|
640
|
+
var import_fluture5 = require("fluture");
|
|
641
|
+
var import_zod5 = require("zod");
|
|
642
|
+
var from4 = (input) => {
|
|
643
|
+
try {
|
|
644
|
+
return environmentSchema.parse(input);
|
|
645
|
+
} catch (previous) {
|
|
646
|
+
if (previous instanceof import_zod5.ZodError) {
|
|
647
|
+
const msgs = previous.errors.reduce(
|
|
648
|
+
(retval, issue) => {
|
|
649
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
650
|
+
const msg = path2 + ": " + issue.message;
|
|
651
|
+
return [...retval, msg];
|
|
652
|
+
},
|
|
653
|
+
["Environment is invalid:"]
|
|
654
|
+
);
|
|
655
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
656
|
+
throw toParseErr(previous, validationErr);
|
|
657
|
+
}
|
|
658
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Environment.");
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
var create5 = (input) => from4(input);
|
|
662
|
+
var of4 = (input) => {
|
|
663
|
+
try {
|
|
664
|
+
return (0, import_fluture5.resolve)(from4(input));
|
|
665
|
+
} catch (err) {
|
|
666
|
+
return (0, import_fluture5.reject)(err);
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
var make4 = (input) => of4(input);
|
|
670
|
+
var schemas4 = {
|
|
671
|
+
rawSchema: environmentSchema,
|
|
672
|
+
schema: environmentSchema.transform((val) => val)
|
|
673
|
+
};
|
|
674
|
+
var rawSchema4 = schemas4.rawSchema;
|
|
675
|
+
var internalSchema4 = environmentSchema;
|
|
676
|
+
|
|
677
|
+
// EphemeralState.ts
|
|
678
|
+
var EphemeralState_exports = {};
|
|
679
|
+
__export(EphemeralState_exports, {
|
|
680
|
+
create: () => create54,
|
|
681
|
+
factory: () => factory7,
|
|
682
|
+
generatedSchemas: () => generatedSchemas6,
|
|
683
|
+
getTasks: () => getTasks,
|
|
684
|
+
make: () => make52,
|
|
685
|
+
mapOperationsToPlugins: () => mapOperationsToPlugins,
|
|
686
|
+
mapTasksToPlugins: () => mapTasksToPlugins,
|
|
687
|
+
mapTemplatesToPlugins: () => mapTemplatesToPlugins,
|
|
688
|
+
of: () => of52,
|
|
689
|
+
schemas: () => schemas52
|
|
690
|
+
});
|
|
691
|
+
|
|
692
|
+
// Command.ts
|
|
693
|
+
var Command_exports = {};
|
|
694
|
+
__export(Command_exports, {
|
|
695
|
+
create: () => create6,
|
|
696
|
+
from: () => from5,
|
|
697
|
+
internalSchema: () => internalSchema5,
|
|
698
|
+
make: () => make5,
|
|
699
|
+
of: () => of5,
|
|
700
|
+
rawSchema: () => rawSchema5,
|
|
701
|
+
schemas: () => schemas5
|
|
702
|
+
});
|
|
703
|
+
|
|
704
|
+
// out/types/Command.ts
|
|
705
|
+
var import_fluture6 = require("fluture");
|
|
706
|
+
var import_zod6 = require("zod");
|
|
707
|
+
var from5 = (input) => {
|
|
708
|
+
try {
|
|
709
|
+
return commandSchema.parse(input);
|
|
710
|
+
} catch (previous) {
|
|
711
|
+
if (previous instanceof import_zod6.ZodError) {
|
|
712
|
+
const msgs = previous.errors.reduce(
|
|
713
|
+
(retval, issue) => {
|
|
714
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
715
|
+
const msg = path2 + ": " + issue.message;
|
|
716
|
+
return [...retval, msg];
|
|
717
|
+
},
|
|
718
|
+
["Command is invalid:"]
|
|
719
|
+
);
|
|
720
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
721
|
+
throw toParseErr(previous, validationErr);
|
|
722
|
+
}
|
|
723
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Command.");
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
var create6 = (input) => from5(input);
|
|
727
|
+
var of5 = (input) => {
|
|
728
|
+
try {
|
|
729
|
+
return (0, import_fluture6.resolve)(from5(input));
|
|
730
|
+
} catch (err) {
|
|
731
|
+
return (0, import_fluture6.reject)(err);
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
var make5 = (input) => of5(input);
|
|
735
|
+
var schemas5 = {
|
|
736
|
+
rawSchema: commandSchema,
|
|
737
|
+
schema: commandSchema.transform((val) => val)
|
|
738
|
+
};
|
|
739
|
+
var rawSchema5 = schemas5.rawSchema;
|
|
740
|
+
var internalSchema5 = commandSchema;
|
|
741
|
+
|
|
742
|
+
// ConfigFileV2.ts
|
|
743
|
+
var ConfigFileV2_exports = {};
|
|
744
|
+
__export(ConfigFileV2_exports, {
|
|
745
|
+
create: () => create7,
|
|
746
|
+
from: () => from6,
|
|
747
|
+
internalSchema: () => internalSchema6,
|
|
748
|
+
make: () => make6,
|
|
749
|
+
of: () => of6,
|
|
750
|
+
rawSchema: () => rawSchema6,
|
|
751
|
+
schemas: () => schemas6
|
|
752
|
+
});
|
|
753
|
+
|
|
754
|
+
// out/types/ConfigFileV2.ts
|
|
755
|
+
var import_fluture7 = require("fluture");
|
|
756
|
+
var import_zod7 = require("zod");
|
|
757
|
+
var from6 = (input) => {
|
|
758
|
+
try {
|
|
759
|
+
return configFileV2Schema.parse(input);
|
|
760
|
+
} catch (previous) {
|
|
761
|
+
if (previous instanceof import_zod7.ZodError) {
|
|
762
|
+
const msgs = previous.errors.reduce(
|
|
763
|
+
(retval, issue) => {
|
|
764
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
765
|
+
const msg = path2 + ": " + issue.message;
|
|
766
|
+
return [...retval, msg];
|
|
767
|
+
},
|
|
768
|
+
["ConfigFileV2 is invalid:"]
|
|
769
|
+
);
|
|
770
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
771
|
+
throw toParseErr(previous, validationErr);
|
|
772
|
+
}
|
|
773
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a ConfigFileV2.");
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
var create7 = (input) => from6(input);
|
|
777
|
+
var of6 = (input) => {
|
|
778
|
+
try {
|
|
779
|
+
return (0, import_fluture7.resolve)(from6(input));
|
|
780
|
+
} catch (err) {
|
|
781
|
+
return (0, import_fluture7.reject)(err);
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
var make6 = (input) => of6(input);
|
|
785
|
+
var schemas6 = {
|
|
786
|
+
rawSchema: configFileV2Schema,
|
|
787
|
+
schema: configFileV2Schema.transform((val) => val)
|
|
788
|
+
};
|
|
789
|
+
var rawSchema6 = schemas6.rawSchema;
|
|
790
|
+
var internalSchema6 = configFileV2Schema;
|
|
791
|
+
|
|
792
|
+
// Contract.ts
|
|
793
|
+
var Contract_exports = {};
|
|
794
|
+
__export(Contract_exports, {
|
|
795
|
+
create: () => create8,
|
|
796
|
+
from: () => from7,
|
|
797
|
+
internalSchema: () => internalSchema7,
|
|
798
|
+
make: () => make7,
|
|
799
|
+
of: () => of7,
|
|
800
|
+
rawSchema: () => rawSchema7,
|
|
801
|
+
schemas: () => schemas7
|
|
802
|
+
});
|
|
803
|
+
|
|
804
|
+
// out/types/Contract.ts
|
|
805
|
+
var import_fluture8 = require("fluture");
|
|
806
|
+
var import_zod8 = require("zod");
|
|
807
|
+
var from7 = (input) => {
|
|
808
|
+
try {
|
|
809
|
+
return contractSchema.parse(input);
|
|
810
|
+
} catch (previous) {
|
|
811
|
+
if (previous instanceof import_zod8.ZodError) {
|
|
812
|
+
const msgs = previous.errors.reduce(
|
|
813
|
+
(retval, issue) => {
|
|
814
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
815
|
+
const msg = path2 + ": " + issue.message;
|
|
816
|
+
return [...retval, msg];
|
|
817
|
+
},
|
|
818
|
+
["Contract is invalid:"]
|
|
819
|
+
);
|
|
820
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
821
|
+
throw toParseErr(previous, validationErr);
|
|
822
|
+
}
|
|
823
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Contract.");
|
|
824
|
+
}
|
|
825
|
+
};
|
|
826
|
+
var create8 = (input) => from7(input);
|
|
827
|
+
var of7 = (input) => {
|
|
828
|
+
try {
|
|
829
|
+
return (0, import_fluture8.resolve)(from7(input));
|
|
830
|
+
} catch (err) {
|
|
831
|
+
return (0, import_fluture8.reject)(err);
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
var make7 = (input) => of7(input);
|
|
835
|
+
var schemas7 = {
|
|
836
|
+
rawSchema: contractSchema,
|
|
837
|
+
schema: contractSchema.transform((val) => val)
|
|
838
|
+
};
|
|
839
|
+
var rawSchema7 = schemas7.rawSchema;
|
|
840
|
+
var internalSchema7 = contractSchema;
|
|
841
|
+
|
|
842
|
+
// Faucet.ts
|
|
843
|
+
var Faucet_exports = {};
|
|
844
|
+
__export(Faucet_exports, {
|
|
845
|
+
create: () => create9,
|
|
846
|
+
from: () => from8,
|
|
847
|
+
internalSchema: () => internalSchema8,
|
|
848
|
+
make: () => make8,
|
|
849
|
+
of: () => of8,
|
|
850
|
+
rawSchema: () => rawSchema8,
|
|
851
|
+
schemas: () => schemas8
|
|
852
|
+
});
|
|
853
|
+
|
|
854
|
+
// out/types/Faucet.ts
|
|
855
|
+
var import_fluture9 = require("fluture");
|
|
856
|
+
var import_zod9 = require("zod");
|
|
857
|
+
var from8 = (input) => {
|
|
858
|
+
try {
|
|
859
|
+
return faucetSchema.parse(input);
|
|
860
|
+
} catch (previous) {
|
|
861
|
+
if (previous instanceof import_zod9.ZodError) {
|
|
862
|
+
const msgs = previous.errors.reduce(
|
|
863
|
+
(retval, issue) => {
|
|
864
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
865
|
+
const msg = path2 + ": " + issue.message;
|
|
866
|
+
return [...retval, msg];
|
|
867
|
+
},
|
|
868
|
+
["Faucet is invalid:"]
|
|
869
|
+
);
|
|
870
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
871
|
+
throw toParseErr(previous, validationErr);
|
|
872
|
+
}
|
|
873
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Faucet.");
|
|
874
|
+
}
|
|
875
|
+
};
|
|
876
|
+
var create9 = (input) => from8(input);
|
|
877
|
+
var of8 = (input) => {
|
|
878
|
+
try {
|
|
879
|
+
return (0, import_fluture9.resolve)(from8(input));
|
|
880
|
+
} catch (err) {
|
|
881
|
+
return (0, import_fluture9.reject)(err);
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
var make8 = (input) => of8(input);
|
|
885
|
+
var schemas8 = {
|
|
886
|
+
rawSchema: faucetSchema,
|
|
887
|
+
schema: faucetSchema.transform((val) => val)
|
|
888
|
+
};
|
|
889
|
+
var rawSchema8 = schemas8.rawSchema;
|
|
890
|
+
var internalSchema8 = faucetSchema;
|
|
891
|
+
|
|
892
|
+
// HumanReadableIdentifier.ts
|
|
893
|
+
var HumanReadableIdentifier_exports = {};
|
|
894
|
+
__export(HumanReadableIdentifier_exports, {
|
|
895
|
+
create: () => create10,
|
|
896
|
+
from: () => from9,
|
|
897
|
+
internalSchema: () => internalSchema9,
|
|
898
|
+
make: () => make9,
|
|
899
|
+
of: () => of9,
|
|
900
|
+
rawSchema: () => rawSchema9,
|
|
901
|
+
schemas: () => schemas9
|
|
902
|
+
});
|
|
903
|
+
|
|
904
|
+
// out/types/HumanReadableIdentifier.ts
|
|
905
|
+
var import_fluture10 = require("fluture");
|
|
906
|
+
var import_zod10 = require("zod");
|
|
907
|
+
var from9 = (input) => {
|
|
908
|
+
try {
|
|
909
|
+
return humanReadableIdentifierSchema.parse(input);
|
|
910
|
+
} catch (previous) {
|
|
911
|
+
if (previous instanceof import_zod10.ZodError) {
|
|
912
|
+
const msgs = previous.errors.reduce(
|
|
913
|
+
(retval, issue) => {
|
|
914
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
915
|
+
const msg = path2 + ": " + issue.message;
|
|
916
|
+
return [...retval, msg];
|
|
917
|
+
},
|
|
918
|
+
["HumanReadableIdentifier is invalid:"]
|
|
919
|
+
);
|
|
920
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
921
|
+
throw toParseErr(previous, validationErr);
|
|
922
|
+
}
|
|
923
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a HumanReadableIdentifier.");
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
var create10 = (input) => from9(input);
|
|
927
|
+
var of9 = (input) => {
|
|
928
|
+
try {
|
|
929
|
+
return (0, import_fluture10.resolve)(from9(input));
|
|
930
|
+
} catch (err) {
|
|
931
|
+
return (0, import_fluture10.reject)(err);
|
|
932
|
+
}
|
|
933
|
+
};
|
|
934
|
+
var make9 = (input) => of9(input);
|
|
935
|
+
var schemas9 = {
|
|
936
|
+
rawSchema: humanReadableIdentifierSchema,
|
|
937
|
+
schema: humanReadableIdentifierSchema.transform((val) => val)
|
|
938
|
+
};
|
|
939
|
+
var rawSchema9 = schemas9.rawSchema;
|
|
940
|
+
var internalSchema9 = humanReadableIdentifierSchema;
|
|
941
|
+
|
|
942
|
+
// InstalledPlugin.ts
|
|
943
|
+
var InstalledPlugin_exports = {};
|
|
944
|
+
__export(InstalledPlugin_exports, {
|
|
945
|
+
create: () => create11,
|
|
946
|
+
from: () => from10,
|
|
947
|
+
internalSchema: () => internalSchema10,
|
|
948
|
+
make: () => make10,
|
|
949
|
+
of: () => of10,
|
|
950
|
+
rawSchema: () => rawSchema10,
|
|
951
|
+
schemas: () => schemas10
|
|
952
|
+
});
|
|
953
|
+
|
|
954
|
+
// out/types/InstalledPlugin.ts
|
|
955
|
+
var import_fluture11 = require("fluture");
|
|
956
|
+
var import_zod11 = require("zod");
|
|
957
|
+
var from10 = (input) => {
|
|
958
|
+
try {
|
|
959
|
+
return installedPluginSchema.parse(input);
|
|
960
|
+
} catch (previous) {
|
|
961
|
+
if (previous instanceof import_zod11.ZodError) {
|
|
962
|
+
const msgs = previous.errors.reduce(
|
|
963
|
+
(retval, issue) => {
|
|
964
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
965
|
+
const msg = path2 + ": " + issue.message;
|
|
966
|
+
return [...retval, msg];
|
|
967
|
+
},
|
|
968
|
+
["InstalledPlugin is invalid:"]
|
|
969
|
+
);
|
|
970
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
971
|
+
throw toParseErr(previous, validationErr);
|
|
972
|
+
}
|
|
973
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a InstalledPlugin.");
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
var create11 = (input) => from10(input);
|
|
977
|
+
var of10 = (input) => {
|
|
978
|
+
try {
|
|
979
|
+
return (0, import_fluture11.resolve)(from10(input));
|
|
980
|
+
} catch (err) {
|
|
981
|
+
return (0, import_fluture11.reject)(err);
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
var make10 = (input) => of10(input);
|
|
985
|
+
var schemas10 = {
|
|
986
|
+
rawSchema: installedPluginSchema,
|
|
987
|
+
schema: installedPluginSchema.transform((val) => val)
|
|
988
|
+
};
|
|
989
|
+
var rawSchema10 = schemas10.rawSchema;
|
|
990
|
+
var internalSchema10 = installedPluginSchema;
|
|
991
|
+
|
|
992
|
+
// LoadedConfig.ts
|
|
993
|
+
var LoadedConfig_exports = {};
|
|
994
|
+
__export(LoadedConfig_exports, {
|
|
995
|
+
create: () => create12,
|
|
996
|
+
from: () => from11,
|
|
997
|
+
internalSchema: () => internalSchema11,
|
|
998
|
+
make: () => make11,
|
|
999
|
+
of: () => of11,
|
|
1000
|
+
rawSchema: () => rawSchema11,
|
|
1001
|
+
schemas: () => schemas11
|
|
1002
|
+
});
|
|
1003
|
+
|
|
1004
|
+
// out/types/LoadedConfig.ts
|
|
1005
|
+
var import_fluture12 = require("fluture");
|
|
1006
|
+
var import_zod12 = require("zod");
|
|
1007
|
+
var from11 = (input) => {
|
|
1008
|
+
try {
|
|
1009
|
+
return loadedConfigSchema.parse(input);
|
|
1010
|
+
} catch (previous) {
|
|
1011
|
+
if (previous instanceof import_zod12.ZodError) {
|
|
1012
|
+
const msgs = previous.errors.reduce(
|
|
1013
|
+
(retval, issue) => {
|
|
1014
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1015
|
+
const msg = path2 + ": " + issue.message;
|
|
1016
|
+
return [...retval, msg];
|
|
1017
|
+
},
|
|
1018
|
+
["Your .taq/config.json is invalid:"]
|
|
1019
|
+
);
|
|
1020
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1021
|
+
throw toParseErr(previous, validationErr);
|
|
1022
|
+
}
|
|
1023
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a LoadedConfig.");
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
var create12 = (input) => from11(input);
|
|
1027
|
+
var of11 = (input) => {
|
|
1028
|
+
try {
|
|
1029
|
+
return (0, import_fluture12.resolve)(from11(input));
|
|
1030
|
+
} catch (err) {
|
|
1031
|
+
return (0, import_fluture12.reject)(err);
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
var make11 = (input) => of11(input);
|
|
1035
|
+
var schemas11 = {
|
|
1036
|
+
rawSchema: loadedConfigSchema,
|
|
1037
|
+
schema: loadedConfigSchema.transform((val) => val)
|
|
1038
|
+
};
|
|
1039
|
+
var rawSchema11 = schemas11.rawSchema;
|
|
1040
|
+
var internalSchema11 = loadedConfigSchema;
|
|
1041
|
+
|
|
1042
|
+
// MetadataConfig.ts
|
|
1043
|
+
var MetadataConfig_exports = {};
|
|
1044
|
+
__export(MetadataConfig_exports, {
|
|
1045
|
+
create: () => create13,
|
|
1046
|
+
from: () => from12,
|
|
1047
|
+
internalSchema: () => internalSchema12,
|
|
1048
|
+
make: () => make12,
|
|
1049
|
+
of: () => of12,
|
|
1050
|
+
rawSchema: () => rawSchema12,
|
|
1051
|
+
schemas: () => schemas12
|
|
1052
|
+
});
|
|
1053
|
+
|
|
1054
|
+
// out/types/MetadataConfig.ts
|
|
1055
|
+
var import_fluture13 = require("fluture");
|
|
1056
|
+
var import_zod13 = require("zod");
|
|
1057
|
+
var from12 = (input) => {
|
|
1058
|
+
try {
|
|
1059
|
+
return metadataConfigSchema.parse(input);
|
|
1060
|
+
} catch (previous) {
|
|
1061
|
+
if (previous instanceof import_zod13.ZodError) {
|
|
1062
|
+
const msgs = previous.errors.reduce(
|
|
1063
|
+
(retval, issue) => {
|
|
1064
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1065
|
+
const msg = path2 + ": " + issue.message;
|
|
1066
|
+
return [...retval, msg];
|
|
1067
|
+
},
|
|
1068
|
+
["MetadataConfig is invalid:"]
|
|
1069
|
+
);
|
|
1070
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1071
|
+
throw toParseErr(previous, validationErr);
|
|
1072
|
+
}
|
|
1073
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a MetadataConfig.");
|
|
1074
|
+
}
|
|
1075
|
+
};
|
|
1076
|
+
var create13 = (input) => from12(input);
|
|
1077
|
+
var of12 = (input) => {
|
|
1078
|
+
try {
|
|
1079
|
+
return (0, import_fluture13.resolve)(from12(input));
|
|
1080
|
+
} catch (err) {
|
|
1081
|
+
return (0, import_fluture13.reject)(err);
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
var make12 = (input) => of12(input);
|
|
1085
|
+
var schemas12 = {
|
|
1086
|
+
rawSchema: metadataConfigSchema,
|
|
1087
|
+
schema: metadataConfigSchema.transform((val) => val)
|
|
1088
|
+
};
|
|
1089
|
+
var rawSchema12 = schemas12.rawSchema;
|
|
1090
|
+
var internalSchema12 = metadataConfigSchema;
|
|
1091
|
+
|
|
1092
|
+
// NetworkAccountConfig.ts
|
|
1093
|
+
var NetworkAccountConfig_exports = {};
|
|
1094
|
+
__export(NetworkAccountConfig_exports, {
|
|
1095
|
+
create: () => create14,
|
|
1096
|
+
from: () => from13,
|
|
1097
|
+
internalSchema: () => internalSchema13,
|
|
1098
|
+
make: () => make13,
|
|
1099
|
+
of: () => of13,
|
|
1100
|
+
rawSchema: () => rawSchema13,
|
|
1101
|
+
schemas: () => schemas13
|
|
1102
|
+
});
|
|
1103
|
+
|
|
1104
|
+
// out/types/NetworkAccountConfig.ts
|
|
1105
|
+
var import_fluture14 = require("fluture");
|
|
1106
|
+
var import_zod14 = require("zod");
|
|
1107
|
+
var from13 = (input) => {
|
|
1108
|
+
try {
|
|
1109
|
+
return networkAccountConfigSchema.parse(input);
|
|
1110
|
+
} catch (previous) {
|
|
1111
|
+
if (previous instanceof import_zod14.ZodError) {
|
|
1112
|
+
const msgs = previous.errors.reduce(
|
|
1113
|
+
(retval, issue) => {
|
|
1114
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1115
|
+
const msg = path2 + ": " + issue.message;
|
|
1116
|
+
return [...retval, msg];
|
|
1117
|
+
},
|
|
1118
|
+
["NetworkAccountConfig is invalid:"]
|
|
1119
|
+
);
|
|
1120
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1121
|
+
throw toParseErr(previous, validationErr);
|
|
1122
|
+
}
|
|
1123
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a NetworkAccountConfig.");
|
|
1124
|
+
}
|
|
1125
|
+
};
|
|
1126
|
+
var create14 = (input) => from13(input);
|
|
1127
|
+
var of13 = (input) => {
|
|
1128
|
+
try {
|
|
1129
|
+
return (0, import_fluture14.resolve)(from13(input));
|
|
1130
|
+
} catch (err) {
|
|
1131
|
+
return (0, import_fluture14.reject)(err);
|
|
1132
|
+
}
|
|
1133
|
+
};
|
|
1134
|
+
var make13 = (input) => of13(input);
|
|
1135
|
+
var schemas13 = {
|
|
1136
|
+
rawSchema: networkAccountConfigSchema,
|
|
1137
|
+
schema: networkAccountConfigSchema.transform((val) => val)
|
|
1138
|
+
};
|
|
1139
|
+
var rawSchema13 = schemas13.rawSchema;
|
|
1140
|
+
var internalSchema13 = networkAccountConfigSchema;
|
|
1141
|
+
|
|
1142
|
+
// NetworkConfig.ts
|
|
1143
|
+
var NetworkConfig_exports = {};
|
|
1144
|
+
__export(NetworkConfig_exports, {
|
|
1145
|
+
create: () => create15,
|
|
1146
|
+
from: () => from14,
|
|
1147
|
+
internalSchema: () => internalSchema14,
|
|
1148
|
+
make: () => make14,
|
|
1149
|
+
of: () => of14,
|
|
1150
|
+
rawSchema: () => rawSchema14,
|
|
1151
|
+
schemas: () => schemas14
|
|
1152
|
+
});
|
|
1153
|
+
|
|
1154
|
+
// out/types/NetworkConfig.ts
|
|
1155
|
+
var import_fluture15 = require("fluture");
|
|
1156
|
+
var import_zod15 = require("zod");
|
|
1157
|
+
var from14 = (input) => {
|
|
1158
|
+
try {
|
|
1159
|
+
return networkConfigSchema.parse(input);
|
|
1160
|
+
} catch (previous) {
|
|
1161
|
+
if (previous instanceof import_zod15.ZodError) {
|
|
1162
|
+
const msgs = previous.errors.reduce(
|
|
1163
|
+
(retval, issue) => {
|
|
1164
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1165
|
+
const msg = path2 + ": " + issue.message;
|
|
1166
|
+
return [...retval, msg];
|
|
1167
|
+
},
|
|
1168
|
+
["NetworkConfig is invalid:"]
|
|
1169
|
+
);
|
|
1170
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1171
|
+
throw toParseErr(previous, validationErr);
|
|
1172
|
+
}
|
|
1173
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a NetworkConfig.");
|
|
1174
|
+
}
|
|
1175
|
+
};
|
|
1176
|
+
var create15 = (input) => from14(input);
|
|
1177
|
+
var of14 = (input) => {
|
|
1178
|
+
try {
|
|
1179
|
+
return (0, import_fluture15.resolve)(from14(input));
|
|
1180
|
+
} catch (err) {
|
|
1181
|
+
return (0, import_fluture15.reject)(err);
|
|
1182
|
+
}
|
|
1183
|
+
};
|
|
1184
|
+
var make14 = (input) => of14(input);
|
|
1185
|
+
var schemas14 = {
|
|
1186
|
+
rawSchema: networkConfigSchema,
|
|
1187
|
+
schema: networkConfigSchema.transform((val) => val)
|
|
1188
|
+
};
|
|
1189
|
+
var rawSchema14 = schemas14.rawSchema;
|
|
1190
|
+
var internalSchema14 = networkConfigSchema;
|
|
1191
|
+
|
|
1192
|
+
// NonEmptyString.ts
|
|
1193
|
+
var NonEmptyString_exports = {};
|
|
1194
|
+
__export(NonEmptyString_exports, {
|
|
1195
|
+
create: () => create16,
|
|
1196
|
+
from: () => from15,
|
|
1197
|
+
internalSchema: () => internalSchema15,
|
|
1198
|
+
make: () => make15,
|
|
1199
|
+
of: () => of15,
|
|
1200
|
+
rawSchema: () => rawSchema15,
|
|
1201
|
+
schemas: () => schemas15
|
|
1202
|
+
});
|
|
1203
|
+
|
|
1204
|
+
// out/types/NonEmptyString.ts
|
|
1205
|
+
var import_fluture16 = require("fluture");
|
|
1206
|
+
var import_zod16 = require("zod");
|
|
1207
|
+
var from15 = (input) => {
|
|
1208
|
+
try {
|
|
1209
|
+
return nonEmptyStringSchema.parse(input);
|
|
1210
|
+
} catch (previous) {
|
|
1211
|
+
if (previous instanceof import_zod16.ZodError) {
|
|
1212
|
+
const msgs = previous.errors.reduce(
|
|
1213
|
+
(retval, issue) => {
|
|
1214
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1215
|
+
const msg = path2 + ": " + issue.message;
|
|
1216
|
+
return [...retval, msg];
|
|
1217
|
+
},
|
|
1218
|
+
["NonEmptyString is invalid:"]
|
|
1219
|
+
);
|
|
1220
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1221
|
+
throw toParseErr(previous, validationErr);
|
|
1222
|
+
}
|
|
1223
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a NonEmptyString.");
|
|
1224
|
+
}
|
|
1225
|
+
};
|
|
1226
|
+
var create16 = (input) => from15(input);
|
|
1227
|
+
var of15 = (input) => {
|
|
1228
|
+
try {
|
|
1229
|
+
return (0, import_fluture16.resolve)(from15(input));
|
|
1230
|
+
} catch (err) {
|
|
1231
|
+
return (0, import_fluture16.reject)(err);
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
var make15 = (input) => of15(input);
|
|
1235
|
+
var schemas15 = {
|
|
1236
|
+
rawSchema: nonEmptyStringSchema,
|
|
1237
|
+
schema: nonEmptyStringSchema.transform((val) => val)
|
|
1238
|
+
};
|
|
1239
|
+
var rawSchema15 = schemas15.rawSchema;
|
|
1240
|
+
var internalSchema15 = nonEmptyStringSchema;
|
|
1241
|
+
|
|
1242
|
+
// Operation.ts
|
|
1243
|
+
var Operation_exports = {};
|
|
1244
|
+
__export(Operation_exports, {
|
|
1245
|
+
create: () => create17,
|
|
1246
|
+
from: () => from16,
|
|
1247
|
+
internalSchema: () => internalSchema16,
|
|
1248
|
+
make: () => make16,
|
|
1249
|
+
of: () => of16,
|
|
1250
|
+
rawSchema: () => rawSchema16,
|
|
1251
|
+
schemas: () => schemas16
|
|
1252
|
+
});
|
|
1253
|
+
|
|
1254
|
+
// out/types/Operation.ts
|
|
1255
|
+
var import_fluture17 = require("fluture");
|
|
1256
|
+
var import_zod17 = require("zod");
|
|
1257
|
+
var from16 = (input) => {
|
|
1258
|
+
try {
|
|
1259
|
+
return operationSchema.parse(input);
|
|
1260
|
+
} catch (previous) {
|
|
1261
|
+
if (previous instanceof import_zod17.ZodError) {
|
|
1262
|
+
const msgs = previous.errors.reduce(
|
|
1263
|
+
(retval, issue) => {
|
|
1264
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1265
|
+
const msg = path2 + ": " + issue.message;
|
|
1266
|
+
return [...retval, msg];
|
|
1267
|
+
},
|
|
1268
|
+
["Operation is invalid:"]
|
|
1269
|
+
);
|
|
1270
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1271
|
+
throw toParseErr(previous, validationErr);
|
|
1272
|
+
}
|
|
1273
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Operation.");
|
|
1274
|
+
}
|
|
1275
|
+
};
|
|
1276
|
+
var create17 = (input) => from16(input);
|
|
1277
|
+
var of16 = (input) => {
|
|
1278
|
+
try {
|
|
1279
|
+
return (0, import_fluture17.resolve)(from16(input));
|
|
1280
|
+
} catch (err) {
|
|
1281
|
+
return (0, import_fluture17.reject)(err);
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1284
|
+
var make16 = (input) => of16(input);
|
|
1285
|
+
var schemas16 = {
|
|
1286
|
+
rawSchema: operationSchema,
|
|
1287
|
+
schema: operationSchema.transform((val) => val)
|
|
1288
|
+
};
|
|
1289
|
+
var rawSchema16 = schemas16.rawSchema;
|
|
1290
|
+
var internalSchema16 = operationSchema;
|
|
1291
|
+
|
|
1292
|
+
// Option.ts
|
|
1293
|
+
var Option_exports = {};
|
|
1294
|
+
__export(Option_exports, {
|
|
1295
|
+
create: () => create18,
|
|
1296
|
+
from: () => from17,
|
|
1297
|
+
internalSchema: () => internalSchema17,
|
|
1298
|
+
make: () => make17,
|
|
1299
|
+
of: () => of17,
|
|
1300
|
+
rawSchema: () => rawSchema17,
|
|
1301
|
+
schemas: () => schemas17
|
|
1302
|
+
});
|
|
1303
|
+
|
|
1304
|
+
// out/types/Option.ts
|
|
1305
|
+
var import_fluture18 = require("fluture");
|
|
1306
|
+
var import_zod18 = require("zod");
|
|
1307
|
+
var from17 = (input) => {
|
|
1308
|
+
try {
|
|
1309
|
+
return optionSchema.parse(input);
|
|
1310
|
+
} catch (previous) {
|
|
1311
|
+
if (previous instanceof import_zod18.ZodError) {
|
|
1312
|
+
const msgs = previous.errors.reduce(
|
|
1313
|
+
(retval, issue) => {
|
|
1314
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1315
|
+
const msg = path2 + ": " + issue.message;
|
|
1316
|
+
return [...retval, msg];
|
|
1317
|
+
},
|
|
1318
|
+
["Option is invalid:"]
|
|
1319
|
+
);
|
|
1320
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1321
|
+
throw toParseErr(previous, validationErr);
|
|
1322
|
+
}
|
|
1323
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Option.");
|
|
1324
|
+
}
|
|
1325
|
+
};
|
|
1326
|
+
var create18 = (input) => from17(input);
|
|
1327
|
+
var of17 = (input) => {
|
|
1328
|
+
try {
|
|
1329
|
+
return (0, import_fluture18.resolve)(from17(input));
|
|
1330
|
+
} catch (err) {
|
|
1331
|
+
return (0, import_fluture18.reject)(err);
|
|
1332
|
+
}
|
|
1333
|
+
};
|
|
1334
|
+
var make17 = (input) => of17(input);
|
|
1335
|
+
var schemas17 = {
|
|
1336
|
+
rawSchema: optionSchema,
|
|
1337
|
+
schema: optionSchema.transform((val) => val)
|
|
1338
|
+
};
|
|
1339
|
+
var rawSchema17 = schemas17.rawSchema;
|
|
1340
|
+
var internalSchema17 = optionSchema;
|
|
1341
|
+
|
|
1342
|
+
// ParsedOperation.ts
|
|
1343
|
+
var ParsedOperation_exports = {};
|
|
1344
|
+
__export(ParsedOperation_exports, {
|
|
1345
|
+
create: () => create19,
|
|
1346
|
+
from: () => from18,
|
|
1347
|
+
internalSchema: () => internalSchema18,
|
|
1348
|
+
make: () => make18,
|
|
1349
|
+
of: () => of18,
|
|
1350
|
+
rawSchema: () => rawSchema18,
|
|
1351
|
+
schemas: () => schemas18
|
|
1352
|
+
});
|
|
1353
|
+
|
|
1354
|
+
// out/types/ParsedOperation.ts
|
|
1355
|
+
var import_fluture19 = require("fluture");
|
|
1356
|
+
var import_zod19 = require("zod");
|
|
1357
|
+
var from18 = (input) => {
|
|
1358
|
+
try {
|
|
1359
|
+
return parsedOperationSchema.parse(input);
|
|
1360
|
+
} catch (previous) {
|
|
1361
|
+
if (previous instanceof import_zod19.ZodError) {
|
|
1362
|
+
const msgs = previous.errors.reduce(
|
|
1363
|
+
(retval, issue) => {
|
|
1364
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1365
|
+
const msg = path2 + ": " + issue.message;
|
|
1366
|
+
return [...retval, msg];
|
|
1367
|
+
},
|
|
1368
|
+
["ParsedOperation is invalid:"]
|
|
1369
|
+
);
|
|
1370
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1371
|
+
throw toParseErr(previous, validationErr);
|
|
1372
|
+
}
|
|
1373
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a ParsedOperation.");
|
|
1374
|
+
}
|
|
1375
|
+
};
|
|
1376
|
+
var create19 = (input) => from18(input);
|
|
1377
|
+
var of18 = (input) => {
|
|
1378
|
+
try {
|
|
1379
|
+
return (0, import_fluture19.resolve)(from18(input));
|
|
1380
|
+
} catch (err) {
|
|
1381
|
+
return (0, import_fluture19.reject)(err);
|
|
1382
|
+
}
|
|
1383
|
+
};
|
|
1384
|
+
var make18 = (input) => of18(input);
|
|
1385
|
+
var schemas18 = {
|
|
1386
|
+
rawSchema: parsedOperationSchema,
|
|
1387
|
+
schema: parsedOperationSchema.transform((val) => val)
|
|
1388
|
+
};
|
|
1389
|
+
var rawSchema18 = schemas18.rawSchema;
|
|
1390
|
+
var internalSchema18 = parsedOperationSchema;
|
|
1391
|
+
|
|
1392
|
+
// ParsedTemplate.ts
|
|
1393
|
+
var ParsedTemplate_exports = {};
|
|
1394
|
+
__export(ParsedTemplate_exports, {
|
|
1395
|
+
create: () => create20,
|
|
1396
|
+
from: () => from19,
|
|
1397
|
+
internalSchema: () => internalSchema19,
|
|
1398
|
+
make: () => make19,
|
|
1399
|
+
of: () => of19,
|
|
1400
|
+
rawSchema: () => rawSchema19,
|
|
1401
|
+
schemas: () => schemas19
|
|
1402
|
+
});
|
|
1403
|
+
|
|
1404
|
+
// out/types/ParsedTemplate.ts
|
|
1405
|
+
var import_fluture20 = require("fluture");
|
|
1406
|
+
var import_zod20 = require("zod");
|
|
1407
|
+
var from19 = (input) => {
|
|
1408
|
+
try {
|
|
1409
|
+
return parsedTemplateSchema.parse(input);
|
|
1410
|
+
} catch (previous) {
|
|
1411
|
+
if (previous instanceof import_zod20.ZodError) {
|
|
1412
|
+
const msgs = previous.errors.reduce(
|
|
1413
|
+
(retval, issue) => {
|
|
1414
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1415
|
+
const msg = path2 + ": " + issue.message;
|
|
1416
|
+
return [...retval, msg];
|
|
1417
|
+
},
|
|
1418
|
+
["ParsedTemplate is invalid:"]
|
|
1419
|
+
);
|
|
1420
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1421
|
+
throw toParseErr(previous, validationErr);
|
|
1422
|
+
}
|
|
1423
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a ParsedTemplate.");
|
|
1424
|
+
}
|
|
1425
|
+
};
|
|
1426
|
+
var create20 = (input) => from19(input);
|
|
1427
|
+
var of19 = (input) => {
|
|
1428
|
+
try {
|
|
1429
|
+
return (0, import_fluture20.resolve)(from19(input));
|
|
1430
|
+
} catch (err) {
|
|
1431
|
+
return (0, import_fluture20.reject)(err);
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
var make19 = (input) => of19(input);
|
|
1435
|
+
var schemas19 = {
|
|
1436
|
+
rawSchema: parsedTemplateSchema,
|
|
1437
|
+
schema: parsedTemplateSchema.transform((val) => val)
|
|
1438
|
+
};
|
|
1439
|
+
var rawSchema19 = schemas19.rawSchema;
|
|
1440
|
+
var internalSchema19 = parsedTemplateSchema;
|
|
1441
|
+
|
|
1442
|
+
// PluginActionName.ts
|
|
1443
|
+
var PluginActionName_exports = {};
|
|
1444
|
+
__export(PluginActionName_exports, {
|
|
1445
|
+
create: () => create21,
|
|
1446
|
+
from: () => from20,
|
|
1447
|
+
internalSchema: () => internalSchema20,
|
|
1448
|
+
make: () => make20,
|
|
1449
|
+
of: () => of20,
|
|
1450
|
+
rawSchema: () => rawSchema20,
|
|
1451
|
+
schemas: () => schemas20
|
|
1452
|
+
});
|
|
1453
|
+
|
|
1454
|
+
// out/types/PluginActionName.ts
|
|
1455
|
+
var import_fluture21 = require("fluture");
|
|
1456
|
+
var import_zod21 = require("zod");
|
|
1457
|
+
var from20 = (input) => {
|
|
1458
|
+
try {
|
|
1459
|
+
return pluginActionNameSchema.parse(input);
|
|
1460
|
+
} catch (previous) {
|
|
1461
|
+
if (previous instanceof import_zod21.ZodError) {
|
|
1462
|
+
const msgs = previous.errors.reduce(
|
|
1463
|
+
(retval, issue) => {
|
|
1464
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1465
|
+
const msg = path2 + ": " + issue.message;
|
|
1466
|
+
return [...retval, msg];
|
|
1467
|
+
},
|
|
1468
|
+
["PluginActionName is invalid:"]
|
|
1469
|
+
);
|
|
1470
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1471
|
+
throw toParseErr(previous, validationErr);
|
|
1472
|
+
}
|
|
1473
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginActionName.");
|
|
1474
|
+
}
|
|
1475
|
+
};
|
|
1476
|
+
var create21 = (input) => from20(input);
|
|
1477
|
+
var of20 = (input) => {
|
|
1478
|
+
try {
|
|
1479
|
+
return (0, import_fluture21.resolve)(from20(input));
|
|
1480
|
+
} catch (err) {
|
|
1481
|
+
return (0, import_fluture21.reject)(err);
|
|
1482
|
+
}
|
|
1483
|
+
};
|
|
1484
|
+
var make20 = (input) => of20(input);
|
|
1485
|
+
var schemas20 = {
|
|
1486
|
+
rawSchema: pluginActionNameSchema,
|
|
1487
|
+
schema: pluginActionNameSchema.transform((val) => val)
|
|
1488
|
+
};
|
|
1489
|
+
var rawSchema20 = schemas20.rawSchema;
|
|
1490
|
+
var internalSchema20 = pluginActionNameSchema;
|
|
1491
|
+
|
|
1492
|
+
// PluginDependenciesResponse.ts
|
|
1493
|
+
var PluginDependenciesResponse_exports = {};
|
|
1494
|
+
__export(PluginDependenciesResponse_exports, {
|
|
1495
|
+
create: () => create22,
|
|
1496
|
+
from: () => from21,
|
|
1497
|
+
internalSchema: () => internalSchema21,
|
|
1498
|
+
make: () => make21,
|
|
1499
|
+
of: () => of21,
|
|
1500
|
+
rawSchema: () => rawSchema21,
|
|
1501
|
+
schemas: () => schemas21
|
|
1502
|
+
});
|
|
1503
|
+
|
|
1504
|
+
// out/types/PluginDependenciesResponse.ts
|
|
1505
|
+
var import_fluture22 = require("fluture");
|
|
1506
|
+
var import_zod22 = require("zod");
|
|
1507
|
+
var from21 = (input) => {
|
|
1508
|
+
try {
|
|
1509
|
+
return pluginDependenciesResponseSchema.parse(input);
|
|
1510
|
+
} catch (previous) {
|
|
1511
|
+
if (previous instanceof import_zod22.ZodError) {
|
|
1512
|
+
const msgs = previous.errors.reduce(
|
|
1513
|
+
(retval, issue) => {
|
|
1514
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1515
|
+
const msg = path2 + ": " + issue.message;
|
|
1516
|
+
return [...retval, msg];
|
|
1517
|
+
},
|
|
1518
|
+
["PluginDependenciesResponse is invalid:"]
|
|
1519
|
+
);
|
|
1520
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1521
|
+
throw toParseErr(previous, validationErr);
|
|
1522
|
+
}
|
|
1523
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginDependenciesResponse.");
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1526
|
+
var create22 = (input) => from21(input);
|
|
1527
|
+
var of21 = (input) => {
|
|
1528
|
+
try {
|
|
1529
|
+
return (0, import_fluture22.resolve)(from21(input));
|
|
1530
|
+
} catch (err) {
|
|
1531
|
+
return (0, import_fluture22.reject)(err);
|
|
1532
|
+
}
|
|
1533
|
+
};
|
|
1534
|
+
var make21 = (input) => of21(input);
|
|
1535
|
+
var schemas21 = {
|
|
1536
|
+
rawSchema: pluginDependenciesResponseSchema,
|
|
1537
|
+
schema: pluginDependenciesResponseSchema.transform((val) => val)
|
|
1538
|
+
};
|
|
1539
|
+
var rawSchema21 = schemas21.rawSchema;
|
|
1540
|
+
var internalSchema21 = pluginDependenciesResponseSchema;
|
|
1541
|
+
|
|
1542
|
+
// PluginJsonResponse.ts
|
|
1543
|
+
var PluginJsonResponse_exports = {};
|
|
1544
|
+
__export(PluginJsonResponse_exports, {
|
|
1545
|
+
create: () => create23,
|
|
1546
|
+
from: () => from22,
|
|
1547
|
+
internalSchema: () => internalSchema22,
|
|
1548
|
+
make: () => make22,
|
|
1549
|
+
of: () => of22,
|
|
1550
|
+
rawSchema: () => rawSchema22,
|
|
1551
|
+
schemas: () => schemas22
|
|
1552
|
+
});
|
|
1553
|
+
|
|
1554
|
+
// out/types/PluginJsonResponse.ts
|
|
1555
|
+
var import_fluture23 = require("fluture");
|
|
1556
|
+
var import_zod23 = require("zod");
|
|
1557
|
+
var from22 = (input) => {
|
|
1558
|
+
try {
|
|
1559
|
+
return pluginJsonResponseSchema.parse(input);
|
|
1560
|
+
} catch (previous) {
|
|
1561
|
+
if (previous instanceof import_zod23.ZodError) {
|
|
1562
|
+
const msgs = previous.errors.reduce(
|
|
1563
|
+
(retval, issue) => {
|
|
1564
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1565
|
+
const msg = path2 + ": " + issue.message;
|
|
1566
|
+
return [...retval, msg];
|
|
1567
|
+
},
|
|
1568
|
+
["PluginJsonResponse is invalid:"]
|
|
1569
|
+
);
|
|
1570
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1571
|
+
throw toParseErr(previous, validationErr);
|
|
1572
|
+
}
|
|
1573
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginJsonResponse.");
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1576
|
+
var create23 = (input) => from22(input);
|
|
1577
|
+
var of22 = (input) => {
|
|
1578
|
+
try {
|
|
1579
|
+
return (0, import_fluture23.resolve)(from22(input));
|
|
1580
|
+
} catch (err) {
|
|
1581
|
+
return (0, import_fluture23.reject)(err);
|
|
1582
|
+
}
|
|
1583
|
+
};
|
|
1584
|
+
var make22 = (input) => of22(input);
|
|
1585
|
+
var schemas22 = {
|
|
1586
|
+
rawSchema: pluginJsonResponseSchema,
|
|
1587
|
+
schema: pluginJsonResponseSchema.transform((val) => val)
|
|
1588
|
+
};
|
|
1589
|
+
var rawSchema22 = schemas22.rawSchema;
|
|
1590
|
+
var internalSchema22 = pluginJsonResponseSchema;
|
|
1591
|
+
|
|
1592
|
+
// PluginProxyResponse.ts
|
|
1593
|
+
var PluginProxyResponse_exports = {};
|
|
1594
|
+
__export(PluginProxyResponse_exports, {
|
|
1595
|
+
create: () => create24,
|
|
1596
|
+
from: () => from23,
|
|
1597
|
+
internalSchema: () => internalSchema23,
|
|
1598
|
+
make: () => make23,
|
|
1599
|
+
of: () => of23,
|
|
1600
|
+
rawSchema: () => rawSchema23,
|
|
1601
|
+
schemas: () => schemas23
|
|
1602
|
+
});
|
|
1603
|
+
|
|
1604
|
+
// out/types/PluginProxyResponse.ts
|
|
1605
|
+
var import_fluture24 = require("fluture");
|
|
1606
|
+
var import_zod24 = require("zod");
|
|
1607
|
+
var from23 = (input) => {
|
|
1608
|
+
try {
|
|
1609
|
+
return pluginProxyResponseSchema.parse(input);
|
|
1610
|
+
} catch (previous) {
|
|
1611
|
+
if (previous instanceof import_zod24.ZodError) {
|
|
1612
|
+
const msgs = previous.errors.reduce(
|
|
1613
|
+
(retval, issue) => {
|
|
1614
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1615
|
+
const msg = path2 + ": " + issue.message;
|
|
1616
|
+
return [...retval, msg];
|
|
1617
|
+
},
|
|
1618
|
+
["PluginProxyResponse is invalid:"]
|
|
1619
|
+
);
|
|
1620
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1621
|
+
throw toParseErr(previous, validationErr);
|
|
1622
|
+
}
|
|
1623
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginProxyResponse.");
|
|
1624
|
+
}
|
|
1625
|
+
};
|
|
1626
|
+
var create24 = (input) => from23(input);
|
|
1627
|
+
var of23 = (input) => {
|
|
1628
|
+
try {
|
|
1629
|
+
return (0, import_fluture24.resolve)(from23(input));
|
|
1630
|
+
} catch (err) {
|
|
1631
|
+
return (0, import_fluture24.reject)(err);
|
|
1632
|
+
}
|
|
1633
|
+
};
|
|
1634
|
+
var make23 = (input) => of23(input);
|
|
1635
|
+
var schemas23 = {
|
|
1636
|
+
rawSchema: pluginProxyResponseSchema,
|
|
1637
|
+
schema: pluginProxyResponseSchema.transform((val) => val)
|
|
1638
|
+
};
|
|
1639
|
+
var rawSchema23 = schemas23.rawSchema;
|
|
1640
|
+
var internalSchema23 = pluginProxyResponseSchema;
|
|
1641
|
+
|
|
1642
|
+
// PluginResponseEncoding.ts
|
|
1643
|
+
var PluginResponseEncoding_exports = {};
|
|
1644
|
+
__export(PluginResponseEncoding_exports, {
|
|
1645
|
+
create: () => create25,
|
|
1646
|
+
from: () => from24,
|
|
1647
|
+
internalSchema: () => internalSchema24,
|
|
1648
|
+
make: () => make24,
|
|
1649
|
+
of: () => of24,
|
|
1650
|
+
rawSchema: () => rawSchema24,
|
|
1651
|
+
schemas: () => schemas24
|
|
1652
|
+
});
|
|
1653
|
+
|
|
1654
|
+
// out/types/PluginResponseEncoding.ts
|
|
1655
|
+
var import_fluture25 = require("fluture");
|
|
1656
|
+
var import_zod25 = require("zod");
|
|
1657
|
+
var from24 = (input) => {
|
|
1658
|
+
try {
|
|
1659
|
+
return pluginResponseEncodingSchema.parse(input);
|
|
1660
|
+
} catch (previous) {
|
|
1661
|
+
if (previous instanceof import_zod25.ZodError) {
|
|
1662
|
+
const msgs = previous.errors.reduce(
|
|
1663
|
+
(retval, issue) => {
|
|
1664
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1665
|
+
const msg = path2 + ": " + issue.message;
|
|
1666
|
+
return [...retval, msg];
|
|
1667
|
+
},
|
|
1668
|
+
["PluginResponseEncoding is invalid:"]
|
|
1669
|
+
);
|
|
1670
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1671
|
+
throw toParseErr(previous, validationErr);
|
|
1672
|
+
}
|
|
1673
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginResponseEncoding.");
|
|
1674
|
+
}
|
|
1675
|
+
};
|
|
1676
|
+
var create25 = (input) => from24(input);
|
|
1677
|
+
var of24 = (input) => {
|
|
1678
|
+
try {
|
|
1679
|
+
return (0, import_fluture25.resolve)(from24(input));
|
|
1680
|
+
} catch (err) {
|
|
1681
|
+
return (0, import_fluture25.reject)(err);
|
|
1682
|
+
}
|
|
1683
|
+
};
|
|
1684
|
+
var make24 = (input) => of24(input);
|
|
1685
|
+
var schemas24 = {
|
|
1686
|
+
rawSchema: pluginResponseEncodingSchema,
|
|
1687
|
+
schema: pluginResponseEncodingSchema.transform((val) => val)
|
|
1688
|
+
};
|
|
1689
|
+
var rawSchema24 = schemas24.rawSchema;
|
|
1690
|
+
var internalSchema24 = pluginResponseEncodingSchema;
|
|
1691
|
+
|
|
1692
|
+
// PositionalArg.ts
|
|
1693
|
+
var PositionalArg_exports = {};
|
|
1694
|
+
__export(PositionalArg_exports, {
|
|
1695
|
+
create: () => create26,
|
|
1696
|
+
from: () => from25,
|
|
1697
|
+
internalSchema: () => internalSchema25,
|
|
1698
|
+
make: () => make25,
|
|
1699
|
+
of: () => of25,
|
|
1700
|
+
rawSchema: () => rawSchema25,
|
|
1701
|
+
schemas: () => schemas25
|
|
1702
|
+
});
|
|
1703
|
+
|
|
1704
|
+
// out/types/PositionalArg.ts
|
|
1705
|
+
var import_fluture26 = require("fluture");
|
|
1706
|
+
var import_zod26 = require("zod");
|
|
1707
|
+
var from25 = (input) => {
|
|
1708
|
+
try {
|
|
1709
|
+
return positionalArgSchema.parse(input);
|
|
1710
|
+
} catch (previous) {
|
|
1711
|
+
if (previous instanceof import_zod26.ZodError) {
|
|
1712
|
+
const msgs = previous.errors.reduce(
|
|
1713
|
+
(retval, issue) => {
|
|
1714
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1715
|
+
const msg = path2 + ": " + issue.message;
|
|
1716
|
+
return [...retval, msg];
|
|
1717
|
+
},
|
|
1718
|
+
["PositionalArg is invalid:"]
|
|
1719
|
+
);
|
|
1720
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1721
|
+
throw toParseErr(previous, validationErr);
|
|
1722
|
+
}
|
|
1723
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a PositionalArg.");
|
|
1724
|
+
}
|
|
1725
|
+
};
|
|
1726
|
+
var create26 = (input) => from25(input);
|
|
1727
|
+
var of25 = (input) => {
|
|
1728
|
+
try {
|
|
1729
|
+
return (0, import_fluture26.resolve)(from25(input));
|
|
1730
|
+
} catch (err) {
|
|
1731
|
+
return (0, import_fluture26.reject)(err);
|
|
1732
|
+
}
|
|
1733
|
+
};
|
|
1734
|
+
var make25 = (input) => of25(input);
|
|
1735
|
+
var schemas25 = {
|
|
1736
|
+
rawSchema: positionalArgSchema,
|
|
1737
|
+
schema: positionalArgSchema.transform((val) => val)
|
|
1738
|
+
};
|
|
1739
|
+
var rawSchema25 = schemas25.rawSchema;
|
|
1740
|
+
var internalSchema25 = positionalArgSchema;
|
|
1741
|
+
|
|
1742
|
+
// Provisioner.ts
|
|
1743
|
+
var Provisioner_exports = {};
|
|
1744
|
+
__export(Provisioner_exports, {
|
|
1745
|
+
create: () => create27,
|
|
1746
|
+
from: () => from26,
|
|
1747
|
+
internalSchema: () => internalSchema26,
|
|
1748
|
+
make: () => make26,
|
|
1749
|
+
of: () => of26,
|
|
1750
|
+
rawSchema: () => rawSchema26,
|
|
1751
|
+
schemas: () => schemas26
|
|
1752
|
+
});
|
|
1753
|
+
|
|
1754
|
+
// out/types/Provisioner.ts
|
|
1755
|
+
var import_fluture27 = require("fluture");
|
|
1756
|
+
var import_zod27 = require("zod");
|
|
1757
|
+
var from26 = (input) => {
|
|
1758
|
+
try {
|
|
1759
|
+
return provisionerSchema.parse(input);
|
|
1760
|
+
} catch (previous) {
|
|
1761
|
+
if (previous instanceof import_zod27.ZodError) {
|
|
1762
|
+
const msgs = previous.errors.reduce(
|
|
1763
|
+
(retval, issue) => {
|
|
1764
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1765
|
+
const msg = path2 + ": " + issue.message;
|
|
1766
|
+
return [...retval, msg];
|
|
1767
|
+
},
|
|
1768
|
+
["Provisioner is invalid:"]
|
|
1769
|
+
);
|
|
1770
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1771
|
+
throw toParseErr(previous, validationErr);
|
|
1772
|
+
}
|
|
1773
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Provisioner.");
|
|
1774
|
+
}
|
|
1775
|
+
};
|
|
1776
|
+
var create27 = (input) => from26(input);
|
|
1777
|
+
var of26 = (input) => {
|
|
1778
|
+
try {
|
|
1779
|
+
return (0, import_fluture27.resolve)(from26(input));
|
|
1780
|
+
} catch (err) {
|
|
1781
|
+
return (0, import_fluture27.reject)(err);
|
|
1782
|
+
}
|
|
1783
|
+
};
|
|
1784
|
+
var make26 = (input) => of26(input);
|
|
1785
|
+
var schemas26 = {
|
|
1786
|
+
rawSchema: provisionerSchema,
|
|
1787
|
+
schema: provisionerSchema.transform((val) => val)
|
|
1788
|
+
};
|
|
1789
|
+
var rawSchema26 = schemas26.rawSchema;
|
|
1790
|
+
var internalSchema26 = provisionerSchema;
|
|
1791
|
+
|
|
1792
|
+
// ProvisionerID.ts
|
|
1793
|
+
var ProvisionerID_exports = {};
|
|
1794
|
+
__export(ProvisionerID_exports, {
|
|
1795
|
+
create: () => create28,
|
|
1796
|
+
from: () => from27,
|
|
1797
|
+
internalSchema: () => internalSchema27,
|
|
1798
|
+
make: () => make27,
|
|
1799
|
+
of: () => of27,
|
|
1800
|
+
rawSchema: () => rawSchema27,
|
|
1801
|
+
schemas: () => schemas27
|
|
1802
|
+
});
|
|
1803
|
+
|
|
1804
|
+
// out/types/ProvisionerID.ts
|
|
1805
|
+
var import_fluture28 = require("fluture");
|
|
1806
|
+
var import_zod28 = require("zod");
|
|
1807
|
+
var from27 = (input) => {
|
|
1808
|
+
try {
|
|
1809
|
+
return provisionerIDSchema.parse(input);
|
|
1810
|
+
} catch (previous) {
|
|
1811
|
+
if (previous instanceof import_zod28.ZodError) {
|
|
1812
|
+
const msgs = previous.errors.reduce(
|
|
1813
|
+
(retval, issue) => {
|
|
1814
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1815
|
+
const msg = path2 + ": " + issue.message;
|
|
1816
|
+
return [...retval, msg];
|
|
1817
|
+
},
|
|
1818
|
+
["ProvisionerID is invalid:"]
|
|
1819
|
+
);
|
|
1820
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1821
|
+
throw toParseErr(previous, validationErr);
|
|
1822
|
+
}
|
|
1823
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a ProvisionerID.");
|
|
1824
|
+
}
|
|
1825
|
+
};
|
|
1826
|
+
var create28 = (input) => from27(input);
|
|
1827
|
+
var of27 = (input) => {
|
|
1828
|
+
try {
|
|
1829
|
+
return (0, import_fluture28.resolve)(from27(input));
|
|
1830
|
+
} catch (err) {
|
|
1831
|
+
return (0, import_fluture28.reject)(err);
|
|
1832
|
+
}
|
|
1833
|
+
};
|
|
1834
|
+
var make27 = (input) => of27(input);
|
|
1835
|
+
var schemas27 = {
|
|
1836
|
+
rawSchema: provisionerIDSchema,
|
|
1837
|
+
schema: provisionerIDSchema.transform((val) => val)
|
|
1838
|
+
};
|
|
1839
|
+
var rawSchema27 = schemas27.rawSchema;
|
|
1840
|
+
var internalSchema27 = provisionerIDSchema;
|
|
1841
|
+
|
|
1842
|
+
// Provisions.ts
|
|
1843
|
+
var Provisions_exports = {};
|
|
1844
|
+
__export(Provisions_exports, {
|
|
1845
|
+
create: () => create29,
|
|
1846
|
+
from: () => from28,
|
|
1847
|
+
internalSchema: () => internalSchema28,
|
|
1848
|
+
make: () => make28,
|
|
1849
|
+
of: () => of28,
|
|
1850
|
+
rawSchema: () => rawSchema28,
|
|
1851
|
+
schemas: () => schemas28
|
|
1852
|
+
});
|
|
1853
|
+
|
|
1854
|
+
// out/types/Provisions.ts
|
|
1855
|
+
var import_fluture29 = require("fluture");
|
|
1856
|
+
var import_zod29 = require("zod");
|
|
1857
|
+
var from28 = (input) => {
|
|
1858
|
+
try {
|
|
1859
|
+
return provisionsSchema.parse(input);
|
|
1860
|
+
} catch (previous) {
|
|
1861
|
+
if (previous instanceof import_zod29.ZodError) {
|
|
1862
|
+
const msgs = previous.errors.reduce(
|
|
1863
|
+
(retval, issue) => {
|
|
1864
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1865
|
+
const msg = path2 + ": " + issue.message;
|
|
1866
|
+
return [...retval, msg];
|
|
1867
|
+
},
|
|
1868
|
+
["Provisions is invalid:"]
|
|
1869
|
+
);
|
|
1870
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1871
|
+
throw toParseErr(previous, validationErr);
|
|
1872
|
+
}
|
|
1873
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Provisions.");
|
|
1874
|
+
}
|
|
1875
|
+
};
|
|
1876
|
+
var create29 = (input) => from28(input);
|
|
1877
|
+
var of28 = (input) => {
|
|
1878
|
+
try {
|
|
1879
|
+
return (0, import_fluture29.resolve)(from28(input));
|
|
1880
|
+
} catch (err) {
|
|
1881
|
+
return (0, import_fluture29.reject)(err);
|
|
1882
|
+
}
|
|
1883
|
+
};
|
|
1884
|
+
var make28 = (input) => of28(input);
|
|
1885
|
+
var schemas28 = {
|
|
1886
|
+
rawSchema: provisionsSchema,
|
|
1887
|
+
schema: provisionsSchema.transform((val) => val)
|
|
1888
|
+
};
|
|
1889
|
+
var rawSchema28 = schemas28.rawSchema;
|
|
1890
|
+
var internalSchema28 = provisionsSchema;
|
|
1891
|
+
|
|
1892
|
+
// ProxyTaskArgs.ts
|
|
1893
|
+
var ProxyTaskArgs_exports = {};
|
|
1894
|
+
__export(ProxyTaskArgs_exports, {
|
|
1895
|
+
create: () => create30,
|
|
1896
|
+
from: () => from29,
|
|
1897
|
+
internalSchema: () => internalSchema29,
|
|
1898
|
+
make: () => make29,
|
|
1899
|
+
of: () => of29,
|
|
1900
|
+
rawSchema: () => rawSchema29,
|
|
1901
|
+
schemas: () => schemas29
|
|
1902
|
+
});
|
|
1903
|
+
|
|
1904
|
+
// out/types/ProxyTaskArgs.ts
|
|
1905
|
+
var import_fluture30 = require("fluture");
|
|
1906
|
+
var import_zod30 = require("zod");
|
|
1907
|
+
var from29 = (input) => {
|
|
1908
|
+
try {
|
|
1909
|
+
return proxyTaskArgsSchema.parse(input);
|
|
1910
|
+
} catch (previous) {
|
|
1911
|
+
if (previous instanceof import_zod30.ZodError) {
|
|
1912
|
+
const msgs = previous.errors.reduce(
|
|
1913
|
+
(retval, issue) => {
|
|
1914
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1915
|
+
const msg = path2 + ": " + issue.message;
|
|
1916
|
+
return [...retval, msg];
|
|
1917
|
+
},
|
|
1918
|
+
["ProxyTaskArgs is invalid:"]
|
|
1919
|
+
);
|
|
1920
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1921
|
+
throw toParseErr(previous, validationErr);
|
|
1922
|
+
}
|
|
1923
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a ProxyTaskArgs.");
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1926
|
+
var create30 = (input) => from29(input);
|
|
1927
|
+
var of29 = (input) => {
|
|
1928
|
+
try {
|
|
1929
|
+
return (0, import_fluture30.resolve)(from29(input));
|
|
1930
|
+
} catch (err) {
|
|
1931
|
+
return (0, import_fluture30.reject)(err);
|
|
1932
|
+
}
|
|
1933
|
+
};
|
|
1934
|
+
var make29 = (input) => of29(input);
|
|
1935
|
+
var schemas29 = {
|
|
1936
|
+
rawSchema: proxyTaskArgsSchema,
|
|
1937
|
+
schema: proxyTaskArgsSchema.transform((val) => val)
|
|
1938
|
+
};
|
|
1939
|
+
var rawSchema29 = schemas29.rawSchema;
|
|
1940
|
+
var internalSchema29 = proxyTaskArgsSchema;
|
|
1941
|
+
|
|
1942
|
+
// ProxyTemplateArgs.ts
|
|
1943
|
+
var ProxyTemplateArgs_exports = {};
|
|
1944
|
+
__export(ProxyTemplateArgs_exports, {
|
|
1945
|
+
create: () => create31,
|
|
1946
|
+
from: () => from30,
|
|
1947
|
+
internalSchema: () => internalSchema30,
|
|
1948
|
+
make: () => make30,
|
|
1949
|
+
of: () => of30,
|
|
1950
|
+
rawSchema: () => rawSchema30,
|
|
1951
|
+
schemas: () => schemas30
|
|
1952
|
+
});
|
|
1953
|
+
|
|
1954
|
+
// out/types/ProxyTemplateArgs.ts
|
|
1955
|
+
var import_fluture31 = require("fluture");
|
|
1956
|
+
var import_zod31 = require("zod");
|
|
1957
|
+
var from30 = (input) => {
|
|
1958
|
+
try {
|
|
1959
|
+
return proxyTemplateArgsSchema.parse(input);
|
|
1960
|
+
} catch (previous) {
|
|
1961
|
+
if (previous instanceof import_zod31.ZodError) {
|
|
1962
|
+
const msgs = previous.errors.reduce(
|
|
1963
|
+
(retval, issue) => {
|
|
1964
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
1965
|
+
const msg = path2 + ": " + issue.message;
|
|
1966
|
+
return [...retval, msg];
|
|
1967
|
+
},
|
|
1968
|
+
["ProxyTemplateArgs is invalid:"]
|
|
1969
|
+
);
|
|
1970
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
1971
|
+
throw toParseErr(previous, validationErr);
|
|
1972
|
+
}
|
|
1973
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a ProxyTemplateArgs.");
|
|
1974
|
+
}
|
|
1975
|
+
};
|
|
1976
|
+
var create31 = (input) => from30(input);
|
|
1977
|
+
var of30 = (input) => {
|
|
1978
|
+
try {
|
|
1979
|
+
return (0, import_fluture31.resolve)(from30(input));
|
|
1980
|
+
} catch (err) {
|
|
1981
|
+
return (0, import_fluture31.reject)(err);
|
|
1982
|
+
}
|
|
1983
|
+
};
|
|
1984
|
+
var make30 = (input) => of30(input);
|
|
1985
|
+
var schemas30 = {
|
|
1986
|
+
rawSchema: proxyTemplateArgsSchema,
|
|
1987
|
+
schema: proxyTemplateArgsSchema.transform((val) => val)
|
|
1988
|
+
};
|
|
1989
|
+
var rawSchema30 = schemas30.rawSchema;
|
|
1990
|
+
var internalSchema30 = proxyTemplateArgsSchema;
|
|
1991
|
+
|
|
1992
|
+
// PublicKeyHash.ts
|
|
1993
|
+
var PublicKeyHash_exports = {};
|
|
1994
|
+
__export(PublicKeyHash_exports, {
|
|
1995
|
+
create: () => create32,
|
|
1996
|
+
from: () => from31,
|
|
1997
|
+
internalSchema: () => internalSchema31,
|
|
1998
|
+
make: () => make31,
|
|
1999
|
+
of: () => of31,
|
|
2000
|
+
rawSchema: () => rawSchema31,
|
|
2001
|
+
schemas: () => schemas31
|
|
2002
|
+
});
|
|
2003
|
+
|
|
2004
|
+
// out/types/PublicKeyHash.ts
|
|
2005
|
+
var import_fluture32 = require("fluture");
|
|
2006
|
+
var import_zod32 = require("zod");
|
|
2007
|
+
var from31 = (input) => {
|
|
2008
|
+
try {
|
|
2009
|
+
return publicKeyHashSchema.parse(input);
|
|
2010
|
+
} catch (previous) {
|
|
2011
|
+
if (previous instanceof import_zod32.ZodError) {
|
|
2012
|
+
const msgs = previous.errors.reduce(
|
|
2013
|
+
(retval, issue) => {
|
|
2014
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2015
|
+
const msg = path2 + ": " + issue.message;
|
|
2016
|
+
return [...retval, msg];
|
|
2017
|
+
},
|
|
2018
|
+
["PublicKeyHash is invalid:"]
|
|
2019
|
+
);
|
|
2020
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2021
|
+
throw toParseErr(previous, validationErr);
|
|
2022
|
+
}
|
|
2023
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a PublicKeyHash.");
|
|
2024
|
+
}
|
|
2025
|
+
};
|
|
2026
|
+
var create32 = (input) => from31(input);
|
|
2027
|
+
var of31 = (input) => {
|
|
2028
|
+
try {
|
|
2029
|
+
return (0, import_fluture32.resolve)(from31(input));
|
|
2030
|
+
} catch (err) {
|
|
2031
|
+
return (0, import_fluture32.reject)(err);
|
|
2032
|
+
}
|
|
2033
|
+
};
|
|
2034
|
+
var make31 = (input) => of31(input);
|
|
2035
|
+
var schemas31 = {
|
|
2036
|
+
rawSchema: publicKeyHashSchema,
|
|
2037
|
+
schema: publicKeyHashSchema.transform((val) => val)
|
|
2038
|
+
};
|
|
2039
|
+
var rawSchema31 = schemas31.rawSchema;
|
|
2040
|
+
var internalSchema31 = publicKeyHashSchema;
|
|
2041
|
+
|
|
2042
|
+
// RequestArgs.ts
|
|
2043
|
+
var RequestArgs_exports = {};
|
|
2044
|
+
__export(RequestArgs_exports, {
|
|
2045
|
+
create: () => create33,
|
|
2046
|
+
from: () => from32,
|
|
2047
|
+
internalSchema: () => internalSchema32,
|
|
2048
|
+
make: () => make32,
|
|
2049
|
+
of: () => of32,
|
|
2050
|
+
rawSchema: () => rawSchema32,
|
|
2051
|
+
schemas: () => schemas32
|
|
2052
|
+
});
|
|
2053
|
+
|
|
2054
|
+
// out/types/RequestArgs.ts
|
|
2055
|
+
var import_fluture33 = require("fluture");
|
|
2056
|
+
var import_zod33 = require("zod");
|
|
2057
|
+
var from32 = (input) => {
|
|
2058
|
+
try {
|
|
2059
|
+
return requestArgsSchema.parse(input);
|
|
2060
|
+
} catch (previous) {
|
|
2061
|
+
if (previous instanceof import_zod33.ZodError) {
|
|
2062
|
+
const msgs = previous.errors.reduce(
|
|
2063
|
+
(retval, issue) => {
|
|
2064
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2065
|
+
const msg = path2 + ": " + issue.message;
|
|
2066
|
+
return [...retval, msg];
|
|
2067
|
+
},
|
|
2068
|
+
["RequestArgs is invalid:"]
|
|
2069
|
+
);
|
|
2070
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2071
|
+
throw toParseErr(previous, validationErr);
|
|
2072
|
+
}
|
|
2073
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a RequestArgs.");
|
|
2074
|
+
}
|
|
2075
|
+
};
|
|
2076
|
+
var create33 = (input) => from32(input);
|
|
2077
|
+
var of32 = (input) => {
|
|
2078
|
+
try {
|
|
2079
|
+
return (0, import_fluture33.resolve)(from32(input));
|
|
2080
|
+
} catch (err) {
|
|
2081
|
+
return (0, import_fluture33.reject)(err);
|
|
2082
|
+
}
|
|
2083
|
+
};
|
|
2084
|
+
var make32 = (input) => of32(input);
|
|
2085
|
+
var schemas32 = {
|
|
2086
|
+
rawSchema: requestArgsSchema,
|
|
2087
|
+
schema: requestArgsSchema.transform((val) => val)
|
|
2088
|
+
};
|
|
2089
|
+
var rawSchema32 = schemas32.rawSchema;
|
|
2090
|
+
var internalSchema32 = requestArgsSchema;
|
|
2091
|
+
|
|
2092
|
+
// SandboxAccountConfig.ts
|
|
2093
|
+
var SandboxAccountConfig_exports = {};
|
|
2094
|
+
__export(SandboxAccountConfig_exports, {
|
|
2095
|
+
create: () => create34,
|
|
2096
|
+
from: () => from33,
|
|
2097
|
+
internalSchema: () => internalSchema33,
|
|
2098
|
+
make: () => make33,
|
|
2099
|
+
of: () => of33,
|
|
2100
|
+
rawSchema: () => rawSchema33,
|
|
2101
|
+
schemas: () => schemas33
|
|
2102
|
+
});
|
|
2103
|
+
|
|
2104
|
+
// out/types/SandboxAccountConfig.ts
|
|
2105
|
+
var import_fluture34 = require("fluture");
|
|
2106
|
+
var import_zod34 = require("zod");
|
|
2107
|
+
var from33 = (input) => {
|
|
2108
|
+
try {
|
|
2109
|
+
return sandboxAccountConfigSchema.parse(input);
|
|
2110
|
+
} catch (previous) {
|
|
2111
|
+
if (previous instanceof import_zod34.ZodError) {
|
|
2112
|
+
const msgs = previous.errors.reduce(
|
|
2113
|
+
(retval, issue) => {
|
|
2114
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2115
|
+
const msg = path2 + ": " + issue.message;
|
|
2116
|
+
return [...retval, msg];
|
|
2117
|
+
},
|
|
2118
|
+
["SandboxAccountConfig is invalid:"]
|
|
2119
|
+
);
|
|
2120
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2121
|
+
throw toParseErr(previous, validationErr);
|
|
2122
|
+
}
|
|
2123
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a SandboxAccountConfig.");
|
|
2124
|
+
}
|
|
2125
|
+
};
|
|
2126
|
+
var create34 = (input) => from33(input);
|
|
2127
|
+
var of33 = (input) => {
|
|
2128
|
+
try {
|
|
2129
|
+
return (0, import_fluture34.resolve)(from33(input));
|
|
2130
|
+
} catch (err) {
|
|
2131
|
+
return (0, import_fluture34.reject)(err);
|
|
2132
|
+
}
|
|
2133
|
+
};
|
|
2134
|
+
var make33 = (input) => of33(input);
|
|
2135
|
+
var schemas33 = {
|
|
2136
|
+
rawSchema: sandboxAccountConfigSchema,
|
|
2137
|
+
schema: sandboxAccountConfigSchema.transform((val) => val)
|
|
2138
|
+
};
|
|
2139
|
+
var rawSchema33 = schemas33.rawSchema;
|
|
2140
|
+
var internalSchema33 = sandboxAccountConfigSchema;
|
|
2141
|
+
|
|
2142
|
+
// SandboxConfig.ts
|
|
2143
|
+
var SandboxConfig_exports = {};
|
|
2144
|
+
__export(SandboxConfig_exports, {
|
|
2145
|
+
create: () => create35,
|
|
2146
|
+
from: () => from34,
|
|
2147
|
+
internalSchema: () => internalSchema34,
|
|
2148
|
+
make: () => make34,
|
|
2149
|
+
of: () => of34,
|
|
2150
|
+
rawSchema: () => rawSchema34,
|
|
2151
|
+
schemas: () => schemas34
|
|
2152
|
+
});
|
|
2153
|
+
|
|
2154
|
+
// out/types/SandboxConfig.ts
|
|
2155
|
+
var import_fluture35 = require("fluture");
|
|
2156
|
+
var import_zod35 = require("zod");
|
|
2157
|
+
var from34 = (input) => {
|
|
2158
|
+
try {
|
|
2159
|
+
return sandboxConfigSchema.parse(input);
|
|
2160
|
+
} catch (previous) {
|
|
2161
|
+
if (previous instanceof import_zod35.ZodError) {
|
|
2162
|
+
const msgs = previous.errors.reduce(
|
|
2163
|
+
(retval, issue) => {
|
|
2164
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2165
|
+
const msg = path2 + ": " + issue.message;
|
|
2166
|
+
return [...retval, msg];
|
|
2167
|
+
},
|
|
2168
|
+
["SandboxConfig is invalid:"]
|
|
2169
|
+
);
|
|
2170
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2171
|
+
throw toParseErr(previous, validationErr);
|
|
2172
|
+
}
|
|
2173
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a SandboxConfig.");
|
|
2174
|
+
}
|
|
2175
|
+
};
|
|
2176
|
+
var create35 = (input) => from34(input);
|
|
2177
|
+
var of34 = (input) => {
|
|
2178
|
+
try {
|
|
2179
|
+
return (0, import_fluture35.resolve)(from34(input));
|
|
2180
|
+
} catch (err) {
|
|
2181
|
+
return (0, import_fluture35.reject)(err);
|
|
2182
|
+
}
|
|
2183
|
+
};
|
|
2184
|
+
var make34 = (input) => of34(input);
|
|
2185
|
+
var schemas34 = {
|
|
2186
|
+
rawSchema: sandboxConfigSchema,
|
|
2187
|
+
schema: sandboxConfigSchema.transform((val) => val)
|
|
2188
|
+
};
|
|
2189
|
+
var rawSchema34 = schemas34.rawSchema;
|
|
2190
|
+
var internalSchema34 = sandboxConfigSchema;
|
|
2191
|
+
|
|
2192
|
+
// SanitizedAbsPath.ts
|
|
2193
|
+
var SanitizedAbsPath_exports = {};
|
|
2194
|
+
__export(SanitizedAbsPath_exports, {
|
|
2195
|
+
create: () => create36,
|
|
2196
|
+
factory: () => factory,
|
|
2197
|
+
generatedSchemas: () => generatedSchemas,
|
|
2198
|
+
make: () => make35,
|
|
2199
|
+
of: () => of35,
|
|
2200
|
+
rawSchema: () => rawSchema35,
|
|
2201
|
+
schemas: () => schemas35
|
|
2202
|
+
});
|
|
2203
|
+
|
|
2204
|
+
// Base.ts
|
|
2205
|
+
var import_fluture36 = require("fluture");
|
|
2206
|
+
var import_zod36 = require("zod");
|
|
2207
|
+
var createSchema = (params) => {
|
|
2208
|
+
var _a, _b;
|
|
2209
|
+
const { rawSchema: rawSchema53, isStringLike } = params;
|
|
2210
|
+
const internalSchema50 = (_a = params.internalSchema) != null ? _a : params.rawSchema;
|
|
2211
|
+
const noop = (val) => val;
|
|
2212
|
+
const transformer = (_b = params.transformer) != null ? _b : noop;
|
|
2213
|
+
const schema = isStringLike ? internalSchema50.transform(
|
|
2214
|
+
(val) => transformer(val)
|
|
2215
|
+
) : internalSchema50.transform(
|
|
2216
|
+
(val) => transformer(val)
|
|
2217
|
+
);
|
|
2218
|
+
return {
|
|
2219
|
+
rawSchema: rawSchema53,
|
|
2220
|
+
internalSchema: internalSchema50,
|
|
2221
|
+
schema
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
var createType = (params) => {
|
|
2225
|
+
const schemas53 = createSchema(params);
|
|
2226
|
+
const { parseErrMsg, unknownErrMsg } = params;
|
|
2227
|
+
const internalOf = (input) => {
|
|
2228
|
+
try {
|
|
2229
|
+
return (0, import_fluture36.resolve)(schemas53.schema.parse(input));
|
|
2230
|
+
} catch (previous) {
|
|
2231
|
+
const parseMsg = typeof parseErrMsg === "string" ? parseErrMsg : parseErrMsg(input, previous);
|
|
2232
|
+
const unknownMsg = typeof unknownErrMsg === "string" ? unknownErrMsg : unknownErrMsg(input);
|
|
2233
|
+
if (previous instanceof import_zod36.ZodError) {
|
|
2234
|
+
return toFutureParseErr(previous, parseMsg, input);
|
|
2235
|
+
}
|
|
2236
|
+
return toFutureParseUnknownErr(previous, unknownMsg, input);
|
|
2237
|
+
}
|
|
2238
|
+
};
|
|
2239
|
+
const of53 = internalOf;
|
|
2240
|
+
const make53 = (input) => internalOf(input);
|
|
2241
|
+
const create55 = (input) => schemas53.schema.parse(input);
|
|
2242
|
+
const from46 = (input) => schemas53.schema.parse(input);
|
|
2243
|
+
const factory8 = {
|
|
2244
|
+
make: make53,
|
|
2245
|
+
of: of53,
|
|
2246
|
+
create: create55,
|
|
2247
|
+
from: from46
|
|
2248
|
+
};
|
|
2249
|
+
return {
|
|
2250
|
+
schemas: schemas53,
|
|
2251
|
+
factory: factory8
|
|
2252
|
+
};
|
|
2253
|
+
};
|
|
2254
|
+
var Base_default = createType;
|
|
2255
|
+
|
|
2256
|
+
// SanitizedAbsPath.ts
|
|
2257
|
+
var path = __toESM(require("path"));
|
|
2258
|
+
var import_zod37 = require("zod");
|
|
2259
|
+
var rawSchema35 = import_zod37.z.string({ description: "SanitizedAbsPath" }).min(1);
|
|
2260
|
+
var { schemas: generatedSchemas, factory } = Base_default({
|
|
2261
|
+
isStringLike: true,
|
|
2262
|
+
rawSchema: rawSchema35,
|
|
2263
|
+
transformer: (value) => path.resolve(value),
|
|
2264
|
+
parseErrMsg: (value) => `${value} is an invalid absolute path`,
|
|
2265
|
+
unknownErrMsg: (value) => `Something went wrong trying to parse the absolute path, ${value}`
|
|
2266
|
+
});
|
|
2267
|
+
var { create: create36, make: make35, of: of35 } = factory;
|
|
2268
|
+
var schemas35 = {
|
|
2269
|
+
...generatedSchemas,
|
|
2270
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
2271
|
+
};
|
|
2272
|
+
|
|
2273
|
+
// SanitizedPath.ts
|
|
2274
|
+
var SanitizedPath_exports = {};
|
|
2275
|
+
__export(SanitizedPath_exports, {
|
|
2276
|
+
create: () => create37,
|
|
2277
|
+
from: () => from35,
|
|
2278
|
+
internalSchema: () => internalSchema35,
|
|
2279
|
+
make: () => make36,
|
|
2280
|
+
of: () => of36,
|
|
2281
|
+
rawSchema: () => rawSchema36,
|
|
2282
|
+
schemas: () => schemas36
|
|
2283
|
+
});
|
|
2284
|
+
|
|
2285
|
+
// out/types/SanitizedPath.ts
|
|
2286
|
+
var import_fluture37 = require("fluture");
|
|
2287
|
+
var import_zod38 = require("zod");
|
|
2288
|
+
var from35 = (input) => {
|
|
2289
|
+
try {
|
|
2290
|
+
return sanitizedPathSchema.parse(input);
|
|
2291
|
+
} catch (previous) {
|
|
2292
|
+
if (previous instanceof import_zod38.ZodError) {
|
|
2293
|
+
const msgs = previous.errors.reduce(
|
|
2294
|
+
(retval, issue) => {
|
|
2295
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2296
|
+
const msg = path2 + ": " + issue.message;
|
|
2297
|
+
return [...retval, msg];
|
|
2298
|
+
},
|
|
2299
|
+
["SanitizedPath is invalid:"]
|
|
2300
|
+
);
|
|
2301
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2302
|
+
throw toParseErr(previous, validationErr);
|
|
2303
|
+
}
|
|
2304
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a SanitizedPath.");
|
|
2305
|
+
}
|
|
2306
|
+
};
|
|
2307
|
+
var create37 = (input) => from35(input);
|
|
2308
|
+
var of36 = (input) => {
|
|
2309
|
+
try {
|
|
2310
|
+
return (0, import_fluture37.resolve)(from35(input));
|
|
2311
|
+
} catch (err) {
|
|
2312
|
+
return (0, import_fluture37.reject)(err);
|
|
2313
|
+
}
|
|
2314
|
+
};
|
|
2315
|
+
var make36 = (input) => of36(input);
|
|
2316
|
+
var schemas36 = {
|
|
2317
|
+
rawSchema: sanitizedPathSchema,
|
|
2318
|
+
schema: sanitizedPathSchema.transform((val) => val)
|
|
2319
|
+
};
|
|
2320
|
+
var rawSchema36 = schemas36.rawSchema;
|
|
2321
|
+
var internalSchema35 = sanitizedPathSchema;
|
|
2322
|
+
|
|
2323
|
+
// ScaffoldConfig.ts
|
|
2324
|
+
var ScaffoldConfig_exports = {};
|
|
2325
|
+
__export(ScaffoldConfig_exports, {
|
|
2326
|
+
create: () => create38,
|
|
2327
|
+
from: () => from36,
|
|
2328
|
+
internalSchema: () => internalSchema36,
|
|
2329
|
+
make: () => make37,
|
|
2330
|
+
of: () => of37,
|
|
2331
|
+
rawSchema: () => rawSchema37,
|
|
2332
|
+
schemas: () => schemas37
|
|
2333
|
+
});
|
|
2334
|
+
|
|
2335
|
+
// out/types/ScaffoldConfig.ts
|
|
2336
|
+
var import_fluture38 = require("fluture");
|
|
2337
|
+
var import_zod39 = require("zod");
|
|
2338
|
+
var from36 = (input) => {
|
|
2339
|
+
try {
|
|
2340
|
+
return scaffoldConfigSchema.parse(input);
|
|
2341
|
+
} catch (previous) {
|
|
2342
|
+
if (previous instanceof import_zod39.ZodError) {
|
|
2343
|
+
const msgs = previous.errors.reduce(
|
|
2344
|
+
(retval, issue) => {
|
|
2345
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2346
|
+
const msg = path2 + ": " + issue.message;
|
|
2347
|
+
return [...retval, msg];
|
|
2348
|
+
},
|
|
2349
|
+
["ScaffoldConfig is invalid:"]
|
|
2350
|
+
);
|
|
2351
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2352
|
+
throw toParseErr(previous, validationErr);
|
|
2353
|
+
}
|
|
2354
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a ScaffoldConfig.");
|
|
2355
|
+
}
|
|
2356
|
+
};
|
|
2357
|
+
var create38 = (input) => from36(input);
|
|
2358
|
+
var of37 = (input) => {
|
|
2359
|
+
try {
|
|
2360
|
+
return (0, import_fluture38.resolve)(from36(input));
|
|
2361
|
+
} catch (err) {
|
|
2362
|
+
return (0, import_fluture38.reject)(err);
|
|
2363
|
+
}
|
|
2364
|
+
};
|
|
2365
|
+
var make37 = (input) => of37(input);
|
|
2366
|
+
var schemas37 = {
|
|
2367
|
+
rawSchema: scaffoldConfigSchema,
|
|
2368
|
+
schema: scaffoldConfigSchema.transform((val) => val)
|
|
2369
|
+
};
|
|
2370
|
+
var rawSchema37 = schemas37.rawSchema;
|
|
2371
|
+
var internalSchema36 = scaffoldConfigSchema;
|
|
2372
|
+
|
|
2373
|
+
// Settings.ts
|
|
2374
|
+
var Settings_exports = {};
|
|
2375
|
+
__export(Settings_exports, {
|
|
2376
|
+
create: () => create39,
|
|
2377
|
+
from: () => from37,
|
|
2378
|
+
internalSchema: () => internalSchema37,
|
|
2379
|
+
make: () => make38,
|
|
2380
|
+
of: () => of38,
|
|
2381
|
+
rawSchema: () => rawSchema38,
|
|
2382
|
+
schemas: () => schemas38
|
|
2383
|
+
});
|
|
2384
|
+
|
|
2385
|
+
// out/types/Settings.ts
|
|
2386
|
+
var import_fluture39 = require("fluture");
|
|
2387
|
+
var import_zod40 = require("zod");
|
|
2388
|
+
var from37 = (input) => {
|
|
2389
|
+
try {
|
|
2390
|
+
return settingsSchema.parse(input);
|
|
2391
|
+
} catch (previous) {
|
|
2392
|
+
if (previous instanceof import_zod40.ZodError) {
|
|
2393
|
+
const msgs = previous.errors.reduce(
|
|
2394
|
+
(retval, issue) => {
|
|
2395
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2396
|
+
const msg = path2 + ": " + issue.message;
|
|
2397
|
+
return [...retval, msg];
|
|
2398
|
+
},
|
|
2399
|
+
["Settings is invalid:"]
|
|
2400
|
+
);
|
|
2401
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2402
|
+
throw toParseErr(previous, validationErr);
|
|
2403
|
+
}
|
|
2404
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Settings.");
|
|
2405
|
+
}
|
|
2406
|
+
};
|
|
2407
|
+
var create39 = (input) => from37(input);
|
|
2408
|
+
var of38 = (input) => {
|
|
2409
|
+
try {
|
|
2410
|
+
return (0, import_fluture39.resolve)(from37(input));
|
|
2411
|
+
} catch (err) {
|
|
2412
|
+
return (0, import_fluture39.reject)(err);
|
|
2413
|
+
}
|
|
2414
|
+
};
|
|
2415
|
+
var make38 = (input) => of38(input);
|
|
2416
|
+
var schemas38 = {
|
|
2417
|
+
rawSchema: settingsSchema,
|
|
2418
|
+
schema: settingsSchema.transform((val) => val)
|
|
2419
|
+
};
|
|
2420
|
+
var rawSchema38 = schemas38.rawSchema;
|
|
2421
|
+
var internalSchema37 = settingsSchema;
|
|
2422
|
+
|
|
2423
|
+
// SingleChar.ts
|
|
2424
|
+
var SingleChar_exports = {};
|
|
2425
|
+
__export(SingleChar_exports, {
|
|
2426
|
+
create: () => create40,
|
|
2427
|
+
from: () => from38,
|
|
2428
|
+
internalSchema: () => internalSchema38,
|
|
2429
|
+
make: () => make39,
|
|
2430
|
+
of: () => of39,
|
|
2431
|
+
rawSchema: () => rawSchema39,
|
|
2432
|
+
schemas: () => schemas39
|
|
2433
|
+
});
|
|
2434
|
+
|
|
2435
|
+
// out/types/SingleChar.ts
|
|
2436
|
+
var import_fluture40 = require("fluture");
|
|
2437
|
+
var import_zod41 = require("zod");
|
|
2438
|
+
var from38 = (input) => {
|
|
2439
|
+
try {
|
|
2440
|
+
return singleCharSchema.parse(input);
|
|
2441
|
+
} catch (previous) {
|
|
2442
|
+
if (previous instanceof import_zod41.ZodError) {
|
|
2443
|
+
const msgs = previous.errors.reduce(
|
|
2444
|
+
(retval, issue) => {
|
|
2445
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2446
|
+
const msg = path2 + ": " + issue.message;
|
|
2447
|
+
return [...retval, msg];
|
|
2448
|
+
},
|
|
2449
|
+
["SingleChar is invalid:"]
|
|
2450
|
+
);
|
|
2451
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2452
|
+
throw toParseErr(previous, validationErr);
|
|
2453
|
+
}
|
|
2454
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a SingleChar.");
|
|
2455
|
+
}
|
|
2456
|
+
};
|
|
2457
|
+
var create40 = (input) => from38(input);
|
|
2458
|
+
var of39 = (input) => {
|
|
2459
|
+
try {
|
|
2460
|
+
return (0, import_fluture40.resolve)(from38(input));
|
|
2461
|
+
} catch (err) {
|
|
2462
|
+
return (0, import_fluture40.reject)(err);
|
|
2463
|
+
}
|
|
2464
|
+
};
|
|
2465
|
+
var make39 = (input) => of39(input);
|
|
2466
|
+
var schemas39 = {
|
|
2467
|
+
rawSchema: singleCharSchema,
|
|
2468
|
+
schema: singleCharSchema.transform((val) => val)
|
|
2469
|
+
};
|
|
2470
|
+
var rawSchema39 = schemas39.rawSchema;
|
|
2471
|
+
var internalSchema38 = singleCharSchema;
|
|
2472
|
+
|
|
2473
|
+
// Task.ts
|
|
2474
|
+
var Task_exports = {};
|
|
2475
|
+
__export(Task_exports, {
|
|
2476
|
+
create: () => create41,
|
|
2477
|
+
from: () => from39,
|
|
2478
|
+
internalSchema: () => internalSchema39,
|
|
2479
|
+
make: () => make40,
|
|
2480
|
+
of: () => of40,
|
|
2481
|
+
rawSchema: () => rawSchema40,
|
|
2482
|
+
schemas: () => schemas40
|
|
2483
|
+
});
|
|
2484
|
+
|
|
2485
|
+
// out/types/Task.ts
|
|
2486
|
+
var import_fluture41 = require("fluture");
|
|
2487
|
+
var import_zod42 = require("zod");
|
|
2488
|
+
var from39 = (input) => {
|
|
2489
|
+
try {
|
|
2490
|
+
return taskSchema.parse(input);
|
|
2491
|
+
} catch (previous) {
|
|
2492
|
+
if (previous instanceof import_zod42.ZodError) {
|
|
2493
|
+
const msgs = previous.errors.reduce(
|
|
2494
|
+
(retval, issue) => {
|
|
2495
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2496
|
+
const msg = path2 + ": " + issue.message;
|
|
2497
|
+
return [...retval, msg];
|
|
2498
|
+
},
|
|
2499
|
+
["Task is invalid:"]
|
|
2500
|
+
);
|
|
2501
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2502
|
+
throw toParseErr(previous, validationErr);
|
|
2503
|
+
}
|
|
2504
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Task.");
|
|
2505
|
+
}
|
|
2506
|
+
};
|
|
2507
|
+
var create41 = (input) => from39(input);
|
|
2508
|
+
var of40 = (input) => {
|
|
2509
|
+
try {
|
|
2510
|
+
return (0, import_fluture41.resolve)(from39(input));
|
|
2511
|
+
} catch (err) {
|
|
2512
|
+
return (0, import_fluture41.reject)(err);
|
|
2513
|
+
}
|
|
2514
|
+
};
|
|
2515
|
+
var make40 = (input) => of40(input);
|
|
2516
|
+
var schemas40 = {
|
|
2517
|
+
rawSchema: taskSchema,
|
|
2518
|
+
schema: taskSchema.transform((val) => val)
|
|
2519
|
+
};
|
|
2520
|
+
var rawSchema40 = schemas40.rawSchema;
|
|
2521
|
+
var internalSchema39 = taskSchema;
|
|
2522
|
+
|
|
2523
|
+
// Template.ts
|
|
2524
|
+
var Template_exports = {};
|
|
2525
|
+
__export(Template_exports, {
|
|
2526
|
+
create: () => create43,
|
|
2527
|
+
from: () => from40,
|
|
2528
|
+
internalSchema: () => internalSchema40,
|
|
2529
|
+
make: () => make41,
|
|
2530
|
+
of: () => of41,
|
|
2531
|
+
rawSchema: () => rawSchema41,
|
|
2532
|
+
schemas: () => schemas41
|
|
2533
|
+
});
|
|
2534
|
+
|
|
2535
|
+
// out/types/Template.ts
|
|
2536
|
+
var import_fluture42 = require("fluture");
|
|
2537
|
+
var import_zod43 = require("zod");
|
|
2538
|
+
var from40 = (input) => {
|
|
2539
|
+
try {
|
|
2540
|
+
return templateSchema.parse(input);
|
|
2541
|
+
} catch (previous) {
|
|
2542
|
+
if (previous instanceof import_zod43.ZodError) {
|
|
2543
|
+
const msgs = previous.errors.reduce(
|
|
2544
|
+
(retval, issue) => {
|
|
2545
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2546
|
+
const msg = path2 + ": " + issue.message;
|
|
2547
|
+
return [...retval, msg];
|
|
2548
|
+
},
|
|
2549
|
+
["Template is invalid:"]
|
|
2550
|
+
);
|
|
2551
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2552
|
+
throw toParseErr(previous, validationErr);
|
|
2553
|
+
}
|
|
2554
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Template.");
|
|
2555
|
+
}
|
|
2556
|
+
};
|
|
2557
|
+
var create42 = (input) => from40(input);
|
|
2558
|
+
var of41 = (input) => {
|
|
2559
|
+
try {
|
|
2560
|
+
return (0, import_fluture42.resolve)(from40(input));
|
|
2561
|
+
} catch (err) {
|
|
2562
|
+
return (0, import_fluture42.reject)(err);
|
|
2563
|
+
}
|
|
2564
|
+
};
|
|
2565
|
+
var make41 = (input) => of41(input);
|
|
2566
|
+
var schemas41 = {
|
|
2567
|
+
rawSchema: templateSchema,
|
|
2568
|
+
schema: templateSchema.transform((val) => val)
|
|
2569
|
+
};
|
|
2570
|
+
var rawSchema41 = schemas41.rawSchema;
|
|
2571
|
+
var internalSchema40 = templateSchema;
|
|
2572
|
+
|
|
2573
|
+
// Template.ts
|
|
2574
|
+
function create43(args) {
|
|
2575
|
+
return create42(args);
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
// Timestamp.ts
|
|
2579
|
+
var Timestamp_exports = {};
|
|
2580
|
+
__export(Timestamp_exports, {
|
|
2581
|
+
create: () => create44,
|
|
2582
|
+
from: () => from41,
|
|
2583
|
+
internalSchema: () => internalSchema41,
|
|
2584
|
+
make: () => make42,
|
|
2585
|
+
of: () => of42,
|
|
2586
|
+
rawSchema: () => rawSchema42,
|
|
2587
|
+
schemas: () => schemas42
|
|
2588
|
+
});
|
|
2589
|
+
|
|
2590
|
+
// out/types/Timestamp.ts
|
|
2591
|
+
var import_fluture43 = require("fluture");
|
|
2592
|
+
var import_zod44 = require("zod");
|
|
2593
|
+
var from41 = (input) => {
|
|
2594
|
+
try {
|
|
2595
|
+
return timestampSchema.parse(input);
|
|
2596
|
+
} catch (previous) {
|
|
2597
|
+
if (previous instanceof import_zod44.ZodError) {
|
|
2598
|
+
const msgs = previous.errors.reduce(
|
|
2599
|
+
(retval, issue) => {
|
|
2600
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2601
|
+
const msg = path2 + ": " + issue.message;
|
|
2602
|
+
return [...retval, msg];
|
|
2603
|
+
},
|
|
2604
|
+
["Timestamp is invalid:"]
|
|
2605
|
+
);
|
|
2606
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2607
|
+
throw toParseErr(previous, validationErr);
|
|
2608
|
+
}
|
|
2609
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Timestamp.");
|
|
2610
|
+
}
|
|
2611
|
+
};
|
|
2612
|
+
var create44 = (input) => from41(input);
|
|
2613
|
+
var of42 = (input) => {
|
|
2614
|
+
try {
|
|
2615
|
+
return (0, import_fluture43.resolve)(from41(input));
|
|
2616
|
+
} catch (err) {
|
|
2617
|
+
return (0, import_fluture43.reject)(err);
|
|
2618
|
+
}
|
|
2619
|
+
};
|
|
2620
|
+
var make42 = (input) => of42(input);
|
|
2621
|
+
var schemas42 = {
|
|
2622
|
+
rawSchema: timestampSchema,
|
|
2623
|
+
schema: timestampSchema.transform((val) => val)
|
|
2624
|
+
};
|
|
2625
|
+
var rawSchema42 = schemas42.rawSchema;
|
|
2626
|
+
var internalSchema41 = timestampSchema;
|
|
2627
|
+
|
|
2628
|
+
// Tz.ts
|
|
2629
|
+
var Tz_exports = {};
|
|
2630
|
+
__export(Tz_exports, {
|
|
2631
|
+
create: () => create45,
|
|
2632
|
+
from: () => from42,
|
|
2633
|
+
internalSchema: () => internalSchema42,
|
|
2634
|
+
make: () => make43,
|
|
2635
|
+
of: () => of43,
|
|
2636
|
+
rawSchema: () => rawSchema43,
|
|
2637
|
+
schemas: () => schemas43
|
|
2638
|
+
});
|
|
2639
|
+
|
|
2640
|
+
// out/types/Tz.ts
|
|
2641
|
+
var import_fluture44 = require("fluture");
|
|
2642
|
+
var import_zod45 = require("zod");
|
|
2643
|
+
var from42 = (input) => {
|
|
2644
|
+
try {
|
|
2645
|
+
return tzSchema.parse(input);
|
|
2646
|
+
} catch (previous) {
|
|
2647
|
+
if (previous instanceof import_zod45.ZodError) {
|
|
2648
|
+
const msgs = previous.errors.reduce(
|
|
2649
|
+
(retval, issue) => {
|
|
2650
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2651
|
+
const msg = path2 + ": " + issue.message;
|
|
2652
|
+
return [...retval, msg];
|
|
2653
|
+
},
|
|
2654
|
+
["Tz is invalid:"]
|
|
2655
|
+
);
|
|
2656
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2657
|
+
throw toParseErr(previous, validationErr);
|
|
2658
|
+
}
|
|
2659
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Tz.");
|
|
2660
|
+
}
|
|
2661
|
+
};
|
|
2662
|
+
var create45 = (input) => from42(input);
|
|
2663
|
+
var of43 = (input) => {
|
|
2664
|
+
try {
|
|
2665
|
+
return (0, import_fluture44.resolve)(from42(input));
|
|
2666
|
+
} catch (err) {
|
|
2667
|
+
return (0, import_fluture44.reject)(err);
|
|
2668
|
+
}
|
|
2669
|
+
};
|
|
2670
|
+
var make43 = (input) => of43(input);
|
|
2671
|
+
var schemas43 = {
|
|
2672
|
+
rawSchema: tzSchema,
|
|
2673
|
+
schema: tzSchema.transform((val) => val)
|
|
2674
|
+
};
|
|
2675
|
+
var rawSchema43 = schemas43.rawSchema;
|
|
2676
|
+
var internalSchema42 = tzSchema;
|
|
2677
|
+
|
|
2678
|
+
// Url.ts
|
|
2679
|
+
var Url_exports = {};
|
|
2680
|
+
__export(Url_exports, {
|
|
2681
|
+
create: () => create46,
|
|
2682
|
+
from: () => from43,
|
|
2683
|
+
internalSchema: () => internalSchema43,
|
|
2684
|
+
make: () => make44,
|
|
2685
|
+
of: () => of44,
|
|
2686
|
+
rawSchema: () => rawSchema44,
|
|
2687
|
+
schemas: () => schemas44
|
|
2688
|
+
});
|
|
2689
|
+
|
|
2690
|
+
// out/types/Url.ts
|
|
2691
|
+
var import_fluture45 = require("fluture");
|
|
2692
|
+
var import_zod46 = require("zod");
|
|
2693
|
+
var from43 = (input) => {
|
|
2694
|
+
try {
|
|
2695
|
+
return urlSchema.parse(input);
|
|
2696
|
+
} catch (previous) {
|
|
2697
|
+
if (previous instanceof import_zod46.ZodError) {
|
|
2698
|
+
const msgs = previous.errors.reduce(
|
|
2699
|
+
(retval, issue) => {
|
|
2700
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2701
|
+
const msg = path2 + ": " + issue.message;
|
|
2702
|
+
return [...retval, msg];
|
|
2703
|
+
},
|
|
2704
|
+
["Url is invalid:"]
|
|
2705
|
+
);
|
|
2706
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2707
|
+
throw toParseErr(previous, validationErr);
|
|
2708
|
+
}
|
|
2709
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Url.");
|
|
2710
|
+
}
|
|
2711
|
+
};
|
|
2712
|
+
var create46 = (input) => from43(input);
|
|
2713
|
+
var of44 = (input) => {
|
|
2714
|
+
try {
|
|
2715
|
+
return (0, import_fluture45.resolve)(from43(input));
|
|
2716
|
+
} catch (err) {
|
|
2717
|
+
return (0, import_fluture45.reject)(err);
|
|
2718
|
+
}
|
|
2719
|
+
};
|
|
2720
|
+
var make44 = (input) => of44(input);
|
|
2721
|
+
var schemas44 = {
|
|
2722
|
+
rawSchema: urlSchema,
|
|
2723
|
+
schema: urlSchema.transform((val) => val)
|
|
2724
|
+
};
|
|
2725
|
+
var rawSchema44 = schemas44.rawSchema;
|
|
2726
|
+
var internalSchema43 = urlSchema;
|
|
2727
|
+
|
|
2728
|
+
// Verb.ts
|
|
2729
|
+
var Verb_exports = {};
|
|
2730
|
+
__export(Verb_exports, {
|
|
2731
|
+
create: () => create47,
|
|
2732
|
+
from: () => from44,
|
|
2733
|
+
internalSchema: () => internalSchema44,
|
|
2734
|
+
make: () => make45,
|
|
2735
|
+
of: () => of45,
|
|
2736
|
+
rawSchema: () => rawSchema45,
|
|
2737
|
+
schemas: () => schemas45
|
|
2738
|
+
});
|
|
2739
|
+
|
|
2740
|
+
// out/types/Verb.ts
|
|
2741
|
+
var import_fluture46 = require("fluture");
|
|
2742
|
+
var import_zod47 = require("zod");
|
|
2743
|
+
var from44 = (input) => {
|
|
2744
|
+
try {
|
|
2745
|
+
return verbSchema.parse(input);
|
|
2746
|
+
} catch (previous) {
|
|
2747
|
+
if (previous instanceof import_zod47.ZodError) {
|
|
2748
|
+
const msgs = previous.errors.reduce(
|
|
2749
|
+
(retval, issue) => {
|
|
2750
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2751
|
+
const msg = path2 + ": " + issue.message;
|
|
2752
|
+
return [...retval, msg];
|
|
2753
|
+
},
|
|
2754
|
+
["Verb is invalid:"]
|
|
2755
|
+
);
|
|
2756
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2757
|
+
throw toParseErr(previous, validationErr);
|
|
2758
|
+
}
|
|
2759
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a Verb.");
|
|
2760
|
+
}
|
|
2761
|
+
};
|
|
2762
|
+
var create47 = (input) => from44(input);
|
|
2763
|
+
var of45 = (input) => {
|
|
2764
|
+
try {
|
|
2765
|
+
return (0, import_fluture46.resolve)(from44(input));
|
|
2766
|
+
} catch (err) {
|
|
2767
|
+
return (0, import_fluture46.reject)(err);
|
|
2768
|
+
}
|
|
2769
|
+
};
|
|
2770
|
+
var make45 = (input) => of45(input);
|
|
2771
|
+
var schemas45 = {
|
|
2772
|
+
rawSchema: verbSchema,
|
|
2773
|
+
schema: verbSchema.transform((val) => val)
|
|
2774
|
+
};
|
|
2775
|
+
var rawSchema45 = schemas45.rawSchema;
|
|
2776
|
+
var internalSchema44 = verbSchema;
|
|
2777
|
+
|
|
2778
|
+
// VersionNumber.ts
|
|
2779
|
+
var VersionNumber_exports = {};
|
|
2780
|
+
__export(VersionNumber_exports, {
|
|
2781
|
+
create: () => create48,
|
|
2782
|
+
from: () => from45,
|
|
2783
|
+
internalSchema: () => internalSchema45,
|
|
2784
|
+
make: () => make46,
|
|
2785
|
+
of: () => of46,
|
|
2786
|
+
rawSchema: () => rawSchema46,
|
|
2787
|
+
schemas: () => schemas46
|
|
2788
|
+
});
|
|
2789
|
+
|
|
2790
|
+
// out/types/VersionNumber.ts
|
|
2791
|
+
var import_fluture47 = require("fluture");
|
|
2792
|
+
var import_zod48 = require("zod");
|
|
2793
|
+
var from45 = (input) => {
|
|
2794
|
+
try {
|
|
2795
|
+
return versionNumberSchema.parse(input);
|
|
2796
|
+
} catch (previous) {
|
|
2797
|
+
if (previous instanceof import_zod48.ZodError) {
|
|
2798
|
+
const msgs = previous.errors.reduce(
|
|
2799
|
+
(retval, issue) => {
|
|
2800
|
+
const path2 = issue.path.join(" \u2192 ");
|
|
2801
|
+
const msg = path2 + ": " + issue.message;
|
|
2802
|
+
return [...retval, msg];
|
|
2803
|
+
},
|
|
2804
|
+
["VersionNumber is invalid:"]
|
|
2805
|
+
);
|
|
2806
|
+
const validationErr = msgs.join("\n") + "\n";
|
|
2807
|
+
throw toParseErr(previous, validationErr);
|
|
2808
|
+
}
|
|
2809
|
+
throw toParseUnknownErr(previous, "There was a problem trying to parse a VersionNumber.");
|
|
2810
|
+
}
|
|
2811
|
+
};
|
|
2812
|
+
var create48 = (input) => from45(input);
|
|
2813
|
+
var of46 = (input) => {
|
|
2814
|
+
try {
|
|
2815
|
+
return (0, import_fluture47.resolve)(from45(input));
|
|
2816
|
+
} catch (err) {
|
|
2817
|
+
return (0, import_fluture47.reject)(err);
|
|
2818
|
+
}
|
|
2819
|
+
};
|
|
2820
|
+
var make46 = (input) => of46(input);
|
|
2821
|
+
var schemas46 = {
|
|
2822
|
+
rawSchema: versionNumberSchema,
|
|
2823
|
+
schema: versionNumberSchema.transform((val) => val)
|
|
2824
|
+
};
|
|
2825
|
+
var rawSchema46 = schemas46.rawSchema;
|
|
2826
|
+
var internalSchema45 = versionNumberSchema;
|
|
2827
|
+
|
|
2828
|
+
// PluginInfo.ts
|
|
2829
|
+
var PluginInfo_exports = {};
|
|
2830
|
+
__export(PluginInfo_exports, {
|
|
2831
|
+
create: () => create49,
|
|
2832
|
+
factory: () => factory2,
|
|
2833
|
+
internalSchema: () => internalSchema46,
|
|
2834
|
+
make: () => make47,
|
|
2835
|
+
of: () => of47,
|
|
2836
|
+
rawSchema: () => rawSchema47,
|
|
2837
|
+
schemas: () => schemas47
|
|
2838
|
+
});
|
|
2839
|
+
var import_zod49 = require("zod");
|
|
2840
|
+
var rawSchema47 = import_zod49.z.object({
|
|
2841
|
+
name: import_zod49.z.string({ description: "Plugin Name" }).min(1),
|
|
2842
|
+
version: rawSchema46.describe("Plugin Version #"),
|
|
2843
|
+
schema: rawSchema46.describe("Plugin Schema Version #"),
|
|
2844
|
+
alias: rawSchema.describe("Plugin Alias"),
|
|
2845
|
+
postInstall: import_zod49.z.string().optional(),
|
|
2846
|
+
tasks: import_zod49.z.preprocess(
|
|
2847
|
+
(val) => val != null ? val : [],
|
|
2848
|
+
import_zod49.z.array(
|
|
2849
|
+
schemas40.schema.describe("Plugin Task"),
|
|
2850
|
+
{ description: "Plugin Tasks" }
|
|
2851
|
+
)
|
|
2852
|
+
).optional(),
|
|
2853
|
+
operations: import_zod49.z.preprocess(
|
|
2854
|
+
(val) => val != null ? val : [],
|
|
2855
|
+
import_zod49.z.array(
|
|
2856
|
+
schemas18.schema.describe("Plugin Operation"),
|
|
2857
|
+
{ description: "Plugin Operations" }
|
|
2858
|
+
)
|
|
2859
|
+
).optional(),
|
|
2860
|
+
templates: import_zod49.z.preprocess(
|
|
2861
|
+
(val) => val != null ? val : [],
|
|
2862
|
+
import_zod49.z.array(
|
|
2863
|
+
schemas19.schema.describe("Plugin Template")
|
|
2864
|
+
)
|
|
2865
|
+
).optional()
|
|
2866
|
+
});
|
|
2867
|
+
var internalSchema46 = rawSchema47.extend({
|
|
2868
|
+
version: schemas46.schema.describe("Plugin Version #"),
|
|
2869
|
+
schema: schemas46.schema.describe("Plugin Schema Version #"),
|
|
2870
|
+
alias: schemas.schema.describe("Plugin Alias"),
|
|
2871
|
+
tasks: import_zod49.z.preprocess(
|
|
2872
|
+
(val) => val != null ? val : [],
|
|
2873
|
+
import_zod49.z.array(
|
|
2874
|
+
schemas40.schema.describe("Plugin Task"),
|
|
2875
|
+
{ description: "Plugin Tasks" }
|
|
2876
|
+
)
|
|
2877
|
+
).optional(),
|
|
2878
|
+
operations: import_zod49.z.preprocess(
|
|
2879
|
+
(val) => val != null ? val : [],
|
|
2880
|
+
import_zod49.z.array(
|
|
2881
|
+
schemas18.schema.describe("Plugin Operation"),
|
|
2882
|
+
{ description: "Plugin Operations" }
|
|
2883
|
+
)
|
|
2884
|
+
).optional(),
|
|
2885
|
+
templates: import_zod49.z.preprocess(
|
|
2886
|
+
(val) => val != null ? val : [],
|
|
2887
|
+
import_zod49.z.array(
|
|
2888
|
+
schemas19.schema.describe("Plugin Template")
|
|
2889
|
+
)
|
|
2890
|
+
).optional()
|
|
2891
|
+
}).describe("Plugin Schema");
|
|
2892
|
+
var { schemas: schemas47, factory: factory2 } = Base_default({
|
|
2893
|
+
rawSchema: rawSchema47,
|
|
2894
|
+
internalSchema: internalSchema46,
|
|
2895
|
+
parseErrMsg: "The schema returned from the plugin is invalid",
|
|
2896
|
+
unknownErrMsg: "Something went wrong parsing the schema from a plugin"
|
|
2897
|
+
});
|
|
2898
|
+
var { create: create49, of: of47, make: make47 } = factory2;
|
|
2899
|
+
|
|
2900
|
+
// i18n.ts
|
|
2901
|
+
var i18n_exports = {};
|
|
2902
|
+
__export(i18n_exports, {
|
|
2903
|
+
default: () => i18n_default
|
|
2904
|
+
});
|
|
2905
|
+
var import_i18next = __toESM(require("i18next"));
|
|
2906
|
+
var i18n_default = async () => {
|
|
2907
|
+
const i18n = {
|
|
2908
|
+
...await import_i18next.default.init({
|
|
2909
|
+
lng: "en",
|
|
2910
|
+
debug: false,
|
|
2911
|
+
resources: {
|
|
2912
|
+
// TODO: Move to separate language files
|
|
2913
|
+
en: {
|
|
2914
|
+
translation: {
|
|
2915
|
+
"appName": "Taqueria",
|
|
2916
|
+
"appDesc": "Taqueria is an integrated environment for compiling, testing, and deploying Tezos software.",
|
|
2917
|
+
"versionDesc": "Display the version number of the Taqueria program",
|
|
2918
|
+
"betaWarning": "Please be advised that Taqueria is currently in BETA.",
|
|
2919
|
+
"configDirDesc": "Config directory (default ./.taq)",
|
|
2920
|
+
"initDesc": "Initialize a new project",
|
|
2921
|
+
"optInDesc": "Opt-in to sharing anonymous usage analytics",
|
|
2922
|
+
"optOutDesc": "Opt-out of sharing anonymous usage analytics",
|
|
2923
|
+
"initPathDesc": "Path to your project directory",
|
|
2924
|
+
"workflowDesc": "Select a workflow to initialize your Taqueria project. Choices are (ligo|smartpy|archetype|michelson)",
|
|
2925
|
+
"scaffoldDesc": `Generate a new project using pre-made scaffold. Recommended for creating a new project.`,
|
|
2926
|
+
"scaffoldUrlDesc": "Alias or Url for the scaffold project",
|
|
2927
|
+
"scaffoldProjectDirDesc": "Path where to create the new project. This must be a new directory.",
|
|
2928
|
+
"scaffoldDoneMsg": "The project was created using the scaffold.",
|
|
2929
|
+
"installDesc": "Install a plugin",
|
|
2930
|
+
"pluginInstalled": "Plugin installed successfully",
|
|
2931
|
+
"pluginUninstalled": "Plugin uninstalled successfully",
|
|
2932
|
+
"uninstallDesc": "Uninstall a plugin",
|
|
2933
|
+
"pluginNameDesc": "The name of the plugin",
|
|
2934
|
+
"promptForTask": "Please specify which task you would like to execute. If you're starting a new project, please run 'init'.\n",
|
|
2935
|
+
"pluginKindDesc": "Kind of plugin (NPM, Binary)",
|
|
2936
|
+
"pluginAlreadyInstalled": "That plugin is already installed.",
|
|
2937
|
+
"pluginOptionDesc": "Use the task from this plugin",
|
|
2938
|
+
"bootstrapMsg": "Project taq'ified!",
|
|
2939
|
+
"maxConcurrencyDesc": "Set the maximum concurrency limit used internally",
|
|
2940
|
+
"providedByMany": "Provided by more than one plugin. The option --plugin is required.",
|
|
2941
|
+
"pluginDesc": "Specify what plugin should execute this command. Use this when more than one plugin provide a task of the same name.",
|
|
2942
|
+
"listNetworks": "List known networks",
|
|
2943
|
+
"envDesc": "Specify an environment configuration",
|
|
2944
|
+
"disableStateDesc": "Does not use the saved state.json file. State is computed for each execution.",
|
|
2945
|
+
"logPluginCallsDesc": "Logs any execution calls to a plugin to the console",
|
|
2946
|
+
"npmInitRequired": "This project isn't a valid NPM project. Please run: npm init",
|
|
2947
|
+
"testFromVsCode": "An internal command used by VS Code to test for the taq binary",
|
|
2948
|
+
"fromVsCode": "An internal flag used to indicate that taq is executed via vscode",
|
|
2949
|
+
"buildDesc": "Display build information about the current version",
|
|
2950
|
+
"pluginOption": "Use to specify what plugin you'd like when running this task.",
|
|
2951
|
+
"yesOptionDesc": 'Select "yes" to any prompt',
|
|
2952
|
+
"templateNotFound": "Template not found. Perhaps you need to install a plugin?",
|
|
2953
|
+
"createDesc": "Create files from pre-existing templates",
|
|
2954
|
+
"templateDesc": "Name of the template to use"
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
}),
|
|
2959
|
+
__: import_i18next.default.t
|
|
2960
|
+
};
|
|
2961
|
+
return i18n;
|
|
2962
|
+
};
|
|
2963
|
+
|
|
2964
|
+
// PersistentState.ts
|
|
2965
|
+
var PersistentState_exports = {};
|
|
2966
|
+
__export(PersistentState_exports, {
|
|
2967
|
+
create: () => create51,
|
|
2968
|
+
factory: () => factory4,
|
|
2969
|
+
generatedSchemas: () => generatedSchemas3,
|
|
2970
|
+
internalSchema: () => internalSchema48,
|
|
2971
|
+
make: () => make49,
|
|
2972
|
+
of: () => of49,
|
|
2973
|
+
rawSchema: () => rawSchema49,
|
|
2974
|
+
schemas: () => schemas49
|
|
2975
|
+
});
|
|
2976
|
+
|
|
2977
|
+
// SHA256.ts
|
|
2978
|
+
var SHA256_exports = {};
|
|
2979
|
+
__export(SHA256_exports, {
|
|
2980
|
+
Crypto: () => Crypto,
|
|
2981
|
+
create: () => create50,
|
|
2982
|
+
internalSchema: () => internalSchema47,
|
|
2983
|
+
make: () => make48,
|
|
2984
|
+
of: () => of48,
|
|
2985
|
+
rawSchema: () => rawSchema48,
|
|
2986
|
+
schemas: () => schemas48,
|
|
2987
|
+
toSHA256: () => toSHA256
|
|
2988
|
+
});
|
|
2989
|
+
var import_fluture48 = require("fluture");
|
|
2990
|
+
var import_rambda = require("rambda");
|
|
2991
|
+
var import_zod50 = require("zod");
|
|
2992
|
+
var eager = (f) => (0, import_fluture48.promise)(
|
|
2993
|
+
(0, import_fluture48.mapRej)((err) => new E_TaqError(err))(f)
|
|
2994
|
+
);
|
|
2995
|
+
var Crypto = class {
|
|
2996
|
+
constructor() {
|
|
2997
|
+
this.subtle = {
|
|
2998
|
+
digest(_method, _data) {
|
|
2999
|
+
return new ArrayBuffer(50);
|
|
3000
|
+
}
|
|
3001
|
+
};
|
|
3002
|
+
}
|
|
3003
|
+
};
|
|
3004
|
+
var getSubtleCrypto = async () => {
|
|
3005
|
+
if ((0, import_rambda.has)("SubtleCrypto", globalThis)) {
|
|
3006
|
+
return Promise.resolve(crypto.subtle);
|
|
3007
|
+
}
|
|
3008
|
+
const { Crypto: Crypto2 } = await import("@peculiar/webcrypto");
|
|
3009
|
+
const webcrypto = new Crypto2();
|
|
3010
|
+
return Promise.resolve(webcrypto.subtle);
|
|
3011
|
+
};
|
|
3012
|
+
var rawSchema48 = import_zod50.z.string({ description: "SHA256" }).length(64);
|
|
3013
|
+
var { schemas: generatedSchemas2, factory: factory3 } = Base_default({
|
|
3014
|
+
isStringLike: true,
|
|
3015
|
+
rawSchema: rawSchema48,
|
|
3016
|
+
parseErrMsg: (value) => `${value} is an invalid SHA256 hash`,
|
|
3017
|
+
unknownErrMsg: (value) => `Something went wrong trying to parse the following as a SHA256 value, ${value}`
|
|
3018
|
+
});
|
|
3019
|
+
var toSHA256 = async (value) => {
|
|
3020
|
+
const encoder = new TextEncoder();
|
|
3021
|
+
const data = encoder.encode(value);
|
|
3022
|
+
const hash = await (await getSubtleCrypto()).digest("SHA-256", data);
|
|
3023
|
+
const hashArray = Array.from(new Uint8Array(hash));
|
|
3024
|
+
const hashHex = hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
3025
|
+
return eager(factory3.make(hashHex));
|
|
3026
|
+
};
|
|
3027
|
+
var internalSchema47 = generatedSchemas2.schema;
|
|
3028
|
+
var { create: create50, of: of48, make: make48 } = factory3;
|
|
3029
|
+
var schemas48 = {
|
|
3030
|
+
...generatedSchemas2,
|
|
3031
|
+
schema: generatedSchemas2.schema.transform((val) => val)
|
|
3032
|
+
};
|
|
3033
|
+
|
|
3034
|
+
// PersistentState.ts
|
|
3035
|
+
var import_zod51 = require("zod");
|
|
3036
|
+
var rawOpSchema = import_zod51.z.object({
|
|
3037
|
+
hash: rawSchema48.describe("state.op.hash"),
|
|
3038
|
+
time: rawSchema42.describe("state.op.time"),
|
|
3039
|
+
output: import_zod51.z.unknown().describe("state.op.output")
|
|
3040
|
+
}).describe("Persistent State Operation");
|
|
3041
|
+
var rawTaskSchema = import_zod51.z.object({
|
|
3042
|
+
task: schemas45.rawSchema,
|
|
3043
|
+
plugin: import_zod51.z.string().min(1),
|
|
3044
|
+
time: rawSchema42.describe("state.task.time"),
|
|
3045
|
+
output: import_zod51.z.unknown().describe("state.task.output")
|
|
3046
|
+
});
|
|
3047
|
+
var internalOpSchema = import_zod51.z.object({
|
|
3048
|
+
hash: schemas48.schema.describe("state.op.hash"),
|
|
3049
|
+
time: schemas42.schema.describe("state.op.time"),
|
|
3050
|
+
output: import_zod51.z.unknown().describe("state.op.output")
|
|
3051
|
+
});
|
|
3052
|
+
var internalTaskSchema = import_zod51.z.object({
|
|
3053
|
+
task: schemas45.schema,
|
|
3054
|
+
plugin: import_zod51.z.string().min(1),
|
|
3055
|
+
time: schemas42.schema.describe("state.task.time"),
|
|
3056
|
+
output: import_zod51.z.unknown().describe("state.op.output")
|
|
3057
|
+
});
|
|
3058
|
+
var rawSchema49 = import_zod51.z.object({
|
|
3059
|
+
operations: import_zod51.z.record(rawOpSchema),
|
|
3060
|
+
tasks: import_zod51.z.record(rawTaskSchema)
|
|
3061
|
+
});
|
|
3062
|
+
var internalSchema48 = import_zod51.z.object({
|
|
3063
|
+
operations: import_zod51.z.record(internalOpSchema),
|
|
3064
|
+
tasks: import_zod51.z.record(internalTaskSchema)
|
|
3065
|
+
}).transform((val) => ({
|
|
3066
|
+
operations: val.operations,
|
|
3067
|
+
tasks: val.tasks
|
|
3068
|
+
}));
|
|
3069
|
+
var { schemas: generatedSchemas3, factory: factory4 } = Base_default({
|
|
3070
|
+
rawSchema: rawSchema49,
|
|
3071
|
+
parseErrMsg: `The persistent state is invalid`,
|
|
3072
|
+
unknownErrMsg: `Something went wrong trying to parse the persistent state`
|
|
3073
|
+
});
|
|
3074
|
+
var { create: create51, of: of49, make: make49 } = factory4;
|
|
3075
|
+
var schemas49 = {
|
|
3076
|
+
...generatedSchemas3,
|
|
3077
|
+
schema: generatedSchemas3.schema.transform((val) => val)
|
|
3078
|
+
};
|
|
3079
|
+
|
|
3080
|
+
// PluginSchema.ts
|
|
3081
|
+
var PluginSchema_exports = {};
|
|
3082
|
+
__export(PluginSchema_exports, {
|
|
3083
|
+
create: () => create52,
|
|
3084
|
+
factory: () => factory5,
|
|
3085
|
+
generatedSchemas: () => generatedSchemas4,
|
|
3086
|
+
make: () => make50,
|
|
3087
|
+
of: () => of50,
|
|
3088
|
+
rawSchema: () => rawSchema50,
|
|
3089
|
+
schemas: () => schemas50
|
|
3090
|
+
});
|
|
3091
|
+
var import_zod52 = require("zod");
|
|
3092
|
+
var internalSchema49 = internalSchema46.extend({
|
|
3093
|
+
operations: import_zod52.z.preprocess(
|
|
3094
|
+
(val) => val != null ? val : [],
|
|
3095
|
+
import_zod52.z.array(
|
|
3096
|
+
schemas16.schema,
|
|
3097
|
+
{ description: "ParsedOperations" }
|
|
3098
|
+
).optional()
|
|
3099
|
+
),
|
|
3100
|
+
templates: import_zod52.z.preprocess(
|
|
3101
|
+
(val) => val != null ? val : [],
|
|
3102
|
+
import_zod52.z.array(
|
|
3103
|
+
schemas41.schema
|
|
3104
|
+
).optional()
|
|
3105
|
+
)
|
|
3106
|
+
}).passthrough().describe("ParsedPluginInfo");
|
|
3107
|
+
var rawSchema50 = rawSchema47.extend({
|
|
3108
|
+
name: rawSchema.optional(),
|
|
3109
|
+
operations: import_zod52.z.preprocess(
|
|
3110
|
+
(val) => val != null ? val : [],
|
|
3111
|
+
import_zod52.z.array(
|
|
3112
|
+
rawSchema16,
|
|
3113
|
+
{ description: "ParsedOperation" }
|
|
3114
|
+
)
|
|
3115
|
+
).optional(),
|
|
3116
|
+
templates: import_zod52.z.preprocess(
|
|
3117
|
+
(val) => val != null ? val : [],
|
|
3118
|
+
import_zod52.z.array(
|
|
3119
|
+
schemas41.schema
|
|
3120
|
+
).optional()
|
|
3121
|
+
)
|
|
3122
|
+
}).passthrough().describe("ParsedPluginInfo");
|
|
3123
|
+
var { schemas: generatedSchemas4, factory: factory5 } = Base_default({
|
|
3124
|
+
rawSchema: rawSchema50,
|
|
3125
|
+
internalSchema: internalSchema49,
|
|
3126
|
+
parseErrMsg: (value) => `The following plugin info gave us trouble when parsing the following plugin information: ${value}`,
|
|
3127
|
+
unknownErrMsg: "Something went wrong trying to parse the plugin information"
|
|
3128
|
+
});
|
|
3129
|
+
var { create: create52, of: of50, make: make50 } = factory5;
|
|
3130
|
+
var schemas50 = {
|
|
3131
|
+
...generatedSchemas4,
|
|
3132
|
+
schema: generatedSchemas4.schema.transform((val) => val)
|
|
3133
|
+
};
|
|
3134
|
+
|
|
3135
|
+
// SanitizedArgs.ts
|
|
3136
|
+
var SanitizedArgs_exports = {};
|
|
3137
|
+
__export(SanitizedArgs_exports, {
|
|
3138
|
+
create: () => create53,
|
|
3139
|
+
createCreateTaskArgs: () => createCreateTaskArgs,
|
|
3140
|
+
createInstallTaskArgs: () => createInstallTaskArgs,
|
|
3141
|
+
createProvisionTaskArgs: () => createProvisionTaskArgs,
|
|
3142
|
+
createScaffoldTaskArgs: () => createScaffoldTaskArgs,
|
|
3143
|
+
createSetEnvTaskArgs: () => createSetEnvTaskArgs,
|
|
3144
|
+
createTaskArgs: () => createTaskArgs,
|
|
3145
|
+
createUninstallTaskArgs: () => createUninstallTaskArgs,
|
|
3146
|
+
factory: () => factory6,
|
|
3147
|
+
generatedSchemas: () => generatedSchemas5,
|
|
3148
|
+
initRawSchema: () => initRawSchema,
|
|
3149
|
+
installTaskArgs: () => installTaskArgs,
|
|
3150
|
+
make: () => make51,
|
|
3151
|
+
makeCreateTaskArgs: () => makeCreateTaskArgs,
|
|
3152
|
+
makeInstallTaskArgs: () => makeInstallTaskArgs,
|
|
3153
|
+
makeProvisionTaskArgs: () => makeProvisionTaskArgs,
|
|
3154
|
+
makeScaffoldTaskArgs: () => makeScaffoldTaskArgs,
|
|
3155
|
+
makeSetEnvTaskArgs: () => makeSetEnvTaskArgs,
|
|
3156
|
+
makeUninstallTaskArgs: () => makeUninstallTaskArgs,
|
|
3157
|
+
managePluginRawSchema: () => managePluginRawSchema,
|
|
3158
|
+
of: () => of51,
|
|
3159
|
+
ofCreateTaskArgs: () => ofCreateTaskArgs,
|
|
3160
|
+
ofInstallTaskArgs: () => ofInstallTaskArgs,
|
|
3161
|
+
ofProvisionTaskArgs: () => ofProvisionTaskArgs,
|
|
3162
|
+
ofScaffoldTaskArgs: () => ofScaffoldTaskArgs,
|
|
3163
|
+
ofSetEnvTaskArgs: () => ofSetEnvTaskArgs,
|
|
3164
|
+
ofUninstallTaskArgs: () => ofUninstallTaskArgs,
|
|
3165
|
+
provisionRawSchema: () => provisionRawSchema,
|
|
3166
|
+
provisionTaskArgs: () => provisionTaskArgs,
|
|
3167
|
+
rawSchema: () => rawSchema51,
|
|
3168
|
+
scaffoldRawSchema: () => scaffoldRawSchema,
|
|
3169
|
+
scaffoldTaskArgs: () => scaffoldTaskArgs,
|
|
3170
|
+
schemas: () => schemas51,
|
|
3171
|
+
setEnvRawSchema: () => setEnvRawSchema,
|
|
3172
|
+
setEnvTaskArgs: () => setEnvTaskArgs,
|
|
3173
|
+
templateRawSchema: () => templateRawSchema,
|
|
3174
|
+
uninstallTaskArgs: () => uninstallTaskArgs
|
|
3175
|
+
});
|
|
3176
|
+
var import_zod53 = require("zod");
|
|
3177
|
+
var rawSchema51 = import_zod53.z.object({
|
|
3178
|
+
_: import_zod53.z.array(import_zod53.z.union([import_zod53.z.string().min(1), import_zod53.z.number()])),
|
|
3179
|
+
projectDir: schemas35.schema,
|
|
3180
|
+
maxConcurrency: import_zod53.z.preprocess(
|
|
3181
|
+
(val) => typeof val === "string" ? parseInt(val) : Number(val),
|
|
3182
|
+
import_zod53.z.number().int().min(1).default(10)
|
|
3183
|
+
),
|
|
3184
|
+
debug: import_zod53.z.preprocess(
|
|
3185
|
+
(val) => Boolean(val),
|
|
3186
|
+
import_zod53.z.boolean().default(false)
|
|
3187
|
+
),
|
|
3188
|
+
disableState: import_zod53.z.preprocess(
|
|
3189
|
+
(val) => Boolean(val),
|
|
3190
|
+
import_zod53.z.boolean().default(false)
|
|
3191
|
+
),
|
|
3192
|
+
logPluginRequests: import_zod53.z.preprocess(
|
|
3193
|
+
(val) => Boolean(val),
|
|
3194
|
+
import_zod53.z.boolean().default(false)
|
|
3195
|
+
),
|
|
3196
|
+
fromVsCode: import_zod53.z.preprocess(
|
|
3197
|
+
(val) => Boolean(val),
|
|
3198
|
+
import_zod53.z.boolean().default(false)
|
|
3199
|
+
),
|
|
3200
|
+
version: import_zod53.z.preprocess(
|
|
3201
|
+
(val) => Boolean(val),
|
|
3202
|
+
import_zod53.z.boolean().optional()
|
|
3203
|
+
),
|
|
3204
|
+
build: import_zod53.z.preprocess(
|
|
3205
|
+
(val) => Boolean(val),
|
|
3206
|
+
import_zod53.z.boolean().optional()
|
|
3207
|
+
),
|
|
3208
|
+
help: import_zod53.z.preprocess(
|
|
3209
|
+
(val) => Boolean(val),
|
|
3210
|
+
import_zod53.z.boolean().optional()
|
|
3211
|
+
),
|
|
3212
|
+
yes: import_zod53.z.preprocess(
|
|
3213
|
+
(val) => Boolean(val),
|
|
3214
|
+
import_zod53.z.boolean().optional()
|
|
3215
|
+
),
|
|
3216
|
+
plugin: schemas15.schema.optional(),
|
|
3217
|
+
env: import_zod53.z.string().optional(),
|
|
3218
|
+
quickstart: import_zod53.z.string().min(1).optional(),
|
|
3219
|
+
setBuild: import_zod53.z.preprocess(
|
|
3220
|
+
(val) => String(val),
|
|
3221
|
+
import_zod53.z.string().min(3)
|
|
3222
|
+
),
|
|
3223
|
+
setVersion: import_zod53.z.string().min(3),
|
|
3224
|
+
pluginName: import_zod53.z.string().min(1).optional()
|
|
3225
|
+
}, { description: "Sanitizied Args" }).passthrough();
|
|
3226
|
+
var scaffoldRawSchema = rawSchema51.extend({
|
|
3227
|
+
scaffoldProjectDir: import_zod53.z.string().min(1).transform((val) => val),
|
|
3228
|
+
scaffoldUrl: import_zod53.z.string().min(1).url().transform((val) => val),
|
|
3229
|
+
branch: import_zod53.z.string().min(1).optional()
|
|
3230
|
+
});
|
|
3231
|
+
var initRawSchema = rawSchema51.extend({
|
|
3232
|
+
workflow: import_zod53.z.string().refine((val) => val === "ligo" || val === "smartpy" || val === "archetype" || val === "michelson").optional()
|
|
3233
|
+
});
|
|
3234
|
+
var provisionRawSchema = rawSchema51.extend({
|
|
3235
|
+
operation: import_zod53.z.string().min(1).describe("Operation name"),
|
|
3236
|
+
name: import_zod53.z.string().min(1).regex(
|
|
3237
|
+
/^[a-z0-9]+[a-z0-9-_]$/,
|
|
3238
|
+
"Provisioner name must consist of one or more letters/numbers and may not start with an underscore or dash."
|
|
3239
|
+
).describe("Provisioner name").optional()
|
|
3240
|
+
}).passthrough();
|
|
3241
|
+
var templateRawSchema = rawSchema51.extend({
|
|
3242
|
+
template: import_zod53.z.string().min(1)
|
|
3243
|
+
}).passthrough();
|
|
3244
|
+
var managePluginRawSchema = rawSchema51.omit({ pluginName: true }).extend({
|
|
3245
|
+
pluginName: import_zod53.z.string().min(1)
|
|
3246
|
+
});
|
|
3247
|
+
var setEnvRawSchema = rawSchema51.extend({
|
|
3248
|
+
defaultEnvironment: import_zod53.z.string().min(1)
|
|
3249
|
+
});
|
|
3250
|
+
var { schemas: generatedSchemas5, factory: factory6 } = Base_default({
|
|
3251
|
+
rawSchema: rawSchema51,
|
|
3252
|
+
parseErrMsg: "The arguments provided are invalid",
|
|
3253
|
+
unknownErrMsg: "Something went wrong parsing the command-line arguments"
|
|
3254
|
+
});
|
|
3255
|
+
var { create: create53, of: of51, make: make51 } = factory6;
|
|
3256
|
+
var schemas51 = {
|
|
3257
|
+
...generatedSchemas5,
|
|
3258
|
+
schema: generatedSchemas5.schema.transform((val) => val)
|
|
3259
|
+
};
|
|
3260
|
+
var scaffoldTaskArgs = Base_default({
|
|
3261
|
+
rawSchema: scaffoldRawSchema,
|
|
3262
|
+
parseErrMsg: "The arguments provided are invalid for the scaffold task",
|
|
3263
|
+
unknownErrMsg: "Something went wrong parsing the arguments for the scaffold task"
|
|
3264
|
+
});
|
|
3265
|
+
var provisionTaskArgs = Base_default({
|
|
3266
|
+
rawSchema: provisionRawSchema,
|
|
3267
|
+
parseErrMsg: "The arguments provided are invalid for the provision task",
|
|
3268
|
+
unknownErrMsg: "Something went wrong parsing the arguments for the provision task"
|
|
3269
|
+
});
|
|
3270
|
+
var installTaskArgs = Base_default({
|
|
3271
|
+
rawSchema: managePluginRawSchema,
|
|
3272
|
+
parseErrMsg: "The arguments provided are invalid for the install task",
|
|
3273
|
+
unknownErrMsg: "Something went wrong parsing the arguments for the install task"
|
|
3274
|
+
});
|
|
3275
|
+
var uninstallTaskArgs = Base_default({
|
|
3276
|
+
rawSchema: managePluginRawSchema,
|
|
3277
|
+
parseErrMsg: "The arguments provided are invalid for the uninstall task",
|
|
3278
|
+
unknownErrMsg: "Something went wrong parsing the arguments for the uninstall task"
|
|
3279
|
+
});
|
|
3280
|
+
var setEnvTaskArgs = Base_default({
|
|
3281
|
+
rawSchema: setEnvRawSchema,
|
|
3282
|
+
parseErrMsg: "The arguments provided are invalid for the set-environment task",
|
|
3283
|
+
unknownErrMsg: "Something went wrong parsing the arguments for the set-environment task"
|
|
3284
|
+
});
|
|
3285
|
+
var createTaskArgs = Base_default({
|
|
3286
|
+
rawSchema: templateRawSchema,
|
|
3287
|
+
parseErrMsg: "The arguments provided are invalid for the create task",
|
|
3288
|
+
unknownErrMsg: "Something went wrong parsing the arguments for the create task"
|
|
3289
|
+
});
|
|
3290
|
+
var createScaffoldTaskArgs = scaffoldTaskArgs.factory.from;
|
|
3291
|
+
var makeScaffoldTaskArgs = scaffoldTaskArgs.factory.make;
|
|
3292
|
+
var ofScaffoldTaskArgs = scaffoldTaskArgs.factory.of;
|
|
3293
|
+
var createProvisionTaskArgs = provisionTaskArgs.factory.create;
|
|
3294
|
+
var makeProvisionTaskArgs = provisionTaskArgs.factory.make;
|
|
3295
|
+
var ofProvisionTaskArgs = provisionTaskArgs.factory.of;
|
|
3296
|
+
var createInstallTaskArgs = installTaskArgs.factory.create;
|
|
3297
|
+
var makeInstallTaskArgs = installTaskArgs.factory.make;
|
|
3298
|
+
var ofInstallTaskArgs = installTaskArgs.factory.of;
|
|
3299
|
+
var createUninstallTaskArgs = uninstallTaskArgs.factory.create;
|
|
3300
|
+
var makeUninstallTaskArgs = uninstallTaskArgs.factory.make;
|
|
3301
|
+
var ofUninstallTaskArgs = uninstallTaskArgs.factory.of;
|
|
3302
|
+
var createSetEnvTaskArgs = setEnvTaskArgs.factory.create;
|
|
3303
|
+
var makeSetEnvTaskArgs = setEnvTaskArgs.factory.make;
|
|
3304
|
+
var ofSetEnvTaskArgs = setEnvTaskArgs.factory.of;
|
|
3305
|
+
var createCreateTaskArgs = createTaskArgs.factory.create;
|
|
3306
|
+
var makeCreateTaskArgs = createTaskArgs.factory.make;
|
|
3307
|
+
var ofCreateTaskArgs = createTaskArgs.factory.of;
|
|
3308
|
+
|
|
3309
|
+
// EphemeralState.ts
|
|
3310
|
+
var import_fluture49 = require("fluture");
|
|
3311
|
+
var import_zod54 = require("zod");
|
|
3312
|
+
var eager2 = (f) => (0, import_fluture49.promise)(
|
|
3313
|
+
(0, import_fluture49.mapRej)((err) => new E_TaqError(err))(f)
|
|
3314
|
+
);
|
|
3315
|
+
var taskToPluginMap = import_zod54.z.record(
|
|
3316
|
+
import_zod54.z.union([
|
|
3317
|
+
InstalledPlugin_exports.schemas.schema,
|
|
3318
|
+
Task_exports.schemas.schema
|
|
3319
|
+
], { description: "Task/Plugin Mapping" })
|
|
3320
|
+
);
|
|
3321
|
+
var operationToPluginMap = import_zod54.z.record(
|
|
3322
|
+
import_zod54.z.union([
|
|
3323
|
+
InstalledPlugin_exports.schemas.schema,
|
|
3324
|
+
ParsedOperation_exports.schemas.schema
|
|
3325
|
+
], { description: "Operation/Plugin Mapping" })
|
|
3326
|
+
);
|
|
3327
|
+
var templateToPluginMap = import_zod54.z.record(
|
|
3328
|
+
import_zod54.z.union([
|
|
3329
|
+
InstalledPlugin_exports.schemas.schema,
|
|
3330
|
+
ParsedTemplate_exports.schemas.schema
|
|
3331
|
+
])
|
|
3332
|
+
);
|
|
3333
|
+
var rawSchema52 = import_zod54.z.object({
|
|
3334
|
+
build: import_zod54.z.string({ description: "cache.build" }),
|
|
3335
|
+
configHash: import_zod54.z.string({ description: "cache.configHash" }),
|
|
3336
|
+
tasks: taskToPluginMap,
|
|
3337
|
+
operations: operationToPluginMap,
|
|
3338
|
+
templates: templateToPluginMap,
|
|
3339
|
+
plugins: import_zod54.z.array(PluginInfo_exports.schemas.schema, { description: "cache.plugins" })
|
|
3340
|
+
}).describe("Ephemeral State");
|
|
3341
|
+
var { schemas: generatedSchemas6, factory: factory7 } = Base_default({
|
|
3342
|
+
rawSchema: rawSchema52,
|
|
3343
|
+
parseErrMsg: (value) => `${value} is not a valid representation of ephemeral state`,
|
|
3344
|
+
unknownErrMsg: "Something went wrong when parsing the ephemeral state"
|
|
3345
|
+
});
|
|
3346
|
+
var { create: create54, of: of52, make: make52 } = factory7;
|
|
3347
|
+
var schemas52 = {
|
|
3348
|
+
...generatedSchemas6,
|
|
3349
|
+
schema: generatedSchemas6.schema.transform((val) => val)
|
|
3350
|
+
};
|
|
3351
|
+
var getTaskCounts = (pluginInfo) => {
|
|
3352
|
+
return pluginInfo.reduce(
|
|
3353
|
+
(retval, pluginInfo2) => pluginInfo2.tasks === void 0 ? {} : pluginInfo2.tasks.reduce(
|
|
3354
|
+
(retval2, task) => {
|
|
3355
|
+
const taskName = task.task;
|
|
3356
|
+
const providers = retval2[taskName] ? [...retval2[taskName], pluginInfo2] : [pluginInfo2];
|
|
3357
|
+
const mapping = {};
|
|
3358
|
+
mapping[taskName] = providers.filter((provider) => provider !== void 0);
|
|
3359
|
+
return { ...retval2, ...mapping };
|
|
3360
|
+
},
|
|
3361
|
+
retval
|
|
3362
|
+
),
|
|
3363
|
+
{}
|
|
3364
|
+
);
|
|
3365
|
+
};
|
|
3366
|
+
var getTemplateCounts = (pluginInfo) => {
|
|
3367
|
+
return pluginInfo.reduce(
|
|
3368
|
+
(retval, pluginInfo2) => !pluginInfo2.templates ? retval : pluginInfo2.templates.reduce(
|
|
3369
|
+
(retval2, template) => {
|
|
3370
|
+
const templateName = template.template;
|
|
3371
|
+
const providers = retval2[templateName] ? [...retval2[templateName], pluginInfo2] : [pluginInfo2];
|
|
3372
|
+
const mapping = {};
|
|
3373
|
+
mapping[templateName] = providers.filter((provider) => provider !== void 0);
|
|
3374
|
+
return { ...retval2, ...mapping };
|
|
3375
|
+
},
|
|
3376
|
+
retval
|
|
3377
|
+
),
|
|
3378
|
+
{}
|
|
3379
|
+
);
|
|
3380
|
+
};
|
|
3381
|
+
var getOperationCounts = (pluginInfo) => {
|
|
3382
|
+
return pluginInfo.reduce(
|
|
3383
|
+
(retval, pluginInfo2) => pluginInfo2.operations === void 0 ? retval : pluginInfo2.operations.reduce(
|
|
3384
|
+
(retval2, operation) => {
|
|
3385
|
+
const operationName = operation.operation;
|
|
3386
|
+
const providers = retval2[operationName] ? [...retval2[operationName], pluginInfo2] : [pluginInfo2];
|
|
3387
|
+
const mapping = {};
|
|
3388
|
+
mapping[operationName] = providers.filter((provider) => provider !== void 0);
|
|
3389
|
+
return { ...retval2, ...mapping };
|
|
3390
|
+
},
|
|
3391
|
+
retval
|
|
3392
|
+
),
|
|
3393
|
+
{}
|
|
3394
|
+
);
|
|
3395
|
+
};
|
|
3396
|
+
var toChoices = (plugins) => plugins.reduce(
|
|
3397
|
+
(retval, pluginInfo) => {
|
|
3398
|
+
return [...retval, pluginInfo.name, pluginInfo.alias];
|
|
3399
|
+
},
|
|
3400
|
+
[]
|
|
3401
|
+
);
|
|
3402
|
+
var isComposite = (name, counts) => counts[name] && counts[name].length > 1;
|
|
3403
|
+
var getInstalledPlugin = (config, name) => {
|
|
3404
|
+
var _a;
|
|
3405
|
+
return (_a = config.plugins) == null ? void 0 : _a.find(
|
|
3406
|
+
(plugin) => [`taqueria-plugin-${name}`, name].includes(plugin.name)
|
|
3407
|
+
);
|
|
3408
|
+
};
|
|
3409
|
+
var mapTasksToPlugins = (config, pluginInfo, i18n) => {
|
|
3410
|
+
const taskCounts = getTaskCounts(pluginInfo);
|
|
3411
|
+
return (0, import_fluture49.attemptP)(
|
|
3412
|
+
async () => await pluginInfo.reduce(
|
|
3413
|
+
async (retval, pluginInfo2) => !pluginInfo2.tasks ? Promise.resolve({}) : await pluginInfo2.tasks.reduce(
|
|
3414
|
+
async (retval2, { task, hidden }) => {
|
|
3415
|
+
if (isComposite(task, taskCounts)) {
|
|
3416
|
+
const command = await eager2(Command_exports.make(task));
|
|
3417
|
+
const compositeTask = await eager2(Task_exports.make({
|
|
3418
|
+
task,
|
|
3419
|
+
command,
|
|
3420
|
+
description: await eager2(NonEmptyString_exports.make(i18n.__("providedByMany"))),
|
|
3421
|
+
hidden,
|
|
3422
|
+
options: [
|
|
3423
|
+
await eager2(Option_exports.make({
|
|
3424
|
+
flag: await eager2(Verb_exports.make("plugin")),
|
|
3425
|
+
description: await eager2(
|
|
3426
|
+
NonEmptyString_exports.make("Specify which plugin should be used to execute this task")
|
|
3427
|
+
),
|
|
3428
|
+
choices: toChoices(taskCounts[task]),
|
|
3429
|
+
required: true
|
|
3430
|
+
}))
|
|
3431
|
+
],
|
|
3432
|
+
handler: "proxy"
|
|
3433
|
+
}));
|
|
3434
|
+
return { ...await retval2, [task]: compositeTask };
|
|
3435
|
+
}
|
|
3436
|
+
const installedPlugin = getInstalledPlugin(config, pluginInfo2.name);
|
|
3437
|
+
return installedPlugin ? { ...await retval2, [task]: installedPlugin } : retval2;
|
|
3438
|
+
},
|
|
3439
|
+
retval
|
|
3440
|
+
),
|
|
3441
|
+
Promise.resolve({})
|
|
3442
|
+
)
|
|
3443
|
+
).pipe((0, import_fluture49.mapRej)((rej) => rej));
|
|
3444
|
+
};
|
|
3445
|
+
var mapOperationsToPlugins = (config, pluginInfo, i18n) => {
|
|
3446
|
+
const opCounts = getOperationCounts(pluginInfo);
|
|
3447
|
+
return (0, import_fluture49.attemptP)(
|
|
3448
|
+
async () => await pluginInfo.reduce(
|
|
3449
|
+
async (retval, pluginInfo2) => !pluginInfo2.operations ? Promise.resolve({}) : await pluginInfo2.operations.reduce(
|
|
3450
|
+
async (retval2, { operation }) => {
|
|
3451
|
+
if (isComposite(operation, opCounts)) {
|
|
3452
|
+
const command = await eager2(Command_exports.make(operation));
|
|
3453
|
+
const compositeOp = await eager2(ParsedOperation_exports.make({
|
|
3454
|
+
operation,
|
|
3455
|
+
command,
|
|
3456
|
+
description: await eager2(NonEmptyString_exports.make(i18n.__("providedByMany"))),
|
|
3457
|
+
options: [
|
|
3458
|
+
await eager2(Option_exports.make({
|
|
3459
|
+
flag: await eager2(Verb_exports.make("plugin")),
|
|
3460
|
+
description: await eager2(
|
|
3461
|
+
NonEmptyString_exports.make("Specify which plugin should be used to execute this operation")
|
|
3462
|
+
),
|
|
3463
|
+
choices: toChoices(opCounts[operation]),
|
|
3464
|
+
required: true
|
|
3465
|
+
}))
|
|
3466
|
+
]
|
|
3467
|
+
}));
|
|
3468
|
+
return { ...await retval2, [operation]: compositeOp };
|
|
3469
|
+
}
|
|
3470
|
+
const installedPlugin = getInstalledPlugin(config, pluginInfo2.name);
|
|
3471
|
+
return installedPlugin ? { ...await retval2, [operation]: installedPlugin } : retval2;
|
|
3472
|
+
},
|
|
3473
|
+
retval
|
|
3474
|
+
),
|
|
3475
|
+
Promise.resolve({})
|
|
3476
|
+
)
|
|
3477
|
+
).pipe((0, import_fluture49.mapRej)((rej) => rej));
|
|
3478
|
+
};
|
|
3479
|
+
var mapTemplatesToPlugins = (config, pluginInfo, i18n) => {
|
|
3480
|
+
const tmplCounts = getTemplateCounts(pluginInfo);
|
|
3481
|
+
return (0, import_fluture49.attemptP)(
|
|
3482
|
+
async () => await pluginInfo.reduce(
|
|
3483
|
+
async (retval, pluginInfo2) => !pluginInfo2.templates ? Promise.resolve({}) : await pluginInfo2.templates.reduce(
|
|
3484
|
+
async (retval2, { template, hidden }) => {
|
|
3485
|
+
if (isComposite(template, tmplCounts)) {
|
|
3486
|
+
const command = await eager2(Command_exports.make(template));
|
|
3487
|
+
const description = await eager2(NonEmptyString_exports.of(i18n.__("providedByMany")));
|
|
3488
|
+
const compositeTmpl = await eager2(ParsedTemplate_exports.make({
|
|
3489
|
+
template,
|
|
3490
|
+
command,
|
|
3491
|
+
description,
|
|
3492
|
+
options: [
|
|
3493
|
+
await eager2(Option_exports.make({
|
|
3494
|
+
flag: await eager2(Verb_exports.make("plugin")),
|
|
3495
|
+
description: await eager2(
|
|
3496
|
+
NonEmptyString_exports.make("Specify which plugin should be used to execute this task")
|
|
3497
|
+
),
|
|
3498
|
+
choices: toChoices(tmplCounts[template]),
|
|
3499
|
+
required: true
|
|
3500
|
+
}))
|
|
3501
|
+
],
|
|
3502
|
+
handler: "proxy",
|
|
3503
|
+
encoding: PluginResponseEncoding_exports.create("none")
|
|
3504
|
+
}));
|
|
3505
|
+
return { ...await retval2, [template]: compositeTmpl };
|
|
3506
|
+
}
|
|
3507
|
+
const installedPlugin = getInstalledPlugin(config, pluginInfo2.name);
|
|
3508
|
+
return installedPlugin ? { ...await retval2, [template]: installedPlugin } : retval2;
|
|
3509
|
+
},
|
|
3510
|
+
retval
|
|
3511
|
+
),
|
|
3512
|
+
Promise.resolve({})
|
|
3513
|
+
)
|
|
3514
|
+
).pipe((0, import_fluture49.mapRej)((rej) => rej));
|
|
3515
|
+
};
|
|
3516
|
+
var getTasks = (pluginInfo) => pluginInfo.reduce(
|
|
3517
|
+
(retval, pluginInfo2) => {
|
|
3518
|
+
var _a;
|
|
3519
|
+
return [...retval, ...(_a = pluginInfo2.tasks) != null ? _a : []];
|
|
3520
|
+
},
|
|
3521
|
+
[]
|
|
3522
|
+
);
|
|
3523
|
+
//# sourceMappingURL=taqueria-protocol-types.d.js.map
|