Worker build updates
This commit is contained in:
parent
45c80ca98a
commit
0cf1c3b8fd
64 changed files with 4216 additions and 3450 deletions
|
|
@ -5,155 +5,164 @@
|
|||
* This is the Signal Cli REST API documentation.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import { mapValues } from "../runtime.js";
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @export
|
||||
* @interface ApiSendMessageV2
|
||||
*/
|
||||
export interface ApiSendMessageV2 {
|
||||
/**
|
||||
*
|
||||
* @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;
|
||||
/**
|
||||
*
|
||||
* @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;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiSendMessageV2TextModeEnum = {
|
||||
Normal: 'normal',
|
||||
Styled: 'styled'
|
||||
Normal: "normal",
|
||||
Styled: "styled",
|
||||
} as const;
|
||||
export type ApiSendMessageV2TextModeEnum = typeof ApiSendMessageV2TextModeEnum[keyof typeof ApiSendMessageV2TextModeEnum];
|
||||
|
||||
export type ApiSendMessageV2TextModeEnum =
|
||||
(typeof ApiSendMessageV2TextModeEnum)[keyof typeof ApiSendMessageV2TextModeEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiSendMessageV2 interface.
|
||||
*/
|
||||
export function instanceOfApiSendMessageV2(value: object): value is ApiSendMessageV2 {
|
||||
return true;
|
||||
export function instanceOfApiSendMessageV2(
|
||||
value: object,
|
||||
): value is ApiSendMessageV2 {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiSendMessageV2FromJSON(json: any): ApiSendMessageV2 {
|
||||
return ApiSendMessageV2FromJSONTyped(json, false);
|
||||
return ApiSendMessageV2FromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
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'],
|
||||
};
|
||||
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"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiSendMessageV2ToJSON(value?: ApiSendMessageV2 | null): any {
|
||||
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'],
|
||||
};
|
||||
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"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue