@zitadel/config 1.0.0-alpha.24 → 1.0.0-alpha.25

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 (55) hide show
  1. package/defaults/branding/centered/login.liquid +31 -11
  2. package/defaults/branding/minimal/login.liquid +30 -10
  3. package/dist/branding-contrast.d.mts +28 -21
  4. package/dist/branding-contrast.d.mts.map +1 -1
  5. package/dist/branding-contrast.mjs +1 -1
  6. package/dist/branding-contrast.mjs.map +1 -1
  7. package/dist/branding-url.d.mts +1 -2
  8. package/dist/branding-url.d.mts.map +1 -1
  9. package/dist/branding-url.mjs.map +1 -1
  10. package/dist/css-color.d.mts +5 -10
  11. package/dist/css-color.d.mts.map +1 -1
  12. package/dist/css-color.mjs +1 -1
  13. package/dist/css-color.mjs.map +1 -1
  14. package/dist/{defaults-BnWXllBk.d.mts → defaults-BtKIcWxW.d.mts} +11 -7
  15. package/dist/defaults-BtKIcWxW.d.mts.map +1 -0
  16. package/dist/{defaults-BnRHT7RQ.mjs → defaults-COLBFU3S.mjs} +1 -1
  17. package/dist/defaults-COLBFU3S.mjs.map +1 -0
  18. package/dist/defaults.d.mts +1 -1
  19. package/dist/defaults.mjs +1 -1
  20. package/dist/idp/index.d.mts +2 -0
  21. package/dist/idp/index.mjs +2 -0
  22. package/dist/idp-ByzXQN85.mjs +207 -0
  23. package/dist/idp-ByzXQN85.mjs.map +1 -0
  24. package/dist/idp-connection-CHxGm1Wr.mjs +324 -0
  25. package/dist/idp-connection-CHxGm1Wr.mjs.map +1 -0
  26. package/dist/index-Cuxu-zQD.d.mts +210 -0
  27. package/dist/index-Cuxu-zQD.d.mts.map +1 -0
  28. package/dist/index.d.mts +4 -3
  29. package/dist/index.mjs +5 -4
  30. package/dist/{meta-schemas-K8f7YZYz.mjs → meta-schemas-C03zgFux.mjs} +31 -328
  31. package/dist/meta-schemas-C03zgFux.mjs.map +1 -0
  32. package/dist/meta-schemas.d.mts +5 -6
  33. package/dist/meta-schemas.d.mts.map +1 -1
  34. package/dist/meta-schemas.mjs +1 -1
  35. package/dist/normalize.d.mts +3 -4
  36. package/dist/normalize.d.mts.map +1 -1
  37. package/dist/normalize.mjs.map +1 -1
  38. package/dist/{schemas-7oNU25Qz.mjs → schemas-CUU4Rf8J.mjs} +11 -4
  39. package/dist/schemas-CUU4Rf8J.mjs.map +1 -0
  40. package/dist/schemas.d.mts +361 -9
  41. package/dist/schemas.d.mts.map +1 -1
  42. package/dist/schemas.mjs +2 -2
  43. package/dist/template.d.mts +9 -10
  44. package/dist/template.d.mts.map +1 -1
  45. package/dist/template.mjs.map +1 -1
  46. package/dist/validate.d.mts +15 -13
  47. package/dist/validate.d.mts.map +1 -1
  48. package/dist/validate.mjs +28 -18
  49. package/dist/validate.mjs.map +1 -1
  50. package/meta-schemas/flow-definition.json +81 -6
  51. package/package.json +12 -6
  52. package/dist/defaults-BnRHT7RQ.mjs.map +0 -1
  53. package/dist/defaults-BnWXllBk.d.mts.map +0 -1
  54. package/dist/meta-schemas-K8f7YZYz.mjs.map +0 -1
  55. package/dist/schemas-7oNU25Qz.mjs.map +0 -1
@@ -0,0 +1,210 @@
1
+ //#region src/idp/provider.d.ts
2
+ /**
3
+ * What the CLI needs to know about one identity provider to scaffold a working
4
+ * connection for it: how to name it, where to send the developer to register an
5
+ * application, and how to compose the connection document.
6
+ *
7
+ * One class per provider, because a provider is not only a table of values.
8
+ * Google is pure data today; GitHub speaks OAuth2 rather than OIDC, has no
9
+ * family-name claim, and needs a second request to read an email at all. A
10
+ * shape that only holds data forces that behaviour somewhere else, where it
11
+ * stops being the provider's business and starts being a branch in shared code.
12
+ */
13
+ /**
14
+ * Whether the vendor accepts many redirect URIs on a single client, or needs a
15
+ * separate application per environment. Surfaced when the developer is told
16
+ * what to register, so they register the right thing.
17
+ */
18
+ type CallbackGuidance = "multi_uri_client" | "app_per_environment";
19
+ /** Where a connection points, when not at the vendor. */
20
+ type ConnectionEndpoints = {
21
+ readonly issuer?: string;
22
+ };
23
+ /** What a connection document needs beyond the provider's own knowledge. */
24
+ type ScaffoldOptions = {
25
+ /** Properties the target user schema defines, which bounds the claim mapping. */
26
+ readonly schemaProperties: Iterable<string>;
27
+ /** Slug to write under; defaults to the provider's own. */
28
+ readonly slug?: string;
29
+ /** `$schema` pointer, relative to `.zitadel/idps/`. */
30
+ readonly schemaRef?: string;
31
+ /** Point the connection somewhere other than the vendor (local testing). */
32
+ readonly endpoints?: ConnectionEndpoints;
33
+ };
34
+ interface IdpProvider {
35
+ /** Default connection slug, and the name `--provider` takes. */
36
+ readonly slug: string;
37
+ /** Written to the connection and shown on the sign-in button. */
38
+ readonly displayName: string;
39
+ /**
40
+ * Written to the connection as `template`. Keys vendor knowledge only —
41
+ * glyphs, button branding, the setup scan — and carries no protocol
42
+ * behaviour.
43
+ */
44
+ readonly template: string;
45
+ /** Where the developer registers the application. */
46
+ readonly consoleUrl: string;
47
+ /** The vendor's own integration documentation. */
48
+ readonly docsUrl: string;
49
+ readonly callbackGuidance: CallbackGuidance;
50
+ /** The issuer the vendor publishes, and the default when one is asked for. */
51
+ readonly issuer: string;
52
+ /**
53
+ * The claims this provider emits, keyed by schema property name, narrowed to
54
+ * the properties the target schema actually defines.
55
+ */
56
+ claimMapping(schemaProperties: Iterable<string>): Record<string, string>;
57
+ /** The document `zitadel setup` writes to `.zitadel/idps/<slug>.json`. */
58
+ connection(options: ScaffoldOptions): Record<string, unknown>;
59
+ }
60
+ /** The project variables a connection's two credentials reference. */
61
+ type CredentialVariables = {
62
+ readonly clientId: string;
63
+ readonly clientSecret: string;
64
+ };
65
+ /**
66
+ * The variables a connection scaffolded under `slug` references.
67
+ *
68
+ * Derived from the slug rather than the provider: a Project may hold a second
69
+ * connection for the same provider under a slug of its own, and its
70
+ * credentials belong to that connection, not to the provider.
71
+ */
72
+ declare function credentialVariables(slug: string): CredentialVariables;
73
+ /**
74
+ * A credential's variable name: the slug uppercased with every non-alphanumeric
75
+ * replaced by `_`, then the suffix. A slug may start with a digit, which no
76
+ * shell accepts as the first character of a name, so such a name gains a `_`.
77
+ */
78
+ declare function credentialVariable(slug: string, suffix: string): string;
79
+ /**
80
+ * The `${{ NAME }}` reference written to a credential field, as
81
+ * `idp-connection.json` requires: a whole-value placeholder, with no text
82
+ * around it that would be rendered into the resolved credential.
83
+ */
84
+ declare function variableReference(name: string): string;
85
+ /**
86
+ * The variable a `${{ NAME }}` reference names, or `undefined` when the value
87
+ * is not one.
88
+ *
89
+ * A connection is editable, so the name it references need not be the one this
90
+ * CLI would have chosen — a hand-written file may point at `ACME_SECRET`.
91
+ * Publishing to a name derived from the slug instead would store the credential
92
+ * where nothing reads it and report success.
93
+ */
94
+ declare function referencedVariable(value: string): string | undefined;
95
+ /** Whether a stored value is a reference rather than a credential. */
96
+ declare function isVariableReference(value: string): boolean;
97
+ //#endregion
98
+ //#region src/idp/issuer.d.ts
99
+ /** Whether a connection may name this issuer. */
100
+ declare function isSupportedIssuer(value: string): boolean;
101
+ /** What to tell someone who typed an issuer the contract does not allow. */
102
+ declare const ISSUER_REQUIREMENT = "Use an https:// URL, or http:// on localhost or 127.0.0.1.";
103
+ //#endregion
104
+ //#region src/idp/oidc-provider.d.ts
105
+ /**
106
+ * The parts of a connection document every OIDC provider composes the same way.
107
+ *
108
+ * A subclass supplies what is genuinely its own — the vendor's identity, its
109
+ * issuer, its claim table, and any protocol settings it needs — and inherits
110
+ * the composition. Nothing here knows about a specific vendor, so a provider
111
+ * whose document is shaped differently overrides rather than adds a branch.
112
+ */
113
+ declare abstract class OidcProvider implements IdpProvider {
114
+ abstract readonly slug: string;
115
+ abstract readonly displayName: string;
116
+ abstract readonly template: string;
117
+ abstract readonly consoleUrl: string;
118
+ abstract readonly docsUrl: string;
119
+ abstract readonly callbackGuidance: CallbackGuidance;
120
+ abstract readonly issuer: string;
121
+ /**
122
+ * Schema property name → the claim this provider documents for it.
123
+ *
124
+ * Authored per provider rather than derived: each row pairs a property with
125
+ * the vendor's documented claim name, and a wrong one fails silently — the
126
+ * claim is never found and the property stays unmapped.
127
+ */
128
+ protected abstract readonly claimTable: Readonly<Record<string, string>>;
129
+ /** Scopes the connection requests. */
130
+ protected abstract readonly scopes: readonly string[];
131
+ /** The claim that carries the provider's stable, unique id for an account. */
132
+ protected readonly subjectClaim: string;
133
+ /**
134
+ * Schema property name → how its value is verified: a claim to read, `true`
135
+ * for a provider trusted outright, or `"$supplementary_fetch"`.
136
+ *
137
+ * Keyed by schema property, like {@link claimTable}, so it narrows with it.
138
+ */
139
+ protected readonly verifiedClaims: Readonly<Record<string, string | true>>;
140
+ /** Parameters the vendor wants on every authorization request. */
141
+ protected readonly staticAuthorizeParameters: Readonly<Record<string, string>>;
142
+ claimMapping(schemaProperties: Iterable<string>): Record<string, string>;
143
+ /**
144
+ * Compose the connection document. Pure: it returns the object the caller
145
+ * writes to `.zitadel/idps/<slug>.json`, and performs no IO.
146
+ *
147
+ * Neither credential is written into it. Both are `${{ NAME }}` references to
148
+ * project variables: the secret because the document is committed and a
149
+ * revision is immutable, so a literal could never be scrubbed; the id because
150
+ * each environment registers its own application, and a literal would force
151
+ * one connection file per environment.
152
+ *
153
+ * Endpoints are named only when the connection points somewhere other than
154
+ * the vendor, and then only the issuer. The engine accepts a connection
155
+ * naming every endpoint or none, and it needs four — so a subset is rejected,
156
+ * and a stand-in serves its own discovery document as the vendor does.
157
+ */
158
+ connection(options: ScaffoldOptions): Record<string, unknown>;
159
+ }
160
+ //#endregion
161
+ //#region src/idp/google.d.ts
162
+ /**
163
+ * Google, as `zitadel setup` and `sso enable` scaffold it.
164
+ *
165
+ * Everything here is Google's own documented behaviour, cross-checked against
166
+ * its discovery document and the provider packages in zitadel/zitadel. It names
167
+ * no endpoints: Google publishes a discovery document, its endpoints do not
168
+ * share the issuer's host, and the engine resolves them at runtime — so a value
169
+ * committed here would be a guess that ages.
170
+ */
171
+ declare class GoogleProvider extends OidcProvider {
172
+ readonly slug = "google";
173
+ readonly displayName = "Google";
174
+ readonly template = "google";
175
+ readonly consoleUrl = "https://console.cloud.google.com/apis/credentials";
176
+ readonly docsUrl = "https://developers.google.com/identity/openid-connect/openid-connect";
177
+ /** One client takes many redirect URIs, so one application serves every environment. */
178
+ readonly callbackGuidance: CallbackGuidance;
179
+ readonly issuer = "https://accounts.google.com";
180
+ protected readonly claimTable: {
181
+ email: string;
182
+ givenName: string;
183
+ familyName: string;
184
+ };
185
+ protected readonly scopes: string[];
186
+ /** `sub` never changes, unlike an email, so identity keys on it. */
187
+ protected readonly subjectClaim = "sub";
188
+ protected readonly verifiedClaims: {
189
+ email: string;
190
+ };
191
+ /** Google reuses a signed-in session silently without it. */
192
+ protected readonly staticAuthorizeParameters: {
193
+ prompt: string;
194
+ };
195
+ }
196
+ //#endregion
197
+ //#region src/idp/index.d.ts
198
+ /** Every provider's slug, in listing order. The `--provider` flag takes one. */
199
+ declare const IDP_PROVIDERS: readonly string[];
200
+ /**
201
+ * One provider by slug.
202
+ *
203
+ * Throws rather than returning `undefined`: every caller has already had the
204
+ * slug validated against {@link IDP_PROVIDERS}, so a miss here is a bug in this
205
+ * package and not something a caller can act on.
206
+ */
207
+ declare function idpProvider(slug: string): IdpProvider;
208
+ //#endregion
209
+ export { ISSUER_REQUIREMENT as a, ConnectionEndpoints as c, ScaffoldOptions as d, credentialVariable as f, variableReference as g, referencedVariable as h, OidcProvider as i, CredentialVariables as l, isVariableReference as m, idpProvider as n, isSupportedIssuer as o, credentialVariables as p, GoogleProvider as r, CallbackGuidance as s, IDP_PROVIDERS as t, IdpProvider as u };
210
+ //# sourceMappingURL=index-Cuxu-zQD.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Cuxu-zQD.d.mts","names":[],"sources":["../src/idp/provider.ts","../src/idp/issuer.ts","../src/idp/oidc-provider.ts","../src/idp/google.ts","../src/idp/index.ts"],"mappings":";;;;;;;;;;;;;;;;;KAiBY;;KAGA;WACD;;;KAIC;;WAED,kBAAkB;;WAElB;;WAEA;;WAEA,YAAY;;UAGN;;WAEN;;WAEA;;;;;;WAMA;;WAEA;;WAEA;WACA,kBAAkB;;WAElB;;;;;EAKT,aAAa,kBAAkB,mBAAmB;;EAElD,WAAW,SAAS,kBAAkB;;;KAI5B;WACD;WACA;;;;;;;;;iBAUK,oBAAoB,eAAe;;;;;;iBAYnC,mBAAmB,cAAc;;;;;;iBAUjC,kBAAkB;;;;;;;;;;iBAalB,mBAAmB;;iBAKnB,oBAAoB;;;;iBCtFpB,kBAAkB;;cAMrB;;;;;;;;;;;uBCpBS,wBAAwB;oBAC1B;oBACA;oBACA;oBACA;oBACA;oBACA,kBAAkB;oBAClB;;;;;;;;8BASU,YAAY,SAAS;;8BAGrB;;qBAGT;;;;;;;qBAQA,gBAAgB,SAAS;;qBAGzB,2BAA2B,SAAS;EAEvD,aAAa,kBAAkB,mBAAmB;;;;;;;;;;;;;;;;EAsBlD,WAAW,SAAS,kBAAkB;;;;;;;;;;;;;cC7D3B,uBAAuB;WACzB;WACA;WACA;WACA;WACA;;WAEA,kBAAkB;WAClB;qBAEU;;;;;qBAMA;;qBAGS;qBAEA;;;;qBAGA;;;;;;;cCjBjB;;;;;;;;iBAWG,YAAY,eAAe"}
package/dist/index.d.mts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { isCanonicalLoopbackHttpUrl } from "./branding-url.mjs";
2
- import { C as flowsReadmeContent, S as brandingReadmeContent, _ as SetupUseCase, a as DEFAULT_BRANDING_TEMPLATE_PATH, b as getDefaultHumanUserSchema, c as DEFAULT_FLOW_SCHEMA_URI, d as DEFAULT_SETUP_USE_CASE, f as DefaultBrandingConfig, g as SetupPreset, h as SETUP_USE_CASES, i as DEFAULT_BRANDING_DESIGN, l as DEFAULT_SCHEMA_CONFIG_PATH, m as SETUP_PRESETS, n as BrandingDesign, o as DEFAULT_BUILTIN_SCHEMA_BASE, p as DefaultConfigRenderOptions, r as DEFAULT_BRANDING_CONFIG_PATH, s as DEFAULT_FLOW_CONFIG_PATH, t as BRANDING_DESIGNS, u as DEFAULT_SETUP_PRESET, v as defaultHumanUserSchemaUrl, w as schemasReadmeContent, x as getDefaultLoginFlow, y as getDefaultBrandingConfig } from "./defaults-BnWXllBk.mjs";
2
+ import { C as flowsReadmeContent, S as brandingReadmeContent, _ as SetupUseCase, a as DEFAULT_BRANDING_TEMPLATE_PATH, b as getDefaultHumanUserSchema, c as DEFAULT_FLOW_SCHEMA_URI, d as DEFAULT_SETUP_USE_CASE, f as DefaultBrandingConfig, g as SetupPreset, h as SETUP_USE_CASES, i as DEFAULT_BRANDING_DESIGN, l as DEFAULT_SCHEMA_CONFIG_PATH, m as SETUP_PRESETS, n as BrandingDesign, o as DEFAULT_BUILTIN_SCHEMA_BASE, p as DefaultConfigRenderOptions, r as DEFAULT_BRANDING_CONFIG_PATH, s as DEFAULT_FLOW_CONFIG_PATH, t as BRANDING_DESIGNS, u as DEFAULT_SETUP_PRESET, v as defaultHumanUserSchemaUrl, w as schemasReadmeContent, x as getDefaultLoginFlow, y as getDefaultBrandingConfig } from "./defaults-BtKIcWxW.mjs";
3
+ import { a as ISSUER_REQUIREMENT, c as ConnectionEndpoints, d as ScaffoldOptions, f as credentialVariable, g as variableReference, h as referencedVariable, i as OidcProvider, l as CredentialVariables, m as isVariableReference, n as idpProvider, o as isSupportedIssuer, p as credentialVariables, r as GoogleProvider, s as CallbackGuidance, t as IDP_PROVIDERS, u as IdpProvider } from "./index-Cuxu-zQD.mjs";
3
4
  import { BRANDING_FILE_SCHEMA_REF, FLOW_FILE_SCHEMA_REF, META_SCHEMA_DIR, MetaSchemaFile, metaSchemaFiles } from "./meta-schemas.mjs";
4
5
  import { USER_PROPERTY_DEFAULTS, normalizeFlowBody, normalizeSchemaBody } from "./normalize.mjs";
5
- import { brandingConfigSchema, brandingWireSchema, createFlowDefinitionRequestSchema, flowConfigSchema, localFileReferenceSchema, schemaConfigSchema } from "./schemas.mjs";
6
+ import { brandingConfigSchema, brandingWireSchema, createFlowDefinitionRequestSchema, flowConfigSchema, idpConnectionConfigSchema, localFileReferenceSchema, schemaConfigSchema } from "./schemas.mjs";
6
7
  import { BANNED_TEMPLATE_PATTERNS, MANDATORY_GATES_TAG, MAX_TEMPLATE_BYTES, TEMPLATE_TAGS, TEMPLATE_VALIDATION_RULES, TemplateValidationIssue, TemplateValidationRuleId, TemplateValidationSeverity, validateLoginTemplate } from "./template.mjs";
7
8
  import { FLOW_PURPOSES, FLOW_VALIDATION_RULES, FlowValidationIssue, FlowValidationRuleId, FlowValidationSeverity, PURPOSE_FLIP_TARGETS, RESERVED_OUTCOMES, validateFlowDefinition } from "./validate.mjs";
8
- export { BANNED_TEMPLATE_PATTERNS, BRANDING_DESIGNS, BRANDING_FILE_SCHEMA_REF, BrandingDesign, DEFAULT_BRANDING_CONFIG_PATH, DEFAULT_BRANDING_DESIGN, DEFAULT_BRANDING_TEMPLATE_PATH, DEFAULT_BUILTIN_SCHEMA_BASE, DEFAULT_FLOW_CONFIG_PATH, DEFAULT_FLOW_SCHEMA_URI, DEFAULT_SCHEMA_CONFIG_PATH, DEFAULT_SETUP_PRESET, DEFAULT_SETUP_USE_CASE, DefaultBrandingConfig, DefaultConfigRenderOptions, FLOW_FILE_SCHEMA_REF, FLOW_PURPOSES, FLOW_VALIDATION_RULES, FlowValidationIssue, FlowValidationRuleId, FlowValidationSeverity, MANDATORY_GATES_TAG, MAX_TEMPLATE_BYTES, META_SCHEMA_DIR, MetaSchemaFile, PURPOSE_FLIP_TARGETS, RESERVED_OUTCOMES, SETUP_PRESETS, SETUP_USE_CASES, SetupPreset, SetupUseCase, TEMPLATE_TAGS, TEMPLATE_VALIDATION_RULES, TemplateValidationIssue, TemplateValidationRuleId, TemplateValidationSeverity, USER_PROPERTY_DEFAULTS, brandingConfigSchema, brandingReadmeContent, brandingWireSchema, createFlowDefinitionRequestSchema, defaultHumanUserSchemaUrl, flowConfigSchema, flowsReadmeContent, getDefaultBrandingConfig, getDefaultHumanUserSchema, getDefaultLoginFlow, isCanonicalLoopbackHttpUrl, localFileReferenceSchema, metaSchemaFiles, normalizeFlowBody, normalizeSchemaBody, schemaConfigSchema, schemasReadmeContent, validateFlowDefinition, validateLoginTemplate };
9
+ export { BANNED_TEMPLATE_PATTERNS, BRANDING_DESIGNS, BRANDING_FILE_SCHEMA_REF, BrandingDesign, type CallbackGuidance, type ConnectionEndpoints, type CredentialVariables, DEFAULT_BRANDING_CONFIG_PATH, DEFAULT_BRANDING_DESIGN, DEFAULT_BRANDING_TEMPLATE_PATH, DEFAULT_BUILTIN_SCHEMA_BASE, DEFAULT_FLOW_CONFIG_PATH, DEFAULT_FLOW_SCHEMA_URI, DEFAULT_SCHEMA_CONFIG_PATH, DEFAULT_SETUP_PRESET, DEFAULT_SETUP_USE_CASE, DefaultBrandingConfig, DefaultConfigRenderOptions, FLOW_FILE_SCHEMA_REF, FLOW_PURPOSES, FLOW_VALIDATION_RULES, FlowValidationIssue, FlowValidationRuleId, FlowValidationSeverity, GoogleProvider, IDP_PROVIDERS, ISSUER_REQUIREMENT, type IdpProvider, MANDATORY_GATES_TAG, MAX_TEMPLATE_BYTES, META_SCHEMA_DIR, MetaSchemaFile, OidcProvider, PURPOSE_FLIP_TARGETS, RESERVED_OUTCOMES, SETUP_PRESETS, SETUP_USE_CASES, type ScaffoldOptions, SetupPreset, SetupUseCase, TEMPLATE_TAGS, TEMPLATE_VALIDATION_RULES, TemplateValidationIssue, TemplateValidationRuleId, TemplateValidationSeverity, USER_PROPERTY_DEFAULTS, brandingConfigSchema, brandingReadmeContent, brandingWireSchema, createFlowDefinitionRequestSchema, credentialVariable, credentialVariables, defaultHumanUserSchemaUrl, flowConfigSchema, flowsReadmeContent, getDefaultBrandingConfig, getDefaultHumanUserSchema, getDefaultLoginFlow, idpConnectionConfigSchema, idpProvider, isCanonicalLoopbackHttpUrl, isSupportedIssuer, isVariableReference, localFileReferenceSchema, metaSchemaFiles, normalizeFlowBody, normalizeSchemaBody, referencedVariable, schemaConfigSchema, schemasReadmeContent, validateFlowDefinition, validateLoginTemplate, variableReference };
package/dist/index.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import { isCanonicalLoopbackHttpUrl } from "./branding-url.mjs";
2
- import { _ as brandingReadmeContent, a as DEFAULT_BUILTIN_SCHEMA_BASE, c as DEFAULT_SCHEMA_CONFIG_PATH, d as SETUP_PRESETS, f as SETUP_USE_CASES, g as getDefaultLoginFlow, h as getDefaultHumanUserSchema, i as DEFAULT_BRANDING_TEMPLATE_PATH, l as DEFAULT_SETUP_PRESET, m as getDefaultBrandingConfig, n as DEFAULT_BRANDING_CONFIG_PATH, o as DEFAULT_FLOW_CONFIG_PATH, p as defaultHumanUserSchemaUrl, r as DEFAULT_BRANDING_DESIGN, s as DEFAULT_FLOW_SCHEMA_URI, t as BRANDING_DESIGNS, u as DEFAULT_SETUP_USE_CASE, v as flowsReadmeContent, y as schemasReadmeContent } from "./defaults-BnRHT7RQ.mjs";
3
- import { i as metaSchemaFiles, n as FLOW_FILE_SCHEMA_REF, r as META_SCHEMA_DIR, t as BRANDING_FILE_SCHEMA_REF } from "./meta-schemas-K8f7YZYz.mjs";
2
+ import { _ as brandingReadmeContent, a as DEFAULT_BUILTIN_SCHEMA_BASE, c as DEFAULT_SCHEMA_CONFIG_PATH, d as SETUP_PRESETS, f as SETUP_USE_CASES, g as getDefaultLoginFlow, h as getDefaultHumanUserSchema, i as DEFAULT_BRANDING_TEMPLATE_PATH, l as DEFAULT_SETUP_PRESET, m as getDefaultBrandingConfig, n as DEFAULT_BRANDING_CONFIG_PATH, o as DEFAULT_FLOW_CONFIG_PATH, p as defaultHumanUserSchemaUrl, r as DEFAULT_BRANDING_DESIGN, s as DEFAULT_FLOW_SCHEMA_URI, t as BRANDING_DESIGNS, u as DEFAULT_SETUP_USE_CASE, v as flowsReadmeContent, y as schemasReadmeContent } from "./defaults-COLBFU3S.mjs";
3
+ import { a as GoogleProvider, c as credentialVariables, d as variableReference, i as isSupportedIssuer, l as isVariableReference, n as idpProvider, o as OidcProvider, r as ISSUER_REQUIREMENT, s as credentialVariable, t as IDP_PROVIDERS, u as referencedVariable } from "./idp-ByzXQN85.mjs";
4
+ import { i as metaSchemaFiles, n as FLOW_FILE_SCHEMA_REF, r as META_SCHEMA_DIR, t as BRANDING_FILE_SCHEMA_REF } from "./meta-schemas-C03zgFux.mjs";
4
5
  import { USER_PROPERTY_DEFAULTS, normalizeFlowBody, normalizeSchemaBody } from "./normalize.mjs";
5
- import { a as localFileReferenceSchema, i as flowConfigSchema, n as brandingWireSchema, o as schemaConfigSchema, r as createFlowDefinitionRequestSchema, t as brandingConfigSchema } from "./schemas-7oNU25Qz.mjs";
6
+ import { a as idpConnectionConfigSchema, i as flowConfigSchema, n as brandingWireSchema, o as localFileReferenceSchema, r as createFlowDefinitionRequestSchema, s as schemaConfigSchema, t as brandingConfigSchema } from "./schemas-CUU4Rf8J.mjs";
6
7
  import { BANNED_TEMPLATE_PATTERNS, MANDATORY_GATES_TAG, MAX_TEMPLATE_BYTES, TEMPLATE_TAGS, TEMPLATE_VALIDATION_RULES, validateLoginTemplate } from "./template.mjs";
7
8
  import { FLOW_PURPOSES, FLOW_VALIDATION_RULES, PURPOSE_FLIP_TARGETS, RESERVED_OUTCOMES, validateFlowDefinition } from "./validate.mjs";
8
- export { BANNED_TEMPLATE_PATTERNS, BRANDING_DESIGNS, BRANDING_FILE_SCHEMA_REF, DEFAULT_BRANDING_CONFIG_PATH, DEFAULT_BRANDING_DESIGN, DEFAULT_BRANDING_TEMPLATE_PATH, DEFAULT_BUILTIN_SCHEMA_BASE, DEFAULT_FLOW_CONFIG_PATH, DEFAULT_FLOW_SCHEMA_URI, DEFAULT_SCHEMA_CONFIG_PATH, DEFAULT_SETUP_PRESET, DEFAULT_SETUP_USE_CASE, FLOW_FILE_SCHEMA_REF, FLOW_PURPOSES, FLOW_VALIDATION_RULES, MANDATORY_GATES_TAG, MAX_TEMPLATE_BYTES, META_SCHEMA_DIR, PURPOSE_FLIP_TARGETS, RESERVED_OUTCOMES, SETUP_PRESETS, SETUP_USE_CASES, TEMPLATE_TAGS, TEMPLATE_VALIDATION_RULES, USER_PROPERTY_DEFAULTS, brandingConfigSchema, brandingReadmeContent, brandingWireSchema, createFlowDefinitionRequestSchema, defaultHumanUserSchemaUrl, flowConfigSchema, flowsReadmeContent, getDefaultBrandingConfig, getDefaultHumanUserSchema, getDefaultLoginFlow, isCanonicalLoopbackHttpUrl, localFileReferenceSchema, metaSchemaFiles, normalizeFlowBody, normalizeSchemaBody, schemaConfigSchema, schemasReadmeContent, validateFlowDefinition, validateLoginTemplate };
9
+ export { BANNED_TEMPLATE_PATTERNS, BRANDING_DESIGNS, BRANDING_FILE_SCHEMA_REF, DEFAULT_BRANDING_CONFIG_PATH, DEFAULT_BRANDING_DESIGN, DEFAULT_BRANDING_TEMPLATE_PATH, DEFAULT_BUILTIN_SCHEMA_BASE, DEFAULT_FLOW_CONFIG_PATH, DEFAULT_FLOW_SCHEMA_URI, DEFAULT_SCHEMA_CONFIG_PATH, DEFAULT_SETUP_PRESET, DEFAULT_SETUP_USE_CASE, FLOW_FILE_SCHEMA_REF, FLOW_PURPOSES, FLOW_VALIDATION_RULES, GoogleProvider, IDP_PROVIDERS, ISSUER_REQUIREMENT, MANDATORY_GATES_TAG, MAX_TEMPLATE_BYTES, META_SCHEMA_DIR, OidcProvider, PURPOSE_FLIP_TARGETS, RESERVED_OUTCOMES, SETUP_PRESETS, SETUP_USE_CASES, TEMPLATE_TAGS, TEMPLATE_VALIDATION_RULES, USER_PROPERTY_DEFAULTS, brandingConfigSchema, brandingReadmeContent, brandingWireSchema, createFlowDefinitionRequestSchema, credentialVariable, credentialVariables, defaultHumanUserSchemaUrl, flowConfigSchema, flowsReadmeContent, getDefaultBrandingConfig, getDefaultHumanUserSchema, getDefaultLoginFlow, idpConnectionConfigSchema, idpProvider, isCanonicalLoopbackHttpUrl, isSupportedIssuer, isVariableReference, localFileReferenceSchema, metaSchemaFiles, normalizeFlowBody, normalizeSchemaBody, referencedVariable, schemaConfigSchema, schemasReadmeContent, validateFlowDefinition, validateLoginTemplate, variableReference };