@wildo-ai/external-connectors-public 1.1.3 → 1.1.4

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 (104) 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 +4 -0
  7. package/dist/esm/app/engine-frontend-app-provider-registry.js.map +1 -1
  8. package/dist/esm/app/frontend-app-provider-module.types.d.ts +14 -1
  9. package/dist/esm/app/frontend-app-provider-module.types.d.ts.map +1 -1
  10. package/dist/esm/app/frontend-app-provider-module.types.js.map +1 -1
  11. package/dist/esm/app/frontend-app-provider-registry.types.d.ts.map +1 -1
  12. package/dist/esm/app/index.d.ts.map +1 -1
  13. package/dist/esm/app/index.js.map +1 -1
  14. package/dist/esm/companion-exports.d.ts +25 -14
  15. package/dist/esm/companion-exports.d.ts.map +1 -1
  16. package/dist/esm/companion-exports.js +31 -13
  17. package/dist/esm/companion-exports.js.map +1 -1
  18. package/dist/esm/engine-frontend-providers-package.d.ts.map +1 -1
  19. package/dist/esm/engine-frontend-providers-package.js.map +1 -1
  20. package/dist/esm/providers/algolia/algolia.frontend-techdoc.module.d.ts.map +1 -1
  21. package/dist/esm/providers/algolia/algolia.frontend-techdoc.module.js.map +1 -1
  22. package/dist/esm/providers/algolia/index.d.ts.map +1 -1
  23. package/dist/esm/providers/apple/apple.frontend-app.module.d.ts.map +1 -1
  24. package/dist/esm/providers/apple/apple.frontend-app.module.js.map +1 -1
  25. package/dist/esm/providers/apple/index.d.ts.map +1 -1
  26. package/dist/esm/providers/github/github.frontend-app.module.d.ts.map +1 -1
  27. package/dist/esm/providers/github/github.frontend-app.module.js.map +1 -1
  28. package/dist/esm/providers/github/index.d.ts.map +1 -1
  29. package/dist/esm/providers/google/google.frontend-app.module.d.ts +9 -0
  30. package/dist/esm/providers/google/google.frontend-app.module.d.ts.map +1 -1
  31. package/dist/esm/providers/google/google.frontend-app.module.js +13 -1
  32. package/dist/esm/providers/google/google.frontend-app.module.js.map +1 -1
  33. package/dist/esm/providers/google/index.d.ts.map +1 -1
  34. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.d.ts +17 -0
  35. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.d.ts.map +1 -0
  36. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.js +66 -0
  37. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.js.map +1 -0
  38. package/dist/esm/providers/google-drive/index.d.ts +2 -0
  39. package/dist/esm/providers/google-drive/index.d.ts.map +1 -0
  40. package/dist/esm/providers/google-drive/index.js +2 -0
  41. package/dist/esm/providers/google-drive/index.js.map +1 -0
  42. package/dist/esm/providers/microsoft/index.d.ts.map +1 -1
  43. package/dist/esm/providers/microsoft/microsoft.frontend-app.module.d.ts +6 -0
  44. package/dist/esm/providers/microsoft/microsoft.frontend-app.module.d.ts.map +1 -1
  45. package/dist/esm/providers/microsoft/microsoft.frontend-app.module.js +10 -4
  46. package/dist/esm/providers/microsoft/microsoft.frontend-app.module.js.map +1 -1
  47. package/dist/esm/providers/microsoft-onedrive/index.d.ts +2 -0
  48. package/dist/esm/providers/microsoft-onedrive/index.d.ts.map +1 -0
  49. package/dist/esm/providers/microsoft-onedrive/index.js +2 -0
  50. package/dist/esm/providers/microsoft-onedrive/index.js.map +1 -0
  51. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.d.ts +13 -0
  52. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.d.ts.map +1 -0
  53. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.js +44 -0
  54. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.js.map +1 -0
  55. package/dist/esm/providers/posthog/index.d.ts.map +1 -1
  56. package/dist/esm/providers/posthog/posthog.frontend-website.module.d.ts.map +1 -1
  57. package/dist/esm/providers/posthog/posthog.frontend-website.module.js.map +1 -1
  58. package/dist/esm/providers/recaptcha/index.d.ts.map +1 -1
  59. package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.d.ts.map +1 -1
  60. package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.js.map +1 -1
  61. package/dist/esm/providers/sentry/sentry.frontend-app.module.d.ts.map +1 -1
  62. package/dist/esm/providers/sentry/sentry.frontend-app.module.js.map +1 -1
  63. package/dist/esm/providers/sentry/sentry.frontend-website.module.d.ts.map +1 -1
  64. package/dist/esm/providers/sentry/sentry.frontend-website.module.js.map +1 -1
  65. package/dist/esm/providers/stripe/index.d.ts.map +1 -1
  66. package/dist/esm/providers/stripe/stripe.frontend-app.module.d.ts.map +1 -1
  67. package/dist/esm/providers/stripe/stripe.frontend-app.module.js.map +1 -1
  68. package/dist/esm/shared/activate-frontend-provider-sdks.d.ts.map +1 -1
  69. package/dist/esm/shared/activate-frontend-provider-sdks.js.map +1 -1
  70. package/dist/esm/shared/frontend-provider-surface.types.d.ts +22 -134
  71. package/dist/esm/shared/frontend-provider-surface.types.d.ts.map +1 -1
  72. package/dist/esm/shared/frontend-provider-surface.types.js +12 -0
  73. package/dist/esm/shared/frontend-provider-surface.types.js.map +1 -1
  74. package/dist/esm/shared/hydrate-frontend-providers.d.ts +8 -1
  75. package/dist/esm/shared/hydrate-frontend-providers.d.ts.map +1 -1
  76. package/dist/esm/shared/hydrate-frontend-providers.js +12 -0
  77. package/dist/esm/shared/hydrate-frontend-providers.js.map +1 -1
  78. package/dist/esm/techdoc/compose-frontend-techdoc-providers.d.ts.map +1 -1
  79. package/dist/esm/techdoc/compose-frontend-techdoc-providers.js.map +1 -1
  80. package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.d.ts.map +1 -1
  81. package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.js.map +1 -1
  82. package/dist/esm/techdoc/engine-frontend-techdoc-provider-registry.d.ts.map +1 -1
  83. package/dist/esm/techdoc/frontend-techdoc-provider-module.types.d.ts.map +1 -1
  84. package/dist/esm/techdoc/frontend-techdoc-provider-module.types.js.map +1 -1
  85. package/dist/esm/techdoc/frontend-techdoc-provider-registry.types.d.ts.map +1 -1
  86. package/dist/esm/techdoc/index.d.ts.map +1 -1
  87. package/dist/esm/techdoc/index.js.map +1 -1
  88. package/dist/esm/website/compose-frontend-website-providers.d.ts.map +1 -1
  89. package/dist/esm/website/compose-frontend-website-providers.js.map +1 -1
  90. package/dist/esm/website/compose-hydrated-frontend-website-providers.d.ts.map +1 -1
  91. package/dist/esm/website/compose-hydrated-frontend-website-providers.js.map +1 -1
  92. package/dist/esm/website/engine-frontend-website-provider-registry.d.ts.map +1 -1
  93. package/dist/esm/website/engine-frontend-website-provider-registry.js.map +1 -1
  94. package/dist/esm/website/frontend-website-provider-module.types.d.ts.map +1 -1
  95. package/dist/esm/website/frontend-website-provider-module.types.js.map +1 -1
  96. package/dist/esm/website/frontend-website-provider-registry.types.d.ts.map +1 -1
  97. package/dist/esm/website/index.d.ts.map +1 -1
  98. package/dist/esm/website/index.js.map +1 -1
  99. package/dist/tsconfig.build.tsbuildinfo +1 -1
  100. package/package.json +3 -3
  101. package/dist/esm/providers/sentry/index.d.ts +0 -0
  102. package/dist/esm/providers/sentry/index.d.ts.map +0 -0
  103. package/dist/esm/providers/sentry/index.js +0 -0
  104. package/dist/esm/providers/sentry/index.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"google.frontend-app.module.js","sourceRoot":"","sources":["../../../../../src/providers/google/google.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,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAG9L,MAAM,CAAC,MAAM,yBAAyB,GAA8B;IAClE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,UAAU,CAAC;IAC9D,SAAS,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC;IACjD,YAAY,EAAE;QACZ,eAAe,EAAE,QAAQ;KAC1B;IACD;;;OAGG;IACH,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, ProviderTier } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\nexport const GoogleFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'google',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],\n publicConfig: {\n authProviderRef: 'google',\n },\n /**\n * Mirrors the authored `google` BACKEND profile. Note the sibling `recaptcha` provider does NOT\n * share this entity — see its own profile.\n */\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.frontend-app.module.js","sourceRoot":"","sources":["../../../../src/providers/google/google.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,YAAY,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAG/P;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAA8B;IAClE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,UAAU,CAAC;IAC9D,SAAS,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC;IACjD,YAAY,EAAE;QACZ,eAAe,EAAE,QAAQ;KAC1B;IACD,kBAAkB,EAAE,gCAAgC,CAAC;QACnD,eAAe,EAAE,EAAE,IAAI,EAAE,6BAA6B,CAAC,MAAM,EAAE,WAAW,EAAE,2CAA2C,EAAE;KAC1H,CAAC;IACF;;;OAGG;IACH,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, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\n/**\n * Google as an SSO provider — and only that, on the frontend.\n *\n * The Drive picker used to live here (#394 P1–P5) and moved to the `google-drive` module on\n * 2026-09-09, because a picker is the front door of a CONNECTED ACCOUNT, and the account a person\n * connects for Drive goes through the `google-drive` backend provider (its own OAuth2 client, its own\n * `drive.file` consent), not through the SSO registration this module fronts. A picker declared here\n * asked the access-token door for `google`, which has no delegated contract, and could never open.\n */\nexport const GoogleFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'google',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],\n publicConfig: {\n authProviderRef: 'google',\n },\n publicConfigSchema: defineFrontendPublicConfigSchema({\n authProviderRef: { kind: FrontendPublicConfigValueKind.STRING, description: 'The SSO auth provider this module fronts.' },\n }),\n /**\n * Mirrors the authored `google` BACKEND profile. Note the sibling `recaptcha` provider does NOT\n * share this entity — see its own profile.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1', 'eu-west-1'],\n vendorLegalEntityName: 'Google LLC',\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/google/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/google/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';
2
+ /**
3
+ * Google Drive on the frontend: the Drive Picker, and nothing else.
4
+ *
5
+ * The ref is `google-drive`, the same ref as the CATALOGUE backend provider a person connects their
6
+ * Drive through (`@wildo-ai/providers/google-drive`), because that identity is what every seam joins
7
+ * on: the host asks the access-token door for THIS ref's delegated token, the `GOOGLE_DRIVE` file
8
+ * storage names this ref as its `connectedProviderRef`, and `fileStorage` below is what a file field
9
+ * reads to decide whether to offer the picker. Google's SSO registration is a different account
10
+ * and a different module (`google`).
11
+ *
12
+ * The picker opens with the person's own delegated token, minted under the `drive.file` scope —
13
+ * Google's non-sensitive scope that grants exactly the files a user shares with an app while using
14
+ * the Picker — so the application backend can then read what was picked as that person.
15
+ */
16
+ export declare const GoogleDriveFrontendAppProvider: FrontendAppProviderModule;
17
+ //# sourceMappingURL=google-drive.frontend-app.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-drive.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/google-drive/google-drive.frontend-app.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,8BAA8B,EAAE,yBAgD5C,CAAC"}
@@ -0,0 +1,66 @@
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, FileStorageAccepted } from '@wildo-ai/saas-models/public-runtime';
3
+ /**
4
+ * Google Drive on the frontend: the Drive Picker, and nothing else.
5
+ *
6
+ * The ref is `google-drive`, the same ref as the CATALOGUE backend provider a person connects their
7
+ * Drive through (`@wildo-ai/providers/google-drive`), because that identity is what every seam joins
8
+ * on: the host asks the access-token door for THIS ref's delegated token, the `GOOGLE_DRIVE` file
9
+ * storage names this ref as its `connectedProviderRef`, and `fileStorage` below is what a file field
10
+ * reads to decide whether to offer the picker. Google's SSO registration is a different account
11
+ * and a different module (`google`).
12
+ *
13
+ * The picker opens with the person's own delegated token, minted under the `drive.file` scope —
14
+ * Google's non-sensitive scope that grants exactly the files a user shares with an app while using
15
+ * the Picker — so the application backend can then read what was picked as that person.
16
+ */
17
+ export const GoogleDriveFrontendAppProvider = {
18
+ metadata: defineProviderMetadata({
19
+ ref: 'google-drive',
20
+ packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,
21
+ tier: ProviderTier.MAIN,
22
+ origin: ENGINE_PROVIDER_ORIGIN,
23
+ }),
24
+ providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER],
25
+ protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],
26
+ publicConfig: {},
27
+ publicConfigSchema: defineFrontendPublicConfigSchema({
28
+ appId: { kind: FrontendPublicConfigValueKind.STRING, description: 'Google Cloud project NUMBER the Drive Picker is registered under.' },
29
+ developerKey: { kind: FrontendPublicConfigValueKind.STRING, description: 'Optional API key for the Picker; public by design.' },
30
+ }),
31
+ scripts: [{ src: 'https://apis.google.com/js/api.js', async: true, defer: true }],
32
+ /**
33
+ * The picker's loader script, the iframe it renders in, and the endpoint it
34
+ * calls — all three named, because a bucket left out is a bucket CSP blocks in
35
+ * production only. The SELECTED bytes never reach the browser, which is why
36
+ * `selectionDelivery` does not gate these.
37
+ */
38
+ csp: {
39
+ scriptOrigins: ['https://apis.google.com'],
40
+ frameOrigins: ['https://docs.google.com'],
41
+ connectOrigins: ['https://content.googleapis.com'],
42
+ },
43
+ components: {
44
+ [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER]: {
45
+ // No `load` — deliberately. This package cannot reach a React component
46
+ // without closing a package cycle, so the facet library registers the
47
+ // loader (`registerProviderComponents` in presets-components). What stays
48
+ // here is what a reviewer needs: that the component exists and what a
49
+ // selection from it contains — an opaque handle the application backend
50
+ // resolves with a credential the browser must not hold (#383).
51
+ selectionDelivery: ProviderFrontendSelectionDelivery.REMOTE_REFERENCE,
52
+ },
53
+ },
54
+ // A REMOTE_REFERENCE leaves the bytes in Drive, so the picker is the front
55
+ // door of the GOOGLE_DRIVE storage: only a field whose `storageAccepted`
56
+ // names it is offered this picker (#394 P5). The backend's
57
+ // `GoogleDriveStorageProvider` serves that storage through the linker's
58
+ // connected account.
59
+ fileStorage: FileStorageAccepted.GOOGLE_DRIVE,
60
+ complianceProfile: {
61
+ deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
62
+ processingRegions: ['us-east-1', 'eu-west-1'],
63
+ vendorLegalEntityName: 'Google LLC',
64
+ },
65
+ };
66
+ //# sourceMappingURL=google-drive.frontend-app.module.js.map
@@ -0,0 +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 CATALOGUE backend provider a person connects their\n * Drive through (`@wildo-ai/providers/google-drive`), 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"]}
@@ -0,0 +1,2 @@
1
+ export { GoogleDriveFrontendAppProvider } from './google-drive.frontend-app.module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export { GoogleDriveFrontendAppProvider } from './google-drive.frontend-app.module.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/microsoft/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC"}
@@ -1,3 +1,9 @@
1
1
  import type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';
2
+ /**
3
+ * Microsoft as an SSO provider — and only that, on the frontend. The OneDrive picker moved to the
4
+ * `microsoft-onedrive` module on 2026-09-09, for the reason recorded on `google`: a picker fronts
5
+ * the vendor product a person CONNECTS, which is a different registration from the one they sign
6
+ * in with.
7
+ */
2
8
  export declare const MicrosoftFrontendAppProvider: FrontendAppProviderModule;
3
9
  //# sourceMappingURL=microsoft.frontend-app.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"microsoft.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/microsoft/microsoft.frontend-app.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F,eAAO,MAAM,4BAA4B,EAAE,yBAoB1C,CAAC"}
1
+ {"version":3,"file":"microsoft.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft/microsoft.frontend-app.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,EAAE,yBAoB1C,CAAC"}
@@ -1,5 +1,11 @@
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, ProviderTier } from '@wildo-ai/saas-models/public-runtime';
2
+ import { ProviderDeploymentModel, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind } from '@wildo-ai/saas-models/public-runtime';
3
+ /**
4
+ * Microsoft as an SSO provider — and only that, on the frontend. The OneDrive picker moved to the
5
+ * `microsoft-onedrive` module on 2026-09-09, for the reason recorded on `google`: a picker fronts
6
+ * the vendor product a person CONNECTS, which is a different registration from the one they sign
7
+ * in with.
8
+ */
3
9
  export const MicrosoftFrontendAppProvider = {
4
10
  metadata: defineProviderMetadata({
5
11
  ref: 'microsoft',
@@ -12,9 +18,9 @@ export const MicrosoftFrontendAppProvider = {
12
18
  publicConfig: {
13
19
  authProviderRef: 'microsoft',
14
20
  },
15
- /**
16
- * Mirrors the authored `microsoft` BACKEND profile.
17
- */
21
+ publicConfigSchema: defineFrontendPublicConfigSchema({
22
+ authProviderRef: { kind: FrontendPublicConfigValueKind.STRING, description: 'The SSO auth provider this module fronts.' },
23
+ }),
18
24
  complianceProfile: {
19
25
  deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
20
26
  processingRegions: ['us-east-1', 'eu-west-1'],
@@ -1 +1 @@
1
- {"version":3,"file":"microsoft.frontend-app.module.js","sourceRoot":"","sources":["../../../../../src/providers/microsoft/microsoft.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,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAG9L,MAAM,CAAC,MAAM,4BAA4B,GAA8B;IACrE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,WAAW;QAChB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,UAAU,CAAC;IAC9D,SAAS,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC;IACjD,YAAY,EAAE;QACZ,eAAe,EAAE,WAAW;KAC7B;IACD;;OAEG;IACH,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, ProviderTier } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\nexport const MicrosoftFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'microsoft',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],\n publicConfig: {\n authProviderRef: 'microsoft',\n },\n /**\n * Mirrors the authored `microsoft` BACKEND profile.\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.frontend-app.module.js","sourceRoot":"","sources":["../../../../src/providers/microsoft/microsoft.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,YAAY,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAG/P;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAA8B;IACrE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,WAAW;QAChB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,UAAU,CAAC;IAC9D,SAAS,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC;IACjD,YAAY,EAAE;QACZ,eAAe,EAAE,WAAW;KAC7B;IACD,kBAAkB,EAAE,gCAAgC,CAAC;QACnD,eAAe,EAAE,EAAE,IAAI,EAAE,6BAA6B,CAAC,MAAM,EAAE,WAAW,EAAE,2CAA2C,EAAE;KAC1H,CAAC;IACF,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, ProviderTier, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\n/**\n * Microsoft as an SSO provider — and only that, on the frontend. The OneDrive picker moved to the\n * `microsoft-onedrive` module on 2026-09-09, for the reason recorded on `google`: a picker fronts\n * the vendor product a person CONNECTS, which is a different registration from the one they sign\n * in with.\n */\nexport const MicrosoftFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'microsoft',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],\n publicConfig: {\n authProviderRef: 'microsoft',\n },\n publicConfigSchema: defineFrontendPublicConfigSchema({\n authProviderRef: { kind: FrontendPublicConfigValueKind.STRING, description: 'The SSO auth provider this module fronts.' },\n }),\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1', 'eu-west-1'],\n vendorLegalEntityName: 'Microsoft Corporation',\n },\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export { MicrosoftOneDriveFrontendAppProvider } from './microsoft-onedrive.frontend-app.module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export { MicrosoftOneDriveFrontendAppProvider } from './microsoft-onedrive.frontend-app.module.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,13 @@
1
+ import type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';
2
+ /**
3
+ * OneDrive on the frontend: the v7.2 OneDrive picker.
4
+ *
5
+ * Same ref as the catalogue backend provider (`@wildo-ai/providers/microsoft-onedrive`), for the
6
+ * reason recorded on `google-drive`. This picker is NOT yet on the governed path: v7.2 authenticates
7
+ * in its own popup against `clientId` and hands back a pre-authenticated download URL
8
+ * (`BROWSER_READABLE_URL`), so it declares no `fileStorage` — the bytes are ingested into the
9
+ * field's own storage. Microsoft's token-accepting picker (v8) needs SharePoint-resource tokens
10
+ * per request, which the access-token door does not mint yet; that is tracked as its own decision.
11
+ */
12
+ export declare const MicrosoftOneDriveFrontendAppProvider: FrontendAppProviderModule;
13
+ //# sourceMappingURL=microsoft-onedrive.frontend-app.module.d.ts.map
@@ -0,0 +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;;;;;;;;;GASG;AACH,eAAO,MAAM,oCAAoC,EAAE,yBA8BlD,CAAC"}
@@ -0,0 +1,44 @@
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';
3
+ /**
4
+ * OneDrive on the frontend: the v7.2 OneDrive picker.
5
+ *
6
+ * Same ref as the catalogue backend provider (`@wildo-ai/providers/microsoft-onedrive`), for the
7
+ * reason recorded on `google-drive`. This picker is NOT yet on the governed path: v7.2 authenticates
8
+ * in its own popup against `clientId` and hands back a pre-authenticated download URL
9
+ * (`BROWSER_READABLE_URL`), so it declares no `fileStorage` — the bytes are ingested into the
10
+ * field's own storage. Microsoft's token-accepting picker (v8) needs SharePoint-resource tokens
11
+ * per request, which the access-token door does not mint yet; that is tracked as its own decision.
12
+ */
13
+ export const MicrosoftOneDriveFrontendAppProvider = {
14
+ metadata: defineProviderMetadata({
15
+ ref: 'microsoft-onedrive',
16
+ packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,
17
+ tier: ProviderTier.MAIN,
18
+ origin: ENGINE_PROVIDER_ORIGIN,
19
+ }),
20
+ providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER],
21
+ protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],
22
+ publicConfig: {},
23
+ publicConfigSchema: defineFrontendPublicConfigSchema({
24
+ clientId: { kind: FrontendPublicConfigValueKind.STRING, description: 'Azure application (client) id the OneDrive picker is registered under.' },
25
+ pickerRedirectUri: { kind: FrontendPublicConfigValueKind.STRING, description: 'Optional redirect URI for the picker popup.' },
26
+ }),
27
+ scripts: [{ src: 'https://js.live.net/v7.2/OneDrive.js', async: true, defer: true }],
28
+ csp: {
29
+ scriptOrigins: ['https://js.live.net'],
30
+ frameOrigins: ['https://onedrive.live.com'],
31
+ },
32
+ components: {
33
+ [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER]: {
34
+ // No `load` — the facet library registers the loader (see `google-drive`).
35
+ selectionDelivery: ProviderFrontendSelectionDelivery.BROWSER_READABLE_URL,
36
+ },
37
+ },
38
+ complianceProfile: {
39
+ deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
40
+ processingRegions: ['us-east-1', 'eu-west-1'],
41
+ vendorLegalEntityName: 'Microsoft Corporation',
42
+ },
43
+ };
44
+ //# sourceMappingURL=microsoft-onedrive.frontend-app.module.js.map
@@ -0,0 +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;;;;;;;;;GASG;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 catalogue backend provider (`@wildo-ai/providers/microsoft-onedrive`), 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; that is tracked as its own decision.\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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/posthog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/posthog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"posthog.frontend-website.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/posthog/posthog.frontend-website.module.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAE1G;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,8BAA8B,EAAE,6BAwD5C,CAAC"}
1
+ {"version":3,"file":"posthog.frontend-website.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/posthog/posthog.frontend-website.module.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAE1G;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,8BAA8B,EAAE,6BAwD5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"posthog.frontend-website.module.js","sourceRoot":"","sources":["../../../../../src/providers/posthog/posthog.frontend-website.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,+BAA+B,EAC/B,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sCAAsC,CAAC;AAG9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAkC;IAC3E,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,SAAS;QACd,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,0BAA0B,CAAC;IAC9E,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE;QACZ,eAAe,EAAE,mBAAmB;QACpC,cAAc,EAAE,IAAI;KACrB;IACD,GAAG,EAAE;QACH,cAAc,EAAE;YACd,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,+BAA+B,CAAC,OAAO,EAAE;SAChF;KACF;IACD,GAAG,EAAE;QACH,UAAU,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE;QACzC,KAAK,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE;YAC1C,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC;YACnC,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACtD,MAAM,IAAI,KAAK,CACb,aAAa,WAAW,4EAA4E;sBAClG,oGAAoG;sBACpG,6FAA6F,CAChG,CAAC;YACJ,CAAC;YACD,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;YAErC,uEAAuE;YACvE,qEAAqE;YACrE,4BAA4B;YAC5B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC;YACxD,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YAE/E,OAAO;gBACL,MAAM,EAAE,OAAO;gBACf,oEAAoE;gBACpE,iEAAiE;gBACjE,UAAU,EAAE,GAAG,EAAE;oBACf,OAAO,CAAC,iBAAiB,EAAE,CAAC;gBAC9B,CAAC;aACF,CAAC;QACJ,CAAC;KACF;IACD;;;OAGG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,EAAE,cAAc,CAAC;QAChD,qBAAqB,EAAE,eAAe;KACvC;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ProviderDeploymentModel,\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n ProviderFrontendCspOriginBucket,\n ProviderTier,\n defineProviderMetadata,\n ENGINE_PROVIDER_ORIGIN,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendWebsiteProviderModule } from '../../website/frontend-website-provider-module.types';\n\n/**\n * PostHog product analytics for the marketing website.\n *\n * Like Sentry beside it, this declared `FRONTEND_SDK` and loaded nothing until\n * #332 — the website resolved its ref into a `data-*` attribute and stopped.\n *\n * ## Why `apiHost` is a DERIVED origin and not a listed one\n *\n * PostHog's ingest host is configuration: a region (`us`/`eu`), a reverse proxy\n * on the application's own domain — the vendor recommends one, so it is common\n * — or a self-hosted deployment. Listing hostnames here would be a guess about\n * the application's infrastructure that is wrong for every one of those cases,\n * and wrong in production only, because development is report-only.\n *\n * So the module says WHERE the origin is and the CLI reads it out of the\n * application's own `publicConfig.apiHost` when composing that service's policy.\n * Absent, it contributes nothing — which is correct: a website that has not\n * configured PostHog needs no origin for it.\n */\nexport const PostHogFrontendWebsiteProvider: FrontendWebsiteProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'posthog',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_PRODUCT_ANALYTICS],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {\n integrationKind: 'product-analytics',\n websiteRuntime: true,\n },\n csp: {\n derivedOrigins: [\n { publicConfigKey: 'apiHost', bucket: ProviderFrontendCspOriginBucket.CONNECT },\n ],\n },\n sdk: {\n descriptor: { packageName: 'posthog-js' },\n async activate({ providerRef, publicConfig }) {\n const apiKey = publicConfig.apiKey;\n if (typeof apiKey !== 'string' || apiKey.length === 0) {\n throw new Error(\n `Provider \"${providerRef}\" needs a PostHog project API key in its publicConfig.apiKey. Without one `\n + 'the SDK starts and captures nothing, which is indistinguishable from a site nobody visits. Supply '\n + \"it by mapping this provider's contribution in the application's own provider-contributions.\",\n );\n }\n const apiHost = publicConfig.apiHost;\n\n // DYNAMIC on purpose: `posthog-js` is a declared OPTIONAL peer of this\n // package, so it becomes its own chunk and only a surface that turns\n // analytics on pays for it.\n const { default: posthog } = await import('posthog-js');\n posthog.init(apiKey, typeof apiHost === 'string' ? { api_host: apiHost } : {});\n\n return {\n handle: posthog,\n // PostHog has no full shutdown; opting out is the strongest stop it\n // offers, and it is the one a consent withdrawal actually needs.\n deactivate: () => {\n posthog.opt_out_capturing();\n },\n };\n },\n },\n /**\n * Mirrors the authored `posthog` BACKEND profile. The browser SDK ingests to the same US or EU\n * cloud the backend provider names, so the region set is the operator's one choice.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1', 'eu-central-1'],\n vendorLegalEntityName: 'PostHog, Inc.',\n },\n};\n"]}
1
+ {"version":3,"file":"posthog.frontend-website.module.js","sourceRoot":"","sources":["../../../../src/providers/posthog/posthog.frontend-website.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,+BAA+B,EAC/B,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sCAAsC,CAAC;AAG9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAkC;IAC3E,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,SAAS;QACd,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,0BAA0B,CAAC;IAC9E,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE;QACZ,eAAe,EAAE,mBAAmB;QACpC,cAAc,EAAE,IAAI;KACrB;IACD,GAAG,EAAE;QACH,cAAc,EAAE;YACd,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,+BAA+B,CAAC,OAAO,EAAE;SAChF;KACF;IACD,GAAG,EAAE;QACH,UAAU,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE;QACzC,KAAK,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE;YAC1C,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC;YACnC,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACtD,MAAM,IAAI,KAAK,CACb,aAAa,WAAW,4EAA4E;sBAClG,oGAAoG;sBACpG,6FAA6F,CAChG,CAAC;YACJ,CAAC;YACD,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;YAErC,uEAAuE;YACvE,qEAAqE;YACrE,4BAA4B;YAC5B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC;YACxD,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YAE/E,OAAO;gBACL,MAAM,EAAE,OAAO;gBACf,oEAAoE;gBACpE,iEAAiE;gBACjE,UAAU,EAAE,GAAG,EAAE;oBACf,OAAO,CAAC,iBAAiB,EAAE,CAAC;gBAC9B,CAAC;aACF,CAAC;QACJ,CAAC;KACF;IACD;;;OAGG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,EAAE,cAAc,CAAC;QAChD,qBAAqB,EAAE,eAAe;KACvC;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ProviderDeploymentModel,\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n ProviderFrontendCspOriginBucket,\n ProviderTier,\n defineProviderMetadata,\n ENGINE_PROVIDER_ORIGIN,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendWebsiteProviderModule } from '../../website/frontend-website-provider-module.types';\n\n/**\n * PostHog product analytics for the marketing website.\n *\n * Like Sentry beside it, this declared `FRONTEND_SDK` and loaded nothing until\n * #332 — the website resolved its ref into a `data-*` attribute and stopped.\n *\n * ## Why `apiHost` is a DERIVED origin and not a listed one\n *\n * PostHog's ingest host is configuration: a region (`us`/`eu`), a reverse proxy\n * on the application's own domain — the vendor recommends one, so it is common\n * — or a self-hosted deployment. Listing hostnames here would be a guess about\n * the application's infrastructure that is wrong for every one of those cases,\n * and wrong in production only, because development is report-only.\n *\n * So the module says WHERE the origin is and the CLI reads it out of the\n * application's own `publicConfig.apiHost` when composing that service's policy.\n * Absent, it contributes nothing — which is correct: a website that has not\n * configured PostHog needs no origin for it.\n */\nexport const PostHogFrontendWebsiteProvider: FrontendWebsiteProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'posthog',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_PRODUCT_ANALYTICS],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {\n integrationKind: 'product-analytics',\n websiteRuntime: true,\n },\n csp: {\n derivedOrigins: [\n { publicConfigKey: 'apiHost', bucket: ProviderFrontendCspOriginBucket.CONNECT },\n ],\n },\n sdk: {\n descriptor: { packageName: 'posthog-js' },\n async activate({ providerRef, publicConfig }) {\n const apiKey = publicConfig.apiKey;\n if (typeof apiKey !== 'string' || apiKey.length === 0) {\n throw new Error(\n `Provider \"${providerRef}\" needs a PostHog project API key in its publicConfig.apiKey. Without one `\n + 'the SDK starts and captures nothing, which is indistinguishable from a site nobody visits. Supply '\n + \"it by mapping this provider's contribution in the application's own provider-contributions.\",\n );\n }\n const apiHost = publicConfig.apiHost;\n\n // DYNAMIC on purpose: `posthog-js` is a declared OPTIONAL peer of this\n // package, so it becomes its own chunk and only a surface that turns\n // analytics on pays for it.\n const { default: posthog } = await import('posthog-js');\n posthog.init(apiKey, typeof apiHost === 'string' ? { api_host: apiHost } : {});\n\n return {\n handle: posthog,\n // PostHog has no full shutdown; opting out is the strongest stop it\n // offers, and it is the one a consent withdrawal actually needs.\n deactivate: () => {\n posthog.opt_out_capturing();\n },\n };\n },\n },\n /**\n * Mirrors the authored `posthog` BACKEND profile. The browser SDK ingests to the same US or EU\n * cloud the backend provider names, so the region set is the operator's one choice.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1', 'eu-central-1'],\n vendorLegalEntityName: 'PostHog, Inc.',\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":"recaptcha.frontend-website.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/recaptcha/recaptcha.frontend-website.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAE1G,eAAO,MAAM,gCAAgC,EAAE,6BA8B9C,CAAC"}
1
+ {"version":3,"file":"recaptcha.frontend-website.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/recaptcha/recaptcha.frontend-website.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAE1G,eAAO,MAAM,gCAAgC,EAAE,6BA8B9C,CAAC"}
@@ -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,uBAAuB,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAG9L,MAAM,CAAC,MAAM,gCAAgC,GAAkC;IAC7E,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,WAAW;QAChB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,SAAS;QAC5B,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,gBAAgB,CAAC;IACpE,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE;QACZ,eAAe,EAAE,SAAS;QAC1B,cAAc,EAAE,IAAI;KACrB;IACD;;;;;;;;;;;OAWG;IACH,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 ProviderDeploymentModel, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderTier } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendWebsiteProviderModule } from '../../website/frontend-website-provider-module.types';\n\nexport const RecaptchaFrontendWebsiteProvider: FrontendWebsiteProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'recaptcha',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.CATALOGUE,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_CAPTCHA],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {\n integrationKind: 'captcha',\n websiteRuntime: true,\n },\n /**\n * Researched 2026-09-06, and the entity is deliberately NOT `Google LLC`.\n *\n * Google's role for reCAPTCHA changed from data CONTROLLER to data PROCESSOR on 2 April 2026.\n * Under the current terms the website operator is the controller and `Google Ireland Limited` is\n * the named processor for the EEA, with processing still reaching US servers under standard\n * contractual clauses. The sibling `google` provider carries `Google LLC` — same corporate group,\n * different contracting entity for this service, which is why the two refs are separate.\n *\n * `global` is the honest region: classic reCAPTCHA offers the operator NO data-residency choice,\n * so naming a datacentre would invent a decision nobody gets to make.\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-website.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,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAG9L,MAAM,CAAC,MAAM,gCAAgC,GAAkC;IAC7E,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,WAAW;QAChB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,SAAS;QAC5B,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,gBAAgB,CAAC;IACpE,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE;QACZ,eAAe,EAAE,SAAS;QAC1B,cAAc,EAAE,IAAI;KACrB;IACD;;;;;;;;;;;OAWG;IACH,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 ProviderDeploymentModel, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, defineProviderMetadata, ENGINE_PROVIDER_ORIGIN, ProviderTier } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendWebsiteProviderModule } from '../../website/frontend-website-provider-module.types';\n\nexport const RecaptchaFrontendWebsiteProvider: FrontendWebsiteProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'recaptcha',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.CATALOGUE,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_CAPTCHA],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {\n integrationKind: 'captcha',\n websiteRuntime: true,\n },\n /**\n * Researched 2026-09-06, and the entity is deliberately NOT `Google LLC`.\n *\n * Google's role for reCAPTCHA changed from data CONTROLLER to data PROCESSOR on 2 April 2026.\n * Under the current terms the website operator is the controller and `Google Ireland Limited` is\n * the named processor for the EEA, with processing still reaching US servers under standard\n * contractual clauses. The sibling `google` provider carries `Google LLC` — same corporate group,\n * different contracting entity for this service, which is why the two refs are separate.\n *\n * `global` is the honest region: classic reCAPTCHA offers the operator NO data-residency choice,\n * so naming a datacentre would invent a decision nobody gets to make.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['global'],\n vendorLegalEntityName: 'Google Ireland Limited',\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sentry.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/sentry/sentry.frontend-app.module.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,eAAO,MAAM,yBAAyB,EAAE,yBA0FvC,CAAC"}
1
+ {"version":3,"file":"sentry.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/sentry/sentry.frontend-app.module.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,eAAO,MAAM,yBAAyB,EAAE,yBA0FvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sentry.frontend-app.module.js","sourceRoot":"","sources":["../../../../../src/providers/sentry/sentry.frontend-app.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,+BAA+B,EAC/B,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,GAGvB,MAAM,sCAAsC,CAAC;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAA8B;IAClE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,yBAAyB,CAAC;IAC7E,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE;QACZ,eAAe,EAAE,0BAA0B;KAC5C;IACD,GAAG,EAAE;QACH,cAAc,EAAE;YACd,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,OAAO,EAAE;SAC5E;KACF;IACD,GAAG,EAAE;QACH,UAAU,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE;QAC9C,KAAK,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE;YAC1C,MAAM,GAAG,GAAG,YAAY,CAAC,GAAG,CAAC;YAC7B,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAChD,MAAM,IAAI,KAAK,CACb,aAAa,WAAW,2EAA2E;sBACjG,mGAAmG;sBACnG,+EAA+E,CAClF,CAAC;YACJ,CAAC;YAED,4EAA4E;YAC5E,0EAA0E;YAC1E,yBAAyB;YACzB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;YAC/C,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;YAEpC,MAAM,IAAI,GAAgC;gBACxC,WAAW,CAAC,MAA2B;oBACrC;;;;;;;;;;uBAUG;oBACH,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;oBACxC,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;oBACzB,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;wBAC/B,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;oBAC7B,CAAC;oBAED,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE;wBAC7B,IAAI,EAAE,MAAM,CAAC,IAAI;wBACjB,oEAAoE;wBACpE,uEAAuE;wBACvE,qEAAqE;wBACrE,QAAQ,EACN,MAAM,CAAC,cAAc,KAAK,SAAS;4BACjC,CAAC,CAAC,SAAS;4BACX,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,EAAE;qBAC3D,CAAC,CAAC;gBACL,CAAC;aACF,CAAC;YAEF,OAAO;gBACL,MAAM,EAAE,IAAI;gBACZ,UAAU,EAAE,KAAK,IAAI,EAAE;oBACrB,MAAM,MAAM,EAAE,KAAK,EAAE,CAAC;gBACxB,CAAC;aACF,CAAC;QACJ,CAAC;KACF;IACD;;;;;;;;;OASG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,WAAW,EAAE,uBAAuB,CAAC,aAAa,CAAC;QAC9F,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;QAC/B,qBAAqB,EAAE,2BAA2B;KACnD;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ProviderDeploymentModel,\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n ProviderFrontendCspOriginBucket,\n ProviderTier,\n defineProviderMetadata,\n ENGINE_PROVIDER_ORIGIN,\n type FrontendCrashReport,\n type FrontendErrorMonitoringSink,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\n/**\n * Sentry browser error monitoring for the SaaS APPLICATION frontend.\n *\n * Sibling of `sentry.frontend-website.module.ts`, and the two are deliberately\n * separate modules rather than one shared object with a surface flag: the website's\n * job is finished once `Sentry.init` installs the vendor's global handlers, and this\n * one's is not — see below. They also carry different capabilities in an\n * application's config (`services.website.providers` vs `services.app.providers`),\n * so a deployment can monitor one and not the other.\n *\n * ## Why an SDK alone would report nothing that matters here (#437)\n *\n * `Sentry.init` hooks `window.onerror` and `unhandledrejection`. A React ERROR\n * BOUNDARY catches the error before either fires — that is what a boundary is — so\n * on a surface built out of boundaries the vendor's global handlers see the\n * accidents and miss the crashes. Wildo's application frontend catches every render\n * error in `ErrorBoundary`, `RouterErrorBoundary` and `error-management`, and each\n * publishes `ERROR_OCCURED`.\n *\n * So this module's real contract is not `init` — it is the\n * `FrontendErrorMonitoringSink` it returns as its handle. The framework's bridge\n * subscribes to that bus once and calls `reportCrash`; this module translates the\n * framework's report into `captureException`. The vendor's global handlers stay\n * installed and still catch what escapes a boundary entirely.\n *\n * ## What is NOT enabled, and why nothing is set to disable it\n *\n * No `sendDefaultPii`, no `dataCollection`. Sentry's conservative posture is the\n * DEFAULT — with neither set the browser SDK sends no cookies, no user identity\n * fields, no IP address and no request bodies — so the correct action is to set\n * nothing rather than to set a flag `false`. `sendDefaultPii` is additionally\n * deprecated from SDK 10.54.0 in favour of `dataCollection`, and this repository\n * pins `@sentry/browser` at 10.73.0, so writing it would ship a deprecated option to\n * achieve a default.\n * spec-cite: Sentry JavaScript SDK docs, \"Data Collected\"\n * (https://docs.sentry.io/platforms/javascript/data-management/data-collected/),\n * read 2026-09-08.\n *\n * The residual is stated rather than assumed away: even at that default the browser\n * SDK attaches the page URL INCLUDING ITS QUERY STRING, the referrer, and recent\n * console output as breadcrumbs. An application whose URLs carry identifiers is\n * sending them here, and that is a property of the vendor rather than of this\n * module. It is the reason `FRONTEND_ERROR_MONITORING` is a capability an\n * application opts into per environment, not a framework default.\n *\n * ## The DSN, and why the CSP origin is DERIVED\n *\n * Identical to the website module's reasoning: a DSN is per application and often\n * per environment (`https://<key>@o0.ingest.<region>.sentry.io/<id>`), so no static\n * origin list on this module could contain it, and listing a vendor's public ingest\n * hosts would be a guess that is wrong for every self-hosted Sentry. The module\n * declares WHERE the origin lives; the CLI reads it out of `publicConfig.dsn` when\n * it composes the service's policy.\n */\nexport const SentryFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'sentry',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_ERROR_MONITORING],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {\n integrationKind: 'browser-error-monitoring',\n },\n csp: {\n derivedOrigins: [\n { publicConfigKey: 'dsn', bucket: ProviderFrontendCspOriginBucket.CONNECT },\n ],\n },\n sdk: {\n descriptor: { packageName: '@sentry/browser' },\n async activate({ providerRef, publicConfig }) {\n const dsn = publicConfig.dsn;\n if (typeof dsn !== 'string' || dsn.length === 0) {\n throw new Error(\n `Provider \"${providerRef}\" needs a Sentry DSN in its publicConfig.dsn. Without one the SDK starts `\n + 'and reports nothing, which is indistinguishable from a healthy application. Supply it by mapping '\n + \"this provider's contribution in the application's own provider-contributions.\",\n );\n }\n\n // DYNAMIC on purpose: `@sentry/browser` is a declared OPTIONAL peer of this\n // package, so it becomes its own chunk and only an application that turns\n // Sentry on pays for it.\n const Sentry = await import('@sentry/browser');\n const client = Sentry.init({ dsn });\n\n const sink: FrontendErrorMonitoringSink = {\n reportCrash(report: FrontendCrashReport): void {\n /*\n * Rebuilt as a real `Error` rather than passed as a plain object, because\n * that is the only shape from which Sentry derives a grouped ISSUE. Given a\n * plain object it records an unhelpful \"Non-Error exception captured\" with\n * no stack, so every crash in the application would collapse into one\n * issue — which is the same as having none.\n *\n * The stack is transplanted from the report: the error was constructed and\n * thrown somewhere else entirely, and a stack captured HERE would describe\n * this line, in the bridge, on every single crash.\n */\n const error = new Error(report.message);\n error.name = report.name;\n if (report.stack !== undefined) {\n error.stack = report.stack;\n }\n\n Sentry.captureException(error, {\n tags: report.tags,\n // React's component stack is not a JavaScript stack and must not be\n // merged into one. As `contexts` it renders as its own labelled block,\n // which is where someone reading the issue looks for \"which screen\".\n contexts:\n report.componentStack === undefined\n ? undefined\n : { react: { componentStack: report.componentStack } },\n });\n },\n };\n\n return {\n handle: sink,\n deactivate: async () => {\n await client?.close();\n },\n };\n },\n },\n /**\n * Same vendor, same research as the website module (2026-09-06): legal entity\n * `Functional Software, Inc.` from Sentry's own DPA, and regions given as the\n * vendor's OWN identifiers — the API subdomains `us` (Iowa, `us.sentry.io`) and\n * `de` (Frankfurt, `de.sentry.io`) — rather than mapped onto AWS-style labels,\n * which would be a jurisdiction determination the schema declines to model.\n *\n * Both deployment models, because self-hosted Sentry is a real product and the\n * region is then the operator's own.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.SELF_HOSTED, ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us', 'de'],\n vendorLegalEntityName: 'Functional Software, Inc.',\n },\n};\n"]}
1
+ {"version":3,"file":"sentry.frontend-app.module.js","sourceRoot":"","sources":["../../../../src/providers/sentry/sentry.frontend-app.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,+BAA+B,EAC/B,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,GAGvB,MAAM,sCAAsC,CAAC;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAA8B;IAClE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,yBAAyB,CAAC;IAC7E,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE;QACZ,eAAe,EAAE,0BAA0B;KAC5C;IACD,GAAG,EAAE;QACH,cAAc,EAAE;YACd,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,OAAO,EAAE;SAC5E;KACF;IACD,GAAG,EAAE;QACH,UAAU,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE;QAC9C,KAAK,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE;YAC1C,MAAM,GAAG,GAAG,YAAY,CAAC,GAAG,CAAC;YAC7B,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAChD,MAAM,IAAI,KAAK,CACb,aAAa,WAAW,2EAA2E;sBACjG,mGAAmG;sBACnG,+EAA+E,CAClF,CAAC;YACJ,CAAC;YAED,4EAA4E;YAC5E,0EAA0E;YAC1E,yBAAyB;YACzB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;YAC/C,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;YAEpC,MAAM,IAAI,GAAgC;gBACxC,WAAW,CAAC,MAA2B;oBACrC;;;;;;;;;;uBAUG;oBACH,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;oBACxC,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;oBACzB,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;wBAC/B,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;oBAC7B,CAAC;oBAED,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE;wBAC7B,IAAI,EAAE,MAAM,CAAC,IAAI;wBACjB,oEAAoE;wBACpE,uEAAuE;wBACvE,qEAAqE;wBACrE,QAAQ,EACN,MAAM,CAAC,cAAc,KAAK,SAAS;4BACjC,CAAC,CAAC,SAAS;4BACX,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,EAAE;qBAC3D,CAAC,CAAC;gBACL,CAAC;aACF,CAAC;YAEF,OAAO;gBACL,MAAM,EAAE,IAAI;gBACZ,UAAU,EAAE,KAAK,IAAI,EAAE;oBACrB,MAAM,MAAM,EAAE,KAAK,EAAE,CAAC;gBACxB,CAAC;aACF,CAAC;QACJ,CAAC;KACF;IACD;;;;;;;;;OASG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,WAAW,EAAE,uBAAuB,CAAC,aAAa,CAAC;QAC9F,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;QAC/B,qBAAqB,EAAE,2BAA2B;KACnD;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ProviderDeploymentModel,\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n ProviderFrontendCspOriginBucket,\n ProviderTier,\n defineProviderMetadata,\n ENGINE_PROVIDER_ORIGIN,\n type FrontendCrashReport,\n type FrontendErrorMonitoringSink,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\n/**\n * Sentry browser error monitoring for the SaaS APPLICATION frontend.\n *\n * Sibling of `sentry.frontend-website.module.ts`, and the two are deliberately\n * separate modules rather than one shared object with a surface flag: the website's\n * job is finished once `Sentry.init` installs the vendor's global handlers, and this\n * one's is not — see below. They also carry different capabilities in an\n * application's config (`services.website.providers` vs `services.app.providers`),\n * so a deployment can monitor one and not the other.\n *\n * ## Why an SDK alone would report nothing that matters here (#437)\n *\n * `Sentry.init` hooks `window.onerror` and `unhandledrejection`. A React ERROR\n * BOUNDARY catches the error before either fires — that is what a boundary is — so\n * on a surface built out of boundaries the vendor's global handlers see the\n * accidents and miss the crashes. Wildo's application frontend catches every render\n * error in `ErrorBoundary`, `RouterErrorBoundary` and `error-management`, and each\n * publishes `ERROR_OCCURED`.\n *\n * So this module's real contract is not `init` — it is the\n * `FrontendErrorMonitoringSink` it returns as its handle. The framework's bridge\n * subscribes to that bus once and calls `reportCrash`; this module translates the\n * framework's report into `captureException`. The vendor's global handlers stay\n * installed and still catch what escapes a boundary entirely.\n *\n * ## What is NOT enabled, and why nothing is set to disable it\n *\n * No `sendDefaultPii`, no `dataCollection`. Sentry's conservative posture is the\n * DEFAULT — with neither set the browser SDK sends no cookies, no user identity\n * fields, no IP address and no request bodies — so the correct action is to set\n * nothing rather than to set a flag `false`. `sendDefaultPii` is additionally\n * deprecated from SDK 10.54.0 in favour of `dataCollection`, and this repository\n * pins `@sentry/browser` at 10.73.0, so writing it would ship a deprecated option to\n * achieve a default.\n * spec-cite: Sentry JavaScript SDK docs, \"Data Collected\"\n * (https://docs.sentry.io/platforms/javascript/data-management/data-collected/),\n * read 2026-09-08.\n *\n * The residual is stated rather than assumed away: even at that default the browser\n * SDK attaches the page URL INCLUDING ITS QUERY STRING, the referrer, and recent\n * console output as breadcrumbs. An application whose URLs carry identifiers is\n * sending them here, and that is a property of the vendor rather than of this\n * module. It is the reason `FRONTEND_ERROR_MONITORING` is a capability an\n * application opts into per environment, not a framework default.\n *\n * ## The DSN, and why the CSP origin is DERIVED\n *\n * Identical to the website module's reasoning: a DSN is per application and often\n * per environment (`https://<key>@o0.ingest.<region>.sentry.io/<id>`), so no static\n * origin list on this module could contain it, and listing a vendor's public ingest\n * hosts would be a guess that is wrong for every self-hosted Sentry. The module\n * declares WHERE the origin lives; the CLI reads it out of `publicConfig.dsn` when\n * it composes the service's policy.\n */\nexport const SentryFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'sentry',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_ERROR_MONITORING],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {\n integrationKind: 'browser-error-monitoring',\n },\n csp: {\n derivedOrigins: [\n { publicConfigKey: 'dsn', bucket: ProviderFrontendCspOriginBucket.CONNECT },\n ],\n },\n sdk: {\n descriptor: { packageName: '@sentry/browser' },\n async activate({ providerRef, publicConfig }) {\n const dsn = publicConfig.dsn;\n if (typeof dsn !== 'string' || dsn.length === 0) {\n throw new Error(\n `Provider \"${providerRef}\" needs a Sentry DSN in its publicConfig.dsn. Without one the SDK starts `\n + 'and reports nothing, which is indistinguishable from a healthy application. Supply it by mapping '\n + \"this provider's contribution in the application's own provider-contributions.\",\n );\n }\n\n // DYNAMIC on purpose: `@sentry/browser` is a declared OPTIONAL peer of this\n // package, so it becomes its own chunk and only an application that turns\n // Sentry on pays for it.\n const Sentry = await import('@sentry/browser');\n const client = Sentry.init({ dsn });\n\n const sink: FrontendErrorMonitoringSink = {\n reportCrash(report: FrontendCrashReport): void {\n /*\n * Rebuilt as a real `Error` rather than passed as a plain object, because\n * that is the only shape from which Sentry derives a grouped ISSUE. Given a\n * plain object it records an unhelpful \"Non-Error exception captured\" with\n * no stack, so every crash in the application would collapse into one\n * issue — which is the same as having none.\n *\n * The stack is transplanted from the report: the error was constructed and\n * thrown somewhere else entirely, and a stack captured HERE would describe\n * this line, in the bridge, on every single crash.\n */\n const error = new Error(report.message);\n error.name = report.name;\n if (report.stack !== undefined) {\n error.stack = report.stack;\n }\n\n Sentry.captureException(error, {\n tags: report.tags,\n // React's component stack is not a JavaScript stack and must not be\n // merged into one. As `contexts` it renders as its own labelled block,\n // which is where someone reading the issue looks for \"which screen\".\n contexts:\n report.componentStack === undefined\n ? undefined\n : { react: { componentStack: report.componentStack } },\n });\n },\n };\n\n return {\n handle: sink,\n deactivate: async () => {\n await client?.close();\n },\n };\n },\n },\n /**\n * Same vendor, same research as the website module (2026-09-06): legal entity\n * `Functional Software, Inc.` from Sentry's own DPA, and regions given as the\n * vendor's OWN identifiers — the API subdomains `us` (Iowa, `us.sentry.io`) and\n * `de` (Frankfurt, `de.sentry.io`) — rather than mapped onto AWS-style labels,\n * which would be a jurisdiction determination the schema declines to model.\n *\n * Both deployment models, because self-hosted Sentry is a real product and the\n * region is then the operator's own.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.SELF_HOSTED, ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us', 'de'],\n vendorLegalEntityName: 'Functional Software, Inc.',\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sentry.frontend-website.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/sentry/sentry.frontend-website.module.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAE1G;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,6BAA6B,EAAE,6BA8D3C,CAAC"}
1
+ {"version":3,"file":"sentry.frontend-website.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/sentry/sentry.frontend-website.module.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAE1G;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,6BAA6B,EAAE,6BA8D3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sentry.frontend-website.module.js","sourceRoot":"","sources":["../../../../../src/providers/sentry/sentry.frontend-website.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,+BAA+B,EAC/B,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sCAAsC,CAAC;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAkC;IAC1E,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,yBAAyB,CAAC;IAC7E,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE;QACZ,eAAe,EAAE,0BAA0B;QAC3C,cAAc,EAAE,IAAI;KACrB;IACD,GAAG,EAAE;QACH,cAAc,EAAE;YACd,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,OAAO,EAAE;SAC5E;KACF;IACD,GAAG,EAAE;QACH,UAAU,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE;QAC9C,KAAK,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE;YAC1C,MAAM,GAAG,GAAG,YAAY,CAAC,GAAG,CAAC;YAC7B,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAChD,MAAM,IAAI,KAAK,CACb,aAAa,WAAW,2EAA2E;sBACjG,iGAAiG;sBACjG,0EAA0E,CAC7E,CAAC;YACJ,CAAC;YAED,uEAAuE;YACvE,0EAA0E;YAC1E,0EAA0E;YAC1E,wEAAwE;YACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;YAC/C,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;YAEpC,OAAO;gBACL,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE,KAAK,IAAI,EAAE;oBACrB,MAAM,MAAM,EAAE,KAAK,EAAE,CAAC;gBACxB,CAAC;aACF,CAAC;QACJ,CAAC;KACF;IACD;;;;;;;;;;;OAWG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,WAAW,EAAE,uBAAuB,CAAC,aAAa,CAAC;QAC9F,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;QAC/B,qBAAqB,EAAE,2BAA2B;KACnD;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ProviderDeploymentModel,\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n ProviderFrontendCspOriginBucket,\n ProviderTier,\n defineProviderMetadata,\n ENGINE_PROVIDER_ORIGIN,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendWebsiteProviderModule } from '../../website/frontend-website-provider-module.types';\n\n/**\n * Sentry browser error monitoring for the marketing website.\n *\n * `FRONTEND_SDK` was a LABEL on this module until #332: the website resolved\n * this provider's ref, stamped it into a `data-*` attribute on the page root,\n * and loaded nothing. It now declares the package, loads it on demand and\n * starts it.\n *\n * ## The DSN, and why the CSP origin is DERIVED rather than listed\n *\n * Sentry sends to the host inside the DSN, and a DSN is per APPLICATION and\n * often per ENVIRONMENT — `https://<key>@o0.ingest.<region>.sentry.io/<id>`.\n * No static list on this module can contain it. Listing a vendor's public\n * ingest hostnames here instead would be a guess about someone else's\n * infrastructure, wrong for every self-hosted Sentry, and wrong in production\n * only.\n *\n * So the module declares WHERE the origin is rather than WHAT it is, and the\n * CLI reads it out of the application's own `publicConfig.dsn` when it composes\n * that service's policy. The application authors the DSN once, and the origin\n * it implies cannot drift from it.\n *\n * The application supplies `dsn` by mapping this contribution in its own\n * `provider-contributions.ts`; without one the SDK would start and collect\n * nothing, so activation refuses instead — the runner isolates that failure and\n * reports it, and no other provider is affected.\n */\nexport const SentryFrontendWebsiteProvider: FrontendWebsiteProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'sentry',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_ERROR_MONITORING],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {\n integrationKind: 'browser-error-monitoring',\n websiteRuntime: true,\n },\n csp: {\n derivedOrigins: [\n { publicConfigKey: 'dsn', bucket: ProviderFrontendCspOriginBucket.CONNECT },\n ],\n },\n sdk: {\n descriptor: { packageName: '@sentry/browser' },\n async activate({ providerRef, publicConfig }) {\n const dsn = publicConfig.dsn;\n if (typeof dsn !== 'string' || dsn.length === 0) {\n throw new Error(\n `Provider \"${providerRef}\" needs a Sentry DSN in its publicConfig.dsn. Without one the SDK starts `\n + 'and reports nothing, which is indistinguishable from a healthy site. Supply it by mapping this '\n + \"provider's contribution in the application's own provider-contributions.\",\n );\n }\n\n // DYNAMIC on purpose: `@sentry/browser` is a declared OPTIONAL peer of\n // this package, so it becomes its own chunk and only a surface that turns\n // Sentry on pays for it. A static import would land it in every page that\n // touches this closure and break outright wherever it is not installed.\n const Sentry = await import('@sentry/browser');\n const client = Sentry.init({ dsn });\n\n return {\n handle: client,\n deactivate: async () => {\n await client?.close();\n },\n };\n },\n },\n /**\n * Researched 2026-09-06; this vendor has NO backend counterpart to mirror.\n *\n * Legal entity from Sentry's own DPA — `Functional Software, Inc.` trading as Sentry. Regions are\n * the vendor's OWN identifiers, which are the API subdomains rather than cloud labels: `us`\n * (Iowa, `us.sentry.io`) and `de` (Frankfurt, `de.sentry.io`). Written that way deliberately —\n * mapping a vendor's datacentre onto an AWS-style label is the jurisdiction determination the\n * schema declines to model.\n *\n * The only frontend provider here declaring BOTH deployment models: self-hosted Sentry is a real\n * product, so an operator can run it themselves and the region then becomes theirs.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.SELF_HOSTED, ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us', 'de'],\n vendorLegalEntityName: 'Functional Software, Inc.',\n },\n};\n"]}
1
+ {"version":3,"file":"sentry.frontend-website.module.js","sourceRoot":"","sources":["../../../../src/providers/sentry/sentry.frontend-website.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,+BAA+B,EAC/B,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sCAAsC,CAAC;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAkC;IAC1E,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,yBAAyB,CAAC;IAC7E,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE;QACZ,eAAe,EAAE,0BAA0B;QAC3C,cAAc,EAAE,IAAI;KACrB;IACD,GAAG,EAAE;QACH,cAAc,EAAE;YACd,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,OAAO,EAAE;SAC5E;KACF;IACD,GAAG,EAAE;QACH,UAAU,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE;QAC9C,KAAK,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE;YAC1C,MAAM,GAAG,GAAG,YAAY,CAAC,GAAG,CAAC;YAC7B,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAChD,MAAM,IAAI,KAAK,CACb,aAAa,WAAW,2EAA2E;sBACjG,iGAAiG;sBACjG,0EAA0E,CAC7E,CAAC;YACJ,CAAC;YAED,uEAAuE;YACvE,0EAA0E;YAC1E,0EAA0E;YAC1E,wEAAwE;YACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;YAC/C,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;YAEpC,OAAO;gBACL,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE,KAAK,IAAI,EAAE;oBACrB,MAAM,MAAM,EAAE,KAAK,EAAE,CAAC;gBACxB,CAAC;aACF,CAAC;QACJ,CAAC;KACF;IACD;;;;;;;;;;;OAWG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,WAAW,EAAE,uBAAuB,CAAC,aAAa,CAAC;QAC9F,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;QAC/B,qBAAqB,EAAE,2BAA2B;KACnD;CACF,CAAC","sourcesContent":["import { ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME } from '../../engine-frontend-providers-package';\nimport {\n ProviderDeploymentModel,\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n ProviderFrontendCspOriginBucket,\n ProviderTier,\n defineProviderMetadata,\n ENGINE_PROVIDER_ORIGIN,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendWebsiteProviderModule } from '../../website/frontend-website-provider-module.types';\n\n/**\n * Sentry browser error monitoring for the marketing website.\n *\n * `FRONTEND_SDK` was a LABEL on this module until #332: the website resolved\n * this provider's ref, stamped it into a `data-*` attribute on the page root,\n * and loaded nothing. It now declares the package, loads it on demand and\n * starts it.\n *\n * ## The DSN, and why the CSP origin is DERIVED rather than listed\n *\n * Sentry sends to the host inside the DSN, and a DSN is per APPLICATION and\n * often per ENVIRONMENT — `https://<key>@o0.ingest.<region>.sentry.io/<id>`.\n * No static list on this module can contain it. Listing a vendor's public\n * ingest hostnames here instead would be a guess about someone else's\n * infrastructure, wrong for every self-hosted Sentry, and wrong in production\n * only.\n *\n * So the module declares WHERE the origin is rather than WHAT it is, and the\n * CLI reads it out of the application's own `publicConfig.dsn` when it composes\n * that service's policy. The application authors the DSN once, and the origin\n * it implies cannot drift from it.\n *\n * The application supplies `dsn` by mapping this contribution in its own\n * `provider-contributions.ts`; without one the SDK would start and collect\n * nothing, so activation refuses instead — the runner isolates that failure and\n * reports it, and no other provider is affected.\n */\nexport const SentryFrontendWebsiteProvider: FrontendWebsiteProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'sentry',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_ERROR_MONITORING],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {\n integrationKind: 'browser-error-monitoring',\n websiteRuntime: true,\n },\n csp: {\n derivedOrigins: [\n { publicConfigKey: 'dsn', bucket: ProviderFrontendCspOriginBucket.CONNECT },\n ],\n },\n sdk: {\n descriptor: { packageName: '@sentry/browser' },\n async activate({ providerRef, publicConfig }) {\n const dsn = publicConfig.dsn;\n if (typeof dsn !== 'string' || dsn.length === 0) {\n throw new Error(\n `Provider \"${providerRef}\" needs a Sentry DSN in its publicConfig.dsn. Without one the SDK starts `\n + 'and reports nothing, which is indistinguishable from a healthy site. Supply it by mapping this '\n + \"provider's contribution in the application's own provider-contributions.\",\n );\n }\n\n // DYNAMIC on purpose: `@sentry/browser` is a declared OPTIONAL peer of\n // this package, so it becomes its own chunk and only a surface that turns\n // Sentry on pays for it. A static import would land it in every page that\n // touches this closure and break outright wherever it is not installed.\n const Sentry = await import('@sentry/browser');\n const client = Sentry.init({ dsn });\n\n return {\n handle: client,\n deactivate: async () => {\n await client?.close();\n },\n };\n },\n },\n /**\n * Researched 2026-09-06; this vendor has NO backend counterpart to mirror.\n *\n * Legal entity from Sentry's own DPA — `Functional Software, Inc.` trading as Sentry. Regions are\n * the vendor's OWN identifiers, which are the API subdomains rather than cloud labels: `us`\n * (Iowa, `us.sentry.io`) and `de` (Frankfurt, `de.sentry.io`). Written that way deliberately —\n * mapping a vendor's datacentre onto an AWS-style label is the jurisdiction determination the\n * schema declines to model.\n *\n * The only frontend provider here declaring BOTH deployment models: self-hosted Sentry is a real\n * product, so an operator can run it themselves and the region then becomes theirs.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.SELF_HOSTED, ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us', 'de'],\n vendorLegalEntityName: 'Functional Software, Inc.',\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/stripe/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/stripe/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stripe.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/stripe/stripe.frontend-app.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F,eAAO,MAAM,yBAAyB,EAAE,yBAoBvC,CAAC"}
1
+ {"version":3,"file":"stripe.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/stripe/stripe.frontend-app.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F,eAAO,MAAM,yBAAyB,EAAE,yBAoBvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stripe.frontend-app.module.js","sourceRoot":"","sources":["../../../../../src/providers/stripe/stripe.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,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAG9L,MAAM,CAAC,MAAM,yBAAyB,GAA8B;IAClE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,OAAO,CAAC;IAC3D,SAAS,EAAE,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;IACvD,YAAY,EAAE;QACZ,kBAAkB,EAAE,QAAQ;KAC7B;IACD;;OAEG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;QAC7C,qBAAqB,EAAE,cAAc;KACtC;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, ProviderTier } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\nexport const StripeFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'stripe',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.BILLING],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.BILLING_PROVIDER],\n publicConfig: {\n billingProviderRef: 'stripe',\n },\n /**\n * Mirrors the authored `stripe` BACKEND profile.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1', 'eu-west-1'],\n vendorLegalEntityName: 'Stripe, Inc.',\n },\n};\n"]}
1
+ {"version":3,"file":"stripe.frontend-app.module.js","sourceRoot":"","sources":["../../../../src/providers/stripe/stripe.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,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAG9L,MAAM,CAAC,MAAM,yBAAyB,GAA8B;IAClE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,OAAO,CAAC;IAC3D,SAAS,EAAE,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;IACvD,YAAY,EAAE;QACZ,kBAAkB,EAAE,QAAQ;KAC7B;IACD;;OAEG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;QAC7C,qBAAqB,EAAE,cAAc;KACtC;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, ProviderTier } from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\nexport const StripeFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'stripe',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.MAIN,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.BILLING],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.BILLING_PROVIDER],\n publicConfig: {\n billingProviderRef: 'stripe',\n },\n /**\n * Mirrors the authored `stripe` BACKEND profile.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1', 'eu-west-1'],\n vendorLegalEntityName: 'Stripe, Inc.',\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,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EACV,mBAAmB,EACnB,6BAA6B,EAC9B,MAAM,mCAAmC,CAAC;AAE3C,gEAAgE;AAChE,oBAAY,2CAA2C;IACrD;;;;OAIG;IACH,mBAAmB,wBAAwB;IAC3C,6EAA6E;IAC7E,iBAAiB,sBAAsB;IACvC,6EAA6E;IAC7E,mBAAmB,wBAAwB;CAC5C;AAED,MAAM,WAAW,uCAAuC;IACtD,QAAQ,CAAC,IAAI,EAAE,2CAA2C,CAAC;IAC3D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,4EAA4E;AAC5E,UAAU,wBAAwB;IAChC,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACjD,GAAG,CAAC,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,yEAAyE;IACzE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAAC;IACrD,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,uCAAuC,KAAK,IAAI,CAAC;IACtF;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC;CACpC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,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,CAgExC"}
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,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EACV,mBAAmB,EACnB,6BAA6B,EAC9B,MAAM,mCAAmC,CAAC;AAE3C,gEAAgE;AAChE,oBAAY,2CAA2C;IACrD;;;;OAIG;IACH,mBAAmB,wBAAwB;IAC3C,6EAA6E;IAC7E,iBAAiB,sBAAsB;IACvC,6EAA6E;IAC7E,mBAAmB,wBAAwB;CAC5C;AAED,MAAM,WAAW,uCAAuC;IACtD,QAAQ,CAAC,IAAI,EAAE,2CAA2C,CAAC;IAC3D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,4EAA4E;AAC5E,UAAU,wBAAwB;IAChC,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACjD,GAAG,CAAC,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,yEAAyE;IACzE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAAC;IACrD,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,uCAAuC,KAAK,IAAI,CAAC;IACtF;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC;CACpC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,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,CAgExC"}
@@ -1 +1 @@
1
- {"version":3,"file":"activate-frontend-provider-sdks.js","sourceRoot":"","sources":["../../../../src/shared/activate-frontend-provider-sdks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAQH,gEAAgE;AAChE,MAAM,CAAN,IAAY,2CAWX;AAXD,WAAY,2CAA2C;IACrD;;;;OAIG;IACH,0FAA2C,CAAA;IAC3C,6EAA6E;IAC7E,sFAAuC,CAAA;IACvC,6EAA6E;IAC7E,0FAA2C,CAAA;AAC7C,CAAC,EAXW,2CAA2C,KAA3C,2CAA2C,QAWtD;AAyCD,SAAS,gBAAgB;IACvB,OAAO,OAAO,UAAU,KAAK,WAAW,IAAI,OAAQ,UAAmC,CAAC,MAAM,KAAK,WAAW,CAAC;AACjH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,KAAwC;IAExC,MAAM,KAAK,GAAG,CAAC,UAAmD,EAAQ,EAAE;QAC1E,KAAK,CAAC,YAAY,EAAE,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC,CAAC;IACF,MAAM,WAAW,GAAG,IAAI,GAAG,EAAyC,CAAC;IACrE,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,IAAI,gBAAgB,CAAC;IAEtD,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;QACnC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;QACvB,IAAI,GAAG,KAAK,SAAS;YAAE,SAAS;QAEhC,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;QAExC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;YACjB,KAAK,CAAC;gBACJ,IAAI,EAAE,2CAA2C,CAAC,mBAAmB;gBACrE,WAAW;gBACX,OAAO,EACL,aAAa,WAAW,+BAA+B,GAAG,CAAC,UAAU,CAAC,WAAW,uBAAuB;sBACtG,mFAAmF;aACxF,CAAC,CAAC;YACH,SAAS;QACX,CAAC;QAED,IAAI,CAAC;YACH,WAAW,CAAC,GAAG,CACb,WAAW,EACX,MAAM,GAAG,CAAC,QAAQ,CAAC;gBACjB,WAAW;gBACX,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,EAAE;aACxC,CAAC,CACH,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,KAAK,CAAC;gBACJ,IAAI,EAAE,2CAA2C,CAAC,iBAAiB;gBACnE,WAAW;gBACX,OAAO,EACL,aAAa,WAAW,yCAAyC,GAAG,CAAC,UAAU,CAAC,WAAW,SAAS;sBAClG,sFAAsF;gBAC1F,KAAK;aACN,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO;QACL,WAAW;QACX,KAAK,CAAC,aAAa;YACjB,KAAK,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,WAAW,EAAE,CAAC;gBACpD,IAAI,UAAU,CAAC,UAAU,KAAK,SAAS;oBAAE,SAAS;gBAClD,IAAI,CAAC;oBACH,MAAM,UAAU,CAAC,UAAU,EAAE,CAAC;gBAChC,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,KAAK,CAAC;wBACJ,IAAI,EAAE,2CAA2C,CAAC,mBAAmB;wBACrE,WAAW;wBACX,OAAO,EAAE,aAAa,WAAW,0DAA0D;wBAC3F,KAAK;qBACN,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YACD,WAAW,CAAC,KAAK,EAAE,CAAC;QACtB,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 type { AppFrontendType } from '@wildo-ai/saas-models/public-runtime';\nimport type {\n ProviderFrontendSdk,\n ProviderFrontendSdkActivation,\n} from './frontend-provider-surface.types';\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\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 publicConfig?: Readonly<Record<string, 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 * 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 if (!isBrowser()) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.SKIPPED_OFF_BROWSER,\n providerRef,\n message:\n `Provider \"${providerRef}\" declares the SDK package \"${sdk.descriptor.packageName}\" 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 activations.set(\n providerRef,\n await sdk.activate({\n providerRef,\n surface: input.surface,\n publicConfig: module.publicConfig ?? {},\n }),\n );\n } catch (cause) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.ACTIVATION_FAILED,\n providerRef,\n message:\n `Provider \"${providerRef}\" failed to activate its SDK package \"${sdk.descriptor.packageName}\". Its `\n + 'capability is unavailable on this surface; every other provider was 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"]}
1
+ {"version":3,"file":"activate-frontend-provider-sdks.js","sourceRoot":"","sources":["../../../src/shared/activate-frontend-provider-sdks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAQH,gEAAgE;AAChE,MAAM,CAAN,IAAY,2CAWX;AAXD,WAAY,2CAA2C;IACrD;;;;OAIG;IACH,0FAA2C,CAAA;IAC3C,6EAA6E;IAC7E,sFAAuC,CAAA;IACvC,6EAA6E;IAC7E,0FAA2C,CAAA;AAC7C,CAAC,EAXW,2CAA2C,KAA3C,2CAA2C,QAWtD;AAyCD,SAAS,gBAAgB;IACvB,OAAO,OAAO,UAAU,KAAK,WAAW,IAAI,OAAQ,UAAmC,CAAC,MAAM,KAAK,WAAW,CAAC;AACjH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,KAAwC;IAExC,MAAM,KAAK,GAAG,CAAC,UAAmD,EAAQ,EAAE;QAC1E,KAAK,CAAC,YAAY,EAAE,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC,CAAC;IACF,MAAM,WAAW,GAAG,IAAI,GAAG,EAAyC,CAAC;IACrE,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,IAAI,gBAAgB,CAAC;IAEtD,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;QACnC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;QACvB,IAAI,GAAG,KAAK,SAAS;YAAE,SAAS;QAEhC,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;QAExC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;YACjB,KAAK,CAAC;gBACJ,IAAI,EAAE,2CAA2C,CAAC,mBAAmB;gBACrE,WAAW;gBACX,OAAO,EACL,aAAa,WAAW,+BAA+B,GAAG,CAAC,UAAU,CAAC,WAAW,uBAAuB;sBACtG,mFAAmF;aACxF,CAAC,CAAC;YACH,SAAS;QACX,CAAC;QAED,IAAI,CAAC;YACH,WAAW,CAAC,GAAG,CACb,WAAW,EACX,MAAM,GAAG,CAAC,QAAQ,CAAC;gBACjB,WAAW;gBACX,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,EAAE;aACxC,CAAC,CACH,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,KAAK,CAAC;gBACJ,IAAI,EAAE,2CAA2C,CAAC,iBAAiB;gBACnE,WAAW;gBACX,OAAO,EACL,aAAa,WAAW,yCAAyC,GAAG,CAAC,UAAU,CAAC,WAAW,SAAS;sBAClG,sFAAsF;gBAC1F,KAAK;aACN,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO;QACL,WAAW;QACX,KAAK,CAAC,aAAa;YACjB,KAAK,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,WAAW,EAAE,CAAC;gBACpD,IAAI,UAAU,CAAC,UAAU,KAAK,SAAS;oBAAE,SAAS;gBAClD,IAAI,CAAC;oBACH,MAAM,UAAU,CAAC,UAAU,EAAE,CAAC;gBAChC,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,KAAK,CAAC;wBACJ,IAAI,EAAE,2CAA2C,CAAC,mBAAmB;wBACrE,WAAW;wBACX,OAAO,EAAE,aAAa,WAAW,0DAA0D;wBAC3F,KAAK;qBACN,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YACD,WAAW,CAAC,KAAK,EAAE,CAAC;QACtB,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 type { AppFrontendType } from '@wildo-ai/saas-models/public-runtime';\nimport type {\n ProviderFrontendSdk,\n ProviderFrontendSdkActivation,\n} from './frontend-provider-surface.types';\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\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 publicConfig?: Readonly<Record<string, 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 * 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 if (!isBrowser()) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.SKIPPED_OFF_BROWSER,\n providerRef,\n message:\n `Provider \"${providerRef}\" declares the SDK package \"${sdk.descriptor.packageName}\" 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 activations.set(\n providerRef,\n await sdk.activate({\n providerRef,\n surface: input.surface,\n publicConfig: module.publicConfig ?? {},\n }),\n );\n } catch (cause) {\n raise({\n kind: FrontendProviderSdkActivationDiagnosticKind.ACTIVATION_FAILED,\n providerRef,\n message:\n `Provider \"${providerRef}\" failed to activate its SDK package \"${sdk.descriptor.packageName}\". Its `\n + 'capability is unavailable on this surface; every other provider was 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"]}