Worker build updates
This commit is contained in:
parent
45c80ca98a
commit
0cf1c3b8fd
64 changed files with 4216 additions and 3450 deletions
|
|
@ -5,56 +5,60 @@
|
|||
* 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 ApiAddDeviceRequest
|
||||
*/
|
||||
export interface ApiAddDeviceRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiAddDeviceRequest
|
||||
*/
|
||||
uri?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiAddDeviceRequest
|
||||
*/
|
||||
uri?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiAddDeviceRequest interface.
|
||||
*/
|
||||
export function instanceOfApiAddDeviceRequest(value: object): value is ApiAddDeviceRequest {
|
||||
return true;
|
||||
export function instanceOfApiAddDeviceRequest(
|
||||
value: object,
|
||||
): value is ApiAddDeviceRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiAddDeviceRequestFromJSON(json: any): ApiAddDeviceRequest {
|
||||
return ApiAddDeviceRequestFromJSONTyped(json, false);
|
||||
return ApiAddDeviceRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiAddDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAddDeviceRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'uri': json['uri'] == null ? undefined : json['uri'],
|
||||
};
|
||||
export function ApiAddDeviceRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiAddDeviceRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
uri: json["uri"] == null ? undefined : json["uri"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiAddDeviceRequestToJSON(value?: ApiAddDeviceRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'uri': value['uri'],
|
||||
};
|
||||
export function ApiAddDeviceRequestToJSON(
|
||||
value?: ApiAddDeviceRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
uri: value["uri"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,64 +5,70 @@
|
|||
* 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 ApiAddStickerPackRequest
|
||||
*/
|
||||
export interface ApiAddStickerPackRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiAddStickerPackRequest
|
||||
*/
|
||||
packId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiAddStickerPackRequest
|
||||
*/
|
||||
packKey?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiAddStickerPackRequest
|
||||
*/
|
||||
packId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiAddStickerPackRequest
|
||||
*/
|
||||
packKey?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiAddStickerPackRequest interface.
|
||||
*/
|
||||
export function instanceOfApiAddStickerPackRequest(value: object): value is ApiAddStickerPackRequest {
|
||||
return true;
|
||||
export function instanceOfApiAddStickerPackRequest(
|
||||
value: object,
|
||||
): value is ApiAddStickerPackRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiAddStickerPackRequestFromJSON(json: any): ApiAddStickerPackRequest {
|
||||
return ApiAddStickerPackRequestFromJSONTyped(json, false);
|
||||
export function ApiAddStickerPackRequestFromJSON(
|
||||
json: any,
|
||||
): ApiAddStickerPackRequest {
|
||||
return ApiAddStickerPackRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiAddStickerPackRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAddStickerPackRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'packId': json['pack_id'] == null ? undefined : json['pack_id'],
|
||||
'packKey': json['pack_key'] == null ? undefined : json['pack_key'],
|
||||
};
|
||||
export function ApiAddStickerPackRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiAddStickerPackRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
packId: json["pack_id"] == null ? undefined : json["pack_id"],
|
||||
packKey: json["pack_key"] == null ? undefined : json["pack_key"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiAddStickerPackRequestToJSON(value?: ApiAddStickerPackRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'pack_id': value['packId'],
|
||||
'pack_key': value['packKey'],
|
||||
};
|
||||
export function ApiAddStickerPackRequestToJSON(
|
||||
value?: ApiAddStickerPackRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
pack_id: value["packId"],
|
||||
pack_key: value["packKey"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,62 @@
|
|||
* 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 ApiChangeGroupAdminsRequest
|
||||
*/
|
||||
export interface ApiChangeGroupAdminsRequest {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiChangeGroupAdminsRequest
|
||||
*/
|
||||
admins?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiChangeGroupAdminsRequest
|
||||
*/
|
||||
admins?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiChangeGroupAdminsRequest interface.
|
||||
*/
|
||||
export function instanceOfApiChangeGroupAdminsRequest(value: object): value is ApiChangeGroupAdminsRequest {
|
||||
return true;
|
||||
export function instanceOfApiChangeGroupAdminsRequest(
|
||||
value: object,
|
||||
): value is ApiChangeGroupAdminsRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiChangeGroupAdminsRequestFromJSON(json: any): ApiChangeGroupAdminsRequest {
|
||||
return ApiChangeGroupAdminsRequestFromJSONTyped(json, false);
|
||||
export function ApiChangeGroupAdminsRequestFromJSON(
|
||||
json: any,
|
||||
): ApiChangeGroupAdminsRequest {
|
||||
return ApiChangeGroupAdminsRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiChangeGroupAdminsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiChangeGroupAdminsRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'admins': json['admins'] == null ? undefined : json['admins'],
|
||||
};
|
||||
export function ApiChangeGroupAdminsRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiChangeGroupAdminsRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
admins: json["admins"] == null ? undefined : json["admins"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiChangeGroupAdminsRequestToJSON(value?: ApiChangeGroupAdminsRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'admins': value['admins'],
|
||||
};
|
||||
export function ApiChangeGroupAdminsRequestToJSON(
|
||||
value?: ApiChangeGroupAdminsRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
admins: value["admins"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,62 @@
|
|||
* 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 ApiChangeGroupMembersRequest
|
||||
*/
|
||||
export interface ApiChangeGroupMembersRequest {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiChangeGroupMembersRequest
|
||||
*/
|
||||
members?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiChangeGroupMembersRequest
|
||||
*/
|
||||
members?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiChangeGroupMembersRequest interface.
|
||||
*/
|
||||
export function instanceOfApiChangeGroupMembersRequest(value: object): value is ApiChangeGroupMembersRequest {
|
||||
return true;
|
||||
export function instanceOfApiChangeGroupMembersRequest(
|
||||
value: object,
|
||||
): value is ApiChangeGroupMembersRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiChangeGroupMembersRequestFromJSON(json: any): ApiChangeGroupMembersRequest {
|
||||
return ApiChangeGroupMembersRequestFromJSONTyped(json, false);
|
||||
export function ApiChangeGroupMembersRequestFromJSON(
|
||||
json: any,
|
||||
): ApiChangeGroupMembersRequest {
|
||||
return ApiChangeGroupMembersRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiChangeGroupMembersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiChangeGroupMembersRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'members': json['members'] == null ? undefined : json['members'],
|
||||
};
|
||||
export function ApiChangeGroupMembersRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiChangeGroupMembersRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
members: json["members"] == null ? undefined : json["members"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiChangeGroupMembersRequestToJSON(value?: ApiChangeGroupMembersRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'members': value['members'],
|
||||
};
|
||||
export function ApiChangeGroupMembersRequestToJSON(
|
||||
value?: ApiChangeGroupMembersRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
members: value["members"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,63 +5,68 @@
|
|||
* 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 type { ApiLoggingConfiguration } from './ApiLoggingConfiguration';
|
||||
import { mapValues } from "../runtime.js";
|
||||
import type { ApiLoggingConfiguration } from "./ApiLoggingConfiguration.js";
|
||||
import {
|
||||
ApiLoggingConfigurationFromJSON,
|
||||
ApiLoggingConfigurationFromJSONTyped,
|
||||
ApiLoggingConfigurationToJSON,
|
||||
} from './ApiLoggingConfiguration';
|
||||
ApiLoggingConfigurationFromJSON,
|
||||
ApiLoggingConfigurationFromJSONTyped,
|
||||
ApiLoggingConfigurationToJSON,
|
||||
} from "./ApiLoggingConfiguration.js";
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @export
|
||||
* @interface ApiConfiguration
|
||||
*/
|
||||
export interface ApiConfiguration {
|
||||
/**
|
||||
*
|
||||
* @type {ApiLoggingConfiguration}
|
||||
* @memberof ApiConfiguration
|
||||
*/
|
||||
logging?: ApiLoggingConfiguration;
|
||||
/**
|
||||
*
|
||||
* @type {ApiLoggingConfiguration}
|
||||
* @memberof ApiConfiguration
|
||||
*/
|
||||
logging?: ApiLoggingConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiConfiguration interface.
|
||||
*/
|
||||
export function instanceOfApiConfiguration(value: object): value is ApiConfiguration {
|
||||
return true;
|
||||
export function instanceOfApiConfiguration(
|
||||
value: object,
|
||||
): value is ApiConfiguration {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiConfigurationFromJSON(json: any): ApiConfiguration {
|
||||
return ApiConfigurationFromJSONTyped(json, false);
|
||||
return ApiConfigurationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiConfiguration {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'logging': json['logging'] == null ? undefined : ApiLoggingConfigurationFromJSON(json['logging']),
|
||||
};
|
||||
export function ApiConfigurationFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiConfiguration {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
logging:
|
||||
json["logging"] == null
|
||||
? undefined
|
||||
: ApiLoggingConfigurationFromJSON(json["logging"]),
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiConfigurationToJSON(value?: ApiConfiguration | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'logging': ApiLoggingConfigurationToJSON(value['logging']),
|
||||
};
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
logging: ApiLoggingConfigurationToJSON(value["logging"]),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,107 +5,115 @@
|
|||
* 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 type { ApiGroupPermissions } from './ApiGroupPermissions';
|
||||
import { mapValues } from "../runtime.js";
|
||||
import type { ApiGroupPermissions } from "./ApiGroupPermissions.js";
|
||||
import {
|
||||
ApiGroupPermissionsFromJSON,
|
||||
ApiGroupPermissionsFromJSONTyped,
|
||||
ApiGroupPermissionsToJSON,
|
||||
} from './ApiGroupPermissions';
|
||||
ApiGroupPermissionsFromJSON,
|
||||
ApiGroupPermissionsFromJSONTyped,
|
||||
ApiGroupPermissionsToJSON,
|
||||
} from "./ApiGroupPermissions.js";
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @export
|
||||
* @interface ApiCreateGroupRequest
|
||||
*/
|
||||
export interface ApiCreateGroupRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiCreateGroupRequest
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiCreateGroupRequest
|
||||
*/
|
||||
groupLink?: ApiCreateGroupRequestGroupLinkEnum;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiCreateGroupRequest
|
||||
*/
|
||||
members?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiCreateGroupRequest
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {ApiGroupPermissions}
|
||||
* @memberof ApiCreateGroupRequest
|
||||
*/
|
||||
permissions?: ApiGroupPermissions;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiCreateGroupRequest
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiCreateGroupRequest
|
||||
*/
|
||||
groupLink?: ApiCreateGroupRequestGroupLinkEnum;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiCreateGroupRequest
|
||||
*/
|
||||
members?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiCreateGroupRequest
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {ApiGroupPermissions}
|
||||
* @memberof ApiCreateGroupRequest
|
||||
*/
|
||||
permissions?: ApiGroupPermissions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiCreateGroupRequestGroupLinkEnum = {
|
||||
Disabled: 'disabled',
|
||||
Enabled: 'enabled',
|
||||
EnabledWithApproval: 'enabled-with-approval'
|
||||
Disabled: "disabled",
|
||||
Enabled: "enabled",
|
||||
EnabledWithApproval: "enabled-with-approval",
|
||||
} as const;
|
||||
export type ApiCreateGroupRequestGroupLinkEnum = typeof ApiCreateGroupRequestGroupLinkEnum[keyof typeof ApiCreateGroupRequestGroupLinkEnum];
|
||||
|
||||
export type ApiCreateGroupRequestGroupLinkEnum =
|
||||
(typeof ApiCreateGroupRequestGroupLinkEnum)[keyof typeof ApiCreateGroupRequestGroupLinkEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiCreateGroupRequest interface.
|
||||
*/
|
||||
export function instanceOfApiCreateGroupRequest(value: object): value is ApiCreateGroupRequest {
|
||||
return true;
|
||||
export function instanceOfApiCreateGroupRequest(
|
||||
value: object,
|
||||
): value is ApiCreateGroupRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiCreateGroupRequestFromJSON(json: any): ApiCreateGroupRequest {
|
||||
return ApiCreateGroupRequestFromJSONTyped(json, false);
|
||||
export function ApiCreateGroupRequestFromJSON(
|
||||
json: any,
|
||||
): ApiCreateGroupRequest {
|
||||
return ApiCreateGroupRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiCreateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiCreateGroupRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'groupLink': json['group_link'] == null ? undefined : json['group_link'],
|
||||
'members': json['members'] == null ? undefined : json['members'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'permissions': json['permissions'] == null ? undefined : ApiGroupPermissionsFromJSON(json['permissions']),
|
||||
};
|
||||
export function ApiCreateGroupRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiCreateGroupRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
description: json["description"] == null ? undefined : json["description"],
|
||||
groupLink: json["group_link"] == null ? undefined : json["group_link"],
|
||||
members: json["members"] == null ? undefined : json["members"],
|
||||
name: json["name"] == null ? undefined : json["name"],
|
||||
permissions:
|
||||
json["permissions"] == null
|
||||
? undefined
|
||||
: ApiGroupPermissionsFromJSON(json["permissions"]),
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiCreateGroupRequestToJSON(value?: ApiCreateGroupRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'description': value['description'],
|
||||
'group_link': value['groupLink'],
|
||||
'members': value['members'],
|
||||
'name': value['name'],
|
||||
'permissions': ApiGroupPermissionsToJSON(value['permissions']),
|
||||
};
|
||||
export function ApiCreateGroupRequestToJSON(
|
||||
value?: ApiCreateGroupRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
description: value["description"],
|
||||
group_link: value["groupLink"],
|
||||
members: value["members"],
|
||||
name: value["name"],
|
||||
permissions: ApiGroupPermissionsToJSON(value["permissions"]),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,62 @@
|
|||
* 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 ApiCreateGroupResponse
|
||||
*/
|
||||
export interface ApiCreateGroupResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiCreateGroupResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiCreateGroupResponse
|
||||
*/
|
||||
id?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiCreateGroupResponse interface.
|
||||
*/
|
||||
export function instanceOfApiCreateGroupResponse(value: object): value is ApiCreateGroupResponse {
|
||||
return true;
|
||||
export function instanceOfApiCreateGroupResponse(
|
||||
value: object,
|
||||
): value is ApiCreateGroupResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiCreateGroupResponseFromJSON(json: any): ApiCreateGroupResponse {
|
||||
return ApiCreateGroupResponseFromJSONTyped(json, false);
|
||||
export function ApiCreateGroupResponseFromJSON(
|
||||
json: any,
|
||||
): ApiCreateGroupResponse {
|
||||
return ApiCreateGroupResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiCreateGroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiCreateGroupResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
};
|
||||
export function ApiCreateGroupResponseFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiCreateGroupResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
id: json["id"] == null ? undefined : json["id"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiCreateGroupResponseToJSON(value?: ApiCreateGroupResponse | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
};
|
||||
export function ApiCreateGroupResponseToJSON(
|
||||
value?: ApiCreateGroupResponse | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
id: value["id"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,56 @@
|
|||
* 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 ApiError
|
||||
*/
|
||||
export interface ApiError {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiError
|
||||
*/
|
||||
error?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiError
|
||||
*/
|
||||
error?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiError interface.
|
||||
*/
|
||||
export function instanceOfApiError(value: object): value is ApiError {
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiErrorFromJSON(json: any): ApiError {
|
||||
return ApiErrorFromJSONTyped(json, false);
|
||||
return ApiErrorFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'error': json['error'] == null ? undefined : json['error'],
|
||||
};
|
||||
export function ApiErrorFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiError {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
error: json["error"] == null ? undefined : json["error"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiErrorToJSON(value?: ApiError | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'error': value['error'],
|
||||
};
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
error: value["error"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,84 +5,88 @@
|
|||
* 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 ApiGroupPermissions
|
||||
*/
|
||||
export interface ApiGroupPermissions {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiGroupPermissions
|
||||
*/
|
||||
addMembers?: ApiGroupPermissionsAddMembersEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiGroupPermissions
|
||||
*/
|
||||
editGroup?: ApiGroupPermissionsEditGroupEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiGroupPermissions
|
||||
*/
|
||||
addMembers?: ApiGroupPermissionsAddMembersEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiGroupPermissions
|
||||
*/
|
||||
editGroup?: ApiGroupPermissionsEditGroupEnum;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiGroupPermissionsAddMembersEnum = {
|
||||
OnlyAdmins: 'only-admins',
|
||||
EveryMember: 'every-member'
|
||||
OnlyAdmins: "only-admins",
|
||||
EveryMember: "every-member",
|
||||
} as const;
|
||||
export type ApiGroupPermissionsAddMembersEnum = typeof ApiGroupPermissionsAddMembersEnum[keyof typeof ApiGroupPermissionsAddMembersEnum];
|
||||
export type ApiGroupPermissionsAddMembersEnum =
|
||||
(typeof ApiGroupPermissionsAddMembersEnum)[keyof typeof ApiGroupPermissionsAddMembersEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiGroupPermissionsEditGroupEnum = {
|
||||
OnlyAdmins: 'only-admins',
|
||||
EveryMember: 'every-member'
|
||||
OnlyAdmins: "only-admins",
|
||||
EveryMember: "every-member",
|
||||
} as const;
|
||||
export type ApiGroupPermissionsEditGroupEnum = typeof ApiGroupPermissionsEditGroupEnum[keyof typeof ApiGroupPermissionsEditGroupEnum];
|
||||
|
||||
export type ApiGroupPermissionsEditGroupEnum =
|
||||
(typeof ApiGroupPermissionsEditGroupEnum)[keyof typeof ApiGroupPermissionsEditGroupEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiGroupPermissions interface.
|
||||
*/
|
||||
export function instanceOfApiGroupPermissions(value: object): value is ApiGroupPermissions {
|
||||
return true;
|
||||
export function instanceOfApiGroupPermissions(
|
||||
value: object,
|
||||
): value is ApiGroupPermissions {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiGroupPermissionsFromJSON(json: any): ApiGroupPermissions {
|
||||
return ApiGroupPermissionsFromJSONTyped(json, false);
|
||||
return ApiGroupPermissionsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiGroupPermissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiGroupPermissions {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'addMembers': json['add_members'] == null ? undefined : json['add_members'],
|
||||
'editGroup': json['edit_group'] == null ? undefined : json['edit_group'],
|
||||
};
|
||||
export function ApiGroupPermissionsFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiGroupPermissions {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
addMembers: json["add_members"] == null ? undefined : json["add_members"],
|
||||
editGroup: json["edit_group"] == null ? undefined : json["edit_group"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiGroupPermissionsToJSON(value?: ApiGroupPermissions | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'add_members': value['addMembers'],
|
||||
'edit_group': value['editGroup'],
|
||||
};
|
||||
export function ApiGroupPermissionsToJSON(
|
||||
value?: ApiGroupPermissions | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
add_members: value["addMembers"],
|
||||
edit_group: value["editGroup"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,62 @@
|
|||
* 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 ApiLoggingConfiguration
|
||||
*/
|
||||
export interface ApiLoggingConfiguration {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiLoggingConfiguration
|
||||
*/
|
||||
level?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiLoggingConfiguration
|
||||
*/
|
||||
level?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiLoggingConfiguration interface.
|
||||
*/
|
||||
export function instanceOfApiLoggingConfiguration(value: object): value is ApiLoggingConfiguration {
|
||||
return true;
|
||||
export function instanceOfApiLoggingConfiguration(
|
||||
value: object,
|
||||
): value is ApiLoggingConfiguration {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiLoggingConfigurationFromJSON(json: any): ApiLoggingConfiguration {
|
||||
return ApiLoggingConfigurationFromJSONTyped(json, false);
|
||||
export function ApiLoggingConfigurationFromJSON(
|
||||
json: any,
|
||||
): ApiLoggingConfiguration {
|
||||
return ApiLoggingConfigurationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiLoggingConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLoggingConfiguration {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'level': json['Level'] == null ? undefined : json['Level'],
|
||||
};
|
||||
export function ApiLoggingConfigurationFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiLoggingConfiguration {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
level: json["Level"] == null ? undefined : json["Level"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiLoggingConfigurationToJSON(value?: ApiLoggingConfiguration | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'Level': value['level'],
|
||||
};
|
||||
export function ApiLoggingConfigurationToJSON(
|
||||
value?: ApiLoggingConfiguration | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
Level: value["level"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,64 +5,71 @@
|
|||
* 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 ApiRateLimitChallengeRequest
|
||||
*/
|
||||
export interface ApiRateLimitChallengeRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiRateLimitChallengeRequest
|
||||
*/
|
||||
captcha?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiRateLimitChallengeRequest
|
||||
*/
|
||||
challengeToken?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiRateLimitChallengeRequest
|
||||
*/
|
||||
captcha?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiRateLimitChallengeRequest
|
||||
*/
|
||||
challengeToken?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiRateLimitChallengeRequest interface.
|
||||
*/
|
||||
export function instanceOfApiRateLimitChallengeRequest(value: object): value is ApiRateLimitChallengeRequest {
|
||||
return true;
|
||||
export function instanceOfApiRateLimitChallengeRequest(
|
||||
value: object,
|
||||
): value is ApiRateLimitChallengeRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiRateLimitChallengeRequestFromJSON(json: any): ApiRateLimitChallengeRequest {
|
||||
return ApiRateLimitChallengeRequestFromJSONTyped(json, false);
|
||||
export function ApiRateLimitChallengeRequestFromJSON(
|
||||
json: any,
|
||||
): ApiRateLimitChallengeRequest {
|
||||
return ApiRateLimitChallengeRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiRateLimitChallengeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRateLimitChallengeRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'captcha': json['captcha'] == null ? undefined : json['captcha'],
|
||||
'challengeToken': json['challenge_token'] == null ? undefined : json['challenge_token'],
|
||||
};
|
||||
export function ApiRateLimitChallengeRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiRateLimitChallengeRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
captcha: json["captcha"] == null ? undefined : json["captcha"],
|
||||
challengeToken:
|
||||
json["challenge_token"] == null ? undefined : json["challenge_token"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiRateLimitChallengeRequestToJSON(value?: ApiRateLimitChallengeRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'captcha': value['captcha'],
|
||||
'challenge_token': value['challengeToken'],
|
||||
};
|
||||
export function ApiRateLimitChallengeRequestToJSON(
|
||||
value?: ApiRateLimitChallengeRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
captcha: value["captcha"],
|
||||
challenge_token: value["challengeToken"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,80 +5,81 @@
|
|||
* 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 ApiReaction
|
||||
*/
|
||||
export interface ApiReaction {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiReaction
|
||||
*/
|
||||
reaction?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiReaction
|
||||
*/
|
||||
recipient?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiReaction
|
||||
*/
|
||||
targetAuthor?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ApiReaction
|
||||
*/
|
||||
timestamp?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiReaction
|
||||
*/
|
||||
reaction?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiReaction
|
||||
*/
|
||||
recipient?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiReaction
|
||||
*/
|
||||
targetAuthor?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ApiReaction
|
||||
*/
|
||||
timestamp?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiReaction interface.
|
||||
*/
|
||||
export function instanceOfApiReaction(value: object): value is ApiReaction {
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiReactionFromJSON(json: any): ApiReaction {
|
||||
return ApiReactionFromJSONTyped(json, false);
|
||||
return ApiReactionFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiReactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiReaction {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'reaction': json['reaction'] == null ? undefined : json['reaction'],
|
||||
'recipient': json['recipient'] == null ? undefined : json['recipient'],
|
||||
'targetAuthor': json['target_author'] == null ? undefined : json['target_author'],
|
||||
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
||||
};
|
||||
export function ApiReactionFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiReaction {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
reaction: json["reaction"] == null ? undefined : json["reaction"],
|
||||
recipient: json["recipient"] == null ? undefined : json["recipient"],
|
||||
targetAuthor:
|
||||
json["target_author"] == null ? undefined : json["target_author"],
|
||||
timestamp: json["timestamp"] == null ? undefined : json["timestamp"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiReactionToJSON(value?: ApiReaction | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'reaction': value['reaction'],
|
||||
'recipient': value['recipient'],
|
||||
'target_author': value['targetAuthor'],
|
||||
'timestamp': value['timestamp'],
|
||||
};
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
reaction: value["reaction"],
|
||||
recipient: value["recipient"],
|
||||
target_author: value["targetAuthor"],
|
||||
timestamp: value["timestamp"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,83 +5,83 @@
|
|||
* 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 ApiReceipt
|
||||
*/
|
||||
export interface ApiReceipt {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiReceipt
|
||||
*/
|
||||
receiptType?: ApiReceiptReceiptTypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiReceipt
|
||||
*/
|
||||
recipient?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ApiReceipt
|
||||
*/
|
||||
timestamp?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiReceipt
|
||||
*/
|
||||
receiptType?: ApiReceiptReceiptTypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiReceipt
|
||||
*/
|
||||
recipient?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ApiReceipt
|
||||
*/
|
||||
timestamp?: number;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiReceiptReceiptTypeEnum = {
|
||||
Read: 'read',
|
||||
Viewed: 'viewed'
|
||||
Read: "read",
|
||||
Viewed: "viewed",
|
||||
} as const;
|
||||
export type ApiReceiptReceiptTypeEnum = typeof ApiReceiptReceiptTypeEnum[keyof typeof ApiReceiptReceiptTypeEnum];
|
||||
|
||||
export type ApiReceiptReceiptTypeEnum =
|
||||
(typeof ApiReceiptReceiptTypeEnum)[keyof typeof ApiReceiptReceiptTypeEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiReceipt interface.
|
||||
*/
|
||||
export function instanceOfApiReceipt(value: object): value is ApiReceipt {
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiReceiptFromJSON(json: any): ApiReceipt {
|
||||
return ApiReceiptFromJSONTyped(json, false);
|
||||
return ApiReceiptFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiReceiptFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiReceipt {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'receiptType': json['receipt_type'] == null ? undefined : json['receipt_type'],
|
||||
'recipient': json['recipient'] == null ? undefined : json['recipient'],
|
||||
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
||||
};
|
||||
export function ApiReceiptFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiReceipt {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
receiptType:
|
||||
json["receipt_type"] == null ? undefined : json["receipt_type"],
|
||||
recipient: json["recipient"] == null ? undefined : json["recipient"],
|
||||
timestamp: json["timestamp"] == null ? undefined : json["timestamp"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiReceiptToJSON(value?: ApiReceipt | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'receipt_type': value['receiptType'],
|
||||
'recipient': value['recipient'],
|
||||
'timestamp': value['timestamp'],
|
||||
};
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
receipt_type: value["receiptType"],
|
||||
recipient: value["recipient"],
|
||||
timestamp: value["timestamp"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,64 +5,70 @@
|
|||
* 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 ApiRegisterNumberRequest
|
||||
*/
|
||||
export interface ApiRegisterNumberRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiRegisterNumberRequest
|
||||
*/
|
||||
captcha?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiRegisterNumberRequest
|
||||
*/
|
||||
useVoice?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiRegisterNumberRequest
|
||||
*/
|
||||
captcha?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiRegisterNumberRequest
|
||||
*/
|
||||
useVoice?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiRegisterNumberRequest interface.
|
||||
*/
|
||||
export function instanceOfApiRegisterNumberRequest(value: object): value is ApiRegisterNumberRequest {
|
||||
return true;
|
||||
export function instanceOfApiRegisterNumberRequest(
|
||||
value: object,
|
||||
): value is ApiRegisterNumberRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiRegisterNumberRequestFromJSON(json: any): ApiRegisterNumberRequest {
|
||||
return ApiRegisterNumberRequestFromJSONTyped(json, false);
|
||||
export function ApiRegisterNumberRequestFromJSON(
|
||||
json: any,
|
||||
): ApiRegisterNumberRequest {
|
||||
return ApiRegisterNumberRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiRegisterNumberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRegisterNumberRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'captcha': json['captcha'] == null ? undefined : json['captcha'],
|
||||
'useVoice': json['use_voice'] == null ? undefined : json['use_voice'],
|
||||
};
|
||||
export function ApiRegisterNumberRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiRegisterNumberRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
captcha: json["captcha"] == null ? undefined : json["captcha"],
|
||||
useVoice: json["use_voice"] == null ? undefined : json["use_voice"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiRegisterNumberRequestToJSON(value?: ApiRegisterNumberRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'captcha': value['captcha'],
|
||||
'use_voice': value['useVoice'],
|
||||
};
|
||||
export function ApiRegisterNumberRequestToJSON(
|
||||
value?: ApiRegisterNumberRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
captcha: value["captcha"],
|
||||
use_voice: value["useVoice"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,64 +5,66 @@
|
|||
* 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 ApiSearchResponse
|
||||
*/
|
||||
export interface ApiSearchResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSearchResponse
|
||||
*/
|
||||
number?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiSearchResponse
|
||||
*/
|
||||
registered?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSearchResponse
|
||||
*/
|
||||
number?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiSearchResponse
|
||||
*/
|
||||
registered?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiSearchResponse interface.
|
||||
*/
|
||||
export function instanceOfApiSearchResponse(value: object): value is ApiSearchResponse {
|
||||
return true;
|
||||
export function instanceOfApiSearchResponse(
|
||||
value: object,
|
||||
): value is ApiSearchResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiSearchResponseFromJSON(json: any): ApiSearchResponse {
|
||||
return ApiSearchResponseFromJSONTyped(json, false);
|
||||
return ApiSearchResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiSearchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSearchResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'number': json['number'] == null ? undefined : json['number'],
|
||||
'registered': json['registered'] == null ? undefined : json['registered'],
|
||||
};
|
||||
export function ApiSearchResponseFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiSearchResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
number: json["number"] == null ? undefined : json["number"],
|
||||
registered: json["registered"] == null ? undefined : json["registered"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiSearchResponseToJSON(value?: ApiSearchResponse | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'number': value['number'],
|
||||
'registered': value['registered'],
|
||||
};
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
number: value["number"],
|
||||
registered: value["registered"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,64 +5,69 @@
|
|||
* 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 ApiSendMessageError
|
||||
*/
|
||||
export interface ApiSendMessageError {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiSendMessageError
|
||||
*/
|
||||
challengeTokens?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSendMessageError
|
||||
*/
|
||||
error?: string;
|
||||
/**
|
||||
*
|
||||
* @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 instanceOfApiSendMessageError(
|
||||
value: object,
|
||||
): value is ApiSendMessageError {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiSendMessageErrorFromJSON(json: any): ApiSendMessageError {
|
||||
return ApiSendMessageErrorFromJSONTyped(json, false);
|
||||
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 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'],
|
||||
};
|
||||
export function ApiSendMessageErrorToJSON(
|
||||
value?: ApiSendMessageError | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
challenge_tokens: value["challengeTokens"],
|
||||
error: value["error"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,62 @@
|
|||
* 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 ApiSendMessageResponse
|
||||
*/
|
||||
export interface ApiSendMessageResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSendMessageResponse
|
||||
*/
|
||||
timestamp?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSendMessageResponse
|
||||
*/
|
||||
timestamp?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiSendMessageResponse interface.
|
||||
*/
|
||||
export function instanceOfApiSendMessageResponse(value: object): value is ApiSendMessageResponse {
|
||||
return true;
|
||||
export function instanceOfApiSendMessageResponse(
|
||||
value: object,
|
||||
): value is ApiSendMessageResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiSendMessageResponseFromJSON(json: any): ApiSendMessageResponse {
|
||||
return ApiSendMessageResponseFromJSONTyped(json, false);
|
||||
export function ApiSendMessageResponseFromJSON(
|
||||
json: any,
|
||||
): ApiSendMessageResponse {
|
||||
return ApiSendMessageResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiSendMessageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSendMessageResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
||||
};
|
||||
export function ApiSendMessageResponseFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiSendMessageResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
timestamp: json["timestamp"] == null ? undefined : json["timestamp"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiSendMessageResponseToJSON(value?: ApiSendMessageResponse | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'timestamp': value['timestamp'],
|
||||
};
|
||||
export function ApiSendMessageResponseToJSON(
|
||||
value?: ApiSendMessageResponse | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
timestamp: value["timestamp"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,88 +5,91 @@
|
|||
* 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 ApiSendMessageV1
|
||||
*/
|
||||
export interface ApiSendMessageV1 {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSendMessageV1
|
||||
*/
|
||||
base64Attachment?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiSendMessageV1
|
||||
*/
|
||||
isGroup?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSendMessageV1
|
||||
*/
|
||||
message?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSendMessageV1
|
||||
*/
|
||||
number?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiSendMessageV1
|
||||
*/
|
||||
recipients?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSendMessageV1
|
||||
*/
|
||||
base64Attachment?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiSendMessageV1
|
||||
*/
|
||||
isGroup?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSendMessageV1
|
||||
*/
|
||||
message?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSendMessageV1
|
||||
*/
|
||||
number?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiSendMessageV1
|
||||
*/
|
||||
recipients?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiSendMessageV1 interface.
|
||||
*/
|
||||
export function instanceOfApiSendMessageV1(value: object): value is ApiSendMessageV1 {
|
||||
return true;
|
||||
export function instanceOfApiSendMessageV1(
|
||||
value: object,
|
||||
): value is ApiSendMessageV1 {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiSendMessageV1FromJSON(json: any): ApiSendMessageV1 {
|
||||
return ApiSendMessageV1FromJSONTyped(json, false);
|
||||
return ApiSendMessageV1FromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiSendMessageV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSendMessageV1 {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'base64Attachment': json['base64_attachment'] == null ? undefined : json['base64_attachment'],
|
||||
'isGroup': json['is_group'] == null ? undefined : json['is_group'],
|
||||
'message': json['message'] == null ? undefined : json['message'],
|
||||
'number': json['number'] == null ? undefined : json['number'],
|
||||
'recipients': json['recipients'] == null ? undefined : json['recipients'],
|
||||
};
|
||||
export function ApiSendMessageV1FromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiSendMessageV1 {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
base64Attachment:
|
||||
json["base64_attachment"] == null ? undefined : json["base64_attachment"],
|
||||
isGroup: json["is_group"] == null ? undefined : json["is_group"],
|
||||
message: json["message"] == null ? undefined : json["message"],
|
||||
number: json["number"] == null ? undefined : json["number"],
|
||||
recipients: json["recipients"] == null ? undefined : json["recipients"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiSendMessageV1ToJSON(value?: ApiSendMessageV1 | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'base64_attachment': value['base64Attachment'],
|
||||
'is_group': value['isGroup'],
|
||||
'message': value['message'],
|
||||
'number': value['number'],
|
||||
'recipients': value['recipients'],
|
||||
};
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
base64_attachment: value["base64Attachment"],
|
||||
is_group: value["isGroup"],
|
||||
message: value["message"],
|
||||
number: value["number"],
|
||||
recipients: value["recipients"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,62 @@
|
|||
* 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 ApiSetUsernameRequest
|
||||
*/
|
||||
export interface ApiSetUsernameRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSetUsernameRequest
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiSetUsernameRequest
|
||||
*/
|
||||
username?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiSetUsernameRequest interface.
|
||||
*/
|
||||
export function instanceOfApiSetUsernameRequest(value: object): value is ApiSetUsernameRequest {
|
||||
return true;
|
||||
export function instanceOfApiSetUsernameRequest(
|
||||
value: object,
|
||||
): value is ApiSetUsernameRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiSetUsernameRequestFromJSON(json: any): ApiSetUsernameRequest {
|
||||
return ApiSetUsernameRequestFromJSONTyped(json, false);
|
||||
export function ApiSetUsernameRequestFromJSON(
|
||||
json: any,
|
||||
): ApiSetUsernameRequest {
|
||||
return ApiSetUsernameRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiSetUsernameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSetUsernameRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'username': json['username'] == null ? undefined : json['username'],
|
||||
};
|
||||
export function ApiSetUsernameRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiSetUsernameRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
username: json["username"] == null ? undefined : json["username"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiSetUsernameRequestToJSON(value?: ApiSetUsernameRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'username': value['username'],
|
||||
};
|
||||
export function ApiSetUsernameRequestToJSON(
|
||||
value?: ApiSetUsernameRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
username: value["username"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,64 +5,76 @@
|
|||
* 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 ApiTrustIdentityRequest
|
||||
*/
|
||||
export interface ApiTrustIdentityRequest {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiTrustIdentityRequest
|
||||
*/
|
||||
trustAllKnownKeys?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiTrustIdentityRequest
|
||||
*/
|
||||
verifiedSafetyNumber?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiTrustIdentityRequest
|
||||
*/
|
||||
trustAllKnownKeys?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiTrustIdentityRequest
|
||||
*/
|
||||
verifiedSafetyNumber?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiTrustIdentityRequest interface.
|
||||
*/
|
||||
export function instanceOfApiTrustIdentityRequest(value: object): value is ApiTrustIdentityRequest {
|
||||
return true;
|
||||
export function instanceOfApiTrustIdentityRequest(
|
||||
value: object,
|
||||
): value is ApiTrustIdentityRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiTrustIdentityRequestFromJSON(json: any): ApiTrustIdentityRequest {
|
||||
return ApiTrustIdentityRequestFromJSONTyped(json, false);
|
||||
export function ApiTrustIdentityRequestFromJSON(
|
||||
json: any,
|
||||
): ApiTrustIdentityRequest {
|
||||
return ApiTrustIdentityRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiTrustIdentityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTrustIdentityRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'trustAllKnownKeys': json['trust_all_known_keys'] == null ? undefined : json['trust_all_known_keys'],
|
||||
'verifiedSafetyNumber': json['verified_safety_number'] == null ? undefined : json['verified_safety_number'],
|
||||
};
|
||||
export function ApiTrustIdentityRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiTrustIdentityRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
trustAllKnownKeys:
|
||||
json["trust_all_known_keys"] == null
|
||||
? undefined
|
||||
: json["trust_all_known_keys"],
|
||||
verifiedSafetyNumber:
|
||||
json["verified_safety_number"] == null
|
||||
? undefined
|
||||
: json["verified_safety_number"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiTrustIdentityRequestToJSON(value?: ApiTrustIdentityRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'trust_all_known_keys': value['trustAllKnownKeys'],
|
||||
'verified_safety_number': value['verifiedSafetyNumber'],
|
||||
};
|
||||
export function ApiTrustIdentityRequestToJSON(
|
||||
value?: ApiTrustIdentityRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
trust_all_known_keys: value["trustAllKnownKeys"],
|
||||
verified_safety_number: value["verifiedSafetyNumber"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,60 @@
|
|||
* 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 ApiTrustModeRequest
|
||||
*/
|
||||
export interface ApiTrustModeRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiTrustModeRequest
|
||||
*/
|
||||
trustMode?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiTrustModeRequest
|
||||
*/
|
||||
trustMode?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiTrustModeRequest interface.
|
||||
*/
|
||||
export function instanceOfApiTrustModeRequest(value: object): value is ApiTrustModeRequest {
|
||||
return true;
|
||||
export function instanceOfApiTrustModeRequest(
|
||||
value: object,
|
||||
): value is ApiTrustModeRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiTrustModeRequestFromJSON(json: any): ApiTrustModeRequest {
|
||||
return ApiTrustModeRequestFromJSONTyped(json, false);
|
||||
return ApiTrustModeRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiTrustModeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTrustModeRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'trustMode': json['trust_mode'] == null ? undefined : json['trust_mode'],
|
||||
};
|
||||
export function ApiTrustModeRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiTrustModeRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
trustMode: json["trust_mode"] == null ? undefined : json["trust_mode"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiTrustModeRequestToJSON(value?: ApiTrustModeRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'trust_mode': value['trustMode'],
|
||||
};
|
||||
export function ApiTrustModeRequestToJSON(
|
||||
value?: ApiTrustModeRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
trust_mode: value["trustMode"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,60 @@
|
|||
* 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 ApiTrustModeResponse
|
||||
*/
|
||||
export interface ApiTrustModeResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiTrustModeResponse
|
||||
*/
|
||||
trustMode?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiTrustModeResponse
|
||||
*/
|
||||
trustMode?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiTrustModeResponse interface.
|
||||
*/
|
||||
export function instanceOfApiTrustModeResponse(value: object): value is ApiTrustModeResponse {
|
||||
return true;
|
||||
export function instanceOfApiTrustModeResponse(
|
||||
value: object,
|
||||
): value is ApiTrustModeResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiTrustModeResponseFromJSON(json: any): ApiTrustModeResponse {
|
||||
return ApiTrustModeResponseFromJSONTyped(json, false);
|
||||
return ApiTrustModeResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiTrustModeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTrustModeResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'trustMode': json['trust_mode'] == null ? undefined : json['trust_mode'],
|
||||
};
|
||||
export function ApiTrustModeResponseFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiTrustModeResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
trustMode: json["trust_mode"] == null ? undefined : json["trust_mode"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiTrustModeResponseToJSON(value?: ApiTrustModeResponse | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'trust_mode': value['trustMode'],
|
||||
};
|
||||
export function ApiTrustModeResponseToJSON(
|
||||
value?: ApiTrustModeResponse | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
trust_mode: value["trustMode"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,62 @@
|
|||
* 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 ApiTypingIndicatorRequest
|
||||
*/
|
||||
export interface ApiTypingIndicatorRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiTypingIndicatorRequest
|
||||
*/
|
||||
recipient?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiTypingIndicatorRequest
|
||||
*/
|
||||
recipient?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiTypingIndicatorRequest interface.
|
||||
*/
|
||||
export function instanceOfApiTypingIndicatorRequest(value: object): value is ApiTypingIndicatorRequest {
|
||||
return true;
|
||||
export function instanceOfApiTypingIndicatorRequest(
|
||||
value: object,
|
||||
): value is ApiTypingIndicatorRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiTypingIndicatorRequestFromJSON(json: any): ApiTypingIndicatorRequest {
|
||||
return ApiTypingIndicatorRequestFromJSONTyped(json, false);
|
||||
export function ApiTypingIndicatorRequestFromJSON(
|
||||
json: any,
|
||||
): ApiTypingIndicatorRequest {
|
||||
return ApiTypingIndicatorRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiTypingIndicatorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTypingIndicatorRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'recipient': json['recipient'] == null ? undefined : json['recipient'],
|
||||
};
|
||||
export function ApiTypingIndicatorRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiTypingIndicatorRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
recipient: json["recipient"] == null ? undefined : json["recipient"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiTypingIndicatorRequestToJSON(value?: ApiTypingIndicatorRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'recipient': value['recipient'],
|
||||
};
|
||||
export function ApiTypingIndicatorRequestToJSON(
|
||||
value?: ApiTypingIndicatorRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
recipient: value["recipient"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,64 +5,72 @@
|
|||
* 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 ApiUnregisterNumberRequest
|
||||
*/
|
||||
export interface ApiUnregisterNumberRequest {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiUnregisterNumberRequest
|
||||
*/
|
||||
deleteAccount?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiUnregisterNumberRequest
|
||||
*/
|
||||
deleteLocalData?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiUnregisterNumberRequest
|
||||
*/
|
||||
deleteAccount?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiUnregisterNumberRequest
|
||||
*/
|
||||
deleteLocalData?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiUnregisterNumberRequest interface.
|
||||
*/
|
||||
export function instanceOfApiUnregisterNumberRequest(value: object): value is ApiUnregisterNumberRequest {
|
||||
return true;
|
||||
export function instanceOfApiUnregisterNumberRequest(
|
||||
value: object,
|
||||
): value is ApiUnregisterNumberRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiUnregisterNumberRequestFromJSON(json: any): ApiUnregisterNumberRequest {
|
||||
return ApiUnregisterNumberRequestFromJSONTyped(json, false);
|
||||
export function ApiUnregisterNumberRequestFromJSON(
|
||||
json: any,
|
||||
): ApiUnregisterNumberRequest {
|
||||
return ApiUnregisterNumberRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiUnregisterNumberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUnregisterNumberRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'deleteAccount': json['delete_account'] == null ? undefined : json['delete_account'],
|
||||
'deleteLocalData': json['delete_local_data'] == null ? undefined : json['delete_local_data'],
|
||||
};
|
||||
export function ApiUnregisterNumberRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiUnregisterNumberRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
deleteAccount:
|
||||
json["delete_account"] == null ? undefined : json["delete_account"],
|
||||
deleteLocalData:
|
||||
json["delete_local_data"] == null ? undefined : json["delete_local_data"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiUnregisterNumberRequestToJSON(value?: ApiUnregisterNumberRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'delete_account': value['deleteAccount'],
|
||||
'delete_local_data': value['deleteLocalData'],
|
||||
};
|
||||
export function ApiUnregisterNumberRequestToJSON(
|
||||
value?: ApiUnregisterNumberRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
delete_account: value["deleteAccount"],
|
||||
delete_local_data: value["deleteLocalData"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,64 +5,74 @@
|
|||
* 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 ApiUpdateAccountSettingsRequest
|
||||
*/
|
||||
export interface ApiUpdateAccountSettingsRequest {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiUpdateAccountSettingsRequest
|
||||
*/
|
||||
discoverableByNumber?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiUpdateAccountSettingsRequest
|
||||
*/
|
||||
shareNumber?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiUpdateAccountSettingsRequest
|
||||
*/
|
||||
discoverableByNumber?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ApiUpdateAccountSettingsRequest
|
||||
*/
|
||||
shareNumber?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiUpdateAccountSettingsRequest interface.
|
||||
*/
|
||||
export function instanceOfApiUpdateAccountSettingsRequest(value: object): value is ApiUpdateAccountSettingsRequest {
|
||||
return true;
|
||||
export function instanceOfApiUpdateAccountSettingsRequest(
|
||||
value: object,
|
||||
): value is ApiUpdateAccountSettingsRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiUpdateAccountSettingsRequestFromJSON(json: any): ApiUpdateAccountSettingsRequest {
|
||||
return ApiUpdateAccountSettingsRequestFromJSONTyped(json, false);
|
||||
export function ApiUpdateAccountSettingsRequestFromJSON(
|
||||
json: any,
|
||||
): ApiUpdateAccountSettingsRequest {
|
||||
return ApiUpdateAccountSettingsRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiUpdateAccountSettingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUpdateAccountSettingsRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'discoverableByNumber': json['discoverable_by_number'] == null ? undefined : json['discoverable_by_number'],
|
||||
'shareNumber': json['share_number'] == null ? undefined : json['share_number'],
|
||||
};
|
||||
export function ApiUpdateAccountSettingsRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiUpdateAccountSettingsRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
discoverableByNumber:
|
||||
json["discoverable_by_number"] == null
|
||||
? undefined
|
||||
: json["discoverable_by_number"],
|
||||
shareNumber:
|
||||
json["share_number"] == null ? undefined : json["share_number"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiUpdateAccountSettingsRequestToJSON(value?: ApiUpdateAccountSettingsRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'discoverable_by_number': value['discoverableByNumber'],
|
||||
'share_number': value['shareNumber'],
|
||||
};
|
||||
export function ApiUpdateAccountSettingsRequestToJSON(
|
||||
value?: ApiUpdateAccountSettingsRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
discoverable_by_number: value["discoverableByNumber"],
|
||||
share_number: value["shareNumber"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,72 +5,81 @@
|
|||
* 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 ApiUpdateContactRequest
|
||||
*/
|
||||
export interface ApiUpdateContactRequest {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ApiUpdateContactRequest
|
||||
*/
|
||||
expirationInSeconds?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateContactRequest
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateContactRequest
|
||||
*/
|
||||
recipient?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ApiUpdateContactRequest
|
||||
*/
|
||||
expirationInSeconds?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateContactRequest
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateContactRequest
|
||||
*/
|
||||
recipient?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiUpdateContactRequest interface.
|
||||
*/
|
||||
export function instanceOfApiUpdateContactRequest(value: object): value is ApiUpdateContactRequest {
|
||||
return true;
|
||||
export function instanceOfApiUpdateContactRequest(
|
||||
value: object,
|
||||
): value is ApiUpdateContactRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiUpdateContactRequestFromJSON(json: any): ApiUpdateContactRequest {
|
||||
return ApiUpdateContactRequestFromJSONTyped(json, false);
|
||||
export function ApiUpdateContactRequestFromJSON(
|
||||
json: any,
|
||||
): ApiUpdateContactRequest {
|
||||
return ApiUpdateContactRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiUpdateContactRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUpdateContactRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'expirationInSeconds': json['expiration_in_seconds'] == null ? undefined : json['expiration_in_seconds'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'recipient': json['recipient'] == null ? undefined : json['recipient'],
|
||||
};
|
||||
export function ApiUpdateContactRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiUpdateContactRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
expirationInSeconds:
|
||||
json["expiration_in_seconds"] == null
|
||||
? undefined
|
||||
: json["expiration_in_seconds"],
|
||||
name: json["name"] == null ? undefined : json["name"],
|
||||
recipient: json["recipient"] == null ? undefined : json["recipient"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiUpdateContactRequestToJSON(value?: ApiUpdateContactRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'expiration_in_seconds': value['expirationInSeconds'],
|
||||
'name': value['name'],
|
||||
'recipient': value['recipient'],
|
||||
};
|
||||
export function ApiUpdateContactRequestToJSON(
|
||||
value?: ApiUpdateContactRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
expiration_in_seconds: value["expirationInSeconds"],
|
||||
name: value["name"],
|
||||
recipient: value["recipient"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,72 +5,79 @@
|
|||
* 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 ApiUpdateGroupRequest
|
||||
*/
|
||||
export interface ApiUpdateGroupRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateGroupRequest
|
||||
*/
|
||||
base64Avatar?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateGroupRequest
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateGroupRequest
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateGroupRequest
|
||||
*/
|
||||
base64Avatar?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateGroupRequest
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateGroupRequest
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiUpdateGroupRequest interface.
|
||||
*/
|
||||
export function instanceOfApiUpdateGroupRequest(value: object): value is ApiUpdateGroupRequest {
|
||||
return true;
|
||||
export function instanceOfApiUpdateGroupRequest(
|
||||
value: object,
|
||||
): value is ApiUpdateGroupRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiUpdateGroupRequestFromJSON(json: any): ApiUpdateGroupRequest {
|
||||
return ApiUpdateGroupRequestFromJSONTyped(json, false);
|
||||
export function ApiUpdateGroupRequestFromJSON(
|
||||
json: any,
|
||||
): ApiUpdateGroupRequest {
|
||||
return ApiUpdateGroupRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiUpdateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUpdateGroupRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'base64Avatar': json['base64_avatar'] == null ? undefined : json['base64_avatar'],
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
};
|
||||
export function ApiUpdateGroupRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiUpdateGroupRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
base64Avatar:
|
||||
json["base64_avatar"] == null ? undefined : json["base64_avatar"],
|
||||
description: json["description"] == null ? undefined : json["description"],
|
||||
name: json["name"] == null ? undefined : json["name"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiUpdateGroupRequestToJSON(value?: ApiUpdateGroupRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'base64_avatar': value['base64Avatar'],
|
||||
'description': value['description'],
|
||||
'name': value['name'],
|
||||
};
|
||||
export function ApiUpdateGroupRequestToJSON(
|
||||
value?: ApiUpdateGroupRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
base64_avatar: value["base64Avatar"],
|
||||
description: value["description"],
|
||||
name: value["name"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,64 +5,71 @@
|
|||
* 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 ApiUpdateProfileRequest
|
||||
*/
|
||||
export interface ApiUpdateProfileRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateProfileRequest
|
||||
*/
|
||||
base64Avatar?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateProfileRequest
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateProfileRequest
|
||||
*/
|
||||
base64Avatar?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiUpdateProfileRequest
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiUpdateProfileRequest interface.
|
||||
*/
|
||||
export function instanceOfApiUpdateProfileRequest(value: object): value is ApiUpdateProfileRequest {
|
||||
return true;
|
||||
export function instanceOfApiUpdateProfileRequest(
|
||||
value: object,
|
||||
): value is ApiUpdateProfileRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiUpdateProfileRequestFromJSON(json: any): ApiUpdateProfileRequest {
|
||||
return ApiUpdateProfileRequestFromJSONTyped(json, false);
|
||||
export function ApiUpdateProfileRequestFromJSON(
|
||||
json: any,
|
||||
): ApiUpdateProfileRequest {
|
||||
return ApiUpdateProfileRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiUpdateProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUpdateProfileRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'base64Avatar': json['base64_avatar'] == null ? undefined : json['base64_avatar'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
};
|
||||
export function ApiUpdateProfileRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiUpdateProfileRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
base64Avatar:
|
||||
json["base64_avatar"] == null ? undefined : json["base64_avatar"],
|
||||
name: json["name"] == null ? undefined : json["name"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiUpdateProfileRequestToJSON(value?: ApiUpdateProfileRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'base64_avatar': value['base64Avatar'],
|
||||
'name': value['name'],
|
||||
};
|
||||
export function ApiUpdateProfileRequestToJSON(
|
||||
value?: ApiUpdateProfileRequest | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
base64_avatar: value["base64Avatar"],
|
||||
name: value["name"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,56 +5,62 @@
|
|||
* 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 ApiVerifyNumberSettings
|
||||
*/
|
||||
export interface ApiVerifyNumberSettings {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiVerifyNumberSettings
|
||||
*/
|
||||
pin?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiVerifyNumberSettings
|
||||
*/
|
||||
pin?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApiVerifyNumberSettings interface.
|
||||
*/
|
||||
export function instanceOfApiVerifyNumberSettings(value: object): value is ApiVerifyNumberSettings {
|
||||
return true;
|
||||
export function instanceOfApiVerifyNumberSettings(
|
||||
value: object,
|
||||
): value is ApiVerifyNumberSettings {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ApiVerifyNumberSettingsFromJSON(json: any): ApiVerifyNumberSettings {
|
||||
return ApiVerifyNumberSettingsFromJSONTyped(json, false);
|
||||
export function ApiVerifyNumberSettingsFromJSON(
|
||||
json: any,
|
||||
): ApiVerifyNumberSettings {
|
||||
return ApiVerifyNumberSettingsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApiVerifyNumberSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiVerifyNumberSettings {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'pin': json['pin'] == null ? undefined : json['pin'],
|
||||
};
|
||||
export function ApiVerifyNumberSettingsFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ApiVerifyNumberSettings {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
pin: json["pin"] == null ? undefined : json["pin"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ApiVerifyNumberSettingsToJSON(value?: ApiVerifyNumberSettings | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'pin': value['pin'],
|
||||
};
|
||||
export function ApiVerifyNumberSettingsToJSON(
|
||||
value?: ApiVerifyNumberSettings | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
pin: value["pin"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,88 +5,89 @@
|
|||
* 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 ClientAbout
|
||||
*/
|
||||
export interface ClientAbout {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ClientAbout
|
||||
*/
|
||||
build?: number;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: Array<string>; }}
|
||||
* @memberof ClientAbout
|
||||
*/
|
||||
capabilities?: { [key: string]: Array<string>; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientAbout
|
||||
*/
|
||||
mode?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientAbout
|
||||
*/
|
||||
version?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientAbout
|
||||
*/
|
||||
versions?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ClientAbout
|
||||
*/
|
||||
build?: number;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: Array<string>; }}
|
||||
* @memberof ClientAbout
|
||||
*/
|
||||
capabilities?: { [key: string]: Array<string> };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientAbout
|
||||
*/
|
||||
mode?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientAbout
|
||||
*/
|
||||
version?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientAbout
|
||||
*/
|
||||
versions?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ClientAbout interface.
|
||||
*/
|
||||
export function instanceOfClientAbout(value: object): value is ClientAbout {
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ClientAboutFromJSON(json: any): ClientAbout {
|
||||
return ClientAboutFromJSONTyped(json, false);
|
||||
return ClientAboutFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientAboutFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientAbout {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'build': json['build'] == null ? undefined : json['build'],
|
||||
'capabilities': json['capabilities'] == null ? undefined : json['capabilities'],
|
||||
'mode': json['mode'] == null ? undefined : json['mode'],
|
||||
'version': json['version'] == null ? undefined : json['version'],
|
||||
'versions': json['versions'] == null ? undefined : json['versions'],
|
||||
};
|
||||
export function ClientAboutFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ClientAbout {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
build: json["build"] == null ? undefined : json["build"],
|
||||
capabilities:
|
||||
json["capabilities"] == null ? undefined : json["capabilities"],
|
||||
mode: json["mode"] == null ? undefined : json["mode"],
|
||||
version: json["version"] == null ? undefined : json["version"],
|
||||
versions: json["versions"] == null ? undefined : json["versions"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientAboutToJSON(value?: ClientAbout | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'build': value['build'],
|
||||
'capabilities': value['capabilities'],
|
||||
'mode': value['mode'],
|
||||
'version': value['version'],
|
||||
'versions': value['versions'],
|
||||
};
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
build: value["build"],
|
||||
capabilities: value["capabilities"],
|
||||
mode: value["mode"],
|
||||
version: value["version"],
|
||||
versions: value["versions"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,120 +5,124 @@
|
|||
* 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 ClientGroupEntry
|
||||
*/
|
||||
export interface ClientGroupEntry {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
admins?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
blocked?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
internalId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
inviteLink?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
members?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
pendingInvites?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
pendingRequests?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
admins?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
blocked?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
internalId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
inviteLink?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
members?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
pendingInvites?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientGroupEntry
|
||||
*/
|
||||
pendingRequests?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ClientGroupEntry interface.
|
||||
*/
|
||||
export function instanceOfClientGroupEntry(value: object): value is ClientGroupEntry {
|
||||
return true;
|
||||
export function instanceOfClientGroupEntry(
|
||||
value: object,
|
||||
): value is ClientGroupEntry {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ClientGroupEntryFromJSON(json: any): ClientGroupEntry {
|
||||
return ClientGroupEntryFromJSONTyped(json, false);
|
||||
return ClientGroupEntryFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientGroupEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientGroupEntry {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'admins': json['admins'] == null ? undefined : json['admins'],
|
||||
'blocked': json['blocked'] == null ? undefined : json['blocked'],
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'internalId': json['internal_id'] == null ? undefined : json['internal_id'],
|
||||
'inviteLink': json['invite_link'] == null ? undefined : json['invite_link'],
|
||||
'members': json['members'] == null ? undefined : json['members'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'pendingInvites': json['pending_invites'] == null ? undefined : json['pending_invites'],
|
||||
'pendingRequests': json['pending_requests'] == null ? undefined : json['pending_requests'],
|
||||
};
|
||||
export function ClientGroupEntryFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ClientGroupEntry {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
admins: json["admins"] == null ? undefined : json["admins"],
|
||||
blocked: json["blocked"] == null ? undefined : json["blocked"],
|
||||
id: json["id"] == null ? undefined : json["id"],
|
||||
internalId: json["internal_id"] == null ? undefined : json["internal_id"],
|
||||
inviteLink: json["invite_link"] == null ? undefined : json["invite_link"],
|
||||
members: json["members"] == null ? undefined : json["members"],
|
||||
name: json["name"] == null ? undefined : json["name"],
|
||||
pendingInvites:
|
||||
json["pending_invites"] == null ? undefined : json["pending_invites"],
|
||||
pendingRequests:
|
||||
json["pending_requests"] == null ? undefined : json["pending_requests"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientGroupEntryToJSON(value?: ClientGroupEntry | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'admins': value['admins'],
|
||||
'blocked': value['blocked'],
|
||||
'id': value['id'],
|
||||
'internal_id': value['internalId'],
|
||||
'invite_link': value['inviteLink'],
|
||||
'members': value['members'],
|
||||
'name': value['name'],
|
||||
'pending_invites': value['pendingInvites'],
|
||||
'pending_requests': value['pendingRequests'],
|
||||
};
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
admins: value["admins"],
|
||||
blocked: value["blocked"],
|
||||
id: value["id"],
|
||||
internal_id: value["internalId"],
|
||||
invite_link: value["inviteLink"],
|
||||
members: value["members"],
|
||||
name: value["name"],
|
||||
pending_invites: value["pendingInvites"],
|
||||
pending_requests: value["pendingRequests"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,88 +5,93 @@
|
|||
* 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 ClientIdentityEntry
|
||||
*/
|
||||
export interface ClientIdentityEntry {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientIdentityEntry
|
||||
*/
|
||||
added?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientIdentityEntry
|
||||
*/
|
||||
fingerprint?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientIdentityEntry
|
||||
*/
|
||||
number?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientIdentityEntry
|
||||
*/
|
||||
safetyNumber?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientIdentityEntry
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientIdentityEntry
|
||||
*/
|
||||
added?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientIdentityEntry
|
||||
*/
|
||||
fingerprint?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientIdentityEntry
|
||||
*/
|
||||
number?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientIdentityEntry
|
||||
*/
|
||||
safetyNumber?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientIdentityEntry
|
||||
*/
|
||||
status?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ClientIdentityEntry interface.
|
||||
*/
|
||||
export function instanceOfClientIdentityEntry(value: object): value is ClientIdentityEntry {
|
||||
return true;
|
||||
export function instanceOfClientIdentityEntry(
|
||||
value: object,
|
||||
): value is ClientIdentityEntry {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ClientIdentityEntryFromJSON(json: any): ClientIdentityEntry {
|
||||
return ClientIdentityEntryFromJSONTyped(json, false);
|
||||
return ClientIdentityEntryFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientIdentityEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientIdentityEntry {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'added': json['added'] == null ? undefined : json['added'],
|
||||
'fingerprint': json['fingerprint'] == null ? undefined : json['fingerprint'],
|
||||
'number': json['number'] == null ? undefined : json['number'],
|
||||
'safetyNumber': json['safety_number'] == null ? undefined : json['safety_number'],
|
||||
'status': json['status'] == null ? undefined : json['status'],
|
||||
};
|
||||
export function ClientIdentityEntryFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ClientIdentityEntry {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
added: json["added"] == null ? undefined : json["added"],
|
||||
fingerprint: json["fingerprint"] == null ? undefined : json["fingerprint"],
|
||||
number: json["number"] == null ? undefined : json["number"],
|
||||
safetyNumber:
|
||||
json["safety_number"] == null ? undefined : json["safety_number"],
|
||||
status: json["status"] == null ? undefined : json["status"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientIdentityEntryToJSON(value?: ClientIdentityEntry | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'added': value['added'],
|
||||
'fingerprint': value['fingerprint'],
|
||||
'number': value['number'],
|
||||
'safety_number': value['safetyNumber'],
|
||||
'status': value['status'],
|
||||
};
|
||||
export function ClientIdentityEntryToJSON(
|
||||
value?: ClientIdentityEntry | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
added: value["added"],
|
||||
fingerprint: value["fingerprint"],
|
||||
number: value["number"],
|
||||
safety_number: value["safetyNumber"],
|
||||
status: value["status"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,88 +5,94 @@
|
|||
* 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 ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
export interface ClientListInstalledStickerPacksResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
author?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
installed?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
packId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
url?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
author?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
installed?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
packId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientListInstalledStickerPacksResponse
|
||||
*/
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ClientListInstalledStickerPacksResponse interface.
|
||||
*/
|
||||
export function instanceOfClientListInstalledStickerPacksResponse(value: object): value is ClientListInstalledStickerPacksResponse {
|
||||
return true;
|
||||
export function instanceOfClientListInstalledStickerPacksResponse(
|
||||
value: object,
|
||||
): value is ClientListInstalledStickerPacksResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ClientListInstalledStickerPacksResponseFromJSON(json: any): ClientListInstalledStickerPacksResponse {
|
||||
return ClientListInstalledStickerPacksResponseFromJSONTyped(json, false);
|
||||
export function ClientListInstalledStickerPacksResponseFromJSON(
|
||||
json: any,
|
||||
): ClientListInstalledStickerPacksResponse {
|
||||
return ClientListInstalledStickerPacksResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientListInstalledStickerPacksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientListInstalledStickerPacksResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'author': json['author'] == null ? undefined : json['author'],
|
||||
'installed': json['installed'] == null ? undefined : json['installed'],
|
||||
'packId': json['pack_id'] == null ? undefined : json['pack_id'],
|
||||
'title': json['title'] == null ? undefined : json['title'],
|
||||
'url': json['url'] == null ? undefined : json['url'],
|
||||
};
|
||||
export function ClientListInstalledStickerPacksResponseFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ClientListInstalledStickerPacksResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
author: json["author"] == null ? undefined : json["author"],
|
||||
installed: json["installed"] == null ? undefined : json["installed"],
|
||||
packId: json["pack_id"] == null ? undefined : json["pack_id"],
|
||||
title: json["title"] == null ? undefined : json["title"],
|
||||
url: json["url"] == null ? undefined : json["url"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientListInstalledStickerPacksResponseToJSON(value?: ClientListInstalledStickerPacksResponse | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'author': value['author'],
|
||||
'installed': value['installed'],
|
||||
'pack_id': value['packId'],
|
||||
'title': value['title'],
|
||||
'url': value['url'],
|
||||
};
|
||||
export function ClientListInstalledStickerPacksResponseToJSON(
|
||||
value?: ClientListInstalledStickerPacksResponse | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
author: value["author"],
|
||||
installed: value["installed"],
|
||||
pack_id: value["packId"],
|
||||
title: value["title"],
|
||||
url: value["url"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,64 +5,71 @@
|
|||
* 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 ClientSetUsernameResponse
|
||||
*/
|
||||
export interface ClientSetUsernameResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientSetUsernameResponse
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientSetUsernameResponse
|
||||
*/
|
||||
usernameLink?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientSetUsernameResponse
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientSetUsernameResponse
|
||||
*/
|
||||
usernameLink?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ClientSetUsernameResponse interface.
|
||||
*/
|
||||
export function instanceOfClientSetUsernameResponse(value: object): value is ClientSetUsernameResponse {
|
||||
return true;
|
||||
export function instanceOfClientSetUsernameResponse(
|
||||
value: object,
|
||||
): value is ClientSetUsernameResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ClientSetUsernameResponseFromJSON(json: any): ClientSetUsernameResponse {
|
||||
return ClientSetUsernameResponseFromJSONTyped(json, false);
|
||||
export function ClientSetUsernameResponseFromJSON(
|
||||
json: any,
|
||||
): ClientSetUsernameResponse {
|
||||
return ClientSetUsernameResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientSetUsernameResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientSetUsernameResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'username': json['username'] == null ? undefined : json['username'],
|
||||
'usernameLink': json['username_link'] == null ? undefined : json['username_link'],
|
||||
};
|
||||
export function ClientSetUsernameResponseFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): ClientSetUsernameResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
username: json["username"] == null ? undefined : json["username"],
|
||||
usernameLink:
|
||||
json["username_link"] == null ? undefined : json["username_link"],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientSetUsernameResponseToJSON(value?: ClientSetUsernameResponse | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'username': value['username'],
|
||||
'username_link': value['usernameLink'],
|
||||
};
|
||||
export function ClientSetUsernameResponseToJSON(
|
||||
value?: ClientSetUsernameResponse | null,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
username: value["username"],
|
||||
username_link: value["usernameLink"],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,37 +1,37 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from './ApiAddDeviceRequest';
|
||||
export * from './ApiAddStickerPackRequest';
|
||||
export * from './ApiChangeGroupAdminsRequest';
|
||||
export * from './ApiChangeGroupMembersRequest';
|
||||
export * from './ApiConfiguration';
|
||||
export * from './ApiCreateGroupRequest';
|
||||
export * from './ApiCreateGroupResponse';
|
||||
export * from './ApiError';
|
||||
export * from './ApiGroupPermissions';
|
||||
export * from './ApiLoggingConfiguration';
|
||||
export * from './ApiRateLimitChallengeRequest';
|
||||
export * from './ApiReaction';
|
||||
export * from './ApiReceipt';
|
||||
export * from './ApiRegisterNumberRequest';
|
||||
export * from './ApiSearchResponse';
|
||||
export * from './ApiSendMessageError';
|
||||
export * from './ApiSendMessageResponse';
|
||||
export * from './ApiSendMessageV1';
|
||||
export * from './ApiSendMessageV2';
|
||||
export * from './ApiSetUsernameRequest';
|
||||
export * from './ApiTrustIdentityRequest';
|
||||
export * from './ApiTrustModeRequest';
|
||||
export * from './ApiTrustModeResponse';
|
||||
export * from './ApiTypingIndicatorRequest';
|
||||
export * from './ApiUnregisterNumberRequest';
|
||||
export * from './ApiUpdateAccountSettingsRequest';
|
||||
export * from './ApiUpdateContactRequest';
|
||||
export * from './ApiUpdateGroupRequest';
|
||||
export * from './ApiUpdateProfileRequest';
|
||||
export * from './ApiVerifyNumberSettings';
|
||||
export * from './ClientAbout';
|
||||
export * from './ClientGroupEntry';
|
||||
export * from './ClientIdentityEntry';
|
||||
export * from './ClientListInstalledStickerPacksResponse';
|
||||
export * from './ClientSetUsernameResponse';
|
||||
export * from "./ApiAddDeviceRequest.js";
|
||||
export * from "./ApiAddStickerPackRequest.js";
|
||||
export * from "./ApiChangeGroupAdminsRequest.js";
|
||||
export * from "./ApiChangeGroupMembersRequest.js";
|
||||
export * from "./ApiConfiguration.js";
|
||||
export * from "./ApiCreateGroupRequest.js";
|
||||
export * from "./ApiCreateGroupResponse.js";
|
||||
export * from "./ApiError.js";
|
||||
export * from "./ApiGroupPermissions.js";
|
||||
export * from "./ApiLoggingConfiguration.js";
|
||||
export * from "./ApiRateLimitChallengeRequest.js";
|
||||
export * from "./ApiReaction.js";
|
||||
export * from "./ApiReceipt.js";
|
||||
export * from "./ApiRegisterNumberRequest.js";
|
||||
export * from "./ApiSearchResponse.js";
|
||||
export * from "./ApiSendMessageError.js";
|
||||
export * from "./ApiSendMessageResponse.js";
|
||||
export * from "./ApiSendMessageV1.js";
|
||||
export * from "./ApiSendMessageV2.js";
|
||||
export * from "./ApiSetUsernameRequest.js";
|
||||
export * from "./ApiTrustIdentityRequest.js";
|
||||
export * from "./ApiTrustModeRequest.js";
|
||||
export * from "./ApiTrustModeResponse.js";
|
||||
export * from "./ApiTypingIndicatorRequest.js";
|
||||
export * from "./ApiUnregisterNumberRequest.js";
|
||||
export * from "./ApiUpdateAccountSettingsRequest.js";
|
||||
export * from "./ApiUpdateContactRequest.js";
|
||||
export * from "./ApiUpdateGroupRequest.js";
|
||||
export * from "./ApiUpdateProfileRequest.js";
|
||||
export * from "./ApiVerifyNumberSettings.js";
|
||||
export * from "./ClientAbout.js";
|
||||
export * from "./ClientGroupEntry.js";
|
||||
export * from "./ClientIdentityEntry.js";
|
||||
export * from "./ClientListInstalledStickerPacksResponse.js";
|
||||
export * from "./ClientSetUsernameResponse.js";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue