@peac/policy-kit 0.12.14 → 0.13.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.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1344,6 +1344,7 @@ exports.isDenied = isDenied;
|
|
|
1344
1344
|
exports.isEnforcementProfileId = isEnforcementProfileId;
|
|
1345
1345
|
exports.listProfiles = listProfiles;
|
|
1346
1346
|
exports.loadPolicy = loadPolicy;
|
|
1347
|
+
exports.loadPolicyDocument = parsePolicyDocument;
|
|
1347
1348
|
exports.loadProfile = loadProfile;
|
|
1348
1349
|
exports.parsePolicy = parsePolicy;
|
|
1349
1350
|
exports.parsePolicyDocument = parsePolicyDocument;
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
*/
|
|
31
31
|
export { POLICY_VERSION, type SubjectType, type ControlPurpose, type ControlLicensingMode, type ControlDecision, type SubjectMatcher, type PolicyRule, type PolicyDefaults, type PolicyDocument, type EvaluationContext, type EvaluationResult, type RateLimitConfig, parseRateLimit, formatRateLimit, type DecisionRequirements, type ProfileParameter, type ProfileDefinition, type PolicyConstraints, type EnforcementProfileId, type EnforcementProfile, SubjectMatcherSchema, PolicyRuleSchema, PolicyDefaultsSchema, PolicyDocumentSchema, RateLimitConfigSchema, DecisionRequirementsSchema, ProfileParameterSchema, ProfileDefinitionSchema, PolicyConstraintsSchema, EnforcementProfileSchema, } from './types';
|
|
32
32
|
export { loadPolicy, parsePolicy, parsePolicyDocument, validatePolicy, policyFileExists, createExamplePolicy, serializePolicyYaml, serializePolicyJson, PolicyLoadError, PolicyValidationError, } from './loader';
|
|
33
|
+
export { parsePolicyDocument as loadPolicyDocument } from './loader';
|
|
33
34
|
export { evaluate, explainMatches, findEffectiveRule, isAllowed, isDenied, requiresReview, evaluateBatch, } from './evaluate';
|
|
34
35
|
export { PEAC_PROTOCOL_VERSION, compilePeacTxt, compileRobotsSnippet, compileAiprefTemplates, renderPolicyMarkdown, type CompileOptions, type AiprefTemplate, } from './compiler';
|
|
35
36
|
export { PROFILES, PROFILE_IDS, type ProfileId } from './generated/profiles';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,EACL,cAAc,EACd,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACpB,cAAc,EACd,eAAe,EAEf,KAAK,oBAAoB,EAEzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAEtB,KAAK,iBAAiB,EAEtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EAEvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,GACtB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,EACL,cAAc,EACd,KAAK,WAAW,E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K,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EAGtB,sBAAsB,EACtB,4BAA4B,EAAE,gDAAgD;AAC9E,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B,MAAM,WAAW,CAAC;AAGnB,OAAO,EAEL,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,2BAA2B,EAE3B,qBAAqB,EACrB,sBAAsB,EACtB,4BAA4B,EAE5B,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,KAAK,uBAAuB,GAC7B,MAAM,wBAAwB,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1268,6 +1268,6 @@ function getRetryAfter(constraints) {
|
|
|
1268
1268
|
return constraints?.rate_limit?.retry_after_s;
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
1271
|
-
export { BALANCED_PROFILE, DEFAULT_ENFORCEMENT_PROFILE, DecisionRequirementsSchema, ENFORCEMENT_PROFILES, ENFORCEMENT_PROFILE_IDS, EnforcementProfileSchema, OPEN_PROFILE, PEAC_PROTOCOL_VERSION, POLICY_VERSION, PROFILES, PROFILE_IDS, PolicyConstraintsSchema, PolicyDefaultsSchema, PolicyDocumentSchema, PolicyLoadError, PolicyRuleSchema, PolicyValidationError, ProfileDefinitionSchema, ProfileError, ProfileParameterSchema, RateLimitConfigSchema, STRICT_PROFILE, SubjectMatcherSchema, compileAiprefTemplates, compilePeacTxt, compileRobotsSnippet, createExamplePolicy, customizeProfile, enforceDecision, enforceForHttp, enforcePurposeDecision, evaluate, evaluateBatch, evaluatePurpose, explainMatches, findEffectiveRule, formatRateLimit, getAllProfiles, getChallengeHeader, getDefaultEnforcementProfile, getEnforcementProfile, getProfile, getProfileSummary, getPurposeDecisionStatusCode, getPurposeStatusCode, getRetryAfter, hasProfile, isAllowed, isDenied, isEnforcementProfileId, listProfiles, loadPolicy, loadProfile, parsePolicy, parsePolicyDocument, parseRateLimit, policyFileExists, renderPolicyMarkdown, requiresChallenge, requiresReview, serializePolicyJson, serializePolicyYaml, validatePolicy, validateProfileParams };
|
|
1271
|
+
export { BALANCED_PROFILE, DEFAULT_ENFORCEMENT_PROFILE, DecisionRequirementsSchema, ENFORCEMENT_PROFILES, ENFORCEMENT_PROFILE_IDS, EnforcementProfileSchema, OPEN_PROFILE, PEAC_PROTOCOL_VERSION, POLICY_VERSION, PROFILES, PROFILE_IDS, PolicyConstraintsSchema, PolicyDefaultsSchema, PolicyDocumentSchema, PolicyLoadError, PolicyRuleSchema, PolicyValidationError, ProfileDefinitionSchema, ProfileError, ProfileParameterSchema, RateLimitConfigSchema, STRICT_PROFILE, SubjectMatcherSchema, compileAiprefTemplates, compilePeacTxt, compileRobotsSnippet, createExamplePolicy, customizeProfile, enforceDecision, enforceForHttp, enforcePurposeDecision, evaluate, evaluateBatch, evaluatePurpose, explainMatches, findEffectiveRule, formatRateLimit, getAllProfiles, getChallengeHeader, getDefaultEnforcementProfile, getEnforcementProfile, getProfile, getProfileSummary, getPurposeDecisionStatusCode, getPurposeStatusCode, getRetryAfter, hasProfile, isAllowed, isDenied, isEnforcementProfileId, listProfiles, loadPolicy, parsePolicyDocument as loadPolicyDocument, loadProfile, parsePolicy, parsePolicyDocument, parseRateLimit, policyFileExists, renderPolicyMarkdown, requiresChallenge, requiresReview, serializePolicyJson, serializePolicyYaml, validatePolicy, validateProfileParams };
|
|
1272
1272
|
//# sourceMappingURL=index.mjs.map
|
|
1273
1273
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peac/policy-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "PEAC Policy Kit - deterministic policy evaluation for CAL semantics",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"yaml": "^2.3.4",
|
|
27
27
|
"zod": "^4.3.6",
|
|
28
|
-
"@peac/schema": "0.
|
|
28
|
+
"@peac/schema": "0.13.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.19.11",
|