New:Socket for Asana Is Now Available.Learn more
Get Started

pulse-shared-types

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

pulse-shared-types

Shared types, schemas, and constants for the Pulse control plane

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

pulse-shared-types

Shared types, Zod schemas, and constants for the Pulse control plane.

Install

npm install pulse-shared-types

What's included

  • Protocol schemas — Zod-validated message types for WebSocket communication (upstream/downstream)
  • State schemasServiceState, MasterStatus, AgentStatus, TaskSummary, GitStatus
  • Config schemasServiceConfig, GatewayConfig, CloudConfig
  • RBAC — Role definitions (owner, admin, developer, viewer) with permission checking
  • Constants — Default ports, intervals, WebSocket close codes, status enums
  • ErrorsPulseError class with typed error codes

Usage

import {
  ServiceStateSchema,
  type ServiceState,
  AGENT_STATUS,
  hasPermission,
} from 'pulse-shared-types'

// Validate incoming state
const state = ServiceStateSchema.parse(rawData)

// Check permissions
if (hasPermission('developer', 'directive:send')) {
  // allowed
}

ESM only

This package is ESM-only ("type": "module"). Requires Node.js 18+.

License

MIT

Keywords

pulse

FAQs

Package last updated on 17 Mar 2026

Related posts