# An app's own types (/build/app-vendors)

Which app holds the namespace an app keeps its own types under, how the same app keeps it on every computer, and how another app reaches it.



An app can keep data of its own in the owner's instance, such as a reading app's list of saved pages. It registers its types under a **vendor**, an `app.<vendor>` namespace such as `app.readinglist`. A grant for content or for all data never reaches them, so the owner's own lists and searches leave them out.

## Which app holds a vendor [#which-app-holds-a-vendor]

**An `app.<vendor>` namespace belongs to the app whose OAuth client registered its first type,** which needs `metadata.types:write`. Marfa binds the vendor to the `software_id` that client registered, or to the client alone when it registered none. A client that holds the vendor reaches its items without naming them. The owner holds a vendor they started, until they give it to an app.

**Another client with the same `software_id` holds the vendor once the owner approves it.** The consent screen and the device approval page name the vendor, and the sign-ins that hold it now. A `software_id` is only a claim, so the approval is what gives the vendor. A client approved before the vendor existed holds it only after the owner approves it again, and a silent sign-in with `prompt=none` shares nothing. A client that registered no `software_id` is a different app each time it registers, so a new registration holds nothing until the owner [gives it the vendor](/use/manage-app-data#give-an-apps-types-to-another-app).

## How another app reaches it [#how-another-app-reaches-it]

**Any other client needs a grant that names `app.<vendor>.*` or `app.*`,** never content or all data. An app can ask for a vendor's scope before the vendor's first type. **The scope reaches the vendor's items and never makes the app its holder.** A key an app makes reaches them only as its type map names them. Registering under a vendor that another client or the owner holds is refused `403 forbidden`.

## An example [#an-example]

A reading app sends `"software_id": "com.example.readinglist"` when it registers, signs in on a laptop and registers `app.readinglist.entry`. The vendor is now bound to that `software_id`. On a second computer, the app registers a new client with the same `software_id`. The owner's approval page names `app.readinglist` and the laptop's sign-in. Once the owner approves, the second client reads the entries the laptop saved and can register more types there.

[Connect an app with OAuth](/build/connect-an-app#register-the-app) shows the registration. The owner [lists, deletes or moves a vendor's data](/use/manage-app-data).

The rules are in the [keys and sign-in](https://github.com/withmarfa/marfa/blob/main/conformance/spec/keys-and-oauth.md#keys-and-oauthapp-vendor-same-app) and [types](https://github.com/withmarfa/marfa/blob/main/conformance/spec/types.md#typesapp-vendor-identity) chapters of the contract.
