@fedify/fedify 0.11.0 → 0.12.0-dev.263

Sign up to get free protection for your applications and to get access to all the features.
@@ -775,6 +775,149 @@ export declare class Emoji extends Object {
775
775
  }): Promise<Emoji>;
776
776
  protected _getCustomInspectProxy(): Record<string, unknown>;
777
777
  }
778
+ /** `ChatMessage`s are the messages sent in 1-on-1 chats. They are similar to
779
+ * {@link Note}s, but the addressing is done by having a single AP actor in
780
+ * the `to` field. Addressing multiple actors is not allowed. These messages
781
+ * are always private, there is no public version of them. They are created with
782
+ * a {@link Create} activity.
783
+ */
784
+ export declare class ChatMessage extends Object {
785
+ /**
786
+ * The type URI of {@link ChatMessage}: `http://litepub.social/ns#ChatMessage`.
787
+ */
788
+ static get typeId(): URL;
789
+ /**
790
+ * Constructs a new instance of ChatMessage with the given values.
791
+ * @param values The values to initialize the instance with.
792
+ * @param options The options to use for initialization.
793
+ */
794
+ constructor(values: {
795
+ id?: URL | null;
796
+ attachments?: (Object | Link | PropertyValue | URL)[];
797
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
798
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
799
+ audience?: Object | URL | null;
800
+ audiences?: (Object | URL)[];
801
+ content?: string | LanguageString | null;
802
+ contents?: ((string | LanguageString))[];
803
+ contexts?: (Object | Link | URL)[];
804
+ name?: string | LanguageString | null;
805
+ names?: ((string | LanguageString))[];
806
+ endTime?: dntShim.Temporal.Instant | null;
807
+ generators?: (Object | Link | URL)[];
808
+ icon?: Image | URL | null;
809
+ icons?: (Image | URL)[];
810
+ image?: Image | URL | null;
811
+ images?: (Image | URL)[];
812
+ replyTarget?: Object | Link | URL | null;
813
+ replyTargets?: (Object | Link | URL)[];
814
+ location?: Object | Link | URL | null;
815
+ locations?: (Object | Link | URL)[];
816
+ preview?: Link | Object | URL | null;
817
+ previews?: (Link | Object | URL)[];
818
+ published?: dntShim.Temporal.Instant | null;
819
+ replies?: Collection | URL | null;
820
+ startTime?: dntShim.Temporal.Instant | null;
821
+ summary?: string | LanguageString | null;
822
+ summaries?: ((string | LanguageString))[];
823
+ tags?: (Object | Link | URL)[];
824
+ updated?: dntShim.Temporal.Instant | null;
825
+ url?: URL | Link | null;
826
+ urls?: ((URL | Link))[];
827
+ to?: Object | URL | null;
828
+ tos?: (Object | URL)[];
829
+ bto?: Object | URL | null;
830
+ btos?: (Object | URL)[];
831
+ cc?: Object | URL | null;
832
+ ccs?: (Object | URL)[];
833
+ bcc?: Object | URL | null;
834
+ bccs?: (Object | URL)[];
835
+ mediaType?: string | null;
836
+ duration?: dntShim.Temporal.Duration | null;
837
+ sensitive?: boolean | null;
838
+ proof?: DataIntegrityProof | URL | null;
839
+ proofs?: (DataIntegrityProof | URL)[];
840
+ }, { documentLoader, contextLoader, }?: {
841
+ documentLoader?: DocumentLoader;
842
+ contextLoader?: DocumentLoader;
843
+ });
844
+ /**
845
+ * Clones this instance, optionally updating it with the given values.
846
+ * @param values The values to update the clone with.
847
+ * @options The options to use for cloning.
848
+ * @returns The cloned instance.
849
+ */
850
+ clone(values?: {
851
+ id?: URL | null;
852
+ attachments?: (Object | Link | PropertyValue | URL)[];
853
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
854
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
855
+ audience?: Object | URL | null;
856
+ audiences?: (Object | URL)[];
857
+ content?: string | LanguageString | null;
858
+ contents?: ((string | LanguageString))[];
859
+ contexts?: (Object | Link | URL)[];
860
+ name?: string | LanguageString | null;
861
+ names?: ((string | LanguageString))[];
862
+ endTime?: dntShim.Temporal.Instant | null;
863
+ generators?: (Object | Link | URL)[];
864
+ icon?: Image | URL | null;
865
+ icons?: (Image | URL)[];
866
+ image?: Image | URL | null;
867
+ images?: (Image | URL)[];
868
+ replyTarget?: Object | Link | URL | null;
869
+ replyTargets?: (Object | Link | URL)[];
870
+ location?: Object | Link | URL | null;
871
+ locations?: (Object | Link | URL)[];
872
+ preview?: Link | Object | URL | null;
873
+ previews?: (Link | Object | URL)[];
874
+ published?: dntShim.Temporal.Instant | null;
875
+ replies?: Collection | URL | null;
876
+ startTime?: dntShim.Temporal.Instant | null;
877
+ summary?: string | LanguageString | null;
878
+ summaries?: ((string | LanguageString))[];
879
+ tags?: (Object | Link | URL)[];
880
+ updated?: dntShim.Temporal.Instant | null;
881
+ url?: URL | Link | null;
882
+ urls?: ((URL | Link))[];
883
+ to?: Object | URL | null;
884
+ tos?: (Object | URL)[];
885
+ bto?: Object | URL | null;
886
+ btos?: (Object | URL)[];
887
+ cc?: Object | URL | null;
888
+ ccs?: (Object | URL)[];
889
+ bcc?: Object | URL | null;
890
+ bccs?: (Object | URL)[];
891
+ mediaType?: string | null;
892
+ duration?: dntShim.Temporal.Duration | null;
893
+ sensitive?: boolean | null;
894
+ proof?: DataIntegrityProof | URL | null;
895
+ proofs?: (DataIntegrityProof | URL)[];
896
+ }, options?: {
897
+ documentLoader?: DocumentLoader;
898
+ contextLoader?: DocumentLoader;
899
+ }): ChatMessage;
900
+ /**
901
+ * Converts this object to a JSON-LD structure.
902
+ * @returns The JSON-LD representation of this object.
903
+ */
904
+ toJsonLd(options?: {
905
+ expand?: boolean;
906
+ contextLoader?: DocumentLoader;
907
+ context?: string | Record<string, string> | (string | Record<string, string>)[];
908
+ }): Promise<unknown>;
909
+ /**
910
+ * Converts a JSON-LD structure to an object of this type.
911
+ * @param json The JSON-LD structure to convert.
912
+ * @returns The object of this type.
913
+ * @throws {TypeError} If the given `json` is invalid.
914
+ */
915
+ static fromJsonLd(json: unknown, options?: {
916
+ documentLoader?: DocumentLoader;
917
+ contextLoader?: DocumentLoader;
918
+ }): Promise<ChatMessage>;
919
+ protected _getCustomInspectProxy(): Record<string, unknown>;
920
+ }
778
921
  /** A pair of property name and value.
779
922
  */
780
923
  export declare class PropertyValue {