> For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt.

# Interface: ApiSbomComponent

Defined in: [core/query/siteinfo.ts:778](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L778)

One component of the CycloneDX SBOM (`siprop=sbom`). Components nest: the
platform entries carry their PHP extensions, MediaWiki core carries its
composer packages and foreign resources, each extension carries its own
composer packages.

## Properties

### authors?

> `optional` **authors?**: `object`\[]

Defined in: [core/query/siteinfo.ts:793](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L793)

Authors; extensions report `{ name }`, composer packages carry the raw
`installed.json` entries (`name`, `email`, `homepage`, `role`).

#### email?

> `optional` **email?**: `string`

Contact address, when the author declares one.

#### homepage?

> `optional` **homepage?**: `string`

Author home page.

#### name?

> `optional` **name?**: `string`

Author name.

#### role?

> `optional` **role?**: `string`

Contribution role as declared, e.g. `Developer`.

***

### components?

> `optional` **components?**: `ApiSbomComponent`\[]

Defined in: [core/query/siteinfo.ts:842](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L842)

Nested components (e.g. PHP extensions, composer packages).

***

### description?

> `optional` **description?**: `string`

Defined in: [core/query/siteinfo.ts:839](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L839)

Localized description (from `descriptionmsg`/`description`).

***

### externalReferences?

> `optional` **externalReferences?**: `object`\[]

Defined in: [core/query/siteinfo.ts:827](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L827)

External references of a foreign-resource component (e.g. upstream site).

#### type

> **type**: `string` & `object` | `"website"`

Relationship kind; core emits `website`. Open union.

#### url

> **url**: `string`

Referenced resource; core emits the component's homepage.

***

### licences?

> `optional` **licences?**: `string`\[]

Defined in: [core/query/siteinfo.ts:808](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L808)

License name declared by the extension (`license-name`).

***

### licenses?

> `optional` **licenses?**: `object`\[]

Defined in: [core/query/siteinfo.ts:812](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L812)

SPDX license expressions of foreign-resource components (CycloneDX
spelling, distinct from [licences](#licences)).

#### expression?

> `optional` **expression?**: `string`

Compound SPDX license, i.e. one using `AND`/`OR`/`WITH`; given instead of a `license` object.

#### license?

> `optional` **license?**: `object`

A single SPDX license; given instead of an `expression`.

##### license.id

> **id**: `string`

SPDX license id, e.g. `MIT`.

***

### name

> **name**: `string`

Defined in: [core/query/siteinfo.ts:783](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L783)

Component name, e.g. `PHP`, `MediaWiki`, an extension/skin or package name.

***

### purl?

> `optional` **purl?**: `string`

Defined in: [core/query/siteinfo.ts:824](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L824)

Package URL of a foreign-resource component.

***

### type

> **type**: `string` & `object` | `"platform"` | `"library"` | `"application"`

Defined in: [core/query/siteinfo.ts:780](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L780)

CycloneDX component type, e.g. `platform`, `library`, `application`.

***

### url?

> `optional` **url?**: `string`

Defined in: [core/query/siteinfo.ts:836](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L836)

Home URL declared by the extension.

***

### version?

> `optional` **version?**: `string` | `null`

Defined in: [core/query/siteinfo.ts:789](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L789)

Version string; `null` when a foreign resource declares none, absent when
the source does not report one.
