import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; /** * @generated from enum courier.AppPlatform */ export declare enum AppPlatform { /** * @generated from enum value: APP_PLATFORM_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: APP_PLATFORM_IOS = 1; */ IOS = 1, /** * @generated from enum value: APP_PLATFORM_ANDROID = 2; */ ANDROID = 2, /** * @generated from enum value: APP_PLATFORM_WEB = 3; */ WEB = 3 } /** * Ping * * @generated from message courier.PingRequest */ export declare class PingRequest extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.PingRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PingRequest; static fromJson(jsonValue: JsonValue, options?: Partial): PingRequest; static fromJsonString(jsonString: string, options?: Partial): PingRequest; static equals(a: PingRequest | PlainMessage | undefined, b: PingRequest | PlainMessage | undefined): boolean; } /** * @generated from message courier.PingResponse */ export declare class PingResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.PingResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PingResponse; static fromJson(jsonValue: JsonValue, options?: Partial): PingResponse; static fromJsonString(jsonString: string, options?: Partial): PingResponse; static equals(a: PingResponse | PlainMessage | undefined, b: PingResponse | PlainMessage | undefined): boolean; } /** * @generated from message courier.Notification */ export declare class Notification extends Message { /** * @generated from field: string id = 1; */ id: string; /** * @generated from field: string recipient_did = 2; */ recipientDid: string; /** * @generated from field: string title = 3; */ title: string; /** * @generated from field: string message = 4; */ message: string; /** * @generated from field: string collapse_key = 5; */ collapseKey: string; /** * @generated from field: bool always_deliver = 6; */ alwaysDeliver: boolean; /** * @generated from field: google.protobuf.Timestamp timestamp = 7; */ timestamp?: Timestamp; /** * @generated from field: google.protobuf.Struct additional = 8; */ additional?: Struct; /** * @generated from field: bool client_controlled = 9; */ clientControlled: boolean; /** * Maps to iOS's `thread-id`: https://developer.apple.com/documentation/usernotifications/generating-a-remote-notification. * * @generated from field: string thread_id = 10; */ threadId: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.Notification"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Notification; static fromJson(jsonValue: JsonValue, options?: Partial): Notification; static fromJsonString(jsonString: string, options?: Partial): Notification; static equals(a: Notification | PlainMessage | undefined, b: Notification | PlainMessage | undefined): boolean; } /** * @generated from message courier.PushNotificationsRequest */ export declare class PushNotificationsRequest extends Message { /** * @generated from field: repeated courier.Notification notifications = 1; */ notifications: Notification[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.PushNotificationsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PushNotificationsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): PushNotificationsRequest; static fromJsonString(jsonString: string, options?: Partial): PushNotificationsRequest; static equals(a: PushNotificationsRequest | PlainMessage | undefined, b: PushNotificationsRequest | PlainMessage | undefined): boolean; } /** * @generated from message courier.PushNotificationsResponse */ export declare class PushNotificationsResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.PushNotificationsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PushNotificationsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): PushNotificationsResponse; static fromJsonString(jsonString: string, options?: Partial): PushNotificationsResponse; static equals(a: PushNotificationsResponse | PlainMessage | undefined, b: PushNotificationsResponse | PlainMessage | undefined): boolean; } /** * @generated from message courier.RegisterDeviceTokenRequest */ export declare class RegisterDeviceTokenRequest extends Message { /** * @generated from field: string did = 1; */ did: string; /** * @generated from field: string token = 2; */ token: string; /** * @generated from field: string app_id = 3; */ appId: string; /** * @generated from field: courier.AppPlatform platform = 4; */ platform: AppPlatform; /** * @generated from field: bool age_restricted = 5; */ ageRestricted: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.RegisterDeviceTokenRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RegisterDeviceTokenRequest; static fromJson(jsonValue: JsonValue, options?: Partial): RegisterDeviceTokenRequest; static fromJsonString(jsonString: string, options?: Partial): RegisterDeviceTokenRequest; static equals(a: RegisterDeviceTokenRequest | PlainMessage | undefined, b: RegisterDeviceTokenRequest | PlainMessage | undefined): boolean; } /** * @generated from message courier.RegisterDeviceTokenResponse */ export declare class RegisterDeviceTokenResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.RegisterDeviceTokenResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RegisterDeviceTokenResponse; static fromJson(jsonValue: JsonValue, options?: Partial): RegisterDeviceTokenResponse; static fromJsonString(jsonString: string, options?: Partial): RegisterDeviceTokenResponse; static equals(a: RegisterDeviceTokenResponse | PlainMessage | undefined, b: RegisterDeviceTokenResponse | PlainMessage | undefined): boolean; } /** * @generated from message courier.UnregisterDeviceTokenRequest */ export declare class UnregisterDeviceTokenRequest extends Message { /** * @generated from field: string did = 1; */ did: string; /** * @generated from field: string token = 2; */ token: string; /** * @generated from field: string app_id = 3; */ appId: string; /** * @generated from field: courier.AppPlatform platform = 4; */ platform: AppPlatform; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.UnregisterDeviceTokenRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UnregisterDeviceTokenRequest; static fromJson(jsonValue: JsonValue, options?: Partial): UnregisterDeviceTokenRequest; static fromJsonString(jsonString: string, options?: Partial): UnregisterDeviceTokenRequest; static equals(a: UnregisterDeviceTokenRequest | PlainMessage | undefined, b: UnregisterDeviceTokenRequest | PlainMessage | undefined): boolean; } /** * @generated from message courier.UnregisterDeviceTokenResponse */ export declare class UnregisterDeviceTokenResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.UnregisterDeviceTokenResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UnregisterDeviceTokenResponse; static fromJson(jsonValue: JsonValue, options?: Partial): UnregisterDeviceTokenResponse; static fromJsonString(jsonString: string, options?: Partial): UnregisterDeviceTokenResponse; static equals(a: UnregisterDeviceTokenResponse | PlainMessage | undefined, b: UnregisterDeviceTokenResponse | PlainMessage | undefined): boolean; } /** * @generated from message courier.SetAgeRestrictedRequest */ export declare class SetAgeRestrictedRequest extends Message { /** * @generated from field: string did = 1; */ did: string; /** * @generated from field: bool age_restricted = 2; */ ageRestricted: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.SetAgeRestrictedRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetAgeRestrictedRequest; static fromJson(jsonValue: JsonValue, options?: Partial): SetAgeRestrictedRequest; static fromJsonString(jsonString: string, options?: Partial): SetAgeRestrictedRequest; static equals(a: SetAgeRestrictedRequest | PlainMessage | undefined, b: SetAgeRestrictedRequest | PlainMessage | undefined): boolean; } /** * @generated from message courier.SetAgeRestrictedResponse */ export declare class SetAgeRestrictedResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "courier.SetAgeRestrictedResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetAgeRestrictedResponse; static fromJson(jsonValue: JsonValue, options?: Partial): SetAgeRestrictedResponse; static fromJsonString(jsonString: string, options?: Partial): SetAgeRestrictedResponse; static equals(a: SetAgeRestrictedResponse | PlainMessage | undefined, b: SetAgeRestrictedResponse | PlainMessage | undefined): boolean; } //# sourceMappingURL=courier_pb.d.ts.map