Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.prism.log
node_modules
yarn-error.log
codegen.log
Expand Down
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 6
configured_endpoints: 8
4 changes: 4 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

Types:

- <code><a href="./src/resources/projects/projects.ts">ProjectCreateResponse</a></code>
- <code><a href="./src/resources/projects/projects.ts">ProjectListResponse</a></code>

Methods:

- <code title="post /projects">client.projects.<a href="./src/resources/projects/projects.ts">create</a>({ ...params }) -> ProjectCreateResponse</code>
- <code title="get /projects">client.projects.<a href="./src/resources/projects/projects.ts">list</a>({ ...params }) -> ProjectListResponse</code>

## Commits
Expand All @@ -22,10 +24,12 @@ Methods:

Types:

- <code><a href="./src/resources/projects/inference-pipelines.ts">InferencePipelineCreateResponse</a></code>
- <code><a href="./src/resources/projects/inference-pipelines.ts">InferencePipelineListResponse</a></code>

Methods:

- <code title="post /projects/{id}/inference-pipelines">client.projects.inferencePipelines.<a href="./src/resources/projects/inference-pipelines.ts">create</a>(id, { ...params }) -> InferencePipelineCreateResponse</code>
- <code title="get /projects/{id}/inference-pipelines">client.projects.inferencePipelines.<a href="./src/resources/projects/inference-pipelines.ts">list</a>(id, { ...params }) -> InferencePipelineListResponse</code>

# Commits
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ export namespace Openlayer {
export import RequestOptions = Core.RequestOptions;

export import Projects = API.Projects;
export import ProjectCreateResponse = API.ProjectCreateResponse;
export import ProjectListResponse = API.ProjectListResponse;
export import ProjectCreateParams = API.ProjectCreateParams;
export import ProjectListParams = API.ProjectListParams;

export import Commits = API.Commits;
Expand Down
8 changes: 7 additions & 1 deletion src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

export { Commits } from './commits/commits';
export { InferencePipelines } from './inference-pipelines/inference-pipelines';
export { ProjectListResponse, ProjectListParams, Projects } from './projects/projects';
export {
ProjectCreateResponse,
ProjectListResponse,
ProjectCreateParams,
ProjectListParams,
Projects,
} from './projects/projects';
10 changes: 9 additions & 1 deletion src/resources/projects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

export { CommitListResponse, CommitListParams, Commits } from './commits';
export {
InferencePipelineCreateResponse,
InferencePipelineListResponse,
InferencePipelineCreateParams,
InferencePipelineListParams,
InferencePipelines,
} from './inference-pipelines';
export { ProjectListResponse, ProjectListParams, Projects } from './projects';
export {
ProjectCreateResponse,
ProjectListResponse,
ProjectCreateParams,
ProjectListParams,
Projects,
} from './projects';
120 changes: 120 additions & 0 deletions src/resources/projects/inference-pipelines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ import * as Core from '../../core';
import * as InferencePipelinesAPI from './inference-pipelines';

export class InferencePipelines extends APIResource {
/**
* Create an inference pipeline under a project.
*/
create(
id: string,
body: InferencePipelineCreateParams,
options?: Core.RequestOptions,
): Core.APIPromise<InferencePipelineCreateResponse> {
return this._client.post(`/projects/${id}/inference-pipelines`, { body, ...options });
}

/**
* List the inference pipelines in a project.
*/
Expand All @@ -27,6 +38,91 @@ export class InferencePipelines extends APIResource {
}
}

export interface InferencePipelineCreateResponse {
/**
* The inference pipeline id.
*/
id: string;

/**
* The creation date.
*/
dateCreated: string;

/**
* The last test evaluation date.
*/
dateLastEvaluated: string | null;

/**
* The last data sample received date.
*/
dateLastSampleReceived: string | null;

/**
* The next test evaluation date.
*/
dateOfNextEvaluation: string | null;

/**
* The last updated date.
*/
dateUpdated: string;

/**
* The inference pipeline description.
*/
description: string | null;

/**
* The number of tests failing.
*/
failingGoalCount: number;

links: InferencePipelineCreateResponse.Links;

/**
* The inference pipeline name.
*/
name: string;

/**
* The number of tests passing.
*/
passingGoalCount: number;

/**
* The project id.
*/
projectId: string;

/**
* The status of test evaluation for the inference pipeline.
*/
status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';

/**
* The status message of test evaluation for the inference pipeline.
*/
statusMessage: string | null;

/**
* The total number of tests.
*/
totalGoalCount: number;

/**
* The storage type.
*/
storageType?: 'local' | 's3' | 'gcs' | 'azure';
}

export namespace InferencePipelineCreateResponse {
export interface Links {
app: string;
}
}

export interface InferencePipelineListResponse {
_meta: InferencePipelineListResponse._Meta;

Expand Down Expand Up @@ -142,6 +238,28 @@ export namespace InferencePipelineListResponse {
}
}

export interface InferencePipelineCreateParams {
/**
* The inference pipeline description.
*/
description: string | null;

/**
* The inference pipeline name.
*/
name: string;

/**
* The reference dataset URI.
*/
referenceDatasetUri?: string | null;

/**
* The storage type.
*/
storageType?: 'local' | 's3' | 'gcs' | 'azure';
}

export interface InferencePipelineListParams {
/**
* Filter list of items by name.
Expand All @@ -160,6 +278,8 @@ export interface InferencePipelineListParams {
}

export namespace InferencePipelines {
export import InferencePipelineCreateResponse = InferencePipelinesAPI.InferencePipelineCreateResponse;
export import InferencePipelineListResponse = InferencePipelinesAPI.InferencePipelineListResponse;
export import InferencePipelineCreateParams = InferencePipelinesAPI.InferencePipelineCreateParams;
export import InferencePipelineListParams = InferencePipelinesAPI.InferencePipelineListParams;
}
Loading