@hashgraphonline/standards-sdk 0.1.185 → 0.1.187
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 +3 -0
- package/dist/browser/hcs-25/adapters/acp.d.ts +20 -0
- package/dist/browser/hcs-25/adapters/acp.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/agentverse.d.ts +34 -0
- package/dist/browser/hcs-25/adapters/agentverse.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/availability.d.ts +22 -0
- package/dist/browser/hcs-25/adapters/availability.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/connectivity.d.ts +25 -0
- package/dist/browser/hcs-25/adapters/connectivity.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/erc8004-feedback.d.ts +19 -0
- package/dist/browser/hcs-25/adapters/erc8004-feedback.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/ethos.d.ts +21 -0
- package/dist/browser/hcs-25/adapters/ethos.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/index.d.ts +21 -0
- package/dist/browser/hcs-25/adapters/index.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/model-evals.d.ts +61 -0
- package/dist/browser/hcs-25/adapters/model-evals.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/normalization.d.ts +20 -0
- package/dist/browser/hcs-25/adapters/normalization.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/oss-popularity.d.ts +22 -0
- package/dist/browser/hcs-25/adapters/oss-popularity.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/output-verification.d.ts +27 -0
- package/dist/browser/hcs-25/adapters/output-verification.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/simple-evals.d.ts +14 -0
- package/dist/browser/hcs-25/adapters/simple-evals.d.ts.map +1 -0
- package/dist/browser/hcs-25/adapters/x402.d.ts +18 -0
- package/dist/browser/hcs-25/adapters/x402.d.ts.map +1 -0
- package/dist/browser/hcs-25/identifiers.d.ts +2 -2
- package/dist/browser/hcs-25/identifiers.d.ts.map +1 -1
- package/dist/browser/hcs-25/index.d.ts +2 -0
- package/dist/browser/hcs-25/index.d.ts.map +1 -1
- package/dist/browser/hcs-25/scoring.d.ts.map +1 -1
- package/dist/browser/hcs-25/signals/index.d.ts +20 -0
- package/dist/browser/hcs-25/signals/index.d.ts.map +1 -0
- package/dist/browser/hcs-25/signals/marketplace.d.ts +296 -0
- package/dist/browser/hcs-25/signals/marketplace.d.ts.map +1 -0
- package/dist/browser/hcs-25/signals/metadata.d.ts +40 -0
- package/dist/browser/hcs-25/signals/metadata.d.ts.map +1 -0
- package/dist/browser/hcs-25/signals/model-evals.d.ts +127 -0
- package/dist/browser/hcs-25/signals/model-evals.d.ts.map +1 -0
- package/dist/browser/hcs-25/signals/operational.d.ts +757 -0
- package/dist/browser/hcs-25/signals/operational.d.ts.map +1 -0
- package/dist/browser/hcs-25/signals/simple-evals.d.ts +156 -0
- package/dist/browser/hcs-25/signals/simple-evals.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/acp.d.ts +20 -0
- package/dist/browser-root/hcs-25/adapters/acp.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/agentverse.d.ts +34 -0
- package/dist/browser-root/hcs-25/adapters/agentverse.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/availability.d.ts +22 -0
- package/dist/browser-root/hcs-25/adapters/availability.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/connectivity.d.ts +25 -0
- package/dist/browser-root/hcs-25/adapters/connectivity.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/erc8004-feedback.d.ts +19 -0
- package/dist/browser-root/hcs-25/adapters/erc8004-feedback.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/ethos.d.ts +21 -0
- package/dist/browser-root/hcs-25/adapters/ethos.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/index.d.ts +21 -0
- package/dist/browser-root/hcs-25/adapters/index.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/model-evals.d.ts +61 -0
- package/dist/browser-root/hcs-25/adapters/model-evals.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/normalization.d.ts +20 -0
- package/dist/browser-root/hcs-25/adapters/normalization.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/oss-popularity.d.ts +22 -0
- package/dist/browser-root/hcs-25/adapters/oss-popularity.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/output-verification.d.ts +27 -0
- package/dist/browser-root/hcs-25/adapters/output-verification.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/simple-evals.d.ts +14 -0
- package/dist/browser-root/hcs-25/adapters/simple-evals.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/adapters/x402.d.ts +18 -0
- package/dist/browser-root/hcs-25/adapters/x402.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/identifiers.d.ts +2 -2
- package/dist/browser-root/hcs-25/identifiers.d.ts.map +1 -1
- package/dist/browser-root/hcs-25/index.d.ts +2 -0
- package/dist/browser-root/hcs-25/index.d.ts.map +1 -1
- package/dist/browser-root/hcs-25/scoring.d.ts.map +1 -1
- package/dist/browser-root/hcs-25/signals/index.d.ts +20 -0
- package/dist/browser-root/hcs-25/signals/index.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/signals/marketplace.d.ts +296 -0
- package/dist/browser-root/hcs-25/signals/marketplace.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/signals/metadata.d.ts +40 -0
- package/dist/browser-root/hcs-25/signals/metadata.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/signals/model-evals.d.ts +127 -0
- package/dist/browser-root/hcs-25/signals/model-evals.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/signals/operational.d.ts +757 -0
- package/dist/browser-root/hcs-25/signals/operational.d.ts.map +1 -0
- package/dist/browser-root/hcs-25/signals/simple-evals.d.ts +156 -0
- package/dist/browser-root/hcs-25/signals/simple-evals.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/acp.d.ts +20 -0
- package/dist/cjs/hcs-25/adapters/acp.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/agentverse.d.ts +34 -0
- package/dist/cjs/hcs-25/adapters/agentverse.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/availability.d.ts +22 -0
- package/dist/cjs/hcs-25/adapters/availability.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/connectivity.d.ts +25 -0
- package/dist/cjs/hcs-25/adapters/connectivity.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/erc8004-feedback.d.ts +19 -0
- package/dist/cjs/hcs-25/adapters/erc8004-feedback.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/ethos.d.ts +21 -0
- package/dist/cjs/hcs-25/adapters/ethos.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/index.d.ts +21 -0
- package/dist/cjs/hcs-25/adapters/index.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/model-evals.d.ts +61 -0
- package/dist/cjs/hcs-25/adapters/model-evals.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/normalization.d.ts +20 -0
- package/dist/cjs/hcs-25/adapters/normalization.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/oss-popularity.d.ts +22 -0
- package/dist/cjs/hcs-25/adapters/oss-popularity.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/output-verification.d.ts +27 -0
- package/dist/cjs/hcs-25/adapters/output-verification.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/simple-evals.d.ts +14 -0
- package/dist/cjs/hcs-25/adapters/simple-evals.d.ts.map +1 -0
- package/dist/cjs/hcs-25/adapters/x402.d.ts +18 -0
- package/dist/cjs/hcs-25/adapters/x402.d.ts.map +1 -0
- package/dist/cjs/hcs-25/identifiers.d.ts +2 -2
- package/dist/cjs/hcs-25/identifiers.d.ts.map +1 -1
- package/dist/cjs/hcs-25/index.d.ts +2 -0
- package/dist/cjs/hcs-25/index.d.ts.map +1 -1
- package/dist/cjs/hcs-25/scoring.d.ts.map +1 -1
- package/dist/cjs/hcs-25/signals/index.d.ts +20 -0
- package/dist/cjs/hcs-25/signals/index.d.ts.map +1 -0
- package/dist/cjs/hcs-25/signals/marketplace.d.ts +296 -0
- package/dist/cjs/hcs-25/signals/marketplace.d.ts.map +1 -0
- package/dist/cjs/hcs-25/signals/metadata.d.ts +40 -0
- package/dist/cjs/hcs-25/signals/metadata.d.ts.map +1 -0
- package/dist/cjs/hcs-25/signals/model-evals.d.ts +127 -0
- package/dist/cjs/hcs-25/signals/model-evals.d.ts.map +1 -0
- package/dist/cjs/hcs-25/signals/operational.d.ts +757 -0
- package/dist/cjs/hcs-25/signals/operational.d.ts.map +1 -0
- package/dist/cjs/hcs-25/signals/simple-evals.d.ts +156 -0
- package/dist/cjs/hcs-25/signals/simple-evals.d.ts.map +1 -0
- package/dist/cjs/standards-sdk.cjs +2 -2
- package/dist/cjs/standards-sdk.cjs.map +1 -1
- package/dist/es/hcs-25/adapters/acp.d.ts +20 -0
- package/dist/es/hcs-25/adapters/acp.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/agentverse.d.ts +34 -0
- package/dist/es/hcs-25/adapters/agentverse.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/availability.d.ts +22 -0
- package/dist/es/hcs-25/adapters/availability.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/connectivity.d.ts +25 -0
- package/dist/es/hcs-25/adapters/connectivity.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/erc8004-feedback.d.ts +19 -0
- package/dist/es/hcs-25/adapters/erc8004-feedback.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/ethos.d.ts +21 -0
- package/dist/es/hcs-25/adapters/ethos.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/index.d.ts +21 -0
- package/dist/es/hcs-25/adapters/index.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/model-evals.d.ts +61 -0
- package/dist/es/hcs-25/adapters/model-evals.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/normalization.d.ts +20 -0
- package/dist/es/hcs-25/adapters/normalization.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/oss-popularity.d.ts +22 -0
- package/dist/es/hcs-25/adapters/oss-popularity.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/output-verification.d.ts +27 -0
- package/dist/es/hcs-25/adapters/output-verification.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/simple-evals.d.ts +14 -0
- package/dist/es/hcs-25/adapters/simple-evals.d.ts.map +1 -0
- package/dist/es/hcs-25/adapters/x402.d.ts +18 -0
- package/dist/es/hcs-25/adapters/x402.d.ts.map +1 -0
- package/dist/es/hcs-25/identifiers.d.ts +2 -2
- package/dist/es/hcs-25/identifiers.d.ts.map +1 -1
- package/dist/es/hcs-25/index.d.ts +2 -0
- package/dist/es/hcs-25/index.d.ts.map +1 -1
- package/dist/es/hcs-25/scoring.d.ts.map +1 -1
- package/dist/es/hcs-25/signals/index.d.ts +20 -0
- package/dist/es/hcs-25/signals/index.d.ts.map +1 -0
- package/dist/es/hcs-25/signals/marketplace.d.ts +296 -0
- package/dist/es/hcs-25/signals/marketplace.d.ts.map +1 -0
- package/dist/es/hcs-25/signals/metadata.d.ts +40 -0
- package/dist/es/hcs-25/signals/metadata.d.ts.map +1 -0
- package/dist/es/hcs-25/signals/model-evals.d.ts +127 -0
- package/dist/es/hcs-25/signals/model-evals.d.ts.map +1 -0
- package/dist/es/hcs-25/signals/operational.d.ts +757 -0
- package/dist/es/hcs-25/signals/operational.d.ts.map +1 -0
- package/dist/es/hcs-25/signals/simple-evals.d.ts +156 -0
- package/dist/es/hcs-25/signals/simple-evals.d.ts.map +1 -0
- package/dist/es/standards-sdk.es.js +109 -40
- package/dist/es/standards-sdk.es.js.map +1 -1
- package/dist/es/standards-sdk.es101.js +2 -2
- package/dist/es/standards-sdk.es103.js +2 -2
- package/dist/es/standards-sdk.es104.js +1 -1
- package/dist/es/standards-sdk.es106.js +1 -1
- package/dist/es/standards-sdk.es108.js +2 -2
- package/dist/es/standards-sdk.es11.js +1 -1
- package/dist/es/standards-sdk.es110.js +1 -1
- package/dist/es/standards-sdk.es111.js +2 -2
- package/dist/es/standards-sdk.es115.js +3 -3
- package/dist/es/standards-sdk.es116.js +4 -4
- package/dist/es/standards-sdk.es117.js +1 -1
- package/dist/es/standards-sdk.es117.js.map +1 -1
- package/dist/es/standards-sdk.es119.js +10 -9
- package/dist/es/standards-sdk.es119.js.map +1 -1
- package/dist/es/standards-sdk.es12.js +1 -1
- package/dist/es/standards-sdk.es120.js +225 -251
- package/dist/es/standards-sdk.es120.js.map +1 -1
- package/dist/es/standards-sdk.es121.js +50 -477
- package/dist/es/standards-sdk.es121.js.map +1 -1
- package/dist/es/standards-sdk.es122.js +244 -97
- package/dist/es/standards-sdk.es122.js.map +1 -1
- package/dist/es/standards-sdk.es123.js +451 -133
- package/dist/es/standards-sdk.es123.js.map +1 -1
- package/dist/es/standards-sdk.es124.js +98 -27
- package/dist/es/standards-sdk.es124.js.map +1 -1
- package/dist/es/standards-sdk.es125.js +156 -8
- package/dist/es/standards-sdk.es125.js.map +1 -1
- package/dist/es/standards-sdk.es126.js +29 -177
- package/dist/es/standards-sdk.es126.js.map +1 -1
- package/dist/es/standards-sdk.es127.js +10 -27
- package/dist/es/standards-sdk.es127.js.map +1 -1
- package/dist/es/standards-sdk.es128.js +179 -19
- package/dist/es/standards-sdk.es128.js.map +1 -1
- package/dist/es/standards-sdk.es129.js +27 -158
- package/dist/es/standards-sdk.es129.js.map +1 -1
- package/dist/es/standards-sdk.es13.js +1 -1
- package/dist/es/standards-sdk.es130.js +16 -195
- package/dist/es/standards-sdk.es130.js.map +1 -1
- package/dist/es/standards-sdk.es131.js +133 -763
- package/dist/es/standards-sdk.es131.js.map +1 -1
- package/dist/es/standards-sdk.es132.js +198 -10
- package/dist/es/standards-sdk.es132.js.map +1 -1
- package/dist/es/standards-sdk.es133.js +762 -539
- package/dist/es/standards-sdk.es133.js.map +1 -1
- package/dist/es/standards-sdk.es134.js +10 -623
- package/dist/es/standards-sdk.es134.js.map +1 -1
- package/dist/es/standards-sdk.es135.js +567 -13
- package/dist/es/standards-sdk.es135.js.map +1 -1
- package/dist/es/standards-sdk.es136.js +626 -2
- package/dist/es/standards-sdk.es136.js.map +1 -1
- package/dist/es/standards-sdk.es137.js +12 -86
- package/dist/es/standards-sdk.es137.js.map +1 -1
- package/dist/es/standards-sdk.es138.js +2 -40
- package/dist/es/standards-sdk.es138.js.map +1 -1
- package/dist/es/standards-sdk.es139.js +87 -2
- package/dist/es/standards-sdk.es139.js.map +1 -1
- package/dist/es/standards-sdk.es14.js +1 -1
- package/dist/es/standards-sdk.es140.js +37 -232
- package/dist/es/standards-sdk.es140.js.map +1 -1
- package/dist/es/standards-sdk.es141.js +2 -1140
- package/dist/es/standards-sdk.es141.js.map +1 -1
- package/dist/es/standards-sdk.es142.js +213 -284
- package/dist/es/standards-sdk.es142.js.map +1 -1
- package/dist/es/standards-sdk.es143.js +1138 -420
- package/dist/es/standards-sdk.es143.js.map +1 -1
- package/dist/es/standards-sdk.es144.js +301 -350
- package/dist/es/standards-sdk.es144.js.map +1 -1
- package/dist/es/standards-sdk.es145.js +417 -1117
- package/dist/es/standards-sdk.es145.js.map +1 -1
- package/dist/es/standards-sdk.es146.js +348 -201
- package/dist/es/standards-sdk.es146.js.map +1 -1
- package/dist/es/standards-sdk.es147.js +1035 -1480
- package/dist/es/standards-sdk.es147.js.map +1 -1
- package/dist/es/standards-sdk.es148.js +181 -1130
- package/dist/es/standards-sdk.es148.js.map +1 -1
- package/dist/es/standards-sdk.es149.js +1564 -14
- package/dist/es/standards-sdk.es149.js.map +1 -1
- package/dist/es/standards-sdk.es15.js +1 -1
- package/dist/es/standards-sdk.es150.js +1122 -224
- package/dist/es/standards-sdk.es150.js.map +1 -1
- package/dist/es/standards-sdk.es151.js +17 -4
- package/dist/es/standards-sdk.es151.js.map +1 -1
- package/dist/es/standards-sdk.es152.js +252 -74
- package/dist/es/standards-sdk.es152.js.map +1 -1
- package/dist/es/standards-sdk.es153.js +4 -87
- package/dist/es/standards-sdk.es153.js.map +1 -1
- package/dist/es/standards-sdk.es154.js +73 -52
- package/dist/es/standards-sdk.es154.js.map +1 -1
- package/dist/es/standards-sdk.es155.js +86 -2546
- package/dist/es/standards-sdk.es155.js.map +1 -1
- package/dist/es/standards-sdk.es156.js +53 -152
- package/dist/es/standards-sdk.es156.js.map +1 -1
- package/dist/es/standards-sdk.es157.js +2547 -7
- package/dist/es/standards-sdk.es157.js.map +1 -1
- package/dist/es/standards-sdk.es158.js +138 -65
- package/dist/es/standards-sdk.es158.js.map +1 -1
- package/dist/es/standards-sdk.es159.js +7 -65
- package/dist/es/standards-sdk.es159.js.map +1 -1
- package/dist/es/standards-sdk.es16.js +4 -4
- package/dist/es/standards-sdk.es160.js +86 -30
- package/dist/es/standards-sdk.es160.js.map +1 -1
- package/dist/es/standards-sdk.es161.js +65 -34
- package/dist/es/standards-sdk.es161.js.map +1 -1
- package/dist/es/standards-sdk.es162.js +194 -48
- package/dist/es/standards-sdk.es162.js.map +1 -1
- package/dist/es/standards-sdk.es163.js +17 -12473
- package/dist/es/standards-sdk.es163.js.map +1 -1
- package/dist/es/standards-sdk.es164.js +53 -133
- package/dist/es/standards-sdk.es164.js.map +1 -1
- package/dist/es/standards-sdk.es165.js +91 -38
- package/dist/es/standards-sdk.es165.js.map +1 -1
- package/dist/es/standards-sdk.es166.js +47 -15
- package/dist/es/standards-sdk.es166.js.map +1 -1
- package/dist/es/standards-sdk.es167.js +201 -53
- package/dist/es/standards-sdk.es167.js.map +1 -1
- package/dist/es/standards-sdk.es168.js +53 -108
- package/dist/es/standards-sdk.es168.js.map +1 -1
- package/dist/es/standards-sdk.es169.js +47 -79
- package/dist/es/standards-sdk.es169.js.map +1 -1
- package/dist/es/standards-sdk.es170.js +48 -192
- package/dist/es/standards-sdk.es170.js.map +1 -1
- package/dist/es/standards-sdk.es171.js +47 -670
- package/dist/es/standards-sdk.es171.js.map +1 -1
- package/dist/es/standards-sdk.es172.js +110 -61
- package/dist/es/standards-sdk.es172.js.map +1 -1
- package/dist/es/standards-sdk.es173.js +51 -169
- package/dist/es/standards-sdk.es173.js.map +1 -1
- package/dist/es/standards-sdk.es174.js +39 -317
- package/dist/es/standards-sdk.es174.js.map +1 -1
- package/dist/es/standards-sdk.es175.js +72 -346
- package/dist/es/standards-sdk.es175.js.map +1 -1
- package/dist/es/standards-sdk.es176.js +68 -453
- package/dist/es/standards-sdk.es176.js.map +1 -1
- package/dist/es/standards-sdk.es177.js +44 -331
- package/dist/es/standards-sdk.es177.js.map +1 -1
- package/dist/es/standards-sdk.es178.js +31 -71
- package/dist/es/standards-sdk.es178.js.map +1 -1
- package/dist/es/standards-sdk.es179.js +30 -139
- package/dist/es/standards-sdk.es179.js.map +1 -1
- package/dist/es/standards-sdk.es18.js +11 -11
- package/dist/es/standards-sdk.es180.js +34 -517
- package/dist/es/standards-sdk.es180.js.map +1 -1
- package/dist/es/standards-sdk.es181.js +48 -259
- package/dist/es/standards-sdk.es181.js.map +1 -1
- package/dist/es/standards-sdk.es182.js +127 -185
- package/dist/es/standards-sdk.es182.js.map +1 -1
- package/dist/es/standards-sdk.es183.js +36 -113
- package/dist/es/standards-sdk.es183.js.map +1 -1
- package/dist/es/standards-sdk.es184.js +12464 -134
- package/dist/es/standards-sdk.es184.js.map +1 -1
- package/dist/es/standards-sdk.es185.js +629 -141
- package/dist/es/standards-sdk.es185.js.map +1 -1
- package/dist/es/standards-sdk.es186.js +83 -656
- package/dist/es/standards-sdk.es186.js.map +1 -1
- package/dist/es/standards-sdk.es187.js +61 -173
- package/dist/es/standards-sdk.es187.js.map +1 -1
- package/dist/es/standards-sdk.es188.js +49 -228
- package/dist/es/standards-sdk.es188.js.map +1 -1
- package/dist/es/standards-sdk.es189.js +68 -226
- package/dist/es/standards-sdk.es189.js.map +1 -1
- package/dist/es/standards-sdk.es19.js +8 -8
- package/dist/es/standards-sdk.es190.js +203 -0
- package/dist/es/standards-sdk.es190.js.map +1 -0
- package/dist/es/standards-sdk.es191.js +175 -0
- package/dist/es/standards-sdk.es191.js.map +1 -0
- package/dist/es/standards-sdk.es192.js +325 -0
- package/dist/es/standards-sdk.es192.js.map +1 -0
- package/dist/es/standards-sdk.es193.js +349 -0
- package/dist/es/standards-sdk.es193.js.map +1 -0
- package/dist/es/standards-sdk.es194.js +456 -0
- package/dist/es/standards-sdk.es194.js.map +1 -0
- package/dist/es/standards-sdk.es195.js +334 -0
- package/dist/es/standards-sdk.es195.js.map +1 -0
- package/dist/es/standards-sdk.es196.js +79 -0
- package/dist/es/standards-sdk.es196.js.map +1 -0
- package/dist/es/standards-sdk.es197.js +20 -0
- package/dist/es/standards-sdk.es197.js.map +1 -0
- package/dist/es/standards-sdk.es198.js +142 -0
- package/dist/es/standards-sdk.es198.js.map +1 -0
- package/dist/es/standards-sdk.es199.js +520 -0
- package/dist/es/standards-sdk.es199.js.map +1 -0
- package/dist/es/standards-sdk.es2.js +2 -2
- package/dist/es/standards-sdk.es20.js +1 -1
- package/dist/es/standards-sdk.es200.js +262 -0
- package/dist/es/standards-sdk.es200.js.map +1 -0
- package/dist/es/standards-sdk.es201.js +199 -0
- package/dist/es/standards-sdk.es201.js.map +1 -0
- package/dist/es/standards-sdk.es202.js +122 -0
- package/dist/es/standards-sdk.es202.js.map +1 -0
- package/dist/es/standards-sdk.es203.js +155 -0
- package/dist/es/standards-sdk.es203.js.map +1 -0
- package/dist/es/standards-sdk.es204.js +187 -0
- package/dist/es/standards-sdk.es204.js.map +1 -0
- package/dist/es/standards-sdk.es205.js +687 -0
- package/dist/es/standards-sdk.es205.js.map +1 -0
- package/dist/es/standards-sdk.es206.js +188 -0
- package/dist/es/standards-sdk.es206.js.map +1 -0
- package/dist/es/standards-sdk.es207.js +238 -0
- package/dist/es/standards-sdk.es207.js.map +1 -0
- package/dist/es/standards-sdk.es208.js +242 -0
- package/dist/es/standards-sdk.es208.js.map +1 -0
- package/dist/es/standards-sdk.es21.js +1 -1
- package/dist/es/standards-sdk.es22.js +1 -1
- package/dist/es/standards-sdk.es23.js +1 -1
- package/dist/es/standards-sdk.es24.js +1 -1
- package/dist/es/standards-sdk.es25.js +1 -1
- package/dist/es/standards-sdk.es26.js +1 -1
- package/dist/es/standards-sdk.es27.js +11 -11
- package/dist/es/standards-sdk.es30.js +2 -2
- package/dist/es/standards-sdk.es31.js +4 -4
- package/dist/es/standards-sdk.es32.js +1 -1
- package/dist/es/standards-sdk.es35.js +5 -5
- package/dist/es/standards-sdk.es36.js +4 -4
- package/dist/es/standards-sdk.es37.js +2 -2
- package/dist/es/standards-sdk.es38.js +2 -2
- package/dist/es/standards-sdk.es39.js +1 -1
- package/dist/es/standards-sdk.es4.js +2 -2
- package/dist/es/standards-sdk.es40.js +1 -1
- package/dist/es/standards-sdk.es41.js +2 -2
- package/dist/es/standards-sdk.es46.js +1 -1
- package/dist/es/standards-sdk.es5.js +2 -2
- package/dist/es/standards-sdk.es51.js +1 -1
- package/dist/es/standards-sdk.es53.js +1 -1
- package/dist/es/standards-sdk.es56.js +2 -2
- package/dist/es/standards-sdk.es59.js +1 -1
- package/dist/es/standards-sdk.es6.js +2 -2
- package/dist/es/standards-sdk.es60.js +1 -1
- package/dist/es/standards-sdk.es62.js +1 -1
- package/dist/es/standards-sdk.es63.js +2 -2
- package/dist/es/standards-sdk.es64.js +1 -1
- package/dist/es/standards-sdk.es65.js +1 -1
- package/dist/es/standards-sdk.es66.js +1 -1
- package/dist/es/standards-sdk.es67.js +6 -6
- package/dist/es/standards-sdk.es69.js +1 -1
- package/dist/es/standards-sdk.es7.js +1 -1
- package/dist/es/standards-sdk.es71.js +2 -2
- package/dist/es/standards-sdk.es72.js +3 -3
- package/dist/es/standards-sdk.es75.js +5 -5
- package/dist/es/standards-sdk.es76.js +3 -3
- package/dist/es/standards-sdk.es77.js +2 -2
- package/dist/es/standards-sdk.es78.js +1 -1
- package/dist/es/standards-sdk.es81.js +2 -2
- package/dist/es/standards-sdk.es83.js +2 -2
- package/dist/es/standards-sdk.es84.js +3 -3
- package/dist/es/standards-sdk.es85.js +1 -1
- package/dist/es/standards-sdk.es88.js +1 -1
- package/dist/es/standards-sdk.es89.js +2 -2
- package/dist/es/standards-sdk.es9.js +2 -2
- package/dist/es/standards-sdk.es90.js +4 -4
- package/dist/es/standards-sdk.es94.js +3 -3
- package/dist/es/standards-sdk.es96.js +2 -2
- package/dist/es/standards-sdk.es98.js +1 -1
- package/dist/es/standards-sdk.es99.js +3 -3
- package/package.json +1 -1
|
@@ -1,687 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { isBrowser } from "./standards-sdk.es141.js";
|
|
2
|
+
let nodeRequire;
|
|
3
|
+
const isNodeRuntime = () => typeof process !== "undefined" && Boolean(process.versions?.node);
|
|
4
|
+
function resolveBuiltinModuleLoader() {
|
|
5
|
+
if (typeof process === "undefined") {
|
|
6
|
+
return void 0;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
return typeof Reflect.get(error, "status") === "number";
|
|
8
|
+
return process.getBuiltinModule;
|
|
11
9
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
function getNodeRequireSync() {
|
|
11
|
+
try {
|
|
12
|
+
const builtinModuleLoader = resolveBuiltinModuleLoader();
|
|
13
|
+
const moduleNamespace = builtinModuleLoader?.("module");
|
|
14
|
+
if (typeof moduleNamespace?.createRequire === "function") {
|
|
15
|
+
const requireFromModule = moduleNamespace.createRequire(import.meta.url);
|
|
16
|
+
if (typeof requireFromModule.resolve === "function") {
|
|
17
|
+
return requireFromModule;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"api",
|
|
25
|
-
"guard",
|
|
26
|
-
...segments.slice(startIndex + consumed)
|
|
27
|
-
].join("/");
|
|
28
|
-
const registryStart = findPatternStart(
|
|
29
|
-
4,
|
|
30
|
-
(startIndex) => segments[startIndex] === "registry" && segments[startIndex + 1] === "api" && /^v\d+$/.test(segments[startIndex + 2] ?? "") && segments[startIndex + 3] === "guard"
|
|
31
|
-
);
|
|
32
|
-
if (registryStart >= 0) {
|
|
33
|
-
return replaceAt(registryStart, 4);
|
|
34
|
-
}
|
|
35
|
-
const apiVersionStart = findPatternStart(
|
|
36
|
-
3,
|
|
37
|
-
(startIndex) => segments[startIndex] === "api" && /^v\d+$/.test(segments[startIndex + 1] ?? "") && segments[startIndex + 2] === "guard"
|
|
38
|
-
);
|
|
39
|
-
if (apiVersionStart >= 0) {
|
|
40
|
-
return replaceAt(apiVersionStart, 3);
|
|
41
|
-
}
|
|
42
|
-
for (let index = segments.length - 1; index >= 0; index -= 1) {
|
|
43
|
-
if (segments[index] === "guard" && segments[index - 1] !== "api") {
|
|
44
|
-
return [
|
|
45
|
-
...segments.slice(0, index),
|
|
46
|
-
"api",
|
|
47
|
-
"guard",
|
|
48
|
-
...segments.slice(index + 1)
|
|
49
|
-
].join("/");
|
|
20
|
+
const globalObject = typeof global !== "undefined" ? global : globalThis;
|
|
21
|
+
const runtimeRequire = globalObject.process?.mainModule?.require ?? globalObject.require ?? Function('return typeof require === "function" ? require : undefined;')();
|
|
22
|
+
if (typeof runtimeRequire === "function" && typeof runtimeRequire.resolve === "function") {
|
|
23
|
+
return runtimeRequire;
|
|
50
24
|
}
|
|
51
|
-
}
|
|
52
|
-
return path;
|
|
53
|
-
}
|
|
54
|
-
function buildPortalCanonicalGuardUrl(baseUrl, path) {
|
|
55
|
-
const target = new URL(path, "https://guard.local");
|
|
56
|
-
const normalizedBasePath = (() => {
|
|
57
|
-
try {
|
|
58
|
-
const base = new URL(baseUrl);
|
|
59
|
-
return base.pathname.replace(/\/+$/, "");
|
|
60
|
-
} catch {
|
|
61
|
-
return baseUrl.replace(/\/+$/, "");
|
|
62
|
-
}
|
|
63
|
-
})();
|
|
64
|
-
const requestedPath = `${normalizedBasePath}${target.pathname}`;
|
|
65
|
-
const canonicalPath = toPortalCanonicalGuardPath(requestedPath);
|
|
66
|
-
const canonicalRelativePath = `${canonicalPath}${target.search}`;
|
|
67
|
-
try {
|
|
68
|
-
const base = new URL(baseUrl);
|
|
69
|
-
return `${base.origin}${canonicalRelativePath}`;
|
|
70
25
|
} catch {
|
|
71
|
-
return
|
|
26
|
+
return null;
|
|
72
27
|
}
|
|
28
|
+
return null;
|
|
73
29
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return
|
|
77
|
-
} catch (error) {
|
|
78
|
-
if (isStatusError(error) && (error.status === 404 || error.status === 501)) {
|
|
79
|
-
return client.requestAbsoluteJson(
|
|
80
|
-
buildPortalCanonicalGuardUrl(client.baseUrl, path),
|
|
81
|
-
init
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
throw error;
|
|
30
|
+
function isModuleNotFound(specifier, error) {
|
|
31
|
+
if (!error || typeof error !== "object") {
|
|
32
|
+
return false;
|
|
85
33
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
{
|
|
92
|
-
method: "GET"
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
return client.parseWithSchema(
|
|
96
|
-
raw,
|
|
97
|
-
guardSessionResponseSchema,
|
|
98
|
-
"guard session response"
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
async function getGuardEntitlements(client) {
|
|
102
|
-
const raw = await requestPortalFirstJson(
|
|
103
|
-
client,
|
|
104
|
-
"/guard/entitlements",
|
|
105
|
-
{
|
|
106
|
-
method: "GET"
|
|
107
|
-
}
|
|
108
|
-
);
|
|
109
|
-
return client.parseWithSchema(
|
|
110
|
-
raw,
|
|
111
|
-
guardSessionResponseSchema,
|
|
112
|
-
"guard entitlements response"
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
async function getGuardBillingBalance(client) {
|
|
116
|
-
const raw = await requestPortalFirstJson(
|
|
117
|
-
client,
|
|
118
|
-
"/guard/billing/balance",
|
|
119
|
-
{
|
|
120
|
-
method: "GET"
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
return client.parseWithSchema(
|
|
124
|
-
raw,
|
|
125
|
-
guardBalanceResponseSchema,
|
|
126
|
-
"guard billing balance response"
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
async function getGuardFeed(client, limit) {
|
|
130
|
-
const params = new URLSearchParams();
|
|
131
|
-
if (typeof limit === "number" && Number.isFinite(limit) && Math.trunc(limit) > 0) {
|
|
132
|
-
params.set("limit", String(Math.trunc(limit)));
|
|
34
|
+
const code = Reflect.get(error, "code");
|
|
35
|
+
const message = Reflect.get(error, "message");
|
|
36
|
+
const messageText = typeof message === "string" ? message : "";
|
|
37
|
+
if (typeof code === "string" && code.includes("MODULE_NOT_FOUND")) {
|
|
38
|
+
return messageText.includes(specifier);
|
|
133
39
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
`/guard/feed${suffix}`,
|
|
139
|
-
{
|
|
140
|
-
method: "GET"
|
|
40
|
+
if (messageText) {
|
|
41
|
+
const lowered = messageText.toLowerCase();
|
|
42
|
+
if (lowered.includes("cannot find module") || lowered.includes("module not found") || lowered.includes("cannot find package")) {
|
|
43
|
+
return lowered.includes(specifier.toLowerCase());
|
|
141
44
|
}
|
|
142
|
-
);
|
|
143
|
-
return client.parseWithSchema(
|
|
144
|
-
raw,
|
|
145
|
-
guardFeedResponseSchema,
|
|
146
|
-
"guard feed response"
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
async function getGuardOverview(client) {
|
|
150
|
-
const raw = await requestPortalFirstJson(
|
|
151
|
-
client,
|
|
152
|
-
"/guard/overview",
|
|
153
|
-
{
|
|
154
|
-
method: "GET"
|
|
155
|
-
}
|
|
156
|
-
);
|
|
157
|
-
return client.parseWithSchema(
|
|
158
|
-
raw,
|
|
159
|
-
guardOverviewResponseSchema,
|
|
160
|
-
"guard overview response"
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
async function getGuardTrustByHash(client, sha256) {
|
|
164
|
-
const normalizedHash = sha256.trim();
|
|
165
|
-
if (!normalizedHash) {
|
|
166
|
-
throw new Error("sha256 is required");
|
|
167
45
|
}
|
|
168
|
-
|
|
169
|
-
client,
|
|
170
|
-
`/guard/trust/by-hash/${encodeURIComponent(normalizedHash)}`,
|
|
171
|
-
{ method: "GET" }
|
|
172
|
-
);
|
|
173
|
-
return client.parseWithSchema(
|
|
174
|
-
raw,
|
|
175
|
-
guardTrustByHashResponseSchema,
|
|
176
|
-
"guard trust by hash response"
|
|
177
|
-
);
|
|
46
|
+
return false;
|
|
178
47
|
}
|
|
179
|
-
async function
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
params.set("ecosystem", query.ecosystem.trim());
|
|
48
|
+
async function resolveNodeRequire() {
|
|
49
|
+
if (nodeRequire !== void 0) {
|
|
50
|
+
return nodeRequire;
|
|
183
51
|
}
|
|
184
|
-
if (
|
|
185
|
-
|
|
52
|
+
if (isBrowser && !isNodeRuntime()) {
|
|
53
|
+
nodeRequire = null;
|
|
54
|
+
return nodeRequire;
|
|
186
55
|
}
|
|
187
|
-
|
|
188
|
-
|
|
56
|
+
try {
|
|
57
|
+
nodeRequire = getNodeRequireSync();
|
|
58
|
+
} catch {
|
|
59
|
+
nodeRequire = null;
|
|
189
60
|
}
|
|
190
|
-
|
|
191
|
-
const raw = await requestPortalFirstJson(
|
|
192
|
-
client,
|
|
193
|
-
`/guard/trust/resolve${suffix}`,
|
|
194
|
-
{ method: "GET" }
|
|
195
|
-
);
|
|
196
|
-
return client.parseWithSchema(
|
|
197
|
-
raw,
|
|
198
|
-
guardTrustResolveResponseSchema,
|
|
199
|
-
"guard trust resolve response"
|
|
200
|
-
);
|
|
201
|
-
}
|
|
202
|
-
async function getGuardRevocations(client) {
|
|
203
|
-
const raw = await requestPortalFirstJson(
|
|
204
|
-
client,
|
|
205
|
-
"/guard/revocations",
|
|
206
|
-
{
|
|
207
|
-
method: "GET"
|
|
208
|
-
}
|
|
209
|
-
);
|
|
210
|
-
return client.parseWithSchema(
|
|
211
|
-
raw,
|
|
212
|
-
guardRevocationResponseSchema,
|
|
213
|
-
"guard revocations response"
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
async function fetchGuardAdvisories(client) {
|
|
217
|
-
const raw = await requestPortalFirstJson(
|
|
218
|
-
client,
|
|
219
|
-
"/guard/advisories",
|
|
220
|
-
{
|
|
221
|
-
method: "GET"
|
|
222
|
-
}
|
|
223
|
-
);
|
|
224
|
-
return client.parseWithSchema(
|
|
225
|
-
raw,
|
|
226
|
-
guardRevocationResponseSchema,
|
|
227
|
-
"guard advisories response"
|
|
228
|
-
);
|
|
229
|
-
}
|
|
230
|
-
async function fetchGuardPolicy(client) {
|
|
231
|
-
const raw = await requestPortalFirstJson(
|
|
232
|
-
client,
|
|
233
|
-
"/guard/policy/fetch",
|
|
234
|
-
{
|
|
235
|
-
method: "GET"
|
|
236
|
-
}
|
|
237
|
-
);
|
|
238
|
-
return client.parseWithSchema(
|
|
239
|
-
raw,
|
|
240
|
-
guardPolicySchema,
|
|
241
|
-
"guard policy response"
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
async function getGuardInventory(client) {
|
|
245
|
-
const raw = await requestPortalFirstJson(
|
|
246
|
-
client,
|
|
247
|
-
"/guard/inventory",
|
|
248
|
-
{
|
|
249
|
-
method: "GET"
|
|
250
|
-
}
|
|
251
|
-
);
|
|
252
|
-
return client.parseWithSchema(
|
|
253
|
-
raw,
|
|
254
|
-
guardInventoryResponseSchema,
|
|
255
|
-
"guard inventory response"
|
|
256
|
-
);
|
|
61
|
+
return nodeRequire;
|
|
257
62
|
}
|
|
258
|
-
async function
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
63
|
+
async function dynamicImport(specifier) {
|
|
64
|
+
try {
|
|
65
|
+
return await import(
|
|
66
|
+
/* webpackIgnore: true */
|
|
67
|
+
specifier
|
|
68
|
+
);
|
|
69
|
+
} catch (error) {
|
|
70
|
+
if (isModuleNotFound(specifier, error)) {
|
|
71
|
+
return null;
|
|
264
72
|
}
|
|
265
|
-
|
|
266
|
-
return client.parseWithSchema(
|
|
267
|
-
raw,
|
|
268
|
-
guardReceiptHistoryResponseSchema,
|
|
269
|
-
"guard receipt history response"
|
|
270
|
-
);
|
|
271
|
-
}
|
|
272
|
-
async function getGuardArtifactTimeline(client, artifactId) {
|
|
273
|
-
const normalizedArtifactId = artifactId.trim();
|
|
274
|
-
if (!normalizedArtifactId) {
|
|
275
|
-
throw new Error("artifactId is required");
|
|
73
|
+
throw error;
|
|
276
74
|
}
|
|
277
|
-
const raw = await requestPortalFirstJson(
|
|
278
|
-
client,
|
|
279
|
-
`/guard/history/${encodeURIComponent(normalizedArtifactId)}`,
|
|
280
|
-
{ method: "GET" }
|
|
281
|
-
);
|
|
282
|
-
return client.parseWithSchema(
|
|
283
|
-
raw,
|
|
284
|
-
guardArtifactTimelineResponseSchema,
|
|
285
|
-
"guard artifact timeline response"
|
|
286
|
-
);
|
|
287
|
-
}
|
|
288
|
-
async function exportGuardAbom(client) {
|
|
289
|
-
const raw = await requestPortalFirstJson(client, "/guard/abom", {
|
|
290
|
-
method: "GET"
|
|
291
|
-
});
|
|
292
|
-
return client.parseWithSchema(
|
|
293
|
-
raw,
|
|
294
|
-
guardAbomResponseSchema,
|
|
295
|
-
"guard abom response"
|
|
296
|
-
);
|
|
297
75
|
}
|
|
298
|
-
async function
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
throw new Error("artifactId is required");
|
|
76
|
+
async function optionalImport(specifier, options = {}) {
|
|
77
|
+
if (isBrowser && !isNodeRuntime()) {
|
|
78
|
+
return dynamicImport(specifier);
|
|
302
79
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
async function exportGuardReceipts(client) {
|
|
315
|
-
const raw = await requestPortalFirstJson(
|
|
316
|
-
client,
|
|
317
|
-
"/guard/receipts/export",
|
|
318
|
-
{
|
|
319
|
-
method: "GET"
|
|
320
|
-
}
|
|
321
|
-
);
|
|
322
|
-
return client.parseWithSchema(
|
|
323
|
-
raw,
|
|
324
|
-
guardReceiptExportResponseSchema,
|
|
325
|
-
"guard receipt export response"
|
|
326
|
-
);
|
|
327
|
-
}
|
|
328
|
-
async function getGuardInventoryDiff(client) {
|
|
329
|
-
const raw = await requestPortalFirstJson(
|
|
330
|
-
client,
|
|
331
|
-
"/guard/inventory/diff",
|
|
332
|
-
{
|
|
333
|
-
method: "GET"
|
|
334
|
-
}
|
|
335
|
-
);
|
|
336
|
-
return client.parseWithSchema(
|
|
337
|
-
raw,
|
|
338
|
-
guardInventoryDiffResponseSchema,
|
|
339
|
-
"guard inventory diff response"
|
|
340
|
-
);
|
|
341
|
-
}
|
|
342
|
-
async function getGuardDevices(client) {
|
|
343
|
-
const raw = await requestPortalFirstJson(
|
|
344
|
-
client,
|
|
345
|
-
"/guard/devices",
|
|
346
|
-
{
|
|
347
|
-
method: "GET"
|
|
348
|
-
}
|
|
349
|
-
);
|
|
350
|
-
return client.parseWithSchema(
|
|
351
|
-
raw,
|
|
352
|
-
guardDeviceListResponseSchema,
|
|
353
|
-
"guard devices response"
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
async function getGuardAlertPreferences(client) {
|
|
357
|
-
const raw = await requestPortalFirstJson(
|
|
358
|
-
client,
|
|
359
|
-
"/guard/alerts/preferences",
|
|
360
|
-
{
|
|
361
|
-
method: "GET"
|
|
362
|
-
}
|
|
363
|
-
);
|
|
364
|
-
return client.parseWithSchema(
|
|
365
|
-
raw,
|
|
366
|
-
guardAlertPreferencesSchema,
|
|
367
|
-
"guard alert preferences response"
|
|
368
|
-
);
|
|
369
|
-
}
|
|
370
|
-
async function updateGuardAlertPreferences(client, payload) {
|
|
371
|
-
const raw = await requestPortalFirstJson(
|
|
372
|
-
client,
|
|
373
|
-
"/guard/alerts/preferences",
|
|
374
|
-
{
|
|
375
|
-
method: "PUT",
|
|
376
|
-
body: payload
|
|
377
|
-
}
|
|
378
|
-
);
|
|
379
|
-
return client.parseWithSchema(
|
|
380
|
-
raw,
|
|
381
|
-
guardAlertPreferencesSchema,
|
|
382
|
-
"guard alert preferences response"
|
|
383
|
-
);
|
|
384
|
-
}
|
|
385
|
-
async function getGuardExceptions(client) {
|
|
386
|
-
const raw = await requestPortalFirstJson(
|
|
387
|
-
client,
|
|
388
|
-
"/guard/exceptions",
|
|
389
|
-
{
|
|
390
|
-
method: "GET"
|
|
391
|
-
}
|
|
392
|
-
);
|
|
393
|
-
return client.parseWithSchema(
|
|
394
|
-
raw,
|
|
395
|
-
guardExceptionListResponseSchema,
|
|
396
|
-
"guard exceptions response"
|
|
397
|
-
);
|
|
398
|
-
}
|
|
399
|
-
async function getGuardWatchlist(client) {
|
|
400
|
-
const raw = await requestPortalFirstJson(
|
|
401
|
-
client,
|
|
402
|
-
"/guard/watchlist",
|
|
403
|
-
{
|
|
404
|
-
method: "GET"
|
|
405
|
-
}
|
|
406
|
-
);
|
|
407
|
-
return client.parseWithSchema(
|
|
408
|
-
raw,
|
|
409
|
-
guardWatchlistResponseSchema,
|
|
410
|
-
"guard watchlist response"
|
|
411
|
-
);
|
|
412
|
-
}
|
|
413
|
-
async function lookupGuardWatchlist(client, payload) {
|
|
414
|
-
const raw = await requestPortalFirstJson(
|
|
415
|
-
client,
|
|
416
|
-
"/guard/watchlist/lookup",
|
|
417
|
-
{
|
|
418
|
-
method: "POST",
|
|
419
|
-
body: payload
|
|
420
|
-
}
|
|
421
|
-
);
|
|
422
|
-
return client.parseWithSchema(
|
|
423
|
-
raw,
|
|
424
|
-
guardWatchlistLookupResponseSchema,
|
|
425
|
-
"guard watchlist lookup response"
|
|
426
|
-
);
|
|
427
|
-
}
|
|
428
|
-
async function getGuardPainSignals(client) {
|
|
429
|
-
const raw = await requestPortalFirstJson(
|
|
430
|
-
client,
|
|
431
|
-
"/guard/signals/pain",
|
|
432
|
-
{
|
|
433
|
-
method: "GET"
|
|
434
|
-
}
|
|
435
|
-
);
|
|
436
|
-
return client.parseWithSchema(
|
|
437
|
-
raw,
|
|
438
|
-
guardPainSignalListResponseSchema,
|
|
439
|
-
"guard pain signals response"
|
|
440
|
-
);
|
|
441
|
-
}
|
|
442
|
-
async function getGuardAggregatedPainSignals(client) {
|
|
443
|
-
const raw = await requestPortalFirstJson(
|
|
444
|
-
client,
|
|
445
|
-
"/guard/signals/pain/aggregate",
|
|
446
|
-
{
|
|
447
|
-
method: "GET"
|
|
448
|
-
}
|
|
449
|
-
);
|
|
450
|
-
return client.parseWithSchema(
|
|
451
|
-
raw,
|
|
452
|
-
guardPainSignalAggregateResponseSchema,
|
|
453
|
-
"guard aggregated pain signals response"
|
|
454
|
-
);
|
|
455
|
-
}
|
|
456
|
-
async function getGuardPreflightVerdict(client, path, payload) {
|
|
457
|
-
const raw = await requestPortalFirstJson(client, path, {
|
|
458
|
-
method: "POST",
|
|
459
|
-
body: payload
|
|
460
|
-
});
|
|
461
|
-
return client.parseWithSchema(
|
|
462
|
-
raw,
|
|
463
|
-
guardPreflightVerdictResponseSchema,
|
|
464
|
-
"guard preflight verdict response"
|
|
465
|
-
);
|
|
466
|
-
}
|
|
467
|
-
async function getGuardPreInstallVerdict(client, payload) {
|
|
468
|
-
return getGuardPreflightVerdict(
|
|
469
|
-
client,
|
|
470
|
-
"/guard/verdict/pre-install",
|
|
471
|
-
payload
|
|
472
|
-
);
|
|
473
|
-
}
|
|
474
|
-
async function getGuardPreExecutionVerdict(client, payload) {
|
|
475
|
-
return getGuardPreflightVerdict(
|
|
476
|
-
client,
|
|
477
|
-
"/guard/verdict/pre-execution",
|
|
478
|
-
payload
|
|
479
|
-
);
|
|
480
|
-
}
|
|
481
|
-
async function ingestGuardPainSignals(client, items) {
|
|
482
|
-
const raw = await requestPortalFirstJson(
|
|
483
|
-
client,
|
|
484
|
-
"/guard/signals/pain",
|
|
485
|
-
{
|
|
486
|
-
method: "POST",
|
|
487
|
-
body: { items }
|
|
488
|
-
}
|
|
489
|
-
);
|
|
490
|
-
return client.parseWithSchema(
|
|
491
|
-
raw,
|
|
492
|
-
guardPainSignalListResponseSchema,
|
|
493
|
-
"guard pain signals response"
|
|
494
|
-
);
|
|
495
|
-
}
|
|
496
|
-
async function submitGuardReceipts(client, payload) {
|
|
497
|
-
const raw = await requestPortalFirstJson(
|
|
498
|
-
client,
|
|
499
|
-
"/guard/receipts/submit",
|
|
500
|
-
{
|
|
501
|
-
method: "POST",
|
|
502
|
-
body: payload
|
|
503
|
-
}
|
|
504
|
-
);
|
|
505
|
-
return client.parseWithSchema(
|
|
506
|
-
raw,
|
|
507
|
-
guardReceiptSyncResponseSchema,
|
|
508
|
-
"guard receipt submit response"
|
|
509
|
-
);
|
|
510
|
-
}
|
|
511
|
-
async function addGuardWatchlistItem(client, payload) {
|
|
512
|
-
const raw = await requestPortalFirstJson(
|
|
513
|
-
client,
|
|
514
|
-
"/guard/watchlist",
|
|
515
|
-
{
|
|
516
|
-
method: "POST",
|
|
517
|
-
body: payload
|
|
80
|
+
if (!options.preferImport) {
|
|
81
|
+
const requireFn = await resolveNodeRequire();
|
|
82
|
+
if (requireFn) {
|
|
83
|
+
try {
|
|
84
|
+
return requireFn(specifier);
|
|
85
|
+
} catch (error) {
|
|
86
|
+
if (!isModuleNotFound(specifier, error)) {
|
|
87
|
+
throw error;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
518
90
|
}
|
|
519
|
-
);
|
|
520
|
-
return client.parseWithSchema(
|
|
521
|
-
raw,
|
|
522
|
-
guardWatchlistResponseSchema,
|
|
523
|
-
"guard watchlist response"
|
|
524
|
-
);
|
|
525
|
-
}
|
|
526
|
-
async function removeGuardWatchlistItem(client, artifactId) {
|
|
527
|
-
const normalizedArtifactId = artifactId.trim();
|
|
528
|
-
if (!normalizedArtifactId) {
|
|
529
|
-
throw new Error("artifactId is required");
|
|
530
91
|
}
|
|
531
|
-
|
|
532
|
-
client,
|
|
533
|
-
`/guard/watchlist/${encodeURIComponent(normalizedArtifactId)}`,
|
|
534
|
-
{ method: "DELETE" }
|
|
535
|
-
);
|
|
536
|
-
return client.parseWithSchema(
|
|
537
|
-
raw,
|
|
538
|
-
guardWatchlistResponseSchema,
|
|
539
|
-
"guard watchlist response"
|
|
540
|
-
);
|
|
541
|
-
}
|
|
542
|
-
async function addGuardException(client, payload) {
|
|
543
|
-
const raw = await requestPortalFirstJson(
|
|
544
|
-
client,
|
|
545
|
-
"/guard/exceptions",
|
|
546
|
-
{
|
|
547
|
-
method: "POST",
|
|
548
|
-
body: payload
|
|
549
|
-
}
|
|
550
|
-
);
|
|
551
|
-
return client.parseWithSchema(
|
|
552
|
-
raw,
|
|
553
|
-
guardExceptionListResponseSchema,
|
|
554
|
-
"guard exceptions response"
|
|
555
|
-
);
|
|
556
|
-
}
|
|
557
|
-
async function requestGuardException(client, payload) {
|
|
558
|
-
const raw = await requestPortalFirstJson(
|
|
559
|
-
client,
|
|
560
|
-
"/guard/exceptions/request",
|
|
561
|
-
{
|
|
562
|
-
method: "POST",
|
|
563
|
-
body: payload
|
|
564
|
-
}
|
|
565
|
-
);
|
|
566
|
-
return client.parseWithSchema(
|
|
567
|
-
raw,
|
|
568
|
-
guardExceptionListResponseSchema,
|
|
569
|
-
"guard exception request response"
|
|
570
|
-
);
|
|
571
|
-
}
|
|
572
|
-
async function syncGuardInventory(client, payload) {
|
|
573
|
-
const raw = await requestPortalFirstJson(
|
|
574
|
-
client,
|
|
575
|
-
"/guard/inventory/sync",
|
|
576
|
-
{
|
|
577
|
-
method: "POST",
|
|
578
|
-
body: payload
|
|
579
|
-
}
|
|
580
|
-
);
|
|
581
|
-
return client.parseWithSchema(
|
|
582
|
-
raw,
|
|
583
|
-
guardReceiptSyncResponseSchema,
|
|
584
|
-
"guard inventory sync response"
|
|
585
|
-
);
|
|
92
|
+
return dynamicImport(specifier);
|
|
586
93
|
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
throw new Error("exceptionId is required");
|
|
94
|
+
function optionalImportSync(specifier) {
|
|
95
|
+
if (isBrowser && !isNodeRuntime()) {
|
|
96
|
+
return null;
|
|
591
97
|
}
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
);
|
|
597
|
-
return client.parseWithSchema(
|
|
598
|
-
raw,
|
|
599
|
-
guardExceptionListResponseSchema,
|
|
600
|
-
"guard exceptions response"
|
|
601
|
-
);
|
|
602
|
-
}
|
|
603
|
-
async function getGuardTeamPolicyPack(client) {
|
|
604
|
-
const raw = await requestPortalFirstJson(
|
|
605
|
-
client,
|
|
606
|
-
"/guard/team/policy-pack",
|
|
607
|
-
{
|
|
608
|
-
method: "GET"
|
|
609
|
-
}
|
|
610
|
-
);
|
|
611
|
-
return client.parseWithSchema(
|
|
612
|
-
raw,
|
|
613
|
-
guardTeamPolicyPackSchema,
|
|
614
|
-
"guard team policy pack response"
|
|
615
|
-
);
|
|
616
|
-
}
|
|
617
|
-
async function updateGuardTeamPolicyPack(client, payload) {
|
|
618
|
-
const raw = await requestPortalFirstJson(
|
|
619
|
-
client,
|
|
620
|
-
"/guard/team/policy-pack",
|
|
621
|
-
{
|
|
622
|
-
method: "PUT",
|
|
623
|
-
body: payload
|
|
98
|
+
try {
|
|
99
|
+
const requireFn = getNodeRequireSync();
|
|
100
|
+
if (requireFn) {
|
|
101
|
+
return requireFn(specifier);
|
|
624
102
|
}
|
|
625
|
-
)
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
guardTeamPolicyPackSchema,
|
|
629
|
-
"guard team policy pack response"
|
|
630
|
-
);
|
|
631
|
-
}
|
|
632
|
-
async function syncGuardReceipts(client, payload) {
|
|
633
|
-
const raw = await requestPortalFirstJson(
|
|
634
|
-
client,
|
|
635
|
-
"/guard/receipts/sync",
|
|
636
|
-
{
|
|
637
|
-
method: "POST",
|
|
638
|
-
body: payload
|
|
103
|
+
} catch (error) {
|
|
104
|
+
if (!isModuleNotFound(specifier, error)) {
|
|
105
|
+
throw error;
|
|
639
106
|
}
|
|
640
|
-
|
|
641
|
-
return
|
|
642
|
-
raw,
|
|
643
|
-
guardReceiptSyncResponseSchema,
|
|
644
|
-
"guard receipt sync response"
|
|
645
|
-
);
|
|
107
|
+
}
|
|
108
|
+
return null;
|
|
646
109
|
}
|
|
647
110
|
export {
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
exportGuardAbom,
|
|
651
|
-
exportGuardArtifactAbom,
|
|
652
|
-
exportGuardReceipts,
|
|
653
|
-
fetchGuardAdvisories,
|
|
654
|
-
fetchGuardPolicy,
|
|
655
|
-
getGuardAggregatedPainSignals,
|
|
656
|
-
getGuardAlertPreferences,
|
|
657
|
-
getGuardArtifactTimeline,
|
|
658
|
-
getGuardBillingBalance,
|
|
659
|
-
getGuardDevices,
|
|
660
|
-
getGuardEntitlements,
|
|
661
|
-
getGuardExceptions,
|
|
662
|
-
getGuardFeed,
|
|
663
|
-
getGuardInventory,
|
|
664
|
-
getGuardInventoryDiff,
|
|
665
|
-
getGuardOverview,
|
|
666
|
-
getGuardPainSignals,
|
|
667
|
-
getGuardPreExecutionVerdict,
|
|
668
|
-
getGuardPreInstallVerdict,
|
|
669
|
-
getGuardReceiptHistory,
|
|
670
|
-
getGuardRevocations,
|
|
671
|
-
getGuardSession,
|
|
672
|
-
getGuardTeamPolicyPack,
|
|
673
|
-
getGuardTrustByHash,
|
|
674
|
-
getGuardWatchlist,
|
|
675
|
-
ingestGuardPainSignals,
|
|
676
|
-
lookupGuardWatchlist,
|
|
677
|
-
removeGuardException,
|
|
678
|
-
removeGuardWatchlistItem,
|
|
679
|
-
requestGuardException,
|
|
680
|
-
resolveGuardTrust,
|
|
681
|
-
submitGuardReceipts,
|
|
682
|
-
syncGuardInventory,
|
|
683
|
-
syncGuardReceipts,
|
|
684
|
-
updateGuardAlertPreferences,
|
|
685
|
-
updateGuardTeamPolicyPack
|
|
111
|
+
optionalImport,
|
|
112
|
+
optionalImportSync
|
|
686
113
|
};
|
|
687
114
|
//# sourceMappingURL=standards-sdk.es186.js.map
|