{"_id":"@astralibx/chat-types","_rev":"5-33988060c49d6ece3a8d0420b63405f1","name":"@astralibx/chat-types","dist-tags":{"latest":"0.4.0"},"versions":{"0.1.1":{"name":"@astralibx/chat-types","version":"0.1.1","keywords":["chat","types","websocket","events","contracts"],"license":"MIT","_id":"@astralibx/chat-types@0.1.1","maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"homepage":"https://github.com/Hariprakash1997/astralib#readme","bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"dist":{"shasum":"6a55bf0a398efb6f41f794e3cb0434bcb7f2fe77","tarball":"https://registry.npmjs.org/@astralibx/chat-types/-/chat-types-0.1.1.tgz","fileCount":8,"integrity":"sha512-w/FC7ioDLEK5RjqSvr1vGmIHaxT1qZHQ+o2ZnlnqsUpRVfIE5JoUN2X3Fzv60HgS+RRigMqv9J4mI4W2CGTbpw==","signatures":[{"sig":"MEUCIQD71z7XxTUDPP0Dc90wkaflUpKfhfwCYGUR9uMSbYF6YgIgG5atRLcwL+t+EPX5mAN+cq5V6vqMUAlTU9dTzceQzsw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51901},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}}},"gitHead":"df956e4b9f30b71fc0ee0eba6b811eee2092bf52","scripts":{"dev":"tsup --watch","lint":"eslint src/","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"astralib","email":"1997hariprakash@gmail.com"},"repository":{"url":"git+https://github.com/Hariprakash1997/astralib.git","type":"git","directory":"packages/chat/chat-types"},"_npmVersion":"10.9.4","description":"Shared TypeScript type definitions, enums, and event contracts for the chat ecosystem","directories":{},"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.0.0","typescript":"^5.8.2","@vitest/coverage-v8":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-types_0.1.1_1773730922746_0.09923055201925779","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@astralibx/chat-types","version":"0.1.2","keywords":["chat","types","websocket","events","contracts"],"license":"MIT","_id":"@astralibx/chat-types@0.1.2","maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"homepage":"https://github.com/Hariprakash1997/astralib#readme","bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"dist":{"shasum":"7cee219e0976cee79afb3119727943c27eb21a86","tarball":"https://registry.npmjs.org/@astralibx/chat-types/-/chat-types-0.1.2.tgz","fileCount":8,"integrity":"sha512-Wo4BgjHS/TChjNSvRnYJYfTaKkmZCUHtYtv7ZiLayMmc6VdAu9Y4PVBrCOzRr6CXC8cMORLBfHlKJB4ezaPNBw==","signatures":[{"sig":"MEUCIQCXdeMQ5Qgmom816oZJI9ljF22lDTe/p4lyR3IwkzD2oQIgSldM/4CBN1cm0mF97VIeHWnA7r//Zdq5DjizKSktZoo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":52528},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}}},"gitHead":"fd42f0db8c9fd08982aee61f94304819cd425d54","scripts":{"dev":"tsup --watch","lint":"eslint src/","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"astralib","email":"1997hariprakash@gmail.com"},"repository":{"url":"git+https://github.com/Hariprakash1997/astralib.git","type":"git","directory":"packages/chat/chat-types"},"_npmVersion":"10.9.4","description":"Shared TypeScript type definitions, enums, and event contracts for the chat ecosystem","directories":{},"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.0.0","typescript":"^5.8.2","@vitest/coverage-v8":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-types_0.1.2_1773733706329_0.3833539620997044","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@astralibx/chat-types","version":"0.2.0","keywords":["chat","types","websocket","events","contracts"],"license":"MIT","_id":"@astralibx/chat-types@0.2.0","maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"homepage":"https://github.com/Hariprakash1997/astralib#readme","bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"dist":{"shasum":"0d6dd7b7779e6b6e37c69b48a11f576692de58ca","tarball":"https://registry.npmjs.org/@astralibx/chat-types/-/chat-types-0.2.0.tgz","fileCount":8,"integrity":"sha512-SpM8V+9YW7rlhIp4mIWxUjYD9MRJfaLy5Layf4crwpvHnqAVJJzj3BDQ7eEtkEOa7jbODJP6uyoyfNtzrHQP+g==","signatures":[{"sig":"MEUCIQCc+VpZKAr3Ry2tWw32YQMKj3rIqIq765yYlNUDHmmFAQIgJAyDDwDDTuhgKclrRc/ON9yGXgmZB3jKnKitbPl0poA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60526},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}}},"gitHead":"b96fb6e63feccf19591d627ddda0c3d04f165ad2","scripts":{"dev":"tsup --watch","lint":"eslint src/","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"astralib","email":"1997hariprakash@gmail.com"},"repository":{"url":"git+https://github.com/Hariprakash1997/astralib.git","type":"git","directory":"packages/chat/chat-types"},"_npmVersion":"10.9.4","description":"Shared TypeScript type definitions, enums, and event contracts for the chat ecosystem","directories":{},"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.0.0","typescript":"^5.8.2","@vitest/coverage-v8":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-types_0.2.0_1773814059997_0.6732947867782042","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@astralibx/chat-types","version":"0.3.0","keywords":["chat","types","websocket","events","contracts"],"license":"MIT","_id":"@astralibx/chat-types@0.3.0","maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"homepage":"https://github.com/Hariprakash1997/astralib#readme","bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"dist":{"shasum":"d4e4e383dc0a1c136771d455d1fb0853eaf0ba9e","tarball":"https://registry.npmjs.org/@astralibx/chat-types/-/chat-types-0.3.0.tgz","fileCount":8,"integrity":"sha512-kerHP3UaJXBVAN8TIcGSTEyApsWDOpON/4Wk2tpncRT/QozcMBJBID2/qyKhOr9ishJZIUIaFfKTrYuQBpNkzA==","signatures":[{"sig":"MEYCIQDx24oUdgWSsJrQcufCY2fKdPUJpXhEL5uq/Ro59EJv7gIhAM6sFk4MK2GBx9lvROCuGvw2srj0u61OtOEJTiAsZyRl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65692},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}}},"gitHead":"ae1365ff1004be6b7ef07ac5ca5a5d6d8d9a6fa6","scripts":{"dev":"tsup --watch","lint":"eslint src/","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"astralib","email":"1997hariprakash@gmail.com"},"repository":{"url":"git+https://github.com/Hariprakash1997/astralib.git","type":"git","directory":"packages/chat/chat-types"},"_npmVersion":"10.9.4","description":"Shared TypeScript type definitions, enums, and event contracts for the chat ecosystem","directories":{},"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.0.0","typescript":"^5.8.2","@vitest/coverage-v8":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-types_0.3.0_1773917001117_0.7212604918792875","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@astralibx/chat-types","version":"0.4.0","description":"Shared TypeScript type definitions, enums, and event contracts for the chat ecosystem","repository":{"type":"git","url":"git+https://github.com/Hariprakash1997/astralib.git","directory":"packages/chat/chat-types"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}}},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","lint":"eslint src/","clean":"rm -rf dist"},"keywords":["chat","types","websocket","events","contracts"],"license":"MIT","devDependencies":{"@vitest/coverage-v8":"^3.0.0","tsup":"^8.0.0","typescript":"^5.8.2","vitest":"^3.0.0"},"_id":"@astralibx/chat-types@0.4.0","gitHead":"4d2a55b3968e55f083d4a957eb2319acb1fa5ba3","bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"homepage":"https://github.com/Hariprakash1997/astralib#readme","_nodeVersion":"22.22.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-rq6gwlw2/mE2PYBGENgHHEyMpLHoXZtKwXUGm0ctncPL1tdqLa34kQJCq9GPIXxrZpWXUtSV4HpeFykn+Z0qyw==","shasum":"c220c579f4a570d51ee40288cf318b3b5128b2d2","tarball":"https://registry.npmjs.org/@astralibx/chat-types/-/chat-types-0.4.0.tgz","fileCount":8,"unpackedSize":68792,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBjylfExT7nJmVsgug8ZMGTABfWQNYNHBnIgqXhh8RMsAiEA5ajS8M8/N72FaYsRrpObmY+13J7d7rDpX6k79r4nxso="}]},"_npmUser":{"name":"astralib","email":"1997hariprakash@gmail.com"},"directories":{},"maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chat-types_0.4.0_1773998150976_0.27088511457033215"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-17T07:02:02.680Z","modified":"2026-03-20T09:15:51.248Z","0.1.1":"2026-03-17T07:02:02.935Z","0.1.2":"2026-03-17T07:48:26.505Z","0.2.0":"2026-03-18T06:07:40.142Z","0.3.0":"2026-03-19T10:43:21.243Z","0.4.0":"2026-03-20T09:15:51.109Z"},"bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"license":"MIT","homepage":"https://github.com/Hariprakash1997/astralib#readme","keywords":["chat","types","websocket","events","contracts"],"repository":{"type":"git","url":"git+https://github.com/Hariprakash1997/astralib.git","directory":"packages/chat/chat-types"},"description":"Shared TypeScript type definitions, enums, and event contracts for the chat ecosystem","maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"readme":"# @astralibx/chat-types\n\n[![npm version](https://img.shields.io/npm/v/@astralibx/chat-types.svg)](https://www.npmjs.com/package/@astralibx/chat-types)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nShared TypeScript type definitions, enums, and socket event contracts for the astralib chat ecosystem. This is a pure types package with zero runtime dependencies.\n\n## Install\n\n```bash\nnpm install @astralibx/chat-types\n```\n\n## Quick Start\n\n```ts\nimport {\n  ChatSessionStatus,\n  ChatSenderType,\n  ChatContentType,\n  ChatMessageStatus,\n  SessionMode,\n  AgentStatus,\n  VisitorEvent,\n  ServerToVisitorEvent,\n  AgentEvent,\n  ServerToAgentEvent,\n} from '@astralibx/chat-types';\n\nimport type {\n  ChatMessage,\n  ChatSessionSummary,\n  ChatAgentInfo,\n  ChatWidgetConfig,\n  ConnectPayload,\n  ConnectedPayload,\n  AiResponseInput,\n  AiResponseOutput,\n} from '@astralibx/chat-types';\n```\n\n## Features\n\n- **Enums** -- Session status, sender type, content type, message status, session mode, agent status. [Details](https://github.com/Hariprakash1997/astralib/blob/main/packages/chat/chat-types/docs/types.md#enums)\n- **Socket event constants** -- Typed `as const` objects for all visitor-server and agent-server event channels. [Details](https://github.com/Hariprakash1997/astralib/blob/main/packages/chat/chat-types/docs/types.md#event-constants)\n- **Message types** -- `ChatMessage`, `MessagePayload`, `MessageReceivedPayload`, `MessageStatusPayload`. [Details](https://github.com/Hariprakash1997/astralib/blob/main/packages/chat/chat-types/docs/types.md#message-types)\n- **Session types** -- `ChatSessionSummary`, `VisitorContext`, `ChatUserInfo`, `SessionStats`, `ChatFeedback`. [Details](https://github.com/Hariprakash1997/astralib/blob/main/packages/chat/chat-types/docs/types.md#session-types)\n- **Agent types** -- `ChatAgentInfo`, `AgentIdentity`, `DashboardStats`. [Details](https://github.com/Hariprakash1997/astralib/blob/main/packages/chat/chat-types/docs/types.md#agent-types)\n- **Event payload types** -- 13 payload interfaces for all socket events (connect, typing, status, transfer, escalate, feedback, etc.). [Details](https://github.com/Hariprakash1997/astralib/blob/main/packages/chat/chat-types/docs/types.md#event-payload-types)\n- **Config types** -- Widget configuration, features, branding, offline mode, post-chat surveys, translations. [Details](https://github.com/Hariprakash1997/astralib/blob/main/packages/chat/chat-types/docs/types.md#config-types)\n- **Flow types** -- Pre-chat flow configuration with 6 step types: welcome, FAQ, guided questions, form, agent selector, custom HTML. [Details](https://github.com/Hariprakash1997/astralib/blob/main/packages/chat/chat-types/docs/types.md#flow-types)\n- **Adapter types** -- Contracts for agent assignment, AI response, visitor identity, event tracking, metrics, and error context. [Details](https://github.com/Hariprakash1997/astralib/blob/main/packages/chat/chat-types/docs/types.md#adapter-types)\n\n## Reference\n\n[Types](https://github.com/Hariprakash1997/astralib/blob/main/packages/chat/chat-types/docs/types.md) -- Full type, enum, and constant reference\n\n## Links\n\n- [Source](https://github.com/Hariprakash1997/astralib/tree/main/packages/chat/chat-types)\n- [Repository](https://github.com/Hariprakash1997/astralib)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}