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 ApiSendMessageError
|
|
|
|
|
*/
|
|
|
|
|
export interface ApiSendMessageError {
|
2024-06-28 07:49:39 +02:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {Array<string>}
|
|
|
|
|
* @memberof ApiSendMessageError
|
|
|
|
|
*/
|
|
|
|
|
challengeTokens?: Array<string>;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiSendMessageError
|
|
|
|
|
*/
|
|
|
|
|
error?: string;
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Check if a given object implements the ApiSendMessageError interface.
|
|
|
|
|
*/
|
2024-06-28 07:49:39 +02:00
|
|
|
export function instanceOfApiSendMessageError(
|
|
|
|
|
value: object,
|
|
|
|
|
): value is ApiSendMessageError {
|
|
|
|
|
return true;
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function ApiSendMessageErrorFromJSON(json: any): ApiSendMessageError {
|
2024-06-28 07:49:39 +02:00
|
|
|
return ApiSendMessageErrorFromJSONTyped(json, false);
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-06-28 07:49:39 +02:00
|
|
|
export function ApiSendMessageErrorFromJSONTyped(
|
|
|
|
|
json: any,
|
|
|
|
|
ignoreDiscriminator: boolean,
|
|
|
|
|
): ApiSendMessageError {
|
|
|
|
|
if (json == null) {
|
|
|
|
|
return json;
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
challengeTokens:
|
|
|
|
|
json["challenge_tokens"] == null ? undefined : json["challenge_tokens"],
|
|
|
|
|
error: json["error"] == null ? undefined : json["error"],
|
|
|
|
|
};
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-06-28 07:49:39 +02:00
|
|
|
export function ApiSendMessageErrorToJSON(
|
|
|
|
|
value?: ApiSendMessageError | null,
|
|
|
|
|
): any {
|
|
|
|
|
if (value == null) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
challenge_tokens: value["challengeTokens"],
|
|
|
|
|
error: value["error"],
|
|
|
|
|
};
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|