@dataparade/cli 0.0.31 → 0.0.33
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 +56 -1
- package/dist/package.json +4 -3
- package/dist/src/ai-enrichment/fallbacks.js +12 -1
- package/dist/src/cli.js +50 -4
- package/dist/src/core/pipeline/omit-internal-implementation.js +13 -6
- package/dist/src/diff/register-diff-command.d.ts +4 -0
- package/dist/src/diff/register-diff-command.js +79 -0
- package/dist/src/diff/run-diff.d.ts +80 -0
- package/dist/src/diff/run-diff.js +206 -0
- package/dist/src/diff/upload-diff.d.ts +26 -0
- package/dist/src/diff/upload-diff.js +69 -0
- package/dist/src/facts/apply-answers.js +1 -1
- package/dist/src/facts/build-facts.d.ts +3 -1
- package/dist/src/facts/build-facts.js +10 -1
- package/dist/src/facts/identity.d.ts +27 -0
- package/dist/src/facts/identity.js +203 -0
- package/dist/src/facts/io.d.ts +2 -0
- package/dist/src/facts/io.js +7 -0
- package/dist/src/facts/scan-stamps.d.ts +55 -0
- package/dist/src/facts/scan-stamps.js +165 -0
- package/dist/src/facts/schema.d.ts +243 -7
- package/dist/src/facts/schema.js +71 -1
- package/dist/src/kb/answer-fingerprint.d.ts +44 -0
- package/dist/src/kb/answer-fingerprint.js +173 -0
- package/dist/src/kb/brief.d.ts +8 -1
- package/dist/src/kb/brief.js +18 -2
- package/dist/src/kb/land.js +3 -0
- package/dist/src/kb/register-kb-commands.js +7 -1
- package/dist/src/output/git-context.d.ts +25 -0
- package/dist/src/output/git-context.js +122 -0
- package/dist/src/output/scan-output-excludes.js +5 -1
- package/dist/src/output/write-scan-knowledge.d.ts +2 -0
- package/dist/src/output/write-scan-knowledge.js +1 -0
- package/dist/src/platform-api/dataparade-app-base-url.d.ts +8 -4
- package/dist/src/platform-api/dataparade-app-base-url.js +10 -5
- package/dist/src/platform-api/upload-client.d.ts +1 -1
- package/dist/src/platform-api/upload-client.js +32 -1
- package/dist/src/platform-api/upload.types.d.ts +55 -0
- package/dist/src/sensitive-scan/process.d.ts +5 -0
- package/dist/src/sensitive-scan/process.js +48 -0
- package/dist/src/sensitive-scan/project.d.ts +12 -0
- package/dist/src/sensitive-scan/project.js +177 -0
- package/dist/src/sensitive-scan/report.d.ts +50 -0
- package/dist/src/sensitive-scan/report.js +32 -0
- package/dist/src/sensitive-scan/sessions.d.ts +2 -0
- package/dist/src/sensitive-scan/sessions.js +120 -0
- package/dist/src/ui/scan-progress-renderer.d.ts +1 -0
- package/dist/src/ui/scan-progress-renderer.js +8 -0
- package/dist/src/upload/build-preview-url.d.ts +2 -2
- package/dist/src/upload/build-preview-url.js +4 -4
- package/dist/src/upload/run-upload.js +6 -2
- package/dist/src/upload/types.d.ts +2 -0
- package/dist/tests/unit/ai-enrichment/fallbacks.spec.js +30 -0
- package/dist/tests/unit/core/omit-internal-implementation.spec.js +21 -0
- package/dist/tests/unit/diff/run-diff.spec.d.ts +1 -0
- package/dist/tests/unit/diff/run-diff.spec.js +189 -0
- package/dist/tests/unit/diff/upload-diff.spec.d.ts +1 -0
- package/dist/tests/unit/diff/upload-diff.spec.js +81 -0
- package/dist/tests/unit/facts/apply-answers.spec.js +1 -1
- package/dist/tests/unit/facts/build-facts.spec.js +67 -1
- package/dist/tests/unit/facts/identity.spec.d.ts +1 -0
- package/dist/tests/unit/facts/identity.spec.js +148 -0
- package/dist/tests/unit/facts/scan-stamps.spec.d.ts +1 -0
- package/dist/tests/unit/facts/scan-stamps.spec.js +95 -0
- package/dist/tests/unit/kb/answer-fingerprint.spec.d.ts +1 -0
- package/dist/tests/unit/kb/answer-fingerprint.spec.js +157 -0
- package/dist/tests/unit/kb/kb-interview-loop.spec.js +16 -0
- package/dist/tests/unit/output/git-context.spec.d.ts +1 -0
- package/dist/tests/unit/output/git-context.spec.js +98 -0
- package/dist/tests/unit/platform-api/dataparade-app-base-url.spec.js +9 -0
- package/dist/tests/unit/platform-api/upload-client.spec.js +101 -1
- package/dist/tests/unit/sensitive-scan/project.spec.d.ts +1 -0
- package/dist/tests/unit/sensitive-scan/project.spec.js +98 -0
- package/dist/tests/unit/upload/build-preview-url.spec.js +4 -0
- package/dist/tests/unit/upload/collect-scan-sidecars.spec.js +1 -0
- package/dist/tests/unit/upload/run-upload.spec.js +32 -0
- package/dist/vendor/kb-compare/dist/src/canonical.d.ts +80 -0
- package/dist/vendor/kb-compare/dist/src/canonical.js +119 -0
- package/dist/vendor/kb-compare/dist/src/change-set.d.ts +144 -0
- package/dist/vendor/kb-compare/dist/src/change-set.js +80 -0
- package/dist/vendor/kb-compare/dist/src/comparable.d.ts +23 -0
- package/dist/vendor/kb-compare/dist/src/comparable.js +48 -0
- package/dist/vendor/kb-compare/dist/src/compare.d.ts +52 -0
- package/dist/vendor/kb-compare/dist/src/compare.js +370 -0
- package/dist/vendor/kb-compare/dist/src/fingerprint.d.ts +40 -0
- package/dist/vendor/kb-compare/dist/src/fingerprint.js +88 -0
- package/dist/vendor/kb-compare/dist/src/index.d.ts +15 -0
- package/dist/vendor/kb-compare/dist/src/index.js +34 -0
- package/dist/vendor/kb-compare/dist/src/input.d.ts +128 -0
- package/dist/vendor/kb-compare/dist/src/input.js +75 -0
- package/dist/vendor/kb-compare/dist/src/slot-rules.d.ts +69 -0
- package/dist/vendor/kb-compare/dist/src/slot-rules.js +203 -0
- package/dist/vendor/kb-compare/dist/src/summary.d.ts +3 -0
- package/dist/vendor/kb-compare/dist/src/summary.js +47 -0
- package/dist/vendor/kb-compare/package.json +6 -0
- package/dist/vendor/scanner/dist/src/analyzers/python/python-detection-config.d.ts +11 -0
- package/dist/vendor/scanner/dist/src/analyzers/python/python-detection-config.js +2 -0
- package/dist/vendor/scanner/dist/src/analyzers/registry.d.ts +2 -0
- package/dist/vendor/scanner/dist/src/analyzers/registry.js +3 -2
- package/dist/vendor/scanner/dist/src/analyzers/typescript/typescript-detection-config.d.ts +17 -0
- package/dist/vendor/scanner/dist/src/analyzers/typescript/typescript-detection-config.js +11 -0
- package/dist/vendor/scanner/dist/src/classifier/application-injection.js +5 -0
- package/dist/vendor/scanner/dist/src/classifier/component-factory.js +33 -3
- package/dist/vendor/scanner/dist/src/classifier/enhance.js +14 -0
- package/dist/vendor/scanner/dist/src/classifier/external-url-third-party.d.ts +8 -0
- package/dist/vendor/scanner/dist/src/classifier/external-url-third-party.js +43 -2
- package/dist/vendor/scanner/dist/src/classifier/postprocessing.js +4 -1
- package/dist/vendor/scanner/dist/src/config/third-party-detection-config.d.ts +41 -0
- package/dist/vendor/scanner/dist/src/config/third-party-detection-config.js +65 -1
- package/dist/vendor/scanner/dist/src/core/pipeline/stable-component-ids.d.ts +8 -0
- package/dist/vendor/scanner/dist/src/core/pipeline/stable-component-ids.js +11 -1
- package/dist/vendor/scanner/dist/src/core/pipeline/structural-scan.js +2 -0
- package/dist/vendor/scanner/dist/src/eval/canonical/scanner/components.d.ts +5 -0
- package/dist/vendor/scanner/dist/src/eval/canonical/scanner/components.js +10 -2
- package/dist/vendor/scanner/dist/src/eval/canonical/scanner/data-flows.js +4 -4
- package/dist/vendor/scanner/dist/src/index.d.ts +1 -1
- package/dist/vendor/scanner/dist/src/index.js +4 -2
- package/dist/vendor/scanner/dist/src/patterns/config.js +7 -1
- package/dist/vendor/scanner/dist/src/patterns/detectors/git-remote-owner.d.ts +14 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/git-remote-owner.js +108 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/python-outbound-http.d.ts +93 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/python-outbound-http.js +1206 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/python-source.d.ts +180 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/python-source.js +1022 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/python.d.ts +6 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/python.js +49 -1
- package/dist/vendor/scanner/dist/src/patterns/detectors/repo-declared-domains.d.ts +2 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/repo-declared-domains.js +80 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/source-module-index.d.ts +23 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/source-module-index.js +145 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/typescript-outbound-http.d.ts +30 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/typescript-outbound-http.js +575 -0
- package/dist/vendor/scanner/dist/src/patterns/detectors/typescript.js +12 -0
- package/dist/vendor/scanner/dist/src/patterns/engine.js +6 -1
- package/dist/vendor/scanner/package.json +3 -1
- package/dist/vendor/scanner/patterns/classifier/third-party.classifier.yaml +198 -0
- package/dist/vendor/scanner/patterns/component-taxonomy.yaml +1 -1
- package/dist/vendor/scanner/patterns/python.patterns.yaml +10 -0
- package/dist/vendor/scanner/patterns/third-party.patterns.yaml +271 -0
- package/dist/vendor/scanner/patterns/typescript.patterns.yaml +21 -0
- package/package.json +4 -3
|
@@ -192,3 +192,201 @@ third_parties:
|
|
|
192
192
|
- "sentry_sdk"
|
|
193
193
|
type: third_party
|
|
194
194
|
subType: saas_service
|
|
195
|
+
|
|
196
|
+
# Raw-HTTP destinations (DATAP-818). Python request calls name these services from the
|
|
197
|
+
# resolved URL host; url_routes in third-party.patterns.yaml split graph.facebook.com.
|
|
198
|
+
- serviceName: x
|
|
199
|
+
matchKeys:
|
|
200
|
+
- "api.x.com"
|
|
201
|
+
type: third_party
|
|
202
|
+
subType: saas_service
|
|
203
|
+
|
|
204
|
+
- serviceName: whatsapp
|
|
205
|
+
matchKeys:
|
|
206
|
+
- whatsapp
|
|
207
|
+
type: third_party
|
|
208
|
+
subType: messaging
|
|
209
|
+
|
|
210
|
+
- serviceName: facebook_messenger
|
|
211
|
+
matchKeys:
|
|
212
|
+
- facebook_messenger
|
|
213
|
+
type: third_party
|
|
214
|
+
subType: messaging
|
|
215
|
+
|
|
216
|
+
- serviceName: facebook_graph
|
|
217
|
+
matchKeys:
|
|
218
|
+
- "graph.facebook.com"
|
|
219
|
+
type: third_party
|
|
220
|
+
subType: saas_service
|
|
221
|
+
|
|
222
|
+
- serviceName: meta_conversions_api
|
|
223
|
+
matchKeys:
|
|
224
|
+
- meta_conversions_api
|
|
225
|
+
type: third_party
|
|
226
|
+
subType: analytics
|
|
227
|
+
|
|
228
|
+
- serviceName: instagram
|
|
229
|
+
matchKeys:
|
|
230
|
+
- "graph.instagram.com"
|
|
231
|
+
- "api.instagram.com"
|
|
232
|
+
- "instagram.com"
|
|
233
|
+
type: third_party
|
|
234
|
+
subType: saas_service
|
|
235
|
+
|
|
236
|
+
- serviceName: linkedin
|
|
237
|
+
matchKeys:
|
|
238
|
+
- "api.linkedin.com"
|
|
239
|
+
type: third_party
|
|
240
|
+
subType: saas_service
|
|
241
|
+
|
|
242
|
+
- serviceName: reddit
|
|
243
|
+
matchKeys:
|
|
244
|
+
- "reddit.com"
|
|
245
|
+
type: third_party
|
|
246
|
+
subType: saas_service
|
|
247
|
+
|
|
248
|
+
- serviceName: crisp
|
|
249
|
+
matchKeys:
|
|
250
|
+
- "api.crisp.chat"
|
|
251
|
+
type: third_party
|
|
252
|
+
subType: messaging
|
|
253
|
+
|
|
254
|
+
- serviceName: telegram
|
|
255
|
+
matchKeys:
|
|
256
|
+
- "api.telegram.org"
|
|
257
|
+
type: third_party
|
|
258
|
+
subType: messaging
|
|
259
|
+
|
|
260
|
+
- serviceName: google_analytics
|
|
261
|
+
matchKeys:
|
|
262
|
+
- "google-analytics.com"
|
|
263
|
+
type: third_party
|
|
264
|
+
subType: analytics
|
|
265
|
+
|
|
266
|
+
- serviceName: make
|
|
267
|
+
matchKeys:
|
|
268
|
+
- ".make.com"
|
|
269
|
+
type: third_party
|
|
270
|
+
subType: saas_service
|
|
271
|
+
|
|
272
|
+
- serviceName: shopify
|
|
273
|
+
matchKeys:
|
|
274
|
+
- "myshopify.com"
|
|
275
|
+
type: third_party
|
|
276
|
+
subType: saas_service
|
|
277
|
+
|
|
278
|
+
- serviceName: cerebras
|
|
279
|
+
matchKeys:
|
|
280
|
+
- "api.cerebras.ai"
|
|
281
|
+
type: third_party
|
|
282
|
+
subType: ai_provider
|
|
283
|
+
|
|
284
|
+
- serviceName: arize_phoenix
|
|
285
|
+
matchKeys:
|
|
286
|
+
- "phoenix.arize.com"
|
|
287
|
+
type: third_party
|
|
288
|
+
subType: monitoring
|
|
289
|
+
|
|
290
|
+
- serviceName: groq
|
|
291
|
+
matchKeys:
|
|
292
|
+
- "api.groq.com"
|
|
293
|
+
type: third_party
|
|
294
|
+
subType: ai_provider
|
|
295
|
+
|
|
296
|
+
- serviceName: together_ai
|
|
297
|
+
matchKeys:
|
|
298
|
+
- "api.together.xyz"
|
|
299
|
+
- "api.together.ai"
|
|
300
|
+
type: third_party
|
|
301
|
+
subType: ai_provider
|
|
302
|
+
|
|
303
|
+
- serviceName: perplexity
|
|
304
|
+
matchKeys:
|
|
305
|
+
- "api.perplexity.ai"
|
|
306
|
+
type: third_party
|
|
307
|
+
subType: ai_provider
|
|
308
|
+
|
|
309
|
+
- serviceName: firecrawl
|
|
310
|
+
matchKeys:
|
|
311
|
+
- "api.firecrawl.dev"
|
|
312
|
+
type: third_party
|
|
313
|
+
subType: saas_service
|
|
314
|
+
|
|
315
|
+
- serviceName: tavus
|
|
316
|
+
matchKeys:
|
|
317
|
+
- "tavusapi.com"
|
|
318
|
+
type: third_party
|
|
319
|
+
subType: ai_provider
|
|
320
|
+
|
|
321
|
+
- serviceName: discord
|
|
322
|
+
matchKeys:
|
|
323
|
+
- "discord.com/api"
|
|
324
|
+
- "discordapp.com"
|
|
325
|
+
type: third_party
|
|
326
|
+
subType: messaging
|
|
327
|
+
|
|
328
|
+
- serviceName: mistral
|
|
329
|
+
matchKeys:
|
|
330
|
+
- "api.mistral.ai"
|
|
331
|
+
type: third_party
|
|
332
|
+
subType: ai_provider
|
|
333
|
+
|
|
334
|
+
- serviceName: airtable
|
|
335
|
+
matchKeys:
|
|
336
|
+
- "api.airtable.com"
|
|
337
|
+
type: third_party
|
|
338
|
+
subType: saas_service
|
|
339
|
+
|
|
340
|
+
- serviceName: hubspot
|
|
341
|
+
matchKeys:
|
|
342
|
+
- "api.hubapi.com"
|
|
343
|
+
type: third_party
|
|
344
|
+
subType: crm
|
|
345
|
+
|
|
346
|
+
- serviceName: slack
|
|
347
|
+
matchKeys:
|
|
348
|
+
- "hooks.slack.com"
|
|
349
|
+
- "slack.com/api"
|
|
350
|
+
- "slack_sdk"
|
|
351
|
+
- "slack_bolt"
|
|
352
|
+
- "@slack/"
|
|
353
|
+
type: third_party
|
|
354
|
+
subType: messaging
|
|
355
|
+
|
|
356
|
+
- serviceName: voyage_ai
|
|
357
|
+
matchKeys:
|
|
358
|
+
- "voyageai"
|
|
359
|
+
- "api.voyageai.com"
|
|
360
|
+
type: third_party
|
|
361
|
+
subType: ai_provider
|
|
362
|
+
|
|
363
|
+
- serviceName: gmail
|
|
364
|
+
matchKeys:
|
|
365
|
+
- "gmail.googleapis.com"
|
|
366
|
+
type: third_party
|
|
367
|
+
subType: email_provider
|
|
368
|
+
|
|
369
|
+
- serviceName: google_drive
|
|
370
|
+
matchKeys:
|
|
371
|
+
- "www.googleapis.com/drive"
|
|
372
|
+
- "drive.googleapis.com"
|
|
373
|
+
type: third_party
|
|
374
|
+
subType: saas_service
|
|
375
|
+
|
|
376
|
+
- serviceName: google_sheets
|
|
377
|
+
matchKeys:
|
|
378
|
+
- "sheets.googleapis.com"
|
|
379
|
+
type: third_party
|
|
380
|
+
subType: saas_service
|
|
381
|
+
|
|
382
|
+
- serviceName: google_calendar
|
|
383
|
+
matchKeys:
|
|
384
|
+
- "www.googleapis.com/calendar"
|
|
385
|
+
type: third_party
|
|
386
|
+
subType: saas_service
|
|
387
|
+
|
|
388
|
+
- serviceName: google_docs
|
|
389
|
+
matchKeys:
|
|
390
|
+
- "docs.googleapis.com"
|
|
391
|
+
type: third_party
|
|
392
|
+
subType: saas_service
|
|
@@ -191,7 +191,7 @@ subtypes:
|
|
|
191
191
|
# serviceName from third-party.classifier.yaml. For actors, name is "User".
|
|
192
192
|
known_third_party_names:
|
|
193
193
|
payment_processor: [stripe, braintree, adyen, paypal]
|
|
194
|
-
ai_provider: [openai, anthropic, openrouter, google_ai, clipdrop, thenextleg, vectorizer]
|
|
194
|
+
ai_provider: [openai, anthropic, openrouter, google_ai, clipdrop, thenextleg, vectorizer, voyage_ai]
|
|
195
195
|
cloud_provider: [aws, gcp, azure]
|
|
196
196
|
saas_service: [sendgrid, twilio, firebase, supabase, sentry]
|
|
197
197
|
auth_provider: [auth0, google_auth, okta]
|
|
@@ -186,6 +186,8 @@ auth:
|
|
|
186
186
|
- '"Authorization"'
|
|
187
187
|
- "Authorization\\s*:\\s*['\"]Bearer"
|
|
188
188
|
strategy: bearer_token
|
|
189
|
+
# Not reported when the header is sent on an outbound request (DATAP-818).
|
|
190
|
+
outgoingHeader: true
|
|
189
191
|
confidence: 0.7
|
|
190
192
|
|
|
191
193
|
- id: oauth2
|
|
@@ -313,6 +315,9 @@ external_apis:
|
|
|
313
315
|
clientName: requests
|
|
314
316
|
importModules:
|
|
315
317
|
- requests
|
|
318
|
+
clientConstructors:
|
|
319
|
+
- Session
|
|
320
|
+
- session
|
|
316
321
|
urlRegex: "['\\\"](https?:\\/\\/[^\\s'\\\"]+)['\\\"]"
|
|
317
322
|
confidence: 0.85
|
|
318
323
|
|
|
@@ -321,6 +326,9 @@ external_apis:
|
|
|
321
326
|
clientName: httpx
|
|
322
327
|
importModules:
|
|
323
328
|
- httpx
|
|
329
|
+
clientConstructors:
|
|
330
|
+
- Client
|
|
331
|
+
- AsyncClient
|
|
324
332
|
urlRegex: "['\\\"](https?:\\/\\/[^\\s'\\\"]+)['\\\"]"
|
|
325
333
|
confidence: 0.85
|
|
326
334
|
|
|
@@ -329,6 +337,8 @@ external_apis:
|
|
|
329
337
|
clientName: aiohttp
|
|
330
338
|
importModules:
|
|
331
339
|
- aiohttp
|
|
340
|
+
clientConstructors:
|
|
341
|
+
- ClientSession
|
|
332
342
|
urlRegex: "['\\\"](https?:\\/\\/[^\\s'\\\"]+)['\\\"]"
|
|
333
343
|
confidence: 0.85
|
|
334
344
|
|
|
@@ -47,6 +47,12 @@ services:
|
|
|
47
47
|
url_host_patterns:
|
|
48
48
|
- twilio.com
|
|
49
49
|
- api.twilio.com
|
|
50
|
+
# X API v2. Listed before twitter so api.x.com resolves to x.
|
|
51
|
+
- serviceName: x
|
|
52
|
+
patternId: external_api_call
|
|
53
|
+
confidence: 0.85
|
|
54
|
+
url_host_patterns:
|
|
55
|
+
- api.x.com
|
|
50
56
|
- serviceName: twitter
|
|
51
57
|
patternId: external_api_call
|
|
52
58
|
importFragments:
|
|
@@ -204,3 +210,268 @@ services:
|
|
|
204
210
|
url_host_patterns:
|
|
205
211
|
- sentry.io
|
|
206
212
|
- ingest.sentry.io
|
|
213
|
+
|
|
214
|
+
# Raw-HTTP destinations without an SDK import (DATAP-818). Python request calls
|
|
215
|
+
# resolve their URL in the same file and match these hosts.
|
|
216
|
+
- serviceName: instagram
|
|
217
|
+
patternId: external_api_call
|
|
218
|
+
confidence: 0.85
|
|
219
|
+
url_host_patterns:
|
|
220
|
+
- graph.instagram.com
|
|
221
|
+
- api.instagram.com
|
|
222
|
+
- instagram.com
|
|
223
|
+
- serviceName: linkedin
|
|
224
|
+
patternId: external_api_call
|
|
225
|
+
confidence: 0.85
|
|
226
|
+
url_host_patterns:
|
|
227
|
+
- api.linkedin.com
|
|
228
|
+
- www.linkedin.com
|
|
229
|
+
- serviceName: reddit
|
|
230
|
+
patternId: external_api_call
|
|
231
|
+
confidence: 0.85
|
|
232
|
+
url_host_patterns:
|
|
233
|
+
- reddit.com
|
|
234
|
+
- serviceName: crisp
|
|
235
|
+
patternId: external_api_call
|
|
236
|
+
confidence: 0.85
|
|
237
|
+
url_host_patterns:
|
|
238
|
+
- api.crisp.chat
|
|
239
|
+
- serviceName: telegram
|
|
240
|
+
patternId: external_api_call
|
|
241
|
+
confidence: 0.85
|
|
242
|
+
url_host_patterns:
|
|
243
|
+
- api.telegram.org
|
|
244
|
+
- serviceName: google_analytics
|
|
245
|
+
patternId: external_api_call
|
|
246
|
+
confidence: 0.85
|
|
247
|
+
url_host_patterns:
|
|
248
|
+
- google-analytics.com
|
|
249
|
+
- serviceName: make
|
|
250
|
+
patternId: external_api_call
|
|
251
|
+
confidence: 0.85
|
|
252
|
+
url_host_patterns:
|
|
253
|
+
- hook.eu1.make.com
|
|
254
|
+
- hook.eu2.make.com
|
|
255
|
+
- hook.us1.make.com
|
|
256
|
+
- hook.us2.make.com
|
|
257
|
+
- serviceName: shopify
|
|
258
|
+
patternId: external_api_call
|
|
259
|
+
confidence: 0.85
|
|
260
|
+
url_host_patterns:
|
|
261
|
+
- myshopify.com
|
|
262
|
+
- serviceName: cerebras
|
|
263
|
+
patternId: external_api_call
|
|
264
|
+
confidence: 0.85
|
|
265
|
+
url_host_patterns:
|
|
266
|
+
- api.cerebras.ai
|
|
267
|
+
- serviceName: arize_phoenix
|
|
268
|
+
patternId: external_api_call
|
|
269
|
+
importFragments:
|
|
270
|
+
- phoenix.otel
|
|
271
|
+
confidence: 0.85
|
|
272
|
+
url_host_patterns:
|
|
273
|
+
- phoenix.arize.com
|
|
274
|
+
- serviceName: groq
|
|
275
|
+
patternId: external_api_call
|
|
276
|
+
confidence: 0.85
|
|
277
|
+
url_host_patterns:
|
|
278
|
+
- api.groq.com
|
|
279
|
+
- serviceName: together_ai
|
|
280
|
+
patternId: external_api_call
|
|
281
|
+
confidence: 0.85
|
|
282
|
+
url_host_patterns:
|
|
283
|
+
- api.together.xyz
|
|
284
|
+
- api.together.ai
|
|
285
|
+
|
|
286
|
+
- serviceName: perplexity
|
|
287
|
+
patternId: external_api_call
|
|
288
|
+
confidence: 0.85
|
|
289
|
+
url_host_patterns:
|
|
290
|
+
- api.perplexity.ai
|
|
291
|
+
- serviceName: firecrawl
|
|
292
|
+
patternId: external_api_call
|
|
293
|
+
confidence: 0.85
|
|
294
|
+
url_host_patterns:
|
|
295
|
+
- api.firecrawl.dev
|
|
296
|
+
- serviceName: tavus
|
|
297
|
+
patternId: external_api_call
|
|
298
|
+
confidence: 0.85
|
|
299
|
+
url_host_patterns:
|
|
300
|
+
- tavusapi.com
|
|
301
|
+
- serviceName: discord
|
|
302
|
+
patternId: external_api_call
|
|
303
|
+
confidence: 0.85
|
|
304
|
+
url_host_patterns:
|
|
305
|
+
- discord.com
|
|
306
|
+
- discordapp.com
|
|
307
|
+
- serviceName: mistral
|
|
308
|
+
patternId: external_api_call
|
|
309
|
+
confidence: 0.85
|
|
310
|
+
url_host_patterns:
|
|
311
|
+
- api.mistral.ai
|
|
312
|
+
- serviceName: airtable
|
|
313
|
+
patternId: external_api_call
|
|
314
|
+
confidence: 0.85
|
|
315
|
+
url_host_patterns:
|
|
316
|
+
- api.airtable.com
|
|
317
|
+
- serviceName: hubspot
|
|
318
|
+
patternId: external_api_call
|
|
319
|
+
confidence: 0.85
|
|
320
|
+
url_host_patterns:
|
|
321
|
+
- api.hubapi.com
|
|
322
|
+
- serviceName: slack
|
|
323
|
+
patternId: external_api_call
|
|
324
|
+
importFragments:
|
|
325
|
+
- slack_sdk
|
|
326
|
+
- slack_bolt
|
|
327
|
+
- "@slack/web-api"
|
|
328
|
+
- "@slack/bolt"
|
|
329
|
+
- "@slack/webhook"
|
|
330
|
+
confidence: 0.85
|
|
331
|
+
url_host_patterns:
|
|
332
|
+
- hooks.slack.com
|
|
333
|
+
- slack.com
|
|
334
|
+
- serviceName: voyage_ai
|
|
335
|
+
patternId: external_api_call
|
|
336
|
+
importFragments:
|
|
337
|
+
- voyageai
|
|
338
|
+
confidence: 0.85
|
|
339
|
+
url_host_patterns:
|
|
340
|
+
- api.voyageai.com
|
|
341
|
+
|
|
342
|
+
# url_routes: hosts that serve several products. Rules run in order; the first rule whose
|
|
343
|
+
# `path` (URL path, no query) and `hint` (file path, class, function and URL expression of
|
|
344
|
+
# the calling code) both match names the service. A rule's subType overrides the catalog one.
|
|
345
|
+
url_routes:
|
|
346
|
+
- host: graph.facebook.com
|
|
347
|
+
rules:
|
|
348
|
+
# Conversions API: POST /{pixel_id}/events.
|
|
349
|
+
- path: "/events/?$"
|
|
350
|
+
serviceName: meta_conversions_api
|
|
351
|
+
# Instagram content publishing: /{ig_user_id}/media and /media_publish.
|
|
352
|
+
- path: "/media(_publish)?/?$"
|
|
353
|
+
serviceName: instagram
|
|
354
|
+
subType: saas_service
|
|
355
|
+
# WhatsApp Cloud API calls go through the Graph host with a phone number id.
|
|
356
|
+
- hint: "whatsapp|phone_number_id|(^|[^a-z])wa_"
|
|
357
|
+
serviceName: whatsapp
|
|
358
|
+
- path: "/messages/?$"
|
|
359
|
+
hint: "instagram|(^|[^a-z])ig_"
|
|
360
|
+
serviceName: instagram
|
|
361
|
+
subType: messaging
|
|
362
|
+
- path: "/messages/?$"
|
|
363
|
+
serviceName: facebook_messenger
|
|
364
|
+
- serviceName: facebook_graph
|
|
365
|
+
|
|
366
|
+
# url_path_routes: URLs whose host is only known at runtime (`https://{self.domain}/api/mcp`).
|
|
367
|
+
# A rule names the service when the URL path matches `path` and the calling code or the
|
|
368
|
+
# class/module the URL was built in matches `hint`. Both are required: a path alone is
|
|
369
|
+
# too weak to name a vendor.
|
|
370
|
+
url_path_routes:
|
|
371
|
+
# Shopify Storefront MCP: every shop serves it at https://{shop}/api/mcp; the host is the
|
|
372
|
+
# merchant's domain, so only Shopify-named code (ShopifyStore, shopify_store.py) counts.
|
|
373
|
+
- path: "^/api/mcp/?$"
|
|
374
|
+
hint: "shopify"
|
|
375
|
+
serviceName: shopify
|
|
376
|
+
# Shopify Storefront and Admin APIs on the merchant's own domain, called directly with an
|
|
377
|
+
# HTTP client: /api/{version}/graphql.json, /admin/api/..., /admin/oauth/access_token and the
|
|
378
|
+
# public catalogue /products.json. Same rule: only Shopify-named code counts.
|
|
379
|
+
- path: "^/api/[^/]+/graphql\\.json$"
|
|
380
|
+
hint: "shopify"
|
|
381
|
+
serviceName: shopify
|
|
382
|
+
- path: "^/admin/(api|oauth)/"
|
|
383
|
+
hint: "shopify"
|
|
384
|
+
serviceName: shopify
|
|
385
|
+
- path: "^/(products|collections/[^/]+/products)(\\.json|/[^/]+\\.json)$"
|
|
386
|
+
hint: "shopify"
|
|
387
|
+
serviceName: shopify
|
|
388
|
+
|
|
389
|
+
# llm_model_prefixes: LiteLLM routes `provider/model` to the provider. Only providers in the
|
|
390
|
+
# classifier catalog are listed.
|
|
391
|
+
llm_model_prefixes:
|
|
392
|
+
groq: groq
|
|
393
|
+
together_ai: together_ai
|
|
394
|
+
openrouter: openrouter
|
|
395
|
+
cerebras: cerebras
|
|
396
|
+
anthropic: anthropic
|
|
397
|
+
openai: openai
|
|
398
|
+
gemini: google_ai
|
|
399
|
+
vertex_ai: google_ai
|
|
400
|
+
bedrock: aws
|
|
401
|
+
sagemaker: aws
|
|
402
|
+
azure: azure
|
|
403
|
+
|
|
404
|
+
# google_api_services: googleapiclient.discovery.build("<api>", ...) names the Google
|
|
405
|
+
# product it calls. Keys are the discovery API names.
|
|
406
|
+
google_api_services:
|
|
407
|
+
gmail: gmail
|
|
408
|
+
drive: google_drive
|
|
409
|
+
sheets: google_sheets
|
|
410
|
+
calendar: google_calendar
|
|
411
|
+
docs: google_docs
|
|
412
|
+
|
|
413
|
+
# platform_hosts: shared hosting suffixes. A host on one of these is someone's own service
|
|
414
|
+
# (usually the scanned team's), never a vendor named after the platform label ("run", "web").
|
|
415
|
+
# Calls to them become outbound API assets with the platform recorded as metadata, named
|
|
416
|
+
# "<service> (<name>)": the first host label without project numbers or deploy hashes.
|
|
417
|
+
platform_hosts:
|
|
418
|
+
- pattern: "\\.run\\.app$"
|
|
419
|
+
platform: gcp/cloud_run
|
|
420
|
+
name: "Cloud Run"
|
|
421
|
+
- pattern: "\\.cloudfunctions\\.net$"
|
|
422
|
+
platform: gcp/cloud_functions
|
|
423
|
+
name: "Cloud Functions"
|
|
424
|
+
- pattern: "\\.appspot\\.com$"
|
|
425
|
+
platform: gcp/app_engine
|
|
426
|
+
name: "App Engine"
|
|
427
|
+
- pattern: "\\.web\\.app$|\\.firebaseapp\\.com$"
|
|
428
|
+
platform: gcp/firebase_hosting
|
|
429
|
+
name: "Firebase Hosting"
|
|
430
|
+
- pattern: "\\.azurewebsites\\.net$"
|
|
431
|
+
platform: azure/app_service
|
|
432
|
+
name: "Azure App Service"
|
|
433
|
+
- pattern: "\\.azurecontainerapps\\.io$"
|
|
434
|
+
platform: azure/container_apps
|
|
435
|
+
name: "Azure Container Apps"
|
|
436
|
+
- pattern: "\\.azure-api\\.net$"
|
|
437
|
+
platform: azure/api_management
|
|
438
|
+
name: "Azure API Management"
|
|
439
|
+
- pattern: "\\.herokuapp\\.com$"
|
|
440
|
+
platform: heroku
|
|
441
|
+
name: "Heroku"
|
|
442
|
+
- pattern: "\\.vercel\\.app$"
|
|
443
|
+
platform: vercel
|
|
444
|
+
name: "Vercel"
|
|
445
|
+
- pattern: "\\.netlify\\.app$"
|
|
446
|
+
platform: netlify
|
|
447
|
+
name: "Netlify"
|
|
448
|
+
- pattern: "\\.fly\\.dev$"
|
|
449
|
+
platform: fly
|
|
450
|
+
name: "Fly.io"
|
|
451
|
+
- pattern: "\\.onrender\\.com$"
|
|
452
|
+
platform: render
|
|
453
|
+
name: "Render"
|
|
454
|
+
- pattern: "\\.workers\\.dev$|\\.pages\\.dev$"
|
|
455
|
+
platform: cloudflare/workers
|
|
456
|
+
name: "Cloudflare Workers"
|
|
457
|
+
- pattern: "\\.up\\.railway\\.app$"
|
|
458
|
+
platform: railway
|
|
459
|
+
name: "Railway"
|
|
460
|
+
- pattern: "\\.execute-api\\.[a-z0-9-]+\\.amazonaws\\.com$"
|
|
461
|
+
platform: aws/api_gateway
|
|
462
|
+
name: "API Gateway"
|
|
463
|
+
- pattern: "\\.lambda-url\\.[a-z0-9-]+\\.on\\.aws$"
|
|
464
|
+
platform: aws/lambda_url
|
|
465
|
+
name: "Lambda URL"
|
|
466
|
+
- pattern: "\\.elasticbeanstalk\\.com$"
|
|
467
|
+
platform: aws/elastic_beanstalk
|
|
468
|
+
name: "Elastic Beanstalk"
|
|
469
|
+
- pattern: "\\.awsapprunner\\.com$"
|
|
470
|
+
platform: aws/app_runner
|
|
471
|
+
name: "App Runner"
|
|
472
|
+
- pattern: "\\.ngrok(-free)?\\.(app|io|dev)$"
|
|
473
|
+
platform: ngrok
|
|
474
|
+
name: "ngrok"
|
|
475
|
+
- pattern: "\\.github\\.io$"
|
|
476
|
+
platform: github_pages
|
|
477
|
+
name: "GitHub Pages"
|
|
@@ -257,6 +257,8 @@ serverless:
|
|
|
257
257
|
confidence: 0.9
|
|
258
258
|
|
|
259
259
|
external_apis:
|
|
260
|
+
# rawHttp: libraries whose request URLs the TS/JS AST detector resolves (DATAP-818). The
|
|
261
|
+
# global fetch() is always handled; these libraries are never destinations.
|
|
260
262
|
httpClients:
|
|
261
263
|
- id: grpc_client
|
|
262
264
|
patternId: external_api_call
|
|
@@ -279,6 +281,11 @@ external_apis:
|
|
|
279
281
|
- "\\baxios\\.(get|post|put|delete|patch|request)\\s*\\("
|
|
280
282
|
- "\\baxios\\.create\\s*\\("
|
|
281
283
|
confidence: 0.85
|
|
284
|
+
rawHttp:
|
|
285
|
+
modules: [axios]
|
|
286
|
+
callable: true
|
|
287
|
+
instanceFactories: [create]
|
|
288
|
+
baseUrlKeys: [baseURL]
|
|
282
289
|
|
|
283
290
|
- id: node_fetch
|
|
284
291
|
patternId: external_api_call
|
|
@@ -290,6 +297,10 @@ external_apis:
|
|
|
290
297
|
regexes:
|
|
291
298
|
- "\\bfetch\\s*\\("
|
|
292
299
|
confidence: 0.8
|
|
300
|
+
rawHttp:
|
|
301
|
+
modules: [node-fetch, cross-fetch, undici]
|
|
302
|
+
callable: true
|
|
303
|
+
namedFunctions: [fetch, request]
|
|
293
304
|
|
|
294
305
|
- id: got
|
|
295
306
|
patternId: external_api_call
|
|
@@ -300,6 +311,11 @@ external_apis:
|
|
|
300
311
|
- "\\bgot\\.(get|post|put|delete|patch)\\s*\\("
|
|
301
312
|
- "\\bgot\\.extend\\s*\\("
|
|
302
313
|
confidence: 0.85
|
|
314
|
+
rawHttp:
|
|
315
|
+
modules: [got]
|
|
316
|
+
callable: true
|
|
317
|
+
instanceFactories: [extend]
|
|
318
|
+
baseUrlKeys: [prefixUrl]
|
|
303
319
|
|
|
304
320
|
- id: ky
|
|
305
321
|
patternId: external_api_call
|
|
@@ -310,6 +326,11 @@ external_apis:
|
|
|
310
326
|
- "\\bky\\.(get|post|put|delete|patch)\\s*\\("
|
|
311
327
|
- "\\bky\\.create\\s*\\("
|
|
312
328
|
confidence: 0.8
|
|
329
|
+
rawHttp:
|
|
330
|
+
modules: [ky]
|
|
331
|
+
callable: true
|
|
332
|
+
instanceFactories: [create, extend]
|
|
333
|
+
baseUrlKeys: [prefixUrl]
|
|
313
334
|
|
|
314
335
|
config_loaders:
|
|
315
336
|
- id: dotenv
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dataparade/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"description": "dataPARADE CLI — scan codebases for privacy and security data flows",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -45,11 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"ensure-scanner": "node scripts/ensure-scanner-built.mjs",
|
|
48
|
-
"build": "node scripts/ensure-scanner-built.mjs && pnpm exec tsc -p tsconfig.json && node scripts/vendor-scanner.mjs",
|
|
48
|
+
"build": "node scripts/ensure-scanner-built.mjs && pnpm --dir ../packages/kb-compare build && pnpm exec tsc -p tsconfig.json && node scripts/vendor-scanner.mjs && node scripts/vendor-kb-compare.mjs",
|
|
49
49
|
"prepublishOnly": "pnpm run build && pnpm run test",
|
|
50
50
|
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
51
51
|
"pretest": "pnpm run build",
|
|
52
52
|
"test": "jest",
|
|
53
|
+
"check:determinism": "node scripts/check-determinism.mjs",
|
|
53
54
|
"scan": "node dist/bin/cli.js scan",
|
|
54
55
|
"eval:models": "pnpm exec node dist/src/evals/run-model-matrix.js"
|
|
55
56
|
},
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
"zod": "^4.3.5"
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
|
-
"@dataparade/scanner": "github:DataParade-io/scanner#
|
|
70
|
+
"@dataparade/scanner": "github:DataParade-io/scanner#175f7366ab54b8bf8c56998a21198d9aaa6858e0",
|
|
70
71
|
"@eslint/js": "^9.18.0",
|
|
71
72
|
"@types/jest": "^30.0.0",
|
|
72
73
|
"@types/node": "^22.0.0",
|