@holocronlab/botruntime-chat 0.5.5
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/LICENSE +8 -0
- package/README.md +64 -0
- package/dist/client.d.ts +363 -0
- package/dist/consts.d.ts +1 -0
- package/dist/errors.d.ts +20 -0
- package/dist/event-emitter.d.ts +10 -0
- package/dist/eventsource.d.ts +32 -0
- package/dist/gen/client/errors.d.ts +229 -0
- package/dist/gen/client/index.d.ts +77 -0
- package/dist/gen/client/models.d.ts +212 -0
- package/dist/gen/client/operations/addParticipant.d.ts +55 -0
- package/dist/gen/client/operations/createConversation.d.ts +39 -0
- package/dist/gen/client/operations/createEvent.d.ts +55 -0
- package/dist/gen/client/operations/createMessage.d.ts +294 -0
- package/dist/gen/client/operations/createUser.d.ts +66 -0
- package/dist/gen/client/operations/deleteConversation.d.ts +22 -0
- package/dist/gen/client/operations/deleteMessage.d.ts +22 -0
- package/dist/gen/client/operations/deleteUser.d.ts +21 -0
- package/dist/gen/client/operations/getConversation.d.ts +36 -0
- package/dist/gen/client/operations/getEvent.d.ts +46 -0
- package/dist/gen/client/operations/getMessage.d.ts +167 -0
- package/dist/gen/client/operations/getOrCreateConversation.d.ts +39 -0
- package/dist/gen/client/operations/getOrCreateUser.d.ts +62 -0
- package/dist/gen/client/operations/getParticipant.d.ts +52 -0
- package/dist/gen/client/operations/getUser.d.ts +50 -0
- package/dist/gen/client/operations/listConversations.d.ts +42 -0
- package/dist/gen/client/operations/listMessages.d.ts +171 -0
- package/dist/gen/client/operations/listParticipants.d.ts +55 -0
- package/dist/gen/client/operations/listenConversation.d.ts +22 -0
- package/dist/gen/client/operations/removeParticipant.d.ts +23 -0
- package/dist/gen/client/operations/updateUser.d.ts +62 -0
- package/dist/gen/client/to-axios.d.ts +16 -0
- package/dist/gen/signals/eventCreated.j.d.ts +3 -0
- package/dist/gen/signals/eventCreated.t.d.ts +28 -0
- package/dist/gen/signals/eventCreated.z.d.ts +47 -0
- package/dist/gen/signals/index.d.ts +924 -0
- package/dist/gen/signals/messageCreated.j.d.ts +3 -0
- package/dist/gen/signals/messageCreated.t.d.ts +149 -0
- package/dist/gen/signals/messageCreated.z.d.ts +780 -0
- package/dist/gen/signals/messageDeleted.j.d.ts +3 -0
- package/dist/gen/signals/messageDeleted.t.d.ts +8 -0
- package/dist/gen/signals/messageDeleted.z.d.ts +32 -0
- package/dist/gen/signals/participantAdded.j.d.ts +3 -0
- package/dist/gen/signals/participantAdded.t.d.ts +7 -0
- package/dist/gen/signals/participantAdded.z.d.ts +27 -0
- package/dist/gen/signals/participantRemoved.j.d.ts +3 -0
- package/dist/gen/signals/participantRemoved.t.d.ts +7 -0
- package/dist/gen/signals/participantRemoved.z.d.ts +27 -0
- package/dist/index.cjs +1660 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +138836 -0
- package/dist/index.mjs.map +7 -0
- package/dist/jsonwebtoken.d.ts +3 -0
- package/dist/listing.d.ts +16 -0
- package/dist/signal-listener.d.ts +51 -0
- package/dist/types.d.ts +41 -0
- package/dist/watchdog.d.ts +11 -0
- package/package.json +35 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"message_deleted">;
|
|
4
|
+
data: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
conversationId: z.ZodString;
|
|
7
|
+
userId: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
id: string;
|
|
10
|
+
conversationId: string;
|
|
11
|
+
userId: string;
|
|
12
|
+
}, {
|
|
13
|
+
id: string;
|
|
14
|
+
conversationId: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
}>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
type: "message_deleted";
|
|
19
|
+
data: {
|
|
20
|
+
id: string;
|
|
21
|
+
conversationId: string;
|
|
22
|
+
userId: string;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
type: "message_deleted";
|
|
26
|
+
data: {
|
|
27
|
+
id: string;
|
|
28
|
+
conversationId: string;
|
|
29
|
+
userId: string;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"participant_added">;
|
|
4
|
+
data: z.ZodObject<{
|
|
5
|
+
conversationId: z.ZodString;
|
|
6
|
+
participantId: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
conversationId: string;
|
|
9
|
+
participantId: string;
|
|
10
|
+
}, {
|
|
11
|
+
conversationId: string;
|
|
12
|
+
participantId: string;
|
|
13
|
+
}>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
type: "participant_added";
|
|
16
|
+
data: {
|
|
17
|
+
conversationId: string;
|
|
18
|
+
participantId: string;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
type: "participant_added";
|
|
22
|
+
data: {
|
|
23
|
+
conversationId: string;
|
|
24
|
+
participantId: string;
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const _default: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"participant_removed">;
|
|
4
|
+
data: z.ZodObject<{
|
|
5
|
+
conversationId: z.ZodString;
|
|
6
|
+
participantId: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
conversationId: string;
|
|
9
|
+
participantId: string;
|
|
10
|
+
}, {
|
|
11
|
+
conversationId: string;
|
|
12
|
+
participantId: string;
|
|
13
|
+
}>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
type: "participant_removed";
|
|
16
|
+
data: {
|
|
17
|
+
conversationId: string;
|
|
18
|
+
participantId: string;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
type: "participant_removed";
|
|
22
|
+
data: {
|
|
23
|
+
conversationId: string;
|
|
24
|
+
participantId: string;
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|