# Models

## The ItemDetail object

```json
{"openapi":"3.0.3","info":{"title":"Sverse Managed Backend (Server SDK)","version":"1.0.0"},"components":{"schemas":{"ItemDetail":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"},"image":{"type":"string","format":"uri"},"itemDefId":{"type":"string"},"itemId":{"type":"string"},"props":{"type":"object","additionalProperties":true},"mint":{"type":"object","properties":{"isMinted":{"type":"boolean"},"status":{"type":"string"},"chainId":{"type":"string"},"nftAddress":{"type":"string"},"walletAddress":{"type":"string"}}},"listing":{"type":"object","properties":{"isListing":{"type":"boolean"},"price":{"type":"number"}}},"ownership":{"type":"object","properties":{"ownerType":{"type":"string"},"walletOwnerId":{"type":"string"}}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}
```

## The ItemSummary object

```json
{"openapi":"3.0.3","info":{"title":"Sverse Managed Backend (Server SDK)","version":"1.0.0"},"components":{"schemas":{"ItemSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"mint":{"type":"object","properties":{"isMinted":{"type":"boolean"},"status":{"type":"string"}}},"listing":{"type":"object","properties":{"isListing":{"type":"boolean"},"price":{"type":"number"}}}}}}}}
```

## The Pagination object

```json
{"openapi":"3.0.3","info":{"title":"Sverse Managed Backend (Server SDK)","version":"1.0.0"},"components":{"schemas":{"Pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"total":{"type":"integer"}}}}}}
```

## The CurrencyBalance object

```json
{"openapi":"3.0.3","info":{"title":"Sverse Managed Backend (Server SDK)","version":"1.0.0"},"components":{"schemas":{"CurrencyBalance":{"type":"object","properties":{"currency_code":{"type":"string","description":"Unique currency code"},"currency_name":{"type":"string","description":"Display name of currency"},"balance":{"type":"number","description":"Current balance of user"}}}}}}
```

## The WalletTransactionRequest object

```json
{"openapi":"3.0.3","info":{"title":"Sverse Managed Backend (Server SDK)","version":"1.0.0"},"components":{"schemas":{"WalletTransactionRequest":{"type":"object","required":["currency","amount","type","idempotencyKey"],"properties":{"amount":{"type":"number","description":"Transaction amount (must be positive)"},"type":{"type":"string","enum":["credit","debit"]},"reason":{"type":"string","description":"Reason for transaction"},"meta":{"type":"object","additionalProperties":true},"idempotencyKey":{"type":"string","description":"Unique key to prevent duplicate transactions"}}}}}}
```

## The WalletTransaction object

```json
{"openapi":"3.0.3","info":{"title":"Sverse Managed Backend (Server SDK)","version":"1.0.0"},"components":{"schemas":{"WalletTransaction":{"type":"object","properties":{"user_identity":{"type":"string"},"game_id":{"type":"string"},"currency_code":{"type":"string"},"type":{"type":"string","enum":["credit","debit"]},"amount":{"type":"number"},"balance_before":{"type":"number"},"balance_after":{"type":"number"},"reason":{"type":"string"},"meta":{"type":"object","additionalProperties":true},"_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}}}}}
```

## The WalletTransactionList object

```json
{"openapi":"3.0.3","info":{"title":"Sverse Managed Backend (Server SDK)","version":"1.0.0"},"components":{"schemas":{"WalletTransactionList":{"type":"object","properties":{"wallet":{"type":"object","properties":{"currency_code":{"type":"string"},"balance":{"type":"number"}}},"page":{"type":"integer"},"limit":{"type":"integer"},"total":{"type":"integer"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/WalletTransaction"}}}},"WalletTransaction":{"type":"object","properties":{"user_identity":{"type":"string"},"game_id":{"type":"string"},"currency_code":{"type":"string"},"type":{"type":"string","enum":["credit","debit"]},"amount":{"type":"number"},"balance_before":{"type":"number"},"balance_after":{"type":"number"},"reason":{"type":"string"},"meta":{"type":"object","additionalProperties":true},"_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}}}}}
```

## The MintNFTResponse object

```json
{"openapi":"3.0.3","info":{"title":"Sverse Managed Backend (Server SDK)","version":"1.0.0"},"components":{"schemas":{"MintNFTResponse":{"type":"object","properties":{"error":{"type":"boolean"},"data":{"type":"object","properties":{"identity":{"type":"string"},"itemId":{"type":"string"},"status":{"type":"string"}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sverse-1.gitbook.io/sverse-docs/api-reference/server/models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
