// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package org_tangled
// schema: org.tangled.temp.migrator.defs
const ()
// TempMigratorDefs_Job is a "job" in the org.tangled.temp.migrator.defs schema.
//
// Migration status of a repository.
type TempMigratorDefs_Job struct {
// attempts: Number of migration attempts.
Attempts int64 `json:"attempts" cborgen:"attempts"`
// error: Error message from the last failed attempt.
Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
// id: Unique job ID.
Id string `json:"id" cborgen:"id"`
KnotDid string `json:"knotDid" cborgen:"knotDid"`
Name string `json:"name" cborgen:"name"`
Private bool `json:"private" cborgen:"private"`
// repoDid: DID of the created repository, once created on the knot.
RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
SourceUrl string `json:"sourceUrl" cborgen:"sourceUrl"`
// status: Current status of the migration job.
Status string `json:"status" cborgen:"status"`
}
// TempMigratorDefs_NewJob is a "newJob" in the org.tangled.temp.migrator.defs schema.
//
// A repository to migrate.
type TempMigratorDefs_NewJob struct {
// description: Repository description.
Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
// knotDid: DID of the destination knot.
KnotDid string `json:"knotDid" cborgen:"knotDid"`
// name: Repository name reserved on the destination knot.
Name string `json:"name" cborgen:"name"`
// private: Whether the source repository is private.
Private *bool `json:"private,omitempty" cborgen:"private,omitempty"`
// sourceUrl: HTTPS URL of the source repository.
SourceUrl string `json:"sourceUrl" cborgen:"sourceUrl"`
}
// TempMigratorDefs_Task is a "task" in the org.tangled.temp.migrator.defs schema.
//
// A migration task containing repository jobs.
type TempMigratorDefs_Task struct {
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Id string `json:"id" cborgen:"id"`
Jobs []*TempMigratorDefs_Job `json:"jobs" cborgen:"jobs"`
// ownerDid: DID of the user who created the task.
OwnerDid string `json:"ownerDid" cborgen:"ownerDid"`
UpdatedAt *string `json:"updatedAt,omitempty" cborgen:"updatedAt,omitempty"`
}