@start9labs/start-sdk 0.3.6-alpha.10
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/LICENSE +21 -0
- package/README.md +18 -0
- package/base/lib/Effects.d.ts +167 -0
- package/base/lib/Effects.js +3 -0
- package/base/lib/Effects.js.map +1 -0
- package/base/lib/actions/index.d.ts +40 -0
- package/base/lib/actions/index.js +52 -0
- package/base/lib/actions/index.js.map +1 -0
- package/base/lib/actions/input/builder/index.d.ts +5 -0
- package/base/lib/actions/input/builder/index.js +12 -0
- package/base/lib/actions/input/builder/index.js.map +1 -0
- package/base/lib/actions/input/builder/inputSpec.d.ts +91 -0
- package/base/lib/actions/input/builder/inputSpec.js +100 -0
- package/base/lib/actions/input/builder/inputSpec.js.map +1 -0
- package/base/lib/actions/input/builder/list.d.ts +93 -0
- package/base/lib/actions/input/builder/list.js +111 -0
- package/base/lib/actions/input/builder/list.js.map +1 -0
- package/base/lib/actions/input/builder/value.d.ts +384 -0
- package/base/lib/actions/input/builder/value.js +384 -0
- package/base/lib/actions/input/builder/value.js.map +1 -0
- package/base/lib/actions/input/builder/variants.d.ts +82 -0
- package/base/lib/actions/input/builder/variants.js +95 -0
- package/base/lib/actions/input/builder/variants.js.map +1 -0
- package/base/lib/actions/input/index.d.ts +3 -0
- package/base/lib/actions/input/index.js +30 -0
- package/base/lib/actions/input/index.js.map +1 -0
- package/base/lib/actions/input/inputSpecConstants.d.ts +33 -0
- package/base/lib/actions/input/inputSpecConstants.js +76 -0
- package/base/lib/actions/input/inputSpecConstants.js.map +1 -0
- package/base/lib/actions/input/inputSpecTypes.d.ts +187 -0
- package/base/lib/actions/input/inputSpecTypes.js +9 -0
- package/base/lib/actions/input/inputSpecTypes.js.map +1 -0
- package/base/lib/actions/setupActions.d.ts +45 -0
- package/base/lib/actions/setupActions.js +79 -0
- package/base/lib/actions/setupActions.js.map +1 -0
- package/base/lib/dependencies/Dependency.d.ts +29 -0
- package/base/lib/dependencies/Dependency.js +10 -0
- package/base/lib/dependencies/Dependency.js.map +1 -0
- package/base/lib/dependencies/dependencies.d.ts +17 -0
- package/base/lib/dependencies/dependencies.js +146 -0
- package/base/lib/dependencies/dependencies.js.map +1 -0
- package/base/lib/dependencies/setupDependencies.d.ts +17 -0
- package/base/lib/dependencies/setupDependencies.js +34 -0
- package/base/lib/dependencies/setupDependencies.js.map +1 -0
- package/base/lib/exver/exver.d.ts +130 -0
- package/base/lib/exver/exver.js +2358 -0
- package/base/lib/exver/exver.js.map +1 -0
- package/base/lib/exver/index.d.ts +84 -0
- package/base/lib/exver/index.js +373 -0
- package/base/lib/exver/index.js.map +1 -0
- package/base/lib/index.d.ts +10 -0
- package/base/lib/index.js +41 -0
- package/base/lib/index.js.map +1 -0
- package/base/lib/interfaces/AddressReceipt.d.ts +5 -0
- package/base/lib/interfaces/AddressReceipt.js +3 -0
- package/base/lib/interfaces/AddressReceipt.js.map +1 -0
- package/base/lib/interfaces/Host.d.ts +120 -0
- package/base/lib/interfaces/Host.js +142 -0
- package/base/lib/interfaces/Host.js.map +1 -0
- package/base/lib/interfaces/Origin.d.ts +31 -0
- package/base/lib/interfaces/Origin.js +58 -0
- package/base/lib/interfaces/Origin.js.map +1 -0
- package/base/lib/interfaces/ServiceInterfaceBuilder.d.ts +48 -0
- package/base/lib/interfaces/ServiceInterfaceBuilder.js +21 -0
- package/base/lib/interfaces/ServiceInterfaceBuilder.js.map +1 -0
- package/base/lib/interfaces/setupInterfaces.d.ts +17 -0
- package/base/lib/interfaces/setupInterfaces.js +39 -0
- package/base/lib/interfaces/setupInterfaces.js.map +1 -0
- package/base/lib/osBindings/AcceptSigners.d.ts +8 -0
- package/base/lib/osBindings/AcceptSigners.js +3 -0
- package/base/lib/osBindings/AcceptSigners.js.map +1 -0
- package/base/lib/osBindings/ActionId.d.ts +1 -0
- package/base/lib/osBindings/ActionId.js +4 -0
- package/base/lib/osBindings/ActionId.js.map +1 -0
- package/base/lib/osBindings/ActionInput.d.ts +4 -0
- package/base/lib/osBindings/ActionInput.js +4 -0
- package/base/lib/osBindings/ActionInput.js.map +1 -0
- package/base/lib/osBindings/ActionMetadata.d.ts +11 -0
- package/base/lib/osBindings/ActionMetadata.js +3 -0
- package/base/lib/osBindings/ActionMetadata.js.map +1 -0
- package/base/lib/osBindings/ActionRequest.d.ts +13 -0
- package/base/lib/osBindings/ActionRequest.js +3 -0
- package/base/lib/osBindings/ActionRequest.js.map +1 -0
- package/base/lib/osBindings/ActionRequestCondition.d.ts +1 -0
- package/base/lib/osBindings/ActionRequestCondition.js +4 -0
- package/base/lib/osBindings/ActionRequestCondition.js.map +1 -0
- package/base/lib/osBindings/ActionRequestEntry.d.ts +5 -0
- package/base/lib/osBindings/ActionRequestEntry.js +3 -0
- package/base/lib/osBindings/ActionRequestEntry.js.map +1 -0
- package/base/lib/osBindings/ActionRequestInput.d.ts +4 -0
- package/base/lib/osBindings/ActionRequestInput.js +4 -0
- package/base/lib/osBindings/ActionRequestInput.js.map +1 -0
- package/base/lib/osBindings/ActionRequestTrigger.d.ts +5 -0
- package/base/lib/osBindings/ActionRequestTrigger.js +3 -0
- package/base/lib/osBindings/ActionRequestTrigger.js.map +1 -0
- package/base/lib/osBindings/ActionResult.d.ts +7 -0
- package/base/lib/osBindings/ActionResult.js +3 -0
- package/base/lib/osBindings/ActionResult.js.map +1 -0
- package/base/lib/osBindings/ActionResultV0.d.ts +6 -0
- package/base/lib/osBindings/ActionResultV0.js +4 -0
- package/base/lib/osBindings/ActionResultV0.js.map +1 -0
- package/base/lib/osBindings/ActionResultV1.d.ts +14 -0
- package/base/lib/osBindings/ActionResultV1.js +4 -0
- package/base/lib/osBindings/ActionResultV1.js.map +1 -0
- package/base/lib/osBindings/ActionSeverity.d.ts +1 -0
- package/base/lib/osBindings/ActionSeverity.js +4 -0
- package/base/lib/osBindings/ActionSeverity.js.map +1 -0
- package/base/lib/osBindings/ActionVisibility.d.ts +3 -0
- package/base/lib/osBindings/ActionVisibility.js +4 -0
- package/base/lib/osBindings/ActionVisibility.js.map +1 -0
- package/base/lib/osBindings/AddAdminParams.d.ts +4 -0
- package/base/lib/osBindings/AddAdminParams.js +3 -0
- package/base/lib/osBindings/AddAdminParams.js.map +1 -0
- package/base/lib/osBindings/AddAssetParams.d.ts +9 -0
- package/base/lib/osBindings/AddAssetParams.js +3 -0
- package/base/lib/osBindings/AddAssetParams.js.map +1 -0
- package/base/lib/osBindings/AddPackageParams.d.ts +7 -0
- package/base/lib/osBindings/AddPackageParams.js +3 -0
- package/base/lib/osBindings/AddPackageParams.js.map +1 -0
- package/base/lib/osBindings/AddSslOptions.d.ts +5 -0
- package/base/lib/osBindings/AddSslOptions.js +3 -0
- package/base/lib/osBindings/AddSslOptions.js.map +1 -0
- package/base/lib/osBindings/AddVersionParams.d.ts +6 -0
- package/base/lib/osBindings/AddVersionParams.js +4 -0
- package/base/lib/osBindings/AddVersionParams.js.map +1 -0
- package/base/lib/osBindings/AddressInfo.d.ts +9 -0
- package/base/lib/osBindings/AddressInfo.js +3 -0
- package/base/lib/osBindings/AddressInfo.js.map +1 -0
- package/base/lib/osBindings/Alerts.d.ts +7 -0
- package/base/lib/osBindings/Alerts.js +4 -0
- package/base/lib/osBindings/Alerts.js.map +1 -0
- package/base/lib/osBindings/Algorithm.d.ts +1 -0
- package/base/lib/osBindings/Algorithm.js +4 -0
- package/base/lib/osBindings/Algorithm.js.map +1 -0
- package/base/lib/osBindings/AllPackageData.d.ts +5 -0
- package/base/lib/osBindings/AllPackageData.js +3 -0
- package/base/lib/osBindings/AllPackageData.js.map +1 -0
- package/base/lib/osBindings/AllowedStatuses.d.ts +1 -0
- package/base/lib/osBindings/AllowedStatuses.js +4 -0
- package/base/lib/osBindings/AllowedStatuses.js.map +1 -0
- package/base/lib/osBindings/AlpnInfo.d.ts +4 -0
- package/base/lib/osBindings/AlpnInfo.js +3 -0
- package/base/lib/osBindings/AlpnInfo.js.map +1 -0
- package/base/lib/osBindings/AnySignature.d.ts +1 -0
- package/base/lib/osBindings/AnySignature.js +4 -0
- package/base/lib/osBindings/AnySignature.js.map +1 -0
- package/base/lib/osBindings/AnySigningKey.d.ts +1 -0
- package/base/lib/osBindings/AnySigningKey.js +4 -0
- package/base/lib/osBindings/AnySigningKey.js.map +1 -0
- package/base/lib/osBindings/AnyVerifyingKey.d.ts +1 -0
- package/base/lib/osBindings/AnyVerifyingKey.js +4 -0
- package/base/lib/osBindings/AnyVerifyingKey.js.map +1 -0
- package/base/lib/osBindings/ApiState.d.ts +1 -0
- package/base/lib/osBindings/ApiState.js +4 -0
- package/base/lib/osBindings/ApiState.js.map +1 -0
- package/base/lib/osBindings/AttachParams.d.ts +5 -0
- package/base/lib/osBindings/AttachParams.js +3 -0
- package/base/lib/osBindings/AttachParams.js.map +1 -0
- package/base/lib/osBindings/BackupProgress.d.ts +3 -0
- package/base/lib/osBindings/BackupProgress.js +4 -0
- package/base/lib/osBindings/BackupProgress.js.map +1 -0
- package/base/lib/osBindings/BackupTargetFS.d.ts +7 -0
- package/base/lib/osBindings/BackupTargetFS.js +3 -0
- package/base/lib/osBindings/BackupTargetFS.js.map +1 -0
- package/base/lib/osBindings/Base64.d.ts +1 -0
- package/base/lib/osBindings/Base64.js +4 -0
- package/base/lib/osBindings/Base64.js.map +1 -0
- package/base/lib/osBindings/BindId.d.ts +5 -0
- package/base/lib/osBindings/BindId.js +3 -0
- package/base/lib/osBindings/BindId.js.map +1 -0
- package/base/lib/osBindings/BindInfo.d.ts +7 -0
- package/base/lib/osBindings/BindInfo.js +3 -0
- package/base/lib/osBindings/BindInfo.js.map +1 -0
- package/base/lib/osBindings/BindOptions.d.ts +7 -0
- package/base/lib/osBindings/BindOptions.js +3 -0
- package/base/lib/osBindings/BindOptions.js.map +1 -0
- package/base/lib/osBindings/BindParams.d.ts +12 -0
- package/base/lib/osBindings/BindParams.js +3 -0
- package/base/lib/osBindings/BindParams.js.map +1 -0
- package/base/lib/osBindings/Blake3Commitment.d.ts +5 -0
- package/base/lib/osBindings/Blake3Commitment.js +3 -0
- package/base/lib/osBindings/Blake3Commitment.js.map +1 -0
- package/base/lib/osBindings/BlockDev.d.ts +3 -0
- package/base/lib/osBindings/BlockDev.js +4 -0
- package/base/lib/osBindings/BlockDev.js.map +1 -0
- package/base/lib/osBindings/CallbackId.d.ts +1 -0
- package/base/lib/osBindings/CallbackId.js +4 -0
- package/base/lib/osBindings/CallbackId.js.map +1 -0
- package/base/lib/osBindings/Category.d.ts +5 -0
- package/base/lib/osBindings/Category.js +3 -0
- package/base/lib/osBindings/Category.js.map +1 -0
- package/base/lib/osBindings/CheckDependenciesParam.d.ts +4 -0
- package/base/lib/osBindings/CheckDependenciesParam.js +3 -0
- package/base/lib/osBindings/CheckDependenciesParam.js.map +1 -0
- package/base/lib/osBindings/CheckDependenciesResult.d.ts +19 -0
- package/base/lib/osBindings/CheckDependenciesResult.js +3 -0
- package/base/lib/osBindings/CheckDependenciesResult.js.map +1 -0
- package/base/lib/osBindings/Cifs.d.ts +6 -0
- package/base/lib/osBindings/Cifs.js +4 -0
- package/base/lib/osBindings/Cifs.js.map +1 -0
- package/base/lib/osBindings/ClearActionRequestsParams.d.ts +5 -0
- package/base/lib/osBindings/ClearActionRequestsParams.js +4 -0
- package/base/lib/osBindings/ClearActionRequestsParams.js.map +1 -0
- package/base/lib/osBindings/ClearActionsParams.d.ts +4 -0
- package/base/lib/osBindings/ClearActionsParams.js +3 -0
- package/base/lib/osBindings/ClearActionsParams.js.map +1 -0
- package/base/lib/osBindings/ClearBindingsParams.d.ts +4 -0
- package/base/lib/osBindings/ClearBindingsParams.js +3 -0
- package/base/lib/osBindings/ClearBindingsParams.js.map +1 -0
- package/base/lib/osBindings/ClearCallbacksParams.d.ts +5 -0
- package/base/lib/osBindings/ClearCallbacksParams.js +4 -0
- package/base/lib/osBindings/ClearCallbacksParams.js.map +1 -0
- package/base/lib/osBindings/ClearServiceInterfacesParams.d.ts +4 -0
- package/base/lib/osBindings/ClearServiceInterfacesParams.js +3 -0
- package/base/lib/osBindings/ClearServiceInterfacesParams.js.map +1 -0
- package/base/lib/osBindings/ContactInfo.d.ts +7 -0
- package/base/lib/osBindings/ContactInfo.js +4 -0
- package/base/lib/osBindings/ContactInfo.js.map +1 -0
- package/base/lib/osBindings/CreateSubcontainerFsParams.d.ts +5 -0
- package/base/lib/osBindings/CreateSubcontainerFsParams.js +3 -0
- package/base/lib/osBindings/CreateSubcontainerFsParams.js.map +1 -0
- package/base/lib/osBindings/CurrentDependencies.d.ts +5 -0
- package/base/lib/osBindings/CurrentDependencies.js +3 -0
- package/base/lib/osBindings/CurrentDependencies.js.map +1 -0
- package/base/lib/osBindings/CurrentDependencyInfo.d.ts +11 -0
- package/base/lib/osBindings/CurrentDependencyInfo.js +3 -0
- package/base/lib/osBindings/CurrentDependencyInfo.js.map +1 -0
- package/base/lib/osBindings/DataUrl.d.ts +1 -0
- package/base/lib/osBindings/DataUrl.js +4 -0
- package/base/lib/osBindings/DataUrl.js.map +1 -0
- package/base/lib/osBindings/DepInfo.d.ts +6 -0
- package/base/lib/osBindings/DepInfo.js +3 -0
- package/base/lib/osBindings/DepInfo.js.map +1 -0
- package/base/lib/osBindings/Dependencies.d.ts +5 -0
- package/base/lib/osBindings/Dependencies.js +3 -0
- package/base/lib/osBindings/Dependencies.js.map +1 -0
- package/base/lib/osBindings/DependencyKind.d.ts +1 -0
- package/base/lib/osBindings/DependencyKind.js +4 -0
- package/base/lib/osBindings/DependencyKind.js.map +1 -0
- package/base/lib/osBindings/DependencyMetadata.d.ts +7 -0
- package/base/lib/osBindings/DependencyMetadata.js +3 -0
- package/base/lib/osBindings/DependencyMetadata.js.map +1 -0
- package/base/lib/osBindings/DependencyRequirement.d.ts +12 -0
- package/base/lib/osBindings/DependencyRequirement.js +3 -0
- package/base/lib/osBindings/DependencyRequirement.js.map +1 -0
- package/base/lib/osBindings/Description.d.ts +4 -0
- package/base/lib/osBindings/Description.js +4 -0
- package/base/lib/osBindings/Description.js.map +1 -0
- package/base/lib/osBindings/DestroySubcontainerFsParams.d.ts +4 -0
- package/base/lib/osBindings/DestroySubcontainerFsParams.js +3 -0
- package/base/lib/osBindings/DestroySubcontainerFsParams.js.map +1 -0
- package/base/lib/osBindings/Duration.d.ts +1 -0
- package/base/lib/osBindings/Duration.js +4 -0
- package/base/lib/osBindings/Duration.js.map +1 -0
- package/base/lib/osBindings/EchoParams.d.ts +3 -0
- package/base/lib/osBindings/EchoParams.js +4 -0
- package/base/lib/osBindings/EchoParams.js.map +1 -0
- package/base/lib/osBindings/EncryptedWire.d.ts +3 -0
- package/base/lib/osBindings/EncryptedWire.js +4 -0
- package/base/lib/osBindings/EncryptedWire.js.map +1 -0
- package/base/lib/osBindings/ExportActionParams.d.ts +6 -0
- package/base/lib/osBindings/ExportActionParams.js +3 -0
- package/base/lib/osBindings/ExportActionParams.js.map +1 -0
- package/base/lib/osBindings/ExportServiceInterfaceParams.d.ts +12 -0
- package/base/lib/osBindings/ExportServiceInterfaceParams.js +3 -0
- package/base/lib/osBindings/ExportServiceInterfaceParams.js.map +1 -0
- package/base/lib/osBindings/ExposeForDependentsParams.d.ts +3 -0
- package/base/lib/osBindings/ExposeForDependentsParams.js +4 -0
- package/base/lib/osBindings/ExposeForDependentsParams.js.map +1 -0
- package/base/lib/osBindings/FullIndex.d.ts +14 -0
- package/base/lib/osBindings/FullIndex.js +3 -0
- package/base/lib/osBindings/FullIndex.js.map +1 -0
- package/base/lib/osBindings/FullProgress.d.ts +6 -0
- package/base/lib/osBindings/FullProgress.js +3 -0
- package/base/lib/osBindings/FullProgress.js.map +1 -0
- package/base/lib/osBindings/GetActionInputParams.d.ts +6 -0
- package/base/lib/osBindings/GetActionInputParams.js +3 -0
- package/base/lib/osBindings/GetActionInputParams.js.map +1 -0
- package/base/lib/osBindings/GetHostInfoParams.d.ts +8 -0
- package/base/lib/osBindings/GetHostInfoParams.js +3 -0
- package/base/lib/osBindings/GetHostInfoParams.js.map +1 -0
- package/base/lib/osBindings/GetOsAssetParams.d.ts +4 -0
- package/base/lib/osBindings/GetOsAssetParams.js +4 -0
- package/base/lib/osBindings/GetOsAssetParams.js.map +1 -0
- package/base/lib/osBindings/GetOsVersionParams.d.ts +6 -0
- package/base/lib/osBindings/GetOsVersionParams.js +4 -0
- package/base/lib/osBindings/GetOsVersionParams.js.map +1 -0
- package/base/lib/osBindings/GetPackageParams.d.ts +9 -0
- package/base/lib/osBindings/GetPackageParams.js +3 -0
- package/base/lib/osBindings/GetPackageParams.js.map +1 -0
- package/base/lib/osBindings/GetPackageResponse.d.ts +12 -0
- package/base/lib/osBindings/GetPackageResponse.js +3 -0
- package/base/lib/osBindings/GetPackageResponse.js.map +1 -0
- package/base/lib/osBindings/GetPackageResponseFull.d.ts +11 -0
- package/base/lib/osBindings/GetPackageResponseFull.js +3 -0
- package/base/lib/osBindings/GetPackageResponseFull.js.map +1 -0
- package/base/lib/osBindings/GetPrimaryUrlParams.d.ts +8 -0
- package/base/lib/osBindings/GetPrimaryUrlParams.js +3 -0
- package/base/lib/osBindings/GetPrimaryUrlParams.js.map +1 -0
- package/base/lib/osBindings/GetServiceInterfaceParams.d.ts +8 -0
- package/base/lib/osBindings/GetServiceInterfaceParams.js +3 -0
- package/base/lib/osBindings/GetServiceInterfaceParams.js.map +1 -0
- package/base/lib/osBindings/GetServicePortForwardParams.d.ts +7 -0
- package/base/lib/osBindings/GetServicePortForwardParams.js +3 -0
- package/base/lib/osBindings/GetServicePortForwardParams.js.map +1 -0
- package/base/lib/osBindings/GetSslCertificateParams.d.ts +7 -0
- package/base/lib/osBindings/GetSslCertificateParams.js +3 -0
- package/base/lib/osBindings/GetSslCertificateParams.js.map +1 -0
- package/base/lib/osBindings/GetSslKeyParams.d.ts +5 -0
- package/base/lib/osBindings/GetSslKeyParams.js +3 -0
- package/base/lib/osBindings/GetSslKeyParams.js.map +1 -0
- package/base/lib/osBindings/GetStoreParams.d.ts +7 -0
- package/base/lib/osBindings/GetStoreParams.js +3 -0
- package/base/lib/osBindings/GetStoreParams.js.map +1 -0
- package/base/lib/osBindings/GetSystemSmtpParams.d.ts +4 -0
- package/base/lib/osBindings/GetSystemSmtpParams.js +3 -0
- package/base/lib/osBindings/GetSystemSmtpParams.js.map +1 -0
- package/base/lib/osBindings/Governor.d.ts +1 -0
- package/base/lib/osBindings/Governor.js +4 -0
- package/base/lib/osBindings/Governor.js.map +1 -0
- package/base/lib/osBindings/Guid.d.ts +1 -0
- package/base/lib/osBindings/Guid.js +4 -0
- package/base/lib/osBindings/Guid.js.map +1 -0
- package/base/lib/osBindings/HardwareRequirements.d.ts +8 -0
- package/base/lib/osBindings/HardwareRequirements.js +4 -0
- package/base/lib/osBindings/HardwareRequirements.js.map +1 -0
- package/base/lib/osBindings/HealthCheckId.d.ts +1 -0
- package/base/lib/osBindings/HealthCheckId.js +4 -0
- package/base/lib/osBindings/HealthCheckId.js.map +1 -0
- package/base/lib/osBindings/Host.d.ts +17 -0
- package/base/lib/osBindings/Host.js +3 -0
- package/base/lib/osBindings/Host.js.map +1 -0
- package/base/lib/osBindings/HostAddress.d.ts +7 -0
- package/base/lib/osBindings/HostAddress.js +4 -0
- package/base/lib/osBindings/HostAddress.js.map +1 -0
- package/base/lib/osBindings/HostId.d.ts +1 -0
- package/base/lib/osBindings/HostId.js +4 -0
- package/base/lib/osBindings/HostId.js.map +1 -0
- package/base/lib/osBindings/HostKind.d.ts +1 -0
- package/base/lib/osBindings/HostKind.js +4 -0
- package/base/lib/osBindings/HostKind.js.map +1 -0
- package/base/lib/osBindings/HostnameInfo.d.ts +11 -0
- package/base/lib/osBindings/HostnameInfo.js +3 -0
- package/base/lib/osBindings/HostnameInfo.js.map +1 -0
- package/base/lib/osBindings/Hosts.d.ts +5 -0
- package/base/lib/osBindings/Hosts.js +3 -0
- package/base/lib/osBindings/Hosts.js.map +1 -0
- package/base/lib/osBindings/ImageConfig.d.ts +6 -0
- package/base/lib/osBindings/ImageConfig.js +3 -0
- package/base/lib/osBindings/ImageConfig.js.map +1 -0
- package/base/lib/osBindings/ImageId.d.ts +1 -0
- package/base/lib/osBindings/ImageId.js +4 -0
- package/base/lib/osBindings/ImageId.js.map +1 -0
- package/base/lib/osBindings/ImageMetadata.d.ts +4 -0
- package/base/lib/osBindings/ImageMetadata.js +4 -0
- package/base/lib/osBindings/ImageMetadata.js.map +1 -0
- package/base/lib/osBindings/ImageSource.d.ts +8 -0
- package/base/lib/osBindings/ImageSource.js +4 -0
- package/base/lib/osBindings/ImageSource.js.map +1 -0
- package/base/lib/osBindings/InitProgressRes.d.ts +6 -0
- package/base/lib/osBindings/InitProgressRes.js +3 -0
- package/base/lib/osBindings/InitProgressRes.js.map +1 -0
- package/base/lib/osBindings/InstallParams.d.ts +7 -0
- package/base/lib/osBindings/InstallParams.js +3 -0
- package/base/lib/osBindings/InstallParams.js.map +1 -0
- package/base/lib/osBindings/InstalledState.d.ts +4 -0
- package/base/lib/osBindings/InstalledState.js +3 -0
- package/base/lib/osBindings/InstalledState.js.map +1 -0
- package/base/lib/osBindings/InstalledVersionParams.d.ts +4 -0
- package/base/lib/osBindings/InstalledVersionParams.js +3 -0
- package/base/lib/osBindings/InstalledVersionParams.js.map +1 -0
- package/base/lib/osBindings/InstallingInfo.d.ts +6 -0
- package/base/lib/osBindings/InstallingInfo.js +3 -0
- package/base/lib/osBindings/InstallingInfo.js.map +1 -0
- package/base/lib/osBindings/InstallingState.d.ts +4 -0
- package/base/lib/osBindings/InstallingState.js +3 -0
- package/base/lib/osBindings/InstallingState.js.map +1 -0
- package/base/lib/osBindings/IpHostname.d.ts +22 -0
- package/base/lib/osBindings/IpHostname.js +4 -0
- package/base/lib/osBindings/IpHostname.js.map +1 -0
- package/base/lib/osBindings/IpInfo.d.ts +6 -0
- package/base/lib/osBindings/IpInfo.js +4 -0
- package/base/lib/osBindings/IpInfo.js.map +1 -0
- package/base/lib/osBindings/LanInfo.d.ts +4 -0
- package/base/lib/osBindings/LanInfo.js +4 -0
- package/base/lib/osBindings/LanInfo.js.map +1 -0
- package/base/lib/osBindings/ListServiceInterfacesParams.d.ts +6 -0
- package/base/lib/osBindings/ListServiceInterfacesParams.js +3 -0
- package/base/lib/osBindings/ListServiceInterfacesParams.js.map +1 -0
- package/base/lib/osBindings/ListVersionSignersParams.d.ts +3 -0
- package/base/lib/osBindings/ListVersionSignersParams.js +4 -0
- package/base/lib/osBindings/ListVersionSignersParams.js.map +1 -0
- package/base/lib/osBindings/LoginParams.d.ts +6 -0
- package/base/lib/osBindings/LoginParams.js +3 -0
- package/base/lib/osBindings/LoginParams.js.map +1 -0
- package/base/lib/osBindings/MainStatus.d.ts +31 -0
- package/base/lib/osBindings/MainStatus.js +3 -0
- package/base/lib/osBindings/MainStatus.js.map +1 -0
- package/base/lib/osBindings/Manifest.d.ts +35 -0
- package/base/lib/osBindings/Manifest.js +3 -0
- package/base/lib/osBindings/Manifest.js.map +1 -0
- package/base/lib/osBindings/MaybeUtf8String.d.ts +1 -0
- package/base/lib/osBindings/MaybeUtf8String.js +4 -0
- package/base/lib/osBindings/MaybeUtf8String.js.map +1 -0
- package/base/lib/osBindings/MerkleArchiveCommitment.d.ts +5 -0
- package/base/lib/osBindings/MerkleArchiveCommitment.js +3 -0
- package/base/lib/osBindings/MerkleArchiveCommitment.js.map +1 -0
- package/base/lib/osBindings/MountParams.d.ts +5 -0
- package/base/lib/osBindings/MountParams.js +3 -0
- package/base/lib/osBindings/MountParams.js.map +1 -0
- package/base/lib/osBindings/MountTarget.d.ts +8 -0
- package/base/lib/osBindings/MountTarget.js +3 -0
- package/base/lib/osBindings/MountTarget.js.map +1 -0
- package/base/lib/osBindings/NamedHealthCheckResult.d.ts +18 -0
- package/base/lib/osBindings/NamedHealthCheckResult.js +4 -0
- package/base/lib/osBindings/NamedHealthCheckResult.js.map +1 -0
- package/base/lib/osBindings/NamedProgress.d.ts +5 -0
- package/base/lib/osBindings/NamedProgress.js +3 -0
- package/base/lib/osBindings/NamedProgress.js.map +1 -0
- package/base/lib/osBindings/OnionHostname.d.ts +5 -0
- package/base/lib/osBindings/OnionHostname.js +4 -0
- package/base/lib/osBindings/OnionHostname.js.map +1 -0
- package/base/lib/osBindings/OsIndex.d.ts +4 -0
- package/base/lib/osBindings/OsIndex.js +3 -0
- package/base/lib/osBindings/OsIndex.js.map +1 -0
- package/base/lib/osBindings/OsVersionInfo.d.ts +18 -0
- package/base/lib/osBindings/OsVersionInfo.js +3 -0
- package/base/lib/osBindings/OsVersionInfo.js.map +1 -0
- package/base/lib/osBindings/OsVersionInfoMap.d.ts +4 -0
- package/base/lib/osBindings/OsVersionInfoMap.js +3 -0
- package/base/lib/osBindings/OsVersionInfoMap.js.map +1 -0
- package/base/lib/osBindings/PackageDataEntry.d.ts +32 -0
- package/base/lib/osBindings/PackageDataEntry.js +3 -0
- package/base/lib/osBindings/PackageDataEntry.js.map +1 -0
- package/base/lib/osBindings/PackageDetailLevel.d.ts +1 -0
- package/base/lib/osBindings/PackageDetailLevel.js +4 -0
- package/base/lib/osBindings/PackageDetailLevel.js.map +1 -0
- package/base/lib/osBindings/PackageId.d.ts +1 -0
- package/base/lib/osBindings/PackageId.js +4 -0
- package/base/lib/osBindings/PackageId.js.map +1 -0
- package/base/lib/osBindings/PackageIndex.d.ts +11 -0
- package/base/lib/osBindings/PackageIndex.js +3 -0
- package/base/lib/osBindings/PackageIndex.js.map +1 -0
- package/base/lib/osBindings/PackageInfo.d.ts +10 -0
- package/base/lib/osBindings/PackageInfo.js +3 -0
- package/base/lib/osBindings/PackageInfo.js.map +1 -0
- package/base/lib/osBindings/PackageInfoShort.d.ts +3 -0
- package/base/lib/osBindings/PackageInfoShort.js +4 -0
- package/base/lib/osBindings/PackageInfoShort.js.map +1 -0
- package/base/lib/osBindings/PackageState.d.ts +14 -0
- package/base/lib/osBindings/PackageState.js +3 -0
- package/base/lib/osBindings/PackageState.js.map +1 -0
- package/base/lib/osBindings/PackageVersionInfo.d.ts +29 -0
- package/base/lib/osBindings/PackageVersionInfo.js +3 -0
- package/base/lib/osBindings/PackageVersionInfo.js.map +1 -0
- package/base/lib/osBindings/PasswordType.d.ts +2 -0
- package/base/lib/osBindings/PasswordType.js +3 -0
- package/base/lib/osBindings/PasswordType.js.map +1 -0
- package/base/lib/osBindings/PathOrUrl.d.ts +1 -0
- package/base/lib/osBindings/PathOrUrl.js +4 -0
- package/base/lib/osBindings/PathOrUrl.js.map +1 -0
- package/base/lib/osBindings/ProcedureId.d.ts +4 -0
- package/base/lib/osBindings/ProcedureId.js +3 -0
- package/base/lib/osBindings/ProcedureId.js.map +1 -0
- package/base/lib/osBindings/Progress.d.ts +4 -0
- package/base/lib/osBindings/Progress.js +4 -0
- package/base/lib/osBindings/Progress.js.map +1 -0
- package/base/lib/osBindings/Public.d.ts +7 -0
- package/base/lib/osBindings/Public.js +3 -0
- package/base/lib/osBindings/Public.js.map +1 -0
- package/base/lib/osBindings/RecoverySource.d.ts +10 -0
- package/base/lib/osBindings/RecoverySource.js +3 -0
- package/base/lib/osBindings/RecoverySource.js.map +1 -0
- package/base/lib/osBindings/RegistryAsset.d.ts +10 -0
- package/base/lib/osBindings/RegistryAsset.js +3 -0
- package/base/lib/osBindings/RegistryAsset.js.map +1 -0
- package/base/lib/osBindings/RegistryInfo.d.ts +9 -0
- package/base/lib/osBindings/RegistryInfo.js +3 -0
- package/base/lib/osBindings/RegistryInfo.js.map +1 -0
- package/base/lib/osBindings/RemoveVersionParams.d.ts +3 -0
- package/base/lib/osBindings/RemoveVersionParams.js +4 -0
- package/base/lib/osBindings/RemoveVersionParams.js.map +1 -0
- package/base/lib/osBindings/ReplayId.d.ts +1 -0
- package/base/lib/osBindings/ReplayId.js +4 -0
- package/base/lib/osBindings/ReplayId.js.map +1 -0
- package/base/lib/osBindings/RequestActionParams.d.ts +15 -0
- package/base/lib/osBindings/RequestActionParams.js +3 -0
- package/base/lib/osBindings/RequestActionParams.js.map +1 -0
- package/base/lib/osBindings/RequestCommitment.d.ts +7 -0
- package/base/lib/osBindings/RequestCommitment.js +3 -0
- package/base/lib/osBindings/RequestCommitment.js.map +1 -0
- package/base/lib/osBindings/RunActionParams.d.ts +7 -0
- package/base/lib/osBindings/RunActionParams.js +3 -0
- package/base/lib/osBindings/RunActionParams.js.map +1 -0
- package/base/lib/osBindings/Security.d.ts +3 -0
- package/base/lib/osBindings/Security.js +4 -0
- package/base/lib/osBindings/Security.js.map +1 -0
- package/base/lib/osBindings/ServerInfo.d.ts +33 -0
- package/base/lib/osBindings/ServerInfo.js +3 -0
- package/base/lib/osBindings/ServerInfo.js.map +1 -0
- package/base/lib/osBindings/ServerSpecs.d.ts +5 -0
- package/base/lib/osBindings/ServerSpecs.js +4 -0
- package/base/lib/osBindings/ServerSpecs.js.map +1 -0
- package/base/lib/osBindings/ServerStatus.d.ts +12 -0
- package/base/lib/osBindings/ServerStatus.js +3 -0
- package/base/lib/osBindings/ServerStatus.js.map +1 -0
- package/base/lib/osBindings/ServiceInterface.d.ts +12 -0
- package/base/lib/osBindings/ServiceInterface.js +3 -0
- package/base/lib/osBindings/ServiceInterface.js.map +1 -0
- package/base/lib/osBindings/ServiceInterfaceId.d.ts +1 -0
- package/base/lib/osBindings/ServiceInterfaceId.js +4 -0
- package/base/lib/osBindings/ServiceInterfaceId.js.map +1 -0
- package/base/lib/osBindings/ServiceInterfaceType.d.ts +1 -0
- package/base/lib/osBindings/ServiceInterfaceType.js +4 -0
- package/base/lib/osBindings/ServiceInterfaceType.js.map +1 -0
- package/base/lib/osBindings/Session.d.ts +5 -0
- package/base/lib/osBindings/Session.js +4 -0
- package/base/lib/osBindings/Session.js.map +1 -0
- package/base/lib/osBindings/SessionList.d.ts +5 -0
- package/base/lib/osBindings/SessionList.js +3 -0
- package/base/lib/osBindings/SessionList.js.map +1 -0
- package/base/lib/osBindings/Sessions.d.ts +7 -0
- package/base/lib/osBindings/Sessions.js +4 -0
- package/base/lib/osBindings/Sessions.js.map +1 -0
- package/base/lib/osBindings/SetDataVersionParams.d.ts +3 -0
- package/base/lib/osBindings/SetDataVersionParams.js +4 -0
- package/base/lib/osBindings/SetDataVersionParams.js.map +1 -0
- package/base/lib/osBindings/SetDependenciesParams.d.ts +4 -0
- package/base/lib/osBindings/SetDependenciesParams.js +3 -0
- package/base/lib/osBindings/SetDependenciesParams.js.map +1 -0
- package/base/lib/osBindings/SetHealth.d.ts +20 -0
- package/base/lib/osBindings/SetHealth.js +3 -0
- package/base/lib/osBindings/SetHealth.js.map +1 -0
- package/base/lib/osBindings/SetMainStatus.d.ts +4 -0
- package/base/lib/osBindings/SetMainStatus.js +3 -0
- package/base/lib/osBindings/SetMainStatus.js.map +1 -0
- package/base/lib/osBindings/SetMainStatusStatus.d.ts +1 -0
- package/base/lib/osBindings/SetMainStatusStatus.js +4 -0
- package/base/lib/osBindings/SetMainStatusStatus.js.map +1 -0
- package/base/lib/osBindings/SetStoreParams.d.ts +4 -0
- package/base/lib/osBindings/SetStoreParams.js +4 -0
- package/base/lib/osBindings/SetStoreParams.js.map +1 -0
- package/base/lib/osBindings/SetupExecuteParams.d.ts +7 -0
- package/base/lib/osBindings/SetupExecuteParams.js +3 -0
- package/base/lib/osBindings/SetupExecuteParams.js.map +1 -0
- package/base/lib/osBindings/SetupProgress.d.ts +6 -0
- package/base/lib/osBindings/SetupProgress.js +3 -0
- package/base/lib/osBindings/SetupProgress.js.map +1 -0
- package/base/lib/osBindings/SetupResult.d.ts +5 -0
- package/base/lib/osBindings/SetupResult.js +4 -0
- package/base/lib/osBindings/SetupResult.js.map +1 -0
- package/base/lib/osBindings/SetupStatusRes.d.ts +7 -0
- package/base/lib/osBindings/SetupStatusRes.js +3 -0
- package/base/lib/osBindings/SetupStatusRes.js.map +1 -0
- package/base/lib/osBindings/SignAssetParams.d.ts +6 -0
- package/base/lib/osBindings/SignAssetParams.js +3 -0
- package/base/lib/osBindings/SignAssetParams.js.map +1 -0
- package/base/lib/osBindings/SignerInfo.d.ts +7 -0
- package/base/lib/osBindings/SignerInfo.js +3 -0
- package/base/lib/osBindings/SignerInfo.js.map +1 -0
- package/base/lib/osBindings/SmtpValue.d.ts +7 -0
- package/base/lib/osBindings/SmtpValue.js +4 -0
- package/base/lib/osBindings/SmtpValue.js.map +1 -0
- package/base/lib/osBindings/StartStop.d.ts +1 -0
- package/base/lib/osBindings/StartStop.js +4 -0
- package/base/lib/osBindings/StartStop.js.map +1 -0
- package/base/lib/osBindings/UpdatingState.d.ts +6 -0
- package/base/lib/osBindings/UpdatingState.js +3 -0
- package/base/lib/osBindings/UpdatingState.js.map +1 -0
- package/base/lib/osBindings/VerifyCifsParams.d.ts +7 -0
- package/base/lib/osBindings/VerifyCifsParams.js +3 -0
- package/base/lib/osBindings/VerifyCifsParams.js.map +1 -0
- package/base/lib/osBindings/Version.d.ts +1 -0
- package/base/lib/osBindings/Version.js +4 -0
- package/base/lib/osBindings/Version.js.map +1 -0
- package/base/lib/osBindings/VersionSignerParams.d.ts +5 -0
- package/base/lib/osBindings/VersionSignerParams.js +3 -0
- package/base/lib/osBindings/VersionSignerParams.js.map +1 -0
- package/base/lib/osBindings/VolumeId.d.ts +1 -0
- package/base/lib/osBindings/VolumeId.js +4 -0
- package/base/lib/osBindings/VolumeId.js.map +1 -0
- package/base/lib/osBindings/WifiInfo.d.ts +6 -0
- package/base/lib/osBindings/WifiInfo.js +4 -0
- package/base/lib/osBindings/WifiInfo.js.map +1 -0
- package/base/lib/osBindings/index.d.ts +172 -0
- package/base/lib/osBindings/index.js +3 -0
- package/base/lib/osBindings/index.js.map +1 -0
- package/base/lib/s9pk/index.d.ts +11 -0
- package/base/lib/s9pk/index.js +54 -0
- package/base/lib/s9pk/index.js.map +1 -0
- package/base/lib/s9pk/merkleArchive/directoryContents.d.ts +11 -0
- package/base/lib/s9pk/merkleArchive/directoryContents.js +72 -0
- package/base/lib/s9pk/merkleArchive/directoryContents.js.map +1 -0
- package/base/lib/s9pk/merkleArchive/fileContents.d.ts +7 -0
- package/base/lib/s9pk/merkleArchive/fileContents.js +23 -0
- package/base/lib/s9pk/merkleArchive/fileContents.js.map +1 -0
- package/base/lib/s9pk/merkleArchive/index.d.ts +33 -0
- package/base/lib/s9pk/merkleArchive/index.js +119 -0
- package/base/lib/s9pk/merkleArchive/index.js.map +1 -0
- package/base/lib/s9pk/merkleArchive/varint.d.ts +9 -0
- package/base/lib/s9pk/merkleArchive/varint.js +61 -0
- package/base/lib/s9pk/merkleArchive/varint.js.map +1 -0
- package/base/lib/types/ManifestTypes.d.ts +158 -0
- package/base/lib/types/ManifestTypes.js +3 -0
- package/base/lib/types/ManifestTypes.js.map +1 -0
- package/base/lib/types.d.ts +196 -0
- package/base/lib/types.js +39 -0
- package/base/lib/types.js.map +1 -0
- package/base/lib/util/GetSystemSmtp.d.ts +17 -0
- package/base/lib/util/GetSystemSmtp.js +39 -0
- package/base/lib/util/GetSystemSmtp.js.map +1 -0
- package/base/lib/util/Hostname.d.ts +2 -0
- package/base/lib/util/Hostname.js +26 -0
- package/base/lib/util/Hostname.js.map +1 -0
- package/base/lib/util/PathBuilder.d.ts +13 -0
- package/base/lib/util/PathBuilder.js +23 -0
- package/base/lib/util/PathBuilder.js.map +1 -0
- package/base/lib/util/asError.d.ts +1 -0
- package/base/lib/util/asError.js +14 -0
- package/base/lib/util/asError.js.map +1 -0
- package/base/lib/util/deepEqual.d.ts +1 -0
- package/base/lib/util/deepEqual.js +29 -0
- package/base/lib/util/deepEqual.js.map +1 -0
- package/base/lib/util/deepMerge.d.ts +4 -0
- package/base/lib/util/deepMerge.js +87 -0
- package/base/lib/util/deepMerge.js.map +1 -0
- package/base/lib/util/getDefaultString.d.ts +2 -0
- package/base/lib/util/getDefaultString.js +14 -0
- package/base/lib/util/getDefaultString.js.map +1 -0
- package/base/lib/util/getRandomCharInSet.d.ts +1 -0
- package/base/lib/util/getRandomCharInSet.js +103 -0
- package/base/lib/util/getRandomCharInSet.js.map +1 -0
- package/base/lib/util/getRandomString.d.ts +2 -0
- package/base/lib/util/getRandomString.js +13 -0
- package/base/lib/util/getRandomString.js.map +1 -0
- package/base/lib/util/getServiceInterface.d.ts +73 -0
- package/base/lib/util/getServiceInterface.js +193 -0
- package/base/lib/util/getServiceInterface.js.map +1 -0
- package/base/lib/util/getServiceInterfaces.d.ts +26 -0
- package/base/lib/util/getServiceInterfaces.js +94 -0
- package/base/lib/util/getServiceInterfaces.js.map +1 -0
- package/base/lib/util/graph.d.ts +19 -0
- package/base/lib/util/graph.js +213 -0
- package/base/lib/util/graph.js.map +1 -0
- package/base/lib/util/inMs.d.ts +1 -0
- package/base/lib/util/inMs.js +42 -0
- package/base/lib/util/inMs.js.map +1 -0
- package/base/lib/util/index.d.ts +19 -0
- package/base/lib/util/index.js +69 -0
- package/base/lib/util/index.js.map +1 -0
- package/base/lib/util/nullIfEmpty.d.ts +7 -0
- package/base/lib/util/nullIfEmpty.js +16 -0
- package/base/lib/util/nullIfEmpty.js.map +1 -0
- package/base/lib/util/once.d.ts +1 -0
- package/base/lib/util/once.js +14 -0
- package/base/lib/util/once.js.map +1 -0
- package/base/lib/util/patterns.d.ts +12 -0
- package/base/lib/util/patterns.js +72 -0
- package/base/lib/util/patterns.js.map +1 -0
- package/base/lib/util/regexes.d.ts +11 -0
- package/base/lib/util/regexes.js +21 -0
- package/base/lib/util/regexes.js.map +1 -0
- package/base/lib/util/splitCommand.d.ts +1 -0
- package/base/lib/util/splitCommand.js +11 -0
- package/base/lib/util/splitCommand.js.map +1 -0
- package/base/lib/util/stringFromStdErrOut.d.ts +4 -0
- package/base/lib/util/stringFromStdErrOut.js +8 -0
- package/base/lib/util/stringFromStdErrOut.js.map +1 -0
- package/base/lib/util/typeHelpers.d.ts +20 -0
- package/base/lib/util/typeHelpers.js +13 -0
- package/base/lib/util/typeHelpers.js.map +1 -0
- package/package/lib/StartSdk.d.ts +1182 -0
- package/package/lib/StartSdk.js +810 -0
- package/package/lib/StartSdk.js.map +1 -0
- package/package/lib/backup/Backups.d.ts +52 -0
- package/package/lib/backup/Backups.js +194 -0
- package/package/lib/backup/Backups.js.map +1 -0
- package/package/lib/backup/index.d.ts +2 -0
- package/package/lib/backup/index.js +5 -0
- package/package/lib/backup/index.js.map +1 -0
- package/package/lib/backup/setupBackups.d.ts +9 -0
- package/package/lib/backup/setupBackups.js +28 -0
- package/package/lib/backup/setupBackups.js.map +1 -0
- package/package/lib/health/HealthCheck.d.ts +11 -0
- package/package/lib/health/HealthCheck.js +52 -0
- package/package/lib/health/HealthCheck.js.map +1 -0
- package/package/lib/health/checkFns/HealthCheckResult.d.ts +2 -0
- package/package/lib/health/checkFns/HealthCheckResult.js +3 -0
- package/package/lib/health/checkFns/HealthCheckResult.js.map +1 -0
- package/package/lib/health/checkFns/checkPortListening.d.ts +13 -0
- package/package/lib/health/checkFns/checkPortListening.js +71 -0
- package/package/lib/health/checkFns/checkPortListening.js.map +1 -0
- package/package/lib/health/checkFns/checkWebUrl.d.ts +14 -0
- package/package/lib/health/checkFns/checkWebUrl.js +27 -0
- package/package/lib/health/checkFns/checkWebUrl.js.map +1 -0
- package/package/lib/health/checkFns/index.d.ts +8 -0
- package/package/lib/health/checkFns/index.js +14 -0
- package/package/lib/health/checkFns/index.js.map +1 -0
- package/package/lib/health/checkFns/runHealthScript.d.ts +14 -0
- package/package/lib/health/checkFns/runHealthScript.js +28 -0
- package/package/lib/health/checkFns/runHealthScript.js.map +1 -0
- package/package/lib/health/index.d.ts +1 -0
- package/package/lib/health/index.js +4 -0
- package/package/lib/health/index.js.map +1 -0
- package/package/lib/index.d.ts +22 -0
- package/package/lib/index.js +69 -0
- package/package/lib/index.js.map +1 -0
- package/package/lib/inits/index.d.ts +3 -0
- package/package/lib/inits/index.js +6 -0
- package/package/lib/inits/index.js.map +1 -0
- package/package/lib/inits/setupInit.d.ts +14 -0
- package/package/lib/inits/setupInit.js +49 -0
- package/package/lib/inits/setupInit.js.map +1 -0
- package/package/lib/inits/setupInstall.d.ts +11 -0
- package/package/lib/inits/setupInstall.js +22 -0
- package/package/lib/inits/setupInstall.js.map +1 -0
- package/package/lib/inits/setupUninstall.d.ts +11 -0
- package/package/lib/inits/setupUninstall.js +23 -0
- package/package/lib/inits/setupUninstall.js.map +1 -0
- package/package/lib/mainFn/CommandController.d.ts +39 -0
- package/package/lib/mainFn/CommandController.js +100 -0
- package/package/lib/mainFn/CommandController.js.map +1 -0
- package/package/lib/mainFn/Daemon.d.ts +43 -0
- package/package/lib/mainFn/Daemon.js +57 -0
- package/package/lib/mainFn/Daemon.js.map +1 -0
- package/package/lib/mainFn/Daemons.d.ts +113 -0
- package/package/lib/mainFn/Daemons.js +129 -0
- package/package/lib/mainFn/Daemons.js.map +1 -0
- package/package/lib/mainFn/HealthDaemon.d.ts +40 -0
- package/package/lib/mainFn/HealthDaemon.js +131 -0
- package/package/lib/mainFn/HealthDaemon.js.map +1 -0
- package/package/lib/mainFn/Mounts.d.ts +33 -0
- package/package/lib/mainFn/Mounts.js +82 -0
- package/package/lib/mainFn/Mounts.js.map +1 -0
- package/package/lib/mainFn/index.d.ts +19 -0
- package/package/lib/mainFn/index.js +24 -0
- package/package/lib/mainFn/index.js.map +1 -0
- package/package/lib/manifest/setupManifest.d.ts +17 -0
- package/package/lib/manifest/setupManifest.js +56 -0
- package/package/lib/manifest/setupManifest.js.map +1 -0
- package/package/lib/store/getStore.d.ts +30 -0
- package/package/lib/store/getStore.js +53 -0
- package/package/lib/store/getStore.js.map +1 -0
- package/package/lib/store/setupExposeStore.d.ts +16 -0
- package/package/lib/store/setupExposeStore.js +21 -0
- package/package/lib/store/setupExposeStore.js.map +1 -0
- package/package/lib/test/health.readyCheck.test.d.ts +1 -0
- package/package/lib/test/health.readyCheck.test.js +18 -0
- package/package/lib/test/health.readyCheck.test.js.map +1 -0
- package/package/lib/test/host.test.d.ts +1 -0
- package/package/lib/test/host.test.js +30 -0
- package/package/lib/test/host.test.js.map +1 -0
- package/package/lib/test/inputSpecBuilder.test.d.ts +1 -0
- package/package/lib/test/inputSpecBuilder.test.js +775 -0
- package/package/lib/test/inputSpecBuilder.test.js.map +1 -0
- package/package/lib/test/makeOutput.d.ts +1 -0
- package/package/lib/test/makeOutput.js +398 -0
- package/package/lib/test/makeOutput.js.map +1 -0
- package/package/lib/test/output.d.ts +145 -0
- package/package/lib/test/output.js +364 -0
- package/package/lib/test/output.js.map +1 -0
- package/package/lib/test/output.sdk.d.ts +992 -0
- package/package/lib/test/output.sdk.js +51 -0
- package/package/lib/test/output.sdk.js.map +1 -0
- package/package/lib/test/output.test.d.ts +2 -0
- package/package/lib/test/output.test.js +118 -0
- package/package/lib/test/output.test.js.map +1 -0
- package/package/lib/test/store.test.d.ts +1 -0
- package/package/lib/test/store.test.js +90 -0
- package/package/lib/test/store.test.js.map +1 -0
- package/package/lib/trigger/TriggerInput.d.ts +4 -0
- package/package/lib/trigger/TriggerInput.js +3 -0
- package/package/lib/trigger/TriggerInput.js.map +1 -0
- package/package/lib/trigger/changeOnFirstSuccess.d.ts +5 -0
- package/package/lib/trigger/changeOnFirstSuccess.js +24 -0
- package/package/lib/trigger/changeOnFirstSuccess.js.map +1 -0
- package/package/lib/trigger/cooldownTrigger.d.ts +1 -0
- package/package/lib/trigger/cooldownTrigger.js +13 -0
- package/package/lib/trigger/cooldownTrigger.js.map +1 -0
- package/package/lib/trigger/defaultTrigger.d.ts +1 -0
- package/package/lib/trigger/defaultTrigger.js +10 -0
- package/package/lib/trigger/defaultTrigger.js.map +1 -0
- package/package/lib/trigger/index.d.ts +4 -0
- package/package/lib/trigger/index.js +8 -0
- package/package/lib/trigger/index.js.map +1 -0
- package/package/lib/trigger/lastStatus.d.ts +8 -0
- package/package/lib/trigger/lastStatus.js +30 -0
- package/package/lib/trigger/lastStatus.js.map +1 -0
- package/package/lib/trigger/successFailure.d.ts +5 -0
- package/package/lib/trigger/successFailure.js +7 -0
- package/package/lib/trigger/successFailure.js.map +1 -0
- package/package/lib/util/GetSslCertificate.d.ts +20 -0
- package/package/lib/util/GetSslCertificate.js +48 -0
- package/package/lib/util/GetSslCertificate.js.map +1 -0
- package/package/lib/util/SubContainer.d.ts +108 -0
- package/package/lib/util/SubContainer.js +340 -0
- package/package/lib/util/SubContainer.js.map +1 -0
- package/package/lib/util/fileHelper.d.ts +79 -0
- package/package/lib/util/fileHelper.js +211 -0
- package/package/lib/util/fileHelper.js.map +1 -0
- package/package/lib/util/index.d.ts +3 -0
- package/package/lib/util/index.js +23 -0
- package/package/lib/util/index.js.map +1 -0
- package/package/lib/version/VersionGraph.d.ts +23 -0
- package/package/lib/version/VersionGraph.js +108 -0
- package/package/lib/version/VersionGraph.js.map +1 -0
- package/package/lib/version/VersionInfo.d.ts +49 -0
- package/package/lib/version/VersionInfo.js +55 -0
- package/package/lib/version/VersionInfo.js.map +1 -0
- package/package/lib/version/index.d.ts +2 -0
- package/package/lib/version/index.js +19 -0
- package/package/lib/version/index.js.map +1 -0
- package/package/scripts/oldSpecToBuilder.d.ts +6 -0
- package/package/scripts/oldSpecToBuilder.js +343 -0
- package/package/scripts/oldSpecToBuilder.js.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,1182 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { RequiredDefault, Value } from "../../base/lib/actions/input/builder/value";
|
|
3
|
+
import { InputSpec, ExtractInputSpecType, LazyBuild } from "../../base/lib/actions/input/builder/inputSpec";
|
|
4
|
+
import { DefaultString, ListValueSpecText, Pattern, RandomString, UniqueBy, ValueSpecDatetime, ValueSpecText } from "../../base/lib/actions/input/inputSpecTypes";
|
|
5
|
+
import { Variants } from "../../base/lib/actions/input/builder/variants";
|
|
6
|
+
import { Action, Actions } from "../../base/lib/actions/setupActions";
|
|
7
|
+
import { SyncOptions, ServiceInterfaceId, PackageId, HealthReceipt, ServiceInterfaceType, Effects } from "../../base/lib/types";
|
|
8
|
+
import * as patterns from "../../base/lib/util/patterns";
|
|
9
|
+
import { BackupSync, Backups } from "./backup/Backups";
|
|
10
|
+
import { Daemons } from "./mainFn/Daemons";
|
|
11
|
+
import { HealthCheckParams } from "./health/HealthCheck";
|
|
12
|
+
import { checkPortListening } from "./health/checkFns/checkPortListening";
|
|
13
|
+
import { List } from "../../base/lib/actions/input/builder/list";
|
|
14
|
+
import { Install, InstallFn } from "./inits/setupInstall";
|
|
15
|
+
import { SetupBackupsParams } from "./backup/setupBackups";
|
|
16
|
+
import { Uninstall, UninstallFn } from "./inits/setupUninstall";
|
|
17
|
+
import { changeOnFirstSuccess, cooldownTrigger } from "./trigger";
|
|
18
|
+
import { UpdateServiceInterfaces } from "../../base/lib/interfaces/setupInterfaces";
|
|
19
|
+
import { MultiHost, Scheme } from "../../base/lib/interfaces/Host";
|
|
20
|
+
import { ServiceInterfaceBuilder } from "../../base/lib/interfaces/ServiceInterfaceBuilder";
|
|
21
|
+
import { GetSystemSmtp } from "./util";
|
|
22
|
+
import { nullIfEmpty } from "./util";
|
|
23
|
+
import { CommandOptions, MountOptions, SubContainer } from "./util/SubContainer";
|
|
24
|
+
import { Mounts } from "./mainFn/Mounts";
|
|
25
|
+
import { Dependency } from "../../base/lib/dependencies/Dependency";
|
|
26
|
+
import * as T from "../../base/lib/types";
|
|
27
|
+
import { PathBuilder } from "../../base/lib/util/PathBuilder";
|
|
28
|
+
import { CheckDependencies } from "../../base/lib/dependencies/dependencies";
|
|
29
|
+
import { GetSslCertificate } from "./util";
|
|
30
|
+
import { VersionGraph } from "./version";
|
|
31
|
+
import { MaybeFn } from "../../base/lib/actions/setupActions";
|
|
32
|
+
import { GetInput } from "../../base/lib/actions/setupActions";
|
|
33
|
+
import { Run } from "../../base/lib/actions/setupActions";
|
|
34
|
+
import * as actions from "../../base/lib/actions";
|
|
35
|
+
export declare const SDKVersion: "0.3.6";
|
|
36
|
+
type AnyNeverCond<T extends any[], Then, Else> = T extends [] ? Else : T extends [never, ...Array<any>] ? Then : T extends [any, ...infer U] ? AnyNeverCond<U, Then, Else> : never;
|
|
37
|
+
export declare class StartSdk<Manifest extends T.Manifest, Store> {
|
|
38
|
+
readonly manifest: Manifest;
|
|
39
|
+
private constructor();
|
|
40
|
+
static of(): StartSdk<never, never>;
|
|
41
|
+
withManifest<Manifest extends T.Manifest = never>(manifest: Manifest): StartSdk<Manifest, Store>;
|
|
42
|
+
withStore<Store extends Record<string, any>>(): StartSdk<Manifest, Store>;
|
|
43
|
+
build(isReady: AnyNeverCond<[Manifest, Store], "Build not ready", true>): {
|
|
44
|
+
action: {
|
|
45
|
+
run: <Input extends Record<string, unknown>>(options: {
|
|
46
|
+
effects: Effects;
|
|
47
|
+
actionId: string;
|
|
48
|
+
input?: actions.RunActionInput<Input> | undefined;
|
|
49
|
+
}) => Promise<T.ActionResult | null>;
|
|
50
|
+
request: <T extends Action<string, any, any, Record<string, unknown>>>(effects: Effects, packageId: string, action: T, severity: T.ActionSeverity, options?: actions.ActionRequestOptions<T> | undefined) => Promise<null>;
|
|
51
|
+
requestOwn: <T_1 extends Action<string, Store, any, Record<string, unknown>>>(effects: Effects, action: T_1, severity: T.ActionSeverity, options?: actions.ActionRequestOptions<T_1> | undefined) => Promise<null>;
|
|
52
|
+
clearRequest: (effects: T.Effects, ...replayIds: string[]) => Promise<null>;
|
|
53
|
+
};
|
|
54
|
+
checkDependencies: <DependencyId extends keyof Manifest["dependencies"] & string = keyof Manifest["dependencies"] & string>(effects: Effects, packageIds?: DependencyId[] | undefined) => Promise<CheckDependencies<DependencyId>>;
|
|
55
|
+
serviceInterface: {
|
|
56
|
+
getOwn: <E extends Effects>(effects: E, id: ServiceInterfaceId) => import("./util").GetServiceInterface;
|
|
57
|
+
get: <E_1 extends Effects>(effects: E_1, opts: {
|
|
58
|
+
id: ServiceInterfaceId;
|
|
59
|
+
packageId: PackageId;
|
|
60
|
+
}) => import("./util").GetServiceInterface;
|
|
61
|
+
getAllOwn: <E_2 extends Effects>(effects: E_2) => import("../../base/lib/util/getServiceInterfaces").GetServiceInterfaces;
|
|
62
|
+
getAll: <E_3 extends Effects>(effects: E_3, opts: {
|
|
63
|
+
packageId: PackageId;
|
|
64
|
+
}) => import("../../base/lib/util/getServiceInterfaces").GetServiceInterfaces;
|
|
65
|
+
};
|
|
66
|
+
store: {
|
|
67
|
+
get: <E_4 extends Effects, StoreValue = unknown>(effects: E_4, packageId: string, path: PathBuilder<Store, StoreValue>) => import("./store/getStore").GetStore<Store, StoreValue>;
|
|
68
|
+
getOwn: <E_5 extends Effects, StoreValue_1 = unknown>(effects: E_5, path: PathBuilder<Store, StoreValue_1>) => import("./store/getStore").GetStore<Store, StoreValue_1>;
|
|
69
|
+
setOwn: <E_6 extends Effects, Path extends import("../../base/lib/util/PathBuilder").PathBuilderStored<Store, unknown>>(effects: E_6, path: Path, value: Path extends PathBuilder<Store, infer Value_1> ? Value_1 : never) => Promise<null>;
|
|
70
|
+
};
|
|
71
|
+
host: {
|
|
72
|
+
multi: (effects: Effects, id: string) => MultiHost;
|
|
73
|
+
};
|
|
74
|
+
nullIfEmpty: typeof nullIfEmpty;
|
|
75
|
+
runCommand: <A extends string>(effects: Effects, image: {
|
|
76
|
+
id: keyof Manifest["images"] & T.ImageId;
|
|
77
|
+
sharedRun?: boolean;
|
|
78
|
+
}, command: T.CommandType, options: CommandOptions & {
|
|
79
|
+
mounts?: {
|
|
80
|
+
path: string;
|
|
81
|
+
options: MountOptions;
|
|
82
|
+
}[] | undefined;
|
|
83
|
+
}, name: string) => Promise<{
|
|
84
|
+
stdout: string | Buffer;
|
|
85
|
+
stderr: string | Buffer;
|
|
86
|
+
}>;
|
|
87
|
+
/**
|
|
88
|
+
* TODO: rewrite this
|
|
89
|
+
* @description Use this function to create a static Action, including optional form input.
|
|
90
|
+
*
|
|
91
|
+
* By convention, each Action should receive its own file.
|
|
92
|
+
*
|
|
93
|
+
* @param id
|
|
94
|
+
* @param metaData
|
|
95
|
+
* @param fn
|
|
96
|
+
* @returns
|
|
97
|
+
* @example
|
|
98
|
+
* In this example, we create an Action that prints a name to the console. We present a user
|
|
99
|
+
* with a form for optionally entering a temp name. If no temp name is provided, we use the name
|
|
100
|
+
* from the underlying `inputSpec.yaml` file. If no name is there, we use "Unknown". Then, we return
|
|
101
|
+
* a message to the user informing them what happened.
|
|
102
|
+
*
|
|
103
|
+
* ```
|
|
104
|
+
import { sdk } from '../sdk'
|
|
105
|
+
const { InputSpec, Value } = sdk
|
|
106
|
+
import { yamlFile } from '../file-models/inputSpec.yml'
|
|
107
|
+
|
|
108
|
+
const input = InputSpec.of({
|
|
109
|
+
nameToPrint: Value.text({
|
|
110
|
+
name: 'Temp Name',
|
|
111
|
+
description: 'If no name is provided, the name from inputSpec will be used',
|
|
112
|
+
required: false,
|
|
113
|
+
}),
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
export const nameToLog = sdk.createAction(
|
|
117
|
+
// id
|
|
118
|
+
'nameToLogs',
|
|
119
|
+
|
|
120
|
+
// metadata
|
|
121
|
+
{
|
|
122
|
+
name: 'Name to Logs',
|
|
123
|
+
description: 'Prints "Hello [Name]" to the service logs.',
|
|
124
|
+
warning: null,
|
|
125
|
+
disabled: false,
|
|
126
|
+
input,
|
|
127
|
+
allowedStatuses: 'onlyRunning',
|
|
128
|
+
group: null,
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
// the execution function
|
|
132
|
+
async ({ effects, input }) => {
|
|
133
|
+
const name =
|
|
134
|
+
input.nameToPrint || (await yamlFile.read(effects))?.name || 'Unknown'
|
|
135
|
+
|
|
136
|
+
console.info(`Hello ${name}`)
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
version: '0',
|
|
140
|
+
message: `"Hello ${name}" has been written to the service logs. Open your logs to view it.`,
|
|
141
|
+
value: name,
|
|
142
|
+
copyable: true,
|
|
143
|
+
qr: false,
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
)
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
Action: {
|
|
150
|
+
withInput: <Id extends string, InputSpecType extends Record<string, any> | InputSpec<any, never> | InputSpec<any, any>, Type extends ExtractInputSpecType<InputSpecType> = ExtractInputSpecType<InputSpecType>>(id: Id, metadata: MaybeFn<Omit<T.ActionMetadata, "hasInput">>, inputSpec: InputSpecType, getInput: GetInput<Type>, run: Run<Type>) => Action<Id, unknown, InputSpecType, Type>;
|
|
151
|
+
withoutInput: <Id_1 extends string>(id: Id_1, metadata: MaybeFn<Omit<T.ActionMetadata, "hasInput">>, run: Run<{}>) => Action<Id_1, unknown, {}, {}>;
|
|
152
|
+
};
|
|
153
|
+
inputSpecConstants: {
|
|
154
|
+
smtpInputSpec: Value<{
|
|
155
|
+
selection: "disabled";
|
|
156
|
+
value: {};
|
|
157
|
+
} | {
|
|
158
|
+
selection: "system";
|
|
159
|
+
value: {
|
|
160
|
+
customFrom: string | null | undefined;
|
|
161
|
+
};
|
|
162
|
+
} | {
|
|
163
|
+
selection: "custom";
|
|
164
|
+
value: {
|
|
165
|
+
server: string;
|
|
166
|
+
port: number;
|
|
167
|
+
from: string;
|
|
168
|
+
login: string;
|
|
169
|
+
password: string | null | undefined;
|
|
170
|
+
};
|
|
171
|
+
}, never>;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* @description Use this function to create a service interface.
|
|
175
|
+
* @param effects
|
|
176
|
+
* @param options
|
|
177
|
+
* @example
|
|
178
|
+
* In this example, we create a standard web UI
|
|
179
|
+
*
|
|
180
|
+
* ```
|
|
181
|
+
const ui = sdk.createInterface(effects, {
|
|
182
|
+
name: 'Web UI',
|
|
183
|
+
id: 'ui',
|
|
184
|
+
description: 'The primary web app for this service.',
|
|
185
|
+
type: 'ui',
|
|
186
|
+
hasPrimary: false,
|
|
187
|
+
masked: false,
|
|
188
|
+
schemeOverride: null,
|
|
189
|
+
username: null,
|
|
190
|
+
path: '',
|
|
191
|
+
search: {},
|
|
192
|
+
})
|
|
193
|
+
* ```
|
|
194
|
+
*/
|
|
195
|
+
createInterface: (effects: Effects, options: {
|
|
196
|
+
/** The human readable name of this service interface. */
|
|
197
|
+
name: string;
|
|
198
|
+
/** A unique ID for this service interface. */
|
|
199
|
+
id: string;
|
|
200
|
+
/** The human readable description. */
|
|
201
|
+
description: string;
|
|
202
|
+
/** Not available until StartOS v0.4.0. If true, forces the user to select one URL (i.e. .onion, .local, or IP address) as the primary URL. This is needed by some services to function properly. */
|
|
203
|
+
hasPrimary: boolean;
|
|
204
|
+
/** Affects how the interface appears to the user. One of: 'ui', 'api', 'p2p'. */
|
|
205
|
+
type: ServiceInterfaceType;
|
|
206
|
+
/** (optional) prepends the provided username to all URLs. */
|
|
207
|
+
username: null | string;
|
|
208
|
+
/** (optional) appends the provided path to all URLs. */
|
|
209
|
+
path: string;
|
|
210
|
+
/** (optional) appends the provided query params to all URLs. */
|
|
211
|
+
search: Record<string, string>;
|
|
212
|
+
/** (optional) overrides the protocol prefix provided by the bind function.
|
|
213
|
+
*
|
|
214
|
+
* @example `ftp://`
|
|
215
|
+
*/
|
|
216
|
+
schemeOverride: {
|
|
217
|
+
ssl: Scheme;
|
|
218
|
+
noSsl: Scheme;
|
|
219
|
+
} | null;
|
|
220
|
+
/** TODO Aiden how would someone include a password in the URL? Whether or not to mask the URLs on the screen, for example, when they contain a password */
|
|
221
|
+
masked: boolean;
|
|
222
|
+
}) => ServiceInterfaceBuilder;
|
|
223
|
+
getSystemSmtp: <E_7 extends Effects>(effects: E_7) => GetSystemSmtp;
|
|
224
|
+
getSslCerificate: <E_8 extends Effects>(effects: E_8, hostnames: string[], algorithm?: T.Algorithm) => GetSslCertificate;
|
|
225
|
+
HealthCheck: {
|
|
226
|
+
of(o: HealthCheckParams): HealthReceipt;
|
|
227
|
+
};
|
|
228
|
+
Dependency: {
|
|
229
|
+
/**
|
|
230
|
+
* @description Use this function to create a dependency for the service.
|
|
231
|
+
* @property {DependencyType} type
|
|
232
|
+
* @property {VersionRange} versionRange
|
|
233
|
+
* @property {string[]} healthChecks
|
|
234
|
+
*/
|
|
235
|
+
of(data: Dependency["data"]): Dependency;
|
|
236
|
+
};
|
|
237
|
+
healthCheck: {
|
|
238
|
+
checkPortListening: typeof checkPortListening;
|
|
239
|
+
checkWebUrl: (effects: Effects, url: string, { timeout, successMessage, errorMessage, }?: {
|
|
240
|
+
timeout?: number | undefined;
|
|
241
|
+
successMessage?: string | undefined;
|
|
242
|
+
errorMessage?: string | undefined;
|
|
243
|
+
}) => Promise<import("./health/checkFns").HealthCheckResult>;
|
|
244
|
+
runHealthScript: (runCommand: string[], subcontainer: SubContainer, { timeout, errorMessage, message, }?: {
|
|
245
|
+
timeout?: number | undefined;
|
|
246
|
+
errorMessage?: string | undefined;
|
|
247
|
+
message?: ((res: string) => string) | undefined;
|
|
248
|
+
}) => Promise<import("./health/checkFns").HealthCheckResult>;
|
|
249
|
+
};
|
|
250
|
+
patterns: typeof patterns;
|
|
251
|
+
/**
|
|
252
|
+
* @description Use this function to list every Action offered by the service. Actions will be displayed in the provided order.
|
|
253
|
+
*
|
|
254
|
+
* By convention, each Action should receive its own file in the "actions" directory.
|
|
255
|
+
* @example
|
|
256
|
+
*
|
|
257
|
+
* ```
|
|
258
|
+
import { sdk } from '../sdk'
|
|
259
|
+
import { config } from './config'
|
|
260
|
+
import { nameToLogs } from './nameToLogs'
|
|
261
|
+
|
|
262
|
+
export const actions = sdk.Actions.of().addAction(config).addAction(nameToLogs)
|
|
263
|
+
* ```
|
|
264
|
+
*/
|
|
265
|
+
Actions: {
|
|
266
|
+
new (actions: {}): Actions<Store, {}>;
|
|
267
|
+
of<Store_1>(): Actions<Store_1, {}>;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* @description Use this function to determine which volumes are backed up when a user creates a backup, including advanced options.
|
|
271
|
+
* @example
|
|
272
|
+
* In this example, we back up the entire "main" volume and nothing else.
|
|
273
|
+
*
|
|
274
|
+
* ```
|
|
275
|
+
export const { createBackup, restoreBackup } = sdk.setupBackups(sdk.Backups.addVolume('main'))
|
|
276
|
+
* ```
|
|
277
|
+
* @example
|
|
278
|
+
* In this example, we back up the "main" and the "other" volume, but exclude hypothetical directory "excludedDir" from the "other".
|
|
279
|
+
*
|
|
280
|
+
* ```
|
|
281
|
+
export const { createBackup, restoreBackup } = sdk.setupBackups(sdk.Backups
|
|
282
|
+
.addVolume('main')
|
|
283
|
+
.addVolume('other', { exclude: ['path/to/excludedDir'] })
|
|
284
|
+
)
|
|
285
|
+
* ```
|
|
286
|
+
*/
|
|
287
|
+
setupBackups: (options: SetupBackupsParams<Manifest>) => {
|
|
288
|
+
createBackup: T.ExpectedExports.createBackup;
|
|
289
|
+
restoreBackup: T.ExpectedExports.restoreBackup;
|
|
290
|
+
};
|
|
291
|
+
/**
|
|
292
|
+
* @description Use this function to set dependency information.
|
|
293
|
+
*
|
|
294
|
+
* The function executes on service install, update, and inputSpec save. "input" will be of type `Input` for inputSpec save. It will be `null` for install and update.
|
|
295
|
+
* @example
|
|
296
|
+
* In this example, we create a static dependency on Hello World >=1.0.0:0, where Hello World must be running and passing its "webui" health check.
|
|
297
|
+
*
|
|
298
|
+
* ```
|
|
299
|
+
export const setDependencies = sdk.setupDependencies(
|
|
300
|
+
async ({ effects, input }) => {
|
|
301
|
+
return {
|
|
302
|
+
'hello-world': sdk.Dependency.of({
|
|
303
|
+
type: 'running',
|
|
304
|
+
versionRange: VersionRange.parse('>=1.0.0:0'),
|
|
305
|
+
healthChecks: ['webui'],
|
|
306
|
+
}),
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
)
|
|
310
|
+
* ```
|
|
311
|
+
* @example
|
|
312
|
+
* In this example, we create a conditional dependency on Hello World based on a hypothetical "needsWorld" boolean in the store.
|
|
313
|
+
*
|
|
314
|
+
* ```
|
|
315
|
+
export const setDependencies = sdk.setupDependencies(
|
|
316
|
+
async ({ effects }) => {
|
|
317
|
+
if (sdk.store.getOwn(sdk.StorePath.needsWorld).const()) {
|
|
318
|
+
return {
|
|
319
|
+
'hello-world': sdk.Dependency.of({
|
|
320
|
+
type: 'running',
|
|
321
|
+
versionRange: VersionRange.parse('>=1.0.0:0'),
|
|
322
|
+
healthChecks: ['webui'],
|
|
323
|
+
}),
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return {}
|
|
327
|
+
},
|
|
328
|
+
)
|
|
329
|
+
* ```
|
|
330
|
+
*/
|
|
331
|
+
setupDependencies: (fn: (options: {
|
|
332
|
+
effects: Effects;
|
|
333
|
+
}) => Promise<((Manifest["dependencies"] extends infer T_3 ? { [K_1 in keyof T_3]: Manifest["dependencies"][K_1]["optional"] extends false ? K_1 : never; } : never) extends infer T_2 ? { [K in keyof T_2]: Dependency; } : never) & ((Manifest["dependencies"] extends infer T_5 ? { [K_3 in keyof T_5]: Manifest["dependencies"][K_3]["optional"] extends true ? K_3 : never; } : never) extends infer T_4 ? { [K_2 in keyof T_4]?: Dependency | undefined; } : never)>) => (options: {
|
|
334
|
+
effects: Effects;
|
|
335
|
+
}) => Promise<null>;
|
|
336
|
+
setupInit: (versions: VersionGraph<Manifest["version"]>, install: Install<Manifest, Store>, uninstall: Uninstall<Manifest, Store>, setServiceInterfaces: UpdateServiceInterfaces<any>, setDependencies: (options: {
|
|
337
|
+
effects: Effects;
|
|
338
|
+
}) => Promise<void | null | undefined>, actions: Actions<Store, any>, exposedStore: T.ExposedStorePaths) => {
|
|
339
|
+
packageInit: T.ExpectedExports.packageInit;
|
|
340
|
+
packageUninit: T.ExpectedExports.packageUninit;
|
|
341
|
+
containerInit: T.ExpectedExports.containerInit;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* @description Use this function to execute arbitrary logic *once*, on initial install only.
|
|
345
|
+
* @example
|
|
346
|
+
* In the this example, we bootstrap our Store with a random, 16-char admin password.
|
|
347
|
+
*
|
|
348
|
+
* ```
|
|
349
|
+
const install = sdk.setupInstall(async ({ effects }) => {
|
|
350
|
+
await sdk.store.setOwn(
|
|
351
|
+
effects,
|
|
352
|
+
sdk.StorePath.adminPassword,
|
|
353
|
+
utils.getDefaultString({
|
|
354
|
+
charset: 'a-z,A-Z,1-9,!,@,$,%,&,',
|
|
355
|
+
len: 16,
|
|
356
|
+
}),
|
|
357
|
+
)
|
|
358
|
+
})
|
|
359
|
+
* ```
|
|
360
|
+
*/
|
|
361
|
+
setupInstall: (fn: InstallFn<Manifest, Store>) => Install<Manifest, Store>;
|
|
362
|
+
/**
|
|
363
|
+
* @description Use this function to determine how this service will be hosted and served. The function executes on service install, service update, and inputSpec save.
|
|
364
|
+
*
|
|
365
|
+
* "input" will be of type `Input` for inputSpec save. It will be `null` for install and update.
|
|
366
|
+
*
|
|
367
|
+
* To learn about creating multi-hosts and interfaces, check out the {@link https://docs.start9.com/packaging-guide/learn/interfaces documentation}.
|
|
368
|
+
* @param inputSpec - The inputSpec spec of this service as exported from /inputSpec/spec.
|
|
369
|
+
* @param fn - an async function that returns an array of interface receipts. The function always has access to `effects`; it has access to `input` only after inputSpec save, otherwise `input` will be null.
|
|
370
|
+
* @example
|
|
371
|
+
* In this example, we create two UIs from one multi-host, and one API from another multi-host.
|
|
372
|
+
*
|
|
373
|
+
* ```
|
|
374
|
+
export const setInterfaces = sdk.setupInterfaces(
|
|
375
|
+
inputSpecSpec,
|
|
376
|
+
async ({ effects, input }) => {
|
|
377
|
+
// ** UI multi-host **
|
|
378
|
+
const uiMulti = sdk.host.multi(effects, 'ui-multi')
|
|
379
|
+
const uiMultiOrigin = await uiMulti.bindPort(80, {
|
|
380
|
+
protocol: 'http',
|
|
381
|
+
})
|
|
382
|
+
// Primary UI
|
|
383
|
+
const primaryUi = sdk.createInterface(effects, {
|
|
384
|
+
name: 'Primary UI',
|
|
385
|
+
id: 'primary-ui',
|
|
386
|
+
description: 'The primary web app for this service.',
|
|
387
|
+
type: 'ui',
|
|
388
|
+
hasPrimary: false,
|
|
389
|
+
masked: false,
|
|
390
|
+
schemeOverride: null,
|
|
391
|
+
username: null,
|
|
392
|
+
path: '',
|
|
393
|
+
search: {},
|
|
394
|
+
})
|
|
395
|
+
// Admin UI
|
|
396
|
+
const adminUi = sdk.createInterface(effects, {
|
|
397
|
+
name: 'Admin UI',
|
|
398
|
+
id: 'admin-ui',
|
|
399
|
+
description: 'The admin web app for this service.',
|
|
400
|
+
type: 'ui',
|
|
401
|
+
hasPrimary: false,
|
|
402
|
+
masked: false,
|
|
403
|
+
schemeOverride: null,
|
|
404
|
+
username: null,
|
|
405
|
+
path: '/admin',
|
|
406
|
+
search: {},
|
|
407
|
+
})
|
|
408
|
+
// UI receipt
|
|
409
|
+
const uiReceipt = await uiMultiOrigin.export([primaryUi, adminUi])
|
|
410
|
+
|
|
411
|
+
// ** API multi-host **
|
|
412
|
+
const apiMulti = sdk.host.multi(effects, 'api-multi')
|
|
413
|
+
const apiMultiOrigin = await apiMulti.bindPort(5959, {
|
|
414
|
+
protocol: 'http',
|
|
415
|
+
})
|
|
416
|
+
// API
|
|
417
|
+
const api = sdk.createInterface(effects, {
|
|
418
|
+
name: 'Admin API',
|
|
419
|
+
id: 'api',
|
|
420
|
+
description: 'The advanced API for this service.',
|
|
421
|
+
type: 'api',
|
|
422
|
+
hasPrimary: false,
|
|
423
|
+
masked: false,
|
|
424
|
+
schemeOverride: null,
|
|
425
|
+
username: null,
|
|
426
|
+
path: '',
|
|
427
|
+
search: {},
|
|
428
|
+
})
|
|
429
|
+
// API receipt
|
|
430
|
+
const apiReceipt = await apiMultiOrigin.export([api])
|
|
431
|
+
|
|
432
|
+
// ** Return receipts **
|
|
433
|
+
return [uiReceipt, apiReceipt]
|
|
434
|
+
},
|
|
435
|
+
)
|
|
436
|
+
* ```
|
|
437
|
+
*/
|
|
438
|
+
setupInterfaces: import("../../base/lib/interfaces/setupInterfaces").SetupServiceInterfaces;
|
|
439
|
+
setupMain: (fn: (o: {
|
|
440
|
+
effects: Effects;
|
|
441
|
+
started(onTerm: () => PromiseLike<void>): PromiseLike<null>;
|
|
442
|
+
}) => Promise<Daemons<Manifest, any>>) => T.ExpectedExports.main;
|
|
443
|
+
/**
|
|
444
|
+
* Use this function to execute arbitrary logic *once*, on uninstall only. Most services will not use this.
|
|
445
|
+
*/
|
|
446
|
+
setupUninstall: (fn: UninstallFn<Manifest, Store>) => Uninstall<Manifest, Store>;
|
|
447
|
+
trigger: {
|
|
448
|
+
defaultTrigger: import("./trigger").Trigger;
|
|
449
|
+
cooldownTrigger: typeof cooldownTrigger;
|
|
450
|
+
changeOnFirstSuccess: typeof changeOnFirstSuccess;
|
|
451
|
+
successFailure: (o: {
|
|
452
|
+
duringSuccess: import("./trigger").Trigger;
|
|
453
|
+
duringError: import("./trigger").Trigger;
|
|
454
|
+
}) => import("./trigger").Trigger;
|
|
455
|
+
};
|
|
456
|
+
Mounts: {
|
|
457
|
+
of(): Mounts<Manifest>;
|
|
458
|
+
};
|
|
459
|
+
Backups: {
|
|
460
|
+
volumes: (...volumeNames: Array<Manifest["volumes"][number] & string>) => Backups<Manifest>;
|
|
461
|
+
addSets: (...options: BackupSync<Manifest["volumes"][number] & string>[]) => Backups<Manifest>;
|
|
462
|
+
withOptions: (options?: Partial<SyncOptions>) => Backups<Manifest>;
|
|
463
|
+
};
|
|
464
|
+
InputSpec: {
|
|
465
|
+
/**
|
|
466
|
+
* @description Use this function to define the inputSpec specification that will ultimately present to the user as validated form inputs.
|
|
467
|
+
*
|
|
468
|
+
* Most form controls are supported, including text, textarea, number, toggle, select, multiselect, list, color, datetime, object (sub form), and union (conditional sub form).
|
|
469
|
+
* @example
|
|
470
|
+
* In this example, we define a inputSpec form with two value: name and makePublic.
|
|
471
|
+
*
|
|
472
|
+
* ```
|
|
473
|
+
import { sdk } from '../sdk'
|
|
474
|
+
const { InputSpec, Value } = sdk
|
|
475
|
+
|
|
476
|
+
export const inputSpecSpec = InputSpec.of({
|
|
477
|
+
name: Value.text({
|
|
478
|
+
name: 'Name',
|
|
479
|
+
description:
|
|
480
|
+
'When you launch the Hello World UI, it will display "Hello [Name]"',
|
|
481
|
+
required: { default: 'World' },
|
|
482
|
+
}),
|
|
483
|
+
makePublic: Value.toggle({
|
|
484
|
+
name: 'Make Public',
|
|
485
|
+
description: 'Whether or not to expose the service to the network',
|
|
486
|
+
default: false,
|
|
487
|
+
}),
|
|
488
|
+
})
|
|
489
|
+
* ```
|
|
490
|
+
*/
|
|
491
|
+
of: <Spec extends Record<string, Value<any, never> | Value<any, Store>>>(spec: Spec) => InputSpec<{ [K_4 in keyof Spec]: Spec[K_4] extends Value<infer T_6, never> | Value<infer T_6, Store> ? T_6 : never; }, Store>;
|
|
492
|
+
};
|
|
493
|
+
Daemons: {
|
|
494
|
+
of(options: {
|
|
495
|
+
effects: Effects;
|
|
496
|
+
started: (onTerm: () => PromiseLike<void>) => PromiseLike<null>;
|
|
497
|
+
healthReceipts: HealthReceipt[];
|
|
498
|
+
}): Daemons<Manifest, never>;
|
|
499
|
+
};
|
|
500
|
+
List: {
|
|
501
|
+
/**
|
|
502
|
+
* @description Create a list of text inputs.
|
|
503
|
+
* @param a - attributes of the list itself.
|
|
504
|
+
* @param aSpec - attributes describing each member of the list.
|
|
505
|
+
*/
|
|
506
|
+
text: typeof List.text;
|
|
507
|
+
/**
|
|
508
|
+
* @description Create a list of objects.
|
|
509
|
+
* @param a - attributes of the list itself.
|
|
510
|
+
* @param aSpec - attributes describing each member of the list.
|
|
511
|
+
*/
|
|
512
|
+
obj: <Type_1 extends Record<string, any>>(a: {
|
|
513
|
+
name: string;
|
|
514
|
+
description?: string | null;
|
|
515
|
+
/** Presents a warning before adding/removing/editing a list item. */
|
|
516
|
+
warning?: string | null;
|
|
517
|
+
default?: [];
|
|
518
|
+
minLength?: number | null;
|
|
519
|
+
maxLength?: number | null;
|
|
520
|
+
}, aSpec: {
|
|
521
|
+
spec: InputSpec<Type_1, Store>;
|
|
522
|
+
/**
|
|
523
|
+
* @description The ID of a required field on the inner object whose value will be used to display items in the list.
|
|
524
|
+
* @example
|
|
525
|
+
* In this example, we use the value of the `label` field to display members of the list.
|
|
526
|
+
*
|
|
527
|
+
* ```
|
|
528
|
+
spec: InputSpec.of({
|
|
529
|
+
label: Value.text({
|
|
530
|
+
name: 'Label',
|
|
531
|
+
required: false,
|
|
532
|
+
})
|
|
533
|
+
})
|
|
534
|
+
displayAs: 'label',
|
|
535
|
+
uniqueBy: null,
|
|
536
|
+
* ```
|
|
537
|
+
*
|
|
538
|
+
*/
|
|
539
|
+
displayAs?: string | null | undefined;
|
|
540
|
+
/**
|
|
541
|
+
* @description The ID(s) of required fields on the inner object whose value(s) will be used to enforce uniqueness in the list.
|
|
542
|
+
* @example
|
|
543
|
+
* In this example, we use the `label` field to enforce uniqueness, meaning the label field must be unique from other entries.
|
|
544
|
+
*
|
|
545
|
+
* ```
|
|
546
|
+
spec: InputSpec.of({
|
|
547
|
+
label: Value.text({
|
|
548
|
+
name: 'Label',
|
|
549
|
+
required: { default: null },
|
|
550
|
+
})
|
|
551
|
+
pubkey: Value.text({
|
|
552
|
+
name: 'Pubkey',
|
|
553
|
+
required: { default: null },
|
|
554
|
+
})
|
|
555
|
+
})
|
|
556
|
+
displayAs: 'label',
|
|
557
|
+
uniqueBy: 'label',
|
|
558
|
+
* ```
|
|
559
|
+
* @example
|
|
560
|
+
* In this example, we use the `label` field AND the `pubkey` field to enforce uniqueness, meaning both these fields must be unique from other entries.
|
|
561
|
+
*
|
|
562
|
+
* ```
|
|
563
|
+
spec: InputSpec.of({
|
|
564
|
+
label: Value.text({
|
|
565
|
+
name: 'Label',
|
|
566
|
+
required: { default: null },
|
|
567
|
+
})
|
|
568
|
+
pubkey: Value.text({
|
|
569
|
+
name: 'Pubkey',
|
|
570
|
+
required: { default: null },
|
|
571
|
+
})
|
|
572
|
+
})
|
|
573
|
+
displayAs: 'label',
|
|
574
|
+
uniqueBy: { all: ['label', 'pubkey'] },
|
|
575
|
+
* ```
|
|
576
|
+
*/
|
|
577
|
+
uniqueBy?: UniqueBy | undefined;
|
|
578
|
+
}) => List<Type_1[], Store>;
|
|
579
|
+
/**
|
|
580
|
+
* @description Create a list of dynamic text inputs.
|
|
581
|
+
* @param a - attributes of the list itself.
|
|
582
|
+
* @param aSpec - attributes describing each member of the list.
|
|
583
|
+
*/
|
|
584
|
+
dynamicText: (getA: LazyBuild<Store, {
|
|
585
|
+
name: string;
|
|
586
|
+
description?: string | null;
|
|
587
|
+
warning?: string | null;
|
|
588
|
+
default?: string[];
|
|
589
|
+
minLength?: number | null;
|
|
590
|
+
maxLength?: number | null;
|
|
591
|
+
disabled?: false | string;
|
|
592
|
+
generate?: null | RandomString;
|
|
593
|
+
spec: {
|
|
594
|
+
masked?: boolean;
|
|
595
|
+
placeholder?: string | null;
|
|
596
|
+
minLength?: number | null;
|
|
597
|
+
maxLength?: number | null;
|
|
598
|
+
patterns: Pattern[];
|
|
599
|
+
inputmode?: ListValueSpecText["inputmode"];
|
|
600
|
+
};
|
|
601
|
+
}>) => List<string[], Store>;
|
|
602
|
+
};
|
|
603
|
+
StorePath: PathBuilder<Store, Store>;
|
|
604
|
+
Value: {
|
|
605
|
+
/**
|
|
606
|
+
* @description Displays a boolean toggle to enable/disable
|
|
607
|
+
* @example
|
|
608
|
+
* ```
|
|
609
|
+
toggleExample: Value.toggle({
|
|
610
|
+
// required
|
|
611
|
+
name: 'Toggle Example',
|
|
612
|
+
default: true,
|
|
613
|
+
|
|
614
|
+
// optional
|
|
615
|
+
description: null,
|
|
616
|
+
warning: null,
|
|
617
|
+
immutable: false,
|
|
618
|
+
}),
|
|
619
|
+
* ```
|
|
620
|
+
*/
|
|
621
|
+
toggle: typeof Value.toggle;
|
|
622
|
+
/**
|
|
623
|
+
* @description Displays a text input field
|
|
624
|
+
* @example
|
|
625
|
+
* ```
|
|
626
|
+
textExample: Value.text({
|
|
627
|
+
// required
|
|
628
|
+
name: 'Text Example',
|
|
629
|
+
required: false,
|
|
630
|
+
|
|
631
|
+
// optional
|
|
632
|
+
description: null,
|
|
633
|
+
placeholder: null,
|
|
634
|
+
warning: null,
|
|
635
|
+
generate: null,
|
|
636
|
+
inputmode: 'text',
|
|
637
|
+
masked: false,
|
|
638
|
+
minLength: null,
|
|
639
|
+
maxLength: null,
|
|
640
|
+
patterns: [],
|
|
641
|
+
immutable: false,
|
|
642
|
+
}),
|
|
643
|
+
* ```
|
|
644
|
+
*/
|
|
645
|
+
text: typeof Value.text;
|
|
646
|
+
/**
|
|
647
|
+
* @description Displays a large textarea field for long form entry.
|
|
648
|
+
* @example
|
|
649
|
+
* ```
|
|
650
|
+
textareaExample: Value.textarea({
|
|
651
|
+
// required
|
|
652
|
+
name: 'Textarea Example',
|
|
653
|
+
required: false,
|
|
654
|
+
|
|
655
|
+
// optional
|
|
656
|
+
description: null,
|
|
657
|
+
placeholder: null,
|
|
658
|
+
warning: null,
|
|
659
|
+
minLength: null,
|
|
660
|
+
maxLength: null,
|
|
661
|
+
immutable: false,
|
|
662
|
+
}),
|
|
663
|
+
* ```
|
|
664
|
+
*/
|
|
665
|
+
textarea: typeof Value.textarea;
|
|
666
|
+
/**
|
|
667
|
+
* @description Displays a number input field
|
|
668
|
+
* @example
|
|
669
|
+
* ```
|
|
670
|
+
numberExample: Value.number({
|
|
671
|
+
// required
|
|
672
|
+
name: 'Number Example',
|
|
673
|
+
required: false,
|
|
674
|
+
integer: true,
|
|
675
|
+
|
|
676
|
+
// optional
|
|
677
|
+
description: null,
|
|
678
|
+
placeholder: null,
|
|
679
|
+
warning: null,
|
|
680
|
+
min: null,
|
|
681
|
+
max: null,
|
|
682
|
+
immutable: false,
|
|
683
|
+
step: null,
|
|
684
|
+
units: null,
|
|
685
|
+
}),
|
|
686
|
+
* ```
|
|
687
|
+
*/
|
|
688
|
+
number: typeof Value.number;
|
|
689
|
+
/**
|
|
690
|
+
* @description Displays a browser-native color selector.
|
|
691
|
+
* @example
|
|
692
|
+
* ```
|
|
693
|
+
colorExample: Value.color({
|
|
694
|
+
// required
|
|
695
|
+
name: 'Color Example',
|
|
696
|
+
required: false,
|
|
697
|
+
|
|
698
|
+
// optional
|
|
699
|
+
description: null,
|
|
700
|
+
warning: null,
|
|
701
|
+
immutable: false,
|
|
702
|
+
}),
|
|
703
|
+
* ```
|
|
704
|
+
*/
|
|
705
|
+
color: typeof Value.color;
|
|
706
|
+
/**
|
|
707
|
+
* @description Displays a browser-native date/time selector.
|
|
708
|
+
* @example
|
|
709
|
+
* ```
|
|
710
|
+
datetimeExample: Value.datetime({
|
|
711
|
+
// required
|
|
712
|
+
name: 'Datetime Example',
|
|
713
|
+
required: false,
|
|
714
|
+
|
|
715
|
+
// optional
|
|
716
|
+
description: null,
|
|
717
|
+
warning: null,
|
|
718
|
+
immutable: false,
|
|
719
|
+
inputmode: 'datetime-local',
|
|
720
|
+
min: null,
|
|
721
|
+
max: null,
|
|
722
|
+
}),
|
|
723
|
+
* ```
|
|
724
|
+
*/
|
|
725
|
+
datetime: typeof Value.datetime;
|
|
726
|
+
/**
|
|
727
|
+
* @description Displays a select modal with radio buttons, allowing for a single selection.
|
|
728
|
+
* @example
|
|
729
|
+
* ```
|
|
730
|
+
selectExample: Value.select({
|
|
731
|
+
// required
|
|
732
|
+
name: 'Select Example',
|
|
733
|
+
required: false,
|
|
734
|
+
values: {
|
|
735
|
+
radio1: 'Radio 1',
|
|
736
|
+
radio2: 'Radio 2',
|
|
737
|
+
},
|
|
738
|
+
|
|
739
|
+
// optional
|
|
740
|
+
description: null,
|
|
741
|
+
warning: null,
|
|
742
|
+
immutable: false,
|
|
743
|
+
disabled: false,
|
|
744
|
+
}),
|
|
745
|
+
* ```
|
|
746
|
+
*/
|
|
747
|
+
select: typeof Value.select;
|
|
748
|
+
/**
|
|
749
|
+
* @description Displays a select modal with checkboxes, allowing for multiple selections.
|
|
750
|
+
* @example
|
|
751
|
+
* ```
|
|
752
|
+
multiselectExample: Value.multiselect({
|
|
753
|
+
// required
|
|
754
|
+
name: 'Multiselect Example',
|
|
755
|
+
values: {
|
|
756
|
+
option1: 'Option 1',
|
|
757
|
+
option2: 'Option 2',
|
|
758
|
+
},
|
|
759
|
+
default: [],
|
|
760
|
+
|
|
761
|
+
// optional
|
|
762
|
+
description: null,
|
|
763
|
+
warning: null,
|
|
764
|
+
immutable: false,
|
|
765
|
+
disabled: false,
|
|
766
|
+
minlength: null,
|
|
767
|
+
maxLength: null,
|
|
768
|
+
}),
|
|
769
|
+
* ```
|
|
770
|
+
*/
|
|
771
|
+
multiselect: typeof Value.multiselect;
|
|
772
|
+
/**
|
|
773
|
+
* @description Display a collapsable grouping of additional fields, a "sub form". The second value is the inputSpec spec for the sub form.
|
|
774
|
+
* @example
|
|
775
|
+
* ```
|
|
776
|
+
objectExample: Value.object(
|
|
777
|
+
{
|
|
778
|
+
// required
|
|
779
|
+
name: 'Object Example',
|
|
780
|
+
|
|
781
|
+
// optional
|
|
782
|
+
description: null,
|
|
783
|
+
warning: null,
|
|
784
|
+
},
|
|
785
|
+
InputSpec.of({}),
|
|
786
|
+
),
|
|
787
|
+
* ```
|
|
788
|
+
*/
|
|
789
|
+
object: typeof Value.object;
|
|
790
|
+
/**
|
|
791
|
+
* @description Displays a dropdown, allowing for a single selection. Depending on the selection, a different object ("sub form") is presented.
|
|
792
|
+
* @example
|
|
793
|
+
* ```
|
|
794
|
+
unionExample: Value.union(
|
|
795
|
+
{
|
|
796
|
+
// required
|
|
797
|
+
name: 'Union Example',
|
|
798
|
+
required: false,
|
|
799
|
+
|
|
800
|
+
// optional
|
|
801
|
+
description: null,
|
|
802
|
+
warning: null,
|
|
803
|
+
disabled: false,
|
|
804
|
+
immutable: false,
|
|
805
|
+
},
|
|
806
|
+
Variants.of({
|
|
807
|
+
option1: {
|
|
808
|
+
name: 'Option 1',
|
|
809
|
+
spec: InputSpec.of({}),
|
|
810
|
+
},
|
|
811
|
+
option2: {
|
|
812
|
+
name: 'Option 2',
|
|
813
|
+
spec: InputSpec.of({}),
|
|
814
|
+
},
|
|
815
|
+
}),
|
|
816
|
+
),
|
|
817
|
+
* ```
|
|
818
|
+
*/
|
|
819
|
+
union: typeof Value.union;
|
|
820
|
+
/**
|
|
821
|
+
* @description Presents an interface to add/remove/edit items in a list.
|
|
822
|
+
* @example
|
|
823
|
+
* In this example, we create a list of text inputs.
|
|
824
|
+
*
|
|
825
|
+
* ```
|
|
826
|
+
listExampleText: Value.list(
|
|
827
|
+
List.text(
|
|
828
|
+
{
|
|
829
|
+
// required
|
|
830
|
+
name: 'Text List',
|
|
831
|
+
|
|
832
|
+
// optional
|
|
833
|
+
description: null,
|
|
834
|
+
warning: null,
|
|
835
|
+
default: [],
|
|
836
|
+
minLength: null,
|
|
837
|
+
maxLength: null,
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
// required
|
|
841
|
+
patterns: [],
|
|
842
|
+
|
|
843
|
+
// optional
|
|
844
|
+
placeholder: null,
|
|
845
|
+
generate: null,
|
|
846
|
+
inputmode: 'url',
|
|
847
|
+
masked: false,
|
|
848
|
+
minLength: null,
|
|
849
|
+
maxLength: null,
|
|
850
|
+
},
|
|
851
|
+
),
|
|
852
|
+
),
|
|
853
|
+
* ```
|
|
854
|
+
* @example
|
|
855
|
+
* In this example, we create a list of objects.
|
|
856
|
+
*
|
|
857
|
+
* ```
|
|
858
|
+
listExampleObject: Value.list(
|
|
859
|
+
List.obj(
|
|
860
|
+
{
|
|
861
|
+
// required
|
|
862
|
+
name: 'Object List',
|
|
863
|
+
|
|
864
|
+
// optional
|
|
865
|
+
description: null,
|
|
866
|
+
warning: null,
|
|
867
|
+
default: [],
|
|
868
|
+
minLength: null,
|
|
869
|
+
maxLength: null,
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
// required
|
|
873
|
+
spec: InputSpec.of({}),
|
|
874
|
+
|
|
875
|
+
// optional
|
|
876
|
+
displayAs: null,
|
|
877
|
+
uniqueBy: null,
|
|
878
|
+
},
|
|
879
|
+
),
|
|
880
|
+
),
|
|
881
|
+
* ```
|
|
882
|
+
*/
|
|
883
|
+
list: typeof Value.list;
|
|
884
|
+
dynamicToggle: (a: LazyBuild<Store, {
|
|
885
|
+
name: string;
|
|
886
|
+
description?: string | null;
|
|
887
|
+
/** Presents a warning prompt before permitting the value to change. */
|
|
888
|
+
warning?: string | null;
|
|
889
|
+
default: boolean;
|
|
890
|
+
disabled?: false | string;
|
|
891
|
+
}>) => Value<boolean, Store>;
|
|
892
|
+
dynamicText: (getA: LazyBuild<Store, {
|
|
893
|
+
name: string;
|
|
894
|
+
description?: string | null;
|
|
895
|
+
/** Presents a warning prompt before permitting the value to change. */
|
|
896
|
+
warning?: string | null;
|
|
897
|
+
/**
|
|
898
|
+
* @description Determines if the field is required. If so, optionally provide a default value.
|
|
899
|
+
* @type { false | { default: string | RandomString | null } }
|
|
900
|
+
* @example required: false
|
|
901
|
+
* @example required: { default: null }
|
|
902
|
+
* @example required: { default: 'World' }
|
|
903
|
+
* @example required: { default: { charset: 'abcdefg', len: 16 } }
|
|
904
|
+
*/
|
|
905
|
+
required: RequiredDefault<DefaultString>;
|
|
906
|
+
/**
|
|
907
|
+
* @description Mask (aka camouflage) text input with dots: ● ● ●
|
|
908
|
+
* @default false
|
|
909
|
+
*/
|
|
910
|
+
masked?: boolean;
|
|
911
|
+
placeholder?: string | null;
|
|
912
|
+
minLength?: number | null;
|
|
913
|
+
maxLength?: number | null;
|
|
914
|
+
/**
|
|
915
|
+
* @description A list of regular expressions to which the text must conform to pass validation. A human readable description is provided in case the validation fails.
|
|
916
|
+
* @default []
|
|
917
|
+
* @example
|
|
918
|
+
* ```
|
|
919
|
+
[
|
|
920
|
+
{
|
|
921
|
+
regex: "[a-z]",
|
|
922
|
+
description: "May only contain lower case letters from the English alphabet."
|
|
923
|
+
}
|
|
924
|
+
]
|
|
925
|
+
* ```
|
|
926
|
+
*/
|
|
927
|
+
patterns?: Pattern[];
|
|
928
|
+
/**
|
|
929
|
+
* @description Informs the browser how to behave and which keyboard to display on mobile
|
|
930
|
+
* @default "text"
|
|
931
|
+
*/
|
|
932
|
+
inputmode?: ValueSpecText["inputmode"];
|
|
933
|
+
/**
|
|
934
|
+
* @description Displays a button that will generate a random string according to the provided charset and len attributes.
|
|
935
|
+
*/
|
|
936
|
+
generate?: null | RandomString;
|
|
937
|
+
}>) => Value<string | null | undefined, Store>;
|
|
938
|
+
dynamicTextarea: (getA: LazyBuild<Store, {
|
|
939
|
+
name: string;
|
|
940
|
+
description?: string | null;
|
|
941
|
+
/** Presents a warning prompt before permitting the value to change. */
|
|
942
|
+
warning?: string | null;
|
|
943
|
+
/**
|
|
944
|
+
* @description Unlike other "required" fields, for textarea this is a simple boolean.
|
|
945
|
+
*/
|
|
946
|
+
required: boolean;
|
|
947
|
+
minLength?: number | null;
|
|
948
|
+
maxLength?: number | null;
|
|
949
|
+
placeholder?: string | null;
|
|
950
|
+
disabled?: false | string;
|
|
951
|
+
generate?: null | RandomString;
|
|
952
|
+
}>) => Value<string, Store>;
|
|
953
|
+
dynamicNumber: (getA: LazyBuild<Store, {
|
|
954
|
+
name: string;
|
|
955
|
+
description?: string | null;
|
|
956
|
+
/** Presents a warning prompt before permitting the value to change. */
|
|
957
|
+
warning?: string | null;
|
|
958
|
+
/**
|
|
959
|
+
* @description Determines if the field is required. If so, optionally provide a default value.
|
|
960
|
+
* @type { false | { default: number | null } }
|
|
961
|
+
* @example required: false
|
|
962
|
+
* @example required: { default: null }
|
|
963
|
+
* @example required: { default: 7 }
|
|
964
|
+
*/
|
|
965
|
+
required: RequiredDefault<number>;
|
|
966
|
+
min?: number | null;
|
|
967
|
+
max?: number | null;
|
|
968
|
+
/**
|
|
969
|
+
* @description How much does the number increase/decrease when using the arrows provided by the browser.
|
|
970
|
+
* @default 1
|
|
971
|
+
*/
|
|
972
|
+
step?: number | null;
|
|
973
|
+
/**
|
|
974
|
+
* @description Requires the number to be an integer.
|
|
975
|
+
*/
|
|
976
|
+
integer: boolean;
|
|
977
|
+
/**
|
|
978
|
+
* @description Optionally display units to the right of the input box.
|
|
979
|
+
*/
|
|
980
|
+
units?: string | null;
|
|
981
|
+
placeholder?: string | null;
|
|
982
|
+
disabled?: false | string;
|
|
983
|
+
}>) => Value<number | null | undefined, Store>;
|
|
984
|
+
dynamicColor: (getA: LazyBuild<Store, {
|
|
985
|
+
name: string;
|
|
986
|
+
description?: string | null;
|
|
987
|
+
/** Presents a warning prompt before permitting the value to change. */
|
|
988
|
+
warning?: string | null;
|
|
989
|
+
/**
|
|
990
|
+
* @description Determines if the field is required. If so, optionally provide a default value.
|
|
991
|
+
* @type { false | { default: string | null } }
|
|
992
|
+
* @example required: false
|
|
993
|
+
* @example required: { default: null }
|
|
994
|
+
* @example required: { default: 'ffffff' }
|
|
995
|
+
*/
|
|
996
|
+
required: RequiredDefault<string>;
|
|
997
|
+
disabled?: false | string;
|
|
998
|
+
}>) => Value<string | null | undefined, Store>;
|
|
999
|
+
dynamicDatetime: (getA: LazyBuild<Store, {
|
|
1000
|
+
name: string;
|
|
1001
|
+
description?: string | null;
|
|
1002
|
+
/** Presents a warning prompt before permitting the value to change. */
|
|
1003
|
+
warning?: string | null;
|
|
1004
|
+
/**
|
|
1005
|
+
* @description Determines if the field is required. If so, optionally provide a default value.
|
|
1006
|
+
* @type { false | { default: string | null } }
|
|
1007
|
+
* @example required: false
|
|
1008
|
+
* @example required: { default: null }
|
|
1009
|
+
* @example required: { default: '1985-12-16 18:00:00.000' }
|
|
1010
|
+
*/
|
|
1011
|
+
required: RequiredDefault<string>;
|
|
1012
|
+
/**
|
|
1013
|
+
* @description Informs the browser how to behave and which date/time component to display.
|
|
1014
|
+
* @default "datetime-local"
|
|
1015
|
+
*/
|
|
1016
|
+
inputmode?: ValueSpecDatetime["inputmode"];
|
|
1017
|
+
min?: string | null;
|
|
1018
|
+
max?: string | null;
|
|
1019
|
+
disabled?: false | string;
|
|
1020
|
+
}>) => Value<string | null | undefined, Store>;
|
|
1021
|
+
dynamicSelect: (getA: LazyBuild<Store, {
|
|
1022
|
+
name: string;
|
|
1023
|
+
description?: string | null;
|
|
1024
|
+
/** Presents a warning prompt before permitting the value to change. */
|
|
1025
|
+
warning?: string | null;
|
|
1026
|
+
/**
|
|
1027
|
+
* @description Determines if the field is required. If so, optionally provide a default value from the list of values.
|
|
1028
|
+
* @type { false | { default: string | null } }
|
|
1029
|
+
* @example required: false
|
|
1030
|
+
* @example required: { default: null }
|
|
1031
|
+
* @example required: { default: 'radio1' }
|
|
1032
|
+
*/
|
|
1033
|
+
required: RequiredDefault<string>;
|
|
1034
|
+
/**
|
|
1035
|
+
* @description A mapping of unique radio options to their human readable display format.
|
|
1036
|
+
* @example
|
|
1037
|
+
* ```
|
|
1038
|
+
{
|
|
1039
|
+
radio1: "Radio 1"
|
|
1040
|
+
radio2: "Radio 2"
|
|
1041
|
+
radio3: "Radio 3"
|
|
1042
|
+
}
|
|
1043
|
+
* ```
|
|
1044
|
+
*/
|
|
1045
|
+
values: Record<string, string>;
|
|
1046
|
+
/**
|
|
1047
|
+
* @options
|
|
1048
|
+
* - false - The field can be modified.
|
|
1049
|
+
* - string - The field cannot be modified. The provided text explains why.
|
|
1050
|
+
* - string[] - The field can be modified, but the values contained in the array cannot be selected.
|
|
1051
|
+
* @default false
|
|
1052
|
+
*/
|
|
1053
|
+
disabled?: false | string | string[];
|
|
1054
|
+
}>) => Value<string | null | undefined, Store>;
|
|
1055
|
+
dynamicMultiselect: (getA: LazyBuild<Store, {
|
|
1056
|
+
name: string;
|
|
1057
|
+
description?: string | null;
|
|
1058
|
+
/** Presents a warning prompt before permitting the value to change. */
|
|
1059
|
+
warning?: string | null;
|
|
1060
|
+
/**
|
|
1061
|
+
* @description A simple list of which options should be checked by default.
|
|
1062
|
+
*/
|
|
1063
|
+
default: string[];
|
|
1064
|
+
/**
|
|
1065
|
+
* @description A mapping of checkbox options to their human readable display format.
|
|
1066
|
+
* @example
|
|
1067
|
+
* ```
|
|
1068
|
+
{
|
|
1069
|
+
option1: "Option 1"
|
|
1070
|
+
option2: "Option 2"
|
|
1071
|
+
option3: "Option 3"
|
|
1072
|
+
}
|
|
1073
|
+
* ```
|
|
1074
|
+
*/
|
|
1075
|
+
values: Record<string, string>;
|
|
1076
|
+
minLength?: number | null;
|
|
1077
|
+
maxLength?: number | null;
|
|
1078
|
+
/**
|
|
1079
|
+
* @options
|
|
1080
|
+
* - false - The field can be modified.
|
|
1081
|
+
* - string - The field cannot be modified. The provided text explains why.
|
|
1082
|
+
* - string[] - The field can be modified, but the values contained in the array cannot be selected.
|
|
1083
|
+
* @default false
|
|
1084
|
+
*/
|
|
1085
|
+
disabled?: false | string | string[];
|
|
1086
|
+
}>) => Value<string[], Store>;
|
|
1087
|
+
filteredUnion: <Required_1 extends RequiredDefault<string>, Type_2 extends Record<string, any>>(getDisabledFn: LazyBuild<Store, string[]>, a: {
|
|
1088
|
+
name: string;
|
|
1089
|
+
description?: string | null | undefined;
|
|
1090
|
+
warning?: string | null | undefined;
|
|
1091
|
+
required: Required_1;
|
|
1092
|
+
}, aVariants: Variants<Type_2, Store> | Variants<Type_2, never>) => Value<Required_1 extends {
|
|
1093
|
+
default: unknown;
|
|
1094
|
+
} ? Type_2 : Type_2 | null | undefined, Store>;
|
|
1095
|
+
dynamicUnion: <Required_2 extends RequiredDefault<string>, Type_3 extends Record<string, any>>(getA: LazyBuild<Store, {
|
|
1096
|
+
name: string;
|
|
1097
|
+
description?: string | null | undefined;
|
|
1098
|
+
/** Presents a warning prompt before permitting the value to change. */
|
|
1099
|
+
warning?: string | null | undefined;
|
|
1100
|
+
/**
|
|
1101
|
+
* @description Determines if the field is required. If so, optionally provide a default value from the list of variants.
|
|
1102
|
+
* @type { false | { default: string | null } }
|
|
1103
|
+
* @example required: false
|
|
1104
|
+
* @example required: { default: null }
|
|
1105
|
+
* @example required: { default: 'variant1' }
|
|
1106
|
+
*/
|
|
1107
|
+
required: Required_2;
|
|
1108
|
+
/**
|
|
1109
|
+
* @options
|
|
1110
|
+
* - false - The field can be modified.
|
|
1111
|
+
* - string - The field cannot be modified. The provided text explains why.
|
|
1112
|
+
* - string[] - The field can be modified, but the values contained in the array cannot be selected.
|
|
1113
|
+
* @default false
|
|
1114
|
+
*/
|
|
1115
|
+
disabled: false | string | string[];
|
|
1116
|
+
}>, aVariants: Variants<Type_3, Store> | Variants<Type_3, never>) => Value<Type_3 | null | undefined, Store>;
|
|
1117
|
+
};
|
|
1118
|
+
Variants: {
|
|
1119
|
+
of: <VariantValues extends {
|
|
1120
|
+
[x: string]: {
|
|
1121
|
+
name: string;
|
|
1122
|
+
spec: InputSpec<any, Store>;
|
|
1123
|
+
};
|
|
1124
|
+
}>(a: VariantValues) => Variants<{ [K_5 in keyof VariantValues]: {
|
|
1125
|
+
selection: K_5;
|
|
1126
|
+
value: VariantValues[K_5]["spec"] extends InputSpec<infer B extends Record<string, any>, never> | InputSpec<infer B extends Record<string, any>, Store> ? B : never;
|
|
1127
|
+
}; }[keyof VariantValues], Store>;
|
|
1128
|
+
};
|
|
1129
|
+
restart: (effects: Effects) => Promise<null>;
|
|
1130
|
+
shutdown: (effects: Effects) => Promise<null>;
|
|
1131
|
+
setDependencies: (effects: Effects, options: {
|
|
1132
|
+
dependencies: T.Dependencies;
|
|
1133
|
+
}) => Promise<null>;
|
|
1134
|
+
getDependencies: (effects: Effects) => Promise<T.DependencyRequirement[]>;
|
|
1135
|
+
mount: (effects: Effects, options: {
|
|
1136
|
+
location: string;
|
|
1137
|
+
target: {
|
|
1138
|
+
packageId: string;
|
|
1139
|
+
volumeId: string;
|
|
1140
|
+
subpath: string | null;
|
|
1141
|
+
readonly: boolean;
|
|
1142
|
+
};
|
|
1143
|
+
}) => Promise<string>;
|
|
1144
|
+
getInstalledPackages: (effects: Effects) => Promise<string[]>;
|
|
1145
|
+
exposeForDependents: (effects: Effects, options: {
|
|
1146
|
+
paths: string[];
|
|
1147
|
+
}) => Promise<null>;
|
|
1148
|
+
getServicePortForward: (effects: Effects, options: {
|
|
1149
|
+
packageId?: string | undefined;
|
|
1150
|
+
hostId: string;
|
|
1151
|
+
internalPort: number;
|
|
1152
|
+
}) => Promise<T.LanInfo>;
|
|
1153
|
+
clearBindings: (effects: Effects, options: {
|
|
1154
|
+
except: {
|
|
1155
|
+
id: string;
|
|
1156
|
+
internalPort: number;
|
|
1157
|
+
}[];
|
|
1158
|
+
}) => Promise<null>;
|
|
1159
|
+
getContainerIp: (effects: Effects) => Promise<string>;
|
|
1160
|
+
getSslKey: (effects: Effects, options: {
|
|
1161
|
+
hostnames: string[];
|
|
1162
|
+
algorithm?: "ecdsa" | "ed25519" | undefined;
|
|
1163
|
+
}) => Promise<string>;
|
|
1164
|
+
setDataVersion: (effects: Effects, options: {
|
|
1165
|
+
version: string;
|
|
1166
|
+
}) => Promise<null>;
|
|
1167
|
+
getDataVersion: (effects: Effects) => Promise<string | null>;
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
export declare function runCommand<Manifest extends T.Manifest>(effects: Effects, image: {
|
|
1171
|
+
id: keyof Manifest["images"] & T.ImageId;
|
|
1172
|
+
sharedRun?: boolean;
|
|
1173
|
+
}, command: string | [string, ...string[]], options: CommandOptions & {
|
|
1174
|
+
mounts?: {
|
|
1175
|
+
path: string;
|
|
1176
|
+
options: MountOptions;
|
|
1177
|
+
}[];
|
|
1178
|
+
}, name: string): Promise<{
|
|
1179
|
+
stdout: string | Buffer;
|
|
1180
|
+
stderr: string | Buffer;
|
|
1181
|
+
}>;
|
|
1182
|
+
export {};
|