File tree 1 file changed +7
-38
lines changed
1 file changed +7
-38
lines changed Original file line number Diff line number Diff line change 1
1
import type { Worker , WorkerManager } from "@workers/manager" ;
2
2
import {
3
- Client ,
4
3
ConsentEntityType ,
5
4
ConsentState ,
6
- Conversation ,
7
- Dm ,
8
- Group ,
9
5
IdentifierKind ,
10
6
type Consent ,
11
- type DecodedMessage ,
12
7
type GroupMember ,
13
8
type Installation ,
14
9
type LogLevel ,
10
+ } from "@xmtp/node-bindings" ;
11
+ import {
12
+ Client ,
13
+ Conversation ,
14
+ Dm ,
15
+ Group ,
16
+ type DecodedMessage ,
15
17
type Signer ,
16
18
type XmtpEnv ,
17
19
} 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
- } ;
51
20
52
21
export type { WorkerManager , Worker } ;
53
22
export type WorkerStreamMessage = {
You can’t perform that action at this time.
0 commit comments