Skip to content

Commit 13fcfd1

Browse files
committed
Update XMTP node bindings in types.ts
1 parent 5d40ac7 commit 13fcfd1

File tree

1 file changed

+7
-38
lines changed

1 file changed

+7
-38
lines changed

helpers/types.ts

+7-38
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,22 @@
11
import type { Worker, WorkerManager } from "@workers/manager";
22
import {
3-
Client,
43
ConsentEntityType,
54
ConsentState,
6-
Conversation,
7-
Dm,
8-
Group,
95
IdentifierKind,
106
type Consent,
11-
type DecodedMessage,
127
type GroupMember,
138
type Installation,
149
type LogLevel,
10+
} from "@xmtp/node-bindings";
11+
import {
12+
Client,
13+
Conversation,
14+
Dm,
15+
Group,
16+
type DecodedMessage,
1517
type Signer,
1618
type XmtpEnv,
1719
} from "@xmtp/node-sdk";
18-
import {
19-
Client as Client100,
20-
Conversation as Conversation100,
21-
Dm as Dm100,
22-
Group as Group100,
23-
} from "@xmtp/node-sdk-100";
24-
25-
export const sdkVersions = {
26-
v104: {
27-
Client,
28-
Conversation,
29-
Dm,
30-
Group,
31-
},
32-
v100: {
33-
Client: Client100,
34-
Conversation: Conversation100,
35-
Dm: Dm100,
36-
Group: Group100,
37-
},
38-
// You can add more versions as needed
39-
};
40-
41-
// Export types for use with any version
42-
export type SdkTypes = {
43-
Consent: Consent;
44-
DecodedMessage: DecodedMessage;
45-
GroupMember: GroupMember;
46-
Installation: Installation;
47-
LogLevel: LogLevel;
48-
Signer: Signer;
49-
XmtpEnv: XmtpEnv;
50-
};
5120

5221
export type { WorkerManager, Worker };
5322
export type WorkerStreamMessage = {

0 commit comments

Comments
 (0)