@silkline/paramify 0.0.2
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/CHANGELOG.md +10 -0
- package/LICENSE +201 -0
- package/README.md +402 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +199 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +199 -0
- package/client.d.ts.map +1 -0
- package/client.js +494 -0
- package/client.js.map +1 -0
- package/client.mjs +490 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +87 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +81 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +149 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/assessments/assessments.d.mts +269 -0
- package/resources/assessments/assessments.d.mts.map +1 -0
- package/resources/assessments/assessments.d.ts +269 -0
- package/resources/assessments/assessments.d.ts.map +1 -0
- package/resources/assessments/assessments.js +100 -0
- package/resources/assessments/assessments.js.map +1 -0
- package/resources/assessments/assessments.mjs +95 -0
- package/resources/assessments/assessments.mjs.map +1 -0
- package/resources/assessments/cycles.d.mts +209 -0
- package/resources/assessments/cycles.d.mts.map +1 -0
- package/resources/assessments/cycles.d.ts +209 -0
- package/resources/assessments/cycles.d.ts.map +1 -0
- package/resources/assessments/cycles.js +76 -0
- package/resources/assessments/cycles.js.map +1 -0
- package/resources/assessments/cycles.mjs +72 -0
- package/resources/assessments/cycles.mjs.map +1 -0
- package/resources/assessments/index.d.mts +3 -0
- package/resources/assessments/index.d.mts.map +1 -0
- package/resources/assessments/index.d.ts +3 -0
- package/resources/assessments/index.d.ts.map +1 -0
- package/resources/assessments/index.js +9 -0
- package/resources/assessments/index.js.map +1 -0
- package/resources/assessments/index.mjs +4 -0
- package/resources/assessments/index.mjs.map +1 -0
- package/resources/assessments.d.mts +2 -0
- package/resources/assessments.d.mts.map +1 -0
- package/resources/assessments.d.ts +2 -0
- package/resources/assessments.d.ts.map +1 -0
- package/resources/assessments.js +6 -0
- package/resources/assessments.js.map +1 -0
- package/resources/assessments.mjs +3 -0
- package/resources/assessments.mjs.map +1 -0
- package/resources/audit-assessments/audit-assessments.d.mts +63 -0
- package/resources/audit-assessments/audit-assessments.d.mts.map +1 -0
- package/resources/audit-assessments/audit-assessments.d.ts +63 -0
- package/resources/audit-assessments/audit-assessments.d.ts.map +1 -0
- package/resources/audit-assessments/audit-assessments.js +31 -0
- package/resources/audit-assessments/audit-assessments.js.map +1 -0
- package/resources/audit-assessments/audit-assessments.mjs +26 -0
- package/resources/audit-assessments/audit-assessments.mjs.map +1 -0
- package/resources/audit-assessments/control-implementations.d.mts +38 -0
- package/resources/audit-assessments/control-implementations.d.mts.map +1 -0
- package/resources/audit-assessments/control-implementations.d.ts +38 -0
- package/resources/audit-assessments/control-implementations.d.ts.map +1 -0
- package/resources/audit-assessments/control-implementations.js +18 -0
- package/resources/audit-assessments/control-implementations.js.map +1 -0
- package/resources/audit-assessments/control-implementations.mjs +14 -0
- package/resources/audit-assessments/control-implementations.mjs.map +1 -0
- package/resources/audit-assessments/index.d.mts +3 -0
- package/resources/audit-assessments/index.d.mts.map +1 -0
- package/resources/audit-assessments/index.d.ts +3 -0
- package/resources/audit-assessments/index.d.ts.map +1 -0
- package/resources/audit-assessments/index.js +9 -0
- package/resources/audit-assessments/index.js.map +1 -0
- package/resources/audit-assessments/index.mjs +4 -0
- package/resources/audit-assessments/index.mjs.map +1 -0
- package/resources/audit-assessments.d.mts +2 -0
- package/resources/audit-assessments.d.mts.map +1 -0
- package/resources/audit-assessments.d.ts +2 -0
- package/resources/audit-assessments.d.ts.map +1 -0
- package/resources/audit-assessments.js +6 -0
- package/resources/audit-assessments.js.map +1 -0
- package/resources/audit-assessments.mjs +3 -0
- package/resources/audit-assessments.mjs.map +1 -0
- package/resources/elements.d.mts +67 -0
- package/resources/elements.d.mts.map +1 -0
- package/resources/elements.d.ts +67 -0
- package/resources/elements.d.ts.map +1 -0
- package/resources/elements.js +23 -0
- package/resources/elements.js.map +1 -0
- package/resources/elements.mjs +19 -0
- package/resources/elements.mjs.map +1 -0
- package/resources/evidence/artifacts.d.mts +531 -0
- package/resources/evidence/artifacts.d.mts.map +1 -0
- package/resources/evidence/artifacts.d.ts +531 -0
- package/resources/evidence/artifacts.d.ts.map +1 -0
- package/resources/evidence/artifacts.js +145 -0
- package/resources/evidence/artifacts.js.map +1 -0
- package/resources/evidence/artifacts.mjs +141 -0
- package/resources/evidence/artifacts.mjs.map +1 -0
- package/resources/evidence/evidence.d.mts +397 -0
- package/resources/evidence/evidence.d.mts.map +1 -0
- package/resources/evidence/evidence.d.ts +397 -0
- package/resources/evidence/evidence.d.ts.map +1 -0
- package/resources/evidence/evidence.js +118 -0
- package/resources/evidence/evidence.js.map +1 -0
- package/resources/evidence/evidence.mjs +113 -0
- package/resources/evidence/evidence.mjs.map +1 -0
- package/resources/evidence/index.d.mts +3 -0
- package/resources/evidence/index.d.mts.map +1 -0
- package/resources/evidence/index.d.ts +3 -0
- package/resources/evidence/index.d.ts.map +1 -0
- package/resources/evidence/index.js +9 -0
- package/resources/evidence/index.js.map +1 -0
- package/resources/evidence/index.mjs +4 -0
- package/resources/evidence/index.mjs.map +1 -0
- package/resources/evidence.d.mts +2 -0
- package/resources/evidence.d.mts.map +1 -0
- package/resources/evidence.d.ts +2 -0
- package/resources/evidence.d.ts.map +1 -0
- package/resources/evidence.js +6 -0
- package/resources/evidence.js.map +1 -0
- package/resources/evidence.mjs +3 -0
- package/resources/evidence.mjs.map +1 -0
- package/resources/index.d.mts +9 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +9 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +21 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +10 -0
- package/resources/index.mjs.map +1 -0
- package/resources/issues/deviations.d.mts +267 -0
- package/resources/issues/deviations.d.mts.map +1 -0
- package/resources/issues/deviations.d.ts +267 -0
- package/resources/issues/deviations.d.ts.map +1 -0
- package/resources/issues/deviations.js +105 -0
- package/resources/issues/deviations.js.map +1 -0
- package/resources/issues/deviations.mjs +101 -0
- package/resources/issues/deviations.mjs.map +1 -0
- package/resources/issues/index.d.mts +5 -0
- package/resources/issues/index.d.mts.map +1 -0
- package/resources/issues/index.d.ts +5 -0
- package/resources/issues/index.d.ts.map +1 -0
- package/resources/issues/index.js +13 -0
- package/resources/issues/index.js.map +1 -0
- package/resources/issues/index.mjs +6 -0
- package/resources/issues/index.mjs.map +1 -0
- package/resources/issues/issues.d.mts +878 -0
- package/resources/issues/issues.d.mts.map +1 -0
- package/resources/issues/issues.d.ts +878 -0
- package/resources/issues/issues.d.ts.map +1 -0
- package/resources/issues/issues.js +156 -0
- package/resources/issues/issues.js.map +1 -0
- package/resources/issues/issues.mjs +151 -0
- package/resources/issues/issues.mjs.map +1 -0
- package/resources/issues/milestones.d.mts +260 -0
- package/resources/issues/milestones.d.mts.map +1 -0
- package/resources/issues/milestones.d.ts +260 -0
- package/resources/issues/milestones.d.ts.map +1 -0
- package/resources/issues/milestones.js +101 -0
- package/resources/issues/milestones.js.map +1 -0
- package/resources/issues/milestones.mjs +97 -0
- package/resources/issues/milestones.mjs.map +1 -0
- package/resources/issues/recommendations.d.mts +210 -0
- package/resources/issues/recommendations.d.mts.map +1 -0
- package/resources/issues/recommendations.d.ts +210 -0
- package/resources/issues/recommendations.d.ts.map +1 -0
- package/resources/issues/recommendations.js +106 -0
- package/resources/issues/recommendations.js.map +1 -0
- package/resources/issues/recommendations.mjs +102 -0
- package/resources/issues/recommendations.mjs.map +1 -0
- package/resources/issues.d.mts +2 -0
- package/resources/issues.d.mts.map +1 -0
- package/resources/issues.d.ts +2 -0
- package/resources/issues.d.ts.map +1 -0
- package/resources/issues.js +6 -0
- package/resources/issues.js.map +1 -0
- package/resources/issues.mjs +3 -0
- package/resources/issues.mjs.map +1 -0
- package/resources/projects/control-implementations.d.mts +36 -0
- package/resources/projects/control-implementations.d.mts.map +1 -0
- package/resources/projects/control-implementations.d.ts +36 -0
- package/resources/projects/control-implementations.d.ts.map +1 -0
- package/resources/projects/control-implementations.js +16 -0
- package/resources/projects/control-implementations.js.map +1 -0
- package/resources/projects/control-implementations.mjs +12 -0
- package/resources/projects/control-implementations.mjs.map +1 -0
- package/resources/projects/index.d.mts +3 -0
- package/resources/projects/index.d.mts.map +1 -0
- package/resources/projects/index.d.ts +3 -0
- package/resources/projects/index.d.ts.map +1 -0
- package/resources/projects/index.js +9 -0
- package/resources/projects/index.js.map +1 -0
- package/resources/projects/index.mjs +4 -0
- package/resources/projects/index.mjs.map +1 -0
- package/resources/projects/projects.d.mts +59 -0
- package/resources/projects/projects.d.mts.map +1 -0
- package/resources/projects/projects.d.ts +59 -0
- package/resources/projects/projects.d.ts.map +1 -0
- package/resources/projects/projects.js +36 -0
- package/resources/projects/projects.js.map +1 -0
- package/resources/projects/projects.mjs +31 -0
- package/resources/projects/projects.mjs.map +1 -0
- package/resources/projects.d.mts +2 -0
- package/resources/projects.d.mts.map +1 -0
- package/resources/projects.d.ts +2 -0
- package/resources/projects.d.ts.map +1 -0
- package/resources/projects.js +6 -0
- package/resources/projects.js.map +1 -0
- package/resources/projects.mjs +3 -0
- package/resources/projects.mjs.map +1 -0
- package/resources/solution-capabilities.d.mts +61 -0
- package/resources/solution-capabilities.d.mts.map +1 -0
- package/resources/solution-capabilities.d.ts +61 -0
- package/resources/solution-capabilities.d.ts.map +1 -0
- package/resources/solution-capabilities.js +23 -0
- package/resources/solution-capabilities.js.map +1 -0
- package/resources/solution-capabilities.mjs +19 -0
- package/resources/solution-capabilities.mjs.map +1 -0
- package/resources/validators.d.mts +518 -0
- package/resources/validators.d.mts.map +1 -0
- package/resources/validators.d.ts +518 -0
- package/resources/validators.d.ts.map +1 -0
- package/resources/validators.js +66 -0
- package/resources/validators.js.map +1 -0
- package/resources/validators.mjs +62 -0
- package/resources/validators.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +868 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +93 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +128 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/assessments/assessments.ts +350 -0
- package/src/resources/assessments/cycles.ts +267 -0
- package/src/resources/assessments/index.ts +20 -0
- package/src/resources/assessments.ts +3 -0
- package/src/resources/audit-assessments/audit-assessments.ts +92 -0
- package/src/resources/audit-assessments/control-implementations.ts +49 -0
- package/src/resources/audit-assessments/index.ts +8 -0
- package/src/resources/audit-assessments.ts +3 -0
- package/src/resources/elements.ts +152 -0
- package/src/resources/evidence/artifacts.ts +682 -0
- package/src/resources/evidence/evidence.ts +609 -0
- package/src/resources/evidence/index.ts +31 -0
- package/src/resources/evidence.ts +3 -0
- package/src/resources/index.ts +55 -0
- package/src/resources/issues/deviations.ts +360 -0
- package/src/resources/issues/index.ts +51 -0
- package/src/resources/issues/issues.ts +1345 -0
- package/src/resources/issues/milestones.ts +350 -0
- package/src/resources/issues/recommendations.ts +417 -0
- package/src/resources/issues.ts +3 -0
- package/src/resources/projects/control-implementations.ts +47 -0
- package/src/resources/projects/index.ts +4 -0
- package/src/resources/projects/projects.ts +128 -0
- package/src/resources/projects.ts +3 -0
- package/src/resources/solution-capabilities.ts +85 -0
- package/src/resources/validators.ts +691 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,691 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Validators extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new validator in the workspace. The validator name must be unique
|
|
11
|
+
* within the workspace. Provide `type: "AUTOMATED"` with a `regex` and
|
|
12
|
+
* `validationRules`, or `type: "ATTESTATION"` with `attestationRules`. The created
|
|
13
|
+
* validator is returned in the same format as the GET endpoints.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const validator = await client.validators.create({
|
|
18
|
+
* name: 'name',
|
|
19
|
+
* regex: '(\\d+) errors? found',
|
|
20
|
+
* statement: 'statement',
|
|
21
|
+
* type: 'AUTOMATED',
|
|
22
|
+
* validationRules: [
|
|
23
|
+
* {
|
|
24
|
+
* criteria: 'EQUALS',
|
|
25
|
+
* regexOperation: { type: 'MATCH_COUNT' },
|
|
26
|
+
* value: { type: 'MATCH_COUNT' },
|
|
27
|
+
* },
|
|
28
|
+
* ],
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
create(body: ValidatorCreateParams, options?: RequestOptions): APIPromise<Validator> {
|
|
33
|
+
return this._client.post('/validators', { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves a specific validator by its internal ID (UUID). The response shape
|
|
38
|
+
* depends on the validator type: AUTOMATED validators include a `regex` and
|
|
39
|
+
* `validationRules`; ATTESTATION validators include `attestationRules` with up to
|
|
40
|
+
* three layers of nesting.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const validator = await client.validators.retrieve(
|
|
45
|
+
* 'a033d3c7-4b0a-4404-9131-99745694c1da',
|
|
46
|
+
* );
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
retrieve(validatorID: string, options?: RequestOptions): APIPromise<Validator> {
|
|
50
|
+
return this._client.get(path`/validators/${validatorID}`, options);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Returns all validators in the workspace. Each validator is either an AUTOMATED
|
|
55
|
+
* validator (applies a regex to artifact content and evaluates the result with
|
|
56
|
+
* validation rules) or an ATTESTATION validator (presents yes/no questions to a
|
|
57
|
+
* reviewer, optionally with nested follow-up rules).
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const validators = await client.validators.list();
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
list(
|
|
65
|
+
query: ValidatorListParams | null | undefined = {},
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): APIPromise<ValidatorListResponse> {
|
|
68
|
+
return this._client.get('/validators', { query, ...options });
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type PostValidator = PostValidator.AutomatedPostValidator | PostValidator.AttestationPostValidator;
|
|
73
|
+
|
|
74
|
+
export namespace PostValidator {
|
|
75
|
+
export interface AutomatedPostValidator {
|
|
76
|
+
/**
|
|
77
|
+
* The display name of the validator.
|
|
78
|
+
*/
|
|
79
|
+
name: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The regular expression applied to each incoming artifact.
|
|
83
|
+
*/
|
|
84
|
+
regex: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* A human-readable description of what this validator checks.
|
|
88
|
+
*/
|
|
89
|
+
statement: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* AUTOMATED validators apply a regex to artifact content and evaluate the result
|
|
93
|
+
* using one or more validation rules.
|
|
94
|
+
*/
|
|
95
|
+
type: 'AUTOMATED';
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Ordered list of rules that evaluate the regex result. Rules are evaluated in
|
|
99
|
+
* index order.
|
|
100
|
+
*/
|
|
101
|
+
validationRules: Array<AutomatedPostValidator.ValidationRule>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export namespace AutomatedPostValidator {
|
|
105
|
+
export interface ValidationRule {
|
|
106
|
+
/**
|
|
107
|
+
* The comparison operator applied between the extracted regex value and the target
|
|
108
|
+
* value. One of: CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS,
|
|
109
|
+
* NOT_EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN,
|
|
110
|
+
* LESS_THAN_OR_EQUAL_TO, STARTS_WITH, DOES_NOT_START_WITH.
|
|
111
|
+
*/
|
|
112
|
+
criteria:
|
|
113
|
+
| 'CONTAINS'
|
|
114
|
+
| 'DOES_NOT_CONTAIN'
|
|
115
|
+
| 'ENDS_WITH'
|
|
116
|
+
| 'DOES_NOT_END_WITH'
|
|
117
|
+
| 'EQUALS'
|
|
118
|
+
| 'NOT_EQUALS'
|
|
119
|
+
| 'GREATER_THAN'
|
|
120
|
+
| 'GREATER_THAN_OR_EQUAL_TO'
|
|
121
|
+
| 'LESS_THAN'
|
|
122
|
+
| 'LESS_THAN_OR_EQUAL_TO'
|
|
123
|
+
| 'STARTS_WITH'
|
|
124
|
+
| 'DOES_NOT_START_WITH'
|
|
125
|
+
| null;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Describes how the regex match result is extracted before being compared.
|
|
129
|
+
* MATCH_COUNT counts the total number of matches; MATCH_GROUP extracts the content
|
|
130
|
+
* of a specific capture group.
|
|
131
|
+
*/
|
|
132
|
+
regexOperation: ValidationRule.PostRegexMatchCountOp | ValidationRule.PostRegexMatchGroupOp | null;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The right-hand side of the criteria comparison. MATCH_COUNT uses the match
|
|
136
|
+
* count, MATCH_GROUP uses a specific capture group, CUSTOM_TEXT uses a literal
|
|
137
|
+
* string.
|
|
138
|
+
*/
|
|
139
|
+
value:
|
|
140
|
+
| ValidationRule.PostValidationMatchCountValue
|
|
141
|
+
| ValidationRule.PostValidationMatchGroupValue
|
|
142
|
+
| ValidationRule.PostValidationCustomTextValue
|
|
143
|
+
| null;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export namespace ValidationRule {
|
|
147
|
+
export interface PostRegexMatchCountOp {
|
|
148
|
+
type: 'MATCH_COUNT';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface PostRegexMatchGroupOp {
|
|
152
|
+
groupNumber: number;
|
|
153
|
+
|
|
154
|
+
type: 'MATCH_GROUP';
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface PostValidationMatchCountValue {
|
|
158
|
+
type: 'MATCH_COUNT';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export interface PostValidationMatchGroupValue {
|
|
162
|
+
type: 'MATCH_GROUP';
|
|
163
|
+
|
|
164
|
+
groupNumber?: number;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface PostValidationCustomTextValue {
|
|
168
|
+
type: 'CUSTOM_TEXT';
|
|
169
|
+
|
|
170
|
+
customText?: string;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface AttestationPostValidator {
|
|
176
|
+
/**
|
|
177
|
+
* Ordered list of yes/no questions for this attestation validator. Rules are
|
|
178
|
+
* evaluated in index order. Up to three layers of nesting are supported.
|
|
179
|
+
*/
|
|
180
|
+
attestationRules: Array<AttestationPostValidator.AttestationRule>;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The display name of the validator.
|
|
184
|
+
*/
|
|
185
|
+
name: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* A human-readable description of what this validator checks.
|
|
189
|
+
*/
|
|
190
|
+
statement: string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* ATTESTATION validators present a series of yes/no questions to a reviewer. Each
|
|
194
|
+
* question has a disposition for each answer (PASS, FAIL, or BASED_ON_NESTED).
|
|
195
|
+
*/
|
|
196
|
+
type: 'ATTESTATION';
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export namespace AttestationPostValidator {
|
|
200
|
+
export interface AttestationRule {
|
|
201
|
+
/**
|
|
202
|
+
* Nested rules for this attestation rule (up to two more layers deep).
|
|
203
|
+
*/
|
|
204
|
+
nestedRules: Array<AttestationRule.NestedRule>;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The outcome when the user answers No.
|
|
208
|
+
*/
|
|
209
|
+
noDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The yes/no question presented to the user.
|
|
213
|
+
*/
|
|
214
|
+
question: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The outcome when the user answers Yes.
|
|
218
|
+
*/
|
|
219
|
+
yesDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export namespace AttestationRule {
|
|
223
|
+
export interface NestedRule {
|
|
224
|
+
/**
|
|
225
|
+
* Nested rules for this attestation rule (leaf level, no further nesting).
|
|
226
|
+
*/
|
|
227
|
+
nestedRules: Array<NestedRule.NestedRule>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* The outcome when the user answers No.
|
|
231
|
+
*/
|
|
232
|
+
noDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* The yes/no question presented to the user.
|
|
236
|
+
*/
|
|
237
|
+
question: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* The outcome when the user answers Yes.
|
|
241
|
+
*/
|
|
242
|
+
yesDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export namespace NestedRule {
|
|
246
|
+
export interface NestedRule {
|
|
247
|
+
/**
|
|
248
|
+
* The outcome when the user answers No.
|
|
249
|
+
*/
|
|
250
|
+
noDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The yes/no question presented to the user.
|
|
254
|
+
*/
|
|
255
|
+
question: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* The outcome when the user answers Yes.
|
|
259
|
+
*/
|
|
260
|
+
yesDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export type Validator = Validator.AutomatedValidator | Validator.AttestationValidator;
|
|
268
|
+
|
|
269
|
+
export namespace Validator {
|
|
270
|
+
export interface AutomatedValidator {
|
|
271
|
+
/**
|
|
272
|
+
* A UUID that uniquely identifies this validator within Paramify.
|
|
273
|
+
*/
|
|
274
|
+
id: string;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* The display name of the validator.
|
|
278
|
+
*/
|
|
279
|
+
name: string;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The regular expression applied to each incoming artifact.
|
|
283
|
+
*/
|
|
284
|
+
regex: string;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* A human-readable description of what this validator checks.
|
|
288
|
+
*/
|
|
289
|
+
statement: string;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* AUTOMATED validators apply a regex to artifact content and evaluate the result
|
|
293
|
+
* using one or more validation rules.
|
|
294
|
+
*/
|
|
295
|
+
type: 'AUTOMATED';
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Ordered list of rules that evaluate the regex result. Rules are evaluated in
|
|
299
|
+
* index order.
|
|
300
|
+
*/
|
|
301
|
+
validationRules: Array<AutomatedValidator.ValidationRule>;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export namespace AutomatedValidator {
|
|
305
|
+
export interface ValidationRule {
|
|
306
|
+
/**
|
|
307
|
+
* The comparison operator applied between the extracted regex value and the target
|
|
308
|
+
* value. One of: CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS,
|
|
309
|
+
* NOT_EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN,
|
|
310
|
+
* LESS_THAN_OR_EQUAL_TO, STARTS_WITH, DOES_NOT_START_WITH.
|
|
311
|
+
*/
|
|
312
|
+
criteria:
|
|
313
|
+
| 'CONTAINS'
|
|
314
|
+
| 'DOES_NOT_CONTAIN'
|
|
315
|
+
| 'ENDS_WITH'
|
|
316
|
+
| 'DOES_NOT_END_WITH'
|
|
317
|
+
| 'EQUALS'
|
|
318
|
+
| 'NOT_EQUALS'
|
|
319
|
+
| 'GREATER_THAN'
|
|
320
|
+
| 'GREATER_THAN_OR_EQUAL_TO'
|
|
321
|
+
| 'LESS_THAN'
|
|
322
|
+
| 'LESS_THAN_OR_EQUAL_TO'
|
|
323
|
+
| 'STARTS_WITH'
|
|
324
|
+
| 'DOES_NOT_START_WITH'
|
|
325
|
+
| null;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Describes how the regex match result is extracted before being compared.
|
|
329
|
+
* MATCH_COUNT counts the total number of matches; MATCH_GROUP extracts the content
|
|
330
|
+
* of a specific capture group.
|
|
331
|
+
*/
|
|
332
|
+
regexOperation: ValidationRule.RegexMatchCountOp | ValidationRule.RegexMatchGroupOp | null;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* The right-hand side of the criteria comparison. MATCH_COUNT uses the match
|
|
336
|
+
* count, MATCH_GROUP uses a specific capture group, CUSTOM_TEXT uses a literal
|
|
337
|
+
* string.
|
|
338
|
+
*/
|
|
339
|
+
value:
|
|
340
|
+
| ValidationRule.ValidationMatchCountValue
|
|
341
|
+
| ValidationRule.ValidationMatchGroupValue
|
|
342
|
+
| ValidationRule.ValidationCustomTextValue
|
|
343
|
+
| null;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export namespace ValidationRule {
|
|
347
|
+
export interface RegexMatchCountOp {
|
|
348
|
+
type: 'MATCH_COUNT';
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export interface RegexMatchGroupOp {
|
|
352
|
+
groupNumber: number;
|
|
353
|
+
|
|
354
|
+
type: 'MATCH_GROUP';
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export interface ValidationMatchCountValue {
|
|
358
|
+
type: 'MATCH_COUNT';
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export interface ValidationMatchGroupValue {
|
|
362
|
+
type: 'MATCH_GROUP';
|
|
363
|
+
|
|
364
|
+
groupNumber?: number;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export interface ValidationCustomTextValue {
|
|
368
|
+
type: 'CUSTOM_TEXT';
|
|
369
|
+
|
|
370
|
+
customText?: string;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export interface AttestationValidator {
|
|
376
|
+
/**
|
|
377
|
+
* A UUID that uniquely identifies this validator within Paramify.
|
|
378
|
+
*/
|
|
379
|
+
id: string;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Ordered list of yes/no questions for this attestation validator. Rules are
|
|
383
|
+
* evaluated in index order. Up to three layers of nesting are supported.
|
|
384
|
+
*/
|
|
385
|
+
attestationRules: Array<AttestationValidator.AttestationRule>;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* The display name of the validator.
|
|
389
|
+
*/
|
|
390
|
+
name: string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* A human-readable description of what this validator checks.
|
|
394
|
+
*/
|
|
395
|
+
statement: string;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* ATTESTATION validators present a series of yes/no questions to a reviewer. Each
|
|
399
|
+
* question has a disposition for each answer (PASS, FAIL, or BASED_ON_NESTED).
|
|
400
|
+
*/
|
|
401
|
+
type: 'ATTESTATION';
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export namespace AttestationValidator {
|
|
405
|
+
export interface AttestationRule {
|
|
406
|
+
/**
|
|
407
|
+
* Nested rules for this attestation rule (up to two more layers deep).
|
|
408
|
+
*/
|
|
409
|
+
nestedRules: Array<AttestationRule.NestedRule>;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* The outcome when the user answers No.
|
|
413
|
+
*/
|
|
414
|
+
noDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* The yes/no question presented to the user.
|
|
418
|
+
*/
|
|
419
|
+
question: string;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* The outcome when the user answers Yes.
|
|
423
|
+
*/
|
|
424
|
+
yesDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export namespace AttestationRule {
|
|
428
|
+
export interface NestedRule {
|
|
429
|
+
/**
|
|
430
|
+
* Nested rules for this attestation rule (leaf level, no further nesting).
|
|
431
|
+
*/
|
|
432
|
+
nestedRules: Array<NestedRule.NestedRule>;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* The outcome when the user answers No.
|
|
436
|
+
*/
|
|
437
|
+
noDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* The yes/no question presented to the user.
|
|
441
|
+
*/
|
|
442
|
+
question: string;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* The outcome when the user answers Yes.
|
|
446
|
+
*/
|
|
447
|
+
yesDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export namespace NestedRule {
|
|
451
|
+
export interface NestedRule {
|
|
452
|
+
/**
|
|
453
|
+
* The outcome when the user answers No.
|
|
454
|
+
*/
|
|
455
|
+
noDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* The yes/no question presented to the user.
|
|
459
|
+
*/
|
|
460
|
+
question: string;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* The outcome when the user answers Yes.
|
|
464
|
+
*/
|
|
465
|
+
yesDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export interface ValidatorListResponse {
|
|
473
|
+
validators: Array<Validator>;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export type ValidatorCreateParams = ValidatorCreateParams.Variant0 | ValidatorCreateParams.Variant1;
|
|
477
|
+
|
|
478
|
+
export declare namespace ValidatorCreateParams {
|
|
479
|
+
export interface Variant0 {
|
|
480
|
+
/**
|
|
481
|
+
* The display name of the validator.
|
|
482
|
+
*/
|
|
483
|
+
name: string;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* The regular expression applied to each incoming artifact.
|
|
487
|
+
*/
|
|
488
|
+
regex: string;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* A human-readable description of what this validator checks.
|
|
492
|
+
*/
|
|
493
|
+
statement: string;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* AUTOMATED validators apply a regex to artifact content and evaluate the result
|
|
497
|
+
* using one or more validation rules.
|
|
498
|
+
*/
|
|
499
|
+
type: 'AUTOMATED';
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Ordered list of rules that evaluate the regex result. Rules are evaluated in
|
|
503
|
+
* index order.
|
|
504
|
+
*/
|
|
505
|
+
validationRules: Array<Variant0.ValidationRule>;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export namespace Variant0 {
|
|
509
|
+
export interface ValidationRule {
|
|
510
|
+
/**
|
|
511
|
+
* The comparison operator applied between the extracted regex value and the target
|
|
512
|
+
* value. One of: CONTAINS, DOES_NOT_CONTAIN, ENDS_WITH, DOES_NOT_END_WITH, EQUALS,
|
|
513
|
+
* NOT_EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN,
|
|
514
|
+
* LESS_THAN_OR_EQUAL_TO, STARTS_WITH, DOES_NOT_START_WITH.
|
|
515
|
+
*/
|
|
516
|
+
criteria:
|
|
517
|
+
| 'CONTAINS'
|
|
518
|
+
| 'DOES_NOT_CONTAIN'
|
|
519
|
+
| 'ENDS_WITH'
|
|
520
|
+
| 'DOES_NOT_END_WITH'
|
|
521
|
+
| 'EQUALS'
|
|
522
|
+
| 'NOT_EQUALS'
|
|
523
|
+
| 'GREATER_THAN'
|
|
524
|
+
| 'GREATER_THAN_OR_EQUAL_TO'
|
|
525
|
+
| 'LESS_THAN'
|
|
526
|
+
| 'LESS_THAN_OR_EQUAL_TO'
|
|
527
|
+
| 'STARTS_WITH'
|
|
528
|
+
| 'DOES_NOT_START_WITH'
|
|
529
|
+
| null;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Describes how the regex match result is extracted before being compared.
|
|
533
|
+
* MATCH_COUNT counts the total number of matches; MATCH_GROUP extracts the content
|
|
534
|
+
* of a specific capture group.
|
|
535
|
+
*/
|
|
536
|
+
regexOperation: ValidationRule.PostRegexMatchCountOp | ValidationRule.PostRegexMatchGroupOp | null;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* The right-hand side of the criteria comparison. MATCH_COUNT uses the match
|
|
540
|
+
* count, MATCH_GROUP uses a specific capture group, CUSTOM_TEXT uses a literal
|
|
541
|
+
* string.
|
|
542
|
+
*/
|
|
543
|
+
value:
|
|
544
|
+
| ValidationRule.PostValidationMatchCountValue
|
|
545
|
+
| ValidationRule.PostValidationMatchGroupValue
|
|
546
|
+
| ValidationRule.PostValidationCustomTextValue
|
|
547
|
+
| null;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
export namespace ValidationRule {
|
|
551
|
+
export interface PostRegexMatchCountOp {
|
|
552
|
+
type: 'MATCH_COUNT';
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export interface PostRegexMatchGroupOp {
|
|
556
|
+
groupNumber: number;
|
|
557
|
+
|
|
558
|
+
type: 'MATCH_GROUP';
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export interface PostValidationMatchCountValue {
|
|
562
|
+
type: 'MATCH_COUNT';
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export interface PostValidationMatchGroupValue {
|
|
566
|
+
type: 'MATCH_GROUP';
|
|
567
|
+
|
|
568
|
+
groupNumber?: number;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export interface PostValidationCustomTextValue {
|
|
572
|
+
type: 'CUSTOM_TEXT';
|
|
573
|
+
|
|
574
|
+
customText?: string;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export interface Variant1 {
|
|
580
|
+
/**
|
|
581
|
+
* Ordered list of yes/no questions for this attestation validator. Rules are
|
|
582
|
+
* evaluated in index order. Up to three layers of nesting are supported.
|
|
583
|
+
*/
|
|
584
|
+
attestationRules: Array<Variant1.AttestationRule>;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* The display name of the validator.
|
|
588
|
+
*/
|
|
589
|
+
name: string;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* A human-readable description of what this validator checks.
|
|
593
|
+
*/
|
|
594
|
+
statement: string;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* ATTESTATION validators present a series of yes/no questions to a reviewer. Each
|
|
598
|
+
* question has a disposition for each answer (PASS, FAIL, or BASED_ON_NESTED).
|
|
599
|
+
*/
|
|
600
|
+
type: 'ATTESTATION';
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
export namespace Variant1 {
|
|
604
|
+
export interface AttestationRule {
|
|
605
|
+
/**
|
|
606
|
+
* Nested rules for this attestation rule (up to two more layers deep).
|
|
607
|
+
*/
|
|
608
|
+
nestedRules: Array<AttestationRule.NestedRule>;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* The outcome when the user answers No.
|
|
612
|
+
*/
|
|
613
|
+
noDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* The yes/no question presented to the user.
|
|
617
|
+
*/
|
|
618
|
+
question: string;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* The outcome when the user answers Yes.
|
|
622
|
+
*/
|
|
623
|
+
yesDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export namespace AttestationRule {
|
|
627
|
+
export interface NestedRule {
|
|
628
|
+
/**
|
|
629
|
+
* Nested rules for this attestation rule (leaf level, no further nesting).
|
|
630
|
+
*/
|
|
631
|
+
nestedRules: Array<NestedRule.NestedRule>;
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* The outcome when the user answers No.
|
|
635
|
+
*/
|
|
636
|
+
noDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* The yes/no question presented to the user.
|
|
640
|
+
*/
|
|
641
|
+
question: string;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* The outcome when the user answers Yes.
|
|
645
|
+
*/
|
|
646
|
+
yesDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export namespace NestedRule {
|
|
650
|
+
export interface NestedRule {
|
|
651
|
+
/**
|
|
652
|
+
* The outcome when the user answers No.
|
|
653
|
+
*/
|
|
654
|
+
noDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* The yes/no question presented to the user.
|
|
658
|
+
*/
|
|
659
|
+
question: string;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* The outcome when the user answers Yes.
|
|
663
|
+
*/
|
|
664
|
+
yesDisposition: 'PASS' | 'FAIL' | 'BASED_ON_NESTED';
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
export interface ValidatorListParams {
|
|
672
|
+
/**
|
|
673
|
+
* Filter by validator ID. Multiple IDs can be provided.
|
|
674
|
+
*/
|
|
675
|
+
ids?: Array<string>;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Filter by validator type. AUTOMATED or ATTESTATION.
|
|
679
|
+
*/
|
|
680
|
+
type?: 'AUTOMATED' | 'ATTESTATION';
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export declare namespace Validators {
|
|
684
|
+
export {
|
|
685
|
+
type PostValidator as PostValidator,
|
|
686
|
+
type Validator as Validator,
|
|
687
|
+
type ValidatorListResponse as ValidatorListResponse,
|
|
688
|
+
type ValidatorCreateParams as ValidatorCreateParams,
|
|
689
|
+
type ValidatorListParams as ValidatorListParams,
|
|
690
|
+
};
|
|
691
|
+
}
|
package/src/resources.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './resources/index';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
// this config is included in the published src directory to prevent TS errors
|
|
3
|
+
// from appearing when users go to source, and VSCode opens the source .ts file
|
|
4
|
+
// via declaration maps
|
|
5
|
+
"include": ["index.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "ES2015",
|
|
8
|
+
"lib": ["DOM", "DOM.Iterable", "ES2018"],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/uploads.ts
ADDED
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '0.0.2'; // x-release-please-version
|
package/uploads.d.mts
ADDED