@lemoncloud/chatic-sockets-lib 0.2.0 → 0.2.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.
Files changed (35) hide show
  1. package/dist/client-socket-v2/create-client-socket-v2.js +5 -0
  2. package/dist/client-socket-v2/gateways/auth-gateway.d.ts +6 -0
  3. package/dist/client-socket-v2/gateways/auth-gateway.js +11 -0
  4. package/dist/client-socket-v2/gateways/channel-gateway.d.ts +38 -0
  5. package/dist/client-socket-v2/gateways/channel-gateway.js +24 -0
  6. package/dist/client-socket-v2/gateways/chat-gateway.d.ts +22 -0
  7. package/dist/client-socket-v2/gateways/chat-gateway.js +16 -0
  8. package/dist/client-socket-v2/gateways/cloud-gateway.d.ts +12 -0
  9. package/dist/client-socket-v2/gateways/cloud-gateway.js +11 -0
  10. package/dist/client-socket-v2/gateways/user-gateway.d.ts +26 -0
  11. package/dist/client-socket-v2/gateways/user-gateway.js +18 -0
  12. package/dist/client-socket-v2/index.d.ts +8 -0
  13. package/dist/client-socket-v2/index.js +7 -0
  14. package/dist/client-socket-v2/socket-transport.d.ts +14 -4
  15. package/dist/client-socket-v2/socket-transport.js +58 -60
  16. package/dist/client-socket-v2/types.d.ts +16 -7
  17. package/dist/lib/channel/types.d.ts +175 -0
  18. package/dist/lib/channel/types.js +2 -0
  19. package/dist/lib/chat/types.d.ts +79 -0
  20. package/dist/lib/chat/types.js +2 -0
  21. package/dist/lib/cloud/types.d.ts +18 -0
  22. package/dist/lib/cloud/types.js +2 -0
  23. package/dist/lib/device/types.d.ts +1 -0
  24. package/dist/lib/socket-actions.d.ts +239 -0
  25. package/dist/lib/socket-actions.js +167 -0
  26. package/dist/lib/socket-inputs.d.ts +13 -0
  27. package/dist/lib/socket-inputs.js +8 -0
  28. package/dist/lib/sockets/types.d.ts +27 -0
  29. package/dist/lib/sockets/types.js +17 -0
  30. package/dist/lib/types.d.ts +2 -0
  31. package/dist/lib/user/types.d.ts +102 -0
  32. package/dist/lib/user/types.js +2 -0
  33. package/dist/modules/chat/types.d.ts +65 -0
  34. package/dist/modules/chat/types.js +55 -0
  35. package/package.json +1 -1
@@ -0,0 +1,175 @@
1
+ import type { InferSocketRequest, SocketRequestMessage } from '../types';
2
+ import type { ChannelStereo } from '../../modules/chat/types';
3
+ export interface ChannelCreateRequestData {
4
+ stereo: ChannelStereo;
5
+ name?: string;
6
+ }
7
+ export interface ChannelByIdRequestData {
8
+ channelId: string;
9
+ }
10
+ export interface ChannelLeaveRequestData {
11
+ channelId: string;
12
+ userId?: string;
13
+ }
14
+ export interface ChannelMineRequestData {
15
+ page?: number;
16
+ limit?: number;
17
+ detail?: boolean;
18
+ hasSite?: boolean;
19
+ }
20
+ export interface ChannelUpdateRequestData {
21
+ channelId: string;
22
+ name?: string;
23
+ desc?: string;
24
+ thumbnail?: string;
25
+ }
26
+ export interface ChannelInviteRequestData {
27
+ channelId: string;
28
+ userIds: string[];
29
+ }
30
+ export interface ChannelListUserRequestData {
31
+ channelId: string;
32
+ limit?: number;
33
+ page?: number;
34
+ detail?: boolean;
35
+ }
36
+ export interface ChannelUpdateJoinRequestData {
37
+ channelId: string;
38
+ joinId?: string;
39
+ nick?: string;
40
+ notify?: '' | 'all' | 'mention' | 'none';
41
+ }
42
+ export interface ChannelSyncRequestData {
43
+ since?: number;
44
+ }
45
+ export interface ChannelSyncUsersRequestData {
46
+ channelId: string;
47
+ since?: number;
48
+ }
49
+ declare module '../types' {
50
+ interface SocketPacketRegistry {
51
+ 'channel.create': {
52
+ request: ChannelCreateRequestData;
53
+ response: unknown;
54
+ error: null;
55
+ };
56
+ 'channel.join': {
57
+ request: ChannelByIdRequestData;
58
+ response: unknown;
59
+ error: null;
60
+ };
61
+ 'channel.leave': {
62
+ request: ChannelLeaveRequestData;
63
+ response: unknown;
64
+ error: null;
65
+ };
66
+ 'channel.get-self': {
67
+ request: Record<string, never>;
68
+ response: unknown;
69
+ error: null;
70
+ };
71
+ 'channel.mine': {
72
+ request: ChannelMineRequestData;
73
+ response: unknown;
74
+ error: null;
75
+ };
76
+ 'channel.list-user': {
77
+ request: ChannelListUserRequestData;
78
+ response: unknown;
79
+ error: null;
80
+ };
81
+ 'channel.invite': {
82
+ request: ChannelInviteRequestData;
83
+ response: unknown;
84
+ error: null;
85
+ };
86
+ 'channel.update': {
87
+ request: ChannelUpdateRequestData;
88
+ response: unknown;
89
+ error: null;
90
+ };
91
+ 'channel.update-join': {
92
+ request: ChannelUpdateJoinRequestData;
93
+ response: unknown;
94
+ error: null;
95
+ };
96
+ 'channel.delete': {
97
+ request: ChannelByIdRequestData;
98
+ response: unknown;
99
+ error: null;
100
+ };
101
+ 'channel.sync': {
102
+ request: ChannelSyncRequestData;
103
+ response: unknown;
104
+ error: null;
105
+ };
106
+ 'channel.sync-users': {
107
+ request: ChannelSyncUsersRequestData;
108
+ response: unknown;
109
+ error: null;
110
+ };
111
+ 'channel.sync-site-profile': {
112
+ request: ChannelSyncRequestData;
113
+ response: unknown;
114
+ error: null;
115
+ };
116
+ 'channel.unreads': {
117
+ request: Record<string, never>;
118
+ response: unknown;
119
+ error: null;
120
+ };
121
+ }
122
+ }
123
+ export declare type ChannelCreateType = 'channel.create';
124
+ export declare type ChannelCreateInput = InferSocketRequest<ChannelCreateType>;
125
+ export declare type ChannelCreateRequestMessage = SocketRequestMessage<ChannelCreateType>;
126
+ export declare type ChannelJoinType = 'channel.join';
127
+ export declare type ChannelJoinInput = InferSocketRequest<ChannelJoinType>;
128
+ export declare type ChannelJoinRequestMessage = SocketRequestMessage<ChannelJoinType>;
129
+ export declare type ChannelLeaveType = 'channel.leave';
130
+ export declare type ChannelLeaveInput = InferSocketRequest<ChannelLeaveType>;
131
+ export declare type ChannelLeaveRequestMessage = SocketRequestMessage<ChannelLeaveType>;
132
+ export declare type ChannelGetSelfType = 'channel.get-self';
133
+ export declare type ChannelGetSelfInput = InferSocketRequest<ChannelGetSelfType>;
134
+ export declare type ChannelGetSelfRequestMessage = SocketRequestMessage<ChannelGetSelfType>;
135
+ export declare type ChannelMineType = 'channel.mine';
136
+ export declare type ChannelMineInput = InferSocketRequest<ChannelMineType>;
137
+ export declare type ChannelListMyInput = ChannelMineInput;
138
+ export declare type ChannelMineRequestMessage = SocketRequestMessage<ChannelMineType>;
139
+ export declare type ChannelListUserType = 'channel.list-user';
140
+ export declare type ChannelListUserInput = InferSocketRequest<ChannelListUserType>;
141
+ export declare type ChannelListUserRequestMessage = SocketRequestMessage<ChannelListUserType>;
142
+ export declare type ChannelInviteType = 'channel.invite';
143
+ export declare type ChannelInviteInput = InferSocketRequest<ChannelInviteType>;
144
+ export declare type ChannelInviteRequestMessage = SocketRequestMessage<ChannelInviteType>;
145
+ export declare type ChannelUpdateType = 'channel.update';
146
+ export declare type ChannelUpdateInput = InferSocketRequest<ChannelUpdateType>;
147
+ export declare type ChannelUpdateRequestMessage = SocketRequestMessage<ChannelUpdateType>;
148
+ export declare type ChannelUpdateJoinType = 'channel.update-join';
149
+ export declare type ChannelUpdateJoinInput = InferSocketRequest<ChannelUpdateJoinType>;
150
+ export declare type JoinUpdateInput = ChannelUpdateJoinInput;
151
+ export declare type ChannelUpdateJoinRequestMessage = SocketRequestMessage<ChannelUpdateJoinType>;
152
+ export declare type ChannelDeleteType = 'channel.delete';
153
+ export declare type ChannelDeleteInput = InferSocketRequest<ChannelDeleteType>;
154
+ export declare type ChannelDeleteRequestMessage = SocketRequestMessage<ChannelDeleteType>;
155
+ export declare type ChannelSyncType = 'channel.sync';
156
+ export declare type ChannelSyncInput = InferSocketRequest<ChannelSyncType>;
157
+ export declare type ChannelSyncRequestMessage = SocketRequestMessage<ChannelSyncType>;
158
+ export declare type ChannelSyncUsersType = 'channel.sync-users';
159
+ export declare type ChannelSyncUsersInput = InferSocketRequest<ChannelSyncUsersType>;
160
+ export declare type ChannelSyncUsersRequestMessage = SocketRequestMessage<ChannelSyncUsersType>;
161
+ export declare type ChannelSyncProfileType = 'channel.sync-site-profile';
162
+ export declare type ChannelSyncProfileInput = InferSocketRequest<ChannelSyncProfileType>;
163
+ export declare type ChannelSyncSiteProfileInput = ChannelSyncProfileInput;
164
+ export declare type ChannelSyncProfileRequestMessage = SocketRequestMessage<ChannelSyncProfileType>;
165
+ export declare type ChannelUnreadsType = 'channel.unreads';
166
+ export declare type ChannelUnreadsInput = InferSocketRequest<ChannelUnreadsType>;
167
+ export declare type ChannelUnreadsRequestMessage = SocketRequestMessage<ChannelUnreadsType>;
168
+ export declare type ChatStartInput = ChannelCreateInput;
169
+ export declare type ChatMineInput = ChannelMineInput;
170
+ export declare type ChatUsersInput = ChannelListUserInput;
171
+ export declare type ChatInviteInput = ChannelInviteInput;
172
+ export declare type ChatLeaveInput = ChannelLeaveInput;
173
+ export declare type ChatUpdateChannelInput = ChannelUpdateInput;
174
+ export declare type ChatUpdateJoinInput = ChannelUpdateJoinInput;
175
+ export declare type ChatDeleteChannelInput = ChannelDeleteInput;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,79 @@
1
+ import type { InferSocketRequest, SocketRequestMessage } from '../types';
2
+ export interface ChatSendRequestData {
3
+ channelId: string;
4
+ content: string;
5
+ contentType?: string;
6
+ parentId?: string;
7
+ }
8
+ export interface ChatReadRequestData {
9
+ channelId: string;
10
+ chatNo: number;
11
+ }
12
+ export interface ChatFeedRequestData {
13
+ channelId: string;
14
+ cursorNo?: number;
15
+ limit?: number;
16
+ }
17
+ export interface ChatUpdateRequestData {
18
+ id: string;
19
+ content?: string;
20
+ contentType?: string;
21
+ }
22
+ export interface ChatDeleteRequestData {
23
+ id: string;
24
+ }
25
+ export interface ChatGetRequestData {
26
+ id: string;
27
+ }
28
+ declare module '../types' {
29
+ interface SocketPacketRegistry {
30
+ 'chat.send': {
31
+ request: ChatSendRequestData;
32
+ response: unknown;
33
+ error: null;
34
+ };
35
+ 'chat.read': {
36
+ request: ChatReadRequestData;
37
+ response: unknown;
38
+ error: null;
39
+ };
40
+ 'chat.feed': {
41
+ request: ChatFeedRequestData;
42
+ response: unknown;
43
+ error: null;
44
+ };
45
+ 'chat.update': {
46
+ request: ChatUpdateRequestData;
47
+ response: unknown;
48
+ error: null;
49
+ };
50
+ 'chat.delete': {
51
+ request: ChatDeleteRequestData;
52
+ response: unknown;
53
+ error: null;
54
+ };
55
+ 'chat.get': {
56
+ request: ChatGetRequestData;
57
+ response: unknown;
58
+ error: null;
59
+ };
60
+ }
61
+ }
62
+ export declare type ChatSendType = 'chat.send';
63
+ export declare type ChatSendInput = InferSocketRequest<ChatSendType>;
64
+ export declare type ChatSendRequestMessage = SocketRequestMessage<ChatSendType>;
65
+ export declare type ChatReadType = 'chat.read';
66
+ export declare type ChatReadInput = InferSocketRequest<ChatReadType>;
67
+ export declare type ChatReadRequestMessage = SocketRequestMessage<ChatReadType>;
68
+ export declare type ChatFeedType = 'chat.feed';
69
+ export declare type ChatFeedInput = InferSocketRequest<ChatFeedType>;
70
+ export declare type ChatFeedRequestMessage = SocketRequestMessage<ChatFeedType>;
71
+ export declare type ChatUpdateType = 'chat.update';
72
+ export declare type ChatUpdateInput = InferSocketRequest<ChatUpdateType>;
73
+ export declare type ChatUpdateRequestMessage = SocketRequestMessage<ChatUpdateType>;
74
+ export declare type ChatDeleteType = 'chat.delete';
75
+ export declare type ChatDeleteInput = InferSocketRequest<ChatDeleteType>;
76
+ export declare type ChatDeleteRequestMessage = SocketRequestMessage<ChatDeleteType>;
77
+ export declare type ChatGetType = 'chat.get';
78
+ export declare type ChatGetInput = InferSocketRequest<ChatGetType>;
79
+ export declare type ChatGetRequestMessage = SocketRequestMessage<ChatGetType>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import type { InferSocketRequest, SocketRequestMessage } from '../types';
2
+ export interface CloudUpdateRequestData {
3
+ cloudId?: string;
4
+ name?: string;
5
+ }
6
+ declare module '../types' {
7
+ interface SocketPacketRegistry {
8
+ 'cloud.update': {
9
+ request: CloudUpdateRequestData;
10
+ response: unknown;
11
+ error: null;
12
+ };
13
+ }
14
+ }
15
+ export declare type CloudUpdateType = 'cloud.update';
16
+ export declare type CloudUpdateInput = InferSocketRequest<CloudUpdateType>;
17
+ export declare type UpdateCloudInput = CloudUpdateInput;
18
+ export declare type CloudUpdateRequestMessage = SocketRequestMessage<CloudUpdateType>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -42,6 +42,7 @@ export declare type DeviceGetType = 'device.read';
42
42
  export declare type DeviceGetResponseData = InferSocketResponse<DeviceGetType>;
43
43
  export declare type DeviceGetErrorData = InferSocketError<DeviceGetType>;
44
44
  export declare type DeviceGetInput = InferSocketRequest<DeviceGetType>;
45
+ export declare type DeviceReadInput = DeviceGetInput;
45
46
  export declare type DeviceGetRequestMessage = SocketRequestMessage<DeviceGetType>;
46
47
  export declare type DeviceGetResponseMessage = SocketResponseMessage<DeviceGetType>;
47
48
  export declare type DeviceGetErrorMessage = SocketErrorMessage<DeviceGetType>;
@@ -0,0 +1,239 @@
1
+ /**
2
+ * `socket-actions.ts`
3
+ * - supported wsv2 socket domain/action lookup table.
4
+ *
5
+ * Keep this file client-safe. It is used as a public type contract and must not
6
+ * import server-side modules.
7
+ */
8
+ /**
9
+ * lookup table
10
+ * - wsv2에서 공개/지원하는 socket action 목록
11
+ */
12
+ export declare const SocketActionTypeLUT: {
13
+ /**
14
+ * DomainType
15
+ * - message domain
16
+ */
17
+ readonly DomainType: {
18
+ readonly '': "";
19
+ /** system - builtin/system messages */
20
+ readonly system: "system";
21
+ /** sockets - socket connection helpers */
22
+ readonly sockets: "sockets";
23
+ /** device - client device state */
24
+ readonly device: "device";
25
+ /** auth - connection authentication */
26
+ readonly auth: "auth";
27
+ /** channel - chat channel operations */
28
+ readonly channel: "channel";
29
+ /** chat - chat message operations */
30
+ readonly chat: "chat";
31
+ /** user - user/site profile operations */
32
+ readonly user: "user";
33
+ /** cloud - cloud profile operations */
34
+ readonly cloud: "cloud";
35
+ };
36
+ /**
37
+ * SystemActionType
38
+ * - system 도메인 액션
39
+ */
40
+ readonly SystemActionType: {
41
+ readonly '': "";
42
+ /** ping - keep-alive request */
43
+ readonly ping: "ping";
44
+ /** pong - keep-alive response/event */
45
+ readonly pong: "pong";
46
+ /** info - connection/server information */
47
+ readonly info: "info";
48
+ /** message - generic system message */
49
+ readonly message: "message";
50
+ /** error - generic system error */
51
+ readonly error: "error";
52
+ };
53
+ /**
54
+ * SocketsActionType
55
+ * - sockets 도메인 액션
56
+ */
57
+ readonly SocketsActionType: {
58
+ readonly '': "";
59
+ /** find-connection - find or create current connection model */
60
+ readonly 'find-connection': "find-connection";
61
+ };
62
+ /**
63
+ * DeviceActionType
64
+ * - device 도메인 액션
65
+ */
66
+ readonly DeviceActionType: {
67
+ readonly '': "";
68
+ /** save - create or update linked device */
69
+ readonly save: "save";
70
+ /** read - read linked or requested device */
71
+ readonly read: "read";
72
+ /** sync - client device state sync hint */
73
+ readonly sync: "sync";
74
+ };
75
+ /**
76
+ * AuthActionType
77
+ * - auth 도메인 액션
78
+ */
79
+ readonly AuthActionType: {
80
+ readonly '': "";
81
+ /** update - update authentication state for current connection */
82
+ readonly update: "update";
83
+ };
84
+ /**
85
+ * ChannelActionType
86
+ * - channel 도메인 액션
87
+ */
88
+ readonly ChannelActionType: {
89
+ readonly '': "";
90
+ /** create - create a channel */
91
+ readonly create: "create";
92
+ /** join - join a channel */
93
+ readonly join: "join";
94
+ /** leave - leave or kick from a channel */
95
+ readonly leave: "leave";
96
+ /** get-self - get or create personal channel */
97
+ readonly 'get-self': "get-self";
98
+ /** mine - list my channels */
99
+ readonly mine: "mine";
100
+ /** list-user - list channel members */
101
+ readonly 'list-user': "list-user";
102
+ /** invite - invite users to a channel */
103
+ readonly invite: "invite";
104
+ /** update - update channel information */
105
+ readonly update: "update";
106
+ /** update-join - update channel participation settings */
107
+ readonly 'update-join': "update-join";
108
+ /** delete - delete a channel */
109
+ readonly delete: "delete";
110
+ /** sync - synchronize channel list/state */
111
+ readonly sync: "sync";
112
+ /** sync-users - synchronize channel users */
113
+ readonly 'sync-users': "sync-users";
114
+ /** sync-site-profile - synchronize related site profile */
115
+ readonly 'sync-site-profile': "sync-site-profile";
116
+ /** unreads - get unread message summary */
117
+ readonly unreads: "unreads";
118
+ };
119
+ /**
120
+ * ChatActionType
121
+ * - chat 도메인 액션
122
+ */
123
+ readonly ChatActionType: {
124
+ readonly '': "";
125
+ /** send - send chat message */
126
+ readonly send: "send";
127
+ /** read - mark chat message/channel as read */
128
+ readonly read: "read";
129
+ /** feed - get chat feed */
130
+ readonly feed: "feed";
131
+ };
132
+ /**
133
+ * UserActionType
134
+ * - user 도메인 액션
135
+ */
136
+ readonly UserActionType: {
137
+ readonly '': "";
138
+ /** invite - invite a user */
139
+ readonly invite: "invite";
140
+ /** invite-batch - invite multiple users */
141
+ readonly 'invite-batch': "invite-batch";
142
+ /** my-site - list accessible sites */
143
+ readonly 'my-site': "my-site";
144
+ /** make-site - create a site */
145
+ readonly 'make-site': "make-site";
146
+ /** update-profile - update user profile */
147
+ readonly 'update-profile': "update-profile";
148
+ /** update-site - update site profile */
149
+ readonly 'update-site': "update-site";
150
+ /** get-site-profile - get site profile */
151
+ readonly 'get-site-profile': "get-site-profile";
152
+ /** set-site-profile - set site profile */
153
+ readonly 'set-site-profile': "set-site-profile";
154
+ };
155
+ /**
156
+ * CloudActionType
157
+ * - cloud 도메인 액션
158
+ */
159
+ readonly CloudActionType: {
160
+ readonly '': "";
161
+ /** update - update cloud profile */
162
+ readonly update: "update";
163
+ };
164
+ };
165
+ declare type SocketActionKeyOf<T> = Extract<keyof T, string>;
166
+ declare type NonEmptySocketAction<T extends string> = Exclude<T, ''>;
167
+ /**
168
+ * type: `SocketDomainType`
169
+ */
170
+ export declare type SocketDomainType = SocketActionKeyOf<typeof SocketActionTypeLUT.DomainType>;
171
+ /**
172
+ * type: `SocketSystemActionType`
173
+ */
174
+ export declare type SocketSystemActionType = SocketActionKeyOf<typeof SocketActionTypeLUT.SystemActionType>;
175
+ /**
176
+ * type: `SocketSocketsActionType`
177
+ */
178
+ export declare type SocketSocketsActionType = SocketActionKeyOf<typeof SocketActionTypeLUT.SocketsActionType>;
179
+ /**
180
+ * type: `SocketDeviceActionType`
181
+ */
182
+ export declare type SocketDeviceActionType = SocketActionKeyOf<typeof SocketActionTypeLUT.DeviceActionType>;
183
+ /**
184
+ * type: `SocketAuthActionType`
185
+ */
186
+ export declare type SocketAuthActionType = SocketActionKeyOf<typeof SocketActionTypeLUT.AuthActionType>;
187
+ /**
188
+ * type: `SocketChannelActionType`
189
+ */
190
+ export declare type SocketChannelActionType = SocketActionKeyOf<typeof SocketActionTypeLUT.ChannelActionType>;
191
+ /**
192
+ * type: `SocketChatActionType`
193
+ */
194
+ export declare type SocketChatActionType = SocketActionKeyOf<typeof SocketActionTypeLUT.ChatActionType>;
195
+ /**
196
+ * type: `SocketUserActionType`
197
+ */
198
+ export declare type SocketUserActionType = SocketActionKeyOf<typeof SocketActionTypeLUT.UserActionType>;
199
+ /**
200
+ * type: `SocketCloudActionType`
201
+ */
202
+ export declare type SocketCloudActionType = SocketActionKeyOf<typeof SocketActionTypeLUT.CloudActionType>;
203
+ /**
204
+ * type: `SocketActionType`
205
+ */
206
+ export declare type SocketActionType = SocketSystemActionType | SocketSocketsActionType | SocketDeviceActionType | SocketAuthActionType | SocketChannelActionType | SocketChatActionType | SocketUserActionType | SocketCloudActionType;
207
+ /**
208
+ * interface: `SocketActionTypeMap`
209
+ * - domain to action type map
210
+ */
211
+ export interface SocketActionTypeMap {
212
+ system: SocketSystemActionType;
213
+ sockets: SocketSocketsActionType;
214
+ device: SocketDeviceActionType;
215
+ auth: SocketAuthActionType;
216
+ channel: SocketChannelActionType;
217
+ chat: SocketChatActionType;
218
+ user: SocketUserActionType;
219
+ cloud: SocketCloudActionType;
220
+ }
221
+ /**
222
+ * type: `SocketSupportedDomainType`
223
+ */
224
+ export declare type SocketSupportedDomainType = keyof SocketActionTypeMap;
225
+ /**
226
+ * type: `SocketSupportedActionType`
227
+ */
228
+ export declare type SocketSupportedActionType = NonEmptySocketAction<SocketActionType>;
229
+ /**
230
+ * type: `SocketActionTypeOf`
231
+ */
232
+ export declare type SocketActionTypeOf<TDomain extends SocketSupportedDomainType> = SocketActionTypeMap[TDomain];
233
+ /**
234
+ * type: `SocketPacketActionType`
235
+ */
236
+ export declare type SocketPacketActionType = {
237
+ [TDomain in SocketSupportedDomainType]: `${TDomain}.${NonEmptySocketAction<SocketActionTypeMap[TDomain]>}`;
238
+ }[SocketSupportedDomainType];
239
+ export {};