diff --git a/frontend/src/client/services.gen.ts b/frontend/src/client/services.gen.ts index 491eedcca..b04c658e6 100644 --- a/frontend/src/client/services.gen.ts +++ b/frontend/src/client/services.gen.ts @@ -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 => { return __request(OpenAPI, { +export const organizationUpdateOrgMember = (data: OrganizationUpdateOrgMemberData): CancelablePromise => { 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 => { 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 => { return __request(OpenAPI, { - method: 'POST', - url: '/registry/repos', - body: data.requestBody, - mediaType: 'application/json', +export const organizationDeleteSession = (data: OrganizationDeleteSessionData): CancelablePromise => { 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 => { return __request(OpenAPI, { +export const editorListFunctions = (data: EditorListFunctionsData): CancelablePromise => { return __request(OpenAPI, { method: 'GET', url: '/registry/repos/{repository_id}', path: { @@ -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 @@ -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 => { 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 => { return __request(OpenAPI, { +export const organizationDeleteOrgMember = (data: OrganizationDeleteOrgMemberData): CancelablePromise => { return __request(OpenAPI, { method: 'DELETE', url: '/registry/repos/{repository_id}', path: { @@ -1352,47 +1379,66 @@ 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 => { 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 => { return __request(OpenAPI, { +export const organizationListSessions = (): CancelablePromise => { 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 => { return __request(OpenAPI, { - method: 'POST', - url: '/registry/actions', - body: data.requestBody, - mediaType: 'application/json', +export const organizationDeleteSession = (data: OrganizationDeleteSessionData): CancelablePromise => { 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 => { return __request(OpenAPI, { +export const editorListFunctions = (data: EditorListFunctionsData): CancelablePromise => { 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' @@ -1400,40 +1446,38 @@ export const registryActionsGetRegistryAction = (data: RegistryActionsGetRegistr }); }; /** - * 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 => { return __request(OpenAPI, { - method: 'PATCH', - url: '/registry/actions/{action_name}', - path: { - action_name: data.actionName +export const editorListActions = (data: EditorListActionsData): CancelablePromise => { 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 => { return __request(OpenAPI, { - method: 'DELETE', - url: '/registry/actions/{action_name}', +export const registryRepositoriesSyncRegistryRepository = (data: RegistryRepositoriesSyncRegistryRepositoryData): CancelablePromise => { return __request(OpenAPI, { + method: 'POST', + url: '/registry/repos/{repository_id}/sync', path: { - action_name: data.actionName + repository_id: data.repositoryId }, errors: { 422: 'Validation Error' diff --git a/frontend/src/client/types.gen.ts b/frontend/src/client/types.gen.ts index 94e4e6a0b..c70a6931b 100644 --- a/frontend/src/client/types.gen.ts +++ b/frontend/src/client/types.gen.ts @@ -3,183 +3,183 @@ /** * Access control levels for roles. */ -export type AccessLevel = 0 | 999; +export type AccessLevel = 0 | 999 export type ActionControlFlow = { - run_if?: string | null; - for_each?: string | Array<(string)> | null; - retry_policy?: ActionRetryPolicy; - /** - * Delay before starting the action in seconds. - */ - start_delay?: number; - join_strategy?: JoinStrategy; -}; + run_if?: string | null + for_each?: string | Array | null + retry_policy?: ActionRetryPolicy + /** + * Delay before starting the action in seconds. + */ + start_delay?: number + join_strategy?: JoinStrategy +} export type ActionCreate = { - workflow_id: string; - type: string; - title: string; -}; + workflow_id: string + type: string + title: string +} export type ActionRead = { - id: string; - type: string; - title: string; - description: string; - status: string; - inputs: { - [key: string]: unknown; - }; - key: string; - control_flow?: ActionControlFlow; -}; + id: string + type: string + title: string + description: string + status: string + inputs: { + [key: string]: unknown + } + key: string + control_flow?: ActionControlFlow +} export type ActionReadMinimal = { - id: string; - workflow_id: string; - type: string; - title: string; - description: string; - status: string; - key: string; -}; + id: string + workflow_id: string + type: string + title: string + description: string + status: string + key: string +} export type ActionRetryPolicy = { - /** - * Total number of execution attempts. 0 means unlimited, 1 means no retries. - */ - max_attempts?: number; - /** - * Timeout for the action in seconds. - */ - timeout?: number; -}; + /** + * Total number of execution attempts. 0 means unlimited, 1 means no retries. + */ + max_attempts?: number + /** + * Timeout for the action in seconds. + */ + timeout?: number +} export type ActionStatement = { - /** - * Unique reference for the task - */ - ref: string; - description?: string; - /** - * Action type. Equivalent to the UDF key. - */ - action: string; - /** - * Arguments for the action - */ - args?: { - [key: string]: unknown; - }; - /** - * Task dependencies - */ - depends_on?: Array<(string)>; - /** - * Condition to run the task - */ - run_if?: string | null; - /** - * Iterate over a list of items and run the task for each item. - */ - for_each?: string | Array<(string)> | null; - /** - * Retry policy for the action. - */ - retry_policy?: ActionRetryPolicy; - /** - * Delay before starting the action in seconds. - */ - start_delay?: number; - /** - * The strategy to use when joining on this task. By default, all branches must complete successfully before the join task can complete. - */ - join_strategy?: JoinStrategy; -}; + /** + * Unique reference for the task + */ + ref: string + description?: string + /** + * Action type. Equivalent to the UDF key. + */ + action: string + /** + * Arguments for the action + */ + args?: { + [key: string]: unknown + } + /** + * Task dependencies + */ + depends_on?: Array + /** + * Condition to run the task + */ + run_if?: string | null + /** + * Iterate over a list of items and run the task for each item. + */ + for_each?: string | Array | null + /** + * Retry policy for the action. + */ + retry_policy?: ActionRetryPolicy + /** + * Delay before starting the action in seconds. + */ + start_delay?: number + /** + * The strategy to use when joining on this task. By default, all branches must complete successfully before the join task can complete. + */ + join_strategy?: JoinStrategy +} export type ActionStep = { - /** - * The reference of the step - */ - ref: string; - action: string; - args: { - [key: string]: unknown; - }; -}; + /** + * The reference of the step + */ + ref: string + action: string + args: { + [key: string]: unknown + } +} export type ActionUpdate = { - title?: string | null; - description?: string | null; - status?: string | null; - inputs?: { - [key: string]: unknown; -} | null; - control_flow?: ActionControlFlow | null; -}; + title?: string | null + description?: string | null + status?: string | null + inputs?: { + [key: string]: unknown + } | null + control_flow?: ActionControlFlow | null +} export type Body_auth_reset_forgot_password = { - email: string; -}; + email: string +} export type Body_auth_reset_reset_password = { - token: string; - password: string; -}; + token: string + password: string +} export type Body_auth_sso_acs = { - saml_response: string; -}; + saml_response: string +} export type Body_auth_verify_request_token = { - email: string; -}; + email: string +} export type Body_auth_verify_verify = { - token: string; -}; + token: string +} export type Body_workflows_create_workflow = { - title?: string | null; - description?: string | null; - file?: (Blob | File) | null; -}; + title?: string | null + description?: string | null + file?: (Blob | File) | null +} export type CommitWorkflowResponse = { - workflow_id: string; - status: 'success' | 'failure'; - message: string; - errors?: Array | null; - metadata?: { - [key: string]: unknown; -} | null; -}; + workflow_id: string + status: "success" | "failure" + message: string + errors?: Array | null + metadata?: { + [key: string]: unknown + } | null +} -export type status = 'success' | 'failure'; +export type status = "success" | "failure" export type CreateWorkflowExecutionParams = { - workflow_id: string; - inputs?: JsonValue | null; -}; + workflow_id: string + inputs?: JsonValue | null +} export type CreateWorkflowExecutionResponse = { - message: string; - wf_id: string; - wf_exec_id: string; -}; + message: string + wf_id: string + wf_exec_id: string +} export type CreateWorkspaceMembershipParams = { - user_id: string; -}; + user_id: string +} export type CreateWorkspaceParams = { - name: string; - settings?: { - [key: string]: (string); -} | null; - owner_id?: string; -}; + name: string + settings?: { + [key: string]: string + } | null + owner_id?: string +} /** * This is the runtime configuration for the workflow. @@ -187,24 +187,24 @@ export type CreateWorkspaceParams = { * Activities don't need access to this. */ export type DSLConfig_Input = { - /** - * The type of scheduler to use. - */ - scheduler?: 'static' | 'dynamic'; - /** - * The workflow's target execution environment. This is used to isolate secrets across different environments.If not provided, the default environment (default) is used. - */ - environment?: string; - /** - * The maximum number of seconds to wait for the workflow to complete. - */ - timeout?: number; -}; + /** + * The type of scheduler to use. + */ + scheduler?: "static" | "dynamic" + /** + * The workflow's target execution environment. This is used to isolate secrets across different environments.If not provided, the default environment (default) is used. + */ + environment?: string + /** + * The maximum number of seconds to wait for the workflow to complete. + */ + timeout?: number +} /** * The type of scheduler to use. */ -export type scheduler = 'static' | 'dynamic'; +export type scheduler = "static" | "dynamic" /** * This is the runtime configuration for the workflow. @@ -212,59 +212,59 @@ export type scheduler = 'static' | 'dynamic'; * Activities don't need access to this. */ export type DSLConfig_Output = { - /** - * The workflow's target execution environment. This is used to isolate secrets across different environments.If not provided, the default environment (default) is used. - */ - environment?: string; - /** - * The maximum number of seconds to wait for the workflow to complete. - */ - timeout?: number; -}; + /** + * The workflow's target execution environment. This is used to isolate secrets across different environments.If not provided, the default environment (default) is used. + */ + environment?: string + /** + * The maximum number of seconds to wait for the workflow to complete. + */ + timeout?: number +} /** * DSL Context. Contains all the context needed to execute a DSL workflow. */ export type DSLContext = { - INPUTS?: { - [key: string]: unknown; - }; - ACTIONS?: { - [key: string]: unknown; - }; - TRIGGER?: JsonValue; - ENV?: DSLEnvironment; - SECRETS?: { - [key: string]: unknown; - }; -}; + INPUTS?: { + [key: string]: unknown + } + ACTIONS?: { + [key: string]: unknown + } + TRIGGER?: JsonValue + ENV?: DSLEnvironment + SECRETS?: { + [key: string]: unknown + } +} export type DSLEntrypoint = { - /** - * The entrypoint action ref - */ - ref?: string | null; - /** - * Expected trigger input schema. Use this to specify the expected shape of the trigger input. - */ - expects?: { - [key: string]: ExpectedField; -} | null; -}; + /** + * The entrypoint action ref + */ + ref?: string | null + /** + * Expected trigger input schema. Use this to specify the expected shape of the trigger input. + */ + expects?: { + [key: string]: ExpectedField + } | null +} /** * DSL Environment context. Has metadata about the workflow. */ export type DSLEnvironment = { - workflow?: { - [key: string]: unknown; - }; - environment?: string; - variables?: { - [key: string]: unknown; - }; - registry_version?: string; -}; + workflow?: { + [key: string]: unknown + } + environment?: string + variables?: { + [key: string]: unknown + } + registry_version?: string +} /** * DSL definition for a workflow. @@ -277,384 +277,408 @@ export type DSLEnvironment = { * This allows the execution of the workflow to be fully deterministic. */ export type DSLInput = { - title: string; - description: string; - entrypoint: DSLEntrypoint; - actions: Array; - config?: DSLConfig_Output; - triggers?: Array; - /** - * Static input parameters - */ - inputs?: { - [key: string]: unknown; - }; - /** - * The action ref or value to return. - */ - returns?: unknown | null; -}; + title: string + description: string + entrypoint: DSLEntrypoint + actions: Array + config?: DSLConfig_Output + triggers?: Array + /** + * Static input parameters + */ + inputs?: { + [key: string]: unknown + } + /** + * The action ref or value to return. + */ + returns?: unknown | null +} export type DSLRunArgs = { - role: Role; - dsl?: DSLInput | null; - wf_id: string; - trigger_inputs?: JsonValue | null; - parent_run_context?: RunContext | null; - /** - * Runtime configuration that can be set on workflow entry. Note that this can override the default config in DSLInput. - */ - runtime_config?: DSLConfig_Output; - /** - * The maximum time to wait for the workflow to complete. - */ - timeout?: string; - /** - * The schedule ID that triggered this workflow, if any. - */ - schedule_id?: string | null; -}; + role: Role + dsl?: DSLInput | null + wf_id: string + trigger_inputs?: JsonValue | null + parent_run_context?: RunContext | null + /** + * Runtime configuration that can be set on workflow entry. Note that this can override the default config in DSLInput. + */ + runtime_config?: DSLConfig_Output + /** + * The maximum time to wait for the workflow to complete. + */ + timeout?: string + /** + * The schedule ID that triggered this workflow, if any. + */ + schedule_id?: string | null +} export type EditorActionRead = { - type: string; - ref: string; - description: string; -}; + type: string + ref: string + description: string +} export type EditorFunctionRead = { - name: string; - description: string; - parameters: Array; - return_type: string; -}; + name: string + description: string + parameters: Array + return_type: string +} export type EditorParamRead = { - name: string; - type: string; - optional: boolean; -}; + name: string + type: string + optional: boolean +} export type ErrorModel = { - detail: string | { - [key: string]: (string); -}; -}; + detail: + | string + | { + [key: string]: string + } +} export type EventFailure = { - message: string; - stack_trace: string; - cause?: { - [key: string]: unknown; -} | null; - application_failure_info?: { - [key: string]: unknown; - }; -}; + message: string + stack_trace: string + cause?: { + [key: string]: unknown + } | null + application_failure_info?: { + [key: string]: unknown + } +} export type EventGroup = { - event_id: number; - udf_namespace: string; - udf_name: string; - udf_key: string; - action_id: string | null; - action_ref: string; - action_title: string; - action_description: string; - action_input: RunActionInput | DSLRunArgs | GetWorkflowDefinitionActivityInputs; - action_result?: unknown | null; - current_attempt?: number | null; - retry_policy?: ActionRetryPolicy; - start_delay?: number; - join_strategy?: JoinStrategy; - related_wf_exec_id?: string | null; -}; + event_id: number + udf_namespace: string + udf_name: string + udf_key: string + action_id: string | null + action_ref: string + action_title: string + action_description: string + action_input: + | RunActionInput + | DSLRunArgs + | GetWorkflowDefinitionActivityInputs + action_result?: unknown | null + current_attempt?: number | null + retry_policy?: ActionRetryPolicy + start_delay?: number + join_strategy?: JoinStrategy + related_wf_exec_id?: string | null +} export type EventHistoryResponse = { - event_id: number; - event_time: string; - event_type: EventHistoryType; - task_id: number; - /** - * The action group of the event. We use this to keep track of what events are related to each other. - */ - event_group?: EventGroup | null; - failure?: EventFailure | null; - result?: unknown | null; - role?: Role | null; - parent_wf_exec_id?: string | null; - workflow_timeout?: number | null; -}; + event_id: number + event_time: string + event_type: EventHistoryType + task_id: number + /** + * The action group of the event. We use this to keep track of what events are related to each other. + */ + event_group?: EventGroup | null + failure?: EventFailure | null + result?: unknown | null + role?: Role | null + parent_wf_exec_id?: string | null + workflow_timeout?: number | null +} /** * The event types we care about. */ -export type EventHistoryType = 'WORKFLOW_EXECUTION_STARTED' | 'WORKFLOW_EXECUTION_COMPLETED' | 'WORKFLOW_EXECUTION_FAILED' | 'WORKFLOW_EXECUTION_TERMINATED' | 'WORKFLOW_EXECUTION_CANCELED' | 'WORKFLOW_EXECUTION_CONTINUED_AS_NEW' | 'WORKFLOW_EXECUTION_TIMED_OUT' | 'ACTIVITY_TASK_SCHEDULED' | 'ACTIVITY_TASK_STARTED' | 'ACTIVITY_TASK_COMPLETED' | 'ACTIVITY_TASK_FAILED' | 'ACTIVITY_TASK_TIMED_OUT' | 'CHILD_WORKFLOW_EXECUTION_STARTED' | 'CHILD_WORKFLOW_EXECUTION_COMPLETED' | 'CHILD_WORKFLOW_EXECUTION_FAILED' | 'START_CHILD_WORKFLOW_EXECUTION_INITIATED'; +export type EventHistoryType = + | "WORKFLOW_EXECUTION_STARTED" + | "WORKFLOW_EXECUTION_COMPLETED" + | "WORKFLOW_EXECUTION_FAILED" + | "WORKFLOW_EXECUTION_TERMINATED" + | "WORKFLOW_EXECUTION_CANCELED" + | "WORKFLOW_EXECUTION_CONTINUED_AS_NEW" + | "WORKFLOW_EXECUTION_TIMED_OUT" + | "ACTIVITY_TASK_SCHEDULED" + | "ACTIVITY_TASK_STARTED" + | "ACTIVITY_TASK_COMPLETED" + | "ACTIVITY_TASK_FAILED" + | "ACTIVITY_TASK_TIMED_OUT" + | "CHILD_WORKFLOW_EXECUTION_STARTED" + | "CHILD_WORKFLOW_EXECUTION_COMPLETED" + | "CHILD_WORKFLOW_EXECUTION_FAILED" + | "START_CHILD_WORKFLOW_EXECUTION_INITIATED" export type ExpectedField = { - type: string; - description?: string | null; - default?: unknown | null; -}; + type: string + description?: string | null + default?: unknown | null +} export type GetWorkflowDefinitionActivityInputs = { - role: Role; - workflow_id: string; - version?: number | null; - task?: ActionStatement | null; -}; + role: Role + workflow_id: string + version?: number | null + task?: ActionStatement | null +} export type HTTPValidationError = { - detail?: Array; -}; + detail?: Array +} -export type JoinStrategy = 'any' | 'all'; +export type JoinStrategy = "any" | "all" -export type JsonValue = unknown; +export type JsonValue = unknown export type OAuth2AuthorizeResponse = { - authorization_url: string; -}; + authorization_url: string +} export type OrgMemberRead = { - user_id: string; - first_name: string | null; - last_name: string | null; - email: string; - role: UserRole; - is_active: boolean; - is_superuser: boolean; - is_verified: boolean; - last_login_at: string | null; -}; + user_id: string + first_name: string | null + last_name: string | null + email: string + role: UserRole + is_active: boolean + is_superuser: boolean + is_verified: boolean + last_login_at: string | null +} /** * API create model for a registered action. */ export type RegistryActionCreate = { - /** - * The name of the action - */ - name: string; - /** - * The description of the action - */ - description: string; - /** - * The namespace of the action - */ - namespace: string; - /** - * The type of the action - */ - type: 'udf' | 'template'; - /** - * The origin of the action as a url - */ - origin: string; - /** - * The secrets required by the action - */ - secrets?: Array | null; - interface: RegistryActionInterface; - implementation?: RegistryActionTemplateImpl_Input | RegistryActionUDFImpl; - /** - * The default title of the action - */ - default_title?: string | null; - /** - * The presentation group of the action - */ - display_group?: string | null; - /** - * The options for the action - */ - options?: RegistryActionOptions; - /** - * The repository id - */ - repository_id: string; -}; + /** + * The name of the action + */ + name: string + /** + * The description of the action + */ + description: string + /** + * The namespace of the action + */ + namespace: string + /** + * The type of the action + */ + type: "udf" | "template" + /** + * The origin of the action as a url + */ + origin: string + /** + * The secrets required by the action + */ + secrets?: Array | null + interface: RegistryActionInterface + implementation?: RegistryActionTemplateImpl_Input | RegistryActionUDFImpl + /** + * The default title of the action + */ + default_title?: string | null + /** + * The presentation group of the action + */ + display_group?: string | null + /** + * The options for the action + */ + options?: RegistryActionOptions + /** + * The repository id + */ + repository_id: string +} /** * The type of the action */ -export type type = 'udf' | 'template'; +export type type = "udf" | "template" export type RegistryActionInterface = { - expects: { - [key: string]: unknown; - }; - returns: unknown; -}; + expects: { + [key: string]: unknown + } + returns: unknown +} export type RegistryActionOptions = { - include_in_schema?: boolean; -}; + include_in_schema?: boolean +} /** * API read model for a registered action. */ export type RegistryActionRead = { - /** - * The name of the action - */ - name: string; - /** - * The description of the action - */ - description: string; - /** - * The namespace of the action - */ - namespace: string; - /** - * The type of the action - */ - type: 'udf' | 'template'; - /** - * The origin of the action as a url - */ - origin: string; - /** - * The secrets required by the action - */ - secrets?: Array | null; - interface: RegistryActionInterface; - implementation?: RegistryActionTemplateImpl_Output | RegistryActionUDFImpl; - /** - * The default title of the action - */ - default_title?: string | null; - /** - * The presentation group of the action - */ - display_group?: string | null; - /** - * The options for the action - */ - options?: RegistryActionOptions; - /** - * The repository id - */ - repository_id: string; - /** - * The full action identifier. - */ - readonly action: string; - /** - * Whether the action is a template. - */ - readonly is_template: boolean; -}; + /** + * The name of the action + */ + name: string + /** + * The description of the action + */ + description: string + /** + * The namespace of the action + */ + namespace: string + /** + * The type of the action + */ + type: "udf" | "template" + /** + * The origin of the action as a url + */ + origin: string + /** + * The secrets required by the action + */ + secrets?: Array | null + interface: RegistryActionInterface + implementation?: RegistryActionTemplateImpl_Output | RegistryActionUDFImpl + /** + * The default title of the action + */ + default_title?: string | null + /** + * The presentation group of the action + */ + display_group?: string | null + /** + * The options for the action + */ + options?: RegistryActionOptions + /** + * The repository id + */ + repository_id: string + /** + * The full action identifier. + */ + readonly action: string + /** + * Whether the action is a template. + */ + readonly is_template: boolean +} export type RegistryActionTemplateImpl_Input = { - type?: "template"; - /** - * The template action - */ - template_action: TemplateAction_Input; -}; + type?: "template" + /** + * The template action + */ + template_action: TemplateAction_Input +} export type RegistryActionTemplateImpl_Output = { - type?: "template"; - /** - * The template action - */ - template_action: TemplateAction_Output; -}; + type?: "template" + /** + * The template action + */ + template_action: TemplateAction_Output +} export type RegistryActionUDFImpl = { - type?: "udf"; - /** - * The package url - */ - url: string; - /** - * The module name - */ - module: string; - /** - * The name of the UDF function name - */ - name: string; -}; + type?: "udf" + /** + * The package url + */ + url: string + /** + * The module name + */ + module: string + /** + * The name of the UDF function name + */ + name: string +} /** * API update model for a registered action. */ export type RegistryActionUpdate = { - /** - * Update the name of the action - */ - name?: string | null; - /** - * Update the description of the action - */ - description?: string | null; - /** - * Update the secrets of the action - */ - secrets?: Array | null; - /** - * Update the interface of the action - */ - interface?: RegistryActionInterface | null; - /** - * Update the implementation of the action - */ - implementation?: RegistryActionTemplateImpl_Input | RegistryActionUDFImpl | null; - /** - * Update the default title of the action - */ - default_title?: string | null; - /** - * Update the display group of the action - */ - display_group?: string | null; - /** - * Update the options of the action - */ - options?: RegistryActionOptions | null; -}; + /** + * Update the name of the action + */ + name?: string | null + /** + * Update the description of the action + */ + description?: string | null + /** + * Update the secrets of the action + */ + secrets?: Array | null + /** + * Update the interface of the action + */ + interface?: RegistryActionInterface | null + /** + * Update the implementation of the action + */ + implementation?: + | RegistryActionTemplateImpl_Input + | RegistryActionUDFImpl + | null + /** + * Update the default title of the action + */ + default_title?: string | null + /** + * Update the display group of the action + */ + display_group?: string | null + /** + * Update the options of the action + */ + options?: RegistryActionOptions | null +} export type RegistryActionValidateResponse = { - ok: boolean; - message: string; - detail?: unknown | null; - action_ref?: string | null; -}; + ok: boolean + message: string + detail?: unknown | null + action_ref?: string | null +} export type RegistryRepositoryCreate = { - origin: string; -}; + origin: string +} export type RegistryRepositoryRead = { - id: string; - origin: string; - last_synced_at: string | null; - commit_sha: string | null; - actions: Array; -}; + id: string + origin: string + last_synced_at: string | null + commit_sha: string | null + actions: Array +} export type RegistryRepositoryReadMinimal = { - id: string; - origin: string; - last_synced_at: string | null; - commit_sha: string | null; -}; + id: string + origin: string + last_synced_at: string | null + commit_sha: string | null +} export type RegistryRepositoryUpdate = { - last_synced_at?: string | null; - commit_sha?: string | null; - origin?: string | null; -}; + last_synced_at?: string | null + commit_sha?: string | null + origin?: string | null +} export type RegistrySecret = { - name: string; - keys?: Array<(string)> | null; - optional_keys?: Array<(string)> | null; - optional?: boolean; -}; + name: string + keys?: Array | null + optional_keys?: Array | null + optional?: boolean +} /** * The identity and authorization of a user or service. @@ -683,136 +707,148 @@ export type RegistrySecret = { * - A service's `user_id` is the user it's acting on behalf of. This can be None for internal services. */ export type Role = { - type: 'user' | 'service'; - workspace_id?: string | null; - user_id?: string | null; - access_level?: AccessLevel; - service_id: 'tracecat-runner' | 'tracecat-api' | 'tracecat-cli' | 'tracecat-schedule-runner' | 'tracecat-service' | 'tracecat-executor'; -}; - -export type type2 = 'user' | 'service'; - -export type service_id = 'tracecat-runner' | 'tracecat-api' | 'tracecat-cli' | 'tracecat-schedule-runner' | 'tracecat-service' | 'tracecat-executor'; + type: "user" | "service" + workspace_id?: string | null + user_id?: string | null + access_level?: AccessLevel + service_id: + | "tracecat-runner" + | "tracecat-api" + | "tracecat-cli" + | "tracecat-schedule-runner" + | "tracecat-service" + | "tracecat-executor" +} + +export type type2 = "user" | "service" + +export type service_id = + | "tracecat-runner" + | "tracecat-api" + | "tracecat-cli" + | "tracecat-schedule-runner" + | "tracecat-service" + | "tracecat-executor" /** * This object contains all the information needed to execute an action. */ export type RunActionInput = { - task: ActionStatement; - exec_context: DSLContext; - run_context: RunContext; -}; + task: ActionStatement + exec_context: DSLContext + run_context: RunContext +} /** * This is the runtime context model for a workflow run. Passed into activities. */ export type RunContext = { - wf_id: string; - wf_exec_id: string; - wf_run_id: string; - environment: string; -}; + wf_id: string + wf_exec_id: string + wf_run_id: string + environment: string +} export type SAMLDatabaseLoginResponse = { - redirect_url: string; -}; + redirect_url: string +} export type Schedule = { - owner_id: string; - created_at: string; - updated_at: string; - id?: string; - status?: string; - cron?: string | null; - inputs?: { - [key: string]: unknown; - }; - /** - * ISO 8601 duration string - */ - every: string; - /** - * ISO 8601 duration string - */ - offset?: string | null; - /** - * ISO 8601 datetime string - */ - start_at?: string | null; - /** - * ISO 8601 datetime string - */ - end_at?: string | null; - /** - * The maximum number of seconds to wait for the workflow to complete - */ - timeout?: number | null; - workflow_id: string | null; -}; + owner_id: string + created_at: string + updated_at: string + id?: string + status?: string + cron?: string | null + inputs?: { + [key: string]: unknown + } + /** + * ISO 8601 duration string + */ + every: string + /** + * ISO 8601 duration string + */ + offset?: string | null + /** + * ISO 8601 datetime string + */ + start_at?: string | null + /** + * ISO 8601 datetime string + */ + end_at?: string | null + /** + * The maximum number of seconds to wait for the workflow to complete + */ + timeout?: number | null + workflow_id: string | null +} export type ScheduleCreate = { - workflow_id: string; - inputs?: { - [key: string]: unknown; -} | null; - cron?: string | null; - /** - * ISO 8601 duration string - */ - every: string; - /** - * ISO 8601 duration string - */ - offset?: string | null; - /** - * ISO 8601 datetime string - */ - start_at?: string | null; - /** - * ISO 8601 datetime string - */ - end_at?: string | null; - status?: 'online' | 'offline'; - /** - * The maximum number of seconds to wait for the workflow to complete - */ - timeout?: number; -}; - -export type status2 = 'online' | 'offline'; + workflow_id: string + inputs?: { + [key: string]: unknown + } | null + cron?: string | null + /** + * ISO 8601 duration string + */ + every: string + /** + * ISO 8601 duration string + */ + offset?: string | null + /** + * ISO 8601 datetime string + */ + start_at?: string | null + /** + * ISO 8601 datetime string + */ + end_at?: string | null + status?: "online" | "offline" + /** + * The maximum number of seconds to wait for the workflow to complete + */ + timeout?: number +} + +export type status2 = "online" | "offline" export type ScheduleSearch = { - workflow_id?: string | null; - limit?: number; - order_by?: string; - query?: string | null; - group_by?: Array<(string)> | null; - agg?: string | null; -}; + workflow_id?: string | null + limit?: number + order_by?: string + query?: string | null + group_by?: Array | null + agg?: string | null +} export type ScheduleUpdate = { - inputs?: { - [key: string]: unknown; -} | null; - cron?: string | null; - /** - * ISO 8601 duration string - */ - every?: string | null; - /** - * ISO 8601 duration string - */ - offset?: string | null; - /** - * ISO 8601 datetime string - */ - start_at?: string | null; - /** - * ISO 8601 datetime string - */ - end_at?: string | null; - status?: 'online' | 'offline' | null; -}; + inputs?: { + [key: string]: unknown + } | null + cron?: string | null + /** + * ISO 8601 duration string + */ + every?: string | null + /** + * ISO 8601 duration string + */ + offset?: string | null + /** + * ISO 8601 datetime string + */ + start_at?: string | null + /** + * ISO 8601 datetime string + */ + end_at?: string | null + status?: "online" | "offline" | null +} /** * Create a new secret. @@ -824,54 +860,54 @@ export type ScheduleUpdate = { * - `oauth2`: OAuth2 Client Credentials (TBC) */ export type SecretCreate = { - type?: SecretType; - name: string; - description?: string | null; - keys: Array; - tags?: { - [key: string]: (string); -} | null; - environment?: string; -}; + type?: SecretType + name: string + description?: string | null + keys: Array + tags?: { + [key: string]: string + } | null + environment?: string +} export type SecretKeyValue = { - key: string; - value: string; -}; + key: string + value: string +} /** * The level of a secret. */ -export type SecretLevel = 'workspace' | 'organization'; +export type SecretLevel = "workspace" | "organization" export type SecretRead = { - id: string; - type: SecretType; - name: string; - description?: string | null; - encrypted_keys: (Blob | File); - environment: string; - tags?: { - [key: string]: (string); -} | null; - owner_id: string; - created_at: string; - updated_at: string; -}; + id: string + type: SecretType + name: string + description?: string | null + encrypted_keys: Blob | File + environment: string + tags?: { + [key: string]: string + } | null + owner_id: string + created_at: string + updated_at: string +} export type SecretReadMinimal = { - id: string; - type: SecretType; - name: string; - description?: string | null; - keys: Array<(string)>; - environment: string; -}; + id: string + type: SecretType + name: string + description?: string | null + keys: Array + environment: string +} /** * The type of a secret. */ -export type SecretType = 'custom' | 'ssh-key'; +export type SecretType = "custom" | "ssh-key" /** * Update a secret. @@ -883,188 +919,191 @@ export type SecretType = 'custom' | 'ssh-key'; * - `oauth2`: OAuth2 Client Credentials (TBC) */ export type SecretUpdate = { - type?: SecretType | null; - name?: string | null; - description?: string | null; - keys?: Array | null; - tags?: { - [key: string]: (string); -} | null; - environment?: string | null; - level?: SecretLevel | null; -}; + type?: SecretType | null + name?: string | null + description?: string | null + keys?: Array | null + tags?: { + [key: string]: string + } | null + environment?: string | null + level?: SecretLevel | null +} export type SessionRead = { - id: string; - created_at: string; - user_id: string; - user_email: string; -}; + id: string + created_at: string + user_id: string + user_email: string +} export type TemplateAction_Input = { - type?: "action"; - definition: TemplateActionDefinition; -}; + type?: "action" + definition: TemplateActionDefinition +} export type TemplateAction_Output = { - type?: "action"; - definition: TemplateActionDefinition; -}; + type?: "action" + definition: TemplateActionDefinition +} export type TemplateActionDefinition = { - /** - * The action name - */ - name: string; - /** - * The namespace of the action - */ - namespace: string; - /** - * The title of the action - */ - title: string; - /** - * The description of the action - */ - description?: string; - /** - * The display group of the action - */ - display_group: string; - /** - * The secrets to pass to the action - */ - secrets?: Array | null; - /** - * The arguments to pass to the action - */ - expects: { - [key: string]: ExpectedField; - }; - /** - * The sequence of steps for the action - */ - steps: Array; - /** - * The result of the action - */ - returns: string | Array<(string)> | { - [key: string]: unknown; -}; -}; + /** + * The action name + */ + name: string + /** + * The namespace of the action + */ + namespace: string + /** + * The title of the action + */ + title: string + /** + * The description of the action + */ + description?: string + /** + * The display group of the action + */ + display_group: string + /** + * The secrets to pass to the action + */ + secrets?: Array | null + /** + * The arguments to pass to the action + */ + expects: { + [key: string]: ExpectedField + } + /** + * The sequence of steps for the action + */ + steps: Array + /** + * The result of the action + */ + returns: + | string + | Array + | { + [key: string]: unknown + } +} export type TerminateWorkflowExecutionParams = { - reason?: string | null; -}; + reason?: string | null +} export type Trigger = { - type: 'schedule' | 'webhook'; - ref: string; - args?: { - [key: string]: unknown; - }; -}; + type: "schedule" | "webhook" + ref: string + args?: { + [key: string]: unknown + } +} -export type type3 = 'schedule' | 'webhook'; +export type type3 = "schedule" | "webhook" export type UpdateWorkflowParams = { - title?: string | null; - description?: string | null; - status?: 'online' | 'offline' | null; - object?: { - [key: string]: unknown; -} | null; - version?: number | null; - entrypoint?: string | null; - icon_url?: string | null; - static_inputs?: { - [key: string]: unknown; -} | null; - expects?: { - [key: string]: ExpectedField; -} | null; - returns?: unknown | null; - config?: DSLConfig_Input | null; -}; + title?: string | null + description?: string | null + status?: "online" | "offline" | null + object?: { + [key: string]: unknown + } | null + version?: number | null + entrypoint?: string | null + icon_url?: string | null + static_inputs?: { + [key: string]: unknown + } | null + expects?: { + [key: string]: ExpectedField + } | null + returns?: unknown | null + config?: DSLConfig_Input | null +} export type UpdateWorkspaceParams = { - name?: string | null; - settings?: { - [key: string]: (string); -} | null; -}; + name?: string | null + settings?: { + [key: string]: string + } | null +} export type UpsertWebhookParams = { - status?: 'online' | 'offline' | null; - entrypoint_ref?: string | null; - method?: 'GET' | 'POST' | null; -}; + status?: "online" | "offline" | null + entrypoint_ref?: string | null + method?: "GET" | "POST" | null +} export type UserCreate = { - email: string; - password: string; - is_active?: boolean | null; - is_superuser?: boolean | null; - is_verified?: boolean | null; - role?: UserRole; - first_name?: string | null; - last_name?: string | null; -}; + email: string + password: string + is_active?: boolean | null + is_superuser?: boolean | null + is_verified?: boolean | null + role?: UserRole + first_name?: string | null + last_name?: string | null +} export type UserRead = { - id: string; - email: string; - is_active?: boolean; - is_superuser?: boolean; - is_verified?: boolean; - role: UserRole; - first_name?: string | null; - last_name?: string | null; - settings: { - [key: string]: unknown; - }; -}; - -export type UserRole = 'basic' | 'admin'; + id: string + email: string + is_active?: boolean + is_superuser?: boolean + is_verified?: boolean + role: UserRole + first_name?: string | null + last_name?: string | null + settings: { + [key: string]: unknown + } +} + +export type UserRole = "basic" | "admin" export type UserUpdate = { - password?: string | null; - email?: string | null; - is_active?: boolean | null; - is_superuser?: boolean | null; - is_verified?: boolean | null; - role?: UserRole | null; - first_name?: string | null; - last_name?: string | null; - settings?: { - [key: string]: unknown; -} | null; -}; + password?: string | null + email?: string | null + is_active?: boolean | null + is_superuser?: boolean | null + is_verified?: boolean | null + role?: UserRole | null + first_name?: string | null + last_name?: string | null + settings?: { + [key: string]: unknown + } | null +} export type ValidationError = { - loc: Array<(string | number)>; - msg: string; - type: string; -}; + loc: Array + msg: string + type: string +} export type WebhookResponse = { - owner_id: string; - created_at: string; - updated_at: string; - id: string; - secret: string; - status: 'online' | 'offline'; - entrypoint_ref?: string | null; - filters: { - [key: string]: unknown; - }; - method: 'GET' | 'POST'; - workflow_id: string; - url: string; -}; - -export type method = 'GET' | 'POST'; + owner_id: string + created_at: string + updated_at: string + id: string + secret: string + status: "online" | "offline" + entrypoint_ref?: string | null + filters: { + [key: string]: unknown + } + method: "GET" | "POST" + workflow_id: string + url: string +} + +export type method = "GET" | "POST" /** * A workflow definition. @@ -1087,1928 +1126,1951 @@ export type method = 'GET' | 'POST'; * - 1 Workflow to many WorkflowDefinitions */ export type WorkflowDefinition = { - owner_id: string; - created_at: string; - updated_at: string; - id?: string; - /** - * DSL spec version - */ - version: number; - workflow_id: string; - content: { - [key: string]: unknown; - }; -}; + owner_id: string + created_at: string + updated_at: string + id?: string + /** + * DSL spec version + */ + version: number + workflow_id: string + content: { + [key: string]: unknown + } +} export type WorkflowExecutionResponse = { - /** - * The ID of the workflow execution - */ - id: string; - /** - * The run ID of the workflow execution - */ - run_id: string; - /** - * The start time of the workflow execution - */ - start_time: string; - /** - * When this workflow run started or should start. - */ - execution_time?: string | null; - /** - * When the workflow was closed if closed. - */ - close_time?: string | null; - status: 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELED' | 'TERMINATED' | 'CONTINUED_AS_NEW' | 'TIMED_OUT'; - workflow_type: string; - task_queue: string; - /** - * Number of events in the history - */ - history_length: number; -}; - -export type status3 = 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELED' | 'TERMINATED' | 'CONTINUED_AS_NEW' | 'TIMED_OUT'; + /** + * The ID of the workflow execution + */ + id: string + /** + * The run ID of the workflow execution + */ + run_id: string + /** + * The start time of the workflow execution + */ + start_time: string + /** + * When this workflow run started or should start. + */ + execution_time?: string | null + /** + * When the workflow was closed if closed. + */ + close_time?: string | null + status: + | "RUNNING" + | "COMPLETED" + | "FAILED" + | "CANCELED" + | "TERMINATED" + | "CONTINUED_AS_NEW" + | "TIMED_OUT" + workflow_type: string + task_queue: string + /** + * Number of events in the history + */ + history_length: number +} + +export type status3 = + | "RUNNING" + | "COMPLETED" + | "FAILED" + | "CANCELED" + | "TERMINATED" + | "CONTINUED_AS_NEW" + | "TIMED_OUT" export type WorkflowMetadataResponse = { - id: string; - title: string; - description: string; - status: string; - icon_url: string | null; - created_at: string; - updated_at: string; - version: number | null; -}; + id: string + title: string + description: string + status: string + icon_url: string | null + created_at: string + updated_at: string + version: number | null +} export type WorkflowResponse = { - id: string; - title: string; - description: string; - status: string; - actions: { - [key: string]: ActionRead; - }; - object: { - [key: string]: unknown; -} | null; - owner_id: string; - version?: number | null; - webhook: WebhookResponse; - schedules: Array; - entrypoint: string | null; - static_inputs: { - [key: string]: unknown; - }; - expects?: { - [key: string]: ExpectedField; -} | null; - returns: unknown; - config: DSLConfig_Output | null; -}; + id: string + title: string + description: string + status: string + actions: { + [key: string]: ActionRead + } + object: { + [key: string]: unknown + } | null + owner_id: string + version?: number | null + webhook: WebhookResponse + schedules: Array + entrypoint: string | null + static_inputs: { + [key: string]: unknown + } + expects?: { + [key: string]: ExpectedField + } | null + returns: unknown + config: DSLConfig_Output | null +} export type WorkspaceMember = { - user_id: string; - first_name: string | null; - last_name: string | null; - email: string; - role: UserRole; -}; + user_id: string + first_name: string | null + last_name: string | null + email: string + role: UserRole +} export type WorkspaceMembershipResponse = { - user_id: string; - workspace_id: string; -}; + user_id: string + workspace_id: string +} export type WorkspaceMetadataResponse = { - id: string; - name: string; - n_members: number; -}; + id: string + name: string + n_members: number +} export type WorkspaceResponse = { - id: string; - name: string; - settings?: { - [key: string]: (string); -} | null; - owner_id: string; - n_members: number; - members: Array; -}; + id: string + name: string + settings?: { + [key: string]: string + } | null + owner_id: string + n_members: number + members: Array +} export type login = { - grant_type?: string | null; - username: string; - password: string; - scope?: string; - client_id?: string | null; - client_secret?: string | null; -}; + grant_type?: string | null + username: string + password: string + scope?: string + client_id?: string | null + client_secret?: string | null +} export type PublicIncomingWebhookData = { - contentType?: string | null; - path: string; - secret: string; -}; + contentType?: string | null + path: string + secret: string +} -export type PublicIncomingWebhookResponse = CreateWorkflowExecutionResponse; +export type PublicIncomingWebhookResponse = CreateWorkflowExecutionResponse export type PublicIncomingWebhookWaitData = { - contentType?: string | null; - path: string; - secret: string; -}; + contentType?: string | null + path: string + secret: string +} -export type PublicIncomingWebhookWaitResponse = DSLContext; +export type PublicIncomingWebhookWaitResponse = DSLContext -export type WorkspacesListWorkspacesResponse = Array; +export type WorkspacesListWorkspacesResponse = Array export type WorkspacesCreateWorkspaceData = { - requestBody: CreateWorkspaceParams; -}; + requestBody: CreateWorkspaceParams +} -export type WorkspacesCreateWorkspaceResponse = WorkspaceMetadataResponse; +export type WorkspacesCreateWorkspaceResponse = WorkspaceMetadataResponse export type WorkspacesSearchWorkspacesData = { - name?: string | null; -}; + name?: string | null +} -export type WorkspacesSearchWorkspacesResponse = Array; +export type WorkspacesSearchWorkspacesResponse = + Array export type WorkspacesGetWorkspaceData = { - workspaceId: string; -}; + workspaceId: string +} -export type WorkspacesGetWorkspaceResponse = WorkspaceResponse; +export type WorkspacesGetWorkspaceResponse = WorkspaceResponse export type WorkspacesUpdateWorkspaceData = { - requestBody: UpdateWorkspaceParams; - workspaceId: string; -}; + requestBody: UpdateWorkspaceParams + workspaceId: string +} -export type WorkspacesUpdateWorkspaceResponse = void; +export type WorkspacesUpdateWorkspaceResponse = void export type WorkspacesDeleteWorkspaceData = { - workspaceId: string; -}; + workspaceId: string +} -export type WorkspacesDeleteWorkspaceResponse = void; +export type WorkspacesDeleteWorkspaceResponse = void export type WorkspacesListWorkspaceMembershipsData = { - workspaceId: string; -}; + workspaceId: string +} -export type WorkspacesListWorkspaceMembershipsResponse = Array; +export type WorkspacesListWorkspaceMembershipsResponse = + Array export type WorkspacesCreateWorkspaceMembershipData = { - requestBody: CreateWorkspaceMembershipParams; - workspaceId: string; -}; + requestBody: CreateWorkspaceMembershipParams + workspaceId: string +} -export type WorkspacesCreateWorkspaceMembershipResponse = unknown; +export type WorkspacesCreateWorkspaceMembershipResponse = unknown export type WorkspacesGetWorkspaceMembershipData = { - userId: string; - workspaceId: string; -}; + userId: string + workspaceId: string +} -export type WorkspacesGetWorkspaceMembershipResponse = Array; +export type WorkspacesGetWorkspaceMembershipResponse = + Array export type WorkspacesDeleteWorkspaceMembershipData = { - userId: string; - workspaceId: string; -}; + userId: string + workspaceId: string +} -export type WorkspacesDeleteWorkspaceMembershipResponse = void; +export type WorkspacesDeleteWorkspaceMembershipResponse = void export type WorkflowsListWorkflowsData = { - workspaceId: string; -}; + workspaceId: string +} -export type WorkflowsListWorkflowsResponse = Array; +export type WorkflowsListWorkflowsResponse = Array export type WorkflowsCreateWorkflowData = { - formData?: Body_workflows_create_workflow; - workspaceId: string; -}; + formData?: Body_workflows_create_workflow + workspaceId: string +} -export type WorkflowsCreateWorkflowResponse = WorkflowMetadataResponse; +export type WorkflowsCreateWorkflowResponse = WorkflowMetadataResponse export type WorkflowsGetWorkflowData = { - workflowId: string; - workspaceId: string; -}; + workflowId: string + workspaceId: string +} -export type WorkflowsGetWorkflowResponse = WorkflowResponse; +export type WorkflowsGetWorkflowResponse = WorkflowResponse export type WorkflowsUpdateWorkflowData = { - requestBody: UpdateWorkflowParams; - workflowId: string; - workspaceId: string; -}; + requestBody: UpdateWorkflowParams + workflowId: string + workspaceId: string +} -export type WorkflowsUpdateWorkflowResponse = void; +export type WorkflowsUpdateWorkflowResponse = void export type WorkflowsDeleteWorkflowData = { - workflowId: string; - workspaceId: string; -}; + workflowId: string + workspaceId: string +} -export type WorkflowsDeleteWorkflowResponse = void; +export type WorkflowsDeleteWorkflowResponse = void export type WorkflowsCommitWorkflowData = { - workflowId: string; - workspaceId: string; -}; + workflowId: string + workspaceId: string +} -export type WorkflowsCommitWorkflowResponse = CommitWorkflowResponse; +export type WorkflowsCommitWorkflowResponse = CommitWorkflowResponse export type WorkflowsExportWorkflowData = { - /** - * Export format: 'json' or 'yaml' - */ - format?: 'json' | 'yaml'; - /** - * Workflow definition version. If not provided, the latest version is exported. - */ - version?: number | null; - workflowId: string; - workspaceId: string; -}; - -export type WorkflowsExportWorkflowResponse = unknown; + /** + * Export format: 'json' or 'yaml' + */ + format?: "json" | "yaml" + /** + * Workflow definition version. If not provided, the latest version is exported. + */ + version?: number | null + workflowId: string + workspaceId: string +} + +export type WorkflowsExportWorkflowResponse = unknown export type WorkflowsGetWorkflowDefinitionData = { - version?: number | null; - workflowId: string; - workspaceId: string; -}; + version?: number | null + workflowId: string + workspaceId: string +} -export type WorkflowsGetWorkflowDefinitionResponse = WorkflowDefinition; +export type WorkflowsGetWorkflowDefinitionResponse = WorkflowDefinition export type WorkflowsCreateWorkflowDefinitionData = { - workflowId: string; - workspaceId: string; -}; + workflowId: string + workspaceId: string +} -export type WorkflowsCreateWorkflowDefinitionResponse = WorkflowDefinition; +export type WorkflowsCreateWorkflowDefinitionResponse = WorkflowDefinition export type TriggersCreateWebhookData = { - requestBody: UpsertWebhookParams; - workflowId: string; - workspaceId: string; -}; + requestBody: UpsertWebhookParams + workflowId: string + workspaceId: string +} -export type TriggersCreateWebhookResponse = unknown; +export type TriggersCreateWebhookResponse = unknown export type TriggersGetWebhookData = { - workflowId: string; - workspaceId: string; -}; + workflowId: string + workspaceId: string +} -export type TriggersGetWebhookResponse = WebhookResponse; +export type TriggersGetWebhookResponse = WebhookResponse export type TriggersUpdateWebhookData = { - requestBody: UpsertWebhookParams; - workflowId: string; - workspaceId: string; -}; + requestBody: UpsertWebhookParams + workflowId: string + workspaceId: string +} -export type TriggersUpdateWebhookResponse = void; +export type TriggersUpdateWebhookResponse = void export type WorkflowExecutionsListWorkflowExecutionsData = { - workflowId?: string | null; - workspaceId: string; -}; + workflowId?: string | null + workspaceId: string +} -export type WorkflowExecutionsListWorkflowExecutionsResponse = Array; +export type WorkflowExecutionsListWorkflowExecutionsResponse = + Array export type WorkflowExecutionsCreateWorkflowExecutionData = { - requestBody: CreateWorkflowExecutionParams; - workspaceId: string; -}; + requestBody: CreateWorkflowExecutionParams + workspaceId: string +} -export type WorkflowExecutionsCreateWorkflowExecutionResponse = CreateWorkflowExecutionResponse; +export type WorkflowExecutionsCreateWorkflowExecutionResponse = + CreateWorkflowExecutionResponse export type WorkflowExecutionsGetWorkflowExecutionData = { - executionId: string; - workspaceId: string; -}; + executionId: string + workspaceId: string +} -export type WorkflowExecutionsGetWorkflowExecutionResponse = WorkflowExecutionResponse; +export type WorkflowExecutionsGetWorkflowExecutionResponse = + WorkflowExecutionResponse export type WorkflowExecutionsListWorkflowExecutionEventHistoryData = { - executionId: string; - workspaceId: string; -}; + executionId: string + workspaceId: string +} -export type WorkflowExecutionsListWorkflowExecutionEventHistoryResponse = Array; +export type WorkflowExecutionsListWorkflowExecutionEventHistoryResponse = + Array export type WorkflowExecutionsCancelWorkflowExecutionData = { - executionId: string; - workspaceId: string; -}; + executionId: string + workspaceId: string +} -export type WorkflowExecutionsCancelWorkflowExecutionResponse = void; +export type WorkflowExecutionsCancelWorkflowExecutionResponse = void export type WorkflowExecutionsTerminateWorkflowExecutionData = { - executionId: string; - requestBody: TerminateWorkflowExecutionParams; - workspaceId: string; -}; + executionId: string + requestBody: TerminateWorkflowExecutionParams + workspaceId: string +} -export type WorkflowExecutionsTerminateWorkflowExecutionResponse = void; +export type WorkflowExecutionsTerminateWorkflowExecutionResponse = void export type ActionsListActionsData = { - workflowId: string; - workspaceId: string; -}; + workflowId: string + workspaceId: string +} -export type ActionsListActionsResponse = Array; +export type ActionsListActionsResponse = Array export type ActionsCreateActionData = { - requestBody: ActionCreate; - workspaceId: string; -}; + requestBody: ActionCreate + workspaceId: string +} -export type ActionsCreateActionResponse = ActionReadMinimal; +export type ActionsCreateActionResponse = ActionReadMinimal export type ActionsGetActionData = { - actionId: string; - workflowId: string; - workspaceId: string; -}; + actionId: string + workflowId: string + workspaceId: string +} -export type ActionsGetActionResponse = ActionRead; +export type ActionsGetActionResponse = ActionRead export type ActionsUpdateActionData = { - actionId: string; - requestBody: ActionUpdate; - workspaceId: string; -}; + actionId: string + requestBody: ActionUpdate + workspaceId: string +} -export type ActionsUpdateActionResponse = ActionRead; +export type ActionsUpdateActionResponse = ActionRead export type ActionsDeleteActionData = { - actionId: string; - workspaceId: string; -}; + actionId: string + workspaceId: string +} -export type ActionsDeleteActionResponse = void; +export type ActionsDeleteActionResponse = void export type SecretsSearchSecretsData = { - environment: string; - /** - * Filter by secret ID - */ - id?: Array<(string)> | null; - /** - * Filter by secret level - */ - level?: Array | null; - /** - * Filter by secret name - */ - name?: Array<(string)> | null; - /** - * Filter by secret type - */ - type?: Array | null; - workspaceId?: string | null; -}; - -export type SecretsSearchSecretsResponse = Array; + environment: string + /** + * Filter by secret ID + */ + id?: Array | null + /** + * Filter by secret level + */ + level?: Array | null + /** + * Filter by secret name + */ + name?: Array | null + /** + * Filter by secret type + */ + type?: Array | null + workspaceId?: string | null +} + +export type SecretsSearchSecretsResponse = Array export type SecretsListSecretsData = { - /** - * Filter by secret level - */ - level?: SecretLevel | null; - /** - * Filter by secret type - */ - type?: Array | null; - workspaceId?: string | null; -}; - -export type SecretsListSecretsResponse = Array; + /** + * Filter by secret level + */ + level?: SecretLevel | null + /** + * Filter by secret type + */ + type?: Array | null + workspaceId?: string | null +} + +export type SecretsListSecretsResponse = Array export type SecretsCreateSecretData = { - requestBody: SecretCreate; - workspaceId?: string | null; -}; + requestBody: SecretCreate + workspaceId?: string | null +} -export type SecretsCreateSecretResponse = unknown; +export type SecretsCreateSecretResponse = unknown export type SecretsGetSecretByNameData = { - secretName: string; - workspaceId?: string | null; -}; + secretName: string + workspaceId?: string | null +} -export type SecretsGetSecretByNameResponse = SecretRead; +export type SecretsGetSecretByNameResponse = SecretRead export type SecretsUpdateSecretByIdData = { - requestBody: SecretUpdate; - secretId: string; - workspaceId?: string | null; -}; + requestBody: SecretUpdate + secretId: string + workspaceId?: string | null +} -export type SecretsUpdateSecretByIdResponse = void; +export type SecretsUpdateSecretByIdResponse = void export type SecretsDeleteSecretByIdData = { - secretId: string; - workspaceId?: string | null; -}; + secretId: string + workspaceId?: string | null +} -export type SecretsDeleteSecretByIdResponse = void; +export type SecretsDeleteSecretByIdResponse = void export type SchedulesListSchedulesData = { - workflowId?: string | null; - workspaceId: string; -}; + workflowId?: string | null + workspaceId: string +} -export type SchedulesListSchedulesResponse = Array; +export type SchedulesListSchedulesResponse = Array export type SchedulesCreateScheduleData = { - requestBody: ScheduleCreate; - workspaceId: string; -}; + requestBody: ScheduleCreate + workspaceId: string +} -export type SchedulesCreateScheduleResponse = Schedule; +export type SchedulesCreateScheduleResponse = Schedule export type SchedulesGetScheduleData = { - scheduleId: string; - workspaceId: string; -}; + scheduleId: string + workspaceId: string +} -export type SchedulesGetScheduleResponse = Schedule; +export type SchedulesGetScheduleResponse = Schedule export type SchedulesUpdateScheduleData = { - requestBody: ScheduleUpdate; - scheduleId: string; - workspaceId: string; -}; + requestBody: ScheduleUpdate + scheduleId: string + workspaceId: string +} -export type SchedulesUpdateScheduleResponse = Schedule; +export type SchedulesUpdateScheduleResponse = Schedule export type SchedulesDeleteScheduleData = { - scheduleId: string; - workspaceId: string; -}; + scheduleId: string + workspaceId: string +} -export type SchedulesDeleteScheduleResponse = void; +export type SchedulesDeleteScheduleResponse = void export type SchedulesSearchSchedulesData = { - requestBody: ScheduleSearch; - workspaceId: string; -}; + requestBody: ScheduleSearch + workspaceId: string +} -export type SchedulesSearchSchedulesResponse = Array; +export type SchedulesSearchSchedulesResponse = Array export type UsersSearchUserData = { - email?: string | null; -}; + email?: string | null +} -export type UsersSearchUserResponse = UserRead; +export type UsersSearchUserResponse = UserRead -export type OrganizationListOrgMembersResponse = Array; +export type OrganizationListOrgMembersResponse = Array export type OrganizationDeleteOrgMemberData = { - userId: string; -}; + userId: string +} -export type OrganizationDeleteOrgMemberResponse = void; +export type OrganizationDeleteOrgMemberResponse = void export type OrganizationUpdateOrgMemberData = { - requestBody: UserUpdate; - userId: string; -}; + requestBody: UserUpdate + userId: string +} -export type OrganizationUpdateOrgMemberResponse = OrgMemberRead; +export type OrganizationUpdateOrgMemberResponse = OrgMemberRead -export type OrganizationListSessionsResponse = Array; +export type OrganizationListSessionsResponse = Array export type OrganizationDeleteSessionData = { - sessionId: string; -}; + sessionId: string +} -export type OrganizationDeleteSessionResponse = void; +export type OrganizationDeleteSessionResponse = void export type EditorListFunctionsData = { - workspaceId: string; -}; + workspaceId: string +} -export type EditorListFunctionsResponse = Array; +export type EditorListFunctionsResponse = Array export type EditorListActionsData = { - workflowId: string; - workspaceId: string; -}; + workflowId: string + workspaceId: string +} -export type EditorListActionsResponse = Array; +export type EditorListActionsResponse = Array export type RegistryRepositoriesSyncRegistryRepositoryData = { - repositoryId: string; -}; + repositoryId: string +} -export type RegistryRepositoriesSyncRegistryRepositoryResponse = void; +export type RegistryRepositoriesSyncRegistryRepositoryResponse = void export type RegistryRepositoriesSyncExecutorFromRegistryRepositoryData = { - repositoryId: string; -}; + repositoryId: string +} -export type RegistryRepositoriesSyncExecutorFromRegistryRepositoryResponse = void; +export type RegistryRepositoriesSyncExecutorFromRegistryRepositoryResponse = + void -export type RegistryRepositoriesListRegistryRepositoriesResponse = Array; +export type RegistryRepositoriesListRegistryRepositoriesResponse = + Array export type RegistryRepositoriesCreateRegistryRepositoryData = { - requestBody: RegistryRepositoryCreate; -}; + requestBody: RegistryRepositoryCreate +} -export type RegistryRepositoriesCreateRegistryRepositoryResponse = RegistryRepositoryRead; +export type RegistryRepositoriesCreateRegistryRepositoryResponse = + RegistryRepositoryRead export type RegistryRepositoriesGetRegistryRepositoryData = { - repositoryId: string; -}; + repositoryId: string +} -export type RegistryRepositoriesGetRegistryRepositoryResponse = RegistryRepositoryRead; +export type RegistryRepositoriesGetRegistryRepositoryResponse = + RegistryRepositoryRead export type RegistryRepositoriesUpdateRegistryRepositoryData = { - repositoryId: string; - requestBody: RegistryRepositoryUpdate; -}; + repositoryId: string + requestBody: RegistryRepositoryUpdate +} -export type RegistryRepositoriesUpdateRegistryRepositoryResponse = RegistryRepositoryRead; +export type RegistryRepositoriesUpdateRegistryRepositoryResponse = + RegistryRepositoryRead export type RegistryRepositoriesDeleteRegistryRepositoryData = { - repositoryId: string; -}; + repositoryId: string +} -export type RegistryRepositoriesDeleteRegistryRepositoryResponse = void; +export type RegistryRepositoriesDeleteRegistryRepositoryResponse = void -export type RegistryActionsListRegistryActionsResponse = Array; +export type RegistryActionsListRegistryActionsResponse = + Array export type RegistryActionsCreateRegistryActionData = { - requestBody: RegistryActionCreate; -}; + requestBody: RegistryActionCreate +} -export type RegistryActionsCreateRegistryActionResponse = RegistryActionRead; +export type RegistryActionsCreateRegistryActionResponse = RegistryActionRead export type RegistryActionsGetRegistryActionData = { - actionName: string; -}; + actionName: string +} -export type RegistryActionsGetRegistryActionResponse = RegistryActionRead; +export type RegistryActionsGetRegistryActionResponse = RegistryActionRead export type RegistryActionsUpdateRegistryActionData = { - actionName: string; - requestBody: RegistryActionUpdate; -}; + actionName: string + requestBody: RegistryActionUpdate +} -export type RegistryActionsUpdateRegistryActionResponse = void; +export type RegistryActionsUpdateRegistryActionResponse = void export type RegistryActionsDeleteRegistryActionData = { - actionName: string; -}; + actionName: string +} -export type RegistryActionsDeleteRegistryActionResponse = void; +export type RegistryActionsDeleteRegistryActionResponse = void -export type UsersUsersCurrentUserResponse = UserRead; +export type UsersUsersCurrentUserResponse = UserRead export type UsersUsersPatchCurrentUserData = { - requestBody: UserUpdate; -}; + requestBody: UserUpdate +} -export type UsersUsersPatchCurrentUserResponse = UserRead; +export type UsersUsersPatchCurrentUserResponse = UserRead export type UsersUsersUserData = { - id: string; -}; + id: string +} -export type UsersUsersUserResponse = UserRead; +export type UsersUsersUserResponse = UserRead export type UsersUsersPatchUserData = { - id: string; - requestBody: UserUpdate; -}; + id: string + requestBody: UserUpdate +} -export type UsersUsersPatchUserResponse = UserRead; +export type UsersUsersPatchUserResponse = UserRead export type UsersUsersDeleteUserData = { - id: string; -}; + id: string +} -export type UsersUsersDeleteUserResponse = void; +export type UsersUsersDeleteUserResponse = void export type AuthAuthDatabaseLoginData = { - formData: login; -}; + formData: login +} -export type AuthAuthDatabaseLoginResponse = unknown | void; +export type AuthAuthDatabaseLoginResponse = unknown | void -export type AuthAuthDatabaseLogoutResponse = unknown | void; +export type AuthAuthDatabaseLogoutResponse = unknown | void export type AuthRegisterRegisterData = { - requestBody: UserCreate; -}; + requestBody: UserCreate +} -export type AuthRegisterRegisterResponse = UserRead; +export type AuthRegisterRegisterResponse = UserRead export type AuthResetForgotPasswordData = { - requestBody: Body_auth_reset_forgot_password; -}; + requestBody: Body_auth_reset_forgot_password +} -export type AuthResetForgotPasswordResponse = unknown; +export type AuthResetForgotPasswordResponse = unknown export type AuthResetResetPasswordData = { - requestBody: Body_auth_reset_reset_password; -}; + requestBody: Body_auth_reset_reset_password +} -export type AuthResetResetPasswordResponse = unknown; +export type AuthResetResetPasswordResponse = unknown export type AuthVerifyRequestTokenData = { - requestBody: Body_auth_verify_request_token; -}; + requestBody: Body_auth_verify_request_token +} -export type AuthVerifyRequestTokenResponse = unknown; +export type AuthVerifyRequestTokenResponse = unknown export type AuthVerifyVerifyData = { - requestBody: Body_auth_verify_verify; -}; + requestBody: Body_auth_verify_verify +} -export type AuthVerifyVerifyResponse = UserRead; +export type AuthVerifyVerifyResponse = UserRead export type AuthOauthGoogleDatabaseAuthorizeData = { - scopes?: Array<(string)>; -}; + scopes?: Array +} -export type AuthOauthGoogleDatabaseAuthorizeResponse = OAuth2AuthorizeResponse; +export type AuthOauthGoogleDatabaseAuthorizeResponse = OAuth2AuthorizeResponse export type AuthOauthGoogleDatabaseCallbackData = { - code?: string | null; - codeVerifier?: string | null; - error?: string | null; - state?: string | null; -}; + code?: string | null + codeVerifier?: string | null + error?: string | null + state?: string | null +} -export type AuthOauthGoogleDatabaseCallbackResponse = unknown; +export type AuthOauthGoogleDatabaseCallbackResponse = unknown -export type AuthSamlDatabaseLoginResponse = SAMLDatabaseLoginResponse; +export type AuthSamlDatabaseLoginResponse = SAMLDatabaseLoginResponse export type AuthSsoAcsData = { - formData: Body_auth_sso_acs; -}; + formData: Body_auth_sso_acs +} -export type AuthSsoAcsResponse = unknown; +export type AuthSsoAcsResponse = unknown export type PublicCheckHealthResponse = { - [key: string]: (string); -}; + [key: string]: string +} export type $OpenApiTs = { - '/webhooks/{path}/{secret}': { - post: { - req: PublicIncomingWebhookData; - res: { - /** - * Successful Response - */ - 200: CreateWorkflowExecutionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/webhooks/{path}/{secret}/wait': { - post: { - req: PublicIncomingWebhookWaitData; - res: { - /** - * Successful Response - */ - 200: DSLContext; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workspaces': { - get: { - res: { - /** - * Successful Response - */ - 200: Array; - }; - }; - post: { - req: WorkspacesCreateWorkspaceData; - res: { - /** - * Successful Response - */ - 201: WorkspaceMetadataResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workspaces/search': { - get: { - req: WorkspacesSearchWorkspacesData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workspaces/{workspace_id}': { - get: { - req: WorkspacesGetWorkspaceData; - res: { - /** - * Successful Response - */ - 200: WorkspaceResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: WorkspacesUpdateWorkspaceData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: WorkspacesDeleteWorkspaceData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workspaces/{workspace_id}/memberships': { - get: { - req: WorkspacesListWorkspaceMembershipsData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: WorkspacesCreateWorkspaceMembershipData; - res: { - /** - * Successful Response - */ - 201: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workspaces/{workspace_id}/memberships/{user_id}': { - get: { - req: WorkspacesGetWorkspaceMembershipData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: WorkspacesDeleteWorkspaceMembershipData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflows': { - get: { - req: WorkflowsListWorkflowsData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: WorkflowsCreateWorkflowData; - res: { - /** - * Successful Response - */ - 201: WorkflowMetadataResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflows/{workflow_id}': { - get: { - req: WorkflowsGetWorkflowData; - res: { - /** - * Successful Response - */ - 200: WorkflowResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: WorkflowsUpdateWorkflowData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: WorkflowsDeleteWorkflowData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflows/{workflow_id}/commit': { - post: { - req: WorkflowsCommitWorkflowData; - res: { - /** - * Successful Response - */ - 200: CommitWorkflowResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflows/{workflow_id}/export': { - get: { - req: WorkflowsExportWorkflowData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflows/{workflow_id}/definition': { - get: { - req: WorkflowsGetWorkflowDefinitionData; - res: { - /** - * Successful Response - */ - 200: WorkflowDefinition; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: WorkflowsCreateWorkflowDefinitionData; - res: { - /** - * Successful Response - */ - 200: WorkflowDefinition; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflows/{workflow_id}/webhook': { - post: { - req: TriggersCreateWebhookData; - res: { - /** - * Successful Response - */ - 201: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - get: { - req: TriggersGetWebhookData; - res: { - /** - * Successful Response - */ - 200: WebhookResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: TriggersUpdateWebhookData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflow-executions': { - get: { - req: WorkflowExecutionsListWorkflowExecutionsData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: WorkflowExecutionsCreateWorkflowExecutionData; - res: { - /** - * Successful Response - */ - 200: CreateWorkflowExecutionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflow-executions/{execution_id}': { - get: { - req: WorkflowExecutionsGetWorkflowExecutionData; - res: { - /** - * Successful Response - */ - 200: WorkflowExecutionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflow-executions/{execution_id}/history': { - get: { - req: WorkflowExecutionsListWorkflowExecutionEventHistoryData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflow-executions/{execution_id}/cancel': { - post: { - req: WorkflowExecutionsCancelWorkflowExecutionData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/workflow-executions/{execution_id}/terminate': { - post: { - req: WorkflowExecutionsTerminateWorkflowExecutionData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/actions': { - get: { - req: ActionsListActionsData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: ActionsCreateActionData; - res: { - /** - * Successful Response - */ - 200: ActionReadMinimal; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/actions/{action_id}': { - get: { - req: ActionsGetActionData; - res: { - /** - * Successful Response - */ - 200: ActionRead; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: ActionsUpdateActionData; - res: { - /** - * Successful Response - */ - 200: ActionRead; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: ActionsDeleteActionData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/secrets/search': { - get: { - req: SecretsSearchSecretsData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/secrets': { - get: { - req: SecretsListSecretsData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: SecretsCreateSecretData; - res: { - /** - * Successful Response - */ - 201: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/secrets/{secret_name}': { - get: { - req: SecretsGetSecretByNameData; - res: { - /** - * Successful Response - */ - 200: SecretRead; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/secrets/{secret_id}': { - post: { - req: SecretsUpdateSecretByIdData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: SecretsDeleteSecretByIdData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/schedules': { - get: { - req: SchedulesListSchedulesData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: SchedulesCreateScheduleData; - res: { - /** - * Successful Response - */ - 200: Schedule; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/schedules/{schedule_id}': { - get: { - req: SchedulesGetScheduleData; - res: { - /** - * Successful Response - */ - 200: Schedule; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: SchedulesUpdateScheduleData; - res: { - /** - * Successful Response - */ - 200: Schedule; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: SchedulesDeleteScheduleData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/schedules/search': { - get: { - req: SchedulesSearchSchedulesData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/users/search': { - get: { - req: UsersSearchUserData; - res: { - /** - * Successful Response - */ - 200: UserRead; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/organization/members': { - get: { - res: { - /** - * Successful Response - */ - 200: Array; - }; - }; - }; - '/organization/members/{user_id}': { - delete: { - req: OrganizationDeleteOrgMemberData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: OrganizationUpdateOrgMemberData; - res: { - /** - * Successful Response - */ - 200: OrgMemberRead; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/organization/sessions': { - get: { - res: { - /** - * Successful Response - */ - 200: Array; - }; - }; - }; - '/organization/sessions/{session_id}': { - delete: { - req: OrganizationDeleteSessionData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/editor/functions': { - get: { - req: EditorListFunctionsData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/editor/actions': { - get: { - req: EditorListActionsData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/registry/repos/{repository_id}/sync': { - post: { - req: RegistryRepositoriesSyncRegistryRepositoryData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/registry/repos/{repository_id}/sync-executor': { - post: { - req: RegistryRepositoriesSyncExecutorFromRegistryRepositoryData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/registry/repos': { - get: { - res: { - /** - * Successful Response - */ - 200: Array; - }; - }; - post: { - req: RegistryRepositoriesCreateRegistryRepositoryData; - res: { - /** - * Successful Response - */ - 201: RegistryRepositoryRead; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/registry/repos/{repository_id}': { - get: { - req: RegistryRepositoriesGetRegistryRepositoryData; - res: { - /** - * Successful Response - */ - 200: RegistryRepositoryRead; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: RegistryRepositoriesUpdateRegistryRepositoryData; - res: { - /** - * Successful Response - */ - 200: RegistryRepositoryRead; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: RegistryRepositoriesDeleteRegistryRepositoryData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/registry/actions': { - get: { - res: { - /** - * Successful Response - */ - 200: Array; - }; - }; - post: { - req: RegistryActionsCreateRegistryActionData; - res: { - /** - * Successful Response - */ - 201: RegistryActionRead; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/registry/actions/{action_name}': { - get: { - req: RegistryActionsGetRegistryActionData; - res: { - /** - * Successful Response - */ - 200: RegistryActionRead; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: RegistryActionsUpdateRegistryActionData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: RegistryActionsDeleteRegistryActionData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/users/me': { - get: { - res: { - /** - * Successful Response - */ - 200: UserRead; - /** - * Missing token or inactive user. - */ - 401: unknown; - }; - }; - patch: { - req: UsersUsersPatchCurrentUserData; - res: { - /** - * Successful Response - */ - 200: UserRead; - /** - * Bad Request - */ - 400: ErrorModel; - /** - * Missing token or inactive user. - */ - 401: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/users/{id}': { - get: { - req: UsersUsersUserData; - res: { - /** - * Successful Response - */ - 200: UserRead; - /** - * Missing token or inactive user. - */ - 401: unknown; - /** - * Not a superuser. - */ - 403: unknown; - /** - * The user does not exist. - */ - 404: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: UsersUsersPatchUserData; - res: { - /** - * Successful Response - */ - 200: UserRead; - /** - * Bad Request - */ - 400: ErrorModel; - /** - * Missing token or inactive user. - */ - 401: unknown; - /** - * Not a superuser. - */ - 403: unknown; - /** - * The user does not exist. - */ - 404: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: UsersUsersDeleteUserData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Missing token or inactive user. - */ - 401: unknown; - /** - * Not a superuser. - */ - 403: unknown; - /** - * The user does not exist. - */ - 404: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/auth/login': { - post: { - req: AuthAuthDatabaseLoginData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * No Content - */ - 204: void; - /** - * Bad Request - */ - 400: ErrorModel; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/auth/logout': { - post: { - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * No Content - */ - 204: void; - /** - * Missing token or inactive user. - */ - 401: unknown; - }; - }; - }; - '/auth/register': { - post: { - req: AuthRegisterRegisterData; - res: { - /** - * Successful Response - */ - 201: UserRead; - /** - * Bad Request - */ - 400: ErrorModel; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/auth/forgot-password': { - post: { - req: AuthResetForgotPasswordData; - res: { - /** - * Successful Response - */ - 202: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/auth/reset-password': { - post: { - req: AuthResetResetPasswordData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * Bad Request - */ - 400: ErrorModel; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/auth/request-verify-token': { - post: { - req: AuthVerifyRequestTokenData; - res: { - /** - * Successful Response - */ - 202: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/auth/verify': { - post: { - req: AuthVerifyVerifyData; - res: { - /** - * Successful Response - */ - 200: UserRead; - /** - * Bad Request - */ - 400: ErrorModel; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/auth/oauth/authorize': { - get: { - req: AuthOauthGoogleDatabaseAuthorizeData; - res: { - /** - * Successful Response - */ - 200: OAuth2AuthorizeResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/auth/oauth/callback': { - get: { - req: AuthOauthGoogleDatabaseCallbackData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * Bad Request - */ - 400: ErrorModel; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/auth/saml/login': { - get: { - res: { - /** - * Successful Response - */ - 200: SAMLDatabaseLoginResponse; - }; - }; - }; - '/auth/saml/acs': { - post: { - req: AuthSsoAcsData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - }; - '/health': { - get: { - res: { - /** - * Successful Response - */ - 200: { - [key: string]: (string); - }; - }; - }; - }; -}; + "/webhooks/{path}/{secret}": { + post: { + req: PublicIncomingWebhookData + res: { + /** + * Successful Response + */ + 200: CreateWorkflowExecutionResponse + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/webhooks/{path}/{secret}/wait": { + post: { + req: PublicIncomingWebhookWaitData + res: { + /** + * Successful Response + */ + 200: DSLContext + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workspaces": { + get: { + res: { + /** + * Successful Response + */ + 200: Array + } + } + post: { + req: WorkspacesCreateWorkspaceData + res: { + /** + * Successful Response + */ + 201: WorkspaceMetadataResponse + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workspaces/search": { + get: { + req: WorkspacesSearchWorkspacesData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workspaces/{workspace_id}": { + get: { + req: WorkspacesGetWorkspaceData + res: { + /** + * Successful Response + */ + 200: WorkspaceResponse + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + patch: { + req: WorkspacesUpdateWorkspaceData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + delete: { + req: WorkspacesDeleteWorkspaceData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workspaces/{workspace_id}/memberships": { + get: { + req: WorkspacesListWorkspaceMembershipsData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + post: { + req: WorkspacesCreateWorkspaceMembershipData + res: { + /** + * Successful Response + */ + 201: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workspaces/{workspace_id}/memberships/{user_id}": { + get: { + req: WorkspacesGetWorkspaceMembershipData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + delete: { + req: WorkspacesDeleteWorkspaceMembershipData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflows": { + get: { + req: WorkflowsListWorkflowsData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + post: { + req: WorkflowsCreateWorkflowData + res: { + /** + * Successful Response + */ + 201: WorkflowMetadataResponse + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflows/{workflow_id}": { + get: { + req: WorkflowsGetWorkflowData + res: { + /** + * Successful Response + */ + 200: WorkflowResponse + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + patch: { + req: WorkflowsUpdateWorkflowData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + delete: { + req: WorkflowsDeleteWorkflowData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflows/{workflow_id}/commit": { + post: { + req: WorkflowsCommitWorkflowData + res: { + /** + * Successful Response + */ + 200: CommitWorkflowResponse + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflows/{workflow_id}/export": { + get: { + req: WorkflowsExportWorkflowData + res: { + /** + * Successful Response + */ + 200: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflows/{workflow_id}/definition": { + get: { + req: WorkflowsGetWorkflowDefinitionData + res: { + /** + * Successful Response + */ + 200: WorkflowDefinition + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + post: { + req: WorkflowsCreateWorkflowDefinitionData + res: { + /** + * Successful Response + */ + 200: WorkflowDefinition + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflows/{workflow_id}/webhook": { + post: { + req: TriggersCreateWebhookData + res: { + /** + * Successful Response + */ + 201: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + get: { + req: TriggersGetWebhookData + res: { + /** + * Successful Response + */ + 200: WebhookResponse + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + patch: { + req: TriggersUpdateWebhookData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflow-executions": { + get: { + req: WorkflowExecutionsListWorkflowExecutionsData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + post: { + req: WorkflowExecutionsCreateWorkflowExecutionData + res: { + /** + * Successful Response + */ + 200: CreateWorkflowExecutionResponse + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflow-executions/{execution_id}": { + get: { + req: WorkflowExecutionsGetWorkflowExecutionData + res: { + /** + * Successful Response + */ + 200: WorkflowExecutionResponse + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflow-executions/{execution_id}/history": { + get: { + req: WorkflowExecutionsListWorkflowExecutionEventHistoryData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflow-executions/{execution_id}/cancel": { + post: { + req: WorkflowExecutionsCancelWorkflowExecutionData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/workflow-executions/{execution_id}/terminate": { + post: { + req: WorkflowExecutionsTerminateWorkflowExecutionData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/actions": { + get: { + req: ActionsListActionsData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + post: { + req: ActionsCreateActionData + res: { + /** + * Successful Response + */ + 200: ActionReadMinimal + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/actions/{action_id}": { + get: { + req: ActionsGetActionData + res: { + /** + * Successful Response + */ + 200: ActionRead + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + post: { + req: ActionsUpdateActionData + res: { + /** + * Successful Response + */ + 200: ActionRead + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + delete: { + req: ActionsDeleteActionData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/secrets/search": { + get: { + req: SecretsSearchSecretsData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/secrets": { + get: { + req: SecretsListSecretsData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + post: { + req: SecretsCreateSecretData + res: { + /** + * Successful Response + */ + 201: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/secrets/{secret_name}": { + get: { + req: SecretsGetSecretByNameData + res: { + /** + * Successful Response + */ + 200: SecretRead + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/secrets/{secret_id}": { + post: { + req: SecretsUpdateSecretByIdData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + delete: { + req: SecretsDeleteSecretByIdData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/schedules": { + get: { + req: SchedulesListSchedulesData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + post: { + req: SchedulesCreateScheduleData + res: { + /** + * Successful Response + */ + 200: Schedule + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/schedules/{schedule_id}": { + get: { + req: SchedulesGetScheduleData + res: { + /** + * Successful Response + */ + 200: Schedule + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + post: { + req: SchedulesUpdateScheduleData + res: { + /** + * Successful Response + */ + 200: Schedule + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + delete: { + req: SchedulesDeleteScheduleData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/schedules/search": { + get: { + req: SchedulesSearchSchedulesData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/users/search": { + get: { + req: UsersSearchUserData + res: { + /** + * Successful Response + */ + 200: UserRead + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/organization/members": { + get: { + res: { + /** + * Successful Response + */ + 200: Array + } + } + } + "/organization/members/{user_id}": { + delete: { + req: OrganizationDeleteOrgMemberData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + patch: { + req: OrganizationUpdateOrgMemberData + res: { + /** + * Successful Response + */ + 200: OrgMemberRead + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/organization/sessions": { + get: { + res: { + /** + * Successful Response + */ + 200: Array + } + } + } + "/organization/sessions/{session_id}": { + delete: { + req: OrganizationDeleteSessionData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/editor/functions": { + get: { + req: EditorListFunctionsData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/editor/actions": { + get: { + req: EditorListActionsData + res: { + /** + * Successful Response + */ + 200: Array + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/registry/repos/{repository_id}/sync": { + post: { + req: RegistryRepositoriesSyncRegistryRepositoryData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/registry/repos/{repository_id}/sync-executor": { + post: { + req: RegistryRepositoriesSyncExecutorFromRegistryRepositoryData + res: { + /** + * Successful Response + */ + 200: Array + } + } + } + "/registry/repos": { + get: { + res: { + /** + * Successful Response + */ + 200: Array + } + } + post: { + req: RegistryRepositoriesCreateRegistryRepositoryData + res: { + /** + * Successful Response + */ + 201: RegistryRepositoryRead + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/registry/repos/{repository_id}": { + get: { + req: RegistryRepositoriesGetRegistryRepositoryData + res: { + /** + * Successful Response + */ + 200: RegistryRepositoryRead + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + patch: { + req: RegistryRepositoriesUpdateRegistryRepositoryData + res: { + /** + * Successful Response + */ + 200: RegistryRepositoryRead + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + delete: { + req: RegistryRepositoriesDeleteRegistryRepositoryData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/registry/actions": { + get: { + res: { + /** + * Successful Response + */ + 200: Array + } + } + post: { + req: RegistryActionsCreateRegistryActionData + res: { + /** + * Successful Response + */ + 201: RegistryActionRead + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/registry/actions/{action_name}": { + get: { + req: RegistryActionsGetRegistryActionData + res: { + /** + * Successful Response + */ + 200: RegistryActionRead + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + patch: { + req: RegistryActionsUpdateRegistryActionData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + delete: { + req: RegistryActionsDeleteRegistryActionData + res: { + /** + * Successful Response + */ + 204: void + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/users/me": { + get: { + res: { + /** + * Successful Response + */ + 200: UserRead + /** + * Missing token or inactive user. + */ + 401: unknown + } + } + patch: { + req: UsersUsersPatchCurrentUserData + res: { + /** + * Successful Response + */ + 200: UserRead + /** + * Bad Request + */ + 400: ErrorModel + /** + * Missing token or inactive user. + */ + 401: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/users/{id}": { + get: { + req: UsersUsersUserData + res: { + /** + * Successful Response + */ + 200: UserRead + /** + * Missing token or inactive user. + */ + 401: unknown + /** + * Not a superuser. + */ + 403: unknown + /** + * The user does not exist. + */ + 404: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + patch: { + req: UsersUsersPatchUserData + res: { + /** + * Successful Response + */ + 200: UserRead + /** + * Bad Request + */ + 400: ErrorModel + /** + * Missing token or inactive user. + */ + 401: unknown + /** + * Not a superuser. + */ + 403: unknown + /** + * The user does not exist. + */ + 404: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + delete: { + req: UsersUsersDeleteUserData + res: { + /** + * Successful Response + */ + 204: void + /** + * Missing token or inactive user. + */ + 401: unknown + /** + * Not a superuser. + */ + 403: unknown + /** + * The user does not exist. + */ + 404: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/auth/login": { + post: { + req: AuthAuthDatabaseLoginData + res: { + /** + * Successful Response + */ + 200: unknown + /** + * No Content + */ + 204: void + /** + * Bad Request + */ + 400: ErrorModel + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/auth/logout": { + post: { + res: { + /** + * Successful Response + */ + 200: unknown + /** + * No Content + */ + 204: void + /** + * Missing token or inactive user. + */ + 401: unknown + } + } + } + "/auth/register": { + post: { + req: AuthRegisterRegisterData + res: { + /** + * Successful Response + */ + 201: UserRead + /** + * Bad Request + */ + 400: ErrorModel + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/auth/forgot-password": { + post: { + req: AuthResetForgotPasswordData + res: { + /** + * Successful Response + */ + 202: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/auth/reset-password": { + post: { + req: AuthResetResetPasswordData + res: { + /** + * Successful Response + */ + 200: unknown + /** + * Bad Request + */ + 400: ErrorModel + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/auth/request-verify-token": { + post: { + req: AuthVerifyRequestTokenData + res: { + /** + * Successful Response + */ + 202: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/auth/verify": { + post: { + req: AuthVerifyVerifyData + res: { + /** + * Successful Response + */ + 200: UserRead + /** + * Bad Request + */ + 400: ErrorModel + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/auth/oauth/authorize": { + get: { + req: AuthOauthGoogleDatabaseAuthorizeData + res: { + /** + * Successful Response + */ + 200: OAuth2AuthorizeResponse + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/auth/oauth/callback": { + get: { + req: AuthOauthGoogleDatabaseCallbackData + res: { + /** + * Successful Response + */ + 200: unknown + /** + * Bad Request + */ + 400: ErrorModel + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/auth/saml/login": { + get: { + res: { + /** + * Successful Response + */ + 200: SAMLDatabaseLoginResponse + } + } + } + "/auth/saml/acs": { + post: { + req: AuthSsoAcsData + res: { + /** + * Successful Response + */ + 200: unknown + /** + * Validation Error + */ + 422: HTTPValidationError + } + } + } + "/health": { + get: { + res: { + /** + * Successful Response + */ + 200: { + [key: string]: string + } + } + } + } +} diff --git a/tracecat/api/executor.py b/tracecat/api/executor.py index efdf52754..8475ecfb1 100644 --- a/tracecat/api/executor.py +++ b/tracecat/api/executor.py @@ -24,6 +24,7 @@ @asynccontextmanager async def lifespan(app: FastAPI): await setup_oss_models() + executor = get_executor() try: await setup_custom_remote_repository() except Exception as e: diff --git a/tracecat/registry/actions/service.py b/tracecat/registry/actions/service.py index 2b0c13d3d..997194e26 100644 --- a/tracecat/registry/actions/service.py +++ b/tracecat/registry/actions/service.py @@ -22,6 +22,7 @@ RegistryActionUpdate, model_converters, ) +from tracecat.registry.client import RegistryClient from tracecat.registry.loaders import get_bound_action_impl from tracecat.registry.repository import Repository from tracecat.types.auth import Role