V0.38.2 library packages (#235)

Co-authored-by: gobha <jasafpro@gmail.com>
Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
2026-03-25 14:09:05 +00:00
committed by xcaliber
parent 6943c91f40
commit 2136535176
22 changed files with 1233 additions and 6 deletions

View File

@@ -8820,6 +8820,74 @@ paths:
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
# ── Extension Dependencies (v0.38.2) ─────────────────────────────────
/api/v1/admin/packages/{id}/dependencies:
get:
tags: [Admin, Extensions]
summary: List libraries this package depends on
description: "v0.38.2: Returns dependency records where this package is the consumer."
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/ResourceID'
responses:
'200':
description: Dependencies list
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ExtDependency'
'401':
$ref: '#/components/responses/Unauthorized'
/api/v1/admin/packages/{id}/consumers:
get:
tags: [Admin, Extensions]
summary: List packages that depend on this library
description: "v0.38.2: Returns dependency records where this package is the library."
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/ResourceID'
responses:
'200':
description: Consumers list
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ExtDependency'
'401':
$ref: '#/components/responses/Unauthorized'
/api/v1/admin/dependencies:
get:
tags: [Admin, Extensions]
summary: List all package dependencies
description: "v0.38.2: Returns the full dependency graph."
security:
- bearerAuth: []
responses:
'200':
description: Full dependency graph
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ExtDependency'
'401':
$ref: '#/components/responses/Unauthorized'
# ── Extension Connections (v0.38.1) ─────────────────────────────────
/api/v1/connections:
get:
@@ -12266,6 +12334,22 @@ components:
updated_at:
type: string
format: date-time
ExtDependency:
type: object
description: "v0.38.2: Package dependency record (consumer → library)"
properties:
consumer_id:
type: string
description: Package ID of the consumer
library_id:
type: string
description: Package ID of the library
version_spec:
type: string
description: Semver version spec declared by consumer
resolved_ver:
type: string
description: Actual library version at dependency creation time
ExtConnection:
type: object
description: "v0.38.1: Extension connection credential (secrets masked in list responses)"