@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,271 @@
|
|
|
1
|
+
import { type PagedResult } from '../../api/ApiTypes';
|
|
2
|
+
import { type LogApiKey, type LogEventSkeleton } from '../../api/cloud/LogApi';
|
|
3
|
+
import { State } from '../../shared/State';
|
|
4
|
+
export type LogTailStream = {
|
|
5
|
+
/**
|
|
6
|
+
* Polls once for new events since the last poll (the last 15 seconds, on
|
|
7
|
+
* the very first call -- matching the underlying API's own behavior),
|
|
8
|
+
* returning only genuinely new events. Never returns the same event
|
|
9
|
+
* twice, even across repeated calls -- see `createLogTailStream()`.
|
|
10
|
+
*/
|
|
11
|
+
poll(): Promise<LogEventSkeleton[]>;
|
|
12
|
+
};
|
|
13
|
+
export type Log = {
|
|
14
|
+
/**
|
|
15
|
+
* Get default noise filter
|
|
16
|
+
* @returns {string[]} array of default event types and loggers to be filtered out
|
|
17
|
+
*/
|
|
18
|
+
getDefaultNoiseFilter(): string[];
|
|
19
|
+
/**
|
|
20
|
+
* Resolve log level to an array of effective log levels
|
|
21
|
+
* @param level string or numeric log level: 'FATAL', 'ERROR', 'WARN', 'INFO', 'DEBUG', 'TRACE', 'ALL', 0, 1, 2, 3, 4
|
|
22
|
+
* @returns {string[]} array of effective log levels
|
|
23
|
+
*/
|
|
24
|
+
resolveLevel(level: string | number): string[];
|
|
25
|
+
/**
|
|
26
|
+
* Resolve a log event's level
|
|
27
|
+
* @param {object} log log event
|
|
28
|
+
* @returns {string} log level
|
|
29
|
+
*/
|
|
30
|
+
resolvePayloadLevel(log: LogEventSkeleton): string;
|
|
31
|
+
/**
|
|
32
|
+
* Get available log sources
|
|
33
|
+
* @returns {Promise<string[]>} promise resolving to an array of available log sources
|
|
34
|
+
*/
|
|
35
|
+
getLogSources(): Promise<string[]>;
|
|
36
|
+
/**
|
|
37
|
+
* Get log api key
|
|
38
|
+
* @param {string} keyId key id
|
|
39
|
+
* @returns {Promise<LogApiKey>} promise resolving to a LogApiKey objects
|
|
40
|
+
*/
|
|
41
|
+
getLogApiKey(keyId: string): Promise<LogApiKey>;
|
|
42
|
+
/**
|
|
43
|
+
* Validate log api key and secret
|
|
44
|
+
* @param {string} keyId log api key id
|
|
45
|
+
* @param {string} secret log api secret
|
|
46
|
+
* @returns {Promise<boolean>} a promise resolving to true if the key is valid, false otherwise
|
|
47
|
+
*/
|
|
48
|
+
isLogApiKeyValid(keyId: string, secret: string): Promise<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* Get log api keys
|
|
51
|
+
* @returns {Promise<LogApiKey[]>} promise resolving to an array of LogApiKey objects
|
|
52
|
+
*/
|
|
53
|
+
getLogApiKeys(): Promise<LogApiKey[]>;
|
|
54
|
+
/**
|
|
55
|
+
* Create log api key
|
|
56
|
+
* @param {string} keyName human-readable key name
|
|
57
|
+
* @returns {Promise<LogApiKey>} a promise resolving to an object containing the log api key and secret
|
|
58
|
+
*/
|
|
59
|
+
createLogApiKey(keyName: string): Promise<LogApiKey>;
|
|
60
|
+
/**
|
|
61
|
+
* Delete log api key
|
|
62
|
+
* @param {string} keyId key id
|
|
63
|
+
* @returns {Promise<LogApiKey>} a promise resolving to an object containing the log api key
|
|
64
|
+
*/
|
|
65
|
+
deleteLogApiKey(keyId: string): Promise<LogApiKey>;
|
|
66
|
+
/**
|
|
67
|
+
* Delete all log api keys
|
|
68
|
+
* @returns {Promise<LogApiKey>} a promise resolving to an array of log api key objects
|
|
69
|
+
*/
|
|
70
|
+
deleteLogApiKeys(): Promise<LogApiKey[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Tail logs
|
|
73
|
+
* @param {string} source log source(s) to tail
|
|
74
|
+
* @param {string} cookie paged results cookie
|
|
75
|
+
* @returns {Promise<PagedResult<LogEventSkeleton>>} promise resolving to paged log event result
|
|
76
|
+
*/
|
|
77
|
+
tail(source: string, cookie: string): Promise<PagedResult<LogEventSkeleton>>;
|
|
78
|
+
/**
|
|
79
|
+
* Creates a stateful, deduped consumer of `tail()` -- everything a caller
|
|
80
|
+
* doing a live polling loop (e.g. an interactive follow-style view) needs
|
|
81
|
+
* without reimplementing cookie-tracking or dedup itself.
|
|
82
|
+
* @remarks
|
|
83
|
+
* PingOne AIC's own tail-endpoint documentation is explicit that each
|
|
84
|
+
* subsequent call's range "starts from the last returned log entry in
|
|
85
|
+
* the previous result (**inclusive**)" -- the boundary event is
|
|
86
|
+
* documented to repeat by design, and the endpoint returns no unique
|
|
87
|
+
* event id at all to tell repeats apart with (confirmed live: unlike
|
|
88
|
+
* `fetch()`, whose results do carry `_id`). A real live poll loop against
|
|
89
|
+
* `am-authentication` also showed `tail()` redeliver a whole earlier
|
|
90
|
+
* batch verbatim -- sometimes even within one poll's own result array,
|
|
91
|
+
* not just across a cookie boundary -- so this dedupes broadly by event
|
|
92
|
+
* content, not merely by skipping one known boundary event.
|
|
93
|
+
* @param {string} source log source(s) to tail
|
|
94
|
+
* @returns {LogTailStream} a stream object with a `poll()` method
|
|
95
|
+
*/
|
|
96
|
+
createLogTailStream(source: string): LogTailStream;
|
|
97
|
+
/**
|
|
98
|
+
* Fetch logs
|
|
99
|
+
* @param {string} source log source(s) to tail
|
|
100
|
+
* @param {string} startTs start timestamp
|
|
101
|
+
* @param {string} endTs end timestamp
|
|
102
|
+
* @param {string} cookie paged results cookie
|
|
103
|
+
* @param {string} txid transaction id
|
|
104
|
+
* @param {string} filter query filter
|
|
105
|
+
* @returns {Promise<PagedResult<LogEventSkeleton>>} promise resolving to paged log event result
|
|
106
|
+
*/
|
|
107
|
+
fetch(source: string, startTs: string, endTs: string, cookie: string, txid: string, filter: string): Promise<PagedResult<LogEventSkeleton>>;
|
|
108
|
+
/**
|
|
109
|
+
* Search audit events by event name(s) and/or principal, across the full time
|
|
110
|
+
* range (auto-paginating), with client-side dedup by transaction id.
|
|
111
|
+
* @param {string} source log source(s) to search, e.g. am-authentication
|
|
112
|
+
* @param {string} startTs start timestamp
|
|
113
|
+
* @param {string} endTs end timestamp
|
|
114
|
+
* @param {string[]} eventNames optional event names to match (OR'd together server-side)
|
|
115
|
+
* @param {string} principal optional principal substring to match against payload.userId (co)
|
|
116
|
+
* @param {number} maxEvents safety cap on total events fetched across pages
|
|
117
|
+
* @param {boolean} dedupeByTransactionId collapse multiple events sharing a transaction id (e.g. a failed-then-successful retry) down to the last one seen; default true
|
|
118
|
+
* @returns {Promise<LogEventSkeleton[]>} promise resolving to the matched (and optionally deduped) events
|
|
119
|
+
*/
|
|
120
|
+
searchEvents(source: string, startTs: string, endTs: string, eventNames?: string[], principal?: string, maxEvents?: number, dedupeByTransactionId?: boolean): Promise<LogEventSkeleton[]>;
|
|
121
|
+
};
|
|
122
|
+
declare const _default: (state: State) => Log;
|
|
123
|
+
export default _default;
|
|
124
|
+
/**
|
|
125
|
+
* Get default noise filter
|
|
126
|
+
* @returns {string[]} array of default event types and loggers to be filtered out
|
|
127
|
+
*/
|
|
128
|
+
export declare function getDefaultNoiseFilter(): string[];
|
|
129
|
+
/**
|
|
130
|
+
* Resolve log level to an array of effective log levels
|
|
131
|
+
* @param level string or numeric log level: 'FATAL', 'ERROR', 'WARN', 'INFO', 'DEBUG', 'TRACE', 'ALL', 0, 1, 2, 3, 4
|
|
132
|
+
* @returns {string[]} array of effective log levels
|
|
133
|
+
*/
|
|
134
|
+
export declare function resolveLevel(level: string | number): string[];
|
|
135
|
+
/**
|
|
136
|
+
* Resolve a log event's level
|
|
137
|
+
* @param {object} log log event
|
|
138
|
+
* @returns {string} log level
|
|
139
|
+
*/
|
|
140
|
+
export declare function resolvePayloadLevel(log: LogEventSkeleton): string;
|
|
141
|
+
/**
|
|
142
|
+
* Get available log sources
|
|
143
|
+
* @returns {Promise<string[]>} promise resolving to an array of available log sources
|
|
144
|
+
*/
|
|
145
|
+
export declare function getLogSources({ state }: {
|
|
146
|
+
state: State;
|
|
147
|
+
}): Promise<string[]>;
|
|
148
|
+
/**
|
|
149
|
+
* Get log API key
|
|
150
|
+
* @returns {Promise<PagedResult<LogApiKey>>} a promise resolving to a log api key object
|
|
151
|
+
*/
|
|
152
|
+
export declare function getLogApiKey({ keyId, state, }: {
|
|
153
|
+
keyId: string;
|
|
154
|
+
state: State;
|
|
155
|
+
}): Promise<LogApiKey>;
|
|
156
|
+
/**
|
|
157
|
+
* Validate log API key
|
|
158
|
+
* @param {string} keyId log api key id
|
|
159
|
+
* @param {string} secret log api secret
|
|
160
|
+
* @returns {Promise<boolean>} a promise resolving to true if the key is valid, false otherwise
|
|
161
|
+
*/
|
|
162
|
+
export declare function isLogApiKeyValid({ keyId, secret, state, }: {
|
|
163
|
+
keyId: string;
|
|
164
|
+
secret: string;
|
|
165
|
+
state: State;
|
|
166
|
+
}): Promise<boolean>;
|
|
167
|
+
/**
|
|
168
|
+
* Get log api keys
|
|
169
|
+
* @returns {Promise<LogApiKey[]>} promise resolving to an array of LogApiKey objects
|
|
170
|
+
*/
|
|
171
|
+
export declare function getLogApiKeys({ state, }: {
|
|
172
|
+
state: State;
|
|
173
|
+
}): Promise<LogApiKey[]>;
|
|
174
|
+
/**
|
|
175
|
+
* Create API key
|
|
176
|
+
* @param {keyName: string, state: State} params keyName, state
|
|
177
|
+
* @returns {Promise<LogApiKey>} new API key and secret
|
|
178
|
+
*/
|
|
179
|
+
export declare function createLogApiKey({ keyName, state, }: {
|
|
180
|
+
keyName: string;
|
|
181
|
+
state: State;
|
|
182
|
+
}): Promise<LogApiKey>;
|
|
183
|
+
/**
|
|
184
|
+
* Delete key
|
|
185
|
+
*/
|
|
186
|
+
export declare function deleteLogApiKey({ keyId, state, }: {
|
|
187
|
+
keyId: string;
|
|
188
|
+
state: State;
|
|
189
|
+
}): Promise<LogApiKey>;
|
|
190
|
+
/**
|
|
191
|
+
* Delete all keys
|
|
192
|
+
*/
|
|
193
|
+
export declare function deleteLogApiKeys({ state, }: {
|
|
194
|
+
state: State;
|
|
195
|
+
}): Promise<LogApiKey[]>;
|
|
196
|
+
/**
|
|
197
|
+
* Tail logs
|
|
198
|
+
* @param {string} source log source(s) to tail
|
|
199
|
+
* @param {string} cookie paged results cookie
|
|
200
|
+
* @returns {Promise<PagedResult<LogEventSkeleton>>} promise resolving to paged log event result
|
|
201
|
+
*/
|
|
202
|
+
export declare function tail({ source, cookie, state, }: {
|
|
203
|
+
source: string;
|
|
204
|
+
cookie: string;
|
|
205
|
+
state: State;
|
|
206
|
+
}): Promise<PagedResult<LogEventSkeleton>>;
|
|
207
|
+
/**
|
|
208
|
+
* Creates a stateful, deduped consumer of `tail()` -- see the `Log` type's
|
|
209
|
+
* own remarks on `createLogTailStream` for why this exists at all instead
|
|
210
|
+
* of leaving every caller to dedupe `tail()` for itself.
|
|
211
|
+
* @param {string} source log source(s) to tail
|
|
212
|
+
* @param {State} state library state
|
|
213
|
+
* @returns {LogTailStream} a stream object with a `poll()` method
|
|
214
|
+
*/
|
|
215
|
+
export declare function createLogTailStream({ source, state, }: {
|
|
216
|
+
source: string;
|
|
217
|
+
state: State;
|
|
218
|
+
}): LogTailStream;
|
|
219
|
+
/**
|
|
220
|
+
* Fetch logs
|
|
221
|
+
* @param {string} source log source(s) to tail
|
|
222
|
+
* @param {string} startTs start timestamp
|
|
223
|
+
* @param {string} endTs end timestamp
|
|
224
|
+
* @param {string} cookie paged results cookie
|
|
225
|
+
* @param {string} txid transaction id
|
|
226
|
+
* @param {string} filter query filter
|
|
227
|
+
* @returns {Promise<PagedResult<LogEventSkeleton>>} promise resolving to paged log event result
|
|
228
|
+
*/
|
|
229
|
+
export declare function fetch({ source, startTs, endTs, cookie, txid, filter, state, }: {
|
|
230
|
+
source: string;
|
|
231
|
+
startTs: string;
|
|
232
|
+
endTs: string;
|
|
233
|
+
cookie: string;
|
|
234
|
+
txid: string;
|
|
235
|
+
filter: string;
|
|
236
|
+
state: State;
|
|
237
|
+
}): Promise<PagedResult<LogEventSkeleton>>;
|
|
238
|
+
/**
|
|
239
|
+
* Search audit events by event name(s) and/or principal, across the full
|
|
240
|
+
* time range (auto-paginating within each ~24h chunk the Log API allows,
|
|
241
|
+
* and auto-chunking the requested range into consecutive windows that size
|
|
242
|
+
* when it's wider than that — see {@link MAX_LOG_WINDOW_MS} — respecting the
|
|
243
|
+
* ~1 request/second Log API rate limit between every fetch call, chunk
|
|
244
|
+
* boundaries included), with client-side dedup by transaction id.
|
|
245
|
+
*
|
|
246
|
+
* @remarks
|
|
247
|
+
* Filtering happens server-side (see {@link buildEventFilter}) rather than
|
|
248
|
+
* fetching unfiltered and post-filtering client-side — the corrected,
|
|
249
|
+
* verified-working approach from this session's investigation, materially
|
|
250
|
+
* cheaper than an unfiltered fetch that risks truncating before reaching
|
|
251
|
+
* the events in question.
|
|
252
|
+
*
|
|
253
|
+
* Dedup collapses multiple events sharing a transaction id (e.g. a failed
|
|
254
|
+
* login attempt immediately followed by a successful retry, observed live
|
|
255
|
+
* this session) down to the last one seen. Since fetch results are already
|
|
256
|
+
* ordered ascending by timestamp within each chunk (and chunks are fetched
|
|
257
|
+
* in chronological order), "last seen" is the most recent event for that
|
|
258
|
+
* transaction — the actual outcome, not an arbitrary one. CREST filters
|
|
259
|
+
* can't express this dedup themselves, so it has to happen client-side.
|
|
260
|
+
*/
|
|
261
|
+
export declare function searchEvents({ source, startTs, endTs, eventNames, principal, maxEvents, dedupeByTransactionId, state, }: {
|
|
262
|
+
source: string;
|
|
263
|
+
startTs: string;
|
|
264
|
+
endTs: string;
|
|
265
|
+
eventNames?: string[];
|
|
266
|
+
principal?: string;
|
|
267
|
+
maxEvents?: number;
|
|
268
|
+
dedupeByTransactionId?: boolean;
|
|
269
|
+
state: State;
|
|
270
|
+
}): Promise<LogEventSkeleton[]>;
|
|
271
|
+
//# sourceMappingURL=LogOps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogOps.d.ts","sourceRoot":"","sources":["../../../src/ops/cloud/LogOps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EASL,KAAK,SAAS,EAEd,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG3C,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;OAKG;IACH,IAAI,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG;IAChB;;;OAGG;IACH,qBAAqB,IAAI,MAAM,EAAE,CAAC;IAClC;;;;OAIG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/C;;;;OAIG;IACH,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,GAAG,MAAM,CAAC;IACnD;;;OAGG;IACH,aAAa,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACnC;;;;OAIG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAChD;;;;;OAKG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE;;;OAGG;IACH,aAAa,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IACtC;;;;OAIG;IACH,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,SA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';
|
|
2
|
+
import { State } from '../../shared/State';
|
|
3
|
+
import { ExportMetaData, ResultCallback } from '../OpsTypes';
|
|
4
|
+
export type Secret = {
|
|
5
|
+
/**
|
|
6
|
+
* Read all secrets
|
|
7
|
+
* @returns {Promise<SecretSkeleton[]>} a promise that resolves to an array of secrets
|
|
8
|
+
*/
|
|
9
|
+
readSecrets(): Promise<SecretSkeleton[]>;
|
|
10
|
+
/**
|
|
11
|
+
* Read secret
|
|
12
|
+
* @param {string} secretId secret id/name
|
|
13
|
+
* @returns {Promise<SecretSkeleton>} a promise that resolves to a secret
|
|
14
|
+
*/
|
|
15
|
+
readSecret(secretId: string): Promise<SecretSkeleton>;
|
|
16
|
+
/**
|
|
17
|
+
* Read the value of a secret
|
|
18
|
+
* @param {string} secretId secret id/name
|
|
19
|
+
* @param {string} target Host URL of target environment to encrypt secret value for
|
|
20
|
+
* @param {boolean} decrypt retrieve secret value in the clear (default: false)
|
|
21
|
+
* @returns {Promise<string>} a promise that resolves to the value of the secret
|
|
22
|
+
*/
|
|
23
|
+
readSecretValue(secretId: string, target?: string, decrypt?: boolean): Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* Read the values of an array of secrets
|
|
26
|
+
* @param {string} secretIds secret id/name
|
|
27
|
+
* @param {string} target Host URL of target environment to encrypt secret values for
|
|
28
|
+
* @param {boolean} decrypt retrieve secret values in the clear (default: false)
|
|
29
|
+
* @returns {Promise<{ [key: string]: string }>} a promise that resolves to a map of secret ids and values
|
|
30
|
+
*/
|
|
31
|
+
readSecretValues(secretIds: string[], target?: string, decrypt?: boolean): Promise<{
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* Export secret. The response can be saved to file as is.
|
|
36
|
+
* @param {string} secretId secret id/name
|
|
37
|
+
* @param {boolean} includeActiveValue include active value of secret (default: false)
|
|
38
|
+
* @param {string} target Host URL of target environment to encrypt secret value for
|
|
39
|
+
* @returns {Promise<SecretsExportInterface>} Promise resolving to a SecretsExportInterface object.
|
|
40
|
+
*/
|
|
41
|
+
exportSecret(secretId: string, includeActiveValue?: boolean, target?: string): Promise<SecretsExportInterface>;
|
|
42
|
+
/**
|
|
43
|
+
* Export all secrets
|
|
44
|
+
* @param {boolean} includeActiveValues include active values of secrets (default: false)
|
|
45
|
+
* @param {string} target Host URL of target environment to encrypt secret values for
|
|
46
|
+
* @returns {Promise<SecretsExportInterface>} Promise resolving to an SecretsExportInterface object.
|
|
47
|
+
*/
|
|
48
|
+
exportSecrets(includeActiveValues?: boolean, target?: string): Promise<SecretsExportInterface>;
|
|
49
|
+
/**
|
|
50
|
+
* Import secret by id
|
|
51
|
+
* @param {string} secretId secret id/name
|
|
52
|
+
* @param {SecretsExportInterface} importData import data
|
|
53
|
+
* @param {boolean} includeActiveValue include active value of secret (default: false)
|
|
54
|
+
* @param {string} source Host URL of source environment where the secret was exported from
|
|
55
|
+
* @returns {Promise<SecretSkeleton | null>} imported secret object, or null if no update was made
|
|
56
|
+
*/
|
|
57
|
+
importSecret(secretId: string, importData: SecretsExportInterface, includeActiveValue?: boolean, source?: string): Promise<SecretSkeleton | null>;
|
|
58
|
+
/**
|
|
59
|
+
* Import secrets
|
|
60
|
+
* @param {SecretsExportInterface} importData import data
|
|
61
|
+
* @param {boolean} includeActiveValues include active values of secrets (default: false)
|
|
62
|
+
* @param {string} source Host URL of source environment where the secrets were exported from
|
|
63
|
+
* @returns {Promise<SecretSkeleton[]>} array of imported secret objects
|
|
64
|
+
*/
|
|
65
|
+
importSecrets(importData: SecretsExportInterface, includeActiveValues?: boolean, source?: string): Promise<SecretSkeleton[]>;
|
|
66
|
+
/**
|
|
67
|
+
* Create secret
|
|
68
|
+
* @param {string} secretId secret id/name
|
|
69
|
+
* @param {string} value secret value
|
|
70
|
+
* @param {string} description secret description
|
|
71
|
+
* @param {string} encoding secret encoding (only `generic` is supported)
|
|
72
|
+
* @param {boolean} useInPlaceholders flag indicating if the secret can be used in placeholders
|
|
73
|
+
* @returns {Promise<SecretSkeleton>} a promise that resolves to a secret
|
|
74
|
+
*/
|
|
75
|
+
createSecret(secretId: string, value: string, description: string, encoding?: string, useInPlaceholders?: boolean): Promise<SecretSkeleton>;
|
|
76
|
+
/**
|
|
77
|
+
* Update secret description
|
|
78
|
+
* @param {string} secretId secret id/name
|
|
79
|
+
* @param {string} description secret description
|
|
80
|
+
* @returns {Promise<SecretSkeleton | null>} a promise that resolves to the updated secret object if a change was made, otherwise returns null
|
|
81
|
+
*/
|
|
82
|
+
updateSecretDescription(secretId: string, description: string): Promise<SecretSkeleton | null>;
|
|
83
|
+
/**
|
|
84
|
+
* Delete secret
|
|
85
|
+
* @param {string} secretId secret id/name
|
|
86
|
+
* @returns {Promise<SecretSkeleton>} a promise that resolves to a secret object
|
|
87
|
+
*/
|
|
88
|
+
deleteSecret(secretId: string): Promise<SecretSkeleton>;
|
|
89
|
+
/**
|
|
90
|
+
* Read versions of secret
|
|
91
|
+
* @param {string} secretId secret id/name
|
|
92
|
+
* @returns {Promise<VersionOfSecretSkeleton[]>} a promise that resolves to an array of secret versions
|
|
93
|
+
*/
|
|
94
|
+
readVersionsOfSecret(secretId: string): Promise<VersionOfSecretSkeleton[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Create version of secret
|
|
97
|
+
* @param {string} secretId secret id/name
|
|
98
|
+
* @param {string} value secret value
|
|
99
|
+
* @returns {Promise<VersionOfSecretSkeleton>} a promise that resolves to a version object
|
|
100
|
+
*/
|
|
101
|
+
createVersionOfSecret(secretId: string, value: string): Promise<VersionOfSecretSkeleton>;
|
|
102
|
+
/**
|
|
103
|
+
* Update secret
|
|
104
|
+
* @param {string} secretId secret id/name
|
|
105
|
+
* @param {string} description optional secret description; if provided, attempts to update the secret description
|
|
106
|
+
* @param {string} value optional secret value; if provided, attempts to create a new version of the secret
|
|
107
|
+
* @returns {Promise<SecretSkeleton | null>} imported secret object, or null if no update was made
|
|
108
|
+
*/
|
|
109
|
+
updateSecret(secretId: string, description?: string, value?: string): Promise<SecretSkeleton | null>;
|
|
110
|
+
/**
|
|
111
|
+
* Read version of secret
|
|
112
|
+
* @param {string} secretId secret id/name
|
|
113
|
+
* @param {string} version secret version
|
|
114
|
+
* @returns {Promise<VersionOfSecretSkeleton>} a promise that resolves to a version object
|
|
115
|
+
*/
|
|
116
|
+
readVersionOfSecret(secretId: string, version: string): Promise<VersionOfSecretSkeleton>;
|
|
117
|
+
/**
|
|
118
|
+
* Enable a version of a secret
|
|
119
|
+
* @param {string} secretId secret id/name
|
|
120
|
+
* @param {string} version secret version
|
|
121
|
+
* @returns {Promise<VersionOfSecretSkeleton>} a promise that resolves to a status object
|
|
122
|
+
*/
|
|
123
|
+
enableVersionOfSecret(secretId: string, version: string): Promise<VersionOfSecretSkeleton>;
|
|
124
|
+
/**
|
|
125
|
+
* Disable a version of a secret
|
|
126
|
+
* @param {string} secretId secret id/name
|
|
127
|
+
* @param {string} version secret version
|
|
128
|
+
* @returns {Promise<VersionOfSecretSkeleton>} a promise that resolves to a status object
|
|
129
|
+
*/
|
|
130
|
+
disableVersionOfSecret(secretId: string, version: string): Promise<VersionOfSecretSkeleton>;
|
|
131
|
+
/**
|
|
132
|
+
* Delete version of secret
|
|
133
|
+
* @param {string} secretId secret id/name
|
|
134
|
+
* @param {string} version secret version
|
|
135
|
+
* @returns {Promise<VersionOfSecretSkeleton>} a promise that resolves to a version object
|
|
136
|
+
*/
|
|
137
|
+
deleteVersionOfSecret(secretId: string, version: string): Promise<VersionOfSecretSkeleton>;
|
|
138
|
+
/**
|
|
139
|
+
* Prune versions of secret that are not the latest secret version
|
|
140
|
+
* @param {string} secretId secret id/name
|
|
141
|
+
* @param {boolean} keepLoaded true to keep the currently loaded secret versions regardless of if they are active or not. Default: false
|
|
142
|
+
* @param {boolean} keepDeactivated true to keep the deactivated versions and only prune the active versions that aren't the latest version. Default: false
|
|
143
|
+
* @param {ResultCallback<VersionOfSecretSkeleton>} resultCallback Optional callback to process individual results
|
|
144
|
+
* @returns {Promise<VersionOfSecretSkeleton[]>} a promise that reolves to the pruned version objects
|
|
145
|
+
*/
|
|
146
|
+
pruneVersionsOfSecret(secretId: string, keepLoaded?: boolean, keepDeactivated?: boolean, resultCallback?: ResultCallback<VersionOfSecretSkeleton>): Promise<VersionOfSecretSkeleton[]>;
|
|
147
|
+
};
|
|
148
|
+
declare const _default: (state: State) => Secret;
|
|
149
|
+
export default _default;
|
|
150
|
+
export interface SecretsExportInterface {
|
|
151
|
+
meta?: ExportMetaData;
|
|
152
|
+
secret: Record<string, SecretSkeleton>;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Secrets import options
|
|
156
|
+
*/
|
|
157
|
+
export interface SecretImportOptions {
|
|
158
|
+
/**
|
|
159
|
+
* Import active values of secret
|
|
160
|
+
*/
|
|
161
|
+
includeActiveValues: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Host URL of source environment to decrypt secret values from
|
|
164
|
+
*/
|
|
165
|
+
source?: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Secrets export options
|
|
169
|
+
*/
|
|
170
|
+
export interface SecretExportOptions {
|
|
171
|
+
/**
|
|
172
|
+
* Export active values of secret
|
|
173
|
+
*/
|
|
174
|
+
includeActiveValues: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Host URL of target environment to encrypt secret values for
|
|
177
|
+
*/
|
|
178
|
+
target?: string;
|
|
179
|
+
}
|
|
180
|
+
export declare function createSecretsExportTemplate({ state, }: {
|
|
181
|
+
state: State;
|
|
182
|
+
}): SecretsExportInterface;
|
|
183
|
+
export declare function exportSecret({ secretId, options, state, }: {
|
|
184
|
+
secretId: string;
|
|
185
|
+
options?: SecretExportOptions;
|
|
186
|
+
state: State;
|
|
187
|
+
}): Promise<SecretsExportInterface>;
|
|
188
|
+
export declare function exportSecrets({ options, state, }: {
|
|
189
|
+
options?: SecretExportOptions;
|
|
190
|
+
state: State;
|
|
191
|
+
}): Promise<SecretsExportInterface>;
|
|
192
|
+
export declare function readSecretValue({ secretId, decrypt, target, state, }: {
|
|
193
|
+
secretId: string;
|
|
194
|
+
decrypt?: boolean;
|
|
195
|
+
target?: string;
|
|
196
|
+
state: State;
|
|
197
|
+
}): Promise<any>;
|
|
198
|
+
export declare function readSecretValues({ secretIds, decrypt, target, state, }: {
|
|
199
|
+
secretIds: string[];
|
|
200
|
+
decrypt?: boolean;
|
|
201
|
+
target?: string;
|
|
202
|
+
state: State;
|
|
203
|
+
}): Promise<{
|
|
204
|
+
[key: string]: string;
|
|
205
|
+
}>;
|
|
206
|
+
/**
|
|
207
|
+
* Import secret by id
|
|
208
|
+
* @param {string} secretId secret id/name
|
|
209
|
+
* @param {SecretsExportInterface} importData import data
|
|
210
|
+
* @param {SecretImportOptions} options import options
|
|
211
|
+
* @returns {Promise<SecretSkeleton | null>} imported secret object, or null if no update was made
|
|
212
|
+
*/
|
|
213
|
+
export declare function importSecret({ secretId, importData, options, state, }: {
|
|
214
|
+
secretId: string;
|
|
215
|
+
importData: SecretsExportInterface;
|
|
216
|
+
options?: SecretImportOptions;
|
|
217
|
+
state: State;
|
|
218
|
+
}): Promise<SecretSkeleton | null>;
|
|
219
|
+
/**
|
|
220
|
+
* Import secrets
|
|
221
|
+
* @param {SecretsExportInterface} importData import data
|
|
222
|
+
* @param {SecretImportOptions} options import options
|
|
223
|
+
* @returns {Promise<SecretSkeleton[]>} array of imported secret objects
|
|
224
|
+
*/
|
|
225
|
+
export declare function importSecrets({ importData, options, state, }: {
|
|
226
|
+
importData: SecretsExportInterface;
|
|
227
|
+
options?: SecretImportOptions;
|
|
228
|
+
state: State;
|
|
229
|
+
}): Promise<SecretSkeleton[]>;
|
|
230
|
+
export declare function enableVersionOfSecret({ secretId, version, state, }: {
|
|
231
|
+
secretId: string;
|
|
232
|
+
version: string;
|
|
233
|
+
state: State;
|
|
234
|
+
}): Promise<VersionOfSecretSkeleton>;
|
|
235
|
+
export declare function disableVersionOfSecret({ secretId, version, state, }: {
|
|
236
|
+
secretId: string;
|
|
237
|
+
version: string;
|
|
238
|
+
state: State;
|
|
239
|
+
}): Promise<VersionOfSecretSkeleton>;
|
|
240
|
+
export declare function readSecret({ secretId, state, }: {
|
|
241
|
+
secretId: string;
|
|
242
|
+
state: State;
|
|
243
|
+
}): Promise<SecretSkeleton>;
|
|
244
|
+
export declare function readSecrets({ state, }: {
|
|
245
|
+
state: State;
|
|
246
|
+
}): Promise<SecretSkeleton[]>;
|
|
247
|
+
export declare function createSecret({ secretId, value, description, encoding, useInPlaceholders, state, }: {
|
|
248
|
+
secretId: string;
|
|
249
|
+
value: string;
|
|
250
|
+
description: string;
|
|
251
|
+
encoding: string;
|
|
252
|
+
useInPlaceholders: boolean;
|
|
253
|
+
state: State;
|
|
254
|
+
}): Promise<SecretSkeleton>;
|
|
255
|
+
export declare function createVersionOfSecret({ secretId, value, state, }: {
|
|
256
|
+
secretId: string;
|
|
257
|
+
value: string;
|
|
258
|
+
state: State;
|
|
259
|
+
}): Promise<VersionOfSecretSkeleton>;
|
|
260
|
+
/**
|
|
261
|
+
* Update secret
|
|
262
|
+
* @param {string} secretId secret id/name
|
|
263
|
+
* @param {string} description optional secret description; if provided, attempts to update the secret description
|
|
264
|
+
* @param {string} value optional secret value; if provided, attempts to create a new version of the secret
|
|
265
|
+
* @returns {Promise<SecretSkeleton | null>} imported secret object, or null if no update was made
|
|
266
|
+
*/
|
|
267
|
+
export declare function updateSecret({ secretId, description, value, state, }: {
|
|
268
|
+
secretId: string;
|
|
269
|
+
description?: string;
|
|
270
|
+
value?: string;
|
|
271
|
+
state: State;
|
|
272
|
+
}): Promise<SecretSkeleton | null>;
|
|
273
|
+
export declare function deleteSecret({ secretId, state, }: {
|
|
274
|
+
secretId: string;
|
|
275
|
+
state: State;
|
|
276
|
+
}): Promise<any>;
|
|
277
|
+
export declare function readVersionOfSecret({ secretId, version, state, }: {
|
|
278
|
+
secretId: string;
|
|
279
|
+
version: string;
|
|
280
|
+
state: State;
|
|
281
|
+
}): Promise<VersionOfSecretSkeleton>;
|
|
282
|
+
export declare function readVersionsOfSecret({ secretId, state, }: {
|
|
283
|
+
secretId: string;
|
|
284
|
+
state: State;
|
|
285
|
+
}): Promise<VersionOfSecretSkeleton[]>;
|
|
286
|
+
export declare function updateSecretDescription({ secretId, description, state, }: {
|
|
287
|
+
secretId: string;
|
|
288
|
+
description: string;
|
|
289
|
+
state: State;
|
|
290
|
+
}): Promise<SecretSkeleton | null>;
|
|
291
|
+
/**
|
|
292
|
+
* Prune versions of secret that are not the latest secret version
|
|
293
|
+
* @param {string} secretId secret id/name
|
|
294
|
+
* @param {boolean} keepLoaded true to keep the currently loaded secret versions regardless of if they are active or not. Default: false
|
|
295
|
+
* @param {boolean} keepDeactivated true to keep the deactivated versions and only prune the active versions that aren't the latest version. Default: false
|
|
296
|
+
* @param {ResultCallback<VersionOfSecretSkeleton>} resultCallback Optional callback to process individual results
|
|
297
|
+
* @returns {Promise<VersionOfSecretSkeleton[]>} a promise that reolves to the pruned version objects
|
|
298
|
+
*/
|
|
299
|
+
export declare function pruneVersionsOfSecret({ secretId, keepLoaded, keepDeactivated, resultCallback, state, }: {
|
|
300
|
+
secretId: string;
|
|
301
|
+
keepLoaded?: boolean;
|
|
302
|
+
keepDeactivated?: boolean;
|
|
303
|
+
resultCallback?: ResultCallback<VersionOfSecretSkeleton>;
|
|
304
|
+
state: State;
|
|
305
|
+
}): Promise<VersionOfSecretSkeleton[]>;
|
|
306
|
+
//# sourceMappingURL=SecretsOps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecretsOps.d.ts","sourceRoot":"","sources":["../../../src/ops/cloud/SecretsOps.ts"],"names":[],"mappings":"AAAA,OAAO,EAYL,cAAc,EACd,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AASpC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAiB3C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7D,MAA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