@fabrika/provider-contract 0.7.0 → 0.8.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/control.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabrika/provider-contract",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,6 +31,6 @@
31
31
  "test": "bun test"
32
32
  },
33
33
  "dependencies": {
34
- "@fabrika/auth-core": "0.7.0"
34
+ "@fabrika/auth-core": "0.8.1"
35
35
  }
36
36
  }
package/src/control.ts CHANGED
@@ -494,6 +494,11 @@ export interface ControlProvider {
494
494
  /** Absent means core stores the registration as submitted. */
495
495
  normalizeRegistration?(input: ProviderRegistrationInput): ProviderRegistration
496
496
  resolveSource?(input: ProviderSourceResolutionInput): Promise<ProviderSourceResolution>
497
+ /**
498
+ * Mutation-free check of a candidate's compatibility with its placement. Control calls it before publishing the
499
+ * snapshot, under the namespace lease, on every publication attempt. The candidate is not yet approved access.
500
+ */
501
+ validateAccess?(input: { readonly environment: ProviderEnvironment; readonly access: ProviderApprovedAccess }): void
497
502
  deploy(input: ProviderDeployInput): Promise<ProviderDeployOutcome>
498
503
  cancel?(input: ProviderCancelInput): Promise<ProviderCancelOutcome>
499
504
  reconcile?(input: ProviderReconcileInput): Promise<ProviderReconcileOutcome>