@pluv/types 0.41.1 → 0.41.2
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.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +2 -0
- package/dist/index.d.mts +17 -19
- package/dist/index.d.ts +17 -19
- package/package.json +3 -3
- package/src/index.ts +0 -1
- package/src/pluv.ts +14 -17
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/types@0.41.
|
|
2
|
+
> @pluv/types@0.41.2 build /home/runner/work/pluv/pluv/packages/types
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.mjs [22m[32m0 B[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 30ms
|
|
13
13
|
[32mCJS[39m [1mdist/index.js [22m[32m758.00 B[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 30ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m7.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m7.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 698ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m7.32 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m7.32 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -59,7 +59,14 @@ interface BaseClientEventRecord {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
type BaseClientMessage = InferEventMessage<BaseClientEventRecord>;
|
|
62
|
-
|
|
62
|
+
type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = {
|
|
63
|
+
$error: {
|
|
64
|
+
message: string;
|
|
65
|
+
stack?: string | null;
|
|
66
|
+
};
|
|
67
|
+
$exit: {
|
|
68
|
+
sessionId: string;
|
|
69
|
+
};
|
|
63
70
|
$othersReceived: {
|
|
64
71
|
others: {
|
|
65
72
|
[connectionId: string]: {
|
|
@@ -73,23 +80,6 @@ interface BaseIOAuthorizeEventRecord<TAuthorize extends IOAuthorize<any, any>> {
|
|
|
73
80
|
};
|
|
74
81
|
};
|
|
75
82
|
};
|
|
76
|
-
$userJoined: {
|
|
77
|
-
connectionId: string;
|
|
78
|
-
presence: JsonObject;
|
|
79
|
-
timers: {
|
|
80
|
-
presence: number | null;
|
|
81
|
-
};
|
|
82
|
-
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIOAuthorizeEventRecord<TAuthorize> & {
|
|
86
|
-
$error: {
|
|
87
|
-
message: string;
|
|
88
|
-
stack?: string | null;
|
|
89
|
-
};
|
|
90
|
-
$exit: {
|
|
91
|
-
sessionId: string;
|
|
92
|
-
};
|
|
93
83
|
$pong: {};
|
|
94
84
|
$presenceUpdated: {
|
|
95
85
|
presence: JsonObject;
|
|
@@ -110,6 +100,14 @@ type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIOAuthori
|
|
|
110
100
|
$storageUpdated: {
|
|
111
101
|
state: string;
|
|
112
102
|
};
|
|
103
|
+
$userJoined: {
|
|
104
|
+
connectionId: string;
|
|
105
|
+
presence: JsonObject;
|
|
106
|
+
timers: {
|
|
107
|
+
presence: number | null;
|
|
108
|
+
};
|
|
109
|
+
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
110
|
+
};
|
|
113
111
|
};
|
|
114
112
|
interface EventMessage<TEvent extends string, TData extends JsonObject = {}> {
|
|
115
113
|
data: TData;
|
|
@@ -176,4 +174,4 @@ type IOEventMessage<TIO extends IOLike<any, any>, TEvent extends keyof InferIOOu
|
|
|
176
174
|
room: string;
|
|
177
175
|
} & InferEventMessage<InferIOOutput<TIO>, TEvent> & (InferEventMessage<InferIOOutput<TIO>, TEvent>["type"] extends "$error" ? Partial<IOAuthorizeEventMessage<TIO>> : IOAuthorizeEventMessage<TIO>)>;
|
|
178
176
|
|
|
179
|
-
export type { BaseClientEventRecord, BaseClientMessage,
|
|
177
|
+
export type { BaseClientEventRecord, BaseClientMessage, BaseIOEventRecord, BaseUser, Constructable, DeepPartial, DeepWriteable, EventMessage, EventRecord, GetEventMessage, IOAuthorize, IOAuthorizeEventMessage, IOEventMessage, IOLike, IORouterLike, Id, InferEventMessage, InferEventsInput, InferEventsOutput, InferIOAuthorize, InferIOAuthorizeUser, InferIOInput, InferIOOutput, InputZodLike, Json, JsonObject, JsonPrimitive, Maybe, MaybePromise, MaybeReadonlyArray, NonNilProps, OptionalProps, ProcedureLike, Spread, SpreadProperties, UndefinedProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -59,7 +59,14 @@ interface BaseClientEventRecord {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
type BaseClientMessage = InferEventMessage<BaseClientEventRecord>;
|
|
62
|
-
|
|
62
|
+
type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = {
|
|
63
|
+
$error: {
|
|
64
|
+
message: string;
|
|
65
|
+
stack?: string | null;
|
|
66
|
+
};
|
|
67
|
+
$exit: {
|
|
68
|
+
sessionId: string;
|
|
69
|
+
};
|
|
63
70
|
$othersReceived: {
|
|
64
71
|
others: {
|
|
65
72
|
[connectionId: string]: {
|
|
@@ -73,23 +80,6 @@ interface BaseIOAuthorizeEventRecord<TAuthorize extends IOAuthorize<any, any>> {
|
|
|
73
80
|
};
|
|
74
81
|
};
|
|
75
82
|
};
|
|
76
|
-
$userJoined: {
|
|
77
|
-
connectionId: string;
|
|
78
|
-
presence: JsonObject;
|
|
79
|
-
timers: {
|
|
80
|
-
presence: number | null;
|
|
81
|
-
};
|
|
82
|
-
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIOAuthorizeEventRecord<TAuthorize> & {
|
|
86
|
-
$error: {
|
|
87
|
-
message: string;
|
|
88
|
-
stack?: string | null;
|
|
89
|
-
};
|
|
90
|
-
$exit: {
|
|
91
|
-
sessionId: string;
|
|
92
|
-
};
|
|
93
83
|
$pong: {};
|
|
94
84
|
$presenceUpdated: {
|
|
95
85
|
presence: JsonObject;
|
|
@@ -110,6 +100,14 @@ type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIOAuthori
|
|
|
110
100
|
$storageUpdated: {
|
|
111
101
|
state: string;
|
|
112
102
|
};
|
|
103
|
+
$userJoined: {
|
|
104
|
+
connectionId: string;
|
|
105
|
+
presence: JsonObject;
|
|
106
|
+
timers: {
|
|
107
|
+
presence: number | null;
|
|
108
|
+
};
|
|
109
|
+
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
110
|
+
};
|
|
113
111
|
};
|
|
114
112
|
interface EventMessage<TEvent extends string, TData extends JsonObject = {}> {
|
|
115
113
|
data: TData;
|
|
@@ -176,4 +174,4 @@ type IOEventMessage<TIO extends IOLike<any, any>, TEvent extends keyof InferIOOu
|
|
|
176
174
|
room: string;
|
|
177
175
|
} & InferEventMessage<InferIOOutput<TIO>, TEvent> & (InferEventMessage<InferIOOutput<TIO>, TEvent>["type"] extends "$error" ? Partial<IOAuthorizeEventMessage<TIO>> : IOAuthorizeEventMessage<TIO>)>;
|
|
178
176
|
|
|
179
|
-
export type { BaseClientEventRecord, BaseClientMessage,
|
|
177
|
+
export type { BaseClientEventRecord, BaseClientMessage, BaseIOEventRecord, BaseUser, Constructable, DeepPartial, DeepWriteable, EventMessage, EventRecord, GetEventMessage, IOAuthorize, IOAuthorizeEventMessage, IOEventMessage, IOLike, IORouterLike, Id, InferEventMessage, InferEventsInput, InferEventsOutput, InferIOAuthorize, InferIOAuthorizeUser, InferIOInput, InferIOOutput, InputZodLike, Json, JsonObject, JsonPrimitive, Maybe, MaybePromise, MaybeReadonlyArray, NonNilProps, OptionalProps, ProcedureLike, Spread, SpreadProperties, UndefinedProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/types",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.2",
|
|
4
4
|
"description": "@pluv/io shared types",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"eslint": "^9.25.0",
|
|
20
20
|
"tsup": "^8.4.0",
|
|
21
21
|
"typescript": "^5.8.3",
|
|
22
|
-
"@pluv/tsconfig": "^0.41.
|
|
23
|
-
"eslint-config-pluv": "^0.41.
|
|
22
|
+
"@pluv/tsconfig": "^0.41.2",
|
|
23
|
+
"eslint-config-pluv": "^0.41.2"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/index.ts
CHANGED
package/src/pluv.ts
CHANGED
|
@@ -22,7 +22,14 @@ export interface BaseClientEventRecord {
|
|
|
22
22
|
|
|
23
23
|
export type BaseClientMessage = InferEventMessage<BaseClientEventRecord>;
|
|
24
24
|
|
|
25
|
-
export
|
|
25
|
+
export type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = {
|
|
26
|
+
$error: {
|
|
27
|
+
message: string;
|
|
28
|
+
stack?: string | null;
|
|
29
|
+
};
|
|
30
|
+
$exit: {
|
|
31
|
+
sessionId: string;
|
|
32
|
+
};
|
|
26
33
|
$othersReceived: {
|
|
27
34
|
others: {
|
|
28
35
|
[connectionId: string]: {
|
|
@@ -34,22 +41,6 @@ export interface BaseIOAuthorizeEventRecord<TAuthorize extends IOAuthorize<any,
|
|
|
34
41
|
};
|
|
35
42
|
};
|
|
36
43
|
};
|
|
37
|
-
$userJoined: {
|
|
38
|
-
connectionId: string;
|
|
39
|
-
presence: JsonObject;
|
|
40
|
-
timers: { presence: number | null };
|
|
41
|
-
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIOAuthorizeEventRecord<TAuthorize> & {
|
|
46
|
-
$error: {
|
|
47
|
-
message: string;
|
|
48
|
-
stack?: string | null;
|
|
49
|
-
};
|
|
50
|
-
$exit: {
|
|
51
|
-
sessionId: string;
|
|
52
|
-
};
|
|
53
44
|
$pong: {};
|
|
54
45
|
$presenceUpdated: {
|
|
55
46
|
presence: JsonObject;
|
|
@@ -66,6 +57,12 @@ export type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIO
|
|
|
66
57
|
$storageUpdated: {
|
|
67
58
|
state: string;
|
|
68
59
|
};
|
|
60
|
+
$userJoined: {
|
|
61
|
+
connectionId: string;
|
|
62
|
+
presence: JsonObject;
|
|
63
|
+
timers: { presence: number | null };
|
|
64
|
+
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
65
|
+
};
|
|
69
66
|
};
|
|
70
67
|
|
|
71
68
|
export interface EventMessage<TEvent extends string, TData extends JsonObject = {}> {
|