@fabrika/control-contract 0.5.0 → 0.5.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabrika/control-contract",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
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.5.0",
29
- "@fabrika/app": "0.5.0",
30
- "@fabrika/provider-contract": "0.5.0"
28
+ "@fabrika/auth-core": "0.5.2",
29
+ "@fabrika/app": "0.5.2",
30
+ "@fabrika/provider-contract": "0.5.2"
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, one line each: the reach its sites declare and the database code
222
- * its migrations declare. Each needs closer review; listed whether or not the environment is protected.
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
- deviations: string[]
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
@@ -165,6 +165,7 @@ export interface ControlRpcContract {
165
165
  secrets: {
166
166
  list: RpcProcedure<AppIdInput, ListResponse<AppSecretDto>>
167
167
  put: RpcProcedure<PutAppSecretInput, AppSecretDto>
168
+ /** Removes the value where it is stored (vault or provider), then the row; a failed value delete keeps the row. */
168
169
  delete: RpcProcedure<AppNamedValueInput, OkResponse>
169
170
  }
170
171
  variables: {
@@ -176,6 +177,7 @@ export interface ControlRpcContract {
176
177
  vault: {
177
178
  set: RpcProcedure<SecretValueInput, SecretValueResponse>
178
179
  rotate: RpcProcedure<SecretValueInput, OkResponse>
180
+ /** The same operation as `apps.secrets.delete`. */
179
181
  delete: RpcProcedure<AppNamedValueInput, OkResponse>
180
182
  }
181
183
  namespaces: {
@@ -192,6 +194,8 @@ export interface ControlRpcContract {
192
194
  }
193
195
  runs: {
194
196
  list: RpcProcedure<RunListInput, CursorList<RunDto>>
197
+ /** Per app environment, its newest finished run when that run failed: a later finished run supersedes a failure. */
198
+ latestFailures: RpcProcedure<void, ListResponse<RunDto>>
195
199
  get: RpcProcedure<RunIdInput, RunDto>
196
200
  log: RpcProcedure<RunIdInput, RunLogResponse>
197
201
  tail: RpcProcedure<TailRunInput, RunTailResponse>