@fabrika/control-contract 0.4.8 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/index.ts +11 -3
- package/src/rpc.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabrika/control-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"zod": "^3.25.76",
|
|
28
|
-
"@fabrika/auth-core": "0.
|
|
29
|
-
"@fabrika/app": "0.
|
|
30
|
-
"@fabrika/provider-contract": "0.
|
|
28
|
+
"@fabrika/auth-core": "0.5.1",
|
|
29
|
+
"@fabrika/app": "0.5.1",
|
|
30
|
+
"@fabrika/provider-contract": "0.5.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/index.ts
CHANGED
|
@@ -218,10 +218,10 @@ export interface AppEnvDto {
|
|
|
218
218
|
/** The run whose snapshot is this environment's active access; null until a run publishes one. */
|
|
219
219
|
publishedRunId: string | null
|
|
220
220
|
/**
|
|
221
|
-
* The published snapshot's steps off the paved road,
|
|
222
|
-
* its migrations declare.
|
|
221
|
+
* The published snapshot's steps off the paved road, grouped by the site or migration that takes them: the reach its
|
|
222
|
+
* sites declare and the database code its migrations declare. Listed whether or not the environment is protected.
|
|
223
223
|
*/
|
|
224
|
-
|
|
224
|
+
deviationSubjects: DeviationSubjectDto[]
|
|
225
225
|
namespaceId: string | null
|
|
226
226
|
provider: string
|
|
227
227
|
target: ProviderEnvelopeDto
|
|
@@ -229,6 +229,14 @@ export interface AppEnvDto {
|
|
|
229
229
|
createdAt: number
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
/** One endpoint, job or migration of a published snapshot and its steps off the paved road. */
|
|
233
|
+
export interface DeviationSubjectDto {
|
|
234
|
+
/** `Endpoint \`id\``, `Job \`name\`` or `Migration \`file\``. */
|
|
235
|
+
subject: string
|
|
236
|
+
/** Each step, phrased to follow the subject: `declares raw SQL (\`read\`)`. */
|
|
237
|
+
steps: string[]
|
|
238
|
+
}
|
|
239
|
+
|
|
232
240
|
export interface PutAppEnvRequest {
|
|
233
241
|
domain?: string | null
|
|
234
242
|
publicOrigin?: string | null
|
package/src/rpc.ts
CHANGED
|
@@ -192,6 +192,8 @@ export interface ControlRpcContract {
|
|
|
192
192
|
}
|
|
193
193
|
runs: {
|
|
194
194
|
list: RpcProcedure<RunListInput, CursorList<RunDto>>
|
|
195
|
+
/** Per app environment, its newest finished run when that run failed: a later finished run supersedes a failure. */
|
|
196
|
+
latestFailures: RpcProcedure<void, ListResponse<RunDto>>
|
|
195
197
|
get: RpcProcedure<RunIdInput, RunDto>
|
|
196
198
|
log: RpcProcedure<RunIdInput, RunLogResponse>
|
|
197
199
|
tail: RpcProcedure<TailRunInput, RunTailResponse>
|