@fabrika/control-contract 0.8.1 → 0.9.0-dev.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 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabrika/control-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0-dev.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.9.0-dev.1",
|
|
29
|
+
"@fabrika/app": "0.9.0-dev.1",
|
|
30
|
+
"@fabrika/provider-contract": "0.9.0-dev.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/index.ts
CHANGED
|
@@ -207,9 +207,18 @@ export interface UpdateAppRequest extends AppOptionalFields {
|
|
|
207
207
|
repoUrl?: string
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
/**
|
|
211
|
+
* `dev` follows the workspace bound to it through its launcher, without a run (ADR-0049); at most one per application,
|
|
212
|
+
* never protected and never production. Every other environment is `standard`.
|
|
213
|
+
*/
|
|
214
|
+
export const APP_ENV_KINDS = ['standard', 'dev'] as const
|
|
215
|
+
|
|
216
|
+
export type AppEnvKind = (typeof APP_ENV_KINDS)[number]
|
|
217
|
+
|
|
210
218
|
export interface AppEnvDto {
|
|
211
219
|
appId: string
|
|
212
220
|
env: string
|
|
221
|
+
kind: AppEnvKind
|
|
213
222
|
domain: string | null
|
|
214
223
|
publicOrigin: string | null
|
|
215
224
|
/** The exact origins whose pages may call this environment's cross-origin endpoints (ADR-0022); empty lists none. */
|
|
@@ -272,6 +281,8 @@ export interface PutAppEnvRequest {
|
|
|
272
281
|
triggerRef?: string | null
|
|
273
282
|
/** Omitted keeps the stored value. Only a Zerops environment of an app with a GitHub connection qualifies. */
|
|
274
283
|
authoring?: boolean
|
|
284
|
+
/** Set when the environment is created, `standard` when omitted; it never changes afterwards. */
|
|
285
|
+
kind?: AppEnvKind
|
|
275
286
|
namespaceId?: string | null
|
|
276
287
|
target: ProviderEnvelopeDto
|
|
277
288
|
artifact: ProviderEnvelopeDto
|