@opencode/schema 0.0.0-dev-19752 → 0.0.0-dev-19754
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.
|
@@ -4,11 +4,11 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
4
4
|
readonly portable_shell_scanner: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
5
5
|
readonly subagent_depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6
6
|
readonly policies: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
7
|
-
readonly action: Schema.
|
|
7
|
+
readonly action: Schema.Literals<readonly ["provider.use", "permission"]>;
|
|
8
8
|
readonly resource: Schema.String;
|
|
9
9
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
10
10
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11
|
-
readonly action: Schema.
|
|
11
|
+
readonly action: Schema.Literals<readonly ["provider.use", "permission"]>;
|
|
12
12
|
readonly resource: Schema.String;
|
|
13
13
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
14
14
|
}>>>, never, never>;
|
package/dist/config/policy.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Schema } from "effect";
|
|
|
3
3
|
export declare const Effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
4
4
|
export type Effect = typeof Effect.Type;
|
|
5
5
|
export declare const Info: Schema.Struct<{
|
|
6
|
-
readonly action: Schema.
|
|
6
|
+
readonly action: Schema.Literals<readonly ["provider.use", "permission"]>;
|
|
7
7
|
readonly resource: Schema.String;
|
|
8
8
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
9
9
|
}>;
|
package/dist/config/policy.js
CHANGED
|
@@ -2,7 +2,7 @@ export * as ConfigPolicy from "./policy.js";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
export const Effect = Schema.Literals(["allow", "deny"]);
|
|
4
4
|
export const Info = Schema.Struct({
|
|
5
|
-
action: Schema.
|
|
5
|
+
action: Schema.Literals(["provider.use", "permission"]),
|
|
6
6
|
resource: Schema.String,
|
|
7
7
|
effect: Effect,
|
|
8
8
|
});
|