@dereekb/dbx-firebase 13.4.0 → 13.4.2

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/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-firebase",
3
- "version": "13.4.0",
3
+ "version": "13.4.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0",
7
7
  "@angular/fire": "21.0.0-rc.0-canary.ac3dd7c",
8
8
  "@angular/material": "^21.0.0",
9
- "@dereekb/date": "13.4.0",
10
- "@dereekb/dbx-analytics": "13.4.0",
11
- "@dereekb/dbx-core": "13.4.0",
12
- "@dereekb/dbx-form": "13.4.0",
13
- "@dereekb/dbx-web": "13.4.0",
14
- "@dereekb/firebase": "13.4.0",
15
- "@dereekb/model": "13.4.0",
16
- "@dereekb/rxjs": "13.4.0",
17
- "@dereekb/util": "13.4.0",
9
+ "@dereekb/date": "13.4.2",
10
+ "@dereekb/dbx-analytics": "13.4.2",
11
+ "@dereekb/dbx-core": "13.4.2",
12
+ "@dereekb/dbx-form": "13.4.2",
13
+ "@dereekb/dbx-web": "13.4.2",
14
+ "@dereekb/firebase": "13.4.2",
15
+ "@dereekb/model": "13.4.2",
16
+ "@dereekb/rxjs": "13.4.2",
17
+ "@dereekb/util": "13.4.2",
18
18
  "@ngrx/component-store": "^21.0.0",
19
19
  "@ngx-formly/core": "git+https://git@github.com/dereekb/ngx-formly#996d1041c8d2afbe429985a5ad394e59327bfa1d",
20
20
  "firebase": "^12.0.0",
@@ -240,19 +240,55 @@ interface OidcEntryClientFormFieldsConfig {
240
240
  * Creates fields for the OAuth client create form.
241
241
  *
242
242
  * Includes `token_endpoint_auth_method` which is immutable after creation.
243
+ *
244
+ * @param config - Optional configuration for field generation, including mode and allowed auth methods.
245
+ * @returns Array of FormlyFieldConfig for the client creation form.
243
246
  */
244
247
  declare function oidcEntryClientFormFields(config?: OidcEntryClientFormFieldsConfig): FormlyFieldConfig[];
248
+ /**
249
+ * Creates a value selection field for choosing the token endpoint authentication method.
250
+ *
251
+ * @param config - Optional configuration to filter the available auth method options.
252
+ * @returns A FormlyFieldConfig for the token endpoint auth method selector.
253
+ */
245
254
  declare function oidcClientTokenEndpointAuthMethodField(config?: OidcEntryClientFormFieldsConfig): FormlyFieldConfig;
246
255
  /**
247
256
  * Creates fields for updating an existing OAuth client.
248
257
  *
249
258
  * Excludes `token_endpoint_auth_method` (immutable after creation).
259
+ *
260
+ * @returns Array of FormlyFieldConfig for the client update form.
250
261
  */
251
262
  declare function oidcEntryClientUpdateFormFields(): FormlyFieldConfig[];
263
+ /**
264
+ * Creates a text field for the OAuth client display name.
265
+ *
266
+ * @returns A FormlyFieldConfig for the client name input.
267
+ */
252
268
  declare function oidcClientNameField(): FormlyFieldConfig;
269
+ /**
270
+ * Creates a searchable chip field for entering redirect URIs.
271
+ *
272
+ * @returns A FormlyFieldConfig for the redirect URIs input.
273
+ */
253
274
  declare function oidcClientRedirectUrisField(): FormlyFieldConfig;
275
+ /**
276
+ * Creates a text field for the client's JWKS URI. Only visible when using private_key_jwt authentication.
277
+ *
278
+ * @returns A FormlyFieldConfig for the JWKS URI input.
279
+ */
254
280
  declare function oidcClientJwksUriField(): FormlyFieldConfig;
281
+ /**
282
+ * Creates a text field for the optional client logo URL.
283
+ *
284
+ * @returns A FormlyFieldConfig for the logo URI input.
285
+ */
255
286
  declare function oidcClientLogoUriField(): FormlyFieldConfig;
287
+ /**
288
+ * Creates a text field for the optional client homepage URL.
289
+ *
290
+ * @returns A FormlyFieldConfig for the homepage URL input.
291
+ */
256
292
  declare function oidcClientHomepageUriField(): FormlyFieldConfig;
257
293
  interface OidcEntryClientTestFormFieldsConfig {
258
294
  readonly redirectUris: OidcRedirectUri[];
@@ -260,10 +296,30 @@ interface OidcEntryClientTestFormFieldsConfig {
260
296
  }
261
297
  /**
262
298
  * Assembles the form fields for the OAuth test client form.
299
+ *
300
+ * @param config - Configuration providing available redirect URIs and scopes for the test form.
301
+ * @returns Array of FormlyFieldConfig for the test client form.
263
302
  */
264
303
  declare function oidcEntryClientTestFormFields(config: OidcEntryClientTestFormFieldsConfig): FormlyFieldConfig[];
304
+ /**
305
+ * Creates a read-only text field displaying the OAuth client ID.
306
+ *
307
+ * @returns A FormlyFieldConfig for the client ID display.
308
+ */
265
309
  declare function oidcClientTestClientIdField(): FormlyFieldConfig;
310
+ /**
311
+ * Creates a selection field for choosing one of the client's registered redirect URIs for testing.
312
+ *
313
+ * @param redirectUris - The registered redirect URIs to display as options.
314
+ * @returns A FormlyFieldConfig for the redirect URI selector.
315
+ */
266
316
  declare function oidcClientTestRedirectUriField(redirectUris: OidcRedirectUri[]): FormlyFieldConfig;
317
+ /**
318
+ * Creates a pickable chip field for selecting scopes to request during the test flow.
319
+ *
320
+ * @param availableScopes - The available scopes to display as selectable options.
321
+ * @returns A FormlyFieldConfig for the scopes selector.
322
+ */
267
323
  declare function oidcClientTestScopesField(availableScopes: OidcScopeDetails[]): FormlyFieldConfig;
268
324
 
269
325
  type DbxFirebaseOidcModelClientFormValue = CreateOidcClientParams;
@@ -339,7 +395,9 @@ declare class DbxFirebaseOidcEntryClientListViewItemComponent extends AbstractDb
339
395
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DbxFirebaseOidcEntryClientListViewItemComponent, "ng-component", never, {}, {}, never, never, true, never>;
340
396
  }
341
397
 
342
- /** Document store for a single {@link OidcEntry}. */
398
+ /**
399
+ * Document store for a single {@link OidcEntry}.
400
+ */
343
401
  declare class OidcEntryDocumentStore extends AbstractDbxFirebaseDocumentStore<OidcEntry, OidcEntryDocument> {
344
402
  readonly oidcModelFunctions: OidcModelFunctions;
345
403
  private readonly _latestClientSecret$;
@@ -384,9 +442,13 @@ declare class DbxFirebaseOidcEntryClientCreateComponent {
384
442
  declare class DbxFirebaseOidcEntryClientTestComponent {
385
443
  private readonly oidcEntryDocumentStore;
386
444
  private readonly oidcConfigService;
387
- /** Scopes the user can pick from. Overrides the service default when provided. */
445
+ /**
446
+ * Scopes the user can pick from. Overrides the service default when provided.
447
+ */
388
448
  readonly availableScopes: _angular_core.InputSignal<Maybe<OidcScopeDetails[]>>;
389
- /** Path to the authorization endpoint. Overrides the service default when provided. */
449
+ /**
450
+ * Path to the authorization endpoint. Overrides the service default when provided.
451
+ */
390
452
  readonly oidcAuthorizationEndpointApiPath: _angular_core.InputSignal<Maybe<string>>;
391
453
  readonly resolvedAvailableScopes: _angular_core.Signal<OidcScopeDetails[]>;
392
454
  readonly resolvedAuthorizationEndpointPath: _angular_core.Signal<string>;
@@ -398,7 +460,9 @@ declare class DbxFirebaseOidcEntryClientTestComponent {
398
460
  readonly codeChallenge: _angular_core.WritableSignal<string>;
399
461
  readonly state: _angular_core.WritableSignal<string>;
400
462
  readonly nonce: _angular_core.WritableSignal<string>;
401
- /** The current form value, updated by the form via dbxFormValueChange. */
463
+ /**
464
+ * The current form value, updated by the form via dbxFormValueChange.
465
+ */
402
466
  readonly formValue: _angular_core.WritableSignal<Maybe<DbxFirebaseOidcModelClientTestFormValue>>;
403
467
  readonly authorizationUrlSignal: _angular_core.Signal<string | undefined>;
404
468
  constructor();
@@ -440,21 +504,27 @@ declare class DbxFirebaseOidcEntryClientViewComponent {
440
504
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DbxFirebaseOidcEntryClientViewComponent, "dbx-firebase-oidc-entry-client-view", never, {}, {}, never, never, true, never>;
441
505
  }
442
506
 
443
- /** Collection store for querying {@link OidcEntry} documents. */
507
+ /**
508
+ * Collection store for querying {@link OidcEntry} documents.
509
+ */
444
510
  declare class OidcEntryCollectionStore extends AbstractDbxFirebaseCollectionStore<OidcEntry, OidcEntryDocument> {
445
511
  constructor();
446
512
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<OidcEntryCollectionStore, never>;
447
513
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<OidcEntryCollectionStore>;
448
514
  }
449
515
 
450
- /** Directive providing a {@link OidcEntryCollectionStore} for querying {@link OidcEntry} documents. */
516
+ /**
517
+ * Directive providing a {@link OidcEntryCollectionStore} for querying {@link OidcEntry} documents.
518
+ */
451
519
  declare class OidcEntryCollectionStoreDirective extends DbxFirebaseCollectionStoreDirective<OidcEntry, OidcEntryDocument, OidcEntryCollectionStore> {
452
520
  constructor();
453
521
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<OidcEntryCollectionStoreDirective, never>;
454
522
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<OidcEntryCollectionStoreDirective, "[dbxOidcEntryCollection]", never, {}, {}, never, never, true, never>;
455
523
  }
456
524
 
457
- /** Directive providing a {@link OidcEntryDocumentStore} for accessing a single {@link OidcEntry} document. */
525
+ /**
526
+ * Directive providing a {@link OidcEntryDocumentStore} for accessing a single {@link OidcEntry} document.
527
+ */
458
528
  declare class OidcEntryDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective<OidcEntry, OidcEntryDocument, OidcEntryDocumentStore> {
459
529
  constructor();
460
530
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<OidcEntryDocumentStoreDirective, never>;
@@ -490,11 +560,17 @@ declare const DEFAULT_OIDC_TOKEN_ENDPOINT_AUTH_METHODS: OidcTokenEndpointAuthMet
490
560
  * Apps provide a concrete implementation via `provideDbxFirebaseOidc()`.
491
561
  */
492
562
  declare abstract class DbxFirebaseOidcConfig {
493
- /** Available scopes for the OIDC provider. Used in scope picker fields. */
563
+ /**
564
+ * Available scopes for the OIDC provider. Used in scope picker fields.
565
+ */
494
566
  abstract readonly availableScopes: OidcScopeDetails[];
495
- /** Path to the authorization endpoint. Defaults to '/oidc/auth'. */
567
+ /**
568
+ * Path to the authorization endpoint. Defaults to '/oidc/auth'.
569
+ */
496
570
  readonly oidcAuthorizationEndpointApiPath?: Maybe<string>;
497
- /** Base path for interaction endpoints. Defaults to '/interaction'. */
571
+ /**
572
+ * Base path for interaction endpoints. Defaults to '/interaction'.
573
+ */
498
574
  readonly oidcInteractionEndpointApiPath?: Maybe<string>;
499
575
  /**
500
576
  * Supported token endpoint authentication methods.
@@ -541,6 +617,9 @@ declare class DbxFirebaseOidcConfigService {
541
617
 
542
618
  /**
543
619
  * Provider factory for the {@link OidcModelFirestoreCollections}.
620
+ *
621
+ * @param appCollection - The application's Firestore collection that must implement {@link OidcModelFirestoreCollections}.
622
+ * @returns The validated OidcModelFirestoreCollections instance.
544
623
  */
545
624
  declare function provideOidcModelFirestoreCollections(appCollection: OidcModelFirestoreCollections): OidcModelFirestoreCollections;
546
625
  /**
@@ -572,6 +651,9 @@ interface ProvideDbxFirebaseOidcConfig {
572
651
  * When `oauthInteractionRoute` is configured in {@link DbxFirebaseOidcConfig}, an app initializer
573
652
  * is registered that adds that route to the {@link DbxAppAuthRouterService} ignored routes set,
574
653
  * preventing auth effects from redirecting away during the OIDC interaction flow.
654
+ *
655
+ * @param config - Configuration specifying the app collection class, OIDC settings, and provider options.
656
+ * @returns EnvironmentProviders for the OIDC module.
575
657
  */
576
658
  declare function provideDbxFirebaseOidc(config: ProvideDbxFirebaseOidcConfig): EnvironmentProviders;
577
659
 
@@ -590,6 +672,8 @@ declare class DbxFirebaseOidcInteractionService {
590
672
  private readonly _oidcConfig;
591
673
  /**
592
674
  * Base URL for the interaction API, derived from the OIDC config service.
675
+ *
676
+ * @returns The base URL string for the OIDC interaction endpoint.
593
677
  */
594
678
  get baseUrl(): string;
595
679
  /**
@@ -597,6 +681,7 @@ declare class DbxFirebaseOidcInteractionService {
597
681
  *
598
682
  * Automatically attaches the current user's Firebase ID token.
599
683
  *
684
+ * @param uid - The OIDC interaction UID identifying the current login interaction.
600
685
  * @returns Observable that emits the redirect URL from the server response.
601
686
  */
602
687
  submitLogin(uid: OidcInteractionUid): Observable<OAuthInteractionLoginResponse>;
@@ -605,6 +690,8 @@ declare class DbxFirebaseOidcInteractionService {
605
690
  *
606
691
  * Automatically attaches the current user's Firebase ID token.
607
692
  *
693
+ * @param uid - The OIDC interaction UID identifying the current consent interaction.
694
+ * @param approved - Whether the user approved or denied the consent request.
608
695
  * @returns Observable that emits the redirect URL from the server response.
609
696
  */
610
697
  submitConsent(uid: OidcInteractionUid, approved: boolean): Observable<OAuthInteractionConsentResponse>;