Skip to content

Commit

Permalink
csapi: regenerated files with data definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Aug 21, 2023
1 parent bb159a4 commit 222ecb5
Show file tree
Hide file tree
Showing 27 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Quotient/application-service/definitions/location.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {

struct ThirdPartyLocation {
struct QUOTIENT_API ThirdPartyLocation {
/// An alias for a matrix room.
QString alias;

Expand Down
6 changes: 3 additions & 3 deletions Quotient/application-service/definitions/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {
/// Definition of valid values for a field.
struct FieldType {
struct QUOTIENT_API FieldType {
/// A regular expression for validation of a field's value. This may be
/// relatively coarse to verify the value as the application service
/// providing this protocol may apply additional validation or filtering.
Expand All @@ -32,7 +32,7 @@ struct JsonObjectConverter<FieldType> {
}
};

struct ProtocolInstance {
struct QUOTIENT_API ProtocolInstance {
/// A human-readable description for the protocol, such as the name.
QString desc;

Expand Down Expand Up @@ -65,7 +65,7 @@ struct JsonObjectConverter<ProtocolInstance> {
}
};

struct ThirdPartyProtocol {
struct QUOTIENT_API ThirdPartyProtocol {
/// Fields which may be used to identify a third-party user. These should be
/// ordered to suggest the way that entities may be grouped, where higher
/// groupings are ordered first. For example, the name of a network should
Expand Down
2 changes: 1 addition & 1 deletion Quotient/application-service/definitions/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {

struct ThirdPartyUser {
struct QUOTIENT_API ThirdPartyUser {
/// A Matrix User ID represting a third-party user.
QString userid;

Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/auth_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Quotient {
/// Used by clients to submit authentication information to the
/// interactive-authentication API
struct AuthenticationData {
struct QUOTIENT_API AuthenticationData {
/// The authentication type that the client is attempting to complete.
/// May be omitted if `session` is given, and the client is reissuing a
/// request which it believes has been completed out-of-band (for example,
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/client_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {
/// A client device
struct Device {
struct QUOTIENT_API Device {
/// Identifier of this device.
QString deviceId;

Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/cross_signing_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {
/// Cross signing key
struct CrossSigningKey {
struct QUOTIENT_API CrossSigningKey {
/// The ID of the user the key belongs to.
QString userId;

Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/device_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {
/// Device identity keys
struct DeviceKeys {
struct QUOTIENT_API DeviceKeys {
/// The ID of the user the device belongs to. Must match the user ID used
/// when logging in.
QString userId;
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/event_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {

struct EventFilter {
struct QUOTIENT_API EventFilter {
/// The maximum number of events to return, must be an integer greater than
/// 0.
///
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/key_backup_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {
/// The key data
struct KeyBackupData {
struct QUOTIENT_API KeyBackupData {
/// The index of the first message in the session that the key can decrypt.
int firstMessageIndex;

Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/openid_token.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {

struct OpenIdCredentials {
struct QUOTIENT_API OpenIdCredentials {
/// An access token the consumer may use to verify the identity of
/// the person who generated the token. This is given to the federation
/// API `GET /openid/userinfo` to verify the user's identity.
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/public_rooms_response.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {

struct PublicRoomsChunk {
struct QUOTIENT_API PublicRoomsChunk {
/// The number of members joined to the room.
int numJoinedMembers;

Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/push_condition.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {

struct PushCondition {
struct QUOTIENT_API PushCondition {
/// The kind of condition to apply. See
/// [conditions](/client-server-api/#conditions) for more information on the
/// allowed kinds and how they work.
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/push_rule.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Quotient {

struct PushRule {
struct QUOTIENT_API PushRule {
/// The actions to perform when this rule is matched.
QVector<QVariant> actions;

Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/push_ruleset.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Quotient {

struct PushRuleset {
struct QUOTIENT_API PushRuleset {
QVector<PushRule> content{};

QVector<PushRule> override{};
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/request_email_validation.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Quotient {

struct EmailValidationData : RequestEmailValidation {
struct QUOTIENT_API EmailValidationData : RequestEmailValidation {
/// The hostname of the identity server to communicate with. May optionally
/// include a port. This parameter is ignored when the homeserver handles
/// 3PID verification.
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/request_msisdn_validation.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Quotient {

struct MsisdnValidationData : RequestMsisdnValidation {
struct QUOTIENT_API MsisdnValidationData : RequestMsisdnValidation {
/// The hostname of the identity server to communicate with. May optionally
/// include a port. This parameter is ignored when the homeserver handles
/// 3PID verification.
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/request_token_response.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {

struct RequestTokenResponse {
struct QUOTIENT_API RequestTokenResponse {
/// The session ID. Session IDs are opaque strings that must consist
/// entirely of the characters `[0-9a-zA-Z.=_-]`. Their length must not
/// exceed 255 characters and they must not be empty.
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/room_event_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Quotient {

struct RoomEventFilter : EventFilter {
struct QUOTIENT_API RoomEventFilter : EventFilter {
/// If `true`, enables per-[thread](/client-server-api/#threading)
/// notification counts. Only applies to the `/sync` endpoint. Defaults to
/// `false`.
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/room_key_backup.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Quotient {
/// The backed up keys for a room.
struct RoomKeyBackup {
struct QUOTIENT_API RoomKeyBackup {
/// A map of session IDs to key data.
QHash<QString, KeyBackupData> sessions;
};
Expand Down
4 changes: 2 additions & 2 deletions Quotient/csapi/definitions/sync_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Quotient {
/// Filters to be applied to room data.
struct RoomFilter {
struct QUOTIENT_API RoomFilter {
/// A list of room IDs to exclude. If this list is absent then no rooms are
/// excluded. A matching room will be excluded even if it is listed in the
/// `'rooms'` filter. This filter is applied before the filters in
Expand Down Expand Up @@ -66,7 +66,7 @@ struct JsonObjectConverter<RoomFilter> {
}
};

struct Filter {
struct QUOTIENT_API Filter {
/// List of event fields to include. If this list is absent then all fields
/// are included. The entries are [dot-separated paths for each
/// property](/appendices#dot-separated-property-paths) to include. So
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/third_party_signed.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Quotient {
/// A signature of an `m.third_party_invite` token to prove that this user
/// owns a third-party identity which has been invited to the room.
struct ThirdPartySigned {
struct QUOTIENT_API ThirdPartySigned {
/// The Matrix ID of the user who issued the invite.
QString sender;

Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/user_identifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {
/// Identification information for a user
struct UserIdentifier {
struct QUOTIENT_API UserIdentifier {
/// The type of identification. See [Identifier
/// types](/client-server-api/#identifier-types) for supported values and
/// additional property descriptions.
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/wellknown/full.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Quotient {
/// Used by clients to determine the homeserver, identity server, and other
/// optional components they should be interacting with.
struct DiscoveryInformation {
struct QUOTIENT_API DiscoveryInformation {
/// Used by clients to determine the homeserver, identity server, and other
/// optional components they should be interacting with.
HomeserverInformation homeserver;
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/wellknown/homeserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {
/// Used by clients to discover homeserver information.
struct HomeserverInformation {
struct QUOTIENT_API HomeserverInformation {
/// The base URL for the homeserver for client-server connections.
QUrl baseUrl;
};
Expand Down
2 changes: 1 addition & 1 deletion Quotient/csapi/definitions/wellknown/identity_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {
/// Used by clients to discover identity server information.
struct IdentityServerInformation {
struct QUOTIENT_API IdentityServerInformation {
/// The base URL for the identity server for client-server connections.
QUrl baseUrl;
};
Expand Down
2 changes: 1 addition & 1 deletion Quotient/identity/definitions/request_email_validation.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {

struct RequestEmailValidation {
struct QUOTIENT_API RequestEmailValidation {
/// A unique string generated by the client, and used to identify the
/// validation attempt. It must be a string consisting of the characters
/// `[0-9a-zA-Z.=_-]`. Its length must not exceed 255 characters and it
Expand Down
2 changes: 1 addition & 1 deletion Quotient/identity/definitions/request_msisdn_validation.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Quotient {

struct RequestMsisdnValidation {
struct QUOTIENT_API RequestMsisdnValidation {
/// A unique string generated by the client, and used to identify the
/// validation attempt. It must be a string consisting of the characters
/// `[0-9a-zA-Z.=_-]`. Its length must not exceed 255 characters and it
Expand Down

0 comments on commit 222ecb5

Please sign in to comment.