|
@@ -339,6 +339,12 @@ export interface AllJobStatusResponseDto {
|
|
|
* @memberof AllJobStatusResponseDto
|
|
|
*/
|
|
|
'search-queue': JobStatusDto;
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {JobStatusDto}
|
|
|
+ * @memberof AllJobStatusResponseDto
|
|
|
+ */
|
|
|
+ 'recognize-faces-queue': JobStatusDto;
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
@@ -566,6 +572,12 @@ export interface AssetResponseDto {
|
|
|
* @memberof AssetResponseDto
|
|
|
*/
|
|
|
'tags'?: Array<TagResponseDto>;
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {Array<PersonResponseDto>}
|
|
|
+ * @memberof AssetResponseDto
|
|
|
+ */
|
|
|
+ 'people'?: Array<PersonResponseDto>;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1329,6 +1341,7 @@ export const JobName = {
|
|
|
MetadataExtractionQueue: 'metadata-extraction-queue',
|
|
|
VideoConversionQueue: 'video-conversion-queue',
|
|
|
ObjectTaggingQueue: 'object-tagging-queue',
|
|
|
+ RecognizeFacesQueue: 'recognize-faces-queue',
|
|
|
ClipEncodingQueue: 'clip-encoding-queue',
|
|
|
BackgroundTaskQueue: 'background-task-queue',
|
|
|
StorageTemplateMigrationQueue: 'storage-template-migration-queue',
|
|
@@ -1546,6 +1559,44 @@ export interface OAuthConfigResponseDto {
|
|
|
*/
|
|
|
'autoLaunch'?: boolean;
|
|
|
}
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * @export
|
|
|
+ * @interface PersonResponseDto
|
|
|
+ */
|
|
|
+export interface PersonResponseDto {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {string}
|
|
|
+ * @memberof PersonResponseDto
|
|
|
+ */
|
|
|
+ 'id': string;
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {string}
|
|
|
+ * @memberof PersonResponseDto
|
|
|
+ */
|
|
|
+ 'name': string;
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {string}
|
|
|
+ * @memberof PersonResponseDto
|
|
|
+ */
|
|
|
+ 'thumbnailPath': string;
|
|
|
+}
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * @export
|
|
|
+ * @interface PersonUpdateDto
|
|
|
+ */
|
|
|
+export interface PersonUpdateDto {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {string}
|
|
|
+ * @memberof PersonUpdateDto
|
|
|
+ */
|
|
|
+ 'name': string;
|
|
|
+}
|
|
|
/**
|
|
|
*
|
|
|
* @export
|
|
@@ -7460,6 +7511,406 @@ export class PartnerApi extends BaseAPI {
|
|
|
}
|
|
|
|
|
|
|
|
|
+/**
|
|
|
+ * PersonApi - axios parameter creator
|
|
|
+ * @export
|
|
|
+ */
|
|
|
+export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
|
+ return {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getAllPeople: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ const localVarPath = `/person`;
|
|
|
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
+ let baseOptions;
|
|
|
+ if (configuration) {
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
+ }
|
|
|
+
|
|
|
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
+
|
|
|
+ // authentication cookie required
|
|
|
+
|
|
|
+ // authentication api_key required
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
+
|
|
|
+ // authentication bearer required
|
|
|
+ // http bearer authentication required
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
+
|
|
|
+ return {
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
+ options: localVarRequestOptions,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
+ assertParamExists('getPerson', 'id', id)
|
|
|
+ const localVarPath = `/person/{id}`
|
|
|
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
|
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
+ let baseOptions;
|
|
|
+ if (configuration) {
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
+ }
|
|
|
+
|
|
|
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
+
|
|
|
+ // authentication cookie required
|
|
|
+
|
|
|
+ // authentication api_key required
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
+
|
|
|
+ // authentication bearer required
|
|
|
+ // http bearer authentication required
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
+
|
|
|
+ return {
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
+ options: localVarRequestOptions,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
+ assertParamExists('getPersonAssets', 'id', id)
|
|
|
+ const localVarPath = `/person/{id}/assets`
|
|
|
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
|
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
+ let baseOptions;
|
|
|
+ if (configuration) {
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
+ }
|
|
|
+
|
|
|
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
+
|
|
|
+ // authentication cookie required
|
|
|
+
|
|
|
+ // authentication api_key required
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
+
|
|
|
+ // authentication bearer required
|
|
|
+ // http bearer authentication required
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
+
|
|
|
+ return {
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
+ options: localVarRequestOptions,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
+ assertParamExists('getPersonThumbnail', 'id', id)
|
|
|
+ const localVarPath = `/person/{id}/thumbnail`
|
|
|
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
|
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
+ let baseOptions;
|
|
|
+ if (configuration) {
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
+ }
|
|
|
+
|
|
|
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
+
|
|
|
+ // authentication cookie required
|
|
|
+
|
|
|
+ // authentication api_key required
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
+
|
|
|
+ // authentication bearer required
|
|
|
+ // http bearer authentication required
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
+
|
|
|
+ return {
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
+ options: localVarRequestOptions,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {PersonUpdateDto} personUpdateDto
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
+ assertParamExists('updatePerson', 'id', id)
|
|
|
+ // verify required parameter 'personUpdateDto' is not null or undefined
|
|
|
+ assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
|
|
|
+ const localVarPath = `/person/{id}`
|
|
|
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
|
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
+ let baseOptions;
|
|
|
+ if (configuration) {
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
+ }
|
|
|
+
|
|
|
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
+
|
|
|
+ // authentication cookie required
|
|
|
+
|
|
|
+ // authentication api_key required
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
+
|
|
|
+ // authentication bearer required
|
|
|
+ // http bearer authentication required
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
|
+
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
+ localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
|
|
|
+
|
|
|
+ return {
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
+ options: localVarRequestOptions,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * PersonApi - functional programming interface
|
|
|
+ * @export
|
|
|
+ */
|
|
|
+export const PersonApiFp = function(configuration?: Configuration) {
|
|
|
+ const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
|
|
|
+ return {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async getAllPeople(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(options);
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {PersonUpdateDto} personUpdateDto
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
+ },
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * PersonApi - factory interface
|
|
|
+ * @export
|
|
|
+ */
|
|
|
+export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
|
+ const localVarFp = PersonApiFp(configuration)
|
|
|
+ return {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getAllPeople(options?: any): AxiosPromise<Array<PersonResponseDto>> {
|
|
|
+ return localVarFp.getAllPeople(options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getPerson(id: string, options?: any): AxiosPromise<PersonResponseDto> {
|
|
|
+ return localVarFp.getPerson(id, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getPersonAssets(id: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
|
|
|
+ return localVarFp.getPersonAssets(id, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getPersonThumbnail(id: string, options?: any): AxiosPromise<File> {
|
|
|
+ return localVarFp.getPersonThumbnail(id, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {PersonUpdateDto} personUpdateDto
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: any): AxiosPromise<PersonResponseDto> {
|
|
|
+ return localVarFp.updatePerson(id, personUpdateDto, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * PersonApi - object-oriented interface
|
|
|
+ * @export
|
|
|
+ * @class PersonApi
|
|
|
+ * @extends {BaseAPI}
|
|
|
+ */
|
|
|
+export class PersonApi extends BaseAPI {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof PersonApi
|
|
|
+ */
|
|
|
+ public getAllPeople(options?: AxiosRequestConfig) {
|
|
|
+ return PersonApiFp(this.configuration).getAllPeople(options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof PersonApi
|
|
|
+ */
|
|
|
+ public getPerson(id: string, options?: AxiosRequestConfig) {
|
|
|
+ return PersonApiFp(this.configuration).getPerson(id, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof PersonApi
|
|
|
+ */
|
|
|
+ public getPersonAssets(id: string, options?: AxiosRequestConfig) {
|
|
|
+ return PersonApiFp(this.configuration).getPersonAssets(id, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof PersonApi
|
|
|
+ */
|
|
|
+ public getPersonThumbnail(id: string, options?: AxiosRequestConfig) {
|
|
|
+ return PersonApiFp(this.configuration).getPersonThumbnail(id, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {PersonUpdateDto} personUpdateDto
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof PersonApi
|
|
|
+ */
|
|
|
+ public updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig) {
|
|
|
+ return PersonApiFp(this.configuration).updatePerson(id, personUpdateDto, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* SearchApi - axios parameter creator
|
|
|
* @export
|