@pikku/addon-security-scorecard 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/README.md +12 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +67 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js +78 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +106 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts +2 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.js +10 -0
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.ts +11 -0
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +47 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js +18 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +82 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +7 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.js +2 -0
- package/dist/.pikku/console/pikku-node-types.gen.js.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.ts +8 -0
- package/dist/.pikku/credentials/pikku-credentials-meta.gen.json +10 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts +15 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js +13 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.ts +23 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +490 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.js +334 -0
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.ts +754 -0
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +549 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +7 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.json +359 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +7 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.js +44 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +44 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.ts +147 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.js +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.js +10 -0
- package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
- package/dist/.pikku/pikku-services.gen.d.ts +35 -0
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-services.gen.js +30 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/pikku-services.gen.ts +42 -0
- package/dist/.pikku/pikku-types.gen.d.ts +12 -0
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-types.gen.js +17 -0
- package/dist/.pikku/pikku-types.gen.js.map +1 -0
- package/dist/.pikku/pikku-types.gen.ts +21 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +227 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +246 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +21 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/dist/.pikku/schemas/register.gen.d.ts +2 -0
- package/dist/.pikku/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/schemas/register.gen.js +81 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +155 -0
- package/dist/.pikku/schemas/schemas/CompanyGetFactorHistoricalInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CompanyGetFactorHistoricalOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CompanyGetFactorInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CompanyGetFactorOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CompanyGetHistoricalScoreInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CompanyGetHistoricalScoreOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CompanyGetScorePlanInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CompanyGetScorePlanOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CompanyGetScorecardInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CompanyGetScorecardOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialSchema_securityScorecard.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/IndustryGetFactorHistoricalInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/IndustryGetFactorHistoricalOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/IndustryGetFactorInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/IndustryGetFactorOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/IndustryGetScoreInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/IndustryGetScoreOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/InviteCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/InviteCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioCompanyAddInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioCompanyAddOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioCompanyGetAllInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioCompanyGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioCompanyRemoveInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioCompanyRemoveOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PortfolioUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReportDownloadInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReportDownloadOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReportGenerateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReportGenerateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReportGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/VariableSchema_SECURITY_SCORECARD_BASE_URL.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +6 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +5 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +12 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +21 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +114 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +34 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +6 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js +5 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +5 -0
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +10 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +15 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.js +13 -0
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.ts +23 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +90 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/src/functions/companyGetFactor.function.d.ts +13 -0
- package/dist/src/functions/companyGetFactor.function.d.ts.map +1 -0
- package/dist/src/functions/companyGetFactor.function.js +15 -0
- package/dist/src/functions/companyGetFactor.function.js.map +1 -0
- package/dist/src/functions/companyGetFactorHistorical.function.d.ts +21 -0
- package/dist/src/functions/companyGetFactorHistorical.function.d.ts.map +1 -0
- package/dist/src/functions/companyGetFactorHistorical.function.js +17 -0
- package/dist/src/functions/companyGetFactorHistorical.function.js.map +1 -0
- package/dist/src/functions/companyGetHistoricalScore.function.d.ts +21 -0
- package/dist/src/functions/companyGetHistoricalScore.function.d.ts.map +1 -0
- package/dist/src/functions/companyGetHistoricalScore.function.js +17 -0
- package/dist/src/functions/companyGetHistoricalScore.function.js.map +1 -0
- package/dist/src/functions/companyGetScorePlan.function.d.ts +17 -0
- package/dist/src/functions/companyGetScorePlan.function.d.ts.map +1 -0
- package/dist/src/functions/companyGetScorePlan.function.js +16 -0
- package/dist/src/functions/companyGetScorePlan.function.js.map +1 -0
- package/dist/src/functions/companyGetScorecard.function.d.ts +13 -0
- package/dist/src/functions/companyGetScorecard.function.d.ts.map +1 -0
- package/dist/src/functions/companyGetScorecard.function.js +15 -0
- package/dist/src/functions/companyGetScorecard.function.js.map +1 -0
- package/dist/src/functions/industryGetFactor.function.d.ts +13 -0
- package/dist/src/functions/industryGetFactor.function.d.ts.map +1 -0
- package/dist/src/functions/industryGetFactor.function.js +15 -0
- package/dist/src/functions/industryGetFactor.function.js.map +1 -0
- package/dist/src/functions/industryGetFactorHistorical.function.d.ts +21 -0
- package/dist/src/functions/industryGetFactorHistorical.function.d.ts.map +1 -0
- package/dist/src/functions/industryGetFactorHistorical.function.js +17 -0
- package/dist/src/functions/industryGetFactorHistorical.function.js.map +1 -0
- package/dist/src/functions/industryGetScore.function.d.ts +13 -0
- package/dist/src/functions/industryGetScore.function.d.ts.map +1 -0
- package/dist/src/functions/industryGetScore.function.js +15 -0
- package/dist/src/functions/industryGetScore.function.js.map +1 -0
- package/dist/src/functions/inviteCreate.function.d.ts +25 -0
- package/dist/src/functions/inviteCreate.function.d.ts.map +1 -0
- package/dist/src/functions/inviteCreate.function.js +18 -0
- package/dist/src/functions/inviteCreate.function.js.map +1 -0
- package/dist/src/functions/portfolioCompanyAdd.function.d.ts +17 -0
- package/dist/src/functions/portfolioCompanyAdd.function.d.ts.map +1 -0
- package/dist/src/functions/portfolioCompanyAdd.function.js +16 -0
- package/dist/src/functions/portfolioCompanyAdd.function.js.map +1 -0
- package/dist/src/functions/portfolioCompanyGetAll.function.d.ts +13 -0
- package/dist/src/functions/portfolioCompanyGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/portfolioCompanyGetAll.function.js +15 -0
- package/dist/src/functions/portfolioCompanyGetAll.function.js.map +1 -0
- package/dist/src/functions/portfolioCompanyRemove.function.d.ts +17 -0
- package/dist/src/functions/portfolioCompanyRemove.function.d.ts.map +1 -0
- package/dist/src/functions/portfolioCompanyRemove.function.js +16 -0
- package/dist/src/functions/portfolioCompanyRemove.function.js.map +1 -0
- package/dist/src/functions/portfolioCreate.function.d.ts +21 -0
- package/dist/src/functions/portfolioCreate.function.d.ts.map +1 -0
- package/dist/src/functions/portfolioCreate.function.js +17 -0
- package/dist/src/functions/portfolioCreate.function.js.map +1 -0
- package/dist/src/functions/portfolioDelete.function.d.ts +13 -0
- package/dist/src/functions/portfolioDelete.function.d.ts.map +1 -0
- package/dist/src/functions/portfolioDelete.function.js +15 -0
- package/dist/src/functions/portfolioDelete.function.js.map +1 -0
- package/dist/src/functions/portfolioGetAll.function.d.ts +4 -0
- package/dist/src/functions/portfolioGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/portfolioGetAll.function.js +11 -0
- package/dist/src/functions/portfolioGetAll.function.js.map +1 -0
- package/dist/src/functions/portfolioUpdate.function.d.ts +25 -0
- package/dist/src/functions/portfolioUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/portfolioUpdate.function.js +18 -0
- package/dist/src/functions/portfolioUpdate.function.js.map +1 -0
- package/dist/src/functions/reportDownload.function.d.ts +13 -0
- package/dist/src/functions/reportDownload.function.d.ts.map +1 -0
- package/dist/src/functions/reportDownload.function.js +15 -0
- package/dist/src/functions/reportDownload.function.js.map +1 -0
- package/dist/src/functions/reportGenerate.function.d.ts +25 -0
- package/dist/src/functions/reportGenerate.function.d.ts.map +1 -0
- package/dist/src/functions/reportGenerate.function.js +18 -0
- package/dist/src/functions/reportGenerate.function.js.map +1 -0
- package/dist/src/functions/reportGetAll.function.d.ts +4 -0
- package/dist/src/functions/reportGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/reportGetAll.function.js +11 -0
- package/dist/src/functions/reportGetAll.function.js.map +1 -0
- package/dist/src/index.d.ts +20 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +20 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/security-scorecard-api.service.d.ts +10 -0
- package/dist/src/security-scorecard-api.service.d.ts.map +1 -0
- package/dist/src/security-scorecard-api.service.js +212 -0
- package/dist/src/security-scorecard-api.service.js.map +1 -0
- package/dist/src/security-scorecard.credential.d.ts +5 -0
- package/dist/src/security-scorecard.credential.d.ts.map +1 -0
- package/dist/src/security-scorecard.credential.js +13 -0
- package/dist/src/security-scorecard.credential.js.map +1 -0
- package/dist/src/security-scorecard.types.d.ts +7 -0
- package/dist/src/security-scorecard.types.d.ts.map +1 -0
- package/dist/src/security-scorecard.types.js +8 -0
- package/dist/src/security-scorecard.types.js.map +1 -0
- package/dist/src/security-scorecard.variable.d.ts +5 -0
- package/dist/src/security-scorecard.variable.d.ts.map +1 -0
- package/dist/src/security-scorecard.variable.js +11 -0
- package/dist/src/security-scorecard.variable.js.map +1 -0
- package/dist/src/services.d.ts +2 -0
- package/dist/src/services.d.ts.map +1 -0
- package/dist/src/services.js +14 -0
- package/dist/src/services.js.map +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reportGetAll.function.d.ts","sourceRoot":"","sources":["../../../src/functions/reportGetAll.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,kBAAkB,wCAAoC,CAAA;AAEnE,eAAO,MAAM,YAAY,6VAMvB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { pikkuSessionlessFunc } from '#pikku';
|
|
3
|
+
export const ReportGetAllOutput = z.record(z.string(), z.unknown());
|
|
4
|
+
export const reportGetAll = pikkuSessionlessFunc({
|
|
5
|
+
description: "Get recent reports",
|
|
6
|
+
output: ReportGetAllOutput,
|
|
7
|
+
func: async ({ securityScorecard }) => {
|
|
8
|
+
return securityScorecard.call("GET", "/reports/recent");
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=reportGetAll.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reportGetAll.function.js","sourceRoot":"","sources":["../../../src/functions/reportGetAll.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;AAEnE,MAAM,CAAC,MAAM,YAAY,GAAG,oBAAoB,CAAC;IAC/C,WAAW,EAAE,oBAAoB;IACjC,MAAM,EAAE,kBAAkB;IAC1B,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE;QACpC,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAQ,CAAA;IAChE,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { companyGetScorecard } from './functions/companyGetScorecard.function.js';
|
|
2
|
+
export { companyGetFactor } from './functions/companyGetFactor.function.js';
|
|
3
|
+
export { companyGetFactorHistorical } from './functions/companyGetFactorHistorical.function.js';
|
|
4
|
+
export { companyGetHistoricalScore } from './functions/companyGetHistoricalScore.function.js';
|
|
5
|
+
export { companyGetScorePlan } from './functions/companyGetScorePlan.function.js';
|
|
6
|
+
export { industryGetScore } from './functions/industryGetScore.function.js';
|
|
7
|
+
export { industryGetFactor } from './functions/industryGetFactor.function.js';
|
|
8
|
+
export { industryGetFactorHistorical } from './functions/industryGetFactorHistorical.function.js';
|
|
9
|
+
export { inviteCreate } from './functions/inviteCreate.function.js';
|
|
10
|
+
export { portfolioGetAll } from './functions/portfolioGetAll.function.js';
|
|
11
|
+
export { portfolioCreate } from './functions/portfolioCreate.function.js';
|
|
12
|
+
export { portfolioUpdate } from './functions/portfolioUpdate.function.js';
|
|
13
|
+
export { portfolioDelete } from './functions/portfolioDelete.function.js';
|
|
14
|
+
export { portfolioCompanyGetAll } from './functions/portfolioCompanyGetAll.function.js';
|
|
15
|
+
export { portfolioCompanyAdd } from './functions/portfolioCompanyAdd.function.js';
|
|
16
|
+
export { portfolioCompanyRemove } from './functions/portfolioCompanyRemove.function.js';
|
|
17
|
+
export { reportGetAll } from './functions/reportGetAll.function.js';
|
|
18
|
+
export { reportGenerate } from './functions/reportGenerate.function.js';
|
|
19
|
+
export { reportDownload } from './functions/reportDownload.function.js';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAA;AAC/F,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAA;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAA;AACjG,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAA;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAA;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { companyGetScorecard } from './functions/companyGetScorecard.function.js';
|
|
2
|
+
export { companyGetFactor } from './functions/companyGetFactor.function.js';
|
|
3
|
+
export { companyGetFactorHistorical } from './functions/companyGetFactorHistorical.function.js';
|
|
4
|
+
export { companyGetHistoricalScore } from './functions/companyGetHistoricalScore.function.js';
|
|
5
|
+
export { companyGetScorePlan } from './functions/companyGetScorePlan.function.js';
|
|
6
|
+
export { industryGetScore } from './functions/industryGetScore.function.js';
|
|
7
|
+
export { industryGetFactor } from './functions/industryGetFactor.function.js';
|
|
8
|
+
export { industryGetFactorHistorical } from './functions/industryGetFactorHistorical.function.js';
|
|
9
|
+
export { inviteCreate } from './functions/inviteCreate.function.js';
|
|
10
|
+
export { portfolioGetAll } from './functions/portfolioGetAll.function.js';
|
|
11
|
+
export { portfolioCreate } from './functions/portfolioCreate.function.js';
|
|
12
|
+
export { portfolioUpdate } from './functions/portfolioUpdate.function.js';
|
|
13
|
+
export { portfolioDelete } from './functions/portfolioDelete.function.js';
|
|
14
|
+
export { portfolioCompanyGetAll } from './functions/portfolioCompanyGetAll.function.js';
|
|
15
|
+
export { portfolioCompanyAdd } from './functions/portfolioCompanyAdd.function.js';
|
|
16
|
+
export { portfolioCompanyRemove } from './functions/portfolioCompanyRemove.function.js';
|
|
17
|
+
export { reportGetAll } from './functions/reportGetAll.function.js';
|
|
18
|
+
export { reportGenerate } from './functions/reportGenerate.function.js';
|
|
19
|
+
export { reportDownload } from './functions/reportDownload.function.js';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAA;AAC/F,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAA;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAA;AACjG,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAA;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAA;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TypedVariablesService } from '#pikku/variables/pikku-variables.gen.js';
|
|
2
|
+
export declare class SecurityScorecardService {
|
|
3
|
+
private creds;
|
|
4
|
+
private baseUrl;
|
|
5
|
+
constructor(creds: {
|
|
6
|
+
apiKey: string;
|
|
7
|
+
}, variables: TypedVariablesService);
|
|
8
|
+
call<T>(method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH', path: string, data?: Record<string, unknown>): Promise<T>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=security-scorecard-api.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scorecard-api.service.d.ts","sourceRoot":"","sources":["../../src/security-scorecard-api.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AA8IpF,qBAAa,wBAAwB;IAGvB,OAAO,CAAC,KAAK;IAFzB,OAAO,CAAC,OAAO,CAAQ;gBAEH,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,SAAS,EAAE,qBAAqB;IAIzE,IAAI,CAAC,CAAC,EACV,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,EACnD,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,OAAO,CAAC,CAAC,CAAC;CAwEd"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { BadRequestError, ConflictError, ForbiddenError, InternalServerError, MethodNotAllowedError, NotFoundError, TooManyRequestsError, UnauthorizedError, UnprocessableContentError } from '@pikku/core/errors';
|
|
2
|
+
const ROUTES = {
|
|
3
|
+
"GET /companies/{scorecardIdentifier}": {
|
|
4
|
+
"path": [
|
|
5
|
+
"scorecardIdentifier"
|
|
6
|
+
],
|
|
7
|
+
"query": [],
|
|
8
|
+
"headers": []
|
|
9
|
+
},
|
|
10
|
+
"GET /companies/{scorecardIdentifier}/factors": {
|
|
11
|
+
"path": [
|
|
12
|
+
"scorecardIdentifier"
|
|
13
|
+
],
|
|
14
|
+
"query": [],
|
|
15
|
+
"headers": []
|
|
16
|
+
},
|
|
17
|
+
"GET /companies/{scorecardIdentifier}/history/factors": {
|
|
18
|
+
"path": [
|
|
19
|
+
"scorecardIdentifier"
|
|
20
|
+
],
|
|
21
|
+
"query": [
|
|
22
|
+
"date_from",
|
|
23
|
+
"date_to"
|
|
24
|
+
],
|
|
25
|
+
"headers": []
|
|
26
|
+
},
|
|
27
|
+
"GET /companies/{scorecardIdentifier}/history/score": {
|
|
28
|
+
"path": [
|
|
29
|
+
"scorecardIdentifier"
|
|
30
|
+
],
|
|
31
|
+
"query": [
|
|
32
|
+
"from",
|
|
33
|
+
"to"
|
|
34
|
+
],
|
|
35
|
+
"headers": []
|
|
36
|
+
},
|
|
37
|
+
"GET /companies/{scorecardIdentifier}/score-plans/by-target/{score}": {
|
|
38
|
+
"path": [
|
|
39
|
+
"scorecardIdentifier",
|
|
40
|
+
"score"
|
|
41
|
+
],
|
|
42
|
+
"query": [],
|
|
43
|
+
"headers": []
|
|
44
|
+
},
|
|
45
|
+
"GET /industries/{industry}/score": {
|
|
46
|
+
"path": [
|
|
47
|
+
"industry"
|
|
48
|
+
],
|
|
49
|
+
"query": [],
|
|
50
|
+
"headers": []
|
|
51
|
+
},
|
|
52
|
+
"GET /industries/{industry}/history/factors": {
|
|
53
|
+
"path": [
|
|
54
|
+
"industry"
|
|
55
|
+
],
|
|
56
|
+
"query": [],
|
|
57
|
+
"headers": []
|
|
58
|
+
},
|
|
59
|
+
"GET /industries/{industry}/history/factors/historical": {
|
|
60
|
+
"path": [
|
|
61
|
+
"industry"
|
|
62
|
+
],
|
|
63
|
+
"query": [
|
|
64
|
+
"from",
|
|
65
|
+
"to"
|
|
66
|
+
],
|
|
67
|
+
"headers": []
|
|
68
|
+
},
|
|
69
|
+
"POST /invitations": {
|
|
70
|
+
"path": [],
|
|
71
|
+
"query": [],
|
|
72
|
+
"headers": []
|
|
73
|
+
},
|
|
74
|
+
"GET /portfolios": {
|
|
75
|
+
"path": [],
|
|
76
|
+
"query": [],
|
|
77
|
+
"headers": []
|
|
78
|
+
},
|
|
79
|
+
"POST /portfolios": {
|
|
80
|
+
"path": [],
|
|
81
|
+
"query": [],
|
|
82
|
+
"headers": []
|
|
83
|
+
},
|
|
84
|
+
"PUT /portfolios/{portfolioId}": {
|
|
85
|
+
"path": [
|
|
86
|
+
"portfolioId"
|
|
87
|
+
],
|
|
88
|
+
"query": [],
|
|
89
|
+
"headers": []
|
|
90
|
+
},
|
|
91
|
+
"DELETE /portfolios/{portfolioId}": {
|
|
92
|
+
"path": [
|
|
93
|
+
"portfolioId"
|
|
94
|
+
],
|
|
95
|
+
"query": [],
|
|
96
|
+
"headers": []
|
|
97
|
+
},
|
|
98
|
+
"GET /portfolios/{portfolioId}/companies": {
|
|
99
|
+
"path": [
|
|
100
|
+
"portfolioId"
|
|
101
|
+
],
|
|
102
|
+
"query": [],
|
|
103
|
+
"headers": []
|
|
104
|
+
},
|
|
105
|
+
"PUT /portfolios/{portfolioId}/companies/{domain}": {
|
|
106
|
+
"path": [
|
|
107
|
+
"portfolioId",
|
|
108
|
+
"domain"
|
|
109
|
+
],
|
|
110
|
+
"query": [],
|
|
111
|
+
"headers": []
|
|
112
|
+
},
|
|
113
|
+
"DELETE /portfolios/{portfolioId}/companies/{domain}": {
|
|
114
|
+
"path": [
|
|
115
|
+
"portfolioId",
|
|
116
|
+
"domain"
|
|
117
|
+
],
|
|
118
|
+
"query": [],
|
|
119
|
+
"headers": []
|
|
120
|
+
},
|
|
121
|
+
"GET /reports/recent": {
|
|
122
|
+
"path": [],
|
|
123
|
+
"query": [],
|
|
124
|
+
"headers": []
|
|
125
|
+
},
|
|
126
|
+
"POST /reports/{reportType}": {
|
|
127
|
+
"path": [
|
|
128
|
+
"reportType"
|
|
129
|
+
],
|
|
130
|
+
"query": [],
|
|
131
|
+
"headers": []
|
|
132
|
+
},
|
|
133
|
+
"GET /reports/files/{file}": {
|
|
134
|
+
"path": [
|
|
135
|
+
"file"
|
|
136
|
+
],
|
|
137
|
+
"query": [],
|
|
138
|
+
"headers": []
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
export class SecurityScorecardService {
|
|
142
|
+
constructor(creds, variables) {
|
|
143
|
+
this.creds = creds;
|
|
144
|
+
this.baseUrl = variables.get('SECURITY_SCORECARD_BASE_URL');
|
|
145
|
+
}
|
|
146
|
+
async call(method, path, data) {
|
|
147
|
+
const route = ROUTES[`${method} ${path}`];
|
|
148
|
+
let endpoint = path;
|
|
149
|
+
let body;
|
|
150
|
+
const query = {};
|
|
151
|
+
const headers = {
|
|
152
|
+
'Content-Type': 'application/json',
|
|
153
|
+
};
|
|
154
|
+
if (data && route) {
|
|
155
|
+
// Interpolate path params
|
|
156
|
+
for (const param of route.path) {
|
|
157
|
+
if (data[param] !== undefined) {
|
|
158
|
+
endpoint = endpoint.replace(`{${param}}`, String(data[param]));
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// Extract query params
|
|
162
|
+
for (const param of route.query) {
|
|
163
|
+
if (data[param] !== undefined) {
|
|
164
|
+
query[param] = String(data[param]);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
// Extract header params
|
|
168
|
+
for (const param of route.headers) {
|
|
169
|
+
if (data[param] !== undefined) {
|
|
170
|
+
headers[param] = String(data[param]);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
// Everything else goes into body
|
|
174
|
+
const pathQueryHeaders = new Set([...route.path, ...route.query, ...route.headers]);
|
|
175
|
+
const remaining = Object.fromEntries(Object.entries(data).filter(([k]) => !pathQueryHeaders.has(k)));
|
|
176
|
+
if (Object.keys(remaining).length > 0) {
|
|
177
|
+
body = remaining;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const url = new URL(`${this.baseUrl}${endpoint}`);
|
|
181
|
+
for (const [key, value] of Object.entries(query)) {
|
|
182
|
+
url.searchParams.set(key, value);
|
|
183
|
+
}
|
|
184
|
+
headers.Authorization = `Bearer ${this.creds.apiKey}`;
|
|
185
|
+
const response = await fetch(url.toString(), {
|
|
186
|
+
method,
|
|
187
|
+
headers,
|
|
188
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
189
|
+
});
|
|
190
|
+
if (!response.ok) {
|
|
191
|
+
const errorText = await response.text();
|
|
192
|
+
const errorMessage = route?.errors?.[response.status] ?? errorText;
|
|
193
|
+
switch (response.status) {
|
|
194
|
+
case 400: throw new BadRequestError(errorMessage);
|
|
195
|
+
case 401: throw new UnauthorizedError(errorMessage);
|
|
196
|
+
case 403: throw new ForbiddenError(errorMessage);
|
|
197
|
+
case 404: throw new NotFoundError(errorMessage);
|
|
198
|
+
case 405: throw new MethodNotAllowedError(errorMessage);
|
|
199
|
+
case 409: throw new ConflictError(errorMessage);
|
|
200
|
+
case 422: throw new UnprocessableContentError(errorMessage);
|
|
201
|
+
case 429: throw new TooManyRequestsError(errorMessage);
|
|
202
|
+
case 500: throw new InternalServerError(errorMessage);
|
|
203
|
+
default: throw new Error(`SecurityScorecard API error (${response.status}): ${errorText}`);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
const text = await response.text();
|
|
207
|
+
if (!text)
|
|
208
|
+
return {};
|
|
209
|
+
return JSON.parse(text);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
//# sourceMappingURL=security-scorecard-api.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scorecard-api.service.js","sourceRoot":"","sources":["../../src/security-scorecard-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,aAAa,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,yBAAy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G,CAAC,CAAC,MAAM,IAAI,cAAc,CAAC,YAAY,CAAC,CAAA;gBAChD,KAAK,GAAG,CAAC,CAAC,MAAM,IAAI,aAAa,CAAC,YAAY,CAAC,CAAA;gBAC/C,KAAK,GAAG,CAAC,CAAC,MAAM,IAAI,qBAAqB,CAAC,YAAY,CAAC,CAAA;gBACvD,KAAK,GAAG,CAAC,CAAC,MAAM,IAAI,aAAa,CAAC,YAAY,CAAC,CAAA;gBAC/C,KAAK,GAAG,CAAC,CAAC,MAAM,IAAI,yBAAyB,CAAC,YAAY,CAAC,CAAA;gBAC3D,KAAK,GAAG,CAAC,CAAC,MAAM,IAAI,oBAAoB,CAAC,YAAY,CAAC,CAAA;gBACtD,KAAK,GAAG,CAAC,CAAC,MAAM,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAA;gBACrD,OAAO,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,gCAAgC,QAAQ,CAAC,MAAM,MAAM,SAAS,EAAE,CAAC,CAAA;YAC5F,CAAC;QACH,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;QAClC,IAAI,CAAC,IAAI;YAAE,OAAO,EAAO,CAAA;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAM,CAAA;IAC9B,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scorecard.credential.d.ts","sourceRoot":"","sources":["../../src/security-scorecard.credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,iCAAiC;;iBAE5C,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { wireCredential } from '@pikku/core/credential';
|
|
3
|
+
export const securityScorecardCredentialSchema = z.object({
|
|
4
|
+
apiKey: z.string().describe('SecurityScorecard API key'),
|
|
5
|
+
});
|
|
6
|
+
wireCredential({
|
|
7
|
+
name: 'securityScorecard',
|
|
8
|
+
displayName: 'SecurityScorecard',
|
|
9
|
+
description: 'SecurityScorecard addon',
|
|
10
|
+
type: 'wire',
|
|
11
|
+
schema: securityScorecardCredentialSchema,
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=security-scorecard.credential.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scorecard.credential.js","sourceRoot":"","sources":["../../src/security-scorecard.credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEvD,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CACzD,CAAC,CAAA;AAEF,cAAc,CAAC;IACb,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,yBAAyB;IACtC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,iCAAiC;CAC1C,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SecurityScorecardResourceSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type SecurityScorecardResource = z.infer<typeof SecurityScorecardResourceSchema>;
|
|
7
|
+
//# sourceMappingURL=security-scorecard.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scorecard.types.d.ts","sourceRoot":"","sources":["../../src/security-scorecard.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,+BAA+B;;;iBAI1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scorecard.types.js","sourceRoot":"","sources":["../../src/security-scorecard.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,mCAAmC;AAEnC,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,mCAAmC;CACpC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scorecard.variable.d.ts","sourceRoot":"","sources":["../../src/security-scorecard.variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,8BAA8B;;GAA2F,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { wireVariable } from '@pikku/core/variable';
|
|
3
|
+
export const securityScorecardBaseUrlSchema = z.enum(["https://api.securityscorecard.io"]).default("https://api.securityscorecard.io");
|
|
4
|
+
wireVariable({
|
|
5
|
+
name: 'SECURITY_SCORECARD_BASE_URL',
|
|
6
|
+
displayName: 'SecurityScorecard Base URL',
|
|
7
|
+
description: 'The base URL for the SecurityScorecard API.',
|
|
8
|
+
variableId: 'SECURITY_SCORECARD_BASE_URL',
|
|
9
|
+
schema: securityScorecardBaseUrlSchema,
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=security-scorecard.variable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scorecard.variable.js","sourceRoot":"","sources":["../../src/security-scorecard.variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAA;AAEtI,YAAY,CAAC;IACX,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE,4BAA4B;IACzC,WAAW,EAAE,6CAA6C;IAC1D,UAAU,EAAE,6BAA6B;IACzC,MAAM,EAAE,8BAA8B;CACvC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/services.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,KAa9B,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SecurityScorecardService } from './security-scorecard-api.service.js';
|
|
2
|
+
import { pikkuAddonWireServices } from '#pikku';
|
|
3
|
+
export const createWireServices = pikkuAddonWireServices(async ({ variables }, wire) => {
|
|
4
|
+
if (!wire.getCredential) {
|
|
5
|
+
throw new Error('Credential resolution is not available in this runtime');
|
|
6
|
+
}
|
|
7
|
+
const cred = await wire.getCredential('securityScorecard');
|
|
8
|
+
if (!cred?.apiKey) {
|
|
9
|
+
throw new Error('Missing securityScorecard credential');
|
|
10
|
+
}
|
|
11
|
+
const securityScorecard = new SecurityScorecardService(cred, variables);
|
|
12
|
+
return { securityScorecard };
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=services.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../src/services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAA;AAE/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,sBAAsB,CACtD,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,EAAE;IAC5B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAA;IAC3E,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,aAAa,CAAqB,mBAAmB,CAAC,CAAA;IAC9E,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAA;IACzD,CAAC;IACD,MAAM,iBAAiB,GAAG,IAAI,wBAAwB,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;IAEvE,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAC9B,CAAC,CACF,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pikku/addon-security-scorecard",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"imports": {
|
|
6
|
+
"#pikku": "./.pikku/pikku-types.gen.ts",
|
|
7
|
+
"#pikku/*": "./.pikku/*"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/src/index.d.ts",
|
|
12
|
+
"import": "./dist/src/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./.pikku/*": "./dist/.pikku/*",
|
|
15
|
+
"./.pikku/pikku-metadata.gen.json": "./dist/.pikku/pikku-metadata.gen.json",
|
|
16
|
+
"./.pikku/rpc/pikku-rpc-wirings-map.internal.gen.js": {
|
|
17
|
+
"types": "./dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"prepublishOnly": "yarn build",
|
|
25
|
+
"prebuild": "pikku all",
|
|
26
|
+
"build": "tsc && cp -r .pikku dist/",
|
|
27
|
+
"pikku": "pikku all"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@pikku/core": "*",
|
|
31
|
+
"zod": "^4"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@pikku/cli": "*",
|
|
35
|
+
"@pikku/core": "*",
|
|
36
|
+
"typescript": "^5.7.2",
|
|
37
|
+
"zod": "^4"
|
|
38
|
+
}
|
|
39
|
+
}
|