@rockcarver/frodo-lib 4.10.0-1 → 4.11.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,160 @@
|
|
|
1
|
+
import { IdObjectSkeletonInterface } from '../api/ApiTypes';
|
|
2
|
+
import { State } from '../shared/State';
|
|
3
|
+
import { ExportMetaData } from './OpsTypes';
|
|
4
|
+
export type EmailTemplate = {
|
|
5
|
+
/**
|
|
6
|
+
* Email template type key used to build the IDM id: 'emailTemplate/<id>'
|
|
7
|
+
*/
|
|
8
|
+
EMAIL_TEMPLATE_TYPE: string;
|
|
9
|
+
/**
|
|
10
|
+
* Create an empty email template export template
|
|
11
|
+
* @returns {EmailTemplateExportInterface} an empty email template export template
|
|
12
|
+
*/
|
|
13
|
+
createEmailTemplateExportTemplate(): EmailTemplateExportInterface;
|
|
14
|
+
/**
|
|
15
|
+
* Get all email templates
|
|
16
|
+
* @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false
|
|
17
|
+
* @returns {Promise<EmailTemplateSkeleton[]>} a promise that resolves to an array of email template objects
|
|
18
|
+
*/
|
|
19
|
+
readEmailTemplates(includeDefault?: boolean): Promise<EmailTemplateSkeleton[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Get email template
|
|
22
|
+
* @param {string} templateId id/name of the email template without the type prefix
|
|
23
|
+
* @returns {Promise<EmailTemplateSkeleton>} a promise that resolves an email template object
|
|
24
|
+
*/
|
|
25
|
+
readEmailTemplate(templateId: string): Promise<EmailTemplateSkeleton>;
|
|
26
|
+
/**
|
|
27
|
+
* Export all email templates. The response can be saved to file as is.
|
|
28
|
+
* @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false
|
|
29
|
+
* @returns {Promise<EmailTemplateExportInterface>} Promise resolving to a EmailTemplateExportInterface object.
|
|
30
|
+
*/
|
|
31
|
+
exportEmailTemplates(includeDefault?: boolean): Promise<EmailTemplateExportInterface>;
|
|
32
|
+
/**
|
|
33
|
+
* Create email template
|
|
34
|
+
* @param {string} templateId id/name of the email template without the type prefix
|
|
35
|
+
* @param {EmailTemplateSkeleton} templateData email template object
|
|
36
|
+
* @returns {Promise<EmailTemplateSkeleton>} a promise that resolves to an email template object
|
|
37
|
+
*/
|
|
38
|
+
createEmailTemplate(templateId: string, templateData: EmailTemplateSkeleton): Promise<EmailTemplateSkeleton>;
|
|
39
|
+
/**
|
|
40
|
+
* Update or create email template
|
|
41
|
+
* @param {string} templateId id/name of the email template without the type prefix
|
|
42
|
+
* @param {EmailTemplateSkeleton} templateData email template object
|
|
43
|
+
* @returns {Promise<EmailTemplateSkeleton>} a promise that resolves to an email template object
|
|
44
|
+
*/
|
|
45
|
+
updateEmailTemplate(templateId: string, templateData: EmailTemplateSkeleton): Promise<EmailTemplateSkeleton>;
|
|
46
|
+
/**
|
|
47
|
+
* Import all email templates
|
|
48
|
+
* @param {EmailTemplateExportInterface} importData import data
|
|
49
|
+
* @returns {Promise<IdObjectSkeletonInterface[]>} a promise resolving to an array of email template objects
|
|
50
|
+
*/
|
|
51
|
+
importEmailTemplates(importData: EmailTemplateExportInterface): Promise<EmailTemplateSkeleton[]>;
|
|
52
|
+
/**
|
|
53
|
+
* Delete all email templates
|
|
54
|
+
* @returns {Promise<EmailTemplateSkeleton[]>} a promise that resolves to an array of email template objects
|
|
55
|
+
*/
|
|
56
|
+
deleteEmailTemplates(): Promise<EmailTemplateSkeleton[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Delete email template
|
|
59
|
+
* @param {string} templateId id/name of the email template without the type prefix 'emailTemplate/'
|
|
60
|
+
* @returns {Promise<EmailTemplateSkeleton>} a promise that resolves an email template object
|
|
61
|
+
*/
|
|
62
|
+
deleteEmailTemplate(templateId: string): Promise<EmailTemplateSkeleton>;
|
|
63
|
+
};
|
|
64
|
+
declare const _default: (state: State) => EmailTemplate;
|
|
65
|
+
export default _default;
|
|
66
|
+
/**
|
|
67
|
+
* Email template type key used to build the IDM id: 'emailTemplate/<id>'
|
|
68
|
+
*/
|
|
69
|
+
export declare const EMAIL_TEMPLATE_TYPE = "emailTemplate";
|
|
70
|
+
export type EmailTemplateSkeleton = IdObjectSkeletonInterface & {
|
|
71
|
+
defaultLocale?: string;
|
|
72
|
+
displayName?: string;
|
|
73
|
+
enabled?: boolean;
|
|
74
|
+
from: string;
|
|
75
|
+
subject: Record<string, string>;
|
|
76
|
+
message?: Record<string, string>;
|
|
77
|
+
html?: Record<string, string>;
|
|
78
|
+
};
|
|
79
|
+
export interface EmailTemplateExportInterface {
|
|
80
|
+
meta?: ExportMetaData;
|
|
81
|
+
emailTemplate: Record<string, EmailTemplateSkeleton>;
|
|
82
|
+
}
|
|
83
|
+
export declare function createEmailTemplateExportTemplate({ state, }: {
|
|
84
|
+
state: State;
|
|
85
|
+
}): EmailTemplateExportInterface;
|
|
86
|
+
/**
|
|
87
|
+
* Get all email templates
|
|
88
|
+
* @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false
|
|
89
|
+
* @returns {Promise<EmailTemplateSkeleton[]>} a promise that resolves to an array of email template objects
|
|
90
|
+
*/
|
|
91
|
+
export declare function readEmailTemplates({ includeDefault, state, }: {
|
|
92
|
+
includeDefault?: boolean;
|
|
93
|
+
state: State;
|
|
94
|
+
}): Promise<EmailTemplateSkeleton[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Get email template
|
|
97
|
+
* @param {string} templateId id/name of the email template without the type prefix
|
|
98
|
+
* @returns {Promise<EmailTemplateSkeleton>} a promise that resolves an email template object
|
|
99
|
+
*/
|
|
100
|
+
export declare function readEmailTemplate({ templateId, state, }: {
|
|
101
|
+
templateId: string;
|
|
102
|
+
state: State;
|
|
103
|
+
}): Promise<EmailTemplateSkeleton>;
|
|
104
|
+
/**
|
|
105
|
+
* Export all email templates. The response can be saved to file as is.
|
|
106
|
+
* @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false
|
|
107
|
+
* @returns {Promise<EmailTemplateExportInterface>} Promise resolving to a EmailTemplateExportInterface object.
|
|
108
|
+
*/
|
|
109
|
+
export declare function exportEmailTemplates({ includeDefault, state, }: {
|
|
110
|
+
includeDefault: boolean;
|
|
111
|
+
state: State;
|
|
112
|
+
}): Promise<EmailTemplateExportInterface>;
|
|
113
|
+
/**
|
|
114
|
+
* Create email template
|
|
115
|
+
* @param {string} templateId id/name of the email template without the type prefix
|
|
116
|
+
* @param {EmailTemplateSkeleton} templateData email template object
|
|
117
|
+
* @returns {Promise<EmailTemplateSkeleton>} a promise that resolves to an email template object
|
|
118
|
+
*/
|
|
119
|
+
export declare function createEmailTemplate({ templateId, templateData, state, }: {
|
|
120
|
+
templateId: string;
|
|
121
|
+
templateData: EmailTemplateSkeleton;
|
|
122
|
+
state: State;
|
|
123
|
+
}): Promise<EmailTemplateSkeleton>;
|
|
124
|
+
/**
|
|
125
|
+
* Update or create email template
|
|
126
|
+
* @param {string} templateId id/name of the email template without the type prefix
|
|
127
|
+
* @param {EmailTemplateSkeleton} templateData email template object
|
|
128
|
+
* @returns {Promise<EmailTemplateSkeleton>} a promise that resolves to an email template object
|
|
129
|
+
*/
|
|
130
|
+
export declare function updateEmailTemplate({ templateId, templateData, state, }: {
|
|
131
|
+
templateId: string;
|
|
132
|
+
templateData: EmailTemplateSkeleton;
|
|
133
|
+
state: State;
|
|
134
|
+
}): Promise<EmailTemplateSkeleton>;
|
|
135
|
+
/**
|
|
136
|
+
* Import email templates.
|
|
137
|
+
* @param {EmailTemplateExportInterface} importData email template import data.
|
|
138
|
+
* @returns {Promise<SocialIdpSkeleton[]>} a promise resolving to an array of email template objects
|
|
139
|
+
*/
|
|
140
|
+
export declare function importEmailTemplates({ importData, state, }: {
|
|
141
|
+
importData: EmailTemplateExportInterface;
|
|
142
|
+
state: State;
|
|
143
|
+
}): Promise<EmailTemplateSkeleton[]>;
|
|
144
|
+
/**
|
|
145
|
+
* Delete all email templates
|
|
146
|
+
* @returns {Promise<EmailTemplateSkeleton[]>} a promise that resolves to an array of email template objects
|
|
147
|
+
*/
|
|
148
|
+
export declare function deleteEmailTemplates({ state, }: {
|
|
149
|
+
state: State;
|
|
150
|
+
}): Promise<EmailTemplateSkeleton[]>;
|
|
151
|
+
/**
|
|
152
|
+
* Delete email template
|
|
153
|
+
* @param {string} templateId id/name of the email template without the type prefix 'emailTemplate/'
|
|
154
|
+
* @returns {Promise<EmailTemplateSkeleton>} a promise that resolves an email template object
|
|
155
|
+
*/
|
|
156
|
+
export declare function deleteEmailTemplate({ templateId, state, }: {
|
|
157
|
+
templateId: string;
|
|
158
|
+
state: State;
|
|
159
|
+
}): Promise<EmailTemplateSkeleton>;
|
|
160
|
+
//# sourceMappingURL=EmailTemplateOps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailTemplateOps.d.ts","sourceRoot":"","sources":["../../src/ops/EmailTemplateOps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAO5D,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAaxC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,iCAAiC,IAAI,4BAA4B,CAAC;IAClE;;;;OAIG;IACH,kBAAkB,CAChB,cAAc,CAAC,EAAE,OAAO,GACvB,OAAO,CAAC,qBAAqB,EAAE,CA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ACH,wBAAsB,oBAAoB,CAAC,EACzC,UAAU,EACV,KAAK,GACN,EAAE;IACD,UAAU,EAAE,4BAA4B,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC,CA4CnC;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,EACzC,KAAK,GACN,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAwCnC;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,EACxC,UAAU,EACV,KAAK,GACN,EAAE;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAUjC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare class FrodoError extends Error {
|
|
2
|
+
originalErrors: Error[];
|
|
3
|
+
isHttpError: boolean;
|
|
4
|
+
httpCode: string;
|
|
5
|
+
httpStatus: number;
|
|
6
|
+
httpMessage: string;
|
|
7
|
+
httpDetail: string;
|
|
8
|
+
httpErrorText: string;
|
|
9
|
+
httpErrorReason: string;
|
|
10
|
+
httpDescription: string;
|
|
11
|
+
constructor(message: string, originalErrors?: Error | Error[]);
|
|
12
|
+
getOriginalErrors(): Error[];
|
|
13
|
+
getCombinedMessage(level?: number): string;
|
|
14
|
+
toString(): string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* True only for a confirmed HTTP 404 — never for permission (403), server
|
|
18
|
+
* (5xx), network/timeout, or malformed-response failures. Use this (not a
|
|
19
|
+
* bare `catch` block) to decide whether a failed existence-check read means
|
|
20
|
+
* "confirmed absent, safe to create" versus "the check itself failed, don't
|
|
21
|
+
* guess."
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Checks the error itself first (a `FrodoError.httpStatus`, or a raw
|
|
25
|
+
* axios-shaped `error.response.status` — `originalErrors` can hold either,
|
|
26
|
+
* see {@link FrodoError.getCombinedMessage}'s own `FrodoError`-vs-
|
|
27
|
+
* `AxiosError` branching), then recurses through
|
|
28
|
+
* {@link FrodoError.originalErrors} if this is a `FrodoError`. Two things
|
|
29
|
+
* make the direct check alone insufficient: a `FrodoError` thrown from
|
|
30
|
+
* inside another `FrodoError`'s own `catch` block (a double-wrap, e.g. a
|
|
31
|
+
* read function that itself calls another read function) has no
|
|
32
|
+
* `.response` of its own for the outer wrap's constructor to read a status
|
|
33
|
+
* off of, so its own `httpStatus` is `null` even when the underlying
|
|
34
|
+
* failure genuinely was a 404; and `FrodoError.httpStatus` itself only ever
|
|
35
|
+
* reflects `originalErrors[0]` (see the constructor), so a 404 at another
|
|
36
|
+
* index of a wrapped *array* of causes would otherwise be missed too.
|
|
37
|
+
* Recursing checks every node in the chain, at any depth, individually.
|
|
38
|
+
*/
|
|
39
|
+
export declare function isNotFoundError(error: unknown): boolean;
|
|
40
|
+
//# sourceMappingURL=FrodoError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrodoError.d.ts","sourceRoot":"","sources":["../../src/ops/FrodoError.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAW,SAAQ,KAAK;IACnC,cAAc,EAAE,KAAK,EAAE,CAAM;IAC7B,WAAW,EAAE,OAAO,CAAS;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;gBAEZ,OAAO,EAAE,MAAM,EAAE,cAAc,GAAE,KAAK,GAAG,KAAK,EAAS;IAwDnE,iBAAiB,IAAI,KAAK,EAAE;IAI5B,kBAAkB,CAAC,KAAK,GAAE,MAAU,GAAG,MAAM;IA6D7C,QAAQ;CAGT;AAeD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAQvD"}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { IdObjectSkeletonInterface, NoIdObjectSkeletonInterface } from '../api/ApiTypes';
|
|
2
|
+
import { IdmConfigStub } from '../api/IdmConfigApi';
|
|
3
|
+
import { State } from '../shared/State';
|
|
4
|
+
import { ExportMetaData, ResultCallback } from './OpsTypes';
|
|
5
|
+
export type IdmConfig = {
|
|
6
|
+
/** Read configured managed-object type names. */
|
|
7
|
+
readManagedObjectTypes(): Promise<string[]>;
|
|
8
|
+
/**
|
|
9
|
+
* Read available config entity types
|
|
10
|
+
* @returns {string[]} promise resolving to an array of config entity types
|
|
11
|
+
*/
|
|
12
|
+
readConfigEntityTypes(): Promise<string[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Read all config entity stubs. For full entities use {@link IdmConfig.readConfigEntities | readConfigEntities}.
|
|
15
|
+
* @returns {IdmConfigStub[]} promise resolving to an array of config entity stubs
|
|
16
|
+
*/
|
|
17
|
+
readConfigEntityStubs(): Promise<IdmConfigStub[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Read all config entities
|
|
20
|
+
* @returns {IdObjectSkeletonInterface[]} promise reolving to an array of config entities
|
|
21
|
+
*/
|
|
22
|
+
readConfigEntities(): Promise<IdObjectSkeletonInterface[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Read all config entities of a type
|
|
25
|
+
* @param {string} type config entity type
|
|
26
|
+
* @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false
|
|
27
|
+
* @returns {IdObjectSkeletonInterface[]} promise resolving to an array of config entities of a type
|
|
28
|
+
*/
|
|
29
|
+
readConfigEntitiesByType(type: string, includeDefault?: boolean): Promise<IdObjectSkeletonInterface[]>;
|
|
30
|
+
/**
|
|
31
|
+
* Read config entity
|
|
32
|
+
* @param {string} entityId config entity id/name
|
|
33
|
+
* @returns {IdObjectSkeletonInterface} promise resolving to a config entity
|
|
34
|
+
*/
|
|
35
|
+
readConfigEntity(entityId: string): Promise<IdObjectSkeletonInterface>;
|
|
36
|
+
/**
|
|
37
|
+
* Export a single IDM config entity
|
|
38
|
+
* @param {string} entityId config entity id
|
|
39
|
+
* @returns {ConfigEntityExportInterface} promise resolving to a ConfigEntityExportInterface object
|
|
40
|
+
*/
|
|
41
|
+
exportConfigEntity(entityId: string): Promise<ConfigEntityExportInterface>;
|
|
42
|
+
/**
|
|
43
|
+
* Export all IDM config entities
|
|
44
|
+
* @param {ConfigEntityExportOptions} options export options
|
|
45
|
+
* @param {ResultCallback} resultCallback Optional callback to process individual results
|
|
46
|
+
* @returns {ConfigEntityExportInterface} promise resolving to a ConfigEntityExportInterface object
|
|
47
|
+
*/
|
|
48
|
+
exportConfigEntities(options?: ConfigEntityExportOptions, resultCallback?: ResultCallback<IdObjectSkeletonInterface>): Promise<ConfigEntityExportInterface>;
|
|
49
|
+
/**
|
|
50
|
+
* Create config entity
|
|
51
|
+
* @param {string} entityId config entity id/name
|
|
52
|
+
* @param {IdObjectSkeletonInterface} entityData config entity data
|
|
53
|
+
* @param {boolean} wait delay the response until an OSGi service event confirms the change has been consumed by the corresponding service or the request times out.
|
|
54
|
+
* @returns {IdObjectSkeletonInterface} promise resolving to a config entity
|
|
55
|
+
*/
|
|
56
|
+
createConfigEntity(entityId: string, entityData: IdObjectSkeletonInterface, wait?: boolean): Promise<IdObjectSkeletonInterface>;
|
|
57
|
+
/**
|
|
58
|
+
* Update or create config entity
|
|
59
|
+
* @param {string} entityId config entity id/name
|
|
60
|
+
* @param {IdObjectSkeletonInterface} entityData config entity data
|
|
61
|
+
* @param {boolean} wait delay the response until an OSGi service event confirms the change has been consumed by the corresponding service or the request times out.
|
|
62
|
+
* @returns {IdObjectSkeletonInterface} promise resolving to a config entity
|
|
63
|
+
*/
|
|
64
|
+
updateConfigEntity(entityId: string, entityData: IdObjectSkeletonInterface, wait?: boolean): Promise<IdObjectSkeletonInterface>;
|
|
65
|
+
/**
|
|
66
|
+
* Import idm config entities.
|
|
67
|
+
* @param {ConfigEntityExportInterface} importData idm config entity import data.
|
|
68
|
+
* @param {string} entityId Optional entity id that, when provided, will only import the entity of that id from the importData
|
|
69
|
+
* @param {ConfigEntityImportOptions} options import options
|
|
70
|
+
* @param {ResultCallback} resultCallback Optional callback to process individual results
|
|
71
|
+
* @returns {Promise<IdObjectSkeletonInterface[]>} a promise resolving to an array of config entity objects
|
|
72
|
+
*/
|
|
73
|
+
importConfigEntities(importData: ConfigEntityExportInterface, entityId?: string, options?: ConfigEntityImportOptions, resultCallback?: ResultCallback<IdObjectSkeletonInterface>): Promise<IdObjectSkeletonInterface[]>;
|
|
74
|
+
/**
|
|
75
|
+
* Delete all config entities
|
|
76
|
+
* @param {ResultCallback} resultCallback Optional callback to process individual results
|
|
77
|
+
* @returns {IdObjectSkeletonInterface[]} promise reolving to an array of config entities
|
|
78
|
+
*/
|
|
79
|
+
deleteConfigEntities(resultCallback?: ResultCallback<IdObjectSkeletonInterface>): Promise<IdObjectSkeletonInterface[]>;
|
|
80
|
+
/**
|
|
81
|
+
* Delete all config entities of a type
|
|
82
|
+
* @param {string} type config entity type
|
|
83
|
+
* @param {ResultCallback} resultCallback Optional callback to process individual results
|
|
84
|
+
* @returns {IdObjectSkeletonInterface[]} promise resolving to an array of config entities of a type
|
|
85
|
+
*/
|
|
86
|
+
deleteConfigEntitiesByType(type: string, resultCallback?: ResultCallback<IdObjectSkeletonInterface>): Promise<IdObjectSkeletonInterface[]>;
|
|
87
|
+
/**
|
|
88
|
+
* Delete config entity
|
|
89
|
+
* @param {string} entityId config entity id/name
|
|
90
|
+
* @returns {IdObjectSkeletonInterface} promise resolving to a config entity
|
|
91
|
+
*/
|
|
92
|
+
deleteConfigEntity(entityId: string): Promise<IdObjectSkeletonInterface>;
|
|
93
|
+
/**
|
|
94
|
+
* Read a idm sub config entity.
|
|
95
|
+
* @param {string} entityId entity id for the parent config entity of the sub config entity that is being read
|
|
96
|
+
* @param {string} name name of the sub config entity that is being read
|
|
97
|
+
* @returns {Promise<IdObjectSkeletonInterface>} a promise resolving to a sub config entity object
|
|
98
|
+
* @remarks For `entityId: 'managed'`, this reads the whole managed-object
|
|
99
|
+
* type definition (schema included), for any deployment type. This is the
|
|
100
|
+
* general-purpose per-property read path too — read the whole type and
|
|
101
|
+
* look up the property you need. `ManagedObjectSchemaOps.ts`'s
|
|
102
|
+
* `readManagedObjectSchemaProperty` is a narrower, relationship-property-
|
|
103
|
+
* specific alternative (available wherever IDM runs -- Cloud and
|
|
104
|
+
* ForgeOps, not classic), not a general replacement.
|
|
105
|
+
*/
|
|
106
|
+
readSubConfigEntity(entityId: string, name: string): Promise<NoIdObjectSkeletonInterface>;
|
|
107
|
+
/**
|
|
108
|
+
* Import a idm sub config entity.
|
|
109
|
+
* @param {string} entityId entity id for parent config entity of the sub config that is being updated
|
|
110
|
+
* @param {NoIdObjectSkeletonInterface} updatedSubConfigEntity the updated sub config entity
|
|
111
|
+
* @param {ConfigEntityImportOptions} options import options
|
|
112
|
+
* @returns {Promise<IdObjectSkeletonInterface[]>} a promise resolving to an array of config entity objects
|
|
113
|
+
* @remarks For `entityId: 'managed'`, this read-modify-writes the whole
|
|
114
|
+
* managed-object type definition (schema included), for any deployment
|
|
115
|
+
* type — including adding, changing, or removing individual custom
|
|
116
|
+
* property/relationship definitions (edit `.schema.properties` on the
|
|
117
|
+
* object you pass in). `ManagedObjectSchemaOps.ts`'s
|
|
118
|
+
* `updateManagedObjectSchemaProperty` / `removeManagedObjectSchemaProperty`
|
|
119
|
+
* are a narrower, relationship-property-specific alternative (available
|
|
120
|
+
* wherever IDM runs -- Cloud and ForgeOps, not classic), not a general
|
|
121
|
+
* replacement.
|
|
122
|
+
*/
|
|
123
|
+
importSubConfigEntity(entityId: string, updatedSubConfigEntity: IdObjectSkeletonInterface, options?: ConfigEntityImportOptions): Promise<IdObjectSkeletonInterface[]>;
|
|
124
|
+
/**
|
|
125
|
+
* Remove a idm sub config entity.
|
|
126
|
+
* @param {string} entityId entity id for parent config entity of the sub config that is being removed
|
|
127
|
+
* @param {string} name name of the sub config entity that is being removed
|
|
128
|
+
* @param {ConfigEntityImportOptions} options import options
|
|
129
|
+
* @returns {Promise<IdObjectSkeletonInterface[]>} a promise resolving to an array of config entity objects
|
|
130
|
+
* @remarks For `entityId: 'managed'`, this removes a whole managed-object
|
|
131
|
+
* type definition (schema included), for any deployment type. To remove a
|
|
132
|
+
* single property within a type instead, use `readSubConfigEntity` /
|
|
133
|
+
* `importSubConfigEntity` to read-modify-write that type's
|
|
134
|
+
* `.schema.properties`.
|
|
135
|
+
*/
|
|
136
|
+
removeSubConfigEntity(entityId: string, name: string, options?: ConfigEntityImportOptions): Promise<IdObjectSkeletonInterface[]>;
|
|
137
|
+
};
|
|
138
|
+
declare const _default: (state: State) => IdmConfig;
|
|
139
|
+
export default _default;
|
|
140
|
+
/**
|
|
141
|
+
* Idm export options
|
|
142
|
+
*/
|
|
143
|
+
export interface ConfigEntityExportOptions {
|
|
144
|
+
/**
|
|
145
|
+
* Gives a list of entities to export. If undefined or empty, it will export all entities.
|
|
146
|
+
*/
|
|
147
|
+
entitiesToExport?: string[];
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Config entity import options
|
|
151
|
+
*/
|
|
152
|
+
export interface ConfigEntityImportOptions {
|
|
153
|
+
/**
|
|
154
|
+
* Gives a list of entities to import. If undefined or empty, it will import all entities.
|
|
155
|
+
*/
|
|
156
|
+
entitiesToImport?: string[];
|
|
157
|
+
/**
|
|
158
|
+
* validate script hooks
|
|
159
|
+
*/
|
|
160
|
+
validate: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Wait for each entity's config write to fully propagate before returning,
|
|
163
|
+
* rather than the async-by-default behavior. Defaults to false to match
|
|
164
|
+
* this option's pre-existing behavior for bulk/whole-config imports (where
|
|
165
|
+
* waiting on every entity could be slow); pass true for an import an
|
|
166
|
+
* immediately-following read or dependent write needs to be consistent
|
|
167
|
+
* with (e.g. importing a single managed-object type just before creating
|
|
168
|
+
* a relationship property that targets it).
|
|
169
|
+
*/
|
|
170
|
+
wait?: boolean;
|
|
171
|
+
}
|
|
172
|
+
export interface ConfigEntityExportInterface {
|
|
173
|
+
meta?: ExportMetaData;
|
|
174
|
+
idm: Record<string, IdObjectSkeletonInterface>;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Create an empty config entity export template
|
|
178
|
+
* @returns {ConfigEntityExportInterface} an empty config entity export template
|
|
179
|
+
*/
|
|
180
|
+
export declare function createConfigEntityExportTemplate({ state, }: {
|
|
181
|
+
state: State;
|
|
182
|
+
}): ConfigEntityExportInterface;
|
|
183
|
+
export declare function readConfigEntityStubs({ state, }: {
|
|
184
|
+
state: State;
|
|
185
|
+
}): Promise<IdmConfigStub[]>;
|
|
186
|
+
export declare function readConfigEntityTypes({ state, }: {
|
|
187
|
+
state: State;
|
|
188
|
+
}): Promise<string[]>;
|
|
189
|
+
export declare function readConfigEntities({ state, }: {
|
|
190
|
+
state: State;
|
|
191
|
+
}): Promise<IdObjectSkeletonInterface[]>;
|
|
192
|
+
export declare function readConfigEntitiesByType({ type, includeDefault, state, }: {
|
|
193
|
+
type: string;
|
|
194
|
+
includeDefault?: boolean;
|
|
195
|
+
state: State;
|
|
196
|
+
}): Promise<NoIdObjectSkeletonInterface[]>;
|
|
197
|
+
export declare function readConfigEntity({ entityId, state, }: {
|
|
198
|
+
entityId: string;
|
|
199
|
+
state: State;
|
|
200
|
+
}): Promise<IdObjectSkeletonInterface>;
|
|
201
|
+
/**
|
|
202
|
+
* Reads the tenant's configured managed-object type names.
|
|
203
|
+
*/
|
|
204
|
+
export declare function readManagedObjectTypes({ state, }: {
|
|
205
|
+
state: State;
|
|
206
|
+
}): Promise<string[]>;
|
|
207
|
+
/** Extracts validated, unique managed-object names from a managed config. */
|
|
208
|
+
export declare function extractManagedObjectTypes(entity: unknown): string[];
|
|
209
|
+
export declare const AIC_PROTECTED_ENTITIES: string[];
|
|
210
|
+
/**
|
|
211
|
+
* Export a single IDM config entity
|
|
212
|
+
* @param {string} entityId config entity id
|
|
213
|
+
* @returns {ConfigEntityExportInterface} promise resolving to a ConfigEntityExportInterface object
|
|
214
|
+
*/
|
|
215
|
+
export declare function exportConfigEntity({ entityId, state, }: {
|
|
216
|
+
entityId: string;
|
|
217
|
+
state: State;
|
|
218
|
+
}): Promise<ConfigEntityExportInterface>;
|
|
219
|
+
/**
|
|
220
|
+
* Export all IDM config entities
|
|
221
|
+
* @param {ConfigEntityExportOptions} options export options
|
|
222
|
+
* @param {ResultCallback} resultCallback Optional callback to process individual results
|
|
223
|
+
* @returns {ConfigEntityExportInterface} promise resolving to a ConfigEntityExportInterface object
|
|
224
|
+
*/
|
|
225
|
+
export declare function exportConfigEntities({ options, resultCallback, state, }: {
|
|
226
|
+
options?: ConfigEntityExportOptions;
|
|
227
|
+
resultCallback?: ResultCallback<IdObjectSkeletonInterface>;
|
|
228
|
+
state: State;
|
|
229
|
+
}): Promise<ConfigEntityExportInterface>;
|
|
230
|
+
export declare function createConfigEntity({ entityId, entityData, wait, state, }: {
|
|
231
|
+
entityId: string;
|
|
232
|
+
entityData: IdObjectSkeletonInterface;
|
|
233
|
+
wait?: boolean;
|
|
234
|
+
state: State;
|
|
235
|
+
}): Promise<IdObjectSkeletonInterface>;
|
|
236
|
+
export declare function updateConfigEntity({ entityId, entityData, wait, state, }: {
|
|
237
|
+
entityId: string;
|
|
238
|
+
entityData: IdObjectSkeletonInterface;
|
|
239
|
+
wait?: boolean;
|
|
240
|
+
state: State;
|
|
241
|
+
}): Promise<IdObjectSkeletonInterface>;
|
|
242
|
+
export declare function importConfigEntities({ entityId, importData, options, resultCallback, state, }: {
|
|
243
|
+
entityId?: string;
|
|
244
|
+
importData: ConfigEntityExportInterface;
|
|
245
|
+
options: ConfigEntityImportOptions;
|
|
246
|
+
resultCallback?: ResultCallback<IdObjectSkeletonInterface>;
|
|
247
|
+
state: State;
|
|
248
|
+
}): Promise<IdObjectSkeletonInterface[]>;
|
|
249
|
+
export declare function deleteConfigEntities({ resultCallback, state, }: {
|
|
250
|
+
resultCallback?: ResultCallback<IdObjectSkeletonInterface>;
|
|
251
|
+
state: State;
|
|
252
|
+
}): Promise<IdObjectSkeletonInterface[]>;
|
|
253
|
+
export declare function deleteConfigEntitiesByType({ type, resultCallback, state, }: {
|
|
254
|
+
type: string;
|
|
255
|
+
resultCallback?: ResultCallback<IdObjectSkeletonInterface>;
|
|
256
|
+
state: State;
|
|
257
|
+
}): Promise<IdObjectSkeletonInterface[]>;
|
|
258
|
+
export declare function deleteConfigEntity({ entityId, state, }: {
|
|
259
|
+
entityId: string;
|
|
260
|
+
state: State;
|
|
261
|
+
}): Promise<IdObjectSkeletonInterface>;
|
|
262
|
+
export declare function readSubConfigEntity({ entityId, name, state, }: {
|
|
263
|
+
entityId: string;
|
|
264
|
+
name: string;
|
|
265
|
+
state: State;
|
|
266
|
+
}): Promise<NoIdObjectSkeletonInterface>;
|
|
267
|
+
export declare function importSubConfigEntity({ entityId, updatedSubConfigEntity, options, state, }: {
|
|
268
|
+
entityId: string;
|
|
269
|
+
updatedSubConfigEntity: IdObjectSkeletonInterface;
|
|
270
|
+
options: ConfigEntityImportOptions;
|
|
271
|
+
state: State;
|
|
272
|
+
}): Promise<IdObjectSkeletonInterface[]>;
|
|
273
|
+
/**
|
|
274
|
+
* Remove a idm sub config entity.
|
|
275
|
+
* @param {string} entityId entity id for parent config entity of the sub config that is being removed
|
|
276
|
+
* @param {string} name name of the sub config entity that is being removed
|
|
277
|
+
* @param {ConfigEntityImportOptions} options import options
|
|
278
|
+
* @returns {Promise<IdObjectSkeletonInterface[]>} a promise resolving to an array of config entity objects
|
|
279
|
+
*/
|
|
280
|
+
export declare function removeSubConfigEntity({ entityId, name, options, state, }: {
|
|
281
|
+
entityId: string;
|
|
282
|
+
name: string;
|
|
283
|
+
options?: ConfigEntityImportOptions;
|
|
284
|
+
state: State;
|
|
285
|
+
}): Promise<IdObjectSkeletonInterface[]>;
|
|
286
|
+
//# sourceMappingURL=IdmConfigOps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdmConfigOps.d.ts","sourceRoot":"","sources":["../../src/ops/IdmConfigOps.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAOL,aAAa,EACd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAexC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG;IACtB,iDAAiD;IACjD,sBAAsB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5C;;;OAGG;IACH,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3C;;;OAGG;IACH,qBAAqB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAClD;;;OAGG;IACH,kBAAkB,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAC3D;;;;;OAKG;IACH,wBAAwB,CACtB,IAAI,EAAE,MAAM,EACZ,cAAc,CAAC,EAAE,OAAO,GACvB,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAC;IACxC;;;;OAIG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACvE;;;;OAIG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC3E;;;;;OAKG;IACH,oBAAoB,CAClB,OAAO,CAAC,EAAE,yBAAyB,EACnC,cAAc,CAAC,EAAE,cAAc,CAAC,yBAAyB,CAAC,GACzD,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACxC;;;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AAsB,mBAAmB,CAAC,EACxC,QAAQ,EACR,IAAI,EACJ,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAyBvC;AAED,wBAAsB,qBAAqB,CAAC,EAC1C,QAAQ,EACR,sBAAsB,EACtB,OAGC,EACD,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB,EAAE,yBAAyB,CAAC;IAClD,OAAO,EAAE,yBAAyB,CAAC;IACnC,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAgDvC;AAED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,EAC1C,QAAQ,EACR,IAAI,EACJ,OAGC,EACD,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC,CA0CvC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { State } from '../shared/State';
|
|
2
|
+
export type IdmCrypto = {
|
|
3
|
+
/**
|
|
4
|
+
* Test if a value is encrypted
|
|
5
|
+
* @param {any} value value to test
|
|
6
|
+
* @returns {boolean} true if the value is encrypted, false otherwise
|
|
7
|
+
*/
|
|
8
|
+
isEncrypted(value: any): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Encrypt a value
|
|
11
|
+
* @param {any} value value to encrypt
|
|
12
|
+
* @returns {Promise<any>} a promise resolving to the encrypted value
|
|
13
|
+
*/
|
|
14
|
+
encrypt(value: any): Promise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* Encrypt a map of values
|
|
17
|
+
* @param {{ [key: string]: any }} map map of values to encrypt
|
|
18
|
+
* @returns {Promise<{ [key: string]: any }>} a promise resolving to a map of encrypted values
|
|
19
|
+
*/
|
|
20
|
+
encryptMap(map: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}): Promise<{
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Decrypt a value
|
|
27
|
+
* @returns {Promise<SystemStatusInterface[]>} a promise resolving to the decrypted value
|
|
28
|
+
*/
|
|
29
|
+
decrypt(script: string): Promise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* Decrypt a map of values
|
|
32
|
+
* @param {{ [key: string]: any }} map map of values to decrypt
|
|
33
|
+
* @returns {Promise<{ [key: string]: any }>} a promise resolving to a map of decrypted values
|
|
34
|
+
*/
|
|
35
|
+
decryptMap(map: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}): Promise<{
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>;
|
|
40
|
+
};
|
|
41
|
+
declare const _default: (state: State) => IdmCrypto;
|
|
42
|
+
export default _default;
|
|
43
|
+
export declare function isEncrypted(value: any): boolean;
|
|
44
|
+
export declare function encrypt({ value, state, }: {
|
|
45
|
+
value: any;
|
|
46
|
+
state: State;
|
|
47
|
+
}): Promise<any>;
|
|
48
|
+
export declare function encryptMap({ map, state, }: {
|
|
49
|
+
map: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
state: State;
|
|
53
|
+
}): Promise<{
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}>;
|
|
56
|
+
export declare function decrypt({ value, state, }: {
|
|
57
|
+
value: any;
|
|
58
|
+
state: State;
|
|
59
|
+
}): Promise<any>;
|
|
60
|
+
export declare function decryptMap({ map, state, }: {
|
|
61
|
+
map: {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
};
|
|
64
|
+
state: State;
|
|
65
|
+
}): Promise<{
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}>;
|
|
68
|
+
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GAAG,GAAG,CAAA;KAAE,CAAC;IAC5B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC,CAelC;AAED,wBAAsB,OAAO,CAAC,EAC5B,KAAK,EACL,KAAK,GACN,EAAE;IACD,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,GAAG,CAAC,CAWf;AAED,wBAAsB,UAAU,CAAC,EAC/B,GAAG,EACH,KAAK,GACN,EAAE;IACD,GAAG,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC5B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC,CAelC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { State } from '../shared/State';
|
|
2
|
+
export type IdmScript = {
|
|
3
|
+
/**
|
|
4
|
+
* Compile a JS script
|
|
5
|
+
* @returns {Promise<string | object>} a promise resolving to 'true' or an error message
|
|
6
|
+
*/
|
|
7
|
+
compileScript(script: string): Promise<string | object>;
|
|
8
|
+
/**
|
|
9
|
+
* Run a JS script
|
|
10
|
+
* @returns {Promise<SystemStatusInterface[]>} a promise resolving to the script result
|
|
11
|
+
*/
|
|
12
|
+
evaluateScript(script: string, globals?: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): Promise<any>;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: (state: State) => IdmScript;
|
|
17
|
+
export default _default;
|
|
18
|
+
export declare function compileScript({ script, state, }: {
|
|
19
|
+
script: string;
|
|
20
|
+
state: State;
|
|
21
|
+
}): Promise<string | object>;
|
|
22
|
+
export declare function evaluateScript({ script, globals, state, }: {
|
|
23
|
+
script: string;
|
|
24
|
+
globals?: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
state: State;
|
|
28
|
+
}): Promise<any>;
|
|
29
|
+
//# sourceMappingURL=IdmScriptOps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdmScriptOps.d.ts","sourceRoot":"","sources":["../../src/ops/IdmScriptOps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGxC,MAAM,MAAM,SAAS,GAAG;IACtB;;;OAGG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACxD;;;OAGG;IACH,cAAc,CACZ,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAC/B,OAAO,CAAC,GAAG,CAAC,CAAC;CACjB,CAAC;yBAEc,OAAO,KAAK,KAAG,SAAS;AAAxC,wBAYE;AAEF,wBAAsB,aAAa,CAAC,EAClC,MAAM,EACN,KAAK,GACN,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAO3B;AAED,wBAAsB,cAAc,CAAC,EACnC,MAAM,EACN,OAAY,EACZ,KAAK,GACN,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACjC,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,GAAG,CAAC,CAOf"}
|