@pipeline-builder/api-core 6.0.0 → 7.0.1

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 (72) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/lib/constants/ai-providers.d.ts +1 -1
  3. package/lib/constants/ai-providers.js +3 -3
  4. package/lib/contracts/billing.d.ts +21 -1
  5. package/lib/contracts/billing.js +26 -2
  6. package/lib/contracts/call.js +2 -2
  7. package/lib/contracts/cascade.d.ts +13 -0
  8. package/lib/contracts/cascade.js +12 -1
  9. package/lib/contracts/compliance.d.ts +2 -2
  10. package/lib/contracts/compliance.js +8 -16
  11. package/lib/contracts/define.d.ts +16 -12
  12. package/lib/contracts/define.js +19 -11
  13. package/lib/contracts/index.d.ts +1 -1
  14. package/lib/contracts/index.js +2 -2
  15. package/lib/contracts/platform.d.ts +8 -12
  16. package/lib/contracts/platform.js +14 -18
  17. package/lib/contracts/plugin.d.ts +7 -16
  18. package/lib/contracts/plugin.js +8 -29
  19. package/lib/contracts/quota.d.ts +16 -1
  20. package/lib/contracts/quota.js +22 -2
  21. package/lib/contracts/reporting.d.ts +2 -2
  22. package/lib/contracts/reporting.js +7 -14
  23. package/lib/helpers/sse-helpers.d.ts +0 -18
  24. package/lib/helpers/sse-helpers.js +2 -2
  25. package/lib/middleware/on-behalf.js +2 -2
  26. package/lib/middleware/revocation.d.ts +6 -7
  27. package/lib/middleware/revocation.js +18 -19
  28. package/lib/middleware/step-up.d.ts +5 -4
  29. package/lib/middleware/step-up.js +10 -7
  30. package/lib/middleware/system-org.d.ts +4 -7
  31. package/lib/middleware/system-org.js +5 -8
  32. package/lib/openapi/routes/ask-agent-routes.d.ts +7 -0
  33. package/lib/openapi/routes/ask-agent-routes.js +62 -0
  34. package/lib/openapi/routes/index.js +3 -3
  35. package/lib/services/cache-service.js +3 -2
  36. package/lib/services/index.d.ts +2 -2
  37. package/lib/services/index.js +3 -3
  38. package/lib/services/org-ai-client.d.ts +1 -4
  39. package/lib/services/org-ai-client.js +1 -4
  40. package/lib/services/token-revocation.js +1 -1
  41. package/lib/services/version-vuln-policy.d.ts +0 -2
  42. package/lib/services/version-vuln-policy.js +2 -2
  43. package/lib/types/ask-proposals.d.ts +2 -2
  44. package/lib/types/ask-proposals.js +2 -2
  45. package/lib/types/compliance-exemption.d.ts +1 -1
  46. package/lib/types/compliance-exemption.js +1 -1
  47. package/lib/types/index.d.ts +1 -1
  48. package/lib/types/index.js +2 -2
  49. package/lib/types/permissions.d.ts +6 -10
  50. package/lib/types/permissions.js +13 -17
  51. package/lib/types/plugin-scan.d.ts +3 -6
  52. package/lib/types/plugin-scan.js +6 -5
  53. package/lib/types/remote-audit-actions.d.ts +1 -1
  54. package/lib/types/remote-audit-actions.js +1 -3
  55. package/lib/types/usage-projection.d.ts +0 -8
  56. package/lib/types/usage-projection.js +2 -2
  57. package/lib/utils/index.d.ts +1 -1
  58. package/lib/utils/index.js +2 -2
  59. package/lib/utils/response.d.ts +0 -8
  60. package/lib/utils/response.js +2 -2
  61. package/lib/utils/sensitive-patterns.js +4 -3
  62. package/lib/utils/service-registry.d.ts +1 -1
  63. package/lib/utils/service-registry.js +2 -2
  64. package/lib/validation/ai-schemas.d.ts +0 -7
  65. package/lib/validation/ai-schemas.js +2 -2
  66. package/lib/validation/index.d.ts +1 -1
  67. package/lib/validation/index.js +2 -2
  68. package/lib/validation/plugin-catalog-detect.d.ts +0 -2
  69. package/lib/validation/plugin-catalog-detect.js +1 -5
  70. package/package.json +1 -1
  71. package/lib/openapi/routes/ask-routes.d.ts +0 -7
  72. package/lib/openapi/routes/ask-routes.js +0 -62
@@ -481,9 +481,9 @@ export declare function normalizePermissionSubset(requested: readonly unknown[])
481
481
  */
482
482
  export declare function intersectPermissions(effective: readonly string[], subset: readonly string[]): Permission[];
483
483
  /**
484
- * Seed bundle for each built-in Role, keyed by the coarse role it grants.
485
- * Consumed by the Role seeder + the startup backfill to populate a built-in
486
- * Role's `permissions[]`. NOT consulted at request time — see
484
+ * Bundle for each built-in Role, keyed by the coarse role it grants. The
485
+ * platform resolves a built-in Role's permissions from it whenever the Role is
486
+ * read (`effectiveRolePermissions`); it is never a baseline on its own — see
487
487
  * {@link resolveUserPermissions}.
488
488
  */
489
489
  export declare const ROLE_PERMISSIONS: Record<OrgRole, readonly Permission[]>;
@@ -798,8 +798,7 @@ export declare function hasPermission(granted: readonly string[] | null | undefi
798
798
  * WHAT WENT WRONG WITHOUT IT. The platform resolved a bundle through a
799
799
  * nine-branch `if` chain with a fall-through to the coarse `grantsRole` bundle.
800
800
  * Every job Role grants `member`, so a bundle added to the id list WITHOUT its
801
- * branch did not fail — it silently seeded the plain Member bundle, and the
802
- * startup backfill then re-synced it to that wrong value on every boot. The
801
+ * branch did not fail — it silently resolved to the plain Member bundle. The
803
802
  * Role existed, was assignable from the staffing panel, and granted fifteen
804
803
  * tenant permissions instead of its job. Nothing anywhere exercised the
805
804
  * resolver per bundle.
@@ -896,8 +895,7 @@ export declare const SYSTEM_ORG_JOB_BUNDLES: readonly SeedBundleId[];
896
895
  *
897
896
  * Seeded rather than offered as a {@link ROLE_TEMPLATES} entry, unlike the
898
897
  * tenant job presets, because they are structural: the CLI grants one to the
899
- * account it creates and the startup backfill moves existing accounts onto it,
900
- * and both have to find it in EVERY org by a stable identity. A template leaves
898
+ * account it creates, and has to find it in EVERY org by a stable identity. A template leaves
901
899
  * nothing to find until somebody instantiates it.
902
900
  */
903
901
  export declare const ORG_AUTOMATION_BUNDLES: readonly SeedBundleId[];
@@ -906,9 +904,7 @@ export declare const ORG_AUTOMATION_BUNDLES: readonly SeedBundleId[];
906
904
  * account name, and the built-in Role each holds — `null` for an account whose
907
905
  * key carries a capability SCOPE (a `TokenScope`) and so needs no Role at all.
908
906
  *
909
- * One table for the CLI (which Role to grant a NEW account) and the platform's
910
- * startup backfill (which Role to move an EXISTING account onto, off the org
911
- * admin Role these accounts were once given). A rename here moves both.
907
+ * One table for which Role the CLI grants each account it provisions.
912
908
  */
913
909
  export declare const AUTOMATION_ACCOUNT_BUNDLES: {
914
910
  readonly 'platform-automation': 'pipeline_automation';