@wildo-ai/external-connectors-public 1.1.2 → 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 (141) hide show
  1. package/dist/esm/.native.tsbuildinfo +1 -0
  2. package/dist/esm/app/compose-frontend-app-providers.d.ts.map +1 -1
  3. package/dist/esm/app/compose-frontend-app-providers.js +5 -2
  4. package/dist/esm/app/compose-frontend-app-providers.js.map +1 -1
  5. package/dist/esm/app/compose-hydrated-frontend-app-providers.d.ts +33 -0
  6. package/dist/esm/app/compose-hydrated-frontend-app-providers.d.ts.map +1 -0
  7. package/dist/esm/app/compose-hydrated-frontend-app-providers.js +41 -0
  8. package/dist/esm/app/compose-hydrated-frontend-app-providers.js.map +1 -0
  9. package/dist/esm/app/engine-frontend-app-provider-registry.d.ts.map +1 -1
  10. package/dist/esm/app/engine-frontend-app-provider-registry.js +8 -0
  11. package/dist/esm/app/engine-frontend-app-provider-registry.js.map +1 -1
  12. package/dist/esm/app/frontend-app-provider-module.types.d.ts +141 -15
  13. package/dist/esm/app/frontend-app-provider-module.types.d.ts.map +1 -1
  14. package/dist/esm/app/frontend-app-provider-module.types.js +7 -6
  15. package/dist/esm/app/frontend-app-provider-module.types.js.map +1 -1
  16. package/dist/esm/app/frontend-app-provider-registry.types.d.ts.map +1 -1
  17. package/dist/esm/app/index.d.ts +4 -0
  18. package/dist/esm/app/index.d.ts.map +1 -1
  19. package/dist/esm/app/index.js +4 -0
  20. package/dist/esm/app/index.js.map +1 -1
  21. package/dist/esm/companion-exports.d.ts +71 -13
  22. package/dist/esm/companion-exports.d.ts.map +1 -1
  23. package/dist/esm/companion-exports.js +130 -18
  24. package/dist/esm/companion-exports.js.map +1 -1
  25. package/dist/esm/engine-frontend-providers-package.d.ts +7 -0
  26. package/dist/esm/engine-frontend-providers-package.d.ts.map +1 -0
  27. package/dist/esm/engine-frontend-providers-package.js +7 -0
  28. package/dist/esm/engine-frontend-providers-package.js.map +1 -0
  29. package/dist/esm/providers/algolia/algolia.frontend-techdoc.module.d.ts.map +1 -1
  30. package/dist/esm/providers/algolia/algolia.frontend-techdoc.module.js +26 -4
  31. package/dist/esm/providers/algolia/algolia.frontend-techdoc.module.js.map +1 -1
  32. package/dist/esm/providers/algolia/index.d.ts.map +1 -1
  33. package/dist/esm/providers/apple/apple.frontend-app.module.d.ts.map +1 -1
  34. package/dist/esm/providers/apple/apple.frontend-app.module.js +16 -4
  35. package/dist/esm/providers/apple/apple.frontend-app.module.js.map +1 -1
  36. package/dist/esm/providers/apple/index.d.ts.map +1 -1
  37. package/dist/esm/providers/github/github.frontend-app.module.d.ts.map +1 -1
  38. package/dist/esm/providers/github/github.frontend-app.module.js +15 -4
  39. package/dist/esm/providers/github/github.frontend-app.module.js.map +1 -1
  40. package/dist/esm/providers/github/index.d.ts.map +1 -1
  41. package/dist/esm/providers/google/google.frontend-app.module.d.ts +9 -0
  42. package/dist/esm/providers/google/google.frontend-app.module.d.ts.map +1 -1
  43. package/dist/esm/providers/google/google.frontend-app.module.js +28 -4
  44. package/dist/esm/providers/google/google.frontend-app.module.js.map +1 -1
  45. package/dist/esm/providers/google/index.d.ts.map +1 -1
  46. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.d.ts +17 -0
  47. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.d.ts.map +1 -0
  48. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.js +66 -0
  49. package/dist/esm/providers/google-drive/google-drive.frontend-app.module.js.map +1 -0
  50. package/dist/esm/providers/google-drive/index.d.ts +2 -0
  51. package/dist/esm/providers/google-drive/index.d.ts.map +1 -0
  52. package/dist/esm/providers/google-drive/index.js +2 -0
  53. package/dist/esm/providers/google-drive/index.js.map +1 -0
  54. package/dist/esm/providers/microsoft/index.d.ts.map +1 -1
  55. package/dist/esm/providers/microsoft/microsoft.frontend-app.module.d.ts +6 -0
  56. package/dist/esm/providers/microsoft/microsoft.frontend-app.module.d.ts.map +1 -1
  57. package/dist/esm/providers/microsoft/microsoft.frontend-app.module.js +21 -4
  58. package/dist/esm/providers/microsoft/microsoft.frontend-app.module.js.map +1 -1
  59. package/dist/esm/providers/microsoft-onedrive/index.d.ts +2 -0
  60. package/dist/esm/providers/microsoft-onedrive/index.d.ts.map +1 -0
  61. package/dist/esm/providers/microsoft-onedrive/index.js +2 -0
  62. package/dist/esm/providers/microsoft-onedrive/index.js.map +1 -0
  63. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.d.ts +13 -0
  64. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.d.ts.map +1 -0
  65. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.js +44 -0
  66. package/dist/esm/providers/microsoft-onedrive/microsoft-onedrive.frontend-app.module.js.map +1 -0
  67. package/dist/esm/providers/posthog/index.d.ts.map +1 -1
  68. package/dist/esm/providers/posthog/posthog.frontend-website.module.d.ts +19 -0
  69. package/dist/esm/providers/posthog/posthog.frontend-website.module.d.ts.map +1 -1
  70. package/dist/esm/providers/posthog/posthog.frontend-website.module.js +65 -4
  71. package/dist/esm/providers/posthog/posthog.frontend-website.module.js.map +1 -1
  72. package/dist/esm/providers/recaptcha/index.d.ts.map +1 -1
  73. package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.d.ts.map +1 -1
  74. package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.js +24 -4
  75. package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.js.map +1 -1
  76. package/dist/esm/providers/sentry/sentry.frontend-app.module.d.ts +57 -0
  77. package/dist/esm/providers/sentry/sentry.frontend-app.module.d.ts.map +1 -0
  78. package/dist/esm/providers/sentry/sentry.frontend-app.module.js +141 -0
  79. package/dist/esm/providers/sentry/sentry.frontend-app.module.js.map +1 -0
  80. package/dist/esm/providers/sentry/sentry.frontend-website.module.d.ts +27 -0
  81. package/dist/esm/providers/sentry/sentry.frontend-website.module.d.ts.map +1 -1
  82. package/dist/esm/providers/sentry/sentry.frontend-website.module.js +79 -4
  83. package/dist/esm/providers/sentry/sentry.frontend-website.module.js.map +1 -1
  84. package/dist/esm/providers/stripe/index.d.ts.map +1 -1
  85. package/dist/esm/providers/stripe/stripe.frontend-app.module.d.ts.map +1 -1
  86. package/dist/esm/providers/stripe/stripe.frontend-app.module.js +15 -4
  87. package/dist/esm/providers/stripe/stripe.frontend-app.module.js.map +1 -1
  88. package/dist/esm/shared/activate-frontend-provider-sdks.d.ts +88 -0
  89. package/dist/esm/shared/activate-frontend-provider-sdks.d.ts.map +1 -0
  90. package/dist/esm/shared/activate-frontend-provider-sdks.js +110 -0
  91. package/dist/esm/shared/activate-frontend-provider-sdks.js.map +1 -0
  92. package/dist/esm/shared/frontend-provider-surface.types.d.ts +253 -0
  93. package/dist/esm/shared/frontend-provider-surface.types.d.ts.map +1 -0
  94. package/dist/esm/shared/frontend-provider-surface.types.js +94 -0
  95. package/dist/esm/shared/frontend-provider-surface.types.js.map +1 -0
  96. package/dist/esm/shared/hydrate-frontend-providers.d.ts +157 -0
  97. package/dist/esm/shared/hydrate-frontend-providers.d.ts.map +1 -0
  98. package/dist/esm/shared/hydrate-frontend-providers.js +310 -0
  99. package/dist/esm/shared/hydrate-frontend-providers.js.map +1 -0
  100. package/dist/esm/techdoc/compose-frontend-techdoc-providers.d.ts.map +1 -1
  101. package/dist/esm/techdoc/compose-frontend-techdoc-providers.js +5 -2
  102. package/dist/esm/techdoc/compose-frontend-techdoc-providers.js.map +1 -1
  103. package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.d.ts +33 -0
  104. package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.d.ts.map +1 -0
  105. package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.js +41 -0
  106. package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.js.map +1 -0
  107. package/dist/esm/techdoc/engine-frontend-techdoc-provider-registry.d.ts.map +1 -1
  108. package/dist/esm/techdoc/frontend-techdoc-provider-module.types.d.ts +61 -4
  109. package/dist/esm/techdoc/frontend-techdoc-provider-module.types.d.ts.map +1 -1
  110. package/dist/esm/techdoc/frontend-techdoc-provider-module.types.js +5 -3
  111. package/dist/esm/techdoc/frontend-techdoc-provider-module.types.js.map +1 -1
  112. package/dist/esm/techdoc/frontend-techdoc-provider-registry.types.d.ts.map +1 -1
  113. package/dist/esm/techdoc/index.d.ts +4 -0
  114. package/dist/esm/techdoc/index.d.ts.map +1 -1
  115. package/dist/esm/techdoc/index.js +4 -0
  116. package/dist/esm/techdoc/index.js.map +1 -1
  117. package/dist/esm/website/compose-frontend-website-providers.d.ts.map +1 -1
  118. package/dist/esm/website/compose-frontend-website-providers.js +5 -2
  119. package/dist/esm/website/compose-frontend-website-providers.js.map +1 -1
  120. package/dist/esm/website/compose-hydrated-frontend-website-providers.d.ts +33 -0
  121. package/dist/esm/website/compose-hydrated-frontend-website-providers.d.ts.map +1 -0
  122. package/dist/esm/website/compose-hydrated-frontend-website-providers.js +41 -0
  123. package/dist/esm/website/compose-hydrated-frontend-website-providers.js.map +1 -0
  124. package/dist/esm/website/engine-frontend-website-provider-registry.d.ts.map +1 -1
  125. package/dist/esm/website/engine-frontend-website-provider-registry.js +5 -1
  126. package/dist/esm/website/engine-frontend-website-provider-registry.js.map +1 -1
  127. package/dist/esm/website/frontend-website-provider-module.types.d.ts +63 -3
  128. package/dist/esm/website/frontend-website-provider-module.types.d.ts.map +1 -1
  129. package/dist/esm/website/frontend-website-provider-module.types.js +7 -2
  130. package/dist/esm/website/frontend-website-provider-module.types.js.map +1 -1
  131. package/dist/esm/website/frontend-website-provider-registry.types.d.ts.map +1 -1
  132. package/dist/esm/website/index.d.ts +4 -0
  133. package/dist/esm/website/index.d.ts.map +1 -1
  134. package/dist/esm/website/index.js +4 -0
  135. package/dist/esm/website/index.js.map +1 -1
  136. package/dist/tsconfig.build.tsbuildinfo +1 -1
  137. package/package.json +15 -3
  138. package/dist/esm/providers/sentry/index.d.ts +0 -2
  139. package/dist/esm/providers/sentry/index.d.ts.map +0 -1
  140. package/dist/esm/providers/sentry/index.js +0 -2
  141. package/dist/esm/providers/sentry/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"companion-exports.js","sourceRoot":"","sources":["../../../src/companion-exports.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Companion-discovery export for `@wildo-ai/external-connectors-public`.\n *\n * Surfaces the engine's three browser-safe frontend provider registries\n * (`EngineFrontendAppProviderRegistry`, `EngineFrontendTechdocProviderRegistry`,\n * `EngineFrontendWebsiteProviderRegistry`) as a single derived\n * `ProviderCompanionContribution[]`, one entry per registered module,\n * keyed to a frontend service-type via `serviceType` (closed\n * `AppFrontendType` enum).\n *\n * NOT auto-discovered today (do not assume this array reaches a catalog\n * on its own). `discoverSaasProviderCompanionContributions`\n * (platform-config-lib) walks ONLY the app-owned runtime packages\n * declared in `wildo.saas.config.ts` and reads THEIR `./companion`\n * `providerContributions`; it does not load this engine package. So\n * these arrays reach a generated `provider-catalog.types.ts` / runtime\n * artifact only when an app's frontend `provider-contributions.ts`\n * re-derives them from the same registries — which is exactly the\n * dogfood pattern: Wonder Todos's `app` / `website`\n * `provider-contributions.ts` map `EngineFrontend*ProviderRegistry.modules`\n * and add app-owned entries (e.g. its file-picker provider). Wiring the\n * discovery walker to load engine connector packages directly is a\n * tracked follow-up, not the current contract.\n *\n * NOT for browser consumption. This module is loaded only by Node-side\n * tooling (`wildo config sync` and the `discoverSaasProviderCompanionContributions`\n * walker). The package's `./app`, `./techdoc`, `./website` subpaths\n * remain the browser-shipped surface; this `./companion` subpath is\n * tooling-only.\n */\n\nimport {\n AppFrontendType,\n type BuiltinProviderCapability,\n type FrontendProviderEntry,\n} from '@wildo-ai/saas-models/public-runtime';\nimport {\n EngineCapability,\n PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY,\n type ProviderCompanionContribution,\n type RuntimeOwnerCompanionExports,\n} from '@wildo-ai/saas-models';\nimport { EngineFrontendAppProviderRegistry } from './app/engine-frontend-app-provider-registry';\nimport { EngineFrontendTechdocProviderRegistry } from './techdoc/engine-frontend-techdoc-provider-registry';\nimport { EngineFrontendWebsiteProviderRegistry } from './website/engine-frontend-website-provider-registry';\n\nconst APP_RUNTIME_IMPORT_PATH = '@wildo-ai/external-connectors-public/app';\nconst TECHDOC_RUNTIME_IMPORT_PATH = '@wildo-ai/external-connectors-public/techdoc';\nconst WEBSITE_RUNTIME_IMPORT_PATH = '@wildo-ai/external-connectors-public/website';\n\n/**\n * Projects a frontend provider's declared capabilities onto the engine\n * slots it fills, using the canonical\n * `PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY` map from\n * `@wildo-ai/saas-models` — the single source of truth shared with the\n * backend discovery export and the runtime registry projection. The map\n * is a superset of what frontend providers need: among the capabilities\n * frontend modules actually declare, only `BILLING`,\n * `FRONTEND_ERROR_MONITORING`, and `FRONTEND_PRODUCT_ANALYTICS` resolve\n * to a slot, so the map's email / SMS / LLM entries are never hit here\n * and stay inert. The other capabilities frontend modules declare —\n * `SSO_OAUTH2`, `FRONTEND_SEARCH`, `FRONTEND_CAPTCHA` — are intentionally\n * absent from the map, so those providers contribute no engine slot by\n * construction.\n */\nfunction deriveEngineCapabilities(\n providerCapabilities: ReadonlyArray<string>,\n): EngineCapability[] {\n const slots = new Set<EngineCapability>();\n for (const cap of providerCapabilities) {\n const slot = PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY[cap as BuiltinProviderCapability];\n if (slot) slots.add(slot);\n }\n return Array.from(slots);\n}\n\ninterface FrontendProviderModuleShape {\n metadata: { ref: string; displayNameLabelKey?: string; displayName?: string; iconRef?: string };\n providerCapabilities: ReadonlyArray<string>;\n protocols: ReadonlyArray<string>;\n publicConfig?: Readonly<Record<string, unknown>>;\n}\n\nfunction projectFrontendModule(\n module: FrontendProviderModuleShape,\n serviceType: AppFrontendType,\n runtimeImportPath: string,\n): ProviderCompanionContribution {\n const frontendEntry: FrontendProviderEntry = {\n metadata: module.metadata,\n providerCapabilities: [...module.providerCapabilities],\n protocols: [...module.protocols],\n publicConfig: module.publicConfig,\n };\n return {\n ref: module.metadata.ref,\n runtimeImportPath,\n runtimeTargets: [{ kind: 'frontendService', serviceType }],\n engineCapabilities: deriveEngineCapabilities(module.providerCapabilities),\n providerCapabilities: [...module.providerCapabilities],\n protocols: [...module.protocols],\n // Browser-safe providers cannot own server secrets. The explicit empty\n // shape is authoritative and distinct from an unknown/missing contract.\n secretsContractShape: [],\n frontendEntry,\n };\n}\n\n/** One contribution per `EngineFrontendAppProviderRegistry` module, targeting `SAAS_APP`. */\nexport const engineFrontendAppProviderContributions: ProviderCompanionContribution[] =\n Array.from(EngineFrontendAppProviderRegistry.modules.values()).map((module) =>\n projectFrontendModule(module, AppFrontendType.SAAS_APP, APP_RUNTIME_IMPORT_PATH),\n );\n\n/** One contribution per `EngineFrontendTechdocProviderRegistry` module, targeting `TECH_DOC`. */\nexport const engineFrontendTechdocProviderContributions: ProviderCompanionContribution[] =\n Array.from(EngineFrontendTechdocProviderRegistry.modules.values()).map((module) =>\n projectFrontendModule(module, AppFrontendType.TECH_DOC, TECHDOC_RUNTIME_IMPORT_PATH),\n );\n\n/** One contribution per `EngineFrontendWebsiteProviderRegistry` module, targeting `STATIC_WEBSITE`. */\nexport const engineFrontendWebsiteProviderContributions: ProviderCompanionContribution[] =\n Array.from(EngineFrontendWebsiteProviderRegistry.modules.values()).map((module) =>\n projectFrontendModule(module, AppFrontendType.STATIC_WEBSITE, WEBSITE_RUNTIME_IMPORT_PATH),\n );\n\n/** Stable union — order: app providers, then techdoc, then website (matches the registry imports). */\nexport const engineFrontendProviderContributions: ProviderCompanionContribution[] = [\n ...engineFrontendAppProviderContributions,\n ...engineFrontendTechdocProviderContributions,\n ...engineFrontendWebsiteProviderContributions,\n];\n\n/**\n * Companion-discovery contract — see `RuntimeOwnerCompanionExports`.\n * The framework loader reads `providerContributions` via the package's\n * `./companion` subpath export.\n */\nconst companionExports: RuntimeOwnerCompanionExports = {\n providerContributions: engineFrontendProviderContributions,\n};\n\nexport default companionExports;\n"]}
1
+ {"version":3,"file":"companion-exports.js","sourceRoot":"","sources":["../../src/companion-exports.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Companion-discovery export for `@wildo-ai/external-connectors-public`.\n *\n * Surfaces the engine's three browser-safe frontend provider registries\n * (`EngineFrontendAppProviderRegistry`, `EngineFrontendTechdocProviderRegistry`,\n * `EngineFrontendWebsiteProviderRegistry`) as a single derived\n * `ProviderCompanionContribution[]`, one entry per registered module,\n * keyed to a frontend service-type via `serviceType` (closed\n * `AppFrontendType` enum).\n *\n * NOT auto-discovered — and this package is now the EXCEPTION rather than the rule,\n * which is the part to read carefully. `discoverSaasProviderCompanionContributions`\n * (platform-config-lib) walks each runtime owner declared in `wildo.saas.config.ts`\n * AND every provider package it depends on, admitting the scraped catalogue,\n * `@wildo-ai/provider-*` and — since #358 — the engine's BACKEND connector package\n * `@wildo-ai/external-connectors-private` by exact name. It does not admit this one.\n * So these arrays reach a generated `provider-catalog.types.ts` / runtime artifact\n * only when an app's frontend `provider-contributions.ts` re-derives them from the\n * same registries — which is exactly the dogfood pattern: Wonder Todos's `app` /\n * `website` `provider-contributions.ts` map `EngineFrontend*ProviderRegistry.modules`\n * and add app-owned entries (e.g. its file-picker provider).\n *\n * A `frontendService` target additionally requires a `frontendEntry` payload for\n * bootstrap materialization, which the discovery validator refuses without — so the\n * frontend case is not merely un-admitted, it carries a payload the backend case\n * has no equivalent of. Admitting this package would have to answer that first.\n *\n * (This paragraph used to end \"Wiring the discovery walker to load engine connector\n * packages directly is a tracked follow-up, not the current contract.\" Half of that\n * shipped in #358 and the sentence did not distinguish the two packages, so it read\n * as false about the backend and true here.)\n *\n * NOT for browser consumption. This module is loaded only by Node-side\n * tooling (`wildo config sync` and the `discoverSaasProviderCompanionContributions`\n * walker). The package's `./app`, `./techdoc`, `./website` subpaths\n * remain the browser-shipped surface; this `./companion` subpath is\n * tooling-only.\n */\n\nimport {\n AppFrontendType,\n type BuiltinProviderCapability,\n type FrontendProviderEntry,\n normalizeProviderFrontendCspFootprint,\n type ProviderFrontendCspFootprintDeclaration,\n type ProviderFrontendScriptDeclaration,\n type ProviderFrontendComponentDescriptor,\n type ProviderFrontendSdkDescriptor,\n type ProviderMetadata,\n} from '@wildo-ai/saas-models/public-runtime';\nimport {\n EngineCapability,\n PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY,\n type ProviderCompanionContribution,\n type RuntimeOwnerCompanionExports,\n} from '@wildo-ai/saas-models';\nimport { readDeclaredPublicConfigKeys } from '@wildo-ai/saas-models/public-runtime';\nimport type { FileStorageAccepted } from '@wildo-ai/saas-models/public-runtime';\nimport { projectFrontendComponentDescriptors } from './shared/frontend-provider-surface.types';\nimport { EngineFrontendAppProviderRegistry } from './app/engine-frontend-app-provider-registry';\nimport { EngineFrontendTechdocProviderRegistry } from './techdoc/engine-frontend-techdoc-provider-registry';\nimport { EngineFrontendWebsiteProviderRegistry } from './website/engine-frontend-website-provider-registry';\n\nconst APP_RUNTIME_IMPORT_PATH = '@wildo-ai/external-connectors-public/app';\nconst TECHDOC_RUNTIME_IMPORT_PATH = '@wildo-ai/external-connectors-public/techdoc';\nconst WEBSITE_RUNTIME_IMPORT_PATH = '@wildo-ai/external-connectors-public/website';\n\n/**\n * Projects a frontend provider's declared capabilities onto the engine\n * slots it fills, using the canonical\n * `PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY` map from\n * `@wildo-ai/saas-models` — the single source of truth shared with the\n * backend discovery export and the runtime registry projection. The map\n * is a superset of what frontend providers need: among the capabilities\n * frontend modules actually declare, only `BILLING`,\n * `FRONTEND_ERROR_MONITORING`, and `FRONTEND_PRODUCT_ANALYTICS` resolve\n * to a slot, so the map's email / SMS / LLM entries are never hit here\n * and stay inert. The other capabilities frontend modules declare —\n * `SSO_OAUTH2`, `FRONTEND_SEARCH`, `FRONTEND_CAPTCHA` — are intentionally\n * absent from the map, so those providers contribute no engine slot by\n * construction.\n */\nfunction deriveEngineCapabilities(\n providerCapabilities: ReadonlyArray<string>,\n): EngineCapability[] {\n const slots = new Set<EngineCapability>();\n for (const cap of providerCapabilities) {\n const slot = PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY[cap as BuiltinProviderCapability];\n if (slot) slots.add(slot);\n }\n return Array.from(slots);\n}\n\n/**\n * The facet-agnostic view of a frontend provider module this projection reads.\n *\n * Only the DATA half appears here, and that is the contract rather than an\n * omission: this file is loaded by NODE-side tooling (`wildo config sync` and\n * the discovery walker), which cannot execute a browser-bound module's\n * `sdk.activate` and must never try. What it CAN read is the descriptor beside\n * it — which package the SDK lives in — and that is what the bundle-isolation\n * policy, an application's dependency alignment and a human reading a bundle\n * report need.\n */\ninterface FrontendProviderModuleShape {\n metadata: ProviderMetadata;\n providerCapabilities: ReadonlyArray<string>;\n protocols: ReadonlyArray<string>;\n publicConfig?: Readonly<Record<string, unknown>>;\n csp?: ProviderFrontendCspFootprintDeclaration;\n scripts?: ReadonlyArray<ProviderFrontendScriptDeclaration>;\n sdk?: { readonly descriptor: ProviderFrontendSdkDescriptor };\n components?: Readonly<Record<string, ProviderFrontendComponentDescriptor & { readonly load?: unknown }>>;\n fileStorage?: FileStorageAccepted;\n publicConfigSchema?: unknown;\n}\n\n/**\n * Refuses a provider whose declared `<script>` origin it did not also grant\n * itself in `csp.scriptOrigins`.\n *\n * The three facet module types have carried this rule in prose since the fields\n * landed, and prose is not a check. The failure it prevents is the worst shape\n * this surface has: the provider ships, the script tag is injected, the composed\n * policy does not admit its origin, and the browser refuses it — in PRODUCTION\n * ONLY, because development is report-only. The provider looks configured, the\n * page looks fine locally, and the capability is simply absent for real users.\n *\n * Absolute rather than conditional on the application's own policy, and that is\n * the point: a provider cannot know whether the application it lands in\n * happens to allow-list its vendor, and relying on that is exactly the\n * hand-editing per app, per service, per environment that declaring a footprint\n * exists to remove. Restating an origin the app would have allowed anyway costs\n * nothing — CSP source lists are a union.\n *\n * Thrown, not reported, and only HERE. This runs where the author is: in the\n * provider package's own `./companion` barrel and in the CLI's discovery walk,\n * so `wildo config sync` fails with the provider, the script and the missing\n * origin named. The backend's fallback projection deliberately does NOT repeat\n * it — refusing there would take an application's boot down for a provider\n * authoring mistake, long after the person who could fix it has gone.\n */\nfunction assertDeclaredScriptOriginsAreGranted(module: FrontendProviderModuleShape): void {\n const declaredScriptOrigins = new Set(module.csp?.scriptOrigins ?? []);\n\n for (const script of module.scripts ?? []) {\n let origin: string;\n try {\n origin = new URL(script.src).origin;\n } catch {\n throw new Error(\n `Frontend provider \"${module.metadata.ref}\" declares a script whose src is not an absolute URL: `\n + `\"${script.src}\". A script declaration names a third-party origin, so the framework can neither `\n + 'resolve it nor grant it in the composed Content-Security-Policy.',\n );\n }\n\n if (!declaredScriptOrigins.has(origin)) {\n throw new Error(\n `Frontend provider \"${module.metadata.ref}\" declares the script \"${script.src}\" but does not list `\n + `\"${origin}\" in csp.scriptOrigins. The policy this provider contributes to would then block its own `\n + 'script — and only where CSP enforces, so the failure would first appear in production. Add the '\n + 'origin to the provider\\'s csp.scriptOrigins.',\n );\n }\n }\n}\n\n/**\n * Turns a frontend provider module into the companion contribution tooling\n * reads — the ONE place a facet module becomes a discovery record.\n *\n * Exported because the engine is not the only producer. Every\n * `@wildo-ai/provider-<ref>` package's own `./companion` barrel has to do\n * exactly this for its own facet modules, and a projection each package\n * hand-rolls is a projection that drifts: the DATA half of the frontend\n * surface would end up carried by some packages and dropped by others, and a\n * dropped CSP footprint is invisible until a provider is blocked in production.\n *\n * What crosses and what does not is the whole contract. `csp`, `scripts` and\n * the SDK DESCRIPTOR cross, because tooling has to read them without executing\n * anything — this runs in Node and a facet module is browser-bound. The\n * executable half — `sdk.activate`, `publicConfigSchema` — does NOT, and cannot:\n * the contribution is serialized to JSON on its way into the generated\n * artifact, so a function would be dropped by `JSON.stringify` with no error\n * anywhere. Code reaches a bundle through the generated\n * `frontend-providers.generated.ts` instead.\n */\nexport function projectFrontendProviderContribution(\n module: FrontendProviderModuleShape,\n serviceType: AppFrontendType,\n runtimeImportPath: string,\n): ProviderCompanionContribution {\n assertDeclaredScriptOriginsAreGranted(module);\n\n const frontendEntry: FrontendProviderEntry = {\n metadata: module.metadata,\n providerCapabilities: [...module.providerCapabilities],\n protocols: [...module.protocols],\n publicConfig: module.publicConfig,\n // The DATA half of the frontend surface (#332). It has to travel with the\n // contribution because the CSP of a service is composed by the CLI, from\n // the materialized artifact, long before any browser loads the module that\n // declares it — and the CLI cannot execute that module to ask.\n // Normalized here, once: a provider AUTHORS the buckets it reaches and the\n // wire carries all of them, so the CSP composer never branches on absence\n // and the hydration join compares two shapes of the same kind.\n csp: module.csp === undefined ? undefined : normalizeProviderFrontendCspFootprint(module.csp),\n scripts: module.scripts === undefined ? undefined : [...module.scripts],\n sdk: module.sdk?.descriptor,\n // The DATA half of each contributed component (#380). `load` is stripped\n // HERE rather than left to `JSON.stringify` to drop it: a function that\n // disappears silently on its way through a serializer is the failure this\n // whole two-channel split exists to remove, and stripping it explicitly is\n // what makes the projection's contract readable at the projection.\n //\n // Rebuilt field by field rather than spread-minus-`load`, so a future field\n // on the declaration is a COMPILE decision about whether it crosses the wire\n // instead of one that crosses by default. `sdk` makes the same choice by\n // naming `descriptor`; this is the same rule where the shape is a map.\n components: projectFrontendComponentDescriptors(module.components),\n // The keys the module's `publicConfigSchema` declares, as DATA (#394 P3).\n // The schema itself is CODE and stays behind; this list is what lets\n // `wildo config sync` refuse an application-supplied key the module never\n // reads, at the moment it is typed rather than when a picker opens.\n publicConfigKeys: readDeclaredPublicConfigKeys(module.publicConfigSchema)?.slice(),\n // The z_file storage the picker fronts (#394 P5) — an enum member, so it\n // crosses the wire as-is; the chooser filters on it and the hydration join\n // compares it to the CODE side.\n fileStorage: module.fileStorage,\n };\n return {\n ref: module.metadata.ref,\n identity: {\n packageName: module.metadata.packageName,\n tier: module.metadata.tier,\n vendor: module.metadata.vendor,\n origin: module.metadata.origin,\n },\n runtimeImportPath,\n runtimeTargets: [{ kind: 'frontendService', serviceType }],\n engineCapabilities: deriveEngineCapabilities(module.providerCapabilities),\n providerCapabilities: [...module.providerCapabilities],\n protocols: [...module.protocols],\n // Browser-safe providers cannot own server secrets. The explicit empty\n // shape is authoritative and distinct from an unknown/missing contract.\n secretsContractShape: [],\n frontendEntry,\n };\n}\n\n/** One contribution per `EngineFrontendAppProviderRegistry` module, targeting `SAAS_APP`. */\nexport const engineFrontendAppProviderContributions: ProviderCompanionContribution[] =\n Array.from(EngineFrontendAppProviderRegistry.modules.values()).map((module) =>\n projectFrontendProviderContribution(module, AppFrontendType.SAAS_APP, APP_RUNTIME_IMPORT_PATH),\n );\n\n/** One contribution per `EngineFrontendTechdocProviderRegistry` module, targeting `TECH_DOC`. */\nexport const engineFrontendTechdocProviderContributions: ProviderCompanionContribution[] =\n Array.from(EngineFrontendTechdocProviderRegistry.modules.values()).map((module) =>\n projectFrontendProviderContribution(module, AppFrontendType.TECH_DOC, TECHDOC_RUNTIME_IMPORT_PATH),\n );\n\n/** One contribution per `EngineFrontendWebsiteProviderRegistry` module, targeting `STATIC_WEBSITE`. */\nexport const engineFrontendWebsiteProviderContributions: ProviderCompanionContribution[] =\n Array.from(EngineFrontendWebsiteProviderRegistry.modules.values()).map((module) =>\n projectFrontendProviderContribution(module, AppFrontendType.STATIC_WEBSITE, WEBSITE_RUNTIME_IMPORT_PATH),\n );\n\n/** Stable union — order: app providers, then techdoc, then website (matches the registry imports). */\nexport const engineFrontendProviderContributions: ProviderCompanionContribution[] = [\n ...engineFrontendAppProviderContributions,\n ...engineFrontendTechdocProviderContributions,\n ...engineFrontendWebsiteProviderContributions,\n];\n\n/**\n * Companion-discovery contract — see `RuntimeOwnerCompanionExports`.\n * The framework loader reads `providerContributions` via the package's\n * `./companion` subpath export.\n */\nconst companionExports: RuntimeOwnerCompanionExports = {\n providerContributions: engineFrontendProviderContributions,\n};\n\nexport default companionExports;\n"]}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The npm package every ENGINE frontend provider module — on all three facets — names as its
3
+ * `packageName` (#328). One constant, so a provider extracted into its own package changes ONE
4
+ * import. Intra-package relative import from the provider modules; not a public entrypoint.
5
+ */
6
+ export declare const ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME = "@wildo-ai/external-connectors-public";
7
+ //# sourceMappingURL=engine-frontend-providers-package.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-frontend-providers-package.d.ts","sourceRoot":"","sources":["../../src/engine-frontend-providers-package.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,yCAAyC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The npm package every ENGINE frontend provider module — on all three facets — names as its
3
+ * `packageName` (#328). One constant, so a provider extracted into its own package changes ONE
4
+ * import. Intra-package relative import from the provider modules; not a public entrypoint.
5
+ */
6
+ export const ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME = '@wildo-ai/external-connectors-public';
7
+ //# sourceMappingURL=engine-frontend-providers-package.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-frontend-providers-package.js","sourceRoot":"","sources":["../../src/engine-frontend-providers-package.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,sCAAsC,CAAC","sourcesContent":["/**\n * The npm package every ENGINE frontend provider module — on all three facets — names as its\n * `packageName` (#328). One constant, so a provider extracted into its own package changes ONE\n * import. Intra-package relative import from the provider modules; not a public entrypoint.\n */\nexport const ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME = '@wildo-ai/external-connectors-public';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"algolia.frontend-techdoc.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/algolia/algolia.frontend-techdoc.module.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAE1G,eAAO,MAAM,8BAA8B,EAAE,6BAW5C,CAAC"}
1
+ {"version":3,"file":"algolia.frontend-techdoc.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/algolia/algolia.frontend-techdoc.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAE1G,eAAO,MAAM,8BAA8B,EAAE,6BAgC5C,CAAC"}
@@ -1,14 +1,36 @@
1
- import { BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, buildProviderDisplayNameLabelKey, } from '@wildo-ai/saas-models/public-runtime';
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
3
  export const AlgoliaFrontendTechdocProvider = {
3
- metadata: {
4
+ metadata: defineProviderMetadata({
4
5
  ref: 'algolia',
5
- displayNameLabelKey: buildProviderDisplayNameLabelKey('algolia'),
6
- },
6
+ packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,
7
+ tier: ProviderTier.CATALOGUE,
8
+ origin: ENGINE_PROVIDER_ORIGIN,
9
+ }),
7
10
  providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_SEARCH],
8
11
  protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],
9
12
  publicConfig: {
10
13
  searchProviderRef: 'algolia',
11
14
  integrationKind: 'docsearch',
12
15
  },
16
+ /**
17
+ * Researched 2026-09-06; no backend counterpart.
18
+ *
19
+ * `vendorLegalEntityName` is OMITTED ON PURPOSE, and this is the field's optionality working as
20
+ * designed rather than an authoring gap: Algolia has TWO processor entities selected by the
21
+ * SUBSCRIBER'S domicile — `Algolia, Inc.` outside Europe, `Algolia SAS` within it. The framework
22
+ * cannot know an application's domicile, so any single value here is wrong for half of them. The
23
+ * application states it on its own register entry, where its contract makes it checkable.
24
+ *
25
+ * Regions are JURISDICTIONS rather than datacentre identifiers, because that is the granularity
26
+ * the source supports: Algolia publishes US regions (Virginia, California, Texas) and European
27
+ * ones (France, Germany, UK) without a stable public region-id vocabulary. Vendor-hosted only —
28
+ * the infrastructure policy describes partner datacentres under Algolia's logical control and no
29
+ * self-hosted option.
30
+ */
31
+ complianceProfile: {
32
+ deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
33
+ processingRegions: ['US', 'EU', 'UK'],
34
+ },
13
35
  };
14
36
  //# sourceMappingURL=algolia.frontend-techdoc.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"algolia.frontend-techdoc.module.js","sourceRoot":"","sources":["../../../../../src/providers/algolia/algolia.frontend-techdoc.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,sCAAsC,CAAC;AAG9C,MAAM,CAAC,MAAM,8BAA8B,GAAkC;IAC3E,QAAQ,EAAE;QACR,GAAG,EAAE,SAAS;QACd,mBAAmB,EAAE,gCAAgC,CAAC,SAAS,CAAC;KACjE;IACD,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,eAAe,CAAC;IACnE,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE;QACZ,iBAAiB,EAAE,SAAS;QAC5B,eAAe,EAAE,WAAW;KAC7B;CACF,CAAC","sourcesContent":["import {\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n buildProviderDisplayNameLabelKey,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendTechdocProviderModule } from '../../techdoc/frontend-techdoc-provider-module.types';\n\nexport const AlgoliaFrontendTechdocProvider: FrontendTechdocProviderModule = {\n metadata: {\n ref: 'algolia',\n displayNameLabelKey: buildProviderDisplayNameLabelKey('algolia'),\n },\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_SEARCH],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {\n searchProviderRef: 'algolia',\n integrationKind: 'docsearch',\n },\n};\n"]}
1
+ {"version":3,"file":"algolia.frontend-techdoc.module.js","sourceRoot":"","sources":["../../../../src/providers/algolia/algolia.frontend-techdoc.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,8BAA8B,GAAkC;IAC3E,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,SAAS;QACd,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,YAAY,CAAC,SAAS;QAC5B,MAAM,EAAE,sBAAsB;KAC/B,CAAC;IACF,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,eAAe,CAAC;IACnE,SAAS,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC;IACnD,YAAY,EAAE;QACZ,iBAAiB,EAAE,SAAS;QAC5B,eAAe,EAAE,WAAW;KAC7B;IACD;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,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 { FrontendTechdocProviderModule } from '../../techdoc/frontend-techdoc-provider-module.types';\n\nexport const AlgoliaFrontendTechdocProvider: FrontendTechdocProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'algolia',\n packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,\n tier: ProviderTier.CATALOGUE,\n origin: ENGINE_PROVIDER_ORIGIN,\n }),\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.FRONTEND_SEARCH],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK],\n publicConfig: {\n searchProviderRef: 'algolia',\n integrationKind: 'docsearch',\n },\n /**\n * Researched 2026-09-06; no backend counterpart.\n *\n * `vendorLegalEntityName` is OMITTED ON PURPOSE, and this is the field's optionality working as\n * designed rather than an authoring gap: Algolia has TWO processor entities selected by the\n * SUBSCRIBER'S domicile — `Algolia, Inc.` outside Europe, `Algolia SAS` within it. The framework\n * cannot know an application's domicile, so any single value here is wrong for half of them. The\n * application states it on its own register entry, where its contract makes it checkable.\n *\n * Regions are JURISDICTIONS rather than datacentre identifiers, because that is the granularity\n * the source supports: Algolia publishes US regions (Virginia, California, Texas) and European\n * ones (France, Germany, UK) without a stable public region-id vocabulary. Vendor-hosted only —\n * the infrastructure policy describes partner datacentres under Algolia's logical control and no\n * self-hosted option.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['US', 'EU', 'UK'],\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/algolia/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/algolia/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"apple.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/apple/apple.frontend-app.module.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F,eAAO,MAAM,wBAAwB,EAAE,yBAUtC,CAAC"}
1
+ {"version":3,"file":"apple.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/apple/apple.frontend-app.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F,eAAO,MAAM,wBAAwB,EAAE,yBAqBtC,CAAC"}
@@ -1,13 +1,25 @@
1
- import { BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, buildProviderDisplayNameLabelKey, } from '@wildo-ai/saas-models/public-runtime';
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
3
  export const AppleFrontendAppProvider = {
3
- metadata: {
4
+ metadata: defineProviderMetadata({
4
5
  ref: 'apple',
5
- displayNameLabelKey: buildProviderDisplayNameLabelKey('apple'),
6
- },
6
+ packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,
7
+ tier: ProviderTier.MAIN,
8
+ origin: ENGINE_PROVIDER_ORIGIN,
9
+ }),
7
10
  providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],
8
11
  protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],
9
12
  publicConfig: {
10
13
  authProviderRef: 'apple',
11
14
  },
15
+ /**
16
+ * Mirrors the authored `apple` BACKEND profile: one vendor, one legal identity, and the browser
17
+ * SDK reaches the same vendor infrastructure.
18
+ */
19
+ complianceProfile: {
20
+ deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
21
+ processingRegions: ['us-east-1'],
22
+ vendorLegalEntityName: 'Apple Inc.',
23
+ },
12
24
  };
13
25
  //# sourceMappingURL=apple.frontend-app.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"apple.frontend-app.module.js","sourceRoot":"","sources":["../../../../../src/providers/apple/apple.frontend-app.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,sCAAsC,CAAC;AAG9C,MAAM,CAAC,MAAM,wBAAwB,GAA8B;IACjE,QAAQ,EAAE;QACR,GAAG,EAAE,OAAO;QACZ,mBAAmB,EAAE,gCAAgC,CAAC,OAAO,CAAC;KAC/D;IACD,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,UAAU,CAAC;IAC9D,SAAS,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC;IACjD,YAAY,EAAE;QACZ,eAAe,EAAE,OAAO;KACzB;CACF,CAAC","sourcesContent":["import {\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n buildProviderDisplayNameLabelKey,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\nexport const AppleFrontendAppProvider: FrontendAppProviderModule = {\n metadata: {\n ref: 'apple',\n displayNameLabelKey: buildProviderDisplayNameLabelKey('apple'),\n },\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],\n publicConfig: {\n authProviderRef: 'apple',\n },\n};\n"]}
1
+ {"version":3,"file":"apple.frontend-app.module.js","sourceRoot":"","sources":["../../../../src/providers/apple/apple.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,wBAAwB,GAA8B;IACjE,QAAQ,EAAE,sBAAsB,CAAC;QAC/B,GAAG,EAAE,OAAO;QACZ,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,OAAO;KACzB;IACD;;;OAGG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,CAAC;QAChC,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 AppleFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'apple',\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: 'apple',\n },\n /**\n * Mirrors the authored `apple` BACKEND profile: one vendor, one legal identity, and the browser\n * SDK reaches the same vendor infrastructure.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1'],\n vendorLegalEntityName: 'Apple Inc.',\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/apple/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/apple/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"github.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/github/github.frontend-app.module.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F,eAAO,MAAM,yBAAyB,EAAE,yBAUvC,CAAC"}
1
+ {"version":3,"file":"github.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/github/github.frontend-app.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F,eAAO,MAAM,yBAAyB,EAAE,yBAoBvC,CAAC"}
@@ -1,13 +1,24 @@
1
- import { BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, buildProviderDisplayNameLabelKey, } from '@wildo-ai/saas-models/public-runtime';
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
3
  export const GitHubFrontendAppProvider = {
3
- metadata: {
4
+ metadata: defineProviderMetadata({
4
5
  ref: 'github',
5
- displayNameLabelKey: buildProviderDisplayNameLabelKey('github'),
6
- },
6
+ packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,
7
+ tier: ProviderTier.MAIN,
8
+ origin: ENGINE_PROVIDER_ORIGIN,
9
+ }),
7
10
  providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],
8
11
  protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],
9
12
  publicConfig: {
10
13
  authProviderRef: 'github',
11
14
  },
15
+ /**
16
+ * Mirrors the authored `github` BACKEND profile.
17
+ */
18
+ complianceProfile: {
19
+ deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
20
+ processingRegions: ['us-east-1'],
21
+ vendorLegalEntityName: 'GitHub, Inc.',
22
+ },
12
23
  };
13
24
  //# sourceMappingURL=github.frontend-app.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"github.frontend-app.module.js","sourceRoot":"","sources":["../../../../../src/providers/github/github.frontend-app.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,sCAAsC,CAAC;AAG9C,MAAM,CAAC,MAAM,yBAAyB,GAA8B;IAClE,QAAQ,EAAE;QACR,GAAG,EAAE,QAAQ;QACb,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,CAAC;KAChE;IACD,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,UAAU,CAAC;IAC9D,SAAS,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC;IACjD,YAAY,EAAE;QACZ,eAAe,EAAE,QAAQ;KAC1B;CACF,CAAC","sourcesContent":["import {\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n buildProviderDisplayNameLabelKey,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\nexport const GitHubFrontendAppProvider: FrontendAppProviderModule = {\n metadata: {\n ref: 'github',\n displayNameLabelKey: buildProviderDisplayNameLabelKey('github'),\n },\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],\n publicConfig: {\n authProviderRef: 'github',\n },\n};\n"]}
1
+ {"version":3,"file":"github.frontend-app.module.js","sourceRoot":"","sources":["../../../../src/providers/github/github.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;;OAEG;IACH,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,CAAC;QAChC,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 GitHubFrontendAppProvider: FrontendAppProviderModule = {\n metadata: defineProviderMetadata({\n ref: 'github',\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: 'github',\n },\n /**\n * Mirrors the authored `github` BACKEND profile.\n */\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1'],\n vendorLegalEntityName: 'GitHub, Inc.',\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/github/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/github/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1,3 +1,12 @@
1
1
  import type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';
2
+ /**
3
+ * Google as an SSO provider — and only that, on the frontend.
4
+ *
5
+ * The Drive picker used to live here (#394 P1–P5) and moved to the `google-drive` module on
6
+ * 2026-09-09, because a picker is the front door of a CONNECTED ACCOUNT, and the account a person
7
+ * connects for Drive goes through the `google-drive` backend provider (its own OAuth2 client, its own
8
+ * `drive.file` consent), not through the SSO registration this module fronts. A picker declared here
9
+ * asked the access-token door for `google`, which has no delegated contract, and could never open.
10
+ */
2
11
  export declare const GoogleFrontendAppProvider: FrontendAppProviderModule;
3
12
  //# sourceMappingURL=google.frontend-app.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"google.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/google/google.frontend-app.module.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F,eAAO,MAAM,yBAAyB,EAAE,yBAUvC,CAAC"}
1
+ {"version":3,"file":"google.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../src/providers/google/google.frontend-app.module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,EAAE,yBAwBvC,CAAC"}
@@ -1,13 +1,37 @@
1
- import { BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, buildProviderDisplayNameLabelKey, } from '@wildo-ai/saas-models/public-runtime';
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, defineFrontendPublicConfigSchema, FrontendPublicConfigValueKind } from '@wildo-ai/saas-models/public-runtime';
3
+ /**
4
+ * Google as an SSO provider — and only that, on the frontend.
5
+ *
6
+ * The Drive picker used to live here (#394 P1–P5) and moved to the `google-drive` module on
7
+ * 2026-09-09, because a picker is the front door of a CONNECTED ACCOUNT, and the account a person
8
+ * connects for Drive goes through the `google-drive` backend provider (its own OAuth2 client, its own
9
+ * `drive.file` consent), not through the SSO registration this module fronts. A picker declared here
10
+ * asked the access-token door for `google`, which has no delegated contract, and could never open.
11
+ */
2
12
  export const GoogleFrontendAppProvider = {
3
- metadata: {
13
+ metadata: defineProviderMetadata({
4
14
  ref: 'google',
5
- displayNameLabelKey: buildProviderDisplayNameLabelKey('google'),
6
- },
15
+ packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,
16
+ tier: ProviderTier.MAIN,
17
+ origin: ENGINE_PROVIDER_ORIGIN,
18
+ }),
7
19
  providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],
8
20
  protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],
9
21
  publicConfig: {
10
22
  authProviderRef: 'google',
11
23
  },
24
+ publicConfigSchema: defineFrontendPublicConfigSchema({
25
+ authProviderRef: { kind: FrontendPublicConfigValueKind.STRING, description: 'The SSO auth provider this module fronts.' },
26
+ }),
27
+ /**
28
+ * Mirrors the authored `google` BACKEND profile. Note the sibling `recaptcha` provider does NOT
29
+ * share this entity — see its own profile.
30
+ */
31
+ complianceProfile: {
32
+ deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
33
+ processingRegions: ['us-east-1', 'eu-west-1'],
34
+ vendorLegalEntityName: 'Google LLC',
35
+ },
12
36
  };
13
37
  //# sourceMappingURL=google.frontend-app.module.js.map
@@ -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,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,sCAAsC,CAAC;AAG9C,MAAM,CAAC,MAAM,yBAAyB,GAA8B;IAClE,QAAQ,EAAE;QACR,GAAG,EAAE,QAAQ;QACb,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,CAAC;KAChE;IACD,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,UAAU,CAAC;IAC9D,SAAS,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC;IACjD,YAAY,EAAE;QACZ,eAAe,EAAE,QAAQ;KAC1B;CACF,CAAC","sourcesContent":["import {\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n buildProviderDisplayNameLabelKey,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\nexport const GoogleFrontendAppProvider: FrontendAppProviderModule = {\n metadata: {\n ref: 'google',\n displayNameLabelKey: buildProviderDisplayNameLabelKey('google'),\n },\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],\n publicConfig: {\n authProviderRef: 'google',\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":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAE9F,eAAO,MAAM,4BAA4B,EAAE,yBAU1C,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,13 +1,30 @@
1
- import { BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, buildProviderDisplayNameLabelKey, } from '@wildo-ai/saas-models/public-runtime';
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, 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
+ */
2
9
  export const MicrosoftFrontendAppProvider = {
3
- metadata: {
10
+ metadata: defineProviderMetadata({
4
11
  ref: 'microsoft',
5
- displayNameLabelKey: buildProviderDisplayNameLabelKey('microsoft'),
6
- },
12
+ packageName: ENGINE_FRONTEND_PROVIDERS_PACKAGE_NAME,
13
+ tier: ProviderTier.MAIN,
14
+ origin: ENGINE_PROVIDER_ORIGIN,
15
+ }),
7
16
  providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],
8
17
  protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],
9
18
  publicConfig: {
10
19
  authProviderRef: 'microsoft',
11
20
  },
21
+ publicConfigSchema: defineFrontendPublicConfigSchema({
22
+ authProviderRef: { kind: FrontendPublicConfigValueKind.STRING, description: 'The SSO auth provider this module fronts.' },
23
+ }),
24
+ complianceProfile: {
25
+ deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
26
+ processingRegions: ['us-east-1', 'eu-west-1'],
27
+ vendorLegalEntityName: 'Microsoft Corporation',
28
+ },
12
29
  };
13
30
  //# sourceMappingURL=microsoft.frontend-app.module.js.map
@@ -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,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,sCAAsC,CAAC;AAG9C,MAAM,CAAC,MAAM,4BAA4B,GAA8B;IACrE,QAAQ,EAAE;QACR,GAAG,EAAE,WAAW;QAChB,mBAAmB,EAAE,gCAAgC,CAAC,WAAW,CAAC;KACnE;IACD,oBAAoB,EAAE,CAAC,2BAA2B,CAAC,UAAU,CAAC;IAC9D,SAAS,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC;IACjD,YAAY,EAAE;QACZ,eAAe,EAAE,WAAW;KAC7B;CACF,CAAC","sourcesContent":["import {\n BUILTIN_PROVIDER_CAPABILITY,\n BUILTIN_PROVIDER_PROTOCOL,\n buildProviderDisplayNameLabelKey,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type { FrontendAppProviderModule } from '../../app/frontend-app-provider-module.types';\n\nexport const MicrosoftFrontendAppProvider: FrontendAppProviderModule = {\n metadata: {\n ref: 'microsoft',\n displayNameLabelKey: buildProviderDisplayNameLabelKey('microsoft'),\n },\n providerCapabilities: [BUILTIN_PROVIDER_CAPABILITY.SSO_OAUTH2],\n protocols: [BUILTIN_PROVIDER_PROTOCOL.SSO_OAUTH2],\n publicConfig: {\n authProviderRef: 'microsoft',\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"}