Skip to content

Commit dd1dd6a

Browse files
authored
Add support for trainings.list endpoint (#51)
1 parent 0788be5 commit dd1dd6a

File tree

4 files changed

+209
-138
lines changed

4 files changed

+209
-138
lines changed

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ declare module 'replicate' {
130130
): Promise<Training>;
131131
get(training_id: string): Promise<Training>;
132132
cancel(training_id: string): Promise<Training>;
133+
list(): Promise<Page<Training>>;
133134
};
134135
}
135136
}

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class Replicate {
6161
create: trainings.create.bind(this),
6262
get: trainings.get.bind(this),
6363
cancel: trainings.cancel.bind(this),
64+
list: trainings.list.bind(this),
6465
};
6566
}
6667

0 commit comments

Comments
 (0)