@fedify/fedify 0.10.0-dev.207 → 0.10.0-dev.211

Sign up to get free protection for your applications and to get access to all the features.
@@ -7013,6 +7013,192 @@ export declare class Profile extends Object {
7013
7013
  }): Promise<Profile>;
7014
7014
  protected _getCustomInspectProxy(): Record<string, unknown>;
7015
7015
  }
7016
+ /** Represents a question being asked. Question objects are an extension of
7017
+ * {@link IntransitiveActivity}. That is, the Question object is an Activity,
7018
+ * but the direct object is the question itself and therefore it would not
7019
+ * contain an `object` property.
7020
+ *
7021
+ * Either of the `anyOf` and `oneOf` properties *may* be used to express possible
7022
+ * answers, but a Question object *must not* have both properties.
7023
+ */
7024
+ export declare class Question extends IntransitiveActivity {
7025
+ #private;
7026
+ /**
7027
+ * The type URI of {@link Question}: `https://www.w3.org/ns/activitystreams#Question`.
7028
+ */
7029
+ static get typeId(): URL;
7030
+ /**
7031
+ * Constructs a new instance of Question with the given values.
7032
+ * @param values The values to initialize the instance with.
7033
+ * @param options The options to use for initialization.
7034
+ */
7035
+ constructor(values: {
7036
+ id?: URL | null;
7037
+ attachments?: (Object | Link | PropertyValue | URL)[];
7038
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
7039
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
7040
+ audience?: Object | URL | null;
7041
+ audiences?: (Object | URL)[];
7042
+ content?: string | LanguageString | null;
7043
+ contents?: (string | LanguageString)[];
7044
+ contexts?: (Object | Link | URL)[];
7045
+ name?: string | LanguageString | null;
7046
+ names?: (string | LanguageString)[];
7047
+ endTime?: dntShim.Temporal.Instant | null;
7048
+ generators?: (Object | Link | URL)[];
7049
+ icon?: Image | URL | null;
7050
+ icons?: (Image | URL)[];
7051
+ image?: Image | URL | null;
7052
+ images?: (Image | URL)[];
7053
+ replyTarget?: Object | Link | URL | null;
7054
+ replyTargets?: (Object | Link | URL)[];
7055
+ location?: Object | Link | URL | null;
7056
+ locations?: (Object | Link | URL)[];
7057
+ preview?: Link | Object | URL | null;
7058
+ previews?: (Link | Object | URL)[];
7059
+ published?: dntShim.Temporal.Instant | null;
7060
+ replies?: Collection | URL | null;
7061
+ startTime?: dntShim.Temporal.Instant | null;
7062
+ summary?: string | LanguageString | null;
7063
+ summaries?: (string | LanguageString)[];
7064
+ tags?: (Object | Link | URL)[];
7065
+ updated?: dntShim.Temporal.Instant | null;
7066
+ url?: URL | Link | null;
7067
+ urls?: (URL | Link)[];
7068
+ to?: Object | URL | null;
7069
+ tos?: (Object | URL)[];
7070
+ bto?: Object | URL | null;
7071
+ btos?: (Object | URL)[];
7072
+ cc?: Object | URL | null;
7073
+ ccs?: (Object | URL)[];
7074
+ bcc?: Object | URL | null;
7075
+ bccs?: (Object | URL)[];
7076
+ mediaType?: string | null;
7077
+ duration?: dntShim.Temporal.Duration | null;
7078
+ sensitive?: boolean | null;
7079
+ proof?: DataIntegrityProof | URL | null;
7080
+ proofs?: (DataIntegrityProof | URL)[];
7081
+ actor?: Application | Group | Organization | Person | Service | URL | null;
7082
+ actors?: (Application | Group | Organization | Person | Service | URL)[];
7083
+ object?: Object | URL | null;
7084
+ objects?: (Object | URL)[];
7085
+ exclusiveOptions?: (Object | URL)[];
7086
+ inclusiveOptions?: (Object | URL)[];
7087
+ }, { documentLoader, contextLoader, }?: {
7088
+ documentLoader?: DocumentLoader;
7089
+ contextLoader?: DocumentLoader;
7090
+ });
7091
+ /**
7092
+ * Clones this instance, optionally updating it with the given values.
7093
+ * @param values The values to update the clone with.
7094
+ * @options The options to use for cloning.
7095
+ * @returns The cloned instance.
7096
+ */
7097
+ clone(values?: {
7098
+ id?: URL | null;
7099
+ attachments?: (Object | Link | PropertyValue | URL)[];
7100
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
7101
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
7102
+ audience?: Object | URL | null;
7103
+ audiences?: (Object | URL)[];
7104
+ content?: string | LanguageString | null;
7105
+ contents?: (string | LanguageString)[];
7106
+ contexts?: (Object | Link | URL)[];
7107
+ name?: string | LanguageString | null;
7108
+ names?: (string | LanguageString)[];
7109
+ endTime?: dntShim.Temporal.Instant | null;
7110
+ generators?: (Object | Link | URL)[];
7111
+ icon?: Image | URL | null;
7112
+ icons?: (Image | URL)[];
7113
+ image?: Image | URL | null;
7114
+ images?: (Image | URL)[];
7115
+ replyTarget?: Object | Link | URL | null;
7116
+ replyTargets?: (Object | Link | URL)[];
7117
+ location?: Object | Link | URL | null;
7118
+ locations?: (Object | Link | URL)[];
7119
+ preview?: Link | Object | URL | null;
7120
+ previews?: (Link | Object | URL)[];
7121
+ published?: dntShim.Temporal.Instant | null;
7122
+ replies?: Collection | URL | null;
7123
+ startTime?: dntShim.Temporal.Instant | null;
7124
+ summary?: string | LanguageString | null;
7125
+ summaries?: (string | LanguageString)[];
7126
+ tags?: (Object | Link | URL)[];
7127
+ updated?: dntShim.Temporal.Instant | null;
7128
+ url?: URL | Link | null;
7129
+ urls?: (URL | Link)[];
7130
+ to?: Object | URL | null;
7131
+ tos?: (Object | URL)[];
7132
+ bto?: Object | URL | null;
7133
+ btos?: (Object | URL)[];
7134
+ cc?: Object | URL | null;
7135
+ ccs?: (Object | URL)[];
7136
+ bcc?: Object | URL | null;
7137
+ bccs?: (Object | URL)[];
7138
+ mediaType?: string | null;
7139
+ duration?: dntShim.Temporal.Duration | null;
7140
+ sensitive?: boolean | null;
7141
+ proof?: DataIntegrityProof | URL | null;
7142
+ proofs?: (DataIntegrityProof | URL)[];
7143
+ actor?: Application | Group | Organization | Person | Service | URL | null;
7144
+ actors?: (Application | Group | Organization | Person | Service | URL)[];
7145
+ object?: Object | URL | null;
7146
+ objects?: (Object | URL)[];
7147
+ exclusiveOptions?: (Object | URL)[];
7148
+ inclusiveOptions?: (Object | URL)[];
7149
+ }, options?: {
7150
+ documentLoader?: DocumentLoader;
7151
+ contextLoader?: DocumentLoader;
7152
+ }): Question;
7153
+ /**
7154
+ * Similar to
7155
+ * {@link Question.getExclusiveOptions},
7156
+ * but returns their `@id`s instead of the objects themselves.
7157
+ */
7158
+ get exclusiveOptionIds(): URL[];
7159
+ /** Identifies an exclusive option for a Question. Use of `exclusiveOptions`
7160
+ * implies that the Question can have only a single answer. To indicate that
7161
+ * a Question can have multiple answers, use `inclusiveOptions`.
7162
+ */
7163
+ getExclusiveOptions(options?: {
7164
+ documentLoader?: DocumentLoader;
7165
+ contextLoader?: DocumentLoader;
7166
+ }): AsyncIterable<Object>;
7167
+ /**
7168
+ * Similar to
7169
+ * {@link Question.getInclusiveOptions},
7170
+ * but returns their `@id`s instead of the objects themselves.
7171
+ */
7172
+ get inclusiveOptionIds(): URL[];
7173
+ /** Identifies an inclusive option for a Question. Use of `inclusiveOptions`
7174
+ * implies that the Question can have multiple answers. To indicate that
7175
+ * a Question can have only one answer, use `exclusiveOptions`.
7176
+ */
7177
+ getInclusiveOptions(options?: {
7178
+ documentLoader?: DocumentLoader;
7179
+ contextLoader?: DocumentLoader;
7180
+ }): AsyncIterable<Object>;
7181
+ /**
7182
+ * Converts this object to a JSON-LD structure.
7183
+ * @returns The JSON-LD representation of this object.
7184
+ */
7185
+ toJsonLd(options?: {
7186
+ expand?: boolean;
7187
+ contextLoader?: DocumentLoader;
7188
+ context?: string | Record<string, string> | (string | Record<string, string>)[];
7189
+ }): Promise<unknown>;
7190
+ /**
7191
+ * Converts a JSON-LD structure to an object of this type.
7192
+ * @param json The JSON-LD structure to convert.
7193
+ * @returns The object of this type.
7194
+ * @throws {TypeError} If the given `json` is invalid.
7195
+ */
7196
+ static fromJsonLd(json: unknown, options?: {
7197
+ documentLoader?: DocumentLoader;
7198
+ contextLoader?: DocumentLoader;
7199
+ }): Promise<Question>;
7200
+ protected _getCustomInspectProxy(): Record<string, unknown>;
7201
+ }
7016
7202
  /** Indicates that the `actor` is rejecting the `object`. The `target` and
7017
7203
  * `origin` typically have no defined meaning.
7018
7204
  */