Skip to content

Commit 15456e0

Browse files
committed
docs(spec): regenerate the package-api references page after merging origin/main
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTqqeHSwZYJmApbDCa
1 parent e2f2e21 commit 15456e0

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

‎content/docs/references/api/package-api.mdx‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ Install package response
461461
| **success** | `boolean` | ✅ | Operation success status |
462462
| **error** | `{ code: Enum<'VALIDATION_ERROR' \| 'INVALID_FIELD' \| 'MISSING_REQUIRED_FIELD' \| …>; declaredCode?: string; message: string; userMessage?: string; … }` | optional | Error details if success is false |
463463
| **meta** | `{ timestamp: string; duration?: integer; requestId?: string; traceId?: string }` | optional | Response metadata |
464-
| **data** | `{ package: object; dependencyResolution?: object; namespaceConflicts?: object[]; message?: string }` | ✅ | |
464+
| **data** | `{ manifest: object; source: Enum<'code' \| 'marketplace' \| 'authored'>; status?: Enum<'installed' \| 'disabled' \| 'installing' \| 'upgrading' \| 'uninstalling' \| 'error'>; enabled?: boolean; … }` | ✅ | The installed package row, served bare as `data`: the row the registry recorded, at the authoring stage |
465465

466466
### Nested Shape: `PackageInstallResponse.error`
467467

@@ -490,10 +490,19 @@ Install package response
490490

491491
| Property | Type | Required | Description |
492492
| :--- | :--- | :--- | :--- |
493-
| **package** | `{ manifest: object; source: Enum<'code' \| 'marketplace' \| 'authored'>; status?: Enum<'installed' \| 'disabled' \| 'installing' \| 'upgrading' \| 'uninstalling' \| 'error'>; enabled?: boolean; … }` | ✅ | Installed package details |
494-
| **dependencyResolution** | `{ dependencies: object[]; canProceed: boolean; requiredActions: object[]; installOrder: string[]; … }` | optional | Dependency resolution result |
495-
| **namespaceConflicts** | `{ type: 'namespace_conflict'; requestedNamespace: string; conflictingPackageId: string; conflictingPackageName: string; … }[]` | optional | Namespace conflicts detected |
496-
| **message** | `string` | optional | Installation status message |
493+
| **manifest** | `{ id: string; namespace?: string; defaultDatasource?: string; version: string; … }` | ✅ | Package manifest at the AUTHORING stage; a row installed by a `defineStack()` host carries the assembled body instead — see `AssembledInstalledPackageSchema` / `InstalledPackageAtEitherStageSchema` |
494+
| **source** | `Enum<'code' \| 'marketplace' \| 'authored'>` | ✅ | Where the installed package came from: code (registered by the deployment's own code), marketplace (installed from the marketplace), or authored (a database-authored package) |
495+
| **status** | `Enum<'installed' \| 'disabled' \| 'installing' \| 'upgrading' \| 'uninstalling' \| 'error'>` | optional (default: `"installed"`) | Package state: installed, disabled, installing, upgrading, uninstalling, or error |
496+
| **enabled** | `boolean` | optional (default: `true`) | Whether the package is currently enabled |
497+
| **installedAt** | `string` | optional | Installation timestamp |
498+
| **updatedAt** | `string` | optional | Last update timestamp |
499+
| **installedVersion** | `string` | optional | Currently installed version for quick access |
500+
| **previousVersion** | `string` | optional | Version before the last upgrade |
501+
| **statusChangedAt** | `string` | optional | Status change timestamp |
502+
| **errorMessage** | `string` | optional | Error message when status is error |
503+
| **settings** | `Record<string, any>` | optional | User-provided configuration settings |
504+
| **upgradeHistory** | `{ fromVersion: string; toVersion: string; upgradedAt: string; status: Enum<'success' \| 'failed' \| 'rolled_back'>; … }[]` | optional | Version upgrade history |
505+
| **registeredNamespaces** | `string[]` | optional | Namespace prefixes registered by this package |
497506

498507

499508
---

0 commit comments

Comments
 (0)