@dereekb/dbx-components-mcp 13.28.0 → 13.30.0

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.
@@ -10,7 +10,7 @@ var __export = (target, all) => {
10
10
  // packages/dbx-components-mcp/package.json
11
11
  var package_default = {
12
12
  name: "@dereekb/dbx-components-mcp",
13
- version: "13.28.0",
13
+ version: "13.30.0",
14
14
  type: "module",
15
15
  bin: {
16
16
  "dbx-components-mcp": "dbx-components-mcp.js"
@@ -21,8 +21,8 @@ var package_default = {
21
21
  "ts-morph": "^21.0.0"
22
22
  },
23
23
  peerDependencies: {
24
- "@dereekb/dbx-cli": "13.28.0",
25
- "@dereekb/util": "13.28.0"
24
+ "@dereekb/dbx-cli": "13.30.0",
25
+ "@dereekb/util": "13.30.0"
26
26
  }
27
27
  };
28
28
 
@@ -1721,7 +1721,7 @@ function indexApps(apps) {
1721
1721
  var UTIL_ROLE_PATH = "packages/util/src/lib/auth/auth.role.ts";
1722
1722
  var STORAGE_CLAIM_PATH = "packages/firebase/src/lib/model/storagefile/storagefile.upload.claims.ts";
1723
1723
  var OIDC_SCOPE_PATH = "packages/firebase/src/lib/common/auth/oidc/oidc.ts";
1724
- var OIDC_SCOPE_PRE_ASSERT_PATH = "packages/firebase-server/oidc/src/lib/scope.ts";
1724
+ var OIDC_SCOPE_ENFORCEMENT_PATH = "packages/firebase-server/src/lib/nest/controller/model/model.api.scope.ts";
1725
1725
  var DEMO_CLAIMS_PATH = "components/demo-firebase/src/lib/auth/claims.ts";
1726
1726
  var BUILTIN_AUTH_ROLES = [
1727
1727
  {
@@ -1797,9 +1797,9 @@ var BUILTIN_AUTH_SCOPES = CALL_MODEL_OIDC_SCOPES.map((scope) => {
1797
1797
  description: `Required OIDC scope for the \`callModel\` ${callType ?? "CRUD"} verb.`,
1798
1798
  enforcedAt: [
1799
1799
  {
1800
- path: OIDC_SCOPE_PRE_ASSERT_PATH,
1801
- line: 21,
1802
- description: "`oidcCallModelScopePreAssert` rejects requests that lack this scope."
1800
+ path: OIDC_SCOPE_ENFORCEMENT_PATH,
1801
+ line: 115,
1802
+ description: "`assertModelApiOidcScope` (model-api dispatch + `/get`) rejects requests that lack this scope."
1803
1803
  }
1804
1804
  ],
1805
1805
  errorCode: CALL_MODEL_MISSING_OIDC_SCOPE_ERROR_CODE,
@@ -298,133 +298,146 @@
298
298
  "notes": "Arbitrary unique string that denotes checkpoint progress for a multi-step task."
299
299
  },
300
300
  {
301
- "name": "OidcEntryClientId",
301
+ "name": "StorageFilePurpose",
302
302
  "package": "@dereekb/firebase",
303
- "module": "src/lib/model/oidcmodel/oidcmodel.id",
303
+ "module": "src/lib/model/storagefile/storagefile.id",
304
304
  "kind": "semantic-type",
305
305
  "definition": "string",
306
306
  "baseType": "string",
307
307
  "topics": [
308
308
  "identifier",
309
309
  "string",
310
- "dereekb-firebase:oidc"
310
+ "dereekb-firebase:storage-file"
311
311
  ],
312
- "notes": "Unique client identifier for an OIDC client registration."
312
+ "notes": "Arbitrary string that can be used to describe the file's purpose.\n\nIt should be unique between different file types.\n\nThe purpose is generally used while querying for StorageFiles that require processing, but can also be\nset on files that do not get processed.\n\nCan be used for querying."
313
313
  },
314
314
  {
315
- "name": "OidcInteractionUid",
315
+ "name": "StorageFilePurposeSubgroup",
316
316
  "package": "@dereekb/firebase",
317
- "module": "src/lib/model/oidcmodel/oidcmodel.interaction",
317
+ "module": "src/lib/model/storagefile/storagefile.id",
318
318
  "kind": "semantic-type",
319
319
  "definition": "string",
320
320
  "baseType": "string",
321
321
  "topics": [
322
322
  "identifier",
323
323
  "string",
324
- "dereekb-firebase:oidc"
324
+ "dereekb-firebase:storage-file"
325
325
  ],
326
- "notes": "Unique identifier for an oidc-provider interaction session, not to be confused with a Firebase UID/Auth User Identifier.\n\nGenerated by the provider when user interaction is needed (login/consent).\nUsed to look up the interaction session via cookies and to build\nbackend interaction endpoint URLs (e.g., `/interaction/${uid}/login`)."
326
+ "notes": "Used as an arbitrary discriminator for a StorageFile in relation to the StorageFilePurpose.\n\nThis is useful for being able to query StorageFiles that have a specific purpose and purpose subgroup.\n\nExample use case: Documents with the same StorageFilePurpose/processing, but should only have a single StorageFile per subgroup."
327
327
  },
328
328
  {
329
- "name": "OidcScope",
329
+ "name": "UploadedFileTypeDeterminationLevel",
330
+ "package": "@dereekb/firebase",
331
+ "module": "src/lib/model/storagefile/storagefile.upload.determiner",
332
+ "kind": "semantic-type",
333
+ "definition": "number",
334
+ "baseType": "number",
335
+ "topics": [
336
+ "numeric",
337
+ "dereekb-firebase:storage-file"
338
+ ],
339
+ "notes": "Confidence level of a file type determination. Higher values indicate higher confidence.\n\nWhen multiple determiners match, the one with the highest level wins.\n\nHigher values indicate higher confidence.\n\nFor example, a match by a file name would potentially have a higher confidence than a match by folder name\nin the case where we have two determiners:\n- One looking for 'avatar.png' exactly\n- One looking for the folder 'photos' exactly\n\nIn this case, the folder match should return a lower determination level than the file name match, so that\nit is processed properly.\n\nIn the ideal case there generally shouldn't be two determiners that could potentially match the same file."
340
+ },
341
+ {
342
+ "name": "UploadedFileTypeIdentifier",
330
343
  "package": "@dereekb/firebase",
331
- "module": "src/lib/model/oidcmodel/oidcmodel.interaction",
344
+ "module": "src/lib/model/storagefile/storagefile.upload",
332
345
  "kind": "semantic-type",
333
346
  "definition": "string",
334
347
  "baseType": "string",
335
348
  "topics": [
349
+ "identifier",
336
350
  "string",
337
- "dereekb-firebase:oidc"
338
- ],
339
- "examples": [
340
- {
341
- "code": "type MyScopes = 'openid' | 'profile' | 'email';"
342
- }
351
+ "dereekb-firebase:storage-file"
343
352
  ],
344
- "notes": "Base type for OIDC scope string unions.\n\nApplications define their own scope union extending this type to get\ncompile-time validation of scope names throughout the delegate and config."
353
+ "notes": "StorageFile uploaded-file type identifier.\n\nUsed as a descriminator for choosing the appropriate upload processor.\n\nThe upload type is generally determined by one of a few ways:\n- file name: A specific file name (e.g. 'avatar.png' or 'photos/avatar.png')\n- folder name: A specific folder name (e.g. 'photos' in 'photos/12345.png')\n- metadata: specific metadata value in the uploaded file's custom metadata\n- data: specific data in the uploaded file"
345
354
  },
346
355
  {
347
- "name": "OidcRedirectUri",
356
+ "name": "SystemStateTypeIdentifier",
348
357
  "package": "@dereekb/firebase",
349
- "module": "src/lib/model/oidcmodel/oidcmodel.interaction",
358
+ "module": "src/lib/model/system/system",
350
359
  "kind": "semantic-type",
351
360
  "definition": "string",
352
361
  "baseType": "string",
353
362
  "topics": [
354
- "url",
363
+ "identifier",
355
364
  "string",
356
- "dereekb-firebase:oidc"
365
+ "dereekb-firebase:system-state"
357
366
  ],
358
- "notes": "A redirect URI registered to an OIDC client.\n\nMust be a valid absolute URL (e.g. `https://myapp.example.com/callback`)."
367
+ "notes": "Used to identify a SystemStateId."
359
368
  },
360
369
  {
361
- "name": "StorageFilePurpose",
370
+ "name": "OidcInteractionUid",
362
371
  "package": "@dereekb/firebase",
363
- "module": "src/lib/model/storagefile/storagefile.id",
372
+ "module": "src/lib/common/auth/oidc/oidc.base",
364
373
  "kind": "semantic-type",
365
374
  "definition": "string",
366
375
  "baseType": "string",
367
376
  "topics": [
368
377
  "identifier",
369
378
  "string",
370
- "dereekb-firebase:storage-file"
379
+ "dereekb-firebase:oidc"
371
380
  ],
372
- "notes": "Arbitrary string that can be used to describe the file's purpose.\n\nIt should be unique between different file types.\n\nThe purpose is generally used while querying for StorageFiles that require processing, but can also be\nset on files that do not get processed.\n\nCan be used for querying."
381
+ "notes": "Unique identifier for an oidc-provider interaction session, not to be confused with a Firebase UID/Auth User Identifier.\n\nGenerated by the provider when user interaction is needed (login/consent).\nUsed to look up the interaction session via cookies and to build\nbackend interaction endpoint URLs (e.g., `/interaction/${uid}/login`)."
373
382
  },
374
383
  {
375
- "name": "StorageFilePurposeSubgroup",
384
+ "name": "OidcScope",
376
385
  "package": "@dereekb/firebase",
377
- "module": "src/lib/model/storagefile/storagefile.id",
386
+ "module": "src/lib/common/auth/oidc/oidc.base",
378
387
  "kind": "semantic-type",
379
388
  "definition": "string",
380
389
  "baseType": "string",
381
390
  "topics": [
382
- "identifier",
383
391
  "string",
384
- "dereekb-firebase:storage-file"
392
+ "dereekb-firebase:oidc"
385
393
  ],
386
- "notes": "Used as an arbitrary discriminator for a StorageFile in relation to the StorageFilePurpose.\n\nThis is useful for being able to query StorageFiles that have a specific purpose and purpose subgroup.\n\nExample use case: Documents with the same StorageFilePurpose/processing, but should only have a single StorageFile per subgroup."
394
+ "examples": [
395
+ {
396
+ "code": "type MyScopes = 'openid' | 'profile' | 'email';"
397
+ }
398
+ ],
399
+ "notes": "Base type for OIDC scope string unions.\n\nApplications define their own scope union extending this type to get\ncompile-time validation of scope names throughout the delegate and config."
387
400
  },
388
401
  {
389
- "name": "UploadedFileTypeDeterminationLevel",
402
+ "name": "OidcRedirectUri",
390
403
  "package": "@dereekb/firebase",
391
- "module": "src/lib/model/storagefile/storagefile.upload.determiner",
404
+ "module": "src/lib/common/auth/oidc/oidc.base",
392
405
  "kind": "semantic-type",
393
- "definition": "number",
394
- "baseType": "number",
406
+ "definition": "string",
407
+ "baseType": "string",
395
408
  "topics": [
396
- "numeric",
397
- "dereekb-firebase:storage-file"
409
+ "url",
410
+ "string",
411
+ "dereekb-firebase:oidc"
398
412
  ],
399
- "notes": "Confidence level of a file type determination. Higher values indicate higher confidence.\n\nWhen multiple determiners match, the one with the highest level wins.\n\nHigher values indicate higher confidence.\n\nFor example, a match by a file name would potentially have a higher confidence than a match by folder name\nin the case where we have two determiners:\n- One looking for 'avatar.png' exactly\n- One looking for the folder 'photos' exactly\n\nIn this case, the folder match should return a lower determination level than the file name match, so that\nit is processed properly.\n\nIn the ideal case there generally shouldn't be two determiners that could potentially match the same file."
413
+ "notes": "A redirect URI registered to an OIDC client.\n\nMust be a valid absolute URL (e.g. `https://myapp.example.com/callback`)."
400
414
  },
401
415
  {
402
- "name": "UploadedFileTypeIdentifier",
416
+ "name": "OidcEntryClientId",
403
417
  "package": "@dereekb/firebase",
404
- "module": "src/lib/model/storagefile/storagefile.upload",
418
+ "module": "src/lib/common/auth/oidc/oidc.base",
405
419
  "kind": "semantic-type",
406
420
  "definition": "string",
407
421
  "baseType": "string",
408
422
  "topics": [
409
423
  "identifier",
410
424
  "string",
411
- "dereekb-firebase:storage-file"
425
+ "dereekb-firebase:oidc"
412
426
  ],
413
- "notes": "StorageFile uploaded-file type identifier.\n\nUsed as a descriminator for choosing the appropriate upload processor.\n\nThe upload type is generally determined by one of a few ways:\n- file name: A specific file name (e.g. 'avatar.png' or 'photos/avatar.png')\n- folder name: A specific folder name (e.g. 'photos' in 'photos/12345.png')\n- metadata: specific metadata value in the uploaded file's custom metadata\n- data: specific data in the uploaded file"
427
+ "notes": "Unique client identifier for an OIDC client registration."
414
428
  },
415
429
  {
416
- "name": "SystemStateTypeIdentifier",
430
+ "name": "OidcProviderProfileKey",
417
431
  "package": "@dereekb/firebase",
418
- "module": "src/lib/model/system/system",
432
+ "module": "src/lib/common/auth/oidc/oidc.profile",
419
433
  "kind": "semantic-type",
420
434
  "definition": "string",
421
435
  "baseType": "string",
422
436
  "topics": [
423
- "identifier",
424
437
  "string",
425
- "dereekb-firebase:system-state"
438
+ "dereekb-firebase:oidc"
426
439
  ],
427
- "notes": "Used to identify a SystemStateId."
440
+ "notes": "Arbitrary key identifying an {@link OidcProviderProfile} (e.g. `'lms'`)."
428
441
  },
429
442
  {
430
443
  "name": "SingleItemFirestoreCollectionDocumentIdentifier",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-components-mcp",
3
- "version": "13.28.0",
3
+ "version": "13.30.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "dbx-components-mcp": "dbx-components-mcp.js"
@@ -11,7 +11,7 @@
11
11
  "ts-morph": "^21.0.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@dereekb/dbx-cli": "13.28.0",
15
- "@dereekb/util": "13.28.0"
14
+ "@dereekb/dbx-cli": "13.30.0",
15
+ "@dereekb/util": "13.30.0"
16
16
  }
17
17
  }