interfaces/ts/requests/image.ts

95 lines
2.2 KiB
TypeScript
Raw Permalink Normal View History

2024-02-07 11:29:23 +00:00
import * as plugins from '../plugins.js';
import * as userInterfaces from '../data/user.js';
2024-02-07 11:29:23 +00:00
2024-03-06 03:15:32 +00:00
import type { IImage } from '../data/index.js';
export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequest_GetAllImages
> {
method: 'getAllImages';
request: {
identity: userInterfaces.IIdentity;
2024-03-06 03:15:32 +00:00
};
response: {
images: IImage[];
};
2024-05-27 16:19:45 +00:00
}
2024-06-09 22:48:44 +00:00
/**
* get all kinds of image metadata
*/
2024-05-27 16:19:45 +00:00
export interface IRequest_GetImageMetadata extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequest_GetImageMetadata
> {
method: 'getImageMetadata';
request: {
identity: userInterfaces.IIdentity;
2024-05-27 16:19:45 +00:00
imageId: string;
};
response: {
image: IImage;
};
2024-03-06 03:15:32 +00:00
}
export interface IRequest_CreateImage extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequest_CreateImage
> {
method: 'createImage';
request: {
identity: userInterfaces.IIdentity;
2024-03-06 03:15:32 +00:00
name: string;
description: string;
};
response: {
image: IImage;
};
}
2024-05-31 19:10:45 +00:00
export interface IRequest_PushImageVersion extends plugins.typedrequestInterfaces.implementsTR<
2024-02-07 11:29:23 +00:00
plugins.typedrequestInterfaces.ITypedRequest,
2024-05-31 19:10:45 +00:00
IRequest_PushImageVersion
2024-02-07 11:29:23 +00:00
> {
2024-05-31 19:27:43 +00:00
method: 'pushImageVersion';
2024-02-07 11:29:23 +00:00
request: {
identity: userInterfaces.IIdentity;
2024-06-01 10:06:19 +00:00
imageId: string;
versionString: string;
imageStream: plugins.typedrequestInterfaces.IVirtualStream;
2024-02-07 11:29:23 +00:00
};
response: {
2024-06-11 15:56:24 +00:00
allowed: boolean;
2024-02-07 11:29:23 +00:00
};
}
2024-05-31 19:10:45 +00:00
export interface IRequest_PullImageVersion extends plugins.typedrequestInterfaces.implementsTR<
2024-02-07 11:29:23 +00:00
plugins.typedrequestInterfaces.ITypedRequest,
2024-05-31 19:10:45 +00:00
IRequest_PullImageVersion
2024-02-07 11:29:23 +00:00
> {
2024-05-31 19:27:43 +00:00
method: 'pullImageVersion';
2024-02-07 11:29:23 +00:00
request: {
identity: userInterfaces.IIdentity;
2024-06-01 10:06:19 +00:00
imageId: string;
versionString: string;
2024-02-07 11:29:23 +00:00
};
response: {
2024-03-06 02:46:50 +00:00
imageStream: plugins.typedrequestInterfaces.IVirtualStream;
2024-02-07 11:29:23 +00:00
};
2024-05-31 19:10:45 +00:00
}
export interface IRequest_DeleteImage extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequest_DeleteImage
> {
method: 'deleteImage';
request: {
identity: userInterfaces.IIdentity;
2024-05-31 19:10:45 +00:00
imageId: string;
};
response: {
};
}