@@ -284,366 +284,7 @@ const chatEndpoints = API.v1
284284 200 : ajv . compile < { message : IMessage } > ( {
285285 type : 'object' ,
286286 properties : {
287- message : {
288- type : 'object' ,
289- properties : {
290- rid : { type : 'string' } ,
291- msg : { type : 'string' } ,
292- tmid : { type : 'string' } ,
293- tshow : { type : 'boolean' } ,
294- ts : {
295- type : 'string' ,
296- format : 'date-time' ,
297- } ,
298- mentions : {
299- type : 'array' ,
300- items : {
301- $ref : '#/components/schemas/MessageMention' ,
302- } ,
303- } ,
304- groupable : {
305- type : 'boolean' ,
306- } ,
307- channels : {
308- type : 'array' ,
309- items : {
310- $ref : '#/components/schemas/PickIRoom_idname' ,
311- } ,
312- } ,
313- u : {
314- $ref : '#/components/schemas/RequiredPickIUser_idusernamePickIUsername' ,
315- } ,
316- blocks : {
317- $ref : '#/components/schemas/MessageSurfaceLayout' ,
318- } ,
319- alias : {
320- type : 'string' ,
321- } ,
322- md : {
323- anyOf : [
324- {
325- type : 'array' ,
326- items : {
327- anyOf : [
328- {
329- $ref : '#/components/schemas/Paragraph' ,
330- } ,
331- {
332- $ref : '#/components/schemas/Code' ,
333- } ,
334- {
335- $ref : '#/components/schemas/Heading' ,
336- } ,
337- {
338- $ref : '#/components/schemas/Quote' ,
339- } ,
340- {
341- $ref : '#/components/schemas/ListItem' ,
342- } ,
343- {
344- $ref : '#/components/schemas/Tasks' ,
345- } ,
346- {
347- $ref : '#/components/schemas/OrderedList' ,
348- } ,
349- {
350- $ref : '#/components/schemas/UnorderedList' ,
351- } ,
352- {
353- $ref : '#/components/schemas/LineBreak' ,
354- } ,
355- {
356- $ref : '#/components/schemas/KaTeX' ,
357- } ,
358- ] ,
359- } ,
360- } ,
361- {
362- type : 'array' ,
363- items : {
364- anyOf : [
365- {
366- $ref : '#/components/schemas/BigEmoji.o1' ,
367- } ,
368- ] ,
369- } ,
370- minItems : 1 ,
371- maxItems : 1 ,
372- } ,
373- ] ,
374- } ,
375- _hidden : {
376- type : 'boolean' ,
377- } ,
378- imported : {
379- type : 'boolean' ,
380- } ,
381- replies : {
382- type : 'array' ,
383- items : {
384- type : 'string' ,
385- } ,
386- } ,
387- location : {
388- type : 'object' ,
389- properties : {
390- type : {
391- type : 'string' ,
392- enum : [ 'Point' ] ,
393- } ,
394- coordinates : {
395- type : 'array' ,
396- items : {
397- type : 'number' ,
398- } ,
399- minItems : 2 ,
400- maxItems : 2 ,
401- } ,
402- } ,
403- required : [ 'type' , 'coordinates' ] ,
404- } ,
405- starred : {
406- type : 'array' ,
407- items : {
408- type : 'object' ,
409- properties : {
410- _id : {
411- type : 'string' ,
412- } ,
413- } ,
414- required : [ '_id' ] ,
415- } ,
416- } ,
417- pinned : {
418- type : 'boolean' ,
419- } ,
420- pinnedAt : {
421- type : 'string' ,
422- format : 'date-time' ,
423- } ,
424- pinnedBy : {
425- $ref : '#/components/schemas/PickIUser_idusername' ,
426- } ,
427- unread : {
428- type : 'boolean' ,
429- } ,
430- temp : {
431- type : 'boolean' ,
432- } ,
433- drid : {
434- type : 'string' ,
435- } ,
436- tlm : {
437- type : 'string' ,
438- format : 'date-time' ,
439- } ,
440- dcount : {
441- type : 'number' ,
442- } ,
443- tcount : {
444- type : 'number' ,
445- } ,
446- t : {
447- type : 'string' ,
448- } ,
449- e2e : {
450- type : 'string' ,
451- enum : [ 'pending' , 'done' ] ,
452- } ,
453- e2eMentions : {
454- type : 'object' ,
455- properties : {
456- e2eUserMentions : {
457- type : 'array' ,
458- items : {
459- type : 'string' ,
460- } ,
461- } ,
462- e2eChannelMentions : {
463- type : 'array' ,
464- items : {
465- type : 'string' ,
466- } ,
467- } ,
468- } ,
469- required : [ ] ,
470- } ,
471- otrAck : {
472- type : 'string' ,
473- } ,
474- urls : {
475- type : 'array' ,
476- items : {
477- $ref : '#/components/schemas/MessageUrl' ,
478- } ,
479- } ,
480- actionLinks : {
481- type : 'array' ,
482- items : {
483- type : 'object' ,
484- properties : {
485- icon : {
486- type : 'string' ,
487- } ,
488- i18nLabel : { } ,
489- label : {
490- type : 'string' ,
491- } ,
492- method_id : {
493- type : 'string' ,
494- } ,
495- params : {
496- type : 'string' ,
497- } ,
498- } ,
499- required : [ 'icon' , 'i18nLabel' , 'label' , 'method_id' , 'params' ] ,
500- } ,
501- deprecated : true ,
502- } ,
503- file : {
504- $ref : '#/components/schemas/FileProp' ,
505- deprecated : true ,
506- } ,
507- fileUpload : {
508- type : 'object' ,
509- properties : {
510- publicFilePath : {
511- type : 'string' ,
512- } ,
513- type : {
514- type : 'string' ,
515- } ,
516- size : {
517- type : 'number' ,
518- } ,
519- } ,
520- required : [ 'publicFilePath' ] ,
521- } ,
522- files : {
523- type : 'array' ,
524- items : {
525- $ref : '#/components/schemas/FileProp' ,
526- } ,
527- } ,
528- attachments : { type : 'array' } ,
529- reactions : {
530- type : 'object' ,
531- properties : { } ,
532- required : [ ] ,
533- additionalProperties : {
534- type : 'object' ,
535- properties : {
536- names : {
537- type : 'array' ,
538- items : {
539- type : 'string' ,
540- } ,
541- } ,
542- usernames : {
543- type : 'array' ,
544- items : {
545- type : 'string' ,
546- } ,
547- } ,
548- federationReactionEventIds : {
549- $ref : '#/components/schemas/Recordstringstring' ,
550- } ,
551- } ,
552- required : [ 'usernames' ] ,
553- } ,
554- } ,
555- private : {
556- type : 'boolean' ,
557- } ,
558- bot : {
559- $ref : '#/components/schemas/Recordstringany' ,
560- } ,
561- sentByEmail : {
562- type : 'boolean' ,
563- } ,
564- webRtcCallEndTs : {
565- type : 'string' ,
566- format : 'date-time' ,
567- } ,
568- role : {
569- type : 'string' ,
570- } ,
571- avatar : {
572- type : 'string' ,
573- } ,
574- emoji : {
575- type : 'string' ,
576- } ,
577- tokens : {
578- type : 'array' ,
579- items : {
580- $ref : '#/components/schemas/Token' ,
581- } ,
582- } ,
583- html : {
584- type : 'string' ,
585- } ,
586- token : {
587- type : 'string' ,
588- } ,
589- federation : {
590- type : 'object' ,
591- properties : {
592- eventId : {
593- type : 'string' ,
594- } ,
595- } ,
596- required : [ 'eventId' ] ,
597- } ,
598- slaData : {
599- type : 'object' ,
600- properties : {
601- definedBy : {
602- $ref : '#/components/schemas/PickIUser_idusername' ,
603- } ,
604- sla : {
605- $ref : '#/components/schemas/PickIOmnichannelServiceLevelAgreementsname' ,
606- } ,
607- } ,
608- required : [ 'definedBy' ] ,
609- } ,
610- priorityData : {
611- type : 'object' ,
612- properties : {
613- definedBy : {
614- $ref : '#/components/schemas/PickIUser_idusername' ,
615- } ,
616- priority : {
617- $ref : '#/components/schemas/PickILivechatPrioritynamei18n' ,
618- } ,
619- } ,
620- required : [ 'definedBy' ] ,
621- } ,
622- customFields : {
623- $ref : '#/components/schemas/IMessageCustomFields' ,
624- } ,
625- content : {
626- type : 'object' ,
627- properties : {
628- algorithm : {
629- type : 'string' ,
630- } ,
631- ciphertext : {
632- type : 'string' ,
633- } ,
634- } ,
635- required : [ 'algorithm' , 'ciphertext' ] ,
636- } ,
637- _id : {
638- type : 'string' ,
639- } ,
640- _updatedAt : {
641- type : 'string' ,
642- format : 'date-time' ,
643- } ,
644- } ,
645- required : [ 'rid' , 'msg' , 'ts' , 'u' , '_id' , '_updatedAt' ] ,
646- } ,
287+ message : { $ref : '#/components/schemas/IMessage' } ,
647288 success : {
648289 type : 'boolean' ,
649290 enum : [ true ] ,
0 commit comments