Worker build updates
This commit is contained in:
parent
45c80ca98a
commit
0cf1c3b8fd
64 changed files with 4216 additions and 3450 deletions
1
apps/bridge-worker/crontab
Normal file
1
apps/bridge-worker/crontab
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
*/1 * * * * fetch-signal-messages
|
||||||
|
|
@ -14,7 +14,7 @@ const startWorker = async () => {
|
||||||
noHandleSignals: false,
|
noHandleSignals: false,
|
||||||
pollInterval: 1000,
|
pollInterval: 1000,
|
||||||
taskDirectory: `${__dirname}/tasks`,
|
taskDirectory: `${__dirname}/tasks`,
|
||||||
// crontabFile: `${__dirname}/crontab`,
|
crontabFile: `${__dirname}/crontab`,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,13 @@ const notifyWebhooksTask = async (
|
||||||
for (const webhook of webhooks) {
|
for (const webhook of webhooks) {
|
||||||
const { endpointUrl, httpMethod, headers } = webhook;
|
const { endpointUrl, httpMethod, headers } = webhook;
|
||||||
const finalHeaders = { "Content-Type": "application/json", ...headers };
|
const finalHeaders = { "Content-Type": "application/json", ...headers };
|
||||||
|
console.log({ endpointUrl, httpMethod, headers, finalHeaders });
|
||||||
await fetch(endpointUrl, {
|
const result = await fetch(endpointUrl, {
|
||||||
method: httpMethod,
|
method: httpMethod,
|
||||||
headers: finalHeaders,
|
headers: finalHeaders,
|
||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
});
|
});
|
||||||
|
console.log(result);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"extends": "@link-stack/typescript-config/tsconfig.json",
|
"extends": "@link-stack/typescript-config/tsconfig.node.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "build/main"
|
"outDir": "build/main"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
export { receiveMessage as POST } from "@link-stack/bridge-ui";
|
||||||
1
apps/link/app/api/[service]/bots/[token]/route.ts
Normal file
1
apps/link/app/api/[service]/bots/[token]/route.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export { getBot as GET } from "@link-stack/bridge-ui";
|
||||||
1
apps/link/app/api/[service]/bots/[token]/send/route.ts
Normal file
1
apps/link/app/api/[service]/bots/[token]/send/route.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export { sendMessage as POST } from "@link-stack/bridge-ui";
|
||||||
3
apps/link/app/api/[service]/webhooks/route.ts
Normal file
3
apps/link/app/api/[service]/webhooks/route.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
import { handleWebhook } from "@link-stack/bridge-ui";
|
||||||
|
|
||||||
|
export { handleWebhook as GET, handleWebhook as POST };
|
||||||
|
|
@ -79,5 +79,7 @@ export default withAuth(checkRewrites, {
|
||||||
});
|
});
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
matcher: ["/((?!ws|wss|_next/static|_next/image|favicon.ico).*)"],
|
matcher: [
|
||||||
|
"/((?!ws|wss|api/signal|api/whatsapp|api/facebook|_next/static|_next/image|favicon.ico).*)",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ services:
|
||||||
image: registry.gitlab.com/digiresilience/link/link-stack/zammad:${LINK_STACK_VERSION}
|
image: registry.gitlab.com/digiresilience/link/link-stack/zammad:${LINK_STACK_VERSION}
|
||||||
restart: ${RESTART}
|
restart: ${RESTART}
|
||||||
environment:
|
environment:
|
||||||
<<: *common-global-variables
|
<<: [*common-zammad-variables, *common-global-variables]
|
||||||
NGINX_SERVER_SCHEME: https
|
NGINX_SERVER_SCHEME: https
|
||||||
VIRTUAL_HOST: ${ZAMMAD_VIRTUAL_HOST}
|
VIRTUAL_HOST: ${ZAMMAD_VIRTUAL_HOST}
|
||||||
VIRTUAL_PORT: 8080
|
VIRTUAL_PORT: 8080
|
||||||
|
|
|
||||||
|
|
@ -5,259 +5,322 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
|
||||||
import type {
|
import type {
|
||||||
ApiError,
|
ApiError,
|
||||||
ApiRateLimitChallengeRequest,
|
ApiRateLimitChallengeRequest,
|
||||||
ApiSetUsernameRequest,
|
ApiSetUsernameRequest,
|
||||||
ApiUpdateAccountSettingsRequest,
|
ApiUpdateAccountSettingsRequest,
|
||||||
ClientSetUsernameResponse,
|
ClientSetUsernameResponse,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
import {
|
import {
|
||||||
ApiErrorFromJSON,
|
ApiErrorFromJSON,
|
||||||
ApiErrorToJSON,
|
ApiErrorToJSON,
|
||||||
ApiRateLimitChallengeRequestFromJSON,
|
ApiRateLimitChallengeRequestFromJSON,
|
||||||
ApiRateLimitChallengeRequestToJSON,
|
ApiRateLimitChallengeRequestToJSON,
|
||||||
ApiSetUsernameRequestFromJSON,
|
ApiSetUsernameRequestFromJSON,
|
||||||
ApiSetUsernameRequestToJSON,
|
ApiSetUsernameRequestToJSON,
|
||||||
ApiUpdateAccountSettingsRequestFromJSON,
|
ApiUpdateAccountSettingsRequestFromJSON,
|
||||||
ApiUpdateAccountSettingsRequestToJSON,
|
ApiUpdateAccountSettingsRequestToJSON,
|
||||||
ClientSetUsernameResponseFromJSON,
|
ClientSetUsernameResponseFromJSON,
|
||||||
ClientSetUsernameResponseToJSON,
|
ClientSetUsernameResponseToJSON,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1AccountsNumberRateLimitChallengePostRequest {
|
export interface V1AccountsNumberRateLimitChallengePostRequest {
|
||||||
number: string;
|
number: string;
|
||||||
data: ApiRateLimitChallengeRequest;
|
data: ApiRateLimitChallengeRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1AccountsNumberSettingsPutRequest {
|
export interface V1AccountsNumberSettingsPutRequest {
|
||||||
number: string;
|
number: string;
|
||||||
data: ApiUpdateAccountSettingsRequest;
|
data: ApiUpdateAccountSettingsRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1AccountsNumberUsernameDeleteRequest {
|
export interface V1AccountsNumberUsernameDeleteRequest {
|
||||||
number: string;
|
number: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1AccountsNumberUsernamePostRequest {
|
export interface V1AccountsNumberUsernamePostRequest {
|
||||||
number: string;
|
number: string;
|
||||||
data: ApiSetUsernameRequest;
|
data: ApiSetUsernameRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class AccountsApi extends runtime.BaseAPI {
|
export class AccountsApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
|
* Lists all of the accounts linked or registered
|
||||||
|
* List all accounts
|
||||||
|
*/
|
||||||
|
async v1AccountsGetRaw(
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<Array<string>>> {
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
/**
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
* Lists all of the accounts linked or registered
|
|
||||||
* List all accounts
|
|
||||||
*/
|
|
||||||
async v1AccountsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/accounts`,
|
||||||
|
method: "GET",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
const response = await this.request({
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
path: `/v1/accounts`,
|
}
|
||||||
method: 'GET',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse<any>(response);
|
/**
|
||||||
|
* Lists all of the accounts linked or registered
|
||||||
|
* List all accounts
|
||||||
|
*/
|
||||||
|
async v1AccountsGet(
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<Array<string>> {
|
||||||
|
const response = await this.v1AccountsGetRaw(initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When running into rate limits, sometimes the limit can be lifted, by solving a CAPTCHA. To get the captcha token, go to https://signalcaptchas.org/challenge/generate.html For the staging environment, use: https://signalcaptchas.org/staging/registration/generate.html. The \"challenge_token\" is the token from the failed send attempt. The \"captcha\" is the captcha result, starting with signalcaptcha://
|
||||||
|
* Lift rate limit restrictions by solving a captcha.
|
||||||
|
*/
|
||||||
|
async v1AccountsNumberRateLimitChallengePostRaw(
|
||||||
|
requestParameters: V1AccountsNumberRateLimitChallengePostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1AccountsNumberRateLimitChallengePost().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["data"] == null) {
|
||||||
* Lists all of the accounts linked or registered
|
throw new runtime.RequiredError(
|
||||||
* List all accounts
|
"data",
|
||||||
*/
|
'Required parameter "data" was null or undefined when calling v1AccountsNumberRateLimitChallengePost().',
|
||||||
async v1AccountsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>> {
|
);
|
||||||
const response = await this.v1AccountsGetRaw(initOverrides);
|
}
|
||||||
|
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/accounts/{number}/rate-limit-challenge`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "POST",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiRateLimitChallengeRequestToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When running into rate limits, sometimes the limit can be lifted, by solving a CAPTCHA. To get the captcha token, go to https://signalcaptchas.org/challenge/generate.html For the staging environment, use: https://signalcaptchas.org/staging/registration/generate.html. The \"challenge_token\" is the token from the failed send attempt. The \"captcha\" is the captcha result, starting with signalcaptcha://
|
||||||
|
* Lift rate limit restrictions by solving a captcha.
|
||||||
|
*/
|
||||||
|
async v1AccountsNumberRateLimitChallengePost(
|
||||||
|
requestParameters: V1AccountsNumberRateLimitChallengePostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<void> {
|
||||||
|
await this.v1AccountsNumberRateLimitChallengePostRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the account attributes on the signal server.
|
||||||
|
* Update the account settings.
|
||||||
|
*/
|
||||||
|
async v1AccountsNumberSettingsPutRaw(
|
||||||
|
requestParameters: V1AccountsNumberSettingsPutRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1AccountsNumberSettingsPut().',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters["data"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"data",
|
||||||
|
'Required parameter "data" was null or undefined when calling v1AccountsNumberSettingsPut().',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/accounts/{number}/settings`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "PUT",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiUpdateAccountSettingsRequestToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the account attributes on the signal server.
|
||||||
|
* Update the account settings.
|
||||||
|
*/
|
||||||
|
async v1AccountsNumberSettingsPut(
|
||||||
|
requestParameters: V1AccountsNumberSettingsPutRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<void> {
|
||||||
|
await this.v1AccountsNumberSettingsPutRaw(requestParameters, initOverrides);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the username associated with this account.
|
||||||
|
* Remove a username.
|
||||||
|
*/
|
||||||
|
async v1AccountsNumberUsernameDeleteRaw(
|
||||||
|
requestParameters: V1AccountsNumberUsernameDeleteRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1AccountsNumberUsernameDelete().',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/accounts/{number}/username`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "DELETE",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the username associated with this account.
|
||||||
|
* Remove a username.
|
||||||
|
*/
|
||||||
|
async v1AccountsNumberUsernameDelete(
|
||||||
|
requestParameters: V1AccountsNumberUsernameDeleteRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<void> {
|
||||||
|
await this.v1AccountsNumberUsernameDeleteRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows to set the username that should be used for this account. This can either be just the nickname (e.g. test) or the complete username with discriminator (e.g. test.123). Returns the new username with discriminator and the username link.
|
||||||
|
* Set a username.
|
||||||
|
*/
|
||||||
|
async v1AccountsNumberUsernamePostRaw(
|
||||||
|
requestParameters: V1AccountsNumberUsernamePostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<ClientSetUsernameResponse>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1AccountsNumberUsernamePost().',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters["data"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"data",
|
||||||
|
'Required parameter "data" was null or undefined when calling v1AccountsNumberUsernamePost().',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/accounts/{number}/username`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "POST",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiSetUsernameRequestToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
||||||
|
ClientSetUsernameResponseFromJSON(jsonValue),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows to set the username that should be used for this account. This can either be just the nickname (e.g. test) or the complete username with discriminator (e.g. test.123). Returns the new username with discriminator and the username link.
|
||||||
|
* Set a username.
|
||||||
|
*/
|
||||||
|
async v1AccountsNumberUsernamePost(
|
||||||
|
requestParameters: V1AccountsNumberUsernamePostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<ClientSetUsernameResponse | null | undefined> {
|
||||||
|
const response = await this.v1AccountsNumberUsernamePostRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
switch (response.raw.status) {
|
||||||
|
case 201:
|
||||||
|
return await response.value();
|
||||||
|
case 204:
|
||||||
|
return null;
|
||||||
|
default:
|
||||||
return await response.value();
|
return await response.value();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/**
|
|
||||||
* When running into rate limits, sometimes the limit can be lifted, by solving a CAPTCHA. To get the captcha token, go to https://signalcaptchas.org/challenge/generate.html For the staging environment, use: https://signalcaptchas.org/staging/registration/generate.html. The \"challenge_token\" is the token from the failed send attempt. The \"captcha\" is the captcha result, starting with signalcaptcha://
|
|
||||||
* Lift rate limit restrictions by solving a captcha.
|
|
||||||
*/
|
|
||||||
async v1AccountsNumberRateLimitChallengePostRaw(requestParameters: V1AccountsNumberRateLimitChallengePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
||||||
if (requestParameters['number'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'number',
|
|
||||||
'Required parameter "number" was null or undefined when calling v1AccountsNumberRateLimitChallengePost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1AccountsNumberRateLimitChallengePost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/accounts/{number}/rate-limit-challenge`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiRateLimitChallengeRequestToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* When running into rate limits, sometimes the limit can be lifted, by solving a CAPTCHA. To get the captcha token, go to https://signalcaptchas.org/challenge/generate.html For the staging environment, use: https://signalcaptchas.org/staging/registration/generate.html. The \"challenge_token\" is the token from the failed send attempt. The \"captcha\" is the captcha result, starting with signalcaptcha://
|
|
||||||
* Lift rate limit restrictions by solving a captcha.
|
|
||||||
*/
|
|
||||||
async v1AccountsNumberRateLimitChallengePost(requestParameters: V1AccountsNumberRateLimitChallengePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
||||||
await this.v1AccountsNumberRateLimitChallengePostRaw(requestParameters, initOverrides);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update the account attributes on the signal server.
|
|
||||||
* Update the account settings.
|
|
||||||
*/
|
|
||||||
async v1AccountsNumberSettingsPutRaw(requestParameters: V1AccountsNumberSettingsPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
||||||
if (requestParameters['number'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'number',
|
|
||||||
'Required parameter "number" was null or undefined when calling v1AccountsNumberSettingsPut().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1AccountsNumberSettingsPut().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/accounts/{number}/settings`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'PUT',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiUpdateAccountSettingsRequestToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update the account attributes on the signal server.
|
|
||||||
* Update the account settings.
|
|
||||||
*/
|
|
||||||
async v1AccountsNumberSettingsPut(requestParameters: V1AccountsNumberSettingsPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
||||||
await this.v1AccountsNumberSettingsPutRaw(requestParameters, initOverrides);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Delete the username associated with this account.
|
|
||||||
* Remove a username.
|
|
||||||
*/
|
|
||||||
async v1AccountsNumberUsernameDeleteRaw(requestParameters: V1AccountsNumberUsernameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
||||||
if (requestParameters['number'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'number',
|
|
||||||
'Required parameter "number" was null or undefined when calling v1AccountsNumberUsernameDelete().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/accounts/{number}/username`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'DELETE',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Delete the username associated with this account.
|
|
||||||
* Remove a username.
|
|
||||||
*/
|
|
||||||
async v1AccountsNumberUsernameDelete(requestParameters: V1AccountsNumberUsernameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
||||||
await this.v1AccountsNumberUsernameDeleteRaw(requestParameters, initOverrides);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allows to set the username that should be used for this account. This can either be just the nickname (e.g. test) or the complete username with discriminator (e.g. test.123). Returns the new username with discriminator and the username link.
|
|
||||||
* Set a username.
|
|
||||||
*/
|
|
||||||
async v1AccountsNumberUsernamePostRaw(requestParameters: V1AccountsNumberUsernamePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientSetUsernameResponse>> {
|
|
||||||
if (requestParameters['number'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'number',
|
|
||||||
'Required parameter "number" was null or undefined when calling v1AccountsNumberUsernamePost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1AccountsNumberUsernamePost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/accounts/{number}/username`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiSetUsernameRequestToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => ClientSetUsernameResponseFromJSON(jsonValue));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allows to set the username that should be used for this account. This can either be just the nickname (e.g. test) or the complete username with discriminator (e.g. test.123). Returns the new username with discriminator and the username link.
|
|
||||||
* Set a username.
|
|
||||||
*/
|
|
||||||
async v1AccountsNumberUsernamePost(requestParameters: V1AccountsNumberUsernamePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientSetUsernameResponse | null | undefined > {
|
|
||||||
const response = await this.v1AccountsNumberUsernamePostRaw(requestParameters, initOverrides);
|
|
||||||
switch (response.raw.status) {
|
|
||||||
case 201:
|
|
||||||
return await response.value();
|
|
||||||
case 204:
|
|
||||||
return null;
|
|
||||||
default:
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,140 +5,169 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
import type { ApiError } from "../models/index.js";
|
||||||
import type {
|
import { ApiErrorFromJSON, ApiErrorToJSON } from "../models/index.js";
|
||||||
ApiError,
|
|
||||||
} from '../models/index';
|
|
||||||
import {
|
|
||||||
ApiErrorFromJSON,
|
|
||||||
ApiErrorToJSON,
|
|
||||||
} from '../models/index';
|
|
||||||
|
|
||||||
export interface V1AttachmentsAttachmentDeleteRequest {
|
export interface V1AttachmentsAttachmentDeleteRequest {
|
||||||
attachment: string;
|
attachment: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1AttachmentsAttachmentGetRequest {
|
export interface V1AttachmentsAttachmentGetRequest {
|
||||||
attachment: string;
|
attachment: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class AttachmentsApi extends runtime.BaseAPI {
|
export class AttachmentsApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
/**
|
* Remove the attachment with the given id from filesystem.
|
||||||
* Remove the attachment with the given id from filesystem.
|
* Remove attachment.
|
||||||
* Remove attachment.
|
*/
|
||||||
*/
|
async v1AttachmentsAttachmentDeleteRaw(
|
||||||
async v1AttachmentsAttachmentDeleteRaw(requestParameters: V1AttachmentsAttachmentDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
requestParameters: V1AttachmentsAttachmentDeleteRequest,
|
||||||
if (requestParameters['attachment'] == null) {
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
throw new runtime.RequiredError(
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
'attachment',
|
if (requestParameters["attachment"] == null) {
|
||||||
'Required parameter "attachment" was null or undefined when calling v1AttachmentsAttachmentDelete().'
|
throw new runtime.RequiredError(
|
||||||
);
|
"attachment",
|
||||||
}
|
'Required parameter "attachment" was null or undefined when calling v1AttachmentsAttachmentDelete().',
|
||||||
|
);
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/attachments/{attachment}`.replace(`{${"attachment"}}`, encodeURIComponent(String(requestParameters['attachment']))),
|
|
||||||
method: 'DELETE',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* Remove the attachment with the given id from filesystem.
|
|
||||||
* Remove attachment.
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
*/
|
|
||||||
async v1AttachmentsAttachmentDelete(requestParameters: V1AttachmentsAttachmentDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
const response = await this.request(
|
||||||
const response = await this.v1AttachmentsAttachmentDeleteRaw(requestParameters, initOverrides);
|
{
|
||||||
return await response.value();
|
path: `/v1/attachments/{attachment}`.replace(
|
||||||
|
`{${"attachment"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["attachment"])),
|
||||||
|
),
|
||||||
|
method: "DELETE",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
|
} else {
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the attachment with the given id from filesystem.
|
||||||
|
* Remove attachment.
|
||||||
|
*/
|
||||||
|
async v1AttachmentsAttachmentDelete(
|
||||||
|
requestParameters: V1AttachmentsAttachmentDeleteRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<string> {
|
||||||
|
const response = await this.v1AttachmentsAttachmentDeleteRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serve the attachment with the given id
|
||||||
|
* Serve Attachment.
|
||||||
|
*/
|
||||||
|
async v1AttachmentsAttachmentGetRaw(
|
||||||
|
requestParameters: V1AttachmentsAttachmentGetRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
|
if (requestParameters["attachment"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"attachment",
|
||||||
|
'Required parameter "attachment" was null or undefined when calling v1AttachmentsAttachmentGet().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* Serve the attachment with the given id
|
|
||||||
* Serve Attachment.
|
|
||||||
*/
|
|
||||||
async v1AttachmentsAttachmentGetRaw(requestParameters: V1AttachmentsAttachmentGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
||||||
if (requestParameters['attachment'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'attachment',
|
|
||||||
'Required parameter "attachment" was null or undefined when calling v1AttachmentsAttachmentGet().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/attachments/{attachment}`.replace(
|
||||||
|
`{${"attachment"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["attachment"])),
|
||||||
|
),
|
||||||
|
method: "GET",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
const response = await this.request({
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
path: `/v1/attachments/{attachment}`.replace(`{${"attachment"}}`, encodeURIComponent(String(requestParameters['attachment']))),
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
method: 'GET',
|
} else {
|
||||||
headers: headerParameters,
|
return new runtime.TextApiResponse(response) as any;
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serve the attachment with the given id
|
* Serve the attachment with the given id
|
||||||
* Serve Attachment.
|
* Serve Attachment.
|
||||||
*/
|
*/
|
||||||
async v1AttachmentsAttachmentGet(requestParameters: V1AttachmentsAttachmentGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
async v1AttachmentsAttachmentGet(
|
||||||
const response = await this.v1AttachmentsAttachmentGetRaw(requestParameters, initOverrides);
|
requestParameters: V1AttachmentsAttachmentGetRequest,
|
||||||
return await response.value();
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
}
|
): Promise<string> {
|
||||||
|
const response = await this.v1AttachmentsAttachmentGetRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List all downloaded attachments
|
* List all downloaded attachments
|
||||||
* List all attachments.
|
* List all attachments.
|
||||||
*/
|
*/
|
||||||
async v1AttachmentsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>> {
|
async v1AttachmentsGetRaw(
|
||||||
const queryParameters: any = {};
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<Array<string>>> {
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
const response = await this.request({
|
const response = await this.request(
|
||||||
path: `/v1/attachments`,
|
{
|
||||||
method: 'GET',
|
path: `/v1/attachments`,
|
||||||
headers: headerParameters,
|
method: "GET",
|
||||||
query: queryParameters,
|
headers: headerParameters,
|
||||||
}, initOverrides);
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
return new runtime.JSONApiResponse<any>(response);
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* List all downloaded attachments
|
|
||||||
* List all attachments.
|
|
||||||
*/
|
|
||||||
async v1AttachmentsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>> {
|
|
||||||
const response = await this.v1AttachmentsGetRaw(initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List all downloaded attachments
|
||||||
|
* List all attachments.
|
||||||
|
*/
|
||||||
|
async v1AttachmentsGet(
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<Array<string>> {
|
||||||
|
const response = await this.v1AttachmentsGetRaw(initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,116 +5,134 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
import type { ApiError, ApiUpdateContactRequest } from "../models/index.js";
|
||||||
import type {
|
|
||||||
ApiError,
|
|
||||||
ApiUpdateContactRequest,
|
|
||||||
} from '../models/index';
|
|
||||||
import {
|
import {
|
||||||
ApiErrorFromJSON,
|
ApiErrorFromJSON,
|
||||||
ApiErrorToJSON,
|
ApiErrorToJSON,
|
||||||
ApiUpdateContactRequestFromJSON,
|
ApiUpdateContactRequestFromJSON,
|
||||||
ApiUpdateContactRequestToJSON,
|
ApiUpdateContactRequestToJSON,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1ContactsNumberPutRequest {
|
export interface V1ContactsNumberPutRequest {
|
||||||
number: string;
|
number: string;
|
||||||
data: ApiUpdateContactRequest;
|
data: ApiUpdateContactRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1ContactsNumberSyncPostRequest {
|
export interface V1ContactsNumberSyncPostRequest {
|
||||||
number: string;
|
number: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class ContactsApi extends runtime.BaseAPI {
|
export class ContactsApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
/**
|
* Updates the info associated to a number on the contact list.
|
||||||
* Updates the info associated to a number on the contact list.
|
* Updates the info associated to a number on the contact list. If the contact doesn’t exist yet, it will be added.
|
||||||
* Updates the info associated to a number on the contact list. If the contact doesn’t exist yet, it will be added.
|
*/
|
||||||
*/
|
async v1ContactsNumberPutRaw(
|
||||||
async v1ContactsNumberPutRaw(requestParameters: V1ContactsNumberPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
requestParameters: V1ContactsNumberPutRequest,
|
||||||
if (requestParameters['number'] == null) {
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
throw new runtime.RequiredError(
|
): Promise<runtime.ApiResponse<void>> {
|
||||||
'number',
|
if (requestParameters["number"] == null) {
|
||||||
'Required parameter "number" was null or undefined when calling v1ContactsNumberPut().'
|
throw new runtime.RequiredError(
|
||||||
);
|
"number",
|
||||||
}
|
'Required parameter "number" was null or undefined when calling v1ContactsNumberPut().',
|
||||||
|
);
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1ContactsNumberPut().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/contacts/{number}`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'PUT',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiUpdateContactRequestToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["data"] == null) {
|
||||||
* Updates the info associated to a number on the contact list.
|
throw new runtime.RequiredError(
|
||||||
* Updates the info associated to a number on the contact list. If the contact doesn’t exist yet, it will be added.
|
"data",
|
||||||
*/
|
'Required parameter "data" was null or undefined when calling v1ContactsNumberPut().',
|
||||||
async v1ContactsNumberPut(requestParameters: V1ContactsNumberPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
);
|
||||||
await this.v1ContactsNumberPutRaw(requestParameters, initOverrides);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* Send a synchronization message with the local contacts list to all linked devices. This command should only be used if this is the primary device.
|
|
||||||
* Send a synchronization message with the local contacts list to all linked devices.
|
|
||||||
*/
|
|
||||||
async v1ContactsNumberSyncPostRaw(requestParameters: V1ContactsNumberSyncPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
||||||
if (requestParameters['number'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'number',
|
|
||||||
'Required parameter "number" was null or undefined when calling v1ContactsNumberSyncPost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
const response = await this.request({
|
const response = await this.request(
|
||||||
path: `/v1/contacts/{number}/sync`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
{
|
||||||
method: 'POST',
|
path: `/v1/contacts/{number}`.replace(
|
||||||
headers: headerParameters,
|
`{${"number"}}`,
|
||||||
query: queryParameters,
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
}, initOverrides);
|
),
|
||||||
|
method: "PUT",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiUpdateContactRequestToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Updates the info associated to a number on the contact list.
|
||||||
|
* Updates the info associated to a number on the contact list. If the contact doesn’t exist yet, it will be added.
|
||||||
|
*/
|
||||||
|
async v1ContactsNumberPut(
|
||||||
|
requestParameters: V1ContactsNumberPutRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<void> {
|
||||||
|
await this.v1ContactsNumberPutRaw(requestParameters, initOverrides);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send a synchronization message with the local contacts list to all linked devices. This command should only be used if this is the primary device.
|
||||||
|
* Send a synchronization message with the local contacts list to all linked devices.
|
||||||
|
*/
|
||||||
|
async v1ContactsNumberSyncPostRaw(
|
||||||
|
requestParameters: V1ContactsNumberSyncPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1ContactsNumberSyncPost().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* Send a synchronization message with the local contacts list to all linked devices. This command should only be used if this is the primary device.
|
|
||||||
* Send a synchronization message with the local contacts list to all linked devices.
|
|
||||||
*/
|
|
||||||
async v1ContactsNumberSyncPost(requestParameters: V1ContactsNumberSyncPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
||||||
await this.v1ContactsNumberSyncPostRaw(requestParameters, initOverrides);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/contacts/{number}/sync`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "POST",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send a synchronization message with the local contacts list to all linked devices. This command should only be used if this is the primary device.
|
||||||
|
* Send a synchronization message with the local contacts list to all linked devices.
|
||||||
|
*/
|
||||||
|
async v1ContactsNumberSyncPost(
|
||||||
|
requestParameters: V1ContactsNumberSyncPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<void> {
|
||||||
|
await this.v1ContactsNumberSyncPostRaw(requestParameters, initOverrides);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,14 @@
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as runtime from "../runtime";
|
import * as runtime from "../runtime.js";
|
||||||
import type {
|
import type {
|
||||||
ApiAddDeviceRequest,
|
ApiAddDeviceRequest,
|
||||||
ApiError,
|
ApiError,
|
||||||
ApiRegisterNumberRequest,
|
ApiRegisterNumberRequest,
|
||||||
ApiUnregisterNumberRequest,
|
ApiUnregisterNumberRequest,
|
||||||
ApiVerifyNumberSettings,
|
ApiVerifyNumberSettings,
|
||||||
} from "../models/index";
|
} from "../models/index.js";
|
||||||
import {
|
import {
|
||||||
ApiAddDeviceRequestFromJSON,
|
ApiAddDeviceRequestFromJSON,
|
||||||
ApiAddDeviceRequestToJSON,
|
ApiAddDeviceRequestToJSON,
|
||||||
|
|
@ -31,7 +31,7 @@ import {
|
||||||
ApiUnregisterNumberRequestToJSON,
|
ApiUnregisterNumberRequestToJSON,
|
||||||
ApiVerifyNumberSettingsFromJSON,
|
ApiVerifyNumberSettingsFromJSON,
|
||||||
ApiVerifyNumberSettingsToJSON,
|
ApiVerifyNumberSettingsToJSON,
|
||||||
} from "../models/index";
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1DevicesNumberPostRequest {
|
export interface V1DevicesNumberPostRequest {
|
||||||
number: string;
|
number: string;
|
||||||
|
|
|
||||||
|
|
@ -5,270 +5,334 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
|
||||||
import type {
|
import type {
|
||||||
ApiConfiguration,
|
ApiConfiguration,
|
||||||
ApiError,
|
ApiError,
|
||||||
ApiTrustModeRequest,
|
ApiTrustModeRequest,
|
||||||
ApiTrustModeResponse,
|
ApiTrustModeResponse,
|
||||||
ClientAbout,
|
ClientAbout,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
import {
|
import {
|
||||||
ApiConfigurationFromJSON,
|
ApiConfigurationFromJSON,
|
||||||
ApiConfigurationToJSON,
|
ApiConfigurationToJSON,
|
||||||
ApiErrorFromJSON,
|
ApiErrorFromJSON,
|
||||||
ApiErrorToJSON,
|
ApiErrorToJSON,
|
||||||
ApiTrustModeRequestFromJSON,
|
ApiTrustModeRequestFromJSON,
|
||||||
ApiTrustModeRequestToJSON,
|
ApiTrustModeRequestToJSON,
|
||||||
ApiTrustModeResponseFromJSON,
|
ApiTrustModeResponseFromJSON,
|
||||||
ApiTrustModeResponseToJSON,
|
ApiTrustModeResponseToJSON,
|
||||||
ClientAboutFromJSON,
|
ClientAboutFromJSON,
|
||||||
ClientAboutToJSON,
|
ClientAboutToJSON,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1ConfigurationNumberSettingsGetRequest {
|
export interface V1ConfigurationNumberSettingsGetRequest {
|
||||||
number: string;
|
number: string;
|
||||||
data: ApiTrustModeResponse;
|
data: ApiTrustModeResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1ConfigurationNumberSettingsPostRequest {
|
export interface V1ConfigurationNumberSettingsPostRequest {
|
||||||
number: string;
|
number: string;
|
||||||
data: ApiTrustModeRequest;
|
data: ApiTrustModeRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1ConfigurationPostRequest {
|
export interface V1ConfigurationPostRequest {
|
||||||
data: ApiConfiguration;
|
data: ApiConfiguration;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class GeneralApi extends runtime.BaseAPI {
|
export class GeneralApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
|
* Returns the supported API versions and the internal build nr
|
||||||
|
* Lists general information about the API
|
||||||
|
*/
|
||||||
|
async v1AboutGetRaw(
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<ClientAbout>> {
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
/**
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
* Returns the supported API versions and the internal build nr
|
|
||||||
* Lists general information about the API
|
|
||||||
*/
|
|
||||||
async v1AboutGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientAbout>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/about`,
|
||||||
|
method: "GET",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
const response = await this.request({
|
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
||||||
path: `/v1/about`,
|
ClientAboutFromJSON(jsonValue),
|
||||||
method: 'GET',
|
);
|
||||||
headers: headerParameters,
|
}
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => ClientAboutFromJSON(jsonValue));
|
/**
|
||||||
|
* Returns the supported API versions and the internal build nr
|
||||||
|
* Lists general information about the API
|
||||||
|
*/
|
||||||
|
async v1AboutGet(
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<ClientAbout> {
|
||||||
|
const response = await this.v1AboutGetRaw(initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List the REST API configuration.
|
||||||
|
* List the REST API configuration.
|
||||||
|
*/
|
||||||
|
async v1ConfigurationGetRaw(
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<ApiConfiguration>> {
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/configuration`,
|
||||||
|
method: "GET",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
||||||
|
ApiConfigurationFromJSON(jsonValue),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List the REST API configuration.
|
||||||
|
* List the REST API configuration.
|
||||||
|
*/
|
||||||
|
async v1ConfigurationGet(
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<ApiConfiguration> {
|
||||||
|
const response = await this.v1ConfigurationGetRaw(initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List account specific settings.
|
||||||
|
* List account specific settings.
|
||||||
|
*/
|
||||||
|
async v1ConfigurationNumberSettingsGetRaw(
|
||||||
|
requestParameters: V1ConfigurationNumberSettingsGetRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1ConfigurationNumberSettingsGet().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["data"] == null) {
|
||||||
* Returns the supported API versions and the internal build nr
|
throw new runtime.RequiredError(
|
||||||
* Lists general information about the API
|
"data",
|
||||||
*/
|
'Required parameter "data" was null or undefined when calling v1ConfigurationNumberSettingsGet().',
|
||||||
async v1AboutGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientAbout> {
|
);
|
||||||
const response = await this.v1AboutGetRaw(initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* List the REST API configuration.
|
|
||||||
* List the REST API configuration.
|
|
||||||
*/
|
|
||||||
async v1ConfigurationGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiConfiguration>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
const response = await this.request({
|
headerParameters["Content-Type"] = "application/json";
|
||||||
path: `/v1/configuration`,
|
|
||||||
method: 'GET',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => ApiConfigurationFromJSON(jsonValue));
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/configuration/{number}/settings`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "GET",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiTrustModeResponseToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List account specific settings.
|
||||||
|
* List account specific settings.
|
||||||
|
*/
|
||||||
|
async v1ConfigurationNumberSettingsGet(
|
||||||
|
requestParameters: V1ConfigurationNumberSettingsGetRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<void> {
|
||||||
|
await this.v1ConfigurationNumberSettingsGetRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set account specific settings.
|
||||||
|
* Set account specific settings.
|
||||||
|
*/
|
||||||
|
async v1ConfigurationNumberSettingsPostRaw(
|
||||||
|
requestParameters: V1ConfigurationNumberSettingsPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1ConfigurationNumberSettingsPost().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["data"] == null) {
|
||||||
* List the REST API configuration.
|
throw new runtime.RequiredError(
|
||||||
* List the REST API configuration.
|
"data",
|
||||||
*/
|
'Required parameter "data" was null or undefined when calling v1ConfigurationNumberSettingsPost().',
|
||||||
async v1ConfigurationGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiConfiguration> {
|
);
|
||||||
const response = await this.v1ConfigurationGetRaw(initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* List account specific settings.
|
|
||||||
* List account specific settings.
|
|
||||||
*/
|
|
||||||
async v1ConfigurationNumberSettingsGetRaw(requestParameters: V1ConfigurationNumberSettingsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
||||||
if (requestParameters['number'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'number',
|
|
||||||
'Required parameter "number" was null or undefined when calling v1ConfigurationNumberSettingsGet().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['data'] == null) {
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1ConfigurationNumberSettingsGet().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/configuration/{number}/settings`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "POST",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiTrustModeRequestToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
const response = await this.request({
|
/**
|
||||||
path: `/v1/configuration/{number}/settings`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
* Set account specific settings.
|
||||||
method: 'GET',
|
* Set account specific settings.
|
||||||
headers: headerParameters,
|
*/
|
||||||
query: queryParameters,
|
async v1ConfigurationNumberSettingsPost(
|
||||||
body: ApiTrustModeResponseToJSON(requestParameters['data']),
|
requestParameters: V1ConfigurationNumberSettingsPostRequest,
|
||||||
}, initOverrides);
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<void> {
|
||||||
|
await this.v1ConfigurationNumberSettingsPostRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
/**
|
||||||
|
* Set the REST API configuration.
|
||||||
|
* Set the REST API configuration.
|
||||||
|
*/
|
||||||
|
async v1ConfigurationPostRaw(
|
||||||
|
requestParameters: V1ConfigurationPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
|
if (requestParameters["data"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"data",
|
||||||
|
'Required parameter "data" was null or undefined when calling v1ConfigurationPost().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* List account specific settings.
|
|
||||||
* List account specific settings.
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
*/
|
|
||||||
async v1ConfigurationNumberSettingsGet(requestParameters: V1ConfigurationNumberSettingsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
headerParameters["Content-Type"] = "application/json";
|
||||||
await this.v1ConfigurationNumberSettingsGetRaw(requestParameters, initOverrides);
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/configuration`,
|
||||||
|
method: "POST",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiConfigurationToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
|
} else {
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set account specific settings.
|
* Set the REST API configuration.
|
||||||
* Set account specific settings.
|
* Set the REST API configuration.
|
||||||
*/
|
*/
|
||||||
async v1ConfigurationNumberSettingsPostRaw(requestParameters: V1ConfigurationNumberSettingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
async v1ConfigurationPost(
|
||||||
if (requestParameters['number'] == null) {
|
requestParameters: V1ConfigurationPostRequest,
|
||||||
throw new runtime.RequiredError(
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
'number',
|
): Promise<string> {
|
||||||
'Required parameter "number" was null or undefined when calling v1ConfigurationNumberSettingsPost().'
|
const response = await this.v1ConfigurationPostRaw(
|
||||||
);
|
requestParameters,
|
||||||
}
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
if (requestParameters['data'] == null) {
|
/**
|
||||||
throw new runtime.RequiredError(
|
* Internally used by the docker container to perform the health check.
|
||||||
'data',
|
* API Health Check
|
||||||
'Required parameter "data" was null or undefined when calling v1ConfigurationNumberSettingsPost().'
|
*/
|
||||||
);
|
async v1HealthGetRaw(
|
||||||
}
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
const queryParameters: any = {};
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/health`,
|
||||||
|
method: "GET",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
const response = await this.request({
|
} else {
|
||||||
path: `/v1/configuration/{number}/settings`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
return new runtime.TextApiResponse(response) as any;
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiTrustModeRequestToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set account specific settings.
|
|
||||||
* Set account specific settings.
|
|
||||||
*/
|
|
||||||
async v1ConfigurationNumberSettingsPost(requestParameters: V1ConfigurationNumberSettingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
||||||
await this.v1ConfigurationNumberSettingsPostRaw(requestParameters, initOverrides);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the REST API configuration.
|
|
||||||
* Set the REST API configuration.
|
|
||||||
*/
|
|
||||||
async v1ConfigurationPostRaw(requestParameters: V1ConfigurationPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1ConfigurationPost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/configuration`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiConfigurationToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the REST API configuration.
|
|
||||||
* Set the REST API configuration.
|
|
||||||
*/
|
|
||||||
async v1ConfigurationPost(requestParameters: V1ConfigurationPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
||||||
const response = await this.v1ConfigurationPostRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Internally used by the docker container to perform the health check.
|
|
||||||
* API Health Check
|
|
||||||
*/
|
|
||||||
async v1HealthGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/health`,
|
|
||||||
method: 'GET',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Internally used by the docker container to perform the health check.
|
|
||||||
* API Health Check
|
|
||||||
*/
|
|
||||||
async v1HealthGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
||||||
const response = await this.v1HealthGetRaw(initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internally used by the docker container to perform the health check.
|
||||||
|
* API Health Check
|
||||||
|
*/
|
||||||
|
async v1HealthGet(
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<string> {
|
||||||
|
const response = await this.v1HealthGetRaw(initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -5,130 +5,164 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
|
||||||
import type {
|
import type {
|
||||||
ApiTrustIdentityRequest,
|
ApiTrustIdentityRequest,
|
||||||
ClientIdentityEntry,
|
ClientIdentityEntry,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
import {
|
import {
|
||||||
ApiTrustIdentityRequestFromJSON,
|
ApiTrustIdentityRequestFromJSON,
|
||||||
ApiTrustIdentityRequestToJSON,
|
ApiTrustIdentityRequestToJSON,
|
||||||
ClientIdentityEntryFromJSON,
|
ClientIdentityEntryFromJSON,
|
||||||
ClientIdentityEntryToJSON,
|
ClientIdentityEntryToJSON,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1IdentitiesNumberGetRequest {
|
export interface V1IdentitiesNumberGetRequest {
|
||||||
number: string;
|
number: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1IdentitiesNumberTrustNumberToTrustPutRequest {
|
export interface V1IdentitiesNumberTrustNumberToTrustPutRequest {
|
||||||
number: string;
|
number: string;
|
||||||
numberToTrust: string;
|
numberToTrust: string;
|
||||||
data: ApiTrustIdentityRequest;
|
data: ApiTrustIdentityRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class IdentitiesApi extends runtime.BaseAPI {
|
export class IdentitiesApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
/**
|
* List all identities for the given number.
|
||||||
* List all identities for the given number.
|
* List Identities
|
||||||
* List Identities
|
*/
|
||||||
*/
|
async v1IdentitiesNumberGetRaw(
|
||||||
async v1IdentitiesNumberGetRaw(requestParameters: V1IdentitiesNumberGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ClientIdentityEntry>>> {
|
requestParameters: V1IdentitiesNumberGetRequest,
|
||||||
if (requestParameters['number'] == null) {
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
throw new runtime.RequiredError(
|
): Promise<runtime.ApiResponse<Array<ClientIdentityEntry>>> {
|
||||||
'number',
|
if (requestParameters["number"] == null) {
|
||||||
'Required parameter "number" was null or undefined when calling v1IdentitiesNumberGet().'
|
throw new runtime.RequiredError(
|
||||||
);
|
"number",
|
||||||
}
|
'Required parameter "number" was null or undefined when calling v1IdentitiesNumberGet().',
|
||||||
|
);
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/identities/{number}`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'GET',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ClientIdentityEntryFromJSON));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* List all identities for the given number.
|
|
||||||
* List Identities
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
*/
|
|
||||||
async v1IdentitiesNumberGet(requestParameters: V1IdentitiesNumberGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ClientIdentityEntry>> {
|
const response = await this.request(
|
||||||
const response = await this.v1IdentitiesNumberGetRaw(requestParameters, initOverrides);
|
{
|
||||||
return await response.value();
|
path: `/v1/identities/{number}`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "GET",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
||||||
|
jsonValue.map(ClientIdentityEntryFromJSON),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List all identities for the given number.
|
||||||
|
* List Identities
|
||||||
|
*/
|
||||||
|
async v1IdentitiesNumberGet(
|
||||||
|
requestParameters: V1IdentitiesNumberGetRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<Array<ClientIdentityEntry>> {
|
||||||
|
const response = await this.v1IdentitiesNumberGetRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trust an identity. When \'trust_all_known_keys\' is set to\' true\', all known keys of this user are trusted. **This is only recommended for testing.**
|
||||||
|
* Trust Identity
|
||||||
|
*/
|
||||||
|
async v1IdentitiesNumberTrustNumberToTrustPutRaw(
|
||||||
|
requestParameters: V1IdentitiesNumberTrustNumberToTrustPutRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1IdentitiesNumberTrustNumberToTrustPut().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["numberToTrust"] == null) {
|
||||||
* Trust an identity. When \'trust_all_known_keys\' is set to\' true\', all known keys of this user are trusted. **This is only recommended for testing.**
|
throw new runtime.RequiredError(
|
||||||
* Trust Identity
|
"numberToTrust",
|
||||||
*/
|
'Required parameter "numberToTrust" was null or undefined when calling v1IdentitiesNumberTrustNumberToTrustPut().',
|
||||||
async v1IdentitiesNumberTrustNumberToTrustPutRaw(requestParameters: V1IdentitiesNumberTrustNumberToTrustPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
);
|
||||||
if (requestParameters['number'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'number',
|
|
||||||
'Required parameter "number" was null or undefined when calling v1IdentitiesNumberTrustNumberToTrustPut().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['numberToTrust'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'numberToTrust',
|
|
||||||
'Required parameter "numberToTrust" was null or undefined when calling v1IdentitiesNumberTrustNumberToTrustPut().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1IdentitiesNumberTrustNumberToTrustPut().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/identities/{number}/trust/{numberToTrust}`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))).replace(`{${"numberToTrust"}}`, encodeURIComponent(String(requestParameters['numberToTrust']))),
|
|
||||||
method: 'PUT',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiTrustIdentityRequestToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["data"] == null) {
|
||||||
* Trust an identity. When \'trust_all_known_keys\' is set to\' true\', all known keys of this user are trusted. **This is only recommended for testing.**
|
throw new runtime.RequiredError(
|
||||||
* Trust Identity
|
"data",
|
||||||
*/
|
'Required parameter "data" was null or undefined when calling v1IdentitiesNumberTrustNumberToTrustPut().',
|
||||||
async v1IdentitiesNumberTrustNumberToTrustPut(requestParameters: V1IdentitiesNumberTrustNumberToTrustPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
);
|
||||||
const response = await this.v1IdentitiesNumberTrustNumberToTrustPutRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/identities/{number}/trust/{numberToTrust}`
|
||||||
|
.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
)
|
||||||
|
.replace(
|
||||||
|
`{${"numberToTrust"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["numberToTrust"])),
|
||||||
|
),
|
||||||
|
method: "PUT",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiTrustIdentityRequestToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
|
} else {
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trust an identity. When \'trust_all_known_keys\' is set to\' true\', all known keys of this user are trusted. **This is only recommended for testing.**
|
||||||
|
* Trust Identity
|
||||||
|
*/
|
||||||
|
async v1IdentitiesNumberTrustNumberToTrustPut(
|
||||||
|
requestParameters: V1IdentitiesNumberTrustNumberToTrustPutRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<string> {
|
||||||
|
const response = await this.v1IdentitiesNumberTrustNumberToTrustPutRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,15 +5,14 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
|
||||||
import type {
|
import type {
|
||||||
ApiError,
|
ApiError,
|
||||||
ApiSendMessageError,
|
ApiSendMessageError,
|
||||||
|
|
@ -21,287 +20,352 @@ import type {
|
||||||
ApiSendMessageV1,
|
ApiSendMessageV1,
|
||||||
ApiSendMessageV2,
|
ApiSendMessageV2,
|
||||||
ApiTypingIndicatorRequest,
|
ApiTypingIndicatorRequest,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
import {
|
import {
|
||||||
ApiErrorFromJSON,
|
ApiErrorFromJSON,
|
||||||
ApiErrorToJSON,
|
ApiErrorToJSON,
|
||||||
ApiSendMessageErrorFromJSON,
|
ApiSendMessageErrorFromJSON,
|
||||||
ApiSendMessageErrorToJSON,
|
ApiSendMessageErrorToJSON,
|
||||||
ApiSendMessageResponseFromJSON,
|
ApiSendMessageResponseFromJSON,
|
||||||
ApiSendMessageResponseToJSON,
|
ApiSendMessageResponseToJSON,
|
||||||
ApiSendMessageV1FromJSON,
|
ApiSendMessageV1FromJSON,
|
||||||
ApiSendMessageV1ToJSON,
|
ApiSendMessageV1ToJSON,
|
||||||
ApiSendMessageV2FromJSON,
|
ApiSendMessageV2FromJSON,
|
||||||
ApiSendMessageV2ToJSON,
|
ApiSendMessageV2ToJSON,
|
||||||
ApiTypingIndicatorRequestFromJSON,
|
ApiTypingIndicatorRequestFromJSON,
|
||||||
ApiTypingIndicatorRequestToJSON,
|
ApiTypingIndicatorRequestToJSON,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1ReceiveNumberGetRequest {
|
export interface V1ReceiveNumberGetRequest {
|
||||||
number: string;
|
number: string;
|
||||||
timeout?: string;
|
timeout?: string;
|
||||||
ignoreAttachments?: string;
|
ignoreAttachments?: string;
|
||||||
ignoreStories?: string;
|
ignoreStories?: string;
|
||||||
maxMessages?: string;
|
maxMessages?: string;
|
||||||
sendReadReceipts?: string;
|
sendReadReceipts?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1SendPostRequest {
|
export interface V1SendPostRequest {
|
||||||
data: ApiSendMessageV1;
|
data: ApiSendMessageV1;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1TypingIndicatorNumberDeleteRequest {
|
export interface V1TypingIndicatorNumberDeleteRequest {
|
||||||
number: string;
|
number: string;
|
||||||
data: ApiTypingIndicatorRequest;
|
data: ApiTypingIndicatorRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1TypingIndicatorNumberPutRequest {
|
export interface V1TypingIndicatorNumberPutRequest {
|
||||||
number: string;
|
number: string;
|
||||||
data: ApiTypingIndicatorRequest;
|
data: ApiTypingIndicatorRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V2SendPostRequest {
|
export interface V2SendPostRequest {
|
||||||
data: ApiSendMessageV2;
|
data: ApiSendMessageV2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class MessagesApi extends runtime.BaseAPI {
|
export class MessagesApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
/**
|
* Receives Signal Messages from the Signal Network. If you are running the docker container in normal/native mode, this is a GET endpoint. In json-rpc mode this is a websocket endpoint.
|
||||||
* Receives Signal Messages from the Signal Network. If you are running the docker container in normal/native mode, this is a GET endpoint. In json-rpc mode this is a websocket endpoint.
|
* Receive Signal Messages.
|
||||||
* Receive Signal Messages.
|
*/
|
||||||
*/
|
async v1ReceiveNumberGetRaw(
|
||||||
async v1ReceiveNumberGetRaw(requestParameters: V1ReceiveNumberGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>> {
|
requestParameters: V1ReceiveNumberGetRequest,
|
||||||
if (requestParameters['number'] == null) {
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
throw new runtime.RequiredError(
|
): Promise<runtime.ApiResponse<Array<string>>> {
|
||||||
'number',
|
if (requestParameters["number"] == null) {
|
||||||
'Required parameter "number" was null or undefined when calling v1ReceiveNumberGet().'
|
throw new runtime.RequiredError(
|
||||||
);
|
"number",
|
||||||
}
|
'Required parameter "number" was null or undefined when calling v1ReceiveNumberGet().',
|
||||||
|
);
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
if (requestParameters['timeout'] != null) {
|
|
||||||
queryParameters['timeout'] = requestParameters['timeout'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['ignoreAttachments'] != null) {
|
|
||||||
queryParameters['ignore_attachments'] = requestParameters['ignoreAttachments'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['ignoreStories'] != null) {
|
|
||||||
queryParameters['ignore_stories'] = requestParameters['ignoreStories'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['maxMessages'] != null) {
|
|
||||||
queryParameters['max_messages'] = requestParameters['maxMessages'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['sendReadReceipts'] != null) {
|
|
||||||
queryParameters['send_read_receipts'] = requestParameters['sendReadReceipts'];
|
|
||||||
}
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/receive/{number}`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'GET',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse<any>(response);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* Receives Signal Messages from the Signal Network. If you are running the docker container in normal/native mode, this is a GET endpoint. In json-rpc mode this is a websocket endpoint.
|
|
||||||
* Receive Signal Messages.
|
if (requestParameters["timeout"] != null) {
|
||||||
*/
|
queryParameters["timeout"] = requestParameters["timeout"];
|
||||||
async v1ReceiveNumberGet(requestParameters: V1ReceiveNumberGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>> {
|
|
||||||
const response = await this.v1ReceiveNumberGetRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["ignoreAttachments"] != null) {
|
||||||
* Send a signal message
|
queryParameters["ignore_attachments"] =
|
||||||
* Send a signal message.
|
requestParameters["ignoreAttachments"];
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
async v1SendPostRaw(requestParameters: V1SendPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1SendPost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/send`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiSendMessageV1ToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["ignoreStories"] != null) {
|
||||||
* Send a signal message
|
queryParameters["ignore_stories"] = requestParameters["ignoreStories"];
|
||||||
* Send a signal message.
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
async v1SendPost(requestParameters: V1SendPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
||||||
const response = await this.v1SendPostRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["maxMessages"] != null) {
|
||||||
* Hide Typing Indicator.
|
queryParameters["max_messages"] = requestParameters["maxMessages"];
|
||||||
* Hide Typing Indicator.
|
|
||||||
*/
|
|
||||||
async v1TypingIndicatorNumberDeleteRaw(requestParameters: V1TypingIndicatorNumberDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
||||||
if (requestParameters['number'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'number',
|
|
||||||
'Required parameter "number" was null or undefined when calling v1TypingIndicatorNumberDelete().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1TypingIndicatorNumberDelete().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/typing-indicator/{number}`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'DELETE',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiTypingIndicatorRequestToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["sendReadReceipts"] != null) {
|
||||||
* Hide Typing Indicator.
|
queryParameters["send_read_receipts"] =
|
||||||
* Hide Typing Indicator.
|
requestParameters["sendReadReceipts"];
|
||||||
*/
|
|
||||||
async v1TypingIndicatorNumberDelete(requestParameters: V1TypingIndicatorNumberDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
||||||
const response = await this.v1TypingIndicatorNumberDeleteRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
* Show Typing Indicator.
|
|
||||||
* Show Typing Indicator.
|
|
||||||
*/
|
|
||||||
async v1TypingIndicatorNumberPutRaw(requestParameters: V1TypingIndicatorNumberPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
||||||
if (requestParameters['number'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'number',
|
|
||||||
'Required parameter "number" was null or undefined when calling v1TypingIndicatorNumberPut().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['data'] == null) {
|
const response = await this.request(
|
||||||
throw new runtime.RequiredError(
|
{
|
||||||
'data',
|
path: `/v1/receive/{number}`.replace(
|
||||||
'Required parameter "data" was null or undefined when calling v1TypingIndicatorNumberPut().'
|
`{${"number"}}`,
|
||||||
);
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
}
|
),
|
||||||
|
method: "GET",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
const queryParameters: any = {};
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
/**
|
||||||
|
* Receives Signal Messages from the Signal Network. If you are running the docker container in normal/native mode, this is a GET endpoint. In json-rpc mode this is a websocket endpoint.
|
||||||
|
* Receive Signal Messages.
|
||||||
|
*/
|
||||||
|
async v1ReceiveNumberGet(
|
||||||
|
requestParameters: V1ReceiveNumberGetRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<Array<string>> {
|
||||||
|
const response = await this.v1ReceiveNumberGetRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
/**
|
||||||
|
* Send a signal message
|
||||||
const response = await this.request({
|
* Send a signal message.
|
||||||
path: `/v1/typing-indicator/{number}`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
* @deprecated
|
||||||
method: 'PUT',
|
*/
|
||||||
headers: headerParameters,
|
async v1SendPostRaw(
|
||||||
query: queryParameters,
|
requestParameters: V1SendPostRequest,
|
||||||
body: ApiTypingIndicatorRequestToJSON(requestParameters['data']),
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
}, initOverrides);
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
|
if (requestParameters["data"] == null) {
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
throw new runtime.RequiredError(
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
"data",
|
||||||
} else {
|
'Required parameter "data" was null or undefined when calling v1SendPost().',
|
||||||
return new runtime.TextApiResponse(response) as any;
|
);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* Show Typing Indicator.
|
|
||||||
* Show Typing Indicator.
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
*/
|
|
||||||
async v1TypingIndicatorNumberPut(requestParameters: V1TypingIndicatorNumberPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
headerParameters["Content-Type"] = "application/json";
|
||||||
const response = await this.v1TypingIndicatorNumberPutRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/send`,
|
||||||
|
method: "POST",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiSendMessageV1ToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
|
} else {
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send a signal message
|
||||||
|
* Send a signal message.
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
async v1SendPost(
|
||||||
|
requestParameters: V1SendPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<string> {
|
||||||
|
const response = await this.v1SendPostRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hide Typing Indicator.
|
||||||
|
* Hide Typing Indicator.
|
||||||
|
*/
|
||||||
|
async v1TypingIndicatorNumberDeleteRaw(
|
||||||
|
requestParameters: V1TypingIndicatorNumberDeleteRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1TypingIndicatorNumberDelete().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["data"] == null) {
|
||||||
* Send a signal message. Set the text_mode to \'styled\' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~.
|
throw new runtime.RequiredError(
|
||||||
* Send a signal message.
|
"data",
|
||||||
*/
|
'Required parameter "data" was null or undefined when calling v1TypingIndicatorNumberDelete().',
|
||||||
async v2SendPostRaw(requestParameters: V2SendPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiSendMessageResponse>> {
|
);
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v2SendPost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v2/send`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiSendMessageV2ToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => ApiSendMessageResponseFromJSON(jsonValue));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* Send a signal message. Set the text_mode to \'styled\' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~.
|
|
||||||
* Send a signal message.
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
*/
|
|
||||||
async v2SendPost(requestParameters: V2SendPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSendMessageResponse> {
|
headerParameters["Content-Type"] = "application/json";
|
||||||
const response = await this.v2SendPostRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/typing-indicator/{number}`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "DELETE",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiTypingIndicatorRequestToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
|
} else {
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hide Typing Indicator.
|
||||||
|
* Hide Typing Indicator.
|
||||||
|
*/
|
||||||
|
async v1TypingIndicatorNumberDelete(
|
||||||
|
requestParameters: V1TypingIndicatorNumberDeleteRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<string> {
|
||||||
|
const response = await this.v1TypingIndicatorNumberDeleteRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show Typing Indicator.
|
||||||
|
* Show Typing Indicator.
|
||||||
|
*/
|
||||||
|
async v1TypingIndicatorNumberPutRaw(
|
||||||
|
requestParameters: V1TypingIndicatorNumberPutRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1TypingIndicatorNumberPut().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (requestParameters["data"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"data",
|
||||||
|
'Required parameter "data" was null or undefined when calling v1TypingIndicatorNumberPut().',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/typing-indicator/{number}`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "PUT",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiTypingIndicatorRequestToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
|
} else {
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show Typing Indicator.
|
||||||
|
* Show Typing Indicator.
|
||||||
|
*/
|
||||||
|
async v1TypingIndicatorNumberPut(
|
||||||
|
requestParameters: V1TypingIndicatorNumberPutRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<string> {
|
||||||
|
const response = await this.v1TypingIndicatorNumberPutRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send a signal message. Set the text_mode to \'styled\' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~.
|
||||||
|
* Send a signal message.
|
||||||
|
*/
|
||||||
|
async v2SendPostRaw(
|
||||||
|
requestParameters: V2SendPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<ApiSendMessageResponse>> {
|
||||||
|
if (requestParameters["data"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"data",
|
||||||
|
'Required parameter "data" was null or undefined when calling v2SendPost().',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v2/send`,
|
||||||
|
method: "POST",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiSendMessageV2ToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
||||||
|
ApiSendMessageResponseFromJSON(jsonValue),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send a signal message. Set the text_mode to \'styled\' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~.
|
||||||
|
* Send a signal message.
|
||||||
|
*/
|
||||||
|
async v2SendPost(
|
||||||
|
requestParameters: V2SendPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<ApiSendMessageResponse> {
|
||||||
|
const response = await this.v2SendPostRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,83 +5,92 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
import type { ApiError, ApiUpdateProfileRequest } from "../models/index.js";
|
||||||
import type {
|
|
||||||
ApiError,
|
|
||||||
ApiUpdateProfileRequest,
|
|
||||||
} from '../models/index';
|
|
||||||
import {
|
import {
|
||||||
ApiErrorFromJSON,
|
ApiErrorFromJSON,
|
||||||
ApiErrorToJSON,
|
ApiErrorToJSON,
|
||||||
ApiUpdateProfileRequestFromJSON,
|
ApiUpdateProfileRequestFromJSON,
|
||||||
ApiUpdateProfileRequestToJSON,
|
ApiUpdateProfileRequestToJSON,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1ProfilesNumberPutRequest {
|
export interface V1ProfilesNumberPutRequest {
|
||||||
number: string;
|
number: string;
|
||||||
data: ApiUpdateProfileRequest;
|
data: ApiUpdateProfileRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class ProfilesApi extends runtime.BaseAPI {
|
export class ProfilesApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
/**
|
* Set your name and optional an avatar.
|
||||||
* Set your name and optional an avatar.
|
* Update Profile.
|
||||||
* Update Profile.
|
*/
|
||||||
*/
|
async v1ProfilesNumberPutRaw(
|
||||||
async v1ProfilesNumberPutRaw(requestParameters: V1ProfilesNumberPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
requestParameters: V1ProfilesNumberPutRequest,
|
||||||
if (requestParameters['number'] == null) {
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
throw new runtime.RequiredError(
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
'number',
|
if (requestParameters["number"] == null) {
|
||||||
'Required parameter "number" was null or undefined when calling v1ProfilesNumberPut().'
|
throw new runtime.RequiredError(
|
||||||
);
|
"number",
|
||||||
}
|
'Required parameter "number" was null or undefined when calling v1ProfilesNumberPut().',
|
||||||
|
);
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1ProfilesNumberPut().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/profiles/{number}`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'PUT',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiUpdateProfileRequestToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["data"] == null) {
|
||||||
* Set your name and optional an avatar.
|
throw new runtime.RequiredError(
|
||||||
* Update Profile.
|
"data",
|
||||||
*/
|
'Required parameter "data" was null or undefined when calling v1ProfilesNumberPut().',
|
||||||
async v1ProfilesNumberPut(requestParameters: V1ProfilesNumberPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
);
|
||||||
const response = await this.v1ProfilesNumberPutRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/profiles/{number}`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "PUT",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiUpdateProfileRequestToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
|
} else {
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set your name and optional an avatar.
|
||||||
|
* Update Profile.
|
||||||
|
*/
|
||||||
|
async v1ProfilesNumberPut(
|
||||||
|
requestParameters: V1ProfilesNumberPutRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<string> {
|
||||||
|
const response = await this.v1ProfilesNumberPutRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,121 +5,139 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
import type { ApiError, ApiReaction } from "../models/index.js";
|
||||||
import type {
|
|
||||||
ApiError,
|
|
||||||
ApiReaction,
|
|
||||||
} from '../models/index';
|
|
||||||
import {
|
import {
|
||||||
ApiErrorFromJSON,
|
ApiErrorFromJSON,
|
||||||
ApiErrorToJSON,
|
ApiErrorToJSON,
|
||||||
ApiReactionFromJSON,
|
ApiReactionFromJSON,
|
||||||
ApiReactionToJSON,
|
ApiReactionToJSON,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1ReactionsNumberDeleteRequest {
|
export interface V1ReactionsNumberDeleteRequest {
|
||||||
data: ApiReaction;
|
data: ApiReaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1ReactionsNumberPostRequest {
|
export interface V1ReactionsNumberPostRequest {
|
||||||
data: ApiReaction;
|
data: ApiReaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class ReactionsApi extends runtime.BaseAPI {
|
export class ReactionsApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
/**
|
* Remove a reaction
|
||||||
* Remove a reaction
|
* Remove a reaction.
|
||||||
* Remove a reaction.
|
*/
|
||||||
*/
|
async v1ReactionsNumberDeleteRaw(
|
||||||
async v1ReactionsNumberDeleteRaw(requestParameters: V1ReactionsNumberDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
requestParameters: V1ReactionsNumberDeleteRequest,
|
||||||
if (requestParameters['data'] == null) {
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
throw new runtime.RequiredError(
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
'data',
|
if (requestParameters["data"] == null) {
|
||||||
'Required parameter "data" was null or undefined when calling v1ReactionsNumberDelete().'
|
throw new runtime.RequiredError(
|
||||||
);
|
"data",
|
||||||
}
|
'Required parameter "data" was null or undefined when calling v1ReactionsNumberDelete().',
|
||||||
|
);
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/reactions/{number}`,
|
|
||||||
method: 'DELETE',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiReactionToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* Remove a reaction
|
|
||||||
* Remove a reaction.
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
*/
|
|
||||||
async v1ReactionsNumberDelete(requestParameters: V1ReactionsNumberDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
headerParameters["Content-Type"] = "application/json";
|
||||||
const response = await this.v1ReactionsNumberDeleteRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/reactions/{number}`,
|
||||||
|
method: "DELETE",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiReactionToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
|
} else {
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove a reaction
|
||||||
|
* Remove a reaction.
|
||||||
|
*/
|
||||||
|
async v1ReactionsNumberDelete(
|
||||||
|
requestParameters: V1ReactionsNumberDeleteRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<string> {
|
||||||
|
const response = await this.v1ReactionsNumberDeleteRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* React to a message
|
||||||
|
* Send a reaction.
|
||||||
|
*/
|
||||||
|
async v1ReactionsNumberPostRaw(
|
||||||
|
requestParameters: V1ReactionsNumberPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
|
if (requestParameters["data"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"data",
|
||||||
|
'Required parameter "data" was null or undefined when calling v1ReactionsNumberPost().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* React to a message
|
|
||||||
* Send a reaction.
|
|
||||||
*/
|
|
||||||
async v1ReactionsNumberPostRaw(requestParameters: V1ReactionsNumberPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1ReactionsNumberPost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/reactions/{number}`,
|
||||||
|
method: "POST",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiReactionToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
const response = await this.request({
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
path: `/v1/reactions/{number}`,
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
method: 'POST',
|
} else {
|
||||||
headers: headerParameters,
|
return new runtime.TextApiResponse(response) as any;
|
||||||
query: queryParameters,
|
|
||||||
body: ApiReactionToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* React to a message
|
|
||||||
* Send a reaction.
|
|
||||||
*/
|
|
||||||
async v1ReactionsNumberPost(requestParameters: V1ReactionsNumberPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
||||||
const response = await this.v1ReactionsNumberPostRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* React to a message
|
||||||
|
* Send a reaction.
|
||||||
|
*/
|
||||||
|
async v1ReactionsNumberPost(
|
||||||
|
requestParameters: V1ReactionsNumberPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<string> {
|
||||||
|
const response = await this.v1ReactionsNumberPostRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,75 +5,81 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
import type { ApiError, ApiReceipt } from "../models/index.js";
|
||||||
import type {
|
|
||||||
ApiError,
|
|
||||||
ApiReceipt,
|
|
||||||
} from '../models/index';
|
|
||||||
import {
|
import {
|
||||||
ApiErrorFromJSON,
|
ApiErrorFromJSON,
|
||||||
ApiErrorToJSON,
|
ApiErrorToJSON,
|
||||||
ApiReceiptFromJSON,
|
ApiReceiptFromJSON,
|
||||||
ApiReceiptToJSON,
|
ApiReceiptToJSON,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1ReceiptsNumberPostRequest {
|
export interface V1ReceiptsNumberPostRequest {
|
||||||
data: ApiReceipt;
|
data: ApiReceipt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class ReceiptsApi extends runtime.BaseAPI {
|
export class ReceiptsApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
/**
|
* Send a read or viewed receipt
|
||||||
* Send a read or viewed receipt
|
* Send a receipt.
|
||||||
* Send a receipt.
|
*/
|
||||||
*/
|
async v1ReceiptsNumberPostRaw(
|
||||||
async v1ReceiptsNumberPostRaw(requestParameters: V1ReceiptsNumberPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
requestParameters: V1ReceiptsNumberPostRequest,
|
||||||
if (requestParameters['data'] == null) {
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
throw new runtime.RequiredError(
|
): Promise<runtime.ApiResponse<string>> {
|
||||||
'data',
|
if (requestParameters["data"] == null) {
|
||||||
'Required parameter "data" was null or undefined when calling v1ReceiptsNumberPost().'
|
throw new runtime.RequiredError(
|
||||||
);
|
"data",
|
||||||
}
|
'Required parameter "data" was null or undefined when calling v1ReceiptsNumberPost().',
|
||||||
|
);
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/receipts/{number}`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiReceiptToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<string>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* Send a read or viewed receipt
|
|
||||||
* Send a receipt.
|
|
||||||
*/
|
|
||||||
async v1ReceiptsNumberPost(requestParameters: V1ReceiptsNumberPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
||||||
const response = await this.v1ReceiptsNumberPostRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/receipts/{number}`,
|
||||||
|
method: "POST",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiReceiptToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
||||||
|
return new runtime.JSONApiResponse<string>(response);
|
||||||
|
} else {
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send a read or viewed receipt
|
||||||
|
* Send a receipt.
|
||||||
|
*/
|
||||||
|
async v1ReceiptsNumberPost(
|
||||||
|
requestParameters: V1ReceiptsNumberPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<string> {
|
||||||
|
const response = await this.v1ReceiptsNumberPostRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,80 +5,91 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
import type { ApiError, ApiSearchResponse } from "../models/index.js";
|
||||||
import type {
|
|
||||||
ApiError,
|
|
||||||
ApiSearchResponse,
|
|
||||||
} from '../models/index';
|
|
||||||
import {
|
import {
|
||||||
ApiErrorFromJSON,
|
ApiErrorFromJSON,
|
||||||
ApiErrorToJSON,
|
ApiErrorToJSON,
|
||||||
ApiSearchResponseFromJSON,
|
ApiSearchResponseFromJSON,
|
||||||
ApiSearchResponseToJSON,
|
ApiSearchResponseToJSON,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1SearchGetRequest {
|
export interface V1SearchGetRequest {
|
||||||
number: string;
|
number: string;
|
||||||
numbers: Array<string>;
|
numbers: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class SearchApi extends runtime.BaseAPI {
|
export class SearchApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
/**
|
* Check if one or more phone numbers are registered with the Signal Service.
|
||||||
* Check if one or more phone numbers are registered with the Signal Service.
|
* Check if one or more phone numbers are registered with the Signal Service.
|
||||||
* Check if one or more phone numbers are registered with the Signal Service.
|
*/
|
||||||
*/
|
async v1SearchGetRaw(
|
||||||
async v1SearchGetRaw(requestParameters: V1SearchGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiSearchResponse>>> {
|
requestParameters: V1SearchGetRequest,
|
||||||
if (requestParameters['number'] == null) {
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
throw new runtime.RequiredError(
|
): Promise<runtime.ApiResponse<Array<ApiSearchResponse>>> {
|
||||||
'number',
|
if (requestParameters["number"] == null) {
|
||||||
'Required parameter "number" was null or undefined when calling v1SearchGet().'
|
throw new runtime.RequiredError(
|
||||||
);
|
"number",
|
||||||
}
|
'Required parameter "number" was null or undefined when calling v1SearchGet().',
|
||||||
|
);
|
||||||
if (requestParameters['numbers'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'numbers',
|
|
||||||
'Required parameter "numbers" was null or undefined when calling v1SearchGet().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
if (requestParameters['numbers'] != null) {
|
|
||||||
queryParameters['numbers'] = requestParameters['numbers'];
|
|
||||||
}
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/search`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'GET',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiSearchResponseFromJSON));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["numbers"] == null) {
|
||||||
* Check if one or more phone numbers are registered with the Signal Service.
|
throw new runtime.RequiredError(
|
||||||
* Check if one or more phone numbers are registered with the Signal Service.
|
"numbers",
|
||||||
*/
|
'Required parameter "numbers" was null or undefined when calling v1SearchGet().',
|
||||||
async v1SearchGet(requestParameters: V1SearchGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiSearchResponse>> {
|
);
|
||||||
const response = await this.v1SearchGetRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const queryParameters: any = {};
|
||||||
|
|
||||||
|
if (requestParameters["numbers"] != null) {
|
||||||
|
queryParameters["numbers"] = requestParameters["numbers"];
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/search`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "GET",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
||||||
|
jsonValue.map(ApiSearchResponseFromJSON),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if one or more phone numbers are registered with the Signal Service.
|
||||||
|
* Check if one or more phone numbers are registered with the Signal Service.
|
||||||
|
*/
|
||||||
|
async v1SearchGet(
|
||||||
|
requestParameters: V1SearchGetRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<Array<ApiSearchResponse>> {
|
||||||
|
const response = await this.v1SearchGetRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,127 +5,157 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as runtime from "../runtime.js";
|
||||||
import * as runtime from '../runtime';
|
|
||||||
import type {
|
import type {
|
||||||
ApiAddStickerPackRequest,
|
ApiAddStickerPackRequest,
|
||||||
ApiError,
|
ApiError,
|
||||||
ClientListInstalledStickerPacksResponse,
|
ClientListInstalledStickerPacksResponse,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
import {
|
import {
|
||||||
ApiAddStickerPackRequestFromJSON,
|
ApiAddStickerPackRequestFromJSON,
|
||||||
ApiAddStickerPackRequestToJSON,
|
ApiAddStickerPackRequestToJSON,
|
||||||
ApiErrorFromJSON,
|
ApiErrorFromJSON,
|
||||||
ApiErrorToJSON,
|
ApiErrorToJSON,
|
||||||
ClientListInstalledStickerPacksResponseFromJSON,
|
ClientListInstalledStickerPacksResponseFromJSON,
|
||||||
ClientListInstalledStickerPacksResponseToJSON,
|
ClientListInstalledStickerPacksResponseToJSON,
|
||||||
} from '../models/index';
|
} from "../models/index.js";
|
||||||
|
|
||||||
export interface V1StickerPacksNumberGetRequest {
|
export interface V1StickerPacksNumberGetRequest {
|
||||||
number: string;
|
number: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface V1StickerPacksNumberPostRequest {
|
export interface V1StickerPacksNumberPostRequest {
|
||||||
number: string;
|
number: string;
|
||||||
data: ApiAddStickerPackRequest;
|
data: ApiAddStickerPackRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export class StickerPacksApi extends runtime.BaseAPI {
|
export class StickerPacksApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
/**
|
* List Installed Sticker Packs.
|
||||||
* List Installed Sticker Packs.
|
* List Installed Sticker Packs.
|
||||||
* List Installed Sticker Packs.
|
*/
|
||||||
*/
|
async v1StickerPacksNumberGetRaw(
|
||||||
async v1StickerPacksNumberGetRaw(requestParameters: V1StickerPacksNumberGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ClientListInstalledStickerPacksResponse>>> {
|
requestParameters: V1StickerPacksNumberGetRequest,
|
||||||
if (requestParameters['number'] == null) {
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
throw new runtime.RequiredError(
|
): Promise<
|
||||||
'number',
|
runtime.ApiResponse<Array<ClientListInstalledStickerPacksResponse>>
|
||||||
'Required parameter "number" was null or undefined when calling v1StickerPacksNumberGet().'
|
> {
|
||||||
);
|
if (requestParameters["number"] == null) {
|
||||||
}
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
const queryParameters: any = {};
|
'Required parameter "number" was null or undefined when calling v1StickerPacksNumberGet().',
|
||||||
|
);
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/sticker-packs/{number}`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'GET',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ClientListInstalledStickerPacksResponseFromJSON));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* List Installed Sticker Packs.
|
|
||||||
* List Installed Sticker Packs.
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
*/
|
|
||||||
async v1StickerPacksNumberGet(requestParameters: V1StickerPacksNumberGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ClientListInstalledStickerPacksResponse> | null | undefined > {
|
const response = await this.request(
|
||||||
const response = await this.v1StickerPacksNumberGetRaw(requestParameters, initOverrides);
|
{
|
||||||
switch (response.raw.status) {
|
path: `/v1/sticker-packs/{number}`.replace(
|
||||||
case 200:
|
`{${"number"}}`,
|
||||||
return await response.value();
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
case 204:
|
),
|
||||||
return null;
|
method: "GET",
|
||||||
default:
|
headers: headerParameters,
|
||||||
return await response.value();
|
query: queryParameters,
|
||||||
}
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
||||||
|
jsonValue.map(ClientListInstalledStickerPacksResponseFromJSON),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List Installed Sticker Packs.
|
||||||
|
* List Installed Sticker Packs.
|
||||||
|
*/
|
||||||
|
async v1StickerPacksNumberGet(
|
||||||
|
requestParameters: V1StickerPacksNumberGetRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<
|
||||||
|
Array<ClientListInstalledStickerPacksResponse> | null | undefined
|
||||||
|
> {
|
||||||
|
const response = await this.v1StickerPacksNumberGetRaw(
|
||||||
|
requestParameters,
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
switch (response.raw.status) {
|
||||||
|
case 200:
|
||||||
|
return await response.value();
|
||||||
|
case 204:
|
||||||
|
return null;
|
||||||
|
default:
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* In order to add a sticker pack, browse to https://signalstickers.org/ and select the sticker pack you want to add. Then, press the \"Add to Signal\" button. If you look at the address bar in your browser you should see an URL in this format: https://signal.art/addstickers/#pack_id=XXX&pack_key=YYY, where XXX is the pack_id and YYY is the pack_key.
|
||||||
|
* Add Sticker Pack.
|
||||||
|
*/
|
||||||
|
async v1StickerPacksNumberPostRaw(
|
||||||
|
requestParameters: V1StickerPacksNumberPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters["number"] == null) {
|
||||||
|
throw new runtime.RequiredError(
|
||||||
|
"number",
|
||||||
|
'Required parameter "number" was null or undefined when calling v1StickerPacksNumberPost().',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (requestParameters["data"] == null) {
|
||||||
* In order to add a sticker pack, browse to https://signalstickers.org/ and select the sticker pack you want to add. Then, press the \"Add to Signal\" button. If you look at the address bar in your browser you should see an URL in this format: https://signal.art/addstickers/#pack_id=XXX&pack_key=YYY, where XXX is the pack_id and YYY is the pack_key.
|
throw new runtime.RequiredError(
|
||||||
* Add Sticker Pack.
|
"data",
|
||||||
*/
|
'Required parameter "data" was null or undefined when calling v1StickerPacksNumberPost().',
|
||||||
async v1StickerPacksNumberPostRaw(requestParameters: V1StickerPacksNumberPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
);
|
||||||
if (requestParameters['number'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'number',
|
|
||||||
'Required parameter "number" was null or undefined when calling v1StickerPacksNumberPost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters['data'] == null) {
|
|
||||||
throw new runtime.RequiredError(
|
|
||||||
'data',
|
|
||||||
'Required parameter "data" was null or undefined when calling v1StickerPacksNumberPost().'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/v1/sticker-packs/{number}`.replace(`{${"number"}}`, encodeURIComponent(String(requestParameters['number']))),
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: ApiAddStickerPackRequestToJSON(requestParameters['data']),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
const queryParameters: any = {};
|
||||||
* In order to add a sticker pack, browse to https://signalstickers.org/ and select the sticker pack you want to add. Then, press the \"Add to Signal\" button. If you look at the address bar in your browser you should see an URL in this format: https://signal.art/addstickers/#pack_id=XXX&pack_key=YYY, where XXX is the pack_id and YYY is the pack_key.
|
|
||||||
* Add Sticker Pack.
|
|
||||||
*/
|
|
||||||
async v1StickerPacksNumberPost(requestParameters: V1StickerPacksNumberPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
||||||
await this.v1StickerPacksNumberPostRaw(requestParameters, initOverrides);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
|
const response = await this.request(
|
||||||
|
{
|
||||||
|
path: `/v1/sticker-packs/{number}`.replace(
|
||||||
|
`{${"number"}}`,
|
||||||
|
encodeURIComponent(String(requestParameters["number"])),
|
||||||
|
),
|
||||||
|
method: "POST",
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ApiAddStickerPackRequestToJSON(requestParameters["data"]),
|
||||||
|
},
|
||||||
|
initOverrides,
|
||||||
|
);
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* In order to add a sticker pack, browse to https://signalstickers.org/ and select the sticker pack you want to add. Then, press the \"Add to Signal\" button. If you look at the address bar in your browser you should see an URL in this format: https://signal.art/addstickers/#pack_id=XXX&pack_key=YYY, where XXX is the pack_id and YYY is the pack_key.
|
||||||
|
* Add Sticker Pack.
|
||||||
|
*/
|
||||||
|
async v1StickerPacksNumberPost(
|
||||||
|
requestParameters: V1StickerPacksNumberPostRequest,
|
||||||
|
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
||||||
|
): Promise<void> {
|
||||||
|
await this.v1StickerPacksNumberPostRaw(requestParameters, initOverrides);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
export * from './AccountsApi';
|
export * from "./AccountsApi.js";
|
||||||
export * from './AttachmentsApi';
|
export * from "./AttachmentsApi.js";
|
||||||
export * from './ContactsApi';
|
export * from "./ContactsApi.js";
|
||||||
export * from './DevicesApi';
|
export * from "./DevicesApi.js";
|
||||||
export * from './GeneralApi';
|
export * from "./GeneralApi.js";
|
||||||
export * from './GroupsApi';
|
export * from "./GroupsApi.js";
|
||||||
export * from './IdentitiesApi';
|
export * from "./IdentitiesApi.js";
|
||||||
export * from './MessagesApi';
|
export * from "./MessagesApi.js";
|
||||||
export * from './ProfilesApi';
|
export * from "./ProfilesApi.js";
|
||||||
export * from './ReactionsApi';
|
export * from "./ReactionsApi.js";
|
||||||
export * from './ReceiptsApi';
|
export * from "./ReceiptsApi.js";
|
||||||
export * from './SearchApi';
|
export * from "./SearchApi.js";
|
||||||
export * from './StickerPacksApi';
|
export * from "./StickerPacksApi.js";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
export * from './runtime';
|
export * from "./runtime.js";
|
||||||
export * from './apis/index';
|
export * from "./apis/index.js";
|
||||||
export * from './models/index';
|
export * from "./models/index.js";
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,60 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiAddDeviceRequest
|
* @interface ApiAddDeviceRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiAddDeviceRequest {
|
export interface ApiAddDeviceRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiAddDeviceRequest
|
* @memberof ApiAddDeviceRequest
|
||||||
*/
|
*/
|
||||||
uri?: string;
|
uri?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiAddDeviceRequest interface.
|
* Check if a given object implements the ApiAddDeviceRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiAddDeviceRequest(value: object): value is ApiAddDeviceRequest {
|
export function instanceOfApiAddDeviceRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiAddDeviceRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiAddDeviceRequestFromJSON(json: any): ApiAddDeviceRequest {
|
export function ApiAddDeviceRequestFromJSON(json: any): ApiAddDeviceRequest {
|
||||||
return ApiAddDeviceRequestFromJSONTyped(json, false);
|
return ApiAddDeviceRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiAddDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAddDeviceRequest {
|
export function ApiAddDeviceRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiAddDeviceRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'uri': json['uri'] == null ? undefined : json['uri'],
|
}
|
||||||
};
|
return {
|
||||||
|
uri: json["uri"] == null ? undefined : json["uri"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiAddDeviceRequestToJSON(value?: ApiAddDeviceRequest | null): any {
|
export function ApiAddDeviceRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiAddDeviceRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'uri': value['uri'],
|
return {
|
||||||
};
|
uri: value["uri"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,64 +5,70 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiAddStickerPackRequest
|
* @interface ApiAddStickerPackRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiAddStickerPackRequest {
|
export interface ApiAddStickerPackRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiAddStickerPackRequest
|
* @memberof ApiAddStickerPackRequest
|
||||||
*/
|
*/
|
||||||
packId?: string;
|
packId?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiAddStickerPackRequest
|
* @memberof ApiAddStickerPackRequest
|
||||||
*/
|
*/
|
||||||
packKey?: string;
|
packKey?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiAddStickerPackRequest interface.
|
* Check if a given object implements the ApiAddStickerPackRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiAddStickerPackRequest(value: object): value is ApiAddStickerPackRequest {
|
export function instanceOfApiAddStickerPackRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiAddStickerPackRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiAddStickerPackRequestFromJSON(json: any): ApiAddStickerPackRequest {
|
export function ApiAddStickerPackRequestFromJSON(
|
||||||
return ApiAddStickerPackRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiAddStickerPackRequest {
|
||||||
|
return ApiAddStickerPackRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiAddStickerPackRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAddStickerPackRequest {
|
export function ApiAddStickerPackRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiAddStickerPackRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'packId': json['pack_id'] == null ? undefined : json['pack_id'],
|
}
|
||||||
'packKey': json['pack_key'] == null ? undefined : json['pack_key'],
|
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 {
|
export function ApiAddStickerPackRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiAddStickerPackRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'pack_id': value['packId'],
|
return {
|
||||||
'pack_key': value['packKey'],
|
pack_id: value["packId"],
|
||||||
};
|
pack_key: value["packKey"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,62 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiChangeGroupAdminsRequest
|
* @interface ApiChangeGroupAdminsRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiChangeGroupAdminsRequest {
|
export interface ApiChangeGroupAdminsRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ApiChangeGroupAdminsRequest
|
* @memberof ApiChangeGroupAdminsRequest
|
||||||
*/
|
*/
|
||||||
admins?: Array<string>;
|
admins?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiChangeGroupAdminsRequest interface.
|
* Check if a given object implements the ApiChangeGroupAdminsRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiChangeGroupAdminsRequest(value: object): value is ApiChangeGroupAdminsRequest {
|
export function instanceOfApiChangeGroupAdminsRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiChangeGroupAdminsRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiChangeGroupAdminsRequestFromJSON(json: any): ApiChangeGroupAdminsRequest {
|
export function ApiChangeGroupAdminsRequestFromJSON(
|
||||||
return ApiChangeGroupAdminsRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiChangeGroupAdminsRequest {
|
||||||
|
return ApiChangeGroupAdminsRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiChangeGroupAdminsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiChangeGroupAdminsRequest {
|
export function ApiChangeGroupAdminsRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiChangeGroupAdminsRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'admins': json['admins'] == null ? undefined : json['admins'],
|
}
|
||||||
};
|
return {
|
||||||
|
admins: json["admins"] == null ? undefined : json["admins"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiChangeGroupAdminsRequestToJSON(value?: ApiChangeGroupAdminsRequest | null): any {
|
export function ApiChangeGroupAdminsRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiChangeGroupAdminsRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'admins': value['admins'],
|
return {
|
||||||
};
|
admins: value["admins"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,62 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiChangeGroupMembersRequest
|
* @interface ApiChangeGroupMembersRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiChangeGroupMembersRequest {
|
export interface ApiChangeGroupMembersRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ApiChangeGroupMembersRequest
|
* @memberof ApiChangeGroupMembersRequest
|
||||||
*/
|
*/
|
||||||
members?: Array<string>;
|
members?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiChangeGroupMembersRequest interface.
|
* Check if a given object implements the ApiChangeGroupMembersRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiChangeGroupMembersRequest(value: object): value is ApiChangeGroupMembersRequest {
|
export function instanceOfApiChangeGroupMembersRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiChangeGroupMembersRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiChangeGroupMembersRequestFromJSON(json: any): ApiChangeGroupMembersRequest {
|
export function ApiChangeGroupMembersRequestFromJSON(
|
||||||
return ApiChangeGroupMembersRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiChangeGroupMembersRequest {
|
||||||
|
return ApiChangeGroupMembersRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiChangeGroupMembersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiChangeGroupMembersRequest {
|
export function ApiChangeGroupMembersRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiChangeGroupMembersRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'members': json['members'] == null ? undefined : json['members'],
|
}
|
||||||
};
|
return {
|
||||||
|
members: json["members"] == null ? undefined : json["members"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiChangeGroupMembersRequestToJSON(value?: ApiChangeGroupMembersRequest | null): any {
|
export function ApiChangeGroupMembersRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiChangeGroupMembersRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'members': value['members'],
|
return {
|
||||||
};
|
members: value["members"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,63 +5,68 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
import type { ApiLoggingConfiguration } from './ApiLoggingConfiguration';
|
import type { ApiLoggingConfiguration } from "./ApiLoggingConfiguration.js";
|
||||||
import {
|
import {
|
||||||
ApiLoggingConfigurationFromJSON,
|
ApiLoggingConfigurationFromJSON,
|
||||||
ApiLoggingConfigurationFromJSONTyped,
|
ApiLoggingConfigurationFromJSONTyped,
|
||||||
ApiLoggingConfigurationToJSON,
|
ApiLoggingConfigurationToJSON,
|
||||||
} from './ApiLoggingConfiguration';
|
} from "./ApiLoggingConfiguration.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiConfiguration
|
* @interface ApiConfiguration
|
||||||
*/
|
*/
|
||||||
export interface ApiConfiguration {
|
export interface ApiConfiguration {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {ApiLoggingConfiguration}
|
* @type {ApiLoggingConfiguration}
|
||||||
* @memberof ApiConfiguration
|
* @memberof ApiConfiguration
|
||||||
*/
|
*/
|
||||||
logging?: ApiLoggingConfiguration;
|
logging?: ApiLoggingConfiguration;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiConfiguration interface.
|
* Check if a given object implements the ApiConfiguration interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiConfiguration(value: object): value is ApiConfiguration {
|
export function instanceOfApiConfiguration(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiConfiguration {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiConfigurationFromJSON(json: any): ApiConfiguration {
|
export function ApiConfigurationFromJSON(json: any): ApiConfiguration {
|
||||||
return ApiConfigurationFromJSONTyped(json, false);
|
return ApiConfigurationFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiConfiguration {
|
export function ApiConfigurationFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiConfiguration {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'logging': json['logging'] == null ? undefined : ApiLoggingConfigurationFromJSON(json['logging']),
|
}
|
||||||
};
|
return {
|
||||||
|
logging:
|
||||||
|
json["logging"] == null
|
||||||
|
? undefined
|
||||||
|
: ApiLoggingConfigurationFromJSON(json["logging"]),
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiConfigurationToJSON(value?: ApiConfiguration | null): any {
|
export function ApiConfigurationToJSON(value?: ApiConfiguration | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
logging: ApiLoggingConfigurationToJSON(value["logging"]),
|
||||||
'logging': ApiLoggingConfigurationToJSON(value['logging']),
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,107 +5,115 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
import type { ApiGroupPermissions } from './ApiGroupPermissions';
|
import type { ApiGroupPermissions } from "./ApiGroupPermissions.js";
|
||||||
import {
|
import {
|
||||||
ApiGroupPermissionsFromJSON,
|
ApiGroupPermissionsFromJSON,
|
||||||
ApiGroupPermissionsFromJSONTyped,
|
ApiGroupPermissionsFromJSONTyped,
|
||||||
ApiGroupPermissionsToJSON,
|
ApiGroupPermissionsToJSON,
|
||||||
} from './ApiGroupPermissions';
|
} from "./ApiGroupPermissions.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiCreateGroupRequest
|
* @interface ApiCreateGroupRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiCreateGroupRequest {
|
export interface ApiCreateGroupRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiCreateGroupRequest
|
* @memberof ApiCreateGroupRequest
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiCreateGroupRequest
|
* @memberof ApiCreateGroupRequest
|
||||||
*/
|
*/
|
||||||
groupLink?: ApiCreateGroupRequestGroupLinkEnum;
|
groupLink?: ApiCreateGroupRequestGroupLinkEnum;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ApiCreateGroupRequest
|
* @memberof ApiCreateGroupRequest
|
||||||
*/
|
*/
|
||||||
members?: Array<string>;
|
members?: Array<string>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiCreateGroupRequest
|
* @memberof ApiCreateGroupRequest
|
||||||
*/
|
*/
|
||||||
name?: string;
|
name?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {ApiGroupPermissions}
|
* @type {ApiGroupPermissions}
|
||||||
* @memberof ApiCreateGroupRequest
|
* @memberof ApiCreateGroupRequest
|
||||||
*/
|
*/
|
||||||
permissions?: ApiGroupPermissions;
|
permissions?: ApiGroupPermissions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @export
|
* @export
|
||||||
*/
|
*/
|
||||||
export const ApiCreateGroupRequestGroupLinkEnum = {
|
export const ApiCreateGroupRequestGroupLinkEnum = {
|
||||||
Disabled: 'disabled',
|
Disabled: "disabled",
|
||||||
Enabled: 'enabled',
|
Enabled: "enabled",
|
||||||
EnabledWithApproval: 'enabled-with-approval'
|
EnabledWithApproval: "enabled-with-approval",
|
||||||
} as const;
|
} 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.
|
* Check if a given object implements the ApiCreateGroupRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiCreateGroupRequest(value: object): value is ApiCreateGroupRequest {
|
export function instanceOfApiCreateGroupRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiCreateGroupRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiCreateGroupRequestFromJSON(json: any): ApiCreateGroupRequest {
|
export function ApiCreateGroupRequestFromJSON(
|
||||||
return ApiCreateGroupRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiCreateGroupRequest {
|
||||||
|
return ApiCreateGroupRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiCreateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiCreateGroupRequest {
|
export function ApiCreateGroupRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiCreateGroupRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
}
|
||||||
'groupLink': json['group_link'] == null ? undefined : json['group_link'],
|
return {
|
||||||
'members': json['members'] == null ? undefined : json['members'],
|
description: json["description"] == null ? undefined : json["description"],
|
||||||
'name': json['name'] == null ? undefined : json['name'],
|
groupLink: json["group_link"] == null ? undefined : json["group_link"],
|
||||||
'permissions': json['permissions'] == null ? undefined : ApiGroupPermissionsFromJSON(json['permissions']),
|
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 {
|
export function ApiCreateGroupRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiCreateGroupRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'description': value['description'],
|
return {
|
||||||
'group_link': value['groupLink'],
|
description: value["description"],
|
||||||
'members': value['members'],
|
group_link: value["groupLink"],
|
||||||
'name': value['name'],
|
members: value["members"],
|
||||||
'permissions': ApiGroupPermissionsToJSON(value['permissions']),
|
name: value["name"],
|
||||||
};
|
permissions: ApiGroupPermissionsToJSON(value["permissions"]),
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,62 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiCreateGroupResponse
|
* @interface ApiCreateGroupResponse
|
||||||
*/
|
*/
|
||||||
export interface ApiCreateGroupResponse {
|
export interface ApiCreateGroupResponse {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiCreateGroupResponse
|
* @memberof ApiCreateGroupResponse
|
||||||
*/
|
*/
|
||||||
id?: string;
|
id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiCreateGroupResponse interface.
|
* Check if a given object implements the ApiCreateGroupResponse interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiCreateGroupResponse(value: object): value is ApiCreateGroupResponse {
|
export function instanceOfApiCreateGroupResponse(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiCreateGroupResponse {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiCreateGroupResponseFromJSON(json: any): ApiCreateGroupResponse {
|
export function ApiCreateGroupResponseFromJSON(
|
||||||
return ApiCreateGroupResponseFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiCreateGroupResponse {
|
||||||
|
return ApiCreateGroupResponseFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiCreateGroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiCreateGroupResponse {
|
export function ApiCreateGroupResponseFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiCreateGroupResponse {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
}
|
||||||
};
|
return {
|
||||||
|
id: json["id"] == null ? undefined : json["id"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiCreateGroupResponseToJSON(value?: ApiCreateGroupResponse | null): any {
|
export function ApiCreateGroupResponseToJSON(
|
||||||
if (value == null) {
|
value?: ApiCreateGroupResponse | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'id': value['id'],
|
return {
|
||||||
};
|
id: value["id"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,56 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiError
|
* @interface ApiError
|
||||||
*/
|
*/
|
||||||
export interface ApiError {
|
export interface ApiError {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiError
|
* @memberof ApiError
|
||||||
*/
|
*/
|
||||||
error?: string;
|
error?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiError interface.
|
* Check if a given object implements the ApiError interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiError(value: object): value is ApiError {
|
export function instanceOfApiError(value: object): value is ApiError {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiErrorFromJSON(json: any): ApiError {
|
export function ApiErrorFromJSON(json: any): ApiError {
|
||||||
return ApiErrorFromJSONTyped(json, false);
|
return ApiErrorFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
|
export function ApiErrorFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiError {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'error': json['error'] == null ? undefined : json['error'],
|
}
|
||||||
};
|
return {
|
||||||
|
error: json["error"] == null ? undefined : json["error"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiErrorToJSON(value?: ApiError | null): any {
|
export function ApiErrorToJSON(value?: ApiError | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
error: value["error"],
|
||||||
'error': value['error'],
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,84 +5,88 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiGroupPermissions
|
* @interface ApiGroupPermissions
|
||||||
*/
|
*/
|
||||||
export interface ApiGroupPermissions {
|
export interface ApiGroupPermissions {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiGroupPermissions
|
* @memberof ApiGroupPermissions
|
||||||
*/
|
*/
|
||||||
addMembers?: ApiGroupPermissionsAddMembersEnum;
|
addMembers?: ApiGroupPermissionsAddMembersEnum;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiGroupPermissions
|
* @memberof ApiGroupPermissions
|
||||||
*/
|
*/
|
||||||
editGroup?: ApiGroupPermissionsEditGroupEnum;
|
editGroup?: ApiGroupPermissionsEditGroupEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @export
|
* @export
|
||||||
*/
|
*/
|
||||||
export const ApiGroupPermissionsAddMembersEnum = {
|
export const ApiGroupPermissionsAddMembersEnum = {
|
||||||
OnlyAdmins: 'only-admins',
|
OnlyAdmins: "only-admins",
|
||||||
EveryMember: 'every-member'
|
EveryMember: "every-member",
|
||||||
} as const;
|
} as const;
|
||||||
export type ApiGroupPermissionsAddMembersEnum = typeof ApiGroupPermissionsAddMembersEnum[keyof typeof ApiGroupPermissionsAddMembersEnum];
|
export type ApiGroupPermissionsAddMembersEnum =
|
||||||
|
(typeof ApiGroupPermissionsAddMembersEnum)[keyof typeof ApiGroupPermissionsAddMembersEnum];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @export
|
* @export
|
||||||
*/
|
*/
|
||||||
export const ApiGroupPermissionsEditGroupEnum = {
|
export const ApiGroupPermissionsEditGroupEnum = {
|
||||||
OnlyAdmins: 'only-admins',
|
OnlyAdmins: "only-admins",
|
||||||
EveryMember: 'every-member'
|
EveryMember: "every-member",
|
||||||
} as const;
|
} 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.
|
* Check if a given object implements the ApiGroupPermissions interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiGroupPermissions(value: object): value is ApiGroupPermissions {
|
export function instanceOfApiGroupPermissions(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiGroupPermissions {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiGroupPermissionsFromJSON(json: any): ApiGroupPermissions {
|
export function ApiGroupPermissionsFromJSON(json: any): ApiGroupPermissions {
|
||||||
return ApiGroupPermissionsFromJSONTyped(json, false);
|
return ApiGroupPermissionsFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiGroupPermissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiGroupPermissions {
|
export function ApiGroupPermissionsFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiGroupPermissions {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'addMembers': json['add_members'] == null ? undefined : json['add_members'],
|
}
|
||||||
'editGroup': json['edit_group'] == null ? undefined : json['edit_group'],
|
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 {
|
export function ApiGroupPermissionsToJSON(
|
||||||
if (value == null) {
|
value?: ApiGroupPermissions | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'add_members': value['addMembers'],
|
return {
|
||||||
'edit_group': value['editGroup'],
|
add_members: value["addMembers"],
|
||||||
};
|
edit_group: value["editGroup"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,62 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiLoggingConfiguration
|
* @interface ApiLoggingConfiguration
|
||||||
*/
|
*/
|
||||||
export interface ApiLoggingConfiguration {
|
export interface ApiLoggingConfiguration {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiLoggingConfiguration
|
* @memberof ApiLoggingConfiguration
|
||||||
*/
|
*/
|
||||||
level?: string;
|
level?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiLoggingConfiguration interface.
|
* Check if a given object implements the ApiLoggingConfiguration interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiLoggingConfiguration(value: object): value is ApiLoggingConfiguration {
|
export function instanceOfApiLoggingConfiguration(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiLoggingConfiguration {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiLoggingConfigurationFromJSON(json: any): ApiLoggingConfiguration {
|
export function ApiLoggingConfigurationFromJSON(
|
||||||
return ApiLoggingConfigurationFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiLoggingConfiguration {
|
||||||
|
return ApiLoggingConfigurationFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiLoggingConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLoggingConfiguration {
|
export function ApiLoggingConfigurationFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiLoggingConfiguration {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'level': json['Level'] == null ? undefined : json['Level'],
|
}
|
||||||
};
|
return {
|
||||||
|
level: json["Level"] == null ? undefined : json["Level"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiLoggingConfigurationToJSON(value?: ApiLoggingConfiguration | null): any {
|
export function ApiLoggingConfigurationToJSON(
|
||||||
if (value == null) {
|
value?: ApiLoggingConfiguration | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'Level': value['level'],
|
return {
|
||||||
};
|
Level: value["level"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,64 +5,71 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiRateLimitChallengeRequest
|
* @interface ApiRateLimitChallengeRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiRateLimitChallengeRequest {
|
export interface ApiRateLimitChallengeRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiRateLimitChallengeRequest
|
* @memberof ApiRateLimitChallengeRequest
|
||||||
*/
|
*/
|
||||||
captcha?: string;
|
captcha?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiRateLimitChallengeRequest
|
* @memberof ApiRateLimitChallengeRequest
|
||||||
*/
|
*/
|
||||||
challengeToken?: string;
|
challengeToken?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiRateLimitChallengeRequest interface.
|
* Check if a given object implements the ApiRateLimitChallengeRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiRateLimitChallengeRequest(value: object): value is ApiRateLimitChallengeRequest {
|
export function instanceOfApiRateLimitChallengeRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiRateLimitChallengeRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiRateLimitChallengeRequestFromJSON(json: any): ApiRateLimitChallengeRequest {
|
export function ApiRateLimitChallengeRequestFromJSON(
|
||||||
return ApiRateLimitChallengeRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiRateLimitChallengeRequest {
|
||||||
|
return ApiRateLimitChallengeRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiRateLimitChallengeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRateLimitChallengeRequest {
|
export function ApiRateLimitChallengeRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiRateLimitChallengeRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'captcha': json['captcha'] == null ? undefined : json['captcha'],
|
}
|
||||||
'challengeToken': json['challenge_token'] == null ? undefined : json['challenge_token'],
|
return {
|
||||||
};
|
captcha: json["captcha"] == null ? undefined : json["captcha"],
|
||||||
|
challengeToken:
|
||||||
|
json["challenge_token"] == null ? undefined : json["challenge_token"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiRateLimitChallengeRequestToJSON(value?: ApiRateLimitChallengeRequest | null): any {
|
export function ApiRateLimitChallengeRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiRateLimitChallengeRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'captcha': value['captcha'],
|
return {
|
||||||
'challenge_token': value['challengeToken'],
|
captcha: value["captcha"],
|
||||||
};
|
challenge_token: value["challengeToken"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,80 +5,81 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiReaction
|
* @interface ApiReaction
|
||||||
*/
|
*/
|
||||||
export interface ApiReaction {
|
export interface ApiReaction {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiReaction
|
* @memberof ApiReaction
|
||||||
*/
|
*/
|
||||||
reaction?: string;
|
reaction?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiReaction
|
* @memberof ApiReaction
|
||||||
*/
|
*/
|
||||||
recipient?: string;
|
recipient?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiReaction
|
* @memberof ApiReaction
|
||||||
*/
|
*/
|
||||||
targetAuthor?: string;
|
targetAuthor?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof ApiReaction
|
* @memberof ApiReaction
|
||||||
*/
|
*/
|
||||||
timestamp?: number;
|
timestamp?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiReaction interface.
|
* Check if a given object implements the ApiReaction interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiReaction(value: object): value is ApiReaction {
|
export function instanceOfApiReaction(value: object): value is ApiReaction {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiReactionFromJSON(json: any): ApiReaction {
|
export function ApiReactionFromJSON(json: any): ApiReaction {
|
||||||
return ApiReactionFromJSONTyped(json, false);
|
return ApiReactionFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiReactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiReaction {
|
export function ApiReactionFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiReaction {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'reaction': json['reaction'] == null ? undefined : json['reaction'],
|
}
|
||||||
'recipient': json['recipient'] == null ? undefined : json['recipient'],
|
return {
|
||||||
'targetAuthor': json['target_author'] == null ? undefined : json['target_author'],
|
reaction: json["reaction"] == null ? undefined : json["reaction"],
|
||||||
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
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 {
|
export function ApiReactionToJSON(value?: ApiReaction | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
reaction: value["reaction"],
|
||||||
'reaction': value['reaction'],
|
recipient: value["recipient"],
|
||||||
'recipient': value['recipient'],
|
target_author: value["targetAuthor"],
|
||||||
'target_author': value['targetAuthor'],
|
timestamp: value["timestamp"],
|
||||||
'timestamp': value['timestamp'],
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,83 +5,83 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiReceipt
|
* @interface ApiReceipt
|
||||||
*/
|
*/
|
||||||
export interface ApiReceipt {
|
export interface ApiReceipt {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiReceipt
|
* @memberof ApiReceipt
|
||||||
*/
|
*/
|
||||||
receiptType?: ApiReceiptReceiptTypeEnum;
|
receiptType?: ApiReceiptReceiptTypeEnum;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiReceipt
|
* @memberof ApiReceipt
|
||||||
*/
|
*/
|
||||||
recipient?: string;
|
recipient?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof ApiReceipt
|
* @memberof ApiReceipt
|
||||||
*/
|
*/
|
||||||
timestamp?: number;
|
timestamp?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @export
|
* @export
|
||||||
*/
|
*/
|
||||||
export const ApiReceiptReceiptTypeEnum = {
|
export const ApiReceiptReceiptTypeEnum = {
|
||||||
Read: 'read',
|
Read: "read",
|
||||||
Viewed: 'viewed'
|
Viewed: "viewed",
|
||||||
} as const;
|
} 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.
|
* Check if a given object implements the ApiReceipt interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiReceipt(value: object): value is ApiReceipt {
|
export function instanceOfApiReceipt(value: object): value is ApiReceipt {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiReceiptFromJSON(json: any): ApiReceipt {
|
export function ApiReceiptFromJSON(json: any): ApiReceipt {
|
||||||
return ApiReceiptFromJSONTyped(json, false);
|
return ApiReceiptFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiReceiptFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiReceipt {
|
export function ApiReceiptFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiReceipt {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'receiptType': json['receipt_type'] == null ? undefined : json['receipt_type'],
|
}
|
||||||
'recipient': json['recipient'] == null ? undefined : json['recipient'],
|
return {
|
||||||
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
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 {
|
export function ApiReceiptToJSON(value?: ApiReceipt | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
receipt_type: value["receiptType"],
|
||||||
'receipt_type': value['receiptType'],
|
recipient: value["recipient"],
|
||||||
'recipient': value['recipient'],
|
timestamp: value["timestamp"],
|
||||||
'timestamp': value['timestamp'],
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,64 +5,70 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiRegisterNumberRequest
|
* @interface ApiRegisterNumberRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiRegisterNumberRequest {
|
export interface ApiRegisterNumberRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiRegisterNumberRequest
|
* @memberof ApiRegisterNumberRequest
|
||||||
*/
|
*/
|
||||||
captcha?: string;
|
captcha?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof ApiRegisterNumberRequest
|
* @memberof ApiRegisterNumberRequest
|
||||||
*/
|
*/
|
||||||
useVoice?: boolean;
|
useVoice?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiRegisterNumberRequest interface.
|
* Check if a given object implements the ApiRegisterNumberRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiRegisterNumberRequest(value: object): value is ApiRegisterNumberRequest {
|
export function instanceOfApiRegisterNumberRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiRegisterNumberRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiRegisterNumberRequestFromJSON(json: any): ApiRegisterNumberRequest {
|
export function ApiRegisterNumberRequestFromJSON(
|
||||||
return ApiRegisterNumberRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiRegisterNumberRequest {
|
||||||
|
return ApiRegisterNumberRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiRegisterNumberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRegisterNumberRequest {
|
export function ApiRegisterNumberRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiRegisterNumberRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'captcha': json['captcha'] == null ? undefined : json['captcha'],
|
}
|
||||||
'useVoice': json['use_voice'] == null ? undefined : json['use_voice'],
|
return {
|
||||||
};
|
captcha: json["captcha"] == null ? undefined : json["captcha"],
|
||||||
|
useVoice: json["use_voice"] == null ? undefined : json["use_voice"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiRegisterNumberRequestToJSON(value?: ApiRegisterNumberRequest | null): any {
|
export function ApiRegisterNumberRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiRegisterNumberRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'captcha': value['captcha'],
|
return {
|
||||||
'use_voice': value['useVoice'],
|
captcha: value["captcha"],
|
||||||
};
|
use_voice: value["useVoice"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,64 +5,66 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiSearchResponse
|
* @interface ApiSearchResponse
|
||||||
*/
|
*/
|
||||||
export interface ApiSearchResponse {
|
export interface ApiSearchResponse {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSearchResponse
|
* @memberof ApiSearchResponse
|
||||||
*/
|
*/
|
||||||
number?: string;
|
number?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof ApiSearchResponse
|
* @memberof ApiSearchResponse
|
||||||
*/
|
*/
|
||||||
registered?: boolean;
|
registered?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiSearchResponse interface.
|
* Check if a given object implements the ApiSearchResponse interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiSearchResponse(value: object): value is ApiSearchResponse {
|
export function instanceOfApiSearchResponse(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiSearchResponse {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSearchResponseFromJSON(json: any): ApiSearchResponse {
|
export function ApiSearchResponseFromJSON(json: any): ApiSearchResponse {
|
||||||
return ApiSearchResponseFromJSONTyped(json, false);
|
return ApiSearchResponseFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSearchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSearchResponse {
|
export function ApiSearchResponseFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiSearchResponse {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'number': json['number'] == null ? undefined : json['number'],
|
}
|
||||||
'registered': json['registered'] == null ? undefined : json['registered'],
|
return {
|
||||||
};
|
number: json["number"] == null ? undefined : json["number"],
|
||||||
|
registered: json["registered"] == null ? undefined : json["registered"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSearchResponseToJSON(value?: ApiSearchResponse | null): any {
|
export function ApiSearchResponseToJSON(value?: ApiSearchResponse | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
number: value["number"],
|
||||||
'number': value['number'],
|
registered: value["registered"],
|
||||||
'registered': value['registered'],
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,64 +5,69 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiSendMessageError
|
* @interface ApiSendMessageError
|
||||||
*/
|
*/
|
||||||
export interface ApiSendMessageError {
|
export interface ApiSendMessageError {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ApiSendMessageError
|
* @memberof ApiSendMessageError
|
||||||
*/
|
*/
|
||||||
challengeTokens?: Array<string>;
|
challengeTokens?: Array<string>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageError
|
* @memberof ApiSendMessageError
|
||||||
*/
|
*/
|
||||||
error?: string;
|
error?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiSendMessageError interface.
|
* Check if a given object implements the ApiSendMessageError interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiSendMessageError(value: object): value is ApiSendMessageError {
|
export function instanceOfApiSendMessageError(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiSendMessageError {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSendMessageErrorFromJSON(json: any): ApiSendMessageError {
|
export function ApiSendMessageErrorFromJSON(json: any): ApiSendMessageError {
|
||||||
return ApiSendMessageErrorFromJSONTyped(json, false);
|
return ApiSendMessageErrorFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSendMessageErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSendMessageError {
|
export function ApiSendMessageErrorFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiSendMessageError {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'challengeTokens': json['challenge_tokens'] == null ? undefined : json['challenge_tokens'],
|
}
|
||||||
'error': json['error'] == null ? undefined : json['error'],
|
return {
|
||||||
};
|
challengeTokens:
|
||||||
|
json["challenge_tokens"] == null ? undefined : json["challenge_tokens"],
|
||||||
|
error: json["error"] == null ? undefined : json["error"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSendMessageErrorToJSON(value?: ApiSendMessageError | null): any {
|
export function ApiSendMessageErrorToJSON(
|
||||||
if (value == null) {
|
value?: ApiSendMessageError | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'challenge_tokens': value['challengeTokens'],
|
return {
|
||||||
'error': value['error'],
|
challenge_tokens: value["challengeTokens"],
|
||||||
};
|
error: value["error"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,62 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiSendMessageResponse
|
* @interface ApiSendMessageResponse
|
||||||
*/
|
*/
|
||||||
export interface ApiSendMessageResponse {
|
export interface ApiSendMessageResponse {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageResponse
|
* @memberof ApiSendMessageResponse
|
||||||
*/
|
*/
|
||||||
timestamp?: string;
|
timestamp?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiSendMessageResponse interface.
|
* Check if a given object implements the ApiSendMessageResponse interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiSendMessageResponse(value: object): value is ApiSendMessageResponse {
|
export function instanceOfApiSendMessageResponse(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiSendMessageResponse {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSendMessageResponseFromJSON(json: any): ApiSendMessageResponse {
|
export function ApiSendMessageResponseFromJSON(
|
||||||
return ApiSendMessageResponseFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiSendMessageResponse {
|
||||||
|
return ApiSendMessageResponseFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSendMessageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSendMessageResponse {
|
export function ApiSendMessageResponseFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiSendMessageResponse {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
}
|
||||||
};
|
return {
|
||||||
|
timestamp: json["timestamp"] == null ? undefined : json["timestamp"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSendMessageResponseToJSON(value?: ApiSendMessageResponse | null): any {
|
export function ApiSendMessageResponseToJSON(
|
||||||
if (value == null) {
|
value?: ApiSendMessageResponse | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'timestamp': value['timestamp'],
|
return {
|
||||||
};
|
timestamp: value["timestamp"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,88 +5,91 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiSendMessageV1
|
* @interface ApiSendMessageV1
|
||||||
*/
|
*/
|
||||||
export interface ApiSendMessageV1 {
|
export interface ApiSendMessageV1 {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV1
|
* @memberof ApiSendMessageV1
|
||||||
*/
|
*/
|
||||||
base64Attachment?: string;
|
base64Attachment?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof ApiSendMessageV1
|
* @memberof ApiSendMessageV1
|
||||||
*/
|
*/
|
||||||
isGroup?: boolean;
|
isGroup?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV1
|
* @memberof ApiSendMessageV1
|
||||||
*/
|
*/
|
||||||
message?: string;
|
message?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV1
|
* @memberof ApiSendMessageV1
|
||||||
*/
|
*/
|
||||||
number?: string;
|
number?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ApiSendMessageV1
|
* @memberof ApiSendMessageV1
|
||||||
*/
|
*/
|
||||||
recipients?: Array<string>;
|
recipients?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiSendMessageV1 interface.
|
* Check if a given object implements the ApiSendMessageV1 interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiSendMessageV1(value: object): value is ApiSendMessageV1 {
|
export function instanceOfApiSendMessageV1(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiSendMessageV1 {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSendMessageV1FromJSON(json: any): ApiSendMessageV1 {
|
export function ApiSendMessageV1FromJSON(json: any): ApiSendMessageV1 {
|
||||||
return ApiSendMessageV1FromJSONTyped(json, false);
|
return ApiSendMessageV1FromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSendMessageV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSendMessageV1 {
|
export function ApiSendMessageV1FromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiSendMessageV1 {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'base64Attachment': json['base64_attachment'] == null ? undefined : json['base64_attachment'],
|
}
|
||||||
'isGroup': json['is_group'] == null ? undefined : json['is_group'],
|
return {
|
||||||
'message': json['message'] == null ? undefined : json['message'],
|
base64Attachment:
|
||||||
'number': json['number'] == null ? undefined : json['number'],
|
json["base64_attachment"] == null ? undefined : json["base64_attachment"],
|
||||||
'recipients': json['recipients'] == null ? undefined : json['recipients'],
|
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 {
|
export function ApiSendMessageV1ToJSON(value?: ApiSendMessageV1 | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
base64_attachment: value["base64Attachment"],
|
||||||
'base64_attachment': value['base64Attachment'],
|
is_group: value["isGroup"],
|
||||||
'is_group': value['isGroup'],
|
message: value["message"],
|
||||||
'message': value['message'],
|
number: value["number"],
|
||||||
'number': value['number'],
|
recipients: value["recipients"],
|
||||||
'recipients': value['recipients'],
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,155 +5,164 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiSendMessageV2
|
* @interface ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
export interface ApiSendMessageV2 {
|
export interface ApiSendMessageV2 {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
base64Attachments?: Array<string>;
|
base64Attachments?: Array<string>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
editTimestamp?: number;
|
editTimestamp?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
mentions?: string;
|
mentions?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
message?: string;
|
message?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
number?: string;
|
number?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
quoteAuthor?: string;
|
quoteAuthor?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
quoteMentions?: string;
|
quoteMentions?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
quoteMessage?: string;
|
quoteMessage?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
quoteTimestamp?: number;
|
quoteTimestamp?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
recipients?: Array<string>;
|
recipients?: Array<string>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
sticker?: string;
|
sticker?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSendMessageV2
|
* @memberof ApiSendMessageV2
|
||||||
*/
|
*/
|
||||||
textMode?: ApiSendMessageV2TextModeEnum;
|
textMode?: ApiSendMessageV2TextModeEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @export
|
* @export
|
||||||
*/
|
*/
|
||||||
export const ApiSendMessageV2TextModeEnum = {
|
export const ApiSendMessageV2TextModeEnum = {
|
||||||
Normal: 'normal',
|
Normal: "normal",
|
||||||
Styled: 'styled'
|
Styled: "styled",
|
||||||
} as const;
|
} 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.
|
* Check if a given object implements the ApiSendMessageV2 interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiSendMessageV2(value: object): value is ApiSendMessageV2 {
|
export function instanceOfApiSendMessageV2(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiSendMessageV2 {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSendMessageV2FromJSON(json: any): ApiSendMessageV2 {
|
export function ApiSendMessageV2FromJSON(json: any): ApiSendMessageV2 {
|
||||||
return ApiSendMessageV2FromJSONTyped(json, false);
|
return ApiSendMessageV2FromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSendMessageV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSendMessageV2 {
|
export function ApiSendMessageV2FromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiSendMessageV2 {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'base64Attachments': json['base64_attachments'] == null ? undefined : json['base64_attachments'],
|
}
|
||||||
'editTimestamp': json['edit_timestamp'] == null ? undefined : json['edit_timestamp'],
|
return {
|
||||||
'mentions': json['mentions'] == null ? undefined : json['mentions'],
|
base64Attachments:
|
||||||
'message': json['message'] == null ? undefined : json['message'],
|
json["base64_attachments"] == null
|
||||||
'number': json['number'] == null ? undefined : json['number'],
|
? undefined
|
||||||
'quoteAuthor': json['quote_author'] == null ? undefined : json['quote_author'],
|
: json["base64_attachments"],
|
||||||
'quoteMentions': json['quote_mentions'] == null ? undefined : json['quote_mentions'],
|
editTimestamp:
|
||||||
'quoteMessage': json['quote_message'] == null ? undefined : json['quote_message'],
|
json["edit_timestamp"] == null ? undefined : json["edit_timestamp"],
|
||||||
'quoteTimestamp': json['quote_timestamp'] == null ? undefined : json['quote_timestamp'],
|
mentions: json["mentions"] == null ? undefined : json["mentions"],
|
||||||
'recipients': json['recipients'] == null ? undefined : json['recipients'],
|
message: json["message"] == null ? undefined : json["message"],
|
||||||
'sticker': json['sticker'] == null ? undefined : json['sticker'],
|
number: json["number"] == null ? undefined : json["number"],
|
||||||
'textMode': json['text_mode'] == null ? undefined : json['text_mode'],
|
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 {
|
export function ApiSendMessageV2ToJSON(value?: ApiSendMessageV2 | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
base64_attachments: value["base64Attachments"],
|
||||||
'base64_attachments': value['base64Attachments'],
|
edit_timestamp: value["editTimestamp"],
|
||||||
'edit_timestamp': value['editTimestamp'],
|
mentions: value["mentions"],
|
||||||
'mentions': value['mentions'],
|
message: value["message"],
|
||||||
'message': value['message'],
|
number: value["number"],
|
||||||
'number': value['number'],
|
quote_author: value["quoteAuthor"],
|
||||||
'quote_author': value['quoteAuthor'],
|
quote_mentions: value["quoteMentions"],
|
||||||
'quote_mentions': value['quoteMentions'],
|
quote_message: value["quoteMessage"],
|
||||||
'quote_message': value['quoteMessage'],
|
quote_timestamp: value["quoteTimestamp"],
|
||||||
'quote_timestamp': value['quoteTimestamp'],
|
recipients: value["recipients"],
|
||||||
'recipients': value['recipients'],
|
sticker: value["sticker"],
|
||||||
'sticker': value['sticker'],
|
text_mode: value["textMode"],
|
||||||
'text_mode': value['textMode'],
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,62 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiSetUsernameRequest
|
* @interface ApiSetUsernameRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiSetUsernameRequest {
|
export interface ApiSetUsernameRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiSetUsernameRequest
|
* @memberof ApiSetUsernameRequest
|
||||||
*/
|
*/
|
||||||
username?: string;
|
username?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiSetUsernameRequest interface.
|
* Check if a given object implements the ApiSetUsernameRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiSetUsernameRequest(value: object): value is ApiSetUsernameRequest {
|
export function instanceOfApiSetUsernameRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiSetUsernameRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSetUsernameRequestFromJSON(json: any): ApiSetUsernameRequest {
|
export function ApiSetUsernameRequestFromJSON(
|
||||||
return ApiSetUsernameRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiSetUsernameRequest {
|
||||||
|
return ApiSetUsernameRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSetUsernameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSetUsernameRequest {
|
export function ApiSetUsernameRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiSetUsernameRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'username': json['username'] == null ? undefined : json['username'],
|
}
|
||||||
};
|
return {
|
||||||
|
username: json["username"] == null ? undefined : json["username"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiSetUsernameRequestToJSON(value?: ApiSetUsernameRequest | null): any {
|
export function ApiSetUsernameRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiSetUsernameRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'username': value['username'],
|
return {
|
||||||
};
|
username: value["username"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,64 +5,76 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiTrustIdentityRequest
|
* @interface ApiTrustIdentityRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiTrustIdentityRequest {
|
export interface ApiTrustIdentityRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof ApiTrustIdentityRequest
|
* @memberof ApiTrustIdentityRequest
|
||||||
*/
|
*/
|
||||||
trustAllKnownKeys?: boolean;
|
trustAllKnownKeys?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiTrustIdentityRequest
|
* @memberof ApiTrustIdentityRequest
|
||||||
*/
|
*/
|
||||||
verifiedSafetyNumber?: string;
|
verifiedSafetyNumber?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiTrustIdentityRequest interface.
|
* Check if a given object implements the ApiTrustIdentityRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiTrustIdentityRequest(value: object): value is ApiTrustIdentityRequest {
|
export function instanceOfApiTrustIdentityRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiTrustIdentityRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTrustIdentityRequestFromJSON(json: any): ApiTrustIdentityRequest {
|
export function ApiTrustIdentityRequestFromJSON(
|
||||||
return ApiTrustIdentityRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiTrustIdentityRequest {
|
||||||
|
return ApiTrustIdentityRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTrustIdentityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTrustIdentityRequest {
|
export function ApiTrustIdentityRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiTrustIdentityRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'trustAllKnownKeys': json['trust_all_known_keys'] == null ? undefined : json['trust_all_known_keys'],
|
}
|
||||||
'verifiedSafetyNumber': json['verified_safety_number'] == null ? undefined : json['verified_safety_number'],
|
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 {
|
export function ApiTrustIdentityRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiTrustIdentityRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'trust_all_known_keys': value['trustAllKnownKeys'],
|
return {
|
||||||
'verified_safety_number': value['verifiedSafetyNumber'],
|
trust_all_known_keys: value["trustAllKnownKeys"],
|
||||||
};
|
verified_safety_number: value["verifiedSafetyNumber"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,60 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiTrustModeRequest
|
* @interface ApiTrustModeRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiTrustModeRequest {
|
export interface ApiTrustModeRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiTrustModeRequest
|
* @memberof ApiTrustModeRequest
|
||||||
*/
|
*/
|
||||||
trustMode?: string;
|
trustMode?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiTrustModeRequest interface.
|
* Check if a given object implements the ApiTrustModeRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiTrustModeRequest(value: object): value is ApiTrustModeRequest {
|
export function instanceOfApiTrustModeRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiTrustModeRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTrustModeRequestFromJSON(json: any): ApiTrustModeRequest {
|
export function ApiTrustModeRequestFromJSON(json: any): ApiTrustModeRequest {
|
||||||
return ApiTrustModeRequestFromJSONTyped(json, false);
|
return ApiTrustModeRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTrustModeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTrustModeRequest {
|
export function ApiTrustModeRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiTrustModeRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'trustMode': json['trust_mode'] == null ? undefined : json['trust_mode'],
|
}
|
||||||
};
|
return {
|
||||||
|
trustMode: json["trust_mode"] == null ? undefined : json["trust_mode"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTrustModeRequestToJSON(value?: ApiTrustModeRequest | null): any {
|
export function ApiTrustModeRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiTrustModeRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'trust_mode': value['trustMode'],
|
return {
|
||||||
};
|
trust_mode: value["trustMode"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,60 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiTrustModeResponse
|
* @interface ApiTrustModeResponse
|
||||||
*/
|
*/
|
||||||
export interface ApiTrustModeResponse {
|
export interface ApiTrustModeResponse {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiTrustModeResponse
|
* @memberof ApiTrustModeResponse
|
||||||
*/
|
*/
|
||||||
trustMode?: string;
|
trustMode?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiTrustModeResponse interface.
|
* Check if a given object implements the ApiTrustModeResponse interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiTrustModeResponse(value: object): value is ApiTrustModeResponse {
|
export function instanceOfApiTrustModeResponse(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiTrustModeResponse {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTrustModeResponseFromJSON(json: any): ApiTrustModeResponse {
|
export function ApiTrustModeResponseFromJSON(json: any): ApiTrustModeResponse {
|
||||||
return ApiTrustModeResponseFromJSONTyped(json, false);
|
return ApiTrustModeResponseFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTrustModeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTrustModeResponse {
|
export function ApiTrustModeResponseFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiTrustModeResponse {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'trustMode': json['trust_mode'] == null ? undefined : json['trust_mode'],
|
}
|
||||||
};
|
return {
|
||||||
|
trustMode: json["trust_mode"] == null ? undefined : json["trust_mode"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTrustModeResponseToJSON(value?: ApiTrustModeResponse | null): any {
|
export function ApiTrustModeResponseToJSON(
|
||||||
if (value == null) {
|
value?: ApiTrustModeResponse | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'trust_mode': value['trustMode'],
|
return {
|
||||||
};
|
trust_mode: value["trustMode"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,62 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiTypingIndicatorRequest
|
* @interface ApiTypingIndicatorRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiTypingIndicatorRequest {
|
export interface ApiTypingIndicatorRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiTypingIndicatorRequest
|
* @memberof ApiTypingIndicatorRequest
|
||||||
*/
|
*/
|
||||||
recipient?: string;
|
recipient?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiTypingIndicatorRequest interface.
|
* Check if a given object implements the ApiTypingIndicatorRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiTypingIndicatorRequest(value: object): value is ApiTypingIndicatorRequest {
|
export function instanceOfApiTypingIndicatorRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiTypingIndicatorRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTypingIndicatorRequestFromJSON(json: any): ApiTypingIndicatorRequest {
|
export function ApiTypingIndicatorRequestFromJSON(
|
||||||
return ApiTypingIndicatorRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiTypingIndicatorRequest {
|
||||||
|
return ApiTypingIndicatorRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTypingIndicatorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTypingIndicatorRequest {
|
export function ApiTypingIndicatorRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiTypingIndicatorRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'recipient': json['recipient'] == null ? undefined : json['recipient'],
|
}
|
||||||
};
|
return {
|
||||||
|
recipient: json["recipient"] == null ? undefined : json["recipient"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiTypingIndicatorRequestToJSON(value?: ApiTypingIndicatorRequest | null): any {
|
export function ApiTypingIndicatorRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiTypingIndicatorRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'recipient': value['recipient'],
|
return {
|
||||||
};
|
recipient: value["recipient"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,64 +5,72 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiUnregisterNumberRequest
|
* @interface ApiUnregisterNumberRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiUnregisterNumberRequest {
|
export interface ApiUnregisterNumberRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof ApiUnregisterNumberRequest
|
* @memberof ApiUnregisterNumberRequest
|
||||||
*/
|
*/
|
||||||
deleteAccount?: boolean;
|
deleteAccount?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof ApiUnregisterNumberRequest
|
* @memberof ApiUnregisterNumberRequest
|
||||||
*/
|
*/
|
||||||
deleteLocalData?: boolean;
|
deleteLocalData?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiUnregisterNumberRequest interface.
|
* Check if a given object implements the ApiUnregisterNumberRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiUnregisterNumberRequest(value: object): value is ApiUnregisterNumberRequest {
|
export function instanceOfApiUnregisterNumberRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiUnregisterNumberRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUnregisterNumberRequestFromJSON(json: any): ApiUnregisterNumberRequest {
|
export function ApiUnregisterNumberRequestFromJSON(
|
||||||
return ApiUnregisterNumberRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiUnregisterNumberRequest {
|
||||||
|
return ApiUnregisterNumberRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUnregisterNumberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUnregisterNumberRequest {
|
export function ApiUnregisterNumberRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiUnregisterNumberRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'deleteAccount': json['delete_account'] == null ? undefined : json['delete_account'],
|
}
|
||||||
'deleteLocalData': json['delete_local_data'] == null ? undefined : json['delete_local_data'],
|
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 {
|
export function ApiUnregisterNumberRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiUnregisterNumberRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'delete_account': value['deleteAccount'],
|
return {
|
||||||
'delete_local_data': value['deleteLocalData'],
|
delete_account: value["deleteAccount"],
|
||||||
};
|
delete_local_data: value["deleteLocalData"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,64 +5,74 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiUpdateAccountSettingsRequest
|
* @interface ApiUpdateAccountSettingsRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiUpdateAccountSettingsRequest {
|
export interface ApiUpdateAccountSettingsRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof ApiUpdateAccountSettingsRequest
|
* @memberof ApiUpdateAccountSettingsRequest
|
||||||
*/
|
*/
|
||||||
discoverableByNumber?: boolean;
|
discoverableByNumber?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof ApiUpdateAccountSettingsRequest
|
* @memberof ApiUpdateAccountSettingsRequest
|
||||||
*/
|
*/
|
||||||
shareNumber?: boolean;
|
shareNumber?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiUpdateAccountSettingsRequest interface.
|
* Check if a given object implements the ApiUpdateAccountSettingsRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiUpdateAccountSettingsRequest(value: object): value is ApiUpdateAccountSettingsRequest {
|
export function instanceOfApiUpdateAccountSettingsRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiUpdateAccountSettingsRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUpdateAccountSettingsRequestFromJSON(json: any): ApiUpdateAccountSettingsRequest {
|
export function ApiUpdateAccountSettingsRequestFromJSON(
|
||||||
return ApiUpdateAccountSettingsRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiUpdateAccountSettingsRequest {
|
||||||
|
return ApiUpdateAccountSettingsRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUpdateAccountSettingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUpdateAccountSettingsRequest {
|
export function ApiUpdateAccountSettingsRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiUpdateAccountSettingsRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'discoverableByNumber': json['discoverable_by_number'] == null ? undefined : json['discoverable_by_number'],
|
}
|
||||||
'shareNumber': json['share_number'] == null ? undefined : json['share_number'],
|
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 {
|
export function ApiUpdateAccountSettingsRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiUpdateAccountSettingsRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'discoverable_by_number': value['discoverableByNumber'],
|
return {
|
||||||
'share_number': value['shareNumber'],
|
discoverable_by_number: value["discoverableByNumber"],
|
||||||
};
|
share_number: value["shareNumber"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,72 +5,81 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiUpdateContactRequest
|
* @interface ApiUpdateContactRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiUpdateContactRequest {
|
export interface ApiUpdateContactRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof ApiUpdateContactRequest
|
* @memberof ApiUpdateContactRequest
|
||||||
*/
|
*/
|
||||||
expirationInSeconds?: number;
|
expirationInSeconds?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiUpdateContactRequest
|
* @memberof ApiUpdateContactRequest
|
||||||
*/
|
*/
|
||||||
name?: string;
|
name?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiUpdateContactRequest
|
* @memberof ApiUpdateContactRequest
|
||||||
*/
|
*/
|
||||||
recipient?: string;
|
recipient?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiUpdateContactRequest interface.
|
* Check if a given object implements the ApiUpdateContactRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiUpdateContactRequest(value: object): value is ApiUpdateContactRequest {
|
export function instanceOfApiUpdateContactRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiUpdateContactRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUpdateContactRequestFromJSON(json: any): ApiUpdateContactRequest {
|
export function ApiUpdateContactRequestFromJSON(
|
||||||
return ApiUpdateContactRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiUpdateContactRequest {
|
||||||
|
return ApiUpdateContactRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUpdateContactRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUpdateContactRequest {
|
export function ApiUpdateContactRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiUpdateContactRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'expirationInSeconds': json['expiration_in_seconds'] == null ? undefined : json['expiration_in_seconds'],
|
}
|
||||||
'name': json['name'] == null ? undefined : json['name'],
|
return {
|
||||||
'recipient': json['recipient'] == null ? undefined : json['recipient'],
|
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 {
|
export function ApiUpdateContactRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiUpdateContactRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'expiration_in_seconds': value['expirationInSeconds'],
|
return {
|
||||||
'name': value['name'],
|
expiration_in_seconds: value["expirationInSeconds"],
|
||||||
'recipient': value['recipient'],
|
name: value["name"],
|
||||||
};
|
recipient: value["recipient"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,72 +5,79 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiUpdateGroupRequest
|
* @interface ApiUpdateGroupRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiUpdateGroupRequest {
|
export interface ApiUpdateGroupRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiUpdateGroupRequest
|
* @memberof ApiUpdateGroupRequest
|
||||||
*/
|
*/
|
||||||
base64Avatar?: string;
|
base64Avatar?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiUpdateGroupRequest
|
* @memberof ApiUpdateGroupRequest
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiUpdateGroupRequest
|
* @memberof ApiUpdateGroupRequest
|
||||||
*/
|
*/
|
||||||
name?: string;
|
name?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiUpdateGroupRequest interface.
|
* Check if a given object implements the ApiUpdateGroupRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiUpdateGroupRequest(value: object): value is ApiUpdateGroupRequest {
|
export function instanceOfApiUpdateGroupRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiUpdateGroupRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUpdateGroupRequestFromJSON(json: any): ApiUpdateGroupRequest {
|
export function ApiUpdateGroupRequestFromJSON(
|
||||||
return ApiUpdateGroupRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiUpdateGroupRequest {
|
||||||
|
return ApiUpdateGroupRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUpdateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUpdateGroupRequest {
|
export function ApiUpdateGroupRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiUpdateGroupRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'base64Avatar': json['base64_avatar'] == null ? undefined : json['base64_avatar'],
|
}
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
return {
|
||||||
'name': json['name'] == null ? undefined : json['name'],
|
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 {
|
export function ApiUpdateGroupRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiUpdateGroupRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'base64_avatar': value['base64Avatar'],
|
return {
|
||||||
'description': value['description'],
|
base64_avatar: value["base64Avatar"],
|
||||||
'name': value['name'],
|
description: value["description"],
|
||||||
};
|
name: value["name"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,64 +5,71 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiUpdateProfileRequest
|
* @interface ApiUpdateProfileRequest
|
||||||
*/
|
*/
|
||||||
export interface ApiUpdateProfileRequest {
|
export interface ApiUpdateProfileRequest {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiUpdateProfileRequest
|
* @memberof ApiUpdateProfileRequest
|
||||||
*/
|
*/
|
||||||
base64Avatar?: string;
|
base64Avatar?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiUpdateProfileRequest
|
* @memberof ApiUpdateProfileRequest
|
||||||
*/
|
*/
|
||||||
name?: string;
|
name?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiUpdateProfileRequest interface.
|
* Check if a given object implements the ApiUpdateProfileRequest interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiUpdateProfileRequest(value: object): value is ApiUpdateProfileRequest {
|
export function instanceOfApiUpdateProfileRequest(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiUpdateProfileRequest {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUpdateProfileRequestFromJSON(json: any): ApiUpdateProfileRequest {
|
export function ApiUpdateProfileRequestFromJSON(
|
||||||
return ApiUpdateProfileRequestFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiUpdateProfileRequest {
|
||||||
|
return ApiUpdateProfileRequestFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUpdateProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUpdateProfileRequest {
|
export function ApiUpdateProfileRequestFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiUpdateProfileRequest {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'base64Avatar': json['base64_avatar'] == null ? undefined : json['base64_avatar'],
|
}
|
||||||
'name': json['name'] == null ? undefined : json['name'],
|
return {
|
||||||
};
|
base64Avatar:
|
||||||
|
json["base64_avatar"] == null ? undefined : json["base64_avatar"],
|
||||||
|
name: json["name"] == null ? undefined : json["name"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiUpdateProfileRequestToJSON(value?: ApiUpdateProfileRequest | null): any {
|
export function ApiUpdateProfileRequestToJSON(
|
||||||
if (value == null) {
|
value?: ApiUpdateProfileRequest | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'base64_avatar': value['base64Avatar'],
|
return {
|
||||||
'name': value['name'],
|
base64_avatar: value["base64Avatar"],
|
||||||
};
|
name: value["name"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,56 +5,62 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ApiVerifyNumberSettings
|
* @interface ApiVerifyNumberSettings
|
||||||
*/
|
*/
|
||||||
export interface ApiVerifyNumberSettings {
|
export interface ApiVerifyNumberSettings {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ApiVerifyNumberSettings
|
* @memberof ApiVerifyNumberSettings
|
||||||
*/
|
*/
|
||||||
pin?: string;
|
pin?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ApiVerifyNumberSettings interface.
|
* Check if a given object implements the ApiVerifyNumberSettings interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfApiVerifyNumberSettings(value: object): value is ApiVerifyNumberSettings {
|
export function instanceOfApiVerifyNumberSettings(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ApiVerifyNumberSettings {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiVerifyNumberSettingsFromJSON(json: any): ApiVerifyNumberSettings {
|
export function ApiVerifyNumberSettingsFromJSON(
|
||||||
return ApiVerifyNumberSettingsFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ApiVerifyNumberSettings {
|
||||||
|
return ApiVerifyNumberSettingsFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiVerifyNumberSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiVerifyNumberSettings {
|
export function ApiVerifyNumberSettingsFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ApiVerifyNumberSettings {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'pin': json['pin'] == null ? undefined : json['pin'],
|
}
|
||||||
};
|
return {
|
||||||
|
pin: json["pin"] == null ? undefined : json["pin"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ApiVerifyNumberSettingsToJSON(value?: ApiVerifyNumberSettings | null): any {
|
export function ApiVerifyNumberSettingsToJSON(
|
||||||
if (value == null) {
|
value?: ApiVerifyNumberSettings | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'pin': value['pin'],
|
return {
|
||||||
};
|
pin: value["pin"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,88 +5,89 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ClientAbout
|
* @interface ClientAbout
|
||||||
*/
|
*/
|
||||||
export interface ClientAbout {
|
export interface ClientAbout {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof ClientAbout
|
* @memberof ClientAbout
|
||||||
*/
|
*/
|
||||||
build?: number;
|
build?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {{ [key: string]: Array<string>; }}
|
* @type {{ [key: string]: Array<string>; }}
|
||||||
* @memberof ClientAbout
|
* @memberof ClientAbout
|
||||||
*/
|
*/
|
||||||
capabilities?: { [key: string]: Array<string>; };
|
capabilities?: { [key: string]: Array<string> };
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientAbout
|
* @memberof ClientAbout
|
||||||
*/
|
*/
|
||||||
mode?: string;
|
mode?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientAbout
|
* @memberof ClientAbout
|
||||||
*/
|
*/
|
||||||
version?: string;
|
version?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ClientAbout
|
* @memberof ClientAbout
|
||||||
*/
|
*/
|
||||||
versions?: Array<string>;
|
versions?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ClientAbout interface.
|
* Check if a given object implements the ClientAbout interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfClientAbout(value: object): value is ClientAbout {
|
export function instanceOfClientAbout(value: object): value is ClientAbout {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientAboutFromJSON(json: any): ClientAbout {
|
export function ClientAboutFromJSON(json: any): ClientAbout {
|
||||||
return ClientAboutFromJSONTyped(json, false);
|
return ClientAboutFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientAboutFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientAbout {
|
export function ClientAboutFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ClientAbout {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'build': json['build'] == null ? undefined : json['build'],
|
}
|
||||||
'capabilities': json['capabilities'] == null ? undefined : json['capabilities'],
|
return {
|
||||||
'mode': json['mode'] == null ? undefined : json['mode'],
|
build: json["build"] == null ? undefined : json["build"],
|
||||||
'version': json['version'] == null ? undefined : json['version'],
|
capabilities:
|
||||||
'versions': json['versions'] == null ? undefined : json['versions'],
|
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 {
|
export function ClientAboutToJSON(value?: ClientAbout | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
build: value["build"],
|
||||||
'build': value['build'],
|
capabilities: value["capabilities"],
|
||||||
'capabilities': value['capabilities'],
|
mode: value["mode"],
|
||||||
'mode': value['mode'],
|
version: value["version"],
|
||||||
'version': value['version'],
|
versions: value["versions"],
|
||||||
'versions': value['versions'],
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,120 +5,124 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ClientGroupEntry
|
* @interface ClientGroupEntry
|
||||||
*/
|
*/
|
||||||
export interface ClientGroupEntry {
|
export interface ClientGroupEntry {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ClientGroupEntry
|
* @memberof ClientGroupEntry
|
||||||
*/
|
*/
|
||||||
admins?: Array<string>;
|
admins?: Array<string>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof ClientGroupEntry
|
* @memberof ClientGroupEntry
|
||||||
*/
|
*/
|
||||||
blocked?: boolean;
|
blocked?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientGroupEntry
|
* @memberof ClientGroupEntry
|
||||||
*/
|
*/
|
||||||
id?: string;
|
id?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientGroupEntry
|
* @memberof ClientGroupEntry
|
||||||
*/
|
*/
|
||||||
internalId?: string;
|
internalId?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientGroupEntry
|
* @memberof ClientGroupEntry
|
||||||
*/
|
*/
|
||||||
inviteLink?: string;
|
inviteLink?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ClientGroupEntry
|
* @memberof ClientGroupEntry
|
||||||
*/
|
*/
|
||||||
members?: Array<string>;
|
members?: Array<string>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientGroupEntry
|
* @memberof ClientGroupEntry
|
||||||
*/
|
*/
|
||||||
name?: string;
|
name?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ClientGroupEntry
|
* @memberof ClientGroupEntry
|
||||||
*/
|
*/
|
||||||
pendingInvites?: Array<string>;
|
pendingInvites?: Array<string>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
* @memberof ClientGroupEntry
|
* @memberof ClientGroupEntry
|
||||||
*/
|
*/
|
||||||
pendingRequests?: Array<string>;
|
pendingRequests?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ClientGroupEntry interface.
|
* Check if a given object implements the ClientGroupEntry interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfClientGroupEntry(value: object): value is ClientGroupEntry {
|
export function instanceOfClientGroupEntry(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ClientGroupEntry {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientGroupEntryFromJSON(json: any): ClientGroupEntry {
|
export function ClientGroupEntryFromJSON(json: any): ClientGroupEntry {
|
||||||
return ClientGroupEntryFromJSONTyped(json, false);
|
return ClientGroupEntryFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientGroupEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientGroupEntry {
|
export function ClientGroupEntryFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ClientGroupEntry {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'admins': json['admins'] == null ? undefined : json['admins'],
|
}
|
||||||
'blocked': json['blocked'] == null ? undefined : json['blocked'],
|
return {
|
||||||
'id': json['id'] == null ? undefined : json['id'],
|
admins: json["admins"] == null ? undefined : json["admins"],
|
||||||
'internalId': json['internal_id'] == null ? undefined : json['internal_id'],
|
blocked: json["blocked"] == null ? undefined : json["blocked"],
|
||||||
'inviteLink': json['invite_link'] == null ? undefined : json['invite_link'],
|
id: json["id"] == null ? undefined : json["id"],
|
||||||
'members': json['members'] == null ? undefined : json['members'],
|
internalId: json["internal_id"] == null ? undefined : json["internal_id"],
|
||||||
'name': json['name'] == null ? undefined : json['name'],
|
inviteLink: json["invite_link"] == null ? undefined : json["invite_link"],
|
||||||
'pendingInvites': json['pending_invites'] == null ? undefined : json['pending_invites'],
|
members: json["members"] == null ? undefined : json["members"],
|
||||||
'pendingRequests': json['pending_requests'] == null ? undefined : json['pending_requests'],
|
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 {
|
export function ClientGroupEntryToJSON(value?: ClientGroupEntry | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
admins: value["admins"],
|
||||||
'admins': value['admins'],
|
blocked: value["blocked"],
|
||||||
'blocked': value['blocked'],
|
id: value["id"],
|
||||||
'id': value['id'],
|
internal_id: value["internalId"],
|
||||||
'internal_id': value['internalId'],
|
invite_link: value["inviteLink"],
|
||||||
'invite_link': value['inviteLink'],
|
members: value["members"],
|
||||||
'members': value['members'],
|
name: value["name"],
|
||||||
'name': value['name'],
|
pending_invites: value["pendingInvites"],
|
||||||
'pending_invites': value['pendingInvites'],
|
pending_requests: value["pendingRequests"],
|
||||||
'pending_requests': value['pendingRequests'],
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,88 +5,93 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ClientIdentityEntry
|
* @interface ClientIdentityEntry
|
||||||
*/
|
*/
|
||||||
export interface ClientIdentityEntry {
|
export interface ClientIdentityEntry {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientIdentityEntry
|
* @memberof ClientIdentityEntry
|
||||||
*/
|
*/
|
||||||
added?: string;
|
added?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientIdentityEntry
|
* @memberof ClientIdentityEntry
|
||||||
*/
|
*/
|
||||||
fingerprint?: string;
|
fingerprint?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientIdentityEntry
|
* @memberof ClientIdentityEntry
|
||||||
*/
|
*/
|
||||||
number?: string;
|
number?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientIdentityEntry
|
* @memberof ClientIdentityEntry
|
||||||
*/
|
*/
|
||||||
safetyNumber?: string;
|
safetyNumber?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientIdentityEntry
|
* @memberof ClientIdentityEntry
|
||||||
*/
|
*/
|
||||||
status?: string;
|
status?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ClientIdentityEntry interface.
|
* Check if a given object implements the ClientIdentityEntry interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfClientIdentityEntry(value: object): value is ClientIdentityEntry {
|
export function instanceOfClientIdentityEntry(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ClientIdentityEntry {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientIdentityEntryFromJSON(json: any): ClientIdentityEntry {
|
export function ClientIdentityEntryFromJSON(json: any): ClientIdentityEntry {
|
||||||
return ClientIdentityEntryFromJSONTyped(json, false);
|
return ClientIdentityEntryFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientIdentityEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientIdentityEntry {
|
export function ClientIdentityEntryFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ClientIdentityEntry {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'added': json['added'] == null ? undefined : json['added'],
|
}
|
||||||
'fingerprint': json['fingerprint'] == null ? undefined : json['fingerprint'],
|
return {
|
||||||
'number': json['number'] == null ? undefined : json['number'],
|
added: json["added"] == null ? undefined : json["added"],
|
||||||
'safetyNumber': json['safety_number'] == null ? undefined : json['safety_number'],
|
fingerprint: json["fingerprint"] == null ? undefined : json["fingerprint"],
|
||||||
'status': json['status'] == null ? undefined : json['status'],
|
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 {
|
export function ClientIdentityEntryToJSON(
|
||||||
if (value == null) {
|
value?: ClientIdentityEntry | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'added': value['added'],
|
return {
|
||||||
'fingerprint': value['fingerprint'],
|
added: value["added"],
|
||||||
'number': value['number'],
|
fingerprint: value["fingerprint"],
|
||||||
'safety_number': value['safetyNumber'],
|
number: value["number"],
|
||||||
'status': value['status'],
|
safety_number: value["safetyNumber"],
|
||||||
};
|
status: value["status"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,88 +5,94 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ClientListInstalledStickerPacksResponse
|
* @interface ClientListInstalledStickerPacksResponse
|
||||||
*/
|
*/
|
||||||
export interface ClientListInstalledStickerPacksResponse {
|
export interface ClientListInstalledStickerPacksResponse {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientListInstalledStickerPacksResponse
|
* @memberof ClientListInstalledStickerPacksResponse
|
||||||
*/
|
*/
|
||||||
author?: string;
|
author?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof ClientListInstalledStickerPacksResponse
|
* @memberof ClientListInstalledStickerPacksResponse
|
||||||
*/
|
*/
|
||||||
installed?: boolean;
|
installed?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientListInstalledStickerPacksResponse
|
* @memberof ClientListInstalledStickerPacksResponse
|
||||||
*/
|
*/
|
||||||
packId?: string;
|
packId?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientListInstalledStickerPacksResponse
|
* @memberof ClientListInstalledStickerPacksResponse
|
||||||
*/
|
*/
|
||||||
title?: string;
|
title?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientListInstalledStickerPacksResponse
|
* @memberof ClientListInstalledStickerPacksResponse
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ClientListInstalledStickerPacksResponse interface.
|
* Check if a given object implements the ClientListInstalledStickerPacksResponse interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfClientListInstalledStickerPacksResponse(value: object): value is ClientListInstalledStickerPacksResponse {
|
export function instanceOfClientListInstalledStickerPacksResponse(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ClientListInstalledStickerPacksResponse {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientListInstalledStickerPacksResponseFromJSON(json: any): ClientListInstalledStickerPacksResponse {
|
export function ClientListInstalledStickerPacksResponseFromJSON(
|
||||||
return ClientListInstalledStickerPacksResponseFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ClientListInstalledStickerPacksResponse {
|
||||||
|
return ClientListInstalledStickerPacksResponseFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientListInstalledStickerPacksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientListInstalledStickerPacksResponse {
|
export function ClientListInstalledStickerPacksResponseFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ClientListInstalledStickerPacksResponse {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'author': json['author'] == null ? undefined : json['author'],
|
}
|
||||||
'installed': json['installed'] == null ? undefined : json['installed'],
|
return {
|
||||||
'packId': json['pack_id'] == null ? undefined : json['pack_id'],
|
author: json["author"] == null ? undefined : json["author"],
|
||||||
'title': json['title'] == null ? undefined : json['title'],
|
installed: json["installed"] == null ? undefined : json["installed"],
|
||||||
'url': json['url'] == null ? undefined : json['url'],
|
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 {
|
export function ClientListInstalledStickerPacksResponseToJSON(
|
||||||
if (value == null) {
|
value?: ClientListInstalledStickerPacksResponse | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'author': value['author'],
|
return {
|
||||||
'installed': value['installed'],
|
author: value["author"],
|
||||||
'pack_id': value['packId'],
|
installed: value["installed"],
|
||||||
'title': value['title'],
|
pack_id: value["packId"],
|
||||||
'url': value['url'],
|
title: value["title"],
|
||||||
};
|
url: value["url"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,64 +5,71 @@
|
||||||
* This is the Signal Cli REST API documentation.
|
* This is the Signal Cli REST API documentation.
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0
|
* The version of the OpenAPI document: 1.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from "../runtime.js";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @interface ClientSetUsernameResponse
|
* @interface ClientSetUsernameResponse
|
||||||
*/
|
*/
|
||||||
export interface ClientSetUsernameResponse {
|
export interface ClientSetUsernameResponse {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientSetUsernameResponse
|
* @memberof ClientSetUsernameResponse
|
||||||
*/
|
*/
|
||||||
username?: string;
|
username?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ClientSetUsernameResponse
|
* @memberof ClientSetUsernameResponse
|
||||||
*/
|
*/
|
||||||
usernameLink?: string;
|
usernameLink?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the ClientSetUsernameResponse interface.
|
* Check if a given object implements the ClientSetUsernameResponse interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfClientSetUsernameResponse(value: object): value is ClientSetUsernameResponse {
|
export function instanceOfClientSetUsernameResponse(
|
||||||
return true;
|
value: object,
|
||||||
|
): value is ClientSetUsernameResponse {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientSetUsernameResponseFromJSON(json: any): ClientSetUsernameResponse {
|
export function ClientSetUsernameResponseFromJSON(
|
||||||
return ClientSetUsernameResponseFromJSONTyped(json, false);
|
json: any,
|
||||||
|
): ClientSetUsernameResponse {
|
||||||
|
return ClientSetUsernameResponseFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientSetUsernameResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientSetUsernameResponse {
|
export function ClientSetUsernameResponseFromJSONTyped(
|
||||||
if (json == null) {
|
json: any,
|
||||||
return json;
|
ignoreDiscriminator: boolean,
|
||||||
}
|
): ClientSetUsernameResponse {
|
||||||
return {
|
if (json == null) {
|
||||||
|
return json;
|
||||||
'username': json['username'] == null ? undefined : json['username'],
|
}
|
||||||
'usernameLink': json['username_link'] == null ? undefined : json['username_link'],
|
return {
|
||||||
};
|
username: json["username"] == null ? undefined : json["username"],
|
||||||
|
usernameLink:
|
||||||
|
json["username_link"] == null ? undefined : json["username_link"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientSetUsernameResponseToJSON(value?: ClientSetUsernameResponse | null): any {
|
export function ClientSetUsernameResponseToJSON(
|
||||||
if (value == null) {
|
value?: ClientSetUsernameResponse | null,
|
||||||
return value;
|
): any {
|
||||||
}
|
if (value == null) {
|
||||||
return {
|
return value;
|
||||||
|
}
|
||||||
'username': value['username'],
|
return {
|
||||||
'username_link': value['usernameLink'],
|
username: value["username"],
|
||||||
};
|
username_link: value["usernameLink"],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,37 +1,37 @@
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
export * from './ApiAddDeviceRequest';
|
export * from "./ApiAddDeviceRequest.js";
|
||||||
export * from './ApiAddStickerPackRequest';
|
export * from "./ApiAddStickerPackRequest.js";
|
||||||
export * from './ApiChangeGroupAdminsRequest';
|
export * from "./ApiChangeGroupAdminsRequest.js";
|
||||||
export * from './ApiChangeGroupMembersRequest';
|
export * from "./ApiChangeGroupMembersRequest.js";
|
||||||
export * from './ApiConfiguration';
|
export * from "./ApiConfiguration.js";
|
||||||
export * from './ApiCreateGroupRequest';
|
export * from "./ApiCreateGroupRequest.js";
|
||||||
export * from './ApiCreateGroupResponse';
|
export * from "./ApiCreateGroupResponse.js";
|
||||||
export * from './ApiError';
|
export * from "./ApiError.js";
|
||||||
export * from './ApiGroupPermissions';
|
export * from "./ApiGroupPermissions.js";
|
||||||
export * from './ApiLoggingConfiguration';
|
export * from "./ApiLoggingConfiguration.js";
|
||||||
export * from './ApiRateLimitChallengeRequest';
|
export * from "./ApiRateLimitChallengeRequest.js";
|
||||||
export * from './ApiReaction';
|
export * from "./ApiReaction.js";
|
||||||
export * from './ApiReceipt';
|
export * from "./ApiReceipt.js";
|
||||||
export * from './ApiRegisterNumberRequest';
|
export * from "./ApiRegisterNumberRequest.js";
|
||||||
export * from './ApiSearchResponse';
|
export * from "./ApiSearchResponse.js";
|
||||||
export * from './ApiSendMessageError';
|
export * from "./ApiSendMessageError.js";
|
||||||
export * from './ApiSendMessageResponse';
|
export * from "./ApiSendMessageResponse.js";
|
||||||
export * from './ApiSendMessageV1';
|
export * from "./ApiSendMessageV1.js";
|
||||||
export * from './ApiSendMessageV2';
|
export * from "./ApiSendMessageV2.js";
|
||||||
export * from './ApiSetUsernameRequest';
|
export * from "./ApiSetUsernameRequest.js";
|
||||||
export * from './ApiTrustIdentityRequest';
|
export * from "./ApiTrustIdentityRequest.js";
|
||||||
export * from './ApiTrustModeRequest';
|
export * from "./ApiTrustModeRequest.js";
|
||||||
export * from './ApiTrustModeResponse';
|
export * from "./ApiTrustModeResponse.js";
|
||||||
export * from './ApiTypingIndicatorRequest';
|
export * from "./ApiTypingIndicatorRequest.js";
|
||||||
export * from './ApiUnregisterNumberRequest';
|
export * from "./ApiUnregisterNumberRequest.js";
|
||||||
export * from './ApiUpdateAccountSettingsRequest';
|
export * from "./ApiUpdateAccountSettingsRequest.js";
|
||||||
export * from './ApiUpdateContactRequest';
|
export * from "./ApiUpdateContactRequest.js";
|
||||||
export * from './ApiUpdateGroupRequest';
|
export * from "./ApiUpdateGroupRequest.js";
|
||||||
export * from './ApiUpdateProfileRequest';
|
export * from "./ApiUpdateProfileRequest.js";
|
||||||
export * from './ApiVerifyNumberSettings';
|
export * from "./ApiVerifyNumberSettings.js";
|
||||||
export * from './ClientAbout';
|
export * from "./ClientAbout.js";
|
||||||
export * from './ClientGroupEntry';
|
export * from "./ClientGroupEntry.js";
|
||||||
export * from './ClientIdentityEntry';
|
export * from "./ClientIdentityEntry.js";
|
||||||
export * from './ClientListInstalledStickerPacksResponse';
|
export * from "./ClientListInstalledStickerPacksResponse.js";
|
||||||
export * from './ClientSetUsernameResponse';
|
export * from "./ClientSetUsernameResponse.js";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@link-stack/signal-api",
|
"name": "@link-stack/signal-api",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "build/main/index.js",
|
"type": "module",
|
||||||
|
"main": "build/index.js",
|
||||||
|
"exports": {
|
||||||
|
".": "./build/index.js",
|
||||||
|
"./lib/*": "./build/lib/*.js"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"update-api": "openapi-generator-cli generate -i 'https://bbernhard.github.io/signal-cli-rest-api/src/docs/swagger.json' -g typescript-fetch -o . --skip-validate-spec"
|
"update-api": "openapi-generator-cli generate -i 'https://bbernhard.github.io/signal-cli-rest-api/src/docs/swagger.json' -g typescript-fetch -o . --skip-validate-spec"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"extends": "@link-stack/typescript-config/tsconfig.json",
|
"extends": "@link-stack/typescript-config/tsconfig.node.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["esnext", "dom"],
|
"lib": ["esnext", "dom"],
|
||||||
"outDir": "./build"
|
"outDir": "./build"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue