Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
feat(types): adding application security policy spec
Browse files Browse the repository at this point in the history
Spec to defined allowed permissions for an application.
  • Loading branch information
markmcdowell committed Jul 1, 2020
1 parent 16f8b35 commit c61b466
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export enum ConfigurationKind {
Application = "application",
ApplicationSecurityPolicy = "applicatinSecurityPolicy",
External = "external",
Service = "service",
Session = "session",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface IApplicationSecurityPolicySpecification {
readonly allowedDomains?: readonly string[];
readonly blockedDomains?: readonly string[];
}
2 changes: 2 additions & 0 deletions packages/desktop-types/src/configuration/iConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ import { IStorageStatus } from "./iStorageStatus";
import { ITraySpecification } from "./iTraySpecification";
import { ITrayStatus } from "./iTrayStatus";
import { IUpdatePolicySpecification } from "./iUpdatePolicySpecification";
import { IApplicationSecurityPolicySpecification } from "./iApplicationSecurityPolicySpecification";

type Spec =
| IApplicationSpecification
| IApplicationSecurityPolicySpecification
| IExternalSpecification
| IServiceSpecification
| ISessionSpecification
Expand Down
5 changes: 4 additions & 1 deletion packages/desktop-types/src/configuration/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from "./applicationState";
export * from "./configurationKind";
export * from "./iAnnotations";
export * from "./iApplicationSecurityPolicySpecification";
export * from "./iApplicationSpecification";
export * from "./iApplicationStatus";
export * from "./iConfiguration";
Expand All @@ -11,9 +12,11 @@ export * from "./iMetadata";
export * from "./iServiceParameters";
export * from "./iServiceSpecification";
export * from "./iServiceStatus";
export * from "./iSessionParameters";
export * from "./iSessionSpecification";
export * from "./iStorageStatus";
export * from "./iStorageParameters";
export * from "./iStorageSpecification";
export * from "./iStorageStatus";
export * from "./iTraySpecification";
export * from "./iTrayStatus";
export * from "./iUpdatePolicySpecification";
Expand Down

0 comments on commit c61b466

Please sign in to comment.