Regenerate the governance REST API client

This commit is contained in:
2026-11-29 19:44:45 -06:00
parent 38ece960f9
commit 84dcebda55
23 changed files with 1522 additions and 2 deletions
+1042 -2
View File
File diff suppressed because it is too large Load Diff
+33
View File
@@ -0,0 +1,33 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
export interface EegSummary$Params {
}
export function eegSummary(http: HttpClient, rootUrl: string, params?: EegSummary$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: number;
}>> {
const rb = new RequestBuilder(rootUrl, eegSummary.PATH, 'get');
if (params) {
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: number;
}>;
})
);
}
eegSummary.PATH = '/tea/eegs/summary';
+42
View File
@@ -0,0 +1,42 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface Curve$Params {
domain: Domain;
name: string;
version: number;
feature?: string;
}
export function curve(http: HttpClient, rootUrl: string, params: Curve$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
[key: string]: any;
}>>> {
const rb = new RequestBuilder(rootUrl, curve.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
rb.query('feature', params.feature, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<Array<{
[key: string]: any;
}>>;
})
);
}
curve.PATH = '/models/{domain}/{name}/versions/{version}/curve';
+40
View File
@@ -0,0 +1,40 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface Lineage$Params {
domain: Domain;
name: string;
version: number;
}
export function lineage(http: HttpClient, rootUrl: string, params: Lineage$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: any;
}>> {
const rb = new RequestBuilder(rootUrl, lineage.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: any;
}>;
})
);
}
lineage.PATH = '/models/{domain}/{name}/versions/{version}/lineage';
+40
View File
@@ -0,0 +1,40 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface Retire$Params {
domain: Domain;
name: string;
version: number;
}
export function retire(http: HttpClient, rootUrl: string, params: Retire$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, retire.PATH, 'post');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: string;
}>;
})
);
}
retire.PATH = '/models/{domain}/{name}/versions/{version}/retire';
+38
View File
@@ -0,0 +1,38 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface TrainingInputs$Params {
domain: Domain;
name: string;
}
export function trainingInputs(http: HttpClient, rootUrl: string, params: TrainingInputs$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: any;
}>> {
const rb = new RequestBuilder(rootUrl, trainingInputs.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: any;
}>;
})
);
}
trainingInputs.PATH = '/models/{domain}/{name}/inputs';
@@ -0,0 +1,43 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { BodyUploadTrainingInputs } from '../../models/body-upload-training-inputs';
import { Domain } from '../../models/domain';
export interface UploadTrainingInputs$Params {
domain: Domain;
name: string;
set: string;
body: BodyUploadTrainingInputs
}
export function uploadTrainingInputs(http: HttpClient, rootUrl: string, params: UploadTrainingInputs$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: any;
}>> {
const rb = new RequestBuilder(rootUrl, uploadTrainingInputs.PATH, 'post');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('set', params.set, {});
rb.body(params.body, 'multipart/form-data');
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: any;
}>;
})
);
}
uploadTrainingInputs.PATH = '/models/{domain}/{name}/inputs/{set}/files';
+40
View File
@@ -0,0 +1,40 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface VersionChecks$Params {
domain: Domain;
name: string;
version: number;
}
export function versionChecks(http: HttpClient, rootUrl: string, params: VersionChecks$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: any;
}>> {
const rb = new RequestBuilder(rootUrl, versionChecks.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: any;
}>;
})
);
}
versionChecks.PATH = '/models/{domain}/{name}/versions/{version}/checks';
+32
View File
@@ -0,0 +1,32 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { PreviewStatus } from '../../models/preview-status';
export interface PreviewStatus$Params {
run_id: string;
}
export function previewStatus(http: HttpClient, rootUrl: string, params: PreviewStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<PreviewStatus>> {
const rb = new RequestBuilder(rootUrl, previewStatus.PATH, 'get');
if (params) {
rb.path('run_id', params.run_id, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<PreviewStatus>;
})
);
}
previewStatus.PATH = '/tea/preview/{run_id}';
+36
View File
@@ -0,0 +1,36 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { BodyStartPreview } from '../../models/body-start-preview';
export interface StartPreview$Params {
body: BodyStartPreview
}
export function startPreview(http: HttpClient, rootUrl: string, params: StartPreview$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, startPreview.PATH, 'post');
if (params) {
rb.body(params.body, 'multipart/form-data');
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: string;
}>;
})
);
}
startPreview.PATH = '/tea/preview';
+18
View File
@@ -45,10 +45,20 @@ export type { Score$Params as Score$Params } from './fn/models/score';
export { score as score } from './fn/models/score'; export { score as score } from './fn/models/score';
export type { Train$Params as Train$Params } from './fn/models/train'; export type { Train$Params as Train$Params } from './fn/models/train';
export { train as train } from './fn/models/train'; export { train as train } from './fn/models/train';
export type { TrainingInputs$Params as TrainingInputs$Params } from './fn/models/training-inputs';
export { trainingInputs as trainingInputs } from './fn/models/training-inputs';
export type { UploadTrainingInputs$Params as UploadTrainingInputs$Params } from './fn/models/upload-training-inputs';
export { uploadTrainingInputs as uploadTrainingInputs } from './fn/models/upload-training-inputs';
export type { TrainingConfig$Params as TrainingConfig$Params } from './fn/models/training-config'; export type { TrainingConfig$Params as TrainingConfig$Params } from './fn/models/training-config';
export { trainingConfig as trainingConfig } from './fn/models/training-config'; export { trainingConfig as trainingConfig } from './fn/models/training-config';
export type { Versions$Params as Versions$Params } from './fn/models/versions'; export type { Versions$Params as Versions$Params } from './fn/models/versions';
export { versions as versions } from './fn/models/versions'; export { versions as versions } from './fn/models/versions';
export type { VersionChecks$Params as VersionChecks$Params } from './fn/models/version-checks';
export { versionChecks as versionChecks } from './fn/models/version-checks';
export type { Curve$Params as Curve$Params } from './fn/models/curve';
export { curve as curve } from './fn/models/curve';
export type { Lineage$Params as Lineage$Params } from './fn/models/lineage';
export { lineage as lineage } from './fn/models/lineage';
export type { Promote$Params as Promote$Params } from './fn/models/promote'; export type { Promote$Params as Promote$Params } from './fn/models/promote';
export { promote as promote } from './fn/models/promote'; export { promote as promote } from './fn/models/promote';
export type { AddClinicalValidation$Params as AddClinicalValidation$Params } from './fn/models/add-clinical-validation'; export type { AddClinicalValidation$Params as AddClinicalValidation$Params } from './fn/models/add-clinical-validation';
@@ -57,6 +67,8 @@ export type { ReadReport$Json$Params as ReadReport$Json$Params } from './fn/mode
export { readReport$Json as readReport$Json } from './fn/models/read-report-json'; export { readReport$Json as readReport$Json } from './fn/models/read-report-json';
export type { ReadReport$Any$Params as ReadReport$Any$Params } from './fn/models/read-report-any'; export type { ReadReport$Any$Params as ReadReport$Any$Params } from './fn/models/read-report-any';
export { readReport$Any as readReport$Any } from './fn/models/read-report-any'; export { readReport$Any as readReport$Any } from './fn/models/read-report-any';
export type { Retire$Params as Retire$Params } from './fn/models/retire';
export { retire as retire } from './fn/models/retire';
export type { Conflicts$Params as Conflicts$Params } from './fn/review/conflicts'; export type { Conflicts$Params as Conflicts$Params } from './fn/review/conflicts';
export { conflicts as conflicts } from './fn/review/conflicts'; export { conflicts as conflicts } from './fn/review/conflicts';
export type { Correct$Params as Correct$Params } from './fn/review/correct'; export type { Correct$Params as Correct$Params } from './fn/review/correct';
@@ -79,8 +91,14 @@ export type { Studies$Params as Studies$Params } from './fn/eeg/studies';
export { studies as studies } from './fn/eeg/studies'; export { studies as studies } from './fn/eeg/studies';
export type { AnalyzeEegs$Params as AnalyzeEegs$Params } from './fn/eeg/analyze-eegs'; export type { AnalyzeEegs$Params as AnalyzeEegs$Params } from './fn/eeg/analyze-eegs';
export { analyzeEegs as analyzeEegs } from './fn/eeg/analyze-eegs'; export { analyzeEegs as analyzeEegs } from './fn/eeg/analyze-eegs';
export type { EegSummary$Params as EegSummary$Params } from './fn/eeg/eeg-summary';
export { eegSummary as eegSummary } from './fn/eeg/eeg-summary';
export type { Study$Params as Study$Params } from './fn/eeg/study'; export type { Study$Params as Study$Params } from './fn/eeg/study';
export { study as study } from './fn/eeg/study'; export { study as study } from './fn/eeg/study';
export type { StartPreview$Params as StartPreview$Params } from './fn/preview/start-preview';
export { startPreview as startPreview } from './fn/preview/start-preview';
export type { PreviewStatus$Params as PreviewStatus$Params } from './fn/preview/preview-status';
export { previewStatus as previewStatus } from './fn/preview/preview-status';
export type { PostBundle$Params as PostBundle$Params } from './fn/fhir/post-bundle'; export type { PostBundle$Params as PostBundle$Params } from './fn/fhir/post-bundle';
export { postBundle as postBundle } from './fn/fhir/post-bundle'; export { postBundle as postBundle } from './fn/fhir/post-bundle';
export type { SearchCondition$Params as SearchCondition$Params } from './fn/fhir/search-condition'; export type { SearchCondition$Params as SearchCondition$Params } from './fn/fhir/search-condition';
+9
View File
@@ -6,7 +6,9 @@ export type { Analyze } from './models/analyze';
export type { AnalyzeRequest } from './models/analyze-request'; export type { AnalyzeRequest } from './models/analyze-request';
export type { BodyAddClinicalValidation } from './models/body-add-clinical-validation'; export type { BodyAddClinicalValidation } from './models/body-add-clinical-validation';
export type { BodyImportModels } from './models/body-import-models'; export type { BodyImportModels } from './models/body-import-models';
export type { BodyStartPreview } from './models/body-start-preview';
export type { BodyUpload } from './models/body-upload'; export type { BodyUpload } from './models/body-upload';
export type { BodyUploadTrainingInputs } from './models/body-upload-training-inputs';
export type { Cancel } from './models/cancel'; export type { Cancel } from './models/cancel';
export type { Condition } from './models/condition'; export type { Condition } from './models/condition';
export type { Correction } from './models/correction'; export type { Correction } from './models/correction';
@@ -25,6 +27,11 @@ export type { Options } from './models/options';
export type { PersonDecision } from './models/person-decision'; export type { PersonDecision } from './models/person-decision';
export type { Pipeline } from './models/pipeline'; export type { Pipeline } from './models/pipeline';
export type { Position } from './models/position'; export type { Position } from './models/position';
export type { PreviewAdos2 } from './models/preview-ados-2';
export type { PreviewEeg } from './models/preview-eeg';
export type { PreviewMetric } from './models/preview-metric';
export type { PreviewResult } from './models/preview-result';
export type { PreviewStatus } from './models/preview-status';
export type { Progress } from './models/progress'; export type { Progress } from './models/progress';
export type { Read } from './models/read'; export type { Read } from './models/read';
export type { Reference } from './models/reference'; export type { Reference } from './models/reference';
@@ -35,6 +42,8 @@ export type { RunRequest } from './models/run-request';
export type { RunSummary } from './models/run-summary'; export type { RunSummary } from './models/run-summary';
export type { SavedPipeline } from './models/saved-pipeline'; export type { SavedPipeline } from './models/saved-pipeline';
export type { Scope } from './models/scope'; export type { Scope } from './models/scope';
export type { Score } from './models/score';
export type { Site } from './models/site';
export type { Source } from './models/source'; export type { Source } from './models/source';
export type { SourceRef } from './models/source-ref'; export type { SourceRef } from './models/source-ref';
export type { Step } from './models/step'; export type { Step } from './models/step';
+6
View File
@@ -4,8 +4,14 @@
import { Metric } from '../models/metric'; import { Metric } from '../models/metric';
export interface Analysis { export interface Analysis {
age_months: (number | null); age_months: (number | null);
checks: Array<{
[key: string]: any;
}>;
id: string; id: string;
level: (string | null); level: (string | null);
metrics: Array<Metric>; metrics: Array<Metric>;
regions: Array<{
[key: string]: any;
}>;
valid: (boolean | null); valid: (boolean | null);
} }
+9
View File
@@ -0,0 +1,9 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface BodyStartPreview {
ados2?: (Blob | null);
birth_date?: (string | null);
edf: Blob;
pipeline?: string;
}
@@ -0,0 +1,6 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface BodyUploadTrainingInputs {
files: Array<Blob>;
}
+13
View File
@@ -0,0 +1,13 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface PreviewAdos2 {
classification: (string | null);
css: (number | null);
evaluation_date: (string | null);
items: {
[key: string]: (number | null);
};
module: (string | null);
read: Array<string>;
}
+21
View File
@@ -0,0 +1,21 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { PreviewMetric } from '../models/preview-metric';
export interface PreviewEeg {
age_months: (number | null);
bad_channels: (number | null);
channels: (number | null);
checks: Array<{
[key: string]: any;
}>;
clean_fraction: (number | null);
duration_min: (number | null);
error: (string | null);
level: string;
line_noise_db: (number | null);
metrics: Array<PreviewMetric>;
recorded_on: (string | null);
sleep: (boolean | null);
valid: (boolean | null);
}
+17
View File
@@ -0,0 +1,17 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Score } from '../models/score';
import { Site } from '../models/site';
export interface PreviewMetric {
code: string;
electrodes: {
[key: string]: Site;
};
model: (string | null);
score: (Score | null);
value: (number | null);
zones: {
[key: string]: Site;
};
}
+10
View File
@@ -0,0 +1,10 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { PreviewAdos2 } from '../models/preview-ados-2';
import { PreviewEeg } from '../models/preview-eeg';
export interface PreviewResult {
ados2: (PreviewAdos2 | null);
eeg: PreviewEeg;
warnings: Array<string>;
}
+8
View File
@@ -0,0 +1,8 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { PreviewResult } from '../models/preview-result';
export interface PreviewStatus {
result: (PreviewResult | null);
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
}
+10
View File
@@ -0,0 +1,10 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Score {
median: (number | null);
outside: (number | null);
p5: (number | null);
p95: (number | null);
z: (number | null);
}
+8
View File
@@ -0,0 +1,8 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Score } from '../models/score';
export interface Site {
score: (Score | null);
value: (number | null);
}
+1
View File
@@ -11,5 +11,6 @@ export interface Version {
[key: string]: string; [key: string]: string;
}; };
reports: Array<string>; reports: Array<string>;
status: 'champion' | 'retired' | 'candidate';
version: number; version: number;
} }