@fabrika/control-contract 0.9.0-dev.31 → 0.9.0-dev.33
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 +5 -0
- package/src/rpc.ts +7 -0
- package/types/src/index.d.ts +5 -0
- package/types/src/rpc.d.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabrika/control-contract",
|
|
3
|
-
"version": "0.9.0-dev.
|
|
3
|
+
"version": "0.9.0-dev.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"zod": "^3.25.76",
|
|
29
|
-
"@fabrika/auth-core": "0.9.0-dev.
|
|
30
|
-
"@fabrika/app": "0.9.0-dev.
|
|
31
|
-
"@fabrika/provider-contract": "0.9.0-dev.
|
|
29
|
+
"@fabrika/auth-core": "0.9.0-dev.33",
|
|
30
|
+
"@fabrika/app": "0.9.0-dev.33",
|
|
31
|
+
"@fabrika/provider-contract": "0.9.0-dev.33"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/src/index.ts
CHANGED
|
@@ -276,6 +276,11 @@ export interface AppEnvDto {
|
|
|
276
276
|
* a Control released before it.
|
|
277
277
|
*/
|
|
278
278
|
accessMap?: AccessMapDto
|
|
279
|
+
/**
|
|
280
|
+
* When Control took the environment offline (`apps.environments.suspend`), in Unix seconds; absent while it serves,
|
|
281
|
+
* and from a Control released before it.
|
|
282
|
+
*/
|
|
283
|
+
suspendedAt?: number
|
|
279
284
|
namespaceId: string | null
|
|
280
285
|
provider: string
|
|
281
286
|
target: ProviderEnvelopeDto
|
package/src/rpc.ts
CHANGED
|
@@ -194,6 +194,13 @@ export interface ControlRpcContract {
|
|
|
194
194
|
protect: RpcProcedure<SetEnvironmentProtectionRequest, AppEnvDto>
|
|
195
195
|
/** The environment's next deploy retires the key its signed tokens are signed with and signs with a new one. */
|
|
196
196
|
rotateTokenKey: RpcProcedure<AppEnvironmentInput, RotateTokenKeyResponse>
|
|
197
|
+
/**
|
|
198
|
+
* Take the environment offline in an incident: on a namespace proxy every request to it answers 503 once the
|
|
199
|
+
* republished proxy is live; on Cloudflare its object goes into maintenance `closed`. Repeating it is a retry.
|
|
200
|
+
*/
|
|
201
|
+
suspend: RpcProcedure<AppEnvironmentInput, AppEnvDto>
|
|
202
|
+
/** Undo `suspend`: the proxy routes the environment again, or the object returns to the mode it was in. */
|
|
203
|
+
resume: RpcProcedure<AppEnvironmentInput, AppEnvDto>
|
|
197
204
|
}
|
|
198
205
|
secrets: {
|
|
199
206
|
list: RpcProcedure<AppIdInput, ListResponse<AppSecretDto>>
|
package/types/src/index.d.ts
CHANGED
|
@@ -242,6 +242,11 @@ export interface AppEnvDto {
|
|
|
242
242
|
* a Control released before it.
|
|
243
243
|
*/
|
|
244
244
|
accessMap?: AccessMapDto;
|
|
245
|
+
/**
|
|
246
|
+
* When Control took the environment offline (`apps.environments.suspend`), in Unix seconds; absent while it serves,
|
|
247
|
+
* and from a Control released before it.
|
|
248
|
+
*/
|
|
249
|
+
suspendedAt?: number;
|
|
245
250
|
namespaceId: string | null;
|
|
246
251
|
provider: string;
|
|
247
252
|
target: ProviderEnvelopeDto;
|
package/types/src/rpc.d.ts
CHANGED
|
@@ -116,6 +116,13 @@ export interface ControlRpcContract {
|
|
|
116
116
|
protect: RpcProcedure<SetEnvironmentProtectionRequest, AppEnvDto>;
|
|
117
117
|
/** The environment's next deploy retires the key its signed tokens are signed with and signs with a new one. */
|
|
118
118
|
rotateTokenKey: RpcProcedure<AppEnvironmentInput, RotateTokenKeyResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* Take the environment offline in an incident: on a namespace proxy every request to it answers 503 once the
|
|
121
|
+
* republished proxy is live; on Cloudflare its object goes into maintenance `closed`. Repeating it is a retry.
|
|
122
|
+
*/
|
|
123
|
+
suspend: RpcProcedure<AppEnvironmentInput, AppEnvDto>;
|
|
124
|
+
/** Undo `suspend`: the proxy routes the environment again, or the object returns to the mode it was in. */
|
|
125
|
+
resume: RpcProcedure<AppEnvironmentInput, AppEnvDto>;
|
|
119
126
|
};
|
|
120
127
|
secrets: {
|
|
121
128
|
list: RpcProcedure<AppIdInput, ListResponse<AppSecretDto>>;
|