@wildo-ai/external-connectors-public 1.1.11 → 1.1.13

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.
Files changed (82) hide show
  1. package/dist/esm/app/compose-frontend-app-providers.d.ts.map +1 -1
  2. package/dist/esm/app/compose-frontend-app-providers.js.map +1 -1
  3. package/dist/esm/app/compose-hydrated-frontend-app-providers.d.ts.map +1 -1
  4. package/dist/esm/app/compose-hydrated-frontend-app-providers.js.map +1 -1
  5. package/dist/esm/app/engine-frontend-app-provider-registry.d.ts.map +1 -1
  6. package/dist/esm/app/engine-frontend-app-provider-registry.js.map +1 -1
  7. package/dist/esm/app/frontend-app-provider-module.types.d.ts.map +1 -1
  8. package/dist/esm/app/frontend-app-provider-module.types.js.map +1 -1
  9. package/dist/esm/app/frontend-app-provider-registry.types.d.ts.map +1 -1
  10. package/dist/esm/app/frontend-app-provider-registry.types.js.map +1 -1
  11. package/dist/esm/app/index.d.ts.map +1 -1
  12. package/dist/esm/app/index.js.map +1 -1
  13. package/dist/esm/companion-exports.d.ts.map +1 -1
  14. package/dist/esm/companion-exports.js +36 -1
  15. package/dist/esm/companion-exports.js.map +1 -1
  16. package/dist/esm/engine-frontend-providers-package.d.ts.map +1 -1
  17. package/dist/esm/engine-frontend-providers-package.js.map +1 -1
  18. package/dist/esm/providers/dropbox/dropbox.frontend-app.module.d.ts.map +1 -1
  19. package/dist/esm/providers/dropbox/dropbox.frontend-app.module.js +19 -2
  20. package/dist/esm/providers/dropbox/dropbox.frontend-app.module.js.map +1 -1
  21. package/dist/esm/providers/dropbox/index.d.ts.map +1 -1
  22. package/dist/esm/providers/dropbox/index.js.map +1 -1
  23. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.d.ts.map +1 -1
  24. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.js +21 -3
  25. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.js.map +1 -1
  26. package/dist/esm/providers/google-drive/index.d.ts.map +1 -1
  27. package/dist/esm/providers/google-drive/index.js.map +1 -1
  28. package/dist/esm/providers/google-places/google-places.frontend-app.module.d.ts.map +1 -1
  29. package/dist/esm/providers/google-places/google-places.frontend-app.module.js +8 -2
  30. package/dist/esm/providers/google-places/google-places.frontend-app.module.js.map +1 -1
  31. package/dist/esm/providers/microsoft-onedrive/index.d.ts.map +1 -1
  32. package/dist/esm/providers/microsoft-onedrive/index.js.map +1 -1
  33. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.d.ts.map +1 -1
  34. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.js +26 -3
  35. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.js.map +1 -1
  36. package/dist/esm/providers/recaptcha/index.d.ts.map +1 -1
  37. package/dist/esm/providers/recaptcha/index.js.map +1 -1
  38. package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.d.ts.map +1 -1
  39. package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.js +11 -3
  40. package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.js.map +1 -1
  41. package/dist/esm/shared/activate-frontend-provider-sdks.d.ts.map +1 -1
  42. package/dist/esm/shared/activate-frontend-provider-sdks.js.map +1 -1
  43. package/dist/esm/shared/frontend-provider-consent.d.ts +7 -0
  44. package/dist/esm/shared/frontend-provider-consent.d.ts.map +1 -1
  45. package/dist/esm/shared/frontend-provider-consent.js +2 -0
  46. package/dist/esm/shared/frontend-provider-consent.js.map +1 -1
  47. package/dist/esm/shared/frontend-provider-on-demand.d.ts.map +1 -1
  48. package/dist/esm/shared/frontend-provider-on-demand.js.map +1 -1
  49. package/dist/esm/shared/frontend-provider-surface.types.d.ts.map +1 -1
  50. package/dist/esm/shared/frontend-provider-surface.types.js.map +1 -1
  51. package/dist/esm/shared/hydrate-frontend-providers.d.ts.map +1 -1
  52. package/dist/esm/shared/hydrate-frontend-providers.js.map +1 -1
  53. package/dist/esm/shared/load-frontend-provider-scripts.d.ts.map +1 -1
  54. package/dist/esm/shared/load-frontend-provider-scripts.js.map +1 -1
  55. package/dist/esm/shared/provider-component-registry.d.ts.map +1 -1
  56. package/dist/esm/shared/provider-component-registry.js.map +1 -1
  57. package/dist/esm/techdoc/compose-frontend-techdoc-providers.d.ts.map +1 -1
  58. package/dist/esm/techdoc/compose-frontend-techdoc-providers.js.map +1 -1
  59. package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.d.ts.map +1 -1
  60. package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.js.map +1 -1
  61. package/dist/esm/techdoc/engine-frontend-techdoc-provider-registry.d.ts.map +1 -1
  62. package/dist/esm/techdoc/engine-frontend-techdoc-provider-registry.js.map +1 -1
  63. package/dist/esm/techdoc/frontend-techdoc-provider-module.types.d.ts.map +1 -1
  64. package/dist/esm/techdoc/frontend-techdoc-provider-module.types.js.map +1 -1
  65. package/dist/esm/techdoc/frontend-techdoc-provider-registry.types.d.ts.map +1 -1
  66. package/dist/esm/techdoc/frontend-techdoc-provider-registry.types.js.map +1 -1
  67. package/dist/esm/techdoc/index.d.ts.map +1 -1
  68. package/dist/esm/techdoc/index.js.map +1 -1
  69. package/dist/esm/website/compose-frontend-website-providers.d.ts.map +1 -1
  70. package/dist/esm/website/compose-frontend-website-providers.js.map +1 -1
  71. package/dist/esm/website/compose-hydrated-frontend-website-providers.d.ts.map +1 -1
  72. package/dist/esm/website/compose-hydrated-frontend-website-providers.js.map +1 -1
  73. package/dist/esm/website/engine-frontend-website-provider-registry.d.ts.map +1 -1
  74. package/dist/esm/website/engine-frontend-website-provider-registry.js.map +1 -1
  75. package/dist/esm/website/frontend-website-provider-module.types.d.ts.map +1 -1
  76. package/dist/esm/website/frontend-website-provider-module.types.js.map +1 -1
  77. package/dist/esm/website/frontend-website-provider-registry.types.d.ts.map +1 -1
  78. package/dist/esm/website/frontend-website-provider-registry.types.js.map +1 -1
  79. package/dist/esm/website/index.d.ts.map +1 -1
  80. package/dist/esm/website/index.js.map +1 -1
  81. package/dist/tsconfig.build.tsbuildinfo +1 -0
  82. package/package.json +7 -6
@@ -1 +1 @@
1
- {"version":3,"file":"google-drive.frontend-app.module.js","sourceRoot":"","sources":["../../../../../src/providers/google-drive/google-drive.frontend-app.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,uBAAuB,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,iCAAiC,EAAE,YAAY,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAGvT;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAA8B;IACvE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,cAAc;QACnB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,oBAAoB,CAAC;IACxE,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE,EAAE;IAChB,kBAAkB,EAAE,gCAAgC,CAAC;QACnD,KAAK,EAAE,EAAE,IAAI,EAAE,6BAA6B,CAAC,MAAM,EAAE,WAAW,EAAE,mEAAmE,EAAE;QACvI,YAAY,EAAE,EAAE,IAAI,EAAE,6BAA6B,CAAC,MAAM,EAAE,WAAW,EAAE,oDAAoD,EAAE;KAChI,CAAC;IACF,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,mCAAmC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACjF;;;;;OAKG;IACH,GAAG,EAAE;QACH,aAAa,EAAE,CAAC,yBAAyB,CAAC;QAC1C,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,cAAc,EAAE,CAAC,gCAAgC,CAAC;KACnD;IACD,UAAU,EAAE;QACV,CAAC,2BAA2B,CAAC,oBAAoB,CAAC,EAAE;YAClD,wEAAwE;YACxE,sEAAsE;YACtE,0EAA0E;YAC1E,sEAAsE;YACtE,wEAAwE;YACxE,+DAA+D;YAC/D,iBAAiB,EAAE,iCAAiC,CAAC,gBAAgB;SACtE;KACF;IACD,2EAA2E;IAC3E,yEAAyE;IACzE,2DAA2D;IAC3D,wEAAwE;IACxE,qBAAqB;IACrB,WAAW,EAAE,mBAAmB,CAAC,YAAY;IAC7C,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;QAC7C,qBAAqB,EAAE,YAAY;KACpC;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ProviderDeploymentModel, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderFrontendSelectionDelivery, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind, FileStorageAccepted } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\n/**\n * Google Drive on the frontend: the Drive Picker, and nothing else.\n *\n * The ref is `google-drive`, the same ref as the engine's backend provider a person connects their\n * Drive through (`@wildo-ai/external-connectors-private`, #2017), because that identity is what every seam joins\n * on: the host asks the access-token door for THIS ref's delegated token, the `GOOGLE_DRIVE` file\n * storage names this ref as its `connectedProviderRef`, and `fileStorage` below is what a file field\n * reads to decide whether to offer the picker. Google's SSO registration is a different account\n * and a different module (`google`).\n *\n * The picker opens with the person's own delegated token, minted under the `drive.file` scope —\n * Google's non-sensitive scope that grants exactly the files a user shares with an app while using\n * the Picker — so the application backend can then read what was picked as that person.\n */\nexport const GoogleDriveFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'google-drive',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {},\n publicConfigSchema: defineFrontendPublicConfigSchema({\n appId: { kind: FrontendPublicConfigValueKind.STRING, description: 'Google Cloud project NUMBER the Drive Picker is registered under.' },\n developerKey: { kind: FrontendPublicConfigValueKind.STRING, description: 'Optional API key for the Picker; public by design.' },\n }),\n scripts: [{ src: 'https://apis.google.com/js/api.js', async: true, defer: true }],\n /**\n * The picker's loader script, the iframe it renders in, and the endpoint it\n * calls — all three named, because a bucket left out is a bucket CSP blocks in\n * production only. The SELECTED bytes never reach the browser, which is why\n * `selectionDelivery` does not gate these.\n */\n csp: {\n scriptOrigins: ['https://apis.google.com'],\n frameOrigins: ['https://docs.google.com'],\n connectOrigins: ['https://content.googleapis.com'],\n },\n components: {\n [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER]: {\n // No `load` — deliberately. This package cannot reach a React component\n // without closing a package cycle, so the facet library registers the\n // loader (`registerProviderComponents` in presets-components). What stays\n // here is what a reviewer needs: that the component exists and what a\n // selection from it contains — an opaque handle the application backend\n // resolves with a credential the browser must not hold (#383).\n selectionDelivery: ProviderFrontendSelectionDelivery.REMOTE_REFERENCE,\n },\n },\n // A REMOTE_REFERENCE leaves the bytes in Drive, so the picker is the front\n // door of the GOOGLE_DRIVE storage: only a field whose `storageAccepted`\n // names it is offered this picker (#394 P5). The backend's\n // `GoogleDriveStorageProvider` serves that storage through the linker's\n // connected account.\n fileStorage: FileStorageAccepted.GOOGLE_DRIVE,\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1', 'eu-west-1'],\n vendorLegalEntityName: 'Google LLC',\n },\n};\n"]}
1
+ {"version":3,"file":"google-drive.frontend-app.module.js","sourceRoot":"","sources":["../../../../src/providers/google-drive/google-drive.frontend-app.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,sBAAsB,EAAE,uBAAuB,EAAE,iCAAiC,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,iCAAiC,EAAE,YAAY,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAGlX;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAA8B;IACvE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,cAAc;QACnB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,oBAAoB,CAAC;IACxE,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE,EAAE;IAChB,kBAAkB,EAAE,gCAAgC,CAAC;QACnD,KAAK,EAAE,EAAE,IAAI,EAAE,6BAA6B,CAAC,MAAM,EAAE,WAAW,EAAE,mEAAmE,EAAE;QACvI,YAAY,EAAE,EAAE,IAAI,EAAE,6BAA6B,CAAC,MAAM,EAAE,WAAW,EAAE,oDAAoD,EAAE;KAChI,CAAC;IACF,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,mCAAmC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACjF;;;;;OAKG;IACH,GAAG,EAAE;QACH,aAAa,EAAE,CAAC,yBAAyB,CAAC;QAC1C,YAAY,EAAE,CA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AE,UAAU,EAAE,YAAY,EAAE;SACpM;KACF;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ProviderComplianceFact, ProviderDeploymentModel, ProviderProcessingRegionReachKind, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderFrontendSelectionDelivery, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind, FileStorageAccepted } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\n/**\n * Google Drive on the frontend: the Drive Picker, and nothing else.\n *\n * The ref is `google-drive`, the same ref as the engine's backend provider a person connects their\n * Drive through (`@wildo-ai/external-connectors-private`, #2017), because that identity is what every seam joins\n * on: the host asks the access-token door for THIS ref's delegated token, the `GOOGLE_DRIVE` file\n * storage names this ref as its `connectedProviderRef`, and `fileStorage` below is what a file field\n * reads to decide whether to offer the picker. Google's SSO registration is a different account\n * and a different module (`google`).\n *\n * The picker opens with the person's own delegated token, minted under the `drive.file` scope —\n * Google's non-sensitive scope that grants exactly the files a user shares with an app while using\n * the Picker — so the application backend can then read what was picked as that person.\n */\nexport const GoogleDriveFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'google-drive',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {},\n publicConfigSchema: defineFrontendPublicConfigSchema({\n appId: { kind: FrontendPublicConfigValueKind.STRING, description: 'Google Cloud project NUMBER the Drive Picker is registered under.' },\n developerKey: { kind: FrontendPublicConfigValueKind.STRING, description: 'Optional API key for the Picker; public by design.' },\n }),\n scripts: [{ src: 'https://apis.google.com/js/api.js', async: true, defer: true }],\n /**\n * The picker's loader script, the iframe it renders in, and the endpoint it\n * calls — all three named, because a bucket left out is a bucket CSP blocks in\n * production only. The SELECTED bytes never reach the browser, which is why\n * `selectionDelivery` does not gate these.\n */\n csp: {\n scriptOrigins: ['https://apis.google.com'],\n frameOrigins: ['https://docs.google.com'],\n connectOrigins: ['https://content.googleapis.com'],\n },\n components: {\n [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER]: {\n // No `load` — deliberately. This package cannot reach a React component\n // without closing a package cycle, so the facet library registers the\n // loader (`registerProviderComponents` in presets-components). What stays\n // here is what a reviewer needs: that the component exists and what a\n // selection from it contains — an opaque handle the application backend\n // resolves with a credential the browser must not hold (#383).\n selectionDelivery: ProviderFrontendSelectionDelivery.REMOTE_REFERENCE,\n },\n },\n // A REMOTE_REFERENCE leaves the bytes in Drive, so the picker is the front\n // door of the GOOGLE_DRIVE storage: only a field whose `storageAccepted`\n // names it is offered this picker (#394 P5). The backend's\n // `GoogleDriveStorageProvider` serves that storage through the linker's\n // connected account.\n fileStorage: FileStorageAccepted.GOOGLE_DRIVE,\n // The SAME facts as the backend module's profile (`external-connectors-private/src/providers/google-drive/`), sourced there\n // 2026-11-06: this facet reaches the same vendor from the visitor's browser. Copy any change across: platform-config-lib's\n // `frontend-backend-compliance-profile-twins.test.ts` fails while the two differ (#3401).\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['United States', 'European Union', 'No preference', 'Servers around the world (personal Google account)'],\n // #3513: the backend module's reach, restated for the browser facet: the region is the Workspace's data region policy\n // (or a personal account's), and no call selects it. Cited there.\n processingRegionReach: Object.fromEntries(['United States', 'European Union', 'No preference', 'Servers around the world (personal Google account)'].map((region) => [region, { kind: ProviderProcessingRegionReachKind.ACCOUNT_RESIDENCY }])),\n /*\n * #2294: no processingRegionTerritories, deliberately. A Workspace data region stores covered data at rest; processing\n * in the region is a separate administrator setting on some editions, which the region label does not record, so no\n * region states where Drive data is processed; a declared data residency refuses it.\n * spec-cite: Google Workspace Admin Help, \"Choose a geographic location for your data\"\n * (https://knowledge.workspace.google.com/admin/compliance/choose-a-geographic-location-for-your-data, fetched\n * 2026-11-10) — \"Process data at your selected data at rest region\".\n */\n evidence: [\n { facts: [ProviderComplianceFact.DEPLOYMENT_MODELS, ProviderComplianceFact.PROCESSING_REGIONS], source: 'https://knowledge.workspace.google.com/admin/compliance/choose-a-geographic-location-for-your-data', verifiedAt: '2026-11-06' },\n { facts: [ProviderComplianceFact.PROCESSING_REGIONS], source: 'https://policies.google.com/privacy', verifiedAt: '2026-11-06' },\n { facts: [ProviderComplianceFact.PROCESSING_REGION_REACH], source: 'https://knowledge.workspace.google.com/admin/compliance/choose-a-geographic-location-for-your-data', verifiedAt: '2026-11-10' },\n ],\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/google-drive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/google-drive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/providers/google-drive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC","sourcesContent":["export { GoogleDriveFrontendAppProvider } from './google-drive.frontend-app.module';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/providers/google-drive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC","sourcesContent":["export { GoogleDriveFrontendAppProvider } from './google-drive.frontend-app.module';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"google-places.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/google-places/google-places.frontend-app.module.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F;;;;GAIG;AACH,oBAAY,kCAAkC;IAC5C,OAAO,oBAAoB;IAC3B,QAAQ,qBAAqB;CAC9B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAE1D;;;;;;;;;GASG;AACH,eAAO,MAAM,8BAA8B,gBAAgB,CAAC;AAE5D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,+BAA+B,EAAE,yBA+B7C,CAAC"}
1
+ {"version":3,"file":"google-places.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/google-places/google-places.frontend-app.module.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F;;;;GAIG;AACH,oBAAY,kCAAkC;IAC5C,OAAO,oBAAoB;IAC3B,QAAQ,qBAAqB;CAC9B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAE1D;;;;;;;;;GASG;AACH,eAAO,MAAM,8BAA8B,gBAAgB,CAAC;AAE5D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,+BAA+B,EAAE,yBAqC7C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package.js';
2
- import { BUILTIN_PROVIDER_CAPABILITY, ENGINE_PROVIDER_ORIGIN, ProviderAddressLookupPlaceIdRetention, ProviderDeploymentModel, ProviderTier, defineFrontendPublicConfigSchema, defineProviderMetadata, } from '@wildo-ai/saas-models/public-runtime';
2
+ import { BUILTIN_PROVIDER_CAPABILITY, ENGINE_PROVIDER_ORIGIN, ProviderAddressLookupPlaceIdRetention, ProviderComplianceFact, ProviderDeploymentModel, ProviderTier, defineFrontendPublicConfigSchema, defineProviderMetadata, } from '@wildo-ai/saas-models/public-runtime';
3
3
  /**
4
4
  * The operation ids of the `google-places` BACKEND module that this lookup runs through the provider-operation
5
5
  * door. Restated here as strings because this browser-bound package may not import the backend package; the
@@ -73,9 +73,15 @@ export const GooglePlacesFrontendAppProvider = {
73
73
  // What the person types reaches Google — through the backend, but it reaches Google. The legal entity is left
74
74
  // to the operator's register: Google Maps Platform is contracted with a different Google entity depending on the
75
75
  // billing account's country.
76
+ // The SAME facts as the backend module's profile (`external-connectors-private/src/providers/google-places/`), sourced there
77
+ // 2026-11-06: this facet reaches the same vendor from the visitor's browser. Copy any change across: platform-config-lib's
78
+ // `frontend-backend-compliance-profile-twins.test.ts` fails while the two differ (#3401).
76
79
  complianceProfile: {
77
80
  deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
78
- processingRegions: ['global'],
81
+ processingRegions: ['Servers around the world'],
82
+ evidence: [
83
+ { facts: [ProviderComplianceFact.DEPLOYMENT_MODELS, ProviderComplianceFact.PROCESSING_REGIONS], source: 'https://policies.google.com/privacy', verifiedAt: '2026-11-06' },
84
+ ],
79
85
  },
80
86
  };
81
87
  //# sourceMappingURL=google-places.frontend-app.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"google-places.frontend-app.module.js","sourceRoot":"","sources":["../../../../../src/providers/google-places/google-places.frontend-app.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,qCAAqC,EACrC,uBAAuB,EACvB,YAAY,EACZ,gCAAgC,EAChC,sBAAsB,GACvB,MAAM,sCAAsC,CAAC;AAG9C;;;;GAIG;AACH,MAAM,CAAN,IAAY,kCAGX;AAHD,WAAY,kCAAkC;IAC5C,iEAA2B,CAAA;IAC3B,mEAA6B,CAAA;AAC/B,CAAC,EAHW,kCAAkC,KAAlC,kCAAkC,QAG7C;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,EAAE,CAAC;AAE1D;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,aAAa,CAAC;AAE5D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAA8B;IACxE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,eAAe;QACpB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,uBAAuB,CAAC;IAC3E,SAAS,EAAE,EAAE;IACb,YAAY,EAAE,EAAE;IAChB,gHAAgH;IAChH,kBAAkB,EAAE,gCAAgC,CAAC,EAAE,CAAC;IACxD,UAAU,EAAE;QACV,CAAC,2BAA2B,CAAC,uBAAuB,CAAC,EAAE;YACrD,kGAAkG;YAClG,gBAAgB,EAAE,qCAAqC,CAAC,IAAI;YAC5D,aAAa,EAAE;gBACb,kBAAkB,EAAE,kCAAkC,CAAC,OAAO;gBAC9D,mBAAmB,EAAE,kCAAkC,CAAC,QAAQ;gBAChE,iBAAiB,EAAE,cAAc;gBACjC,eAAe,EAAE,8BAA8B;aAChD;SACF;KACF;IACD,8GAA8G;IAC9G,iHAAiH;IACjH,6BAA6B;IAC7B,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,QAAQ,CAAC;KAC9B;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n BUILTIN_PROVIDER_CAPABILITY,\n ENGINE_PROVIDER_ORIGIN,\n ProviderAddressLookupPlaceIdRetention,\n ProviderDeploymentModel,\n ProviderTier,\n defineFrontendPublicConfigSchema,\n defineProviderMetadata,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\n/**\n * The operation ids of the `google-places` BACKEND module that this lookup runs through the provider-operation\n * door. Restated here as strings because this browser-bound package may not import the backend package; the\n * two are held equal by a join test in `@wildo-ai/saas-backend-lib`, the one package that sees both.\n */\nexport enum GooglePlacesAddressLookupOperation {\n SUGGEST = 'address_suggest',\n RETRIEVE = 'address_retrieve',\n}\n\n/**\n * The most country codes Autocomplete (New) takes in `includedRegionCodes`. The lookup restricts its search to the\n * field's countries only when there are at most this many; the backend operation refuses more, and a join test in\n * `@wildo-ai/saas-backend-lib` holds the two equal.\n * spec-cite: https://developers.google.com/maps/documentation/places/web-service/place-autocomplete —\n * `includedRegionCodes`: \"Array of up to 15 two-character country codes\". Fetched 2026-09-29.\n */\nexport const GOOGLE_PLACES_MAX_INCLUDED_REGION_CODES = 15;\n\n/**\n * The attribution Google requires beside Places results shown without a Google map, in its text form.\n * spec-cite: https://developers.google.com/maps/documentation/places/web-service/policies — \"Attribution should take\n * the form of the Google Maps logo whenever possible. In cases where space is limited, the text Google Maps is\n * acceptable.\" Fetched 2026-09-29.\n *\n * The text, not the logo: a lookup's suggestion list is exactly the limited space the policy names, and the\n * logo would be an image fetched from Google (a CSP origin and a request per page) or a copy of Google's\n * artwork shipped in the engine.\n */\nexport const GOOGLE_PLACES_ATTRIBUTION_MARK = 'Google Maps';\n\n/**\n * Google Places address lookup on the application's frontend (#561): the address field offers it, and it holds\n * NOTHING of Google's.\n *\n * - **No key.** Every suggestion and the retrieval run on the application backend through the provider-operation\n * door, which holds the server key (`google-places` in `@wildo-ai/external-connectors-private`). So the public\n * configuration schema declares no key at all, and an application that tried to serve one here would be refused\n * (\"unknown key\") rather than publishing it. A referrer-restricted browser key was the rejected alternative: it is\n * still a published credential, and Google itself advises a proxy for its web services (#561 D2).\n * - **No CSP origin.** The page talks only to its own backend, and the attribution is text. No vendor script,\n * frame, image or connection is loaded, which is also why the lookup needs no consent: no vendor code runs on\n * the page, and the capability's floor (`FRONTEND_ADDRESS_LOOKUP` — the person asked for the lookup) holds.\n * - **No component code here.** This package is renderer-free; the component is registered by the application's\n * facet library (`presets-components`), which pairs the framework's lookup combobox with Google's adapter.\n * - **Terms, declared.** The retrieval ends Google's billing session; `sessionToken` is the input the host fills\n * with a fresh UUIDv4 per lookup session. The place id never leaves the component (`placeIdRetention: NONE`).\n */\nexport const GooglePlacesFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'google-places',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_ADDRESS_LOOKUP],\n protocols: [],\n publicConfig: {},\n // Declares no key, on purpose: see the module JSDoc. An empty schema refuses every key an application supplies.\n publicConfigSchema: defineFrontendPublicConfigSchema({}),\n components: {\n [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_ADDRESS_LOOKUP]: {\n // No `load`: the facet library registers it (`registerProviderComponents` in presets-components).\n placeIdRetention: ProviderAddressLookupPlaceIdRetention.NONE,\n addressLookup: {\n suggestOperationId: GooglePlacesAddressLookupOperation.SUGGEST,\n retrieveOperationId: GooglePlacesAddressLookupOperation.RETRIEVE,\n sessionTokenInput: 'sessionToken',\n attributionMark: GOOGLE_PLACES_ATTRIBUTION_MARK,\n },\n },\n },\n // What the person types reaches Google — through the backend, but it reaches Google. The legal entity is left\n // to the operator's register: Google Maps Platform is contracted with a different Google entity depending on the\n // billing account's country.\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['global'],\n },\n};\n"]}
1
+ {"version":3,"file":"google-places.frontend-app.module.js","sourceRoot":"","sources":["../../../../src/providers/google-places/google-places.frontend-app.module.ts"],"names":[],"mapp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,6BAA6B;IAC7B,6HAA6H;IAC7H,2HAA2H;IAC3H,0FAA0F;IAC1F,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,0BAA0B,CAAC;QAC/C,QAAQ,EAAE;YACR,EAAE,KAAK,EAAE,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,qCAAqC,EAAE,UAAU,EAAE,YAAY,EAAE;SAC1K;KACF;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n BUILTIN_PROVIDER_CAPABILITY,\n ENGINE_PROVIDER_ORIGIN,\n ProviderAddressLookupPlaceIdRetention,\n ProviderComplianceFact, ProviderDeploymentModel,\n ProviderTier,\n defineFrontendPublicConfigSchema,\n defineProviderMetadata,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\n/**\n * The operation ids of the `google-places` BACKEND module that this lookup runs through the provider-operation\n * door. Restated here as strings because this browser-bound package may not import the backend package; the\n * two are held equal by a join test in `@wildo-ai/saas-backend-lib`, the one package that sees both.\n */\nexport enum GooglePlacesAddressLookupOperation {\n SUGGEST = 'address_suggest',\n RETRIEVE = 'address_retrieve',\n}\n\n/**\n * The most country codes Autocomplete (New) takes in `includedRegionCodes`. The lookup restricts its search to the\n * field's countries only when there are at most this many; the backend operation refuses more, and a join test in\n * `@wildo-ai/saas-backend-lib` holds the two equal.\n * spec-cite: https://developers.google.com/maps/documentation/places/web-service/place-autocomplete —\n * `includedRegionCodes`: \"Array of up to 15 two-character country codes\". Fetched 2026-09-29.\n */\nexport const GOOGLE_PLACES_MAX_INCLUDED_REGION_CODES = 15;\n\n/**\n * The attribution Google requires beside Places results shown without a Google map, in its text form.\n * spec-cite: https://developers.google.com/maps/documentation/places/web-service/policies — \"Attribution should take\n * the form of the Google Maps logo whenever possible. In cases where space is limited, the text Google Maps is\n * acceptable.\" Fetched 2026-09-29.\n *\n * The text, not the logo: a lookup's suggestion list is exactly the limited space the policy names, and the\n * logo would be an image fetched from Google (a CSP origin and a request per page) or a copy of Google's\n * artwork shipped in the engine.\n */\nexport const GOOGLE_PLACES_ATTRIBUTION_MARK = 'Google Maps';\n\n/**\n * Google Places address lookup on the application's frontend (#561): the address field offers it, and it holds\n * NOTHING of Google's.\n *\n * - **No key.** Every suggestion and the retrieval run on the application backend through the provider-operation\n * door, which holds the server key (`google-places` in `@wildo-ai/external-connectors-private`). So the public\n * configuration schema declares no key at all, and an application that tried to serve one here would be refused\n * (\"unknown key\") rather than publishing it. A referrer-restricted browser key was the rejected alternative: it is\n * still a published credential, and Google itself advises a proxy for its web services (#561 D2).\n * - **No CSP origin.** The page talks only to its own backend, and the attribution is text. No vendor script,\n * frame, image or connection is loaded, which is also why the lookup needs no consent: no vendor code runs on\n * the page, and the capability's floor (`FRONTEND_ADDRESS_LOOKUP` — the person asked for the lookup) holds.\n * - **No component code here.** This package is renderer-free; the component is registered by the application's\n * facet library (`presets-components`), which pairs the framework's lookup combobox with Google's adapter.\n * - **Terms, declared.** The retrieval ends Google's billing session; `sessionToken` is the input the host fills\n * with a fresh UUIDv4 per lookup session. The place id never leaves the component (`placeIdRetention: NONE`).\n */\nexport const GooglePlacesFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'google-places',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_ADDRESS_LOOKUP],\n protocols: [],\n publicConfig: {},\n // Declares no key, on purpose: see the module JSDoc. An empty schema refuses every key an application supplies.\n publicConfigSchema: defineFrontendPublicConfigSchema({}),\n components: {\n [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_ADDRESS_LOOKUP]: {\n // No `load`: the facet library registers it (`registerProviderComponents` in presets-components).\n placeIdRetention: ProviderAddressLookupPlaceIdRetention.NONE,\n addressLookup: {\n suggestOperationId: GooglePlacesAddressLookupOperation.SUGGEST,\n retrieveOperationId: GooglePlacesAddressLookupOperation.RETRIEVE,\n sessionTokenInput: 'sessionToken',\n attributionMark: GOOGLE_PLACES_ATTRIBUTION_MARK,\n },\n },\n },\n // What the person types reaches Google — through the backend, but it reaches Google. The legal entity is left\n // to the operator's register: Google Maps Platform is contracted with a different Google entity depending on the\n // billing account's country.\n // The SAME facts as the backend module's profile (`external-connectors-private/src/providers/google-places/`), sourced there\n // 2026-11-06: this facet reaches the same vendor from the visitor's browser. Copy any change across: platform-config-lib's\n // `frontend-backend-compliance-profile-twins.test.ts` fails while the two differ (#3401).\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['Servers around the world'],\n evidence: [\n { facts: [ProviderComplianceFact.DEPLOYMENT_MODELS, ProviderComplianceFact.PROCESSING_REGIONS], source: 'https://policies.google.com/privacy', verifiedAt: '2026-11-06' },\n ],\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/microsoft-onedrive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,0CAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft-onedrive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,0CAA0C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/providers/microsoft-onedrive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,0CAA0C,CAAC","sourcesContent":["export { MicrosoftOneDriveFrontendAppProvider } from './microsoft-onedrive.frontend-app.module';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/providers/microsoft-onedrive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,0CAA0C,CAAC","sourcesContent":["export { MicrosoftOneDriveFrontendAppProvider } from './microsoft-onedrive.frontend-app.module';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"microsoft-onedrive.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,oCAAoC,EAAE,yBA8BlD,CAAC"}
1
+ {"version":3,"file":"microsoft-onedrive.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,oCAAoC,EAAE,yBAqDlD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package.js';
2
- import { ProviderDeploymentModel, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderFrontendSelectionDelivery, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind } from '@wildo-ai/saas-models/public-runtime';
2
+ import { ProviderComplianceFact, ProviderProcessingRegionReachKind, ProviderDeploymentModel, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderFrontendSelectionDelivery, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind } from '@wildo-ai/saas-models/public-runtime';
3
3
  /**
4
4
  * OneDrive on the frontend: the v7.2 OneDrive picker.
5
5
  *
@@ -49,10 +49,33 @@ export const MicrosoftOneDriveFrontendAppProvider = {
49
49
  selectionDelivery: ProviderFrontendSelectionDelivery.BROWSER_READABLE_URL,
50
50
  },
51
51
  },
52
+ // The SAME facts as the backend module's profile (`external-connectors-private/src/providers/microsoft-onedrive/`), sourced there
53
+ // 2026-11-06: this facet reaches the same vendor from the visitor's browser. Copy any change across: platform-config-lib's
54
+ // `frontend-backend-compliance-profile-twins.test.ts` fails while the two differ (#3401).
52
55
  complianceProfile: {
53
56
  deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
54
- processingRegions: ['us-east-1', 'eu-west-1'],
55
- vendorLegalEntityName: 'Microsoft Corporation',
57
+ processingRegions: [
58
+ 'European Union', 'United States', 'Australia', 'Austria', 'Brazil', 'Canada', 'Chile', 'Denmark', 'France', 'Germany', 'India', 'Indonesia', 'Israel', 'Italy', 'Japan', 'Malaysia', 'Mexico', 'New Zealand', 'Norway', 'Poland', 'Qatar', 'South Africa', 'South Korea', 'Spain', 'Sweden', 'Switzerland', 'Taiwan', 'United Arab Emirates', 'United Kingdom',
59
+ 'Your region or the United States (personal Microsoft account)',
60
+ ],
61
+ // #3513: the backend module's reach, restated for the browser facet: the region is the tenant's (or a personal
62
+ // account's), and no call selects it. Cited there.
63
+ processingRegionReach: Object.fromEntries([
64
+ 'European Union', 'United States', 'Australia', 'Austria', 'Brazil', 'Canada', 'Chile', 'Denmark', 'France', 'Germany', 'India', 'Indonesia', 'Israel', 'Italy', 'Japan', 'Malaysia', 'Mexico', 'New Zealand', 'Norway', 'Poland', 'Qatar', 'South Africa', 'South Korea', 'Spain', 'Sweden', 'Switzerland', 'Taiwan', 'United Arab Emirates', 'United Kingdom',
65
+ 'Your region or the United States (personal Microsoft account)',
66
+ ].map((region) => [region, { kind: ProviderProcessingRegionReachKind.ACCOUNT_RESIDENCY }])),
67
+ /*
68
+ * #2294: no processingRegionTerritories, deliberately. Each geography is a "Location of Customer Data at Rest"
69
+ * commitment; nothing states where OneDrive data is processed, so a declared data residency refuses it.
70
+ * spec-cite: Microsoft Learn, "Data residency for SharePoint and OneDrive"
71
+ * (https://learn.microsoft.com/en-us/microsoft-365/enterprise/m365-dr-service-spo, fetched 2026-11-10).
72
+ */
73
+ evidence: [
74
+ { facts: [ProviderComplianceFact.DEPLOYMENT_MODELS, ProviderComplianceFact.PROCESSING_REGIONS], source: 'https://learn.microsoft.com/en-us/microsoft-365/enterprise/m365-dr-service-spo', verifiedAt: '2026-11-06' },
75
+ { facts: [ProviderComplianceFact.PROCESSING_REGIONS], source: 'https://learn.microsoft.com/en-us/microsoft-365/enterprise/o365-data-locations', verifiedAt: '2026-11-06' },
76
+ { facts: [ProviderComplianceFact.PROCESSING_REGIONS], source: 'https://www.microsoft.com/en-us/privacy/privacystatement', verifiedAt: '2026-11-06' },
77
+ { facts: [ProviderComplianceFact.PROCESSING_REGION_REACH], source: 'https://learn.microsoft.com/en-us/microsoft-365/enterprise/m365-dr-service-spo', verifiedAt: '2026-11-10' },
78
+ ],
56
79
  },
57
80
  };
58
81
  //# sourceMappingURL=microsoft-onedrive.frontend-app.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"microsoft-onedrive.frontend-app.module.js","sourceRoot":"","sources":["../../../../../src/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,uBAAuB,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,iCAAiC,EAAE,YAAY,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAGlS;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAA8B;IAC7E,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,oBAAoB;QACzB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,oBAAoB,CAAC;IACxE,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE,EAAE;IAChB,kBAAkB,EAAE,gCAAgC,CAAC;QACnD,QAAQ,EAAE,EAAE,IAAI,EAAE,6BAA6B,CAAC,MAAM,EAAE,WAAW,EAAE,wEAAwE,EAAE;QAC/I,iBAAiB,EAAE,EAAE,IAAI,EAAE,6BAA6B,CAAC,MAAM,EAAE,WAAW,EAAE,6CAA6C,EAAE;KAC9H,CAAC;IACF,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,sCAAsC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACpF,GAAG,EAAE;QACH,aAAa,EAAE,CAAC,qBAAqB,CAAC;QACtC,YAAY,EAAE,CAAC,2BAA2B,CAAC;KAC5C;IACD,UAAU,EAAE;QACV,CAAC,2BAA2B,CAAC,oBAAoB,CAAC,EAAE;YAClD,2EAA2E;YAC3E,iBAAiB,EAAE,iCAAiC,CAAC,oBAAoB;SAC1E;KACF;IACD,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;QAC7C,qBAAqB,EAAE,uBAAuB;KAC/C;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ProviderDeploymentModel, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderFrontendSelectionDelivery, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\n/**\n * OneDrive on the frontend: the v7.2 OneDrive picker.\n *\n * Same ref as the engine's backend provider (`@wildo-ai/external-connectors-private`, #2017), for the\n * reason recorded on `google-drive`. This picker is NOT yet on the governed path: v7.2 authenticates\n * in its own popup against `clientId` and hands back a pre-authenticated download URL\n * (`BROWSER_READABLE_URL`), so it declares no `fileStorage` — the bytes are ingested into the\n * field's own storage. Microsoft's token-accepting picker (v8) needs SharePoint-resource tokens\n * per request, which the access-token door does not mint yet.\n *\n * ## The picker attaches; the ONEDRIVE storage is a separate facet (#570, #1674)\n *\n * This picker declares no `fileStorage`: v7.2 hands back a pre-authenticated URL (`BROWSER_READABLE_URL`) and the\n * bytes are ingested into the field's own storage, so what it offers is \"OneDrive files can be ATTACHED\".\n *\n * STORING in OneDrive is served since #1674 by the `microsoft-onedrive` backend provider, the engine's own since #2017,\n * which contributes an `ONEDRIVE` `ProviderFileStorageAdapter` over Microsoft Graph: uploads into the application's\n * folder of the person's own drive, through their delegated grant. It does not accept remote references, because this\n * picker produces none. The governed PICK path — the v8 picker (a form POST to `{baseUrl}/_layouts/15/FilePicker.aspx`,\n * answering `authenticate` over `postMessage`) with a resource-scoped re-mint on the access-token door\n * (`{baseUrl}/.default`) — is still not built; a picked file would then be linked by reference instead of ingested.\n *\n * It is left UNPROVEN deliberately: no part of this has been driven against a real OneDrive account.\n */\nexport const MicrosoftOneDriveFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'microsoft-onedrive',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {},\n publicConfigSchema: defineFrontendPublicConfigSchema({\n clientId: { kind: FrontendPublicConfigValueKind.STRING, description: 'Azure application (client) id the OneDrive picker is registered under.' },\n pickerRedirectUri: { kind: FrontendPublicConfigValueKind.STRING, description: 'Optional redirect URI for the picker popup.' },\n }),\n scripts: [{ src: 'https://js.live.net/v7.2/OneDrive.js', async: true, defer: true }],\n csp: {\n scriptOrigins: ['https://js.live.net'],\n frameOrigins: ['https://onedrive.live.com'],\n },\n components: {\n [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER]: {\n // No `load` — the facet library registers the loader (see `google-drive`).\n selectionDelivery: ProviderFrontendSelectionDelivery.BROWSER_READABLE_URL,\n },\n },\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1', 'eu-west-1'],\n vendorLegalEntityName: 'Microsoft Corporation',\n },\n};\n"]}
1
+ {"version":3,"file":"microsoft-onedrive.frontend-app.module.js","sourceRoot":"","sources":["../../../../src/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,sBAAsB,EAAE,iCAAiC,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,iCAAiC,EAAE,YAAY,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAG7V;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAA8B;IAC7E,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,oBAAoB;QACzB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAA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ingRegionReachKind, ProviderDeploymentModel, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderFrontendSelectionDelivery, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\n/**\n * OneDrive on the frontend: the v7.2 OneDrive picker.\n *\n * Same ref as the engine's backend provider (`@wildo-ai/external-connectors-private`, #2017), for the\n * reason recorded on `google-drive`. This picker is NOT yet on the governed path: v7.2 authenticates\n * in its own popup against `clientId` and hands back a pre-authenticated download URL\n * (`BROWSER_READABLE_URL`), so it declares no `fileStorage` — the bytes are ingested into the\n * field's own storage. Microsoft's token-accepting picker (v8) needs SharePoint-resource tokens\n * per request, which the access-token door does not mint yet.\n *\n * ## The picker attaches; the ONEDRIVE storage is a separate facet (#570, #1674)\n *\n * This picker declares no `fileStorage`: v7.2 hands back a pre-authenticated URL (`BROWSER_READABLE_URL`) and the\n * bytes are ingested into the field's own storage, so what it offers is \"OneDrive files can be ATTACHED\".\n *\n * STORING in OneDrive is served since #1674 by the `microsoft-onedrive` backend provider, the engine's own since #2017,\n * which contributes an `ONEDRIVE` `ProviderFileStorageAdapter` over Microsoft Graph: uploads into the application's\n * folder of the person's own drive, through their delegated grant. It does not accept remote references, because this\n * picker produces none. The governed PICK path — the v8 picker (a form POST to `{baseUrl}/_layouts/15/FilePicker.aspx`,\n * answering `authenticate` over `postMessage`) with a resource-scoped re-mint on the access-token door\n * (`{baseUrl}/.default`) — is still not built; a picked file would then be linked by reference instead of ingested.\n *\n * It is left UNPROVEN deliberately: no part of this has been driven against a real OneDrive account.\n */\nexport const MicrosoftOneDriveFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'microsoft-onedrive',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {},\n publicConfigSchema: defineFrontendPublicConfigSchema({\n clientId: { kind: FrontendPublicConfigValueKind.STRING, description: 'Azure application (client) id the OneDrive picker is registered under.' },\n pickerRedirectUri: { kind: FrontendPublicConfigValueKind.STRING, description: 'Optional redirect URI for the picker popup.' },\n }),\n scripts: [{ src: 'https://js.live.net/v7.2/OneDrive.js', async: true, defer: true }],\n csp: {\n scriptOrigins: ['https://js.live.net'],\n frameOrigins: ['https://onedrive.live.com'],\n },\n components: {\n [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER]: {\n // No `load` — the facet library registers the loader (see `google-drive`).\n selectionDelivery: ProviderFrontendSelectionDelivery.BROWSER_READABLE_URL,\n },\n },\n // The SAME facts as the backend module's profile (`external-connectors-private/src/providers/microsoft-onedrive/`), sourced there\n // 2026-11-06: this facet reaches the same vendor from the visitor's browser. Copy any change across: platform-config-lib's\n // `frontend-backend-compliance-profile-twins.test.ts` fails while the two differ (#3401).\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: [\n 'European Union', 'United States', 'Australia', 'Austria', 'Brazil', 'Canada', 'Chile', 'Denmark', 'France', 'Germany', 'India', 'Indonesia', 'Israel', 'Italy', 'Japan', 'Malaysia', 'Mexico', 'New Zealand', 'Norway', 'Poland', 'Qatar', 'South Africa', 'South Korea', 'Spain', 'Sweden', 'Switzerland', 'Taiwan', 'United Arab Emirates', 'United Kingdom',\n 'Your region or the United States (personal Microsoft account)',\n ],\n // #3513: the backend module's reach, restated for the browser facet: the region is the tenant's (or a personal\n // account's), and no call selects it. Cited there.\n processingRegionReach: Object.fromEntries([\n 'European Union', 'United States', 'Australia', 'Austria', 'Brazil', 'Canada', 'Chile', 'Denmark', 'France', 'Germany', 'India', 'Indonesia', 'Israel', 'Italy', 'Japan', 'Malaysia', 'Mexico', 'New Zealand', 'Norway', 'Poland', 'Qatar', 'South Africa', 'South Korea', 'Spain', 'Sweden', 'Switzerland', 'Taiwan', 'United Arab Emirates', 'United Kingdom',\n 'Your region or the United States (personal Microsoft account)',\n ].map((region) => [region, { kind: ProviderProcessingRegionReachKind.ACCOUNT_RESIDENCY }])),\n /*\n * #2294: no processingRegionTerritories, deliberately. Each geography is a \"Location of Customer Data at Rest\"\n * commitment; nothing states where OneDrive data is processed, so a declared data residency refuses it.\n * spec-cite: Microsoft Learn, \"Data residency for SharePoint and OneDrive\"\n * (https://learn.microsoft.com/en-us/microsoft-365/enterprise/m365-dr-service-spo, fetched 2026-11-10).\n */\n evidence: [\n { facts: [ProviderComplianceFact.DEPLOYMENT_MODELS, ProviderComplianceFact.PROCESSING_REGIONS], source: 'https://learn.microsoft.com/en-us/microsoft-365/enterprise/m365-dr-service-spo', verifiedAt: '2026-11-06' },\n { facts: [ProviderComplianceFact.PROCESSING_REGIONS], source: 'https://learn.microsoft.com/en-us/microsoft-365/enterprise/o365-data-locations', verifiedAt: '2026-11-06' },\n { facts: [ProviderComplianceFact.PROCESSING_REGIONS], source: 'https://www.microsoft.com/en-us/privacy/privacystatement', verifiedAt: '2026-11-06' },\n { facts: [ProviderComplianceFact.PROCESSING_REGION_REACH], source: 'https://learn.microsoft.com/en-us/microsoft-365/enterprise/m365-dr-service-spo', verifiedAt: '2026-11-10' },\n ],\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/recaptcha/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/recaptcha/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/providers/recaptcha/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { RecaptchaFrontendWebsiteProvider } from './recaptcha.frontend-website.module';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/providers/recaptcha/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["export { RecaptchaFrontendWebsiteProvider } from './recaptcha.frontend-website.module';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"recaptcha.frontend-website.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/recaptcha/recaptcha.frontend-website.module.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAQ1G;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,4CAA4C,CAAC;AAKjF,mGAAmG;AACnG,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAyDlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,gCAAgC,EAAE,6BA2D9C,CAAC"}
1
+ {"version":3,"file":"recaptcha.frontend-website.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/recaptcha/recaptcha.frontend-website.module.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAQ1G;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,4CAA4C,CAAC;AAKjF,mGAAmG;AACnG,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAyDlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,gCAAgC,EAAE,6BAmE9C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package.js';
2
- import { ConsentPurpose, ProviderDeploymentModel, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind, } from '@wildo-ai/saas-models/public-runtime';
2
+ import { ConsentPurpose, ProviderComplianceFact, ProviderDeploymentModel, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind, } from '@wildo-ai/saas-models/public-runtime';
3
3
  /**
4
4
  * Google's loader for reCAPTCHA v3, rendered for one site key.
5
5
  * spec-cite: https://developers.google.com/recaptcha/docs/v3 — "Load the JavaScript API with your sitekey",
@@ -149,10 +149,18 @@ export const RecaptchaFrontendWebsiteProvider = {
149
149
  return { handle: sink, deactivate: stopRecaptcha };
150
150
  },
151
151
  },
152
+ // The SAME facts as the backend module's profile (`external-connectors-private/src/providers/recaptcha/`), sourced there
153
+ // 2026-11-06: this facet reaches the same vendor from the visitor's browser. Copy any change across: platform-config-lib's
154
+ // `frontend-backend-compliance-profile-twins.test.ts` fails while the two differ (#3401).
152
155
  complianceProfile: {
153
156
  deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
154
- processingRegions: ['global'],
155
- vendorLegalEntityName: 'Google Ireland Limited',
157
+ processingRegions: ['Any country where Google or its subprocessors maintain facilities'],
158
+ subprocessorListUrl: 'https://cloud.google.com/terms/subprocessors',
159
+ dataProcessingAgreementUrl: 'https://cloud.google.com/terms/data-processing-addendum',
160
+ evidence: [
161
+ { facts: [ProviderComplianceFact.DEPLOYMENT_MODELS, ProviderComplianceFact.DATA_PROCESSING_AGREEMENT], source: 'https://docs.cloud.google.com/recaptcha/docs/faq', verifiedAt: '2026-11-06' },
162
+ { facts: [ProviderComplianceFact.PROCESSING_REGIONS, ProviderComplianceFact.SUBPROCESSOR_LIST], source: 'https://cloud.google.com/terms/data-processing-addendum', verifiedAt: '2026-11-06' },
163
+ ],
156
164
  },
157
165
  };
158
166
  //# sourceMappingURL=recaptcha.frontend-website.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"recaptcha.frontend-website.module.js","sourceRoot":"","sources":["../../../../../src/providers/recaptcha/recaptcha.frontend-website.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,YAAY,EACZ,gCAAgC,EAChC,6BAA6B,GAE9B,MAAM,sCAAsC,CAAC;AAS9C;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,yCAAyC,CAAC;AAEjF,wGAAwG;AACxG,MAAM,aAAa,GAAG,6BAA6B,CAAC;AAEpD,mGAAmG;AACnG,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAElD,SAAS,YAAY;IACnB,OAAO,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAe,CAAC;AACrE,CAAC;AAED;;;;GAIG;AACH,SAAS,aAAa,CAAC,OAAe;IACpC,MAAM,GAAG,GAAG,YAAY,EAAE,CAAC;IAC3B,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC,CAAC;IACjG,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC,EAAE,2BAA2B,CAAC,CAAC;QAClH,MAAM,MAAM,GAAG,GAAG,E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AM,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC;QACrD,CAAC;KACF;IACD,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,QAAQ,CAAC;QAC7B,qBAAqB,EAAE,wBAAwB;KAChD;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ConsentPurpose,\n ProviderDeploymentModel,\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n defineProviderMetadata,\n ENGINE_PROVIDER_ORIGIN,\n ProviderTier,\n defineFrontendPublicConfigSchema,\n FrontendPublicConfigValueKind,\n type FrontendCaptchaSink,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendWebsiteProviderModule } from '../../website/frontend-website-provider-module.types';\n\n/** The reCAPTCHA v3 client, as far as this module drives it. */\ninterface GrecaptchaClient {\n ready(callback: () => void): void;\n execute(siteKey: string, options: { action: string }): Promise<string>;\n}\n\n/**\n * Google's loader for reCAPTCHA v3, rendered for one site key.\n * spec-cite: https://developers.google.com/recaptcha/docs/v3 — \"Load the JavaScript API with your sitekey\",\n * `https://www.google.com/recaptcha/api.js?render=reCAPTCHA_site_key`. Fetched 2026-09-28.\n */\nexport const RECAPTCHA_V3_LOADER_URL = 'https://www.google.com/recaptcha/api.js';\n\n/** The attribute that marks the loader tag this module injected, so `deactivate` removes exactly it. */\nconst LOADER_MARKER = 'data-wildo-recaptcha-loader';\n\n/** How long the page waits for Google's loader before the form falls back to the proof of work. */\nexport const RECAPTCHA_LOADER_TIMEOUT_MS = 10_000;\n\nfunction globalWindow(): (Window & { grecaptcha?: GrecaptchaClient; ___grecaptcha_cfg?: unknown }) | undefined {\n return typeof window === 'undefined' ? undefined : window as never;\n}\n\n/**\n * Inject Google's loader and resolve once `grecaptcha.ready` fires. Loaded HERE, inside `activate`, and never as a\n * declared `scripts` entry: this provider rests on consent, and only an SDK can be stopped when consent is\n * withdrawn (#1704).\n */\nfunction loadRecaptcha(siteKey: string): Promise<GrecaptchaClient> {\n const win = globalWindow();\n if (win === undefined) return Promise.reject(new Error('reCAPTCHA can only load in a browser.'));\n return new Promise((resolve, reject) => {\n const timer = setTimeout(() => reject(new Error('reCAPTCHA did not load in time.')), RECAPTCHA_LOADER_TIMEOUT_MS);\n const settle = () => {\n const client = win.grecaptcha;\n if (client === undefined) {\n clearTimeout(timer);\n reject(new Error('reCAPTCHA loaded without its client.'));\n return;\n }\n client.ready(() => { clearTimeout(timer); resolve(client); });\n };\n const script = win.document.createElement('script');\n script.src = `${RECAPTCHA_V3_LOADER_URL}?render=${encodeURIComponent(siteKey)}`;\n script.async = true;\n script.setAttribute(LOADER_MARKER, '');\n script.addEventListener('load', settle, { once: true });\n script.addEventListener('error', () => { clearTimeout(timer); reject(new Error('reCAPTCHA failed to load.')); }, { once: true });\n win.document.head.appendChild(script);\n });\n}\n\n/**\n * Stop reCAPTCHA in this page (#1704): remove the loader tag, every script and frame Google added under its\n * `recaptcha` paths, the badge, and the globals it installed, so no code of it keeps running and nothing more\n * reaches Google from this page. What Google already stored in ITS OWN cookies cannot be cleared by the page\n * (they belong to Google's domain); that is why this provider starts only on consent in the first place.\n */\nfunction stopRecaptcha(): void {\n const win = globalWindow();\n if (win === undefined) return;\n const doc = win.document;\n const added = doc.querySelectorAll(\n `script[${LOADER_MARKER}], script[src*=\"/recaptcha/\"], iframe[src*=\"/recaptcha/\"], .grecaptcha-badge`,\n );\n added.forEach((element) => {\n const badgeHost = element.classList.contains('grecaptcha-badge') ? element.parentElement : null;\n element.remove();\n if (badgeHost !== null && badgeHost !== doc.body && badgeHost.childElementCount === 0) badgeHost.remove();\n });\n delete win.grecaptcha;\n delete win.___grecaptcha_cfg;\n}\n\n/**\n * Google reCAPTCHA v3 for the marketing website's public forms (#1735) — the browser half; the backend half\n * (`recaptcha` in `@wildo-ai/external-connectors-private`) verifies the tokens it mints.\n *\n * ## Consent\n *\n * The capability floor for a captcha is \"no consent\" — a pure security measure is exempt — but Google reCAPTCHA is\n * not one: the CNIL held that it \"also serves Google's own analysis\" (Délibération SAN-2023-003), so this module\n * adds `ConsentPurpose.ANALYTICS` to its floor (#1702). It therefore loads only once the visitor grants analytics,\n * and is stopped when they withdraw it. A visitor who declines still submits: the form then answers the engine's\n * own proof of work, which the backend accepts in place of a token.\n * spec-cite: https://www.legifrance.gouv.fr/cnil/id/CNILTEXT000047346903 — summarised from #1735's research, not quoted.\n *\n * ## Entity\n *\n * Deliberately NOT `Google LLC`. Google's role for reCAPTCHA changed from data CONTROLLER to data PROCESSOR on\n * 2 April 2026: the website operator is the controller and `Google Ireland Limited` the processor for the EEA,\n * with processing still reaching US servers under standard contractual clauses. `global` is the honest region:\n * reCAPTCHA offers no data-residency choice.\n *\n * ## CSP\n *\n * Google's own guidance: script-src `www.google.com/recaptcha/` and `www.gstatic.com/recaptcha/`, frame-src\n * `www.google.com/recaptcha/` and `recaptcha.google.com/recaptcha/`, connect-src `www.google.com/recaptcha/`.\n * The footprint names origins, so those paths widen to their origins.\n * spec-cite: https://developers.google.com/recaptcha/docs/faq — \"I'm using Content Security Policy (CSP) on my\n * website. How can I configure it to work with reCAPTCHA?\", fetched 2026-09-28.\n *\n * ## The badge\n *\n * Left visible: Google permits hiding it only when the page shows its reCAPTCHA branding text instead, which would\n * be a second place for the vendor's words to live. The badge is Google's own disclosure.\n */\nexport const RecaptchaFrontendWebsiteProvider: FrontendWebsiteProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'recaptcha',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n // MAIN, like its backend half: the engine's own public contact form consumes it.\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_CAPTCHA],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n consentPurposes: [ConsentPurpose.ANALYTICS],\n publicConfig: {\n integrationKind: 'captcha',\n websiteRuntime: true,\n },\n // The public SITE key only. The secret key is the backend half's and never belongs here — a served value equal\n // to any environment secret is refused by `wildo config sync` (#1705).\n publicConfigSchema: defineFrontendPublicConfigSchema({\n integrationKind: { kind: FrontendPublicConfigValueKind.STRING, description: 'Which integration: captcha.' },\n websiteRuntime: { kind: FrontendPublicConfigValueKind.BOOLEAN, description: 'Runs on the website surface.' },\n siteKey: { kind: FrontendPublicConfigValueKind.STRING, required: true, description: 'The reCAPTCHA v3 SITE key (public by design). Never the secret key.' },\n }),\n csp: {\n scriptOrigins: ['https://www.google.com', 'https://www.gstatic.com'],\n frameOrigins: ['https://www.google.com', 'https://recaptcha.google.com'],\n connectOrigins: ['https://www.google.com'],\n },\n sdk: {\n // Not an npm package: Google serves reCAPTCHA only as its hosted loader, which `activate` injects. Its origin is\n // in `csp.scriptOrigins` above, which the projection checks.\n descriptor: { vendorHostedScriptUrl: RECAPTCHA_V3_LOADER_URL },\n stoppable: true,\n async activate({ providerRef, publicConfig }) {\n const siteKey = publicConfig.siteKey;\n if (typeof siteKey !== 'string' || siteKey.length === 0) {\n throw new Error(\n `Provider \"${providerRef}\" needs its reCAPTCHA v3 site key in publicConfig.siteKey. Supply it under `\n + 'providerConfigurations.recaptcha.frontend_sdk for the website service.',\n );\n }\n const client = await loadRecaptcha(siteKey);\n const sink: FrontendCaptchaSink = {\n async execute(action) {\n try {\n const token = await client.execute(siteKey, { action });\n return token.length > 0 ? token : undefined;\n } catch {\n return undefined;\n }\n },\n };\n return { handle: sink, deactivate: stopRecaptcha };\n },\n },\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['global'],\n vendorLegalEntityName: 'Google Ireland Limited',\n },\n};\n"]}
1
+ {"version":3,"file":"recaptcha.frontend-website.module.js","sourceRoot":"","sources":["../../../../src/providers/recaptcha/recaptcha.frontend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,EAAE,8CAA8C;QACnE,0BAA0B,EAAE,yDAAyD;QACrF,QAAQ,EAAE;YACR,EAAE,KAAK,EAAE,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,yBAAyB,CAAC,EAAE,MAAM,EAAE,kDAAkD,EAAE,UAAU,EAAE,YAAY,EAAE;YAC7L,EAAE,KAAK,EAAE,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,yDAAyD,EAAE,UAAU,EAAE,YAAY,EAAE;SAC9L;KACF;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ConsentPurpose,\n ProviderComplianceFact, ProviderDeploymentModel,\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n defineProviderMetadata,\n ENGINE_PROVIDER_ORIGIN,\n ProviderTier,\n defineFrontendPublicConfigSchema,\n FrontendPublicConfigValueKind,\n type FrontendCaptchaSink,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendWebsiteProviderModule } from '../../website/frontend-website-provider-module.types';\n\n/** The reCAPTCHA v3 client, as far as this module drives it. */\ninterface GrecaptchaClient {\n ready(callback: () => void): void;\n execute(siteKey: string, options: { action: string }): Promise<string>;\n}\n\n/**\n * Google's loader for reCAPTCHA v3, rendered for one site key.\n * spec-cite: https://developers.google.com/recaptcha/docs/v3 — \"Load the JavaScript API with your sitekey\",\n * `https://www.google.com/recaptcha/api.js?render=reCAPTCHA_site_key`. Fetched 2026-09-28.\n */\nexport const RECAPTCHA_V3_LOADER_URL = 'https://www.google.com/recaptcha/api.js';\n\n/** The attribute that marks the loader tag this module injected, so `deactivate` removes exactly it. */\nconst LOADER_MARKER = 'data-wildo-recaptcha-loader';\n\n/** How long the page waits for Google's loader before the form falls back to the proof of work. */\nexport const RECAPTCHA_LOADER_TIMEOUT_MS = 10_000;\n\nfunction globalWindow(): (Window & { grecaptcha?: GrecaptchaClient; ___grecaptcha_cfg?: unknown }) | undefined {\n return typeof window === 'undefined' ? undefined : window as never;\n}\n\n/**\n * Inject Google's loader and resolve once `grecaptcha.ready` fires. Loaded HERE, inside `activate`, and never as a\n * declared `scripts` entry: this provider rests on consent, and only an SDK can be stopped when consent is\n * withdrawn (#1704).\n */\nfunction loadRecaptcha(siteKey: string): Promise<GrecaptchaClient> {\n const win = globalWindow();\n if (win === undefined) return Promise.reject(new Error('reCAPTCHA can only load in a browser.'));\n return new Promise((resolve, reject) => {\n const timer = setTimeout(() => reject(new Error('reCAPTCHA did not load in time.')), RECAPTCHA_LOADER_TIMEOUT_MS);\n const settle = () => {\n const client = win.grecaptcha;\n if (client === undefined) {\n clearTimeout(timer);\n reject(new Error('reCAPTCHA loaded without its client.'));\n return;\n }\n client.ready(() => { clearTimeout(timer); resolve(client); });\n };\n const script = win.document.createElement('script');\n script.src = `${RECAPTCHA_V3_LOADER_URL}?render=${encodeURIComponent(siteKey)}`;\n script.async = true;\n script.setAttribute(LOADER_MARKER, '');\n script.addEventListener('load', settle, { once: true });\n script.addEventListener('error', () => { clearTimeout(timer); reject(new Error('reCAPTCHA failed to load.')); }, { once: true });\n win.document.head.appendChild(script);\n });\n}\n\n/**\n * Stop reCAPTCHA in this page (#1704): remove the loader tag, every script and frame Google added under its\n * `recaptcha` paths, the badge, and the globals it installed, so no code of it keeps running and nothing more\n * reaches Google from this page. What Google already stored in ITS OWN cookies cannot be cleared by the page\n * (they belong to Google's domain); that is why this provider starts only on consent in the first place.\n */\nfunction stopRecaptcha(): void {\n const win = globalWindow();\n if (win === undefined) return;\n const doc = win.document;\n const added = doc.querySelectorAll(\n `script[${LOADER_MARKER}], script[src*=\"/recaptcha/\"], iframe[src*=\"/recaptcha/\"], .grecaptcha-badge`,\n );\n added.forEach((element) => {\n const badgeHost = element.classList.contains('grecaptcha-badge') ? element.parentElement : null;\n element.remove();\n if (badgeHost !== null && badgeHost !== doc.body && badgeHost.childElementCount === 0) badgeHost.remove();\n });\n delete win.grecaptcha;\n delete win.___grecaptcha_cfg;\n}\n\n/**\n * Google reCAPTCHA v3 for the marketing website's public forms (#1735) — the browser half; the backend half\n * (`recaptcha` in `@wildo-ai/external-connectors-private`) verifies the tokens it mints.\n *\n * ## Consent\n *\n * The capability floor for a captcha is \"no consent\" — a pure security measure is exempt — but Google reCAPTCHA is\n * not one: the CNIL held that it \"also serves Google's own analysis\" (Délibération SAN-2023-003), so this module\n * adds `ConsentPurpose.ANALYTICS` to its floor (#1702). It therefore loads only once the visitor grants analytics,\n * and is stopped when they withdraw it. A visitor who declines still submits: the form then answers the engine's\n * own proof of work, which the backend accepts in place of a token.\n * spec-cite: https://www.legifrance.gouv.fr/cnil/id/CNILTEXT000047346903 — summarised from #1735's research, not quoted.\n *\n * ## Entity\n *\n * Deliberately NOT `Google LLC`. Google's role for reCAPTCHA changed from data CONTROLLER to data PROCESSOR on\n * 2 April 2026: the website operator is the controller and `Google Ireland Limited` the processor for the EEA,\n * with processing still reaching US servers under standard contractual clauses. `global` is the honest region:\n * reCAPTCHA offers no data-residency choice.\n *\n * ## CSP\n *\n * Google's own guidance: script-src `www.google.com/recaptcha/` and `www.gstatic.com/recaptcha/`, frame-src\n * `www.google.com/recaptcha/` and `recaptcha.google.com/recaptcha/`, connect-src `www.google.com/recaptcha/`.\n * The footprint names origins, so those paths widen to their origins.\n * spec-cite: https://developers.google.com/recaptcha/docs/faq — \"I'm using Content Security Policy (CSP) on my\n * website. How can I configure it to work with reCAPTCHA?\", fetched 2026-09-28.\n *\n * ## The badge\n *\n * Left visible: Google permits hiding it only when the page shows its reCAPTCHA branding text instead, which would\n * be a second place for the vendor's words to live. The badge is Google's own disclosure.\n */\nexport const RecaptchaFrontendWebsiteProvider: FrontendWebsiteProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'recaptcha',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n // MAIN, like its backend half: the engine's own public contact form consumes it.\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_CAPTCHA],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n consentPurposes: [ConsentPurpose.ANALYTICS],\n publicConfig: {\n integrationKind: 'captcha',\n websiteRuntime: true,\n },\n // The public SITE key only. The secret key is the backend half's and never belongs here — a served value equal\n // to any environment secret is refused by `wildo config sync` (#1705).\n publicConfigSchema: defineFrontendPublicConfigSchema({\n integrationKind: { kind: FrontendPublicConfigValueKind.STRING, description: 'Which integration: captcha.' },\n websiteRuntime: { kind: FrontendPublicConfigValueKind.BOOLEAN, description: 'Runs on the website surface.' },\n siteKey: { kind: FrontendPublicConfigValueKind.STRING, required: true, description: 'The reCAPTCHA v3 SITE key (public by design). Never the secret key.' },\n }),\n csp: {\n scriptOrigins: ['https://www.google.com', 'https://www.gstatic.com'],\n frameOrigins: ['https://www.google.com', 'https://recaptcha.google.com'],\n connectOrigins: ['https://www.google.com'],\n },\n sdk: {\n // Not an npm package: Google serves reCAPTCHA only as its hosted loader, which `activate` injects. Its origin is\n // in `csp.scriptOrigins` above, which the projection checks.\n descriptor: { vendorHostedScriptUrl: RECAPTCHA_V3_LOADER_URL },\n stoppable: true,\n async activate({ providerRef, publicConfig }) {\n const siteKey = publicConfig.siteKey;\n if (typeof siteKey !== 'string' || siteKey.length === 0) {\n throw new Error(\n `Provider \"${providerRef}\" needs its reCAPTCHA v3 site key in publicConfig.siteKey. Supply it under `\n + 'providerConfigurations.recaptcha.frontend_sdk for the website service.',\n );\n }\n const client = await loadRecaptcha(siteKey);\n const sink: FrontendCaptchaSink = {\n async execute(action) {\n try {\n const token = await client.execute(siteKey, { action });\n return token.length > 0 ? token : undefined;\n } catch {\n return undefined;\n }\n },\n };\n return { handle: sink, deactivate: stopRecaptcha };\n },\n },\n // The SAME facts as the backend module's profile (`external-connectors-private/src/providers/recaptcha/`), sourced there\n // 2026-11-06: this facet reaches the same vendor from the visitor's browser. Copy any change across: platform-config-lib's\n // `frontend-backend-compliance-profile-twins.test.ts` fails while the two differ (#3401).\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['Any country where Google or its subprocessors maintain facilities'],\n subprocessorListUrl: 'https://cloud.google.com/terms/subprocessors',\n dataProcessingAgreementUrl: 'https://cloud.google.com/terms/data-processing-addendum',\n evidence: [\n { facts: [ProviderComplianceFact.DEPLOYMENT_MODELS, ProviderComplianceFact.DATA_PROCESSING_AGREEMENT], source: 'https://docs.cloud.google.com/recaptcha/docs/faq', verifiedAt: '2026-11-06' },\n { facts: [ProviderComplianceFact.PROCESSING_REGIONS, ProviderComplianceFact.SUBPROCESSOR_LIST], source: 'https://cloud.google.com/terms/data-processing-addendum', verifiedAt: '2026-11-06' },\n ],\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"activate-frontend-provider-sdks.d.ts","sourceRoot":"","sources":["../../../../src/shared/activate-frontend-provider-sdks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,iCAAiC,EACvC,MAAM,sCAAsC,CAAC;AAO9C,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EACnC,MAAM,mCAAmC,CAAC;AAS3C,gEAAgE;AAChE,oBAAY,2CAA2C;IACrD;;;;OAIG;IACH,mBAAmB,wBAAwB;IAC3C,6EAA6E;IAC7E,iBAAiB,sBAAsB;IACvC,6EAA6E;IAC7E,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,wBAAwB,6BAA6B;IACrD;;;;OAIG;IACH,sBAAsB,2BAA2B;IACjD;;;OAGG;IACH,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,2BAA2B,gCAAgC;IAC3D,mHAAmH;IACnH,0B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AAE,6BAA6B,CAAC,CAAC;IACzE,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAMD;;;;;;;GAOG;AACH,wBAAsB,4BAA4B,CAChD,KAAK,EAAE,iCAAiC,GACvC,OAAO,CAAC,6BAA6B,CAAC,CA2HxC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,iCAAiC;IAChD;;;OAGG;IACH,KAAK,CACH,QAAQ,EAAE,MAAM,OAAO,CAAC,6BAA6B,CAAC,EACtD,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,GAC1D,MAAM,IAAI,CAAC;CACf;AAED,8DAA8D;AAC9D,wBAAgB,uCAAuC,IAAI,iCAAiC,CAwB3F"}
1
+ {"version":3,"file":"activate-frontend-provider-sdks.d.ts","sourceRoot":"","sources":["../../../src/shared/activate-frontend-provider-sdks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,iCAAiC,EACvC,MAAM,sCAAsC,CAAC;AAO9C,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EACnC,MAAM,mCAAmC,CAAC;AAS3C,gEAAgE;AAChE,oBAAY,2CAA2C;IACrD;;;;OAIG;IACH,mBAAmB,wBAAwB;IAC3C,6EAA6E;IAC7E,iBAAiB,sBAAsB;IACvC,6EAA6E;IAC7E,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,wBAAwB,6BAA6B;IACrD;;;;OAIG;IACH,sBAAsB,2BAA2B;IACjD;;;OAGG;IACH,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,2BAA2B,gCAAgC;IAC3D,mHAAmH;IACnH,0BAA0B,+BAA+B;CAC1D;AAED,MAAM,WAAW,uCAAuC;IACtD,QAAQ,CAAC,IAAI,EAAE,2CAA2C,CAAC;IAC3D,QAAQ,CAAC,WAAW,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,CAChD,KAAK,EAAE,iCAAiC,GACvC,OAAO,CAAC,6BAA6B,CAAC,CA2HxC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,iCAAiC;IAChD;;;OAGG;IACH,KAAK,CACH,QAAQ,EAAE,MAAM,OAAO,CAAC,6BAA6B,CAAC,EACtD,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,GAC1D,MAAM,IAAI,CAAC;CACf;AAED,8DAA8D;AAC9D,wBAAgB,uCAAuC,IAAI,iCAAiC,CAwB3F"}
@@ -1 +1 @@
1
- {"version":3,"file":"activate-frontend-provider-sdks.js","sourceRoot":"","sources":["../../../../src/shared/activate-frontend-provider-sdks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EACL,mBAAmB,EACnB,2BAA2B,GAI5B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,EACjC,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,iCAAiC,GAGlC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE/F,qGAAqG;AACrG,SAAS,UAAU,CAAC,IAAY;IAC9B,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC;AAC1D,CAAC;AAED,gEAAgE;AAChE,MAAM,CAAN,IAAY,2CAkCX;AAlCD,WAAY,2CAA2C;IACrD;;;;OAIG;IACH,0FAA2C,CAAA;IAC3C,6EAA6E;IAC7E,sFAAuC,CAAA;IACvC,6EAA6E;IAC7E,0FAA2C,CAAA;IAC3C;;;OAGG;IACH,oGAAqD,CAA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AAG,EAAE,CAAC,SAAS,CAAC,CAAC;YAC3F,CAAC,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Running the CODE half: loading and starting every live provider's vendor SDK.\n *\n * `FRONTEND_SDK` was a LABEL before this. Three engine providers declared the\n * protocol (Sentry, PostHog, reCAPTCHA), the website resolved their refs and\n * stamped them into `data-*` attributes on the page root, and no consumer\n * anywhere loaded a vendor SDK. This is the consumer.\n *\n * ## Why one runner for three bundlers\n *\n * Vite, Astro and Docusaurus disagree about almost everything except one thing:\n * a dynamic `import()` inside a module they have bundled becomes a lazily\n * fetched chunk. So the framework owns *when* activation happens and the\n * provider owns *what* it does — `activate()` performs both the import and the\n * vendor's own initialization, because otherwise every surface would grow a\n * switch over vendors.\n *\n * ## Browser only, and deliberately so\n *\n * Two of the three surfaces server-render (Astro and Docusaurus both execute\n * page modules in Node at build time). A vendor SDK started there would run\n * against a `window` that does not exist, or worse, would start a live\n * analytics client inside a build process. The runner refuses off-browser and\n * says so, rather than letting each surface remember to guard.\n */\n\nimport {\n describeCaughtError,\n describeProviderFrontendSdk,\n type AppFrontendType,\n type ConsentPurpose,\n type FrontendOnDemandCapabilityContext,\n} from '@wildo-ai/saas-models/public-runtime';\nimport {\n consentBasedProviderStopRefusal,\n consentPurposesRequiredByProvider,\n describeProviderConsentRefusal,\n isProviderPermittedByConsent,\n} from './frontend-provider-consent';\nimport {\n ProviderFrontendSdkActivationMode,\n type ProviderFrontendSdk,\n type ProviderFrontendSdkActivation,\n} from './frontend-provider-surface.types';\nimport { OnDemandServingVerdict, onDemandServingVerdict } from './frontend-provider-on-demand';\n\n/** A thrown message as a sentence, so the text after it starts a new one: `network` → `network.`. */\nfunction asSentence(text: string): string {\n const trimmed = text.trim();\n return /[.!?]$/.test(trimmed) ? trimmed : `${trimmed}.`;\n}\n\n/** Why an SDK activation did not happen, or did not survive. */\nexport enum FrontendProviderSdkActivationDiagnosticKind {\n /**\n * Activation was attempted outside a browser. Nothing ran; this is the\n * expected outcome during an Astro or Docusaurus server render, and the\n * surface should activate again on the client.\n */\n SKIPPED_OFF_BROWSER = 'SKIPPED_OFF_BROWSER',\n /** The provider's `activate()` threw or rejected. Its SDK is not running. */\n ACTIVATION_FAILED = 'ACTIVATION_FAILED',\n /** A provider's `deactivate()` threw. The surface has no way to retry it. */\n DEACTIVATION_FAILED = 'DEACTIVATION_FAILED',\n /**\n * The provider rests on a consent purpose the person has not granted (#534), so its SDK was not\n * loaded. Expected on every first visit; the surface activates it once consent is given.\n */\n WITHHELD_PENDING_CONSENT = 'WITHHELD_PENDING_CONSENT',\n /**\n * A consent-based provider cannot be stopped when its consent is withdrawn (#1704), so it was not started:\n * it declares `<script>` tags, or its SDK does not declare `stoppable`. The provider author's to fix;\n * see `consentBasedProviderStopRefusal`.\n */\n WITHHELD_NOT_STOPPABLE = 'WITHHELD_NOT_STOPPABLE',\n /**\n * A consent-based provider's SDK declared `stoppable` and its activation returned no `deactivate`. It IS\n * running, and a withdrawal will not stop it; nothing in the page can undo that, so it is reported loudly.\n */\n STOP_PROMISE_BROKEN = 'STOP_PROMISE_BROKEN',\n /**\n * An on-demand SDK (#2790) serving the called capability declares no `servesOnDemandContext`, so it can never say\n * it is the provider to call. Not started; the provider author's to fix (its projection refuses the same shape).\n */\n ON_DEMAND_WITHOUT_PREDICATE = 'ON_DEMAND_WITHOUT_PREDICATE',\n /** An on-demand SDK's `servesOnDemandContext` threw. Treated as not serving the context, so nothing was loaded. */\n ON_DEMAND_PREDICATE_FAILED = 'ON_DEMAND_PREDICATE_FAILED',\n}\n\nexport interface FrontendProviderSdkActivationDiagnostic {\n readonly kind: FrontendProviderSdkActivationDiagnosticKind;\n readonly providerRef: string;\n readonly message: string;\n readonly cause?: unknown;\n}\n\n/** The DATA+CODE shape this runner needs off a hydrated provider module. */\ninterface SdkBearingProviderModule {\n metadata: { ref: string };\n /** Read to decide whether the provider rests on consent — see `frontend-provider-consent.ts`. */\n providerCapabilities?: ReadonlyArray<string>;\n /** The provider's own purposes beyond its capabilities' floor (#1702) — read by the same decision. */\n consentPurposes?: ReadonlyArray<string>;\n publicConfig?: Readonly<Record<string, unknown>>;\n /** Read by the stop rule: a consent-based provider may not inject scripts it cannot stop (#1704). */\n scripts?: ReadonlyArray<unknown>;\n sdk?: ProviderFrontendSdk;\n}\n\nexport interface ActivateFrontendProviderSdksInput {\n readonly surface: AppFrontendType;\n /** The hydrated provider modules for this surface, in registry order. */\n readonly modules: Iterable<SdkBearingProviderModule>;\n readonly onDiagnostic?: (diagnostic: FrontendProviderSdkActivationDiagnostic) => void;\n /**\n * The consent purposes the person has granted on this surface (#534). A provider resting on a purpose\n * not in this set is WITHHELD, with a diagnostic.\n *\n * Defaults to NONE, deliberately: a call made before any person's answer is known (the application's\n * startup activation) or on a surface that asks no one (the technical documentation) starts no\n * consent-based provider rather than assuming a consent nobody gave. Only a caller holding the person's\n * answer passes it.\n */\n readonly grantedConsentPurposes?: readonly ConsentPurpose[];\n /**\n * The ON-DEMAND call (#2790): the capability a flow needs now and the context it knows. With it, only the SDKs\n * declared `ON_DEMAND` that serve `onDemand.capability` and whose `servesOnDemandContext` accepts the context are\n * started, the predicate evaluated here, at the call. Without it — every surface start — an `ON_DEMAND` SDK is\n * skipped, silently, because not starting it is the expected outcome on every page.\n *\n * Held here rather than in each caller: the four surface starts (application startup, its consent phase, the\n * website, the documentation) all go through this runner, so none of them can start an on-demand SDK by\n * forgetting a filter.\n */\n readonly onDemand?: FrontendOnDemandCapabilityContext;\n /**\n * Escape hatch for tests and for a surface that legitimately renders in a\n * non-DOM host. Defaults to a real `window` check; nothing else in this\n * package inspects the global scope.\n */\n readonly isBrowser?: () => boolean;\n}\n\n/**\n * The live SDKs of one surface, and the single door that stops them.\n *\n * A started SDK that cannot be stopped cannot honour a consent withdrawal and\n * accumulates one live client per hot reload, which is why `deactivateAll`\n * exists here rather than being left to each caller to assemble.\n */\nexport interface ActivatedFrontendProviderSdks {\n readonly activations: ReadonlyMap<string, ProviderFrontendSdkActivation>;\n deactivateAll(): Promise<void>;\n}\n\nfunction defaultIsBrowser(): boolean {\n return typeof globalThis !== 'undefined' && typeof (globalThis as { window?: unknown }).window !== 'undefined';\n}\n\n/**\n * Activates every declared SDK among `modules`, in iteration order, and returns\n * the live handles keyed by provider ref.\n *\n * One provider's failure never stops another's: an error-monitoring SDK that\n * fails to load must not take the analytics SDK — or the page — with it. Each\n * failure is reported and the run continues.\n */\nexport async function activateFrontendProviderSdks(\n input: ActivateFrontendProviderSdksInput,\n): Promise<ActivatedFrontendProviderSdks> {\n const raise = (diagnostic: FrontendProviderSdkActivationDiagnostic): void => {\n input.onDiagnostic?.(diagnostic);\n };\n const activations = new Map<string, ProviderFrontendSdkActivation>();\n const isBrowser = input.isBrowser ?? defaultIsBrowser;\n\n for (const module of input.modules) {\n const sdk = module.sdk;\n if (sdk === undefined) continue;\n\n const providerRef = module.metadata.ref;\n\n // assurance-control: WILDO.SECURITY.FAIL_CLOSED — an on-demand SDK starts only on a call whose context its own predicate accepts\n const onDemandSdk = (sdk.activation ?? ProviderFrontendSdkActivationMode.AT_SURFACE_START) === ProviderFrontendSdkActivationMode.ON_DEMAND;\n if (input.onDemand === undefined) {\n if (onDemandSdk) continue;\n } else {\n // The one decision the flow's synchronous question also asks (`onDemandServingVerdict`), so the two cannot disagree.\n const { verdict, cause } = onDemandServingVerdict(module, input.onDemand);\n if (verdict === OnDemandServingVerdict.NO_PREDICATE) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.ON_DEMAND_WITHOUT_PREDICATE,\n providerRef,\n message:\n `Provider \"${providerRef}\" declares an on-demand SDK for ${input.onDemand.capability} with no servesOnDemandContext, `\n + 'so it cannot say it serves this call and its SDK was not loaded. Declare the predicate (#2790).',\n });\n } else if (verdict === OnDemandServingVerdict.PREDICATE_FAILED) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.ON_DEMAND_PREDICATE_FAILED,\n providerRef,\n message: `Provider \"${providerRef}\"'s servesOnDemandContext threw: ${asSentence(describeCaughtError(cause))} Its SDK was not loaded.`,\n cause,\n });\n }\n if (verdict !== OnDemandServingVerdict.SERVES) continue;\n }\n\n if (!isProviderPermittedByConsent(module, input.grantedConsentPurposes ?? [])) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.WITHHELD_PENDING_CONSENT,\n providerRef,\n // Names which of the two refusals this is: an ungranted purpose (the person's to give) or a\n // classification no grant can satisfy (#1702 — the provider author's to fix).\n message: `${describeProviderConsentRefusal(providerRef, module, input.grantedConsentPurposes ?? [])} Its SDK was not loaded.`,\n });\n continue;\n }\n\n // assurance-control: WILDO.PRIVACY.CONSENT_ENFORCEMENT — a consent-based provider starts only if a withdrawal can stop it\n const stopRefusal = consentBasedProviderStopRefusal(providerRef, module);\n if (stopRefusal !== undefined) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.WITHHELD_NOT_STOPPABLE,\n providerRef,\n message: `${stopRefusal} Its SDK was not loaded.`,\n });\n continue;\n }\n\n if (!isBrowser()) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.SKIPPED_OFF_BROWSER,\n providerRef,\n message:\n `Provider \"${providerRef}\" declares ${describeProviderFrontendSdk(sdk.descriptor)} but activation was `\n + 'requested outside a browser, so nothing was loaded. Activate again on the client.',\n });\n continue;\n }\n\n try {\n const activation = await sdk.activate({\n providerRef,\n surface: input.surface,\n publicConfig: module.publicConfig ?? {},\n });\n activations.set(providerRef, activation);\n if (consentPurposesRequiredByProvider(module).length > 0 && activation.deactivate === undefined) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.STOP_PROMISE_BROKEN,\n providerRef,\n message:\n `Provider \"${providerRef}\" declares a stoppable SDK but its activation returned no deactivate, so a `\n + 'withdrawal of the consent it rests on will not stop it. Return a deactivate from sdk.activate (#1704).',\n });\n }\n } catch (cause) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.ACTIVATION_FAILED,\n providerRef,\n // The cause is IN the message, not only beside it: every surface logs `message` alone, and a provider refusing\n // for a missing public key (\"needs a Sentry DSN in its publicConfig.dsn…\") is indistinguishable from its SDK\n // package failing to load until the module's own words are read.\n message:\n `Provider \"${providerRef}\" did not activate (it loads ${describeProviderFrontendSdk(sdk.descriptor)}): `\n + `${asSentence(describeCaughtError(cause))} Its capability is unavailable on this surface; every other provider was `\n + 'still activated.',\n cause,\n });\n }\n }\n\n return {\n activations,\n async deactivateAll(): Promise<void> {\n for (const [providerRef, activation] of activations) {\n if (activation.deactivate === undefined) continue;\n try {\n await activation.deactivate();\n } catch (cause) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.DEACTIVATION_FAILED,\n providerRef,\n message: `Provider \"${providerRef}\" failed to deactivate its SDK; it may still be running.`,\n cause,\n });\n }\n }\n activations.clear();\n },\n };\n}\n\n/**\n * One consumer's lane of consent-based activations, in which a start never overlaps the previous stop (#1704).\n *\n * A vendor SDK is usually a PAGE-GLOBAL singleton (PostHog, reCAPTCHA). A person who grants, withdraws and grants again\n * while the first vendor bundle is still downloading produces two runs of the same client; if the first run's stop\n * lands after the second run's start, it switches off the client that was just published as running. So each start\n * waits until the previous run has fully stopped, and a run stopped before it finished starting is stopped as soon as\n * it does — and never reported as started.\n *\n * Every consumer that starts consent-based providers holds ONE lane for its lifetime (the application's\n * `ConsentBasedProviderSdksProvider`, the website's consent-based group), so no consumer can re-derive this ordering\n * and get it wrong. The lane never rejects: a failed activation is reported through the runner's diagnostics, and a\n * failed stop does not block the next start. A vendor `activate` or `deactivate` that NEVER settles does block every\n * later start in its lane — accepted, because starting a second copy of a page-global client beside one that may still\n * be starting is the defect this lane exists to prevent, and it only withholds (never over-sends) data.\n */\nexport interface FrontendProviderSdkActivationLane {\n /**\n * Start a run once the previous one has stopped. `onStarted` is called with the result only if the run was not stopped\n * first. Returns the STOP of this run, which withdraws it at once and stops what it started as soon as it has.\n */\n start(\n activate: () => Promise<ActivatedFrontendProviderSdks>,\n onStarted?: (result: ActivatedFrontendProviderSdks) => void,\n ): () => void;\n}\n\n/** A new, empty {@link FrontendProviderSdkActivationLane}. */\nexport function createFrontendProviderSdkActivationLane(): FrontendProviderSdkActivationLane {\n let previousStop: Promise<unknown> = Promise.resolve();\n return {\n start(activate, onStarted) {\n let stopped = false;\n const starting = previousStop\n .then(() => (stopped ? undefined : activate()))\n .catch(() => undefined)\n .then((result) => {\n if (result !== undefined && !stopped) {\n try {\n onStarted?.(result);\n } catch {\n // The consumer's publication failed; the run still started, so its stop must still reach it.\n }\n }\n return result;\n });\n return () => {\n stopped = true;\n previousStop = starting.then((result) => result?.deactivateAll()).catch(() => undefined);\n };\n },\n };\n}\n"]}
1
+ {"version":3,"file":"activate-frontend-provider-sdks.js","sourceRoot":"","sources":["../../../src/shared/activate-frontend-provider-sdks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EACL,mBAAmB,EACnB,2BAA2B,GAI5B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,EACjC,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,iCAAiC,GAGlC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE/F,qGAAqG;AACrG,SAAS,UAAU,CAAC,IAAY;IAC9B,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC;AAC1D,CAAC;AAED,gEAAgE;AAChE,MAAM,CAAN,IAAY,2CAkCX;AAlCD,WAAY,2CAA2C;IACrD;;;;OAIG;IACH,0FAA2C,CAAA;IAC3C,6EAA6E;IAC7E,sFAAuC,CAAA;IACvC,6EAA6E;IAC7E,0FAA2C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E,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;YAC3F,CAAC,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Running the CODE half: loading and starting every live provider's vendor SDK.\n *\n * `FRONTEND_SDK` was a LABEL before this. Three engine providers declared the\n * protocol (Sentry, PostHog, reCAPTCHA), the website resolved their refs and\n * stamped them into `data-*` attributes on the page root, and no consumer\n * anywhere loaded a vendor SDK. This is the consumer.\n *\n * ## Why one runner for three bundlers\n *\n * Vite, Astro and Docusaurus disagree about almost everything except one thing:\n * a dynamic `import()` inside a module they have bundled becomes a lazily\n * fetched chunk. So the framework owns *when* activation happens and the\n * provider owns *what* it does — `activate()` performs both the import and the\n * vendor's own initialization, because otherwise every surface would grow a\n * switch over vendors.\n *\n * ## Browser only, and deliberately so\n *\n * Two of the three surfaces server-render (Astro and Docusaurus both execute\n * page modules in Node at build time). A vendor SDK started there would run\n * against a `window` that does not exist, or worse, would start a live\n * analytics client inside a build process. The runner refuses off-browser and\n * says so, rather than letting each surface remember to guard.\n */\n\nimport {\n describeCaughtError,\n describeProviderFrontendSdk,\n type AppFrontendType,\n type ConsentPurpose,\n type FrontendOnDemandCapabilityContext,\n} from '@wildo-ai/saas-models/public-runtime';\nimport {\n consentBasedProviderStopRefusal,\n consentPurposesRequiredByProvider,\n describeProviderConsentRefusal,\n isProviderPermittedByConsent,\n} from './frontend-provider-consent';\nimport {\n ProviderFrontendSdkActivationMode,\n type ProviderFrontendSdk,\n type ProviderFrontendSdkActivation,\n} from './frontend-provider-surface.types';\nimport { OnDemandServingVerdict, onDemandServingVerdict } from './frontend-provider-on-demand';\n\n/** A thrown message as a sentence, so the text after it starts a new one: `network` → `network.`. */\nfunction asSentence(text: string): string {\n const trimmed = text.trim();\n return /[.!?]$/.test(trimmed) ? trimmed : `${trimmed}.`;\n}\n\n/** Why an SDK activation did not happen, or did not survive. */\nexport enum FrontendProviderSdkActivationDiagnosticKind {\n /**\n * Activation was attempted outside a browser. Nothing ran; this is the\n * expected outcome during an Astro or Docusaurus server render, and the\n * surface should activate again on the client.\n */\n SKIPPED_OFF_BROWSER = 'SKIPPED_OFF_BROWSER',\n /** The provider's `activate()` threw or rejected. Its SDK is not running. */\n ACTIVATION_FAILED = 'ACTIVATION_FAILED',\n /** A provider's `deactivate()` threw. The surface has no way to retry it. */\n DEACTIVATION_FAILED = 'DEACTIVATION_FAILED',\n /**\n * The provider rests on a consent purpose the person has not granted (#534), so its SDK was not\n * loaded. Expected on every first visit; the surface activates it once consent is given.\n */\n WITHHELD_PENDING_CONSENT = 'WITHHELD_PENDING_CONSENT',\n /**\n * A consent-based provider cannot be stopped when its consent is withdrawn (#1704), so it was not started:\n * it declares `<script>` tags, or its SDK does not declare `stoppable`. The provider author's to fix;\n * see `consentBasedProviderStopRefusal`.\n */\n WITHHELD_NOT_STOPPABLE = 'WITHHELD_NOT_STOPPABLE',\n /**\n * A consent-based provider's SDK declared `stoppable` and its activation returned no `deactivate`. It IS\n * running, and a withdrawal will not stop it; nothing in the page can undo that, so it is reported loudly.\n */\n STOP_PROMISE_BROKEN = 'STOP_PROMISE_BROKEN',\n /**\n * An on-demand SDK (#2790) serving the called capability declares no `servesOnDemandContext`, so it can never say\n * it is the provider to call. Not started; the provider author's to fix (its projection refuses the same shape).\n */\n ON_DEMAND_WITHOUT_PREDICATE = 'ON_DEMAND_WITHOUT_PREDICATE',\n /** An on-demand SDK's `servesOnDemandContext` threw. Treated as not serving the context, so nothing was loaded. */\n ON_DEMAND_PREDICATE_FAILED = 'ON_DEMAND_PREDICATE_FAILED',\n}\n\nexport interface FrontendProviderSdkActivationDiagnostic {\n readonly kind: FrontendProviderSdkActivationDiagnosticKind;\n readonly providerRef: string;\n readonly message: string;\n readonly cause?: unknown;\n}\n\n/** The DATA+CODE shape this runner needs off a hydrated provider module. */\ninterface SdkBearingProviderModule {\n metadata: { ref: string };\n /** Read to decide whether the provider rests on consent — see `frontend-provider-consent.ts`. */\n providerCapabilities?: ReadonlyArray<string>;\n /** The provider's own purposes beyond its capabilities' floor (#1702) — read by the same decision. */\n consentPurposes?: ReadonlyArray<string>;\n publicConfig?: Readonly<Record<string, unknown>>;\n /** Read by the stop rule: a consent-based provider may not inject scripts it cannot stop (#1704). */\n scripts?: ReadonlyArray<unknown>;\n sdk?: ProviderFrontendSdk;\n}\n\nexport interface ActivateFrontendProviderSdksInput {\n readonly surface: AppFrontendType;\n /** The hydrated provider modules for this surface, in registry order. */\n readonly modules: Iterable<SdkBearingProviderModule>;\n readonly onDiagnostic?: (diagnostic: FrontendProviderSdkActivationDiagnostic) => void;\n /**\n * The consent purposes the person has granted on this surface (#534). A provider resting on a purpose\n * not in this set is WITHHELD, with a diagnostic.\n *\n * Defaults to NONE, deliberately: a call made before any person's answer is known (the application's\n * startup activation) or on a surface that asks no one (the technical documentation) starts no\n * consent-based provider rather than assuming a consent nobody gave. Only a caller holding the person's\n * answer passes it.\n */\n readonly grantedConsentPurposes?: readonly ConsentPurpose[];\n /**\n * The ON-DEMAND call (#2790): the capability a flow needs now and the context it knows. With it, only the SDKs\n * declared `ON_DEMAND` that serve `onDemand.capability` and whose `servesOnDemandContext` accepts the context are\n * started, the predicate evaluated here, at the call. Without it — every surface start — an `ON_DEMAND` SDK is\n * skipped, silently, because not starting it is the expected outcome on every page.\n *\n * Held here rather than in each caller: the four surface starts (application startup, its consent phase, the\n * website, the documentation) all go through this runner, so none of them can start an on-demand SDK by\n * forgetting a filter.\n */\n readonly onDemand?: FrontendOnDemandCapabilityContext;\n /**\n * Escape hatch for tests and for a surface that legitimately renders in a\n * non-DOM host. Defaults to a real `window` check; nothing else in this\n * package inspects the global scope.\n */\n readonly isBrowser?: () => boolean;\n}\n\n/**\n * The live SDKs of one surface, and the single door that stops them.\n *\n * A started SDK that cannot be stopped cannot honour a consent withdrawal and\n * accumulates one live client per hot reload, which is why `deactivateAll`\n * exists here rather than being left to each caller to assemble.\n */\nexport interface ActivatedFrontendProviderSdks {\n readonly activations: ReadonlyMap<string, ProviderFrontendSdkActivation>;\n deactivateAll(): Promise<void>;\n}\n\nfunction defaultIsBrowser(): boolean {\n return typeof globalThis !== 'undefined' && typeof (globalThis as { window?: unknown }).window !== 'undefined';\n}\n\n/**\n * Activates every declared SDK among `modules`, in iteration order, and returns\n * the live handles keyed by provider ref.\n *\n * One provider's failure never stops another's: an error-monitoring SDK that\n * fails to load must not take the analytics SDK — or the page — with it. Each\n * failure is reported and the run continues.\n */\nexport async function activateFrontendProviderSdks(\n input: ActivateFrontendProviderSdksInput,\n): Promise<ActivatedFrontendProviderSdks> {\n const raise = (diagnostic: FrontendProviderSdkActivationDiagnostic): void => {\n input.onDiagnostic?.(diagnostic);\n };\n const activations = new Map<string, ProviderFrontendSdkActivation>();\n const isBrowser = input.isBrowser ?? defaultIsBrowser;\n\n for (const module of input.modules) {\n const sdk = module.sdk;\n if (sdk === undefined) continue;\n\n const providerRef = module.metadata.ref;\n\n // assurance-control: WILDO.SECURITY.FAIL_CLOSED — an on-demand SDK starts only on a call whose context its own predicate accepts\n const onDemandSdk = (sdk.activation ?? ProviderFrontendSdkActivationMode.AT_SURFACE_START) === ProviderFrontendSdkActivationMode.ON_DEMAND;\n if (input.onDemand === undefined) {\n if (onDemandSdk) continue;\n } else {\n // The one decision the flow's synchronous question also asks (`onDemandServingVerdict`), so the two cannot disagree.\n const { verdict, cause } = onDemandServingVerdict(module, input.onDemand);\n if (verdict === OnDemandServingVerdict.NO_PREDICATE) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.ON_DEMAND_WITHOUT_PREDICATE,\n providerRef,\n message:\n `Provider \"${providerRef}\" declares an on-demand SDK for ${input.onDemand.capability} with no servesOnDemandContext, `\n + 'so it cannot say it serves this call and its SDK was not loaded. Declare the predicate (#2790).',\n });\n } else if (verdict === OnDemandServingVerdict.PREDICATE_FAILED) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.ON_DEMAND_PREDICATE_FAILED,\n providerRef,\n message: `Provider \"${providerRef}\"'s servesOnDemandContext threw: ${asSentence(describeCaughtError(cause))} Its SDK was not loaded.`,\n cause,\n });\n }\n if (verdict !== OnDemandServingVerdict.SERVES) continue;\n }\n\n if (!isProviderPermittedByConsent(module, input.grantedConsentPurposes ?? [])) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.WITHHELD_PENDING_CONSENT,\n providerRef,\n // Names which of the two refusals this is: an ungranted purpose (the person's to give) or a\n // classification no grant can satisfy (#1702 — the provider author's to fix).\n message: `${describeProviderConsentRefusal(providerRef, module, input.grantedConsentPurposes ?? [])} Its SDK was not loaded.`,\n });\n continue;\n }\n\n // assurance-control: WILDO.PRIVACY.CONSENT_ENFORCEMENT — a consent-based provider starts only if a withdrawal can stop it\n const stopRefusal = consentBasedProviderStopRefusal(providerRef, module);\n if (stopRefusal !== undefined) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.WITHHELD_NOT_STOPPABLE,\n providerRef,\n message: `${stopRefusal} Its SDK was not loaded.`,\n });\n continue;\n }\n\n if (!isBrowser()) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.SKIPPED_OFF_BROWSER,\n providerRef,\n message:\n `Provider \"${providerRef}\" declares ${describeProviderFrontendSdk(sdk.descriptor)} but activation was `\n + 'requested outside a browser, so nothing was loaded. Activate again on the client.',\n });\n continue;\n }\n\n try {\n const activation = await sdk.activate({\n providerRef,\n surface: input.surface,\n publicConfig: module.publicConfig ?? {},\n });\n activations.set(providerRef, activation);\n if (consentPurposesRequiredByProvider(module).length > 0 && activation.deactivate === undefined) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.STOP_PROMISE_BROKEN,\n providerRef,\n message:\n `Provider \"${providerRef}\" declares a stoppable SDK but its activation returned no deactivate, so a `\n + 'withdrawal of the consent it rests on will not stop it. Return a deactivate from sdk.activate (#1704).',\n });\n }\n } catch (cause) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.ACTIVATION_FAILED,\n providerRef,\n // The cause is IN the message, not only beside it: every surface logs `message` alone, and a provider refusing\n // for a missing public key (\"needs a Sentry DSN in its publicConfig.dsn…\") is indistinguishable from its SDK\n // package failing to load until the module's own words are read.\n message:\n `Provider \"${providerRef}\" did not activate (it loads ${describeProviderFrontendSdk(sdk.descriptor)}): `\n + `${asSentence(describeCaughtError(cause))} Its capability is unavailable on this surface; every other provider was `\n + 'still activated.',\n cause,\n });\n }\n }\n\n return {\n activations,\n async deactivateAll(): Promise<void> {\n for (const [providerRef, activation] of activations) {\n if (activation.deactivate === undefined) continue;\n try {\n await activation.deactivate();\n } catch (cause) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.DEACTIVATION_FAILED,\n providerRef,\n message: `Provider \"${providerRef}\" failed to deactivate its SDK; it may still be running.`,\n cause,\n });\n }\n }\n activations.clear();\n },\n };\n}\n\n/**\n * One consumer's lane of consent-based activations, in which a start never overlaps the previous stop (#1704).\n *\n * A vendor SDK is usually a PAGE-GLOBAL singleton (PostHog, reCAPTCHA). A person who grants, withdraws and grants again\n * while the first vendor bundle is still downloading produces two runs of the same client; if the first run's stop\n * lands after the second run's start, it switches off the client that was just published as running. So each start\n * waits until the previous run has fully stopped, and a run stopped before it finished starting is stopped as soon as\n * it does — and never reported as started.\n *\n * Every consumer that starts consent-based providers holds ONE lane for its lifetime (the application's\n * `ConsentBasedProviderSdksProvider`, the website's consent-based group), so no consumer can re-derive this ordering\n * and get it wrong. The lane never rejects: a failed activation is reported through the runner's diagnostics, and a\n * failed stop does not block the next start. A vendor `activate` or `deactivate` that NEVER settles does block every\n * later start in its lane — accepted, because starting a second copy of a page-global client beside one that may still\n * be starting is the defect this lane exists to prevent, and it only withholds (never over-sends) data.\n */\nexport interface FrontendProviderSdkActivationLane {\n /**\n * Start a run once the previous one has stopped. `onStarted` is called with the result only if the run was not stopped\n * first. Returns the STOP of this run, which withdraws it at once and stops what it started as soon as it has.\n */\n start(\n activate: () => Promise<ActivatedFrontendProviderSdks>,\n onStarted?: (result: ActivatedFrontendProviderSdks) => void,\n ): () => void;\n}\n\n/** A new, empty {@link FrontendProviderSdkActivationLane}. */\nexport function createFrontendProviderSdkActivationLane(): FrontendProviderSdkActivationLane {\n let previousStop: Promise<unknown> = Promise.resolve();\n return {\n start(activate, onStarted) {\n let stopped = false;\n const starting = previousStop\n .then(() => (stopped ? undefined : activate()))\n .catch(() => undefined)\n .then((result) => {\n if (result !== undefined && !stopped) {\n try {\n onStarted?.(result);\n } catch {\n // The consumer's publication failed; the run still started, so its stop must still reach it.\n }\n }\n return result;\n });\n return () => {\n stopped = true;\n previousStop = starting.then((result) => result?.deactivateAll()).catch(() => undefined);\n };\n },\n };\n}\n"]}
@@ -168,6 +168,13 @@ export declare const PROVIDER_CAPABILITY_FRONTEND_CONSENT_CLASSIFICATION: Readon
168
168
  */
169
169
  readonly browserHosted: false;
170
170
  };
171
+ readonly ELECTRONIC_SIGNATURE: {
172
+ /**
173
+ * The capability runs server-side only (a mail sender, an LLM, an audit sink). A frontend module
174
+ * declaring it is refused at projection and never permitted to start.
175
+ */
176
+ readonly browserHosted: false;
177
+ };
171
178
  readonly SSO_SAML: {
172
179
  /**
173
180
  * The capability runs server-side only (a mail sender, an LLM, an audit sink). A frontend module
@@ -1 +1 @@
1
- {"version":3,"file":"frontend-provider-consent.d.ts","sourceRoot":"","sources":["../../../../src/shared/frontend-provider-consent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH,OAAO,EAEL,cAAc,EAIf,MAAM,sCAAsC,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,MAAM,uCAAuC,GAC/C;IACA,qDAAqD;IACrD,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAC;IAC7B,gGAAgG;IAChG,QAAQ,CAAC,eAAe,EAAE,SAAS,cAAc,EAAE,CAAC;CACrD,GACC;IACA;;;OAGG;IACH,Q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ze
97
97
  EMAIL_MARKETING: SERVER_ONLY,
98
98
  EMAIL_INBOUND: SERVER_ONLY,
99
99
  SMS: SERVER_ONLY,
100
+ // #2293: a deliverable is sent for signature from the backend; the vendor's signing page is its own, not a browser SDK.
101
+ ELECTRONIC_SIGNATURE: SERVER_ONLY,
100
102
  SSO_SAML: SERVER_ONLY,
101
103
  LLM_CHAT: SERVER_ONLY,
102
104
  LLM_EMBEDDINGS: SERVER_ONLY,