@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.
- package/CHANGELOG.md +54 -0
- package/lib/constants/ai-providers.d.ts +1 -1
- package/lib/constants/ai-providers.js +3 -3
- package/lib/contracts/billing.d.ts +21 -1
- package/lib/contracts/billing.js +26 -2
- package/lib/contracts/call.js +2 -2
- package/lib/contracts/cascade.d.ts +13 -0
- package/lib/contracts/cascade.js +12 -1
- package/lib/contracts/compliance.d.ts +2 -2
- package/lib/contracts/compliance.js +8 -16
- package/lib/contracts/define.d.ts +16 -12
- package/lib/contracts/define.js +19 -11
- package/lib/contracts/index.d.ts +1 -1
- package/lib/contracts/index.js +2 -2
- package/lib/contracts/platform.d.ts +8 -12
- package/lib/contracts/platform.js +14 -18
- package/lib/contracts/plugin.d.ts +7 -16
- package/lib/contracts/plugin.js +8 -29
- package/lib/contracts/quota.d.ts +16 -1
- package/lib/contracts/quota.js +22 -2
- package/lib/contracts/reporting.d.ts +2 -2
- package/lib/contracts/reporting.js +7 -14
- package/lib/helpers/sse-helpers.d.ts +0 -18
- package/lib/helpers/sse-helpers.js +2 -2
- package/lib/middleware/on-behalf.js +2 -2
- package/lib/middleware/revocation.d.ts +6 -7
- package/lib/middleware/revocation.js +18 -19
- package/lib/middleware/step-up.d.ts +5 -4
- package/lib/middleware/step-up.js +10 -7
- package/lib/middleware/system-org.d.ts +4 -7
- package/lib/middleware/system-org.js +5 -8
- package/lib/openapi/routes/ask-agent-routes.d.ts +7 -0
- package/lib/openapi/routes/ask-agent-routes.js +62 -0
- package/lib/openapi/routes/index.js +3 -3
- package/lib/services/cache-service.js +3 -2
- package/lib/services/index.d.ts +2 -2
- package/lib/services/index.js +3 -3
- package/lib/services/org-ai-client.d.ts +1 -4
- package/lib/services/org-ai-client.js +1 -4
- package/lib/services/token-revocation.js +1 -1
- package/lib/services/version-vuln-policy.d.ts +0 -2
- package/lib/services/version-vuln-policy.js +2 -2
- package/lib/types/ask-proposals.d.ts +2 -2
- package/lib/types/ask-proposals.js +2 -2
- package/lib/types/compliance-exemption.d.ts +1 -1
- package/lib/types/compliance-exemption.js +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.js +2 -2
- package/lib/types/permissions.d.ts +6 -10
- package/lib/types/permissions.js +13 -17
- package/lib/types/plugin-scan.d.ts +3 -6
- package/lib/types/plugin-scan.js +6 -5
- package/lib/types/remote-audit-actions.d.ts +1 -1
- package/lib/types/remote-audit-actions.js +1 -3
- package/lib/types/usage-projection.d.ts +0 -8
- package/lib/types/usage-projection.js +2 -2
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +2 -2
- package/lib/utils/response.d.ts +0 -8
- package/lib/utils/response.js +2 -2
- package/lib/utils/sensitive-patterns.js +4 -3
- package/lib/utils/service-registry.d.ts +1 -1
- package/lib/utils/service-registry.js +2 -2
- package/lib/validation/ai-schemas.d.ts +0 -7
- package/lib/validation/ai-schemas.js +2 -2
- package/lib/validation/index.d.ts +1 -1
- package/lib/validation/index.js +2 -2
- package/lib/validation/plugin-catalog-detect.d.ts +0 -2
- package/lib/validation/plugin-catalog-detect.js +1 -5
- package/package.json +1 -1
- package/lib/openapi/routes/ask-routes.d.ts +0 -7
- 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
|
-
*
|
|
485
|
-
*
|
|
486
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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';
|