@deveye/types 0.20.0 → 0.20.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deveye/types",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "Shared contracts (types + zod schemas) for DevEye apps",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -12,7 +12,22 @@ import { featureIdSchema } from '../domain/workspaceRole';
12
12
  export const domainList = {
13
13
  command: 'domain.list' as const,
14
14
  input: z.object({ feature: featureIdSchema }),
15
- output: z.object({ domains: z.array(featureDomainSchema) })
15
+ output: z.object({
16
+ domains: z.array(featureDomainSchema),
17
+ /**
18
+ * How a web domain gets its HTTPS certificate on this instance: `auto`
19
+ * when DevEye feeds its proxy, `manual` when the administrator adds
20
+ * each name. Null when the feature's domains are not web ones.
21
+ */
22
+ https: z.enum(['auto', 'manual']).nullable(),
23
+ /**
24
+ * The workspace owner's allowance of web domains, counted as distinct
25
+ * names across all their workspaces. Null when unbounded.
26
+ */
27
+ quota: z
28
+ .object({ used: z.number().int().nonnegative(), limit: z.number().int().nonnegative() })
29
+ .nullable()
30
+ })
16
31
  };
17
32
 
18
33
  export const domainAdd = {
@@ -258,6 +258,14 @@ export interface FeatureManifest<Id extends FeatureId = FeatureId> {
258
258
  placeholder?: string;
259
259
  /** Warning of the removal confirm when items designate the domain. */
260
260
  removal?: string;
261
+ /**
262
+ * The names serve your public routes over HTTPS (a CNAME to
263
+ * `origins.public`). DevEye then checks by itself that a name points
264
+ * here and answers in HTTPS before calling your probe, hands it to its
265
+ * proxy for a certificate when the instance is wired for it, and
266
+ * counts it against the `domains.hosts` plan limit.
267
+ */
268
+ web?: boolean;
261
269
  };
262
270
  /**
263
271
  * Whether an item can be projected into another workspace. Decided by
package/src/sdk/server.ts CHANGED
@@ -786,8 +786,10 @@ export interface SdkFeatureContext<Repo = unknown> {
786
786
  live: SdkContextLive;
787
787
  /**
788
788
  * Where DevEye lives, as URLs without a trailing slash: `app` is the
789
- * origin members use (`PUBLIC_ORIGIN`), `public` the one reachable
790
- * without the VPN when the host has a public surface (else the same).
789
+ * origin members use (`PUBLIC_ORIGIN`), `public` the one anyone reaches
790
+ * the public routes by, which differs when the host serves them on a
791
+ * domain of their own, the app itself possibly staying private (else the
792
+ * same).
791
793
  * For what a module hands to the outside world (an install snippet, a
792
794
  * callback URL): never derive it from the browser's location.
793
795
  */