@alkemio/matrix-adapter-lib 0.8.0 → 0.8.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.
@@ -1,4 +1,4 @@
1
- import type { AddReactionRequest, AddReactionResponse, BaseResponse, BatchAddMemberRequest, BatchAddMemberResponse, BatchAddSpaceMemberRequest, BatchAddSpaceMemberResponse, BatchRemoveMemberRequest, BatchRemoveMemberResponse, BatchRemoveSpaceMemberRequest, BatchRemoveSpaceMemberResponse, CreateRoomRequest, CreateSpaceRequest, DMRequestedEvent, DeleteMessageRequest, DeleteRoomRequest, DeleteSpaceRequest, GetMessageRequest, GetMessageResponse, GetReactionRequest, GetReactionResponse, GetRoomMembersRequest, GetRoomMembersResponse, GetRoomRequest, GetRoomResponse, GetSpaceRequest, GetSpaceResponse, GetThreadMessagesRequest, GetThreadMessagesResponse, ListRoomsRequest, ListRoomsResponse, ListSpacesRequest, ListSpacesResponse, MessageReceivedPayload, ReactionAddedEvent, ReactionRemovedEvent, RemoveReactionRequest, RoomMemberLeftEvent, SendMessageRequest, SendMessageResponse, SetParentRequest, SyncActorRequest, UpdateRoomRequest, UpdateSpaceRequest } from './dto';
1
+ import type { AddReactionRequest, AddReactionResponse, BaseResponse, BatchAddMemberRequest, BatchAddMemberResponse, BatchAddSpaceMemberRequest, BatchAddSpaceMemberResponse, BatchRemoveMemberRequest, BatchRemoveMemberResponse, BatchRemoveSpaceMemberRequest, BatchRemoveSpaceMemberResponse, CreateRoomRequest, CreateSpaceRequest, DMRequestedEvent, DeleteMessageRequest, DeleteRoomRequest, DeleteSpaceRequest, GetMessageRequest, GetMessageResponse, GetReactionRequest, GetReactionResponse, GetRoomMembersRequest, GetRoomMembersResponse, GetRoomRequest, GetRoomResponse, GetSpaceRequest, GetSpaceResponse, GetThreadMessagesRequest, GetThreadMessagesResponse, GetUnreadCountsRequest, GetUnreadCountsResponse, ListRoomsRequest, ListRoomsResponse, ListSpacesRequest, ListSpacesResponse, MarkMessageReadRequest, MessageEditedEvent, MessageReceivedPayload, MessageRedactedEvent, ReactionAddedEvent, ReactionRemovedEvent, ReadReceiptUpdatedEvent, RemoveReactionRequest, RoomCreatedEvent, RoomMemberLeftEvent, RoomMemberUpdatedEvent, SendMessageRequest, SendMessageResponse, SetParentRequest, SyncActorRequest, UpdateRoomRequest, UpdateSpaceRequest } from './dto';
2
2
  export declare const Commands: {
3
3
  readonly 'communication.actor.sync': {
4
4
  readonly request: SyncActorRequest;
@@ -16,6 +16,10 @@ export declare const Commands: {
16
16
  readonly request: GetMessageRequest;
17
17
  readonly response: GetMessageResponse;
18
18
  };
19
+ readonly 'communication.message.read': {
20
+ readonly request: MarkMessageReadRequest;
21
+ readonly response: BaseResponse;
22
+ };
19
23
  readonly 'communication.message.send': {
20
24
  readonly request: SendMessageRequest;
21
25
  readonly response: SendMessageResponse;
@@ -60,6 +64,10 @@ export declare const Commands: {
60
64
  readonly request: GetRoomMembersRequest;
61
65
  readonly response: GetRoomMembersResponse;
62
66
  };
67
+ readonly 'communication.room.unread_counts.get': {
68
+ readonly request: GetUnreadCountsRequest;
69
+ readonly response: GetUnreadCountsResponse;
70
+ };
63
71
  readonly 'communication.room.update': {
64
72
  readonly request: UpdateRoomRequest;
65
73
  readonly response: BaseResponse;
@@ -98,21 +106,36 @@ export declare const Commands: {
98
106
  };
99
107
  };
100
108
  export declare const OutgoingEvents: {
109
+ readonly 'communication.message.edited': {
110
+ readonly payload: MessageEditedEvent;
111
+ };
101
112
  readonly 'communication.message.received': {
102
113
  readonly payload: MessageReceivedPayload;
103
114
  };
115
+ readonly 'communication.message.redacted': {
116
+ readonly payload: MessageRedactedEvent;
117
+ };
104
118
  readonly 'communication.reaction.added': {
105
119
  readonly payload: ReactionAddedEvent;
106
120
  };
107
121
  readonly 'communication.reaction.removed': {
108
122
  readonly payload: ReactionRemovedEvent;
109
123
  };
124
+ readonly 'communication.room.created': {
125
+ readonly payload: RoomCreatedEvent;
126
+ };
110
127
  readonly 'communication.room.dm.requested': {
111
128
  readonly payload: DMRequestedEvent;
112
129
  };
113
130
  readonly 'communication.room.member.left': {
114
131
  readonly payload: RoomMemberLeftEvent;
115
132
  };
133
+ readonly 'communication.room.member.updated': {
134
+ readonly payload: RoomMemberUpdatedEvent;
135
+ };
136
+ readonly 'communication.room.receipt.updated': {
137
+ readonly payload: ReadReceiptUpdatedEvent;
138
+ };
116
139
  };
117
140
  export type CommandTopic = keyof typeof Commands;
118
141
  export type RequestFor<T extends CommandTopic> = (typeof Commands)[T]['request'];
package/dist/commands.js CHANGED
@@ -18,6 +18,10 @@ exports.Commands = {
18
18
  request: {},
19
19
  response: {},
20
20
  },
21
+ 'communication.message.read': {
22
+ request: {},
23
+ response: {},
24
+ },
21
25
  'communication.message.send': {
22
26
  request: {},
23
27
  response: {},
@@ -62,6 +66,10 @@ exports.Commands = {
62
66
  request: {},
63
67
  response: {},
64
68
  },
69
+ 'communication.room.unread_counts.get': {
70
+ request: {},
71
+ response: {},
72
+ },
65
73
  'communication.room.update': {
66
74
  request: {},
67
75
  response: {},
@@ -100,20 +108,35 @@ exports.Commands = {
100
108
  },
101
109
  };
102
110
  exports.OutgoingEvents = {
111
+ 'communication.message.edited': {
112
+ payload: {},
113
+ },
103
114
  'communication.message.received': {
104
115
  payload: {},
105
116
  },
117
+ 'communication.message.redacted': {
118
+ payload: {},
119
+ },
106
120
  'communication.reaction.added': {
107
121
  payload: {},
108
122
  },
109
123
  'communication.reaction.removed': {
110
124
  payload: {},
111
125
  },
126
+ 'communication.room.created': {
127
+ payload: {},
128
+ },
112
129
  'communication.room.dm.requested': {
113
130
  payload: {},
114
131
  },
115
132
  'communication.room.member.left': {
116
133
  payload: {},
117
134
  },
135
+ 'communication.room.member.updated': {
136
+ payload: {},
137
+ },
138
+ 'communication.room.receipt.updated': {
139
+ payload: {},
140
+ },
118
141
  };
119
142
  //# sourceMappingURL=commands.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commands.js","sourceRoot":"","sources":["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KACvC;CACO,CAAC"}
@@ -51,6 +51,13 @@ export declare const TopicReactionRemoved = "communication.reaction.removed";
51
51
  export declare const TopicRoomMemberLeft = "communication.room.member.left";
52
52
  export declare const TopicRoomMembersGet = "communication.room.members.get";
53
53
  export declare const TopicThreadMessagesGet = "communication.thread.messages.get";
54
+ export declare const TopicMessageRead = "communication.message.read";
55
+ export declare const TopicUnreadCountsGet = "communication.room.unread_counts.get";
56
+ export declare const TopicReadReceiptUpdated = "communication.room.receipt.updated";
57
+ export declare const TopicMessageEdited = "communication.message.edited";
58
+ export declare const TopicMessageRedacted = "communication.message.redacted";
59
+ export declare const TopicRoomCreated = "communication.room.created";
60
+ export declare const TopicRoomMemberUpdated = "communication.room.member.updated";
54
61
  export interface CommandDef {
55
62
  Topic: string;
56
63
  RequestType: string;
@@ -93,7 +100,7 @@ export interface MessageReceivedPayload {
93
100
  export interface Message {
94
101
  id: string;
95
102
  message: string;
96
- threadID?: string;
103
+ threadID?: MessageID;
97
104
  sender: string;
98
105
  timestamp: number;
99
106
  reactions: Reaction[];
@@ -167,11 +174,11 @@ export interface DeleteMessageRequest {
167
174
  }
168
175
  export interface GetThreadMessagesRequest {
169
176
  alkemio_room_id: AlkemioRoomID;
170
- thread_root_id: MessageID;
177
+ thread_id: MessageID;
171
178
  }
172
179
  export interface GetThreadMessagesResponse extends BaseResponse {
173
180
  alkemio_room_id: AlkemioRoomID;
174
- thread_root_id: MessageID;
181
+ thread_id: MessageID;
175
182
  messages: MessageDto[];
176
183
  }
177
184
  export interface ReactionDto {
@@ -201,6 +208,63 @@ export interface GetReactionRequest {
201
208
  export interface GetReactionResponse extends BaseResponse {
202
209
  reaction: ReactionDto;
203
210
  }
211
+ export interface MarkMessageReadRequest {
212
+ actor_id: AlkemioActorID;
213
+ alkemio_room_id: AlkemioRoomID;
214
+ message_id: MessageID;
215
+ thread_id?: MessageID;
216
+ }
217
+ export interface GetUnreadCountsRequest {
218
+ actor_id: AlkemioActorID;
219
+ alkemio_room_id: AlkemioRoomID;
220
+ thread_ids?: MessageID[];
221
+ }
222
+ export interface GetUnreadCountsResponse extends BaseResponse {
223
+ room_unread_count: number;
224
+ thread_unread_counts?: {
225
+ [key: string]: number;
226
+ };
227
+ }
228
+ export interface ReadReceiptUpdatedEvent {
229
+ alkemio_room_id: AlkemioRoomID;
230
+ actor_id: AlkemioActorID;
231
+ event_id: MessageID;
232
+ thread_id?: MessageID;
233
+ timestamp: number;
234
+ }
235
+ export interface MessageEditedEvent {
236
+ alkemio_room_id: AlkemioRoomID;
237
+ sender_actor_id: AlkemioActorID;
238
+ original_message_id: MessageID;
239
+ new_message_id: MessageID;
240
+ new_content: string;
241
+ thread_id?: MessageID;
242
+ timestamp: number;
243
+ }
244
+ export interface MessageRedactedEvent {
245
+ alkemio_room_id: AlkemioRoomID;
246
+ redactor_actor_id: AlkemioActorID;
247
+ redacted_message_id: MessageID;
248
+ redaction_message_id: MessageID;
249
+ reason?: string;
250
+ thread_id?: MessageID;
251
+ timestamp: number;
252
+ }
253
+ export interface RoomCreatedEvent {
254
+ alkemio_room_id: AlkemioRoomID;
255
+ creator_actor_id: AlkemioActorID;
256
+ room_type: string;
257
+ name?: string;
258
+ topic?: string;
259
+ timestamp: number;
260
+ }
261
+ export interface RoomMemberUpdatedEvent {
262
+ alkemio_room_id: AlkemioRoomID;
263
+ member_actor_id: AlkemioActorID;
264
+ sender_actor_id: AlkemioActorID;
265
+ membership: string;
266
+ timestamp: number;
267
+ }
204
268
  export interface CreateRoomRequest {
205
269
  alkemio_room_id: AlkemioRoomID;
206
270
  type: RoomType;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JoinRuleRestricted = exports.JoinRuleInvite = exports.JoinRulePublic = exports.RoomTypeDirect = exports.RoomTypeCommunity = exports.ErrCodeNotAllowed = exports.ErrCodeInternalError = exports.ErrCodeMatrixError = exports.ErrCodeReactionNotFound = exports.ErrCodeMessageNotFound = exports.ErrCodeActorNotFound = exports.ErrCodeSpaceNotFound = exports.ErrCodeRoomNotFound = exports.ErrCodeInvalidParam = exports.TopicThreadMessagesGet = exports.TopicRoomMembersGet = exports.TopicRoomMemberLeft = exports.TopicReactionRemoved = exports.TopicReactionAdded = exports.TopicRoomDMRequested = exports.TopicSpaceMemberBatchRemove = exports.TopicSpaceMemberBatchAdd = exports.TopicHierarchySetParent = exports.TopicSpaceList = exports.TopicSpaceDelete = exports.TopicSpaceUpdate = exports.TopicSpaceGet = exports.TopicSpaceCreate = exports.TopicActorSync = exports.TopicRoomMemberBatchRemove = exports.TopicRoomMemberBatchAdd = exports.TopicReactionGet = exports.TopicReactionRemove = exports.TopicReactionAdd = exports.TopicMessageReceived = exports.TopicMessageDelete = exports.TopicMessageGet = exports.TopicMessageSend = exports.TopicRoomList = exports.TopicRoomDelete = exports.TopicRoomUpdate = exports.TopicRoomGet = exports.TopicRoomCreate = void 0;
3
+ exports.JoinRuleRestricted = exports.JoinRuleInvite = exports.JoinRulePublic = exports.RoomTypeDirect = exports.RoomTypeCommunity = exports.ErrCodeNotAllowed = exports.ErrCodeInternalError = exports.ErrCodeMatrixError = exports.ErrCodeReactionNotFound = exports.ErrCodeMessageNotFound = exports.ErrCodeActorNotFound = exports.ErrCodeSpaceNotFound = exports.ErrCodeRoomNotFound = exports.ErrCodeInvalidParam = exports.TopicRoomMemberUpdated = exports.TopicRoomCreated = exports.TopicMessageRedacted = exports.TopicMessageEdited = exports.TopicReadReceiptUpdated = exports.TopicUnreadCountsGet = exports.TopicMessageRead = exports.TopicThreadMessagesGet = exports.TopicRoomMembersGet = exports.TopicRoomMemberLeft = exports.TopicReactionRemoved = exports.TopicReactionAdded = exports.TopicRoomDMRequested = exports.TopicSpaceMemberBatchRemove = exports.TopicSpaceMemberBatchAdd = exports.TopicHierarchySetParent = exports.TopicSpaceList = exports.TopicSpaceDelete = exports.TopicSpaceUpdate = exports.TopicSpaceGet = exports.TopicSpaceCreate = exports.TopicActorSync = exports.TopicRoomMemberBatchRemove = exports.TopicRoomMemberBatchAdd = exports.TopicReactionGet = exports.TopicReactionRemove = exports.TopicReactionAdd = exports.TopicMessageReceived = exports.TopicMessageDelete = exports.TopicMessageGet = exports.TopicMessageSend = exports.TopicRoomList = exports.TopicRoomDelete = exports.TopicRoomUpdate = exports.TopicRoomGet = exports.TopicRoomCreate = void 0;
4
4
  exports.TopicRoomCreate = "communication.room.create";
5
5
  exports.TopicRoomGet = "communication.room.get";
6
6
  exports.TopicRoomUpdate = "communication.room.update";
@@ -30,6 +30,13 @@ exports.TopicReactionRemoved = "communication.reaction.removed";
30
30
  exports.TopicRoomMemberLeft = "communication.room.member.left";
31
31
  exports.TopicRoomMembersGet = "communication.room.members.get";
32
32
  exports.TopicThreadMessagesGet = "communication.thread.messages.get";
33
+ exports.TopicMessageRead = "communication.message.read";
34
+ exports.TopicUnreadCountsGet = "communication.room.unread_counts.get";
35
+ exports.TopicReadReceiptUpdated = "communication.room.receipt.updated";
36
+ exports.TopicMessageEdited = "communication.message.edited";
37
+ exports.TopicMessageRedacted = "communication.message.redacted";
38
+ exports.TopicRoomCreated = "communication.room.created";
39
+ exports.TopicRoomMemberUpdated = "communication.room.member.updated";
33
40
  exports.ErrCodeInvalidParam = "INVALID_PARAM";
34
41
  exports.ErrCodeRoomNotFound = "ROOM_NOT_FOUND";
35
42
  exports.ErrCodeSpaceNotFound = "SPACE_NOT_FOUND";
@@ -1 +1 @@
1
- {"version":3,"file":"generated.js","sourceRoot":"","sources":["../../src/dto/generated.ts"],"names":[],"mappings":";;;AA2Da,QAAA,eAAe,GAAG,2BAA2B,CAAC;AAI9C,QAAA,YAAY,GAAG,wBAAwB,CAAC;AAIxC,QAAA,eAAe,GAAG,2BAA2B,CAAC;AAI9C,QAAA,eAAe,GAAG,2BAA2B,CAAC;AAI9C,QAAA,aAAa,GAAG,yBAAyB,CAAC;AAI1C,QAAA,gBAAgB,GAAG,4BAA4B,CAAC;AAIhD,QAAA,eAAe,GAAG,2BAA2B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NC = "communication.actor.sync",
3
3
  COMMUNICATION_HIERARCHY_SET_PARENT = "communication.hierarchy.set_parent",
4
4
  COMMUNICATION_MESSAGE_DELETE = "communication.message.delete",
5
+ COMMUNICATION_MESSAGE_EDITED = "communication.message.edited",
5
6
  COMMUNICATION_MESSAGE_GET = "communication.message.get",
7
+ COMMUNICATION_MESSAGE_READ = "communication.message.read",
6
8
  COMMUNICATION_MESSAGE_RECEIVED = "communication.message.received",
9
+ COMMUNICATION_MESSAGE_REDACTED = "communication.message.redacted",
7
10
  COMMUNICATION_MESSAGE_SEND = "communication.message.send",
8
11
  COMMUNICATION_REACTION_ADD = "communication.reaction.add",
9
12
  COMMUNICATION_REACTION_ADDED = "communication.reaction.added",
@@ -11,6 +14,7 @@ export declare enum MatrixAdapterEventType {
11
14
  COMMUNICATION_REACTION_REMOVE = "communication.reaction.remove",
12
15
  COMMUNICATION_REACTION_REMOVED = "communication.reaction.removed",
13
16
  COMMUNICATION_ROOM_CREATE = "communication.room.create",
17
+ COMMUNICATION_ROOM_CREATED = "communication.room.created",
14
18
  COMMUNICATION_ROOM_DELETE = "communication.room.delete",
15
19
  COMMUNICATION_ROOM_DM_REQUESTED = "communication.room.dm.requested",
16
20
  COMMUNICATION_ROOM_GET = "communication.room.get",
@@ -19,6 +23,9 @@ export declare enum MatrixAdapterEventType {
19
23
  COMMUNICATION_ROOM_MEMBER_BATCH_ADD = "communication.room.member.batch.add",
20
24
  COMMUNICATION_ROOM_MEMBER_BATCH_REMOVE = "communication.room.member.batch.remove",
21
25
  COMMUNICATION_ROOM_MEMBER_LEFT = "communication.room.member.left",
26
+ COMMUNICATION_ROOM_MEMBER_UPDATED = "communication.room.member.updated",
27
+ COMMUNICATION_ROOM_RECEIPT_UPDATED = "communication.room.receipt.updated",
28
+ COMMUNICATION_ROOM_UNREAD_COUNTS_GET = "communication.room.unread_counts.get",
22
29
  COMMUNICATION_ROOM_UPDATE = "communication.room.update",
23
30
  COMMUNICATION_SPACE_CREATE = "communication.space.create",
24
31
  COMMUNICATION_SPACE_DELETE = "communication.space.delete",
@@ -6,8 +6,11 @@ var MatrixAdapterEventType;
6
6
  MatrixAdapterEventType["COMMUNICATION_ACTOR_SYNC"] = "communication.actor.sync";
7
7
  MatrixAdapterEventType["COMMUNICATION_HIERARCHY_SET_PARENT"] = "communication.hierarchy.set_parent";
8
8
  MatrixAdapterEventType["COMMUNICATION_MESSAGE_DELETE"] = "communication.message.delete";
9
+ MatrixAdapterEventType["COMMUNICATION_MESSAGE_EDITED"] = "communication.message.edited";
9
10
  MatrixAdapterEventType["COMMUNICATION_MESSAGE_GET"] = "communication.message.get";
11
+ MatrixAdapterEventType["COMMUNICATION_MESSAGE_READ"] = "communication.message.read";
10
12
  MatrixAdapterEventType["COMMUNICATION_MESSAGE_RECEIVED"] = "communication.message.received";
13
+ MatrixAdapterEventType["COMMUNICATION_MESSAGE_REDACTED"] = "communication.message.redacted";
11
14
  MatrixAdapterEventType["COMMUNICATION_MESSAGE_SEND"] = "communication.message.send";
12
15
  MatrixAdapterEventType["COMMUNICATION_REACTION_ADD"] = "communication.reaction.add";
13
16
  MatrixAdapterEventType["COMMUNICATION_REACTION_ADDED"] = "communication.reaction.added";
@@ -15,6 +18,7 @@ var MatrixAdapterEventType;
15
18
  MatrixAdapterEventType["COMMUNICATION_REACTION_REMOVE"] = "communication.reaction.remove";
16
19
  MatrixAdapterEventType["COMMUNICATION_REACTION_REMOVED"] = "communication.reaction.removed";
17
20
  MatrixAdapterEventType["COMMUNICATION_ROOM_CREATE"] = "communication.room.create";
21
+ MatrixAdapterEventType["COMMUNICATION_ROOM_CREATED"] = "communication.room.created";
18
22
  MatrixAdapterEventType["COMMUNICATION_ROOM_DELETE"] = "communication.room.delete";
19
23
  MatrixAdapterEventType["COMMUNICATION_ROOM_DM_REQUESTED"] = "communication.room.dm.requested";
20
24
  MatrixAdapterEventType["COMMUNICATION_ROOM_GET"] = "communication.room.get";
@@ -23,6 +27,9 @@ var MatrixAdapterEventType;
23
27
  MatrixAdapterEventType["COMMUNICATION_ROOM_MEMBER_BATCH_ADD"] = "communication.room.member.batch.add";
24
28
  MatrixAdapterEventType["COMMUNICATION_ROOM_MEMBER_BATCH_REMOVE"] = "communication.room.member.batch.remove";
25
29
  MatrixAdapterEventType["COMMUNICATION_ROOM_MEMBER_LEFT"] = "communication.room.member.left";
30
+ MatrixAdapterEventType["COMMUNICATION_ROOM_MEMBER_UPDATED"] = "communication.room.member.updated";
31
+ MatrixAdapterEventType["COMMUNICATION_ROOM_RECEIPT_UPDATED"] = "communication.room.receipt.updated";
32
+ MatrixAdapterEventType["COMMUNICATION_ROOM_UNREAD_COUNTS_GET"] = "communication.room.unread_counts.get";
26
33
  MatrixAdapterEventType["COMMUNICATION_ROOM_UPDATE"] = "communication.room.update";
27
34
  MatrixAdapterEventType["COMMUNICATION_SPACE_CREATE"] = "communication.space.create";
28
35
  MatrixAdapterEventType["COMMUNICATION_SPACE_DELETE"] = "communication.space.delete";
@@ -1 +1 @@
1
- {"version":3,"file":"matrix.adapter.event.type.js","sourceRoot":"","sources":["../src/matrix.adapter.event.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAgCX;AAhCD,WAAY,sBAAsB;IAEhC,+EAAqD,CAAA;IACrD,mGAAyE,CAAA;IACzE,uFAA6D,CAAA;IAC7D,iFAAuD,CAAA;IACvD,2FAAiE,CAAA;IACjE,mFAAyD,CAAA;IACzD,mFAAyD,CAAA;IACzD,uFAA6D,CAAA;IAC7D,mFAAyD,CAAA;IACzD,yFAA+D,CAAA;IAC/D,2FAAiE,CAAA;IACjE,iFAAuD,CAAA;IACvD,iFAAuD,CAAA;IACvD,6FAAmE,CAAA;IACnE,2EAAiD,CAAA;IACjD,6EAAmD,CAAA;IACnD,2FAAiE,CAAA;IACjE,qGAA2E,CAAA;IAC3E,2GAAiF,CAAA;IACjF,2FAAiE,CAAA;IACjE,iFAAuD,CAAA;IACvD,mFAAyD,CAAA;IACzD,mFAAyD,CAAA;IACzD,6EAAmD,CAAA;IACnD,+EAAqD,CAAA;IACrD,uGAA6E,CAAA;IAC7E,6GAAmF,CAAA;IACnF,mFAAyD,CAAA;IACzD,iGAAuE,CAAA;AAEzE,CAAC,EAhCW,sBAAsB,sCAAtB,sBAAsB,QAgCjC"}
1
+ {"version":3,"file":"matrix.adapter.event.type.js","sourceRoot":"","sources":["../src/matrix.adapter.event.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAuCX;AAvCD,WAAY,sBAAsB;IAEhC,+EAAqD,CAAA;IACrD,mGAAyE,CAAA;IACzE,uFAA6D,CAAA;IAC7D,uFAA6D,CAAA;IAC7D,iFAAuD,CAAA;IACvD,mFAAyD,CAAA;IACzD,2FAAiE,CAAA;IACjE,2FAAiE,CAAA;IACjE,mFAAyD,CAAA;IACzD,mFAAyD,CAAA;IACzD,uFAA6D,CAAA;IAC7D,mFAAyD,CAAA;IACzD,yFAA+D,CAAA;IAC/D,2FAAiE,CAAA;IACjE,iFAAuD,CAAA;IACvD,mFAAyD,CAAA;IACzD,iFAAuD,CAAA;IACvD,6FAAmE,CAAA;IACnE,2EAAiD,CAAA;IACjD,6EAAmD,CAAA;IACnD,2FAAiE,CAAA;IACjE,qGAA2E,CAAA;IAC3E,2GAAiF,CAAA;IACjF,2FAAiE,CAAA;IACjE,iGAAuE,CAAA;IACvE,mGAAyE,CAAA;IACzE,uGAA6E,CAAA;IAC7E,iFAAuD,CAAA;IACvD,mFAAyD,CAAA;IACzD,mFAAyD,CAAA;IACzD,6EAAmD,CAAA;IACnD,+EAAqD,CAAA;IACrD,uGAA6E,CAAA;IAC7E,6GAAmF,CAAA;IACnF,mFAAyD,CAAA;IACzD,iGAAuE,CAAA;AAEzE,CAAC,EAvCW,sBAAsB,sCAAtB,sBAAsB,QAuCjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alkemio/matrix-adapter-lib",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Library for interacting with Alkemio Matrix Adapter service",
5
5
  "author": "Alkemio Foundation",
6
6
  "private": false,