@alkemio/matrix-adapter-lib 0.8.6 → 0.8.7
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/dist/commands.d.ts +20 -1
- package/dist/commands.js +19 -0
- package/dist/commands.js.map +1 -1
- package/dist/dto/generated.d.ts +86 -1
- package/dist/dto/generated.js +7 -2
- package/dist/dto/generated.js.map +1 -1
- package/dist/matrix.adapter.event.type.d.ts +5 -0
- package/dist/matrix.adapter.event.type.js +5 -0
- package/dist/matrix.adapter.event.type.js.map +1 -1
- package/package.json +1 -1
package/dist/commands.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AddReactionRequest, AddReactionResponse, BaseResponse, BatchAddMemberRequest, BatchAddMemberResponse, BatchAddSpaceMemberRequest, BatchAddSpaceMemberResponse, BatchGetLastMessagesRequest, BatchGetLastMessagesResponse, BatchGetUnreadCountsRequest, BatchGetUnreadCountsResponse, BatchRemoveMemberRequest, BatchRemoveMemberResponse, BatchRemoveSpaceMemberRequest, BatchRemoveSpaceMemberResponse, CreateRoomRequest, CreateSpaceRequest, DMRequestedEvent, DeleteMessageRequest, DeleteRoomRequest, DeleteSpaceRequest, GetLastMessageRequest, GetLastMessageResponse, GetMessageRequest, GetMessageResponse, GetReactionRequest, GetReactionResponse, GetRoomAsUserRequest, GetRoomAsUserResponse, 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, RoomUpdatedEvent, SendMessageRequest, SendMessageResponse, SetParentRequest, SyncActorRequest, UpdateRoomRequest, UpdateSpaceRequest } from './dto';
|
|
1
|
+
import type { AddReactionRequest, AddReactionResponse, BaseResponse, BatchAddMemberRequest, BatchAddMemberResponse, BatchAddSpaceMemberRequest, BatchAddSpaceMemberResponse, BatchGetLastMessagesRequest, BatchGetLastMessagesResponse, BatchGetUnreadCountsRequest, BatchGetUnreadCountsResponse, BatchRemoveMemberRequest, BatchRemoveMemberResponse, BatchRemoveSpaceMemberRequest, BatchRemoveSpaceMemberResponse, CreateRoomRequest, CreateSpaceRequest, DMRequestedEvent, DeleteMessageRequest, DeleteRoomRequest, DeleteSpaceRequest, GetLastMessageRequest, GetLastMessageResponse, GetMessageRequest, GetMessageResponse, GetReactionRequest, GetReactionResponse, GetRoomAsUserRequest, GetRoomAsUserResponse, GetRoomMembersRequest, GetRoomMembersResponse, GetRoomRequest, GetRoomResponse, GetRoomStateRequest, GetRoomStateResponse, GetSpaceRequest, GetSpaceResponse, GetSpaceStateRequest, GetSpaceStateResponse, GetThreadMessagesRequest, GetThreadMessagesResponse, GetUnreadCountsRequest, GetUnreadCountsResponse, ListRoomsRequest, ListRoomsResponse, ListSpacesRequest, ListSpacesResponse, MarkMessageReadRequest, MessageEditedEvent, MessageReceivedPayload, MessageRedactedEvent, ReactionAddedEvent, ReactionRemovedEvent, ReadReceiptUpdatedEvent, RemoveReactionRequest, RoomCreatedEvent, RoomMemberLeftEvent, RoomMemberUpdatedEvent, RoomUpdatedEvent, SendMessageRequest, SendMessageResponse, SetParentRequest, SetRoomStateRequest, SetSpaceStateRequest, SpaceUpdatedEvent, SyncActorRequest, UpdateRoomRequest, UpdateSpaceRequest } from './dto';
|
|
2
2
|
export declare const Commands: {
|
|
3
3
|
readonly 'communication.actor.sync': {
|
|
4
4
|
readonly request: SyncActorRequest;
|
|
@@ -80,6 +80,14 @@ export declare const Commands: {
|
|
|
80
80
|
readonly request: GetRoomMembersRequest;
|
|
81
81
|
readonly response: GetRoomMembersResponse;
|
|
82
82
|
};
|
|
83
|
+
readonly 'communication.room.state.get': {
|
|
84
|
+
readonly request: GetRoomStateRequest;
|
|
85
|
+
readonly response: GetRoomStateResponse;
|
|
86
|
+
};
|
|
87
|
+
readonly 'communication.room.state.set': {
|
|
88
|
+
readonly request: SetRoomStateRequest;
|
|
89
|
+
readonly response: BaseResponse;
|
|
90
|
+
};
|
|
83
91
|
readonly 'communication.room.unread_counts.get': {
|
|
84
92
|
readonly request: GetUnreadCountsRequest;
|
|
85
93
|
readonly response: GetUnreadCountsResponse;
|
|
@@ -112,6 +120,14 @@ export declare const Commands: {
|
|
|
112
120
|
readonly request: BatchRemoveSpaceMemberRequest;
|
|
113
121
|
readonly response: BatchRemoveSpaceMemberResponse;
|
|
114
122
|
};
|
|
123
|
+
readonly 'communication.space.state.get': {
|
|
124
|
+
readonly request: GetSpaceStateRequest;
|
|
125
|
+
readonly response: GetSpaceStateResponse;
|
|
126
|
+
};
|
|
127
|
+
readonly 'communication.space.state.set': {
|
|
128
|
+
readonly request: SetSpaceStateRequest;
|
|
129
|
+
readonly response: BaseResponse;
|
|
130
|
+
};
|
|
115
131
|
readonly 'communication.space.update': {
|
|
116
132
|
readonly request: UpdateSpaceRequest;
|
|
117
133
|
readonly response: BaseResponse;
|
|
@@ -155,6 +171,9 @@ export declare const OutgoingEvents: {
|
|
|
155
171
|
readonly 'communication.room.updated': {
|
|
156
172
|
readonly payload: RoomUpdatedEvent;
|
|
157
173
|
};
|
|
174
|
+
readonly 'communication.space.updated': {
|
|
175
|
+
readonly payload: SpaceUpdatedEvent;
|
|
176
|
+
};
|
|
158
177
|
};
|
|
159
178
|
export type CommandTopic = keyof typeof Commands;
|
|
160
179
|
export type RequestFor<T extends CommandTopic> = (typeof Commands)[T]['request'];
|
package/dist/commands.js
CHANGED
|
@@ -82,6 +82,14 @@ exports.Commands = {
|
|
|
82
82
|
request: {},
|
|
83
83
|
response: {},
|
|
84
84
|
},
|
|
85
|
+
'communication.room.state.get': {
|
|
86
|
+
request: {},
|
|
87
|
+
response: {},
|
|
88
|
+
},
|
|
89
|
+
'communication.room.state.set': {
|
|
90
|
+
request: {},
|
|
91
|
+
response: {},
|
|
92
|
+
},
|
|
85
93
|
'communication.room.unread_counts.get': {
|
|
86
94
|
request: {},
|
|
87
95
|
response: {},
|
|
@@ -114,6 +122,14 @@ exports.Commands = {
|
|
|
114
122
|
request: {},
|
|
115
123
|
response: {},
|
|
116
124
|
},
|
|
125
|
+
'communication.space.state.get': {
|
|
126
|
+
request: {},
|
|
127
|
+
response: {},
|
|
128
|
+
},
|
|
129
|
+
'communication.space.state.set': {
|
|
130
|
+
request: {},
|
|
131
|
+
response: {},
|
|
132
|
+
},
|
|
117
133
|
'communication.space.update': {
|
|
118
134
|
request: {},
|
|
119
135
|
response: {},
|
|
@@ -157,5 +173,8 @@ exports.OutgoingEvents = {
|
|
|
157
173
|
'communication.room.updated': {
|
|
158
174
|
payload: {},
|
|
159
175
|
},
|
|
176
|
+
'communication.space.updated': {
|
|
177
|
+
payload: {},
|
|
178
|
+
},
|
|
160
179
|
};
|
|
161
180
|
//# sourceMappingURL=commands.js.map
|
package/dist/commands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":";;;AA6Ea,QAAA,QAAQ,GAAG;IACtB,0BAA0B,EAAE;QAC1B,OAAO,EAAE,EAAsB;QAC/B,QAAQ,EAAE,EAAkB;KAC7B;IACD,oCAAoC,EAAE;QACpC,OAAO,EAAE,EAAsB;QAC/B,QAAQ,EAAE,EAAkB;KAC7B;IACD,8BAA8B,EAAE;QAC9B,OAAO,EAAE,EAA0B;QACnC,QAAQ,EAAE,EAAkB;KAC7B;IACD,2BAA2B,EAAE;QAC3B,OAAO,EAAE,EAAuB;QAChC,QAAQ,EAAE,EAAw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AgC,EAAE;QAChC,OAAO,EAAE,EAA4B;KACtC;IACD,gCAAgC,EAAE;QAChC,OAAO,EAAE,EAA0B;KACpC;IACD,8BAA8B,EAAE;QAC9B,OAAO,EAAE,EAAwB;KAClC;IACD,gCAAgC,EAAE;QAChC,OAAO,EAAE,EAA0B;KACpC;IACD,4BAA4B,EAAE;QAC5B,OAAO,EAAE,EAAsB;KAChC;IACD,iCAAiC,EAAE;QACjC,OAAO,EAAE,EAAsB;KAChC;IACD,gCAAgC,EAAE;QAChC,OAAO,EAAE,EAAyB;KACnC;IACD,mCAAmC,EAAE;QACnC,OAAO,EAAE,EAA4B;KACtC;IACD,oCAAoC,EAAE;QACpC,OAAO,EAAE,EAA6B;KACvC;IACD,4BAA4B,EAAE;QAC5B,OAAO,EAAE,EAAsB;KAChC;IACD,6BAA6B,EAAE;QAC7B,OAAO,EAAE,EAAuB;KACjC;CACO,CAAC"}
|
package/dist/dto/generated.d.ts
CHANGED
|
@@ -75,6 +75,10 @@ export declare const TopicSpaceList = "communication.space.list";
|
|
|
75
75
|
export declare const TopicHierarchySetParent = "communication.hierarchy.set_parent";
|
|
76
76
|
export declare const TopicSpaceMemberBatchAdd = "communication.space.member.batch.add";
|
|
77
77
|
export declare const TopicSpaceMemberBatchRemove = "communication.space.member.batch.remove";
|
|
78
|
+
export declare const TopicRoomStateSet = "communication.room.state.set";
|
|
79
|
+
export declare const TopicRoomStateGet = "communication.room.state.get";
|
|
80
|
+
export declare const TopicSpaceStateSet = "communication.space.state.set";
|
|
81
|
+
export declare const TopicSpaceStateGet = "communication.space.state.get";
|
|
78
82
|
export declare const TopicRoomDMRequested = "communication.room.dm.requested";
|
|
79
83
|
export declare const TopicReactionAdded = "communication.reaction.added";
|
|
80
84
|
export declare const TopicReactionRemoved = "communication.reaction.removed";
|
|
@@ -92,6 +96,7 @@ export declare const TopicMessageRedacted = "communication.message.redacted";
|
|
|
92
96
|
export declare const TopicRoomCreated = "communication.room.created";
|
|
93
97
|
export declare const TopicRoomMemberUpdated = "communication.room.member.updated";
|
|
94
98
|
export declare const TopicRoomUpdated = "communication.room.updated";
|
|
99
|
+
export declare const TopicSpaceUpdated = "communication.space.updated";
|
|
95
100
|
export interface CommandDef {
|
|
96
101
|
Topic: string;
|
|
97
102
|
RequestType: string;
|
|
@@ -176,6 +181,13 @@ export interface RoomUpdatedEvent {
|
|
|
176
181
|
topic?: string;
|
|
177
182
|
timestamp: number;
|
|
178
183
|
}
|
|
184
|
+
export interface SpaceUpdatedEvent {
|
|
185
|
+
alkemio_context_id: AlkemioContextID;
|
|
186
|
+
display_name?: string;
|
|
187
|
+
avatar_url?: string;
|
|
188
|
+
topic?: string;
|
|
189
|
+
timestamp: number;
|
|
190
|
+
}
|
|
179
191
|
export interface SetParentRequest {
|
|
180
192
|
child_id: string;
|
|
181
193
|
is_space: boolean;
|
|
@@ -317,6 +329,12 @@ export interface CreateRoomRequest {
|
|
|
317
329
|
avatar_url?: string;
|
|
318
330
|
parent_context_id?: AlkemioContextID;
|
|
319
331
|
join_rule?: JoinRule;
|
|
332
|
+
is_public?: boolean;
|
|
333
|
+
custom_state?: {
|
|
334
|
+
[key: string]: {
|
|
335
|
+
[key: string]: any;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
320
338
|
}
|
|
321
339
|
export interface GetRoomRequest {
|
|
322
340
|
alkemio_room_id: AlkemioRoomID;
|
|
@@ -325,6 +343,11 @@ export interface GetRoomResponse extends BaseResponse {
|
|
|
325
343
|
alkemio_room_id: AlkemioRoomID;
|
|
326
344
|
display_name: string;
|
|
327
345
|
avatar_url?: string;
|
|
346
|
+
custom_state?: {
|
|
347
|
+
[key: string]: {
|
|
348
|
+
[key: string]: any;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
328
351
|
member_actor_ids: AlkemioActorID[];
|
|
329
352
|
messages: MessageDto[];
|
|
330
353
|
}
|
|
@@ -332,9 +355,14 @@ export interface UpdateRoomRequest {
|
|
|
332
355
|
alkemio_room_id: AlkemioRoomID;
|
|
333
356
|
name?: string;
|
|
334
357
|
topic?: string;
|
|
335
|
-
is_public?: boolean;
|
|
336
358
|
avatar_url?: string;
|
|
337
359
|
join_rule?: JoinRule;
|
|
360
|
+
is_public?: boolean;
|
|
361
|
+
custom_state?: {
|
|
362
|
+
[key: string]: {
|
|
363
|
+
[key: string]: any;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
338
366
|
}
|
|
339
367
|
export interface DeleteRoomRequest {
|
|
340
368
|
alkemio_room_id: AlkemioRoomID;
|
|
@@ -384,6 +412,12 @@ export interface CreateSpaceRequest {
|
|
|
384
412
|
parent_context_id?: AlkemioContextID;
|
|
385
413
|
join_rule?: JoinRule;
|
|
386
414
|
initial_members?: AlkemioActorID[];
|
|
415
|
+
is_public?: boolean;
|
|
416
|
+
custom_state?: {
|
|
417
|
+
[key: string]: {
|
|
418
|
+
[key: string]: any;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
387
421
|
}
|
|
388
422
|
export interface GetSpaceRequest {
|
|
389
423
|
alkemio_context_id: AlkemioContextID;
|
|
@@ -394,6 +428,11 @@ export interface GetSpaceResponse extends BaseResponse {
|
|
|
394
428
|
topic?: string;
|
|
395
429
|
avatar_url?: string;
|
|
396
430
|
join_rule: JoinRule;
|
|
431
|
+
custom_state?: {
|
|
432
|
+
[key: string]: {
|
|
433
|
+
[key: string]: any;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
397
436
|
member_actor_ids: AlkemioActorID[];
|
|
398
437
|
children: SpaceChildDto[];
|
|
399
438
|
parent_context_id?: AlkemioContextID;
|
|
@@ -404,6 +443,12 @@ export interface UpdateSpaceRequest {
|
|
|
404
443
|
topic?: string;
|
|
405
444
|
avatar_url?: string;
|
|
406
445
|
join_rule?: JoinRule;
|
|
446
|
+
is_public?: boolean;
|
|
447
|
+
custom_state?: {
|
|
448
|
+
[key: string]: {
|
|
449
|
+
[key: string]: any;
|
|
450
|
+
};
|
|
451
|
+
};
|
|
407
452
|
}
|
|
408
453
|
export interface DeleteSpaceRequest {
|
|
409
454
|
alkemio_context_id: AlkemioContextID;
|
|
@@ -435,6 +480,46 @@ export interface BatchRemoveSpaceMemberResponse extends BaseResponse {
|
|
|
435
480
|
[key: string]: BaseResponse;
|
|
436
481
|
};
|
|
437
482
|
}
|
|
483
|
+
export interface SetRoomStateRequest {
|
|
484
|
+
alkemio_room_id: AlkemioRoomID;
|
|
485
|
+
state: {
|
|
486
|
+
[key: string]: {
|
|
487
|
+
[key: string]: any;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
export interface GetRoomStateRequest {
|
|
492
|
+
alkemio_room_id: AlkemioRoomID;
|
|
493
|
+
event_types?: string[];
|
|
494
|
+
}
|
|
495
|
+
export interface GetRoomStateResponse extends BaseResponse {
|
|
496
|
+
alkemio_room_id: AlkemioRoomID;
|
|
497
|
+
state: {
|
|
498
|
+
[key: string]: {
|
|
499
|
+
[key: string]: any;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
export interface SetSpaceStateRequest {
|
|
504
|
+
alkemio_context_id: AlkemioContextID;
|
|
505
|
+
state: {
|
|
506
|
+
[key: string]: {
|
|
507
|
+
[key: string]: any;
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
export interface GetSpaceStateRequest {
|
|
512
|
+
alkemio_context_id: AlkemioContextID;
|
|
513
|
+
event_types?: string[];
|
|
514
|
+
}
|
|
515
|
+
export interface GetSpaceStateResponse extends BaseResponse {
|
|
516
|
+
alkemio_context_id: AlkemioContextID;
|
|
517
|
+
state: {
|
|
518
|
+
[key: string]: {
|
|
519
|
+
[key: string]: any;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
}
|
|
438
523
|
export type AlkemioRoomID = string;
|
|
439
524
|
export type AlkemioActorID = string;
|
|
440
525
|
export type MessageID = string;
|
package/dist/dto/generated.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.JoinRuleRestricted = exports.JoinRuleInvite = exports.JoinRulePublic = exports.RoomTypeDirect = exports.RoomTypeCommunity = void 0;
|
|
3
|
+
exports.ErrCodeActorNotFound = exports.ErrCodeSpaceNotFound = exports.ErrCodeRoomNotFound = exports.ErrCodeInvalidParam = exports.TopicSpaceUpdated = exports.TopicRoomUpdated = exports.TopicRoomMemberUpdated = exports.TopicRoomCreated = exports.TopicMessageRedacted = exports.TopicMessageEdited = exports.TopicReadReceiptUpdated = exports.TopicBatchLastMessagesGet = exports.TopicLastMessageGet = exports.TopicBatchUnreadCountsGet = exports.TopicUnreadCountsGet = exports.TopicMessageRead = exports.TopicThreadMessagesGet = exports.TopicRoomMembersGet = exports.TopicRoomMemberLeft = exports.TopicReactionRemoved = exports.TopicReactionAdded = exports.TopicRoomDMRequested = exports.TopicSpaceStateGet = exports.TopicSpaceStateSet = exports.TopicRoomStateGet = exports.TopicRoomStateSet = 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.TopicRoomGetAsUser = exports.TopicRoomGet = exports.TopicRoomCreate = void 0;
|
|
4
|
+
exports.JoinRuleRestricted = exports.JoinRuleInvite = exports.JoinRulePublic = exports.RoomTypeDirect = exports.RoomTypeCommunity = exports.ErrCodeNotAllowed = exports.ErrCodeInternalError = exports.ErrCodeMatrixError = exports.ErrCodeReactionNotFound = exports.ErrCodeMessageNotFound = void 0;
|
|
5
5
|
exports.TopicRoomCreate = "communication.room.create";
|
|
6
6
|
exports.TopicRoomGet = "communication.room.get";
|
|
7
7
|
exports.TopicRoomGetAsUser = "communication.room.get.as_user";
|
|
@@ -26,6 +26,10 @@ exports.TopicSpaceList = "communication.space.list";
|
|
|
26
26
|
exports.TopicHierarchySetParent = "communication.hierarchy.set_parent";
|
|
27
27
|
exports.TopicSpaceMemberBatchAdd = "communication.space.member.batch.add";
|
|
28
28
|
exports.TopicSpaceMemberBatchRemove = "communication.space.member.batch.remove";
|
|
29
|
+
exports.TopicRoomStateSet = "communication.room.state.set";
|
|
30
|
+
exports.TopicRoomStateGet = "communication.room.state.get";
|
|
31
|
+
exports.TopicSpaceStateSet = "communication.space.state.set";
|
|
32
|
+
exports.TopicSpaceStateGet = "communication.space.state.get";
|
|
29
33
|
exports.TopicRoomDMRequested = "communication.room.dm.requested";
|
|
30
34
|
exports.TopicReactionAdded = "communication.reaction.added";
|
|
31
35
|
exports.TopicReactionRemoved = "communication.reaction.removed";
|
|
@@ -43,6 +47,7 @@ exports.TopicMessageRedacted = "communication.message.redacted";
|
|
|
43
47
|
exports.TopicRoomCreated = "communication.room.created";
|
|
44
48
|
exports.TopicRoomMemberUpdated = "communication.room.member.updated";
|
|
45
49
|
exports.TopicRoomUpdated = "communication.room.updated";
|
|
50
|
+
exports.TopicSpaceUpdated = "communication.space.updated";
|
|
46
51
|
exports.ErrCodeInvalidParam = "INVALID_PARAM";
|
|
47
52
|
exports.ErrCodeRoomNotFound = "ROOM_NOT_FOUND";
|
|
48
53
|
exports.ErrCodeSpaceNotFound = "SPACE_NOT_FOUND";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated.js","sourceRoot":"","sources":["../../src/dto/generated.ts"],"names":[],"mappings":";;;;AAkHa,QAAA,eAAe,GAAG,2BAA2B,CAAC;AAI9C,QAAA,YAAY,GAAG,wBAAwB,CAAC;AAIxC,QAAA,kBAAkB,GAAG,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BAAiB,CAAC;AAIpD,QAAA,oBAAoB,GAAc,iBAAiB,CAAC;AAIpD,QAAA,sBAAsB,GAAc,mBAAmB,CAAC;AAIxD,QAAA,uBAAuB,GAAc,oBAAoB,CAAC;AAI1D,QAAA,kBAAkB,GAAc,cAAc,CAAC;AAI/C,QAAA,oBAAoB,GAAc,gBAAgB,CAAC;AAInD,QAAA,iBAAiB,GAAc,aAAa,CAAC;AAqqB7C,QAAA,iBAAiB,GAAa,WAAW,CAAC;AAI1C,QAAA,cAAc,GAAa,QAAQ,CAAC;AAQpC,QAAA,cAAc,GAAa,QAAQ,CAAC;AAIpC,QAAA,cAAc,GAAa,QAAQ,CAAC;AAIpC,QAAA,kBAAkB,GAAa,YAAY,CAAC"}
|
|
@@ -29,6 +29,8 @@ export declare enum MatrixAdapterEventType {
|
|
|
29
29
|
COMMUNICATION_ROOM_MEMBER_LEFT = "communication.room.member.left",
|
|
30
30
|
COMMUNICATION_ROOM_MEMBER_UPDATED = "communication.room.member.updated",
|
|
31
31
|
COMMUNICATION_ROOM_RECEIPT_UPDATED = "communication.room.receipt.updated",
|
|
32
|
+
COMMUNICATION_ROOM_STATE_GET = "communication.room.state.get",
|
|
33
|
+
COMMUNICATION_ROOM_STATE_SET = "communication.room.state.set",
|
|
32
34
|
COMMUNICATION_ROOM_UNREAD_COUNTS_GET = "communication.room.unread_counts.get",
|
|
33
35
|
COMMUNICATION_ROOM_UPDATE = "communication.room.update",
|
|
34
36
|
COMMUNICATION_ROOM_UPDATED = "communication.room.updated",
|
|
@@ -38,6 +40,9 @@ export declare enum MatrixAdapterEventType {
|
|
|
38
40
|
COMMUNICATION_SPACE_LIST = "communication.space.list",
|
|
39
41
|
COMMUNICATION_SPACE_MEMBER_BATCH_ADD = "communication.space.member.batch.add",
|
|
40
42
|
COMMUNICATION_SPACE_MEMBER_BATCH_REMOVE = "communication.space.member.batch.remove",
|
|
43
|
+
COMMUNICATION_SPACE_STATE_GET = "communication.space.state.get",
|
|
44
|
+
COMMUNICATION_SPACE_STATE_SET = "communication.space.state.set",
|
|
41
45
|
COMMUNICATION_SPACE_UPDATE = "communication.space.update",
|
|
46
|
+
COMMUNICATION_SPACE_UPDATED = "communication.space.updated",
|
|
42
47
|
COMMUNICATION_THREAD_MESSAGES_GET = "communication.thread.messages.get"
|
|
43
48
|
}
|
|
@@ -33,6 +33,8 @@ var MatrixAdapterEventType;
|
|
|
33
33
|
MatrixAdapterEventType["COMMUNICATION_ROOM_MEMBER_LEFT"] = "communication.room.member.left";
|
|
34
34
|
MatrixAdapterEventType["COMMUNICATION_ROOM_MEMBER_UPDATED"] = "communication.room.member.updated";
|
|
35
35
|
MatrixAdapterEventType["COMMUNICATION_ROOM_RECEIPT_UPDATED"] = "communication.room.receipt.updated";
|
|
36
|
+
MatrixAdapterEventType["COMMUNICATION_ROOM_STATE_GET"] = "communication.room.state.get";
|
|
37
|
+
MatrixAdapterEventType["COMMUNICATION_ROOM_STATE_SET"] = "communication.room.state.set";
|
|
36
38
|
MatrixAdapterEventType["COMMUNICATION_ROOM_UNREAD_COUNTS_GET"] = "communication.room.unread_counts.get";
|
|
37
39
|
MatrixAdapterEventType["COMMUNICATION_ROOM_UPDATE"] = "communication.room.update";
|
|
38
40
|
MatrixAdapterEventType["COMMUNICATION_ROOM_UPDATED"] = "communication.room.updated";
|
|
@@ -42,7 +44,10 @@ var MatrixAdapterEventType;
|
|
|
42
44
|
MatrixAdapterEventType["COMMUNICATION_SPACE_LIST"] = "communication.space.list";
|
|
43
45
|
MatrixAdapterEventType["COMMUNICATION_SPACE_MEMBER_BATCH_ADD"] = "communication.space.member.batch.add";
|
|
44
46
|
MatrixAdapterEventType["COMMUNICATION_SPACE_MEMBER_BATCH_REMOVE"] = "communication.space.member.batch.remove";
|
|
47
|
+
MatrixAdapterEventType["COMMUNICATION_SPACE_STATE_GET"] = "communication.space.state.get";
|
|
48
|
+
MatrixAdapterEventType["COMMUNICATION_SPACE_STATE_SET"] = "communication.space.state.set";
|
|
45
49
|
MatrixAdapterEventType["COMMUNICATION_SPACE_UPDATE"] = "communication.space.update";
|
|
50
|
+
MatrixAdapterEventType["COMMUNICATION_SPACE_UPDATED"] = "communication.space.updated";
|
|
46
51
|
MatrixAdapterEventType["COMMUNICATION_THREAD_MESSAGES_GET"] = "communication.thread.messages.get";
|
|
47
52
|
})(MatrixAdapterEventType || (exports.MatrixAdapterEventType = MatrixAdapterEventType = {}));
|
|
48
53
|
//# sourceMappingURL=matrix.adapter.event.type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matrix.adapter.event.type.js","sourceRoot":"","sources":["../src/matrix.adapter.event.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"matrix.adapter.event.type.js","sourceRoot":"","sources":["../src/matrix.adapter.event.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAiDX;AAjDD,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,mHAAyF,CAAA;IACzF,mHAAyF,CAAA;IACzF,iFAAuD,CAAA;IACvD,mFAAyD,CAAA;IACzD,iFAAuD,CAAA;IACvD,6FAAmE,CAAA;IACnE,2EAAiD,CAAA;IACjD,2FAAiE,CAAA;IACjE,qGAA2E,CAAA;IAC3E,6EAAmD,CAAA;IACnD,2FAAiE,CAAA;IACjE,qGAA2E,CAAA;IAC3E,2GAAiF,CAAA;IACjF,2FAAiE,CAAA;IACjE,iGAAuE,CAAA;IACvE,mGAAyE,CAAA;IACzE,uFAA6D,CAAA;IAC7D,uFAA6D,CAAA;IAC7D,uGAA6E,CAAA;IAC7E,iFAAuD,CAAA;IACvD,mFAAyD,CAAA;IACzD,mFAAyD,CAAA;IACzD,mFAAyD,CAAA;IACzD,6EAAmD,CAAA;IACnD,+EAAqD,CAAA;IACrD,uGAA6E,CAAA;IAC7E,6GAAmF,CAAA;IACnF,yFAA+D,CAAA;IAC/D,yFAA+D,CAAA;IAC/D,mFAAyD,CAAA;IACzD,qFAA2D,CAAA;IAC3D,iGAAuE,CAAA;AAEzE,CAAC,EAjDW,sBAAsB,sCAAtB,sBAAsB,QAiDjC"}
|