sendingnetwork-bot-sdk
Version:
TypeScript/JavaScript SDK for SDN bots
75 lines (74 loc) • 1.92 kB
TypeScript
/**
* This is the response format
* @category Application services
*/
export interface IApplicationServiceProtocol {
user_fields: string[];
location_fields: string[];
icon: string;
field_types: {
[field: string]: IFieldType;
};
instances: {
[name: string]: IProtocolInstance;
};
}
interface IFieldType {
regexp: string;
placeholder: string;
}
interface IProtocolInstance {
desc: string;
icon: string;
fields: {
[field: string]: string;
};
network_id: string;
}
/**
* This is the response format for an MSC3983 `/keys/claim` request.
* @deprecated This can be removed at any time without notice as it is unstable functionality.
* @category Application services
*/
export interface MSC3983KeyClaimResponse {
[userId: string]: {
[deviceId: string]: {
[keyId: string]: {
key: string;
signatures: {
[userId: string]: {
[keyId: string]: string;
};
};
};
};
};
}
/**
* This is the response format for an MSC3984 `/keys/query` request.
* @deprecated This can be removed at any time without notice as it is unstable functionality.
* @category Application services
*/
export interface MSC3984KeyQueryResponse {
device_keys: {
[userId: string]: {
[deviceId: string]: {
algorithms: string[];
device_id: string;
user_id: string;
keys: {
[keyId: string]: string;
};
signatures: {
[userId: string]: {
[keyId: string]: string;
};
};
unsigned?: {
[key: string]: any;
};
};
};
};
}
export {};