@wildo-ai/external-connectors-public 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.native.tsbuildinfo +1 -0
- package/dist/esm/app/compose-frontend-app-providers.d.ts.map +1 -1
- package/dist/esm/app/compose-frontend-app-providers.js +5 -2
- package/dist/esm/app/compose-frontend-app-providers.js.map +1 -1
- package/dist/esm/app/compose-hydrated-frontend-app-providers.d.ts +33 -0
- package/dist/esm/app/compose-hydrated-frontend-app-providers.d.ts.map +1 -0
- package/dist/esm/app/compose-hydrated-frontend-app-providers.js +41 -0
- package/dist/esm/app/compose-hydrated-frontend-app-providers.js.map +1 -0
- package/dist/esm/app/engine-frontend-app-provider-registry.d.ts.map +1 -1
- package/dist/esm/app/engine-frontend-app-provider-registry.js +4 -0
- package/dist/esm/app/engine-frontend-app-provider-registry.js.map +1 -1
- package/dist/esm/app/frontend-app-provider-module.types.d.ts +128 -15
- package/dist/esm/app/frontend-app-provider-module.types.d.ts.map +1 -1
- package/dist/esm/app/frontend-app-provider-module.types.js +7 -6
- package/dist/esm/app/frontend-app-provider-module.types.js.map +1 -1
- package/dist/esm/app/index.d.ts +4 -0
- package/dist/esm/app/index.d.ts.map +1 -1
- package/dist/esm/app/index.js +4 -0
- package/dist/esm/app/index.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +47 -0
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js +99 -5
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine-frontend-providers-package.d.ts +7 -0
- package/dist/esm/engine-frontend-providers-package.d.ts.map +1 -0
- package/dist/esm/engine-frontend-providers-package.js +7 -0
- package/dist/esm/engine-frontend-providers-package.js.map +1 -0
- package/dist/esm/providers/algolia/algolia.frontend-techdoc.module.d.ts.map +1 -1
- package/dist/esm/providers/algolia/algolia.frontend-techdoc.module.js +26 -4
- package/dist/esm/providers/algolia/algolia.frontend-techdoc.module.js.map +1 -1
- package/dist/esm/providers/apple/apple.frontend-app.module.d.ts.map +1 -1
- package/dist/esm/providers/apple/apple.frontend-app.module.js +16 -4
- package/dist/esm/providers/apple/apple.frontend-app.module.js.map +1 -1
- package/dist/esm/providers/github/github.frontend-app.module.d.ts.map +1 -1
- package/dist/esm/providers/github/github.frontend-app.module.js +15 -4
- package/dist/esm/providers/github/github.frontend-app.module.js.map +1 -1
- package/dist/esm/providers/google/google.frontend-app.module.d.ts.map +1 -1
- package/dist/esm/providers/google/google.frontend-app.module.js +16 -4
- package/dist/esm/providers/google/google.frontend-app.module.js.map +1 -1
- package/dist/esm/providers/microsoft/microsoft.frontend-app.module.d.ts.map +1 -1
- package/dist/esm/providers/microsoft/microsoft.frontend-app.module.js +15 -4
- package/dist/esm/providers/microsoft/microsoft.frontend-app.module.js.map +1 -1
- package/dist/esm/providers/posthog/posthog.frontend-website.module.d.ts +19 -0
- package/dist/esm/providers/posthog/posthog.frontend-website.module.d.ts.map +1 -1
- package/dist/esm/providers/posthog/posthog.frontend-website.module.js +65 -4
- package/dist/esm/providers/posthog/posthog.frontend-website.module.js.map +1 -1
- package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.d.ts.map +1 -1
- package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.js +24 -4
- package/dist/esm/providers/recaptcha/recaptcha.frontend-website.module.js.map +1 -1
- package/dist/esm/providers/sentry/index.d.ts +0 -2
- package/dist/esm/providers/sentry/index.d.ts.map +0 -1
- package/dist/esm/providers/sentry/index.js +0 -2
- package/dist/esm/providers/sentry/index.js.map +0 -1
- package/dist/esm/providers/sentry/sentry.frontend-app.module.d.ts +57 -0
- package/dist/esm/providers/sentry/sentry.frontend-app.module.d.ts.map +1 -0
- package/dist/esm/providers/sentry/sentry.frontend-app.module.js +141 -0
- package/dist/esm/providers/sentry/sentry.frontend-app.module.js.map +1 -0
- package/dist/esm/providers/sentry/sentry.frontend-website.module.d.ts +27 -0
- package/dist/esm/providers/sentry/sentry.frontend-website.module.d.ts.map +1 -1
- package/dist/esm/providers/sentry/sentry.frontend-website.module.js +79 -4
- package/dist/esm/providers/sentry/sentry.frontend-website.module.js.map +1 -1
- package/dist/esm/providers/stripe/stripe.frontend-app.module.d.ts.map +1 -1
- package/dist/esm/providers/stripe/stripe.frontend-app.module.js +15 -4
- package/dist/esm/providers/stripe/stripe.frontend-app.module.js.map +1 -1
- package/dist/esm/shared/activate-frontend-provider-sdks.d.ts +88 -0
- package/dist/esm/shared/activate-frontend-provider-sdks.d.ts.map +1 -0
- package/dist/esm/shared/activate-frontend-provider-sdks.js +110 -0
- package/dist/esm/shared/activate-frontend-provider-sdks.js.map +1 -0
- package/dist/esm/shared/frontend-provider-surface.types.d.ts +365 -0
- package/dist/esm/shared/frontend-provider-surface.types.d.ts.map +1 -0
- package/dist/esm/shared/frontend-provider-surface.types.js +82 -0
- package/dist/esm/shared/frontend-provider-surface.types.js.map +1 -0
- package/dist/esm/shared/hydrate-frontend-providers.d.ts +150 -0
- package/dist/esm/shared/hydrate-frontend-providers.d.ts.map +1 -0
- package/dist/esm/shared/hydrate-frontend-providers.js +298 -0
- package/dist/esm/shared/hydrate-frontend-providers.js.map +1 -0
- package/dist/esm/techdoc/compose-frontend-techdoc-providers.d.ts.map +1 -1
- package/dist/esm/techdoc/compose-frontend-techdoc-providers.js +5 -2
- package/dist/esm/techdoc/compose-frontend-techdoc-providers.js.map +1 -1
- package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.d.ts +33 -0
- package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.d.ts.map +1 -0
- package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.js +41 -0
- package/dist/esm/techdoc/compose-hydrated-frontend-techdoc-providers.js.map +1 -0
- package/dist/esm/techdoc/frontend-techdoc-provider-module.types.d.ts +61 -4
- package/dist/esm/techdoc/frontend-techdoc-provider-module.types.d.ts.map +1 -1
- package/dist/esm/techdoc/frontend-techdoc-provider-module.types.js +5 -3
- package/dist/esm/techdoc/frontend-techdoc-provider-module.types.js.map +1 -1
- package/dist/esm/techdoc/index.d.ts +4 -0
- package/dist/esm/techdoc/index.d.ts.map +1 -1
- package/dist/esm/techdoc/index.js +4 -0
- package/dist/esm/techdoc/index.js.map +1 -1
- package/dist/esm/website/compose-frontend-website-providers.d.ts.map +1 -1
- package/dist/esm/website/compose-frontend-website-providers.js +5 -2
- package/dist/esm/website/compose-frontend-website-providers.js.map +1 -1
- package/dist/esm/website/compose-hydrated-frontend-website-providers.d.ts +33 -0
- package/dist/esm/website/compose-hydrated-frontend-website-providers.d.ts.map +1 -0
- package/dist/esm/website/compose-hydrated-frontend-website-providers.js +41 -0
- package/dist/esm/website/compose-hydrated-frontend-website-providers.js.map +1 -0
- package/dist/esm/website/engine-frontend-website-provider-registry.d.ts.map +1 -1
- package/dist/esm/website/engine-frontend-website-provider-registry.js +5 -1
- package/dist/esm/website/engine-frontend-website-provider-registry.js.map +1 -1
- package/dist/esm/website/frontend-website-provider-module.types.d.ts +63 -3
- package/dist/esm/website/frontend-website-provider-module.types.d.ts.map +1 -1
- package/dist/esm/website/frontend-website-provider-module.types.js +7 -2
- package/dist/esm/website/frontend-website-provider-module.types.js.map +1 -1
- package/dist/esm/website/index.d.ts +4 -0
- package/dist/esm/website/index.d.ts.map +1 -1
- package/dist/esm/website/index.js +4 -0
- package/dist/esm/website/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +15 -3
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Intentionally HOLDS NO SECRETS — this type lives in
|
|
6
6
|
* `@wildo-ai/external-connectors-public/app`, the browser-bound side
|
|
7
|
-
* of the trust-zone split
|
|
8
|
-
*
|
|
7
|
+
* of the trust-zone split.
|
|
8
|
+
*
|
|
9
|
+
* The module is the CODE half of a provider's frontend surface. Its DATA half
|
|
10
|
+
* is `FrontendProviderEntry`, hydrated on first paint via
|
|
11
|
+
* `FrontendAppBootstrapPayload.frontendProviders`; the two are joined at
|
|
12
|
+
* runtime by `composeHydratedFrontendAppProviders` rather than one being cast
|
|
13
|
+
* to the other.
|
|
9
14
|
*
|
|
10
15
|
* The `publicConfig` slice is the only place public configuration flows
|
|
11
16
|
* to the frontend (e.g. Stripe publishable keys, OAuth client IDs).
|
|
12
|
-
* Consumers refine it at the use site via per-providerCapability shapes.
|
|
13
17
|
*
|
|
14
18
|
* I18n ownership stays at the consuming frontend surface: provider modules
|
|
15
19
|
* export translation-ready keys on `metadata`, while React/UI code resolves
|
|
16
20
|
* those keys through the app i18n service at render time. Do not freeze
|
|
17
21
|
* localized button labels or provider names into `publicConfig`.
|
|
18
|
-
*
|
|
19
|
-
* See `.cursor/plans/provider-registration-refactor-implementation-plan.md`
|
|
20
|
-
* §Phase 0.7.
|
|
21
22
|
*/
|
|
22
23
|
/** @wildo_source:part:end external-connectors.app.frontend-provider-module */
|
|
23
24
|
//# sourceMappingURL=frontend-app-provider-module.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontend-app-provider-module.types.js","sourceRoot":"","sources":["../../../../src/app/frontend-app-provider-module.types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"frontend-app-provider-module.types.js","sourceRoot":"","sources":["../../../../src/app/frontend-app-provider-module.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AA8JH,8EAA8E","sourcesContent":["/**\n * `FrontendAppProviderModule` — browser-bound facet of a provider for\n * the main SaaS-app frontend (`AppFrontendType.SAAS_APP`).\n *\n * Intentionally HOLDS NO SECRETS — this type lives in\n * `@wildo-ai/external-connectors-public/app`, the browser-bound side\n * of the trust-zone split.\n *\n * The module is the CODE half of a provider's frontend surface. Its DATA half\n * is `FrontendProviderEntry`, hydrated on first paint via\n * `FrontendAppBootstrapPayload.frontendProviders`; the two are joined at\n * runtime by `composeHydratedFrontendAppProviders` rather than one being cast\n * to the other.\n *\n * The `publicConfig` slice is the only place public configuration flows\n * to the frontend (e.g. Stripe publishable keys, OAuth client IDs).\n *\n * I18n ownership stays at the consuming frontend surface: provider modules\n * export translation-ready keys on `metadata`, while React/UI code resolves\n * those keys through the app i18n service at render time. Do not freeze\n * localized button labels or provider names into `publicConfig`.\n */\n\nimport type { ProviderComplianceProfile } from '@wildo-ai/saas-models/public-runtime';\n\nimport type {\n ProviderFrontendCspFootprintDeclaration,\n ProviderFrontendScriptDeclaration,\n ProviderMetadata,\n ProviderCapability,\n ProviderProtocol,\n} from '@wildo-ai/saas-models/public-runtime';\nimport type {\n ProviderFrontendComponents,\n ProviderFrontendPublicConfigSchema,\n ProviderFrontendSdk,\n} from '../shared/frontend-provider-surface.types';\n\n/** @wildo_source:part:start external-connectors.app.frontend-provider-module facet:layer:frontend facet:family:provider */\n/**\n * The browser-bound provider module an application authors for its main\n * SaaS-app frontend.\n *\n * Import from `@wildo-ai/external-connectors-public/app`. The module is a\n * plain object — no class, no registration call: the app re-exports it\n * through its `./frontend-providers` package entry and appends a matching\n * companion contribution; the framework joins it with the provider's hydrated\n * entry on first paint.\n *\n * NEVER put a secret in this object — it ships to the browser. `publicConfig`\n * is the only channel for public runtime configuration (publishable keys,\n * client IDs, picker constraints). Author `metadata` ONLY through\n * `defineProviderMetadata({ ref, packageName, tier, origin })` (#328): it\n * derives the translation-ready display-name key and records the provider's\n * identity — package, tier (an application-owned file picker is CATALOGUE: it\n * binds no engine slot), vendor and origin. Never a frozen localized string,\n * never a hand-written identity.\n *\n * ## Two channels, and which fields ride which\n *\n * `metadata`, `providerCapabilities`, `protocols`, `publicConfig`, `csp` and\n * `scripts` are DATA: they are projected onto the provider's entry, travel as\n * JSON, and are what the CLI reads when it composes the service's\n * Content-Security-Policy — it cannot execute this module, because it is a Node\n * process and this module is browser-bound.\n *\n * `sdk.activate` and `publicConfigSchema` are CODE. They reach a bundle only\n * because the bundle imports this module, through the generated\n * `frontend-providers.generated.ts` that `wildo config sync` writes for each\n * frontend service. They are never serialized; a JSON channel would drop them\n * without a word.\n *\n * A worked module declaring every field is in\n * `frontend-app-provider.example.ts`, beside this file. It lives there rather\n * than in an `@example` block here because the package's typecheck compiles it:\n * the inline version shipped for a session showing three of the CSP footprint's\n * six buckets while the type required all six, and nothing caught it.\n */\nexport interface FrontendAppProviderModule {\n metadata: ProviderMetadata;\n providerCapabilities: ReadonlyArray<ProviderCapability>;\n protocols: ReadonlyArray<ProviderProtocol>;\n /**\n * Public configuration the frontend needs at runtime. Strongly typed\n * via per-providerCapability shapes downstream — the registry stores\n * them as `unknown` so the registry shape stays stable across apps\n * that augment provider capabilities. Declare `publicConfigSchema`\n * beside it to have the framework validate it once, at hydration,\n * instead of each use site coercing it by hand.\n */\n publicConfig?: Readonly<Record<string, unknown>>;\n /**\n * Origins this provider needs the SaaS app's composed CSP to admit.\n *\n * DATA: projected onto the provider entry and read by `resolveCspPolicy`'s\n * provider layer, per service and per environment. Declaring it here is what\n * removes the alternative — hand-editing script / frame / connect origins in\n * every application's config, for every environment.\n *\n * Name only the buckets you reach; the framework fills in the rest. For an\n * endpoint you CANNOT know — one the application configures, such as a\n * monitoring DSN, an analytics host, a self-hosted deployment — declare where\n * it lives instead of guessing what it is:\n *\n * ```ts\n * csp: {\n * derivedOrigins: [\n * { publicConfigKey: 'dsn', bucket: ProviderFrontendCspOriginBucket.CONNECT },\n * ],\n * }\n * ```\n *\n * The framework reads that key out of your own `publicConfig` and takes its\n * URL origin. That is what stops an application authoring the same host twice\n * — once as your configuration, once in its CSP — where the copy that drifts\n * fails only in production, because development is report-only.\n */\n csp?: ProviderFrontendCspFootprintDeclaration;\n /**\n * Third-party `<script>` tags the surface must add for this provider — the\n * case a dynamic `import()` cannot serve, because the vendor ships a\n * global-installing tag rather than an npm module.\n *\n * DATA. Each declared `src`'s origin MUST also appear in `csp.scriptOrigins`\n * — `projectFrontendProviderContribution` refuses the provider otherwise,\n * because the policy it contributes to would block its own script, and only\n * where CSP enforces, so the failure would first appear in production.\n */\n scripts?: ReadonlyArray<ProviderFrontendScriptDeclaration>;\n /**\n * The provider's vendor SDK: which package (DATA) and how to load and start\n * it (CODE).\n *\n * `activate` must reach its package through a DYNAMIC `import()`, so the SDK\n * is a separate chunk and no page pays for a provider it does not use.\n */\n sdk?: ProviderFrontendSdk;\n /**\n * Components this provider contributes, keyed by the capability each fills\n * and loaded on demand. CODE: it reaches a bundle only through the generated\n * `frontend-providers.generated.ts`, never through the JSON entry.\n *\n * Several providers may offer a component for ONE capability — two file\n * pickers, two meeting embeds — and that is the point: the surface presents\n * the choice rather than silently taking whichever the registry happened to\n * index first.\n */\n components?: ProviderFrontendComponents;\n /**\n * Validator for this provider's own `publicConfig`, as a Standard Schema v1\n * value (a Zod 4 schema satisfies it as-is).\n *\n * CODE, and the answer to a real defect: `publicConfig` is\n * `Record<string, unknown>`, and each consuming site was coercing it by hand,\n * so a renamed key yielded `undefined` and a silently wrong provider. With a\n * schema declared, the framework validates once at hydration and a mismatch\n * says which key and why.\n */\n publicConfigSchema?: ProviderFrontendPublicConfigSchema;\n /**\n * The vendor's deployment model, processing regions and legal entity — the primitives a\n * processor register and a transfer statement are derived from.\n *\n * OPTIONAL, matching the backend contract, because a provider whose author has not stated them\n * must still load. Absent means the APPLICATION has to declare them on its own register entry,\n * where its contract with the vendor makes them checkable.\n *\n * Why a FRONTEND provider needs this at least as much as a backend one (#345): this module\n * executes in the DATA SUBJECT'S BROWSER. It loads third-party script, may set storage, and\n * talks to the vendor directly — the application's backend never sees the call. Product\n * analytics, error monitoring, a captcha and a payment element are precisely the third-party\n * recipients a privacy notice has to name, and the operator controls them LESS than a backend\n * provider routed through their own infrastructure.\n *\n * See `ProviderComplianceProfileSchema` for each field's meaning and for the refusal that a\n * `VENDOR_HOSTED` provider declaring no region cannot support a transfer statement.\n */\n complianceProfile?: ProviderComplianceProfile;\n}\n/** @wildo_source:part:end external-connectors.app.frontend-provider-module */\n"]}
|
package/dist/esm/app/index.d.ts
CHANGED
|
@@ -7,4 +7,8 @@ export * from './frontend-app-provider-module.types';
|
|
|
7
7
|
export * from './frontend-app-provider-registry.types';
|
|
8
8
|
export * from './compose-frontend-app-providers';
|
|
9
9
|
export * from './engine-frontend-app-provider-registry';
|
|
10
|
+
export * from './compose-hydrated-frontend-app-providers';
|
|
11
|
+
export * from '../shared/frontend-provider-surface.types';
|
|
12
|
+
export * from '../shared/hydrate-frontend-providers';
|
|
13
|
+
export * from '../shared/activate-frontend-provider-sdks';
|
|
10
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC"}
|
package/dist/esm/app/index.js
CHANGED
|
@@ -7,4 +7,8 @@ export * from './frontend-app-provider-module.types.js';
|
|
|
7
7
|
export * from './frontend-app-provider-registry.types.js';
|
|
8
8
|
export * from './compose-frontend-app-providers.js';
|
|
9
9
|
export * from './engine-frontend-app-provider-registry.js';
|
|
10
|
+
export * from './compose-hydrated-frontend-app-providers.js';
|
|
11
|
+
export * from '../shared/frontend-provider-surface.types.js';
|
|
12
|
+
export * from '../shared/hydrate-frontend-providers.js';
|
|
13
|
+
export * from '../shared/activate-frontend-provider-sdks.js';
|
|
10
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC","sourcesContent":["/**\n * Public surface of `@wildo-ai/external-connectors-public/app`.\n *\n * Browser-bound, no secrets. Phase 1 wires `composeFrontendAppProviders`.\n */\n\nexport * from './frontend-app-provider-module.types';\nexport * from './frontend-app-provider-registry.types';\nexport * from './compose-frontend-app-providers';\nexport * from './engine-frontend-app-provider-registry';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC","sourcesContent":["/**\n * Public surface of `@wildo-ai/external-connectors-public/app`.\n *\n * Browser-bound, no secrets. Phase 1 wires `composeFrontendAppProviders`.\n */\n\nexport * from './frontend-app-provider-module.types';\nexport * from './frontend-app-provider-registry.types';\nexport * from './compose-frontend-app-providers';\nexport * from './engine-frontend-app-provider-registry';\nexport * from './compose-hydrated-frontend-app-providers';\nexport * from '../shared/frontend-provider-surface.types';\nexport * from '../shared/hydrate-frontend-providers';\nexport * from '../shared/activate-frontend-provider-sdks';\n"]}
|
|
@@ -28,7 +28,54 @@
|
|
|
28
28
|
* remain the browser-shipped surface; this `./companion` subpath is
|
|
29
29
|
* tooling-only.
|
|
30
30
|
*/
|
|
31
|
+
import { AppFrontendType, type ProviderFrontendCspFootprintDeclaration, type ProviderFrontendScriptDeclaration, type ProviderFrontendComponentDescriptor, type ProviderFrontendSdkDescriptor, type ProviderMetadata } from '@wildo-ai/saas-models/public-runtime';
|
|
31
32
|
import { type ProviderCompanionContribution, type RuntimeOwnerCompanionExports } from '@wildo-ai/saas-models';
|
|
33
|
+
/**
|
|
34
|
+
* The facet-agnostic view of a frontend provider module this projection reads.
|
|
35
|
+
*
|
|
36
|
+
* Only the DATA half appears here, and that is the contract rather than an
|
|
37
|
+
* omission: this file is loaded by NODE-side tooling (`wildo config sync` and
|
|
38
|
+
* the discovery walker), which cannot execute a browser-bound module's
|
|
39
|
+
* `sdk.activate` and must never try. What it CAN read is the descriptor beside
|
|
40
|
+
* it — which package the SDK lives in — and that is what the bundle-isolation
|
|
41
|
+
* policy, an application's dependency alignment and a human reading a bundle
|
|
42
|
+
* report need.
|
|
43
|
+
*/
|
|
44
|
+
interface FrontendProviderModuleShape {
|
|
45
|
+
metadata: ProviderMetadata;
|
|
46
|
+
providerCapabilities: ReadonlyArray<string>;
|
|
47
|
+
protocols: ReadonlyArray<string>;
|
|
48
|
+
publicConfig?: Readonly<Record<string, unknown>>;
|
|
49
|
+
csp?: ProviderFrontendCspFootprintDeclaration;
|
|
50
|
+
scripts?: ReadonlyArray<ProviderFrontendScriptDeclaration>;
|
|
51
|
+
sdk?: {
|
|
52
|
+
readonly descriptor: ProviderFrontendSdkDescriptor;
|
|
53
|
+
};
|
|
54
|
+
components?: Readonly<Record<string, ProviderFrontendComponentDescriptor & {
|
|
55
|
+
readonly load: unknown;
|
|
56
|
+
}>>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Turns a frontend provider module into the companion contribution tooling
|
|
60
|
+
* reads — the ONE place a facet module becomes a discovery record.
|
|
61
|
+
*
|
|
62
|
+
* Exported because the engine is not the only producer. Every
|
|
63
|
+
* `@wildo-ai/provider-<ref>` package's own `./companion` barrel has to do
|
|
64
|
+
* exactly this for its own facet modules, and a projection each package
|
|
65
|
+
* hand-rolls is a projection that drifts: the DATA half of the frontend
|
|
66
|
+
* surface would end up carried by some packages and dropped by others, and a
|
|
67
|
+
* dropped CSP footprint is invisible until a provider is blocked in production.
|
|
68
|
+
*
|
|
69
|
+
* What crosses and what does not is the whole contract. `csp`, `scripts` and
|
|
70
|
+
* the SDK DESCRIPTOR cross, because tooling has to read them without executing
|
|
71
|
+
* anything — this runs in Node and a facet module is browser-bound. The
|
|
72
|
+
* executable half — `sdk.activate`, `publicConfigSchema` — does NOT, and cannot:
|
|
73
|
+
* the contribution is serialized to JSON on its way into the generated
|
|
74
|
+
* artifact, so a function would be dropped by `JSON.stringify` with no error
|
|
75
|
+
* anywhere. Code reaches a bundle through the generated
|
|
76
|
+
* `frontend-providers.generated.ts` instead.
|
|
77
|
+
*/
|
|
78
|
+
export declare function projectFrontendProviderContribution(module: FrontendProviderModuleShape, serviceType: AppFrontendType, runtimeImportPath: string): ProviderCompanionContribution;
|
|
32
79
|
/** One contribution per `EngineFrontendAppProviderRegistry` module, targeting `SAAS_APP`. */
|
|
33
80
|
export declare const engineFrontendAppProviderContributions: ProviderCompanionContribution[];
|
|
34
81
|
/** One contribution per `EngineFrontendTechdocProviderRegistry` module, targeting `TECH_DOC`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-exports.d.ts","sourceRoot":"","sources":["../../../src/companion-exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;
|
|
1
|
+
{"version":3,"file":"companion-exports.d.ts","sourceRoot":"","sources":["../../../src/companion-exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EACL,eAAe,EAIf,KAAK,uCAAuC,EAC5C,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAGL,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EAClC,MAAM,uBAAuB,CAAC;AAoC/B;;;;;;;;;;GAUG;AACH,UAAU,2BAA2B;IACnC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,oBAAoB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5C,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACjD,GAAG,CAAC,EAAE,uCAAuC,CAAC;IAC9C,OAAO,CAAC,EAAE,aAAa,CAAC,iCAAiC,CAAC,CAAC;IAC3D,GAAG,CAAC,EAAE;QAAE,QAAQ,CAAC,UAAU,EAAE,6BAA6B,CAAA;KAAE,CAAC;IAC7D,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,mCAAmC,GAAG;QAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC,CAAC;CACzG;AAqDD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,2BAA2B,EACnC,WAAW,EAAE,eAAe,EAC5B,iBAAiB,EAAE,MAAM,GACxB,6BAA6B,CAgD/B;AAED,6FAA6F;AAC7F,eAAO,MAAM,sCAAsC,EAAE,6BAA6B,EAG/E,CAAC;AAEJ,iGAAiG;AACjG,eAAO,MAAM,0CAA0C,EAAE,6BAA6B,EAGnF,CAAC;AAEJ,uGAAuG;AACvG,eAAO,MAAM,0CAA0C,EAAE,6BAA6B,EAGnF,CAAC;AAEJ,sGAAsG;AACtG,eAAO,MAAM,mCAAmC,EAAE,6BAA6B,EAI9E,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,EAAE,4BAEvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -28,8 +28,9 @@
|
|
|
28
28
|
* remain the browser-shipped surface; this `./companion` subpath is
|
|
29
29
|
* tooling-only.
|
|
30
30
|
*/
|
|
31
|
-
import { AppFrontendType, } from '@wildo-ai/saas-models/public-runtime';
|
|
31
|
+
import { AppFrontendType, normalizeProviderFrontendCspFootprint, } from '@wildo-ai/saas-models/public-runtime';
|
|
32
32
|
import { PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY, } from '@wildo-ai/saas-models';
|
|
33
|
+
import { projectFrontendComponentDescriptors } from './shared/frontend-provider-surface.types.js';
|
|
33
34
|
import { EngineFrontendAppProviderRegistry } from './app/engine-frontend-app-provider-registry.js';
|
|
34
35
|
import { EngineFrontendTechdocProviderRegistry } from './techdoc/engine-frontend-techdoc-provider-registry.js';
|
|
35
36
|
import { EngineFrontendWebsiteProviderRegistry } from './website/engine-frontend-website-provider-registry.js';
|
|
@@ -60,15 +61,108 @@ function deriveEngineCapabilities(providerCapabilities) {
|
|
|
60
61
|
}
|
|
61
62
|
return Array.from(slots);
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Refuses a provider whose declared `<script>` origin it did not also grant
|
|
66
|
+
* itself in `csp.scriptOrigins`.
|
|
67
|
+
*
|
|
68
|
+
* The three facet module types have carried this rule in prose since the fields
|
|
69
|
+
* landed, and prose is not a check. The failure it prevents is the worst shape
|
|
70
|
+
* this surface has: the provider ships, the script tag is injected, the composed
|
|
71
|
+
* policy does not admit its origin, and the browser refuses it — in PRODUCTION
|
|
72
|
+
* ONLY, because development is report-only. The provider looks configured, the
|
|
73
|
+
* page looks fine locally, and the capability is simply absent for real users.
|
|
74
|
+
*
|
|
75
|
+
* Absolute rather than conditional on the application's own policy, and that is
|
|
76
|
+
* the point: a provider cannot know whether the application it lands in
|
|
77
|
+
* happens to allow-list its vendor, and relying on that is exactly the
|
|
78
|
+
* hand-editing per app, per service, per environment that declaring a footprint
|
|
79
|
+
* exists to remove. Restating an origin the app would have allowed anyway costs
|
|
80
|
+
* nothing — CSP source lists are a union.
|
|
81
|
+
*
|
|
82
|
+
* Thrown, not reported, and only HERE. This runs where the author is: in the
|
|
83
|
+
* provider package's own `./companion` barrel and in the CLI's discovery walk,
|
|
84
|
+
* so `wildo config sync` fails with the provider, the script and the missing
|
|
85
|
+
* origin named. The backend's fallback projection deliberately does NOT repeat
|
|
86
|
+
* it — refusing there would take an application's boot down for a provider
|
|
87
|
+
* authoring mistake, long after the person who could fix it has gone.
|
|
88
|
+
*/
|
|
89
|
+
function assertDeclaredScriptOriginsAreGranted(module) {
|
|
90
|
+
const declaredScriptOrigins = new Set(module.csp?.scriptOrigins ?? []);
|
|
91
|
+
for (const script of module.scripts ?? []) {
|
|
92
|
+
let origin;
|
|
93
|
+
try {
|
|
94
|
+
origin = new URL(script.src).origin;
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
throw new Error(`Frontend provider "${module.metadata.ref}" declares a script whose src is not an absolute URL: `
|
|
98
|
+
+ `"${script.src}". A script declaration names a third-party origin, so the framework can neither `
|
|
99
|
+
+ 'resolve it nor grant it in the composed Content-Security-Policy.');
|
|
100
|
+
}
|
|
101
|
+
if (!declaredScriptOrigins.has(origin)) {
|
|
102
|
+
throw new Error(`Frontend provider "${module.metadata.ref}" declares the script "${script.src}" but does not list `
|
|
103
|
+
+ `"${origin}" in csp.scriptOrigins. The policy this provider contributes to would then block its own `
|
|
104
|
+
+ 'script — and only where CSP enforces, so the failure would first appear in production. Add the '
|
|
105
|
+
+ 'origin to the provider\'s csp.scriptOrigins.');
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Turns a frontend provider module into the companion contribution tooling
|
|
111
|
+
* reads — the ONE place a facet module becomes a discovery record.
|
|
112
|
+
*
|
|
113
|
+
* Exported because the engine is not the only producer. Every
|
|
114
|
+
* `@wildo-ai/provider-<ref>` package's own `./companion` barrel has to do
|
|
115
|
+
* exactly this for its own facet modules, and a projection each package
|
|
116
|
+
* hand-rolls is a projection that drifts: the DATA half of the frontend
|
|
117
|
+
* surface would end up carried by some packages and dropped by others, and a
|
|
118
|
+
* dropped CSP footprint is invisible until a provider is blocked in production.
|
|
119
|
+
*
|
|
120
|
+
* What crosses and what does not is the whole contract. `csp`, `scripts` and
|
|
121
|
+
* the SDK DESCRIPTOR cross, because tooling has to read them without executing
|
|
122
|
+
* anything — this runs in Node and a facet module is browser-bound. The
|
|
123
|
+
* executable half — `sdk.activate`, `publicConfigSchema` — does NOT, and cannot:
|
|
124
|
+
* the contribution is serialized to JSON on its way into the generated
|
|
125
|
+
* artifact, so a function would be dropped by `JSON.stringify` with no error
|
|
126
|
+
* anywhere. Code reaches a bundle through the generated
|
|
127
|
+
* `frontend-providers.generated.ts` instead.
|
|
128
|
+
*/
|
|
129
|
+
export function projectFrontendProviderContribution(module, serviceType, runtimeImportPath) {
|
|
130
|
+
assertDeclaredScriptOriginsAreGranted(module);
|
|
64
131
|
const frontendEntry = {
|
|
65
132
|
metadata: module.metadata,
|
|
66
133
|
providerCapabilities: [...module.providerCapabilities],
|
|
67
134
|
protocols: [...module.protocols],
|
|
68
135
|
publicConfig: module.publicConfig,
|
|
136
|
+
// The DATA half of the frontend surface (#332). It has to travel with the
|
|
137
|
+
// contribution because the CSP of a service is composed by the CLI, from
|
|
138
|
+
// the materialized artifact, long before any browser loads the module that
|
|
139
|
+
// declares it — and the CLI cannot execute that module to ask.
|
|
140
|
+
// Normalized here, once: a provider AUTHORS the buckets it reaches and the
|
|
141
|
+
// wire carries all of them, so the CSP composer never branches on absence
|
|
142
|
+
// and the hydration join compares two shapes of the same kind.
|
|
143
|
+
csp: module.csp === undefined ? undefined : normalizeProviderFrontendCspFootprint(module.csp),
|
|
144
|
+
scripts: module.scripts === undefined ? undefined : [...module.scripts],
|
|
145
|
+
sdk: module.sdk?.descriptor,
|
|
146
|
+
// The DATA half of each contributed component (#380). `load` is stripped
|
|
147
|
+
// HERE rather than left to `JSON.stringify` to drop it: a function that
|
|
148
|
+
// disappears silently on its way through a serializer is the failure this
|
|
149
|
+
// whole two-channel split exists to remove, and stripping it explicitly is
|
|
150
|
+
// what makes the projection's contract readable at the projection.
|
|
151
|
+
//
|
|
152
|
+
// Rebuilt field by field rather than spread-minus-`load`, so a future field
|
|
153
|
+
// on the declaration is a COMPILE decision about whether it crosses the wire
|
|
154
|
+
// instead of one that crosses by default. `sdk` makes the same choice by
|
|
155
|
+
// naming `descriptor`; this is the same rule where the shape is a map.
|
|
156
|
+
components: projectFrontendComponentDescriptors(module.components),
|
|
69
157
|
};
|
|
70
158
|
return {
|
|
71
159
|
ref: module.metadata.ref,
|
|
160
|
+
identity: {
|
|
161
|
+
packageName: module.metadata.packageName,
|
|
162
|
+
tier: module.metadata.tier,
|
|
163
|
+
vendor: module.metadata.vendor,
|
|
164
|
+
origin: module.metadata.origin,
|
|
165
|
+
},
|
|
72
166
|
runtimeImportPath,
|
|
73
167
|
runtimeTargets: [{ kind: 'frontendService', serviceType }],
|
|
74
168
|
engineCapabilities: deriveEngineCapabilities(module.providerCapabilities),
|
|
@@ -81,11 +175,11 @@ function projectFrontendModule(module, serviceType, runtimeImportPath) {
|
|
|
81
175
|
};
|
|
82
176
|
}
|
|
83
177
|
/** One contribution per `EngineFrontendAppProviderRegistry` module, targeting `SAAS_APP`. */
|
|
84
|
-
export const engineFrontendAppProviderContributions = Array.from(EngineFrontendAppProviderRegistry.modules.values()).map((module) =>
|
|
178
|
+
export const engineFrontendAppProviderContributions = Array.from(EngineFrontendAppProviderRegistry.modules.values()).map((module) => projectFrontendProviderContribution(module, AppFrontendType.SAAS_APP, APP_RUNTIME_IMPORT_PATH));
|
|
85
179
|
/** One contribution per `EngineFrontendTechdocProviderRegistry` module, targeting `TECH_DOC`. */
|
|
86
|
-
export const engineFrontendTechdocProviderContributions = Array.from(EngineFrontendTechdocProviderRegistry.modules.values()).map((module) =>
|
|
180
|
+
export const engineFrontendTechdocProviderContributions = Array.from(EngineFrontendTechdocProviderRegistry.modules.values()).map((module) => projectFrontendProviderContribution(module, AppFrontendType.TECH_DOC, TECHDOC_RUNTIME_IMPORT_PATH));
|
|
87
181
|
/** One contribution per `EngineFrontendWebsiteProviderRegistry` module, targeting `STATIC_WEBSITE`. */
|
|
88
|
-
export const engineFrontendWebsiteProviderContributions = Array.from(EngineFrontendWebsiteProviderRegistry.modules.values()).map((module) =>
|
|
182
|
+
export const engineFrontendWebsiteProviderContributions = Array.from(EngineFrontendWebsiteProviderRegistry.modules.values()).map((module) => projectFrontendProviderContribution(module, AppFrontendType.STATIC_WEBSITE, WEBSITE_RUNTIME_IMPORT_PATH));
|
|
89
183
|
/** Stable union — order: app providers, then techdoc, then website (matches the registry imports). */
|
|
90
184
|
export const engineFrontendProviderContributions = [
|
|
91
185
|
...engineFrontendAppProviderContributions,
|
|
@@ -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 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 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 { 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}\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 };\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":"
|
|
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 {
|
|
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
|
-
|
|
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,
|
|
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":"apple.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/apple/apple.frontend-app.module.ts"],"names":[],"mappings":"
|
|
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 {
|
|
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
|
-
|
|
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,
|
|
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":"github.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/github/github.frontend-app.module.ts"],"names":[],"mappings":"
|
|
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 {
|
|
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
|
-
|
|
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,
|
|
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":"google.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/google/google.frontend-app.module.ts"],"names":[],"mappings":"
|
|
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,eAAO,MAAM,yBAAyB,EAAE,yBAqBvC,CAAC"}
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
import {
|
|
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 GoogleFrontendAppProvider = {
|
|
3
|
-
metadata: {
|
|
4
|
+
metadata: defineProviderMetadata({
|
|
4
5
|
ref: 'google',
|
|
5
|
-
|
|
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: 'google',
|
|
11
14
|
},
|
|
15
|
+
/**
|
|
16
|
+
* Mirrors the authored `google` BACKEND profile. Note the sibling `recaptcha` provider does NOT
|
|
17
|
+
* share this entity — see its own profile.
|
|
18
|
+
*/
|
|
19
|
+
complianceProfile: {
|
|
20
|
+
deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
|
|
21
|
+
processingRegions: ['us-east-1', 'eu-west-1'],
|
|
22
|
+
vendorLegalEntityName: 'Google LLC',
|
|
23
|
+
},
|
|
12
24
|
};
|
|
13
25
|
//# 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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microsoft.frontend-app.module.d.ts","sourceRoot":"","sources":["../../../../../src/providers/microsoft/microsoft.frontend-app.module.ts"],"names":[],"mappings":"
|
|
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"}
|