@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,122 @@
|
|
|
1
|
+
import { State } from '../shared/State';
|
|
2
|
+
export type FRUtils = {
|
|
3
|
+
applyNameCollisionPolicy(name: string): string;
|
|
4
|
+
getRealmPath(realm: string): string;
|
|
5
|
+
getCurrentRealmPath(): string;
|
|
6
|
+
getCurrentRealmName(): string;
|
|
7
|
+
getCurrentRealmManagedUser(): string;
|
|
8
|
+
getRealmName(realm: string): string;
|
|
9
|
+
getRealmUsingExportFormat(realm: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Gets the list of realms to be used for exports in special format.
|
|
12
|
+
* e.g. if the realm is normally '/first/second', then it will return 'root-first-second'.
|
|
13
|
+
*/
|
|
14
|
+
getRealmsForExport(): Promise<string[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Helper that gets the normal realm name from the realm export format.
|
|
17
|
+
* It reverses the format generated by getRealmsForExport.
|
|
18
|
+
* e.g. if the realm is 'root-first-second', then it will return '/first/second'.
|
|
19
|
+
* @param realm realm in export format
|
|
20
|
+
*/
|
|
21
|
+
getRealmUsingExportFormat(realm: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Get host URL without path and query params
|
|
24
|
+
* @param {string} url tenant URL with path and query params
|
|
25
|
+
* @returns {string} AM host URL without path and query params
|
|
26
|
+
*/
|
|
27
|
+
getHostUrl(url: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* Get IDM base URL
|
|
30
|
+
* @returns {string} IDM host URL without path and query params
|
|
31
|
+
*/
|
|
32
|
+
getIdmBaseUrl(): string;
|
|
33
|
+
/**
|
|
34
|
+
* Get host URL without path and query params
|
|
35
|
+
* @param {string} url tenant URL with path and query params
|
|
36
|
+
* @returns {string} AM host URL without path and query params
|
|
37
|
+
* @deprecated since v2.1.2 use {@link FRUtils.getHostUrl | getHostUrl} instead
|
|
38
|
+
* ```javascript
|
|
39
|
+
* getHostUrl(url: string): string
|
|
40
|
+
* ```
|
|
41
|
+
* @group Deprecated
|
|
42
|
+
*/
|
|
43
|
+
getHostBaseUrl(url: string): string;
|
|
44
|
+
};
|
|
45
|
+
declare const _default: (state: State) => FRUtils;
|
|
46
|
+
export default _default;
|
|
47
|
+
/**
|
|
48
|
+
* Get new name when names collide
|
|
49
|
+
* @param {string} name to apply policy to
|
|
50
|
+
* @returns {string} new name according to policy
|
|
51
|
+
*/
|
|
52
|
+
export declare function applyNameCollisionPolicy(name: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* Gets the list of realms to be used for exports in special format.
|
|
55
|
+
* e.g. if the realm is normally '/first/second', then it will return 'root-first-second'.
|
|
56
|
+
*/
|
|
57
|
+
export declare function getRealmsForExport({ state, }: {
|
|
58
|
+
state: State;
|
|
59
|
+
}): Promise<string[]>;
|
|
60
|
+
/**
|
|
61
|
+
* Helper that gets the normal realm name from the realm export format.
|
|
62
|
+
* It reverses the format generated by getRealmsForExport.
|
|
63
|
+
* e.g. if the realm is 'root-first-second', then it will return '/first/second'.
|
|
64
|
+
* @param realm realm in export format
|
|
65
|
+
*/
|
|
66
|
+
export declare function getRealmUsingExportFormat(realm: string): string;
|
|
67
|
+
/**
|
|
68
|
+
* Helper function to get the config path required for the API call considering if the request
|
|
69
|
+
* should obtain the realm config or the global config of the service in question
|
|
70
|
+
* @param {boolean} globalConfig true if the global service is the target of the operation, false otherwise.
|
|
71
|
+
* @returns {string} The config path to be used for the request
|
|
72
|
+
*/
|
|
73
|
+
export declare function getConfigPath(globalConfig: boolean): string;
|
|
74
|
+
/**
|
|
75
|
+
* Helper function to get the realm path required for the API call considering if the request
|
|
76
|
+
* should obtain the realm config or the global config of the service in question
|
|
77
|
+
* @param {boolean} globalConfig true if the global service is the target of the operation, false otherwise.
|
|
78
|
+
* @returns {string} The realm path to be used for the request
|
|
79
|
+
*/
|
|
80
|
+
export declare function getRealmPathGlobal(globalConfig: boolean, state: State): string;
|
|
81
|
+
/**
|
|
82
|
+
* Get realm path
|
|
83
|
+
* @param {string} realm realm
|
|
84
|
+
* @returns {string} a CREST-compliant realm path, e.g. /realms/root/realms/alpha
|
|
85
|
+
*/
|
|
86
|
+
export declare function getRealmPath(realm: string): string;
|
|
87
|
+
/**
|
|
88
|
+
* Get current realm path
|
|
89
|
+
* @returns {string} a CREST-compliant realm path, e.g. /realms/root/realms/alpha
|
|
90
|
+
*/
|
|
91
|
+
export declare function getCurrentRealmPath(state: State): string;
|
|
92
|
+
/**
|
|
93
|
+
* Get current realm name
|
|
94
|
+
* @returns {string} name of the current realm. /alpha -> alpha
|
|
95
|
+
*/
|
|
96
|
+
export declare function getCurrentRealmName(state: State): string;
|
|
97
|
+
/**
|
|
98
|
+
* Get the name of the managed user object for the current realm
|
|
99
|
+
* @returns {string} the name of the managed user object for the current realm
|
|
100
|
+
*/
|
|
101
|
+
export declare function getCurrentRealmManagedUser({ state, }: {
|
|
102
|
+
state: State;
|
|
103
|
+
}): string;
|
|
104
|
+
/**
|
|
105
|
+
* Get current realm name
|
|
106
|
+
* @param {string} realm realm
|
|
107
|
+
* @returns {string} name of the realm. /alpha -> alpha
|
|
108
|
+
*/
|
|
109
|
+
export declare function getRealmName(realm: string): string;
|
|
110
|
+
/**
|
|
111
|
+
* Get host-only URL without path and query params
|
|
112
|
+
* @param {string} url URL with path and query params
|
|
113
|
+
* @returns {string} AM host URL without path and query params
|
|
114
|
+
*/
|
|
115
|
+
export declare function getHostOnlyUrl(url: string): string;
|
|
116
|
+
/**
|
|
117
|
+
* Get IDM base URL
|
|
118
|
+
* @param {State} state State object
|
|
119
|
+
* @returns {string} IDM host URL without path and query params
|
|
120
|
+
*/
|
|
121
|
+
export declare function getIdmBaseUrl(state: State): string;
|
|
122
|
+
//# sourceMappingURL=ForgeRockUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForgeRockUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ForgeRockUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGxC,MAAM,MAAM,OAAO,GAAG;IACpB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/C,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,mBAAmB,IAAI,MAAM,CAAC;IAC9B,mBAAmB,IAAI,MAAM,CAAC;IAC9B,0BAA0B,IAAI,MAAM,CAAC;IACrC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACjD;;;OAGG;IACH,kBAAkB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACxC;;;;;OAKG;IACH,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACjD;;;;OAIG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC;;;OAGG;IACH,aAAa,IAAI,MAAM,CAAC;IAIxB;;;;;;;;;OASG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACrC,CAAC;yBAEc,OAAO,KAAK,KAAG,OAAO;AAAtC,wBAsCE;AAEF;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU7D;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,KAAK,GACN,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAYpB;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAI/D;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,OAAO,GAAG,MAAM,CAG3D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,OAAO,EACrB,KAAK,EAAE,KAAK,GACX,MAAM,CAGR;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAUlD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAExD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAQxD;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,KAAK,GACN,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,MAAM,CAcT;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOlD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGlD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAKlD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrodoNodeHttpAdapter.d.ts","sourceRoot":"","sources":["../../src/utils/FrodoNodeHttpAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,4BAA4B,CAAC;AAGzD,qBAAa,oBAAqB,SAAQ,eAAe;IACjD,SAAS,CAAC,YAAY,KAAA;CAI7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type FrodoUtils = {
|
|
2
|
+
/**
|
|
3
|
+
* Get the Frodo home directory path.
|
|
4
|
+
* @returns {string} absolute path to the Frodo home directory
|
|
5
|
+
*/
|
|
6
|
+
getFrodoHome(): string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: () => FrodoUtils;
|
|
9
|
+
export default _default;
|
|
10
|
+
/**
|
|
11
|
+
* Get the Frodo home directory path in an OS-independent way.
|
|
12
|
+
* @returns {string} absolute path to the Frodo home directory
|
|
13
|
+
*/
|
|
14
|
+
export declare function getFrodoHome(): string;
|
|
15
|
+
//# sourceMappingURL=FrodoUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrodoUtils.d.ts","sourceRoot":"","sources":["../../src/utils/FrodoUtils.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,YAAY,IAAI,MAAM,CAAC;CACxB,CAAC;8BAEiB,UAAU;AAA7B,wBAME;AAEF;;;GAGG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type MethodHelpDoc } from '../lib/Help';
|
|
2
|
+
export type HelpUtils = {
|
|
3
|
+
/**
|
|
4
|
+
* Get all generated help metadata entries.
|
|
5
|
+
* @returns {MethodHelpDoc[]} help metadata entries
|
|
6
|
+
*/
|
|
7
|
+
getHelpMetadata(): MethodHelpDoc[];
|
|
8
|
+
/**
|
|
9
|
+
* Get generated help metadata entries by method name.
|
|
10
|
+
* @param {string} methodName method name
|
|
11
|
+
* @returns {MethodHelpDoc[]} matching help metadata entries
|
|
12
|
+
*/
|
|
13
|
+
getHelpMetadataByMethod(methodName: string): MethodHelpDoc[];
|
|
14
|
+
};
|
|
15
|
+
declare const _default: () => HelpUtils;
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare function getHelpMetadata(): MethodHelpDoc[];
|
|
18
|
+
export declare function getHelpMetadataByMethod(methodName: string): MethodHelpDoc[];
|
|
19
|
+
//# sourceMappingURL=HelpUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelpUtils.d.ts","sourceRoot":"","sources":["../../src/utils/HelpUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG;IACtB;;;OAGG;IACH,eAAe,IAAI,aAAa,EAAE,CAAC;IACnC;;;;OAIG;IACH,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;CAC9D,CAAC;8BAEiB,SAAS;AAA5B,wBASE;AAEF,wBAAgB,eAAe,IAAI,aAAa,EAAE,CAEjD;AAED,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,EAAE,CAE3E"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export type Json = {
|
|
2
|
+
/**
|
|
3
|
+
* Compare two json objects
|
|
4
|
+
* @param {object} obj1 object 1
|
|
5
|
+
* @param {object} obj2 object 2
|
|
6
|
+
* @param {string[]} ignoreKeys array of keys to ignore in comparison
|
|
7
|
+
* @returns {boolean} true if the two json objects have the same length and all the properties have the same value
|
|
8
|
+
*/
|
|
9
|
+
isEqualJson(obj1: object, obj2: object, ignoreKeys?: string[]): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Deep delete keys and their values from an input object. If a key in object contains substring, the key an its value is deleted.
|
|
12
|
+
* @param {Object} object input object that needs keys removed
|
|
13
|
+
* @param {String} substring substring to search for in key
|
|
14
|
+
* @returns the modified object without the matching keys and their values
|
|
15
|
+
*/
|
|
16
|
+
deleteDeepByKey(object: any, substring: any): any;
|
|
17
|
+
/**
|
|
18
|
+
* Deep clone object
|
|
19
|
+
* @param {any} obj object to deep clone
|
|
20
|
+
* @returns {any} new object cloned from obj
|
|
21
|
+
*/
|
|
22
|
+
cloneDeep(obj: any): any;
|
|
23
|
+
/**
|
|
24
|
+
* Deep merge two objects
|
|
25
|
+
* @param obj1 first object
|
|
26
|
+
* @param obj2 second object
|
|
27
|
+
* @returns merged first and second object
|
|
28
|
+
*/
|
|
29
|
+
mergeDeep(obj1: any, obj2: any): any;
|
|
30
|
+
/**
|
|
31
|
+
* Get all paths for an object
|
|
32
|
+
* @param {any} o object
|
|
33
|
+
* @param {string} prefix prefix (path calculated up to this point). Only needed for recursion or to add a global prefix to all paths.
|
|
34
|
+
* @param {string} delim delimiter used to separate elements of the path. Default is '.'.
|
|
35
|
+
* @returns {string[]} an array of paths
|
|
36
|
+
*/
|
|
37
|
+
getPaths(o: any, prefix?: string, delim?: string): string[];
|
|
38
|
+
findInArray(objs: any[], predicate: any): any;
|
|
39
|
+
get(obj: any, path: string[], defaultValue?: any): any;
|
|
40
|
+
put(obj: any, value: any, path: string[]): any;
|
|
41
|
+
/**
|
|
42
|
+
* Deterministic stringify
|
|
43
|
+
* @param {any} obj json object to stringify deterministically
|
|
44
|
+
* @returns {string} stringified json object
|
|
45
|
+
*/
|
|
46
|
+
stringify(obj: any): string;
|
|
47
|
+
};
|
|
48
|
+
declare const _default: () => Json;
|
|
49
|
+
export default _default;
|
|
50
|
+
/**
|
|
51
|
+
* Compare two json objects
|
|
52
|
+
* @param {object} obj1 object 1
|
|
53
|
+
* @param {object} obj2 object 2
|
|
54
|
+
* @param {string[]} ignoreKeys array of keys to ignore in comparison
|
|
55
|
+
* @returns {boolean} true if the two json objects have the same length and all the properties have the same value
|
|
56
|
+
*/
|
|
57
|
+
export declare function isEqualJson(obj1: object, obj2: object, ignoreKeys?: string[]): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Deep delete keys and their values from an input object. If a key in object contains or equals substring, the key and its value is deleted.
|
|
60
|
+
* @param {Object} object input object that needs keys removed
|
|
61
|
+
* @param {String} substring substring to search for in key
|
|
62
|
+
* @returns the modified object without the matching keys and their values
|
|
63
|
+
*/
|
|
64
|
+
export declare function deleteDeepByKey(object: any, substring: string): any;
|
|
65
|
+
/**
|
|
66
|
+
* Deep delete keys and their values from an input object. If a key in object contains or equals a substring of any provided, the key and its value is deleted.
|
|
67
|
+
* @param {Object} object input object that needs keys removed
|
|
68
|
+
* @param {String[]} substrings substrings to search for in key
|
|
69
|
+
* @returns the modified object without the matching keys and their values
|
|
70
|
+
*/
|
|
71
|
+
export declare function deleteDeepByKeys(object: any, substrings: string[]): any;
|
|
72
|
+
/**
|
|
73
|
+
* Deep clone object
|
|
74
|
+
* @param {any} obj object to deep clone
|
|
75
|
+
* @returns {any} new object cloned from obj
|
|
76
|
+
*/
|
|
77
|
+
export declare function cloneDeep(obj: any): any;
|
|
78
|
+
/**
|
|
79
|
+
* Deep merge two objects
|
|
80
|
+
* @param obj1 first object
|
|
81
|
+
* @param obj2 second object
|
|
82
|
+
* @returns merged first and second object
|
|
83
|
+
*/
|
|
84
|
+
export declare function mergeDeep(obj1: any, obj2: any): any;
|
|
85
|
+
/**
|
|
86
|
+
* Get all paths for an object
|
|
87
|
+
* This function was explicitly created for the shell command in the Frodo CLI
|
|
88
|
+
* and has some special casing that may not leave it generic enough to be used
|
|
89
|
+
* for what its name implies.
|
|
90
|
+
* @param {any} o object
|
|
91
|
+
* @param {string} prefix prefix (path calculated up to this point). Only needed for recursion or to add a global prefix to all paths.
|
|
92
|
+
* @param {string} delim delimiter used to separate elements of the path. Default is '.'.
|
|
93
|
+
* @returns {string[]} an array of paths
|
|
94
|
+
*/
|
|
95
|
+
export declare function getPaths(o: any, prefix?: string, delim?: string): string[];
|
|
96
|
+
export declare function findInArray(objs: any[], predicate: any): any;
|
|
97
|
+
export declare function get(obj: any, path: string[], defaultValue?: any): any;
|
|
98
|
+
export declare function put(obj: any, value: any, path: string[]): any;
|
|
99
|
+
/**
|
|
100
|
+
* Deterministic stringify
|
|
101
|
+
* @param obj json object to stringify deterministically
|
|
102
|
+
* @returns stringified json object
|
|
103
|
+
*/
|
|
104
|
+
export declare function stringify(obj: any): string;
|
|
105
|
+
//# sourceMappingURL=JsonUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonUtils.d.ts","sourceRoot":"","sources":["../../src/utils/JsonUtils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB;;;;;;OAMG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACxE;;;;;OAKG;IACH,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAG,GAAG,CAAC;IAClD;;;;OAIG;IACH,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAAC;IACzB;;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,GAAG,CAAC;IACrC;;;;;;OAMG;IACH,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5D,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,GAAG,GAAG,CAAC;IAC9C,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,YAAY,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;IACvD,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;IAC/C;;;;OAIG;IACH,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;CAC7B,CAAC;8BAEiB,IAAI;AAAvB,wBAkCE;AAEF;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,UAAU,GAAE,MAAM,EAAO,GACxB,OAAO,CAwBT;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAE7D;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,OAejE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAEvC;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,GAAG,CAUnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,SAAK,EAAE,KAAK,SAAM,GAAG,MAAM,EAAE,CAoBnE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,GAAG,GAAG,CAS5D;AAED,wBAAgB,GAAG,CACjB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,MAAM,EAAE,EACd,YAAY,GAAE,GAAe,GAC5B,GAAG,CAOL;AAED,wBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,CAQ7D;AAoBD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAE1C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type Jwt = {
|
|
2
|
+
decodeJwtPayload(jwt: string): Record<string, unknown>;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: () => Jwt;
|
|
5
|
+
export default _default;
|
|
6
|
+
/**
|
|
7
|
+
* Decode a JWT's payload (the middle, base64url-encoded segment) without
|
|
8
|
+
* verifying its signature.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* Signature verification is deliberately not performed — every caller in
|
|
12
|
+
* frodo-lib only ever decodes a token it just received directly from AM
|
|
13
|
+
* itself over TLS (e.g. to read the `may_act` claim off a freshly-issued
|
|
14
|
+
* access token), never a token supplied by an untrusted third party.
|
|
15
|
+
* @param {string} jwt the JSON Web Token to decode
|
|
16
|
+
* @returns {Record<string, unknown>} the decoded payload claims
|
|
17
|
+
*/
|
|
18
|
+
export declare function decodeJwtPayload(jwt: string): Record<string, unknown>;
|
|
19
|
+
//# sourceMappingURL=JwtUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JwtUtils.d.ts","sourceRoot":"","sources":["../../src/utils/JwtUtils.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,GAAG;IAChB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxD,CAAC;8BAEiB,GAAG;AAAtB,wBAME;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAUrE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type PkcePair = {
|
|
2
|
+
verifier: string;
|
|
3
|
+
challenge: string;
|
|
4
|
+
method: 'S256';
|
|
5
|
+
};
|
|
6
|
+
export type Pkce = {
|
|
7
|
+
createPkcePair(): PkcePair;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: () => Pkce;
|
|
10
|
+
export default _default;
|
|
11
|
+
/**
|
|
12
|
+
* Generate a PKCE (RFC 7636) verifier/challenge pair for an OAuth2
|
|
13
|
+
* authorization code exchange.
|
|
14
|
+
* @returns {PkcePair} a fresh, cryptographically random verifier/challenge pair
|
|
15
|
+
*/
|
|
16
|
+
export declare function createPkcePair(): PkcePair;
|
|
17
|
+
//# sourceMappingURL=PkceUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PkceUtils.d.ts","sourceRoot":"","sources":["../../src/utils/PkceUtils.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,cAAc,IAAI,QAAQ,CAAC;CAC5B,CAAC;8BAEiB,IAAI;AAAvB,wBAME;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,QAAQ,CAMzC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { State } from '../shared/State';
|
|
2
|
+
export type Recording = {
|
|
3
|
+
request: {
|
|
4
|
+
url: string;
|
|
5
|
+
headers: [{
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}];
|
|
9
|
+
postData: {
|
|
10
|
+
mimeType: string;
|
|
11
|
+
text: any;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
response: {
|
|
15
|
+
content: {
|
|
16
|
+
mimeType: string;
|
|
17
|
+
text: any;
|
|
18
|
+
};
|
|
19
|
+
cookies: {
|
|
20
|
+
httpOnly: boolean;
|
|
21
|
+
name: string;
|
|
22
|
+
path: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
headers: [{
|
|
26
|
+
name: string;
|
|
27
|
+
value: string;
|
|
28
|
+
}];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare function defaultMatchRequestsBy(protocol?: boolean): {
|
|
32
|
+
method: boolean;
|
|
33
|
+
headers: boolean;
|
|
34
|
+
body: boolean;
|
|
35
|
+
order: boolean;
|
|
36
|
+
url: {
|
|
37
|
+
protocol: boolean;
|
|
38
|
+
username: boolean;
|
|
39
|
+
password: boolean;
|
|
40
|
+
hostname: boolean;
|
|
41
|
+
port: boolean;
|
|
42
|
+
pathname: boolean;
|
|
43
|
+
query: boolean;
|
|
44
|
+
hash: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare function orderedMatchRequestsBy(protocol?: boolean): {
|
|
48
|
+
method: boolean;
|
|
49
|
+
headers: boolean;
|
|
50
|
+
body: boolean;
|
|
51
|
+
order: boolean;
|
|
52
|
+
url: {
|
|
53
|
+
protocol: boolean;
|
|
54
|
+
username: boolean;
|
|
55
|
+
password: boolean;
|
|
56
|
+
hostname: boolean;
|
|
57
|
+
port: boolean;
|
|
58
|
+
pathname: boolean;
|
|
59
|
+
query: boolean;
|
|
60
|
+
hash: boolean;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare function filterRecording(recording: Recording, useDefaultHost?: boolean, state?: State): void;
|
|
64
|
+
export declare function cleanupProxyRequestUrl(url: string): string;
|
|
65
|
+
//# sourceMappingURL=PollyUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollyUtils.d.ts","sourceRoot":"","sources":["../../src/utils/PollyUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGxC,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC3C,QAAQ,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAA;SAAE,CAAC;KAC3C,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAA;SAAE,CAAC;QACzC,OAAO,EAAE;YACP,QAAQ,EAAE,OAAO,CAAC;YAClB,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;SACf,EAAE,CAAC;QACJ,OAAO,EAAE,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC5C,CAAC;CACH,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,QAAQ,GAAE,OAAc;;;;;;;;;;;;;;;EAiB9D;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,GAAE,OAAc;;;;;;;;;;;;;;;EAiB9D;AAED,wBAAgB,eAAe,CAC7B,SAAS,EAAE,SAAS,EACpB,cAAc,UAAO,EACrB,KAAK,CAAC,EAAE,KAAK,QA0Dd;AAiHD,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM1D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ScriptSkeleton } from '../api/ScriptApi';
|
|
2
|
+
import { State } from '../shared/State';
|
|
3
|
+
export type ScriptValidation = {
|
|
4
|
+
validateScriptHooks(jsonData: object): void;
|
|
5
|
+
validateScript(scriptData: ScriptSkeleton): void;
|
|
6
|
+
validateJs(javascriptSource: string): void;
|
|
7
|
+
areScriptHooksValid(jsonData: object): boolean;
|
|
8
|
+
isScriptValid(scriptData: ScriptSkeleton): boolean;
|
|
9
|
+
isValidJs(javascriptSource: string): boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: (state: State) => ScriptValidation;
|
|
12
|
+
export default _default;
|
|
13
|
+
export interface ScriptHook {
|
|
14
|
+
type: 'text/javascript';
|
|
15
|
+
source?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function validateScriptHooks({ jsonData }: {
|
|
18
|
+
jsonData: object;
|
|
19
|
+
}): void;
|
|
20
|
+
export declare function validateScript({ scriptData, }: {
|
|
21
|
+
scriptData: ScriptSkeleton;
|
|
22
|
+
}): void;
|
|
23
|
+
export declare function validateJs({ javascriptSource }: {
|
|
24
|
+
javascriptSource: string;
|
|
25
|
+
}): boolean;
|
|
26
|
+
export declare function areScriptHooksValid({ jsonData, state, }: {
|
|
27
|
+
jsonData: object;
|
|
28
|
+
state: State;
|
|
29
|
+
}): boolean;
|
|
30
|
+
export declare function isScriptValid({ scriptData, state, }: {
|
|
31
|
+
scriptData: ScriptSkeleton;
|
|
32
|
+
state: State;
|
|
33
|
+
}): boolean;
|
|
34
|
+
export declare function isValidJs({ javascriptSource, state, }: {
|
|
35
|
+
javascriptSource: string;
|
|
36
|
+
state: State;
|
|
37
|
+
}): boolean;
|
|
38
|
+
//# sourceMappingURL=ScriptValidationUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptValidationUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ScriptValidationUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAIxC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,cAAc,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IACjD,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/C,aAAa,CAAC,UAAU,EAAE,cAAc,GAAG,OAAO,CAAC;IACnD,SAAS,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC;CAC9C,CAAC;yBAEc,OAAO,KAAK,KAAG,gBAAgB;AAA/C,wBAqBE;AAEF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA0BD,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAU5E;AAED,wBAAgB,cAAc,CAAC,EAC7B,UAAU,GACX,EAAE;IACD,UAAU,EAAE,cAAc,CAAC;CAC5B,GAAG,IAAI,CAOP;AAED,wBAAgB,UAAU,CAAC,EAAE,gBAAgB,EAAE,EAAE;IAAE,gBAAgB,EAAE,MAAM,CAAA;CAAE,WAK5E;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAcV;AAED,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,KAAK,GACN,EAAE;IACD,UAAU,EAAE,cAAc,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,OAAO,CAaV;AAED,wBAAgB,SAAS,CAAC,EACxB,gBAAgB,EAChB,KAAK,GACN,EAAE;IACD,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC;CACd,WAaA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export type SemverUtils = {
|
|
2
|
+
/**
|
|
3
|
+
* Compare two semantic version strings (e.g., "1.2.3" and "1.2.4").
|
|
4
|
+
* @param {string} v1 - The first semantic version string.
|
|
5
|
+
* @param {string} v2 - The second semantic version string.
|
|
6
|
+
* @returns {number} - Returns 1 if v1 > v2, -1 if v1 < v2, and 0 if they are equal.
|
|
7
|
+
*/
|
|
8
|
+
compare(v1: string, v2: string): number;
|
|
9
|
+
/**
|
|
10
|
+
* Greater Than (v1 > v2)
|
|
11
|
+
* @param v1 - The first semantic version string.
|
|
12
|
+
* @param v2 - The second semantic version string.
|
|
13
|
+
* @returns {boolean} - Returns true if v1 > v2, false otherwise.
|
|
14
|
+
*/
|
|
15
|
+
gt(v1: string, v2: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Less Than (v1 < v2)
|
|
18
|
+
* @param v1 - The first semantic version string.
|
|
19
|
+
* @param v2 - The second semantic version string.
|
|
20
|
+
* @returns {boolean} - Returns true if v1 < v2, false otherwise.
|
|
21
|
+
*/
|
|
22
|
+
lt(v1: string, v2: string): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Equal (v1 === v2)
|
|
25
|
+
* @param v1 - The first semantic version string.
|
|
26
|
+
* @param v2 - The second semantic version string.
|
|
27
|
+
* @returns {boolean} - Returns true if v1 === v2, false otherwise.
|
|
28
|
+
*/
|
|
29
|
+
eq(v1: string, v2: string): boolean;
|
|
30
|
+
};
|
|
31
|
+
declare const _default: () => SemverUtils;
|
|
32
|
+
export default _default;
|
|
33
|
+
/**
|
|
34
|
+
* Compare two semantic version strings (e.g., "1.2.3" and "1.2.4").
|
|
35
|
+
* @param {string} v1 - The first semantic version string.
|
|
36
|
+
* @param {string} v2 - The second semantic version string.
|
|
37
|
+
* @returns {number} - Returns 1 if v1 > v2, -1 if v1 < v2, and 0 if they are equal.
|
|
38
|
+
*/
|
|
39
|
+
export declare function compare(v1: string, v2: string): number;
|
|
40
|
+
/**
|
|
41
|
+
* Greater Than (v1 > v2)
|
|
42
|
+
* @param v1 - The first semantic version string.
|
|
43
|
+
* @param v2 - The second semantic version string.
|
|
44
|
+
* @returns {boolean} - Returns true if v1 > v2, false otherwise.
|
|
45
|
+
*/
|
|
46
|
+
export declare function gt(v1: string, v2: string): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Less Than (v1 < v2)
|
|
49
|
+
* @param v1 - The first semantic version string.
|
|
50
|
+
* @param v2 - The second semantic version string.
|
|
51
|
+
* @returns {boolean} - Returns true if v1 < v2, false otherwise.
|
|
52
|
+
*/
|
|
53
|
+
export declare function lt(v1: string, v2: string): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Equal (v1 === v2)
|
|
56
|
+
* @param v1 - The first semantic version string.
|
|
57
|
+
* @param v2 - The second semantic version string.
|
|
58
|
+
* @returns {boolean} - Returns true if v1 === v2, false otherwise.
|
|
59
|
+
*/
|
|
60
|
+
export declare function eq(v1: string, v2: string): boolean;
|
|
61
|
+
//# sourceMappingURL=SemverUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SemverUtils.d.ts","sourceRoot":"","sources":["../../src/utils/SemverUtils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACxC;;;;;OAKG;IACH,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC;;;;;OAKG;IACH,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC;;;;;OAKG;IACH,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;CACrC,CAAC;8BAEiB,WAAW;AAA9B,wBAeE;AAEF;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAStD;AAED;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAElD;AAED;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAElD;AAED;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAElD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Polly } from '@pollyjs/core';
|
|
2
|
+
import { State } from '../shared/State';
|
|
3
|
+
export declare function setupPollyForFrodoLib({ matchRequestsBy, state, }: {
|
|
4
|
+
matchRequestsBy?: any;
|
|
5
|
+
state: State;
|
|
6
|
+
}): Polly;
|
|
7
|
+
//# sourceMappingURL=SetupPollyForFrodoLib.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetupPollyForFrodoLib.d.ts","sourceRoot":"","sources":["../../src/utils/SetupPollyForFrodoLib.ts"],"names":[],"mappings":"AAOA,OAAO,EAAmB,KAAK,EAAE,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAwSxC,wBAAgB,qBAAqB,CAAC,EACpC,eAA+C,EAC/C,KAAK,GACN,EAAE;IACD,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,KAAK,CA4PR"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Best-effort detection of a terminal's actual background color via OSC 11
|
|
3
|
+
* (`ESC ] 11 ; ? BEL`, terminal replies `ESC ] 11 ; rgb:RRRR/GGGG/BBBB`).
|
|
4
|
+
*
|
|
5
|
+
* Support is real but inconsistent: well-supported in iTerm2, Kitty,
|
|
6
|
+
* WezTerm, Alacritty, and VTE-based terminals (gnome-terminal); flaky or
|
|
7
|
+
* absent over tmux (which caches the response until the client reattaches)
|
|
8
|
+
* and on some Windows terminals; and simply silent forever on a terminal
|
|
9
|
+
* that doesn't implement it at all -- which is why this always races the
|
|
10
|
+
* response against a short timeout rather than waiting indefinitely, and
|
|
11
|
+
* always restores stdin's raw-mode/listener state on both the success and
|
|
12
|
+
* timeout paths.
|
|
13
|
+
*
|
|
14
|
+
* Modeled closely on the equivalent query in the `os-theme` package (MIT,
|
|
15
|
+
* https://www.npmjs.com/package/os-theme), which solves the same raw-mode/
|
|
16
|
+
* timeout/cleanup mechanics correctly -- reimplemented locally rather than
|
|
17
|
+
* taken as a dependency because that package's public API only returns a
|
|
18
|
+
* collapsed dark/light classification, discarding the parsed RGB before it
|
|
19
|
+
* ever leaves the module; this needs the actual RGB to tell a plain white
|
|
20
|
+
* background apart from a colored one (e.g. a light blue terminal), which
|
|
21
|
+
* a dark/light-only signal can't do.
|
|
22
|
+
*/
|
|
23
|
+
import type { Rgb } from './TerminalContrast';
|
|
24
|
+
/**
|
|
25
|
+
* Queries the terminal's actual background color via OSC 11. Resolves
|
|
26
|
+
* `null` immediately, with no query attempted, when stdin/stdout aren't a
|
|
27
|
+
* TTY (piped/scripted/CI usage) -- and resolves `null` after a short
|
|
28
|
+
* timeout if the terminal never responds (unsupported terminal, or a
|
|
29
|
+
* multiplexer/SSH chain that swallows the query).
|
|
30
|
+
*/
|
|
31
|
+
export declare function detectTerminalBackgroundRgb(): Promise<Rgb | null>;
|
|
32
|
+
export type BackgroundPreset = {
|
|
33
|
+
/** Matches a `ThemeConfig.ts` bundled theme definition's `name`. */
|
|
34
|
+
themeName: string;
|
|
35
|
+
referenceRgb: Rgb;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Matches a detected background RGB against a fixed set of named presets by
|
|
39
|
+
* simple RGB-space nearest-neighbor, falling back to `fallbackDark`/
|
|
40
|
+
* `fallbackLight` (chosen by relative luminance) when nothing is close
|
|
41
|
+
* enough to be a confident match. `maxDistance` (0-441.7, the diagonal of
|
|
42
|
+
* the RGB cube) defaults to a fairly tight radius -- this is meant to catch
|
|
43
|
+
* "this terminal is unmistakably that preset's color", not to force every
|
|
44
|
+
* detected background into the nearest bucket regardless of how far off it
|
|
45
|
+
* actually is.
|
|
46
|
+
*/
|
|
47
|
+
export declare function matchBackgroundPreset(detectedRgb: Rgb, presets: BackgroundPreset[], fallbackDark: string, fallbackLight: string, maxDistance?: number): string;
|
|
48
|
+
//# sourceMappingURL=TerminalBackgroundDetection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalBackgroundDetection.d.ts","sourceRoot":"","sources":["../../src/utils/TerminalBackgroundDetection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAmB9C;;;;;;GAMG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,CAwCjE;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,GAAG,CAAC;CACnB,CAAC;AAQF;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,GAAG,EAChB,OAAO,EAAE,gBAAgB,EAAE,EAC3B,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,WAAW,SAAK,GACf,MAAM,CAgBR"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Objective readability filtering for the standard 16-color ANSI palette.
|
|
3
|
+
*
|
|
4
|
+
* Terminal color schemes are user-configurable, so there's no single true
|
|
5
|
+
* RGB value for e.g. "red" across every terminal emulator -- the table below
|
|
6
|
+
* is the conventional xterm default palette, used here as a representative
|
|
7
|
+
* reference for building a sane default theme, not a live guarantee for any
|
|
8
|
+
* specific user's actual terminal colors.
|
|
9
|
+
*
|
|
10
|
+
* The contrast math is the standard WCAG 2 relative-luminance/contrast-ratio
|
|
11
|
+
* formula (the same one used to judge foreground/background text contrast
|
|
12
|
+
* on the web), applied here to terminal foreground colors against a plain
|
|
13
|
+
* black or white background -- giving a computed, reviewable answer to
|
|
14
|
+
* "is this color readable on this background" instead of eyeballing it.
|
|
15
|
+
*/
|
|
16
|
+
export type AnsiColorName = 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'blackBright' | 'redBright' | 'greenBright' | 'yellowBright' | 'blueBright' | 'magentaBright' | 'cyanBright' | 'whiteBright';
|
|
17
|
+
export type Rgb = [number, number, number];
|
|
18
|
+
export type TerminalBackground = 'black' | 'white';
|
|
19
|
+
/**
|
|
20
|
+
* WCAG 2 contrast ratio between two colors, from 1 (no contrast) to 21
|
|
21
|
+
* (black on white or vice versa).
|
|
22
|
+
*/
|
|
23
|
+
export declare function contrastRatio(a: Rgb, b: Rgb): number;
|
|
24
|
+
/**
|
|
25
|
+
* Filters the standard 16-color ANSI palette down to the colors that meet a
|
|
26
|
+
* minimum WCAG contrast ratio against a background. Default minimum is 4.5,
|
|
27
|
+
* WCAG AA's threshold for normal-sized text.
|
|
28
|
+
*
|
|
29
|
+
* `background` accepts either the plain `'black'`/`'white'` reference
|
|
30
|
+
* (the two extremes every built-in theme is checked against) or an
|
|
31
|
+
* arbitrary RGB triple -- needed for theme presets tuned to a real,
|
|
32
|
+
* non-black/non-white terminal background (e.g. a detected or named
|
|
33
|
+
* background-color preset), where contrast has to be checked against that
|
|
34
|
+
* background's actual color, not just its nearest black/white extreme.
|
|
35
|
+
*/
|
|
36
|
+
export declare class TerminalContrastFilter {
|
|
37
|
+
private readonly backgroundRgb;
|
|
38
|
+
private readonly minRatio;
|
|
39
|
+
constructor(background: TerminalBackground | Rgb, minRatio?: number);
|
|
40
|
+
isReadable(color: AnsiColorName): boolean;
|
|
41
|
+
filter(colors: AnsiColorName[]): AnsiColorName[];
|
|
42
|
+
}
|
|
43
|
+
export declare const ALL_ANSI_COLOR_NAMES: AnsiColorName[];
|
|
44
|
+
//# sourceMappingURL=TerminalContrast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalContrast.d.ts","sourceRoot":"","sources":["../../src/utils/TerminalContrast.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,aAAa,GACrB,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,MAAM,GACN,SAAS,GACT,MAAM,GACN,OAAO,GACP,aAAa,GACb,WAAW,GACX,aAAa,GACb,cAAc,GACd,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,aAAa,CAAC;AAElB,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE3C,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,CAAC;AAuCnD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,CAMpD;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAM;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,UAAU,EAAE,kBAAkB,GAAG,GAAG,EAAE,QAAQ,SAAM;IAOhE,UAAU,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;IAOzC,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,aAAa,EAAE;CAGjD;AAED,eAAO,MAAM,oBAAoB,EAE5B,aAAa,EAAE,CAAC"}
|