export function isNimiErrorLike(error) {
    if (!error || typeof error !== 'object') {
        return false;
    }
    const record = error;
    return typeof record.reasonCode === 'string'
        && typeof record.actionHint === 'string'
        && typeof record.traceId === 'string'
        && typeof record.retryable === 'boolean'
        && typeof record.source === 'string';
}
export function asScopeName(value) {
    return value;
}
export function asScopeCatalogVersion(value) {
    return value;
}
export function asCatalogHash(value) {
    return value;
}
export function asExternalPrincipalId(value) {
    return value;
}
export const ReasonCode = {
    ACTION_ACCEPTED: 'ACTION_ACCEPTED',
    ACTION_COMMITTED: 'ACTION_COMMITTED',
    ACTION_CONTEXT_INVALID: 'ACTION_CONTEXT_INVALID',
    ACTION_DRY_RUN_UNSUPPORTED: 'ACTION_DRY_RUN_UNSUPPORTED',
    ACTION_EXECUTED: 'ACTION_EXECUTED',
    ACTION_EXECUTING: 'ACTION_EXECUTING',
    ACTION_EXECUTION_BRIDGE_FAILED: 'ACTION_EXECUTION_BRIDGE_FAILED',
    ACTION_EXECUTION_FAILED: 'ACTION_EXECUTION_FAILED',
    ACTION_IDEMPOTENCY_KEY_CONFLICT: 'ACTION_IDEMPOTENCY_KEY_CONFLICT',
    ACTION_IDEMPOTENCY_KEY_REQUIRED: 'ACTION_IDEMPOTENCY_KEY_REQUIRED',
    ACTION_IDEMPOTENCY_REPLAYED: 'ACTION_IDEMPOTENCY_REPLAYED',
    ACTION_INPUT_INVALID: 'ACTION_INPUT_INVALID',
    ACTION_INPUT_SCHEMA_INVALID: 'ACTION_INPUT_SCHEMA_INVALID',
    ACTION_NOT_FOUND: 'ACTION_NOT_FOUND',
    ACTION_OPAQUE_HIGH_RISK_FORBIDDEN: 'ACTION_OPAQUE_HIGH_RISK_FORBIDDEN',
    ACTION_OUTPUT_SCHEMA_INVALID: 'ACTION_OUTPUT_SCHEMA_INVALID',
    ACTION_PERMISSION_DENIED: 'ACTION_PERMISSION_DENIED',
    ACTION_RUNTIME_STORE_UNAVAILABLE: 'ACTION_RUNTIME_STORE_UNAVAILABLE',
    ACTION_VERIFIED: 'ACTION_VERIFIED',
    ACTION_VERIFY_REQUIRED: 'ACTION_VERIFY_REQUIRED',
    ACTION_VERIFY_TICKET_EXPIRED: 'ACTION_VERIFY_TICKET_EXPIRED',
    ACTION_VERIFY_TICKET_INVALID: 'ACTION_VERIFY_TICKET_INVALID',
    ARTIFACT_FORBIDDEN: 'ARTIFACT_FORBIDDEN',
    ARTIFACT_INVALID_INPUT: 'ARTIFACT_INVALID_INPUT',
    ARTIFACT_MIME_MISMATCH: 'ARTIFACT_MIME_MISMATCH',
    ARTIFACT_NOT_FOUND: 'ARTIFACT_NOT_FOUND',
    ARTIFACT_TOO_LARGE: 'ARTIFACT_TOO_LARGE',
    AI_APP_ID_CONFLICT: 'AI_APP_ID_CONFLICT',
    AI_APP_ID_REQUIRED: 'AI_APP_ID_REQUIRED',
    AI_CONNECTOR_CREDENTIAL_MISSING: 'AI_CONNECTOR_CREDENTIAL_MISSING',
    AI_CONNECTOR_DISABLED: 'AI_CONNECTOR_DISABLED',
    AI_CONNECTOR_ID_REQUIRED: 'AI_CONNECTOR_ID_REQUIRED',
    AI_CONNECTOR_IMMUTABLE: 'AI_CONNECTOR_IMMUTABLE',
    AI_CONNECTOR_INVALID: 'AI_CONNECTOR_INVALID',
    AI_CONNECTOR_LIMIT_EXCEEDED: 'AI_CONNECTOR_LIMIT_EXCEEDED',
    AI_CONNECTOR_NOT_FOUND: 'AI_CONNECTOR_NOT_FOUND',
    AI_CONTENT_FILTER_BLOCKED: 'AI_CONTENT_FILTER_BLOCKED',
    AI_FINISH_CONTENT_FILTER: 'AI_FINISH_CONTENT_FILTER',
    AI_FINISH_LENGTH: 'AI_FINISH_LENGTH',
    AI_INPUT_INVALID: 'AI_INPUT_INVALID',
    AI_LOCAL_ENDPOINT_REQUIRED: 'AI_LOCAL_ENDPOINT_REQUIRED',
    AI_LOCAL_MANIFEST_INVALID: 'AI_LOCAL_MANIFEST_INVALID',
    AI_LOCAL_ASSET_ALREADY_INSTALLED: 'AI_LOCAL_ASSET_ALREADY_INSTALLED',
    AI_LOCAL_MODEL_PROFILE_MISSING: 'AI_LOCAL_MODEL_PROFILE_MISSING',
    AI_LOCAL_SPEECH_BUNDLE_DEGRADED: 'AI_LOCAL_SPEECH_BUNDLE_DEGRADED',
    AI_LOCAL_SPEECH_CAPABILITY_DOWNLOAD_FAILED: 'AI_LOCAL_SPEECH_CAPABILITY_DOWNLOAD_FAILED',
    AI_LOCAL_SPEECH_DOWNLOAD_CONFIRMATION_REQUIRED: 'AI_LOCAL_SPEECH_DOWNLOAD_CONFIRMATION_REQUIRED',
    AI_LOCAL_SPEECH_ENV_INIT_FAILED: 'AI_LOCAL_SPEECH_ENV_INIT_FAILED',
    AI_LOCAL_SPEECH_HOST_INIT_FAILED: 'AI_LOCAL_SPEECH_HOST_INIT_FAILED',
    AI_LOCAL_SPEECH_PREFLIGHT_BLOCKED: 'AI_LOCAL_SPEECH_PREFLIGHT_BLOCKED',
    AI_LOCAL_MODEL_UNAVAILABLE: 'AI_LOCAL_MODEL_UNAVAILABLE',
    AI_MEDIA_IDEMPOTENCY_CONFLICT: 'AI_MEDIA_IDEMPOTENCY_CONFLICT',
    AI_MEDIA_JOB_NOT_CANCELLABLE: 'AI_MEDIA_JOB_NOT_CANCELLABLE',
    AI_MEDIA_JOB_NOT_FOUND: 'AI_MEDIA_JOB_NOT_FOUND',
    AI_MEDIA_OPTION_UNSUPPORTED: 'AI_MEDIA_OPTION_UNSUPPORTED',
    AI_MEDIA_SPEC_INVALID: 'AI_MEDIA_SPEC_INVALID',
    AI_MODALITY_NOT_SUPPORTED: 'AI_MODALITY_NOT_SUPPORTED',
    AI_MODEL_ID_REQUIRED: 'AI_MODEL_ID_REQUIRED',
    AI_MODEL_NOT_FOUND: 'AI_MODEL_NOT_FOUND',
    AI_MODEL_NOT_READY: 'AI_MODEL_NOT_READY',
    AI_MODEL_PROVIDER_MISMATCH: 'AI_MODEL_PROVIDER_MISMATCH',
    AI_MODULE_CONFIG_INVALID: 'AI_MODULE_CONFIG_INVALID',
    AI_OUTPUT_INVALID: 'AI_OUTPUT_INVALID',
    AI_PROVIDER_AUTH_FAILED: 'AI_PROVIDER_AUTH_FAILED',
    AI_PROVIDER_CIRCUIT_OPEN: 'AI_PROVIDER_CIRCUIT_OPEN',
    AI_PROVIDER_ENDPOINT_FORBIDDEN: 'AI_PROVIDER_ENDPOINT_FORBIDDEN',
    AI_PROVIDER_INTERNAL: 'AI_PROVIDER_INTERNAL',
    AI_PROVIDER_RATE_LIMITED: 'AI_PROVIDER_RATE_LIMITED',
    AI_PROVIDER_TIMEOUT: 'AI_PROVIDER_TIMEOUT',
    AI_PROVIDER_UNAVAILABLE: 'AI_PROVIDER_UNAVAILABLE',
    AI_REQUEST_CREDENTIAL_CONFLICT: 'AI_REQUEST_CREDENTIAL_CONFLICT',
    AI_REQUEST_CREDENTIAL_INVALID: 'AI_REQUEST_CREDENTIAL_INVALID',
    AI_REQUEST_CREDENTIAL_MISSING: 'AI_REQUEST_CREDENTIAL_MISSING',
    AI_ROUTE_FALLBACK_DENIED: 'AI_ROUTE_FALLBACK_DENIED',
    AI_ROUTE_UNSUPPORTED: 'AI_ROUTE_UNSUPPORTED',
    AI_STREAM_BROKEN: 'AI_STREAM_BROKEN',
    APP_AUTHORIZATION_DENIED: 'APP_AUTHORIZATION_DENIED',
    APP_CONSENT_INVALID: 'APP_CONSENT_INVALID',
    APP_CONSENT_MISSING: 'APP_CONSENT_MISSING',
    APP_DELEGATION_DEPTH_EXCEEDED: 'APP_DELEGATION_DEPTH_EXCEEDED',
    APP_DELEGATION_FORBIDDEN: 'APP_DELEGATION_FORBIDDEN',
    APP_GRANT_INVALID: 'APP_GRANT_INVALID',
    APP_INSTALL_DESCRIPTOR_NOT_FOUND: 'APP_INSTALL_DESCRIPTOR_NOT_FOUND',
    APP_INSTALL_DIGEST_MISMATCH: 'APP_INSTALL_DIGEST_MISMATCH',
    APP_INSTALL_DOWNLOAD_FAILED: 'APP_INSTALL_DOWNLOAD_FAILED',
    APP_INSTALL_INTERNAL: 'APP_INSTALL_INTERNAL',
    APP_INSTALL_MANIFEST_INVALID: 'APP_INSTALL_MANIFEST_INVALID',
    APP_INSTALL_STORAGE_VIOLATION: 'APP_INSTALL_STORAGE_VIOLATION',
    APP_INSTALL_UNPACK_FAILED: 'APP_INSTALL_UNPACK_FAILED',
    APP_LIFECYCLE_JOB_CANCELLED: 'APP_LIFECYCLE_JOB_CANCELLED',
    APP_MODE_DOMAIN_FORBIDDEN: 'APP_MODE_DOMAIN_FORBIDDEN',
    APP_MODE_MANIFEST_INVALID: 'APP_MODE_MANIFEST_INVALID',
    APP_MODE_SCOPE_FORBIDDEN: 'APP_MODE_SCOPE_FORBIDDEN',
    APP_MODE_WORLD_RELATION_FORBIDDEN: 'APP_MODE_WORLD_RELATION_FORBIDDEN',
    APP_NOT_REGISTERED: 'APP_NOT_REGISTERED',
    APP_REPAIR_ACTION_INVALID: 'APP_REPAIR_ACTION_INVALID',
    APP_REPAIR_NO_RECOVERABLE_JOB: 'APP_REPAIR_NO_RECOVERABLE_JOB',
    APP_REPAIR_NOT_REPAIRABLE: 'APP_REPAIR_NOT_REPAIRABLE',
    APP_RESOURCE_OUT_OF_SCOPE: 'APP_RESOURCE_OUT_OF_SCOPE',
    APP_RESOURCE_SELECTOR_INVALID: 'APP_RESOURCE_SELECTOR_INVALID',
    APP_SCOPE_CATALOG_UNPUBLISHED: 'APP_SCOPE_CATALOG_UNPUBLISHED',
    APP_SCOPE_CONFLICT: 'APP_SCOPE_CONFLICT',
    APP_SCOPE_FORBIDDEN: 'APP_SCOPE_FORBIDDEN',
    APP_SCOPE_MANIFEST_INVALID: 'APP_SCOPE_MANIFEST_INVALID',
    APP_SCOPE_NAMESPACE_FORBIDDEN: 'APP_SCOPE_NAMESPACE_FORBIDDEN',
    APP_SCOPE_REVOKED: 'APP_SCOPE_REVOKED',
    APP_UPDATE_CONFIRMATION_REQUIRED: 'APP_UPDATE_CONFIRMATION_REQUIRED',
    APP_UPDATE_NOT_AVAILABLE: 'APP_UPDATE_NOT_AVAILABLE',
    APP_UPDATE_NOT_INSTALLED: 'APP_UPDATE_NOT_INSTALLED',
    APP_UPDATE_SWAP_FAILED: 'APP_UPDATE_SWAP_FAILED',
    AUTH_CONTEXT_MISSING: 'AUTH_CONTEXT_MISSING',
    APP_TOKEN_EXPIRED: 'APP_TOKEN_EXPIRED',
    APP_TOKEN_REVOKED: 'APP_TOKEN_REVOKED',
    BUILD_REGISTRATION_FAILED: 'BUILD_REGISTRATION_FAILED',
    CAPABILITY_CATALOG_MISMATCH: 'CAPABILITY_CATALOG_MISMATCH',
    CODEGEN_BUNDLE_TOO_LARGE: 'CODEGEN_BUNDLE_TOO_LARGE',
    CODEGEN_CAPABILITY_DENIED: 'CODEGEN_CAPABILITY_DENIED',
    CODEGEN_CAPABILITY_UNKNOWN: 'CODEGEN_CAPABILITY_UNKNOWN',
    CODEGEN_MOD_ID_REQUIRED: 'CODEGEN_MOD_ID_REQUIRED',
    CODEGEN_MOD_ID_PREFIX_INVALID: 'CODEGEN_MOD_ID_PREFIX_INVALID',
    CODEGEN_PATTERN_EVAL_FORBIDDEN: 'CODEGEN_PATTERN_EVAL_FORBIDDEN',
    CODEGEN_PATTERN_FETCH_FORBIDDEN: 'CODEGEN_PATTERN_FETCH_FORBIDDEN',
    CODEGEN_PATTERN_HOST_IMPORT_FORBIDDEN: 'CODEGEN_PATTERN_HOST_IMPORT_FORBIDDEN',
    CODEGEN_PATTERN_IMPORTSCRIPTS_FORBIDDEN: 'CODEGEN_PATTERN_IMPORTSCRIPTS_FORBIDDEN',
    CODEGEN_PATTERN_LOCALSTORAGE_FORBIDDEN: 'CODEGEN_PATTERN_LOCALSTORAGE_FORBIDDEN',
    CODEGEN_PATTERN_NEW_FUNCTION_FORBIDDEN: 'CODEGEN_PATTERN_NEW_FUNCTION_FORBIDDEN',
    CODEGEN_PATTERN_PROCESS_ENV_FORBIDDEN: 'CODEGEN_PATTERN_PROCESS_ENV_FORBIDDEN',
    CODEGEN_PATTERN_REQUIRE_FORBIDDEN: 'CODEGEN_PATTERN_REQUIRE_FORBIDDEN',
    CODEGEN_PATTERN_WEBSOCKET_FORBIDDEN: 'CODEGEN_PATTERN_WEBSOCKET_FORBIDDEN',
    CODEGEN_PATTERN_XMLHTTPREQUEST_FORBIDDEN: 'CODEGEN_PATTERN_XMLHTTPREQUEST_FORBIDDEN',
    CODEGEN_T1_CONSENT_REQUIRED: 'CODEGEN_T1_CONSENT_REQUIRED',
    COMPAT_NO_MIN_VERSION: 'COMPAT_NO_MIN_VERSION',
    COMPAT_OK: 'COMPAT_OK',
    CONFIG_APPLIED: 'CONFIG_APPLIED',
    CONFIG_INVALID: 'CONFIG_INVALID',
    CONFIG_RESTART_REQUIRED: 'CONFIG_RESTART_REQUIRED',
    COMPAT_RUNTIME_TOO_NEW: 'COMPAT_RUNTIME_TOO_NEW',
    COMPAT_RUNTIME_TOO_OLD: 'COMPAT_RUNTIME_TOO_OLD',
    DISCOVERY_ALLOWED: 'DISCOVERY_ALLOWED',
    DISCOVERY_MODE_UNKNOWN: 'DISCOVERY_MODE_UNKNOWN',
    DISCOVERY_SOURCE_BLOCKED: 'DISCOVERY_SOURCE_BLOCKED',
    DISCOVERY_SOURCE_UNTRUSTED: 'DISCOVERY_SOURCE_UNTRUSTED',
    ENTRY_NOT_FOUND: 'ENTRY_NOT_FOUND',
    ENTRY_READ_FAILED: 'ENTRY_READ_FAILED',
    EXTERNAL_PRINCIPAL_NOT_REGISTERED: 'EXTERNAL_PRINCIPAL_NOT_REGISTERED',
    EXTERNAL_PRINCIPAL_PROOF_INVALID: 'EXTERNAL_PRINCIPAL_PROOF_INVALID',
    EXTERNAL_PRINCIPAL_PROOF_MISSING: 'EXTERNAL_PRINCIPAL_PROOF_MISSING',
    FACTORY_MISSING: 'FACTORY_MISSING',
    GRANT_TOKEN_CHAIN_ROOT_NOT_FOUND: 'GRANT_TOKEN_CHAIN_ROOT_NOT_FOUND',
    GRANT_TOKEN_CHAIN_ROOT_REQUIRED: 'GRANT_TOKEN_CHAIN_ROOT_REQUIRED',
    GO_RUNTIME_SYNC_FAILED: 'GO_RUNTIME_SYNC_FAILED',
    KISMET_ROUTE_UNAVAILABLE: 'KISMET_ROUTE_UNAVAILABLE',
    LIFECYCLE_NOT_FOUND: 'LIFECYCLE_NOT_FOUND',
    LOAD_FACTORY_FAILED: 'LOAD_FACTORY_FAILED',
    LOCAL_AI_AUDIT_WRITE_FAILED: 'LOCAL_AI_AUDIT_WRITE_FAILED',
    LOCAL_AI_CAPABILITY_MISSING: 'LOCAL_AI_CAPABILITY_MISSING',
    LOCAL_AI_DEPENDENCIES_DECLARATION_MISSING: 'LOCAL_AI_DEPENDENCIES_DECLARATION_MISSING',
    LOCAL_AI_PROFILES_DECLARATION_MISSING: 'LOCAL_AI_PROFILES_DECLARATION_MISSING',
    LOCAL_AI_DEPENDENCY_SNAPSHOT_FAILED: 'LOCAL_AI_DEPENDENCY_SNAPSHOT_FAILED',
    LOCAL_AI_PROFILE_SNAPSHOT_RESOLVER_MISSING: 'LOCAL_AI_PROFILE_SNAPSHOT_RESOLVER_MISSING',
    LOCAL_AI_HF_DOWNLOAD_PAUSED: 'LOCAL_AI_HF_DOWNLOAD_PAUSED',
    LOCAL_AI_MOD_ID_REQUIRED: 'LOCAL_AI_MOD_ID_REQUIRED',
    LOCAL_AI_PROFILE_ID_REQUIRED: 'LOCAL_AI_PROFILE_ID_REQUIRED',
    LOCAL_AI_PROFILE_INSTALL_DECLINED: 'LOCAL_AI_PROFILE_INSTALL_DECLINED',
    LOCAL_AI_PROFILE_NOT_FOUND: 'LOCAL_AI_PROFILE_NOT_FOUND',
    LOCAL_AI_PROVIDER_TIMEOUT: 'LOCAL_AI_PROVIDER_TIMEOUT',
    LOCAL_CHAT_PROACTIVE_ALLOWED: 'LOCAL_CHAT_PROACTIVE_ALLOWED',
    LOCAL_CHAT_PROACTIVE_POLICY_UNAVAILABLE: 'LOCAL_CHAT_PROACTIVE_POLICY_UNAVAILABLE',
    LOCAL_ONLY_NOT_SYNCED: 'LOCAL_ONLY_NOT_SYNCED',
    LOCAL_LIFECYCLE_WRITE_DENIED: 'LOCAL_LIFECYCLE_WRITE_DENIED',
    MOD_STATE_INVALID_KEY: 'MOD_STATE_INVALID_KEY',
    MOD_STATE_INVALID_OP: 'MOD_STATE_INVALID_OP',
    MOD_STATE_STORAGE_ERROR: 'MOD_STATE_STORAGE_ERROR',
    MOD_STATE_UNAVAILABLE: 'MOD_STATE_UNAVAILABLE',
    MOD_STATE_VALUE_TOO_LARGE: 'MOD_STATE_VALUE_TOO_LARGE',
    MOD_NOT_INSTALLED: 'MOD_NOT_INSTALLED',
    PLAY_PROVIDER_UNAVAILABLE: 'PLAY_PROVIDER_UNAVAILABLE',
    OPERATION_ABORTED: 'OPERATION_ABORTED',
    PAGE_TOKEN_INVALID: 'PAGE_TOKEN_INVALID',
    PRINCIPAL_UNAUTHORIZED: 'PRINCIPAL_UNAUTHORIZED',
    PROTOCOL_DOMAIN_FIELD_CONFLICT: 'PROTOCOL_DOMAIN_FIELD_CONFLICT',
    PROTOCOL_ENVELOPE_INVALID: 'PROTOCOL_ENVELOPE_INVALID',
    PROTOCOL_VERSION_MISMATCH: 'PROTOCOL_VERSION_MISMATCH',
    RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',
    RUNTIME_BRIDGE_DAEMON_UNAVAILABLE: 'RUNTIME_BRIDGE_DAEMON_UNAVAILABLE',
    RUNTIME_CALL_FAILED: 'RUNTIME_CALL_FAILED',
    RUNTIME_EXCEPTION: 'RUNTIME_EXCEPTION',
    RUNTIME_GRPC_CANCELLED: 'RUNTIME_GRPC_CANCELLED',
    RUNTIME_GRPC_PERMISSION_DENIED: 'RUNTIME_GRPC_PERMISSION_DENIED',
    RUNTIME_MOD_REGISTER_FAILED: 'RUNTIME_MOD_REGISTER_FAILED',
    RUNTIME_ROUTE_CAPABILITY_MISSING: 'RUNTIME_ROUTE_CAPABILITY_MISSING',
    RUNTIME_ROUTE_DEGRADED: 'RUNTIME_ROUTE_DEGRADED',
    RUNTIME_ROUTE_HEALTHY: 'RUNTIME_ROUTE_HEALTHY',
    RUNTIME_ROUTE_MODEL_MISSING: 'RUNTIME_ROUTE_MODEL_MISSING',
    RUNTIME_ROUTE_UNAVAILABLE: 'RUNTIME_ROUTE_UNAVAILABLE',
    AUTH_DENIED: 'AUTH_DENIED',
    AUTH_REVOCATION_UNAVAILABLE: 'AUTH_REVOCATION_UNAVAILABLE',
    AUTH_TOKEN_EXPIRED: 'AUTH_TOKEN_EXPIRED',
    AUTH_TOKEN_INVALID: 'AUTH_TOKEN_INVALID',
    AUTH_UNSUPPORTED_PROOF_TYPE: 'AUTH_UNSUPPORTED_PROOF_TYPE',
    REALM_CONFLICT: 'REALM_CONFLICT',
    REALM_NOT_FOUND: 'REALM_NOT_FOUND',
    REALM_RATE_LIMITED: 'REALM_RATE_LIMITED',
    REALM_UNAVAILABLE: 'REALM_UNAVAILABLE',
    RUNTIME_UNAVAILABLE: 'RUNTIME_UNAVAILABLE',
    RUNTIME_UNSPECIFIED_ERROR: 'RUNTIME_UNSPECIFIED_ERROR',
    SANDBOX_CAPABILITY_DENIED: 'SANDBOX_CAPABILITY_DENIED',
    SANDBOX_CAPABILITY_GRANTED: 'SANDBOX_CAPABILITY_GRANTED',
    SANDBOX_CAPABILITY_PATTERN_MATCH: 'SANDBOX_CAPABILITY_PATTERN_MATCH',
    SANDBOX_PROFILE_INACTIVE: 'SANDBOX_PROFILE_INACTIVE',
    SANDBOX_PROFILE_NOT_FOUND: 'SANDBOX_PROFILE_NOT_FOUND',
    SANDBOX_WILDCARD_GRANT: 'SANDBOX_WILDCARD_GRANT',
    SDK_AI_PROVIDER_BASE64_UNAVAILABLE: 'SDK_AI_PROVIDER_BASE64_UNAVAILABLE',
    SDK_AI_PROVIDER_CONFIG_INVALID: 'SDK_AI_PROVIDER_CONFIG_INVALID',
    SDK_AI_PROVIDER_RUNTIME_REQUIRED: 'SDK_AI_PROVIDER_RUNTIME_REQUIRED',
    SDK_AI_PROVIDER_SUBJECT_USER_ID_REQUIRED: 'SDK_AI_PROVIDER_SUBJECT_USER_ID_REQUIRED',
    SDK_APP_ID_REQUIRED: 'SDK_APP_ID_REQUIRED',
    SDK_AUTH_MODE_INVALID: 'SDK_AUTH_MODE_INVALID',
    SDK_MOD_HOST_MISSING: 'SDK_MOD_HOST_MISSING',
    SDK_PLATFORM_CLIENT_NOT_READY: 'SDK_PLATFORM_CLIENT_NOT_READY',
    SDK_REALM_CONFIG_INVALID: 'SDK_REALM_CONFIG_INVALID',
    SDK_REALM_ENDPOINT_REQUIRED: 'SDK_REALM_ENDPOINT_REQUIRED',
    SDK_REALM_TOKEN_REQUIRED: 'SDK_REALM_TOKEN_REQUIRED',
    SDK_RUNTIME_AI_CREDENTIAL_MISSING: 'SDK_RUNTIME_AI_CREDENTIAL_MISSING',
    SDK_RUNTIME_AI_CREDENTIAL_SCOPE_FORBIDDEN: 'SDK_RUNTIME_AI_CREDENTIAL_SCOPE_FORBIDDEN',
    SDK_RUNTIME_AI_CREDENTIAL_SOURCE_INVALID: 'SDK_RUNTIME_AI_CREDENTIAL_SOURCE_INVALID',
    SDK_RUNTIME_AI_ROUTE_POLICY_REQUIRED: 'SDK_RUNTIME_AI_ROUTE_POLICY_REQUIRED',
    SDK_RUNTIME_APP_AUTH_APP_ID_REQUIRED: 'SDK_RUNTIME_APP_AUTH_APP_ID_REQUIRED',
    SDK_RUNTIME_APP_AUTH_CONSENT_ID_REQUIRED: 'SDK_RUNTIME_APP_AUTH_CONSENT_ID_REQUIRED',
    SDK_RUNTIME_APP_AUTH_CONSENT_VERSION_REQUIRED: 'SDK_RUNTIME_APP_AUTH_CONSENT_VERSION_REQUIRED',
    SDK_RUNTIME_APP_AUTH_CUSTOM_DELEGATE_REQUIRED: 'SDK_RUNTIME_APP_AUTH_CUSTOM_DELEGATE_REQUIRED',
    SDK_RUNTIME_APP_AUTH_CUSTOM_SCOPES_REQUIRED: 'SDK_RUNTIME_APP_AUTH_CUSTOM_SCOPES_REQUIRED',
    SDK_RUNTIME_APP_AUTH_CUSTOM_TTL_REQUIRED: 'SDK_RUNTIME_APP_AUTH_CUSTOM_TTL_REQUIRED',
    SDK_RUNTIME_APP_AUTH_DECISION_AT_REQUIRED: 'SDK_RUNTIME_APP_AUTH_DECISION_AT_REQUIRED',
    SDK_RUNTIME_APP_AUTH_DOMAIN_REQUIRED: 'SDK_RUNTIME_APP_AUTH_DOMAIN_REQUIRED',
    SDK_RUNTIME_APP_AUTH_EXTERNAL_PRINCIPAL_ID_REQUIRED: 'SDK_RUNTIME_APP_AUTH_EXTERNAL_PRINCIPAL_ID_REQUIRED',
    SDK_RUNTIME_APP_AUTH_EXTERNAL_PRINCIPAL_TYPE_REQUIRED: 'SDK_RUNTIME_APP_AUTH_EXTERNAL_PRINCIPAL_TYPE_REQUIRED',
    SDK_RUNTIME_APP_AUTH_POLICY_MODE_REQUIRED: 'SDK_RUNTIME_APP_AUTH_POLICY_MODE_REQUIRED',
    SDK_RUNTIME_APP_AUTH_POLICY_VERSION_REQUIRED: 'SDK_RUNTIME_APP_AUTH_POLICY_VERSION_REQUIRED',
    SDK_RUNTIME_APP_AUTH_PRESET_REQUIRED: 'SDK_RUNTIME_APP_AUTH_PRESET_REQUIRED',
    SDK_RUNTIME_APP_AUTH_SCOPE_CATALOG_VERSION_REQUIRED: 'SDK_RUNTIME_APP_AUTH_SCOPE_CATALOG_VERSION_REQUIRED',
    SDK_RUNTIME_APP_AUTH_SUBJECT_USER_ID_REQUIRED: 'SDK_RUNTIME_APP_AUTH_SUBJECT_USER_ID_REQUIRED',
    SDK_RUNTIME_APP_LIFECYCLE_APP_ID_REQUIRED: 'SDK_RUNTIME_APP_LIFECYCLE_APP_ID_REQUIRED',
    SDK_RUNTIME_APP_LIFECYCLE_JOB_ID_REQUIRED: 'SDK_RUNTIME_APP_LIFECYCLE_JOB_ID_REQUIRED',
    SDK_RUNTIME_APP_LIFECYCLE_REPAIR_ACTION_INVALID: 'SDK_RUNTIME_APP_LIFECYCLE_REPAIR_ACTION_INVALID',
    SDK_RUNTIME_APP_LIFECYCLE_SCOPE_REF_REQUIRED: 'SDK_RUNTIME_APP_LIFECYCLE_SCOPE_REF_REQUIRED',
    SDK_APP_AI_CONFIG_SCOPE_INVALID: 'SDK_APP_AI_CONFIG_SCOPE_INVALID',
    SDK_APP_AI_CONFIG_INIT_PROFILE_UNRESOLVED: 'SDK_APP_AI_CONFIG_INIT_PROFILE_UNRESOLVED',
    SDK_APP_AI_CONFIG_INIT_APPLY_FAILED: 'SDK_APP_AI_CONFIG_INIT_APPLY_FAILED',
    SDK_RUNTIME_CONNECTOR_API_KEY_REQUIRED: 'SDK_RUNTIME_CONNECTOR_API_KEY_REQUIRED',
    SDK_RUNTIME_CONNECTOR_UPDATE_EMPTY: 'SDK_RUNTIME_CONNECTOR_UPDATE_EMPTY',
    SDK_RUNTIME_METHOD_UNAVAILABLE: 'SDK_RUNTIME_METHOD_UNAVAILABLE',
    SDK_RUNTIME_VERSION_INCOMPATIBLE: 'SDK_RUNTIME_VERSION_INCOMPATIBLE',
    SDK_SCOPE_CATALOG_INVALID: 'SDK_SCOPE_CATALOG_INVALID',
    SDK_SCOPE_CATALOG_VERSION_CONFLICT: 'SDK_SCOPE_CATALOG_VERSION_CONFLICT',
    SDK_TRANSPORT_INVALID: 'SDK_TRANSPORT_INVALID',
    SDK_RUNTIME_BASE64_DECODER_UNAVAILABLE: 'SDK_RUNTIME_BASE64_DECODER_UNAVAILABLE',
    SDK_RUNTIME_BASE64_ENCODER_UNAVAILABLE: 'SDK_RUNTIME_BASE64_ENCODER_UNAVAILABLE',
    SDK_RUNTIME_CODEC_MISSING: 'SDK_RUNTIME_CODEC_MISSING',
    SDK_RUNTIME_NODE_GRPC_EMPTY_RESPONSE: 'SDK_RUNTIME_NODE_GRPC_EMPTY_RESPONSE',
    SDK_RUNTIME_NODE_GRPC_ENDPOINT_REQUIRED: 'SDK_RUNTIME_NODE_GRPC_ENDPOINT_REQUIRED',
    SDK_RUNTIME_NODE_GRPC_STREAM_CLOSE_FAILED: 'SDK_RUNTIME_NODE_GRPC_STREAM_CLOSE_FAILED',
    SDK_RUNTIME_NODE_GRPC_STREAM_OPEN_FAILED: 'SDK_RUNTIME_NODE_GRPC_STREAM_OPEN_FAILED',
    SDK_RUNTIME_NODE_GRPC_UNARY_FAILED: 'SDK_RUNTIME_NODE_GRPC_UNARY_FAILED',
    SDK_RUNTIME_REQUEST_BYTES_REQUIRED: 'SDK_RUNTIME_REQUEST_BYTES_REQUIRED',
    SDK_RUNTIME_REQUEST_ENCODE_FAILED: 'SDK_RUNTIME_REQUEST_ENCODE_FAILED',
    SDK_RUNTIME_RESPONSE_DECODE_FAILED: 'SDK_RUNTIME_RESPONSE_DECODE_FAILED',
    SDK_RUNTIME_STREAM_DECODE_FAILED: 'SDK_RUNTIME_STREAM_DECODE_FAILED',
    SDK_RUNTIME_TAURI_INVOKE_MISSING: 'SDK_RUNTIME_TAURI_INVOKE_MISSING',
    SDK_RUNTIME_TAURI_LISTEN_MISSING: 'SDK_RUNTIME_TAURI_LISTEN_MISSING',
    SDK_RUNTIME_TAURI_STREAM_CLOSE_FAILED: 'SDK_RUNTIME_TAURI_STREAM_CLOSE_FAILED',
    SDK_RUNTIME_TAURI_STREAM_FAILED: 'SDK_RUNTIME_TAURI_STREAM_FAILED',
    SDK_RUNTIME_TAURI_STREAM_ID_MISSING: 'SDK_RUNTIME_TAURI_STREAM_ID_MISSING',
    SDK_RUNTIME_TAURI_STREAM_OPEN_FAILED: 'SDK_RUNTIME_TAURI_STREAM_OPEN_FAILED',
    SDK_RUNTIME_TAURI_STREAM_REMOTE_ERROR: 'SDK_RUNTIME_TAURI_STREAM_REMOTE_ERROR',
    SDK_RUNTIME_TAURI_UNARY_BYTES_MISSING: 'SDK_RUNTIME_TAURI_UNARY_BYTES_MISSING',
    SDK_RUNTIME_TAURI_UNARY_FAILED: 'SDK_RUNTIME_TAURI_UNARY_FAILED',
    SDK_TARGET_REQUIRED: 'SDK_TARGET_REQUIRED',
    SESSION_EXPIRED: 'SESSION_EXPIRED',
    SOCIAL_PRECONDITION_FAILED: 'SOCIAL_PRECONDITION_FAILED',
    SOURCE_DEFAULTED: 'SOURCE_DEFAULTED',
    STATE_DISABLED: 'STATE_DISABLED',
    STATE_ENABLED: 'STATE_ENABLED',
    STATE_UNINSTALLED: 'STATE_UNINSTALLED',
    SUBJECT_ACCOUNT_MISMATCH: 'SUBJECT_ACCOUNT_MISMATCH',
    TRANSITION_INITIAL: 'TRANSITION_INITIAL',
    TRANSITION_VALID: 'TRANSITION_VALID',
    WF_DAG_INVALID: 'WF_DAG_INVALID',
    WF_NODE_CONFIG_MISMATCH: 'WF_NODE_CONFIG_MISMATCH',
    WF_TASK_NOT_FOUND: 'WF_TASK_NOT_FOUND',
    WF_TIMEOUT: 'WF_TIMEOUT',
    WORLD_STUDIO_CONNECTOR_MISSING: 'WORLD_STUDIO_CONNECTOR_MISSING',
    WORLD_STUDIO_EMBEDDING_BUILDING: 'WORLD_STUDIO_EMBEDDING_BUILDING',
    WORLD_STUDIO_EMBEDDING_BUILD_FAILED: 'WORLD_STUDIO_EMBEDDING_BUILD_FAILED',
    WORLD_STUDIO_EMBEDDING_NOT_BUILT: 'WORLD_STUDIO_EMBEDDING_NOT_BUILT',
    WORLD_STUDIO_EMBEDDING_NOT_REQUIRED: 'WORLD_STUDIO_EMBEDDING_NOT_REQUIRED',
    WORLD_STUDIO_EMBEDDING_READY: 'WORLD_STUDIO_EMBEDDING_READY',
    WORLD_STUDIO_EMBEDDING_ROUTE_UNREADY: 'WORLD_STUDIO_EMBEDDING_ROUTE_UNREADY',
    WORLD_STUDIO_LOCAL_MODEL_MISSING: 'WORLD_STUDIO_LOCAL_MODEL_MISSING',
    WORLD_STUDIO_LOCAL_MODEL_UNAVAILABLE: 'WORLD_STUDIO_LOCAL_MODEL_UNAVAILABLE',
    WORLD_STUDIO_LOCAL_MODEL_UNHEALTHY: 'WORLD_STUDIO_LOCAL_MODEL_UNHEALTHY',
    WORLD_STUDIO_ROUTE_BINDING_MISSING: 'WORLD_STUDIO_ROUTE_BINDING_MISSING',
    WORLD_STUDIO_ROUTE_READY: 'WORLD_STUDIO_ROUTE_READY',
    WORLD_STUDIO_TOKEN_MODEL_UNAVAILABLE: 'WORLD_STUDIO_TOKEN_MODEL_UNAVAILABLE',
    WORLD_STUDIO_TOKEN_ROUTE_INCOMPLETE: 'WORLD_STUDIO_TOKEN_ROUTE_INCOMPLETE',
};
const RETRYABLE_REASON_CODES = new Set([
    ReasonCode.AI_PROVIDER_RATE_LIMITED,
    ReasonCode.AI_PROVIDER_UNAVAILABLE,
    ReasonCode.AI_PROVIDER_TIMEOUT,
    ReasonCode.AI_STREAM_BROKEN,
    ReasonCode.AUTH_REVOCATION_UNAVAILABLE,
    ReasonCode.SESSION_EXPIRED,
    ReasonCode.RUNTIME_UNAVAILABLE,
    ReasonCode.RUNTIME_BRIDGE_DAEMON_UNAVAILABLE,
]);
export function isRetryableReasonCode(code) {
    return RETRYABLE_REASON_CODES.has(code);
}
//# sourceMappingURL=index.js.map