This repository was archived by the owner on Mar 1, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathmodels.ts
More file actions
172 lines (170 loc) · 11.1 KB
/
models.ts
File metadata and controls
172 lines (170 loc) · 11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
//////////////////////////////////////////////////////////////////////////////////////////////
// DO NOT MODIFY THIS FILE //
// This file is automatically generated by ZenStack CLI and should not be manually updated. //
//////////////////////////////////////////////////////////////////////////////////////////////
/* eslint-disable */
import { schema as $schema, type SchemaType as $Schema } from "./schema";
import type { ModelResult as $ModelResult } from "@zenstackhq/orm";
export type User = $ModelResult<$Schema, "User">;
export type InvitationCode = $ModelResult<$Schema, "InvitationCode">;
/**
* Used to generate PersonalAccessTokens, they're one-time use
*/
export type AuthorizationCode = $ModelResult<$Schema, "AuthorizationCode">;
export type PersonalAccessToken = $ModelResult<$Schema, "PersonalAccessToken">;
export type Organization = $ModelResult<$Schema, "Organization">;
export type OrgMember = $ModelResult<$Schema, "OrgMember">;
export type OrgMemberInvite = $ModelResult<$Schema, "OrgMemberInvite">;
export type RuntimeEnvironment = $ModelResult<$Schema, "RuntimeEnvironment">;
export type Project = $ModelResult<$Schema, "Project">;
export type SecretReference = $ModelResult<$Schema, "SecretReference">;
export type SecretStore = $ModelResult<$Schema, "SecretStore">;
export type DataMigration = $ModelResult<$Schema, "DataMigration">;
export type BackgroundWorker = $ModelResult<$Schema, "BackgroundWorker">;
export type BackgroundWorkerFile = $ModelResult<$Schema, "BackgroundWorkerFile">;
export type BackgroundWorkerTask = $ModelResult<$Schema, "BackgroundWorkerTask">;
export type TaskRun = $ModelResult<$Schema, "TaskRun">;
/**
* Used by the RunEngine during TaskRun execution
* It has the required information to transactionally progress a run through states,
* and prevent side effects like heartbeats failing a run that has progressed.
* It is optimised for performance and is designed to be cleared at some point,
* so there are no cascading relationships to other models.
*/
export type TaskRunExecutionSnapshot = $ModelResult<$Schema, "TaskRunExecutionSnapshot">;
export type TaskRunCheckpoint = $ModelResult<$Schema, "TaskRunCheckpoint">;
/**
* A Waitpoint blocks a run from continuing until it's completed
* If there's a waitpoint blocking a run, it shouldn't be in the queue
*/
export type Waitpoint = $ModelResult<$Schema, "Waitpoint">;
export type TaskRunWaitpoint = $ModelResult<$Schema, "TaskRunWaitpoint">;
export type WaitpointTag = $ModelResult<$Schema, "WaitpointTag">;
export type FeatureFlag = $ModelResult<$Schema, "FeatureFlag">;
export type WorkerInstance = $ModelResult<$Schema, "WorkerInstance">;
export type WorkerInstanceGroup = $ModelResult<$Schema, "WorkerInstanceGroup">;
export type WorkerGroupToken = $ModelResult<$Schema, "WorkerGroupToken">;
export type TaskRunTag = $ModelResult<$Schema, "TaskRunTag">;
/**
* This is used for triggerAndWait and batchTriggerAndWait. The taskRun is the child task, it points at a parent attempt or a batch
*/
export type TaskRunDependency = $ModelResult<$Schema, "TaskRunDependency">;
/**
* deprecated, we hadn't included the project id in the unique constraint
*/
export type TaskRunCounter = $ModelResult<$Schema, "TaskRunCounter">;
/**
* Used for the TaskRun number (e.g. #1,421)
*/
export type TaskRunNumberCounter = $ModelResult<$Schema, "TaskRunNumberCounter">;
/**
* This is not used from engine v2+, attempts use the TaskRunExecutionSnapshot and TaskRun
*/
export type TaskRunAttempt = $ModelResult<$Schema, "TaskRunAttempt">;
/**
* This is the unified otel span/log model that will eventually be replaced by clickhouse
*/
export type TaskEvent = $ModelResult<$Schema, "TaskEvent">;
export type TaskQueue = $ModelResult<$Schema, "TaskQueue">;
export type BatchTaskRun = $ModelResult<$Schema, "BatchTaskRun">;
/**
* Used in engine V1 only
*/
export type BatchTaskRunItem = $ModelResult<$Schema, "BatchTaskRunItem">;
export type EnvironmentVariable = $ModelResult<$Schema, "EnvironmentVariable">;
export type EnvironmentVariableValue = $ModelResult<$Schema, "EnvironmentVariableValue">;
export type Checkpoint = $ModelResult<$Schema, "Checkpoint">;
export type CheckpointRestoreEvent = $ModelResult<$Schema, "CheckpointRestoreEvent">;
export type WorkerDeployment = $ModelResult<$Schema, "WorkerDeployment">;
export type WorkerDeploymentPromotion = $ModelResult<$Schema, "WorkerDeploymentPromotion">;
/**
* Schedules can be attached to tasks to trigger them on a schedule
*/
export type TaskSchedule = $ModelResult<$Schema, "TaskSchedule">;
/**
* An instance links a schedule with an environment
*/
export type TaskScheduleInstance = $ModelResult<$Schema, "TaskScheduleInstance">;
export type RuntimeEnvironmentSession = $ModelResult<$Schema, "RuntimeEnvironmentSession">;
export type ProjectAlertChannel = $ModelResult<$Schema, "ProjectAlertChannel">;
export type ProjectAlert = $ModelResult<$Schema, "ProjectAlert">;
export type ProjectAlertStorage = $ModelResult<$Schema, "ProjectAlertStorage">;
export type OrganizationIntegration = $ModelResult<$Schema, "OrganizationIntegration">;
/**
* Bulk actions, like canceling and replaying runs
*/
export type BulkActionGroup = $ModelResult<$Schema, "BulkActionGroup">;
export type BulkActionItem = $ModelResult<$Schema, "BulkActionItem">;
export type RealtimeStreamChunk = $ModelResult<$Schema, "RealtimeStreamChunk">;
/**
* This is the unified otel span/log model that will eventually be replaced by clickhouse
*/
export type TaskEventPartitioned = $ModelResult<$Schema, "TaskEventPartitioned">;
export const AuthenticationMethod = $schema.enums.AuthenticationMethod.values;
export type AuthenticationMethod = (typeof AuthenticationMethod)[keyof typeof AuthenticationMethod];
export const OrgMemberRole = $schema.enums.OrgMemberRole.values;
export type OrgMemberRole = (typeof OrgMemberRole)[keyof typeof OrgMemberRole];
export const RuntimeEnvironmentType = $schema.enums.RuntimeEnvironmentType.values;
export type RuntimeEnvironmentType = (typeof RuntimeEnvironmentType)[keyof typeof RuntimeEnvironmentType];
export const ProjectVersion = $schema.enums.ProjectVersion.values;
export type ProjectVersion = (typeof ProjectVersion)[keyof typeof ProjectVersion];
export const SecretStoreProvider = $schema.enums.SecretStoreProvider.values;
export type SecretStoreProvider = (typeof SecretStoreProvider)[keyof typeof SecretStoreProvider];
export const TaskTriggerSource = $schema.enums.TaskTriggerSource.values;
export type TaskTriggerSource = (typeof TaskTriggerSource)[keyof typeof TaskTriggerSource];
export const TaskRunStatus = $schema.enums.TaskRunStatus.values;
export type TaskRunStatus = (typeof TaskRunStatus)[keyof typeof TaskRunStatus];
export const RunEngineVersion = $schema.enums.RunEngineVersion.values;
export type RunEngineVersion = (typeof RunEngineVersion)[keyof typeof RunEngineVersion];
export const TaskRunExecutionStatus = $schema.enums.TaskRunExecutionStatus.values;
export type TaskRunExecutionStatus = (typeof TaskRunExecutionStatus)[keyof typeof TaskRunExecutionStatus];
export const TaskRunCheckpointType = $schema.enums.TaskRunCheckpointType.values;
export type TaskRunCheckpointType = (typeof TaskRunCheckpointType)[keyof typeof TaskRunCheckpointType];
export const WaitpointType = $schema.enums.WaitpointType.values;
export type WaitpointType = (typeof WaitpointType)[keyof typeof WaitpointType];
export const WaitpointStatus = $schema.enums.WaitpointStatus.values;
export type WaitpointStatus = (typeof WaitpointStatus)[keyof typeof WaitpointStatus];
export const WorkerInstanceGroupType = $schema.enums.WorkerInstanceGroupType.values;
export type WorkerInstanceGroupType = (typeof WorkerInstanceGroupType)[keyof typeof WorkerInstanceGroupType];
export const TaskRunAttemptStatus = $schema.enums.TaskRunAttemptStatus.values;
export type TaskRunAttemptStatus = (typeof TaskRunAttemptStatus)[keyof typeof TaskRunAttemptStatus];
export const TaskEventLevel = $schema.enums.TaskEventLevel.values;
export type TaskEventLevel = (typeof TaskEventLevel)[keyof typeof TaskEventLevel];
export const TaskEventKind = $schema.enums.TaskEventKind.values;
export type TaskEventKind = (typeof TaskEventKind)[keyof typeof TaskEventKind];
export const TaskEventStatus = $schema.enums.TaskEventStatus.values;
export type TaskEventStatus = (typeof TaskEventStatus)[keyof typeof TaskEventStatus];
export const TaskQueueType = $schema.enums.TaskQueueType.values;
export type TaskQueueType = (typeof TaskQueueType)[keyof typeof TaskQueueType];
export const TaskQueueVersion = $schema.enums.TaskQueueVersion.values;
export type TaskQueueVersion = (typeof TaskQueueVersion)[keyof typeof TaskQueueVersion];
export const BatchTaskRunStatus = $schema.enums.BatchTaskRunStatus.values;
export type BatchTaskRunStatus = (typeof BatchTaskRunStatus)[keyof typeof BatchTaskRunStatus];
export const BatchTaskRunItemStatus = $schema.enums.BatchTaskRunItemStatus.values;
export type BatchTaskRunItemStatus = (typeof BatchTaskRunItemStatus)[keyof typeof BatchTaskRunItemStatus];
export const CheckpointType = $schema.enums.CheckpointType.values;
export type CheckpointType = (typeof CheckpointType)[keyof typeof CheckpointType];
export const CheckpointRestoreEventType = $schema.enums.CheckpointRestoreEventType.values;
export type CheckpointRestoreEventType = (typeof CheckpointRestoreEventType)[keyof typeof CheckpointRestoreEventType];
export const WorkerDeploymentType = $schema.enums.WorkerDeploymentType.values;
export type WorkerDeploymentType = (typeof WorkerDeploymentType)[keyof typeof WorkerDeploymentType];
export const WorkerDeploymentStatus = $schema.enums.WorkerDeploymentStatus.values;
export type WorkerDeploymentStatus = (typeof WorkerDeploymentStatus)[keyof typeof WorkerDeploymentStatus];
export const ScheduleType = $schema.enums.ScheduleType.values;
export type ScheduleType = (typeof ScheduleType)[keyof typeof ScheduleType];
export const ScheduleGeneratorType = $schema.enums.ScheduleGeneratorType.values;
export type ScheduleGeneratorType = (typeof ScheduleGeneratorType)[keyof typeof ScheduleGeneratorType];
export const ProjectAlertChannelType = $schema.enums.ProjectAlertChannelType.values;
export type ProjectAlertChannelType = (typeof ProjectAlertChannelType)[keyof typeof ProjectAlertChannelType];
export const ProjectAlertType = $schema.enums.ProjectAlertType.values;
export type ProjectAlertType = (typeof ProjectAlertType)[keyof typeof ProjectAlertType];
export const ProjectAlertStatus = $schema.enums.ProjectAlertStatus.values;
export type ProjectAlertStatus = (typeof ProjectAlertStatus)[keyof typeof ProjectAlertStatus];
export const IntegrationService = $schema.enums.IntegrationService.values;
export type IntegrationService = (typeof IntegrationService)[keyof typeof IntegrationService];
export const BulkActionType = $schema.enums.BulkActionType.values;
export type BulkActionType = (typeof BulkActionType)[keyof typeof BulkActionType];
export const BulkActionStatus = $schema.enums.BulkActionStatus.values;
export type BulkActionStatus = (typeof BulkActionStatus)[keyof typeof BulkActionStatus];
export const BulkActionItemStatus = $schema.enums.BulkActionItemStatus.values;
export type BulkActionItemStatus = (typeof BulkActionItemStatus)[keyof typeof BulkActionItemStatus];