45 lines
1.4 KiB
Go
45 lines
1.4 KiB
Go
package workflow
|
|
|
|
// Registration represents a workflow registration.
|
|
type Registration struct {
|
|
ID string `json:"id"`
|
|
WorkflowID string `json:"workflow_id"`
|
|
TaskQueue string `json:"task_queue"`
|
|
Workflow *Workflow `json:"workflow,omitempty"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
// RegistrationListResponse is the response from listing workflow registrations.
|
|
type RegistrationListResponse struct {
|
|
Registrations []Registration `json:"registrations"`
|
|
NextCursor *string `json:"next_cursor,omitempty"`
|
|
}
|
|
|
|
// RegistrationListParams holds query parameters for listing registrations.
|
|
type RegistrationListParams struct {
|
|
WorkflowID *string
|
|
TaskQueue *string
|
|
ActiveOnly *bool
|
|
IncludeShared *bool
|
|
WorkflowSearch *string
|
|
Archived *bool
|
|
WithWorkflow *bool
|
|
AvailableInChatAssistant *bool
|
|
Limit *int
|
|
Cursor *string
|
|
}
|
|
|
|
// RegistrationGetParams holds query parameters for getting a registration.
|
|
type RegistrationGetParams struct {
|
|
WithWorkflow *bool
|
|
IncludeShared *bool
|
|
}
|
|
|
|
// WorkerInfo holds information about the current worker.
|
|
type WorkerInfo struct {
|
|
SchedulerURL string `json:"scheduler_url"`
|
|
Namespace string `json:"namespace"`
|
|
TLS bool `json:"tls"`
|
|
}
|