@zapier/policy-schema 0.11.0 → 0.11.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/dist/index.cjs +1 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -238,6 +238,7 @@ function getOpenApiSchema() {
|
|
|
238
238
|
exports.ArrayOperatorSchema = ArrayOperatorSchema;
|
|
239
239
|
exports.ConditionSchema = ConditionSchema;
|
|
240
240
|
exports.ConditionValueSchema = ConditionValueSchema;
|
|
241
|
+
exports.JsonValueSchema = JsonValueSchema;
|
|
241
242
|
exports.OperatorSchema = OperatorSchema;
|
|
242
243
|
exports.OtherOperatorSchema = OtherOperatorSchema;
|
|
243
244
|
exports.PolicySchema = PolicySchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -124,6 +124,7 @@ declare const VALID_VERSIONS: readonly [1, 2];
|
|
|
124
124
|
declare const VALID_EFFECTS: readonly ["allow", "ask", "deny"];
|
|
125
125
|
/** Valid condition operators. */
|
|
126
126
|
declare const VALID_OPERATOR_LIST: readonly ["equals", "exists", "in", "keys_in", "matches", "matches_host", "matches_path", "matches_url", "range", "size", "values_in"];
|
|
127
|
+
declare const JsonValueSchema: z.ZodType<JsonValue>;
|
|
127
128
|
declare const RangeValueSchema: z.ZodObject<{
|
|
128
129
|
min: z.ZodOptional<z.ZodNumber>;
|
|
129
130
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -408,4 +409,4 @@ declare const PolicySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
408
409
|
*/
|
|
409
410
|
declare function getOpenApiSchema(): OpenApiSchema;
|
|
410
411
|
|
|
411
|
-
export { type ArrayOperator, ArrayOperatorSchema, type CanonicalHash, type Condition, ConditionSchema, type ConditionTrace, type ConditionValue, ConditionValueSchema, type Effect, type EvaluatePolicyOptions, type JsonValue, type OpenApiSchema, type Operator, OperatorSchema, type OtherOperator, OtherOperatorSchema, type Override, type OverrideTrace, type ParsedUrl, type Policy, type PolicyActionRequest, type PolicyHttpRequest, type PolicyReason, type PolicyRequest, type PolicyResult, PolicySchema, type RangeValue, RangeValueSchema, type ScalarOperator, ScalarOperatorSchema, type SizeValue, SizeValueSchema, type Statement, StatementSchema, type StatementTrace, type UrlOperator, UrlOperatorSchema, VALID_EFFECTS, VALID_OPERATOR_LIST, VALID_VERSIONS, getOpenApiSchema };
|
|
412
|
+
export { type ArrayOperator, ArrayOperatorSchema, type CanonicalHash, type Condition, ConditionSchema, type ConditionTrace, type ConditionValue, ConditionValueSchema, type Effect, type EvaluatePolicyOptions, type JsonValue, JsonValueSchema, type OpenApiSchema, type Operator, OperatorSchema, type OtherOperator, OtherOperatorSchema, type Override, type OverrideTrace, type ParsedUrl, type Policy, type PolicyActionRequest, type PolicyHttpRequest, type PolicyReason, type PolicyRequest, type PolicyResult, PolicySchema, type RangeValue, RangeValueSchema, type ScalarOperator, ScalarOperatorSchema, type SizeValue, SizeValueSchema, type Statement, StatementSchema, type StatementTrace, type UrlOperator, UrlOperatorSchema, VALID_EFFECTS, VALID_OPERATOR_LIST, VALID_VERSIONS, getOpenApiSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ declare const VALID_VERSIONS: readonly [1, 2];
|
|
|
124
124
|
declare const VALID_EFFECTS: readonly ["allow", "ask", "deny"];
|
|
125
125
|
/** Valid condition operators. */
|
|
126
126
|
declare const VALID_OPERATOR_LIST: readonly ["equals", "exists", "in", "keys_in", "matches", "matches_host", "matches_path", "matches_url", "range", "size", "values_in"];
|
|
127
|
+
declare const JsonValueSchema: z.ZodType<JsonValue>;
|
|
127
128
|
declare const RangeValueSchema: z.ZodObject<{
|
|
128
129
|
min: z.ZodOptional<z.ZodNumber>;
|
|
129
130
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -408,4 +409,4 @@ declare const PolicySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
408
409
|
*/
|
|
409
410
|
declare function getOpenApiSchema(): OpenApiSchema;
|
|
410
411
|
|
|
411
|
-
export { type ArrayOperator, ArrayOperatorSchema, type CanonicalHash, type Condition, ConditionSchema, type ConditionTrace, type ConditionValue, ConditionValueSchema, type Effect, type EvaluatePolicyOptions, type JsonValue, type OpenApiSchema, type Operator, OperatorSchema, type OtherOperator, OtherOperatorSchema, type Override, type OverrideTrace, type ParsedUrl, type Policy, type PolicyActionRequest, type PolicyHttpRequest, type PolicyReason, type PolicyRequest, type PolicyResult, PolicySchema, type RangeValue, RangeValueSchema, type ScalarOperator, ScalarOperatorSchema, type SizeValue, SizeValueSchema, type Statement, StatementSchema, type StatementTrace, type UrlOperator, UrlOperatorSchema, VALID_EFFECTS, VALID_OPERATOR_LIST, VALID_VERSIONS, getOpenApiSchema };
|
|
412
|
+
export { type ArrayOperator, ArrayOperatorSchema, type CanonicalHash, type Condition, ConditionSchema, type ConditionTrace, type ConditionValue, ConditionValueSchema, type Effect, type EvaluatePolicyOptions, type JsonValue, JsonValueSchema, type OpenApiSchema, type Operator, OperatorSchema, type OtherOperator, OtherOperatorSchema, type Override, type OverrideTrace, type ParsedUrl, type Policy, type PolicyActionRequest, type PolicyHttpRequest, type PolicyReason, type PolicyRequest, type PolicyResult, PolicySchema, type RangeValue, RangeValueSchema, type ScalarOperator, ScalarOperatorSchema, type SizeValue, SizeValueSchema, type Statement, StatementSchema, type StatementTrace, type UrlOperator, UrlOperatorSchema, VALID_EFFECTS, VALID_OPERATOR_LIST, VALID_VERSIONS, getOpenApiSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -233,4 +233,4 @@ function getOpenApiSchema() {
|
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
export { ArrayOperatorSchema, ConditionSchema, ConditionValueSchema, OperatorSchema, OtherOperatorSchema, PolicySchema, RangeValueSchema, ScalarOperatorSchema, SizeValueSchema, StatementSchema, UrlOperatorSchema, VALID_EFFECTS, VALID_OPERATOR_LIST, VALID_VERSIONS, getOpenApiSchema };
|
|
236
|
+
export { ArrayOperatorSchema, ConditionSchema, ConditionValueSchema, JsonValueSchema, OperatorSchema, OtherOperatorSchema, PolicySchema, RangeValueSchema, ScalarOperatorSchema, SizeValueSchema, StatementSchema, UrlOperatorSchema, VALID_EFFECTS, VALID_OPERATOR_LIST, VALID_VERSIONS, getOpenApiSchema };
|