@lemoncloud/chatic-sockets-lib 0.2.0 → 0.3.0

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 (66) 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 +18 -0
  9. package/dist/client-socket-v2/gateways/cloud-gateway.js +14 -0
  10. package/dist/client-socket-v2/gateways/place-gateway.d.ts +18 -0
  11. package/dist/client-socket-v2/gateways/place-gateway.js +14 -0
  12. package/dist/client-socket-v2/gateways/profile-gateway.d.ts +18 -0
  13. package/dist/client-socket-v2/gateways/profile-gateway.js +14 -0
  14. package/dist/client-socket-v2/gateways/user-gateway.d.ts +38 -0
  15. package/dist/client-socket-v2/gateways/user-gateway.js +18 -0
  16. package/dist/client-socket-v2/index.d.ts +13 -0
  17. package/dist/client-socket-v2/index.js +12 -0
  18. package/dist/client-socket-v2/plans/channel-sync-plan.d.ts +33 -0
  19. package/dist/client-socket-v2/plans/channel-sync-plan.js +66 -0
  20. package/dist/client-socket-v2/plans/device-sync-plan.d.ts +5 -1
  21. package/dist/client-socket-v2/plans/device-sync-plan.js +6 -3
  22. package/dist/client-socket-v2/plans/place-sync-plan.d.ts +33 -0
  23. package/dist/client-socket-v2/plans/place-sync-plan.js +67 -0
  24. package/dist/client-socket-v2/plans/profile-sync-plan.d.ts +33 -0
  25. package/dist/client-socket-v2/plans/profile-sync-plan.js +67 -0
  26. package/dist/client-socket-v2/socket-runtime.d.ts +5 -1
  27. package/dist/client-socket-v2/socket-runtime.js +5 -1
  28. package/dist/client-socket-v2/socket-transport.d.ts +14 -4
  29. package/dist/client-socket-v2/socket-transport.js +58 -60
  30. package/dist/client-socket-v2/sync-scheduler.d.ts +15 -1
  31. package/dist/client-socket-v2/sync-scheduler.js +89 -12
  32. package/dist/client-socket-v2/types.d.ts +38 -7
  33. package/dist/lib/channel/types.d.ts +191 -0
  34. package/dist/lib/channel/types.js +2 -0
  35. package/dist/lib/chat/types.d.ts +79 -0
  36. package/dist/lib/chat/types.js +2 -0
  37. package/dist/lib/cloud/types.d.ts +54 -0
  38. package/dist/lib/cloud/types.js +2 -0
  39. package/dist/lib/device/contracts.d.ts +2 -0
  40. package/dist/lib/device/types.d.ts +1 -0
  41. package/dist/lib/place/types.d.ts +53 -0
  42. package/dist/lib/place/types.js +2 -0
  43. package/dist/lib/profile/types.d.ts +55 -0
  44. package/dist/lib/profile/types.js +2 -0
  45. package/dist/lib/socket-actions.d.ts +291 -0
  46. package/dist/lib/socket-actions.js +209 -0
  47. package/dist/lib/socket-inputs.d.ts +15 -0
  48. package/dist/lib/socket-inputs.js +8 -0
  49. package/dist/lib/sockets/types.d.ts +27 -0
  50. package/dist/lib/sockets/types.js +17 -0
  51. package/dist/lib/types.d.ts +2 -0
  52. package/dist/lib/user/types.d.ts +102 -0
  53. package/dist/lib/user/types.js +2 -0
  54. package/dist/modules/chat/model.d.ts +107 -0
  55. package/dist/modules/chat/model.js +28 -0
  56. package/dist/modules/chat/types.d.ts +65 -0
  57. package/dist/modules/chat/types.js +55 -0
  58. package/dist/modules/chat/views.d.ts +50 -0
  59. package/dist/modules/chat/views.js +23 -0
  60. package/dist/modules/sockets/model.d.ts +204 -0
  61. package/dist/modules/sockets/model.js +28 -0
  62. package/dist/modules/sockets/types.d.ts +88 -0
  63. package/dist/modules/sockets/types.js +78 -0
  64. package/dist/modules/sockets/views.d.ts +67 -0
  65. package/dist/modules/sockets/views.js +23 -0
  66. package/package.json +4 -2
@@ -0,0 +1,191 @@
1
+ import type { InferSocketRequest, SocketRequestMessage } from '../types';
2
+ import type { ChannelStereo } from '../../modules/chat/types';
3
+ import type { ChannelView } from '../../modules/chat/views';
4
+ export interface ChannelCreateRequestData {
5
+ stereo: ChannelStereo;
6
+ name?: string;
7
+ }
8
+ export interface ChannelByIdRequestData {
9
+ channelId: string;
10
+ }
11
+ export interface ChannelLeaveRequestData {
12
+ channelId: string;
13
+ userId?: string;
14
+ }
15
+ export interface ChannelMineRequestData {
16
+ page?: number;
17
+ limit?: number;
18
+ detail?: boolean;
19
+ hasSite?: boolean;
20
+ }
21
+ export interface ChannelUpdateRequestData {
22
+ channelId: string;
23
+ name?: string;
24
+ desc?: string;
25
+ thumbnail?: string;
26
+ }
27
+ export interface ChannelInviteRequestData {
28
+ channelId: string;
29
+ userIds: string[];
30
+ }
31
+ export interface ChannelListUserRequestData {
32
+ channelId: string;
33
+ limit?: number;
34
+ page?: number;
35
+ detail?: boolean;
36
+ }
37
+ export interface ChannelUpdateJoinRequestData {
38
+ channelId: string;
39
+ joinId?: string;
40
+ nick?: string;
41
+ notify?: '' | 'all' | 'mention' | 'none';
42
+ }
43
+ export interface ChannelSyncRequestData {
44
+ since?: number;
45
+ }
46
+ export interface ChannelGetRequestData {
47
+ id?: string;
48
+ }
49
+ export interface ChannelSyncUsersRequestData {
50
+ channelId: string;
51
+ since?: number;
52
+ }
53
+ declare module '../types' {
54
+ interface SocketPacketRegistry {
55
+ 'channel.create': {
56
+ request: ChannelCreateRequestData;
57
+ response: ChannelView;
58
+ error: null;
59
+ };
60
+ 'channel.get': {
61
+ request: ChannelGetRequestData;
62
+ response: ChannelView;
63
+ error: null;
64
+ };
65
+ 'channel.update': {
66
+ request: ChannelUpdateRequestData;
67
+ response: ChannelView;
68
+ error: null;
69
+ };
70
+ 'channel.delete': {
71
+ request: ChannelByIdRequestData;
72
+ response: ChannelView;
73
+ error: null;
74
+ };
75
+ 'channel.join': {
76
+ request: ChannelByIdRequestData;
77
+ response: unknown;
78
+ error: null;
79
+ };
80
+ 'channel.leave': {
81
+ request: ChannelLeaveRequestData;
82
+ response: unknown;
83
+ error: null;
84
+ };
85
+ 'channel.get-self': {
86
+ request: Record<string, never>;
87
+ response: unknown;
88
+ error: null;
89
+ };
90
+ 'channel.mine': {
91
+ request: ChannelMineRequestData;
92
+ response: unknown;
93
+ error: null;
94
+ };
95
+ 'channel.list-user': {
96
+ request: ChannelListUserRequestData;
97
+ response: unknown;
98
+ error: null;
99
+ };
100
+ 'channel.invite': {
101
+ request: ChannelInviteRequestData;
102
+ response: unknown;
103
+ error: null;
104
+ };
105
+ 'channel.update-join': {
106
+ request: ChannelUpdateJoinRequestData;
107
+ response: unknown;
108
+ error: null;
109
+ };
110
+ 'channel.sync': {
111
+ request: ChannelSyncRequestData;
112
+ response: unknown;
113
+ error: null;
114
+ };
115
+ 'channel.sync-users': {
116
+ request: ChannelSyncUsersRequestData;
117
+ response: unknown;
118
+ error: null;
119
+ };
120
+ 'channel.sync-site-profile': {
121
+ request: ChannelSyncRequestData;
122
+ response: unknown;
123
+ error: null;
124
+ };
125
+ 'channel.unreads': {
126
+ request: Record<string, never>;
127
+ response: unknown;
128
+ error: null;
129
+ };
130
+ }
131
+ }
132
+ export declare type ChannelCreateType = 'channel.create';
133
+ export declare type ChannelCreateInput = InferSocketRequest<ChannelCreateType>;
134
+ export declare type ChannelCreateRequestMessage = SocketRequestMessage<ChannelCreateType>;
135
+ export declare type ChannelJoinType = 'channel.join';
136
+ export declare type ChannelJoinInput = InferSocketRequest<ChannelJoinType>;
137
+ export declare type ChannelJoinRequestMessage = SocketRequestMessage<ChannelJoinType>;
138
+ export declare type ChannelLeaveType = 'channel.leave';
139
+ export declare type ChannelLeaveInput = InferSocketRequest<ChannelLeaveType>;
140
+ export declare type ChannelLeaveRequestMessage = SocketRequestMessage<ChannelLeaveType>;
141
+ export declare type ChannelGetSelfType = 'channel.get-self';
142
+ export declare type ChannelGetSelfInput = InferSocketRequest<ChannelGetSelfType>;
143
+ export declare type ChannelGetSelfRequestMessage = SocketRequestMessage<ChannelGetSelfType>;
144
+ export declare type ChannelMineType = 'channel.mine';
145
+ export declare type ChannelMineInput = InferSocketRequest<ChannelMineType>;
146
+ export declare type ChannelListMyInput = ChannelMineInput;
147
+ export declare type ChannelMineRequestMessage = SocketRequestMessage<ChannelMineType>;
148
+ export declare type ChannelListUserType = 'channel.list-user';
149
+ export declare type ChannelListUserInput = InferSocketRequest<ChannelListUserType>;
150
+ export declare type ChannelListUserRequestMessage = SocketRequestMessage<ChannelListUserType>;
151
+ export declare type ChannelInviteType = 'channel.invite';
152
+ export declare type ChannelInviteInput = InferSocketRequest<ChannelInviteType>;
153
+ export declare type ChannelInviteRequestMessage = SocketRequestMessage<ChannelInviteType>;
154
+ export declare type ChannelUpdateType = 'channel.update';
155
+ export declare type ChannelUpdateInput = InferSocketRequest<ChannelUpdateType>;
156
+ export declare type ChannelUpdateRequestMessage = SocketRequestMessage<ChannelUpdateType>;
157
+ export declare type ChannelUpdateJoinType = 'channel.update-join';
158
+ export declare type ChannelUpdateJoinInput = InferSocketRequest<ChannelUpdateJoinType>;
159
+ export declare type JoinUpdateInput = ChannelUpdateJoinInput;
160
+ export declare type ChannelUpdateJoinRequestMessage = SocketRequestMessage<ChannelUpdateJoinType>;
161
+ export declare type ChannelDeleteType = 'channel.delete';
162
+ export declare type ChannelDeleteInput = InferSocketRequest<ChannelDeleteType>;
163
+ export declare type ChannelDeleteRequestMessage = SocketRequestMessage<ChannelDeleteType>;
164
+ export declare type ChannelSyncType = 'channel.sync';
165
+ export declare type ChannelSyncInput = InferSocketRequest<ChannelSyncType>;
166
+ export declare type ChannelSyncRequestMessage = SocketRequestMessage<ChannelSyncType>;
167
+ export declare type ChannelGetType = 'channel.get';
168
+ export declare type ChannelGetInput = InferSocketRequest<ChannelGetType>;
169
+ export declare type ChannelGetRequestMessage = SocketRequestMessage<ChannelGetType>;
170
+ export declare type ChannelSyncUsersType = 'channel.sync-users';
171
+ export declare type ChannelSyncUsersInput = InferSocketRequest<ChannelSyncUsersType>;
172
+ export declare type ChannelSyncUsersRequestMessage = SocketRequestMessage<ChannelSyncUsersType>;
173
+ /** @deprecated use `profile.sync` (ProfileSyncInput). 하위호환용. */
174
+ export declare type ChannelSyncProfileType = 'channel.sync-site-profile';
175
+ /** @deprecated use `profile.sync` (ProfileSyncInput). 하위호환용. */
176
+ export declare type ChannelSyncProfileInput = InferSocketRequest<ChannelSyncProfileType>;
177
+ /** @deprecated use `profile.sync` (ProfileSyncInput). 하위호환용. */
178
+ export declare type ChannelSyncSiteProfileInput = ChannelSyncProfileInput;
179
+ /** @deprecated use `profile.sync`. 하위호환용. */
180
+ export declare type ChannelSyncProfileRequestMessage = SocketRequestMessage<ChannelSyncProfileType>;
181
+ export declare type ChannelUnreadsType = 'channel.unreads';
182
+ export declare type ChannelUnreadsInput = InferSocketRequest<ChannelUnreadsType>;
183
+ export declare type ChannelUnreadsRequestMessage = SocketRequestMessage<ChannelUnreadsType>;
184
+ export declare type ChatStartInput = ChannelCreateInput;
185
+ export declare type ChatMineInput = ChannelMineInput;
186
+ export declare type ChatUsersInput = ChannelListUserInput;
187
+ export declare type ChatInviteInput = ChannelInviteInput;
188
+ export declare type ChatLeaveInput = ChannelLeaveInput;
189
+ export declare type ChatUpdateChannelInput = ChannelUpdateInput;
190
+ export declare type ChatUpdateJoinInput = ChannelUpdateJoinInput;
191
+ 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,54 @@
1
+ import type { InferSocketRequest, SocketRequestMessage } from '../types';
2
+ /** cloud 공통 body 필드 — create/update 양쪽에서 동일하게 사용 */
3
+ export interface CloudBodyData {
4
+ name?: string;
5
+ }
6
+ export declare type CloudCreateRequestData = CloudBodyData;
7
+ export interface CloudGetRequestData {
8
+ id: string;
9
+ }
10
+ export interface CloudUpdateRequestData extends CloudBodyData {
11
+ id?: string;
12
+ /** @deprecated use `id` instead. 하위호환용으로만 유지. */
13
+ cloudId?: string;
14
+ }
15
+ export interface CloudDeleteRequestData {
16
+ id: string;
17
+ }
18
+ declare module '../types' {
19
+ interface SocketPacketRegistry {
20
+ 'cloud.create': {
21
+ request: CloudCreateRequestData;
22
+ response: unknown;
23
+ error: null;
24
+ };
25
+ 'cloud.get': {
26
+ request: CloudGetRequestData;
27
+ response: unknown;
28
+ error: null;
29
+ };
30
+ 'cloud.update': {
31
+ request: CloudUpdateRequestData;
32
+ response: unknown;
33
+ error: null;
34
+ };
35
+ 'cloud.delete': {
36
+ request: CloudDeleteRequestData;
37
+ response: unknown;
38
+ error: null;
39
+ };
40
+ }
41
+ }
42
+ export declare type CloudCreateType = 'cloud.create';
43
+ export declare type CloudCreateInput = InferSocketRequest<CloudCreateType>;
44
+ export declare type CloudCreateRequestMessage = SocketRequestMessage<CloudCreateType>;
45
+ export declare type CloudGetType = 'cloud.get';
46
+ export declare type CloudGetInput = InferSocketRequest<CloudGetType>;
47
+ export declare type CloudGetRequestMessage = SocketRequestMessage<CloudGetType>;
48
+ export declare type CloudUpdateType = 'cloud.update';
49
+ export declare type CloudUpdateInput = InferSocketRequest<CloudUpdateType>;
50
+ export declare type UpdateCloudInput = CloudUpdateInput;
51
+ export declare type CloudUpdateRequestMessage = SocketRequestMessage<CloudUpdateType>;
52
+ export declare type CloudDeleteType = 'cloud.delete';
53
+ export declare type CloudDeleteInput = InferSocketRequest<CloudDeleteType>;
54
+ export declare type CloudDeleteRequestMessage = SocketRequestMessage<CloudDeleteType>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -20,6 +20,8 @@ export interface DeviceView {
20
20
  connectedAt?: number;
21
21
  disconnectedAt?: number;
22
22
  connId?: string;
23
+ currChannelId?: string;
24
+ viewingSince?: number;
23
25
  }
24
26
  /**
25
27
  * mutable device body accepted by `device.save`.
@@ -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,53 @@
1
+ import type { InferSocketRequest, SocketRequestMessage } from '../types';
2
+ /** place(site) 공통 body 필드 — create/update 양쪽에서 동일하게 사용 */
3
+ export interface PlaceBodyData {
4
+ name?: string;
5
+ stereo?: string;
6
+ thumbnail?: string;
7
+ }
8
+ export declare type PlaceCreateRequestData = PlaceBodyData;
9
+ export interface PlaceGetRequestData {
10
+ id: string;
11
+ }
12
+ export interface PlaceUpdateRequestData extends PlaceBodyData {
13
+ id?: string;
14
+ }
15
+ export interface PlaceDeleteRequestData {
16
+ id: string;
17
+ }
18
+ declare module '../types' {
19
+ interface SocketPacketRegistry {
20
+ 'place.create': {
21
+ request: PlaceCreateRequestData;
22
+ response: unknown;
23
+ error: null;
24
+ };
25
+ 'place.get': {
26
+ request: PlaceGetRequestData;
27
+ response: unknown;
28
+ error: null;
29
+ };
30
+ 'place.update': {
31
+ request: PlaceUpdateRequestData;
32
+ response: unknown;
33
+ error: null;
34
+ };
35
+ 'place.delete': {
36
+ request: PlaceDeleteRequestData;
37
+ response: unknown;
38
+ error: null;
39
+ };
40
+ }
41
+ }
42
+ export declare type PlaceCreateType = 'place.create';
43
+ export declare type PlaceCreateInput = InferSocketRequest<PlaceCreateType>;
44
+ export declare type PlaceCreateRequestMessage = SocketRequestMessage<PlaceCreateType>;
45
+ export declare type PlaceGetType = 'place.get';
46
+ export declare type PlaceGetInput = InferSocketRequest<PlaceGetType>;
47
+ export declare type PlaceGetRequestMessage = SocketRequestMessage<PlaceGetType>;
48
+ export declare type PlaceUpdateType = 'place.update';
49
+ export declare type PlaceUpdateInput = InferSocketRequest<PlaceUpdateType>;
50
+ export declare type PlaceUpdateRequestMessage = SocketRequestMessage<PlaceUpdateType>;
51
+ export declare type PlaceDeleteType = 'place.delete';
52
+ export declare type PlaceDeleteInput = InferSocketRequest<PlaceDeleteType>;
53
+ export declare type PlaceDeleteRequestMessage = SocketRequestMessage<PlaceDeleteType>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,55 @@
1
+ import type { InferSocketRequest, SocketRequestMessage } from '../types';
2
+ /** profile 단건 조회 — id 기반 (ProfileView.id = `siteId@userId`) */
3
+ export interface ProfileGetRequestData {
4
+ id: string;
5
+ }
6
+ /** profile(site-profile) set body 필드 — socials ProfileBody pass-through */
7
+ export interface ProfileSetRequestData {
8
+ id?: string;
9
+ userId?: string;
10
+ siteId?: string;
11
+ nick?: string;
12
+ thumbnail?: string;
13
+ active?: boolean;
14
+ [key: string]: unknown;
15
+ }
16
+ /** profile 동기화 — 사이트 수준 멀티프로필 delta(since cursor). 누락 시 전체 */
17
+ export interface ProfileSyncRequestData {
18
+ since?: number;
19
+ }
20
+ declare module '../types' {
21
+ interface SocketPacketRegistry {
22
+ 'profile.get': {
23
+ request: ProfileGetRequestData;
24
+ response: unknown;
25
+ error: null;
26
+ };
27
+ 'profile.get-mine': {
28
+ request: Record<string, never>;
29
+ response: unknown;
30
+ error: null;
31
+ };
32
+ 'profile.set': {
33
+ request: ProfileSetRequestData;
34
+ response: unknown;
35
+ error: null;
36
+ };
37
+ 'profile.sync': {
38
+ request: ProfileSyncRequestData;
39
+ response: unknown;
40
+ error: null;
41
+ };
42
+ }
43
+ }
44
+ export declare type ProfileGetType = 'profile.get';
45
+ export declare type ProfileGetInput = InferSocketRequest<ProfileGetType>;
46
+ export declare type ProfileGetRequestMessage = SocketRequestMessage<ProfileGetType>;
47
+ export declare type ProfileGetMineType = 'profile.get-mine';
48
+ export declare type ProfileGetMineInput = InferSocketRequest<ProfileGetMineType>;
49
+ export declare type ProfileGetMineRequestMessage = SocketRequestMessage<ProfileGetMineType>;
50
+ export declare type ProfileSetType = 'profile.set';
51
+ export declare type ProfileSetInput = InferSocketRequest<ProfileSetType>;
52
+ export declare type ProfileSetRequestMessage = SocketRequestMessage<ProfileSetType>;
53
+ export declare type ProfileSyncType = 'profile.sync';
54
+ export declare type ProfileSyncInput = InferSocketRequest<ProfileSyncType>;
55
+ export declare type ProfileSyncRequestMessage = SocketRequestMessage<ProfileSyncType>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });