69 lines
1.6 KiB
TypeScript
69 lines
1.6 KiB
TypeScript
|
|
/* tslint:disable */
|
||
|
|
/* eslint-disable */
|
||
|
|
/**
|
||
|
|
* Signal Cli REST API
|
||
|
|
* 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';
|
||
|
|
/**
|
||
|
|
*
|
||
|
|
* @export
|
||
|
|
* @interface ApiSendMessageError
|
||
|
|
*/
|
||
|
|
export interface ApiSendMessageError {
|
||
|
|
/**
|
||
|
|
*
|
||
|
|
* @type {Array<string>}
|
||
|
|
* @memberof ApiSendMessageError
|
||
|
|
*/
|
||
|
|
challengeTokens?: Array<string>;
|
||
|
|
/**
|
||
|
|
*
|
||
|
|
* @type {string}
|
||
|
|
* @memberof ApiSendMessageError
|
||
|
|
*/
|
||
|
|
error?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Check if a given object implements the ApiSendMessageError interface.
|
||
|
|
*/
|
||
|
|
export function instanceOfApiSendMessageError(value: object): value is ApiSendMessageError {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
export function ApiSendMessageErrorFromJSON(json: any): ApiSendMessageError {
|
||
|
|
return ApiSendMessageErrorFromJSONTyped(json, false);
|
||
|
|
}
|
||
|
|
|
||
|
|
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'],
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
export function ApiSendMessageErrorToJSON(value?: ApiSendMessageError | null): any {
|
||
|
|
if (value == null) {
|
||
|
|
return value;
|
||
|
|
}
|
||
|
|
return {
|
||
|
|
|
||
|
|
'challenge_tokens': value['challengeTokens'],
|
||
|
|
'error': value['error'],
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|