@rockcarver/frodo-lib 4.10.0 → 4.11.0
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/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +6 -3
- package/types/api/AgentApi.d.ts +128 -0
- package/types/api/AgentApi.d.ts.map +1 -0
- package/types/api/AmConfigApi.d.ts +87 -0
- package/types/api/AmConfigApi.d.ts.map +1 -0
- package/types/api/ApiTypes.d.ts +59 -0
- package/types/api/ApiTypes.d.ts.map +1 -0
- package/types/api/AuthenticateApi.d.ts +38 -0
- package/types/api/AuthenticateApi.d.ts.map +1 -0
- package/types/api/AuthenticationSettingsApi.d.ts +31 -0
- package/types/api/AuthenticationSettingsApi.d.ts.map +1 -0
- package/types/api/BaseApi.d.ts +190 -0
- package/types/api/BaseApi.d.ts.map +1 -0
- package/types/api/CirclesOfTrustApi.d.ts +52 -0
- package/types/api/CirclesOfTrustApi.d.ts.map +1 -0
- package/types/api/IdmConfigApi.d.ts +69 -0
- package/types/api/IdmConfigApi.d.ts.map +1 -0
- package/types/api/IdmScriptApi.d.ts +17 -0
- package/types/api/IdmScriptApi.d.ts.map +1 -0
- package/types/api/IdmSystemApi.d.ts +111 -0
- package/types/api/IdmSystemApi.d.ts.map +1 -0
- package/types/api/InternalObjectApi.d.ts +103 -0
- package/types/api/InternalObjectApi.d.ts.map +1 -0
- package/types/api/ManagedObjectApi.d.ts +252 -0
- package/types/api/ManagedObjectApi.d.ts.map +1 -0
- package/types/api/ManagedSystemObjectApi.d.ts +150 -0
- package/types/api/ManagedSystemObjectApi.d.ts.map +1 -0
- package/types/api/NodeApi.d.ts +243 -0
- package/types/api/NodeApi.d.ts.map +1 -0
- package/types/api/OAuth2ClientApi.d.ts +78 -0
- package/types/api/OAuth2ClientApi.d.ts.map +1 -0
- package/types/api/OAuth2OIDCApi.d.ts +121 -0
- package/types/api/OAuth2OIDCApi.d.ts.map +1 -0
- package/types/api/OAuth2ProviderApi.d.ts +176 -0
- package/types/api/OAuth2ProviderApi.d.ts.map +1 -0
- package/types/api/OAuth2TrustedJwtIssuerApi.d.ts +54 -0
- package/types/api/OAuth2TrustedJwtIssuerApi.d.ts.map +1 -0
- package/types/api/PoliciesApi.d.ts +60 -0
- package/types/api/PoliciesApi.d.ts.map +1 -0
- package/types/api/PolicySetApi.d.ts +52 -0
- package/types/api/PolicySetApi.d.ts.map +1 -0
- package/types/api/RawConfigApi.d.ts +75 -0
- package/types/api/RawConfigApi.d.ts.map +1 -0
- package/types/api/RealmApi.d.ts +54 -0
- package/types/api/RealmApi.d.ts.map +1 -0
- package/types/api/ReconApi.d.ts +171 -0
- package/types/api/ReconApi.d.ts.map +1 -0
- package/types/api/ResourceTypesApi.d.ts +63 -0
- package/types/api/ResourceTypesApi.d.ts.map +1 -0
- package/types/api/Saml2Api.d.ts +112 -0
- package/types/api/Saml2Api.d.ts.map +1 -0
- package/types/api/ScriptApi.d.ts +94 -0
- package/types/api/ScriptApi.d.ts.map +1 -0
- package/types/api/ScriptTypeApi.d.ts +103 -0
- package/types/api/ScriptTypeApi.d.ts.map +1 -0
- package/types/api/SecretStoreApi.d.ts +185 -0
- package/types/api/SecretStoreApi.d.ts.map +1 -0
- package/types/api/ServerInfoApi.d.ts +26 -0
- package/types/api/ServerInfoApi.d.ts.map +1 -0
- package/types/api/ServiceApi.d.ts +102 -0
- package/types/api/ServiceApi.d.ts.map +1 -0
- package/types/api/SessionApi.d.ts +23 -0
- package/types/api/SessionApi.d.ts.map +1 -0
- package/types/api/SocialIdentityProvidersApi.d.ts +89 -0
- package/types/api/SocialIdentityProvidersApi.d.ts.map +1 -0
- package/types/api/TreeApi.d.ts +62 -0
- package/types/api/TreeApi.d.ts.map +1 -0
- package/types/api/UserApi.d.ts +159 -0
- package/types/api/UserApi.d.ts.map +1 -0
- package/types/api/classic/ServerApi.d.ts +78 -0
- package/types/api/classic/ServerApi.d.ts.map +1 -0
- package/types/api/classic/SiteApi.d.ts +39 -0
- package/types/api/classic/SiteApi.d.ts.map +1 -0
- package/types/api/cloud/AdminFederationProvidersApi.d.ts +71 -0
- package/types/api/cloud/AdminFederationProvidersApi.d.ts.map +1 -0
- package/types/api/cloud/EnvAIAgentApi.d.ts +9 -0
- package/types/api/cloud/EnvAIAgentApi.d.ts.map +1 -0
- package/types/api/cloud/EnvCSRsApi.d.ts +165 -0
- package/types/api/cloud/EnvCSRsApi.d.ts.map +1 -0
- package/types/api/cloud/EnvCertificatesApi.d.ts +74 -0
- package/types/api/cloud/EnvCertificatesApi.d.ts.map +1 -0
- package/types/api/cloud/EnvContentSecurityPolicyApi.d.ts +87 -0
- package/types/api/cloud/EnvContentSecurityPolicyApi.d.ts.map +1 -0
- package/types/api/cloud/EnvCookieDomainsApi.d.ts +26 -0
- package/types/api/cloud/EnvCookieDomainsApi.d.ts.map +1 -0
- package/types/api/cloud/EnvCustomDomainsApi.d.ts +37 -0
- package/types/api/cloud/EnvCustomDomainsApi.d.ts.map +1 -0
- package/types/api/cloud/EnvDirectConfigurationSessionApi.d.ts +43 -0
- package/types/api/cloud/EnvDirectConfigurationSessionApi.d.ts.map +1 -0
- package/types/api/cloud/EnvFederationEnforcementApi.d.ts +26 -0
- package/types/api/cloud/EnvFederationEnforcementApi.d.ts.map +1 -0
- package/types/api/cloud/EnvInfoApi.d.ts +22 -0
- package/types/api/cloud/EnvInfoApi.d.ts.map +1 -0
- package/types/api/cloud/EnvPromotionApi.d.ts +218 -0
- package/types/api/cloud/EnvPromotionApi.d.ts.map +1 -0
- package/types/api/cloud/EnvReleaseApi.d.ts +16 -0
- package/types/api/cloud/EnvReleaseApi.d.ts.map +1 -0
- package/types/api/cloud/EnvSSOCookieConfigApi.d.ts +35 -0
- package/types/api/cloud/EnvSSOCookieConfigApi.d.ts.map +1 -0
- package/types/api/cloud/EnvServiceAccountScopesApi.d.ts +17 -0
- package/types/api/cloud/EnvServiceAccountScopesApi.d.ts.map +1 -0
- package/types/api/cloud/EsvCountApi.d.ts +13 -0
- package/types/api/cloud/EsvCountApi.d.ts.map +1 -0
- package/types/api/cloud/FeatureApi.d.ts +16 -0
- package/types/api/cloud/FeatureApi.d.ts.map +1 -0
- package/types/api/cloud/IdmFeatureApi.d.ts +65 -0
- package/types/api/cloud/IdmFeatureApi.d.ts.map +1 -0
- package/types/api/cloud/LogApi.d.ts +108 -0
- package/types/api/cloud/LogApi.d.ts.map +1 -0
- package/types/api/cloud/SecretsApi.d.ts +163 -0
- package/types/api/cloud/SecretsApi.d.ts.map +1 -0
- package/types/api/cloud/StartupApi.d.ts +20 -0
- package/types/api/cloud/StartupApi.d.ts.map +1 -0
- package/types/api/cloud/TelemetryApi.d.ts +60 -0
- package/types/api/cloud/TelemetryApi.d.ts.map +1 -0
- package/types/api/cloud/VariablesApi.d.ts +86 -0
- package/types/api/cloud/VariablesApi.d.ts.map +1 -0
- package/types/api/cloud/WSFedApi.d.ts +495 -0
- package/types/api/cloud/WSFedApi.d.ts.map +1 -0
- package/types/api/cloud/iga/IgaCertificationTemplateApi.d.ts +227 -0
- package/types/api/cloud/iga/IgaCertificationTemplateApi.d.ts.map +1 -0
- package/types/api/cloud/iga/IgaEventApi.d.ts +111 -0
- package/types/api/cloud/iga/IgaEventApi.d.ts.map +1 -0
- package/types/api/cloud/iga/IgaGlossaryApi.d.ts +103 -0
- package/types/api/cloud/iga/IgaGlossaryApi.d.ts.map +1 -0
- package/types/api/cloud/iga/IgaRequestFormApi.d.ts +184 -0
- package/types/api/cloud/iga/IgaRequestFormApi.d.ts.map +1 -0
- package/types/api/cloud/iga/IgaRequestTypeApi.d.ts +124 -0
- package/types/api/cloud/iga/IgaRequestTypeApi.d.ts.map +1 -0
- package/types/api/cloud/iga/IgaWorkflowApi.d.ts +208 -0
- package/types/api/cloud/iga/IgaWorkflowApi.d.ts.map +1 -0
- package/types/ext/axios-curlirize/curlirize.d.ts +14 -0
- package/types/ext/axios-curlirize/curlirize.d.ts.map +1 -0
- package/types/ext/axios-curlirize/lib/CurlHelper.d.ts +12 -0
- package/types/ext/axios-curlirize/lib/CurlHelper.d.ts.map +1 -0
- package/types/index.d.ts +11 -0
- package/types/index.d.ts.map +1 -0
- package/types/lib/FrodoLib.d.ts +407 -0
- package/types/lib/FrodoLib.d.ts.map +1 -0
- package/types/lib/Help.d.ts +18 -0
- package/types/lib/Help.d.ts.map +1 -0
- package/types/mcp/CapabilityMetadata.d.ts +48 -0
- package/types/mcp/CapabilityMetadata.d.ts.map +1 -0
- package/types/mcp/CapabilityPolicy.d.ts +22 -0
- package/types/mcp/CapabilityPolicy.d.ts.map +1 -0
- package/types/mcp/CapabilityRegistry.d.ts +62 -0
- package/types/mcp/CapabilityRegistry.d.ts.map +1 -0
- package/types/mcp/CapabilityRouting.d.ts +9 -0
- package/types/mcp/CapabilityRouting.d.ts.map +1 -0
- package/types/mcp/CapabilityTypes.d.ts +371 -0
- package/types/mcp/CapabilityTypes.d.ts.map +1 -0
- package/types/mcp/DiscoveryHydration.d.ts +21 -0
- package/types/mcp/DiscoveryHydration.d.ts.map +1 -0
- package/types/mcp/DocsContext.d.ts +123 -0
- package/types/mcp/DocsContext.d.ts.map +1 -0
- package/types/mcp/McpService.d.ts +94 -0
- package/types/mcp/McpService.d.ts.map +1 -0
- package/types/mcp/ProfileRegistry.d.ts +63 -0
- package/types/mcp/ProfileRegistry.d.ts.map +1 -0
- package/types/mcp/SemanticIdentifiers.d.ts +17 -0
- package/types/mcp/SemanticIdentifiers.d.ts.map +1 -0
- package/types/mcp/SemanticObjectFamilies.d.ts +24 -0
- package/types/mcp/SemanticObjectFamilies.d.ts.map +1 -0
- package/types/mcp/ToolManifest.d.ts +231 -0
- package/types/mcp/ToolManifest.d.ts.map +1 -0
- package/types/mcp/ToolRuntime.d.ts +477 -0
- package/types/mcp/ToolRuntime.d.ts.map +1 -0
- package/types/mcp/index.d.ts +20 -0
- package/types/mcp/index.d.ts.map +1 -0
- package/types/ops/AdminOps.d.ts +85 -0
- package/types/ops/AdminOps.d.ts.map +1 -0
- package/types/ops/AgentOps.d.ts +938 -0
- package/types/ops/AgentOps.d.ts.map +1 -0
- package/types/ops/AmConfigOps.d.ts +96 -0
- package/types/ops/AmConfigOps.d.ts.map +1 -0
- package/types/ops/ApiFactoryOps.d.ts +77 -0
- package/types/ops/ApiFactoryOps.d.ts.map +1 -0
- package/types/ops/ApplicationOps.d.ts +334 -0
- package/types/ops/ApplicationOps.d.ts.map +1 -0
- package/types/ops/AuthenticateOps.d.ts +196 -0
- package/types/ops/AuthenticateOps.d.ts.map +1 -0
- package/types/ops/AuthenticationSettingsOps.d.ts +78 -0
- package/types/ops/AuthenticationSettingsOps.d.ts.map +1 -0
- package/types/ops/BrowserAuthenticateOps.d.ts +188 -0
- package/types/ops/BrowserAuthenticateOps.d.ts.map +1 -0
- package/types/ops/CallbackOps.d.ts +27 -0
- package/types/ops/CallbackOps.d.ts.map +1 -0
- package/types/ops/CallerTrustTierOps.d.ts +103 -0
- package/types/ops/CallerTrustTierOps.d.ts.map +1 -0
- package/types/ops/CirclesOfTrustOps.d.ts +203 -0
- package/types/ops/CirclesOfTrustOps.d.ts.map +1 -0
- package/types/ops/ConfigOps.d.ts +214 -0
- package/types/ops/ConfigOps.d.ts.map +1 -0
- package/types/ops/ConnectionProfileOps.d.ts +346 -0
- package/types/ops/ConnectionProfileOps.d.ts.map +1 -0
- package/types/ops/ConnectorOps.d.ts +269 -0
- package/types/ops/ConnectorOps.d.ts.map +1 -0
- package/types/ops/EmailTemplateOps.d.ts +160 -0
- package/types/ops/EmailTemplateOps.d.ts.map +1 -0
- package/types/ops/FrodoError.d.ts +40 -0
- package/types/ops/FrodoError.d.ts.map +1 -0
- package/types/ops/IdmConfigOps.d.ts +286 -0
- package/types/ops/IdmConfigOps.d.ts.map +1 -0
- package/types/ops/IdmCryptoOps.d.ts +68 -0
- package/types/ops/IdmCryptoOps.d.ts.map +1 -0
- package/types/ops/IdmScriptOps.d.ts +29 -0
- package/types/ops/IdmScriptOps.d.ts.map +1 -0
- package/types/ops/IdmSystemOps.d.ts +198 -0
- package/types/ops/IdmSystemOps.d.ts.map +1 -0
- package/types/ops/IdpOps.d.ts +234 -0
- package/types/ops/IdpOps.d.ts.map +1 -0
- package/types/ops/InfoOps.d.ts +28 -0
- package/types/ops/InfoOps.d.ts.map +1 -0
- package/types/ops/InternalRoleOps.d.ts +232 -0
- package/types/ops/InternalRoleOps.d.ts.map +1 -0
- package/types/ops/JoseOps.d.ts +87 -0
- package/types/ops/JoseOps.d.ts.map +1 -0
- package/types/ops/JourneyOps.d.ts +573 -0
- package/types/ops/JourneyOps.d.ts.map +1 -0
- package/types/ops/ManagedObjectOps.d.ts +393 -0
- package/types/ops/ManagedObjectOps.d.ts.map +1 -0
- package/types/ops/ManagedObjectSchemaOps.d.ts +757 -0
- package/types/ops/ManagedObjectSchemaOps.d.ts.map +1 -0
- package/types/ops/ManagedSystemObjectOps.d.ts +270 -0
- package/types/ops/ManagedSystemObjectOps.d.ts.map +1 -0
- package/types/ops/ManagedSystemObjectSchemaOps.d.ts +42 -0
- package/types/ops/ManagedSystemObjectSchemaOps.d.ts.map +1 -0
- package/types/ops/MappingOps.d.ts +332 -0
- package/types/ops/MappingOps.d.ts.map +1 -0
- package/types/ops/NodeOps.d.ts +627 -0
- package/types/ops/NodeOps.d.ts.map +1 -0
- package/types/ops/OAuth2ClientOps.d.ts +235 -0
- package/types/ops/OAuth2ClientOps.d.ts.map +1 -0
- package/types/ops/OAuth2OidcOps.d.ts +64 -0
- package/types/ops/OAuth2OidcOps.d.ts.map +1 -0
- package/types/ops/OAuth2ProviderOps.d.ts +57 -0
- package/types/ops/OAuth2ProviderOps.d.ts.map +1 -0
- package/types/ops/OAuth2TrustedJwtIssuerOps.d.ts +223 -0
- package/types/ops/OAuth2TrustedJwtIssuerOps.d.ts.map +1 -0
- package/types/ops/OpsTypes.d.ts +12 -0
- package/types/ops/OpsTypes.d.ts.map +1 -0
- package/types/ops/OrganizationOps.d.ts +34 -0
- package/types/ops/OrganizationOps.d.ts.map +1 -0
- package/types/ops/PolicyOps.d.ts +294 -0
- package/types/ops/PolicyOps.d.ts.map +1 -0
- package/types/ops/PolicySetOps.d.ts +195 -0
- package/types/ops/PolicySetOps.d.ts.map +1 -0
- package/types/ops/PrivilegeEscalationOps.d.ts +51 -0
- package/types/ops/PrivilegeEscalationOps.d.ts.map +1 -0
- package/types/ops/RawConfigOps.d.ts +67 -0
- package/types/ops/RawConfigOps.d.ts.map +1 -0
- package/types/ops/RealmOps.d.ts +196 -0
- package/types/ops/RealmOps.d.ts.map +1 -0
- package/types/ops/ReconOps.d.ts +57 -0
- package/types/ops/ReconOps.d.ts.map +1 -0
- package/types/ops/RequiredScopesOps.d.ts +69 -0
- package/types/ops/RequiredScopesOps.d.ts.map +1 -0
- package/types/ops/ResourceTypeOps.d.ts +219 -0
- package/types/ops/ResourceTypeOps.d.ts.map +1 -0
- package/types/ops/Saml2Ops.d.ts +261 -0
- package/types/ops/Saml2Ops.d.ts.map +1 -0
- package/types/ops/ScriptOps.d.ts +426 -0
- package/types/ops/ScriptOps.d.ts.map +1 -0
- package/types/ops/ScriptTypeOps.d.ts +124 -0
- package/types/ops/ScriptTypeOps.d.ts.map +1 -0
- package/types/ops/SecretStoreOps.d.ts +357 -0
- package/types/ops/SecretStoreOps.d.ts.map +1 -0
- package/types/ops/ServiceOps.d.ts +194 -0
- package/types/ops/ServiceOps.d.ts.map +1 -0
- package/types/ops/SessionOps.d.ts +22 -0
- package/types/ops/SessionOps.d.ts.map +1 -0
- package/types/ops/ThemeOps.d.ts +245 -0
- package/types/ops/ThemeOps.d.ts.map +1 -0
- package/types/ops/TokenCacheOps.d.ts +243 -0
- package/types/ops/TokenCacheOps.d.ts.map +1 -0
- package/types/ops/UserOps.d.ts +199 -0
- package/types/ops/UserOps.d.ts.map +1 -0
- package/types/ops/VersionUtils.d.ts +29 -0
- package/types/ops/VersionUtils.d.ts.map +1 -0
- package/types/ops/classic/ServerOps.d.ts +195 -0
- package/types/ops/classic/ServerOps.d.ts.map +1 -0
- package/types/ops/classic/SiteOps.d.ts +117 -0
- package/types/ops/classic/SiteOps.d.ts.map +1 -0
- package/types/ops/cloud/AdminFederationOps.d.ts +165 -0
- package/types/ops/cloud/AdminFederationOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvAIAgentOps.d.ts +18 -0
- package/types/ops/cloud/EnvAIAgentOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvCSRsOps.d.ts +86 -0
- package/types/ops/cloud/EnvCSRsOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvCertificatesOps.d.ts +140 -0
- package/types/ops/cloud/EnvCertificatesOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvContentSecurityPolicyOps.d.ts +101 -0
- package/types/ops/cloud/EnvContentSecurityPolicyOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvCookieDomainsOps.d.ts +36 -0
- package/types/ops/cloud/EnvCookieDomainsOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvCustomDomainsOps.d.ts +53 -0
- package/types/ops/cloud/EnvCustomDomainsOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvDirectConfigurationSessionOps.d.ts +55 -0
- package/types/ops/cloud/EnvDirectConfigurationSessionOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvFederationEnforcementOps.d.ts +58 -0
- package/types/ops/cloud/EnvFederationEnforcementOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvPromotionOps.d.ts +175 -0
- package/types/ops/cloud/EnvPromotionOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvReleaseOps.d.ts +19 -0
- package/types/ops/cloud/EnvReleaseOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvSSOCookieConfigOps.d.ts +50 -0
- package/types/ops/cloud/EnvSSOCookieConfigOps.d.ts.map +1 -0
- package/types/ops/cloud/EnvServiceAccountScopesOps.d.ts +21 -0
- package/types/ops/cloud/EnvServiceAccountScopesOps.d.ts.map +1 -0
- package/types/ops/cloud/EsvCountOps.d.ts +15 -0
- package/types/ops/cloud/EsvCountOps.d.ts.map +1 -0
- package/types/ops/cloud/FeatureOps.d.ts +34 -0
- package/types/ops/cloud/FeatureOps.d.ts.map +1 -0
- package/types/ops/cloud/IdmFeatureOps.d.ts +78 -0
- package/types/ops/cloud/IdmFeatureOps.d.ts.map +1 -0
- package/types/ops/cloud/LogOps.d.ts +271 -0
- package/types/ops/cloud/LogOps.d.ts.map +1 -0
- package/types/ops/cloud/SecretsOps.d.ts +306 -0
- package/types/ops/cloud/SecretsOps.d.ts.map +1 -0
- package/types/ops/cloud/ServiceAccountOps.d.ts +86 -0
- package/types/ops/cloud/ServiceAccountOps.d.ts.map +1 -0
- package/types/ops/cloud/StartupOps.d.ts +62 -0
- package/types/ops/cloud/StartupOps.d.ts.map +1 -0
- package/types/ops/cloud/TelemetryOps.d.ts +109 -0
- package/types/ops/cloud/TelemetryOps.d.ts.map +1 -0
- package/types/ops/cloud/VariablesOps.d.ts +224 -0
- package/types/ops/cloud/VariablesOps.d.ts.map +1 -0
- package/types/ops/cloud/WSFedOps.d.ts +412 -0
- package/types/ops/cloud/WSFedOps.d.ts.map +1 -0
- package/types/ops/cloud/iga/IgaCertificationTemplateOps.d.ts +261 -0
- package/types/ops/cloud/iga/IgaCertificationTemplateOps.d.ts.map +1 -0
- package/types/ops/cloud/iga/IgaEventOps.d.ts +242 -0
- package/types/ops/cloud/iga/IgaEventOps.d.ts.map +1 -0
- package/types/ops/cloud/iga/IgaGlossaryOps.d.ts +241 -0
- package/types/ops/cloud/iga/IgaGlossaryOps.d.ts.map +1 -0
- package/types/ops/cloud/iga/IgaRequestFormOps.d.ts +259 -0
- package/types/ops/cloud/iga/IgaRequestFormOps.d.ts.map +1 -0
- package/types/ops/cloud/iga/IgaRequestTypeOps.d.ts +240 -0
- package/types/ops/cloud/iga/IgaRequestTypeOps.d.ts.map +1 -0
- package/types/ops/cloud/iga/IgaWorkflowOps.d.ts +334 -0
- package/types/ops/cloud/iga/IgaWorkflowOps.d.ts.map +1 -0
- package/types/ops/internal/RelationshipHelpers.d.ts +111 -0
- package/types/ops/internal/RelationshipHelpers.d.ts.map +1 -0
- package/types/shared/Constants.d.ts +100 -0
- package/types/shared/Constants.d.ts.map +1 -0
- package/types/shared/OperationType.d.ts +14 -0
- package/types/shared/OperationType.d.ts.map +1 -0
- package/types/shared/State.d.ts +355 -0
- package/types/shared/State.d.ts.map +1 -0
- package/types/shared/Version.d.ts +16 -0
- package/types/shared/Version.d.ts.map +1 -0
- package/types/test/mocks/ForgeRockApiMockEngine.d.ts +38 -0
- package/types/test/mocks/ForgeRockApiMockEngine.d.ts.map +1 -0
- package/types/test/setup/EmailTemplateSetup.d.ts +8 -0
- package/types/test/setup/EmailTemplateSetup.d.ts.map +1 -0
- package/types/test/setup/IgaCertificationTemplateSetup.d.ts +12 -0
- package/types/test/setup/IgaCertificationTemplateSetup.d.ts.map +1 -0
- package/types/test/setup/IgaEventSetup.d.ts +22 -0
- package/types/test/setup/IgaEventSetup.d.ts.map +1 -0
- package/types/test/setup/IgaGlossarySetup.d.ts +11 -0
- package/types/test/setup/IgaGlossarySetup.d.ts.map +1 -0
- package/types/test/setup/IgaRequestFormSetup.d.ts +42 -0
- package/types/test/setup/IgaRequestFormSetup.d.ts.map +1 -0
- package/types/test/setup/IgaRequestTypeSetup.d.ts +10 -0
- package/types/test/setup/IgaRequestTypeSetup.d.ts.map +1 -0
- package/types/test/setup/IgaWorkflowSetup.d.ts +32 -0
- package/types/test/setup/IgaWorkflowSetup.d.ts.map +1 -0
- package/types/test/setup/JourneySetup.d.ts +18 -0
- package/types/test/setup/JourneySetup.d.ts.map +1 -0
- package/types/test/setup/NodeSetup.d.ts +14 -0
- package/types/test/setup/NodeSetup.d.ts.map +1 -0
- package/types/test/setup/RawConfigSetup.d.ts +2 -0
- package/types/test/setup/RawConfigSetup.d.ts.map +1 -0
- package/types/test/setup/SecretSetup.d.ts +69 -0
- package/types/test/setup/SecretSetup.d.ts.map +1 -0
- package/types/test/setup/StartupSetup.d.ts +2 -0
- package/types/test/setup/StartupSetup.d.ts.map +1 -0
- package/types/test/setup/TelemetrySetup.d.ts +8 -0
- package/types/test/setup/TelemetrySetup.d.ts.map +1 -0
- package/types/test/setup/VariablesSetup.d.ts +27 -0
- package/types/test/setup/VariablesSetup.d.ts.map +1 -0
- package/types/test/utils/TestUtils.d.ts +15 -0
- package/types/test/utils/TestUtils.d.ts.map +1 -0
- package/types/utils/AsyncUtils.d.ts +14 -0
- package/types/utils/AsyncUtils.d.ts.map +1 -0
- package/types/utils/AutoSetupPolly.d.ts +25 -0
- package/types/utils/AutoSetupPolly.d.ts.map +1 -0
- package/types/utils/Base64Utils.d.ts +41 -0
- package/types/utils/Base64Utils.d.ts.map +1 -0
- package/types/utils/ColorTheme.d.ts +40 -0
- package/types/utils/ColorTheme.d.ts.map +1 -0
- package/types/utils/Console.d.ts +110 -0
- package/types/utils/Console.d.ts.map +1 -0
- package/types/utils/CryptoUtils.d.ts +35 -0
- package/types/utils/CryptoUtils.d.ts.map +1 -0
- package/types/utils/DataProtection.d.ts +24 -0
- package/types/utils/DataProtection.d.ts.map +1 -0
- package/types/utils/ExportImportUtils.d.ts +415 -0
- package/types/utils/ExportImportUtils.d.ts.map +1 -0
- package/types/utils/ForgeRockUtils.d.ts +122 -0
- package/types/utils/ForgeRockUtils.d.ts.map +1 -0
- package/types/utils/FrodoNodeHttpAdapter.d.ts +5 -0
- package/types/utils/FrodoNodeHttpAdapter.d.ts.map +1 -0
- package/types/utils/FrodoUtils.d.ts +15 -0
- package/types/utils/FrodoUtils.d.ts.map +1 -0
- package/types/utils/HelpUtils.d.ts +19 -0
- package/types/utils/HelpUtils.d.ts.map +1 -0
- package/types/utils/JsonUtils.d.ts +105 -0
- package/types/utils/JsonUtils.d.ts.map +1 -0
- package/types/utils/JwtUtils.d.ts +19 -0
- package/types/utils/JwtUtils.d.ts.map +1 -0
- package/types/utils/PkceUtils.d.ts +17 -0
- package/types/utils/PkceUtils.d.ts.map +1 -0
- package/types/utils/PollyUtils.d.ts +65 -0
- package/types/utils/PollyUtils.d.ts.map +1 -0
- package/types/utils/ScriptValidationUtils.d.ts +38 -0
- package/types/utils/ScriptValidationUtils.d.ts.map +1 -0
- package/types/utils/SemverUtils.d.ts +61 -0
- package/types/utils/SemverUtils.d.ts.map +1 -0
- package/types/utils/SetupPollyForFrodoLib.d.ts +7 -0
- package/types/utils/SetupPollyForFrodoLib.d.ts.map +1 -0
- package/types/utils/TerminalBackgroundDetection.d.ts +48 -0
- package/types/utils/TerminalBackgroundDetection.d.ts.map +1 -0
- package/types/utils/TerminalContrast.d.ts +44 -0
- package/types/utils/TerminalContrast.d.ts.map +1 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { UserConfigSkeleton, UserGroupSkeleton, UserSkeleton } from '../api/UserApi';
|
|
2
|
+
import { State } from '../shared/State';
|
|
3
|
+
import { ExportMetaData } from './OpsTypes';
|
|
4
|
+
export type User = {
|
|
5
|
+
/**
|
|
6
|
+
* Create an empty user export template
|
|
7
|
+
* @returns {UserExportInterface} an empty user export template
|
|
8
|
+
*/
|
|
9
|
+
createUserExportTemplate(): UserExportInterface;
|
|
10
|
+
/**
|
|
11
|
+
* Read user by id
|
|
12
|
+
* @param {string} userId User id
|
|
13
|
+
* @returns {Promise<UserSkeleton>} a promise that resolves to a user object
|
|
14
|
+
*/
|
|
15
|
+
readUser(userId: string): Promise<UserSkeleton>;
|
|
16
|
+
/**
|
|
17
|
+
* Read all users.
|
|
18
|
+
* @returns {Promise<UserSkeleton[]>} a promise that resolves to an array of user objects
|
|
19
|
+
*/
|
|
20
|
+
readUsers(): Promise<UserSkeleton[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Count all users in the active realm.
|
|
23
|
+
* @returns {Promise<number>} exact count when supported by the backing API
|
|
24
|
+
*/
|
|
25
|
+
countUsers(): Promise<number>;
|
|
26
|
+
/**
|
|
27
|
+
* Export a single user by id. The response can be saved to file as is.
|
|
28
|
+
* @param {string} userId User id
|
|
29
|
+
* @returns {Promise<UserExportInterface>} Promise resolving to a UserExportInterface object.
|
|
30
|
+
*/
|
|
31
|
+
exportUser(userId: string): Promise<UserExportInterface>;
|
|
32
|
+
/**
|
|
33
|
+
* Export all users. The response can be saved to file as is.
|
|
34
|
+
* @returns {Promise<UserExportInterface>} Promise resolving to a UserExportInterface object.
|
|
35
|
+
*/
|
|
36
|
+
exportUsers(): Promise<UserExportInterface>;
|
|
37
|
+
/**
|
|
38
|
+
* Create an empty user group export template
|
|
39
|
+
* @returns {UserGroupExportInterface} an empty user group export template
|
|
40
|
+
*/
|
|
41
|
+
createUserGroupExportTemplate(): UserGroupExportInterface;
|
|
42
|
+
/**
|
|
43
|
+
* Read user group by id
|
|
44
|
+
* @param {string} groupId Group id
|
|
45
|
+
* @returns {Promise<UserGroupSkeleton>} a promise that resolves to a user group object
|
|
46
|
+
*/
|
|
47
|
+
readUserGroup(groupId: string): Promise<UserGroupSkeleton>;
|
|
48
|
+
/**
|
|
49
|
+
* Read all user groups.
|
|
50
|
+
* @returns {Promise<UserGroupSkeleton[]>} a promise that resolves to an array of user group objects
|
|
51
|
+
*/
|
|
52
|
+
readUserGroups(): Promise<UserGroupSkeleton[]>;
|
|
53
|
+
/**
|
|
54
|
+
* Export a single user group by id. The response can be saved to file as is.
|
|
55
|
+
* @param {string} groupId Group id
|
|
56
|
+
* @returns {Promise<UserGroupExportInterface>} Promise resolving to a UserGroupExportInterface object.
|
|
57
|
+
*/
|
|
58
|
+
exportUserGroup(groupId: string): Promise<UserGroupExportInterface>;
|
|
59
|
+
/**
|
|
60
|
+
* Export all user groups. The response can be saved to file as is.
|
|
61
|
+
* @returns {Promise<UserGroupExportInterface>} Promise resolving to a UserGroupExportInterface object.
|
|
62
|
+
*/
|
|
63
|
+
exportUserGroups(): Promise<UserGroupExportInterface>;
|
|
64
|
+
/**
|
|
65
|
+
* Import users and their config
|
|
66
|
+
* @param {UserExportInterface} importData user import data
|
|
67
|
+
* @param {string} userId Optional user id. If supplied, only the user of that id is imported.
|
|
68
|
+
* @returns {Promise<UserExportSkeleton[]>} the imported users
|
|
69
|
+
*/
|
|
70
|
+
importUsers(importData: UserExportInterface, userId?: string): Promise<UserExportSkeleton[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Import user groups
|
|
73
|
+
* @param {UserGroupExportInterface} importData user group import data
|
|
74
|
+
* @param {string} groupId Optional user group id. If supplied, only the group of that id is imported.
|
|
75
|
+
* @returns {Promise<UserGroupSkeleton[]>} the imported user groups
|
|
76
|
+
*/
|
|
77
|
+
importUserGroups(importData: UserGroupExportInterface, groupId?: string): Promise<UserGroupSkeleton[]>;
|
|
78
|
+
};
|
|
79
|
+
declare const _default: (state: State) => User;
|
|
80
|
+
export default _default;
|
|
81
|
+
export type UserExportSkeleton = UserSkeleton & {
|
|
82
|
+
config: UserConfigSkeleton;
|
|
83
|
+
};
|
|
84
|
+
export interface UserExportInterface {
|
|
85
|
+
meta?: ExportMetaData;
|
|
86
|
+
user: Record<string, UserExportSkeleton>;
|
|
87
|
+
}
|
|
88
|
+
export interface UserGroupExportInterface {
|
|
89
|
+
meta?: ExportMetaData;
|
|
90
|
+
userGroup: Record<string, UserGroupSkeleton>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Create an empty user export template
|
|
94
|
+
* @returns {UserExportInterface} an empty user export template
|
|
95
|
+
*/
|
|
96
|
+
export declare function createUserExportTemplate({ state, }: {
|
|
97
|
+
state: State;
|
|
98
|
+
}): UserExportInterface;
|
|
99
|
+
/**
|
|
100
|
+
* Read user by id
|
|
101
|
+
* @param {string} userId User id
|
|
102
|
+
* @returns {Promise<UserSkeleton>} a promise that resolves to a user object
|
|
103
|
+
*/
|
|
104
|
+
export declare function readUser({ userId, state, }: {
|
|
105
|
+
userId: string;
|
|
106
|
+
state: State;
|
|
107
|
+
}): Promise<UserSkeleton>;
|
|
108
|
+
/**
|
|
109
|
+
* Read all users.
|
|
110
|
+
* @returns {Promise<UserSkeleton[]>} a promise that resolves to an array of user objects
|
|
111
|
+
*/
|
|
112
|
+
export declare function readUsers({ state, }: {
|
|
113
|
+
state: State;
|
|
114
|
+
}): Promise<UserSkeleton[]>;
|
|
115
|
+
/**
|
|
116
|
+
* Count all users in the active realm.
|
|
117
|
+
* @returns {Promise<number>} exact count when supported by the backing API
|
|
118
|
+
*/
|
|
119
|
+
export declare function countUsers({ state }: {
|
|
120
|
+
state: State;
|
|
121
|
+
}): Promise<number>;
|
|
122
|
+
/**
|
|
123
|
+
* Export a single user by id. The response can be saved to file as is.
|
|
124
|
+
* @param {string} userId User id
|
|
125
|
+
* @returns {Promise<UserExportInterface>} Promise resolving to a UserExportInterface object.
|
|
126
|
+
*/
|
|
127
|
+
export declare function exportUser({ userId, state, }: {
|
|
128
|
+
userId: string;
|
|
129
|
+
state: State;
|
|
130
|
+
}): Promise<UserExportInterface>;
|
|
131
|
+
/**
|
|
132
|
+
* Export all users. The response can be saved to file as is.
|
|
133
|
+
* @returns {Promise<UserExportInterface>} Promise resolving to a UserExportInterface object.
|
|
134
|
+
*/
|
|
135
|
+
export declare function exportUsers({ state, }: {
|
|
136
|
+
state: State;
|
|
137
|
+
}): Promise<UserExportInterface>;
|
|
138
|
+
/**
|
|
139
|
+
* Create an empty user group export template
|
|
140
|
+
* @returns {UserGroupExportInterface} an empty user group export template
|
|
141
|
+
*/
|
|
142
|
+
export declare function createUserGroupExportTemplate({ state, }: {
|
|
143
|
+
state: State;
|
|
144
|
+
}): UserGroupExportInterface;
|
|
145
|
+
/**
|
|
146
|
+
* Read user group by id
|
|
147
|
+
* @param {string} groupId User group id
|
|
148
|
+
* @returns {Promise<UserGroupSkeleton>} a promise that resolves to a user group object
|
|
149
|
+
*/
|
|
150
|
+
export declare function readUserGroup({ groupId, state, }: {
|
|
151
|
+
groupId: string;
|
|
152
|
+
state: State;
|
|
153
|
+
}): Promise<UserGroupSkeleton>;
|
|
154
|
+
/**
|
|
155
|
+
* Read all user groups.
|
|
156
|
+
* @returns {Promise<UserGroupSkeleton[]>} a promise that resolves to an array of user group objects
|
|
157
|
+
*/
|
|
158
|
+
export declare function readUserGroups({ state, }: {
|
|
159
|
+
state: State;
|
|
160
|
+
}): Promise<UserGroupSkeleton[]>;
|
|
161
|
+
/**
|
|
162
|
+
* Export a single user group by id. The response can be saved to file as is.
|
|
163
|
+
* @param {string} groupId User group id
|
|
164
|
+
* @returns {Promise<UserGroupExportInterface>} Promise resolving to a UserGroupExportInterface object.
|
|
165
|
+
*/
|
|
166
|
+
export declare function exportUserGroup({ groupId, state, }: {
|
|
167
|
+
groupId: string;
|
|
168
|
+
state: State;
|
|
169
|
+
}): Promise<UserGroupExportInterface>;
|
|
170
|
+
/**
|
|
171
|
+
* Export all user groups. The response can be saved to file as is.
|
|
172
|
+
* @returns {Promise<UserGroupExportInterface>} Promise resolving to a UserGroupExportInterface object.
|
|
173
|
+
*/
|
|
174
|
+
export declare function exportUserGroups({ state, }: {
|
|
175
|
+
state: State;
|
|
176
|
+
}): Promise<UserGroupExportInterface>;
|
|
177
|
+
/**
|
|
178
|
+
* Import users and their config
|
|
179
|
+
* @param {UserExportInterface} importData user import data
|
|
180
|
+
* @param {string} userId Optional user id. If supplied, only the user of that id is imported.
|
|
181
|
+
* @returns {Promise<UserExportSkeleton[]>} the imported users
|
|
182
|
+
*/
|
|
183
|
+
export declare function importUsers({ importData, userId, state, }: {
|
|
184
|
+
importData: UserExportInterface;
|
|
185
|
+
userId?: string;
|
|
186
|
+
state: State;
|
|
187
|
+
}): Promise<UserExportSkeleton[]>;
|
|
188
|
+
/**
|
|
189
|
+
* Import user groups
|
|
190
|
+
* @param {UserGroupExportInterface} importData user group import data
|
|
191
|
+
* @param {string} groupId Optional user group id. If supplied, only the group of that id is imported.
|
|
192
|
+
* @returns {Promise<UserGroupSkeleton[]>} the imported user groups
|
|
193
|
+
*/
|
|
194
|
+
export declare function importUserGroups({ importData, groupId, state, }: {
|
|
195
|
+
importData: UserGroupExportInterface;
|
|
196
|
+
groupId?: string;
|
|
197
|
+
state: State;
|
|
198
|
+
}): Promise<UserGroupSkeleton[]>;
|
|
199
|
+
//# sourceMappingURL=UserOps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserOps.d.ts","sourceRoot":"","sources":["../../src/ops/UserOps.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AASxC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,MAAM,IAAI,GAAG;IACjB;;;OAGG;IACH,wBAAwB,IAAI,mBAAmB,CAAC;IAChD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAChD;;;OAGG;IACH,SAAS,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IACrC;;;OAGG;IACH,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACzD;;;OAGG;IACH,WAAW,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC5C;;;OAGG;IACH,6BAA6B,IAAI,wBAAwB,CAAC;IAC1D;;;;OAIG;IACH,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC3D;;;OAGG;IACH,cAAc,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAC/C;;;;OAIG;IACH,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACpE;;;OAGG;IACH,gBAAgB,IAAI,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACtD;;;;;OAKG;IACH,WAAW,CACT,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AAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAsChC;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,EACrC,UAAU,EACV,OAAO,EACP,KAAK,GACN,EAAE;IACD,UAAU,EAAE,wBAAwB,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CA+B/B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { State } from '../shared/State';
|
|
2
|
+
export type Version = {
|
|
3
|
+
getVersion(): string;
|
|
4
|
+
getBuildTimestamp(): string;
|
|
5
|
+
getAllVersions(endpoints: {
|
|
6
|
+
base: string;
|
|
7
|
+
path: string;
|
|
8
|
+
}[]): Promise<PromiseSettledResult<any>[]>;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: (state: State) => Version;
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare function getVersion({ state }: {
|
|
13
|
+
state: State;
|
|
14
|
+
}): string;
|
|
15
|
+
/**
|
|
16
|
+
* ISO 8601 timestamp of when this frodo-lib build was produced. See
|
|
17
|
+
* getLibBuildTimestamp in shared/Version.ts for how it's captured.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getBuildTimestamp({ state }: {
|
|
20
|
+
state: State;
|
|
21
|
+
}): string;
|
|
22
|
+
export declare function getAllVersions({ endpoints, state, }: {
|
|
23
|
+
endpoints: {
|
|
24
|
+
base: string;
|
|
25
|
+
path: string;
|
|
26
|
+
}[];
|
|
27
|
+
state: State;
|
|
28
|
+
}): Promise<PromiseSettledResult<any>[]>;
|
|
29
|
+
//# sourceMappingURL=VersionUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionUtils.d.ts","sourceRoot":"","sources":["../../src/ops/VersionUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGxC,MAAM,MAAM,OAAO,GAAG;IACpB,UAAU,IAAI,MAAM,CAAC;IACrB,iBAAiB,IAAI,MAAM,CAAC;IAC5B,cAAc,CACZ,SAAS,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,GACF,OAAO,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;CACzC,CAAC;yBAEc,OAAO,KAAK,KAAG,OAAO;AAAtC,wBAcE;AAEF,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,UAGrD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,UAG5D;AAED,wBAAsB,cAAc,CAAC,EACnC,SAAS,EACT,KAAK,GACN,EAAE;IACD,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,KAAK,EAAE,KAAK,CAAC;CACd,wCASA"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { ServerPropertiesSkeleton, ServerSkeleton } from '../../api/classic/ServerApi';
|
|
2
|
+
import { State } from '../../shared/State';
|
|
3
|
+
import { ExportMetaData } from '../OpsTypes';
|
|
4
|
+
export type Server = {
|
|
5
|
+
/**
|
|
6
|
+
* Create an empty server export template
|
|
7
|
+
* @returns {ServerExportInterface} an empty server export template
|
|
8
|
+
*/
|
|
9
|
+
createServerExportTemplate(): ServerExportInterface;
|
|
10
|
+
/**
|
|
11
|
+
* Read server by id
|
|
12
|
+
* @param {string} serverId Server id
|
|
13
|
+
* @returns {Promise<ServerSkeleton>} a promise that resolves to a server object
|
|
14
|
+
*/
|
|
15
|
+
readServer(serverId: string): Promise<ServerSkeleton>;
|
|
16
|
+
/**
|
|
17
|
+
* Read server by url
|
|
18
|
+
* @param {string} serverUrl Server url
|
|
19
|
+
* @returns {Promise<ServerSkeleton>} a promise that resolves to a server object
|
|
20
|
+
*/
|
|
21
|
+
readServerByUrl(serverUrl: string): Promise<ServerSkeleton>;
|
|
22
|
+
/**
|
|
23
|
+
* Read all servers.
|
|
24
|
+
* @returns {Promise<ServerSkeleton[]>} a promise that resolves to an array of server objects
|
|
25
|
+
*/
|
|
26
|
+
readServers(): Promise<ServerSkeleton[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Export a single server by id. The response can be saved to file as is.
|
|
29
|
+
* @param {string} serverId Server id
|
|
30
|
+
* @param {ServerExportOptions} options Server export options
|
|
31
|
+
* @returns {Promise<ServerExportInterface>} Promise resolving to a ServerExportInterface object.
|
|
32
|
+
*/
|
|
33
|
+
exportServer(serverId: string, options: ServerExportOptions): Promise<ServerExportInterface>;
|
|
34
|
+
/**
|
|
35
|
+
* Export a single server by url. The response can be saved to file as is.
|
|
36
|
+
* @param {string} serverUrl Server url
|
|
37
|
+
* @param {ServerExportOptions} options Server export options
|
|
38
|
+
* @returns {Promise<ServerExportInterface>} Promise resolving to a ServerExportInterface object.
|
|
39
|
+
*/
|
|
40
|
+
exportServerByUrl(serverUrl: string, options: ServerExportOptions): Promise<ServerExportInterface>;
|
|
41
|
+
/**
|
|
42
|
+
* Export all servers. The response can be saved to file as is.
|
|
43
|
+
* @param {ServerExportOptions} options Server export options
|
|
44
|
+
* @returns {Promise<ServerExportInterface>} Promise resolving to a ServerExportInterface object.
|
|
45
|
+
*/
|
|
46
|
+
exportServers(options: ServerExportOptions): Promise<ServerExportInterface>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a server
|
|
49
|
+
* @param {ServerSkeleton} serverData server object
|
|
50
|
+
* @returns {Promise<ServerSkeleton>} a promise that resolves to a server object
|
|
51
|
+
*/
|
|
52
|
+
createServer(serverData: ServerSkeleton): Promise<ServerSkeleton>;
|
|
53
|
+
/**
|
|
54
|
+
* Imports the first server from the importData
|
|
55
|
+
* @param importData server import data
|
|
56
|
+
* @param options server import options
|
|
57
|
+
*/
|
|
58
|
+
importFirstServer(importData: ServerExportInterface, options: ServerImportOptions): Promise<ServerExportInterface>;
|
|
59
|
+
/**
|
|
60
|
+
* Imports servers along with their properties
|
|
61
|
+
* @param {ServerExportInterface} importData server import data
|
|
62
|
+
* @param {ServerImportOptions} options server import options
|
|
63
|
+
* @param {string} serverId Optional server id. If supplied, only the server (and its properties) of that id is imported. Takes priority over serverUrl if both are provided.
|
|
64
|
+
* @param {string} serverUrl Optional server url. If supplied, only the server of that url is imported.
|
|
65
|
+
* @returns {Promise<ServerExportInterface>} a promise that resolves to a server export object
|
|
66
|
+
*/
|
|
67
|
+
importServers(importData: ServerExportInterface, options: ServerImportOptions, serverId?: string, serverUrl?: string): Promise<ServerExportInterface>;
|
|
68
|
+
};
|
|
69
|
+
declare const _default: (state: State) => Server;
|
|
70
|
+
export default _default;
|
|
71
|
+
/**
|
|
72
|
+
* Server export options
|
|
73
|
+
*/
|
|
74
|
+
export interface ServerExportOptions {
|
|
75
|
+
/**
|
|
76
|
+
* True to export the default server properties, false otherwise
|
|
77
|
+
*/
|
|
78
|
+
includeDefault: boolean;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Server import options
|
|
82
|
+
*/
|
|
83
|
+
export interface ServerImportOptions {
|
|
84
|
+
/**
|
|
85
|
+
* True to import the default server properties, false otherwise
|
|
86
|
+
*/
|
|
87
|
+
includeDefault: boolean;
|
|
88
|
+
}
|
|
89
|
+
export type ServerExportSkeleton = ServerSkeleton & {
|
|
90
|
+
properties: ServerPropertiesSkeleton;
|
|
91
|
+
};
|
|
92
|
+
export interface ServerExportInterface {
|
|
93
|
+
meta?: ExportMetaData;
|
|
94
|
+
server: Record<string, ServerExportSkeleton>;
|
|
95
|
+
defaultProperties: ServerPropertiesSkeleton;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Create an empty server export template
|
|
99
|
+
* @returns {ServerExportInterface} an empty server export template
|
|
100
|
+
*/
|
|
101
|
+
export declare function createServerExportTemplate({ state, }: {
|
|
102
|
+
state: State;
|
|
103
|
+
}): ServerExportInterface;
|
|
104
|
+
/**
|
|
105
|
+
* Read server by id
|
|
106
|
+
* @param {string} serverId Server id
|
|
107
|
+
* @returns {Promise<ServerSkeleton>} a promise that resolves to a server object
|
|
108
|
+
*/
|
|
109
|
+
export declare function readServer({ serverId, state, }: {
|
|
110
|
+
serverId: string;
|
|
111
|
+
state: State;
|
|
112
|
+
}): Promise<ServerSkeleton>;
|
|
113
|
+
/**
|
|
114
|
+
* Read server by url
|
|
115
|
+
* @param {string} serverUrl Server url
|
|
116
|
+
* @returns {Promise<ServerSkeleton>} a promise that resolves to a server object
|
|
117
|
+
*/
|
|
118
|
+
export declare function readServerByUrl({ serverUrl, state, }: {
|
|
119
|
+
serverUrl: string;
|
|
120
|
+
state: State;
|
|
121
|
+
}): Promise<ServerSkeleton>;
|
|
122
|
+
/**
|
|
123
|
+
* Read all servers.
|
|
124
|
+
* @returns {Promise<ServerSkeleton[]>} a promise that resolves to an array of server objects
|
|
125
|
+
*/
|
|
126
|
+
export declare function readServers({ state, }: {
|
|
127
|
+
state: State;
|
|
128
|
+
}): Promise<ServerSkeleton[]>;
|
|
129
|
+
/**
|
|
130
|
+
* Export a single server by id. The response can be saved to file as is.
|
|
131
|
+
* @param {string} serverId Server id
|
|
132
|
+
* @param {ServerExportOptions} options Server export options
|
|
133
|
+
* @returns {Promise<ServerExportInterface>} Promise resolving to a ServerExportInterface object.
|
|
134
|
+
*/
|
|
135
|
+
export declare function exportServer({ serverId, options, state, }: {
|
|
136
|
+
serverId: string;
|
|
137
|
+
options: ServerExportOptions;
|
|
138
|
+
state: State;
|
|
139
|
+
}): Promise<ServerExportInterface>;
|
|
140
|
+
/**
|
|
141
|
+
* Export a single server by url. The response can be saved to file as is.
|
|
142
|
+
* @param {string} serverUrl Server url
|
|
143
|
+
* @param {ServerExportOptions} options Server export options
|
|
144
|
+
* @returns {Promise<ServerExportInterface>} Promise resolving to a ServerExportInterface object.
|
|
145
|
+
*/
|
|
146
|
+
export declare function exportServerByUrl({ serverUrl, options, state, }: {
|
|
147
|
+
serverUrl: string;
|
|
148
|
+
options: ServerExportOptions;
|
|
149
|
+
state: State;
|
|
150
|
+
}): Promise<ServerExportInterface>;
|
|
151
|
+
/**
|
|
152
|
+
* Export all servers. The response can be saved to file as is.
|
|
153
|
+
* @param {ServerExportOptions} options Server export options
|
|
154
|
+
* @returns {Promise<ServerExportInterface>} Promise resolving to a ServerExportInterface object.
|
|
155
|
+
*/
|
|
156
|
+
export declare function exportServers({ options, state, }: {
|
|
157
|
+
options: ServerExportOptions;
|
|
158
|
+
state: State;
|
|
159
|
+
}): Promise<ServerExportInterface>;
|
|
160
|
+
/**
|
|
161
|
+
* Creates a server
|
|
162
|
+
* @param {ServerSkeleton} serverData server object
|
|
163
|
+
* @returns {Promise<ServerSkeleton>} a promise that resolves to a server object
|
|
164
|
+
*/
|
|
165
|
+
export declare function createServer({ serverData, state, }: {
|
|
166
|
+
serverData: ServerSkeleton;
|
|
167
|
+
state: any;
|
|
168
|
+
}): Promise<ServerSkeleton>;
|
|
169
|
+
/**
|
|
170
|
+
* Import first server
|
|
171
|
+
* @param {ServerExportInterface} importData import data
|
|
172
|
+
* @param {ServerImportOptions} options import options
|
|
173
|
+
* @returns {Promise<ServerExportInterface>} a promise that resolves to a server export object
|
|
174
|
+
*/
|
|
175
|
+
export declare function importFirstServer({ importData, options, state, }: {
|
|
176
|
+
importData: ServerExportInterface;
|
|
177
|
+
options?: ServerImportOptions;
|
|
178
|
+
state: State;
|
|
179
|
+
}): Promise<ServerExportInterface>;
|
|
180
|
+
/**
|
|
181
|
+
* Imports servers along with their properties
|
|
182
|
+
* @param {string} serverId Optional server id. If supplied, only the server (and its properties) of that id is imported. Takes priority over serverUrl if both are provided.
|
|
183
|
+
* @param {string} serverUrl Optional server url. If supplied, only the server of that url is imported.
|
|
184
|
+
* @param {ServerExportInterface} importData server import data
|
|
185
|
+
* @param {ServerImportOptions} options server import options
|
|
186
|
+
* @returns {Promise<ServerExportInterface>} a promise that resolves to a server export object
|
|
187
|
+
*/
|
|
188
|
+
export declare function importServers({ serverId, serverUrl, importData, options, state, }: {
|
|
189
|
+
serverId?: string;
|
|
190
|
+
serverUrl?: string;
|
|
191
|
+
importData: ServerExportInterface;
|
|
192
|
+
options: ServerImportOptions;
|
|
193
|
+
state: any;
|
|
194
|
+
}): Promise<ServerExportInterface>;
|
|
195
|
+
//# sourceMappingURL=ServerOps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerOps.d.ts","sourceRoot":"","sources":["../../../src/ops/classic/ServerOps.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,wBAAwB,EACxB,cAAc,EACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAS3C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,MAAM,GAAG;IACnB;;;OAGG;IACH,0BAA0B,IAAI,qBAAqB,CAAC;IACpD;;;;OAIG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACtD;;;;OAIG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5D;;;OAGG;IACH,WAAW,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACzC;;;;;OAKG;IACH,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClC;;;;;OAKG;IACH,iBAAiB,CACf,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClC;;;;OAIG;IACH,aAAa,CAAC,OAAO,EAAE,mBAAmB,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E,mBAAmB,CAAC;IAC9B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAgBjC;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,SAAS,EACT,UAAU,EACV,OAEC,EACD,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,qBAAqB,CAAC;IAClC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,KAAK,MAAC;CACP,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAkEjC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { SiteSkeleton } from '../../api/classic/SiteApi';
|
|
2
|
+
import { State } from '../../shared/State';
|
|
3
|
+
import { ExportMetaData } from '../OpsTypes';
|
|
4
|
+
export type Site = {
|
|
5
|
+
/**
|
|
6
|
+
* Create an empty site export template
|
|
7
|
+
* @returns {SiteExportInterface} an empty site export template
|
|
8
|
+
*/
|
|
9
|
+
createSiteExportTemplate(): SiteExportInterface;
|
|
10
|
+
/**
|
|
11
|
+
* Read site by id
|
|
12
|
+
* @param {string} siteId Site id
|
|
13
|
+
* @returns {Promise<SiteSkeleton>} a promise that resolves to a site object
|
|
14
|
+
*/
|
|
15
|
+
readSite(siteId: string): Promise<SiteSkeleton>;
|
|
16
|
+
/**
|
|
17
|
+
* Read all sites.
|
|
18
|
+
* @returns {Promise<SiteSkeleton[]>} a promise that resolves to an array of site objects
|
|
19
|
+
*/
|
|
20
|
+
readSites(): Promise<SiteSkeleton[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Export a single site by id. The response can be saved to file as is.
|
|
23
|
+
* @param {string} siteId Site id
|
|
24
|
+
* @returns {Promise<SiteExportInterface>} Promise resolving to a SiteExportInterface object.
|
|
25
|
+
*/
|
|
26
|
+
exportSite(siteId: string): Promise<SiteExportInterface>;
|
|
27
|
+
/**
|
|
28
|
+
* Export all sites. The response can be saved to file as is.
|
|
29
|
+
* @returns {Promise<SiteExportInterface>} Promise resolving to a SiteExportInterface object.
|
|
30
|
+
*/
|
|
31
|
+
exportSites(): Promise<SiteExportInterface>;
|
|
32
|
+
/**
|
|
33
|
+
* Update site
|
|
34
|
+
* @param {string} siteId site id
|
|
35
|
+
* @param {SiteSkeleton} siteData site data
|
|
36
|
+
* @returns {Promise<SiteSkeleton>} a promise resolving to a site object
|
|
37
|
+
*/
|
|
38
|
+
updateSite(siteId: string, siteData: SiteSkeleton): Promise<SiteSkeleton>;
|
|
39
|
+
/**
|
|
40
|
+
* Import sites
|
|
41
|
+
* @param {SiteExportInterface} importData site import data
|
|
42
|
+
* @param {string} siteId Optional site id. If supplied, only the site of that id is imported. Takes priority over siteUrl if both are provided.
|
|
43
|
+
* @param {string} siteUrl Optional site url. If supplied, only the site of that url is imported.
|
|
44
|
+
* @returns {Promise<SiteSkeleton[]>} the imported sites
|
|
45
|
+
*/
|
|
46
|
+
importSites(importData: SiteExportInterface, siteId?: string, siteUrl?: string): Promise<SiteSkeleton[]>;
|
|
47
|
+
};
|
|
48
|
+
declare const _default: (state: State) => Site;
|
|
49
|
+
export default _default;
|
|
50
|
+
export interface SiteExportInterface {
|
|
51
|
+
meta?: ExportMetaData;
|
|
52
|
+
site: Record<string, SiteSkeleton>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Create an empty site export template
|
|
56
|
+
* @returns {SiteExportInterface} an empty site export template
|
|
57
|
+
*/
|
|
58
|
+
export declare function createSiteExportTemplate({ state, }: {
|
|
59
|
+
state: State;
|
|
60
|
+
}): SiteExportInterface;
|
|
61
|
+
/**
|
|
62
|
+
* Read site by id
|
|
63
|
+
* @param {string} siteId Site id
|
|
64
|
+
* @returns {Promise<SiteSkeleton>} a promise that resolves to a site object
|
|
65
|
+
*/
|
|
66
|
+
export declare function readSite({ siteId, state, }: {
|
|
67
|
+
siteId: string;
|
|
68
|
+
state: State;
|
|
69
|
+
}): Promise<SiteSkeleton>;
|
|
70
|
+
/**
|
|
71
|
+
* Read all sites.
|
|
72
|
+
* @returns {Promise<SiteSkeleton[]>} a promise that resolves to an array of site objects
|
|
73
|
+
*/
|
|
74
|
+
export declare function readSites({ state, }: {
|
|
75
|
+
state: State;
|
|
76
|
+
}): Promise<SiteSkeleton[]>;
|
|
77
|
+
/**
|
|
78
|
+
* Export a single site by id. The response can be saved to file as is.
|
|
79
|
+
* @param {string} siteId Site id
|
|
80
|
+
* @returns {Promise<SiteExportInterface>} Promise resolving to a SiteExportInterface object.
|
|
81
|
+
*/
|
|
82
|
+
export declare function exportSite({ siteId, state, }: {
|
|
83
|
+
siteId: string;
|
|
84
|
+
state: State;
|
|
85
|
+
}): Promise<SiteExportInterface>;
|
|
86
|
+
/**
|
|
87
|
+
* Export all sites. The response can be saved to file as is.
|
|
88
|
+
* @returns {Promise<SiteExportInterface>} Promise resolving to a SiteExportInterface object.
|
|
89
|
+
*/
|
|
90
|
+
export declare function exportSites({ state, }: {
|
|
91
|
+
state: State;
|
|
92
|
+
}): Promise<SiteExportInterface>;
|
|
93
|
+
/**
|
|
94
|
+
* Update site
|
|
95
|
+
* @param {string} siteId site id
|
|
96
|
+
* @param {SiteSkeleton} siteData site config object
|
|
97
|
+
* @returns {Promise<SiteSkeleton>} a promise that resolves to a site object
|
|
98
|
+
*/
|
|
99
|
+
export declare function updateSite({ siteId, siteData, state, }: {
|
|
100
|
+
siteId: string;
|
|
101
|
+
siteData: SiteSkeleton;
|
|
102
|
+
state: State;
|
|
103
|
+
}): Promise<SiteSkeleton>;
|
|
104
|
+
/**
|
|
105
|
+
* Import sites
|
|
106
|
+
* @param {string} siteId Optional site id. If supplied, only the site of that id is imported. Takes priority over siteUrl if both are provided.
|
|
107
|
+
* @param {string} siteUrl Optional site url. If supplied, only the site of that url is imported.
|
|
108
|
+
* @param {SiteExportInterface} importData site import data
|
|
109
|
+
* @returns {Promise<SiteSkeleton[]>} the imported sites
|
|
110
|
+
*/
|
|
111
|
+
export declare function importSites({ siteId, siteUrl, importData, state, }: {
|
|
112
|
+
siteId?: string;
|
|
113
|
+
siteUrl?: string;
|
|
114
|
+
importData: SiteExportInterface;
|
|
115
|
+
state: State;
|
|
116
|
+
}): Promise<SiteSkeleton[]>;
|
|
117
|
+
//# sourceMappingURL=SiteOps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteOps.d.ts","sourceRoot":"","sources":["../../../src/ops/classic/SiteOps.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAS3C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,IAAI,GAAG;IACjB;;;OAGG;IACH,wBAAwB,IAAI,mBAAmB,CAAC;IAChD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAChD;;;OAGG;IACH,SAAS,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IACrC;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACzD;;;OAGG;IACH,WAAW,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1E;;;;;;OAMG;IACH,WAAW,CACT,UAAU,EAAE,mBAAmB,EAC/B,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;CAC5B,CAAC;yBAEc,OAAO,KAAK,KAAG,IAAI;AAAnC,wBAoCE;AAEF,MAAM,WAAW,mBAAmB;I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