Skip to content

Commit

Permalink
refactor(engine): Move registry management endpoints into api service…
Browse files Browse the repository at this point in the history
… + restructure registry as executor service (#590)
  • Loading branch information
daryllimyt committed Dec 19, 2024
1 parent e711852 commit 69f2dd0
Show file tree
Hide file tree
Showing 4 changed files with 2,641 additions and 2,533 deletions.
170 changes: 107 additions & 63 deletions frontend/src/client/services.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1263,43 +1263,62 @@ export const registryRepositoriesSyncExecutorFromRegistryRepository = (data: Reg
}); };

/**
* List Registry Repositories
* List all registry repositories.
* @returns RegistryRepositoryReadMinimal Successful Response
* Update Org Member
* @param data The data for the request.
* @param data.userId
* @param data.requestBody
* @returns OrgMemberRead Successful Response
* @throws ApiError
*/
export const registryRepositoriesListRegistryRepositories = (): CancelablePromise<RegistryRepositoriesListRegistryRepositoriesResponse> => { return __request(OpenAPI, {
export const organizationUpdateOrgMember = (data: OrganizationUpdateOrgMemberData): CancelablePromise<OrganizationUpdateOrgMemberResponse> => { return __request(OpenAPI, {
method: 'PATCH',
url: '/organization/members/{user_id}',
path: {
user_id: data.userId
},
body: data.requestBody,
mediaType: 'application/json',
errors: {
422: 'Validation Error'
}
}); };

/**
* List Sessions
* @returns SessionRead Successful Response
* @throws ApiError
*/
export const organizationListSessions = (): CancelablePromise<OrganizationListSessionsResponse> => { return __request(OpenAPI, {
method: 'GET',
url: '/registry/repos'
url: '/organization/sessions'
}); };

/**
* Create Registry Repository
* Create a new registry repository.
* Delete Session
* @param data The data for the request.
* @param data.requestBody
* @returns RegistryRepositoryRead Successful Response
* @param data.sessionId
* @returns void Successful Response
* @throws ApiError
*/
export const registryRepositoriesCreateRegistryRepository = (data: RegistryRepositoriesCreateRegistryRepositoryData): CancelablePromise<RegistryRepositoriesCreateRegistryRepositoryResponse> => { return __request(OpenAPI, {
method: 'POST',
url: '/registry/repos',
body: data.requestBody,
mediaType: 'application/json',
export const organizationDeleteSession = (data: OrganizationDeleteSessionData): CancelablePromise<OrganizationDeleteSessionResponse> => { return __request(OpenAPI, {
method: 'DELETE',
url: '/organization/sessions/{session_id}',
path: {
session_id: data.sessionId
},
errors: {
422: 'Validation Error'
}
}); };

/**
* Get Registry Repository
* Get a specific registry repository by origin.
* List Functions
* @param data The data for the request.
* @param data.repositoryId
* @returns RegistryRepositoryRead Successful Response
* @throws ApiError
*/
export const registryRepositoriesGetRegistryRepository = (data: RegistryRepositoriesGetRegistryRepositoryData): CancelablePromise<RegistryRepositoriesGetRegistryRepositoryResponse> => { return __request(OpenAPI, {
export const editorListFunctions = (data: EditorListFunctionsData): CancelablePromise<EditorListFunctionsResponse> => { return __request(OpenAPI, {
method: 'GET',
url: '/registry/repos/{repository_id}',
path: {
Expand All @@ -1311,8 +1330,7 @@ export const registryRepositoriesGetRegistryRepository = (data: RegistryReposito
}); };

/**
* Update Registry Repository
* Update an existing registry repository.
* List Actions
* @param data The data for the request.
* @param data.repositoryId
* @param data.requestBody
Expand All @@ -1333,14 +1351,23 @@ export const registryRepositoriesUpdateRegistryRepository = (data: RegistryRepos
}); };

/**
* Delete Registry Repository
* Delete a registry repository.
* List Org Members
* @returns OrgMemberRead Successful Response
* @throws ApiError
*/
export const organizationListOrgMembers = (): CancelablePromise<OrganizationListOrgMembersResponse> => { return __request(OpenAPI, {
method: 'GET',
url: '/organization/members'
}); };

/**
* Delete Org Member
* @param data The data for the request.
* @param data.repositoryId
* @returns void Successful Response
* @throws ApiError
*/
export const registryRepositoriesDeleteRegistryRepository = (data: RegistryRepositoriesDeleteRegistryRepositoryData): CancelablePromise<RegistryRepositoriesDeleteRegistryRepositoryResponse> => { return __request(OpenAPI, {
export const organizationDeleteOrgMember = (data: OrganizationDeleteOrgMemberData): CancelablePromise<OrganizationDeleteOrgMemberResponse> => { return __request(OpenAPI, {
method: 'DELETE',
url: '/registry/repos/{repository_id}',
path: {
Expand All @@ -1352,88 +1379,105 @@ export const registryRepositoriesDeleteRegistryRepository = (data: RegistryRepos
}); };

/**
* List Registry Actions
* List all actions in a registry.
* @returns RegistryActionRead Successful Response
* Update Org Member
* @param data The data for the request.
* @param data.userId
* @param data.requestBody
* @returns OrgMemberRead Successful Response
* @throws ApiError
*/
export const organizationUpdateOrgMember = (data: OrganizationUpdateOrgMemberData): CancelablePromise<OrganizationUpdateOrgMemberResponse> => { return __request(OpenAPI, {
method: 'PATCH',
url: '/organization/members/{user_id}',
path: {
user_id: data.userId
},
body: data.requestBody,
mediaType: 'application/json',
errors: {
422: 'Validation Error'
}
}); };

/**
* List Sessions
* @returns SessionRead Successful Response
* @throws ApiError
*/
export const registryActionsListRegistryActions = (): CancelablePromise<RegistryActionsListRegistryActionsResponse> => { return __request(OpenAPI, {
export const organizationListSessions = (): CancelablePromise<OrganizationListSessionsResponse> => { return __request(OpenAPI, {
method: 'GET',
url: '/registry/actions'
url: '/organization/sessions'
}); };

/**
* Create Registry Action
* Create a new registry action.
* Delete Session
* @param data The data for the request.
* @param data.requestBody
* @returns RegistryActionRead Successful Response
* @param data.sessionId
* @returns void Successful Response
* @throws ApiError
*/
export const registryActionsCreateRegistryAction = (data: RegistryActionsCreateRegistryActionData): CancelablePromise<RegistryActionsCreateRegistryActionResponse> => { return __request(OpenAPI, {
method: 'POST',
url: '/registry/actions',
body: data.requestBody,
mediaType: 'application/json',
export const organizationDeleteSession = (data: OrganizationDeleteSessionData): CancelablePromise<OrganizationDeleteSessionResponse> => { return __request(OpenAPI, {
method: 'DELETE',
url: '/organization/sessions/{session_id}',
path: {
session_id: data.sessionId
},
errors: {
422: 'Validation Error'
}
}); };

/**
* Get Registry Action
* Get a specific registry action.
* List Functions
* @param data The data for the request.
* @param data.actionName
* @returns RegistryActionRead Successful Response
* @param data.workspaceId
* @returns EditorFunctionRead Successful Response
* @throws ApiError
*/
export const registryActionsGetRegistryAction = (data: RegistryActionsGetRegistryActionData): CancelablePromise<RegistryActionsGetRegistryActionResponse> => { return __request(OpenAPI, {
export const editorListFunctions = (data: EditorListFunctionsData): CancelablePromise<EditorListFunctionsResponse> => { return __request(OpenAPI, {
method: 'GET',
url: '/registry/actions/{action_name}',
path: {
action_name: data.actionName
url: '/editor/functions',
query: {
workspace_id: data.workspaceId
},
errors: {
422: 'Validation Error'
}
}); };

/**
* Update Registry Action
* Update a custom registry action.
* List Actions
* @param data The data for the request.
* @param data.actionName
* @param data.requestBody
* @returns void Successful Response
* @param data.workflowId
* @param data.workspaceId
* @returns EditorActionRead Successful Response
* @throws ApiError
*/
export const registryActionsUpdateRegistryAction = (data: RegistryActionsUpdateRegistryActionData): CancelablePromise<RegistryActionsUpdateRegistryActionResponse> => { return __request(OpenAPI, {
method: 'PATCH',
url: '/registry/actions/{action_name}',
path: {
action_name: data.actionName
export const editorListActions = (data: EditorListActionsData): CancelablePromise<EditorListActionsResponse> => { return __request(OpenAPI, {
method: 'GET',
url: '/editor/actions',
query: {
workflow_id: data.workflowId,
workspace_id: data.workspaceId
},
body: data.requestBody,
mediaType: 'application/json',
errors: {
422: 'Validation Error'
}
}); };

/**
* Delete Registry Action
* Delete a template action.
* Sync Registry Repository
* Load actions from a specific registry repository.
* @param data The data for the request.
* @param data.actionName
* @param data.repositoryId
* @returns void Successful Response
* @throws ApiError
*/
export const registryActionsDeleteRegistryAction = (data: RegistryActionsDeleteRegistryActionData): CancelablePromise<RegistryActionsDeleteRegistryActionResponse> => { return __request(OpenAPI, {
method: 'DELETE',
url: '/registry/actions/{action_name}',
export const registryRepositoriesSyncRegistryRepository = (data: RegistryRepositoriesSyncRegistryRepositoryData): CancelablePromise<RegistryRepositoriesSyncRegistryRepositoryResponse> => { return __request(OpenAPI, {
method: 'POST',
url: '/registry/repos/{repository_id}/sync',
path: {
action_name: data.actionName
repository_id: data.repositoryId
},
errors: {
422: 'Validation Error'
Expand Down
Loading

0 comments on commit 69f2dd0

Please sign in to comment.