@alkemio/matrix-adapter-lib 0.8.18 → 0.8.20

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.
@@ -123,6 +123,7 @@ export declare const ErrCodeMessageNotFound: ErrorCode;
123
123
  export declare const ErrCodeReactionNotFound: ErrorCode;
124
124
  export declare const ErrCodeMatrixError: ErrorCode;
125
125
  export declare const ErrCodeDeadlineExceeded: ErrorCode;
126
+ export declare const ErrCodeRequestExpired: ErrorCode;
126
127
  export declare const ErrCodeInternalError: ErrorCode;
127
128
  export declare const ErrCodeNotAllowed: ErrorCode;
128
129
  export interface ErrorResponse {
@@ -148,6 +149,7 @@ export interface Message {
148
149
  sender: string;
149
150
  timestamp: number;
150
151
  reactions: Reaction[];
152
+ attachments?: ReceivedAttachment[];
151
153
  }
152
154
  export interface Reaction {
153
155
  id: string;
@@ -204,9 +206,12 @@ export interface SetChildrenRequest {
204
206
  desired_child_context_ids: string[];
205
207
  children_are_spaces: boolean;
206
208
  apply_removals: boolean;
209
+ removable_child_context_ids?: string[];
207
210
  prune_unknown: boolean;
208
211
  sync_child_parent: boolean;
209
212
  dry_run: boolean;
213
+ operation_id?: string;
214
+ expires_at_unix_ms?: number;
210
215
  }
211
216
  export interface SetChildrenResponse extends BaseResponse {
212
217
  added: string[];
@@ -216,7 +221,9 @@ export interface SetChildrenResponse extends BaseResponse {
216
221
  unresolved: string[];
217
222
  parent_pointers_repaired: string[];
218
223
  parent_pointers_deferred: string[];
224
+ parent_pointers_unprocessable: string[];
219
225
  changed: boolean;
226
+ converged: boolean;
220
227
  dry_run: boolean;
221
228
  }
222
229
  export interface MessageDto {
@@ -226,12 +233,31 @@ export interface MessageDto {
226
233
  timestamp: number;
227
234
  reactions: ReactionDto[];
228
235
  thread_id?: MessageID;
236
+ attachments?: ReceivedAttachment[];
237
+ }
238
+ export interface AttachmentRef {
239
+ document_id: string;
240
+ display_name: string;
241
+ mime_type: string;
242
+ size: number;
243
+ width?: number;
244
+ height?: number;
245
+ }
246
+ export interface ReceivedAttachment {
247
+ document_id?: string;
248
+ media_id?: string;
249
+ display_name: string;
250
+ mime_type: string;
251
+ size: number;
252
+ width?: number;
253
+ height?: number;
229
254
  }
230
255
  export interface SendMessageRequest {
231
256
  alkemio_room_id: AlkemioRoomID;
232
257
  sender_actor_id: AlkemioActorID;
233
258
  content: string;
234
259
  parent_message_id?: MessageID;
260
+ attachments?: AttachmentRef[];
235
261
  }
236
262
  export interface SendMessageResponse extends BaseResponse {
237
263
  message_id: MessageID;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrCodeInvalidParam = exports.TopicSpaceUpdated = exports.TopicRoomUpdated = exports.TopicRoomMemberUpdated = exports.TopicRoomCreated = exports.TopicMessageRedacted = exports.TopicMessageEdited = exports.TopicReadReceiptUpdated = exports.TopicRoomInfo = exports.TopicRoomCheck = 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.TopicHierarchySetChildren = 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.ErrCodeDeadlineExceeded = exports.ErrCodeMatrixError = exports.ErrCodeReactionNotFound = exports.ErrCodeMessageNotFound = exports.ErrCodeActorNotFound = exports.ErrCodeSpaceNotFound = exports.ErrCodeRoomNotFound = void 0;
4
+ exports.JoinRuleRestricted = exports.JoinRuleInvite = exports.JoinRulePublic = exports.RoomTypeDirect = exports.RoomTypeCommunity = exports.ErrCodeNotAllowed = exports.ErrCodeInternalError = exports.ErrCodeRequestExpired = exports.ErrCodeDeadlineExceeded = exports.ErrCodeMatrixError = exports.ErrCodeReactionNotFound = exports.ErrCodeMessageNotFound = exports.ErrCodeActorNotFound = exports.ErrCodeSpaceNotFound = exports.ErrCodeRoomNotFound = 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";
@@ -59,6 +59,7 @@ exports.ErrCodeMessageNotFound = "MESSAGE_NOT_FOUND";
59
59
  exports.ErrCodeReactionNotFound = "REACTION_NOT_FOUND";
60
60
  exports.ErrCodeMatrixError = "MATRIX_ERROR";
61
61
  exports.ErrCodeDeadlineExceeded = "DEADLINE_EXCEEDED";
62
+ exports.ErrCodeRequestExpired = "REQUEST_EXPIRED";
62
63
  exports.ErrCodeInternalError = "INTERNAL_ERROR";
63
64
  exports.ErrCodeNotAllowed = "NOT_ALLOWED";
64
65
  exports.RoomTypeCommunity = "community";
@@ -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,CAA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AA,kBAAkB,GAAc,cAAc,CAAC;AAQ/C,QAAA,uBAAuB,GAAc,mBAAmB,CAAC;AAWzD,QAAA,qBAAqB,GAAc,iBAAiB,CAAC;AAIrD,QAAA,oBAAoB,GAAc,gBAAgB,CAAC;AAInD,QAAA,iBAAiB,GAAc,aAAa,CAAC;AAw7B7C,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alkemio/matrix-adapter-lib",
3
- "version": "0.8.18",
3
+ "version": "0.8.20",
4
4
  "description": "Library for interacting with Alkemio Matrix Adapter service",
5
5
  "author": "Alkemio Foundation",
6
6
  "private": false,