2024-06-05 10:06:41 +02:00
|
|
|
/* tslint:disable */
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
/**
|
|
|
|
|
* Signal Cli REST API
|
|
|
|
|
* This is the Signal Cli REST API documentation.
|
|
|
|
|
*
|
|
|
|
|
* The version of the OpenAPI document: 1.0
|
2024-06-28 07:49:39 +02:00
|
|
|
*
|
2024-06-05 10:06:41 +02:00
|
|
|
*
|
|
|
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
|
|
|
* https://openapi-generator.tech
|
|
|
|
|
* Do not edit the class manually.
|
|
|
|
|
*/
|
|
|
|
|
|
2024-06-28 07:49:39 +02:00
|
|
|
import { mapValues } from "../runtime.js";
|
2024-06-05 10:06:41 +02:00
|
|
|
/**
|
2024-06-28 07:49:39 +02:00
|
|
|
*
|
2024-06-05 10:06:41 +02:00
|
|
|
* @export
|
|
|
|
|
* @interface ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
export interface ApiSendMessageV2 {
|
2024-06-28 07:49:39 +02:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {Array<string>}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
base64Attachments?: Array<string>;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {number}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
editTimestamp?: number;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
mentions?: string;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
message?: string;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
number?: string;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
quoteAuthor?: string;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
quoteMentions?: string;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
quoteMessage?: string;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {number}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
quoteTimestamp?: number;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {Array<string>}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
recipients?: Array<string>;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
sticker?: string;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiSendMessageV2
|
|
|
|
|
*/
|
|
|
|
|
textMode?: ApiSendMessageV2TextModeEnum;
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @export
|
|
|
|
|
*/
|
|
|
|
|
export const ApiSendMessageV2TextModeEnum = {
|
2024-06-28 07:49:39 +02:00
|
|
|
Normal: "normal",
|
|
|
|
|
Styled: "styled",
|
2024-06-05 10:06:41 +02:00
|
|
|
} as const;
|
2024-06-28 07:49:39 +02:00
|
|
|
export type ApiSendMessageV2TextModeEnum =
|
|
|
|
|
(typeof ApiSendMessageV2TextModeEnum)[keyof typeof ApiSendMessageV2TextModeEnum];
|
2024-06-05 10:06:41 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Check if a given object implements the ApiSendMessageV2 interface.
|
|
|
|
|
*/
|
2024-06-28 07:49:39 +02:00
|
|
|
export function instanceOfApiSendMessageV2(
|
|
|
|
|
value: object,
|
|
|
|
|
): value is ApiSendMessageV2 {
|
|
|
|
|
return true;
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function ApiSendMessageV2FromJSON(json: any): ApiSendMessageV2 {
|
2024-06-28 07:49:39 +02:00
|
|
|
return ApiSendMessageV2FromJSONTyped(json, false);
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-06-28 07:49:39 +02:00
|
|
|
export function ApiSendMessageV2FromJSONTyped(
|
|
|
|
|
json: any,
|
|
|
|
|
ignoreDiscriminator: boolean,
|
|
|
|
|
): ApiSendMessageV2 {
|
|
|
|
|
if (json == null) {
|
|
|
|
|
return json;
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
base64Attachments:
|
|
|
|
|
json["base64_attachments"] == null
|
|
|
|
|
? undefined
|
|
|
|
|
: json["base64_attachments"],
|
|
|
|
|
editTimestamp:
|
|
|
|
|
json["edit_timestamp"] == null ? undefined : json["edit_timestamp"],
|
|
|
|
|
mentions: json["mentions"] == null ? undefined : json["mentions"],
|
|
|
|
|
message: json["message"] == null ? undefined : json["message"],
|
|
|
|
|
number: json["number"] == null ? undefined : json["number"],
|
|
|
|
|
quoteAuthor:
|
|
|
|
|
json["quote_author"] == null ? undefined : json["quote_author"],
|
|
|
|
|
quoteMentions:
|
|
|
|
|
json["quote_mentions"] == null ? undefined : json["quote_mentions"],
|
|
|
|
|
quoteMessage:
|
|
|
|
|
json["quote_message"] == null ? undefined : json["quote_message"],
|
|
|
|
|
quoteTimestamp:
|
|
|
|
|
json["quote_timestamp"] == null ? undefined : json["quote_timestamp"],
|
|
|
|
|
recipients: json["recipients"] == null ? undefined : json["recipients"],
|
|
|
|
|
sticker: json["sticker"] == null ? undefined : json["sticker"],
|
|
|
|
|
textMode: json["text_mode"] == null ? undefined : json["text_mode"],
|
|
|
|
|
};
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function ApiSendMessageV2ToJSON(value?: ApiSendMessageV2 | null): any {
|
2024-06-28 07:49:39 +02:00
|
|
|
if (value == null) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
base64_attachments: value["base64Attachments"],
|
|
|
|
|
edit_timestamp: value["editTimestamp"],
|
|
|
|
|
mentions: value["mentions"],
|
|
|
|
|
message: value["message"],
|
|
|
|
|
number: value["number"],
|
|
|
|
|
quote_author: value["quoteAuthor"],
|
|
|
|
|
quote_mentions: value["quoteMentions"],
|
|
|
|
|
quote_message: value["quoteMessage"],
|
|
|
|
|
quote_timestamp: value["quoteTimestamp"],
|
|
|
|
|
recipients: value["recipients"],
|
|
|
|
|
sticker: value["sticker"],
|
|
|
|
|
text_mode: value["textMode"],
|
|
|
|
|
};
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|