@@ -4,6 +4,7 @@ export const endpoints = {
44 userEmail : ( userId : string ) : string => `/users/${ userId } /email-opt-in` ,
55 forgot : '/login/email/resetpassword' ,
66 version : '/version' ,
7+ serverInfo : '/info' ,
78 users : {
89 me : '/current-user' ,
910 get : ( id : TId ) : string => `/users/${ id } ` ,
@@ -37,6 +38,10 @@ export const endpoints = {
3738 my : `/secrets` ,
3839 get : ( secretId : TId ) : string => `/secrets/${ secretId } ` ,
3940 } ,
41+ repositories : {
42+ getAll : ( workspace : string ) => `/workspaces/${ workspace } /code_repositories` ,
43+ getByID : ( repositoryID : string ) => `/code_repositories/${ repositoryID } ` ,
44+ } ,
4045 StackComponents : {
4146 types : '/component-types' ,
4247 my : ( type : string , workspace : string ) : string =>
@@ -52,6 +57,10 @@ export const endpoints = {
5257 pipeline : {
5358 get : ( pipelineId : TId ) : string => `/runs?pipeline_id=${ pipelineId } ` ,
5459 } ,
60+ repository : {
61+ get : ( repositoryId : TId ) : string =>
62+ `/runs?code_repository_id=${ repositoryId } ` ,
63+ } ,
5564 stack : {
5665 get : ( stackId : TId ) : string => `/runs?stack_id=${ stackId } ` ,
5766 } ,
@@ -62,6 +71,15 @@ export const endpoints = {
6271 graphById : {
6372 get : ( runId : TId ) : string => `/runs/${ runId } /graph` ,
6473 } ,
74+ artifact : {
75+ get : ( exe_id : TId ) : string => `/artifacts/${ exe_id } ` ,
76+ } ,
77+ artifactVisualization : {
78+ get : ( id : TId ) : string => `/artifacts/${ id } /visualize` ,
79+ } ,
80+ step : {
81+ get : ( exe_id : TId ) : string => `/steps/${ exe_id } ` ,
82+ } ,
6583 all : ( workspace : string ) : string => `/workspaces/${ workspace } /runs` ,
6684 get : ( runId : TId ) : string => `/runs/${ runId } ` ,
6785 } ,
0 commit comments