@fabrika/provider-contract 0.9.0-dev.11 → 0.9.0-dev.12

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/provider-contract",
3
- "version": "0.9.0-dev.11",
3
+ "version": "0.9.0-dev.12",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,11 +38,11 @@
38
38
  }
39
39
  },
40
40
  "scripts": {
41
- "typecheck": "tsc --noEmit",
41
+ "typecheck": "tsrs --build tsconfig.test.json",
42
42
  "test": "bun test"
43
43
  },
44
44
  "dependencies": {
45
- "@fabrika/auth-core": "0.9.0-dev.11",
46
- "@fabrika/proxy-core": "0.9.0-dev.11"
45
+ "@fabrika/auth-core": "0.9.0-dev.12",
46
+ "@fabrika/proxy-core": "0.9.0-dev.12"
47
47
  }
48
48
  }
package/src/control.ts CHANGED
@@ -375,6 +375,16 @@ export interface ProviderNamespaceDevSandbox {
375
375
  readonly access: ProviderApprovedAccess
376
376
  }
377
377
 
378
+ /** What decides the hosts a namespace entry point routes one member on: `ProviderNamespaceMember` without its secrets. */
379
+ export interface ProviderNamespaceMemberRouting {
380
+ readonly appId: string
381
+ readonly env: string
382
+ readonly domain?: string
383
+ readonly artifact: ProviderEnvelope
384
+ readonly access?: ProviderApprovedAccess
385
+ readonly devSandboxes?: readonly Pick<ProviderNamespaceDevSandbox, 'workspaceId' | 'host'>[]
386
+ }
387
+
378
388
  /** One idempotent namespace lifecycle invocation. */
379
389
  export interface ProviderNamespaceMutationInput {
380
390
  readonly namespace: ProviderDeploymentNamespace
@@ -563,6 +573,11 @@ export interface ProviderNamespaceCapabilities {
563
573
  reconcile(input: ProviderNamespaceMutationInput): Promise<ProviderDeploymentNamespace>
564
574
  /** Absent means the namespace has no entry point that follows its members. */
565
575
  republish?(input: ProviderNamespaceRepublishInput): Promise<ProviderNamespaceRepublishResult>
576
+ /**
577
+ * The hosts the namespace's entry point routes this member on, lower-cased, by the rule its compiler applies; none for
578
+ * a member it does not route. Throws for a member it cannot route. Absent means no member is routed by host.
579
+ */
580
+ memberHosts?(member: ProviderNamespaceMemberRouting): readonly string[]
566
581
  /**
567
582
  * Read-only: whether each claimed resource still exists, one answer per key. Throws when it cannot tell, so Control
568
583
  * releases a claim only over a resource the provider confirmed gone. Absent means no claim can be released.
@@ -321,6 +321,15 @@ export interface ProviderNamespaceDevSandbox {
321
321
  /** The access of the workspace's own published bootstrap run. */
322
322
  readonly access: ProviderApprovedAccess;
323
323
  }
324
+ /** What decides the hosts a namespace entry point routes one member on: `ProviderNamespaceMember` without its secrets. */
325
+ export interface ProviderNamespaceMemberRouting {
326
+ readonly appId: string;
327
+ readonly env: string;
328
+ readonly domain?: string;
329
+ readonly artifact: ProviderEnvelope;
330
+ readonly access?: ProviderApprovedAccess;
331
+ readonly devSandboxes?: readonly Pick<ProviderNamespaceDevSandbox, 'workspaceId' | 'host'>[];
332
+ }
324
333
  /** One idempotent namespace lifecycle invocation. */
325
334
  export interface ProviderNamespaceMutationInput {
326
335
  readonly namespace: ProviderDeploymentNamespace;
@@ -488,6 +497,11 @@ export interface ProviderNamespaceCapabilities {
488
497
  reconcile(input: ProviderNamespaceMutationInput): Promise<ProviderDeploymentNamespace>;
489
498
  /** Absent means the namespace has no entry point that follows its members. */
490
499
  republish?(input: ProviderNamespaceRepublishInput): Promise<ProviderNamespaceRepublishResult>;
500
+ /**
501
+ * The hosts the namespace's entry point routes this member on, lower-cased, by the rule its compiler applies; none for
502
+ * a member it does not route. Throws for a member it cannot route. Absent means no member is routed by host.
503
+ */
504
+ memberHosts?(member: ProviderNamespaceMemberRouting): readonly string[];
491
505
  /**
492
506
  * Read-only: whether each claimed resource still exists, one answer per key. Throws when it cannot tell, so Control
493
507
  * releases a claim only over a resource the provider confirmed gone. Absent means no claim can be released.