@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
package/types.d.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["types.ts"],"sourcesContent":["// ---- Simple Types & Type Fragments ----\n\n/** @minLength 1 */\nexport type NonEmptyString = string;\n\n/** @pattern ^[A-Za-z]$ */\nexport type SingleChar = NonEmptyString;\n\n/** @pattern ^[A-Za-z\\-\\ ]+ */\nexport type Verb = NonEmptyString;\n\nexport type Alias = Verb | SingleChar;\n\n/** @pattern ^[A-Za-z]+[A-Za-z0-9-_ ]*$ */\nexport type HumanReadableIdentifier = NonEmptyString;\n\nexport type SanitizedAbsPath = NonEmptyString;\n\nexport type SanitizedPath = NonEmptyString;\n\nexport type Settings = {\n\tconsent: 'opt_in' | 'opt_out' | 'unspecified';\n};\n\n/**\n * @minimum 1651846877\n * @integer\n */\nexport type Timestamp = number;\n\n/**\n * @minLength 1\n * @pattern ^\\d([\\d_]+\\d)?$ */\nexport type Tz = NonEmptyString;\n\n/**\n * @minLength 1\n * @pattern ^\\d+\\.\\d+(\\.\\d+)*$ */\nexport type VersionNumber = NonEmptyString;\n\n/** @format url */\nexport type Url = NonEmptyString;\n\n// ---- Plugin Definition Types ----\n\n/** interpreted using yargs @pattern ^([A-Za-z-_ ]+ ?)((\\[.+\\] ?)|(\\<.+\\>) ?)*$ */\nexport type Command = NonEmptyString;\n\nexport type Option = {\n\tshortFlag?: SingleChar;\n\tflag: Verb;\n\tdescription: NonEmptyString;\n\tdefaultValue?: string | number | boolean;\n\ttype?: 'string' | 'number' | 'boolean' | 'count';\n\trequired?: boolean;\n\tboolean?: boolean;\n\tchoices?: NonEmptyString[];\n};\n\nexport type PositionalArg = {\n\tplaceholder: HumanReadableIdentifier;\n\tdescription: NonEmptyString;\n\tdefaultValue?: string | number | boolean;\n\ttype?: 'string' | 'number' | 'boolean';\n\trequired?: boolean;\n};\n\nexport type InstalledPlugin = {\n\ttype: 'npm' | 'binary' | 'deno';\n\tname: NonEmptyString;\n};\n\nexport type Operation = {\n\toperation: Verb;\n\tcommand: Command;\n\tdescription?: NonEmptyString;\n\tpositionals?: PositionalArg[];\n\toptions?: Option[];\n\thandler?: (args: PersistentState) => (args: RequestArgs) => void;\n};\n\nexport type ParsedOperation = Omit<Operation, 'handler'>;\n\nexport type Template = {\n\ttemplate: Verb;\n\tcommand: Command;\n\tdescription: NonEmptyString;\n\thidden?: boolean;\n\toptions?: Option[];\n\tpositionals?: PositionalArg[];\n\thandler: TemplateHandler;\n\tencoding?: PluginResponseEncoding;\n};\n\ntype TemplateHandler =\n\t| NonEmptyString // TODO: should this be Verb?\n\t| ((args: RequestArgs) =>\n\t\t| PluginJsonResponse\n\t\t| Promise<PluginJsonResponse>)\n\t| Promise<void>;\n\nexport type ParsedTemplate = Omit<Template, 'handler'> & {\n\thandler: string;\n};\n\ntype PluginSchemaBase = {\n\tname: NonEmptyString;\n\tversion: VersionNumber;\n\tschema: VersionNumber;\n\talias: Alias;\n\ttasks?: Task[];\n\tpostInstall?: string;\n};\n\nexport type PluginInfo = PluginSchemaBase & {\n\toperations?: ParsedOperation[];\n\ttemplates?: ParsedTemplate[];\n};\n\nexport type PluginSchema = PluginSchemaBase & {\n\toperations?: Operation[];\n\ttemplates?: Template[];\n\tproxy?: (args: RequestArgs) => Promise<PluginProxyResponse>;\n\tcheckRuntimeDependencies?: (args: RequestArgs) => Promise<PluginDependenciesResponse>;\n\tinstallRuntimeDependencies?: (args: RequestArgs) => Promise<PluginDependenciesResponse>;\n};\n\nexport type Task = {\n\ttask: Verb;\n\tcommand: Command;\n\taliases?: Alias[];\n\t/** @minLength 3 */\n\tdescription?: NonEmptyString;\n\texample?: NonEmptyString;\n\thidden?: boolean;\n\tencoding?: PluginResponseEncoding;\n\thandler: 'proxy' | NonEmptyString;\n\toptions?: Option[];\n\tpositionals?: PositionalArg[];\n};\n\n// ---- Process Interop ----\n\nexport type RuntimeDependency = {\n\tname: HumanReadableIdentifier;\n\tpath: string;\n\tversion: string;\n\tkind: 'required' | 'optional';\n};\n\nexport type RuntimeDependencyReport = RuntimeDependency & {\n\tmet: boolean;\n};\n\nexport type PluginDependenciesResponse = {\n\treport: RuntimeDependencyReport[];\n};\n\nexport type PluginJsonResponse = {\n\tdata?: unknown;\n\tmessages?: {\n\t\theader?: string;\n\t\tfooter?: string;\n\t};\n\n\t/** @default none */\n\trender: 'none' | 'table' | 'string';\n} | void;\n\nexport type PluginProxyResponse = void | PluginJsonResponse;\n\n/** @default none */\nexport type PluginResponseEncoding = 'none' | 'json' | 'application/json';\n\n/**\n * @min 100\n */\nexport type BuildNumber = number;\n\nexport type SanitizedArgs = {\n\t_: string[];\n\tprojectDir: SanitizedPath;\n\tmaxConcurrency: number;\n\tdebug: boolean;\n\tdisableState: boolean;\n\tlogPluginRequests: boolean;\n\tfromVsCode: boolean;\n\tversion: boolean;\n\tbuild: boolean;\n\thelp: boolean;\n\tyes: boolean;\n\tplugin?: NonEmptyString;\n\tenv: NonEmptyString;\n\tquickstart: NonEmptyString;\n\tsetBuild: NonEmptyString | BuildNumber;\n\tsetVersion: NonEmptyString;\n};\n\nexport type PluginActionName =\n\t| 'proxy'\n\t| 'pluginInfo'\n\t| 'checkRuntimeDependencies'\n\t| 'installRuntimeDependencies'\n\t| 'runPostInstall'\n\t| 'proxyTemplate';\n\nexport type RequestArgs = Omit<SanitizedArgs, 'quickstart'> & {\n\ttaqRun: PluginActionName;\n\t// TODO: JSON.parse if string\n\tconfig: LoadedConfig;\n};\n\nexport type ProxyTaskArgs = RequestArgs & {\n\ttask: NonEmptyString;\n};\n\nexport type ProxyTemplateArgs = RequestArgs & {\n\ttemplate: NonEmptyString;\n};\n\n// ---- Hash Types ----\n\n/** @min 1 */\nexport type EconomicalProtocolHash = string;\n\n/** @pattern ^tz\\d[A-Za-z0-9]{33}$ */\nexport type PublicKeyHash = string;\n\n/** @pattern ^[A-Fa-f0-9]{64}$ */\nexport type SHA256 = string;\n\n// ---- Contract Objects ----\n\nexport type Contract = {\n\tsourceFile: NonEmptyString;\n\thash: SHA256;\n};\n\nexport type Faucet = {\n\tpkh: PublicKeyHash;\n\tmnemonic: string[];\n\t/** @format email */\n\temail: string;\n\tpassword: string;\n\t/** @pattern ^\\d+$ */\n\tamount: string;\n\tactivation_code: string;\n};\n\n// ---- External ----\n\n/** Port number for postgresql container\n * @default 5432\n */\ntype TzKtConfigPostgresqlPort = number;\n\n/** Port number for TzKt API\n * @default 5000\n */\ntype TzKtConfigApiPort = number;\n\nexport type TzKtConfig = {\n\t/** Do not start TzKt when sandbox starts */\n\tdisableAutostartWithSandbox?: boolean;\n\tpostgresqlPort?: TzKtConfigPostgresqlPort;\n\tapiPort?: TzKtConfigApiPort;\n};\n\n// ---- Project Files ----\n\nexport type EphemeralState = {\n\tbuild: string;\n\tconfigHash: string;\n\n\t// Note: these were changed from a union(either type) to intersection(both types): i.e. InstalledPlugin | Task is not correct\n\n\t/** Task/Plugin Mapping */\n\ttasks: Record<string, InstalledPlugin & Task>;\n\t/** Operation/Plugin Mapping */\n\toperations: Record<string, InstalledPlugin & ParsedOperation>;\n\t/** Templates/Plugin Mapping */\n\ttemplates: Record<string, InstalledPlugin & ParsedTemplate>;\n\n\tplugins: PluginInfo[];\n};\n\nexport type PersistentState = {\n\toperations: Record<string, PersistedOperation>;\n\ttasks: Record<string, PersistedTask>;\n};\n\nexport type PersistedTask = {\n\ttask: Verb;\n\tplugin: NonEmptyString;\n\ttime: Timestamp;\n\toutput?: unknown;\n};\n\nexport type PersistedOperation = {\n\thash: SHA256;\n\ttime: Timestamp;\n\toutput?: unknown;\n};\n\n/**\n * @minLength 1\n * @pattern ^[A-Za-z0-9]+[A-Za-z0-9-_]+\\.[A-Za-z0-9]+[A-Za-z0-9-_]+\\.[A-Za-z0-9]+[A-Za-z0-9-_]+$\n */\nexport type ProvisionerID = string;\n\nexport type Provisioner = {\n\tid: ProvisionerID;\n\tplugin: NonEmptyString;\n\toperation: NonEmptyString | 'custom';\n\tcommand?: string;\n\tlabel?: string;\n\tdepends_on?: ProvisionerID[];\n};\n\nexport type Provisions = Provisioner[];\n\n// ---- Project Files: Config ----\n\nexport type Environment = {\n\tnetworks: NonEmptyString[];\n\tsandboxes: NonEmptyString[];\n\tstorage?: Record<string, NonEmptyString>;\n\taliases?: Record<string, Record<string, NonEmptyString>>;\n};\n\n/** @minLength 1 Default environment must reference the name of an existing environment.*/\ntype EnvironmentName = NonEmptyString;\n\n/** @default en */\ntype HumanLanguage = 'en' | 'fr';\n\n/**\n * @default contracts\n * @minLength 1\n */\nexport type ConfigContractsDir = string;\n\n/**\n * @default artifacts\n * @minLength 1\n */\nexport type ConfigArtifactsDir = string;\n\nexport type ConfigAccount = {\n\tbalance: CurrencyAmountV2;\n};\n\n// Incrementally Convert from ConfigFileV1 to ConfigFileV2\n// 1. A wrapper will load/save the ConfigFileV2 and convert it to this Config runtime type (which is initially the same as ConfigFileV1)\n// 2. This type will be modified incrementally as the implementation uses the new type structure\n// - The new schema definitions will be used immediately in the file system\n// - Current implementation works the same\n// - This decouples the schema change from implementation changes and unblocks the development team\nexport type Config = {\n\t// same\n\tlanguage?: HumanLanguage;\n\tmetadata?: MetadataConfig;\n\tartifactsDir?: ConfigArtifactsDir;\n\tcontractsDir?: ConfigContractsDir;\n\tcontracts?: Record<string, Contract>;\n\tplugins?: InstalledPlugin[];\n\n\t// to change\n\taccounts?: Record<string, Tz>;\n\t// accounts?: Record<string, ConfigAccount>;\n\n\t// to change\n\tenvironment: Record<string, Environment | EnvironmentName>;\n\t// environments?: Record<string, ConfigFileEnvironmentV2>;\n\n\t// to remove\n\tnetwork?: Record<string, NetworkConfig>;\n\t// to remove\n\tsandbox?: Record<string, SandboxConfig>;\n};\n\n// This is the original Config and is retained to support auto migration of files\nexport type ConfigFileV1 = {\n\tlanguage?: HumanLanguage;\n\tplugins?: InstalledPlugin[];\n\tcontractsDir?: ConfigContractsDir;\n\tartifactsDir?: ConfigArtifactsDir;\n\tnetwork?: Record<string, NetworkConfig>;\n\tsandbox?: Record<string, SandboxConfig>;\n\n\t// TODO: This causes a type conflict and is not supported\n\t// accounts?: {\n\t// \tdefault: EnvironmentName;\n\t// } & Record<string, Environment>;\n\tenvironment?: Record<string, Environment | EnvironmentName>;\n\taccounts?: Record<string, Tz>;\n\tcontracts?: Record<string, Contract>;\n\tmetadata?: MetadataConfig;\n};\n\nexport type CurrencyAmountV2 = {\n\tamount: string;\n\tunits: string;\n};\n\n/**\n * Workaround: zod won`t support VersionV2 = `v2`\n * @pattern ^v2$\n */\ntype VersionV2 = string;\n\nexport type ConfigFileV2 = {\n\tversion: VersionV2;\n\tlanguage?: HumanLanguage;\n\tmetadata?: MetadataConfig;\n\tartifactsDir?: ConfigArtifactsDir;\n\tcontractsDir?: ConfigContractsDir;\n\n\t/** Declared accounts */\n\taccounts?: Record<string, ConfigAccount>;\n\n\tcontracts?: Record<string, Contract>;\n\n\t/** The default environment key */\n\tenvironmentDefault?: EnvironmentName;\n\n\t/** Environments\n\t *\n\t * An environment represents a unique context on a network with its own account instances and contracts.\n\t *\n\t * The environment implementation is provided by a plugin which enables network control, account management, and contract interaction.\n\t *\n\t * Example environment types:\n\t *\n\t * - a sandbox running locally (using flextesa and taquito plugin)\n\t * - teztnets.xyz (using taquito plugin)\n\t * - mainnet (using taquito plugin with a custom rpcUrl)\n\t *\n\t * The environment implementation also implements the account types that are supported by that environmentType:\n\t *\n\t * - flextesa\n\t * - in-memory signer\n\t * - mainnet\n\t * - beacon wallet\n\t * - multi-sig\n\t *\n\t * Using the above as an example, the flextesa sandbox only needs an in-memory signer since it generates it's own accounts,\n\t * but mainnet might support something like a beacon wallet or a multi-sig account.\n\t */\n\tenvironments?: Record<string, ConfigEnvironmentFileV2>;\n\n\tplugins?: InstalledPlugin[];\n};\n\n/** Account overrides for this environment */\nexport type SandboxAccount = {\n\ttype?: string;\n};\n\nexport type SandboxAccounts = Record<string, SandboxAccount>;\n\nexport type ConfigEnvironmentFileV2 = {\n\t/** environment types provided by plugins\n\t *\n\t * Examples: flextesa, teztnet, mainnet\n\t *\n\t * annotations provides plugin specific data like rpcUrl\n\t */\n\ttype?: string;\n\n\t// Account overrides for the environment\n\taccounts?: SandboxAccounts;\n\n\t// Default account to use for this environment\n\taccountDefault?: keyof SandboxAccounts;\n\n\t/** Contract deployment data for this environment */\n\tcontracts?: Record<string, {\n\t\taddress?: string;\n\t}>;\n\t// Other fields may exist, but they are not type checked here\n\t// It is expected that this will be cast to a more specific type\n\t// by the plugin to access the additional fields\n};\n\n// TODO: sandbox breaks ts-to-zod\nexport type LoadedConfig = Config & {\n\tprojectDir: SanitizedAbsPath;\n\tconfigFile: SanitizedAbsPath;\n\thash: SHA256;\n};\n\nexport type MetadataConfig = {\n\tname?: string;\n\tprojectDescription?: string;\n\tauthors?: string[];\n\tlicense?: string;\n\thomepage?: string;\n};\n\nexport type NetworkConfig = {\n\tlabel: HumanReadableIdentifier;\n\trpcUrl: Url;\n\taccounts?: Record<string, NetworkAccountConfig>;\n\tfaucet?: Faucet;\n};\n\nexport type NetworkAccountConfig = {\n\tpublicKey?: NonEmptyString;\n\tpublicKeyHash?: PublicKeyHash;\n\tprivateKey?: NonEmptyString; /** TODO: Should this be secretKey: @see {SandboxAccountConfig} */\n\tmnemonic?: NonEmptyString;\n};\n\nexport type SandboxAccountConfig = {\n\tencryptedKey: NonEmptyString;\n\tpublicKeyHash: PublicKeyHash;\n\tsecretKey: NonEmptyString;\n};\n\nexport type SandboxConfig = {\n\tlabel: NonEmptyString;\n\trpcUrl: Url; // should this be optional?\n\tprotocol?: EconomicalProtocolHash;\n\tplugin?: Verb;\n\n\t// TODO: This causes a type conflict and is not supported\n\t// accounts?: {\n\t// \tdefault: NonEmptyString;\n\t// } & Record<string, SandboxAccountConfig>;\n\taccounts?: Record<string, SandboxAccountConfig | NonEmptyString>;\n\n\ttzkt?: TzKtConfig;\n\tannotations?: Record<string, unknown>;\n};\n\nexport type ScaffoldConfig = {\n\tpostInit?: string;\n};\n\nexport type ParsedConfig = Omit<Config, 'sandbox'> & {\n\tsandbox: Record<string, SandboxConfig | NonEmptyString>;\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAEA;;","names":[]}
|
package/types.d.ts
CHANGED
package/tzkt-config.d.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// tzkt-config.d.ts
|
|
17
|
+
var tzkt_config_d_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(tzkt_config_d_exports);
|
|
19
|
+
//# sourceMappingURL=tzkt-config.d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["tzkt-config.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tdisableAutostartWithSandbox: z.boolean({ description: 'Do not start TzKt when sandbox starts' }).default(false),\n\tpostgresqlPort: z.number({ description: 'Port number for postgresql container' }).default(5432),\n\tapiPort: z.number({ description: 'Port number for TzKt API' }).default(5000),\n});\n\ntype Input = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<Input, Input>({\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid TzKt configuration `,\n\tunknownErrMsg: 'Something went wrong trying to parse the TzKt configuration',\n});\n\nexport type TzKtConfig = z.infer<typeof generatedSchemas.schema>;\n\nexport type t = TzKtConfig;\n\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as TzKtConfig),\n};\n"],"mappings":";;;;;;;;;;;;;;;;AACA;;","names":[]}
|
package/tzkt-config.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const generatedSchemas: {
|
|
|
20
20
|
postgresqlPort: number;
|
|
21
21
|
apiPort: number;
|
|
22
22
|
} & {
|
|
23
|
-
readonly __type: any
|
|
23
|
+
readonly __type: "generated" & z.infer<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
24
24
|
}, any>;
|
|
25
25
|
}, factory: {
|
|
26
26
|
make: (input: {
|
|
@@ -32,14 +32,14 @@ export declare const generatedSchemas: {
|
|
|
32
32
|
postgresqlPort: number;
|
|
33
33
|
apiPort: number;
|
|
34
34
|
} & {
|
|
35
|
-
readonly __type: any
|
|
35
|
+
readonly __type: "generated" & z.infer<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
36
36
|
}>;
|
|
37
37
|
of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
38
38
|
disableAutostartWithSandbox: boolean;
|
|
39
39
|
postgresqlPort: number;
|
|
40
40
|
apiPort: number;
|
|
41
41
|
} & {
|
|
42
|
-
readonly __type: any
|
|
42
|
+
readonly __type: "generated" & z.infer<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
43
43
|
}>;
|
|
44
44
|
create: (input: {
|
|
45
45
|
disableAutostartWithSandbox: boolean;
|
|
@@ -50,14 +50,14 @@ export declare const generatedSchemas: {
|
|
|
50
50
|
postgresqlPort: number;
|
|
51
51
|
apiPort: number;
|
|
52
52
|
} & {
|
|
53
|
-
readonly __type: any
|
|
53
|
+
readonly __type: "generated" & z.infer<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
54
54
|
};
|
|
55
55
|
from: (input: unknown) => {
|
|
56
56
|
disableAutostartWithSandbox: boolean;
|
|
57
57
|
postgresqlPort: number;
|
|
58
58
|
apiPort: number;
|
|
59
59
|
} & {
|
|
60
|
-
readonly __type: any
|
|
60
|
+
readonly __type: "generated" & z.infer<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
export type TzKtConfig = z.infer<typeof generatedSchemas.schema>;
|
|
@@ -71,13 +71,13 @@ export declare const create: (input: {
|
|
|
71
71
|
postgresqlPort: number;
|
|
72
72
|
apiPort: number;
|
|
73
73
|
} & {
|
|
74
|
-
readonly __type: any
|
|
74
|
+
readonly __type: "generated" & z.infer<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
75
75
|
}, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
76
76
|
disableAutostartWithSandbox: boolean;
|
|
77
77
|
postgresqlPort: number;
|
|
78
78
|
apiPort: number;
|
|
79
79
|
} & {
|
|
80
|
-
readonly __type: any
|
|
80
|
+
readonly __type: "generated" & z.infer<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
81
81
|
}>, make: (input: {
|
|
82
82
|
disableAutostartWithSandbox: boolean;
|
|
83
83
|
postgresqlPort: number;
|
|
@@ -87,7 +87,7 @@ export declare const create: (input: {
|
|
|
87
87
|
postgresqlPort: number;
|
|
88
88
|
apiPort: number;
|
|
89
89
|
} & {
|
|
90
|
-
readonly __type: any
|
|
90
|
+
readonly __type: "generated" & z.infer<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
91
91
|
}>;
|
|
92
92
|
export declare const schemas: {
|
|
93
93
|
schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
@@ -95,13 +95,13 @@ export declare const schemas: {
|
|
|
95
95
|
postgresqlPort: number;
|
|
96
96
|
apiPort: number;
|
|
97
97
|
} & {
|
|
98
|
-
readonly __type: any
|
|
98
|
+
readonly __type: "generated" & z.infer<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
99
99
|
}, any>, {
|
|
100
100
|
disableAutostartWithSandbox: boolean;
|
|
101
101
|
postgresqlPort: number;
|
|
102
102
|
apiPort: number;
|
|
103
103
|
} & {
|
|
104
|
-
readonly __type: any
|
|
104
|
+
readonly __type: "generated" & z.infer<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
105
105
|
}, any>;
|
|
106
106
|
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
107
107
|
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
package/tzkt-config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tzkt-config.d.ts","sourceRoot":"","sources":["tzkt-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;EAIpB,CAAC;AAIH,eAAO,MAAiB,gBAAgB
|
|
1
|
+
{"version":3,"file":"tzkt-config.d.ts","sourceRoot":"","sources":["tzkt-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;EAIpB,CAAC;AAIH,eAAO,MAAiB,gBAAgB;;;;;;;;uCAgBe,EAAG,KAAK;;GAhBrB,OAAO;;;;;;;;;;uCAgBM,EAAG,KAAK;;;;;;;uCAAR,EAAG,KAAK;;;;;;;;;;;uCAAR,EAAG,KAAK;;;;;;;uCAAR,EAAG,KAAK;;CAZ7D,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEjE,MAAM,MAAM,CAAC,GAAG,UAAU,CAAC;AAE3B,eAAO,MAAQ,MAAM;;;;;;;;;mCAMkC,EAAG,KAAK;GANxC,EAAE;;;;;mCAM8B,EAAG,KAAK;IANpC,IAAI;;;;;;;;;mCAMwB,EAAG,KAAK;EANpB,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;yCAIsC,KAAK;;;;;;yCAAL,KAAK;;;;CAD9D,CAAC"}
|
package/tzkt-config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tzkt-config.ts","TaqError.ts","Base.ts"],"sourcesContent":["import createType from '
|
|
1
|
+
{"version":3,"sources":["tzkt-config.ts","TaqError.ts","Base.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tdisableAutostartWithSandbox: z.boolean({ description: 'Do not start TzKt when sandbox starts' }).default(false),\n\tpostgresqlPort: z.number({ description: 'Port number for postgresql container' }).default(5432),\n\tapiPort: z.number({ description: 'Port number for TzKt API' }).default(5000),\n});\n\ntype Input = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<Input, Input>({\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid TzKt configuration `,\n\tunknownErrMsg: 'Something went wrong trying to parse the TzKt configuration',\n});\n\nexport type TzKtConfig = z.infer<typeof generatedSchemas.schema>;\n\nexport type t = TzKtConfig;\n\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as TzKtConfig),\n};\n","import { map, reject } from 'fluture';\nimport { ZodError } from 'zod';\n\nexport type ErrorType =\n\t| 'E_INVALID_PATH_DOES_NOT_EXIST'\n\t| 'E_INVALID_PATH_EXISTS_AND_NOT_AN_EMPTY_DIR'\n\t| 'E_INVALID_PATH_ALREADY_EXISTS'\n\t| 'E_INVALID_CONFIG'\n\t| 'E_INVALID_JSON'\n\t| 'E_FORK'\n\t| 'E_INVALID_TASK'\n\t| 'E_READFILE'\n\t| 'E_NPM_INIT'\n\t| 'E_INVALID_PLUGIN_RESPONSE'\n\t| 'E_INVALID_ARGS'\n\t| 'E_MKDIR_FAILED'\n\t| 'E_GIT_CLONE_FAILED'\n\t| 'E_PROVISION'\n\t| 'E_PARSE'\n\t| 'E_PARSE_UNKNOWN'\n\t| 'E_INVALID_ARCH'\n\t| 'E_NO_PROVISIONS'\n\t| 'E_INTERNAL_LOGICAL_VALIDATION_FAILURE'\n\t| 'E_EXEC'\n\t| 'E_OPT_IN_WARNING'\n\t| 'E_INVALID_OPTION'\n\t| 'E_TAQ_PROJECT_NOT_FOUND';\n\nexport interface TaqError {\n\treadonly kind: ErrorType;\n\tmsg: string;\n\tprevious?: TaqError | Error | unknown;\n\tcontext?: unknown;\n}\n\nexport type t = TaqError;\n\nexport class E_TaqError extends Error {\n\treadonly context;\n\treadonly kind;\n\treadonly previous;\n\tconstructor(taqErr: TaqError) {\n\t\tsuper(taqErr.msg);\n\t\tthis.context = taqErr.context;\n\t\tthis.kind = taqErr.kind;\n\t\tthis.name = this.kind;\n\t\tthis.previous = taqErr.previous;\n\t}\n}\n\nexport const toFutureParseErr = <T>(previous: ZodError, msg: string, context?: unknown) =>\n\treject(toParseErr(previous, msg, context))\n\t\t.pipe(map((val: unknown) => val as T));\n\nexport const toParseErr = (previous: ZodError, msg: string, context?: unknown) =>\n\tcreate({\n\t\tkind: 'E_PARSE',\n\t\tmsg: msg,\n\t\tcontext,\n\t\tprevious,\n\t});\n\nexport const toParseUnknownErr = (previous: Error | TaqError | E_TaqError | unknown, msg: string, context?: unknown) =>\n\tcreate({\n\t\tkind: 'E_PARSE_UNKNOWN',\n\t\tmsg: msg,\n\t\tcontext,\n\t\tprevious,\n\t});\n\nexport const toFutureParseUnknownErr = <T>(\n\tprevious: Error | TaqError | E_TaqError | unknown,\n\tmsg: string,\n\tcontext?: unknown,\n) =>\n\treject(toParseUnknownErr(previous, msg, context))\n\t\t.pipe(map((val: unknown) => val as T));\n\nexport const create = (err: TaqError) => err;\n","import { toFutureParseErr, toFutureParseUnknownErr } from '@taqueria/protocol/TaqError';\nimport { FutureInstance, resolve } from 'fluture';\nimport { z, ZodError, ZodSchema } from 'zod';\n\ntype Future<L, R> = FutureInstance<L, R>;\n\ntype ErrMsg = string | ((value: unknown, previous?: unknown) => string);\n\ninterface CreateSchemaParams {\n\trawSchema: ZodSchema;\n\tinternalSchema?: ZodSchema;\n\ttransformer?: (value: unknown) => unknown;\n\tisStringLike?: boolean;\n}\n\ninterface CreateTypeParams extends CreateSchemaParams {\n\tparseErrMsg: ErrMsg;\n\tunknownErrMsg: ErrMsg;\n}\nexport type Flatten<T> = { [k in keyof T]: T[k] };\n\nexport const createSchema = <I>(params: CreateSchemaParams) => {\n\tconst { rawSchema, isStringLike } = params;\n\tconst internalSchema = params.internalSchema ?? params.rawSchema;\n\tconst noop = (val: unknown) => val;\n\tconst transformer = params.transformer ?? noop;\n\n\tconst schema = isStringLike\n\t\t? internalSchema\n\t\t\t.transform((val: unknown) =>\n\t\t\t\ttransformer(val) as I & {\n\t\t\t\t\treadonly __type: 'generated' & z.infer<typeof internalSchema>;\n\t\t\t\t}\n\t\t\t)\n\t\t: internalSchema\n\t\t\t.transform((val: unknown) =>\n\t\t\t\ttransformer(val) as Flatten<\n\t\t\t\t\tI & {\n\t\t\t\t\t\treadonly __type: 'generated' & z.infer<typeof internalSchema>;\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t);\n\n\ttype GeneratedSchema = typeof schema;\n\n\treturn {\n\t\trawSchema,\n\t\tinternalSchema,\n\t\tschema,\n\t};\n};\n\n// TODO:\n// TypeScript appears to have a bug with default generic values\n// For instance, I'd like to use this:\n// export const createType = <R, I = R>(params: CreateTypeParams) => {\n//\n// However, I == unknown when having I default to R if no I was given.\n// So, we need to require R and I explicitly\nexport const createType = <R, I>(params: CreateTypeParams) => {\n\tconst schemas = createSchema<I>(params);\n\tconst { parseErrMsg, unknownErrMsg } = params;\n\n\ttype T = z.infer<typeof schemas.schema>;\n\n\tconst internalOf = (input: unknown) => {\n\t\ttry {\n\t\t\treturn resolve<T>(schemas.schema.parse(input));\n\t\t} catch (previous) {\n\t\t\tconst parseMsg = typeof parseErrMsg === 'string'\n\t\t\t\t? parseErrMsg\n\t\t\t\t: parseErrMsg(input, previous);\n\n\t\t\tconst unknownMsg = typeof unknownErrMsg === 'string'\n\t\t\t\t? unknownErrMsg\n\t\t\t\t: unknownErrMsg(input);\n\n\t\t\tif (previous instanceof ZodError) {\n\t\t\t\treturn toFutureParseErr<T>(previous, parseMsg, input);\n\t\t\t}\n\t\t\treturn toFutureParseUnknownErr<T>(previous, unknownMsg, input);\n\t\t}\n\t};\n\tconst of = internalOf;\n\n\tconst make = (input: I) => internalOf(input);\n\n\tconst create = (input: R | I) => schemas.schema.parse(input) as T;\n\n\tconst from = (input: unknown) => schemas.schema.parse(input) as T;\n\n\tconst factory = {\n\t\tmake,\n\t\tof,\n\t\tcreate,\n\t\tfrom,\n\t};\n\n\treturn {\n\t\tschemas,\n\t\tfactory,\n\t};\n};\n\nexport default createType;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,qBAA4B;AAkDrB,IAAM,mBAAmB,CAAI,UAAoB,KAAa,gBACpE,uBAAO,WAAW,UAAU,KAAK,OAAO,CAAC,EACvC,SAAK,oBAAI,CAAC,QAAiB,GAAQ,CAAC;AAEhC,IAAM,aAAa,CAAC,UAAoB,KAAa,YAC3D,OAAO;AAAA,EACN,MAAM;AAAA,EACN;AAAA,EACA;AAAA,EACA;AACD,CAAC;AAEK,IAAM,oBAAoB,CAAC,UAAmD,KAAa,YACjG,OAAO;AAAA,EACN,MAAM;AAAA,EACN;AAAA,EACA;AAAA,EACA;AACD,CAAC;AAEK,IAAM,0BAA0B,CACtC,UACA,KACA,gBAEA,uBAAO,kBAAkB,UAAU,KAAK,OAAO,CAAC,EAC9C,SAAK,oBAAI,CAAC,QAAiB,GAAQ,CAAC;AAEhC,IAAM,SAAS,CAAC,QAAkB;;;AC7EzC,IAAAC,kBAAwC;AACxC,iBAAuC;AAmBhC,IAAM,eAAe,CAAI,WAA+B;AArB/D;AAsBC,QAAM,EAAE,WAAAC,YAAW,aAAa,IAAI;AACpC,QAAM,kBAAiB,YAAO,mBAAP,YAAyB,OAAO;AACvD,QAAM,OAAO,CAAC,QAAiB;AAC/B,QAAM,eAAc,YAAO,gBAAP,YAAsB;AAE1C,QAAM,SAAS,eACZ,eACA;AAAA,IAAU,CAAC,QACX,YAAY,GAAG;AAAA,EAGhB,IACC,eACA;AAAA,IAAU,CAAC,QACX,YAAY,GAAG;AAAA,EAKhB;AAIF,SAAO;AAAA,IACN,WAAAA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD;AASO,IAAM,aAAa,CAAO,WAA6B;AAC7D,QAAMC,WAAU,aAAgB,MAAM;AACtC,QAAM,EAAE,aAAa,cAAc,IAAI;AAIvC,QAAM,aAAa,CAAC,UAAmB;AACtC,QAAI;AACH,iBAAO,yBAAWA,SAAQ,OAAO,MAAM,KAAK,CAAC;AAAA,IAC9C,SAAS,UAAU;AAClB,YAAM,WAAW,OAAO,gBAAgB,WACrC,cACA,YAAY,OAAO,QAAQ;AAE9B,YAAM,aAAa,OAAO,kBAAkB,WACzC,gBACA,cAAc,KAAK;AAEtB,UAAI,oBAAoB,qBAAU;AACjC,eAAO,iBAAoB,UAAU,UAAU,KAAK;AAAA,MACrD;AACA,aAAO,wBAA2B,UAAU,YAAY,KAAK;AAAA,IAC9D;AAAA,EACD;AACA,QAAMC,MAAK;AAEX,QAAMC,QAAO,CAAC,UAAa,WAAW,KAAK;AAE3C,QAAMC,UAAS,CAAC,UAAiBH,SAAQ,OAAO,MAAM,KAAK;AAE3D,QAAM,OAAO,CAAC,UAAmBA,SAAQ,OAAO,MAAM,KAAK;AAE3D,QAAMI,WAAU;AAAA,IACf,MAAAF;AAAA,IACA,IAAAD;AAAA,IACA,QAAAE;AAAA,IACA;AAAA,EACD;AAEA,SAAO;AAAA,IACN,SAAAH;AAAA,IACA,SAAAI;AAAA,EACD;AACD;AAEA,IAAO,eAAQ;;;AFvGf,IAAAC,cAAkB;AAEX,IAAM,YAAY,cAAE,OAAO;AAAA,EACjC,6BAA6B,cAAE,QAAQ,EAAE,aAAa,wCAAwC,CAAC,EAAE,QAAQ,KAAK;AAAA,EAC9G,gBAAgB,cAAE,OAAO,EAAE,aAAa,uCAAuC,CAAC,EAAE,QAAQ,IAAI;AAAA,EAC9F,SAAS,cAAE,OAAO,EAAE,aAAa,2BAA2B,CAAC,EAAE,QAAQ,GAAI;AAC5E,CAAC;AAIM,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,aAAyB;AAAA,EAC9E;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG,KAAK;AAAA,EACzC,eAAe;AAChB,CAAC;AAMM,IAAM,EAAE,QAAAC,SAAQ,IAAI,KAAK,IAAI;AAE7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAiB;AACnE;","names":["create","import_fluture","rawSchema","schemas","of","make","create","factory","import_zod","create"]}
|
package/scripts/build-types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-types.d.ts","sourceRoot":"","sources":["build-types.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,gBAAuB,MAAM,kBAyGnD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-ts-to-zod.d.ts","sourceRoot":"","sources":["post-ts-to-zod.ts"],"names":[],"mappings":""}
|