@riddledc/riddle-proof 0.7.126 → 0.7.128
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/README.md +26 -2
- package/dist/{chunk-55KDZEB3.js → chunk-TO3FVF5S.js} +502 -4
- package/dist/cli.cjs +520 -5
- package/dist/cli.js +19 -2
- package/dist/index.cjs +502 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/profile.cjs +502 -4
- package/dist/profile.d.cts +32 -1
- package/dist/profile.d.ts +32 -1
- package/dist/profile.js +1 -1
- package/package.json +1 -1
package/dist/profile.d.cts
CHANGED
|
@@ -38,6 +38,34 @@ interface RiddleProofProfileHttpStatusPreflightFetchResponse {
|
|
|
38
38
|
text?: () => Promise<string>;
|
|
39
39
|
}
|
|
40
40
|
type RiddleProofProfileHttpStatusPreflightFetch = (url: string, init?: Record<string, unknown>) => Promise<RiddleProofProfileHttpStatusPreflightFetchResponse>;
|
|
41
|
+
type RiddleProofProfileJsonValueType = "array" | "boolean" | "null" | "number" | "object" | "string";
|
|
42
|
+
interface RiddleProofProfileHttpStatusBodyJsonAssertion {
|
|
43
|
+
label?: string;
|
|
44
|
+
path: string;
|
|
45
|
+
exists?: boolean;
|
|
46
|
+
equals?: JsonValue;
|
|
47
|
+
not_equals?: JsonValue;
|
|
48
|
+
contains?: JsonValue;
|
|
49
|
+
type?: RiddleProofProfileJsonValueType;
|
|
50
|
+
}
|
|
51
|
+
interface RiddleProofProfileHttpStatusBodyJsonAssertionResult {
|
|
52
|
+
label: string;
|
|
53
|
+
path: string;
|
|
54
|
+
ok: boolean;
|
|
55
|
+
exists: boolean;
|
|
56
|
+
observed?: JsonValue;
|
|
57
|
+
observed_sample?: JsonValue;
|
|
58
|
+
observed_length?: number;
|
|
59
|
+
observed_key_count?: number;
|
|
60
|
+
observed_omitted_count?: number;
|
|
61
|
+
observed_type: RiddleProofProfileJsonValueType | "missing";
|
|
62
|
+
expected_exists?: boolean;
|
|
63
|
+
equals?: JsonValue;
|
|
64
|
+
not_equals?: JsonValue;
|
|
65
|
+
contains?: JsonValue;
|
|
66
|
+
type?: RiddleProofProfileJsonValueType;
|
|
67
|
+
errors?: string[];
|
|
68
|
+
}
|
|
41
69
|
interface RiddleProofProfileHttpStatusPreflightOptions {
|
|
42
70
|
fetchImpl?: RiddleProofProfileHttpStatusPreflightFetch;
|
|
43
71
|
target_url?: string;
|
|
@@ -60,6 +88,8 @@ interface RiddleProofProfileHttpStatusPreflightCheckResult {
|
|
|
60
88
|
body_not_contains_found: string[];
|
|
61
89
|
body_not_patterns: Record<string, boolean> | null;
|
|
62
90
|
body_not_patterns_found: string[];
|
|
91
|
+
body_json_assertions: RiddleProofProfileHttpStatusBodyJsonAssertionResult[] | null;
|
|
92
|
+
body_json_assertions_failed: RiddleProofProfileHttpStatusBodyJsonAssertionResult[];
|
|
63
93
|
}
|
|
64
94
|
interface RiddleProofProfileHttpStatusPreflightResult {
|
|
65
95
|
version: "riddle-proof.profile-http-status-preflight.v1";
|
|
@@ -185,6 +215,7 @@ interface RiddleProofProfileCheck {
|
|
|
185
215
|
body_contains?: string[];
|
|
186
216
|
body_not_contains?: string[];
|
|
187
217
|
body_not_patterns?: string[];
|
|
218
|
+
body_json_assertions?: RiddleProofProfileHttpStatusBodyJsonAssertion[];
|
|
188
219
|
expected_texts?: string[];
|
|
189
220
|
link_selector?: string;
|
|
190
221
|
source_selector?: string;
|
|
@@ -390,4 +421,4 @@ declare function buildRiddleProofProfileScript(profile: RiddleProofProfile): str
|
|
|
390
421
|
declare function collectRiddleProfileArtifactRefs(input: unknown): RiddleProofProfileArtifactRef[];
|
|
391
422
|
declare function extractRiddleProofProfileResult(input: unknown): RiddleProofProfileResult | undefined;
|
|
392
423
|
|
|
393
|
-
export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofArtifactBodyAssertionInput, type RiddleProofArtifactBodyAssertionResult, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileBoundsOffender, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileHttpStatusPreflightCheckResult, type RiddleProofProfileHttpStatusPreflightFetch, type RiddleProofProfileHttpStatusPreflightFetchResponse, type RiddleProofProfileHttpStatusPreflightOptions, type RiddleProofProfileHttpStatusPreflightResult, type RiddleProofProfileNetworkAbortErrorCode, type RiddleProofProfileNetworkMock, type RiddleProofProfileNetworkMockResponse, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRouteInventoryRoute, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
|
|
424
|
+
export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofArtifactBodyAssertionInput, type RiddleProofArtifactBodyAssertionResult, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileBoundsOffender, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileHttpStatusBodyJsonAssertion, type RiddleProofProfileHttpStatusBodyJsonAssertionResult, type RiddleProofProfileHttpStatusPreflightCheckResult, type RiddleProofProfileHttpStatusPreflightFetch, type RiddleProofProfileHttpStatusPreflightFetchResponse, type RiddleProofProfileHttpStatusPreflightOptions, type RiddleProofProfileHttpStatusPreflightResult, type RiddleProofProfileJsonValueType, type RiddleProofProfileNetworkAbortErrorCode, type RiddleProofProfileNetworkMock, type RiddleProofProfileNetworkMockResponse, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRouteInventoryRoute, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
|
package/dist/profile.d.ts
CHANGED
|
@@ -38,6 +38,34 @@ interface RiddleProofProfileHttpStatusPreflightFetchResponse {
|
|
|
38
38
|
text?: () => Promise<string>;
|
|
39
39
|
}
|
|
40
40
|
type RiddleProofProfileHttpStatusPreflightFetch = (url: string, init?: Record<string, unknown>) => Promise<RiddleProofProfileHttpStatusPreflightFetchResponse>;
|
|
41
|
+
type RiddleProofProfileJsonValueType = "array" | "boolean" | "null" | "number" | "object" | "string";
|
|
42
|
+
interface RiddleProofProfileHttpStatusBodyJsonAssertion {
|
|
43
|
+
label?: string;
|
|
44
|
+
path: string;
|
|
45
|
+
exists?: boolean;
|
|
46
|
+
equals?: JsonValue;
|
|
47
|
+
not_equals?: JsonValue;
|
|
48
|
+
contains?: JsonValue;
|
|
49
|
+
type?: RiddleProofProfileJsonValueType;
|
|
50
|
+
}
|
|
51
|
+
interface RiddleProofProfileHttpStatusBodyJsonAssertionResult {
|
|
52
|
+
label: string;
|
|
53
|
+
path: string;
|
|
54
|
+
ok: boolean;
|
|
55
|
+
exists: boolean;
|
|
56
|
+
observed?: JsonValue;
|
|
57
|
+
observed_sample?: JsonValue;
|
|
58
|
+
observed_length?: number;
|
|
59
|
+
observed_key_count?: number;
|
|
60
|
+
observed_omitted_count?: number;
|
|
61
|
+
observed_type: RiddleProofProfileJsonValueType | "missing";
|
|
62
|
+
expected_exists?: boolean;
|
|
63
|
+
equals?: JsonValue;
|
|
64
|
+
not_equals?: JsonValue;
|
|
65
|
+
contains?: JsonValue;
|
|
66
|
+
type?: RiddleProofProfileJsonValueType;
|
|
67
|
+
errors?: string[];
|
|
68
|
+
}
|
|
41
69
|
interface RiddleProofProfileHttpStatusPreflightOptions {
|
|
42
70
|
fetchImpl?: RiddleProofProfileHttpStatusPreflightFetch;
|
|
43
71
|
target_url?: string;
|
|
@@ -60,6 +88,8 @@ interface RiddleProofProfileHttpStatusPreflightCheckResult {
|
|
|
60
88
|
body_not_contains_found: string[];
|
|
61
89
|
body_not_patterns: Record<string, boolean> | null;
|
|
62
90
|
body_not_patterns_found: string[];
|
|
91
|
+
body_json_assertions: RiddleProofProfileHttpStatusBodyJsonAssertionResult[] | null;
|
|
92
|
+
body_json_assertions_failed: RiddleProofProfileHttpStatusBodyJsonAssertionResult[];
|
|
63
93
|
}
|
|
64
94
|
interface RiddleProofProfileHttpStatusPreflightResult {
|
|
65
95
|
version: "riddle-proof.profile-http-status-preflight.v1";
|
|
@@ -185,6 +215,7 @@ interface RiddleProofProfileCheck {
|
|
|
185
215
|
body_contains?: string[];
|
|
186
216
|
body_not_contains?: string[];
|
|
187
217
|
body_not_patterns?: string[];
|
|
218
|
+
body_json_assertions?: RiddleProofProfileHttpStatusBodyJsonAssertion[];
|
|
188
219
|
expected_texts?: string[];
|
|
189
220
|
link_selector?: string;
|
|
190
221
|
source_selector?: string;
|
|
@@ -390,4 +421,4 @@ declare function buildRiddleProofProfileScript(profile: RiddleProofProfile): str
|
|
|
390
421
|
declare function collectRiddleProfileArtifactRefs(input: unknown): RiddleProofProfileArtifactRef[];
|
|
391
422
|
declare function extractRiddleProofProfileResult(input: unknown): RiddleProofProfileResult | undefined;
|
|
392
423
|
|
|
393
|
-
export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofArtifactBodyAssertionInput, type RiddleProofArtifactBodyAssertionResult, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileBoundsOffender, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileHttpStatusPreflightCheckResult, type RiddleProofProfileHttpStatusPreflightFetch, type RiddleProofProfileHttpStatusPreflightFetchResponse, type RiddleProofProfileHttpStatusPreflightOptions, type RiddleProofProfileHttpStatusPreflightResult, type RiddleProofProfileNetworkAbortErrorCode, type RiddleProofProfileNetworkMock, type RiddleProofProfileNetworkMockResponse, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRouteInventoryRoute, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
|
|
424
|
+
export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofArtifactBodyAssertionInput, type RiddleProofArtifactBodyAssertionResult, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileBoundsOffender, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileHttpStatusBodyJsonAssertion, type RiddleProofProfileHttpStatusBodyJsonAssertionResult, type RiddleProofProfileHttpStatusPreflightCheckResult, type RiddleProofProfileHttpStatusPreflightFetch, type RiddleProofProfileHttpStatusPreflightFetchResponse, type RiddleProofProfileHttpStatusPreflightOptions, type RiddleProofProfileHttpStatusPreflightResult, type RiddleProofProfileJsonValueType, type RiddleProofProfileNetworkAbortErrorCode, type RiddleProofProfileNetworkMock, type RiddleProofProfileNetworkMockResponse, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRouteInventoryRoute, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
|
package/dist/profile.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resolveRiddleProofProfileTimeoutSec,
|
|
24
24
|
slugifyRiddleProofProfileName,
|
|
25
25
|
summarizeRiddleProofProfileResult
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TO3FVF5S.js";
|
|
27
27
|
export {
|
|
28
28
|
RIDDLE_PROOF_PROFILE_CHECK_TYPES,
|
|
29
29
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|