@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,682 @@
|
|
|
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 { type Uploadable } from '../../core/uploads';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { multipartFormRequestOptions } from '../../internal/uploads';
|
|
9
|
+
import { path } from '../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class Artifacts extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a specific artifact by ID.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const artifact = await client.evidence.artifacts.retrieve(
|
|
18
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
19
|
+
* { evidenceId: '123e4567-e89b-12d3-a456-426614174000' },
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
retrieve(
|
|
24
|
+
artifactID: string,
|
|
25
|
+
params: ArtifactRetrieveParams,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): APIPromise<ArtifactRetrieveResponse> {
|
|
28
|
+
const { evidenceId } = params;
|
|
29
|
+
return this._client.get(path`/evidence/${evidenceId}/artifacts/${artifactID}`, options);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Update a specific artifact by ID. You can modify the title, note, and effective
|
|
34
|
+
* date of an artifact without changing the underlying file or URL. Only the fields
|
|
35
|
+
* provided in the request body will be updated.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const artifact = await client.evidence.artifacts.update(
|
|
40
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
41
|
+
* { evidenceId: '123e4567-e89b-12d3-a456-426614174000' },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
update(
|
|
46
|
+
artifactID: string,
|
|
47
|
+
params: ArtifactUpdateParams,
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): APIPromise<ArtifactUpdateResponse> {
|
|
50
|
+
const { evidenceId, ...body } = params;
|
|
51
|
+
return this._client.patch(path`/evidence/${evidenceId}/artifacts/${artifactID}`, { body, ...options });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves all artifacts associated with a specific evidence record. Artifacts
|
|
56
|
+
* are digital files, documents, or URL references that support and validate
|
|
57
|
+
* evidence.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const artifacts = await client.evidence.artifacts.list(
|
|
62
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
list(
|
|
67
|
+
evidenceID: string,
|
|
68
|
+
query: ArtifactListParams | null | undefined = {},
|
|
69
|
+
options?: RequestOptions,
|
|
70
|
+
): APIPromise<ArtifactListResponse> {
|
|
71
|
+
return this._client.get(path`/evidence/${evidenceID}/artifacts`, { query, ...options });
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Delete a specific artifact by ID. This operation cannot be undone. If the
|
|
76
|
+
* artifact is a file upload, the file will be removed from storage. If it is a URL
|
|
77
|
+
* artifact, the reference will be deleted. Use this endpoint carefully as it is
|
|
78
|
+
* irreversible.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* await client.evidence.artifacts.delete(
|
|
83
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
84
|
+
* { evidenceId: '123e4567-e89b-12d3-a456-426614174000' },
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
delete(artifactID: string, params: ArtifactDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
89
|
+
const { evidenceId } = params;
|
|
90
|
+
return this._client.delete(path`/evidence/${evidenceId}/artifacts/${artifactID}`, {
|
|
91
|
+
...options,
|
|
92
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Creates an artifact from a URL reference and associates it with the specified
|
|
98
|
+
* evidence record. The URL artifact will maintain the link to the external
|
|
99
|
+
* resource while storing relevant metadata such as title, notes, and effective
|
|
100
|
+
* date.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* const artifact = await client.evidence.artifacts.addURL(
|
|
105
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
106
|
+
* {
|
|
107
|
+
* pathName:
|
|
108
|
+
* 'https://docs.company.com/security/policies/access-control',
|
|
109
|
+
* },
|
|
110
|
+
* );
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
addURL(evidenceID: string, body: ArtifactAddURLParams, options?: RequestOptions): APIPromise<Artifact> {
|
|
114
|
+
return this._client.post(path`/evidence/${evidenceID}/artifacts/url`, { body, ...options });
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Associates an artifact with a subject. The subject can be a control
|
|
119
|
+
* implementation. Artifacts can only be associated with control implementations on
|
|
120
|
+
* audit assessments, not with program control implementations.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* ```ts
|
|
124
|
+
* await client.evidence.artifacts.artifactAssociate(
|
|
125
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
126
|
+
* {
|
|
127
|
+
* evidenceId: '123e4567-e89b-12d3-a456-426614174000',
|
|
128
|
+
* associationType: 'CONNECT',
|
|
129
|
+
* subjectId: '123e4567-e89b-12d3-a456-426614174000',
|
|
130
|
+
* subjectType: 'CONTROL_IMPLEMENTATION',
|
|
131
|
+
* },
|
|
132
|
+
* );
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
artifactAssociate(
|
|
136
|
+
artifactID: string,
|
|
137
|
+
params: ArtifactArtifactAssociateParams,
|
|
138
|
+
options?: RequestOptions,
|
|
139
|
+
): APIPromise<void> {
|
|
140
|
+
const { evidenceId, ...body } = params;
|
|
141
|
+
return this._client.post(path`/evidence/${evidenceId}/artifacts/${artifactID}/associate`, {
|
|
142
|
+
body,
|
|
143
|
+
...options,
|
|
144
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Uploads a file as an artifact and associates it with the specified evidence
|
|
150
|
+
* record. The uploaded file will be securely stored and made available for future
|
|
151
|
+
* reference. Maximum file size: 10 GB.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```ts
|
|
155
|
+
* const artifact = await client.evidence.artifacts.upload(
|
|
156
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
157
|
+
* {
|
|
158
|
+
* artifact: {},
|
|
159
|
+
* file: fs.createReadStream('path/to/file'),
|
|
160
|
+
* },
|
|
161
|
+
* );
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
upload(evidenceID: string, body: ArtifactUploadParams, options?: RequestOptions): APIPromise<Artifact> {
|
|
165
|
+
return this._client.post(
|
|
166
|
+
path`/evidence/${evidenceID}/artifacts/upload`,
|
|
167
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Complete artifact object containing all metadata, file information, and creation
|
|
174
|
+
* details. Artifacts can be either uploaded files or URL references.
|
|
175
|
+
*/
|
|
176
|
+
export interface Artifact {
|
|
177
|
+
/**
|
|
178
|
+
* Unique identifier for the artifact
|
|
179
|
+
*/
|
|
180
|
+
id: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* ISO 8601 timestamp when the artifact was created in the system
|
|
184
|
+
*/
|
|
185
|
+
createdAt: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Information about the user who created the artifact
|
|
189
|
+
*/
|
|
190
|
+
createdBy: Artifact.CreatedBy;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Indicates the artifact type: true for URL artifacts, false for uploaded file
|
|
194
|
+
* artifacts
|
|
195
|
+
*/
|
|
196
|
+
isUrl: boolean;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* For file artifacts: the direct URL to retrieve the stored file. This link may
|
|
200
|
+
* expire after about 60 minutes; request the artifact again to get a new link. For
|
|
201
|
+
* URL artifacts: this is the full external URL to the resource.
|
|
202
|
+
*/
|
|
203
|
+
pathname: string;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Display title of the artifact. For file uploads, this defaults to the original
|
|
207
|
+
* filename if not provided during creation.
|
|
208
|
+
*/
|
|
209
|
+
title: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Information about the validators that have run or are running on the artifact
|
|
213
|
+
*/
|
|
214
|
+
validators: Array<Artifact.Validator>;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The date when this artifact was effective or relevant. This may differ from
|
|
218
|
+
* createdAt and represents when the data was actually valid.
|
|
219
|
+
*/
|
|
220
|
+
effectiveDate?: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* MIME type of the file (e.g., application/pdf, image/png). This field is null for
|
|
224
|
+
* URL artifacts.
|
|
225
|
+
*/
|
|
226
|
+
fileType?: string | null;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Additional notes or comments about the artifact. Can be null if no note was
|
|
230
|
+
* provided.
|
|
231
|
+
*/
|
|
232
|
+
note?: string | null;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* The original filename when the artifact was uploaded. This field is null for URL
|
|
236
|
+
* artifacts.
|
|
237
|
+
*/
|
|
238
|
+
originalFileName?: string | null;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export namespace Artifact {
|
|
242
|
+
/**
|
|
243
|
+
* Information about the user who created the artifact
|
|
244
|
+
*/
|
|
245
|
+
export interface CreatedBy {
|
|
246
|
+
email: string | null;
|
|
247
|
+
|
|
248
|
+
username: string | null;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export interface Validator {
|
|
252
|
+
id: string | null;
|
|
253
|
+
|
|
254
|
+
name: string;
|
|
255
|
+
|
|
256
|
+
result: 'PASS' | 'FAIL' | 'NOT_SET' | 'ERROR' | null;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Schema for updating artifact metadata. All fields are optional - only include
|
|
262
|
+
* the fields you want to update. The underlying file or URL cannot be changed
|
|
263
|
+
* through this endpoint.
|
|
264
|
+
*/
|
|
265
|
+
export interface PatchArtifact {
|
|
266
|
+
/**
|
|
267
|
+
* Update the effective date of the artifact. Set to null to remove the effective
|
|
268
|
+
* date, or provide a new date to update it.
|
|
269
|
+
*/
|
|
270
|
+
effectiveDate?: string | null;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Update the note or comments for the artifact. This will replace the existing
|
|
274
|
+
* note with the new value.
|
|
275
|
+
*/
|
|
276
|
+
note?: string;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Update the title of the artifact. This will replace the existing title with the
|
|
280
|
+
* new value.
|
|
281
|
+
*/
|
|
282
|
+
title?: string;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Schema for creating new URL artifacts. The pathName field is required and must
|
|
287
|
+
* be a valid URL. All other fields are optional.
|
|
288
|
+
*/
|
|
289
|
+
export interface PostURLArtifact {
|
|
290
|
+
/**
|
|
291
|
+
* The complete URL to the external resource. Must be a valid URL starting with
|
|
292
|
+
* http:// or https://
|
|
293
|
+
*/
|
|
294
|
+
pathName: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* The date when this URL artifact was effective or relevant. This represents when
|
|
298
|
+
* the content at the URL was valid or applicable. If not provided, defaults to the
|
|
299
|
+
* current date.
|
|
300
|
+
*/
|
|
301
|
+
effectiveDate?: string | null;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Additional notes or comments about the URL artifact. Use this to explain what
|
|
305
|
+
* the URL contains or why it is relevant to the evidence.
|
|
306
|
+
*/
|
|
307
|
+
note?: string | null;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* A descriptive title for the URL artifact. If not provided, the URL domain will
|
|
311
|
+
* be used as the title.
|
|
312
|
+
*/
|
|
313
|
+
title?: string | null;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Schema for creating new file artifacts. All fields are optional - you can upload
|
|
318
|
+
* a file with minimal metadata and enhance it later.
|
|
319
|
+
*/
|
|
320
|
+
export interface UploadArtifact {
|
|
321
|
+
/**
|
|
322
|
+
* The date when this artifact was effective or relevant. This may differ from the
|
|
323
|
+
* upload date and represents when the data or document was actually valid. If not
|
|
324
|
+
* provided, defaults to the current date.
|
|
325
|
+
*/
|
|
326
|
+
effectiveDate?: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Additional notes or comments about the artifact. Use this field to provide
|
|
330
|
+
* context, explanations, or any relevant information about the artifact.
|
|
331
|
+
*/
|
|
332
|
+
note?: string;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* A descriptive title for the artifact. If not provided, the original filename
|
|
336
|
+
* will be used as the title.
|
|
337
|
+
*/
|
|
338
|
+
title?: string;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* The single artifact object with detailed metadata and file information
|
|
343
|
+
*/
|
|
344
|
+
export interface ArtifactRetrieveResponse {
|
|
345
|
+
/**
|
|
346
|
+
* Unique identifier for the artifact
|
|
347
|
+
*/
|
|
348
|
+
id: string;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* ISO 8601 timestamp when the artifact was created in the system
|
|
352
|
+
*/
|
|
353
|
+
createdAt: string;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Information about the user who created the artifact
|
|
357
|
+
*/
|
|
358
|
+
createdBy: ArtifactRetrieveResponse.CreatedBy;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Indicates the artifact type: true for URL artifacts, false for uploaded file
|
|
362
|
+
* artifacts
|
|
363
|
+
*/
|
|
364
|
+
isUrl: boolean;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* For file artifacts: the direct URL to retrieve the stored file. This link may
|
|
368
|
+
* expire after about 60 minutes; request the artifact again to get a new link. For
|
|
369
|
+
* URL artifacts: this is the full external URL to the resource.
|
|
370
|
+
*/
|
|
371
|
+
pathname: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Display title of the artifact. For file uploads, this defaults to the original
|
|
375
|
+
* filename if not provided during creation.
|
|
376
|
+
*/
|
|
377
|
+
title: string;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Information about the validators that have run or are running on the artifact
|
|
381
|
+
*/
|
|
382
|
+
validators: Array<ArtifactRetrieveResponse.Validator>;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* The date when this artifact was effective or relevant. This may differ from
|
|
386
|
+
* createdAt and represents when the data was actually valid.
|
|
387
|
+
*/
|
|
388
|
+
effectiveDate?: string;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* MIME type of the file (e.g., application/pdf, image/png). This field is null for
|
|
392
|
+
* URL artifacts.
|
|
393
|
+
*/
|
|
394
|
+
fileType?: string | null;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Additional notes or comments about the artifact. Can be null if no note was
|
|
398
|
+
* provided.
|
|
399
|
+
*/
|
|
400
|
+
note?: string | null;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* The original filename when the artifact was uploaded. This field is null for URL
|
|
404
|
+
* artifacts.
|
|
405
|
+
*/
|
|
406
|
+
originalFileName?: string | null;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export namespace ArtifactRetrieveResponse {
|
|
410
|
+
/**
|
|
411
|
+
* Information about the user who created the artifact
|
|
412
|
+
*/
|
|
413
|
+
export interface CreatedBy {
|
|
414
|
+
email: string | null;
|
|
415
|
+
|
|
416
|
+
username: string | null;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export interface Validator {
|
|
420
|
+
id: string | null;
|
|
421
|
+
|
|
422
|
+
name: string;
|
|
423
|
+
|
|
424
|
+
result: 'PASS' | 'FAIL' | 'NOT_SET' | 'ERROR' | null;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* The artifact as it exists after the update operation, including all current
|
|
430
|
+
* metadata
|
|
431
|
+
*/
|
|
432
|
+
export interface ArtifactUpdateResponse {
|
|
433
|
+
/**
|
|
434
|
+
* Unique identifier for the artifact
|
|
435
|
+
*/
|
|
436
|
+
id: string;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* ISO 8601 timestamp when the artifact was created in the system
|
|
440
|
+
*/
|
|
441
|
+
createdAt: string;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Information about the user who created the artifact
|
|
445
|
+
*/
|
|
446
|
+
createdBy: ArtifactUpdateResponse.CreatedBy;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Indicates the artifact type: true for URL artifacts, false for uploaded file
|
|
450
|
+
* artifacts
|
|
451
|
+
*/
|
|
452
|
+
isUrl: boolean;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* For file artifacts: the direct URL to retrieve the stored file. This link may
|
|
456
|
+
* expire after about 60 minutes; request the artifact again to get a new link. For
|
|
457
|
+
* URL artifacts: this is the full external URL to the resource.
|
|
458
|
+
*/
|
|
459
|
+
pathname: string;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Display title of the artifact. For file uploads, this defaults to the original
|
|
463
|
+
* filename if not provided during creation.
|
|
464
|
+
*/
|
|
465
|
+
title: string;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Information about the validators that have run or are running on the artifact
|
|
469
|
+
*/
|
|
470
|
+
validators: Array<ArtifactUpdateResponse.Validator>;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* The date when this artifact was effective or relevant. This may differ from
|
|
474
|
+
* createdAt and represents when the data was actually valid.
|
|
475
|
+
*/
|
|
476
|
+
effectiveDate?: string;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* MIME type of the file (e.g., application/pdf, image/png). This field is null for
|
|
480
|
+
* URL artifacts.
|
|
481
|
+
*/
|
|
482
|
+
fileType?: string | null;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Additional notes or comments about the artifact. Can be null if no note was
|
|
486
|
+
* provided.
|
|
487
|
+
*/
|
|
488
|
+
note?: string | null;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* The original filename when the artifact was uploaded. This field is null for URL
|
|
492
|
+
* artifacts.
|
|
493
|
+
*/
|
|
494
|
+
originalFileName?: string | null;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export namespace ArtifactUpdateResponse {
|
|
498
|
+
/**
|
|
499
|
+
* Information about the user who created the artifact
|
|
500
|
+
*/
|
|
501
|
+
export interface CreatedBy {
|
|
502
|
+
email: string | null;
|
|
503
|
+
|
|
504
|
+
username: string | null;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export interface Validator {
|
|
508
|
+
id: string | null;
|
|
509
|
+
|
|
510
|
+
name: string;
|
|
511
|
+
|
|
512
|
+
result: 'PASS' | 'FAIL' | 'NOT_SET' | 'ERROR' | null;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export interface ArtifactListResponse {
|
|
517
|
+
/**
|
|
518
|
+
* Array of artifact objects matching the filter criteria
|
|
519
|
+
*/
|
|
520
|
+
artifacts: Array<Artifact>;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export interface ArtifactRetrieveParams {
|
|
524
|
+
/**
|
|
525
|
+
* An id that represents an evidence within the Paramify application.
|
|
526
|
+
*/
|
|
527
|
+
evidenceId: string;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
export interface ArtifactUpdateParams {
|
|
531
|
+
/**
|
|
532
|
+
* Path param: An id that represents an evidence within the Paramify application.
|
|
533
|
+
*/
|
|
534
|
+
evidenceId: string;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Body param: Update the effective date of the artifact. Set to null to remove the
|
|
538
|
+
* effective date, or provide a new date to update it.
|
|
539
|
+
*/
|
|
540
|
+
effectiveDate?: string | null;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Body param: Update the note or comments for the artifact. This will replace the
|
|
544
|
+
* existing note with the new value.
|
|
545
|
+
*/
|
|
546
|
+
note?: string;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Body param: Update the title of the artifact. This will replace the existing
|
|
550
|
+
* title with the new value.
|
|
551
|
+
*/
|
|
552
|
+
title?: string;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export interface ArtifactListParams {
|
|
556
|
+
/**
|
|
557
|
+
* Filter artifacts by specific artifact IDs. Multiple IDs can be provided to fetch
|
|
558
|
+
* several artifacts in a single request.
|
|
559
|
+
*/
|
|
560
|
+
id?: Array<string>;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Filter artifacts created on specific dates. Use this to find artifacts that were
|
|
564
|
+
* uploaded or created on particular dates. Date format should be YYYY-MM-DD.
|
|
565
|
+
* Multiple dates can be provided.
|
|
566
|
+
*/
|
|
567
|
+
createdAt?: Array<string>;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Filter artifacts by their effective dates. The effective date represents when
|
|
571
|
+
* the artifact data was actually valid or captured, which may differ from the
|
|
572
|
+
* upload date. Multiple dates can be provided.
|
|
573
|
+
*/
|
|
574
|
+
effectiveDate?: Array<string>;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Filter artifacts by type - whether they are URL references (true) or uploaded
|
|
578
|
+
* files (false). Use true to get only URL artifacts, false to get only file
|
|
579
|
+
* uploads.
|
|
580
|
+
*/
|
|
581
|
+
isUrl?: boolean;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Filter artifacts by their original file names. Multiple file names can be
|
|
585
|
+
* provided to fetch several artifacts in a single request.
|
|
586
|
+
*/
|
|
587
|
+
originalFileName?: Array<string>;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export interface ArtifactDeleteParams {
|
|
591
|
+
/**
|
|
592
|
+
* An id that represents an evidence within the Paramify application.
|
|
593
|
+
*/
|
|
594
|
+
evidenceId: string;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
export interface ArtifactAddURLParams {
|
|
598
|
+
/**
|
|
599
|
+
* The complete URL to the external resource. Must be a valid URL starting with
|
|
600
|
+
* http:// or https://
|
|
601
|
+
*/
|
|
602
|
+
pathName: string;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* The date when this URL artifact was effective or relevant. This represents when
|
|
606
|
+
* the content at the URL was valid or applicable. If not provided, defaults to the
|
|
607
|
+
* current date.
|
|
608
|
+
*/
|
|
609
|
+
effectiveDate?: string | null;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Additional notes or comments about the URL artifact. Use this to explain what
|
|
613
|
+
* the URL contains or why it is relevant to the evidence.
|
|
614
|
+
*/
|
|
615
|
+
note?: string | null;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* A descriptive title for the URL artifact. If not provided, the URL domain will
|
|
619
|
+
* be used as the title.
|
|
620
|
+
*/
|
|
621
|
+
title?: string | null;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export interface ArtifactArtifactAssociateParams {
|
|
625
|
+
/**
|
|
626
|
+
* Path param: An id that represents an evidence within the Paramify application.
|
|
627
|
+
*/
|
|
628
|
+
evidenceId: string;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Body param: The type of association to make.
|
|
632
|
+
*/
|
|
633
|
+
associationType: 'CONNECT' | 'DISCONNECT';
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Body param: The ID of the subject to associate the artifact with.
|
|
637
|
+
*/
|
|
638
|
+
subjectId: string;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Body param: The type of subject to associate the artifact with.
|
|
642
|
+
*/
|
|
643
|
+
subjectType: 'CONTROL_IMPLEMENTATION';
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export interface ArtifactUploadParams {
|
|
647
|
+
/**
|
|
648
|
+
* Schema for creating new file artifacts. All fields are optional - you can upload
|
|
649
|
+
* a file with minimal metadata and enhance it later.
|
|
650
|
+
*/
|
|
651
|
+
artifact: UploadArtifact;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* The file to be uploaded as an artifact. Any file type is supported. The original
|
|
655
|
+
* filename will be preserved and used as the default title if no title is
|
|
656
|
+
* specified in the metadata.
|
|
657
|
+
*
|
|
658
|
+
* **IMPORTANT**: Filenames containing certain special characters may cause upload
|
|
659
|
+
* errors. URL-encode your filename to avoid issues -- it will be decoded
|
|
660
|
+
* automatically.
|
|
661
|
+
*/
|
|
662
|
+
file: Uploadable;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export declare namespace Artifacts {
|
|
666
|
+
export {
|
|
667
|
+
type Artifact as Artifact,
|
|
668
|
+
type PatchArtifact as PatchArtifact,
|
|
669
|
+
type PostURLArtifact as PostURLArtifact,
|
|
670
|
+
type UploadArtifact as UploadArtifact,
|
|
671
|
+
type ArtifactRetrieveResponse as ArtifactRetrieveResponse,
|
|
672
|
+
type ArtifactUpdateResponse as ArtifactUpdateResponse,
|
|
673
|
+
type ArtifactListResponse as ArtifactListResponse,
|
|
674
|
+
type ArtifactRetrieveParams as ArtifactRetrieveParams,
|
|
675
|
+
type ArtifactUpdateParams as ArtifactUpdateParams,
|
|
676
|
+
type ArtifactListParams as ArtifactListParams,
|
|
677
|
+
type ArtifactDeleteParams as ArtifactDeleteParams,
|
|
678
|
+
type ArtifactAddURLParams as ArtifactAddURLParams,
|
|
679
|
+
type ArtifactArtifactAssociateParams as ArtifactArtifactAssociateParams,
|
|
680
|
+
type ArtifactUploadParams as ArtifactUploadParams,
|
|
681
|
+
};
|
|
682
|
+
}
|